/*! For license information please see 97704.41f5a7ff.js.LICENSE.txt */ !function(e,t){"object"==typeof module&&"object"==typeof module.exports?t():"function"==typeof define&&define.amd?define([],t):(e="undefined"!=typeof globalThis?globalThis:e||self)&&t()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).xss={})}(this,function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,o=arguments.length;n/g,s=/&#([a-zA-Z0-9]*);?/gim,a=/"/g,c=/:?/gim,_=/&newline;?/gim,l=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,u=/u\s*r\s*l\s*\(.*/gi,p=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,d=/"/g,f=function(e){return e.replace(r,"<").replace(i,">")},y={indexOf:function(e,t){var n,o;for(n=0,o=e.length;n127&&o<2048?t+=String.fromCharCode(o>>6|192)+String.fromCharCode(63&o|128):t+=String.fromCharCode(o>>12|224)+String.fromCharCode(o>>6&63|128)+String.fromCharCode(63&o|128)}return t}(e);l>2,i=(3&t)<<4|(n=e.charCodeAt(l++))>>4,s=(15&n)<<2|(o=e.charCodeAt(l++))>>6,a=63&o,isNaN(n)?s=a=64:isNaN(o)&&(a=64),_=_+c.charAt(r)+c.charAt(i)+c.charAt(s)+c.charAt(a);return _}function b(e){var t,n,o,r,i,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",_=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");_>4,n=(15&r)<<4|(i=a.indexOf(e.charAt(_++)))>>2,o=(3&i)<<6|(s=a.indexOf(e.charAt(_++))),c+=String.fromCharCode(t),64!==i&&(c+=String.fromCharCode(n)),64!==s&&(c+=String.fromCharCode(o));return function(e){for(var t="",n=0,o=0,r=0,i=0;n191&&o<224?(t+=String.fromCharCode((31&o)<<6|63&(i=e.charCodeAt(n+1))),n+=2):(i=e.charCodeAt(n+1),t+=String.fromCharCode((15&o)<<12|(63&i)<<6|63&(r=e.charCodeAt(n+2))),n+=3);return t}(c)}function m(e,t,n){var o="",r=0,i=!1,s=!1,a=0,c=e.length,_="",l="";e:for(a=0;a"===u||a===c-1){o+=n(e.slice(r,i)),_=function(e){var t,n=y.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=y.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}(l=e.slice(i,a+1)),o+=t(i,o.length,_,l,"0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,_-1))){c(s,h(y.trim(e.slice(n,_)))),s=!1,n=_+1;continue}}}else{if(-1===(u=e.indexOf(l,_+1)))break;c(s,y.trim(e.slice(r+1,u))),s=!1,n=(_=u)+1}}else s=e.slice(n,_),n=_+1,r='"'===e.charAt(n)||"'"===e.charAt(n)?n:function(e,t){for(;te.charCodeAt(n)?" ":e.charAt(n);return y.trim(t)}(e=(e=(e=e.replace(a,'"')).replace(s,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})).replace(c,":").replace(_," "))}(n),"href"===t||"src"===t){if("#"===(n=y.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(l.lastIndex=0,l.test(n))return""}else if("style"===t&&(p.lastIndex=0,p.test(n)||(u.lastIndex=0,u.test(n)&&(l.lastIndex=0,l.test(n)))))return"";return n=function(e){return e=f(e=e.replace(d,"""))}(n)}var w=function(e){return"string"==typeof e?e.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},P=function(){function e(e){var t=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{});t.stripIgnoreTag&&(t.onIgnoreTag,t.onIgnoreTag=function(){return""}),t.whiteList={},t.onTag=function(){},t.onTagAttr=function(){},t.onIgnoreTag=function(){},t.onIgnoreTagAttr=function(){},t.safeAttrValue=k,t.escapeHtml=f,this.options=Object.assign(t,e)}return e.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t,n,o,r,i,s,a=this.options,c=a.whiteList,_=a.onTag,l=a.onIgnoreTag,u=a.onTagAttr,p=a.onIgnoreTagAttr,d=a.safeAttrValue,f=a.escapeHtml;a.stripBlankChar&&(e=(t=(t=e.split("")).filter(function(e){var t=e.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)})).join("")),a.allowCommentTag||(e=function(e){for(var t="",n=0;n");var a=function(e){var t=y.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=y.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=y.trim(e.slice(0,-1))),{html:e,closing:n}}(o),g=c[n],h=O(a.html,function(e,t){var o=-1!==y.indexOf(g,e),r=u(n,e,t,o);return null==r?o?(t=d(n,e,t,null))?"".concat(e,'="').concat(t,'"'):e:null==(r=p(n,e,t,o))?void 0:r:r});return o="<".concat(n),h&&(o+=" ".concat(h)),a.closing&&(o+=" /"),o+=">"}return null==(s=l(n,o,i))?f(o):s},f);return g&&(h=g.remove(h)),h},e}(),R=Function("\nvar _checkXSS = function (it) {\n return it && it.Math == Math && it;\n};\nreturn _checkXSS(typeof globalThis === 'object' && globalThis) ||\n_checkXSS(typeof window === 'object' && window) ||\n_checkXSS(typeof self === 'object' && self) ||\n_checkXSS(typeof global === 'object' && global) ||\nFunction('return this')();\n")(),j=new(function(){function e(){var e=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var t,n,o="douyin_web";if(!y.includes(o,"bid"))return o;if(e.config&&e.config.bid)return e.config.bid;if(R&&R._xssBid)return R._xssBid;if(R&&R.slardar&&"function"==typeof R.slardar.config){var r=(R.slardar.config()||{}).bid;if(r)return r}if(R&&R.Slardar&&"function"==typeof R.Slardar.config){var i=(R.Slardar.config()||{}).bid;if(i)return i}return(null===(n=null===(t=null==R?void 0:R.Slardar)||void 0===t?void 0:t._baseParams)||void 0===n?void 0:n.bid)||"argus"},this.getConfigRegion=function(){var t;return y.includes("cn","region")?e.config&&e.config.region?e.config.region:((null===(t=null==R?void 0:R.gfdatav1)||void 0===t?void 0:t.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var t={cn:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:b("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[e.getConfigRegion()];if(t)return t+e.getSlardarBid()}}return e.prototype.setConfig=function(e){this.config=e},e.prototype.upload=function(){var e=this,t=this.gerReportUrl();!this.lock&&t&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var n=e.batchData.slice(0,100);e.batchData=e.batchData.slice(100),R.fetch(t,{method:"post",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}).catch(function(e){}),e.lock=!1,e.upload()},this.timeout))},e.prototype.generateKey=function(e){return e.collectKey?[e.collectMode,e.collectKey].join("___"):""},e.prototype.push=function(e){this.batchData.push(e),this.upload()},e.prototype.report=function(e){var t=this.generateKey(e);if(R.fetch&&e.collectKey){var n="object"==typeof window?window.location.href:"SSR";e.documentUrl=n;var o={age:Math.floor(Date.now()),type:"xss",url:n,body:e,"user-agent":""};"enforce"===e.disposition&&"SSR"!==n||(o.url=t),"SSR"===n&&(o.url="SSR___".concat(o.url),o.body.ssr=!0),this.push(o)}},e}()),x=function(e){for(var t=0,n=function(n){Array.isArray(e[n])?0===e[n].length?delete e[n]:(e[n]=y.from(y.uniq(e[n])),t+=e[n].length):0===y.keys(e[n]).length?delete e[n]:y.keys(e[n]).forEach(function(o){e[n][o]=y.from(y.uniq(e[n][o])),t+=e[n][o].length})},o=0,r=y.keys(e);o0)return t&&t("javascript:"),!1;if(/^javascript:/i.test(e)){var r=e.slice(11).replace(/\s/g,"").trim();return!!y.some(["void","void(0)","void0","false","undefined",";"],function(e){return e===r})||(t&&t("javascript:"),!1)}return!0}var T=function(e,t){var n,o,r="<%= isSaveValidUrl =>";if("string"!=typeof e||(o=Number("<%= urlLimit =>"),void 0!==n&&(o=n),"NaN"!==e.toString()&&-1!==o&&e.length>=o)||B(e,t))return e;try{if(!0===(r=JSON.parse(r))||"true"===r){var i=new URL(e);return i.origin+i.pathname}}catch(e){}return"#"};function L(e,t,o){if(void 0===e&&(e=""),void 0===t&&(t=[]),"string"!=typeof e)return!0;if(!B(e=I(e)))return!1;var r,i={url:(r=e.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:r[1],slash:r[2],host:r[3],port:r[4],path:r[5],query:r[6],hash:r[7]},s=i.scheme,a=i.host;return o?!!o(e):!(!s||!a)&&(!y.includes(["http","https","file"],s)||("object"==typeof window&&window&&(t=n(n([],t,!0),[location.host],!1)),y.some(t,function(e){return!!(e instanceof RegExp&&e.test(a))||e===a})))}var S={a:["target","title","spellcheck","rel"],canvas:[],abbr:["title"],address:[],area:["shape","coords","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:["dir"],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["alt","title","width","height","decoding"],ins:["datetime"],li:[],mark:[],nav:[],ol:["start"],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],delete:[],form:[],strong:[],mask:["maskunits","x","y","width","height","fill"],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],wbr:[],video:["autoplay","controls","loop","preload","height","width"],svg:["viewBox","version","xmlns","fill","width","height","stroke","stroke-width","style"],path:["d","fill","opacity","stroke","p-id","fill-rule","clip-rule","stroke-width","stroke-linecap","stroke-linejoin","fill-opacity","mask"],rect:["x","y","width","height","fill","stroke","rx"],g:[]},A={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var e=x(this.collect),t=e.count,n=e.ret;return this.collect=null,{collectKey:0===t?null:JSON.stringify(n),collectMode:"white"}},onIgnoreTagAttr:function(e,t,o){return e&&y.indexOf(["href","src"],t)>-1?A.domainWhiteList&&Array.isArray(A.domainWhiteList)&&A.domainWhiteList.length>0&&!L(o,n([],A.domainWhiteList,!0))?"":"".concat(t,'="').concat(T(o,function(e){var t;null===(t=A.collect)||void 0===t||t.filterProtocol.push(e)}),'"'):e&&(y.indexOf(["style","class","id"],t)>-1||t.indexOf("data-")>-1)?"".concat(t,'="').concat(o,'"'):(A.collect.whiteList[e]=A.collect.whiteList[e]||[],void A.collect.whiteList[e].push(t))},onIgnoreTag:function(e,t){if("style"===e)return t;m(t,function(e,t,n,o){O(E(o).html.replace("/",""),function(e){A.collect.whiteList[n]=A.collect.whiteList[n]||[],A.collect.whiteList[n].push(e)})},f)},whiteList:S,mergeWhiteList:function(e){for(var t,n={},o=0,r=y.keys(S);o");var i=E(o),s=O(i.html,function(e,t){var o,r=0;if(q.blackList[n]&&y.includes(q.blackList[n],e)&&(U.collect.blackList[n]=U.collect.blackList[n]||[],U.collect.blackList[n].push(e),r++),q.blackAttrRegExps.length&&q.blackAttrRegExps.some(function(t){return t.test(e)})&&y.forEach(q.blackAttrRegExps,function(t){t.test(e)&&(U.collect.blackAttrRegExps.push("".concat(t.toString(),"->").concat(e)),r++)}),q.blackAttrs.length&&y.includes(q.blackAttrs,e)&&(q.blackAttrs.push(e),r++),!r){if(q.filterList&&q.filterList[n]&&y.includes(q.filterList[n],e)){var i=T(t,function(e){var t;null===(t=U.collect)||void 0===t||t.filterProtocol.push(e)});return i!==t&&(U.collect.filterList[n]=U.collect.filterList[n]||[],U.collect.filterList[n].push(e)),t?"".concat(e,"='").concat(i,"'"):e}return q.filterAttrs&&y.includes(q.filterAttrs,e)?((i=T(t,function(e){var t;null===(t=U.collect)||void 0===t||t.filterProtocol.push(e)}))!==t&&(null===(o=U.collect)||void 0===o||o.filterAttrs.push(e)),t?"".concat(e,"='").concat(i,"'"):e):t?"".concat(e,"='").concat(t,"'"):e}});return o="<".concat(n),s&&(o+=" ".concat(s)),i.closing&&(o+=" /"),o+=">"},f);null===(n=U.collect)||void 0===n||n.blackTags.push(e)}},Y=function(e){var t=e.reportOnly,n=void 0===t||t,o=e.block;return n&&"all"===n?"report":("string"==typeof n&&("true"===n&&(n=!0),"false"===n&&(n=!1)),o?"enforce":n?"report":"enforce")},F=function(e){return function(n,o,r){if(!n||"string"!=typeof n)return n;var i=o;e===C&&(i=A).initCollect();var s=e(n,i);if(w(s)===w(n))return n;if(!r)return s;var a=r.logType,c=Y(r),_=i.removeCollect();return j.report(t(t({type:a,disposition:c},_),{sourceText:v(n),filterText:v(s)})),"enforce"===c?s:n}},K=F(function(e,t){return void 0===t&&(t={}),t&&t.whiteList||(t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}),new P(t).process(e)}),H=F(C),W=function(e,t,n){var o=[],r=T(e,function(e){o.push(e)});if(r===e)return e;o=y.from(y.uniq(o));var i=t||n||{};if(!i)return r;var s=i.logType,a=Y(n);return j.report({type:s,disposition:a,collectKey:o.join("___"),collectData:JSON.stringify(o),collectMode:"black",sourceText:v(e),filterText:v(r)}),"enforce"===a?r:e},z=R._xssProject||{},X=R.xssNamespace||{},Z="3.0.26",J={FilterXSS:P,version:Z,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:K,_filterXSS:H,filterUrl:W,Config:A,BlackConfig:U,project:z,setProjectName:function(e){z[e]=this,R._xssProjectName=e}};X.douyin_web=J,R.xssNamespace=X,R.Math&&!R.Math.xssNamespace&&(R.Math.xssNamespace=X),z[Z]=J,R.globalThis=R,R.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:J},R.xss=J,R.isSafeUrl=L,R.isSafeDomain=L,R.isSafeProtocol=B,R._xssProject=z,R._xssProjectName&&(z[R._xssProjectName]=J);var $=J.setProjectName.bind(J);e.BlackConfig=U,e.Config=A,e.FilterXSS=P,e._filterXSS=H,e.filterUrl=W,e.filterXSS=K,e.isSafeDomain=L,e.isSafeProtocol=B,e.isSafeUrl=L,e.project=z,e.setProjectName=$,e.setXssNamespace=function(e){var t=e.appId,n=e.bid,o=e.region;X[t]=J;A.bid=n,A.region=o,A.enabled=!0},e.xssNamespace=X,Object.defineProperty(e,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["97704"],{720709:function(e,t,n){"use strict";n.d(t,{m:function(){return l}});var o=n(587934),r=n(361073),i=n.n(r);o.util.Long=i(),o.configure();let s=o.Reader,a=o.Writer,c=o.util,_=o.roots.default||(o.roots.default={}),l=_.im_proto=(()=>{let e={};return e.Frame=function(){function e(e){if(this.headers=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.seqid=e.uint64();break;case 2:o.logid=e.uint64();break;case 3:o.service=e.int32();break;case 4:o.method=e.int32();break;case 5:!(o.headers&&o.headers.length)&&(o.headers=[]),o.headers.push(_.im_proto.Frame.ExtendedEntry.decode(e,e.uint32()));break;case 6:o.payload_encoding=e.string();break;case 7:o.payload_type=e.string();break;case 8:o.payload=e.bytes();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("seqid"))throw c.ProtocolError("missing required 'seqid'",{instance:o});if(!o.hasOwnProperty("logid"))throw c.ProtocolError("missing required 'logid'",{instance:o});if(!o.hasOwnProperty("service"))throw c.ProtocolError("missing required 'service'",{instance:o});if(!o.hasOwnProperty("method"))throw c.ProtocolError("missing required 'method'",{instance:o});return o},e.ExtendedEntry=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.key=e.string();break;case 2:o.value=e.string();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("key"))throw c.ProtocolError("missing required 'key'",{instance:o});if(!o.hasOwnProperty("value"))throw c.ProtocolError("missing required 'value'",{instance:o});return o},e}(),e}(),e.IMCMD=function(){let e={},t=Object.create(e);return t[e[100]="SEND_MESSAGE"]=100,t[e[200]="GET_MESSAGES_BY_USER"]=200,t[e[203]="GET_MESSAGES_BY_USER_INIT_V2"]=203,t[e[211]="GET_MESSAGE_INFO_BY_SERVER_ID"]=211,t[e[301]="GET_MESSAGES_BY_CONVERSATION"]=301,t[e[302]="GET_MESSAGES_CHECKINFO_IN_CONVERSATION"]=302,t[e[410]="SEND_USER_ACTION"]=410,t[e[411]="SEND_INPUT_STATUS"]=411,t[e[500]="NEW_MSG_NOTIFY"]=500,t[e[504]="NEW_P2P_MSG_NOTIFY"]=504,t[e[505]="NEW_BROADCAST_MSG_NOTIFY"]=505,t[e[603]="MARK_CONVERSATION_DELETE"]=603,t[e[609]="CREATE_CONVERSATION_V2"]=609,t[e[610]="GET_CONVERSATION_INFO_LIST_V2"]=610,t[e[611]="GET_CONVERSATION_INFO_LIST_BY_FAVORITE_V2"]=611,t[e[612]="GET_CONVERSATION_INFO_LIST_BY_TOP_V2"]=612,t[e[614]="DISSOLVE_CONVERSATION"]=614,t[e[615]="GET_CONVERSATIONS_CHECKINFO"]=615,t[e[605]="CONVERSATION_PARTICIPANTS_LIST"]=605,t[e[650]="ADD_CONVERSATION_PARTICIPANTS"]=650,t[e[651]="REMOVE_CONVERSATION_PARTICIPANTS"]=651,t[e[652]="LEAVE_CONVERSATION"]=652,t[e[654]="MGET_CONVERSATION_PARTICIPANTS"]=654,t[e[655]="UPDATE_CONVERSATION_PARTICIPANT"]=655,t[e[670]="ADD_CONVERSATION_BOTS"]=670,t[e[671]="REMOVE_CONVERSATION_BOTS"]=671,t[e[701]="DELETE_MESSAGE"]=701,t[e[702]="RECALL_MESSAGE"]=702,t[e[705]="SET_MESSAGE_PROPERTY"]=705,t[e[901]="GET_CONVERSATION_CORE_INFO"]=901,t[e[902]="SET_CONVERSATION_CORE_INFO"]=902,t[e[904]="UPSERT_CONVERSATION_CORE_EXT_INFO"]=904,t[e[921]="SET_CONVERSATION_SETTING_INFO"]=921,t[e[922]="UPSERT_CONVERSATION_SETTING_EXT_INFO"]=922,t[e[1001]="GET_STRANGER_CONVERSATION_LIST"]=1001,t[e[1002]="GET_STRANGER_MESSAGES_IN_CONVERSATION"]=1002,t[e[1003]="DELETE_STRANGER_MESSAGE"]=1003,t[e[1004]="DELETE_STRANGER_CONVERSATION"]=1004,t[e[1005]="DELETE_ALL_STRANGER_CONVERSATIONS"]=1005,t[e[1006]="MARK_STRANGER_CONVERSATION_READ"]=1006,t[e[1007]="MARK_ALL_STRANGER_CONVERSATIONS_READ"]=1007,t[e[1099]="STRANGER_NEW_MSG_NOTIFY"]=1099,t[e[2e3]="GET_CONVERSATION_PARTICIPANTS_READ_INDEX_V3"]=2e3,t[e[2001]="GET_CONVERSATION_PARTICIPANTS_MIN_INDEX_V3"]=2001,t[e[2002]="MARK_CONVERSATION_READ_V3"]=2002,t[e[2003]="GET_MEDIA_UPLOAD_TOKEN"]=2003,t[e[2004]="GET_MEDIA_URLS"]=2004,t[e[2005]="GET_TICKET"]=2005,t[e[2006]="GET_USER_CONVERSATION_LIST"]=2006,t[e[2007]="BROADCAST_SEND_MESSAGE"]=2007,t[e[2008]="BROADCAST_RECV_MESSAGE"]=2008,t[e[2009]="BROADCAST_USER_COUNTER"]=2009,t[e[2010]="CLIENT_ACK"]=2010,t[e[2011]="CREATE_VOIP"]=2011,t[e[2012]="CALL_VOIP"]=2012,t[e[2013]="UPDATE_VOIP"]=2013,t[e[2014]="HEARTBEAT_CHANNEL"]=2014,t[e[2015]="PROFILE_GET_INFO"]=2015,t[e[2016]="REPORT_CLIENT_METRICS"]=2016,t[e[2017]="GET_CONFIGS"]=2017,t[e[2021]="MODIFY_MESSAGE_EXT"]=2021,t[e[2018]="UNREAD_COUNT_REPORT"]=2018,t[e[2019]="BLOCK_MEMBERS"]=2019,t[e[2020]="BLOCK_CONVERSATION"]=2020,t[e[2030]="GET_UNREAD_COUNT"]=2030,t[e[2031]="SEND_MESSAGE_P2P"]=2031,t[e[2032]="GET_BLOCKLIST"]=2032,t[e[2033]="SET_BLOCKLIST"]=2033,t[e[2034]="CHECK_IN_BLOCKLIST"]=2034,t[e[2036]="MARK_MESSAGE"]=2036,t[e[2037]="PULL_MARK_MESSAGE"]=2037,t[e[2038]="BATCH_GAT_CONVERSATION_PARTICIPANTS_READINDEX"]=2038,t[e[2043]="GET_MESSAGE_BY_INIT"]=2043,t[e[2048]="GET_USER_MESSAGE"]=2048,t[e[2054]="MARK_MSG_UNREAD_COUNT_REPORT"]=2054,t[e[2055]="MARK_MSG_GET_UNREAD_COUNT"]=2055,t[e[2056]="BATCH_UNMARK_MESSAGE"]=2056,t[e[2057]="CLIENT_BATCH_ACK"]=2057,t[e[2059]="AUDIO_RECOGNITION"]=2059,t[e[2105]="BATCH_MARK_CONVERSATION_READ_V3"]=2105,t[e[2200]="GET_TAG_META_INFO"]=2200,t[e[2201]="SET_CONVERSATION_TAG"]=2201,t[e[2202]="MANAGE_TAG_META_INFO"]=2202,t[e[2203]="GET_CONVERSATIONS_BY_TAG"]=2203,t}(),e.StatusCode=function(){let e={},t=Object.create(e);return t[e[0]="OK"]=0,t[e[1]="INVALID_TOKEN"]=1,t[e[100]="EXPIRED_TOKEN"]=100,t[e[2]="INVALID_TICKET"]=2,t[e[4]="INVALID_REQUEST"]=4,t[e[5]="INVALID_CMD"]=5,t[e[6]="SERVER_ERR"]=6,t[e[11]="USER_FORBIDDEN"]=11,t[e[500]="INTERNAL_ERROR"]=500,t[e[15]="MESSAGE_TARGET_CONVERSATION_NOT_EXIST"]=15,t[e[16]="DEGRADATION_ERROR"]=16,t[e[17]="RECALL_TIMEOUT"]=17,t[e[19]="CALLBACK_DENY"]=19,t}(),e.SendMessageStatus=function(){let e={},t=Object.create(e);return t[e[0]="SEND_SUCCEED"]=0,t[e[1]="USER_NOT_IN_CONVERSATION"]=1,t[e[2]="CHECK_CONV_NOT_PASS"]=2,t[e[3]="CHECK_MSG_NOT_PASS"]=3,t[e[4]="CHECK_MSG_NOT_PASS_BUT_SELF_VISIBLE"]=4,t}(),e.Refer=function(){let e={},t=Object.create(e);return t[e[1]="ANDROID"]=1,t[e[2]="IOS"]=2,t[e[3]="PC"]=3,t[e[4]="SERVER"]=4,t}(),e.ConversationType=function(){let e={},t=Object.create(e);return t[e[1]="ONE_TO_ONE_CHAT"]=1,t[e[2]="GROUP_CHAT"]=2,t[e[3]="LIVE_CHAT"]=3,t[e[4]="BROADCAST_CHAT"]=4,t[e[17]="AI_DOUBLE_CHAT"]=17,t}(),e.MessageType=function(){let e={},t=Object.create(e);return t[e[1]="LEGACY_MESSAGE_TYPE_SYSTEM"]=1,t[e[2]="LEGACY_MESSAGE_TYPE_IMAGE"]=2,t[e[3]="LEGACY_MESSAGE_TYPE_AUDIO"]=3,t[e[4]="LEGACY_MESSAGE_TYPE_VIDEO"]=4,t[e[5]="LEGACY_MESSAGE_TYPE_EMOJI"]=5,t[e[6]="LEGACY_MESSAGE_TYPE_FILE"]=6,t[e[7]="LEGACY_MESSAGE_TYPE_TEXT"]=7,t[e[8]="LEGACY_MESSAGE_TYPE_USER_CARD"]=8,t[e[9]="LEGACY_MESSAGE_TYPE_TOAST"]=9,t[e[10]="LEGACY_MESSAGE_TYPE_GROUP_CARD"]=10,t[e[10001]="MESSAGE_TYPE_TEXT"]=10001,t[e[10002]="MESSAGE_TYPE_STICKER"]=10002,t[e[10003]="MESSAGE_TYPE_IMAGE"]=10003,t[e[10004]="MESSAGE_TYPE_VIDEO"]=10004,t[e[10005]="MESSAGE_TYPE_FILE"]=10005,t[e[10006]="MESSAGE_TYPE_AUDIO"]=10006,t[e[10007]="MESSAGE_TYPE_LOCATION"]=10007,t[e[10008]="MESSAGE_TYPE_SYSTEM"]=10008,t[e[10009]="MESSAGE_TYPE_LINK"]=10009,t[e[50001]="MESSAGE_TYPE_COMMAND"]=50001,t[e[50002]="MESSAGE_TYPE_UPDATE_MESSAGE_EXT"]=50002,t[e[50010]="MESSAGE_TYPE_MODE_CHANGE"]=50010,t[e[50003]="MESSAGE_TYPE_UPDATE_MIN_INDEX"]=50003,t[e[50004]="MESSAGE_TYPE_USER_ACTION"]=50004,t[e[50005]="MESSAGE_TYPE_CONVERSATION_DESTROY"]=50005,t[e[50011]="MESSAGE_TYPE_BLOCK_COMMAND"]=50011,t[e[50012]="MESSAGE_TYPE_MARK_COMMAND"]=50012,t[e[50013]="MESSAGE_TYPE_READ_COMMAND"]=50013,t[e[50016]="MESSAGE_TYPE_BATCH_UNMARK_COMMAND"]=50016,t[e[50017]="MESSAGE_TYPE_VISIBLE_MESSAGE_COMMAND"]=50017,t[e[50022]="MESSAGE_TYPE_NOTIFY_USER_CUSTOM_CONVERSATION_TAG_UPDATE_COMMAND"]=50022,t[e[60001]="MESSAGE_TYPE_NOTIFY_COMMAND"]=60001,t[e[70001]="MESSAGE_TYPE_MESSAGE_PROPERTY"]=70001,t[e[70002]="MESSAGE_TYPE_UPDATE_MESSAGE_PROPERTY"]=70002,t[e[80001]="MESSAGE_TYPE_VOIP_COMMAND"]=80001,t[e[80002]="MESSAGE_TYPE_VOIP_CARD_COMMAND"]=80002,t[e[80003]="MESSAGE_TYPE_VOIP_SINGLE_CHAT_STATUS_COMMAND"]=80003,t[e[80004]="MESSAGE_TYPE_VOIP_CALLEE_LIST_UPDATE_NOTIFY"]=80004,t}(),e.GroupRole=function(){let e={},t=Object.create(e);return t[e[0]="ORDINARY"]=0,t[e[1]="OWNER"]=1,t[e[2]="MANAGER"]=2,t[e[3]="VISITOR"]=3,t}(),e.TicketType=function(){let e={},t=Object.create(e);return t[e[1]="TICKET_TYPE_APP"]=1,t[e[2]="TICKET_TYPE_PC"]=2,t[e[3]="TICKET_TYPE_WEB"]=3,t}(),e.MuteMessageType=function(){let e={},t=Object.create(e);return t[e[50]="TYPE_PART_MUTE"]=50,t}(),e.MuteBadgeCountInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.message_type=e.int32();break;case 2:o.badge_count=e.int32();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("message_type"))throw c.ProtocolError("missing required 'message_type'",{instance:o});if(!o.hasOwnProperty("badge_count"))throw c.ProtocolError("missing required 'badge_count'",{instance:o});return o},e}(),e.PropertyItem=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.uid=e.int64();break;case 2:o.sec_uid=e.string();break;case 3:o.create_time=e.int64();break;case 4:o.idempotent_id=e.string();break;case 5:o.value=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.PropertyItemList=function(){function e(e){if(this.Items=[],e)for(var t=Object.keys(e),n=0;n>>3==1)!(o.Items&&o.Items.length)&&(o.Items=[]),o.Items.push(_.im_proto.PropertyItem.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.MessageBody=function(){function e(e){if(this.ext={},this.property_list={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_type=e.int32();break;case 3:i.server_message_id=e.int64();break;case 4:i.index_in_conversation=e.int64();break;case 5:i.conversation_short_id=e.int64();break;case 6:i.message_type=e.int32();break;case 7:i.sender=e.int64();break;case 8:i.content=e.string();break;case 9:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;case 10:i.create_time=e.int64();break;case 11:i.version=e.int64();break;case 12:i.status=e.int32();break;case 13:i.order_in_conversation=e.int64();break;case 14:i.sec_sender=e.string();break;case 15:i.property_list===c.emptyObject&&(i.property_list={});var l=e.uint32()+e.pos;for(n="",o=null;e.pos>>3){case 1:n=e.string();break;case 2:o=_.im_proto.PropertyItemList.decode(e,e.uint32());break;default:e.skipType(7&u)}}i.property_list[n]=o;break;case 17:i.index_in_conversation_v2=e.int64();break;case 18:i.reference_info=_.im_proto.ReferenceInfo.decode(e,e.uint32());break;default:e.skipType(7&a)}}return i},e}(),e.ReferenceInfo=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.referenced_message_id=e.int64();break;case 2:i.hint=e.string();break;case 3:i.ref_message_type=e.int64();break;case 4:i.referenced_message_status=e.int32();break;case 5:i.root_message_id=e.int64();break;case 6:i.root_message_conv_index=e.int64();break;case 7:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}if(!i.hasOwnProperty("referenced_message_id"))throw c.ProtocolError("missing required 'referenced_message_id'",{instance:i});if(!i.hasOwnProperty("hint"))throw c.ProtocolError("missing required 'hint'",{instance:i});if(!i.hasOwnProperty("ref_message_type"))throw c.ProtocolError("missing required 'ref_message_type'",{instance:i});if(!i.hasOwnProperty("referenced_message_status"))throw c.ProtocolError("missing required 'referenced_message_status'",{instance:i});return i},e}(),e.ParticipantRole=function(){let e={},t=Object.create(e);return t[e[0]="PARTICIPANT_ROLE_NORMAL"]=0,t[e[1]="PARTICIPANT_ROLE_OWNER"]=1,t[e[2]="PARTICIPANT_ROLE_ADMIN"]=2,t[e[3]="PARTICIPANT_ROLE_VISITOR"]=3,t}(),e.Participant=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.user_id=e.int64();break;case 2:i.sort_order=e.int64();break;case 3:i.role=e.int32();break;case 4:i.alias=e.string();break;case 5:i.sec_uid=e.string();break;case 6:i.blocked=e.int32();break;case 7:i.left_block_time=e.int64();break;case 8:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.ParticipantsPage=function(){function e(e){if(this.participants=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:!(o.participants&&o.participants.length)&&(o.participants=[]),o.participants.push(_.im_proto.Participant.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.cursor=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationInfoV2=function(){function e(e){if(this.mute_badge_count_infos=[],this.bots=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.ticket=e.string();break;case 6:o.first_page_participants=_.im_proto.ParticipantsPage.decode(e,e.uint32());break;case 7:o.participants_count=e.int32();break;case 8:o.is_participant=e.bool();break;case 9:o.inbox_type=e.int32();break;case 10:o.badge_count=e.int32();break;case 11:!(o.mute_badge_count_infos&&o.mute_badge_count_infos.length)&&(o.mute_badge_count_infos=[]),o.mute_badge_count_infos.push(_.im_proto.MuteBadgeCountInfo.decode(e,e.uint32()));break;case 20:o.user_info=_.im_proto.Participant.decode(e,e.uint32());break;case 50:o.conversation_core_info=_.im_proto.ConversationCoreInfo.decode(e,e.uint32());break;case 51:o.conversation_setting_info=_.im_proto.ConversationSettingInfo.decode(e,e.uint32());break;case 60:!(o.bots&&o.bots.length)&&(o.bots=[]),o.bots.push(_.im_proto.RobotInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.RobotInfo=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.user_id=e.int64();break;case 2:i.sec_uid=e.string();break;case 99:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.ConversationCoreInfo=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_short_id=e.int64();break;case 3:i.conversation_type=e.int32();break;case 4:i.info_version=e.int64();break;case 5:i.name=e.string();break;case 6:i.desc=e.string();break;case 7:i.icon=e.string();break;case 8:i.inbox_type=e.int32();break;case 9:i.notice=e.string();break;case 11:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;case 12:i.owner=e.int64();break;case 13:i.sec_owner=e.string();break;default:e.skipType(7&a)}}return i},e}(),e.ConversationSettingInfo=function(){function e(e){if(this.ext={},this.mute_read_badge_count_infos=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_short_id=e.int64();break;case 3:i.conversation_type=e.int32();break;case 4:i.min_index=e.int64();break;case 5:i.read_index=e.int64();break;case 6:i.mute=e.int32();break;case 7:i.stick_on_top=e.int32();break;case 8:i.inbox_type=e.int32();break;case 9:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;case 10:i.setting_version=e.int64();break;case 11:i.favorite=e.int32();break;case 12:i.set_top_time=e.int64();break;case 13:i.set_favorite_time=e.int64();break;case 14:i.read_index_v2=e.int64();break;case 15:i.min_index_v2=e.int64();break;case 16:i.read_badge_count=e.int32();break;case 17:!(i.mute_read_badge_count_infos&&i.mute_read_badge_count_infos.length)&&(i.mute_read_badge_count_infos=[]),i.mute_read_badge_count_infos.push(_.im_proto.MuteReadBadgeCountInfo.decode(e,e.uint32()));break;case 30:i.push_status=e.int32();break;default:e.skipType(7&a)}}return i},e}(),e.MessagesPerUserRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.cursor=e.int64();break;case 2:o.limit=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.MessagesPerUserResponseBody=function(){function e(e){if(this.messages=[],this.conversation_badge_count=[],this.hasmore_message_conv_list=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 2:o.next_cursor=e.int64();break;case 3:o.has_more=e.bool();break;case 4:o.next_interval=e.int64();break;case 5:o.next_conversation_version=e.int64();break;case 6:!(o.conversation_badge_count&&o.conversation_badge_count.length)&&(o.conversation_badge_count=[]),o.conversation_badge_count.push(_.im_proto.ConversationBadgeCountInfo.decode(e,e.uint32()));break;case 7:o.next_cmd_index=e.int64();break;case 8:if(!(o.hasmore_message_conv_list&&o.hasmore_message_conv_list.length)&&(o.hasmore_message_conv_list=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.conversation_short_id=e.int64();break;case 2:o.badge_count=e.int32();break;case 3:o.conversation_index_v2=e.int64();break;case 4:o.conversation_id=e.string();break;case 5:!(o.mute_badge_count_infos&&o.mute_badge_count_infos.length)&&(o.mute_badge_count_infos=[]),o.mute_badge_count_infos.push(_.im_proto.MuteBadgeCountInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("conversation_short_id"))throw c.ProtocolError("missing required 'conversation_short_id'",{instance:o});if(!o.hasOwnProperty("badge_count"))throw c.ProtocolError("missing required 'badge_count'",{instance:o});if(!o.hasOwnProperty("conversation_index_v2"))throw c.ProtocolError("missing required 'conversation_index_v2'",{instance:o});if(!o.hasOwnProperty("conversation_id"))throw c.ProtocolError("missing required 'conversation_id'",{instance:o});return o},e}(),e.MessagesPerUserInitV2RequestBody=function(){function e(e){if(this.biz_tag_ids=[],this.user_custom_tag_ids=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.cursor=e.int64();break;case 2:o.new_user=e.int32();break;case 3:o.init_sub_type=e.int32();break;case 4:o.conv_limit=e.int32();break;case 5:o.msg_limit=e.int32();break;case 7:if(!(o.biz_tag_ids&&o.biz_tag_ids.length)&&(o.biz_tag_ids=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 2:!(o.conversations&&o.conversations.length)&&(o.conversations=[]),o.conversations.push(_.im_proto.ConversationInfoV2.decode(e,e.uint32()));break;case 3:o.per_user_cursor=e.int64();break;case 4:o.next_cursor=e.int64();break;case 5:o.has_more=e.bool();break;default:e.skipType(7&r)}}return o},e}(),e.MessageDirection=function(){let e={},t=Object.create(e);return t[e[1]="OLDER"]=1,t[e[2]="NEWER"]=2,t[e[3]="FROM_LATEST"]=3,t}(),e.MessagesInConversationRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_short_id=e.int64();break;case 4:o.direction=e.int32();break;case 5:o.anchor_index=e.int64();break;case 6:o.limit=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.MessagesInConversationResponseBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 2:o.next_cursor=e.int64();break;case 3:o.has_more=e.bool();break;default:e.skipType(7&r)}}return o},e}(),e.CreateConversationV2RequestBody=function(){function e(e){if(this.participants=[],this.biz_ext={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.conversation_type=e.int32();break;case 2:if(!(i.participants&&i.participants.length)&&(i.participants=[]),(7&a)==2){for(var l=e.uint32()+e.pos;e.pos>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.biz_ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.CreateConversationV2ResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation=_.im_proto.ConversationInfoV2.decode(e,e.uint32());break;case 2:o.check_code=e.int64();break;case 3:o.check_message=e.string();break;case 4:o.extra_info=e.string();break;case 5:o.status=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.UserActionType=function(){let e={},t=Object.create(e);return t[e[1]="ENTER_CONVERSATION"]=1,t[e[2]="EXIT_CONVERSATION"]=2,t}(),e.InputStatus=function(){let e={},t=Object.create(e);return t[e[3]="TYPING"]=3,t[e[4]="CLEAR_INPUT"]=4,t}(),e.DeleteConversationRequestBody=function(){function e(e){if(this.mute_badge_count_infos=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.last_message_index=e.int64();break;case 6:o.badge_count=e.int32();break;case 7:!(o.mute_badge_count_infos&&o.mute_badge_count_infos.length)&&(o.mute_badge_count_infos=[]),o.mute_badge_count_infos.push(_.im_proto.MuteBadgeCountInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.DissolveConversationRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.DeleteMessageRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.message_id=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.MarkConversationReadRequestBody=function(){function e(e){if(this.mute_read_badge_count_infos=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.read_message_index=e.int64();break;case 5:o.conv_unread_count=e.int64();break;case 6:o.total_unread_count=e.int64();break;case 7:o.read_message_index_v2=e.int64();break;case 8:o.read_badge_count=e.int32();break;case 11:!(o.mute_read_badge_count_infos&&o.mute_read_badge_count_infos.length)&&(o.mute_read_badge_count_infos=[]),o.mute_read_badge_count_infos.push(_.im_proto.MuteReadBadgeCountInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.MuteReadBadgeCountInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.message_type=e.int32();break;case 2:o.read_badge_count=e.int32();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("message_type"))throw c.ProtocolError("missing required 'message_type'",{instance:o});if(!o.hasOwnProperty("read_badge_count"))throw c.ProtocolError("missing required 'read_badge_count'",{instance:o});return o},e}(),e.BatchMarkConversationReadRequestBody=function(){function e(e){if(this.mark_read_requests=[],e)for(var t=Object.keys(e),n=0;n>>3==1)!(o.mark_read_requests&&o.mark_read_requests.length)&&(o.mark_read_requests=[]),o.mark_read_requests.push(_.im_proto.MarkConversationReadRequestBody.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.GetConversationParticipantsReadIndexV3RequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_short_id=e.int64();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_id=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationParticipantsReadIndexV3ResponseBody=function(){function e(e){if(this.indexes=[],e)for(var t=Object.keys(e),n=0;n>>3==1)!(o.indexes&&o.indexes.length)&&(o.indexes=[]),o.indexes.push(_.im_proto.ParticipantReadIndex.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.ParticipantReadIndex=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.user_id=e.int64();break;case 2:o.sec_uid=e.string();break;case 3:o.index=e.int64();break;case 4:o.index_v2=e.int64();break;case 5:o.index_min=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.BatchGetConversationParticipantsReadIndexRequestBody=function(){function e(e){if(this.conversation_id=[],this.conversation_short_id=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:!(o.conversation_id&&o.conversation_id.length)&&(o.conversation_id=[]),o.conversation_id.push(e.string());break;case 2:if(!(o.conversation_short_id&&o.conversation_short_id.length)&&(o.conversation_short_id=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos>>3==1)!(o.conversationParticipantsReadIndex&&o.conversationParticipantsReadIndex.length)&&(o.conversationParticipantsReadIndex=[]),o.conversationParticipantsReadIndex.push(_.im_proto.ConversationParticipantReadIndex.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.ConversationParticipantReadIndex=function(){function e(e){if(this.participantReadIndex=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:!(o.participantReadIndex&&o.participantReadIndex.length)&&(o.participantReadIndex=[]),o.participantReadIndex.push(_.im_proto.ParticipantReadIndex.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationParticipantsMinIndexV3RequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_short_id=e.int64();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_id=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationParticipantsMinIndexV3ResponseBody=function(){function e(e){if(this.indexes=[],e)for(var t=Object.keys(e),n=0;n>>3==1)!(o.indexes&&o.indexes.length)&&(o.indexes=[]),o.indexes.push(_.im_proto.ParticipantMinIndex.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.ParticipantMinIndex=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.user_id=e.int64();break;case 2:o.sec_uid=e.string();break;case 3:o.index=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.SendMessageRequestBody=function(){function e(e){if(this.ext={},this.mentioned_users=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_type=e.int32();break;case 3:i.conversation_short_id=e.int64();break;case 4:i.content=e.string();break;case 5:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;case 6:i.message_type=e.int32();break;case 7:i.ticket=e.string();break;case 8:i.client_message_id=e.string();break;case 9:if(!(i.mentioned_users&&i.mentioned_users.length)&&(i.mentioned_users=[]),(7&a)==2){for(var l=e.uint32()+e.pos;e.pos>>3){case 1:i.referenced_message_id=e.int64();break;case 2:i.hint=e.string();break;case 3:i.root_message_id=e.int64();break;case 4:i.root_message_conv_index=e.int64();break;case 5:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}if(!i.hasOwnProperty("referenced_message_id"))throw c.ProtocolError("missing required 'referenced_message_id'",{instance:i});if(!i.hasOwnProperty("hint"))throw c.ProtocolError("missing required 'hint'",{instance:i});return i},e}(),e.SendMessageResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.server_message_id=e.int64();break;case 2:o.extra_info=e.string();break;case 3:o.status=e.int32();break;case 4:o.client_message_id=e.string();break;case 5:o.check_code=e.int64();break;case 6:o.check_message=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.NewMessageNotifyType=function(){let e={},t=Object.create(e);return t[e[1]="PER_USER"]=1,t[e[2]="PER_CONVERSATION"]=2,t}(),e.MsgTracePath=function(){let e={},t=Object.create(e);return t[e[0]="FROM_UNKNOWN"]=0,t[e[1]="FROM_FRONTIER"]=1,t[e[2]="FROM_HTTP"]=2,t[e[3]="FROM_SERVER"]=3,t}(),e.MsgTrace=function(){function e(e){if(this.metrics={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.metrics===c.emptyObject&&(i.metrics={});var l=e.uint32()+e.pos;for(n=0,o=0;e.pos>>3){case 1:n=e.int32();break;case 2:o=e.int64();break;default:e.skipType(7&u)}}i.metrics[n]=o;break;case 2:i.path=e.int32();break;case 3:i.connStatus=e.int32();break;default:e.skipType(7&a)}}return i},e}(),e.NewMessageNotify=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 2:o.conversation_id=e.string();break;case 3:o.conversation_type=e.int32();break;case 4:o.notify_type=e.int32();break;case 5:o.message=_.im_proto.MessageBody.decode(e,e.uint32());break;case 6:o.previous_cursor=e.int64();break;case 7:o.next_cursor=e.int64();break;case 8:o.index_in_conversation=e.int64();break;case 9:o.index_in_conversation_v2=e.int64();break;case 10:o.conversation_version=e.int64();break;case 11:o.previous_conversation_version=e.int64();break;case 12:o.cmd_message_index=e.int64();break;case 13:o.badge_count=e.int32();break;case 14:o.trace=_.im_proto.MsgTrace.decode(e,e.uint32());break;case 15:o.ref_msg_info=_.im_proto.ReferenceInfo.decode(e,e.uint32());break;case 16:o.previous_msg_index_in_conv=e.int64();break;case 17:o.readconv_version=e.int64();break;case 18:o.pre_readconv_version=e.int64();break;case 19:o.mute_badge_count_info=_.im_proto.MuteBadgeCountInfo.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationInfoV2RequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationInfoListV2RequestBody=function(){function e(e){if(this.conversation_info_list=[],e)for(var t=Object.keys(e),n=0;n>>3==1)!(o.conversation_info_list&&o.conversation_info_list.length)&&(o.conversation_info_list=[]),o.conversation_info_list.push(_.im_proto.GetConversationInfoV2RequestBody.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.GetConversationInfoListV2ResponseBody=function(){function e(e){if(this.conversation_info_list=[],e)for(var t=Object.keys(e),n=0;n>>3==1)!(o.conversation_info_list&&o.conversation_info_list.length)&&(o.conversation_info_list=[]),o.conversation_info_list.push(_.im_proto.ConversationInfoV2.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.RecallMessageRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.server_message_id=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationAddParticipantsRequestBody=function(){function e(e){if(this.participants=[],this.biz_ext={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_short_id=e.int64();break;case 3:i.conversation_type=e.int32();break;case 4:if(!(i.participants&&i.participants.length)&&(i.participants=[]),(7&a)==2){for(var l=e.uint32()+e.pos;e.pos>>3){case 1:n=e.string();break;case 2:o=e.string();break;default:e.skipType(7&u)}}i.biz_ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.SecUidPair=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.uid=e.int64();break;case 2:o.sec_uid=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationAddParticipantsResponseBody=function(){function e(e){if(this.success_participants=[],this.failed_participants=[],this.sec_success_participants=[],this.sec_failed_participants=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:if(!(o.success_participants&&o.success_participants.length)&&(o.success_participants=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos>>3){case 1:if(!(o.failed_participants&&o.failed_participants.length)&&(o.failed_participants=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationParticipantsListRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.cursor=e.int64();break;case 5:o.limit=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationParticipantsListResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3==1)o.participants_page=_.im_proto.ParticipantsPage.decode(e,e.uint32());else e.skipType(7&r)}return o},e}(),e.MgetConversationParticipantsRequestBody=function(){function e(e){if(this.participants=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:if(!(o.participants&&o.participants.length)&&(o.participants=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos>>3==1)!(o.participants&&o.participants.length)&&(o.participants=[]),o.participants.push(_.im_proto.Participant.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.UpdateConversationParticipantResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.participant=_.im_proto.Participant.decode(e,e.uint32());break;case 2:o.status=e.int32();break;case 3:o.extra_info=e.string();break;case 4:o.check_code=e.int64();break;case 5:o.check_message=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationCoreInfoRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationCoreInfoResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3==1)o.conversation_core_info=_.im_proto.ConversationCoreInfo.decode(e,e.uint32());else e.skipType(7&r)}return o},e}(),e.SetConversationCoreInfoResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_core_info=_.im_proto.ConversationCoreInfo.decode(e,e.uint32());break;case 2:o.status=e.int32();break;case 3:o.extra_info=e.string();break;case 4:o.check_code=e.int64();break;case 5:o.check_message=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.UpsertConversationCoreExtInfoResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.core_info=_.im_proto.ConversationCoreInfo.decode(e,e.uint32());break;case 2:o.status=e.int32();break;case 3:o.check_code=e.int64();break;case 4:o.check_message=e.string();break;case 5:o.extra_info=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.SetConversationSettingInfoRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_short_id=e.int64();break;case 3:o.conversation_type=e.int32();break;case 4:o.set_stick_on_top=e.bool();break;case 5:o.set_mute=e.bool();break;case 6:o.set_favorite=e.bool();break;case 7:o.push_status=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.SetConversationSettingInfoResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.setting_info=_.im_proto.ConversationSettingInfo.decode(e,e.uint32());break;case 2:o.status=e.int32();break;case 3:o.check_code=e.int64();break;case 4:o.check_message=e.string();break;case 5:o.extra_info=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.UpsertConversationSettingExtInfoRequestBody=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.conversation_id=e.string();break;case 2:i.conversation_short_id=e.int64();break;case 3:i.conversation_type=e.int32();break;case 4:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.UpsertConversationSettingExtInfoResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.setting_info=_.im_proto.ConversationSettingInfo.decode(e,e.uint32());break;case 2:o.status=e.int32();break;case 3:o.check_code=e.int64();break;case 4:o.check_message=e.string();break;case 5:o.extra_info=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.StrangerConversation=function(){function e(e){if(this.participants=[],this.ext={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.conversation_short_id=e.int64();break;case 2:i.unread=e.int32();break;case 3:i.last_message=_.im_proto.MessageBody.decode(e,e.uint32());break;case 4:i.conversation_id=e.string();break;case 5:!(i.participants&&i.participants.length)&&(i.participants=[]),i.participants.push(_.im_proto.Participant.decode(e,e.uint32()));break;case 7:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.GetStrangerConversationListRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.cursor=e.int64();break;case 2:o.count=e.int64();break;case 3:o.show_total_unread=e.bool();break;default:e.skipType(7&r)}}return o},e}(),e.GetStrangerConversationListResponseBody=function(){function e(e){if(this.conversation_list=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.next_cursor=e.int64();break;case 2:o.has_more=e.bool();break;case 3:o.total_unread=e.int32();break;case 4:!(o.conversation_list&&o.conversation_list.length)&&(o.conversation_list=[]),o.conversation_list.push(_.im_proto.StrangerConversation.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.GetStrangerMessagesRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_short_id=e.int64();break;case 2:o.reset_unread_count=e.bool();break;default:e.skipType(7&r)}}return o},e}(),e.GetStrangerMessagesResponseBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n>>3==3)!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.DeleteStrangerMessageRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.server_message_id=e.int64();break;case 2:o.conversation_short_id=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.DeleteStrangerConversationRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3==1)o.conversation_short_id=e.int64();else e.skipType(7&r)}return o},e}(),e.DeleteStrangerAllConversationRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3==1)o.conversation_short_id=e.int64();else e.skipType(7&r)}return o},e}(),e.MarkStrangerAllConversationReadRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.operation=e.int32();break;case 2:o.key=e.string();break;case 3:o.value=e.string();break;case 4:o.idempotent_id=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.ModifyPropertyBody=function(){function e(e){if(this.modify_property_content=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_short_id=e.int64();break;case 4:o.server_message_id=e.int64();break;case 5:o.client_message_id=e.string();break;case 6:!(o.modify_property_content&&o.modify_property_content.length)&&(o.modify_property_content=[]),o.modify_property_content.push(_.im_proto.ModifyPropertyContent.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.ModifyMessagePropertyRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.property_list=_.im_proto.ModifyPropertyBody.decode(e,e.uint32());break;case 2:o.ticket=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.ModifyMessagePropertyStatus=function(){let e={},t=Object.create(e);return t[e[0]="MODIFY_PROPERTY_SUCCESS"]=0,t[e[1]="MODIFY_PROPERTY_REPEAT_REQUEST"]=1,t[e[2]="MODIFY_PROPERTY_INVALID_LENGTH"]=2,t[e[3]="MODIFY_PROPERTY_INVALID_REQUEST"]=3,t[e[4]="MODIFY_PROPERTY_CALLBACK_ERROR"]=4,t[e[500]="MODIFY_PROPERTY_INTERNAL_ERROR"]=500,t}(),e.ModifyMessagePropertyResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.status=e.int32();break;case 2:o.version=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.MediaType=function(){let e={},t=Object.create(e);return t[e[1]="IMG"]=1,t[e[2]="VIDEO"]=2,t[e[3]="AUDIO"]=3,t[e[4]="FILE"]=4,t[e[10]="OTHER"]=10,t}(),e.MediaTokenType=function(){let e={},t=Object.create(e);return t[e[1]="VSDK"]=1,t[e[2]="IMAGEX"]=2,t[e[3]="VSDK_V5"]=3,t[e[4]="IMAGEX_V5"]=4,t}(),e.ReadURLFrom=function(){let e={},t=Object.create(e);return t[e[1]="URL_VSDK"]=1,t[e[2]="URL_IMAGEX"]=2,t}(),e.GetTicketRequestBody=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.ticket_type=e.int32();break;case 2:i.conversation_type=e.int32();break;case 4:i.to_id=e.int64();break;case 5:i.conversation_short_id=e.int64();break;case 10:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}return i},e}(),e.GetTicketResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3==1)o.ticket=e.string();else e.skipType(7&r)}return o},e}(),e.SortType=function(){let e={},t=Object.create(e);return t[e[1]="JOIN_TIME"]=1,t[e[2]="CREATED_TIME"]=2,t[e[3]="GROUP_NAME"]=3,t[e[4]="ACTIVE_TIME"]=4,t}(),e.GetUserConversationListRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.sort_type=e.int32();break;case 2:o.cursor=e.int64();break;case 3:o.con_type=e.int32();break;case 4:o.limit=e.int64();break;case 5:o.include_role=e.int32();break;case 6:o.exclude_role=e.int32();break;case 8:o.with_cold=e.bool();break;case 10:o.push_status=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.GetUserConversationListResponseBody=function(){function e(e){if(this.list=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:!(o.list&&o.list.length)&&(o.list=[]),o.list.push(_.im_proto.ConversationInfoV2.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.next_cursor=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.RequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 100:o.send_message_body=_.im_proto.SendMessageRequestBody.decode(e,e.uint32());break;case 200:o.messages_per_user_body=_.im_proto.MessagesPerUserRequestBody.decode(e,e.uint32());break;case 203:o.messages_per_user_init_v2_body=_.im_proto.MessagesPerUserInitV2RequestBody.decode(e,e.uint32());break;case 211:o.get_message_by_id_body=_.im_proto.GetMessageByIdRequestBody.decode(e,e.uint32());break;case 301:o.messages_in_conversation_body=_.im_proto.MessagesInConversationRequestBody.decode(e,e.uint32());break;case 302:o.get_messages_checkinfo_in_conversation_body=_.im_proto.GetMessagesCheckInfoInConversationRequestBody.decode(e,e.uint32());break;case 603:o.delete_conversation_body=_.im_proto.DeleteConversationRequestBody.decode(e,e.uint32());break;case 604:o.mark_conversation_read_body=_.im_proto.MarkConversationReadRequestBody.decode(e,e.uint32());break;case 605:o.conversation_participants_body=_.im_proto.ConversationParticipantsListRequestBody.decode(e,e.uint32());break;case 613:o.batch_mark_read_body=_.im_proto.BatchMarkConversationReadRequestBody.decode(e,e.uint32());break;case 614:o.dissolve_conversation_body=_.im_proto.DissolveConversationRequestBody.decode(e,e.uint32());break;case 609:o.create_conversation_v2_body=_.im_proto.CreateConversationV2RequestBody.decode(e,e.uint32());break;case 610:o.get_conversation_info_list_v2_body=_.im_proto.GetConversationInfoListV2RequestBody.decode(e,e.uint32());break;case 650:o.conversation_add_participants_body=_.im_proto.ConversationAddParticipantsRequestBody.decode(e,e.uint32());break;case 652:o.leave_conversation_body=_.im_proto.ConversationLeaveRequestBody.decode(e,e.uint32());break;case 654:o.mget_conversation_participants_body=_.im_proto.MgetConversationParticipantsRequestBody.decode(e,e.uint32());break;case 701:o.delete_message_body=_.im_proto.DeleteMessageRequestBody.decode(e,e.uint32());break;case 702:o.recall_message_body=_.im_proto.RecallMessageRequestBody.decode(e,e.uint32());break;case 705:o.modify_message_property_body=_.im_proto.ModifyMessagePropertyRequestBody.decode(e,e.uint32());break;case 901:o.get_conversation_core_info_body=_.im_proto.GetConversationCoreInfoRequestBody.decode(e,e.uint32());break;case 921:o.set_conversation_setting_info_body=_.im_proto.SetConversationSettingInfoRequestBody.decode(e,e.uint32());break;case 922:o.upsert_conversation_setting_ext_info_body=_.im_proto.UpsertConversationSettingExtInfoRequestBody.decode(e,e.uint32());break;case 1e3:o.get_stranger_conversation_body=_.im_proto.GetStrangerConversationListRequestBody.decode(e,e.uint32());break;case 1001:o.get_stranger_messages_body=_.im_proto.GetStrangerMessagesRequestBody.decode(e,e.uint32());break;case 1002:o.delete_stranger_message_body=_.im_proto.DeleteStrangerMessageRequestBody.decode(e,e.uint32());break;case 1003:o.delete_stranger_conversation_body=_.im_proto.DeleteStrangerConversationRequestBody.decode(e,e.uint32());break;case 1004:o.delete_stranger_all_conversation_body=_.im_proto.DeleteStrangerAllConversationRequestBody.decode(e,e.uint32());break;case 1005:o.mark_stranger_conversation_read_body=_.im_proto.MarkStrangerConversationReadRequestBody.decode(e,e.uint32());break;case 1006:o.mark_stranger_all_conversation_read_body=_.im_proto.MarkStrangerAllConversationReadRequestBody.decode(e,e.uint32());break;case 2e3:o.participants_read_index_body=_.im_proto.GetConversationParticipantsReadIndexV3RequestBody.decode(e,e.uint32());break;case 2001:o.participants_min_index_body=_.im_proto.GetConversationParticipantsMinIndexV3RequestBody.decode(e,e.uint32());break;case 2005:o.get_ticket_body=_.im_proto.GetTicketRequestBody.decode(e,e.uint32());break;case 2006:o.get_conversation_list_body=_.im_proto.GetUserConversationListRequestBody.decode(e,e.uint32());break;case 2008:o.broadcast_recv_message_body=_.im_proto.BroadcastRecvMessageRequestBody.decode(e,e.uint32());break;case 2010:o.client_ack_body=_.im_proto.ClientACKRequestBody.decode(e,e.uint32());break;case 2017:o.get_configs_body=_.im_proto.GetConfigsRequestBody.decode(e,e.uint32());break;case 2018:o.unread_count_report_body=_.im_proto.UnReadCountReportRequestBody.decode(e,e.uint32());break;case 2038:o.batch_get_conversation_participants_readindex=_.im_proto.BatchGetConversationParticipantsReadIndexRequestBody.decode(e,e.uint32());break;case 2043:o.message_by_init=_.im_proto.MessageByInitRequestBody.decode(e,e.uint32());break;case 2048:o.get_user_message=_.im_proto.GetUserMessageRequestBody.decode(e,e.uint32());break;case 2057:o.client_batch_ack_body=_.im_proto.ClientBatchACKRequestBody.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.Request=function(){function e(e){if(this.headers={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.cmd=e.int32();break;case 2:i.sequence_id=e.int64();break;case 3:i.sdk_version=e.string();break;case 4:i.token=e.string();break;case 5:i.refer=e.int32();break;case 6:i.inbox_type=e.int32();break;case 7:i.build_number=e.string();break;case 8:i.body=_.im_proto.RequestBody.decode(e,e.uint32());break;case 9:i.device_id=e.string();break;case 10:i.channel=e.string();break;case 11:i.device_platform=e.string();break;case 12:i.device_type=e.string();break;case 13:i.os_version=e.string();break;case 14:i.version_code=e.string();break;case 15:i.headers===c.emptyObject&&(i.headers={});var l=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(7&u)}}i.headers[n]=o;break;case 16:i.config_id=e.int32();break;case 17:i.token_info=_.im_proto.TokenInfo.decode(e,e.uint32());break;case 18:i.auth_type=e.int32();break;case 21:i.biz=e.string();break;case 22:i.access=e.string();break;case 23:i.ts_sign=e.string();break;case 24:i.sdk_cert=e.string();break;case 25:i.reuqest_sign=e.string();break;case 103:i.iter_version=e.string();break;case 104:i.timestamp=e.int64();break;case 110:i.pdes_version=e.int32();break;default:e.skipType(7&a)}}return i},e}(),e.AuthType=function(){let e={},t=Object.create(e);return t[e[0]="UNKNOWN_AUTH"]=0,t[e[1]="SESSION_AUTH"]=1,t[e[2]="TOKEN_AUTH"]=2,t[e[3]="CERT_AUTH"]=3,t[e[4]="PASSPORT_CERT_AUTH"]=4,t}(),e.TokenType=function(){let e={},t=Object.create(e);return t[e[0]="DEFAULT_TOKEN"]=0,t[e[1]="APP_TOKEN"]=1,t[e[2]="SERVER_TOKEN"]=2,t}(),e.TokenInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.mark_id=e.int32();break;case 2:o.type=e.int32();break;case 3:o.app_id=e.int32();break;case 4:o.user_id=e.int64();break;case 5:o.timestamp=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.SendType=function(){let e={},t=Object.create(e);return t[e[0]="BY_CONVERSATION"]=0,t[e[1]="BY_USER"]=1,t}(),e.NewP2PMessageNotify=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.send_type=e.int32();break;case 2:i.sender=e.int64();break;case 3:i.sec_sender=e.string();break;case 4:i.conversation_id=e.string();break;case 5:i.conversation_short_id=e.int64();break;case 6:i.conversation_type=e.int32();break;case 7:i.message_type=e.int32();break;case 8:i.content=e.string();break;case 9:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;case 10:i.create_time=e.int64();break;default:e.skipType(7&a)}}return i},e}(),e.MessageInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.status=e.int32();break;case 2:o.body=_.im_proto.MessageBody.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.GetMessageByIdRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_short_id=e.int64();break;case 4:o.server_message_id=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.GetMessageByIdResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3==1)o.msg_info=_.im_proto.MessageInfo.decode(e,e.uint32());else e.skipType(7&r)}return o},e}(),e.ResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 100:o.send_message_body=_.im_proto.SendMessageResponseBody.decode(e,e.uint32());break;case 200:o.messages_per_user_body=_.im_proto.MessagesPerUserResponseBody.decode(e,e.uint32());break;case 203:o.messages_per_user_init_v2_body=_.im_proto.MessagesPerUserInitV2ResponseBody.decode(e,e.uint32());break;case 211:o.get_message_by_id_body=_.im_proto.GetMessageByIdResponseBody.decode(e,e.uint32());break;case 301:o.messages_in_conversation_body=_.im_proto.MessagesInConversationResponseBody.decode(e,e.uint32());break;case 302:o.get_messages_checkinfo_in_conversation_body=_.im_proto.GetMessagesCheckInfoInConversationResponseBody.decode(e,e.uint32());break;case 500:o.has_new_message_notify=_.im_proto.NewMessageNotify.decode(e,e.uint32());break;case 504:o.has_new_p2p_message_notify=_.im_proto.NewP2PMessageNotify.decode(e,e.uint32());break;case 615:o.get_conversations_checkinfo_body=_.im_proto.GetConversationsCheckInfoResponseBody.decode(e,e.uint32());break;case 609:o.create_conversation_v2_body=_.im_proto.CreateConversationV2ResponseBody.decode(e,e.uint32());break;case 610:o.get_conversation_info_list_v2_body=_.im_proto.GetConversationInfoListV2ResponseBody.decode(e,e.uint32());break;case 605:o.conversation_participants_body=_.im_proto.ConversationParticipantsListResponseBody.decode(e,e.uint32());break;case 650:o.conversation_add_participants_body=_.im_proto.ConversationAddParticipantsResponseBody.decode(e,e.uint32());break;case 654:o.mget_conversation_participants_body=_.im_proto.MgetConversationParticipantsResponseBody.decode(e,e.uint32());break;case 705:o.modify_message_property_body=_.im_proto.ModifyMessagePropertyResponseBody.decode(e,e.uint32());break;case 901:o.get_conversation_core_info_body=_.im_proto.GetConversationCoreInfoResponseBody.decode(e,e.uint32());break;case 921:o.set_conversation_setting_info_body=_.im_proto.SetConversationSettingInfoResponseBody.decode(e,e.uint32());break;case 922:o.upsert_conversation_setting_ext_info_body=_.im_proto.UpsertConversationSettingExtInfoResponseBody.decode(e,e.uint32());break;case 1e3:o.get_stranger_conversation_body=_.im_proto.GetStrangerConversationListResponseBody.decode(e,e.uint32());break;case 1001:o.get_stranger_messages_body=_.im_proto.GetStrangerMessagesResponseBody.decode(e,e.uint32());break;case 2e3:o.participants_read_index_body=_.im_proto.GetConversationParticipantsReadIndexV3ResponseBody.decode(e,e.uint32());break;case 2001:o.participants_min_index_body=_.im_proto.GetConversationParticipantsMinIndexV3ResponseBody.decode(e,e.uint32());break;case 2038:o.batch_get_conversation_participants_readindex=_.im_proto.BatchGetConversationParticipantsReadIndexResponseBody.decode(e,e.uint32());break;case 2005:o.get_ticket_body=_.im_proto.GetTicketResponseBody.decode(e,e.uint32());break;case 2006:o.get_conversation_list_body=_.im_proto.GetUserConversationListResponseBody.decode(e,e.uint32());break;case 2008:o.broadcast_recv_message_body=_.im_proto.BroadcastRecvMessageResponseBody.decode(e,e.uint32());break;case 2017:o.get_configs_body=_.im_proto.GetConfigsResponseBody.decode(e,e.uint32());break;case 2018:o.unread_count_report_body=_.im_proto.UnReadCountReportResponseBody.decode(e,e.uint32());break;case 2043:o.message_by_init=_.im_proto.MessageByInitResponseBody.decode(e,e.uint32());break;case 2048:o.get_user_message=_.im_proto.GetUserMessageResponseBody.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.Response=function(){function e(e){if(this.headers={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.cmd=e.int32();break;case 2:i.sequence_id=e.int64();break;case 3:i.status_code=e.int32();break;case 4:i.error_desc=e.string();break;case 5:i.inbox_type=e.int32();break;case 6:i.body=_.im_proto.ResponseBody.decode(e,e.uint32());break;case 7:i.log_id=e.string();break;case 8:i.headers===c.emptyObject&&(i.headers={});var l=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(7&u)}}i.headers[n]=o;break;case 9:i.start_time_stamp=e.int64();break;case 10:i.request_arrived_time=e.int64();break;case 11:i.server_execution_end_time=e.int64();break;case 110:i.pdes_key=e.string();break;default:e.skipType(7&a)}}return i},e}(),e.BroadcastRecvMessageRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_id=e.string();break;case 2:o.conversation_type=e.int32();break;case 3:o.conversation_short_id=e.int64();break;case 4:o.cursor=e.int64();break;case 5:o.limit=e.int64();break;case 6:o.reverse=e.bool();break;case 7:o.pull_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.BroadcastRecvMessageResponseBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.next_cursor=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.NetworkType=function(){let e={},t=Object.create(e);return t[e[0]="UNKNOWN"]=0,t[e[1]="WIFI"]=1,t[e[2]="MOBILE_2G"]=2,t[e[3]="MOBILE_3G"]=3,t[e[4]="MOBILE_4G"]=4,t[e[5]="MOBILE_5G"]=5,t}(),e.MsgReportType=function(){let e={},t=Object.create(e);return t[e[0]="NOT_USE"]=0,t[e[1]="MSG_RECEIVE_BY_WS"]=1,t[e[2]="MSG_RECEIVE_BY_USER"]=2,t[e[3]="MSG_RECEIVE_BY_INIT"]=3,t[e[4]="MSG_RECEIVE_BY_LOAD_HISTORY"]=4,t[e[5]="MSG_RECEIVE_BY_LOAD_NEWER"]=5,t[e[6]="MSG_RECEIVE_BY_CHECK_MSG_V1"]=6,t[e[7]="MSG_RECEIVE_BY_CHECK_MSG_V2"]=7,t[e[8]="MSG_RECEIVE_BY_STRANGER"]=8,t[e[9]="MSG_SHOW"]=9,t}(),e.ClientACKRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.start_time_stamp=e.int64();break;case 2:o.cmd=e.int32();break;case 3:o.network_type=e.int32();break;case 4:o.logid=e.string();break;case 5:o.client_time_stamp=e.int64();break;case 6:o.server_message_id=e.int64();break;case 7:o.type=e.int32();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("start_time_stamp"))throw c.ProtocolError("missing required 'start_time_stamp'",{instance:o});if(!o.hasOwnProperty("cmd"))throw c.ProtocolError("missing required 'cmd'",{instance:o});if(!o.hasOwnProperty("type"))throw c.ProtocolError("missing required 'type'",{instance:o});return o},e}(),e.ClientBatchACKRequestBody=function(){function e(e){if(this.ack_list=[],e)for(var t=Object.keys(e),n=0;n>>3==1)!(o.ack_list&&o.ack_list.length)&&(o.ack_list=[]),o.ack_list.push(_.im_proto.ClientACKRequestBody.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.VoipMode=function(){let e={},t=Object.create(e);return t[e[0]="VOIP_MODE_DOUBLE"]=0,t[e[1]="VOIP_MODE_MULTIPLAYER"]=1,t}(),e.VoipStatusCode=function(){let e={},t=Object.create(e);return t[e[0]="SUCCESS"]=0,t[e[4]="VOIP_PARAMS_ERROR"]=4,t[e[18]="VOIP_STATUS_ERROR"]=18,t[e[19]="VOIP_CANCEL_ERROR"]=19,t[e[20]="VOIP_OTHER_RESPONSE_ERROR"]=20,t[e[21]="VOIP_CALLBACK_ERROR"]=21,t}(),e.VoipStatus=function(){let e={},t=Object.create(e);return t[e[0]="IDLE"]=0,t[e[1]="CALLING"]=1,t[e[2]="RINGING"]=2,t[e[3]="ACCEPTED"]=3,t[e[4]="ONTHECALL"]=4,t[e[101]="TERMINATED"]=101,t[e[102]="OCCUPIED"]=102,t[e[103]="REFUSED"]=103,t[e[104]="CANCELLED"]=104,t[e[105]="UNAVAILABLE"]=105,t[e[106]="RTCERROR"]=106,t[e[107]="RTC_ENGINE_MISMATCH"]=107,t}(),e.VoipType=function(){let e={},t=Object.create(e);return t[e[0]="VOIP_TYPE_NOT_USED"]=0,t[e[1]="VOIP_TYPE_ALL"]=1,t[e[2]="VOIP_TYPE_VIDEOONLY"]=2,t[e[3]="VOIP_TYPE_AUDIOONLY"]=3,t}(),e.ChannelStatus=function(){let e={},t=Object.create(e);return t[e[0]="CHANNEL_STATUS_NOT_USED"]=0,t[e[1]="ONLINE"]=1,t[e[2]="OFFLINE"]=2,t}(),e.ClientMetricType=function(){let e={},t=Object.create(e);return t[e[0]="COUNTER"]=0,t[e[1]="TIMER"]=1,t}(),e.GetConfigsRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.version=e.int32();break;case 2:!(o.configs&&o.configs.length)&&(o.configs=[]),o.configs.push(_.im_proto.Config.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.Config=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conf_name=e.string();break;case 2:o.conf_value=e.string();break;default:e.skipType(7&r)}}return o},e}(),e.ConvCountReport=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conv_short_id=e.int64();break;case 2:o.unread_count=e.int64();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.UnReadCountReportRequestBody=function(){function e(e){if(this.conv_unread_count=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.total_unread_count=e.int64();break;case 2:!(o.conv_unread_count&&o.conv_unread_count.length)&&(o.conv_unread_count=[]),o.conv_unread_count.push(_.im_proto.ConvCountReport.decode(e,e.uint32()));break;default:e.skipType(7&r)}}return o},e}(),e.UnReadCountReportResponseBody=function(){function e(e){if(this.failed_conv_list=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.set_total_status=e.bool();break;case 2:if(!(o.failed_conv_list&&o.failed_conv_list.length)&&(o.failed_conv_list=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos>>3){case 2:o.conversation_short_id=e.int64();break;case 5:o.conversation_id=e.string();break;case 6:o.conversation_type=e.int32();break;case 3:o.cursor_reverse_begin=e.int64();break;case 7:o.cursor_reverse_end=e.int64();break;case 4:o.expect_msg_total_count=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.MessagesCheckInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.head_msg_index=e.int64();break;case 2:o.tail_msg_index=e.int64();break;case 3:o.msg_count=e.int32();break;case 4:o.indexes_checksum=e.uint32();break;default:e.skipType(7&r)}}return o},e}(),e.GetMessagesCheckInfoInConversationResponseBody=function(){function e(e){if(this.msgs_checkinfo_list=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:!(o.msgs_checkinfo_list&&o.msgs_checkinfo_list.length)&&(o.msgs_checkinfo_list=[]),o.msgs_checkinfo_list.push(_.im_proto.MessagesCheckInfo.decode(e,e.uint32()));break;case 2:o.real_msg_total_count=e.int32();break;case 4:o.cursor_reverse_next=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationCheckInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_short_id=e.int64();break;case 2:o.conversation_id=e.string();break;case 3:o.conversation_type=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.GetConversationsCheckInfoResponseBody=function(){function e(e){if(this.conversation_checkinfo_list=[],e)for(var t=Object.keys(e),n=0;n>>3==1)!(o.conversation_checkinfo_list&&o.conversation_checkinfo_list.length)&&(o.conversation_checkinfo_list=[]),o.conversation_checkinfo_list.push(_.im_proto.ConversationCheckInfo.decode(e,e.uint32()));else e.skipType(7&r)}return o},e}(),e.ActionType=function(){let e={},t=Object.create(e);return t[e[0]="UNKNOWN_ACTION"]=0,t[e[1]="FAVORITE"]=1,t[e[2]="PIN"]=2,t[e[3]="UNREAD"]=3,t[e[4]="CONV_TOP_MSG"]=4,t}(),e.MessageByInitRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.version=e.int64();break;case 2:o.page=e.int32();break;case 3:o.conv_limit=e.int32();break;case 4:o.msg_limit=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.MessageByInitResponseBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.ConversationMessage.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.next_init_version=e.int64();break;case 4:o.version=e.int64();break;case 5:o.user_cursor=e.int64();break;case 6:o.cmd_index=e.int64();break;case 7:o.readconv_version=e.int64();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("has_more"))throw c.ProtocolError("missing required 'has_more'",{instance:o});if(!o.hasOwnProperty("next_init_version"))throw c.ProtocolError("missing required 'next_init_version'",{instance:o});return o},e}(),e.ConversationMessage=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversations=_.im_proto.ConversationInfoV2.decode(e,e.uint32());break;case 2:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("conversations"))throw c.ProtocolError("missing required 'conversations'",{instance:o});return o},e}(),e.MessageStatus=function(){let e={},t=Object.create(e);return t[e[0]="AVAILABLE"]=0,t[e[1]="NOT_EXIST"]=1,t[e[2]="INVISIBLE"]=2,t[e[3]="RECALLED"]=3,t[e[4]="DELETED"]=4,t}(),e.BatchUnmarkMessageResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.server_message_id=e.int64();break;case 2:o.check_code=e.int64();break;case 3:o.check_message=e.string();break;case 4:o.status=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.TagMetaInfo=function(){function e(e){if(this.ext={},e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.tag_id=e.int64();break;case 2:i.tag_name=e.string();break;case 3:i.status=e.int32();break;case 4:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;default:e.skipType(7&a)}}if(!i.hasOwnProperty("tag_id"))throw c.ProtocolError("missing required 'tag_id'",{instance:i});if(!i.hasOwnProperty("tag_name"))throw c.ProtocolError("missing required 'tag_name'",{instance:i});if(!i.hasOwnProperty("status"))throw c.ProtocolError("missing required 'status'",{instance:i});return i},e}(),e.SetConversationTagResponseBody=function(){function e(e){if(this.failed_conv_short_ids=[],this.settings=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:if(!(o.failed_conv_short_ids&&o.failed_conv_short_ids.length)&&(o.failed_conv_short_ids=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos>>3){case 1:o.version=e.int64();break;case 2:o.cmd_index=e.int64();break;case 3:o.stranger_version=e.int64();break;case 4:o.read_version=e.int64();break;case 5:o.source=e.string();break;case 6:o.consult_version=e.int64();break;case 17:o.notify_version=e.int64();break;case 18:o.get_recent_conv_and_msg=_.im_proto.GetRecentConvAndMsgRequestBody.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.GetRecentConvAndMsgRequestBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.left_side=e.int64();break;case 2:o.right_side=e.int64();break;case 3:o.direction=e.int32();break;default:e.skipType(7&r)}}return o},e}(),e.GetUserMessageResponseBody=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.messages=_.im_proto.GetRecentMessageRespBody.decode(e,e.uint32());break;case 2:o.cmd_messages=_.im_proto.GetCmdMessageRespBody.decode(e,e.uint32());break;case 3:o.has_stranger_message=e.bool();break;case 4:o.read_info=_.im_proto.ConversationReadInfoRespBody.decode(e,e.uint32());break;default:e.skipType(7&r)}}return o},e}(),e.GetRecentMessageRespBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.next_conversation_version=e.int64();break;case 2:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.ConversationRecentMessage.decode(e,e.uint32()));break;case 3:o.has_more=e.bool();break;case 4:o.range=_.im_proto.GetRecentMsgVersionRange.decode(e,e.uint32());break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("next_conversation_version"))throw c.ProtocolError("missing required 'next_conversation_version'",{instance:o});if(!o.hasOwnProperty("has_more"))throw c.ProtocolError("missing required 'has_more'",{instance:o});return o},e}(),e.GetCmdMessageRespBody=function(){function e(e){if(this.messages=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.next_cmd_index=e.int64();break;case 4:o.next_user_message_cursor=e.int64();break;case 5:o.readconv_version=e.int64();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("has_more"))throw c.ProtocolError("missing required 'has_more'",{instance:o});return o},e}(),e.ConversationReadInfoRespBody=function(){function e(e){if(this.read_info=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:!(o.read_info&&o.read_info.length)&&(o.read_info=[]),o.read_info.push(_.im_proto.ConversationReadInfo.decode(e,e.uint32()));break;case 2:o.has_more=e.bool();break;case 3:o.next_version=e.int64();break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("has_more"))throw c.ProtocolError("missing required 'has_more'",{instance:o});if(!o.hasOwnProperty("next_version"))throw c.ProtocolError("missing required 'next_version'",{instance:o});return o},e}(),e.ConversationRecentMessage=function(){function e(e){if(this.messages=[],this.ext_messages=[],this.mute_badge_count_infos=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.conversation_short_id=e.int64();break;case 2:!(o.messages&&o.messages.length)&&(o.messages=[]),o.messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 3:o.version=e.int64();break;case 4:o.badge_count=e.int32();break;case 5:o.conversation_id=e.string();break;case 6:!(o.ext_messages&&o.ext_messages.length)&&(o.ext_messages=[]),o.ext_messages.push(_.im_proto.MessageBody.decode(e,e.uint32()));break;case 9:!(o.mute_badge_count_infos&&o.mute_badge_count_infos.length)&&(o.mute_badge_count_infos=[]),o.mute_badge_count_infos.push(_.im_proto.MuteBadgeCountInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("conversation_short_id"))throw c.ProtocolError("missing required 'conversation_short_id'",{instance:o});if(!o.hasOwnProperty("version"))throw c.ProtocolError("missing required 'version'",{instance:o});if(!o.hasOwnProperty("conversation_id"))throw c.ProtocolError("missing required 'conversation_id'",{instance:o});return o},e}(),e.GetRecentMsgVersionRange=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.left_side=e.int64();break;case 2:o.right_side=e.int64();break;default:e.skipType(7&r)}}return o},e}(),e.ConversationReadInfo=function(){function e(e){if(this.mute_read_badge_count_infos=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:o.read_index=e.int64();break;case 2:o.read_badge_count=e.int64();break;case 3:o.read_index_v2=e.int64();break;case 4:o.ConversationShortId=e.int64();break;case 5:o.ConversationId=e.string();break;case 6:!(o.mute_read_badge_count_infos&&o.mute_read_badge_count_infos.length)&&(o.mute_read_badge_count_infos=[]),o.mute_read_badge_count_infos.push(_.im_proto.MuteReadBadgeCountInfo.decode(e,e.uint32()));break;default:e.skipType(7&r)}}if(!o.hasOwnProperty("read_index"))throw c.ProtocolError("missing required 'read_index'",{instance:o});if(!o.hasOwnProperty("read_badge_count"))throw c.ProtocolError("missing required 'read_badge_count'",{instance:o});if(!o.hasOwnProperty("read_index_v2"))throw c.ProtocolError("missing required 'read_index_v2'",{instance:o});if(!o.hasOwnProperty("ConversationShortId"))throw c.ProtocolError("missing required 'ConversationShortId'",{instance:o});return o},e}(),e.AddUserCustomTagMetaInfo=function(){function e(e){if(this.ext={},this.init_conv_short_ids=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.tag_name=e.string();break;case 2:i.ext===c.emptyObject&&(i.ext={});var l=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(7&u)}}i.ext[n]=o;break;case 3:if(!(i.init_conv_short_ids&&i.init_conv_short_ids.length)&&(i.init_conv_short_ids=[]),(7&a)==2){for(var l=e.uint32()+e.pos;e.pos>>3){case 1:o.tag_id=e.int64();break;case 2:if(!(o.failed_conversation_ids&&o.failed_conversation_ids.length)&&(o.failed_conversation_ids=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos>>3){case 1:i.tag_id=e.int64();break;case 2:i.tag_name=e.string();break;case 3:i.upsert_ext===c.emptyObject&&(i.upsert_ext={});var l=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(7&u)}}i.upsert_ext[n]=o;break;case 4:i.delete_ext===c.emptyObject&&(i.delete_ext={});var l=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(7&u)}}i.delete_ext[n]=o;break;default:e.skipType(7&a)}}if(!i.hasOwnProperty("tag_id"))throw c.ProtocolError("missing required 'tag_id'",{instance:i});return i},e}(),e.ManageTagMetaInfoResponseBody=function(){function e(e){if(this.add_results=[],this.delete_failed_tag_ids=[],this.update_failed_tag_ids=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:!(o.add_results&&o.add_results.length)&&(o.add_results=[]),o.add_results.push(_.im_proto.AddUserCustomTagMetaInfoResult.decode(e,e.uint32()));break;case 2:if(!(o.delete_failed_tag_ids&&o.delete_failed_tag_ids.length)&&(o.delete_failed_tag_ids=[]),(7&r)==2){for(var i=e.uint32()+e.pos;e.pos{this.setState({keyboardEventSet:{onKeyDown:e}})},unregisterKeyDown:e=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:e=>{this.setState({focusIndex:e})},updateScrollTop:e=>{let t;t=`.${R}-option-selected`,void 0!==e&&(t=`.${R}-option:nth-child(${e+1})`);let n=document.querySelector(`#${R}-${this.optionListId} ${t}`);if(Array.isArray(n)&&(n=n[0]),n){let e=n.parentNode;e.scrollTop=n.offsetTop-e.offsetTop-e.clientHeight/2+n.clientHeight/2}}}),{getTriggerWidth:()=>{let e=this.triggerRef.current;return e&&e.getBoundingClientRect().width},setOptionWrapperWidth:e=>{this.setState({dropdownMinWidth:e})},updateInputValue:e=>{this.setState({inputValue:e})},toggleListVisible:e=>{this.setState({visible:e})},updateOptionList:e=>{this.setState({options:e})},updateSelection:e=>{this.setState({selection:e})},notifySearch:e=>{this.props.onSearch(e)},notifyChange:e=>{this.props.onChange(e)},notifySelect:e=>{this.props.onSelect(e)},notifyDropdownVisibleChange:e=>{this.props.onDropdownVisibleChange(e)},notifyClear:()=>{this.props.onClear()},notifyFocus:e=>{this.props.onFocus(e)},notifyBlur:e=>{this.props.onBlur(e)},notifyKeyDown:e=>{this.props.onKeyDown(e)},rePositionDropdown:()=>{let{rePosKey:e}=this.state;e+=1,this.setState({rePosKey:e})},registerClickOutsideHandler:e=>{let t=t=>{let n=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,r=w.findDOMNode(n),i=t.target,s=t.composedPath&&t.composedPath()||[i];r&&(!r.contains(i)||!r.contains(i.parentNode))&&o&&!o.contains(i)&&!(s.includes(o)||s.includes(r))&&e(t)};this.clickOutsideHandler=t,document.addEventListener("mousedown",t,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init(),this.optionListId=(0,y.Ms)()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){!s()(this.props.data,e.data)&&this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){let{size:e,prefix:t,insetLabel:n,insetLabelId:o,suffix:r,placeholder:i,style:s,className:c,showClear:_,disabled:l,triggerRender:p,validateStatus:d,autoFocus:f,value:y,id:g,clearIcon:h}=this.props,{inputValue:v,keyboardEventSet:O,selection:k}=this.state,w=Object.assign(Object.assign(Object.assign({style:s,className:"function"==typeof p?u()(c):u()({[R]:!0,[`${R}-disabled`]:l},c),onClick:this.handleInputClick,ref:this.triggerRef,id:g},O),{tabIndex:-1}),this.getDataAttr(this.props)),P={disabled:l,placeholder:i,autoFocus:f,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:r,prefix:t||n,insetLabelId:o,showClear:_,validateStatus:d,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:h};return a.createElement("div",Object.assign({},w),"function"==typeof p?a.createElement(m.Z,Object.assign({},P,{inputValue:void 0!==y?y:v,value:Array.from(k.values()),triggerRender:p,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):a.createElement(b.Z,Object.assign({},P,{value:void 0!==y?y:v})))}renderLoading(){let e=`${R}-loading-wrapper`;return a.createElement("div",{className:e},a.createElement(h.Z,null))}renderOption(e,t){let{focusIndex:n}=this.state;return a.createElement(O.Z,Object.assign({showTick:!1,onSelect:(e,n)=>this.onSelect(e,t,n),focused:t===n,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){let e;let{maxHeight:t,dropdownStyle:n,dropdownClassName:o,loading:r,emptyContent:i}=this.props,{options:s,dropdownMinWidth:c}=this.state,_=u()({[`${R}-option-list`]:!0},o);e=0===s.length?i:s.filter(e=>e.show).map((e,t)=>this.renderOption(e,t));let l=Object.assign({maxHeight:t,minWidth:c},n);return a.createElement("div",{className:_,role:"listbox",style:l,id:`${R}-${this.optionListId}`},r?this.renderLoading():e)}render(){let{position:e,motion:t,zIndex:n,mouseEnterDelay:o,mouseLeaveDelay:r,autoAdjustOverflow:i,stopPropagation:s,getPopupContainer:c}=this.props,{visible:_,rePosKey:l}=this.state,u=this.renderInput(),p=this.renderOptionList();return a.createElement(v.Z,{mouseEnterDelay:o,mouseLeaveDelay:r,autoAdjustOverflow:i,trigger:"custom",motion:t,visible:_,content:p,position:e,ref:this.optionsRef,zIndex:n,stopPropagation:s,getPopupContainer:c,rePosKey:l},u)}constructor(e){super(e),this.onSelect=(e,t,n)=>{this.foundation.handleSelect(e,t)},this.onSearch=e=>{this.foundation.handleSearch(e)},this.onBlur=e=>this.foundation.handleBlur(e),this.onFocus=e=>this.foundation.handleFocus(e),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=e=>this.foundation.handleInputClick(e),this.foundation=new d.Z(this.adapter);this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:1},this.triggerRef=a.createRef(),this.optionsRef=a.createRef(),this.clickOutsideHandler=null,this.optionListId="",(0,k.Z)("triggerRender"in this.props&&"function"==typeof this.props.triggerRender,`[Semi AutoComplete] - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', please notice that they will be removed in the next major version. Please use 'componentProps' to retrieve these props instead. - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}}E.propTypes={"aria-label":_().string,"aria-labelledby":_().string,"aria-invalid":_().bool,"aria-errormessage":_().string,"aria-describedby":_().string,"aria-required":_().bool,autoFocus:_().bool,autoAdjustOverflow:_().bool,className:_().string,clearIcon:_().node,children:_().node,data:_().array,defaultOpen:_().bool,defaultValue:_().oneOfType([_().string,_().number]),defaultActiveFirstOption:_().bool,disabled:_().bool,dropdownMatchSelectWidth:_().bool,dropdownClassName:_().string,dropdownStyle:_().object,emptyContent:_().node,id:_().string,insetLabel:_().node,insetLabelId:_().string,onSearch:_().func,onSelect:_().func,onClear:_().func,onBlur:_().func,onFocus:_().func,onChange:_().func,onKeyDown:_().func,position:_().oneOf(x),placeholder:_().string,prefix:_().node,onChangeWithObject:_().bool,onSelectWithObject:_().bool,renderItem:_().func,renderSelectedItem:_().func,suffix:_().node,showClear:_().bool,size:_().oneOf(j),style:_().object,stopPropagation:_().oneOfType([_().bool,_().string]),maxHeight:_().oneOfType([_().string,_().number]),mouseEnterDelay:_().number,mouseLeaveDelay:_().number,motion:_().oneOfType([_().bool,_().func,_().object]),getPopupContainer:_().func,triggerRender:_().func,value:_().oneOfType([_().string,_().number]),validateStatus:_().oneOf(C),zIndex:_().number},E.Option=O.Z,E.__SemiComponentName__="AutoComplete",E.defaultProps=(0,P.GW)(E.__SemiComponentName__,{stopPropagation:!0,motion:!0,zIndex:f.KT.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:r(),onSearch:r(),onClear:r(),onBlur:r(),onSelect:r(),onChange:r(),onSelectWithObject:!1,onDropdownVisibleChange:r(),defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:r()}),t.Z=E},964609:function(e,t,n){"use strict";n(932651);var o=n(198412),r=n.n(o),i=n(812958),s=n.n(i),a=n(856445),c=n(70106);class _ extends a.Z{setForcePlay(e){this._forcePlay=e}play(e){this._interval&&clearInterval(this._interval),this._interval=setInterval(()=>{this.next()},e)}stop(){this._interval&&clearInterval(this._interval)}goTo(e){let{activeIndex:t}=this.getStates(),n=this.getValidIndex(e);this._adapter.setIsReverse(t>n),this.getIsControlledComponent()?this._notifyChange(n):(this._notifyChange(n),this.handleNewActiveIndex(n))}next(){this.stop();let{activeIndex:e}=this.getStates(),t=this.getValidIndex(e+1);this._adapter.setIsReverse(!1),this.getIsControlledComponent()?this._notifyChange(t):(this._notifyChange(t),this.handleNewActiveIndex(t)),this.handleAutoPlay()}prev(){this.stop();let{activeIndex:e}=this.getStates(),t=this.getValidIndex(e-1);this._adapter.setIsReverse(!0),this.getIsControlledComponent()?this._notifyChange(t):(this._notifyChange(t),this.handleNewActiveIndex(t)),this.handleAutoPlay()}destroy(){this._unregisterInterval()}_unregisterInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_notifyChange(e){let{activeIndex:t,isInit:n}=this.getStates();n&&this._adapter.setIsInit(!1),t!==e&&(this._adapter.setPreActiveIndex(t),this._adapter.notifyChange(e,t))}getValidIndex(e){let t=this._adapter.getChildren();return(e+t.length)%t.length}getSwitchingTime(){let{autoPlay:e,speed:t}=this.getProps();return"boolean"==typeof e?c.KT.DEFAULT_INTERVAL+t:s()(e)?r()(e,"interval",c.KT.DEFAULT_INTERVAL)+t:t}getIsControlledComponent(){return this._isInProps("activeIndex")}handleAutoPlay(){let{autoPlay:e}=this.getProps();this._adapter.getChildren().length>1&&(!0===e||s()(e)||this._forcePlay)&&this.play(this.getSwitchingTime())}handleKeyDown(e){"ArrowLeft"===e.key&&this.prev(),"ArrowRight"===e.key&&this.next()}onIndicatorChange(e){let{activeIndex:t}=this.getStates();this._adapter.setIsReverse(t>e),this._notifyChange(e),!this.getIsControlledComponent()&&this.handleNewActiveIndex(e)}handleNewActiveIndex(e){let{activeIndex:t}=this.getStates();t!==e&&this._adapter.setNewActiveIndex(e)}getDefaultActiveIndex(){let e;let t=this.getProps();return"activeIndex"in t?e=t.activeIndex:"defaultActiveIndex"in t&&(e=t.defaultActiveIndex),e}constructor(e){super(Object.assign({},e)),this._interval=null,this._forcePlay=!1}}t.Z=_},365211:function(e,t,n){"use strict";n(706056),n(932651);var o=n(856445),r=n(779778),i=n(182811);class s extends o.Z{init(){let{children:e,extra:t,extraId:n,addonId:o}=this.getProps();e&&!o&&this._adapter.setAddonId(),t&&!n&&this._adapter.setExtraId()}notifyChange(e,t){let n=this._adapter.generateEvent(e,t);this._adapter.notifyChange(n)}handleChange(e){if(this.getProp("disabled"))return;if((null==e?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){!this._adapter.getGroupDisabled()&&this.handleChangeInGroup(e);return}let t=!this.getState("checked");this._isControlledComponent("checked")||this.setChecked(t),this.notifyChange(t,e)}handleChangeInGroup(e){let{value:t}=this.getProps(),n=this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(!n,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){(0,r.Z)(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=e=>{let{target:t}=e;try{if(this.clickState){this.clickState=!1;return}t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch(e){(0,i.Z)(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}}t.Z=s},261341:function(e,t,n){"use strict";n.d(t,{UX:function(){return r},j2:function(){return i}});var o=n(707852);let r={PREFIX:`${o.T}-tree`,PREFIX_OPTION:`${o.T}-tree-option`},i={EXPAND_ACTION:[!1,"click","doubleClick"],JSON_KEY_SPLIT:"_SEMI_TREE_SPLIT_"}},642911:function(e,t,n){"use strict";n.d(t,{KT:function(){return p},UX:function(){return c},j2:function(){return u}});var o=n(707852),r=n(601820);let i=`${o.T}-upload`,s="picture",a="list",c={PREFIX:i,LIST:`${i}-list`},_="auto",l="custom",u={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:s,FILE_LIST_DEFAULT:a,LIST_TYPE:[s,a],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:_,TRIGGER_CUSTOM:l,UPLOAD_TRIGGER:[_,l],VALIDATE_STATUS:r.L,PROMPT_POSITION:["left","right","bottom"]},p={PROGRESS_COEFFICIENT:.95}},769007:function(e,t,n){"use strict";n.d(t,{f:function(){return r}});var o=n(368183);function r(e,t,n,r,i,s){let a;let c=this,_=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(s),l};function l(p){return _>999||null===p||91===p||93===p&&!a||94===p&&!_&&"_hiddenFootnoteSupport"in c.parser.constructs?n(p):93===p?(e.exit(s),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(0,o.Ch)(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(t){return null===t||91===t||93===t||(0,o.Ch)(t)||_++>999?(e.exit("chunkString"),l(t)):(e.consume(t),!a&&(a=!(0,o.xz)(t)),92===t?p:u)}function p(t){return 91===t||92===t||93===t?(e.consume(t),_++,u):u(t)}}},314228:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(586597);function r(e){return function(t){return(0,o.M)(t,e)}}}}]);