1 line
324 KiB
Plaintext
1 line
324 KiB
Plaintext
"use strict";(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["44077"],{556351:function(e,t,i){var o=i(320165),s=i(469935),n=i.n(s),r=i(163896),a=i(176449),l=i(477667),v=i(101199),_=i(689856);t.Z=e=>{let{children:t,title:i,visible:s,className:m,onCancel:d,closeable:c=!0}=e,u=v.useCallback(()=>{d&&d(!1)},[d]);return s?(0,o.jsx)(r.T6,{className:n()(_.default.mask,m),children:(0,o.jsxs)("div",{className:_.default.modalContainer,children:[c&&(0,o.jsx)("div",{className:_.default.close,onClick:u,children:(0,o.jsx)(a.Z,{width:36,height:36,src:l.Z,color:"#A9AAB7"})}),i&&(0,o.jsx)("div",{className:_.default.title,children:i}),(0,o.jsx)("div",{className:_.default.content,children:t})]})}):null}},361248:function(e,t,i){i.d(t,{D$:function(){return c},Gl:function(){return h},wU:function(){return d},e9:function(){return m},cP:function(){return l},Uw:function(){return n},SV:function(){return s},X1:function(){return k},DK:function(){return _},O7:function(){return E},ug:function(){return r},gf:function(){return w},IX:function(){return g},LB:function(){return p},VK:function(){return C},Qd:function(){return P},pj:function(){return u},Pj:function(){return b},WK:function(){return f},yG:function(){return y},oN:function(){return v},Qp:function(){return S},EV:function(){return a}});var o=i.p+"media/wish-star.e44625dc6aae53bd.png",s={NormalRule:1,1:"NormalRule",ConrRules:2,2:"ConrRules",BattleRules:3,3:"BattleRules",Six2SixRules:4,4:"Six2SixRules",BattleSelfRules:5,5:"BattleSelfRules",BattleSelfConrRules:6,6:"BattleSelfConrRules",NewVideoRules:7,7:"NewVideoRules",ArenaBattleRules:8,8:"ArenaBattleRules",SprintChallengeRules:9,9:"SprintChallengeRules",RoomBattleVoteRules:10,10:"RoomBattleVoteRules"};let n={Intro:"玩法说明",Rule:"榜单规则"},r={FOLLOW_SUCCESS:"关注成功!",FOLLOW_FAIL:"取消关注成功!",NOTTOSELF:"无法对自己送礼!",NOTINTHEMIC:"该嘉宾已下麦"};var a={UNRELATED:0,0:"UNRELATED",FROMUID_TO_TARGETUID:1,1:"FROMUID_TO_TARGETUID",EACH_OTHER:2,2:"EACH_OTHER",TARGETUID_TO_FROMUID:3,3:"TARGETUID_TO_FROMUID"};let l={CONTRIBUTOR:"contributor",NORMAL:"normal"},v={RankListAnimation:"rankListAnimation",RankListCloseAnimation:"rankListCloseAnimation",RuleListAnimation:"rankListRuleAnimation",RuleCloseAnimation:"rankListRuleCloseAnimation"},_={ProgressLineSmall:"1px",ProgressLineBig:"4px",ProgressSmall:"6px",ProgressBig:"10px",None:"none",AssistHasOpcaity:".34",TextOpcaity:".6",NormalOpcaity:"1",HalfOpcaity:".5"},m={0:"#FF2935",1:"#FF6644",2:"#F3AF00"},d={ZERO:0,THREE:3,Five:5};var c={NOTYPE:1,1:"NOTYPE",ORDERSING:2,2:"ORDERSING",TEAMFIGHT:3,3:"TEAMFIGHT",GUESTBATTLE:4,4:"GUESTBATTLE",ROOMBATTLE:5,5:"ROOMBATTLE",WISHSTAR:6,6:"WISHSTAR"};let u={2:"request_song",5:"room_grouppk",4:"boom",3:"grouppk"},h={NOHONOR:"linear-gradient(90deg, #667EEA 0%, #764BA2 100%)",TEAMFIGHT_RED:"linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(90deg, #FF5290 0%, #FF4DCD 100%)",TEAMFIGHT_BULE:"linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(90deg, #4DB4FF 0%, #48DEFF 100%)",HASHONOR:"linear-gradient(100deg, #76BDFF 3.23%, #7674E8 86.46%)"},g={2:{ICON:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAMAAAANxBKoAAAB0VBMVEXGz/+hovmOifWXlvgAAAC+xf7y0FW1ufztwkT23Gesr/t+dvMfDkjouDpzae6NWtHkrUESCTk8F0qHUMl2TMV2QbQuGW////+cZs9KKok3F16JQ7U8JH8lE12/f8JqNqH2kY+ELYf19f+APKqINp3+po9IH3LPjnHZoFZMHVS+tPVNNJtcLpHFhIBrImawvv+xpPK8cp9yL5NaJ39bHFppS+uxc8fVj7NlQLCTVa1XPqxcN6HqXp//b5nAe41nKofkzH/kmz3Byv60iN1lQdLEccylbsWCSsH8a7psRrnicKfnSKHtc5ZsJXhbIXBCIWTrt0zejz5cPurRZe9xW+qXkeSleN3/p9uLeNd4bMLTY7/iXbS3YbLbabDSe6nkoqP8XaN5NZ3OTpzofZnfxJXRr5C/kYzGaIJ2KYCQMHV9J3KbXXBPG2HVlWBbLFu8xP1tXu2/yP+Tj/fCy/9yb/KaofPj5f3Y2v32xea8n+brmNysn9vhutf/e8r/isX/f4+jVo1vNXGBSGnpu2PGz/+hovlyaO6SkPWqrvprXPCnl+rGitHeetGmT87hpMbAs72pjLGdd7G5o65ZUI9GOm6kpvlyZvCek82sL3+GgPTFz//a8wCzAAAAm3RSTlOZmZmZAJmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmROZmZmZmZmZmZmZmZmZmZmZmZlymZmZmZmZmZmZmZmZmZmZl5mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmLbkxHQxMKmZmZmZmZmZmZmZmZmZmPj4xzQkKZmZmZmZmZmZmZmV9MmZmFYMajbzEAAAPLSURBVEjHfdX3W1JxFMfxS4g3LzcUMhWIEiQMkMCBCqIFjihJBfcot2aaI7eWM0d7z7+2z3chT+sN/PY65znofVTKYq0uxRakv/c8tuzniml/TEeS/tlPeKGXFxj+z8DzZaGXZFnHOV7/aonpU1kmnL4zt/9+2zLR/gVZ0tGBzHM8LxuvoFebHl36GD/0F0V2SDLjYiDQl1vU0lJdTQYaA8LHsiS/okiFa7DUs4m+/Pz83NzcIjoBL/iqdCqvOwoL13TC4/r+cO2dOxi4SCeKqqt7ZP5FpRgsckgK1Z6trf6wty5cW0s9H+A8Jh0pujVYWVEUgjd6X4e9Zi/zZwM99JgFSaPR6ArXFZa8tfFsyGu+bCa+rvYSun2b+oBE0yCHrGF6c6f32dBlBF9WV3f1atoX6dJaxofqQBy6AFFeVnaVeSt8QGgR9EhvPG6x2bgHRyUlJVbrxR6mtZl8cCce31dVm81S4HKZzZXwFaOMU62FxltWqH81sjMypiKbxeJyuSorb96sqBgdJVxHNQJzsJMCI/X19fuct6e50+m0ephGCn5F65TvQSdMRqPgbZQ7kYc8QecoZ7vR5+nd3d1pVfC5trZ79x4+tNudTpnqc9R7+Lf9ZCpGjJssljnKoe0hHdPgPOh+48E15GPc5J6runGD6hamtWd+e/Jdt804S3jxPDThVeCPHtnt22K3GOg+PMye9KrqLG65VjxryuQhWdwt/MeOnJycDwWqepBIJMaLx2fdqgncDT5TI5Og9WJgiuhbVvD5sUgkkhgfnz6Yd7vd8/t7w8MertN+Ki8bfPISuDrT2hqJ3CU9QDVvn7LdelieL5pNeI21wKYaTd/hB+8j0I2nm3hCidaL5VPJZB7jby6DG00zY62DgwMDA83NzY0KDRoR/D4ajXZkUz7caS0AN6pVM3tjA7AvNULT6NUdwIxPvO58U1LZ3v75U3+3hiU0976889SK9Z01OROazDL1+2Te+fPUU479+Gyzp59HtAF79fq+ZPQCNDws4+idFnGv4CMd6+GhoxcugENTz/kEMPG8I2nRYCD8QzJPcBb1t7Q8ul45kb4aDGR3w+PrGZyth2aPpzjnVFqFRg2lpeDMiwGmz7zGL2UtUh1q8IGL9WI7tODoC/7arxwT3RQq95Xya7hH0Fq8mD/yQ2e9AO5qCofKG/7kH8lq7p+w/2lfoYNN2I5rfufdaQ5MNLYfG4LBrqaL5eWcw/Of/STVHEOTVhaDwWAqlT9EOV0v9n+j9mQFSmj4F4upVKqriB+POD889+PkySpXvwAPydeIC+nZagAAAABJRU5ErkJggg==",NAME:"你点我唱"},4:{ICON:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAMAAAANxBKoAAABWVBMVEW6qv+xr/+dxv+Q1v+puv8AAACfuf/7NmHuOG2nq//9bLHzSoPwQnn6YKHpLmH+RnH/gaz1UZD/Woecsf/4W5b/3sv/cqD+ebv+apXkHEr/hr7nJVX/zWqdp/v/qySkv///yKb9UHr/vNH/lcT/5df+RoD+i8nayrT/szmluvWqu+vAsef/wUymwf+2keD+17/+4ZX/wpX/uYn+r22lvv+mv//MuO7Et8/Bh8++m8jhVpD90Xn/jRH/nQrBo/+K2/+1tOnVkdLTebL/0LD756jx05X+2oTmTYH/r0yK2/+nwP+htP+2sfWsm+63mujrydH/q8TOoq/Naa3QoJf/lY3lt4b7bm37jlbzJFH/hAaosvmK2v/Ao/+ttv+/of/x19zUys7kvMO+dMDfgLzcaKjmuZv4sJjzwHj9kWzjm2fylkPYD0L/nSjDo//DTZH/eIXrrW7/WlWK2v/zD+vHAAAAc3RSTlOZmZmZmQCZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZE5mZmZmZmZmZmZmZmZmNmZmZmZmZc0KZmZmZmZmZmY1GmZmZmZmZmZmZjUwKmZmZmZmZmZmZmZmZmZmWc3NfQpmZmZmZmZmZmZmZmZmZTJmZmZlgEumgWQAAA2VJREFUSMdt1VlX2kAYxvFJGkkCJMQQkJCwxVI2QUVQFKrW1mrd6lK1rt03l27f/6LvO8OYhNM/HK5+PGcgF0PGWNtbnabIexTq1cVKYaiYLnSo8jl7+f0t+LqLs1KIY0H/aoXrLbQBGR7nrTDdlZByz6vVa6DFIEddaEoQFRK8GX0WxZ7VQ4cpgL6SWJEIMPioiSJa1qfVwPjFGClwXK9UapFIpLJeBzyRfZKdiEY1TftU9/k26TIMbKa/kEzW1t2DaDT7BAKuaZZlrT34FdJhGHTfBX1+/A2WqZ2AcWsc4/6CnIN9X1FV9fyLe5RTD/JzMJ1lFrbHY9jGIvudBJfX+6uqmjt2qzeLP0CD5NgCHYdijFPd+PbjSD1w3an82Rlug0SLGK0CbYhUC4IkqAv9zaObvjtVzT/Nz2m+xWWFtcg0rTLjbr7kGuOWYl3XlbWAXn3xYmaopywLKFjEzGKfA1p9z/XTwQlAoGDHNStGsePoa2JA71CdH5wNqt8Boo0bk5OTWQ2oYztKTxS5ho437waDu2r19AQgplBsGJZu27azUROBP+jfm+7MemVhz+I/LcZwOhMHrfQiIb260NgR4JH2+J9mwRM1UJtwkKUkahE1T8UOdfo8dN0Cijhjxm2llYxEqCYhvhcHqIDX42mwiM2Scpgb6hH+uQx/Hn5BUTLpIU4s5XLJJNOAyYNulU18jOAdPZ6BEIPm2+HxJdBpyIrp9m0sYwIuJeQNXwd9Sy6bljE55LpJl2U5Tg+COsR7iXLZzOx72bRmKo5TKlEsKzjta769V04kMp6R9jzDLOtOglrc5jrEG29KyL204e2XZUcedpjkOsRfTxfRp7190/ASnCu7gEc0+PnpVCpV/AUHMDwDDmHbiJdaHKP2+WvAjx+nvpqynED91r792NtV+TlA+4EGDDr1/A1QGfVPVVVhmGoJ9HKAz6OG/eli+4TpFsdoxSa5JEH+DvX082Kx/f0P8I/+NNYh91xyz/Rs+/S0tauiliRpeJAu2Q5rgcxTPNueW1RpEsa2C2TscoQL5APVXwVuOb/Cu2F5lAuND7PtLw0BQsh5swB67JqMBr6xE8LIu+xOuyfLQgj7SfhibfH78to/zKjmNbuBu/iK/N/z5Y5/F1N/fbkc0A8eZztb20P1D5yjhE1RID2vAAAAAElFTkSuQmCC",NAME:"嘉宾大作战"},3:{ICON:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAMAAAANxBKoAAABmFBMVEX6ZogAAACc0f/58fZdoP/4R3D2Omf+/f78gp9wn/8/avH4V3wzWevnvOWLsP9Rl//YyOhWkP/+p7r8kqtjl/+d3v3M0ekEI8N/qP+V6fFIfPjwp9j72uT6c5S/2ee7Ay6U2PsTNdTOHUb7m7Lv8PX64+r8mtdeqvORw//4xdP4iKnw+/pBXezysuFwvO36tsf9gsYoSdFOh/3h9fXY3fOz5O2M2ep8k+es6N39js/S9/Nms/O5w/BLfebG1N/30t0pUtzRxtjaudTnoLsuSZDfRGk0NTiayvbl6fPE8vJWiuxFdOyouejsVHfVK1P1NWKVyP9/uP+p0/LU7vCc2e/N5+p4yue13+Lc2OIlR+FYk9/lr9d5jNYbQtJlfs3dsMtSbsP+crMQEhj2N2RNmvre2+u1sM/H0veYs/e68udpot+Hp9zyk8YzPmIjIyPq9PP1OWXP5+/Rz+fyNmJWne08WajgjaFqb4DINVhQTlAUIEO85+Z6nv6Xyf+Uk5TVa4RQlf/F5+nkweSo596azf9Kj//yMmDZyeqpJg26AAAAiHRSTlOZAJmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZKZmZmZmZmZR0YTmZmZmZmZmZmZmZmZmZmZmZmNRRMKmZmZmZmZmZl5c0xDE5mZmZmZmZmLfHOZmXNzc3NgYGBfTEn7fQAABABJREFUSMdl1HlXElEcxvFrV7wDQ+UAYQ2jQQzFUiASS6aCG7ivue+WVmou7fu+vO2e39yZONj3lIc/PveZO3qUNcn2z358EEJcu3btit0Fp9qnmVlbSb33TYhSKSfEU2iS+NfQT3hHP/+wtCDmS0+FGG3crlebcfRZR0fH0nyqVEqJnNRh4PMRZ1gOBjtQbr7UbV88HHZI/BIVj9PHGdJ7rUEEPr+Eq3SDh6HrFMkTtVnoP62SI1yFxm1cl1epS/FPTWyvFQWlX8phnPR57Ebg++w5accvCBqXWA462PIz7PtFWPtAXweuMgoNbJGxAB1xo0Ag4HZ/ZBfRP9+3YIoU6bjcG89mx2ysaVrA0nWP9ZwYLYQvXHLbedp6HQwO3eD7+nDzQviqO4AqbZGNrNfBXV0au3hHaudQ34joLjy42gwQ0ALYJeyNRCIbHl1nd2zt1L8sRH507laz9WhEw+ORiu6RGoX+tTbQz4VIpdK3LmtapfjEDYu6KhFgaKJHyaSiKH4UHdxaFmiO9Ea22PP4iZuurHsjGGeh0M1ku4Igoz4rA+tm+qXWtdHW1pZdx4EAdj2I3UwyYJv7ZJkYF3Mv9a4stDzQU5G6nbF24kl73JkfORjTPaB2WVivhyHiqM4zGfDaqq6vRJClYb1S18fBo4DIMJZXe3W9EqEklho528hH1iR/ODZOj19ZWfFKfNvDVEvXOZbvFjeLd3msdbUXHEkLrZMmnvT75QEMbz6rvilynjhc7XWgnA5InSzj0TEftA/TQ9V35kSQJ/oPJnpJO1hrtrSfyzKKEiV9fPxuKMh9RlAcgEtLGFpVWYzzx8ViD+f+dgWft9/v7r4aMRSDixre9DbCT70Zkaa97Wp1vYcnGKOrbA5tY5oluMinm+XvAaitM5xPPKt+Ng+5gWtlsG6aOEif8un70tnapbosfVx9s21pNZkol8tRfJ/8Mb5wXrtcfnqz3d336zwDTU/Df2ilzEf+16qB8VdDmyMxBdj2DHyLi8X7t+r4MmlXOziK+YFQMvF6klFbMbwmNEEr9tDiCSNmJJI0qfiM2ODbYUsPGkI8wDhZSmOnpFtccC58iZZ54suN69cnpR7gIpeu669susXlpCS48frtdUq1XvMIV6FxRz9i+y0ttp8aHBwGpG4wFe0chfqFyC3GHT3Lmk4dPkxMNqlSnfdCA6YQi3lrXLv8C3/tXzxsQRa37ZSq4h1URnpZiEI+LfksdNM0sPSTw1NTU8OTsNRO572ba7jKaKE7TPxRE7TDERYZdmUMmDTeM5/CXzpgaOK4TEOkO0mHBnhKpBa7RQ2YNPXid6O270HaNE1RKJzsQTkafvq04QE7nVKvmebJydm+rf4CT4/No0nGqT8AAAAASUVORK5CYII=",NAME:"多人团战"},5:{ICON:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAMAAAANxBKoAAABmFBMVEUAAABqs/7wP3PsNWryRX6EvPb9zur64/Z3tfb92fFhrfr2T4z+bLCLv/r6XJzuc73/ibf+bJn6l9r48v4usf/9w+QYYP/q7P8zvP96sf9Arf/5j9T+ebr6Un4fd//+vOH+fq38oeD+st7/NWeVwv//eKT7Xokeav7+jcn8gsL47PtsqP/U4v8qpv+r0P7/p8Q90f+60/7/kcHyZJ7/P2swePv/qdXe5//J2/8hhP/kKl82x/9Dvf/+LltG2v8onf+ex/z+2MInlf/+mMj/1Lj/y6X9QHf/w5idt/VPlP45kP6hvej+5Nb/3839SITxO2jiG01Dyf8kjf9hn/1Jf/EST+D/tM//nL7+iavw0sL74+76pccZYurBhMbxabP/u4prrv/55fbo5fyEjdy7xNqfktKhaM+sscnYvrL/lIb/mWDob7trrv5srv/i6f79yubg2PU6a/WnrOjjspT/ZXj/a1702PDscKL65ff/1rvK3P/+uuHsdLpxtf7/v4/0gI/a0tRhdtDhib7KrK2Eeqz/p5HUmIRtp//NEUpiAAAAiHRSTlMAmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmYmZmZmZmZmZmZmZmZmJmZmZmZmZmZmZmZmZmZmZgNmZmZmZmZmZmZmZmZmZmZmZRME5mZmZmNcxOZmZmZmZmZmZZzQ0JCmZmZmZmZlJSGc2lpaU1HQ5mZmZmZmZlgIKhFOwAABBRJREFUSMdl1Wdb2mAYhuEsKiUkEAuBRAnUACktghhQUFS0ICLgHpW6rdXavfdef7vP+2YQ7KUfT+7jQTkCYbbQOXp3LRQaH08Xi7lcLpOpVOIcx0mSdOvw0eMFwtnxUd/Nm9euIZ5GPE6S8UoccdCovw7/9E1fXx/WBidliIwjLpn88LGFO1evXrU53BKX5fLqahm8xSXJ5fpsLl+50sPTHnl1enp6JByQJdAoEoXX7wZ7dSgjlxEemQwEwuVyOVwmXVgfots/ggbf5TCNcTgQxgUCpNEjmI4GgTvWYXoEAmw1LJt8gXgatXgf5jBdvoRnFk39mfiIdPd0mJZXJycnw8NWM3NrJY91yvWhoWg0avMQKYfBhgNzM6i5ubW1kqIsNrA+JPqvo4aiJs/JMn5nw6W1OaClElhNAU96PB6S6O/vx9w83YMwulVRDCmKWmFREQtuDwTa4MY4mvac7u2dLJZEDdvC+vp6vCCe7DSxxlnjFVk+9aIebigiqkBWPPFbWuF8dvaerYEHEW+e+LzeQcwLsKzsFtDHsaCdzpp6YMDwUeDRlNebugHBC+7Du9N2G9wit65t7LTaWA+g8HowesOLscH3n4vK5q7UaEiadtZqtdpNS9/GjcLi4GAK+xSMi9rmhqRIDXFjp91utdyGvjFq5R+EUjg0vrmpFDYkUfxZnW23v3kM7XcUiw2awfjmrqaJmvi9XqtWq01Dp2JOnfB6Tcx7XzTwn/FPvVar7bgNHUvEHCUErxnPj47D/0X8dVGv12tNEuuULgiJboKQtLX3TSizfuvs5cFB/dyNdYqfTwrOkhHebjSU4TiX6+zludtNkqDnlxgmEkkmkzaOsLxu8WcVpF1uyNQsQ0VQSRRgisWQRf3gLE2ammcphqGNV4ClKNaMh98XpoaQVpcSCVZP0hMTyxRumWbYbnswbl/iItS8P8sLfp2iJ+hliKYZp9ZB29txQlWTWT+/neUZmp6AaIpxxLKArcPdGSKvqneyQmzLn2QoGqIwsn4Z0Pbh8RzxQFUjWb+Q3RIYmoGzmd7e2hqmc0QVj8f8W9ss6J4YeOkeUHOby+WInQd5GN9OZLd0OONSjN7s6kwxR7yvvlLzePwOtULRziiGDz7LWJorFj8QndnfeFzYBo1I94f1X4EnTLFi8Ew6/YRYqNZgPJGFTwi1suIcjg0Zj69QjgPtKqbTxwTxvgaXz8PnYz6P9AT+oRkh232UpmE+Mz7+AX031A9eq6qaz6tTU4xuDvO3ex7roXQavmKOCejLwUV+ClKX9n0+naLRwfDgvfwtEHoCFvGL14DndR9qX9f9Y2NDwIOY27pDmH19yy/xPrvroC+P34Rlq7uffI4Gxv7jR+hmh//66aGlU2M9/N1RZ8FU/wAPz+iX3XJDDQAAAABJRU5ErkJggg==",NAME:"跨房对战"},6:{ICON:o,NAME:"嘉宾星愿瓶"}},E={NONEEDED:"rgba(255, 255, 255, 0.24)",YELLOW:"linear-gradient(100.41deg, #F9C745 33.39%, #F6B858 97.58%),linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6))",PURPLE:"linear-gradient(100.41deg, #F1EDFE 33.39%, #B78FDB 97.58%),linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6))",GROWN:"linear-gradient(100.41deg, #FFF5EF 33.39%, #D78655 97.58%),linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6))",SLIVER:"linear-gradient(100.41deg, #F2F9FE 33.39%, #7DA2C9 97.58%),linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6))"},p={LIGHT:"已点亮",NOTLIGHT:"未点亮"},S={NOSEND:0,TOP1:1,TOP3:3,OUT99:99,OUT99_STRING:"99+"};var P={NONE:0,0:"NONE",RED:1,1:"RED",BULE:2,2:"BULE"};let f={4:"boom",2:"request_song",3:"grouppk",5:"room_grouppk"},b={Battle:"battle",Contribution:"contribution",Anchor:"anchor",Guest:"guest",Click:"click",Show:"show",AudienceHonorSupport:"audiencehornor_ranksupport",ONE:"1",TWO:"2",Introduction:"introduction",Honor:"hornor"},w="2",k={Border:"1px solid #fff",None:"none",White:"#fff",Black:"#2E1D52"};var y={HOST_ROOM:"host_room",ANCHOR_GUEST:"anchor_guest",AUDIENCE_GUEST:"audience_guest",AUDIENCE:"audience"},C={GIFT_ICON:"gift_icon",GUEST_RANKLIST:"guest_ranklist"}},907208:function(e,t,i){i.d(t,{CW:function(){return v},Cf:function(){return r},KR:function(){return _},Lj:function(){return c},d5:function(){return m},hN:function(){return a},ps:function(){return d}}),i(490629);let o=new Set(["111111"]),s=e=>null==e?"":String(e).trim(),n=e=>{let t=s(e);return!t||o.has(t)},r=e=>{let t=s(e);return n(t)?"":t},a=(e,t)=>{let i=s(e),o=s(t);return n(i)&&o?o:i},l=e=>{if(!e)return e;let t=a(e.id_str,e.webcast_uid);return t&&t!==e.id_str&&(e.id_str=t),e},v=(e,t,i)=>e?(void 0===e.__privacyRawIdStr&&(e.__privacyRawIdStr=s(null!=t?t:e.id_str)),void 0===e.__privacyRawSecUid&&(e.__privacyRawSecUid=s(null!=i?i:e.sec_uid)),e):e,_=e=>s(e&&("__privacyRawIdStr"in e?e.__privacyRawIdStr:null==e?void 0:e.id_str)),m=e=>s(e&&("__privacyRawSecUid"in e?e.__privacyRawSecUid:null==e?void 0:e.sec_uid)),d=e=>{if(!e)return e;v(e),l(e);let t=r(e.sec_uid);return t!==e.sec_uid&&(e.sec_uid=t),e},c=e=>!!e&&(!!e.webcast_private&&!e.can_view_webcast_private||n(e.id_str))},336788:function(e,t,i){i.d(t,{P:function(){return S},n:function(){return h}}),i(679308),i(490629);var o=i(897471),s=i.n(o),n=i(618759),r=i(795653),a=i(103680),l=i(915821),v=i(396868),_=i(312923),m=i(886363),d=i(253642),c=i(51061);let u=async()=>Promise.all([Promise.all([i.e("33733"),i.e("2822"),i.e("33706"),i.e("31972"),i.e("82955")]).then(i.bind(i,979866)),Promise.all([i.e("33733"),i.e("31972"),i.e("8855")]).then(i.bind(i,887649))]).then(e=>{let[{singleEngineInstance:t},{VERTC:i}]=e;return{VERTC:i,singleEngineInstance:t}}),h=e=>u().then(async t=>{let{VERTC:i,singleEngineInstance:o}=t,{linkRoomType:a}=e||{};return await o({linkRoomType:a}),i.enumerateDevices().then(e=>{let t=(0,n.DT)()&&(0,r.O)(),i=(0,c.s)(),o=!!(null==i?void 0:i.liveDeviceGroupIdFilter),a=e.filter(e=>"audioinput"===e.kind&&("default"!==e.deviceId||t)),l=e.filter(e=>"videoinput"===e.kind&&e.deviceId&&("default"!==e.deviceId||t)),v=o?a:s()(a,"groupId"),_=o?l:s()(l,"groupId");try{var m;let t=(0,d.M)();(null==t?void 0:null===(m=t.linkmicStore)||void 0===m?void 0:m.setAllDevices)&&t.linkmicStore.setAllDevices({allDevices:e,audioInputs:v,videoInputs:_})}catch(e){}return{audioInputs:v,videoInputs:_}})}),g=async(e,t)=>"granted"===(await a.invoke("GET_MEDIA_ACCESS_STATUS",{data:e})).data||!!(await a.invoke("ASK_FOR_MEDIA_ACCESS",{data:e})).data||(t&&v.F.info(t),!1),E=async e=>{let{VERTC:t}=await u();return await t.enableDevices(e)},p=(0,_.ZP)(E,{cacheKey:e=>{let[t]=e,i=!t||!1!==t.audio,o=!t||!1!==t.video;return`${i?1:0}-${o?1:0}`}}),S=async e=>{var t,i;if((null===(i=(0,r.fV)())||void 0===i?void 0:null===(t=i.os)||void 0===t?void 0:t.toLowerCase())==="mac"&&(0,n.DT)()){let{data:t}=await a.invoke("GET_VERSION"),i=t?null==t?void 0:t.version:"",o=!1,s=!1;return(0,l.y)(i,">=","1.1.0")?(s=await g("microphone","请授权扬声器与麦克风权限, 否则无法连麦"))&&e===m.j5.CAMERA&&(o=(o=await g("camera","请授权摄像头权限, 否则无法连麦"))||await g("screen","请授权摄像头权限, 否则无法连麦")):v.F.info("当前版本暂不支持该功能,请升级至最新版本体验"),{video:o,audio:s}}return p({audio:!0,video:e===m.j5.CAMERA}).then(e=>{{var t,i,o,s;let{rtcEvent:n}=window.__STORE__.eventStore;n.livesdkRtcAudioVideoAuthEvent({audio:e.audio,video:e.video,audioErrorMessage:(null==e?void 0:null===(t=e.audioExceptionError)||void 0===t?void 0:t.message)||"",audioErrorName:(null==e?void 0:null===(i=e.audioExceptionError)||void 0===i?void 0:i.name)||"",videoErrorMessage:(null==e?void 0:null===(o=e.videoExceptionError)||void 0===o?void 0:o.message)||"",videoErrorName:(null==e?void 0:null===(s=e.videoExceptionError)||void 0===s?void 0:s.name)||""})}return e}).catch(e=>{{var t;let{rtcEvent:i}=window.__STORE__.eventStore;i.livesdkRtcAudioVideoAuthFailEvent({error:(null===(t=JSON)||void 0===t?void 0:t.stringify(e))||""})}return{video:!1,audio:!1}})}},484002:function(e,t,i){i.d(t,{Qx:function(){return a},ic:function(){return v},ut:function(){return l}});var o=i(629686),s=i(402748);i(490629),i(591964);var n=i(156674),r=i.n(n);let a=e=>{let t=r()(e),i=null==t?void 0:t.findIndex(e=>{var t,i,o;return null==e?void 0:null===(o=e.user)||void 0===o?void 0:null===(i=o.content)||void 0===i?void 0:null===(t=i.linkmic_audience_content)||void 0===t?void 0:t.is_enlarged});if(-1!==i&&0!==i){let[e,...n]=t,r=n.filter(e=>(null==e?void 0:e.idx)!==i).filter(t=>{var i,o,s,n;return(null==t?void 0:null===(o=t.user)||void 0===o?void 0:null===(i=o.user)||void 0===i?void 0:i.id_str)!==(null==e?void 0:null===(n=e.user)||void 0===n?void 0:null===(s=n.user)||void 0===s?void 0:s.id_str)});return[t[i],e,...r].reduce((e,t,i)=>(0,s._)((0,o._)({},e),{[i]:t}),{})}return e},l=e=>{let t=r()(e);return null==t?void 0:t.findIndex(e=>{var t,i,o;return null==e?void 0:null===(o=e.user)||void 0===o?void 0:null===(i=o.content)||void 0===i?void 0:null===(t=i.linkmic_audience_content)||void 0===t?void 0:t.is_enlarged})},v=e=>-1!==l(e)},240686:function(e,t,i){i.d(t,{S:function(){return n}});var o=i(396868),s=i(136940);let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"购买门票后可使用该功能";(0,s.ys)(e),o.F.info(t)}},136940:function(e,t,i){i.d(t,{B5:function(){return h},U0:function(){return c},Wr:function(){return l},c9:function(){return v},dL:function(){return u},dh:function(){return g},iF:function(){return _},t4:function(){return d},ys:function(){return m},zq:function(){return a}});var o=i(629686),s=i(402748),n=i(620589),r=i(142689);let a=e=>{window.collectEvent("livesdk_live_paidlive_try_button_show",(0,s._)((0,o._)({},(0,r.K4)(),(0,n.aV)(),(0,n.Nu)(),(0,n.UV)()),{watch_type:e}))},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_live_paidlive_try_button_show",(0,o._)({},e))},v=e=>{window.collectEvent("livesdk_paidlive_buyticket_icon_click",(0,s._)((0,o._)({},(0,r.K4)(),(0,n.aV)(),(0,n.Nu)(),(0,n.UV)(),(0,r.xA)()),{room_type:"live",watch_type:e}))},_=e=>{window.collectEvent("livesdk_paidlive_buyticket_toolbar_show",(0,s._)((0,o._)({},(0,r.K4)(),(0,r.xA)(),(0,n.UV)(),(0,r.Yi)()),{room_type:"live",watch_type:e}))},m=e=>{window.collectEvent("livesdk_paidlive_buyticket_toast_show",(0,o._)((0,s._)((0,o._)({},(0,r.K4)(),(0,r.xA)(),(0,n.UV)(),(0,r.Yi)()),{room_type:"live"}),e||{}))},d=()=>{window.collectEvent("livesdk_live_paidlive_tryend_show",(0,o._)({},(0,r.K4)(),(0,n.aV)(),(0,n.Nu)(),(0,n.UV)()))},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_live_paidlive_window_play",(0,o._)({},e))},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_live_paidlive_window_duration",(0,o._)({},e))},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_live_window_paidlive_tryend_show",(0,o._)({},e))},g=e=>{window.collectEvent("livesdk_rec_live_play",(0,o._)({},e))}},15155:function(e,t,i){i.d(t,{Az:function(){return s},Uz:function(){return o},cf:function(){return n}});var o={GIFT:1,1:"GIFT"},s={NORMAL:1,1:"NORMAL",LINK:2,2:"LINK"};let n=[1]},377228:function(e,t,i){i.d(t,{Gn:function(){return s},IS:function(){return o},TV:function(){return n}});let o="_douyin_live_scroll_container_",s="live_modal_user_popup_div",n="live-player-remove-z-index"},584293:function(e,t,i){i.d(t,{_:function(){return s},m:function(){return o}});let o={HOT_LIVE:"/hot_live",HOME:"/",ERROR:"/error/:errorCode",LIVING:"/:webRid",DOUYIN_LIVING:"/live/:webRid",DOUYIN_RECOMMEND_LIVING:"/root/live/:webRid",DOUYIN_FOLLOW_LIVING:"/follow/live/:webRid",LIVING_COMMENT:"/comment/:roomid",CATEGORY:"/category/:categoryId",CATEGORY_NEW:"/categorynew/:categoryId",IFRAME:"/iframe/:webRid",VIDEO_DOMAIN_IFRAME:"/live/iframe/:webRid"},s=[{path:o.CATEGORY,end:!0},{path:o.HOT_LIVE,end:!0},{path:o.HOME,end:!0},{path:o.ERROR,end:!0},{path:o.IFRAME,end:!0},{path:o.VIDEO_DOMAIN_IFRAME,end:!0},{path:o.LIVING,end:!0},{path:o.LIVING_COMMENT,end:!0},{path:o.DOUYIN_LIVING,end:!0},{path:o.DOUYIN_FOLLOW_LIVING,end:!0},{path:o.DOUYIN_RECOMMEND_LIVING,end:!0}]},656553:function(e,t,i){i.d(t,{TG:function(){return o},WL:function(){return _},Xk:function(){return r},aN:function(){return s},gL:function(){return m},gX:function(){return a},g_:function(){return n},jx:function(){return d},oP:function(){return l},qY:function(){return v}});var o={DOUBLE:2,2:"DOUBLE",MULTI:6,6:"MULTI"},s={QUIT:"4",UPDATE:"202",RESTART:"201",END:"205"},n={LANDSCAPE:1,1:"LANDSCAPE",VERTICAL:0,0:"VERTICAL"},r={EQUAL:0,0:"EQUAL",FOCUS:1,1:"FOCUS",ZOOM:2,2:"ZOOM"},a={SHOW_SCORE_ZERO:0,0:"SHOW_SCORE_ZERO",SHOW_SCORE:1,1:"SHOW_SCORE",NOT_SHOW_SCORE:2,2:"NOT_SHOW_SCORE"},l={NORMAL:0,0:"NORMAL",FORCE:1,1:"FORCE",RESTART:4,4:"RESTART",CUT_SHORT_WIN:6,6:"CUT_SHORT_WIN",CHANGE:12,12:"CHANGE"},v={WIN:1,1:"WIN",LOSE:2,2:"LOSE",DRAW:3,3:"DRAW"},_={NORMAL:0,0:"NORMAL",VOTE:1,1:"VOTE",C_ENLARGE:6,6:"C_ENLARGE"};let m={0:"PKModType_Default",1:"PKModType_Vote",2:"PKModType_Breakthrough",3:"PKModType_Survival",4:"PKModType_Custom",6:"c_position"},d={0:"BattleEndReason_TimeUp",1:"BattleEndReason_CutShort",2:"BattleEndReason_ModeWin",3:"BattleEndReason_StartPKGame",4:"BattleEndReason_InBattleRestart",5:"BattleEndReason_MultipleMatches3",6:"BattleEndReason_TeamTaskInstantKill",7:"BattleEndReason_ScoreControl",8:"BattleEndReason_RivalRTCUnlink",11:"BattleEndReason_FinishRoom",12:"BattleEndReason_NormalToMultiple",13:"BattleEndReason_MultipleInvite",14:"BattleEndReason_ChangeMode",16:"BattleEndReason_StartOpenGame"}},886363:function(e,t,i){i.d(t,{j5:function(){return l},lC:function(){return r},oh:function(){return s},pv:function(){return a},xD:function(){return n}});var o=i(950257);let s={[o.yP.VIDEO_1V6]:{frameRate:30,width:256,height:256,maxKbps:800},[o.yP.VIDEO_1V8]:{frameRate:30,width:256,height:256,maxKbps:800},[o.yP.VIDEO_GRID]:{frameRate:30,width:240,height:240,maxKbps:800},[o.yP.VIDEO_6V6]:{frameRate:30,width:240,height:320,maxKbps:800}},n={2:{frameRate:15,width:360,height:640,maxKbps:800},3:{frameRate:15,width:360,height:320,maxKbps:500},4:{frameRate:15,width:360,height:320,maxKbps:500},5:{frameRate:15,width:240,height:320,maxKbps:400},6:{frameRate:15,width:240,height:320,maxKbps:400},7:{frameRate:15,width:240,height:240,maxKbps:280},8:{frameRate:15,width:240,height:240,maxKbps:280},9:{frameRate:15,width:240,height:240,maxKbps:280}},r={[o.yP.VIDEO_1V6]:{frameRate:30,width:256,height:256},[o.yP.VIDEO_GRID]:{frameRate:30,width:240,height:240},[o.yP.VIDEO_6V6]:{frameRate:30,width:240,height:320},[o.yP.VIDEO_DYNAMIC_FLOAT]:{frameRate:30,width:256,height:256}},a={2:{width:360,height:640,frameRate:30},3:{width:360,height:320,frameRate:30},4:{width:360,height:320,frameRate:30},5:{width:240,height:320,frameRate:30},6:{width:240,height:320,frameRate:30},7:{width:240,height:240,frameRate:30},8:{width:240,height:240,frameRate:30},9:{width:240,height:240,frameRate:30}};var l={MICROPHONE:0,0:"MICROPHONE",CAMERA:1,1:"CAMERA"}},335076:function(e,t,i){i.d(t,{CT:function(){return a},Uh:function(){return l}});var o=i(480333),s=i(629686),n=i(402748),r=i(764283),a={Invite:1,1:"Invite",Message:2,2:"Message"};class l{constructor(e){(0,o._)(this,"store",null),(0,o._)(this,"parserParams",e=>{var t,i,o,r,a;return(0,n._)((0,s._)({},null!=e?e:{}),{err:null==e?void 0:null===(t=e.err)||void 0===t?void 0:t.error,code:null!==(r=null==e?void 0:null===(i=e.err)||void 0===i?void 0:i.code)&&void 0!==r?r:"NOT_CATCH",message:null!==(a=null==e?void 0:null===(o=e.err)||void 0===o?void 0:o.message)&&void 0!==a?a:"NOT_CATCH"})}),(0,o._)(this,"getChoosePeopleInfo",()=>{try{let{linkmicStore:{choosePeopleArr:e,choosePeopleAll:t,choosePeopleShowTCC:i,choosePanelVisible:o,allowSendGiftGuest:s,useChoosePeopleFunc:n}}=this.store;return{choosePeopleArr:e,choosePeopleAll:t,choosePeopleShowTCC:i,choosePanelVisible:o,allowSendGiftGuest:s,useChoosePeopleFunc:n}}catch(e){}return{}}),(0,o._)(this,"getCommonInfo",()=>{try{var e,t,i;let{linkmicStore:{linkMicLayout:o,playModes:s,playModesPC:n,imLinkMicSeats:r,selectedLinkMicDevices:a},roomStore:{roomInfo:l},userStore:{userInfo:v}}=this.store,_=null===(i=Object.values(r).filter(e=>{var t,i;return(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)===v.id_str}))||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:null===(e=t.user)||void 0===e?void 0:e.linkmic_id_str;return{linkMicLayout:o,playModesPC:n,playModes:s,roomId:null==l?void 0:l.roomId,linkmicId:_,linkmicDevices:a}}catch(e){}return{}}),(0,o._)(this,"linkmicApplyClickLog",()=>{r.ZP.event("live_linkmic_apply_click",(0,s._)({},this.getCommonInfo()))}),(0,o._)(this,"linkmicDeviceChooseLog",e=>{r.ZP.event("live_linkmic_device_choose",(0,n._)((0,s._)({},this.getCommonInfo()),{devices:e}))}),(0,o._)(this,"linkmicApplyRequestLog",e=>{r.ZP.event("live_linkmic_apply_request",(0,n._)((0,s._)({},this.getCommonInfo()),{statusCode:e}))}),(0,o._)(this,"linkmicJoinChannelLog",e=>{r.ZP.event("live_linkmic_join_channel",(0,n._)((0,s._)({},this.getCommonInfo()),{statusCode:e}))}),(0,o._)(this,"linkmicJoinRTCRoomLog",e=>{r.ZP.event("live_linkmic_join_rtc_room",(0,n._)((0,s._)({},this.getCommonInfo()),{params:e}))}),(0,o._)(this,"linkmicCreateLocalStreamLog",e=>{r.ZP.event("live_linkmic_create_local_stream",(0,n._)((0,s._)({},this.getCommonInfo()),{params:e}))}),(0,o._)(this,"linkmicJoinRoomLog",e=>{r.ZP.event("live_linkmic_join_room",(0,n._)((0,s._)({},this.getCommonInfo()),{params:e}))}),(0,o._)(this,"linkmicCreateStreamsLog",e=>{r.ZP.event("live_linkmic_create_streams",(0,n._)((0,s._)({},this.getCommonInfo()),{params:e}))}),(0,o._)(this,"linkmicLeaveClickLog",()=>{r.ZP.event("live_linkmic_leave_click",(0,s._)({},this.getCommonInfo()))}),(0,o._)(this,"linkmicLeaveRequestLog",e=>{r.ZP.event("live_linkmic_leave_request",(0,n._)((0,s._)({},this.getCommonInfo()),{statusCode:e}))}),(0,o._)(this,"linkmicSilenceClickLog",()=>{r.ZP.event("live_linkmic_silence_click",(0,s._)({},this.getCommonInfo()))}),(0,o._)(this,"linkmicSilenceRequestLog",e=>{r.ZP.event("live_linkmic_silence_request",(0,n._)((0,s._)({},this.getCommonInfo()),{statusCode:e}))}),(0,o._)(this,"linkmicMuteAudioLog",e=>{r.ZP.event("live_linkmic_mute_audio",(0,n._)((0,s._)({},this.getCommonInfo()),{params:e}))}),(0,o._)(this,"linkmicUnsilenceClickLog",()=>{r.ZP.event("live_linkmic_unsilence_click",(0,s._)({},this.getCommonInfo()))}),(0,o._)(this,"linkmicStartAudioLog",()=>{r.ZP.event("live_linkmic_start_audio",(0,s._)({},this.getCommonInfo()))}),(0,o._)(this,"linkmicLeaveRoomLogicLog",e=>{r.ZP.event("live_linkmic_leave_room_logic",(0,n._)((0,s._)({},this.getCommonInfo()),{type:e}))}),(0,o._)(this,"linkmicLeaveRoomLog",e=>{r.ZP.event("live_linkmic_mute_audio",(0,n._)((0,s._)({},this.getCommonInfo()),{params:e}))}),(0,o._)(this,"linkmicLinkMessageImLog",e=>{r.ZP.event("live_linkmic_link_message_im",(0,n._)((0,s._)({},this.getCommonInfo()),{messageType:e}))}),(0,o._)(this,"linkmicLinkmicMethodImLog",e=>{r.ZP.event("live_linkmic_linkmic_method_im",(0,n._)((0,s._)({},this.getCommonInfo()),{messageType:e}))}),(0,o._)(this,"linkmicTeamfightMessageImLog",e=>{r.ZP.event("live_linkmic_teamfight_message_im",(0,n._)((0,s._)({},this.getCommonInfo()),{messageType:e}))}),(0,o._)(this,"linkmicSetRemoteVideoPlayerLog",(e,t)=>{r.ZP.event("live_linkmic_set_remote_video_player",(0,n._)((0,s._)({},this.getCommonInfo()),{uid:e,type:t}))}),(0,o._)(this,"linmicSetLocalVideoPlayerLog",()=>{r.ZP.event("live_linkmic_set_local_video_player",(0,s._)({},this.getCommonInfo()))}),(0,o._)(this,"linkmicVideoFirstFrameDecodedLog",e=>{r.ZP.event("live_linkmic_video_first_frame_decoded",(0,n._)((0,s._)({},this.getCommonInfo()),{userId:e}))}),(0,o._)(this,"linkmicAudioFirstFrameDecodedLog",e=>{r.ZP.event("live_linkmic_audio_first_frame_decoded",(0,n._)((0,s._)({},this.getCommonInfo()),{userId:e}))}),(0,o._)(this,"linkmicJoinRoomFailed",e=>{r.ZP.event("live_linkmic_joinroom_failed",(0,s._)({},this.getCommonInfo(),this.parserParams(e)))}),(0,o._)(this,"linkmicInviteLinkFailed",e=>{r.ZP.event("live_linkmic_invitelink_failed",(0,s._)({},this.getCommonInfo(),this.parserParams(e)))}),(0,o._)(this,"linkmicStartDeviceCapture",e=>{r.ZP.event("live_linkmic_start_device_capture_failed",(0,s._)({},this.getCommonInfo(),this.parserParams(e)))}),(0,o._)(this,"linkmicAIAnsOpen",e=>{r.ZP.event("live_linkmic_aians_open",(0,s._)({},this.getCommonInfo(),this.parserParams(e)))}),(0,o._)(this,"linkmicAIAnsCpuCritical",e=>{r.ZP.event("live_linkmic_aians_cpu_critical",(0,s._)({},this.getCommonInfo(),this.parserParams(e)))}),(0,o._)(this,"linkmicPublishStreamFailed",e=>{r.ZP.event("live_linkmic_publish_stream_failed",(0,s._)({},this.getCommonInfo(),this.parserParams(e)))}),(0,o._)(this,"linkmicVideoMountFailed",e=>{r.ZP.event("live_linkmic_video_mount_failed",(0,s._)({},this.getCommonInfo(),this.parserParams(e)))}),(0,o._)(this,"linkmicVideoAutoPlayFailed",e=>{r.ZP.event("live_linkmic_video_auto_play_failed",(0,s._)({},this.getCommonInfo(),this.parserParams(e)))}),(0,o._)(this,"linkmicVideoPlayerFailed",e=>{r.ZP.event("live_linkmic_video_player_failed",(0,s._)({},this.getCommonInfo(),this.parserParams(e)))}),(0,o._)(this,"sendGiftApiEvent",e=>{r.ZP.event("live_send_gift_api",(0,s._)({},this.getCommonInfo(),this.getChoosePeopleInfo(),e))}),(0,o._)(this,"sendGiftApiCbEvent",e=>{r.ZP.event("live_send_gift_api_cb",(0,s._)({},this.getCommonInfo(),this.getChoosePeopleInfo(),e))}),(0,o._)(this,"linkmicReadyToLink",e=>{r.ZP.event("live_linkmic_ready_to_link",(0,n._)((0,s._)({},this.getCommonInfo(),this.getChoosePeopleInfo()),{from:e}))}),(0,o._)(this,"linkmicJoinRTCSuccess",()=>{r.ZP.event("live_linkmic_join_rtc_success",(0,s._)({},this.getCommonInfo(),this.getChoosePeopleInfo()))}),(0,o._)(this,"linkmicJoinRTCFail",e=>{r.ZP.event("live_linkmic_join_rtc_fail",(0,s._)({},this.getCommonInfo(),this.parserParams(e),this.getChoosePeopleInfo()))}),(0,o._)(this,"landPageContainerErrorCapture",e=>{r.ZP.event("live_land_page_container_error_capture",(0,s._)({},this.getCommonInfo(),this.parserParams(e)))}),this.store=e}}},21660:function(e,t,i){i.d(t,{Z:function(){return d},p:function(){return m}});var o=i(480333),s=i(584293),n=i(201821),r=i(945027),a=i.n(r),l=i(650639),v=i(513565),_=i(731343),m={AUTO:0,0:"AUTO",ENABLE:1,1:"ENABLE",DISABLE:-1,"-1":"DISABLE"};class d extends n.Z{get isSpringSkin(){return!!this.resource}get isLiveDetail(){return!!(0,l.m)(s.m.LIVING,this.pathname)||!!(0,l.m)(s.m.DOUYIN_LIVING,this.pathname)}get isXiguaDomain(){return -1!==[v.LIVE_XIGUA_DOMAIN,v.XIGUA_DOMAIN].indexOf(this.domain)}get navigationCurrent(){return this.isLiveDetail?"":this.navigationSelected}get showNavigation(){let e=this.shouldShowModule(this.hardNavigation);return void 0!==e?e:(!this.domain||!this.isXiguaDomain)&&(!!(0,l.m)(s.m.HOT_LIVE,this.pathname)||!(this.isClient&&(0,l.m)(s.m.LIVING,this.pathname)||this.isClient&&(0,l.m)(s.m.DOUYIN_LIVING,this.pathname))&&[s.m.CATEGORY_NEW,s.m.CATEGORY,s.m.HOT_LIVE,s.m.HOME,s.m.LIVING,s.m.DOUYIN_LIVING].some(e=>!!(0,l.m)(e,this.pathname)))}get hideNavigation(){return!this.showNavigation}get showCategoryTab(){let e=this.shouldShowModule(this.hardCategoryTab);return void 0!==e?e:(!this.domain||!this.isXiguaDomain)&&![s.m.LIVING_COMMENT].some(e=>!!(0,l.m)(e,this.pathname))}get hideCategoryTab(){return!this.showCategoryTab}get showHeader(){let e=this.shouldShowModule(this.hardHeader);return void 0!==e?e:(!this.domain||!this.isXiguaDomain)&&![s.m.IFRAME,s.m.VIDEO_DOMAIN_IFRAME,s.m.LIVING_COMMENT].some(e=>!!(0,l.m)(e,this.pathname))||this.hidehead}get hideHeader(){return!this.showHeader}get showFooter(){let e=this.shouldShowModule(this.hardFooter);return void 0!==e?e:![s.m.LIVING_COMMENT,s.m.LIVING,s.m.DOUYIN_LIVING,s.m.DOUYIN_RECOMMEND_LIVING,s.m.DOUYIN_FOLLOW_LIVING,s.m.IFRAME].some(e=>!!(0,l.m)(e,this.pathname))}get hideFooter(){return!this.showFooter}get xiguaHeader(){return this.domain&&-1!==[v.LIVE_XIGUA_DOMAIN].indexOf(this.domain)}get showSideBar(){let e=this.shouldShowModule(this.hardSideBar);return void 0!==e?e:![s.m.IFRAME,s.m.VIDEO_DOMAIN_IFRAME,s.m.LIVING_COMMENT].some(e=>!!(0,l.m)(e,this.pathname))}get hideSideBar(){return!this.showSideBar}get showErrorStyle(){let e=this.shouldShowModule(this.hardSideBar);return void 0!==e?e:![s.m.ERROR].some(e=>!!(0,l.m)(e,this.pathname))}get hideErrorStyle(){return!this.showErrorStyle}shouldShowModule(e){return 1===e||-1!==e&&void 0}setHeaderOpacity(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.transparentHeader=e}setHardCategoryTab(e){this.hardCategoryTab=e}setHardHeader(e){this.hardHeader=e}setHardNavigation(e){this.hardNavigation=e}setHardSideBar(e){this.hardSideBar=e}constructor(){var e;super(),e=this,(0,o._)(this,"disableUnLoginFilter",!1),(0,o._)(this,"rawThemeConfig",{}),(0,o._)(this,"domain","live.douyin.com"),(0,o._)(this,"pathname",""),(0,o._)(this,"isClient",!1),(0,o._)(this,"navigationSelected","live"),(0,o._)(this,"hidehead",!1),(0,o._)(this,"forceTheme",void 0),(0,o._)(this,"hardNavigation",0),(0,o._)(this,"hardCategoryTab",0),(0,o._)(this,"hardHeader",0),(0,o._)(this,"hardFooter",0),(0,o._)(this,"hardSideBar",0),(0,o._)(this,"hardErrorStyle",0),(0,o._)(this,"transparentHeader",!1),(0,o._)(this,"specialBanner",!1),(0,o._)(this,"hasRelevantRoom",!0),(0,o._)(this,"immersive",!1),(0,o._)(this,"programmeFill",void 0),(0,o._)(this,"resource",void 0),(0,o._)(this,"playerMargin",0),(0,o._)(this,"showAiButtonOnToolbar",!1),(0,o._)(this,"reset",()=>{this.disableUnLoginFilter=!1,this.rawThemeConfig={},this.domain="live.douyin.com",this.pathname="",this.isClient=!1,this.navigationSelected="live",this.hidehead=!1,this.forceTheme=void 0,this.hardNavigation=0,this.hardCategoryTab=0,this.hardHeader=0,this.hardFooter=0,this.hardSideBar=0,this.hardErrorStyle=0,this.transparentHeader=!1,this.specialBanner=!1,this.hasRelevantRoom=!0,this.immersive=!1,this.programmeFill=void 0,this.resource=void 0,this.playerMargin=0,this.showAiButtonOnToolbar=!1}),(0,o._)(this,"makeObservable",()=>{(0,_.makeObservable)(this,{disableUnLoginFilter:_.observable,rawThemeConfig:_.observable,domain:_.observable,pathname:_.observable,isClient:_.observable,navigationSelected:_.observable,hidehead:_.observable,forceTheme:_.observable,hardNavigation:_.observable,hardCategoryTab:_.observable,hardHeader:_.observable,hardFooter:_.observable,hardSideBar:_.observable,hardErrorStyle:_.observable,transparentHeader:_.observable,specialBanner:_.observable,hasRelevantRoom:_.observable,programmeFill:_.observable,immersive:_.observable,resource:_.observable,playerMargin:_.observable,showAiButtonOnToolbar:_.observable,setHint:_.action,setModule:_.action,setShowAiButtonOnToolbar:_.action,navigationCurrent:_.computed,showNavigation:_.computed,showCategoryTab:_.computed,showHeader:_.computed,showFooter:_.computed,showSideBar:_.computed,showErrorStyle:_.computed,hideNavigation:_.computed,hideCategoryTab:_.computed,hideHeader:_.computed,hideFooter:_.computed,hideSideBar:_.computed,hideErrorStyle:_.computed,xiguaHeader:_.computed,isLiveDetail:_.computed,setHardCategoryTab:_.action,isSpringSkin:_.computed})}),(0,o._)(this,"setModule",function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e[`hard${a()(t)}`]=i}),(0,o._)(this,"setHint",function(t,i){let o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3?arguments[3]:void 0;e.domain=t,e.pathname=i,e.isClient=o,e.hidehead=!!s}),(0,o._)(this,"setShowAiButtonOnToolbar",e=>{this.showAiButtonOnToolbar=e}),(0,o._)(this,"setImmersive",e=>{this.immersive=e}),(0,o._)(this,"setSpecialBanner",e=>{this.specialBanner=e}),(0,o._)(this,"setResource",e=>{this.resource=e}),(0,o._)(this,"setForceTheme",e=>{this.forceTheme=e});this.makeObservable()}}},201821:function(e,t,i){i.d(t,{Z:function(){return s}});var o=i(480333);class s{makeObservable(){}constructor(){(0,o._)(this,"hydrate",e=>{for(let t in e)"store"!==t&&(this[t]=e[t])}),(0,o._)(this,"reset",()=>{this.store=null})}}},253642:function(e,t,i){let o;i.d(t,{M:function(){return tb}});var s=i("480333");i("490629"),i("14275"),i("759943");var n=i("397176"),r=i("964591"),a=i("201821"),l=i("731343");class v extends a.Z{constructor(){super(),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{userInfo:l.observable,setUserInfo:l.action,headerUserInfo:l.observable,setHeaderUserInfo:l.action,odin:l.observable,setOdin:l.action,userHandlerPause:l.observable,setPlayerUserHandlePause:l.action})}),(0,s._)(this,"userInfo",{}),(0,s._)(this,"headerUserInfo",{isLogin:void 0,isSpider:!1,info:{},webcastInfo:{},statusCode:0}),(0,s._)(this,"odin",{}),(0,s._)(this,"userHandlerPause",!1),(0,s._)(this,"setPlayerUserHandlePause",e=>{this.userHandlerPause=e}),(0,s._)(this,"setUserInfo",e=>this.userInfo=e),(0,s._)(this,"setHeaderUserInfo",e=>this.headerUserInfo=e),(0,s._)(this,"setOdin",e=>this.odin=e);this.makeObservable()}}var _=i("629686");i("706056"),i("414931"),i("374954");var m=i("762080"),d=i("198412"),c=i.n(d),u=i("5784"),h=i.n(u),g=i("889429"),E=i("420641"),p=i("631979"),S=i("66948");let P=S.TCC_DEFAULT_VALUE_MAP.get(S.TccKey.LiveStaticParams);class f extends a.Z{get isDanmakuFeatureOn(){return!this.isMedia&&this.LandscapeChat!==m.xW.OFF||this.isDanmakuFeatureOnControl}get isSpringSkin(){var e,t;return!!(null===(t=this.store)||void 0===t?void 0:null===(e=t.layoutStore)||void 0===e?void 0:e.resource)}get hideBanner(){return[p.kx.KICK_OUT,p.kx.LIVE_FINISH].includes(this.playerCoverText)}get isLiveEnded(){var e;return Number(null===(e=this.roomInfo.room)||void 0===e?void 0:e.status_str)===m.LV.END}get isFixedChat(){var e,t,i;return(null===(i=this.roomInfo)||void 0===i?void 0:null===(t=i.room)||void 0===t?void 0:null===(e=t.room_auth)||void 0===e?void 0:e.FixedChat)===1}get roomStatus(){var e,t;return null===(t=this.roomInfo)||void 0===t?void 0:null===(e=t.room)||void 0===e?void 0:e.status}get anchorId(){var e,t;return(null===(t=this.roomInfo)||void 0===t?void 0:null===(e=t.anchor)||void 0===e?void 0:e.id_str)||""}get roomId(){var e;return null===(e=this.roomInfo)||void 0===e?void 0:e.roomId}get live_room_mode(){var e,t;return null===(t=this.roomInfo)||void 0===t?void 0:null===(e=t.room)||void 0===e?void 0:e.live_room_mode}get isAppOnly(){var e,t,i;return this.roomInfo.enter_mode===m.gE.APP||(null===(t=this.store)||void 0===t?void 0:null===(e=t.linkmicStore)||void 0===e?void 0:e.isPlayModeNotSupport)||this.inRoomOnAppView&&(null===(i=this.roomInfo.room)||void 0===i?void 0:i.status)!==m.LV.END}get LandscapeChat(){var e,t;return null===(t=this.roomInfo.room)||void 0===t?void 0:null===(e=t.room_auth)||void 0===e?void 0:e.LandscapeChat}get coverUrl(){var e,t,i,o;return null===(o=this.roomInfo)||void 0===o?void 0:null===(i=o.room)||void 0===i?void 0:null===(t=i.cover)||void 0===t?void 0:null===(e=t.url_list)||void 0===e?void 0:e[0]}get isMedia(){var e,t;return(null===(t=this.roomInfo)||void 0===t?void 0:null===(e=t.room)||void 0===e?void 0:e.live_room_mode)===m.ke.MEDIA}get isDoubleScreen(){return this.isPullDataExsit&&!(0,g.G6)()||this.isUgcLive}get isPullDataExsit(){var e,t,i,o,s,n,r;return!!(Object.values((null===(t=this.roomInfo)||void 0===t?void 0:null===(e=t.web_stream_url)||void 0===e?void 0:e.pull_datas)||{}).length>0)&&!!(Object.values((null===(s=this.roomInfo)||void 0===s?void 0:null===(o=s.room)||void 0===o?void 0:null===(i=o.stream_url)||void 0===i?void 0:i.pull_datas)||{}).length>0)&&Object.values(null===(r=this.roomInfo)||void 0===r?void 0:null===(n=r.web_stream_url)||void 0===n?void 0:n.pull_datas).every(e=>{var t,i;return(null==e?void 0:null===(t=e.extension)||void 0===t?void 0:t.camera_clip)&&(null==e?void 0:null===(i=e.extension)||void 0===i?void 0:i.game_clip)||(0,E.VM)(null==e?void 0:e.extension)})}get hasProgramme(){return this.enableProgramme&&this.abProgramme}get isAnchorBan(){return 2===c()(this.roomInfo,"room.others.mosaic_version",0)&&0!==c()(this.roomInfo,"room.mosaic_status",0)||this.imAnchorBan}get longtouchShow(){var e;let t=c()(this.roomInfo,"room.live_room_mode"),i=Number(null===(e=this.roomInfo.room)||void 0===e?void 0:e.status_str)===m.LV.END;return t===m.ke.MEDIA?2!==c()(this.roomInfo,"room.room_auth.LongTouch",0):this.longtouchShowTcc&&!i}constructor(e){var t,i,o;super(),t=this,(0,s._)(this,"roomInfo",{}),(0,s._)(this,"emojiList",[]),(0,s._)(this,"emojiReflex",{}),(0,s._)(this,"liveStatus",m.zZ.NORMAL),(0,s._)(this,"likeStatus",{}),(0,s._)(this,"followInfo",{}),(0,s._)(this,"isUgcLive",!1),(0,s._)(this,"isGameHiddle",!1),(0,s._)(this,"forceEnableH265",!1),(0,s._)(this,"hasAppointment",!1),(0,s._)(this,"enableProgramme",!1),(0,s._)(this,"abProgramme",!1),(0,s._)(this,"notSupportReason",m.Ly.UNKNOWN),(0,s._)(this,"pausePop",!1),(0,s._)(this,"longtouchList",(null===(o=this.store)||void 0===o||null===(i=o.feedStore)||void 0===i||i.isActive,[])),(0,s._)(this,"longtouchShowTcc",!1),(0,s._)(this,"isAsianGames",!1),(0,s._)(this,"usePageUrlBannerId",[]),(0,s._)(this,"relevantRooms",[]),(0,s._)(this,"danmakuQueue",[]),(0,s._)(this,"danmakuQueueLength",0),(0,s._)(this,"danmakuSwitch",!0),(0,s._)(this,"isFocus",!1),(0,s._)(this,"imAnchorBan",!1),(0,s._)(this,"isOlympicGame",!1),(0,s._)(this,"isEnableOlympic4k",!1),(0,s._)(this,"foldChatroom",!1),(0,s._)(this,"activityEmojiGroup",[]),(0,s._)(this,"foreign_user",void 0),(0,s._)(this,"store",void 0),(0,s._)(this,"inRoomOnAppView",!1),(0,s._)(this,"isVerified",!1),(0,s._)(this,"isPlayer",!0),(0,s._)(this,"playerCoverText",""),(0,s._)(this,"refreshPlayer",!1),(0,s._)(this,"recommendOnEndRoom",[]),(0,s._)(this,"isPip",!1),(0,s._)(this,"isDanmakuFeatureOnControl",!0),(0,s._)(this,"isShowRefreshPage",!1),(0,s._)(this,"disableLiveRecommendOnEnd",!1),(0,s._)(this,"isDoubleLike",!1),(0,s._)(this,"pollingFrequency",{}),(0,s._)(this,"liveStaticParams",P),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{roomInfo:l.observable,emojiList:l.observable,emojiReflex:l.observable,liveStatus:l.observable,likeStatus:l.observable,followInfo:l.observable,setRoomInfo:l.action,setFollowStatus:l.action,setEmojiList:l.action,setEmojiReflex:l.action,setRoomUserStats:l.action,setRoomStatus:l.action,setLiveStatus:l.action,setFollowInfo:l.action,isUgcLive:l.observable,isGameHiddle:l.observable,pausePop:l.observable,setUgcLive:l.action,setGameHiddle:l.action,setPausePop:l.action,hasAppointment:l.observable,enableProgramme:l.observable,abProgramme:l.observable,hasProgramme:l.computed,isAnchorBan:l.computed,forceEnableH265:l.observable,notSupportReason:l.observable,longtouchShow:l.computed,longtouchList:l.observable,setLongtouchList:l.action,setNotSupportReason:l.action,longtouchShowTcc:l.observable,setLongtouchShowTcc:l.action,usePageUrlBannerId:l.observable,setUsePageUrlBannerId:l.action,isAsianGames:l.observable,setIsAsianGames:l.action,relevantRooms:l.observable,danmakuQueue:l.observable,setDanmakuQueue:l.action,danmakuQueueLength:l.observable,danmakuSwitch:l.observable,setDanmakuSwitch:l.action,foldChatroom:l.observable,setFoldChatroom:l.action,isFocus:l.observable,setIsFocus:l.action,imAnchorBan:l.observable,setImAnchorBan:l.action,isOlympicGame:l.observable,setIsOlympicGame:l.action,isEnableOlympic4k:l.observable,setIsEnableOlympic4k:l.action,activityEmojiGroup:l.observable,setActivityEmojiGroup:l.action,setActivityEmojiGroupForce:l.action,setForeignUser:l.action,foreign_user:l.observable,isPullDataExsit:l.computed,isDoubleScreen:l.computed,isMedia:l.computed,LandscapeChat:l.computed,isAppOnly:l.computed,inRoomOnAppView:l.observable,setInRoomOnAppView:l.action,live_room_mode:l.computed,roomId:l.computed,anchorId:l.computed,roomStatus:l.computed,isVerified:l.observable,setIsVerified:l.action,isPlayer:l.observable,setIsPlayer:l.action,isFixedChat:l.computed,playerCoverText:l.observable,setPlayerCoverText:l.action,refreshPlayer:l.observable,setRefreshPlayer:l.action,recommendOnEndRoom:l.observable,setRecommendOnEndRoom:l.action,hideBanner:l.computed,isPip:l.observable,setIsPip:l.action,isDanmakuFeatureOn:l.computed,setIsDanmakuFeatureOn:l.action,isDanmakuFeatureOnControl:l.observable,isShowRefreshPage:l.observable,setIsShowRefreshPage:l.action,disableLiveRecommendOnEnd:l.observable,setDisableLiveRecommendOnEnd:l.action,isDoubleLike:l.observable,setIsDoubleLike:l.action,pollingFrequency:l.observable,setPollingFrequency:l.action,liveStaticParams:l.observable,setLiveStaticParams:l.action})}),(0,s._)(this,"setIsDoubleLike",e=>{this.isDoubleLike=e}),(0,s._)(this,"setDisableLiveRecommendOnEnd",e=>{this.disableLiveRecommendOnEnd=e}),(0,s._)(this,"setIsShowRefreshPage",e=>{this.isShowRefreshPage=e}),(0,s._)(this,"setIsPip",e=>{this.isPip=e}),(0,s._)(this,"setIsDanmakuFeatureOn",e=>{this.isDanmakuFeatureOnControl=e}),(0,s._)(this,"setRecommendOnEndRoom",e=>{this.recommendOnEndRoom=e}),(0,s._)(this,"setRefreshPlayer",e=>{this.refreshPlayer=e}),(0,s._)(this,"setPlayerCoverText",e=>{this.playerCoverText=e}),(0,s._)(this,"setIsPlayer",e=>{this.isPlayer=e}),(0,s._)(this,"setIsVerified",e=>{this.isVerified=e}),(0,s._)(this,"setInRoomOnAppView",e=>{this.inRoomOnAppView=e}),(0,s._)(this,"setUgcLive",e=>{this.isUgcLive=e}),(0,s._)(this,"setGameHiddle",e=>{this.isGameHiddle=e}),(0,s._)(this,"setNotSupportReason",e=>{this.notSupportReason=e}),(0,s._)(this,"setPausePop",e=>{this.pausePop=e}),(0,s._)(this,"setRoomInfo",e=>this.roomInfo=e),(0,s._)(this,"setEmojiList",e=>this.emojiList=e),(0,s._)(this,"setEmojiReflex",e=>this.emojiReflex=e),(0,s._)(this,"setFollowStatus",e=>h()(this.roomInfo,"anchor.follow_info.follow_status",e)),(0,s._)(this,"setRoomUserStats",e=>h()(this.roomInfo,"room.room_view_stats",e)),(0,s._)(this,"setRoomStatus",e=>{h()(this.roomInfo,"room.status",e),h()(this.roomInfo,"room.status_str",e.toString())}),(0,s._)(this,"setLiveStatus",e=>this.liveStatus=e),(0,s._)(this,"setLikeStatus",e=>this.likeStatus=e),(0,s._)(this,"setFollowInfo",(e,t)=>{this.followInfo[e]=t}),(0,s._)(this,"setRoomCommentaryRoomInfo",e=>{h()(this.roomInfo,"room.commentary_room_info",e)}),(0,s._)(this,"setAppointment",function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.hasAppointment=e}),(0,s._)(this,"setLongtouchList",e=>{var t,i;(null===(i=this.store)||void 0===i?void 0:null===(t=i.feedStore)||void 0===t?void 0:t.isActive)&&(this.longtouchList=e)}),(0,s._)(this,"setLongtouchShowTcc",e=>{this.longtouchShowTcc=e}),(0,s._)(this,"setUsePageUrlBannerId",e=>{this.usePageUrlBannerId=e}),(0,s._)(this,"setRelativeRooms",e=>{this.relevantRooms=e}),(0,s._)(this,"setIsAsianGames",e=>{this.isAsianGames=e}),(0,s._)(this,"setDanmakuQueue",(e,t)=>{t?this.danmakuQueue.push(e):this.danmakuQueue=e,this.danmakuQueueLength=this.danmakuQueue.length}),(0,s._)(this,"setDanmakuSwitch",e=>{this.danmakuSwitch=e}),(0,s._)(this,"reset",()=>{var e,t;this.roomInfo={},this.emojiList=[],this.emojiReflex={},this.liveStatus=m.zZ.NORMAL,this.likeStatus={},this.followInfo={},this.isUgcLive=!1,this.isGameHiddle=!1,this.forceEnableH265=!1,this.hasAppointment=!1,this.enableProgramme=!1,this.abProgramme=!1,this.notSupportReason=m.Ly.UNKNOWN,this.pausePop=!1,this.longtouchList=(null===(t=this.store)||void 0===t||null===(e=t.feedStore)||void 0===e||e.isActive,[]),this.longtouchShowTcc=!1,this.isAsianGames=!1,this.usePageUrlBannerId=[],this.relevantRooms=[],this.danmakuQueue=[],this.danmakuQueueLength=0,this.danmakuSwitch=!0,this.imAnchorBan=!1}),(0,s._)(this,"setFoldChatroom",e=>{this.foldChatroom=e}),(0,s._)(this,"setIsFocus",e=>{this.isFocus=e}),(0,s._)(this,"setImAnchorBan",e=>{this.imAnchorBan=e}),(0,s._)(this,"setIsOlympicGame",e=>{this.isOlympicGame=e}),(0,s._)(this,"setIsEnableOlympic4k",e=>{this.isEnableOlympic4k=e}),(0,s._)(this,"setActivityEmojiGroup",e=>{let t=null,i=new Date().getTime()/1e3;if(e.forEach(e=>{Number(e.start_time)<i&&Number(e.end_time)>i&&(t?Number(null==e?void 0:e.start_time)>Number(null==t?void 0:t.start_time)&&(t=e):t=e)}),!t){this.activityEmojiGroup=[];return}this.activityEmojiGroup=[t]}),(0,s._)(this,"setActivityEmojiGroupForce",e=>{this.activityEmojiGroup=e}),(0,s._)(this,"setForeignUser",e=>this.foreign_user=e),(0,s._)(this,"setPollingFrequency",e=>{this.pollingFrequency=e}),(0,s._)(this,"setLiveStaticParams",e=>{this.liveStaticParams=(0,_._)({},P,null!=e?e:{})});this.makeObservable(),this.store=e}}class b extends a.Z{makeObservable(){(0,l.makeObservable)(this,{isSpider:l.computed,setHomeNeedIntial:l.action,setIsOpenLongTask:l.action,setLinkMicHeartConfig:l.action,XTTENV:l.observable,setXTTENV:l.action})}setIsOpenLongTask(e){this.isOpenLongTask=e}get isSpider(){return!n.s&&/(bot|spider|slurp|Google-InspectionTool|GoogleOther|perplexity-user|Google-Extended|Deepseek|ChatGPT-User)/i.test(navigator.userAgent)}setHomeNeedIntial(e){this.needInital=e}setLinkMicHeartConfig(e){this.linkMicHeartConfig=e}constructor(){super(),(0,s._)(this,"needInital",!1),(0,s._)(this,"linkMicHeartConfig",{}),(0,s._)(this,"isOpenLongTask",!0),(0,s._)(this,"XTTENV",""),(0,s._)(this,"setXTTENV",e=>{this.XTTENV=e});this.makeObservable()}}class w extends a.Z{constructor(){super(),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{selectedRoom:l.observable,setSelectedRoom:l.action,recommendCategoryData:l.observable,setRecommendCategoryData:l.action,isShowCategoryGameMenu:l.observable,setIsShowCategoryGameMenu:l.action,isSaveCategoryGameMenu:l.observable,setIsSaveCategoryGameMenu:l.action,isReadyHide:l.observable,setIsReadyHide:l.action})}),(0,s._)(this,"selectedRoom",null),(0,s._)(this,"recommendCategoryData",[]),(0,s._)(this,"isShowCategoryGameMenu",!1),(0,s._)(this,"isSaveCategoryGameMenu",!1),(0,s._)(this,"isReadyHide",!1),(0,s._)(this,"setSelectedRoom",e=>this.selectedRoom=e),(0,s._)(this,"setRecommendCategoryData",e=>this.recommendCategoryData=e),(0,s._)(this,"setIsShowCategoryGameMenu",e=>{this.isShowCategoryGameMenu=e}),(0,s._)(this,"setIsSaveCategoryGameMenu",e=>{this.isSaveCategoryGameMenu=e}),(0,s._)(this,"setIsReadyHide",e=>{this.isReadyHide=e});this.makeObservable()}}var k=i("494857"),y=i("402748");i("932651"),i("362051");var C=i("656671"),I=i("830411"),L=i("264402");let A=[C.kQ.GIFT,C.kQ.FANS,C.kQ.LEVEL,C.kQ.ACTION_1,C.kQ.ACTION_2,C.kQ.ACTIVITY_1,C.kQ.ACTIVITY_2,C.kQ.PROP,C.kQ.CURATED,C.kQ.OLD_CARATED,,];class R extends a.Z{get supportedGiftPages(){return this.giftPages.filter(e=>e.display&&A.includes(e.pageType)).map(e=>(0,y._)((0,_._)({},e),{giftList:(0,I.fc)(e.giftList)}))}get giftList(){return(0,I.pL)(this.giftPages,[],C.dq.NORMAL,1,!1)}get giftStatus(){return this.giftSwitchStatus&&this.giftAuthStatus&&this.giftTccStatus}get openWanxiang(){return 1===this.wanxiangGiftSwitch}constructor(){super(),(0,s._)(this,"giftMessages",[]),(0,s._)(this,"giftPages",[]),(0,s._)(this,"effectList",[]),(0,s._)(this,"balance",0),(0,s._)(this,"targetGiftPrice",0),(0,s._)(this,"targetGiftId",0),(0,s._)(this,"effectSwitchStatus",!0),(0,s._)(this,"giftSwitchStatus",!0),(0,s._)(this,"giftAuthStatus",!1),(0,s._)(this,"giftTccStatus",!1),(0,s._)(this,"isGiftPanelVisible",!1),(0,s._)(this,"isGiftPanelVisibleNew",!1),(0,s._)(this,"giftPanelSwitchStatus",C.nN.NO_CONTROL),(0,s._)(this,"giftPanelShowFrom",""),(0,s._)(this,"giftExtraInfo",{}),(0,s._)(this,"hoverGiftWhiteList",[]),(0,s._)(this,"hoverGiftWhiteListV2",[]),(0,s._)(this,"diyPluginIdWhiteList",[]),(0,s._)(this,"giftBuffIdWhiteList",[]),(0,s._)(this,"diyCardNameWhiteList",[]),(0,s._)(this,"handleRecharge",void 0),(0,s._)(this,"showBuffCard",!0),(0,s._)(this,"wanxiangGiftSwitch",0),(0,s._)(this,"forceShowBuffList",[]),(0,s._)(this,"starGuardEffectWhiteList",[]),(0,s._)(this,"currentPageType",C.Tj.GIFT),(0,s._)(this,"paygrade",void 0),(0,s._)(this,"currentHoverGift",void 0),(0,s._)(this,"maxGiftTrayCount",Number.MAX_SAFE_INTEGER),(0,s._)(this,"giftBgEffectMap",{}),(0,s._)(this,"giftTrayConfig",{}),(0,s._)(this,"giftComboHint",null),(0,s._)(this,"giftSkinCache",void 0),(0,s._)(this,"giftShortcutKey",!1),(0,s._)(this,"isFirstGiftShortcutKey",!1),(0,s._)(this,"giftLayer",0),(0,s._)(this,"hasGiftConfirm",!1),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{diyPluginIdWhiteList:l.observable,diyCardNameWhiteList:l.observable,hoverGiftWhiteList:l.observable,hoverGiftWhiteListV2:l.observable,giftBuffIdWhiteList:l.observable,giftMessages:l.observable,giftPages:l.observable,effectList:l.observable,balance:l.observable,targetGiftPrice:l.observable,targetGiftId:l.observable,effectSwitchStatus:l.observable,giftSwitchStatus:l.observable,giftAuthStatus:l.observable,giftTccStatus:l.observable,isGiftPanelVisible:l.observable,giftPanelSwitchStatus:l.observable,giftPanelShowFrom:l.observable,giftExtraInfo:l.observable,giftBgEffectMap:l.observable,handleRecharge:l.observable,showBuffCard:l.observable,wanxiangGiftSwitch:l.observable,starGuardEffectWhiteList:l.observable,maxGiftTrayCount:l.observable,giftTrayConfig:l.observable,supportedGiftPages:l.computed,giftList:l.computed,giftStatus:l.computed,setGiftMessages:l.action,setGiftPages:l.action,setEffectList:l.action,setBalance:l.action,setGiftTrayConfig:l.action,setTargetGiftPrice:l.action,setTargetGiftId:l.action,setEffectSwitchStatus:l.action,setGiftSwitchStatus:l.action,setGiftAuthStatus:l.action,setGiftTccStatus:l.action,setIsGiftPanelVisible:l.action,setIsGiftPanelVisibleNew:l.action,setGiftPanelSwitchStatus:l.action,setGiftPanelShowFrom:l.action,setGiftExtra:l.action,setHoverGiftWhiteList:l.action,setDiyPluginIdWhiteList:l.action,setGiftBuffIdWhiteList:l.action,setDiyCardNameWhiteList:l.action,setHandleRecharge:l.action,setShowBuffCard:l.action,setHoverGiftWhiteListV2:l.action,setGiftBgEffectMap:l.action,setWanxiangGiftSwitch:l.action,openWanxiang:l.computed,setStarGuardEffectWhiteList:l.action,currentPageType:l.observable,setCurrentPageType:l.action,paygrade:l.observable,setPaygrade:l.action,currentHoverGift:l.observable,setCurrentHoverGift:l.action,setMaxGiftTrayCount:l.action,giftShortcutKey:l.observable,setGiftShortcutKey:l.action,isFirstGiftShortcutKey:l.observable,setIsFirstGiftShortcutKey:l.action,setGiftComboHint:l.action,giftSkinCache:l.observable,setGiftSkinCache:l.action,giftLayer:l.observable,setGiftLayer:l.action,hasGiftConfirm:l.observable,setHasGiftConfirm:l.action})}),(0,s._)(this,"setGiftExtra",(e,t)=>this.giftExtraInfo=Object.assign({},this.giftExtraInfo,{[e]:t})),(0,s._)(this,"setGiftMessages",e=>this.giftMessages=e),(0,s._)(this,"setGiftPages",e=>this.giftPages=e),(0,s._)(this,"setEffectList",e=>this.effectList=e),(0,s._)(this,"setBalance",e=>this.balance=e),(0,s._)(this,"setTargetGiftPrice",e=>this.targetGiftPrice=e),(0,s._)(this,"setTargetGiftId",e=>this.targetGiftId=e),(0,s._)(this,"setEffectSwitchStatus",e=>this.effectSwitchStatus=e),(0,s._)(this,"setGiftSwitchStatus",e=>this.giftSwitchStatus=e),(0,s._)(this,"setGiftAuthStatus",e=>{this.giftAuthStatus=e}),(0,s._)(this,"setGiftBgEffectMap",e=>{this.giftBgEffectMap=e}),(0,s._)(this,"setGiftTccStatus",e=>this.giftTccStatus=e),(0,s._)(this,"setGiftPanelSwitchStatus",e=>this.giftPanelSwitchStatus=e),(0,s._)(this,"setGiftPanelShowFrom",e=>this.giftPanelShowFrom=e),(0,s._)(this,"setHoverGiftWhiteList",e=>this.hoverGiftWhiteList=e),(0,s._)(this,"setHoverGiftWhiteListV2",e=>this.hoverGiftWhiteListV2=e),(0,s._)(this,"setDiyPluginIdWhiteList",e=>this.diyPluginIdWhiteList=e),(0,s._)(this,"setGiftBuffIdWhiteList",e=>this.giftBuffIdWhiteList=e),(0,s._)(this,"setDiyCardNameWhiteList",e=>this.diyCardNameWhiteList=e),(0,s._)(this,"setHandleRecharge",e=>this.handleRecharge=e),(0,s._)(this,"setShowBuffCard",e=>this.showBuffCard=e),(0,s._)(this,"setWanxiangGiftSwitch",e=>this.wanxiangGiftSwitch=e),(0,s._)(this,"setIsGiftPanelVisible",e=>this.isGiftPanelVisible=e),(0,s._)(this,"setIsGiftPanelVisibleNew",e=>this.isGiftPanelVisibleNew=e),(0,s._)(this,"setForceShowBuffList",e=>this.forceShowBuffList=e),(0,s._)(this,"setStarGuardEffectWhiteList",e=>this.starGuardEffectWhiteList=e),(0,s._)(this,"setCurrentPageType",e=>this.currentPageType=e),(0,s._)(this,"setPaygrade",async e=>{var t,i,o,s,n,r,a,l;let v=null===(o=this.store)||void 0===o?void 0:null===(i=o.roomStore)||void 0===i?void 0:null===(t=i.roomInfo)||void 0===t?void 0:t.roomId,_=null===(a=this.store)||void 0===a?void 0:null===(r=a.roomStore)||void 0===r?void 0:null===(n=r.roomInfo)||void 0===n?void 0:null===(s=n.anchor)||void 0===s?void 0:s.id_str;if(!v||!_)return;let m=await (0,L.HF)({room_id:v,anchor_id:_,request_from:e});m.data&&200===m.status&&(this.paygrade=null==m?void 0:null===(l=m.data)||void 0===l?void 0:l.data)}),(0,s._)(this,"setCurrentHoverGift",e=>{this.currentHoverGift=e}),(0,s._)(this,"setMaxGiftTrayCount",e=>this.maxGiftTrayCount=e),(0,s._)(this,"scrollGiftList",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new CustomEvent("scrollGiftList",{detail:e});document.dispatchEvent(t)}),(0,s._)(this,"setGiftComboHint",e=>{this.giftComboHint=e}),(0,s._)(this,"setGiftSkinCache",e=>{this.giftSkinCache=e}),(0,s._)(this,"setGiftShortcutKey",e=>{try{localStorage.setItem(C.vp,JSON.stringify(e))}catch(e){}this.giftShortcutKey=e}),(0,s._)(this,"setIsFirstGiftShortcutKey",e=>{try{localStorage.setItem(C.iR,JSON.stringify(e))}catch(e){}this.isFirstGiftShortcutKey=e}),(0,s._)(this,"setGiftLayer",e=>{this.giftLayer=e}),(0,s._)(this,"setGiftTrayConfig",e=>{this.giftTrayConfig=e}),(0,s._)(this,"setHasGiftConfirm",e=>{this.hasGiftConfirm=e});this.makeObservable()}}var T=i("15155");class O extends a.Z{get supportedPropList(){return this.propList.filter(e=>T.cf.includes(Number(e.type)))}constructor(){super(),(0,s._)(this,"propList",[]),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{propList:l.observable,supportedPropList:l.computed,setPropList:l.action})}),(0,s._)(this,"setPropList",e=>this.propList=e);this.makeObservable()}}var G=i("656553");class M extends a.Z{get pkStatus(){let e=!!this.pkAppData.ver;return!!this.pkTccStatus&&e}get pkTeamCount(){let e="";if(!this.pkStatus||this.pkStatus&&!this.isInPK&&!this.isInPunish)return e;let t=c()(this.pkListData,"battle_stats.multi_pk_team",[]),i=1===c()(this.pkListData,"battle_stats.battle_settings.battle_config_setting.team_mode",0);if(this.pkAppData.ver===G.TG.DOUBLE)e="1v1";else if(i&&t[1]&&t[2])e=`${t[1].multi_anchor_list.length}v${t[2].multi_anchor_list.length}`;else if(this.pkStatus){var o,s;e=`${null===(s=this.pkAppData)||void 0===s?void 0:null===(o=s.grids)||void 0===o?void 0:o.length}vs`}return e}constructor(){var e;super(),e=this,(0,s._)(this,"pkAppData",{}),(0,s._)(this,"pkTccStatus",!1),(0,s._)(this,"pkEggData",null),(0,s._)(this,"isInPK",!1),(0,s._)(this,"isInPunish",!1),(0,s._)(this,"transformToPK",!1),(0,s._)(this,"pkPlayMode",""),(0,s._)(this,"pkListData",{}),(0,s._)(this,"pkStatusData",{}),(0,s._)(this,"pkCountDown",0),(0,s._)(this,"usePkEgg",!1),(0,s._)(this,"isDoubleView",!1),(0,s._)(this,"showPKScoreBar",!1),(0,s._)(this,"showPKContributorsTop",!1),(0,s._)(this,"pkId",""),(0,s._)(this,"isVote",!1),(0,s._)(this,"pkUserIdList",[]),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{pkAppData:l.observable,pkTccStatus:l.observable,pkStatus:l.computed,setPKAppData:l.action,setPKTccStatus:l.action,setPkEggData:l.action,pkEggData:l.observable,pkCountDown:l.observable,pkListData:l.observable,pkStatusData:l.observable,setPkListData:l.action,setPkStatusData:l.action,setPkCountDown:l.action,setUsePkEgg:l.action,usePkEgg:l.observable,isDoubleView:l.observable,setIsDoubleView:l.action,setShowPKScoreBar:l.action,showPKScoreBar:l.observable,showPKContributorsTop:l.observable,setShowPKContributorsTop:l.action,pkId:l.observable,setPkId:l.action,isVote:l.observable,setIsVote:l.action,isInPK:l.observable,isInPunish:l.observable,transformToPK:l.observable,pkPlayMode:l.observable,pkTeamCount:l.computed,setTransformToPK:l.action,setIsInPK:l.action,setIsInPunish:l.action,pkUserIdList:l.observable,setPkUserIdList:l.action,setPkPlayMode:l.action})}),(0,s._)(this,"setPKAppData",e=>this.pkAppData=e),(0,s._)(this,"setPKTccStatus",e=>this.pkTccStatus=e),(0,s._)(this,"setPkEggData",e=>{this.pkEggData=e}),(0,s._)(this,"setPkCountDown",e=>this.pkCountDown=e),(0,s._)(this,"setUsePkEgg",e=>this.usePkEgg=e),(0,s._)(this,"setIsDoubleView",e=>this.isDoubleView=e),(0,s._)(this,"setShowPKScoreBar",e=>this.showPKScoreBar=e),(0,s._)(this,"setShowPKContributorsTop",e=>this.showPKContributorsTop=e),(0,s._)(this,"setPkId",function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.pkId=t}),(0,s._)(this,"setIsVote",e=>this.isVote=e),(0,s._)(this,"setIsInPK",e=>this.isInPK=e),(0,s._)(this,"setPkUserIdList",e=>this.pkUserIdList=e),(0,s._)(this,"setIsInPunish",e=>{this.isInPK=e}),(0,s._)(this,"setTransformToPK",e=>this.transformToPK=e),(0,s._)(this,"setPkPlayMode",e=>this.pkPlayMode=G.gL[e]),(0,s._)(this,"setPkListData",e=>this.pkListData=e),(0,s._)(this,"setPkStatusData",e=>this.pkStatusData=e);this.makeObservable()}}class U extends a.Z{get audiencePanelStatus(){return this.audienceTccStatus}get audienceStatus(){return this.audienceSwitchStatus&&this.audienceAuthStatus}constructor(){super(),(0,s._)(this,"audienceSwitchStatus",!0),(0,s._)(this,"audienceAuthStatus",!1),(0,s._)(this,"audienceTccStatus",!1),(0,s._)(this,"audienceSelectTab",30),(0,s._)(this,"showEntrance",!1),(0,s._)(this,"onlineScore1000Num",0),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{audienceSwitchStatus:l.observable,audienceAuthStatus:l.observable,audienceTccStatus:l.observable,audienceSelectTab:l.observable,showEntrance:l.observable,onlineScore1000Num:l.observable,audiencePanelStatus:l.computed,audienceStatus:l.computed,setAudienceSwitchStatus:l.action,setAudienceAuthStatus:l.action,setAudienceTccStatus:l.action,setAudienceSelectTab:l.action,setShowEntrance:l.action,setOnlineScore1000Num:l.action})}),(0,s._)(this,"setAudienceSelectTab",e=>this.audienceSelectTab=e),(0,s._)(this,"setShowEntrance",e=>this.showEntrance=e),(0,s._)(this,"setOnlineScore1000Num",e=>this.onlineScore1000Num=e),(0,s._)(this,"setAudienceSwitchStatus",e=>this.audienceSwitchStatus=e),(0,s._)(this,"setAudienceAuthStatus",e=>this.audienceAuthStatus=e),(0,s._)(this,"setAudienceTccStatus",e=>this.audienceTccStatus=e);this.makeObservable()}}class N extends a.Z{makeObservable(){(0,l.makeObservable)(this,{fansClubTccStatus:l.observable,fansClubAuthStatus:l.observable,fansClubShowStatus:l.observable,fansClubJoinStatus:l.observable,fansClubAutoLightStatus:l.observable,fansClubButtonShowStatus:l.observable,fansClubData:l.observable,hasFetchDataStatus:l.observable,fansClubEntranceBounceStatus:l.observable,fansclubGuardianStatus:l.observable,guardianExpireTime:l.observable,fansClubStatus:l.computed,setFansClubAuthStatus:l.action,setFansClubTccStatus:l.action,setFansClubShowStatus:l.action,setFansClubJoinStatus:l.action,setFansClubAutoLightStatus:l.action,setFansClubData:l.action,setHasFetchDataStatus:l.action,setFansClubEntranceBounceStatus:l.action,setFansClubGuardianStatus:l.action,setFansClubButtonShowStatus:l.action,setGuardianExpireTime:l.action})}get fansClubStatus(){return this.fansClubTccStatus&&this.fansClubAuthStatus}constructor(){super(),(0,s._)(this,"fansClubAuthStatus",!1),(0,s._)(this,"fansClubTccStatus",!1),(0,s._)(this,"fansClubButtonShowStatus",!1),(0,s._)(this,"fansClubShowStatus",{isShow:!1,source:""}),(0,s._)(this,"fansClubJoinStatus",!1),(0,s._)(this,"fansClubAutoLightStatus",!1),(0,s._)(this,"fansClubData",{}),(0,s._)(this,"hasFetchDataStatus",!1),(0,s._)(this,"fansClubEntranceBounceStatus",!1),(0,s._)(this,"fansclubGuardianStatus",0),(0,s._)(this,"guardianExpireTime",0),(0,s._)(this,"setFansClubAuthStatus",e=>this.fansClubAuthStatus=e),(0,s._)(this,"setFansClubTccStatus",e=>this.fansClubTccStatus=e),(0,s._)(this,"setFansClubShowStatus",e=>this.fansClubShowStatus=e),(0,s._)(this,"setFansClubButtonShowStatus",e=>this.fansClubButtonShowStatus=e),(0,s._)(this,"setFansClubJoinStatus",e=>this.fansClubJoinStatus=e),(0,s._)(this,"setFansClubAutoLightStatus",e=>this.fansClubAutoLightStatus=e),(0,s._)(this,"setFansClubData",e=>this.fansClubData=e),(0,s._)(this,"setHasFetchDataStatus",e=>this.hasFetchDataStatus=e),(0,s._)(this,"setFansClubEntranceBounceStatus",e=>this.fansClubEntranceBounceStatus=e),(0,s._)(this,"setFansClubGuardianStatus",e=>this.fansclubGuardianStatus=e),(0,s._)(this,"setGuardianExpireTime",e=>this.guardianExpireTime=e);this.makeObservable()}}var V=i("21660");class D extends a.Z{constructor(){super(),(0,s._)(this,"leadingData",{}),(0,s._)(this,"streamData",{}),(0,s._)(this,"singleControlTime",0),(0,s._)(this,"singleControlMaxShowTime",0),(0,s._)(this,"renderTime",0),(0,s._)(this,"isUseVVC",!1),(0,s._)(this,"videoInit",!1),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{leadingData:l.observable,streamData:l.observable,renderTime:l.observable,setLeadingData:l.action,setStreamData:l.action,setRenderTime:l.action,singleControlTime:l.observable,singleControlMaxShowTime:l.observable,setSingleControlMaxShowTime:l.action,setSingleControlTime:l.action,isUseVVC:l.observable,videoInit:l.observable,setVideoInit:l.action,setIsUseVVC:l.action})}),(0,s._)(this,"reset",()=>{this.leadingData={},this.streamData={},this.singleControlTime=0,this.singleControlMaxShowTime=0,this.renderTime=0,this.isUseVVC=!1}),(0,s._)(this,"setIsUseVVC",e=>{this.isUseVVC=e}),(0,s._)(this,"setVideoInit",e=>{this.videoInit=e}),(0,s._)(this,"setLeadingData",e=>{this.leadingData=e}),(0,s._)(this,"setStreamData",e=>{this.streamData=e}),(0,s._)(this,"setRenderTime",e=>{this.renderTime=e}),(0,s._)(this,"setSingleControlMaxShowTime",e=>{this.singleControlMaxShowTime=e}),(0,s._)(this,"setSingleControlTime",e=>{this.singleControlTime=e});this.makeObservable()}}class F extends a.Z{constructor(){super(),(0,s._)(this,"isShowHourRankList",!1),(0,s._)(this,"openType",0),(0,s._)(this,"isFirstLoad",!0),(0,s._)(this,"chatRoomOpenType",12),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{isShowHourRankList:l.observable,openType:l.observable,setIsShowHourRankList:l.action,chatRoomOpenType:l.observable,setOpenType:l.action,setChatRoomOpenType:l.action})}),(0,s._)(this,"setOpenType",e=>this.openType=e),(0,s._)(this,"setIsShowHourRankList",e=>this.isShowHourRankList=e),(0,s._)(this,"setIsFirstLoad",e=>this.isFirstLoad=e),(0,s._)(this,"setChatRoomOpenType",e=>this.chatRoomOpenType=e);this.makeObservable()}}class B extends a.Z{setIsActive(e){this.isActive=e}constructor(){super(),(0,s._)(this,"isActive",!0),(0,s._)(this,"hasPre",!1),(0,s._)(this,"hasNext",!1),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{isActive:l.observable,hasPre:l.observable,hasNext:l.observable,setIsActive:l.action})});this.makeObservable()}}var Z=i("553145");class H extends a.Z{makeObservable(){(0,l.makeObservable)(this,{message:l.observable,setMessage:l.action,container:l.observable,setContainer:l.action,liveContainer:l.observable,setLiveContainer:l.action,audioPower:l.observable,setAudioPower:l.action,player:l.observable,setPlayer:l.action,paidLiveQRCodeVisible:l.observable,setPaidLiveQRCodeVisible:l.action,aiolinkHub:l.observable,setAiolinkHub:l.action,wrdsData:l.observable,setWrdsData:l.action})}constructor(){super(),(0,s._)(this,"message",n.s?null:new Z.v0C),(0,s._)(this,"container",null),(0,s._)(this,"liveContainer",null),(0,s._)(this,"audioPower",null),(0,s._)(this,"player",null),(0,s._)(this,"paidLiveQRCodeVisible",!1),(0,s._)(this,"aiolinkHub",null),(0,s._)(this,"wrdsData",{}),(0,s._)(this,"setLiveContainer",e=>{this.liveContainer=e}),(0,s._)(this,"setContainer",e=>{this.container=e}),(0,s._)(this,"setMessage",e=>{this.message=e}),(0,s._)(this,"setPlayer",e=>{this.player=e}),(0,s._)(this,"setAudioPower",e=>{this.audioPower=e}),(0,s._)(this,"setWrdsData",(e,t)=>{this.wrdsData[e]=t}),(0,s._)(this,"reset",()=>{this.container=null,this.audioPower=null,this.message=null,this.player=null,this.liveContainer=null,this.aiolinkHub=null,this.wrdsData={}}),(0,s._)(this,"setPaidLiveQRCodeVisible",e=>{this.paidLiveQRCodeVisible=e}),(0,s._)(this,"setAiolinkHub",e=>{this.aiolinkHub=e});this.makeObservable()}}class x extends a.Z{setContainerList(e){this.containerList=e}setLongtouchList(e){this.longtouchList=e}setCommonList(e){this.commonList=e}constructor(){super(),(0,s._)(this,"containerList",new Map),(0,s._)(this,"longtouchList",new Map),(0,s._)(this,"commonList",new Map),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{containerList:l.observable,setContainerList:l.action,longtouchList:l.observable,setLongtouchList:l.action,commonList:l.observable,setCommonList:l.action})}),(0,s._)(this,"reset",()=>{this.containerList=new Map,this.longtouchList=new Map,this.store=null});this.makeObservable()}}var K=i("762167"),W=i("810069"),j=i("395669"),q=i("695481");class Y{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"liveAudienceLiveEvent",e=>{var t,i;let{linkmicStore:{linkRoomType:o,functionType2:s},roomStore:{liveStatus:n,foldChatroom:r},pkStore:{pkAppData:a,pkPlayMode:l,pkId:v,pkTeamCount:d,pkListData:u}}=this.store,h=c()(u,"battle_stats.battle_settings.battle_config_setting.team_mode",0);window.collectEvent("livesdk_audience_live_message",(0,y._)((0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),e,this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.basicEvent.getRoomPaidLiveInfo(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getStreaType()),{live_type:"audio"===o?"voice_live":"",function_type2:s,live_status:m.EY[n]||"normal",is_comments_fold:r?1:0,channel_id:null==a?void 0:a.channelId,invite_mode:l,anchor_connect_status:(null==a?void 0:null===(t=a.grids)||void 0===t?void 0:t.length)||-1,pk_team_count:d,pk_id:v,team_mode:h,is_privacy_watch:(0,q.q)()?"1":"0"})),(0,j.Ui)()&&(0,K.E)("live_comment",(0,y._)((0,_._)({value:(0,j.V7)(),tag:"live_ad",device_id:null===W.Es||void 0===W.Es?void 0:null===(i=(0,W.Es)())||void 0===i?void 0:i.user_unique_id},e),{log_extra:(0,j.u9)()}))}),(0,s._)(this,"livesdkEmojiShow",e=>{window.collectEvent("livesdk_emoji_show",(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType(),e))}),(0,s._)(this,"livesdkEmojiClick",e=>{e.emoji_type=e.emoji_type?e.emoji_type:"tab_emoji",window.collectEvent("livesdk_emoji_click",(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType(),e))}),(0,s._)(this,"livesdkSendBarrage",e=>{var t;let{linkmicStore:{linkRoomType:i,functionType2:o},roomStore:{liveStatus:s},userStore:{userInfo:n}}=this.store,r=e.fail?"livesdk_send_barrage_fail":"livesdk_send_barrage";window.collectEvent(r,(0,y._)((0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),e,this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.basicEvent.getRoomPaidLiveInfo(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getStreaType()),{live_type:"audio"===i?"voice_live":"",function_type2:o,live_status:m.EY[s]||"normal",privilege_level:null==n?void 0:null===(t=n.pay_grade)||void 0===t?void 0:t.level,user_id:null==n?void 0:n.id_str}))}),(0,s._)(this,"livesdkQuickEmojiDetailPageClick",e=>{window.collectEvent("livesdk_quick_emoji_detail_page_click",(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),e,this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.basicEvent.getRoomPaidLiveInfo(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getStreaType()))}),(0,s._)(this,"livesdkQuickEmojiDetailPageShow",e=>{window.collectEvent("livesdk_quick_emoji_detail_page_show",(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),e,this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.basicEvent.getRoomPaidLiveInfo(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getStreaType()))}),this.store=e}}i("228983");var Q=i("392430"),J=i("513565"),z=i("807922"),X=i("394408"),$=i("75138"),ee=i("142689"),et=i("380599"),ei=i("570792"),eo=i("620589");class es{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"getUserType",e=>{var t,i,o,s,n,r,a,l,v,_;let m=null===(i=this.store)||void 0===i?void 0:null===(t=i.linkmicStore)||void 0===t?void 0:t.linkMicSeats,d=e||(null===(n=this.store)||void 0===n?void 0:null===(s=n.userStore)||void 0===s?void 0:null===(o=s.userInfo)||void 0===o?void 0:o.id_str);return(null===(v=this.store)||void 0===v?void 0:null===(l=v.roomStore)||void 0===l?void 0:null===(a=l.roomInfo)||void 0===a?void 0:null===(r=a.anchor)||void 0===r?void 0:r.id_str)===d?"anchor":(null===(_=Object.values(m))||void 0===_?void 0:_.find(e=>{var t,i;return(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)===d}))?"guest":"user"}),(0,s._)(this,"getUserId",()=>this.store.userStore.userInfo.id_str),(0,s._)(this,"getCommonEventParams",()=>{var e,t,i,o,s,n,r;return{live_type:"game",game_live_source:"game_web",is_aweme_tied:(null===(i=this.store)||void 0===i?void 0:null===(t=i.userStore)||void 0===t?void 0:null===(e=t.userInfo)||void 0===e?void 0:e.id_str)?1:0,liveroom_canvas:(null===(s=this.store)||void 0===s?void 0:null===(o=s.roomStore)||void 0===o?void 0:o.isDoubleScreen)?"doublescreen":void 0,url:location.href,url_path:location.pathname,_is_new_version:null===(n=window)||void 0===n?void 0:n.isNewVersionFirstOpen,_live_version:null===(r=window)||void 0===r?void 0:r.version,is_privacy_watch:(0,q.q)()?"1":"0"}}),(0,s._)(this,"getEnterEventParams",()=>{var e,t;let{web_live_page:i="",web_live_tab:o="",web_live_tab_2:s="",web_live_tab_3:n="",more_detail:r="",game_name:a="",enter_from_merge:l="",enter_method:v="",title_type:m="",cover_type:d="",is_recommend:u="",stream_type:h="",search_params:g="",action_type:E="click",evening_type:p="",previous_page:S="",live_type:P="",function_type:f="",function_type2:b="",seat_fit_status:w="",request_id:k="",insert_task_id:C="",group_id:I="",is_livehead_preview_mini_window_show:L="",enter_method_temai:A="click_other_area",show_rank:R,show_cnt:T,mini_window_show_type:O="",search_tab:G="",enter_live_detail_method:M="",live_position:U="",push_id:N="",url_source:V="",enter_method_on_cellphone:D="",enter_from_on_cellphone:F="",is_replaced_live:B="0",preview_type:Z="",web_card_rank:H="",show_type:x="live_cover",im_watch_assistant_order:K="",tablive_feed_guide_scene:W,follow_status:j="0",column_type:q=""}=window.__INVISIBLE_QUERY__||{},Y=c()(this.store,"roomStore.roomInfo.roomId"),J=g,z="close";try{J&&"String"===(0,Q.tQ)(J)&&(J=JSON.parse(g)),z="true"===localStorage.getItem(window.__tripleScreenKey__||"__isTripleScreen__")?"open":"close"}catch(e){}return(0,y._)((0,_._)({enter_from_merge:l,enter_method:v,web_live_page:i,web_live_tab:o,web_live_tab_2:s,web_live_tab_3:n,more_detail:r,game_name:a,title_type:m,cover_type:d,is_recommend:u,stream_type:h||(0,eo.wY)(),evening_type:p,previous_page:S,live_type:P,function_type:f,function_type2:b,seat_fit_status:w,search_params:J,search_type:null==J?void 0:J.search_type,search_id:null==J?void 0:J.search_id,action_type:E,request_id:k,insert_task_id:C,video_id:"web_video_head"===v?I:Y,is_livehead_preview_mini_window_show:L,enter_method_temai:A,show_rank:R,show_cnt:T,mini_window_show_type:O,search_tab:G,enter_live_detail_method:M,live_position:U,push_id:N,url_source:V,enter_method_on_cellphone:D,enter_from_on_cellphone:F,is_replaced_live:B,three_screen_status:z},(null===(t=this.store)||void 0===t?void 0:null===(e=t.vrStore)||void 0===e?void 0:e.getCommonEventParams())||{}),{preview_type:Z,web_card_rank:H,show_type:x,im_watch_assistant_order:K?Number(K):void 0,tablive_feed_guide_scene:W,follow_status:j,column_type:q})}),(0,s._)(this,"getImoprtEventParams",()=>sessionStorage.getItem("game_live_source")===J.LIVE_XIGUA_DOMAIN?{game_live_source:"xigua_web"}:{}),(0,s._)(this,"getPlayerCommonEventParams",()=>{var e;if(!this.store)return{};let{homeStore:{selectedRoom:t},roomStore:{roomInfo:i,isDoubleScreen:o}}=this.store,s=(0,$.C$)()?c()(t,"room.owner.id_str",""):c()(i,"anchor.id_str",""),n=(0,$.C$)()?c()(t,"room.id_str",""):c()(i,"roomId","");return{anchor_id:s,room_id:n,game_name:(0,$.C$)()?c()(t,"tag_name",""):null===(e=window.__INVISIBLE_QUERY__)||void 0===e?void 0:e.game_name,liveroom_canvas:o?"doublescreen":void 0}}),(0,s._)(this,"getRecommendParams",()=>{let{from_landscape_tab:e=""}=window.__INVISIBLE_QUERY__||{};return{from_landscape_tab:e=Number(e)}}),(0,s._)(this,"getRoomAspectRatio",()=>{var e,t,i;let o=null===(e=c()(null===(i=this.store)||void 0===i?void 0:null===(t=i.roomStore)||void 0===t?void 0:t.roomInfo,"room.stream_url.live_core_sdk_data.pull_data.options.default_quality.resolution",""))||void 0===e?void 0:e.split("x");return{aspect_ratio:o.length>1?Math.round(o[0]/o[1]*100)/100:""}}),(0,s._)(this,"getStreaType",()=>{var e,t;let i=c()(null===(t=this.store)||void 0===t?void 0:null===(e=t.roomStore)||void 0===e?void 0:e.roomInfo,"room.stream_url.stream_orientation","");return{stream_type:et.FO[i]||""}}),(0,s._)(this,"getRoomRoadmap",()=>{var e,t,i,o;return{first_roadmap_name:c()(null===(t=this.store)||void 0===t?void 0:null===(e=t.roomStore)||void 0===e?void 0:e.roomInfo,"partition_road_map.partition.title"),second_roadmap_name:c()(null===(o=this.store)||void 0===o?void 0:null===(i=o.roomStore)||void 0===i?void 0:i.roomInfo,"partition_road_map.sub_partition.partition.title")}}),(0,s._)(this,"getRoomPaidLiveInfo",()=>{var e,t;let i=c()(this.store,"paidLiveStore.paidLiveData.paid_type",0),o=c()(this.store,"paidLiveStore.viewType",z.ku.BAN),s=null===(t=this.store)||void 0===t?void 0:null===(e=t.__INVISIBLE_QUERY__)||void 0===e?void 0:e.entrance_form;return{is_paidlive:Number(i),watch_paidlive_status:(0,ee.oD)(o),entrance_form:s}}),(0,s._)(this,"getOpenAppData",()=>{let e={},t=window.__INVISIBLE_QUERY__||{},i=null==t?void 0:t.message_from,o=null==t?void 0:t.url_source;return"app"===i&&(i&&(e.enter_from_merge="live_continue"),o&&(e.url_source=o)),e}),(0,s._)(this,"getFollowStatus",()=>{var e,t;let i=c()(null===(t=this.store)||void 0===t?void 0:null===(e=t.roomStore)||void 0===e?void 0:e.roomInfo,"anchor.follow_info.follow_status",ei.E.INNOCENT);return{follow_status:(0,X.F)(i)?1:0}}),(0,s._)(this,"getScreenMode",()=>{var e;let{liveStatus:t}=(null===(e=this.store)||void 0===e?void 0:e.roomStore)||{};switch(t){case m.zZ.FULL:return{page_status:"full_screen"};case m.zZ.WEB_FULL:case m.zZ.WEB_FULL_NO_COMMENT:return{page_status:"web_full_screen"};case m.zZ.NORMAL:default:return{page_status:"web"}}}),this.store=e}}var en=i("905116");class er{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"getLiveShoppingParams",e=>{var t;let i=c()(e,"room.toolbar_data");if(!(null==i?void 0:null===(t=i.entrance_list)||void 0===t?void 0:t.find(e=>e.component_type===en.Ls.Cart)))return{};let o=c()(e,"anchor.follow_info.follow_status",ei.E.INNOCENT);return{EVENT_ORIGIN_FEATURE:"TEMAI",_param_live_platform:"live",follow_status:Number(o===ei.E.FOLLOWING||o===ei.E.BOTH)}}),this.store=e}}var ea=i("579057");class el{constructor(e){var t=this;(0,s._)(this,"store",{}),(0,s._)(this,"getLiveFansClubEventParams",()=>{var e;let{roomStore:{roomInfo:t={}},userStore:{userInfo:i},pkStore:{pkAppData:o},fansClubStore:{fansClubJoinStatus:s,fansclubGuardianStatus:n,guardianExpireTime:r}}=null!==(e=this.store)&&void 0!==e?e:{roomStore:{},userStore:{},pkStore:{},fansClubStore:{}},a=c()(t,"roomId",""),l=c()(t,"anchor.id_str",""),v=c()(i,"id_str",""),_=c()(o,"channelId",0),m=c()(t,"anchor.follow_info.follow_status",ei.E.INNOCENT);return{room_id:a,anchor_id:l,channel_id:_,user_id:v,is_anchor:l===v?1:0,is_fans:m===ei.E.FOLLOWING||m===ei.E.BOTH?1:0,star_status:ea.Sk[n],star_expire_date:r}}),(0,s._)(this,"liveFansClubButtonShowEvent",function(){var e,i,o,s,n,r,a,l,v,m,d,c,u,h,g;let E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_icon_show",(0,_._)({},null===(o=t.store)||void 0===o?void 0:null===(i=o.eventStore)||void 0===i?void 0:null===(e=i.basicEvent)||void 0===e?void 0:e.getCommonEventParams(),null===(r=t.store)||void 0===r?void 0:null===(n=r.eventStore)||void 0===n?void 0:null===(s=n.basicEvent)||void 0===s?void 0:s.getPlayerCommonEventParams(),null===(v=t.store)||void 0===v?void 0:null===(l=v.eventStore)||void 0===l?void 0:null===(a=l.basicEvent)||void 0===a?void 0:a.getEnterEventParams(),null===(c=t.store)||void 0===c?void 0:null===(d=c.eventStore)||void 0===d?void 0:null===(m=d.basicEvent)||void 0===m?void 0:m.getScreenMode(),null===(g=t.store)||void 0===g?void 0:null===(h=g.eventStore)||void 0===h?void 0:null===(u=h.vsEvent)||void 0===u?void 0:u.getShowEventParams(),t.getLiveFansClubEventParams(),E))}),(0,s._)(this,"liveFansClubButtonClickEvent",function(){var e,i,o;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_icon_click",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),null===(o=t.store)||void 0===o?void 0:null===(i=o.eventStore)||void 0===i?void 0:null===(e=i.basicEvent)||void 0===e?void 0:e.getScreenMode(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),s))}),(0,s._)(this,"liveFansClubJoinSuccessEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_join_success",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubCardShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_detail_page_show",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubCardMemberListClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_task_click",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubListShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_members_show",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubListClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_members_click",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubLightAlertShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_auto_light_tab_show",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubLightAlertClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_auto_light_tab_click",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubLightChangeEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_auto_light_is_on",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubPrivilegeShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_my_right_page_show",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubPrivilegeClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_my_right_page_click",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubLightShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_auto_light_page_show",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubQuitAlertShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_quit_tab_show",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveFansClubQuitAlertClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_fans_club_quit_tab_click",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),(0,s._)(this,"liveGiftPanelTabClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_gift_tab_click",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),t.store.eventStore.pkEvent.getPKPropCardCommonParams(),e))}),(0,s._)(this,"liveStarGuardPurchaseEffectShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};window.collectEvent("livesdk_guard_purchase_success_effect_show",(0,_._)({},t.store.eventStore.basicEvent.getCommonEventParams(),t.store.eventStore.basicEvent.getPlayerCommonEventParams(),t.store.eventStore.basicEvent.getEnterEventParams(),t.store.eventStore.vsEvent.getShowEventParams(),t.getLiveFansClubEventParams(),e))}),this.store=e}}class ev{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"pageType",9999),(0,s._)(this,"searchWord",""),(0,s._)(this,"giftPanelSearchId",""),(0,s._)(this,"getLiveGiftEventParams",()=>{let e=c()(this.store,"roomStore.roomInfo.roomId"),t=c()(this.store,"userStore.userInfo.id"),i=c()(this.store,"roomStore.liveStatus");return{room_id:String(e),user_id:String(t),live_status:i,full_status:i===m.zZ.FULL?"full":"default",tab_name:null===this||void 0===this?void 0:this.getSendGiftTabName()}}),(0,s._)(this,"getSendGiftTabName",()=>C.BS[this.pageType]||"bar"),(0,s._)(this,"getSendGiftScene",()=>{let e=c()(this.store,"pkStore.pkAppData.ver"),t=c()(this.store,"linkmicStore.linkRoomType"),i="";return e===G.TG.DOUBLE?i="video_anchor_pk":e===G.TG.MULTI?i="video_anchor_connect":"video"===t?i="video_audience_multi":"audio"===t&&(i="voice_audience_multi"),{send_gift_scene:i}}),(0,s._)(this,"setGiftPageType",e=>{this.pageType=e}),(0,s._)(this,"setGiftSearchParams",e=>{void 0!==e.searchWord&&(this.searchWord=e.searchWord),void 0!==e.giftPanelSearchId&&(this.giftPanelSearchId=e.giftPanelSearchId)}),(0,s._)(this,"getGiftSearchParams",()=>({search_word:this.searchWord,is_search_result:this.pageType===C.kQ.SEARCH?"1":"0",gift_panel_search_id:this.giftPanelSearchId})),(0,s._)(this,"resetGiftSearchParams",()=>{this.searchWord="",this.giftPanelSearchId=""}),this.store=e}}var e_=i("995270");class em{constructor(e){var t=this;(0,s._)(this,"store",null),(0,s._)(this,"liveGiftSendEvent",function(){var e,i,o;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{linkmicBaseEvent:n,basicEvent:r,giftBaseEvent:a,pkEvent:l,vsEvent:v},userStore:{userInfo:d},fansClubStore:{fansclubGuardianStatus:c,guardianExpireTime:u},linkmicStore:{linkRoomTypeHooks:h,functionType2:g,playModes:E,orderSingInfo:p},roomStore:{liveStatus:S,foldChatroom:P},pkStore:{pkAppData:f,pkTeamCount:b,pkPlayMode:w,pkId:k}}=t.store,C={play_mode:"grouppk",play_stage:n.getGorupFightStage()},I={star_status:ea.Sk[c],star_expire_date:u},L={compete_mode:n.getGuestBattleCompetaMode(),play_mode:"boom",play_stage:n.getGuestBattleStage()},A={gift_source:window.__GIFT_SOURCE__||(null==s?void 0:s.gift_source)||"",pk_source:window.__PK_SOURCE__||(null==s?void 0:s.pk_source)||"",task_status:window.__TASK_STATUS__||(null==s?void 0:s.task_status)||""};window.collectEvent("livesdk_send_gift",(0,y._)((0,_._)((0,y._)((0,_._)((0,y._)((0,_._)({},r.getCommonEventParams(),r.getPlayerCommonEventParams(),r.getEnterEventParams(),a.getLiveGiftEventParams(),a.getSendGiftScene(),l.getRoomPKParams(),n.getLinkMicParams(),v.getShowEventParams(),r.getRecommendParams(),r.getRoomAspectRatio(),r.getFollowStatus(),r.getStreaType(),I,n.isGroupFight()?C:{},n.isGuestBattle()?L:{},n.isCrossLink()?{play_mode:"link_room"}:{},n.getOrderSingParams()),{user_type:n.getUserType(null==d?void 0:d.id_str),to_user_type:n.getUserType(null==s?void 0:s.to_user_id),tab_name:a.getSendGiftTabName(null==s?void 0:s.pageType),is_top:(0,e_.k)()?"1":"0"}),s,A),{live_type:"audio"===h?"voice_live":"",function_type2:g,is_request_song:Number((null==s?void 0:s.gift_id)||0)===Number(null==p?void 0:p.gift_id)?"1":"0",live_status:m.EY[S]||"normal",is_comments_fold:P?1:0,channel_id:null==f?void 0:f.channelId,invite_mode:w,anchor_connect_status:(null==f?void 0:null===(e=f.grids)||void 0===e?void 0:e.length)||-1,anchor_cnt:(null==f?void 0:null===(i=f.grids)||void 0===i?void 0:i.length)||-1,pk_team_count:b,pk_id:k}),a.getGiftSearchParams()),{is_privacy_watch:(0,q.q)()?"1":"0"})),(0,j.Ui)()&&(0,K.E)("live_gift",(0,y._)((0,_._)({tag:"live_ad",value:(0,j.V7)(),device_id:null===W.Es||void 0===W.Es?void 0:null===(o=(0,W.Es)())||void 0===o?void 0:o.user_unique_id},r.getPlayerCommonEventParams(),s),{amount:null==s?void 0:s.money,log_extra:(0,j.u9)()}))}),(0,s._)(this,"liveGiftComboShow",function(){var e;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{linkmicBaseEvent:o,basicEvent:s,giftBaseEvent:n,pkEvent:r,vsEvent:a},userStore:{userInfo:l},fansClubStore:{fansclubGuardianStatus:v,guardianExpireTime:d},linkmicStore:{linkRoomTypeHooks:c,functionType2:u,playModes:h,orderSingInfo:g},roomStore:{liveStatus:E,foldChatroom:p},pkStore:{pkAppData:S,pkTeamCount:P,pkPlayMode:f,pkId:b}}=t.store,w={play_mode:"grouppk",play_stage:o.getGorupFightStage()},k={star_status:ea.Sk[v],star_expire_date:d},C={compete_mode:o.getGuestBattleCompetaMode(),play_mode:"boom",play_stage:o.getGuestBattleStage()},I={gift_source:window.__GIFT_SOURCE__||(null==i?void 0:i.gift_source)||"",pk_source:window.__PK_SOURCE__||(null==i?void 0:i.pk_source)||"",task_status:window.__TASK_STATUS__||(null==i?void 0:i.task_status)||""};window.collectEvent("livesdk_gift_combo_show",(0,y._)((0,_._)((0,y._)((0,_._)({},s.getCommonEventParams(),s.getPlayerCommonEventParams(),s.getEnterEventParams(),n.getLiveGiftEventParams(),n.getSendGiftScene(),r.getRoomPKParams(),o.getLinkMicParams(),a.getShowEventParams(),s.getRecommendParams(),s.getRoomAspectRatio(),s.getFollowStatus(),s.getStreaType(),k,o.isGroupFight()?w:{},o.isGuestBattle()?C:{},o.isCrossLink()?{play_mode:"link_room"}:{},o.getOrderSingParams()),{user_type:o.getUserType(null==l?void 0:l.id_str),to_user_type:o.getUserType(null==i?void 0:i.to_user_id),tab_name:n.getSendGiftTabName(null==i?void 0:i.pageType),is_top:(0,e_.k)()?"1":"0"}),i,I),{live_type:"audio"===c?"voice_live":"",function_type2:u,is_request_song:Number((null==i?void 0:i.gift_id)||0)===Number(null==g?void 0:g.gift_id)?"1":"0",live_status:m.EY[E]||"normal",is_comments_fold:p?1:0,channel_id:null==S?void 0:S.channelId,invite_mode:f,anchor_connect_status:(null==S?void 0:null===(e=S.grids)||void 0===e?void 0:e.length)||-1,pk_team_count:P,pk_id:b}))}),(0,s._)(this,"liveGiftRedPackageSendClick",()=>{let{eventStore:{basicEvent:e,giftBaseEvent:t,linkmicBaseEvent:i}}=this.store;window.collectEvent("livesdk_redpackage_entrance_click",(0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getLiveGiftEventParams(),i.getLinkMicParams(),e.getRecommendParams(),e.getRoomAspectRatio(),e.getFollowStatus(),e.getStreaType()))}),(0,s._)(this,"liveGiftPanelShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,giftBaseEvent:o,vsEvent:s},fansClubStore:{fansclubGuardianStatus:n,guardianExpireTime:r}}=t.store,a={star_status:ea.Sk[n],star_expire_date:r};window.collectEvent("livesdk_gift_show",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLiveGiftEventParams(),s.getShowEventParams(),a,e,o.getGiftSearchParams()))}),(0,s._)(this,"liveGiftPanelGiftPreviewEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,giftBaseEvent:o,vsEvent:s},fansClubStore:{fansclubGuardianStatus:n,guardianExpireTime:r}}=t.store,a={star_status:ea.Sk[n],star_expire_date:r};window.collectEvent("livesdk_gift_preview",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLiveGiftEventParams(),s.getShowEventParams(),a,e,o.getGiftSearchParams()))}),(0,s._)(this,"liveGiftPopoverShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,giftBaseEvent:o,vsEvent:s}}=t.store;window.collectEvent("livesdk_gift_window_show",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLiveGiftEventParams(),s.getShowEventParams(),e))}),(0,s._)(this,"liveGiftSwitchClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,giftBaseEvent:o,vsEvent:s}}=t.store;window.collectEvent("livesdk_gift_icon_click",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLiveGiftEventParams(),s.getShowEventParams(),e))}),(0,s._)(this,"liveGiftEffectSwitchClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,giftBaseEvent:o,vsEvent:s}}=t.store;window.collectEvent("livesdk_effect_icon_click",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLiveGiftEventParams(),s.getShowEventParams(),e))}),(0,s._)(this,"liveGiftRechargeClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,giftBaseEvent:o,vsEvent:s}}=t.store;window.collectEvent("livesdk_recharge_icon_click",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),i.getFollowStatus(),o.getLiveGiftEventParams(),s.getShowEventParams(),e))}),(0,s._)(this,"liveGiftOrderClick",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,giftBaseEvent:o,vsEvent:s}}=t.store;window.collectEvent("livesdk_gift_order_click",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),i.getFollowStatus(),o.getLiveGiftEventParams(),s.getShowEventParams(),e))}),(0,s._)(this,"getExhibitionCommonEventParams",()=>{var e;let{userStore:{userInfo:t},roomStore:{roomInfo:i},eventStore:{basicEvent:o,vsEvent:s,linkmicBaseEvent:n}}=this.store;return(0,y._)((0,_._)({},o.getCommonEventParams(),o.getPlayerCommonEventParams(),o.getEnterEventParams(),s.getShowEventParams(),o.getRecommendParams(),o.getRoomAspectRatio()),{user_type:n.getUserType(null==t?void 0:t.id_str),to_user_type:n.getUserType(null==i?void 0:null===(e=i.anchor)||void 0===e?void 0:e.id_str)})}),(0,s._)(this,"liveGiftShowChangeClick",e=>{let{peopleCount:t,actionType:i}=e,{eventStore:{basicEvent:o,vsEvent:s,giftBaseEvent:n,linkmicBaseEvent:r}}=this.store;window.collectEvent("livesdk_gift_show_change_click",(0,y._)((0,_._)({},o.getCommonEventParams(),o.getEnterEventParams,o.getPlayerCommonEventParams(),r.getLinkMicParams(),n.getLiveGiftEventParams(),s.getShowEventParams()),{user_type:r.getUserType(),full_seats_cnt:t,action_type:i}))}),(0,s._)(this,"liveGiftGroupClick",e=>{let{peopleCount:t,giftId:i,pageType:o,result:s}=e,{eventStore:{basicEvent:n,giftBaseEvent:r,linkmicBaseEvent:a}}=this.store;window.collectEvent("livesdk_giftgroup_click",(0,y._)((0,_._)({},n.getCommonEventParams(),n.getPlayerCommonEventParams(),a.getLinkMicParams(),r.getLiveGiftEventParams()),{user_type:a.getUserType(),full_seats_cnt:t,gift_id:i,tab_name:r.getSendGiftTabName(o),result:s}))}),(0,s._)(this,"liveConsumeEvent",e=>{let{eventStore:{basicEvent:t,vsEvent:i,giftBaseEvent:o,linkmicBaseEvent:s}}=this.store;window.collectEvent("livesdk_live_consume_event",(0,_._)({},t.getCommonEventParams(),t.getEnterEventParams,t.getPlayerCommonEventParams(),s.getLinkMicParams(),o.getLiveGiftEventParams(),i.getShowEventParams(),e))}),(0,s._)(this,"liveGiftBubbleBannerShow",e=>{let{eventStore:{basicEvent:t,giftBaseEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_gift_bubble_banner_show",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLiveGiftEventParams(),o.getLinkMicParams(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getFollowStatus(),t.getStreaType(),e))}),(0,s._)(this,"liveGiftBubbleBannerClick",e=>{let{eventStore:{basicEvent:t,giftBaseEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_gift_bubble_banner_click",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLiveGiftEventParams(),o.getLinkMicParams(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getFollowStatus(),t.getStreaType(),e))}),(0,s._)(this,"liveGiftBuffUnlockShow",e=>{let{eventStore:{basicEvent:t,giftBaseEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_gift_buff_unclock_show",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLiveGiftEventParams(),o.getLinkMicParams(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getFollowStatus(),t.getStreaType(),e))}),(0,s._)(this,"liveGiftBuffUnlockClick",e=>{let{eventStore:{basicEvent:t,giftBaseEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_gift_buff_unclock_click",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLiveGiftEventParams(),o.getLinkMicParams(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getFollowStatus(),t.getStreaType(),e))}),(0,s._)(this,"livesdkGiftTabBarHonorlevelShow",e=>{let{eventStore:{basicEvent:t,giftBaseEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_gift_tab_bar_honorlevel_show",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLiveGiftEventParams(),o.getLinkMicParams(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getFollowStatus(),t.getStreaType(),e))}),(0,s._)(this,"livesdkGiftTabBarHonorlevelClick",e=>{let{eventStore:{basicEvent:t,giftBaseEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_gift_tab_bar_honorlevel_click",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLiveGiftEventParams(),o.getLinkMicParams(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getFollowStatus(),t.getStreaType(),e))}),(0,s._)(this,"livesdkGiftSettingPanelShow",e=>{let{eventStore:{basicEvent:t,giftBaseEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_gift_setting_panel_show",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLiveGiftEventParams(),o.getLinkMicParams(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getFollowStatus(),t.getStreaType(),e))}),(0,s._)(this,"livesdkHotkeySettingClick",e=>{let{eventStore:{basicEvent:t,giftBaseEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_hotkey_setting_click",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLiveGiftEventParams(),o.getLinkMicParams(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getFollowStatus(),t.getStreaType(),e))}),(0,s._)(this,"livesdkHotkeyGiftGuidePopupShow",e=>{let{eventStore:{basicEvent:t,giftBaseEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_hotkey_gift_guide_popup_show",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLiveGiftEventParams(),o.getLinkMicParams(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getFollowStatus(),t.getStreaType(),e))}),(0,s._)(this,"livesdkGiftEffectPlayEnd",e=>{var t,i;let{roomStore:{roomInfo:o},userStore:{userInfo:s}}=this.store;window.collectEvent("livesdk_effect_play_end",(0,_._)({room_id:null==o?void 0:null===(t=o.room)||void 0===t?void 0:t.id_str,user_id:null==s?void 0:s.id_str,anchor_id:null==o?void 0:null===(i=o.anchor)||void 0===i?void 0:i.id_str},e))}),(0,s._)(this,"livesdkGiftSearchButtonShow",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,giftBaseEvent:o,vsEvent:s}}=t.store;window.collectEvent("livesdk_gift_search_button_show",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLiveGiftEventParams(),s.getShowEventParams(),e))}),(0,s._)(this,"livesdkGiftSearchButtonClick",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,giftBaseEvent:o,vsEvent:s}}=t.store;window.collectEvent("livesdk_gift_search_button_click",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLiveGiftEventParams(),s.getShowEventParams(),e))}),(0,s._)(this,"livesdkGiftSearchResultShow",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,giftBaseEvent:o,vsEvent:s}}=t.store,n="";e.giftList&&Array.isArray(e.giftList)&&(n=e.giftList.map(e=>e.id).join(",")),window.collectEvent("livesdk_gift_search_result_show",(0,_._)((0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLiveGiftEventParams(),s.getShowEventParams(),o.getGiftSearchParams()),{final_return_gift_list:n}),e))}),this.store=e}}class ed{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"getRedPacketCommonEventParams",()=>{var e;let{userStore:{userInfo:t},roomStore:{roomInfo:i},eventStore:{basicEvent:o,vsEvent:s,linkmicBaseEvent:n}}=this.store;return(0,y._)((0,_._)({},o.getCommonEventParams(),o.getPlayerCommonEventParams(),o.getEnterEventParams(),s.getShowEventParams(),o.getRecommendParams(),o.getRoomAspectRatio()),{user_type:n.getUserType(null==t?void 0:t.id_str),to_user_type:n.getUserType(null==i?void 0:null===(e=i.anchor)||void 0===e?void 0:e.id_str)})}),this.store=e}}i("591964"),i("679308");var ec=i("72137"),eu=i.n(ec),eh=i("113515"),eg=i("22496"),eE=i("877991"),ep=i("374600"),eS=i("997288"),eP=i("788287"),ef=i("950257");class eb{constructor(e){var t=this;(0,s._)(this,"store",null),(0,s._)(this,"getUserType",e=>{var t,i;let{linkmicStore:{linkMicSeats:o},userStore:{userInfo:s},roomStore:{roomInfo:n}}=this.store,r=e||(null==s?void 0:s.id_str);return(null==n?void 0:null===(t=n.anchor)||void 0===t?void 0:t.id_str)===r?"anchor":(null===(i=Object.values(o))||void 0===i?void 0:i.find(e=>{var t,i;return(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)===r}))?"guest":"user"}),(0,s._)(this,"getArenaBattleUserType",e=>{var t,i,o;let{linkmicStore:{linkMicSeats:s,pkScoreBarInfo:n},userStore:{userInfo:r},roomStore:{roomInfo:a}}=this.store,l=e||(null==r?void 0:r.id_str);if((null==a?void 0:null===(t=a.anchor)||void 0===t?void 0:t.id_str)===l)return"anchor";let v=Object.values(s||{}).find(e=>{var t,i,o,s;return(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)===l||(null==e?void 0:null===(s=e.user)||void 0===s?void 0:null===(o=s.user)||void 0===o?void 0:o.user_id)===l});return(null==v?void 0:null===(o=v.user)||void 0===o?void 0:null===(i=o.user)||void 0===i?void 0:i.own_room_id)?"anchor_guest":v?((null==n?void 0:n.teamInfos)||[]).some(e=>{var t;return String(null!==(t=null==e?void 0:e.user_id)&&void 0!==t?t:null==e?void 0:e.owner_id)===String(l)||((null==e?void 0:e.players)||[]).some(e=>{var t;return String(null!==(t=null==e?void 0:e.user_id_str)&&void 0!==t?t:null==e?void 0:e.user_id)===String(l)})})?"guest":"solo_guest":"audience"}),(0,s._)(this,"isArenaBattle",()=>{let{linkmicStore:{pkScoreBarInfo:e,playModesPC:t}}=this.store;return(null==e?void 0:e.title)==="双人竞争"||(null==t?void 0:t.includes(eS.V0.LinkmicPlayMode_ArenaBattle))}),(0,s._)(this,"getArenaBattlePlayStage",()=>{let{linkmicStore:{pkScoreBarInfo:e}}=this.store;if(!this.isArenaBattle())return"before_open";if(((null==e?void 0:e.teamInfos)||[]).some(e=>{let t=String((null==e?void 0:e.score_str)||(null==e?void 0:e.score_fuzzy)||"");return["胜利","失败","平局"].some(e=>t.includes(e))}))return"pk_result";let t=Number((null==e?void 0:e.finishTime)||0);return t>0&&1e3*t<=Date.now()?"pk_finish":"pk"}),(0,s._)(this,"getGuestBattleId",()=>{var e;let t=null===(e=this.store.linkmicStore)||void 0===e?void 0:e.guestBattleInfo;return null==t?void 0:t.battle_id}),(0,s._)(this,"getGorupFightStage",e=>{var t,i;let o=e||(null===(i=this.store)||void 0===i?void 0:null===(t=i.linkmicStore)||void 0===t?void 0:t.teamfightInfo),s=null==o?void 0:o.status,n={[eP.Hj.LinkmicTeamfightStatus_PLAYING]:"processing",[eP.Hj.LinkmicTeamfightStatus_PUNISHING]:"punish",[eP.Hj.LinkmicTeamfightStatus_PREPARE]:"prepare"};return null==n?void 0:n[s]}),(0,s._)(this,"getGroupFightGroupType",e=>{var t,i,o,s;let n=e||(null===(i=this.store)||void 0===i?void 0:null===(t=i.linkmicStore)||void 0===t?void 0:t.teamfightInfo),r=this.store.eventStore.basicEvent.getUserId(),a=(null==n?void 0:null===(s=n.team_infos)||void 0===s?void 0:null===(o=s[0])||void 0===o?void 0:o.players)||[];return(null==a?void 0:a.find(e=>(null==e?void 0:e.user_id)===r))?"red":"blue"}),(0,s._)(this,"isGuestBattle",e=>{var t;let i=e||(null===(t=this.store.linkmicStore)||void 0===t?void 0:t.guestBattleInfo);return!!(null==i?void 0:i.battle_id_str)&&Number(null==i?void 0:i.status)!==eE.Nq.GuestBattle_NONE&&Number(null==i?void 0:i.status)!==eE.Nq.GuestBattle_FINISH}),(0,s._)(this,"isGroupFight",e=>{var t;let i=e||(null===(t=this.store.linkmicStore)||void 0===t?void 0:t.teamfightInfo);return(null==i?void 0:i.type)===eP.yw.LinkmicTeamfightType_TWO_TEAM&&(null==i?void 0:i.status)!==eP.Hj.LinkmicTeamfightStatus_FINISHED&&(null==i?void 0:i.status)!==eP.Hj.LinkmicTeamfightStatus_NONE}),(0,s._)(this,"isCrossLink",()=>{let{isCrossLink:e,roomBattleType:t}=this.store.linkmicStore||{};return e&&"crossLink"===t}),(0,s._)(this,"isRoomBattle",e=>{var t;let i=e||(null===(t=this.store.linkmicStore)||void 0===t?void 0:t.teamfightInfo);return(null==i?void 0:i.type)===eP.yw.LinkmicTeamfightType_ROOM_BATTLE&&(null==i?void 0:i.status)!==eP.Hj.LinkmicTeamfightStatus_FINISHED&&(null==i?void 0:i.status)!==eP.Hj.LinkmicTeamfightStatus_NONE}),(0,s._)(this,"etOrderSingParams",function(){var e,i,o,s,n;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,{giftStore:{giftList:l},linkmicStore:{orderSingInfo:v,playModesPC:_}}=t.store,m=void 0!==a?a:v;return(null===(e=0!==r.length?r:_)||void 0===e?void 0:e.includes(eS.V0.LinkmicPlayMode_OrderSing))?{request_song_gift_id:String(null==m?void 0:m.gift_id),request_song_gift_money:String(null==l?void 0:null===(o=l.filter(e=>Number(null==e?void 0:e.id)===Number(null==m?void 0:m.gift_id)))||void 0===o?void 0:null===(i=o[0])||void 0===i?void 0:i.price),request_song_guest_id:null===(n=c()(v,"user_microphone_list",[]).find(e=>e.is_singing))||void 0===n?void 0:null===(s=n.order_user)||void 0===s?void 0:s.id_str,request_song_guest_level:c()(v,"user_microphone_list",[]).find(e=>e.is_singing)?"golden_mic":void 0}:{}}),(0,s._)(this,"getSeatFitStatus",e=>[ef.yP.VIDEO_DYNAMIC,ef.yP.VIDEO_1_V_3,ef.yP.VIDEO_1_V_6,ef.yP.VIDEO_1_V_8,ef.yP.VIDEO_DYNAMIC_FLOAT].includes(e)?eg.eG.ON:eg.eG.OFF),(0,s._)(this,"getOrderSingParams",function(){var e,i,o,s,n;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,{giftStore:{giftList:l},linkmicStore:{orderSingInfo:v,playModesPC:_}}=t.store,m=void 0!==a?a:v;return(null===(e=0!==r.length?r:_)||void 0===e?void 0:e.includes(eS.V0.LinkmicPlayMode_OrderSing))?{request_song_gift_id:String(null==m?void 0:m.gift_id),request_song_gift_money:String(null==l?void 0:null===(o=l.filter(e=>Number(null==e?void 0:e.id)===Number(null==m?void 0:m.gift_id)))||void 0===o?void 0:null===(i=o[0])||void 0===i?void 0:i.price),request_song_guest_id:null===(n=c()(v,"user_microphone_list",[]).find(e=>e.is_singing))||void 0===n?void 0:null===(s=n.order_user)||void 0===s?void 0:s.id_str,request_song_guest_level:c()(v,"user_microphone_list",[]).find(e=>e.is_singing)?"golden_mic":void 0}:{}}),(0,s._)(this,"getOrderSingLayoutType",()=>{var e,t;return{layout_type:(null===(t=this.store)||void 0===t?void 0:null===(e=t.linkmicStore)||void 0===e?void 0:e.hasEnlargedSeat)?"seat_enlarge":"normal"}}),(0,s._)(this,"getFunctionType",e=>{var t,i;let o=null===(i=this.store)||void 0===i?void 0:null===(t=i.linkmicStore)||void 0===t?void 0:t.functionType2,s="party";return(e===ef.yP.AUDIO_1V8||e===ef.yP.VIDEO_1V6||e===ef.yP.VIDEO_DYNAMIC_FLOAT)&&(s="radio"),e===ef.yP.MATE_CUSTOM&&(s="audio_audience"),"new_audience"===o&&(s="new_audience"),s}),(0,s._)(this,"getLinkMicNoUserTypeParams",()=>{var e,t,i,o,s,r;let{linkRoomTypeHooks:a,imLinkMicLayout:l,functionType2:v,linkMicSeats:_,linkMicConfig:m,selfLinkInfo:d,applySource:c,isFansGuide:u,playModesPC:h,teamfightInfo:g,uiLayout:E}=this.store.linkmicStore,{request_id:p=""}=window.__INVISIBLE_QUERY__||{},S=eg.$A.FALSE,P=eg.$A.FALSE,f="";"audio"===a&&m.audio_chat_accept_need_verified?S=eg.$A.TRUE:"video"===a&&m.big_party_accept_need_verified&&(S=eg.$A.TRUE),"video"===a&&(null==d?void 0:null===(e=d.user)||void 0===e?void 0:e.link_type)===ep.Un.TYPE_VIDEO&&(P=eg.$A.TRUE),"video"===a?f="video_live":"audio"===a&&(f="voice_live");let b=Object.values(_).filter(e=>!!e.user).length-1;l===ef.yP.VIDEO_6V6&&(b=-1,null===(s=Object.values(_))||void 0===s||s.map(e=>{(null==e?void 0:e.user)&&(null==e?void 0:e.idx)<ef.Lf[l]&&b++}));let w=null==h?void 0:h.includes(eS.V0.LinkmicPlayMode_OrderSing);return{request_id:p,link_distribute_switch_type:!n.s&&localStorage.getItem(eh.QU)||eg.eG.OFF,live_type:f,request_page:c,guest_connection_type:"",is_fans_guide:u?"1":"0",function_type:this.getFunctionType(l),function_type2:v,seat_fit_status:this.getSeatFitStatus(l),is_camera_open:P,connect_type:"apply",is_approve_needed:S,link_cnt:b,layout_id:String(E),play_mode:w?"request_song":l&&et.kV[l],theme:null!==(r=null==g?void 0:null===(o=g.room_battle_content)||void 0===o?void 0:null===(i=o.room_battle_mode)||void 0===i?void 0:null===(t=i.room_battle_theme_param)||void 0===t?void 0:t.theme_id)&&void 0!==r?r:""}}),(0,s._)(this,"getOrderSingV3Params",function(){var e;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,{giftStore:{giftList:s},linkmicStore:{orderSingInfo:n,playModesPC:r}}=t.store,a=void 0!==o?o:n;if(!(null===(e=0!==i.length?i:r)||void 0===e?void 0:e.includes(eS.V0.LinkmicPlayMode_OrderSing)))return{};let l=null==a?void 0:a.gift_ids;if(!l||l&&(null==l?void 0:l.length)===0)return{};let v=l.reduce((e,t)=>{var i,o;return e.concat(null==s?void 0:null===(o=s.filter(e=>Number(null==e?void 0:e.id)===t))||void 0===o?void 0:null===(i=o[0])||void 0===i?void 0:i.price)},[]);return{request_song_gift_id:l,request_song_gift_money:v,request_song_gift_cnt:(null==l?void 0:l.length)||1}}),(0,s._)(this,"getLayoutParams",e=>{var t,i,o,s;let n=null===(i=this.store)||void 0===i?void 0:null===(t=i.linkmicStore)||void 0===t?void 0:t.hasEnlargedSeat,r=e||(null===(s=this.store)||void 0===s?void 0:null===(o=s.linkmicStore)||void 0===o?void 0:o.linkMicLayout);return n?r===ef.yP.AUDIO_DOUBLE_C?"seat_enlarge_double":"seat_enlarge":[ef.yP.VIDEO_DYNAMIC,ef.yP.VIDEO_DYNAMIC_FLOAT,ef.yP.VIDEO_1_V_3,ef.yP.VIDEO_1_V_6,ef.yP.VIDEO_T1_V_B8].includes(r)?"seat_fit":"normal"}),(0,s._)(this,"getLinkMicParams",function(){var e,i,o,s,r,a;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",{linkRoomTypeHooks:v,imLinkMicLayout:_,functionType2:d,linkMicSeats:c,linkMicConfig:u,selfLinkInfo:h,applySource:g,isFansGuide:E,playModesPC:p,teamfightInfo:S,linkStatus:P,uiLayout:f,isNewVideoLinkmicRoom:b}=t.store.linkmicStore,{request_id:w=""}=window.__INVISIBLE_QUERY__||{},k=eg.$A.FALSE,y=eg.$A.FALSE,C="";"audio"===v&&u.audio_chat_accept_need_verified?k=eg.$A.TRUE:"video"===v&&u.big_party_accept_need_verified&&(k=eg.$A.TRUE),"video"===v&&(null==h?void 0:null===(e=h.user)||void 0===e?void 0:e.link_type)===ep.Un.TYPE_VIDEO&&(y=eg.$A.TRUE),"video"===v?C="video_live":"audio"===v&&(C="voice_live");let I=Object.values(c).filter(e=>!!e.user).length-1;_===ef.yP.VIDEO_6V6&&(I=-1,null===(r=Object.values(c))||void 0===r||r.map(e=>{(null==e?void 0:e.user)&&(null==e?void 0:e.idx)<ef.Lf[_]&&I++}));let L=null==p?void 0:p.includes(eS.V0.LinkmicPlayMode_OrderSing),A=P===m.cK.LINKED?"guest":"audience";return{request_id:w,link_distribute_switch_type:!n.s&&localStorage.getItem(eh.QU)||eg.eG.OFF,live_type:C,request_page:g,guest_connection_type:"",is_fans_guide:E?"1":"0",function_type:l||t.getFunctionType(_),function_type2:d,user_type:A,seat_fit_status:t.getSeatFitStatus(_),is_camera_open:y,connect_type:"apply",is_approve_needed:k,link_cnt:I,layout_id:String(f),play_mode:L?"request_song":_&&et.kV[_],theme:null!==(a=null==S?void 0:null===(s=S.room_battle_content)||void 0===s?void 0:null===(o=s.room_battle_mode)||void 0===o?void 0:null===(i=o.room_battle_theme_param)||void 0===i?void 0:i.theme_id)&&void 0!==a?a:"",is_new_video_link:b?"1":"0",layout_type_x:b?String(f):""}}),(0,s._)(this,"getGuestBattleGusetCnt",()=>{let e=Object.keys(this.store.linkmicStore.linkMicSeats).filter(e=>{var t,i,o;return!!(null===(o=this.store.linkmicStore.linkMicSeats[e])||void 0===o?void 0:null===(i=o.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)}).length;return 0===e?0:e-1}),(0,s._)(this,"getGuestBattleCompetaMode",e=>{var t;let i=e||(null===(t=this.store.linkmicStore)||void 0===t?void 0:t.guestBattleInfo);return null==i?void 0:i.score_type}),(0,s._)(this,"getGuestBattleStage",e=>{var t;let i=e||(null===(t=this.store.linkmicStore)||void 0===t?void 0:t.guestBattleInfo);if(!i)return"";let o=Number(null==i?void 0:i.status),s={[eE.Nq.GuestBattle_ON_GOING]:"on_going",[eE.Nq.GuestBattle_SHOW_RESULT]:"show_result",[eE.Nq.GuestBattle_FINISH]:"finish",[eE.Nq.GuestBattle_PAUSE]:"pause"};return null==s?void 0:s[o]}),(0,s._)(this,"getGroupFightUserType",()=>{var e,t,i,o;let s=this.store.eventStore.basicEvent.getUserId(),n=s===(null===(o=this.store)||void 0===o?void 0:null===(i=o.roomStore)||void 0===i?void 0:null===(t=i.roomInfo)||void 0===t?void 0:null===(e=t.anchor)||void 0===e?void 0:e.id_str),r=!n&&Object.keys(this.store.linkmicStore.linkMicSeats).some(e=>{var t,i,o;return(null===(o=this.store.linkmicStore.linkMicSeats[e])||void 0===o?void 0:null===(i=o.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)===s});return n?eg.sU.ANCHOR:r?eg.sU.GUEST:eg.sU.AUDIENCE}),(0,s._)(this,"getGroupFightGusetCnt",()=>{let e=Object.keys(this.store.linkmicStore.linkMicSeats).filter(e=>{var t,i,o;return!!(null===(o=this.store.linkmicStore.linkMicSeats[e])||void 0===o?void 0:null===(i=o.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)}).length;return 0===e?0:e-1}),(0,s._)(this,"getGroupFightCommonParams",()=>(0,_._)({},eu()(this.getLinkMicNoUserTypeParams(),["live_type"]),eu()(this.store.eventStore.basicEvent.getPlayerCommonEventParams(),["anchor_id","room_id"]),eu()(this.getLinkMicParams(),["function_type","function_type2"]))),(0,s._)(this,"getGroupFightEnterParams",()=>{let{enter_from:e="",enter_method:t="",action_type:i=""}=this.store.eventStore.basicEvent.getEnterEventParams();return{enter_from:e,enter_method:t,action_type:i}}),(0,s._)(this,"groupPkShow",()=>{let{eventStore:{basicEvent:e}}=this.store;window.collectEvent("livesdk_grouppk_show",(0,y._)((0,_._)({},null==e?void 0:e.getEnterEventParams(),this.getGroupFightCommonParams()),{user_type:this.getGroupFightUserType(),grouppk_stage:this.getGorupFightStage(),guest_cnt:this.getGroupFightGusetCnt(),user_id:this.store.eventStore.basicEvent.getUserId()}))}),(0,s._)(this,"getFaceRecognitionPopupData",()=>{let{linkRoomTypeHooks:e,imLinkMicLayout:t,orderSingInfo:i}=this.store,o=this.isGuestBattle()?"boom":this.isGroupFight()?"grouppk":i?"request_song":t&&t===ef.yP.VIDEO_6V6?et.kV[t]:"",s="";return"video"===e?s="video_live":"audio"===e&&(s="voice_live"),{live_type:s,play_mode:o,is_web:1,layout_type:"normal"}}),(0,s._)(this,"waitForValue",async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e3,i=async e=>new Promise(t=>setTimeout(t,e)),o=0;for(;void 0===e&&o<10;)await i(t/10),o++}),(0,s._)(this,"getPkCommonParams",()=>{var e,t,i,o,s,n,r,a;let{linkRoomTypeHooks:l,imLinkMicLayout:v,functionType2:_,linkMicSeats:m,linkMicConfig:d,selfLinkInfo:c,applySource:u,isFansGuide:h,playModesPC:g,teamfightInfo:E}=this.store.linkmicStore,{pkAppData:p,pkEggData:S}=this.store.pkStore,{roomInfo:P}=this.store.roomStore,{odin:f}=this.store.userStore,{request_id:b=""}=window.__INVISIBLE_QUERY__||{},w=eg.$A.FALSE,k=eg.$A.FALSE,y="";"audio"===l&&d.audio_chat_accept_need_verified?eg.$A.TRUE:"video"===l&&d.big_party_accept_need_verified&&eg.$A.TRUE,"video"===l&&(null==c?void 0:null===(e=c.user)||void 0===e?void 0:e.link_type)===ep.Un.TYPE_VIDEO&&eg.$A.TRUE,"video"===l?y="video_live":"audio"===l&&(y="voice_live");let C={1:"npk_team1",2:"npk_team2"},I=p.ver===G.TG.DOUBLE?"dpk":"npk";return 1===Number(null==S?void 0:null===(t=S.config)||void 0===t?void 0:t.team_work_team_task_type)?I=C["1"]:2===Number(null==S?void 0:null===(i=S.config)||void 0===i?void 0:i.team_work_team_task_type)&&(I=C["2"]),{live_type:y,request_id:b,channel_id:(null==p?void 0:p.channelId)||0,pk_id:null==S?void 0:S.battle_id,mission_type:({1:"people",3:"pk_score",6:"first_gift"})[null==S?void 0:null===(o=S.config)||void 0===o?void 0:o.target_type],reward_type:6===Number(null==S?void 0:null===(s=S.config)||void 0===s?void 0:s.target_type)?"double_score":({2:"addition",3:"double_score"})[null==S?void 0:null===(n=S.config)||void 0===n?void 0:n.reward_type],user_type:"audience",pk_source:I,room_id:null==P?void 0:P.roomId,anchor_id:null==P?void 0:null===(r=P.anchor)||void 0===r?void 0:r.id_str,user_id:null==f?void 0:f.user_id,anchor_connect_status:(null==p?void 0:null===(a=p.grids)||void 0===a?void 0:a.length)||-1}}),this.store=e}}var ew=i("350856"),ek=i.n(ew),ey=i("908219"),eC=i.n(ey),eI=i("156674"),eL=i.n(eI),eA=i("864312"),eR=i("243745"),eT=i("859091"),eO=i("361248");class eG{constructor(e){var t=this;(0,s._)(this,"store",null),(0,s._)(this,"groupPkShow",()=>{let{eventStore:{linkmicBaseEvent:e,basicEvent:t}}=this.store;window.collectEvent("livesdk_grouppk_show",(0,y._)((0,_._)({},null==t?void 0:t.getEnterEventParams(),e.getGroupFightCommonParams()),{user_type:e.getGroupFightUserType(),grouppk_stage:e.getGorupFightStage(),guest_cnt:e.getGroupFightGusetCnt(),user_id:t.getUserId()}))}),(0,s._)(this,"liveAudienceAssignGuestPkPageShowEvent",()=>{let{eventStore:{basicEvent:e,linkmicBaseEvent:t}}=this.store;window.collectEvent("livesdk_audience_assign_guest_pk_page_show",(0,y._)((0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getLinkMicParams()),{user_type:eO.yG.ANCHOR_GUEST,play_stage:t.getArenaBattlePlayStage()}))}),(0,s._)(this,"liveFaceRecognitionPopupShowEvent",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=this.store;window.collectEvent("livesdk_face_recognition_popup_show",(0,_._)({},t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getFaceRecognitionPopupData(),e))}),(0,s._)(this,"liveFaceRecognitionPopupReceiveEvent",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=this.store;window.collectEvent("livesdk_face_recognition_popup_message_receive",(0,_._)({},t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getFaceRecognitionPopupData(),e))}),(0,s._)(this,"liveFaceRecognitionPopupVerifyButtonEvent",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=this.store;window.collectEvent("livesdk_face_recognition_popup_verify_button_click",(0,y._)((0,_._)({},t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getFaceRecognitionPopupData()),{verification_type:e}))}),(0,s._)(this,"liveFaceRecognitionPopupNotVerifyButtonEvent",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=this.store;window.collectEvent("livesdk_face_recognition_popup_not_verify_button_click",(0,y._)((0,_._)({},t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getFaceRecognitionPopupData()),{verification_type:e}))}),(0,s._)(this,"liveFaceRecognitionPopupDisappearEvent",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=this.store;window.collectEvent("livesdk_face_recognition_popup_disappear",(0,y._)((0,_._)({},t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getFaceRecognitionPopupData()),{verification_type:e}))}),(0,s._)(this,"liveFaceRecognitionAuthorPopupShowEvent",(e,t)=>{let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_face_recognition_authorization_popup_show",(0,y._)((0,_._)({},i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getFaceRecognitionPopupData()),{enter_type:e,enter_page:t}))}),(0,s._)(this,"liveFaceRecognitionAuthorPopupVerifyButtonEvent",(e,t)=>{let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_face_recognition_authorization_popup_click",(0,y._)((0,_._)({},i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getFaceRecognitionPopupData()),{enter_type:e,enter_page:t}))}),(0,s._)(this,"liveFaceRecognitionAuthorPopupNotVerifyButtonEvent",(e,t)=>{let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_face_recognition_authorization_popup_not_click",(0,y._)((0,_._)({},i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getFaceRecognitionPopupData()),{enter_type:e,enter_page:t}))}),(0,s._)(this,"liveConnectLinkMicEvent",(e,t)=>{let{eventStore:{basicEvent:i,linkmicBaseEvent:o,pkEvent:s},linkmicStore:{playModes:n}}=this.store,r={play_mode:"grouppk",play_stage:o.getGorupFightStage(),grouppk_group:o.getGroupFightGroupType()},{linkMicLayout:a}=this.store.linkmicStore,l={compete_mode:o.getGuestBattleCompetaMode(),play_mode:"boom",play_stage:o.getGuestBattleStage()},v={play_mode:"assign_guest",play_stage:o.getArenaBattlePlayStage(),user_type:o.getArenaBattleUserType()},m=n.map(e=>et.v[e]).filter(Boolean),d={};"request_song"in m&&(d=o.getOrderSingParams()),window.collectEvent("livesdk_guest_connection_success",(0,_._)((0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams(),s.getRoomPKParams(),o.getOrderSingParams(),this.getEnlargeParams()),{is_candidate:e,is_fans_guide:t,from_user_id:"",from_user_type:"",layout_type:o.getLayoutParams(a)}),o.isGroupFight()?r:{},o.isGuestBattle()?l:{},o.isArenaBattle()?v:{},o.isCrossLink()?{play_mode:"link_room"}:{},d)),eT._6.start()}),(0,s._)(this,"liveLeaveLinkMicEvent",ek()((e,t,i,o,s,n)=>{let{linkmicStore:{playModes:r},eventStore:{basicEvent:a,pkEvent:l,linkmicBaseEvent:v}}=this.store,{linkMicLayout:m}=this.store.linkmicStore,d={play_mode:"grouppk",play_stage:v.getGorupFightStage(i)},c={compete_mode:v.getGuestBattleCompetaMode(),play_mode:"boom",play_stage:v.getGuestBattleStage()},u=r.map(e=>et.v[e]).filter(Boolean),h={};"request_song"in u&&(h=v.getOrderSingParams());let g=(0,_._)((0,y._)((0,_._)({},a.getCommonEventParams(),a.getPlayerCommonEventParams(),a.getEnterEventParams(),v.getLinkMicParams(o),l.getRoomPKParams(),v.getOrderSingParams(),o?{function_type2:o}:{},this.getEnlargeParams()),{duration:eT._6.getTotal(),over_type:t,break_page:e,from_user_id:"",from_user_type:"",layout_type:v.getLayoutParams(m||""),enlarge_duration:eT.Ul.getTotal(),double_enlarge_duration:eT.mp.getTotal()}),v.isGroupFight()?d:{},v.isGuestBattle()?c:{},v.isCrossLink()?{play_mode:"link_room"}:{},h,void 0!==s?s?{is_new_video_link:"1"}:{is_new_video_link:"0"}:{},void 0!==n?{layout_type_x:String(n)}:{});window.collectEvent("livesdk_guest_connection_over",g),eT._6.reset()},400)),(0,s._)(this,"liveApplyLinkMicEvent",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i,pkEvent:o},linkmicStore:{playModes:s}}=this.store,n=i.getLinkMicParams(),r={play_mode:"grouppk",play_stage:i.getGorupFightStage(),grouppk_group:null==e?void 0:e.grouppk_group},a={compete_mode:i.getGuestBattleCompetaMode(),play_mode:"boom",play_stage:i.getGuestBattleStage()},{linkMicSeats:l,linkMicLayout:v}=this.store.linkmicStore,m=eg.$A.FALSE;v!==ef.yP.VIDEO_DYNAMIC?Object.values(l).every(e=>!!e.user)&&(m=eg.$A.TRUE):9===Object.values(l).length&&(m=eg.$A.TRUE);let d=s.map(e=>et.v[e]).filter(Boolean),c={};"request_song"in d&&(c=i.getOrderSingParams()),window.collectEvent("livesdk_guest_connection_apply",(0,_._)((0,y._)((0,_._)((0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams(),o.getRoomPKParams(),i.getOrderSingParams()),{is_full:m,function_type:n.function_type,duration:eT.Ys.getTotal()}),i.isGroupFight()?r:{},i.isGuestBattle()?a:{},i.isCrossLink()?{play_mode:"link_room"}:{}),{layout_type:i.getLayoutParams(v||"")}),c))}),(0,s._)(this,"getGuestBattleCommonParams",()=>{let{eventStore:{basicEvent:e,linkmicBaseEvent:t}}=this.store;return(0,_._)({},eu()(t.getLinkMicNoUserTypeParams(),["live_type"]),eu()(e.getPlayerCommonEventParams(),["anchor_id","room_id"]),eu()(t.getLinkMicParams(),["function_type","function_type2","seat_fit_status","play_mode","is_fans_guide"]))}),(0,s._)(this,"guestBattleLiveGuestConnectionInvitedEvent",()=>{let{eventStore:{linkmicBaseEvent:e,basicEvent:t}}=this.store;window.collectEvent("livesdk_guest_connection_invited",(0,y._)((0,_._)({},null==t?void 0:t.getEnterEventParams(),this.getGuestBattleCommonParams(),eu()(e.getLinkMicParams(),["is_new_video_link","layout_type_x"])),{play_stage:e.getGorupFightStage()}))}),(0,s._)(this,"guestBattleLiveConnectionGameTransformEvent",()=>{let{eventStore:{linkmicBaseEvent:e,basicEvent:t}}=this.store;window.collectEvent("livesdk_connection_game_transform",(0,y._)((0,_._)({},null==t?void 0:t.getEnterEventParams(),this.getGuestBattleCommonParams()),{user_cnt:e.getGuestBattleGusetCnt()+1,game_id:e.getGuestBattleId(),game_name:"boom",compete_mode:e.getGuestBattleCompetaMode()}))}),(0,s._)(this,"liveConnectionEquipmentSelectEvent",()=>{let{eventStore:{basicEvent:e,linkmicBaseEvent:t}}=this.store;window.collectEvent("livesdk_connection_equipment_select",(0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getLinkMicParams()))}),(0,s._)(this,"liveConnectionEquipmentSelectPanelShowEvent",()=>{let{eventStore:{basicEvent:e,linkmicBaseEvent:t}}=this.store;window.collectEvent("livesdk_connection_equipment_select_panel_show",(0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getLinkMicParams()))}),(0,s._)(this,"liveSdkAuidenceVoiceroomCaptionUseDuration",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=this.store;window.collectEvent("livesdk_audience_voiceroom_caption_use_duration",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams()),{duration:e}))}),(0,s._)(this,"liveAudienceConnectionUserCameraOpenEvent",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=this.store;window.collectEvent("livesdk_audience_connection_user_camera_open_click",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams()),{button_type:e}))}),(0,s._)(this,"liveGuestSwitchSeatEvent",(e,t)=>{let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=this.store,{from:s,to:n}=t||{},{selfLinkMicId:r,linkMicSeats:a}=this.store.linkmicStore,l="";Object.values(a).forEach(e=>{var t,i;r&&(null===(t=e.user)||void 0===t?void 0:t.linkmic_id_str)===r&&(l=null===(i=e.user)||void 0===i?void 0:i.user_position)});let v=(null==t?void 0:t.from)&&(null==t?void 0:t.to)?{grouppk_origin_group:s,grouppk_switch_group:n,grouppk_stage:o.getGorupFightStage()}:{};window.collectEvent("livesdk_guest_switch_connection_seat",(0,_._)((0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams()),{original_seat:l||"",switch_seat:e||""}),v))}),(0,s._)(this,"liveSeatHeadClickEvent",(e,t)=>{let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_seat_head_click",(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams()),{user_id:e,user_type:t}))}),(0,s._)(this,"liveUnSilenceEvent",()=>{let{eventStore:{basicEvent:e,linkmicBaseEvent:t}}=this.store;window.collectEvent("livesdk_guest_connection_mute_cancel",(0,y._)((0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getLinkMicParams()),{request_page:"seat"}))}),(0,s._)(this,"liveSilenceEvent",()=>{let{eventStore:{basicEvent:e,linkmicBaseEvent:t}}=this.store;window.collectEvent("livesdk_guest_connection_mute",(0,y._)((0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getLinkMicParams()),{request_page:"seat"}))}),(0,s._)(this,"liveLeaveBtnClickEvent",()=>{let{eventStore:{basicEvent:e,linkmicBaseEvent:t}}=this.store;window.collectEvent("livesdk_guest_connection_break_click",(0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getLinkMicParams()))}),(0,s._)(this,"getIsAnchorEnlarge",e=>{var t,i,o,s,n,r,a;let l=null===(s=this.store)||void 0===s?void 0:null===(o=s.roomStore)||void 0===o?void 0:null===(i=o.roomInfo)||void 0===i?void 0:null===(t=i.anchor)||void 0===t?void 0:t.id_str;if(!l)return!1;let v=eL()(e||[]).find(e=>{var t,i;return l===(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)});return null==v?void 0:null===(a=v.user)||void 0===a?void 0:null===(r=a.content)||void 0===r?void 0:null===(n=r.linkmic_audience_content)||void 0===n?void 0:n.is_enlarged}),(0,s._)(this,"getEnlargeParams",(e,t)=>{var i,o,s,n,r,a,l,v,m,d,u,h,g,E,p,S,P,f;let b;let w=null===(o=this.store)||void 0===o?void 0:null===(i=o.linkmicStore)||void 0===i?void 0:i.hasEnlargedSeat,k=null===(n=this.store)||void 0===n?void 0:null===(s=n.linkmicStore)||void 0===s?void 0:s.linkMicSeats,y=null===(v=this.store)||void 0===v?void 0:null===(l=v.roomStore)||void 0===l?void 0:null===(a=l.roomInfo)||void 0===a?void 0:null===(r=a.anchor)||void 0===r?void 0:r.id_str,C=(null===(d=this.store)||void 0===d?void 0:null===(m=d.userStore)||void 0===m?void 0:m.userInfo)||{},I=e||(null===(h=this.store)||void 0===h?void 0:null===(u=h.linkmicStore)||void 0===u?void 0:u.linkMicLayout),L=t||(null===(E=this.store)||void 0===E?void 0:null===(g=E.linkmicStore)||void 0===g?void 0:g.openUiLayout),A="";A=26===L&&I===ef.yP.AUDIO_DOUBLE_C?"stable_double":et.i7[I];let R="normal";if(!w)return{enlarge_show_type:A,current_enlarge_user_type:R};let T=c()(k,"0"),O=this.getIsAnchorEnlarge(k);I===ef.yP.VIDEO_2V4V4?R="double":[ef.yP.VIDEO_1_V_8,ef.yP.VIDEO_1V8,ef.yP.AUDIO_1V8].includes(I)?R=O?"anchor":"guest":I===ef.yP.AUDIO_DOUBLE_C&&26===L&&(R="stable_double");let G=eL()(k).filter(e=>c()(e,"user.content.linkmic_audience_content.is_enlarged",!1)).length;I===ef.yP.AUDIO_DOUBLE_C&&26===L&&(b=G<2?1:0);let M=eL()(k).filter(e=>(null==C?void 0:C.id_str)===c()(e,"user.user.id_str","")&&c()(e,"user.content.linkmic_audience_content.is_enlarged",!1)).length;return(0,_._)({enlarge_user_id:null==T?void 0:null===(S=T.user)||void 0===S?void 0:null===(p=S.user)||void 0===p?void 0:p.id_str,enlarge_user_type:y===(null==T?void 0:null===(f=T.user)||void 0===f?void 0:null===(P=f.user)||void 0===P?void 0:P.id_str)?"anchor":"guest",enlarge_show_type:A,is_anchor_enlarge:O?1:0,is_enlarge:M,current_enlarge_user_type:R},void 0===b?{}:{is_empty_enlarge_seat:b})}),(0,s._)(this,"liveSdkLiveGuestEnlargeStart",e=>{var t;let{eventStore:{basicEvent:i,linkmicBaseEvent:o,pkEvent:s},linkmicStore:{linkMicSeats:n,linkMicLayout:r},roomStore:{roomInfo:a}}=this.store,l=null===(t=Object.values(n).filter(e=>{var t,i,o;return(null==e?void 0:e.user)&&(null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)!==(null==a?void 0:null===(o=a.anchor)||void 0===o?void 0:o.id_str)}))||void 0===t?void 0:t.length;window.collectEvent("livesdk_live_guest_enlarge_start",(0,_._)((0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams(),s.getRoomPKParams(),o.getOrderSingParams(),o.getOrderSingLayoutType(),this.getEnlargeParams(),o.getOrderSingV3Params()),{seat_num:l,is_double:r===ef.yP.VIDEO_2V4V4?1:0}),e))}),(0,s._)(this,"liveSdkLiveGuestEnlargeInvite",()=>{let{eventStore:{basicEvent:e,linkmicBaseEvent:t},linkmicStore:{linkMicLayout:i,playModes:o}}=this.store;window.collectEvent("livesdk_guest_enlarge_invited",(0,y._)((0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getLinkMicParams()),{layout_type:t.getLayoutParams(i),play_mode:o.map(e=>et.v[e]).filter(Boolean)}))}),(0,s._)(this,"liveSdkLiveGuestEnlargeInviteClick",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i},linkmicStore:{linkMicLayout:o,playModes:s}}=this.store,{buttonType:n}=e;window.collectEvent("livesdk_guest_enlarge_invited_click",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams()),{layout_type:i.getLayoutParams(o),play_mode:s.map(e=>et.v[e]).filter(Boolean),button_type:n}))}),(0,s._)(this,"liveSdkLiveGuestEnlargeOpenSuccess",e=>{var t;let{eventStore:{basicEvent:i,linkmicBaseEvent:o},linkmicStore:{linkMicSeats:s,linkMicLayout:n,enlargeGuestType:r},roomInfo:a}=this.store,{buttonType:l,userId:v}=e,m=null===(t=Object.values(s).filter(e=>{var t,i,o;return(null==e?void 0:e.user)&&(null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)!==(null==a?void 0:null===(o=a.anchor)||void 0===o?void 0:o.id_str)}))||void 0===t?void 0:t.length;window.collectEvent("livesdk_live_guest_enlarge_open_success",(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),this.getEnlargeParams(),o.getLinkMicParams()),{user_type:"guest",seat_num:m,is_double:2===r?1:0,is_anchor_enlarge:this.getIsAnchorEnlarge(s)?1:0,action_type:l,enlarge_user_type:"guest",enlarge_user_id:v}))}),(0,s._)(this,"liveSdkLiveGuestEnlargeSettingClick",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=this.store,{buttonType:o,userId:s,userType:n}=e;window.collectEvent("livesdk_live_anchor_enlarge_guest_setting_click",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams(),this.getEnlargeParams()),{user_type:"admin",enlarge_user_type:void 0===n?"":n,enlarge_user_id:void 0===s?"":s,action_type:o}))}),(0,s._)(this,"liveSdkLiveGuestEnlargeGuestInvite",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i},linkmicStore:{linkMicSeats:o,linkMicLayout:s}}=this.store,{enlargeType:n,userId:r}=e,a=this.getIsAnchorEnlarge(o),l="normal";s===ef.yP.VIDEO_2V4V4?l="double":[ef.yP.VIDEO_1_V_8,ef.yP.VIDEO_1V8].includes(s)&&(l=a?"anchor":"guest"),window.collectEvent("livesdk_live_anchor_enlarge_guest_invite",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams(),this.getEnlargeParams()),{user_type:"admin",current_enlarge_user_type:l,enlarge_type:n,enlarge_user_type:"guest",enlarge_user_id:r}))}),(0,s._)(this,"liveLinkMicDurationEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,{eventStore:{basicEvent:r,linkmicBaseEvent:a,pkEvent:l},linkmicStore:{playModes:v}}=t.store,m=a.getLinkMicParams(),d={play_mode:"grouppk",play_stage:a.getGorupFightStage(i)},c={compete_mode:a.getGuestBattleCompetaMode(),play_mode:"boom",play_stage:a.getGuestBattleStage()},u=o||(void 0!==e?a.getFunctionType(e):m.function_type),h=v.includes(eS.V0.LinkmicPlayMode_OrderSing)&&"request_song",g=Object.assign((0,y._)((0,_._)({},r.getCommonEventParams(),r.getPlayerCommonEventParams(),r.getEnterEventParams(),a.getLinkMicNoUserTypeParams(),l.getRoomPKParams(),m),{function_type:u,function_type2:o||(void 0!==e?u:m.function_type2),play_mode:h||void 0!==e&&et.kV[e],duration:eT.Ys.getTotal(),layout_type:a.getLayoutParams(e)}),a.isGroupFight()?d:{},a.isGuestBattle()?c:{},a.isCrossLink()?{play_mode:"link_room"}:{},void 0!==s?s?{is_new_video_link:"1"}:{is_new_video_link:"0"}:{},void 0!==n?{layout_type_x:String(n)}:{});window.collectEvent("livesdk_voice_room_watch_duration",g),eT.Ys.reset()}),(0,s._)(this,"liveRequestSongListShowEvent",()=>{var e,t;let{userStore:{userInfo:i},roomStore:{roomInfo:o},linkmicStore:{linkMicSeats:s,orderSingSortRule:n,orderSingInfo:r},eventStore:{basicEvent:a,linkmicBaseEvent:l}}=this.store,v=l.getLinkMicParams(),m=null==o?void 0:null===(t=o.room)||void 0===t?void 0:null===(e=t.admin_user_ids_str)||void 0===e?void 0:e.includes(null==i?void 0:i.id_str),d=Object.values(s).some(e=>{var t,o;return(null==e?void 0:null===(o=e.user)||void 0===o?void 0:null===(t=o.user)||void 0===t?void 0:t.id_str)===(null==i?void 0:i.id_str)});window.collectEvent("livesdk_guest_connection_request_song_list_show",(0,y._)((0,_._)({},a.getCommonEventParams(),a.getPlayerCommonEventParams(),a.getEnterEventParams(),v,l.getOrderSingLayoutType(),l.getOrderSingV3Params(),l.getOrderSingParams()),{user_type:m?"administrator":d?"guest":"user",song_list_type:n===eA.jQ.OrderSingGiftRule?"request_list":"seat_list",play_mode:"request_song"}))}),(0,s._)(this,"livesdkGuestConnectionRequestSongSelectShow",()=>{var e,t;let{userStore:{userInfo:i},roomStore:{roomInfo:o},linkmicStore:{linkMicSeats:s},eventStore:{basicEvent:n,linkmicBaseEvent:r}}=this.store,a=r.getLinkMicParams(),l=null==o?void 0:null===(t=o.room)||void 0===t?void 0:null===(e=t.admin_user_ids_str)||void 0===e?void 0:e.includes(null==i?void 0:i.id_str),v=Object.values(s).some(e=>{var t,o;return(null==e?void 0:null===(o=e.user)||void 0===o?void 0:null===(t=o.user)||void 0===t?void 0:t.id_str)===(null==i?void 0:i.id_str)});window.collectEvent("livesdk_guest_connection_request_song_select_show",(0,y._)((0,_._)({},n.getCommonEventParams(),n.getPlayerCommonEventParams(),n.getEnterEventParams(),a,r.getOrderSingLayoutType(),r.getOrderSingV3Params(),r.getOrderSingParams()),{user_type:l?"administrator":v?"guest":"user",play_mode:"request_song"}))}),(0,s._)(this,"livesdkGuestConnectionRequestSongEntrance",e=>{var t,i;let{userStore:{userInfo:o},roomStore:{roomInfo:s},linkmicStore:{linkMicSeats:n},eventStore:{basicEvent:r,linkmicBaseEvent:a}}=this.store,l=a.getLinkMicParams(),v=null==s?void 0:null===(i=s.room)||void 0===i?void 0:null===(t=i.admin_user_ids_str)||void 0===t?void 0:t.includes(null==o?void 0:o.id_str),m=Object.values(n).some(e=>{var t,i;return(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)===(null==o?void 0:o.id_str)});window.collectEvent("livesdk_guest_connection_request_song_entrance",(0,y._)((0,_._)({operate_type:e},r.getCommonEventParams(),r.getPlayerCommonEventParams(),r.getEnterEventParams(),a.getOrderSingParams(),l,a.getOrderSingLayoutType()),{user_type:v?"administrator":m?"guest":"user"}))}),(0,s._)(this,"livesdkGuestConnectionRequestSongSelectConfirm",e=>{var t,i;let{userStore:{userInfo:o},roomStore:{roomInfo:s},linkmicStore:{linkMicSeats:n},eventStore:{basicEvent:r,linkmicBaseEvent:a}}=this.store,l=a.getLinkMicParams(),v=null==s?void 0:null===(i=s.room)||void 0===i?void 0:null===(t=i.admin_user_ids_str)||void 0===t?void 0:t.includes(null==o?void 0:o.id_str),m=Object.values(n).some(e=>{var t,i;return(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)===(null==o?void 0:o.id_str)});window.collectEvent("livesdk_guest_connection_request_song_select_confirm",(0,y._)((0,_._)({},e,r.getCommonEventParams(),r.getPlayerCommonEventParams(),r.getEnterEventParams(),a.getOrderSingParams(),l,a.getOrderSingLayoutType()),{user_type:v?"administrator":m?"guest":"user"}))}),(0,s._)(this,"livesdkAnchorConnectionRequestSongButtonClick",e=>{var t,i;let{userStore:{userInfo:o},roomStore:{roomInfo:s},linkmicStore:{linkMicSeats:n},eventStore:{basicEvent:r,linkmicBaseEvent:a}}=this.store,l=a.getLinkMicParams(),v=null==s?void 0:null===(i=s.room)||void 0===i?void 0:null===(t=i.admin_user_ids_str)||void 0===t?void 0:t.includes(null==o?void 0:o.id_str),m=Object.values(n).some(e=>{var t,i;return(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.id_str)===(null==o?void 0:o.id_str)});window.collectEvent("livesdk_anchor_connection_request_song_button_click",(0,y._)((0,_._)({},e,r.getCommonEventParams(),r.getPlayerCommonEventParams(),r.getEnterEventParams(),a.getOrderSingParams(),a.getOrderSingV3Params(),l,a.getOrderSingLayoutType()),{user_type:v?"administrator":m?"guest":"user"}))}),(0,s._)(this,"liveSdkLiveGuestEnlargeOver",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i,pkEvent:o},linkmicStore:{linkMicLayout:s}}=this.store;window.collectEvent("livesdk_live_guest_enlarge_over",(0,y._)((0,_._)((0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams(),o.getRoomPKParams(),i.getOrderSingParams(),i.getOrderSingLayoutType(),this.getEnlargeParams(),i.getOrderSingV3Params()),{is_double:s===ef.yP.VIDEO_2V4V4?1:0}),e),{duration:eT.Ul.getTotal(),double_enlarge_duration:eT.mp.getTotal()})),eT.Ul.reset(),eT.mp.reset()}),(0,s._)(this,"liveRequestSongInterruptEvent",e=>{var t;let{linkmicStore:{orderSingInfo:i},eventStore:{basicEvent:o,linkmicBaseEvent:s}}=this.store,n="";null==i||null===(t=i.user_microphone_list)||void 0===t||t.map(t=>{var i,o,s,r;String(null===(i=t.order_user)||void 0===i?void 0:i.id)===e&&((null==t?void 0:null===(r=t.microphone_list)||void 0===r?void 0:null===(s=r.filter(e=>(null==e?void 0:e.microphone_type)===eR.W5.GOLDEN_MICROPHONE))||void 0===s?void 0:null===(o=s[0])||void 0===o?void 0:o.micro_phone_num)>0?eR.W5.GOLDEN_MICROPHONE:eR.W5.SILVER_MICROPHONE,n="golden_mic")}),window.collectEvent("livesdk_anchor_connection_request_song_interrupt",(0,y._)((0,_._)({},o.getCommonEventParams(),o.getPlayerCommonEventParams(),o.getEnterEventParams(),s.getLinkMicParams(),s.getOrderSingParams()),{user_type:"administrator",request_song_guest_id:e,request_song_guest_level:n}))}),(0,s._)(this,"liveRequestSongInviteEvent",(e,t)=>{var i,o;let{linkmicStore:{orderSingInfo:s},eventStore:{basicEvent:n,linkmicBaseEvent:r}}=null!==(o=this.store)&&void 0!==o?o:{},a="";null==s||null===(i=s.user_microphone_list)||void 0===i||i.map(e=>{var i,o,s,n;String(null===(i=e.order_user)||void 0===i?void 0:i.id)===t&&((null==e?void 0:null===(n=e.microphone_list)||void 0===n?void 0:null===(s=n.filter(e=>(null==e?void 0:e.microphone_type)===eR.W5.GOLDEN_MICROPHONE))||void 0===s?void 0:null===(o=s[0])||void 0===o?void 0:o.micro_phone_num)>0?eR.W5.GOLDEN_MICROPHONE:eR.W5.SILVER_MICROPHONE,a="golden_mic")}),window.collectEvent("livesdk_anchor_connection_request_song_invite",(0,y._)((0,_._)({},n.getCommonEventParams(),n.getPlayerCommonEventParams(),n.getEnterEventParams(),r.getLinkMicParams(),r.getOrderSingParams()),{user_type:"administrator",request_song_line_up:e,request_song_guest_id:t,request_song_guest_level:a}))}),(0,s._)(this,"liveRoomGroupPKOthersClickEvent",e=>{var t,i,o,s,n,r;let a,{position:l=0,user:v={},actionType:m="head",gameName:d="",showTab:c=""}=e,{userStore:{userInfo:u},linkmicStore:{teamfightInfo:h,linkMicLayout:g},eventStore:{basicEvent:E,linkmicBaseEvent:p,pkEvent:S}}=null!==(r=this.store)&&void 0!==r?r:{},P=!1;null==h||null===(t=h.team_infos)||void 0===t||t.map(e=>{var t;null===(t=e.players)||void 0===t||t.map(e=>{(null==u?void 0:u.id_str)===String(e.user_id)&&(P=!0),(null==v?void 0:v.id_str)===String(e.user_id)&&(a=e)})});let f=null==h?void 0:null===(i=h.team_infos)||void 0===i?void 0:i.some(e=>{var t;return null==e?void 0:null===(t=e.players)||void 0===t?void 0:t.some(e=>{if((null==v?void 0:v.id_str)===String(null==e?void 0:e.user_id))return!0})}),b=0===l||g===ef.yP.VIDEO_6V6&&l===ef.Lf[g],w=(0,y._)((0,_._)({},E.getCommonEventParams(),E.getPlayerCommonEventParams(),E.getEnterEventParams(),p.getLinkMicParams(),S.getRoomPKParams()),{to_user_id:null==v?void 0:v.id_str,user_id:null===(n=this.store)||void 0===n?void 0:null===(s=n.userStore)||void 0===s?void 0:null===(o=s.userInfo)||void 0===o?void 0:o.id,to_user_type:p.isGroupFight()?f?"guest":"user":b,user_type:P?"guest":"user",others_income:a&&a.score,pc_live_action_type:m,game_name:p.isGuestBattle()?"boom":d,show_tab:p.isGuestBattle()?"contribution":c,user_cnt:p.getGroupFightGusetCnt()});window.collectEvent("livesdk_room_grouppk_others_guest_click",w)}),(0,s._)(this,"liveRoomGroupPkResultShowEvent",e=>{var t;let{userStore:{userInfo:i},linkmicStore:{teamfightInfo:o},eventStore:{basicEvent:s,linkmicBaseEvent:n,pkEvent:r}}=this.store,a=!1;null==o||null===(t=o.team_infos)||void 0===t||t.map(e=>{var t;null===(t=e.players)||void 0===t||t.map(e=>{(null==i?void 0:i.id_str)===String(e.user_id)&&(a=!0)})}),window.collectEvent("livesdk_room_grouppk_result_show",(0,_._)((0,y._)((0,_._)({},s.getCommonEventParams(),s.getPlayerCommonEventParams(),s.getEnterEventParams(),n.getLinkMicParams(),r.getRoomPKParams()),{user_type:a?"guest":"user",user_id:null==i?void 0:i.id_str}),n.isCrossLink()?{play_mode:"link_room"}:{},e))}),(0,s._)(this,"liveRoomTeamfightResultShowEvent",e=>{var t;let{userStore:{userInfo:i},linkmicStore:{teamfightInfo:o},eventStore:{basicEvent:s,linkmicBaseEvent:n}}=this.store,r=!1;null==o||null===(t=o.team_infos)||void 0===t||t.map(e=>{var t;null===(t=e.players)||void 0===t||t.map(e=>{(null==i?void 0:i.id_str)===String(e.user_id)&&(r=!0)})}),window.collectEvent("livesdk_chatroom_grouppk_result_show",(0,y._)((0,_._)({},s.getCommonEventParams(),s.getPlayerCommonEventParams(),s.getEnterEventParams(),n.getLinkMicParams()),{game_name:"grouppk",user_type:r?"guest":"user",user_id:s.getUserId(),settle_time:null==o?void 0:o.duration,blue_money:e.blueMoney,red_money:e.redMoney,blue_guest_cnt:e.blueGuestCnt,red_guest_cnt:e.redGuestCnt,red_to_user_id:e.redUserId,blue_to_user_id:e.blueUserId,red_crown_type:e.redCrownType,blue_crown_type:e.blueCrownType}))}),(0,s._)(this,"liveRoomGameMvpCrownShowEvent",e=>{var t,i;let{userStore:{userInfo:o},linkmicStore:{teamfightInfo:s},eventStore:{basicEvent:n,linkmicBaseEvent:r,pkEvent:a}}=null!==(i=this.store)&&void 0!==i?i:{},l=!1;null==s||null===(t=s.team_infos)||void 0===t||t.map(e=>{var t;null===(t=e.players)||void 0===t||t.map(e=>{(null==o?void 0:o.id_str)===String(e.user_id)&&(l=!0)})}),window.collectEvent("livesdk_chatroom_game_mvp_crown_show",(0,y._)((0,_._)({},n.getCommonEventParams(),n.getPlayerCommonEventParams(),n.getEnterEventParams(),r.getLinkMicParams(),a.getRoomPKParams()),{user_type:l?"guest":"user",red_to_user_id:e.redUserId,blue_to_user_id:e.blueUserId,red_crown_type:e.redCrownType,blue_crown_type:e.blueCrownType,my_team_type:e.myTeamType}))}),(0,s._)(this,"liveConnectionListShowEvent",e=>{var t,i;let{eventStore:{basicEvent:o,linkmicBaseEvent:s,pkEvent:n},linkmicStore:{uiLayout:r,isNewVideoLinkmicRoom:a,linkMicLayout:l,linkMicSeats:v},roomStore:{roomInfo:m},userStore:{userInfo:d}}=null!==(i=this.store)&&void 0!==i?i:{},c=null===(t=Object.values(v).filter(e=>{var t;return(null==e?void 0:e.user)&&(null==e?void 0:null===(t=e.user)||void 0===t?void 0:t.user)}))||void 0===t?void 0:t.length;window.collectEvent("livesdk_connection_contribution_list_show",(0,y._)((0,_._)({},o.getCommonEventParams(),o.getPlayerCommonEventParams(),o.getEnterEventParams(),s.getLinkMicParams()),{user_cnt:l===ef.yP.VIDEO_6V6?c-2:c-1,show_tab:"contribution",to_user_id:null==e?void 0:e.id_str,game_name:l&&et.kV[l],source:"gift_icon",is_new_video_link:a?"1":"0",anchor_type:a?(()=>{var e,t,i,o,s;let n=null===(t=Object.values(v||{}))||void 0===t?void 0:null===(e=t.find)||void 0===e?void 0:e.call(t,e=>{var t,i;return(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.user_id)===(null==d?void 0:d.id_str)});if((null==d?void 0:d.id_str)===(null==m?void 0:null===(i=m.anchor)||void 0===i?void 0:i.id_str))return eO.yG.HOST_ROOM;if(n)return(null==n?void 0:null===(s=n.user)||void 0===s?void 0:null===(o=s.user)||void 0===o?void 0:o.own_room_id)?eO.yG.ANCHOR_GUEST:eO.yG.AUDIENCE_GUEST;return eO.yG.AUDIENCE})():void 0,layout_type_x:a?String(r):""}))}),(0,s._)(this,"liveRoomGroupPkRuleShowEvent",()=>{var e;let{eventStore:{basicEvent:t,linkmicBaseEvent:i,pkEvent:o}}=null!==(e=this.store)&&void 0!==e?e:{};window.collectEvent("livesdk_room_grouppk_rules_show",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams(),o.getRoomPKParams()))}),(0,s._)(this,"liveLinkMicRoomShowEvent",e=>{var t;let{eventStore:{basicEvent:i,linkmicBaseEvent:o},linkmicStore:{uiLayout:s,isNewVideoLinkmicRoom:n}}=null!==(t=this.store)&&void 0!==t?t:{},r={play_mode:"grouppk",play_stage:o.getGorupFightStage()},a={compete_mode:o.getGuestBattleCompetaMode(),play_mode:"boom",play_stage:o.getGuestBattleStage()},l=(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicNoUserTypeParams(),o.isGroupFight()?r:{},o.isGuestBattle()?a:{},o.isCrossLink()?{play_mode:"link_room"}:{}),{layout_type:o.getLayoutParams(e),is_new_video_link:n?"1":"0",layout_type_x:n?String(s):""});window.collectEvent("livesdk_audience_voice_room_show",l),eT.Ys.start()}),(0,s._)(this,"liveAdminInviteEvent",e=>{var t;let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=null!==(t=this.store)&&void 0!==t?t:{};window.collectEvent("livesdk_anchor_admin_invite_guest",(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams()),{invitee_id:e}))}),(0,s._)(this,"liveAdminManageEvent",(e,t)=>{var i;let{eventStore:{basicEvent:o,linkmicBaseEvent:s}}=null!==(i=this.store)&&void 0!==i?i:{};window.collectEvent("livesdk_anchor_admin_guest_management",(0,y._)((0,_._)({},o.getCommonEventParams(),o.getPlayerCommonEventParams(),o.getEnterEventParams(),s.getLinkMicParams()),{link_user_id:t,management_type:e}))}),(0,s._)(this,"liveApplyPanelShowEvent",(e,t)=>{var i;let{eventStore:{basicEvent:o,linkmicBaseEvent:s}}=null!==(i=this.store)&&void 0!==i?i:{};window.collectEvent("livesdk_audience_apply_panel_show",(0,y._)((0,_._)({},o.getCommonEventParams(),o.getPlayerCommonEventParams(),o.getEnterEventParams(),s.getLinkMicParams(),e),{user_type:t}))}),(0,s._)(this,"liveAudienceRoomLayoutShow",(e,t)=>{var i,o;let s=null===(o=this.store)||void 0===o?void 0:null===(i=o.linkmicStore)||void 0===i?void 0:i.hasEnlargedSeat,{eventStore:{basicEvent:n,linkmicBaseEvent:r}}=this.store,a=s?e===ef.yP.AUDIO_DOUBLE_C?"seat_enlarge_double":"seat_enlarge":[ef.yP.VIDEO_DYNAMIC,ef.yP.VIDEO_DYNAMIC_FLOAT,ef.yP.VIDEO_1_V_3,ef.yP.VIDEO_1_V_6].includes(e)?"seat_fit":"normal",l=(0,y._)((0,_._)({},n.getCommonEventParams(),n.getPlayerCommonEventParams(),n.getEnterEventParams(),this.getEnlargeParams(e),r.getLinkMicParams(t)),{layout_type:a});eT.RS.start(),window.collectEvent("livesdk_audience_room_layout_show",l)}),(0,s._)(this,"liveVoiceRoomLayoutWatchDuration",(e,t,i,o,s)=>{let{eventStore:{basicEvent:n,linkmicBaseEvent:r},linkmicStore:{lastOpenUiLayout:a}}=this.store,l=eT.RS.getTotal(),v=(0,_._)((0,y._)((0,_._)({},n.getCommonEventParams(),n.getPlayerCommonEventParams(),n.getEnterEventParams(),this.getEnlargeParams(i,a),r.getLinkMicParams(t),t?{function_type2:t}:{}),{duration:l,layout_type:e}),void 0!==o?o?{is_new_video_link:"1"}:{is_new_video_link:"0"}:{},void 0!==s?{layout_type_x:String(s)}:{});eT.RS.reset(),l>1&&window.collectEvent("livesdk_voice_room_layout_watch_duration",v)}),(0,s._)(this,"livePassAudienceLinkEvent",(e,t)=>{let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=this.store,s={compete_mode:o.getGuestBattleCompetaMode(),play_mode:"boom",play_stage:o.getGuestBattleStage()},n={play_mode:"grouppk",play_stage:o.getGorupFightStage(),grouppk_group:o.getGroupFightGroupType()},r=(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams(),o.getLinkMicNoUserTypeParams(),o.isGroupFight()?n:{},o.isGuestBattle()?s:{}),{link_user_id:e,is_application:1,pass_type:"administrator",request_page:"list",is_enlarge_seat:t});window.collectEvent("livesdk_anchor_audience_connection_pass",r)}),(0,s._)(this,"liveGamePauseIconEvent",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=this.store;window.collectEvent("livesdk_connection_game_pause_icon_click",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams()),{click_type:e,compete_mode:i.getGuestBattleCompetaMode()}))}),(0,s._)(this,"liveChatRoomSettingsShowEvent",(e,t)=>{let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=this.store,s=(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams()),{play_stage:o.getGuestBattleStage(),button_type:e,pc_live_action_type:t});window.collectEvent("livesdk_chatroom_game_bomb_settings_page",s)}),(0,s._)(this,"liveGameOneMoreEvent",(e,t)=>{let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=this.store;window.collectEvent("livesdk_audience_battle_page_oncemore_click",(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams()),{game_name:"bomb",user_cnt:e,compete_mode:t}))}),(0,s._)(this,"liveGameOverEvent",()=>{let{eventStore:{basicEvent:e,linkmicBaseEvent:t}}=this.store;window.collectEvent("livesdk_audience_battle_page_end_click",(0,y._)((0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getLinkMicParams()),{game_name:"bomb",user_cnt:t.getGuestBattleGusetCnt()+1,compete_mode:t.getGuestBattleCompetaMode()}))}),(0,s._)(this,"liveGroupFightStart",()=>{let{eventStore:{linkmicBaseEvent:e,basicEvent:t}}=this.store;window.collectEvent("livesdk_grouppk_start_click",(0,y._)((0,_._)({},null==t?void 0:t.getEnterEventParams(),e.getGroupFightEnterParams(),e.getGroupFightCommonParams()),{guest_cnt:e.getGroupFightGusetCnt()}))}),(0,s._)(this,"liveGroupFightStartSuccess",e=>{let{eventStore:{linkmicBaseEvent:t,basicEvent:i}}=this.store;window.collectEvent("livesdk_grouppk_start_res",(0,y._)((0,_._)({},null==i?void 0:i.getEnterEventParams(),t.getGroupFightEnterParams(),t.getGroupFightCommonParams()),{result:e}))}),(0,s._)(this,"liveGuestBattleAdminEnd",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=this.store,o=(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams()),{game_name:"bomb",user_cnt:i.getGuestBattleGusetCnt()+1,compete_mode:i.getGuestBattleCompetaMode(),click_content:e});window.collectEvent("livesdk_connection_game_quit_window",o)}),(0,s._)(this,"playModeApplyListshow",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=this.store,o={compete_mode:i.getGuestBattleCompetaMode(),play_mode:"boom",play_stage:i.getGuestBattleStage()},s={play_mode:"grouppk",play_stage:i.getGorupFightStage(),grouppk_group:i.getGroupFightGroupType()},n=(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams(),i.isGroupFight()?s:{},i.isGuestBattle()?o:{}),{request_page:"list",is_application:e});window.collectEvent("livesdk_anchor_audience_connection_pass_show",n)}),(0,s._)(this,"groupUserApplyPageShow",()=>{let{eventStore:{basicEvent:e,linkmicBaseEvent:t}}=this.store;window.collectEvent("livesdk_grouppk_user_apply_page_show",(0,y._)((0,_._)({},null==e?void 0:e.getEnterEventParams(),t.getGroupFightCommonParams(),t.getGroupFightEnterParams()),{play_stage:t.getGorupFightStage()}))}),(0,s._)(this,"groupUserApplyPageClick",(e,t)=>{let{eventStore:{linkmicBaseEvent:i,basicEvent:o}}=this.store;window.collectEvent("livesdk_grouppk_user_apply_page_click",(0,y._)((0,_._)({},null==o?void 0:o.getEnterEventParams(),i.getGroupFightCommonParams()),{play_stage:i.getGorupFightStage(),button_type:e,enter_from:t}))}),(0,s._)(this,"liveAudiencePlayModeRoomEvent",async function(){var e,i,o,s,n,r;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,l=arguments.length>1?arguments[1]:void 0,{eventStore:{basicEvent:v,linkmicBaseEvent:m,pkEvent:d},linkmicStore:{playModes:c}}=t.store,u=m.getLinkMicParams();m.isGroupFight()&&await m.waitForValue(null===(r=t.store)||void 0===r?void 0:null===(n=r.linkmicStore)||void 0===n?void 0:null===(s=n.teamfightInfo)||void 0===s?void 0:s.status,3e3);let h={play_mode:"grouppk",play_stage:m.getGorupFightStage(),guest_cnt:m.getGroupFightGusetCnt()},g={compete_mode:m.getGuestBattleCompetaMode(),play_mode:"boom",play_stage:m.getGuestBattleStage(),guest_cnt:m.getGuestBattleGusetCnt()};eT.HX.start();let E=Object.assign((0,_._)((0,y._)((0,_._)({},null==v?void 0:null===(e=v.getCommonEventParams)||void 0===e?void 0:e.call(v),null==v?void 0:null===(i=v.getPlayerCommonEventParams)||void 0===i?void 0:i.call(v),null==v?void 0:null===(o=v.getEnterEventParams)||void 0===o?void 0:o.call(v),m.getLinkMicParams(),d.getRoomPKParams(),u,m.getOrderSingParams(),m.getOrderSingLayoutType()),{function_type:void 0!==a?m.getFunctionType(a):u.function_type}),l?{play_mode:l}:{}),m.isGroupFight()?h:{},m.isGuestBattle()?g:{},m.isCrossLink()?{play_mode:"link_room"}:{});window.collectEvent("livesdk_audience_playmode_room_watch",E)}),(0,s._)(this,"liveAudiencePlayModeRoomWatchDurationEvent",eC()(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,{eventStore:{basicEvent:l,linkmicBaseEvent:v,pkEvent:m},linkmicStore:{playModes:d}}=t.store,c=v.getLinkMicParams(),u=m.getRoomPKParams(),h={play_mode:"grouppk",play_stage:v.getGorupFightStage(i),guest_cnt:v.getGroupFightGusetCnt()},g={play_mode:"room_grouppk",play_stage:v.getGorupFightStage(i),guest_cnt:v.getGroupFightGusetCnt()},E={compete_mode:v.getGuestBattleCompetaMode(n),play_mode:"boom",play_stage:v.getGuestBattleStage(n),guest_cnt:v.getGuestBattleGusetCnt()},p=d.map(e=>et.v[e]).filter(Boolean),S={};"request_song"in p&&(S=v.getOrderSingParams());let P=(0,_._)((0,y._)((0,_._)({},l.getCommonEventParams(),l.getPlayerCommonEventParams(),l.getEnterEventParams(),v.getLinkMicParams(),m.getRoomPKParams(),v.getOrderSingParams(o,s),v.getOrderSingLayoutType(),c),{play_stage:void 0===i?null==u?void 0:u.play_stage:(null==i?void 0:i.status)&&et._K[null==i?void 0:i.status],function_type:void 0!==e?v.getFunctionType(e):c.function_type,duration:eT.HX.getTotal(),play_mode:o.includes(eS.V0.LinkmicPlayMode_OrderSing)?"request_song":c.play_mode}),v.isGroupFight(i)?h:{},v.isGuestBattle(n)?E:{},v.isRoomBattle(i)?g:{},v.isCrossLink()?{play_mode:"link_room"}:{},S,void 0!==r?r?{is_new_video_link:"1"}:{is_new_video_link:"0"}:{},void 0!==a?{layout_type_x:String(a)}:{});window.collectEvent("livesdk_audience_playmode_room_watch_duration",P)},400)),(0,s._)(this,"liveAudiencePlayModeRoomLinkEvent",(e,t)=>{let{eventStore:{basicEvent:i,linkmicBaseEvent:o,pkEvent:s}}=this.store,n={play_mode:"grouppk",play_stage:o.getGorupFightStage(e),grouppk_group:o.getGroupFightGroupType(e)},r={play_mode:"room_grouppk",play_stage:o.getGorupFightStage(e),grouppk_group:o.getGroupFightGroupType(e)},a={compete_mode:o.getGuestBattleCompetaMode(),play_mode:"boom",play_stage:o.getGuestBattleStage()};window.collectEvent("livesdk_audience_playmode_room_link",(0,_._)((0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams(),s.getRoomPKParams(),o.isGroupFight(e)?n:{},o.isGuestBattle(e)?a:{},o.isRoomBattle(e)?r:{},o.isCrossLink()?{play_mode:"link_room"}:{}),{layout_type:o.getLayoutParams()}),t?{play_mode:t}:{})),eT.ye.start()}),(0,s._)(this,"liveAudiencePlayModeRoomLinkDurationEvent",eC()(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,{eventStore:{basicEvent:r,linkmicBaseEvent:a,pkEvent:l}}=t.store,v=l.getRoomPKParams(),m=a.getLinkMicParams(),d={play_mode:"grouppk",play_stage:a.getGorupFightStage(i),grouppk_group:a.getGroupFightGroupType(i)},c={compete_mode:a.getGuestBattleCompetaMode(o),play_mode:"boom",play_stage:a.getGuestBattleStage(o)};window.collectEvent("livesdk_audience_playmode_room_link_duration",(0,_._)((0,y._)((0,_._)({},r.getCommonEventParams(),r.getPlayerCommonEventParams(),r.getEnterEventParams(),a.getLinkMicParams(),l.getRoomPKParams(),m),{play_stage:void 0===i?null==v?void 0:v.play_stage:(null==i?void 0:i.status)&&et._K[null==i?void 0:i.status],function_type:void 0!==e?a.getFunctionType(e):m.function_type,duration:eT.ye.getTotal()}),a.isGroupFight()?d:{},a.isGuestBattle()?c:{},a.isRoomBattle(i)?{play_mode:"room_grouppk"}:{},a.isCrossLink()?{play_mode:"link_room"}:{},void 0!==s?s?{is_new_video_link:"1"}:{is_new_video_link:"0"}:{},void 0!==n?{layout_type_x:String(n)}:{})),eT.ye.reset()},400)),(0,s._)(this,"liveChatroomGameNamingShow",e=>{var t,i,o,s,n;let{eventStore:{basicEvent:r,linkmicBaseEvent:a,pkEvent:l}}=null!==(n=this.store)&&void 0!==n?n:{},v=2;null==e||null===(i=e.guestBattleInfo)||void 0===i||null===(t=i.results)||void 0===t||t.map(t=>{var i,o,s,n,r,a,l,_,m,d,c,u,h;(null==e?void 0:null===(i=e.userInfo)||void 0===i?void 0:i.nickname)===(null==t?void 0:t.nickname)?((null==e?void 0:null===(s=e.roomInfo)||void 0===s?void 0:null===(o=s.anchor)||void 0===o?void 0:o.id_str)===String(null==t?void 0:null===(n=t.title_sponsor)||void 0===n?void 0:n.id_str)&&(v=0),(null==e?void 0:null===(a=e.guestBattleInfo)||void 0===a?void 0:null===(r=a.results)||void 0===r?void 0:r.some(t=>{var i,o;return(null==t?void 0:null===(i=t.title_sponsor)||void 0===i?void 0:i.id_str)===(null==e?void 0:null===(o=e.userInfo)||void 0===o?void 0:o.id_str)}))&&(v=1)):((null==e?void 0:null===(_=e.roomInfo)||void 0===_?void 0:null===(l=_.anchor)||void 0===l?void 0:l.id_str)===String(null==t?void 0:null===(m=t.user)||void 0===m?void 0:m.id_str)&&String(null==t?void 0:null===(d=t.title_sponsor)||void 0===d?void 0:d.id_str)===String(null==t?void 0:null===(c=t.user)||void 0===c?void 0:c.id_str)&&(v=0),(null==e?void 0:null===(u=e.userInfo)||void 0===u?void 0:u.id_str)===String(null==t?void 0:null===(h=t.user)||void 0===h?void 0:h.id_str)&&(v=1))}),null==e||null===(s=e.teamfightInfo)||void 0===s||null===(o=s.team_infos)||void 0===o||o.map(t=>{var i;null===(i=t.players)||void 0===i||i.map(t=>{var i,o,s;(null==e?void 0:null===(o=e.roomInfo)||void 0===o?void 0:null===(i=o.anchor)||void 0===i?void 0:i.id_str)===String(t.user_id)&&(v=0),(null==e?void 0:null===(s=e.userInfo)||void 0===s?void 0:s.id_str)===String(t.user_id)&&(v=1)})}),window.collectEvent("livesdk_chatroom_game_naming_show",(0,y._)((0,_._)({},r.getCommonEventParams(),r.getPlayerCommonEventParams(),r.getEnterEventParams(),a.getLinkMicParams()),{play_mode:null==e?void 0:e.playMode,crown_type:null==e?void 0:e.crownType,user_type:{0:"anchor",1:"guest",2:"user"}[v],to_user_id:null==e?void 0:e.toUserId,play_stage:"ongoing",hornor_detail:null==e?void 0:e.hornorDetail,naming_userid:null==e?void 0:e.namingUserid}))}),(0,s._)(this,"liveChatroomHornorToastMessage",e=>{var t,i;let{userStore:{userInfo:o},linkmicStore:{teamfightInfo:s},roomStore:{roomInfo:n},eventStore:{basicEvent:r,linkmicBaseEvent:a,pkEvent:l}}=null!==(i=this.store)&&void 0!==i?i:{},v=2;null==s||null===(t=s.team_infos)||void 0===t||t.map(e=>{var t;null===(t=e.players)||void 0===t||t.map(e=>{var t;(null==n?void 0:null===(t=n.anchor)||void 0===t?void 0:t.id_str)===String(e.user_id)&&(v=0),(null==o?void 0:o.id_str)===String(e.user_id)&&(v=1)})}),window.collectEvent("livesdk_chatroom_game_mvp_crown_show",(0,y._)((0,_._)({},r.getCommonEventParams(),r.getPlayerCommonEventParams(),r.getEnterEventParams(),a.getLinkMicParams()),{user_type:{0:"anchor",1:"guest",2:"user"}[v],is_anchor:0===v?1:0,action_type:"show",meaasge_type:"audiencehornor",message_detail:null==e?void 0:e.messageDetail,message_naminguserid:null==e?void 0:e.messageNaminguserid}))}),(0,s._)(this,"liveAudiencePlaymodeMissionIconShow",e=>{var t;let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=null!==(t=this.store)&&void 0!==t?t:{};window.collectEvent("live_audience_playmode_mission_icon_show",(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams()),{play_mode:null==e?void 0:e.play_mode,user_id:i.getUserId(),user_type:o.getGroupFightUserType(),mission_id:null==e?void 0:e.mission_id,mission_type:null==e?void 0:e.mission_type,mission_target:null==e?void 0:e.mission_target,mission_time:null==e?void 0:e.mission_time,mission_start_from_pkend:null==e?void 0:e.mission_start_from_pkend,mission_from:null==e?void 0:e.mission_from}))}),(0,s._)(this,"liveAudiencePlaymodeMissionIconClick",e=>{var t;let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=null!==(t=this.store)&&void 0!==t?t:{};window.collectEvent("live_audience_playmode_mission_icon_click",(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams()),{play_mode:null==e?void 0:e.play_mode,user_id:i.getUserId(),user_type:o.getGroupFightUserType(),mission_id:null==e?void 0:e.mission_id,mission_type:null==e?void 0:e.mission_type,mission_target:null==e?void 0:e.mission_target,mission_time:null==e?void 0:e.mission_time,mission_start_from_pkend:null==e?void 0:e.mission_start_from_pkend,mission_from:null==e?void 0:e.mission_from}))}),(0,s._)(this,"liveAudiencePlaymodeMissionResultShow",e=>{var t;let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=null!==(t=this.store)&&void 0!==t?t:{};window.collectEvent("live_audience_playmode_mission_result_show",(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams()),{play_mode:null==e?void 0:e.play_mode,user_id:i.getUserId(),user_type:o.getGroupFightUserType(),mission_id:null==e?void 0:e.mission_id,mission_type:null==e?void 0:e.mission_type,mission_target:null==e?void 0:e.mission_target,mission_time:null==e?void 0:e.mission_time,mission_start_from_pkend:null==e?void 0:e.mission_start_from_pkend,mission_from:null==e?void 0:e.mission_from,mission_result:null==e?void 0:e.mission_result}))}),(0,s._)(this,"liveAudiencePlaymodeMissionBuffResultShow",e=>{var t;let{eventStore:{basicEvent:i,linkmicBaseEvent:o}}=null!==(t=this.store)&&void 0!==t?t:{};window.collectEvent("live_audience_playmode_mission_buffresult_show",(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getLinkMicParams()),{play_mode:null==e?void 0:e.play_mode,user_id:i.getUserId(),user_type:o.getGroupFightUserType(),mission_id:null==e?void 0:e.mission_id,mission_type:null==e?void 0:e.mission_type,mission_target:null==e?void 0:e.mission_target,mission_time:null==e?void 0:e.mission_time,mission_start_from_pkend:null==e?void 0:e.mission_start_from_pkend,mission_from:null==e?void 0:e.mission_from,mission_buffnum:null==e?void 0:e.mission_buffnum}))}),(0,s._)(this,"linkAuidenceJoinRoomWithoutPreloadICE",()=>{var e;let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=null!==(e=this.store)&&void 0!==e?e:{};window.collectEvent("live_auidence_joinroom_without_preload_ice",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams()),{user_id:t.getUserId(),user_type:i.getGroupFightUserType()}))}),(0,s._)(this,"linkAuidenceActiveWithPreloadICE",()=>{var e;let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=null!==(e=this.store)&&void 0!==e?e:{};window.collectEvent("live_auidence_active_with_preload_ice",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams()),{user_id:t.getUserId(),user_type:i.getGroupFightUserType()}))}),(0,s._)(this,"linkAuidenceVoiceroomCaptionShow",()=>{eT.MP.start()}),(0,s._)(this,"linkAuidenceVoiceroomCaptionUseDuration",()=>{var e;let{eventStore:{basicEvent:t,linkmicBaseEvent:i}}=null!==(e=this.store)&&void 0!==e?e:{};eT.MP.getTotal()>0&&(window.collectEvent("livesdk_audience_voiceroom_caption_use_duration",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLinkMicParams()),{duration:eT.MP.getTotal()})),eT.MP.reset())}),this.store=e}}class eM{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"liveLeadingLoginShowEvent",(e,t,i)=>{let{eventStore:{basicEvent:o}}=this.store;window.collectEvent("hd_login_guide_show",(0,y._)((0,_._)({},null==o?void 0:o.getEnterEventParams()),{parmas_for_special:"uc_login",guide_type:e,enter_from:t,clarity:i}))}),(0,s._)(this,"liveLeadingLoginClickEvent",(e,t,i,o,s)=>{let{eventStore:{basicEvent:n}}=this.store;window.collectEvent("hd_login_guide_click",(0,y._)((0,_._)({},null==n?void 0:n.getEnterEventParams()),{guide_type:e,enter_from:t,clarity:i,parmas_for_special:"uc_login",action:o,duration:s}))}),(0,s._)(this,"liveLeadingLoginCrashEvent",(e,t)=>{let{eventStore:{basicEvent:i}}=this.store;window.collectEvent("hd_login_guide_click",(0,y._)((0,_._)({},null==i?void 0:i.getEnterEventParams()),{guide_type:e,enter_from:t,parmas_for_special:"uc_login"}))}),this.store=e}}class eU{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"getRoomPKParams",()=>{var e,t,i,o,s,n,r;let{roomStore:{roomInfo:a},linkmicStore:{teamfightInfo:l}}=this.store,{win_team_id_str:v,win_team_id:_,status:m,duration:d}=null!=l?l:{},c=null==l?void 0:null===(t=l.team_infos)||void 0===t?void 0:null===(e=t.filter(e=>{var t,i;return(null!==(i=null==e?void 0:e.team_id_str)&&void 0!==i?i:null==e?void 0:e.team_id)===(null==a?void 0:null===(t=a.room)||void 0===t?void 0:t.id_str)}))||void 0===e?void 0:e[0],u=null==l?void 0:null===(o=l.team_infos)||void 0===o?void 0:null===(i=o.filter(e=>{var t,i;return(null!==(i=e.team_id_str)&&void 0!==i?i:e.team_id)!==(null==a?void 0:null===(t=a.room)||void 0===t?void 0:t.id_str)}))||void 0===i?void 0:i[0];return{play_stage:m&&et._K[m],guest_cnt:null==c?void 0:null===(s=c.players)||void 0===s?void 0:s.length,others_guest_cnt:null==u?void 0:null===(n=u.players)||void 0===n?void 0:n.length,result:"0"===String(_)?"tie":(null!=v?v:_)===(null!==(r=null==c?void 0:c.team_id_str)&&void 0!==r?r:null==c?void 0:c.team_id)?"win":"fail",pk_duration:d,money:null==c?void 0:c.score_str,others_money:null==u?void 0:u.score_str}}),(0,s._)(this,"getPKPropCardCommonParams",e=>{var t;let{roomStore:{roomInfo:i},userStore:{userInfo:o},pkStore:{pkAppData:s,pkId:n},eventStore:{linkmicBaseEvent:r,basicEvent:a}}=null!==(t=this.store)&&void 0!==t?t:{roomStore:{},userStore:{},pkStore:{},fansClubStore:{}},l=c()(i,"anchor.id_str",""),v=c()(s,"channelId",0),m=c()(i,"roomId",""),d=c()(o,"id_str","");return(0,y._)((0,_._)({},a.getCommonEventParams(),r.getLinkMicParams()),{anchor_id:l,channel_id:v,pk_id:n,room_id:m,event_page:e||"live_detail",user_id:d,room_status:"pk"})}),this.store=e}}var eN=i("913283"),eV=i("284121"),eD=i("811603");i("112459");var eF=i("202613"),eB=i("237869"),eZ=i("601034"),eH=i("205030"),ex=i("772227"),eK=i("591987");class eW{constructor(e){var t=this;(0,s._)(this,"store",null),(0,s._)(this,"getFeedItemCommonParams",e=>{var t,i,o,s,n,r,a,l,v,_,m,d;let u=c()(e,"room.stream_url.stream_orientation",""),h=(null===(t=e.room)||void 0===t?void 0:t.episode_extra)?1:0,g=null;return(null===(o=e.room)||void 0===o?void 0:null===(i=o.owner)||void 0===i?void 0:i.follow_info)&&(g=(0,X.F)(e.room.owner.follow_info.follow_status)?1:0),{anchor_id:c()(e,"room.owner.id_str",""),room_id:c()(e,"room.id_str",""),title_type:void 0===et.k4[e.title_type]?"":et.k4[e.title_type],cover_type:void 0===et.I4[e.cover_type]?"":et.I4[e.cover_type],is_recommend:void 0===et.Od[e.is_recommend]?"":et.Od[e.is_recommend],stream_type:et.FO[u]||"",game_name:c()(e,"tag_name",""),live_type:"game",follow_status:g,is_vs:h,vs_episode_id:h?null==e?void 0:null===(n=e.room)||void 0===n?void 0:null===(s=n.episode_extra)||void 0===s?void 0:s.episode_id_str:"",vs_ep_group_id:h?null==e?void 0:null===(a=e.room)||void 0===a?void 0:null===(r=a.episode_extra)||void 0===r?void 0:r.item_id:"",vs_season_id:h?null==e?void 0:null===(v=e.room)||void 0===v?void 0:null===(l=v.episode_extra)||void 0===l?void 0:l.season_id_str:"",vs_episode_stage:h?(null==e?void 0:null===(d=e.room)||void 0===d?void 0:null===(m=d.episode_extra)||void 0===m?void 0:null===(_=m.mod)||void 0===_?void 0:_.episode_stage)===et.jL.FIRST_LIVE?"premiere":"live":""}}),(0,s._)(this,"liveShowEvent",e=>{var t;let{eventStore:{basicEvent:i},linkmicStore:{linkRoomType:o,functionType2:s},roomStore:{liveStatus:n,foldChatroom:r},pkStore:{pkAppData:a,pkTeamCount:l,pkPlayMode:v,pkId:d}}=this.store,c=(0,y._)((0,_._)((0,y._)((0,_._)({},i.getCommonEventParams(),i.getRoomRoadmap(),i.getEnterEventParams(),i.getImoprtEventParams(),i.getRecommendParams(),i.getRoomAspectRatio(),i.getRoomPaidLiveInfo()),{cid:(0,j.V7)(),if_qianchuan_ad:(0,j.V7)()?1:0,ad_type:(0,j.V7)()?eF.AdType.Live:void 0}),e),{live_type:"audio"===o?"voice_live":"",function_type2:s,live_status:m.EY[n]||"normal",is_comments_fold:r?1:0,anchor_connect_status:(null==a?void 0:null===(t=a.grids)||void 0===t?void 0:t.length)||-1,pk_team_count:l,invite_mode:v,pk_id:d,channel_id:null==a?void 0:a.channelId});window.collectEvent("livesdk_live_show",c)}),(0,s._)(this,"tabliveGuideShow",e=>{var t;let{eventStore:{basicEvent:i},roomStore:{roomInfo:o}}=this.store;window.collectEvent("livesdk_leavescene_tablive_guide_show",(0,y._)((0,_._)({},i.getCommonEventParams(),i.getRoomRoadmap(),i.getEnterEventParams(),i.getImoprtEventParams(),i.getRecommendParams(),i.getRoomAspectRatio(),i.getRoomPaidLiveInfo()),{guide_scene:"room_end",event_page:"finish",anchor_id:null==o?void 0:null===(t=o.anchor)||void 0===t?void 0:t.id_str,room_id:null==o?void 0:o.roomId}))}),(0,s._)(this,"tabliveGuideClick",e=>{var t;let{eventStore:{basicEvent:i},roomStore:{roomInfo:o}}=this.store;window.collectEvent("livesdk_tablive_guide_click",(0,y._)((0,_._)({},i.getCommonEventParams(),i.getRoomRoadmap(),i.getEnterEventParams(),i.getImoprtEventParams(),i.getRecommendParams(),i.getRoomAspectRatio(),i.getRoomPaidLiveInfo()),{guide_scene:"room_end",event_page:"finish",anchor_id:null==o?void 0:null===(t=o.anchor)||void 0===t?void 0:t.id_str,room_id:null==o?void 0:o.roomId}))}),(0,s._)(this,"finishExit",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_finish_exit",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getRoomRoadmap(),t.getEnterEventParams(),t.getImoprtEventParams(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getRoomPaidLiveInfo()),{exit_type:e.exit_type}))}),(0,s._)(this,"liveWatchEvent",e=>{let{anchor_id:t,room_id:i,reportAd:o=!1}=e,{eventStore:{basicEvent:s},roomStore:{liveStatus:n,foldChatroom:r}}=this.store,{show_type:a=""}=(0,ex.D)(window.location.search),l=s.getEnterEventParams(),v=a||(null==l?void 0:l.show_type)||"";if(window.collectEvent("livesdk_watch_onemin",(0,y._)((0,_._)({},s.getCommonEventParams(),s.getRoomRoadmap(),l,s.getRecommendParams(),s.getRoomAspectRatio()),{show_type:v,anchor_id:t,room_id:i,live_status:m.EY[n]||"normal",is_comments_fold:r?1:0,three_screen_status:"true"===localStorage.getItem(window.__tripleScreenKey__||"__isTripleScreen__")?"open":"close",is_privacy_watch:(0,q.q)()?"1":"0"})),(0,j.Ui)()&&o){var d;(0,K.E)("live_watch_onemin",{value:(0,j.V7)(),tag:"live_ad",device_id:null===W.Es||void 0===W.Es?void 0:null===(d=(0,W.Es)())||void 0===d?void 0:d.user_unique_id,anchor_id:t,room_id:i,log_extra:(0,j.u9)()})}}),(0,s._)(this,"livePlayEvent",e=>{var t,i;let{anchor_id:o,room_id:s,muted:n,stream_type:r,definition:a,definition_set_type:l,EVENT_ORIGIN_FEATURE:v,_param_live_platform:d,follow_status:c,vs_episode_sub_type:u,match_id:h,disciplinename:g,enter_method_temai:E="click_other_area",audience_type:p="",enter_method:S,is_viplive:P}=e,{eventStore:{basicEvent:f,vsEvent:b},linkmicStore:{linkRoomTypeHooks:w,functionType2:k},roomStore:{liveStatus:C,foldChatroom:I},pkStore:{pkTeamCount:L,pkAppData:A}}=this.store,{show_type:R=""}=(0,ex.D)(window.location.search);window.collectEvent("livesdk_live_play",(0,y._)((0,_._)((0,y._)((0,_._)((0,y._)((0,_._)({live_status:m.EY[C]||"normal",is_comments_fold:I?1:0,cid:(0,j.V7)(),if_qianchuan_ad:(0,j.V7)()?1:0,ad_type:(0,j.V7)()?eF.AdType.Live:void 0,show_type:R},f.getCommonEventParams(),f.getEnterEventParams(),f.getRoomRoadmap(),f.getRoomPaidLiveInfo()),{anchor_id:o,room_id:s,voice_status:n?0:1,stream_type:r,definition:a,definition_set_type:l,EVENT_ORIGIN_FEATURE:v,_param_live_platform:d,follow_status:c,enter_method_temai:E,audience_type:p}),f.getImoprtEventParams(),b.getShowEventParams(),f.getRecommendParams(),f.getRoomAspectRatio(),f.getOpenAppData(),f.getFollowStatus()),{vs_episode_sub_type:u,match_id:h,disciplinename:g,is_viplive:P}),S?{enter_method:S}:{},(0,eB.Wc)(eB.rh.PLAY_START)),{live_type:"audio"===w?"voice_live":"",function_type2:k,pk_team_count:L,anchor_connect_status:(null==A?void 0:null===(t=A.grids)||void 0===t?void 0:t.length)||-1})),(0,j.Ui)()&&(0,K.E)("enter",{value:(0,j.V7)(),tag:"live_ad",device_id:null===W.Es||void 0===W.Es?void 0:null===(i=(0,W.Es)())||void 0===i?void 0:i.user_unique_id,anchor_id:o,room_id:s,log_extra:(0,j.u9)()})}),(0,s._)(this,"liveLinkPlayEvent",e=>{var t,i;let{anchor_id:o,room_id:s,muted:n,stream_type:r,definition:a,definition_set_type:l,EVENT_ORIGIN_FEATURE:v,_param_live_platform:d,follow_status:c,vs_episode_sub_type:u,match_id:h,disciplinename:g,enter_method_temai:E="click_other_area",audience_type:p="",enter_method:S,is_viplive:P}=e,{eventStore:{basicEvent:f,vsEvent:b},linkmicStore:{linkRoomTypeHooks:w,functionType2:k},roomStore:{liveStatus:C,foldChatroom:I},feedStore:{curIndex:L},pkStore:{transformToPK:A,pkAppData:R},userStore:{userInfo:T}}=this.store,O="normal",{from_pk:G}=(0,ex.D)(window.location.search);O=G?"link_guide":O,O=A?"transform":O,window.collectEvent("livesdk_connection_live_play",(0,y._)((0,_._)((0,y._)((0,_._)((0,y._)((0,_._)({live_status:m.EY[C]||"normal",is_comments_fold:I?1:0,cid:(0,j.V7)(),if_qianchuan_ad:(0,j.V7)()?1:0,ad_type:(0,j.V7)()?eF.AdType.Live:void 0},f.getUserId(),f.getCommonEventParams(),f.getEnterEventParams(),f.getRoomRoadmap(),f.getRoomPaidLiveInfo()),{anchor_id:o,room_id:s,voice_status:n?0:1,stream_type:r,definition:a,definition_set_type:l,EVENT_ORIGIN_FEATURE:v,_param_live_platform:d,follow_status:c,enter_method_temai:E,audience_type:p}),f.getImoprtEventParams(),b.getShowEventParams(),f.getRecommendParams(),f.getRoomAspectRatio(),f.getOpenAppData(),f.getFollowStatus()),{vs_episode_sub_type:u,match_id:h,disciplinename:g,is_viplive:P}),S?{enter_method:S}:{},(0,eB.Wc)(eB.rh.PLAY_START)),{live_type:"audio"===w?"voice_live":"",function_type2:k,inner_position:L,channel_id:null==R?void 0:R.channelId,anchor_connect_status:(null==R?void 0:null===(t=R.grids)||void 0===t?void 0:t.length)||-1,live_source:O,user_id:null==T?void 0:T.id_str})),(0,j.Ui)()&&(0,K.E)("enter",{value:(0,j.V7)(),tag:"live_ad",device_id:null===W.Es||void 0===W.Es?void 0:null===(i=(0,W.Es)())||void 0===i?void 0:i.user_unique_id,anchor_id:o,room_id:s,log_extra:(0,j.u9)()})}),(0,s._)(this,"livePKPlayEvent",e=>{var t,i;let{anchor_id:o,room_id:s,muted:n,stream_type:r,definition:a,definition_set_type:l,EVENT_ORIGIN_FEATURE:v,_param_live_platform:d,follow_status:u,vs_episode_sub_type:h,match_id:g,disciplinename:E,enter_method_temai:p="click_other_area",audience_type:S="",enter_method:P,is_viplive:f,end_reason:b}=e,{eventStore:{basicEvent:w,vsEvent:k},linkmicStore:{linkRoomTypeHooks:C,functionType2:I},roomStore:{liveStatus:L,foldChatroom:A},feedStore:{curIndex:R},pkStore:{transformToPK:T,pkAppData:O,pkId:M,pkPlayMode:U,pkStatusData:N,pkListData:V,pkTeamCount:D},userStore:{userInfo:F}}=this.store,B="normal",{from_pk:Z}=(0,ex.D)(window.location.search);B=Z?"link_guide":B,B=T?"transform":B;let H=c()(V,"battle_stats.battle_settings.battle_config_setting.team_mode",0);window.collectEvent("livesdk_pk_live_play",(0,y._)((0,_._)((0,y._)((0,_._)((0,y._)((0,_._)({live_status:m.EY[L]||"normal",is_comments_fold:A?1:0,cid:(0,j.V7)(),if_qianchuan_ad:(0,j.V7)()?1:0,ad_type:(0,j.V7)()?eF.AdType.Live:void 0},w.getCommonEventParams(),w.getEnterEventParams(),w.getRoomRoadmap(),w.getRoomPaidLiveInfo()),{anchor_id:o,room_id:s,voice_status:n?0:1,stream_type:r,definition:a,definition_set_type:l,EVENT_ORIGIN_FEATURE:v,_param_live_platform:d,follow_status:u,enter_method_temai:p,audience_type:S}),w.getImoprtEventParams(),k.getShowEventParams(),w.getRecommendParams(),w.getRoomAspectRatio(),w.getOpenAppData(),w.getFollowStatus(),w.getUserId()),{vs_episode_sub_type:h,match_id:g,disciplinename:E,is_viplive:f}),P?{enter_method:P}:{},(0,eB.Wc)(eB.rh.PLAY_START)),{live_type:"audio"===C?"voice_live":"",function_type2:I,inner_position:R,channel_id:null==O?void 0:O.channelId,anchor_connect_status:(null==O?void 0:null===(t=O.grids)||void 0===t?void 0:t.length)||-1,live_source:B,invite_mode:U,pk_id:M,end_reason:void 0!==b?G.jx[b]:void 0,pk_team_count:D,user_id:null==F?void 0:F.id_str,team_mode:H})),(0,j.Ui)()&&(0,K.E)("enter",{value:(0,j.V7)(),tag:"live_ad",device_id:null===W.Es||void 0===W.Es?void 0:null===(i=(0,W.Es)())||void 0===i?void 0:i.user_unique_id,anchor_id:o,room_id:s,log_extra:(0,j.u9)()})}),(0,s._)(this,"vipLiveShowEvent",e=>{let{eventStore:{basicEvent:t}}=this.store,i=eu()((0,_._)({},t.getEnterEventParams(),t.getCommonEventParams(),t.getPlayerCommonEventParams()),["enter_from_merge","enter_method","request_id","action_type"]);window.collectEvent("livesdk_viplive_show",(0,_._)({},i,e))}),(0,s._)(this,"vipLivePlayEvent",e=>{let{eventStore:{basicEvent:t}}=this.store,i=eu()((0,_._)({},t.getEnterEventParams(),t.getCommonEventParams(),t.getPlayerCommonEventParams()),["enter_from_merge","enter_method","request_id","action_type"]);window.collectEvent("livesdk_viplive_play",(0,_._)({},i,e))}),(0,s._)(this,"liveDurationEvent",e=>{var t,{enter_method_temai:i="click_other_area"}=e,o=(0,eD._)(e,["enter_method_temai"]);let{eventStore:{basicEvent:s,vsEvent:n},linkmicStore:{linkRoomType:r,functionType2:a},roomStore:{liveStatus:l,foldChatroom:v}}=this.store,d=null===(t=window.__SHOW_TYPE__)||void 0===t?void 0:t[o.room_id];d&&(window.__SHOW_TYPE__[o.room_id]="");let{show_type:c="none"}=d?{show_type:d}:(0,ex.D)(window.location.search);window.collectEvent("livesdk_live_duration",(0,y._)((0,_._)((0,y._)((0,_._)({cid:(0,j.V7)(),if_qianchuan_ad:(0,j.V7)()?1:0,is_top:(0,e_.k)()?"1":"0",ad_type:(0,j.V7)()?eF.AdType.Live:void 0,show_type:c},s.getCommonEventParams(),s.getEnterEventParams(),s.getRoomRoadmap(),o),{enter_from:(0,eZ.yW)(),enter_method_temai:i}),s.getImoprtEventParams(),n.getShowEventParams(),s.getRecommendParams(),s.getRoomAspectRatio(),s.getRoomPaidLiveInfo(),s.getOpenAppData()),{live_type:"audio"===r?"voice_live":"",function_type2:a,live_status:m.EY[l]||"normal",is_comments_fold:v?1:0}))}),(0,s._)(this,"liveRoomDurationEvent",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_web_room_duration",(0,_._)({},t.getCommonEventParams(),t.getEnterEventParams(),t.getPlayerCommonEventParams(),e))}),(0,s._)(this,"liveNewDurationEvent",e=>{var t,i,{enter_method_temai:o="click_other_area"}=e,s=(0,eD._)(e,["enter_method_temai"]);let{eventStore:{basicEvent:n,vsEvent:r},singletonStore:{player:a},roomStore:{liveStatus:l,foldChatroom:v}}=this.store,d=0;try{let e=(null==a?void 0:null===(i=a.plugins)||void 0===i?void 0:null===(t=i.rotate)||void 0===t?void 0:t.rotateDeg)*360;d=(0,eK.r9)(e)}catch(e){}window.collectEvent("livesdk_live_duration_new",(0,y._)((0,_._)((0,y._)((0,_._)({cid:(0,j.V7)(),if_qianchuan_ad:(0,j.V7)()?1:0,is_top:(0,e_.k)()?"1":"0",ad_type:(0,j.V7)()?eF.AdType.Live:void 0},n.getCommonEventParams(),n.getEnterEventParams(),n.getRoomRoadmap(),s),{enter_method_temai:o}),n.getImoprtEventParams(),r.getShowEventParams(),n.getRecommendParams(),n.getRoomAspectRatio(),n.getRoomPaidLiveInfo(),n.getOpenAppData(),n.getFollowStatus(),s,(0,eB.Wc)()),{rotate_angle:d,live_status:m.EY[l]||"normal",is_comments_fold:v?1:0}))}),(0,s._)(this,"liveLinkNewDurationEvent",e=>{var t,{enter_method_temai:i="click_other_area"}=e,o=(0,eD._)(e,["enter_method_temai"]);let{eventStore:{basicEvent:s,vsEvent:n},singletonStore:{player:r},roomStore:{liveStatus:a,foldChatroom:l},pkStore:{transformToPK:v,pkStatus:d,isInPK:c,isInPunish:u,pkAppData:h},userStore:{userInfo:g}}=this.store;if(!d||d&&(c||u))return;let E="normal",{from_pk:p}=(0,ex.D)(window.location.search);E=p?"link_guide":E,E=v?"transform":E,window.collectEvent("livesdk_connection_watch_duration",(0,y._)((0,_._)((0,y._)((0,_._)({live_source:E,cid:(0,j.V7)(),if_qianchuan_ad:(0,j.V7)()?1:0,is_top:(0,e_.k)()?"1":"0",ad_type:(0,j.V7)()?eF.AdType.Live:void 0},s.getCommonEventParams(),s.getEnterEventParams(),s.getRoomRoadmap(),s.getUserId(),o),{enter_method_temai:i}),s.getImoprtEventParams(),n.getShowEventParams(),s.getRecommendParams(),s.getRoomAspectRatio(),s.getRoomPaidLiveInfo(),s.getOpenAppData(),s.getFollowStatus(),o,(0,eB.Wc)()),{live_status:m.EY[a]||"normal",is_comments_fold:l?1:0,channel_id:null==h?void 0:h.channelId,anchor_connect_status:(null==h?void 0:null===(t=h.grids)||void 0===t?void 0:t.length)||-1,user_id:null==g?void 0:g.id_str}))}),(0,s._)(this,"livePKNewDurationEvent",e=>{var t,i,{enter_method_temai:o="click_other_area"}=e,s=(0,eD._)(e,["enter_method_temai"]);let{eventStore:{basicEvent:n,vsEvent:r},singletonStore:{player:a},roomStore:{liveStatus:l,foldChatroom:v},pkStore:{transformToPK:d,pkPlayMode:u,pkStatus:h,isInPK:g,isInPunish:E,pkAppData:p,pkId:S,pkListData:P,pkStatusData:f,pkTeamCount:b},userStore:{userInfo:w}}=this.store;if(!h||h&&!g&&!E)return;let k=p.ver===G.TG.DOUBLE?null==f?void 0:f.end_reason:null==P?void 0:null===(t=P.battle_stats)||void 0===t?void 0:t.end_reason,C="normal",{from_pk:I}=(0,ex.D)(window.location.search);C=I?"link_guide":C,C=d?"transform":C;let L=c()(P,"battle_stats.battle_settings.battle_config_setting.team_mode",0);window.collectEvent("livesdk_pk_watch_duration",(0,y._)((0,_._)((0,y._)((0,_._)({cid:(0,j.V7)(),if_qianchuan_ad:(0,j.V7)()?1:0,is_top:(0,e_.k)()?"1":"0",ad_type:(0,j.V7)()?eF.AdType.Live:void 0},n.getCommonEventParams(),n.getEnterEventParams(),n.getRoomRoadmap(),n.getUserId(),s),{enter_method_temai:o}),n.getImoprtEventParams(),r.getShowEventParams(),n.getRecommendParams(),n.getRoomAspectRatio(),n.getRoomPaidLiveInfo(),n.getOpenAppData(),n.getFollowStatus(),s,(0,eB.Wc)()),{live_status:m.EY[l]||"normal",is_comments_fold:v?1:0,channel_id:null==p?void 0:p.channelId,anchor_connect_status:(null==p?void 0:null===(i=p.grids)||void 0===i?void 0:i.length)||-1,live_source:C,invite_mode:u,pk_id:S,end_reason:void 0!==k?G.jx[k]:void 0,pk_team_count:b,user_id:null==w?void 0:w.id_str,team_mode:L}))}),(0,s._)(this,"liveNewDurationLog",e=>{var t=(0,eN._)({},(0,eV._)(e));let{eventStore:{basicEvent:i}}=this.store;window.collectEvent("livesdk_live_duration_log",t)}),(0,s._)(this,"liveEnterRoomEvent",()=>{let{eventStore:{basicEvent:e}}=this.store;window.collectEvent("livesdk_web_room_enter",(0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams()))}),(0,s._)(this,"liveCancelMutePromptShowEvent",()=>{let{eventStore:{basicEvent:e}}=this.store,t=(0,$.C$)()?et.G$.SCREEN:et.G$.ROOM;window.collectEvent("livesdk_unmute_prompt_show",(0,y._)((0,_._)({},null==e?void 0:e.getEnterEventParams(),e.getCommonEventParams(),e.getPlayerCommonEventParams()),{source:t}))}),(0,s._)(this,"liveCancelMutePromptClickEvent",()=>{let{eventStore:{basicEvent:e}}=this.store,t=(0,$.C$)()?et.G$.SCREEN:et.G$.ROOM;window.collectEvent("livesdk_unmute_prompt_click",(0,y._)((0,_._)({},null==e?void 0:e.getEnterEventParams(),e.getCommonEventParams(),e.getPlayerCommonEventParams()),{source:t}))}),(0,s._)(this,"livePlayBtnClickEvent",(e,t)=>{let{eventStore:{basicEvent:i,vsEvent:o}}=this.store;window.collectEvent("livesdk_play_button_click",(0,_._)((0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams()),{play_status:e?1:0}),t||{}))}),(0,s._)(this,"liveRefreshBtnClickEvent",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_refresh_button_click",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),e||{}))}),(0,s._)(this,"liveDanmakuBtnClickEvent",(e,t)=>{let{eventStore:{basicEvent:i,vsEvent:o}}=this.store;window.collectEvent("livesdk_barrage_button_click",(0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),t||{}),{barrage_status:e?1:0}))}),(0,s._)(this,"liveDanmakuSettingButtonShowEvent",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_barrage_setting_button_show",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),e))}),(0,s._)(this,"liveDanmakuSettingBannerShowEvent",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_barrage_setting_banner_show",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),e))}),(0,s._)(this,"liveDanmakuSettingGiftClickEvent",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_gift_barrage_button_click",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),e))}),(0,s._)(this,"liveDanmakuSettingLotteryClickEvent",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_lottery_barrage_button_click",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),e))}),(0,s._)(this,"liveFullScreenBtnEvent",(e,t)=>{let{eventStore:{basicEvent:i,vsEvent:o}}=this.store;window.collectEvent("livesdk_full_screen_button_click",(0,_._)((0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams()),{screen_status:e?1:0}),t||{}))}),(0,s._)(this,"liveTheaterModeBtnClickEvent",(e,t)=>{let{eventStore:{basicEvent:i,vsEvent:o}}=this.store;window.collectEvent("livesdk_webpage_full_screen_button_click",(0,_._)((0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams()),{screen_status:e?1:0}),t||{}))}),(0,s._)(this,"liveFoldChatroomBtnClickEvent",(e,t)=>{let{eventStore:{basicEvent:i,vsEvent:o}}=this.store;window.collectEvent("livesdk_unfold_button_click",(0,_._)((0,y._)((0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),i.getStreaType(),o.getShowEventParams()),{unfold_status:e?1:0}),t||{}))}),(0,s._)(this,"processDefinition",e=>{let{roomStore:{isEnableOlympic4k:t}}=this.store;return t&&e===et.Mi.BLUE_RAY?et.Mi.TYPE_4K:e}),(0,s._)(this,"liveBitRateSwitchEvent",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_definition_select",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),e),{before_definition:this.processDefinition(e.before_definition),select_definition:this.processDefinition(e.select_definition)}))}),(0,s._)(this,"liveSdkDefinitionPanelShow",e=>{let{eventStore:{basicEvent:t}}=this.store,i=eu()((0,_._)({},t.getEnterEventParams(),t.getCommonEventParams(),t.getPlayerCommonEventParams()),["enter_from_merge","enter_method","room_id","anchor_id","request_id"]);window.collectEvent("livesdk_definition_panel_show",(0,y._)((0,_._)({},i,e),{now_definition:this.processDefinition(e.definition)}))}),(0,s._)(this,"liveScreenRotate",e=>{let{eventStore:{basicEvent:t},roomStore:{roomInfo:i}}=this.store,o=c()(i,"room.stream_url.stream_orientation"),s=eu()((0,_._)({},t.getEnterEventParams(),t.getCommonEventParams(),t.getPlayerCommonEventParams()),["enter_from_merge","enter_method","room_id","anchor_id"]),n=(0,y._)((0,_._)({},s),{room_screen_type:null===eH.xv||void 0===eH.xv?void 0:eH.xv[o],rotate_angle:e});window.collectEvent("livesdk_screen_rotate",n)}),(0,s._)(this,"liveBitRateAutoSwitchRecordEvent",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_definition_automatic_notice",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),e))}),(0,s._)(this,"liveBitRateSwitchSuccessEvent",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_definition_change_success",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),e))}),(0,s._)(this,"livesdkDefintionSettingPc",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_defintion_setting_pc",(0,_._)({},t.getPlayerCommonEventParams(),t.getEnterEventParams(),e))}),(0,s._)(this,"livesdkUserGuidePc",e=>{var t,i;let{eventStore:{basicEvent:o}}=this.store;window.collectEvent("livesdk_user_guide_pc",(0,y._)((0,_._)({},o.getPlayerCommonEventParams(),o.getEnterEventParams(),e),{net_quality:null!==(i=null===(t=window.navigator.connection)||void 0===t?void 0:t.downlink)&&void 0!==i?i:0}))}),(0,s._)(this,"liveAutoLaunchSettingPopupShow",()=>{let{eventStore:{basicEvent:e}}=this.store;window.collectEvent("auto_launch_setting_popup_show",(0,_._)({},e.getPlayerCommonEventParams()))}),(0,s._)(this,"liveAutoLaunchSettingPopupClick",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("auto_launch_setting_popup_click",(0,_._)({},t.getPlayerCommonEventParams(),e))}),(0,s._)(this,"liveLikeEvent",(e,t,i,o)=>{var s,n,r,a,l;let{eventStore:{basicEvent:v},linkmicStore:{linkRoomType:d,functionType2:u},roomStore:{liveStatus:h,foldChatroom:g,isDoubleLike:E},pkStore:{pkAppData:p,pkListData:S,pkPlayMode:P,pkId:f,pkTeamCount:b}}=null!==(l=this.store)&&void 0!==l?l:{eventStore:{},linkmicStore:{}},w=c()(S,"battle_stats.battle_settings.battle_config_setting.team_mode",0);window.collectEvent("livesdk_like",(0,y._)((0,_._)({},null==v?void 0:v.getPlayerCommonEventParams(),null==v?void 0:v.getEnterEventParams()),{request_id:(null==v?void 0:null===(s=v.getEnterEventParams())||void 0===s?void 0:s.request_id)||o,enter_from:null==v?void 0:null===(n=v.getEnterEventParams())||void 0===n?void 0:n.enter_method,log_pb:(null==v?void 0:null===(r=v.getEnterEventParams())||void 0===r?void 0:r.request_id)||o,to_user_id:t,like_amount:i,pc_live_action_type:e,_param_live_platform:"live",live_type:"audio"===d?"voice_live":"",function_type2:u,live_status:m.EY[h]||"normal",is_comments_fold:g?1:0,channel_id:null==p?void 0:p.channelId,invite_mode:P,anchor_connect_status:(null==p?void 0:null===(a=p.grids)||void 0===a?void 0:a.length)||-1,pk_team_count:b,pk_id:f,team_mode:w,like_type:E?"double":"normal"}))}),(0,s._)(this,"liveAppOnlyEvent",e=>{let{eventStore:{basicEvent:t,linkmicBaseEvent:i,giftBaseEvent:o,vsEvent:s,fansclubEvent:n}}=this.store;window.collectEvent("livesdk_live_play_only_app",(0,y._)((0,_._)({},t.getCommonEventParams(),null==t?void 0:t.getEnterEventParams(),t.getPlayerCommonEventParams(),i.getLinkMicParams(),o.getLiveGiftEventParams(),s.getShowEventParams(),n.getLiveFansClubEventParams()),{room_type:e}))}),(0,s._)(this,"livesdkLiveproGuideComponentShow",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_livepro_guide_component_show",(0,_._)((0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),t.getRoomRoadmap(),t.getRoomAspectRatio(),t.getOpenAppData(),t.getFollowStatus()),{event_page:"live_detail"}),e||{}))}),(0,s._)(this,"livesdkShortTaskBannerShow",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_short_task_banner_show",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),t.getRoomRoadmap(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getFollowStatus(),e||{}))}),(0,s._)(this,"livesdkShortTaskBannerClick",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_short_task_banner_click",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),t.getRoomRoadmap(),t.getRecommendParams(),t.getRoomAspectRatio(),t.getFollowStatus(),e||{}))}),(0,s._)(this,"livesdkActivityBannerIndicatorShow",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_activity_banner_indicator_show",(0,_._)((0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),t.getRoomRoadmap(),t.getRoomAspectRatio(),t.getOpenAppData(),t.getFollowStatus()),{event_page:"live_detail"}),e||{}))}),(0,s._)(this,"livesdkActivityBannerIndicatorClick",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_activity_banner_indicator_click",(0,_._)({},t.getCommonEventParams(),t.getEnterEventParams(),t.getRoomRoadmap(),t.getRoomAspectRatio(),t.getOpenAppData(),t.getFollowStatus(),e||{}))}),(0,s._)(this,"livesdkPcLiveExitTip",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_pc_live_exit_tip",(0,_._)({},t.getPlayerCommonEventParams(),t.getEnterEventParams(),e||{}))}),(0,s._)(this,"livesdkPcLiveExitTipClick",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_pc_live_exit_tip_click",(0,y._)((0,_._)({},t.getPlayerCommonEventParams(),t.getEnterEventParams(),e||{}),{click_type:"resume_play"}))}),(0,s._)(this,"liveConSumeNoMovePopShow",e=>{let{ecom_group_type:t,reason_type:i,content_id:o,author_id:s,is_visible:n}=e,{eventStore:{basicEvent:r}}=this.store;window.collectEvent("consume_no_move_pop_show",(0,y._)((0,_._)({},r.getPlayerCommonEventParams(),r.getEnterEventParams()),{ecom_group_type:t,reason_type:i,content_id:o,author_id:s,is_visible:n}))}),(0,s._)(this,"liveConSumeNoMoveReaction",e=>{let{ecom_group_type:t,reason_type:i,content_id:o,author_id:s,reaction_duration:n,action:r}=e,{eventStore:{basicEvent:a}}=this.store;window.collectEvent("consume_no_move_reaction",(0,y._)((0,_._)({},a.getPlayerCommonEventParams(),a.getEnterEventParams()),{ecom_group_type:t,reason_type:i,content_id:o,author_id:s,reaction_duration:n,action:r}))}),(0,s._)(this,"liveConSumeNoMovePause",e=>{let{ecom_group_type:t,reason_type:i,content_id:o,author_id:s,is_visible:n}=e,{eventStore:{basicEvent:r}}=this.store;window.collectEvent("consume_no_move_pause",(0,y._)((0,_._)({},r.getPlayerCommonEventParams(),r.getEnterEventParams()),{ecom_group_type:t,reason_type:i,content_id:o,author_id:s,is_visible:n}))}),(0,s._)(this,"liveConSumeNoMoveOnemin",e=>{let{ecom_group_type:t,reason_type:i,content_id:o,author_id:s,continue_rank:n,is_visible:r,if_pip:a}=e,{eventStore:{basicEvent:l}}=this.store;window.collectEvent("consume_no_move_onemin",(0,y._)((0,_._)({},l.getPlayerCommonEventParams(),l.getEnterEventParams()),{ecom_group_type:t,reason_type:i,content_id:o,author_id:s,continue_rank:n,is_visible:r,if_pip:a}))}),(0,s._)(this,"livePcConSumeOnemin",e=>{let{ecom_group_type:t,is_visible:i,if_pip:o}=e,{eventStore:{basicEvent:s}}=this.store;window.collectEvent("pc_consume_onemin",(0,y._)((0,_._)({},s.getPlayerCommonEventParams(),s.getEnterEventParams()),{ecom_group_type:t,is_visible:i,if_pip:o}))}),(0,s._)(this,"playVisibleSwitch",e=>{let{content_type:t,switch_type:i,play_duration:o,content_id:s}=e,{eventStore:{basicEvent:n}}=this.store;window.collectEvent("play_visible_switch",(0,y._)((0,_._)({},n.getPlayerCommonEventParams(),n.getEnterEventParams()),{content_type:t,switch_type:i,play_duration:o,content_id:s}))}),(0,s._)(this,"playerClarityAutoSwitch",e=>{let{before_clarity:t,clarity_action:i,content_type:o,switch_type:s,content_id:n,switch_duration:r}=e,{eventStore:{basicEvent:a}}=this.store;window.collectEvent("play_clarity_auto_switch",(0,y._)((0,_._)({},a.getPlayerCommonEventParams(),a.getEnterEventParams()),{before_clarity:t,clarity_action:i,content_type:o,switch_type:s,content_id:n,switch_duration:r}))}),(0,s._)(this,"autoVideoTypeSwitch",e=>{let{content_type:t,switch_type:i,content_id:o,switch_duration:s}=e,{eventStore:{basicEvent:n}}=this.store;window.collectEvent("audio_video_type_switch",(0,y._)((0,_._)({},n.getPlayerCommonEventParams(),n.getEnterEventParams()),{content_type:t,switch_type:i,content_id:o,switch_duration:s}))}),(0,s._)(this,"liveUserPauseDuration",e=>{let{anchor_id:t,room_id:i,duration:o}=e,{eventStore:{basicEvent:s}}=this.store;window.collectEvent("livesdk_user_pause_duration",(0,y._)((0,_._)({cid:(0,j.V7)(),if_qianchuan_ad:(0,j.V7)()?1:0,ad_type:(0,j.V7)()?eF.AdType.Live:void 0},s.getPlayerCommonEventParams(),s.getEnterEventParams()),{room_id:i,duration:o}))}),(0,s._)(this,"liveMiniWindowOpenIconClick",e=>{var t;let{_param_live_platform:i,room_id:o,anchor_id:s,button_status:n}=e,{eventStore:{basicEvent:r}}=this.store;window.collectEvent("livesdk_mini_window_open_icon_click",(0,y._)((0,_._)({},r.getCommonEventParams(),r.getEnterEventParams()),{log_pb:null===(t=r.getEnterEventParams())||void 0===t?void 0:t.request_id,_param_live_platform:i,room_id:o,anchor_id:s,button_status:n}))}),(0,s._)(this,"livesdkMiniWindowBackstageOpenIconClick",e=>{let{room_id:t,anchor_id:i,button_status:o,icon_type:s}=e,{eventStore:{basicEvent:n},userStore:{userInfo:r}}=this.store,{enter_from_merge:a,enter_method:l,action_type:v,request_id:_}=n.getEnterEventParams();window.collectEvent("livesdk_mini_window_backstage_open_icon_click",{user_id:r.id_str,enter_from_merge:a,enter_method:l,action_type:v,request_id:_,room_id:t,anchor_id:i,button_status:o,icon_type:s})}),(0,s._)(this,"liveRoomQrcodeShowEvent",()=>{let{eventStore:{basicEvent:e}}=this.store;window.collectEvent("livesdk_web_phone_watch_show",(0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams()))}),(0,s._)(this,"volumeCommonParams",e=>{try{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;if(e)return this.getFeedItemCommonParams(e);return(0,_._)({},t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams())}catch(e){return{}}}),(0,s._)(this,"volumeBrowserLimitedMute",e=>{window.collectEvent("livesdk_browser_limited_mute",this.volumeCommonParams(e))}),(0,s._)(this,"volumeBrowserLimitedToastShow",e=>{window.collectEvent("livesdk_browser_limited_toast_show",this.volumeCommonParams(e))}),(0,s._)(this,"volumeBrowserLimitedClickOpen",e=>{window.collectEvent("livesdk_browser_limited_click_open",this.volumeCommonParams(e))}),(0,s._)(this,"volumeBrowserLimitedClickClose",e=>{window.collectEvent("livesdk_browser_limited_click_close",this.volumeCommonParams(e))}),(0,s._)(this,"volumeChanged",(e,t,i)=>{let{eventStore:{basicEvent:o}}=this.store,s=(0,y._)((0,_._)({},null==o?void 0:o.getEnterEventParams(),o.getCommonEventParams(),this.volumeCommonParams(i),e||{}),{is_hot_key:t?1:0});window.collectEvent("livesdk_voice_button_click",s)}),(0,s._)(this,"livesdkMoreMachineIconClick",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_more_machine_icon_click",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),e||{}))}),(0,s._)(this,"livesdkMoreContentShow",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_more_content_show",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),e||{}))}),(0,s._)(this,"livesdkFinishShow",()=>{let{eventStore:{basicEvent:e,vsEvent:t}}=this.store;window.collectEvent("livesdk_finish_show",(0,y._)((0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getShowEventParams()),{live_finish_type:(()=>{try{let e=location.href.includes("follow/live"),t=location.href.includes("root/live"),i="live.douyin.com"===location.host;return e||t||i}catch(e){return!0}})()?"live_room":"preview"}))}),(0,s._)(this,"livesdkMiniWindowExit",e=>{let{eventStore:{basicEvent:t},userStore:{odin:i}}=this.store;window.collectEvent("livesdk_mini_window_exit",(0,_._)({user_id:i.user_id},t.getEnterEventParams(),t.getPlayerCommonEventParams(),e))}),(0,s._)(this,"continuingRemindShow",e=>{let{eventStore:{basicEvent:t},userStore:{odin:i}}=this.store;window.collectEvent("continuing_remind_show",(0,_._)({scene:"live",user_id:i.user_id},t.getEnterEventParams(),t.getPlayerCommonEventParams(),e))}),(0,s._)(this,"continuedBroadcastReceiveSyncMessage",e=>{window.collectEvent("continued_broadcast_receive_sync_message",(0,_._)({scene:"live"},e))}),(0,s._)(this,"threeScreenSwitchClick",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_live_three_screen_switch_click",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),e))}),(0,s._)(this,"threeScreenGuideBubbleShow",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_live_three_screen_guide_bubble_show",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),e))}),(0,s._)(this,"livesdkThreeScreenGuidePopupShow",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i}}=t.store;window.collectEvent("livesdk_three_screen_guide_popup_show",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),e))}),(0,s._)(this,"livesdkThreeScreenGuidePopupClick",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i}}=t.store;window.collectEvent("livesdk_three_screen_guide_popup_click",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),e))}),this.store=e}}class ej{constructor(e){var t=this;(0,s._)(this,"store",null),(0,s._)(this,"liveAudienceShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_contribution_ranklist_show",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),(0,s._)(this,"liveAudienceDurationEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_contribution_ranklist_duration",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),(0,s._)(this,"liveAudienceRankIconEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_contribution_ranklist_icon",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),(0,s._)(this,"liveAudienceRankChangeEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_contribution_ranklist_change",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),(0,s._)(this,"liveAudienceHightLevelErtranceClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_privilege_highlevel_online_entrance_click",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),(0,s._)(this,"liveAudienceHightLevelShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_privilege_highlevel_online_page_show",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),(0,s._)(this,"liveAudienceHightLevelUserClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_privilege_highlevel_online_user_click",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),(0,s._)(this,"liveAudienceHightLevelBottomShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_privilege_highlevel_online_bottom_show",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),(0,s._)(this,"liveAudienceHightLevelBottomClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_privilege_highlevel_online_bottom_click",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),(0,s._)(this,"getHourRankListCommonEventParams",()=>{var e;let{userStore:{userInfo:t},roomStore:{roomInfo:i},eventStore:{basicEvent:o,vsEvent:s,fansclubEvent:n,linkmicBaseEvent:r}}=this.store;return(0,y._)((0,_._)({},o.getCommonEventParams(),o.getPlayerCommonEventParams(),o.getEnterEventParams(),s.getShowEventParams(),o.getRecommendParams(),o.getRoomAspectRatio(),n.getLiveFansClubEventParams()),{user_type:r.getUserType(null==t?void 0:t.id_str),to_user_type:r.getUserType(null==i?void 0:null===(e=i.anchor)||void 0===e?void 0:e.id_str)})}),(0,s._)(this,"groupConnectionContributionListShow",(e,t,i)=>{let{eventStore:{linkmicBaseEvent:o},linkmicStore:{isNewVideoLinkmicRoom:s,linkMicSeats:n,uiLayout:r},userStore:{userInfo:a},roomStore:{roomInfo:l}}=this.store;window.collectEvent("livesdk_connection_contribution_list_show",(0,y._)((0,_._)({},o.getGroupFightCommonParams()),{user_cnt:o.getGroupFightGusetCnt()+1,game_name:e,show_tab:t,is_new_video_link:s?"1":"0",anchor_type:s?(()=>{var e,t,i,o,s;let r=null===(t=Object.values(n||{}))||void 0===t?void 0:null===(e=t.find)||void 0===e?void 0:e.call(t,e=>{var t,i;return(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.user_id)===(null==a?void 0:a.id_str)});if((null==a?void 0:a.id_str)===(null==l?void 0:null===(i=l.anchor)||void 0===i?void 0:i.id_str))return eO.yG.HOST_ROOM;if(r)return(null==r?void 0:null===(s=r.user)||void 0===s?void 0:null===(o=s.user)||void 0===o?void 0:o.own_room_id)?eO.yG.ANCHOR_GUEST:eO.yG.AUDIENCE_GUEST;return eO.yG.AUDIENCE})():void 0,layout_type_x:s?String(r):"",source:i}))}),(0,s._)(this,"arenaBattleContributionRankShow",function(e,i){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eO.VK.GIFT_ICON,{eventStore:{basicEvent:s,linkmicBaseEvent:n}}=t.store,r=(0,y._)((0,_._)({},s.getCommonEventParams(),s.getPlayerCommonEventParams(),s.getEnterEventParams(),n.getLinkMicParams()),{game_name:"assign_guest",is_assign_guest:i,play_stage:n.getArenaBattlePlayStage(),user_type:eO.yG.ANCHOR_GUEST,to_user_id:e,to_user_type:eO.yG.ANCHOR_GUEST,source:o});window.collectEvent("livesdk_connection_contribution_list_show",r)}),(0,s._)(this,"chatroomAudiencehornorEntranceShow",(e,t)=>{let{eventStore:{linkmicBaseEvent:i,basicEvent:o}}=this.store,{enter_from_merge:s,enter_method:n}=o.getEnterEventParams();window.collectEvent("livesdk_chatroom_audiencehornor_entrance_show",(0,y._)((0,_._)({},i.getGroupFightCommonParams()),{request_page:e?"audience_head":"contribution_rank",enter_from_merge:s,enter_method:n,user_id:o.getUserId(),user_type:o.getUserType(),play_mode:t}))}),(0,s._)(this,"chatroomAudiencehornorEntranceClick",(e,t,i)=>{let{eventStore:{linkmicBaseEvent:o,basicEvent:s}}=this.store,{enter_from_merge:n,enter_method:r}=s.getEnterEventParams();window.collectEvent("livesdk_chatroom_audiencehornor_entrance_click",(0,y._)((0,_._)({},o.getGroupFightCommonParams()),{request_page:e?"audience_head":"contribution_rank",enter_from_merge:n,enter_method:r,user_id:s.getUserId(),user_type:s.getUserType(),play_mode:i,to_userid:t}))}),(0,s._)(this,"chatroomAudiencehornorPageShow",(e,t,i)=>{let{eventStore:{linkmicBaseEvent:o,basicEvent:s}}=this.store,{enter_from_merge:n,enter_method:r}=s.getEnterEventParams();window.collectEvent("livesdk_chatroom_audiencehornor_page_show",(0,y._)((0,_._)({},o.getGroupFightCommonParams()),{request_page:e?"audience_head":"contribution_rank",enter_from_merge:n,enter_method:r,user_id:s.getUserId(),user_type:s.getUserType(),play_mode:i,to_userid:t}))}),(0,s._)(this,"chatroomAudiencehornorPageClick",(e,t,i,o)=>{let{eventStore:{linkmicBaseEvent:s,basicEvent:n}}=this.store,{enter_from_merge:r,enter_method:a}=n.getEnterEventParams();window.collectEvent("livesdk_chatroom_audiencehornor_page_click",(0,y._)((0,_._)({},s.getGroupFightCommonParams()),{request_page:e?"audience_head":"contribution_rank",enter_from_merge:r,enter_method:a,user_id:n.getUserId(),user_type:n.getUserType(),play_mode:o,to_userid:t,click_type:null==i?void 0:i.clickType,hornor_game:null==i?void 0:i.hornorGame,hornor_detail:null==i?void 0:i.hornorDetail}))}),(0,s._)(this,"chatroomAudiencehornorSupportlick",(e,t)=>{var i;let{eventStore:{linkmicBaseEvent:o,basicEvent:s}}=this.store,{enter_from_merge:n,enter_method:r}=s.getEnterEventParams();window.collectEvent("livesdk_chatroom_audiencehornor_support_click",(0,y._)((0,_._)({},o.getGroupFightCommonParams()),{request_page:e?"audience_head":"contribution_rank",enter_from_merge:n,enter_method:r,rank_type:null==t?void 0:t.rankType,send_gift_scene:null==t?void 0:t.sendGiftScene,from_user_id:s.getUserId(),to_user_type:null==t?void 0:t.toUserType,to_user_id:null==t?void 0:t.toUserId,compete_mode:null!==(i=null==t?void 0:t.competeMode)&&void 0!==i?i:"",action_type:null==t?void 0:t.actionType,distribute_source:"audiencehornor",rank_game:null==t?void 0:t.rankGame,rank_detail:null==t?void 0:t.rankDetail}))}),(0,s._)(this,"contributionRanklistSupportClick",e=>{var t;let{eventStore:{linkmicBaseEvent:i,basicEvent:o},linkmicStore:{isNewVideoLinkmicRoom:s,linkMicSeats:n,uiLayout:r},userStore:{userInfo:a},roomStore:{roomInfo:l}}=this.store,{enter_from_merge:v,enter_method:m}=o.getEnterEventParams();window.collectEvent("livesdk_contribution_ranklist_support_click",(0,y._)((0,_._)({},i.getGroupFightCommonParams()),{enter_from_merge:v,enter_method:m,rank_type:null==e?void 0:e.rankType,send_gift_scene:null==e?void 0:e.sendGiftScene,from_user_id:o.getUserId(),to_user_type:null==e?void 0:e.toUserType,to_user_id:null==e?void 0:e.toUserId,compete_mode:null!==(t=null==e?void 0:e.competeMode)&&void 0!==t?t:"",action_type:null==e?void 0:e.actionType,distribute_source:"audiencehornor",rank_game:null==e?void 0:e.rankGame,rank_detail:null==e?void 0:e.rankDetail,is_new_video_link:s?"1":"0",anchor_type:s?(()=>{var e,t,i,o,s;let r=null===(t=Object.values(n||{}))||void 0===t?void 0:null===(e=t.find)||void 0===e?void 0:e.call(t,e=>{var t,i;return(null==e?void 0:null===(i=e.user)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.user_id)===(null==a?void 0:a.id_str)});if((null==a?void 0:a.id_str)===(null==l?void 0:null===(i=l.anchor)||void 0===i?void 0:i.id_str))return eO.yG.HOST_ROOM;if(r)return(null==r?void 0:null===(s=r.user)||void 0===s?void 0:null===(o=s.user)||void 0===o?void 0:o.own_room_id)?eO.yG.ANCHOR_GUEST:eO.yG.AUDIENCE_GUEST;return eO.yG.AUDIENCE})():void 0,layout_type_x:s?String(r):""}))}),this.store=e}}class eq{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"liveReportBtnClickEvent",()=>{let{eventStore:{basicEvent:e,vsEvent:t},roomStore:{liveStatus:i,foldChatroom:o}}=this.store;window.collectEvent("livesdk_report_button_click",(0,y._)((0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getShowEventParams(),e.getRoomPaidLiveInfo()),{request_location:"live_detail",play_position:"liveroom",live_status:m.EY[i]||"normal",is_comments_fold:o?1:0}))}),(0,s._)(this,"liveReportBtnShowClickEvent",()=>{var e;let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_live_report_icon_show",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams()),{log_pb:null===(e=t.getEnterEventParams())||void 0===e?void 0:e.request_id}))}),(0,s._)(this,"liveReportSubmitEvent",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_report_reason_submit",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),t.getRecommendParams(),t.getRoomAspectRatio(),e))}),(0,s._)(this,"liveReportCommentEvent",e=>{let{toUserId:t,reason:i,detail:o,webcast_to_user_id:s}=e,{eventStore:{basicEvent:n,vsEvent:r}}=this.store;window.collectEvent("livesdk_report",(0,_._)((0,y._)((0,_._)({},n.getCommonEventParams(),n.getPlayerCommonEventParams(),n.getEnterEventParams(),n.getRoomRoadmap()),{to_user_id:t,to_user_type:et.VA.AUDIENCE,reason:i,detail:o,webcast_to_user_id:s}),r.getShowEventParams()))}),this.store=e}}class eY{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"startJoinRoomTime",0),(0,s._)(this,"joinRoomSuccessTime",0),(0,s._)(this,"publishStreamSuccessTime",0),(0,s._)(this,"joinChannelSuccessTime",0),(0,s._)(this,"joinRoomSuccessTime",0),(0,s._)(this,"publishStreamSuccessTime",0),(0,s._)(this,"inviteModeApplyInviteTime",0),(0,s._)(this,"connectType","apply"),(0,s._)(this,"getCommonTeaParams",()=>(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType())),(0,s._)(this,"livesdkRtcAudioVideoAuthEvent",e=>{window.collectEvent("livesdk_rtc_audio_video_auth",(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType(),e))}),(0,s._)(this,"livesdkRtcAudioVideoAuthFailEvent",e=>{window.collectEvent("livesdk_rtc_audio_video_auth_fail",(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType(),e))}),(0,s._)(this,"livesdkRtcInviteModeApplyInviteEvent",()=>{this.inviteModeApplyInviteTime=Date.now(),window.collectEvent("livesdk_rtc_invite_mode_apply_invite",this.getCommonTeaParams())}),(0,s._)(this,"livesdkRtcApplyJoinRoomEvent",e=>{window.collectEvent("livesdk_rtc_apply_join_room",(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType(),e))}),(0,s._)(this,"livesdkRtcAgreeJoinRoomEvent",e=>{this.startJoinRoomTime=Date.now(),this.connectType=e.type||"apply";let t="invite"===this.connectType?this.inviteModeApplyInviteTime:0,i=this.startJoinRoomTime-t;window.collectEvent("livesdk_rtc_agree_join_room",(0,_._)((0,y._)((0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType()),{startTime:t,endTime:this.startJoinRoomTime,type:this.connectType,duration:i}),e))}),(0,s._)(this,"livesdkRtcJoinChannelEvent",e=>{window.collectEvent("livesdk_rtc_join_channel",(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType(),e))}),(0,s._)(this,"livesdkRtcJoinChannelSuccessEvent",()=>{this.joinChannelSuccessTime=Date.now();let e=this.joinChannelSuccessTime-this.startJoinRoomTime;window.collectEvent("livesdk_rtc_join_channel_success",(0,y._)((0,_._)({},this.getCommonTeaParams()),{startTime:this.startJoinRoomTime,endTime:this.joinChannelSuccessTime,type:this.connectType,duration:e}))}),(0,s._)(this,"livesdkRtcJoinRoomEvent",()=>{window.collectEvent("livesdk_rtc_join_room",(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType()))}),(0,s._)(this,"livesdkRtcFirstFrameEvent",e=>{let{type:t}=e,i=Date.now()-this.startJoinRoomTime;window.collectEvent("livesdk_rtc_first_frame",(0,y._)((0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType(),e),{startTime:this.startJoinRoomTime,endTime:Date.now(),mediaType:t,type:this.connectType,duration:i}))}),(0,s._)(this,"livesdkRtcJoinRoomTimeEvent",e=>{let{isRightRoom:t=!1}=e||{};this.joinRoomSuccessTime=Date.now();let i=this.joinRoomSuccessTime-this.joinChannelSuccessTime;window.collectEvent("livesdk_rtc_join_room_time",(0,y._)((0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType()),{startTime:this.startJoinRoomTime,endTime:this.joinRoomSuccessTime,durition:0!==this.startJoinRoomTime?this.joinRoomSuccessTime-this.startJoinRoomTime:0,duration:i,type:this.connectType,isRightRoom:t?1:0}))}),(0,s._)(this,"livesdkRtcPublishStreamSuccessEvent",()=>{this.publishStreamSuccessTime=Date.now();let e=this.publishStreamSuccessTime-this.joinRoomSuccessTime;window.collectEvent("livesdk_rtc_publish_stream_success_time",(0,y._)((0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType()),{startTime:this.joinRoomSuccessTime,endTime:this.publishStreamSuccessTime,duration:e,type:this.connectType}))}),(0,s._)(this,"livesdkRtcLeaveRoomEvent",()=>{if(!this.joinRoomSuccessTime)return;let e=Date.now(),t=e-this.joinRoomSuccessTime;window.collectEvent("livesdk_rtc_leave_room_time",(0,y._)((0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType()),{startTime:this.joinRoomSuccessTime,endTime:e,duration:t,type:this.connectType}))}),(0,s._)(this,"livesdkRtcLibraTestReport",e=>{window.collectEvent("livesdk_rtc_libra_test",(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType(),e))}),(0,s._)(this,"livesdkRtcHybridInfoReport",e=>{window.collectEvent("livesdk_rtc_hybrid_info_report",(0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.store.eventStore.basicEvent.getRoomRoadmap(),this.store.eventStore.basicEvent.getImoprtEventParams(),this.store.eventStore.vsEvent.getShowEventParams(),this.store.eventStore.basicEvent.getRecommendParams(),this.store.eventStore.basicEvent.getRoomAspectRatio(),this.store.eventStore.basicEvent.getPlayerCommonEventParams(),this.store.eventStore.basicEvent.getStreaType(),e))}),this.store=e}}class eQ{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"livesdkSubTabShow",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_sub_tab_show",(0,_._)({},e,t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),t.getRecommendParams()))}),(0,s._)(this,"livesdkSearchBarClick",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_search_bar_click",(0,_._)({},e,t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),t.getRecommendParams()))}),(0,s._)(this,"livesdkSearchResultWordsClick",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_search_result_words_click",(0,_._)({},e,t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),t.getRecommendParams()))}),(0,s._)(this,"livesdkSearchResultDeleteClick",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_search_result_delete",(0,_._)({},e,t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),t.getRecommendParams()))}),this.store=e}}class eJ{constructor(e){var t=this;(0,s._)(this,"store",null),(0,s._)(this,"liveFollowEvent",function(e,i){var o,s;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:et.JC.PERSONAL_PROFILE,{eventStore:{basicEvent:r,vsEvent:a},linkmicStore:{linkRoomType:l,functionType2:v},roomStore:{liveStatus:d,foldChatroom:c},pkStore:{pkAppData:u,pkTeamCount:h,pkPlayMode:g,pkId:E}}=t.store;window.collectEvent("livesdk_follow",(0,y._)((0,_._)({},r.getCommonEventParams(),r.getEnterEventParams(),r.getPlayerCommonEventParams(),r.getRoomRoadmap(),a.getShowEventParams(),r.getRecommendParams(),r.getRoomAspectRatio(),r.getRoomPaidLiveInfo()),{to_user_id:e,to_user_type:i,click_user_position:n,live_type:"audio"===l?"voice_live":"",function_type2:v,live_status:m.EY[d]||"normal",is_comments_fold:c?1:0,channel_id:null==u?void 0:u.channelId,invite_mode:g,anchor_connect_status:(null==u?void 0:null===(o=u.grids)||void 0===o?void 0:o.length)||-1,pk_team_count:h,pk_id:E,is_privacy_watch:(0,q.q)()?"1":"0"})),(0,j.Ui)()&&(0,K.E)("follow",(0,y._)((0,_._)({value:(0,j.V7)(),tag:"live_ad",device_id:null===W.Es||void 0===W.Es?void 0:null===(s=(0,W.Es)())||void 0===s?void 0:s.user_unique_id},eu()(r.getPlayerCommonEventParams(),["anchor_id","room_id"])),{log_extra:(0,j.u9)()}))}),(0,s._)(this,"liveUnFollowEvent",function(e,i){var o;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:et.JC.PERSONAL_PROFILE,{eventStore:{basicEvent:n,vsEvent:r},pkStore:{pkAppData:a,pkListData:l,pkPlayMode:v,pkId:m,pkTeamCount:d}}=t.store;window.collectEvent("livesdk_unfollow",(0,y._)((0,_._)({},n.getCommonEventParams(),n.getPlayerCommonEventParams(),n.getEnterEventParams(),n.getRoomRoadmap(),r.getShowEventParams(),n.getRecommendParams(),n.getRoomAspectRatio(),n.getRoomPaidLiveInfo()),{to_user_id:e,to_user_type:i,click_user_position:s,channel_id:null==a?void 0:a.channelId,invite_mode:v,anchor_connect_status:(null==a?void 0:null===(o=a.grids)||void 0===o?void 0:o.length)||-1,pk_team_count:d,pk_id:m,tablive_feed_guide_scene:window.__INVISIBLE_QUERY__.tablive_feed_guide_scene,is_privacy_watch:(0,q.q)()?"1":"0"}))}),(0,s._)(this,"liveCardClickEvent",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_rec_live_play",(0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),e))}),(0,s._)(this,"liveClickUserEvent",e=>{let{eventStore:{basicEvent:t,giftBaseEvent:i,linkmicBaseEvent:o}}=this.store,{functionType2:s}=this.store.linkmicStore;window.collectEvent("livesdk_live_click_user",(0,y._)((0,_._)({},e,t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getLiveGiftEventParams(),t.getRecommendParams(),t.getRoomAspectRatio(),o.getFaceRecognitionPopupData()),{click_user_position:(null==e?void 0:e.click_user_position)||et.JC.PERSONAL_PROFILE,play_mode:"request_song",function_type2:s,is_privacy_watch:(0,q.q)()?"1":"0"}))}),(0,s._)(this,"liveUserWaterMarkEvent",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_failed_special_mask_cmt",(0,y._)((0,_._)({},e,t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams()),{client_time:Date.now()}))}),this.store=e}}class ez{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"getShowEventParams",e=>{var t,i,o;let{room:s}=null!==(o=null!=e?e:null===(i=this.store)||void 0===i?void 0:null===(t=i.roomStore)||void 0===t?void 0:t.roomInfo)&&void 0!==o?o:{},n=c()(s,"episode_extra",0)?1:0,r=c()(s,"episode_extra.episode_id_str",""),a=c()(s,"episode_extra.item_id",""),l=c()(s,"episode_extra.season_id_str",""),v=n?c()(s,"episode_extra.mod.episode_stage","")===et.jL.FIRST_LIVE?"premiere":"live":"";return{is_vs:n,vs_episode_id:r,vs_ep_group_id:a,vs_season_id:l,vs_episode_stage:v}}),(0,s._)(this,"getShowEventEra",e=>{var t,i,o;let{room:s}=null!==(o=null!=e?e:null===(i=this.store)||void 0===i?void 0:null===(t=i.roomStore)||void 0===t?void 0:t.roomInfo)&&void 0!==o?o:{};return{vs_is_portraid_content:2===c()(s,"episode_extra.style")?1:0}}),this.store=e}}var eX=i("335076");class e${constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"getVipCommonEventParams",()=>{var e;let{userStore:{userInfo:t},roomStore:{roomInfo:i},eventStore:{basicEvent:o,vsEvent:s,linkmicBaseEvent:n}}=this.store;return(0,y._)((0,_._)({},o.getCommonEventParams(),o.getPlayerCommonEventParams(),o.getEnterEventParams(),s.getShowEventParams(),o.getRecommendParams(),o.getRoomAspectRatio()),{user_type:n.getUserType(null==t?void 0:t.id_str),to_user_type:n.getUserType(null==i?void 0:null===(e=i.anchor)||void 0===e?void 0:e.id_str)})}),(0,s._)(this,"liveVipIconShow",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_livevip_icon_show",(0,y._)((0,_._)({},this.getVipCommonEventParams(),t.getScreenMode(),e),{is_anchor:0}))}),(0,s._)(this,"liveVipEntranceClick",e=>{let{eventStore:{basicEvent:t}}=this.store;window.collectEvent("livesdk_livevip_entrance_click",(0,y._)((0,_._)({},this.getVipCommonEventParams(),t.getScreenMode(),e),{is_anchor:0}))}),(0,s._)(this,"liveVipPageShow",e=>{window.collectEvent("livesdk_livevip_page_show",(0,y._)((0,_._)({},this.getVipCommonEventParams(),e),{is_anchor:0}))}),(0,s._)(this,"liveVipPurchaseClick",e=>{window.collectEvent("livesdk_livevip_purchase_click",(0,y._)((0,_._)({},this.getVipCommonEventParams(),e),{is_anchor:0}))}),(0,s._)(this,"liveVipPackagePageSelect",e=>{window.collectEvent("livesdk_livevip_package_page_select",(0,y._)((0,_._)({},this.getVipCommonEventParams(),e),{is_anchor:0}))}),(0,s._)(this,"liveVipPurchaseSuccess",e=>{window.collectEvent("livesdk_livevip_purchase_success",(0,y._)((0,_._)({},this.getVipCommonEventParams(),e),{is_anchor:0}))}),(0,s._)(this,"liveVipPurchaseTrace",e=>{window.collectEvent("livesdk_livevip_recharge_trace",(0,y._)((0,_._)({},this.getVipCommonEventParams(),e),{is_anchor:0}))}),(0,s._)(this,"liveVipToastShow",e=>{window.collectEvent("livesdk_toast_card_show",(0,y._)((0,_._)({},this.getVipCommonEventParams(),e),{is_anchor:0}))}),this.store=e}}class e0{constructor(e){var t=this;(0,s._)(this,"store",null),(0,s._)(this,"liveGiftGuideContainerShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_liveroom_container_show",(0,_._)({user_id:i.getUserId()},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),i.getScreenMode(),o.getShowEventParams(),e))}),(0,s._)(this,"liveGiftGuideContainerCloseEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_liveroom_container_close",(0,_._)({user_id:i.getUserId()},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),(0,s._)(this,"liveGiftGuideContainerClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_liveroom_container_click",(0,_._)({user_id:i.getUserId()},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),i.getScreenMode(),o.getShowEventParams(),e))}),this.store=e}}class e1{constructor(e){var t=this;(0,s._)(this,"store",null),(0,s._)(this,"liveWishListClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_wishlist_banner_click",(0,_._)({user_id:i.getUserId()},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),this.store=e}}class e2{constructor(e){var t=this;(0,s._)(this,"store",null),(0,s._)(this,"liveGiftExhibitionClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i,vsEvent:o}}=t.store;window.collectEvent("livesdk_giftwall_gift_click",(0,_._)({user_id:i.getUserId()},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),o.getShowEventParams(),e))}),this.store=e}}class e6{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"lotteryStartTime",0),(0,s._)(this,"lotteryStart",e=>{try{this.lotteryStartTime=Date.now();let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_lottery_start",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),t.getRecommendParams(),t.getRoomAspectRatio()),{startTime:this.lotteryStartTime,from:"im"===e?"im":"fetch"}))}catch(e){}}),(0,s._)(this,"lotterySmallCardShow",()=>{let e=Date.now()-this.lotteryStartTime,{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_lottery_small_show",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),t.getRecommendParams(),t.getRoomAspectRatio()),{duration:e}))}),(0,s._)(this,"lotteryBigCardShow",()=>{let e=Date.now()-this.lotteryStartTime,{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_lottery_big_show",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),t.getRecommendParams(),t.getRoomAspectRatio()),{duration:e}))}),(0,s._)(this,"lotteryShortTouchPluginEffect",()=>{let{eventStore:{basicEvent:e,vsEvent:t}}=this.store;window.collectEvent("livesdk_lottery_short_touch_plugin_effect_pc",(0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getShowEventParams(),e.getRecommendParams(),e.getRoomAspectRatio()))}),(0,s._)(this,"lotteryMessageNew",()=>{let{eventStore:{basicEvent:e,vsEvent:t}}=this.store;window.collectEvent("livesdk_lottery_message_new_pc",(0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getShowEventParams(),e.getRecommendParams(),e.getRoomAspectRatio()))}),(0,s._)(this,"lotteryShortTouchShowDuration",e=>{let{eventStore:{basicEvent:t,vsEvent:i}}=this.store;window.collectEvent("livesdk_lottery_short_touch_show_duration_pc",(0,y._)((0,_._)({},t.getCommonEventParams(),t.getPlayerCommonEventParams(),t.getEnterEventParams(),i.getShowEventParams(),t.getRecommendParams(),t.getRoomAspectRatio()),{duration:e}))}),(0,s._)(this,"lotteryComponentEffect",()=>{let{eventStore:{basicEvent:e,vsEvent:t}}=this.store;window.collectEvent("livesdk_lottery_component_effect_pc",(0,_._)({},e.getCommonEventParams(),e.getPlayerCommonEventParams(),e.getEnterEventParams(),t.getShowEventParams(),e.getRecommendParams(),e.getRoomAspectRatio()))}),this.store=e}}class e3{constructor(e){var t=this;(0,s._)(this,"store",null),(0,s._)(this,"livesdkLiveAnnounceCardShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i}}=t.store;window.collectEvent("livesdk_live_announce_card_show",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),e))}),(0,s._)(this,"livesdkLiveAnnounceCardClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i}}=t.store;window.collectEvent("livesdk_live_announce_card_click",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),e))}),(0,s._)(this,"livesdkLiveAnnounceCardClickSuccessEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i}}=t.store;window.collectEvent("livesdk_live_announce_card_click_success",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),e))}),(0,s._)(this,"livesdkLiveAnnounceCardCanelEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i}}=t.store;window.collectEvent("livesdk_live_announce_card_canel",(0,_._)({},i.getCommonEventParams(),i.getPlayerCommonEventParams(),i.getEnterEventParams(),e))}),this.store=e}}class e5{constructor(e){(0,s._)(this,"store",null),(0,s._)(this,"livesdk_live_multicamera_entrance",()=>{let{eventStore:{basicEvent:e}}=this.store;setTimeout(()=>{var t,i,o,s,n,r,a,l,v,m,d;window.collectEvent("livesdk_live_multicamera_entrance",(0,_._)({anchor_id:null===(s=this.store)||void 0===s?void 0:null===(o=s.roomStore)||void 0===o?void 0:null===(i=o.roomInfo)||void 0===i?void 0:null===(t=i.anchor)||void 0===t?void 0:t.id_str,room_id:null===(l=this.store)||void 0===l?void 0:null===(a=l.roomStore)||void 0===a?void 0:null===(r=a.roomInfo)||void 0===r?void 0:null===(n=r.room)||void 0===n?void 0:n.id_str},e.getCommonEventParams(),e.getEnterEventParams(),e.getRoomRoadmap(),e.getRoomAspectRatio(),e.getOpenAppData(),e.getFollowStatus(),(null===(d=this.store)||void 0===d?void 0:null===(m=d.vrStore)||void 0===m?void 0:null===(v=m.getCommonEventParams)||void 0===v?void 0:v.call(m))||{}))},200)}),(0,s._)(this,"livesdk_live_vr_label_show",()=>{let{eventStore:{basicEvent:e}}=this.store;setTimeout(()=>{var t,i,o,s,n,r,a,l,v,m,d;window.collectEvent("livesdk_live_vr_label_show",(0,_._)({anchor_id:null===(s=this.store)||void 0===s?void 0:null===(o=s.roomStore)||void 0===o?void 0:null===(i=o.roomInfo)||void 0===i?void 0:null===(t=i.anchor)||void 0===t?void 0:t.id_str,room_id:null===(l=this.store)||void 0===l?void 0:null===(a=l.roomStore)||void 0===a?void 0:null===(r=a.roomInfo)||void 0===r?void 0:null===(n=r.room)||void 0===n?void 0:n.id_str},e.getCommonEventParams(),e.getEnterEventParams(),e.getRoomRoadmap(),e.getRoomAspectRatio(),e.getOpenAppData(),e.getFollowStatus(),(null===(d=this.store)||void 0===d?void 0:null===(m=d.vrStore)||void 0===m?void 0:null===(v=m.getCommonEventParams)||void 0===v?void 0:v.call(m))||{}))},200)}),(0,s._)(this,"livesdk_live_vr_label_click",()=>{let{eventStore:{basicEvent:e}}=this.store;setTimeout(()=>{var t,i,o,s,n,r,a,l,v,m,d;window.collectEvent("livesdk_live_vr_label_click",(0,_._)({anchor_id:null===(s=this.store)||void 0===s?void 0:null===(o=s.roomStore)||void 0===o?void 0:null===(i=o.roomInfo)||void 0===i?void 0:null===(t=i.anchor)||void 0===t?void 0:t.id_str,room_id:null===(l=this.store)||void 0===l?void 0:null===(a=l.roomStore)||void 0===a?void 0:null===(r=a.roomInfo)||void 0===r?void 0:null===(n=r.room)||void 0===n?void 0:n.id_str},e.getCommonEventParams(),e.getEnterEventParams(),e.getRoomRoadmap(),e.getRoomAspectRatio(),e.getOpenAppData(),e.getFollowStatus(),(null===(d=this.store)||void 0===d?void 0:null===(m=d.vrStore)||void 0===m?void 0:null===(v=m.getCommonEventParams)||void 0===v?void 0:v.call(m))||{}))},200)}),(0,s._)(this,"livesdk_live_vrmodel_toolbar_show",()=>{let{eventStore:{basicEvent:e}}=this.store;setTimeout(()=>{var t,i,o,s,n,r,a,l,v,m,d;window.collectEvent("livesdk_live_vrmodel_toolbar_show",(0,_._)({anchor_id:null===(s=this.store)||void 0===s?void 0:null===(o=s.roomStore)||void 0===o?void 0:null===(i=o.roomInfo)||void 0===i?void 0:null===(t=i.anchor)||void 0===t?void 0:t.id_str,room_id:null===(l=this.store)||void 0===l?void 0:null===(a=l.roomStore)||void 0===a?void 0:null===(r=a.roomInfo)||void 0===r?void 0:null===(n=r.room)||void 0===n?void 0:n.id_str},e.getCommonEventParams(),e.getEnterEventParams(),e.getRoomRoadmap(),e.getRoomAspectRatio(),e.getOpenAppData(),e.getFollowStatus(),(null===(d=this.store)||void 0===d?void 0:null===(m=d.vrStore)||void 0===m?void 0:null===(v=m.getCommonEventParams)||void 0===v?void 0:v.call(m))||{}))},200)}),(0,s._)(this,"livesdk_live_vrmodel_toolbar_click",e=>{let{eventStore:{basicEvent:t}}=this.store;setTimeout(()=>{var i,o,s,n,r,a,l,v,m,d,c,u,h;window.collectEvent("livesdk_live_vrmodel_toolbar_click",(0,y._)((0,_._)({anchor_id:null===(n=this.store)||void 0===n?void 0:null===(s=n.roomStore)||void 0===s?void 0:null===(o=s.roomInfo)||void 0===o?void 0:null===(i=o.anchor)||void 0===i?void 0:i.id_str,room_id:null===(v=this.store)||void 0===v?void 0:null===(l=v.roomStore)||void 0===l?void 0:null===(a=l.roomInfo)||void 0===a?void 0:null===(r=a.room)||void 0===r?void 0:r.id_str},t.getCommonEventParams(),t.getEnterEventParams(),t.getRoomRoadmap(),t.getRoomAspectRatio(),t.getOpenAppData(),t.getFollowStatus(),(null===(c=this.store)||void 0===c?void 0:null===(d=c.vrStore)||void 0===d?void 0:null===(m=d.getCommonEventParams)||void 0===m?void 0:m.call(d))||{},e||{}),{gyroscope_state:null===(h=this.store)||void 0===h?void 0:null===(u=h.vrStore)||void 0===u?void 0:u.gyroscope_state}))},200)}),(0,s._)(this,"livesdk_live_vr_gyroscope",e=>{var t,i,o,s,n,r,a,l,v,m,d;let{eventStore:{basicEvent:c}}=this.store;window.collectEvent("livesdk_live_vr_gyroscope",(0,_._)({anchor_id:null===(s=this.store)||void 0===s?void 0:null===(o=s.roomStore)||void 0===o?void 0:null===(i=o.roomInfo)||void 0===i?void 0:null===(t=i.anchor)||void 0===t?void 0:t.id_str,room_id:null===(l=this.store)||void 0===l?void 0:null===(a=l.roomStore)||void 0===a?void 0:null===(r=a.roomInfo)||void 0===r?void 0:null===(n=r.room)||void 0===n?void 0:n.id_str},c.getCommonEventParams(),c.getEnterEventParams(),c.getRoomRoadmap(),c.getRoomAspectRatio(),c.getOpenAppData(),c.getFollowStatus(),(null===(d=this.store)||void 0===d?void 0:null===(m=d.vrStore)||void 0===m?void 0:null===(v=m.getCommonEventParams)||void 0===v?void 0:v.call(m))||{},e||{}))}),(0,s._)(this,"livesdk_live_vr_paly_duration",e=>{var t,i,o,s,n,r,a,l,v,m,d;let{eventStore:{basicEvent:c}}=this.store;window.collectEvent("livesdk_live_vr_paly_duration",(0,_._)({anchor_id:null===(s=this.store)||void 0===s?void 0:null===(o=s.roomStore)||void 0===o?void 0:null===(i=o.roomInfo)||void 0===i?void 0:null===(t=i.anchor)||void 0===t?void 0:t.id_str,room_id:null===(l=this.store)||void 0===l?void 0:null===(a=l.roomStore)||void 0===a?void 0:null===(r=a.roomInfo)||void 0===r?void 0:null===(n=r.room)||void 0===n?void 0:n.id_str},c.getCommonEventParams(),c.getEnterEventParams(),c.getRoomRoadmap(),c.getRoomAspectRatio(),c.getOpenAppData(),c.getFollowStatus(),(null===(d=this.store)||void 0===d?void 0:null===(m=d.vrStore)||void 0===m?void 0:null===(v=m.getCommonEventParams)||void 0===v?void 0:v.call(m))||{},e||{}))}),(0,s._)(this,"livesdk_live_vr_paly_overall_duration",e=>{var t,i,o,s,n,r,a,l,v,m,d;let{eventStore:{basicEvent:c}}=this.store;window.collectEvent("livesdk_live_vr_paly_overall_duration",(0,_._)({anchor_id:null===(s=this.store)||void 0===s?void 0:null===(o=s.roomStore)||void 0===o?void 0:null===(i=o.roomInfo)||void 0===i?void 0:null===(t=i.anchor)||void 0===t?void 0:t.id_str,room_id:null===(l=this.store)||void 0===l?void 0:null===(a=l.roomStore)||void 0===a?void 0:null===(r=a.roomInfo)||void 0===r?void 0:null===(n=r.room)||void 0===n?void 0:n.id_str},c.getCommonEventParams(),c.getEnterEventParams(),c.getRoomRoadmap(),c.getRoomAspectRatio(),c.getOpenAppData(),c.getFollowStatus(),(null===(d=this.store)||void 0===d?void 0:null===(m=d.vrStore)||void 0===m?void 0:null===(v=m.getCommonEventParams)||void 0===v?void 0:v.call(m))||{},e||{}))}),this.store=e}}class e4{constructor(e){var t=this;(0,s._)(this,"store",null),(0,s._)(this,"liveOperationBannerShowEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i}}=t.store;window.collectEvent("livesdk_pc_first_page_banner_show",(0,_._)({},i.getCommonEventParams(),i.getEnterEventParams(),e))}),(0,s._)(this,"liveOperationBannerClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i}}=t.store;window.collectEvent("livesdk_pc_first_page_banner_click",(0,_._)({},i.getCommonEventParams(),i.getEnterEventParams(),e))}),(0,s._)(this,"liveChannelGuessCategoryClickEvent",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventStore:{basicEvent:i}}=t.store;window.collectEvent("livesdk_pc_guessyoulike_click",(0,_._)({},i.getCommonEventParams(),i.getEnterEventParams(),e))}),this.store=e}}class e8{constructor(e){(0,s._)(this,"store",void 0),(0,s._)(this,"getCommonParams",()=>({anchor_id:c()(this.store,"roomStore.roomInfo.anchor.id_str",""),room_id:c()(this.store,"roomStore.roomInfo.roomId",""),live_type:c()(this.store,"roomStore.roomInfo.room.live_type","")})),(0,s._)(this,"livesdkPcWatchAssistantIconShow",()=>{window.collectEvent("livesdk_pc_watch_assistant_icon_show",(0,y._)((0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.getCommonParams()),{event_page:"live_detail"}))}),(0,s._)(this,"livesdkPcWatchAssistantIconClick",()=>{window.collectEvent("livesdk_pc_watch_assistant_icon_click",(0,y._)((0,_._)({},this.store.eventStore.basicEvent.getCommonEventParams(),this.store.eventStore.basicEvent.getEnterEventParams(),this.getCommonParams()),{event_page:"live_detail"}))}),(0,s._)(this,"livesdkPcWatchAssistantDialogPageShow",e=>{window.collectEvent("livesdk_pc_watch_assistant_dialog_page_show",(0,_._)({},this.getCommonParams(),e))}),(0,s._)(this,"livesdkPcWatchAssistantDialogPageClick",e=>{window.collectEvent("livesdk_pc_watch_assistant_dialog_page_click",(0,_._)({},this.getCommonParams(),e))}),(0,s._)(this,"livesdkPcAiRecommendTopicShow",e=>{window.collectEvent("livesdk_pc_ai_recommend_topic_show",(0,_._)({},this.getCommonParams(),e))}),(0,s._)(this,"livesdkPcAiRecommendTopicClick",e=>{window.collectEvent("livesdk_pc_ai_recommend_topic_click",(0,_._)({},this.getCommonParams(),e))}),(0,s._)(this,"livesdkPcWatchAssistantAnswerShow",e=>{window.collectEvent("livesdk_pc_watch_assistant_answer_show",(0,_._)({},this.getCommonParams(),e))}),(0,s._)(this,"livesdkWatchAssistantAnswerClick",e=>{window.collectEvent("livesdk_watch_assistant_answer_click",(0,_._)({},this.getCommonParams(),e))}),(0,s._)(this,"livesdkPcWatchAssistantHistoryDialogPageShow",e=>{window.collectEvent("livesdk_pc_watch_assistant_history_dialog_page_show",(0,_._)({},this.getCommonParams(),e))}),(0,s._)(this,"livesdkPcWatchAssistantHistoryDialogPageClick",e=>{window.collectEvent("livesdk_pc_watch_assistant_history_dialog_page_click",(0,_._)({},this.getCommonParams(),e))}),(0,s._)(this,"livesdkPcLiveproGuideComponentShow",e=>{window.collectEvent("livesdk_pc_livepro_guide_component_show",(0,_._)((0,y._)((0,_._)({},this.getCommonParams()),{scene_type:"douyin_watch_assistant"}),e))}),(0,s._)(this,"livesdkPcLiveproGuideComponentClick",e=>{window.collectEvent("livesdk_pc_livepro_guide_component_click",(0,_._)((0,y._)((0,_._)({},this.getCommonParams()),{scene_type:"douyin_watch_assistant"}),e))}),(0,s._)(this,"sendMessageResponse",e=>{window.collectEvent("send_message_response",(0,_._)((0,y._)((0,_._)({},this.getCommonParams()),{scene_type:"douyin_watch_assistant"}),e))}),this.store=e}}class e9 extends a.Z{initEvents(){this.chatEvent=new Y(this.store),this.basicEvent=new es(this.store),this.ecomEvent=new er(this.store),this.fansclubEvent=new el(this.store),this.giftBaseEvent=new ev(this.store),this.giftEvent=new em(this.store),this.redPacketEvent=new ed(this.store),this.linkmicBaseEvent=new eb(this.store),this.linkmicEvent=new eG(this.store),this.loginEvent=new eM(this.store),this.pkEvent=new eU(this.store),this.playerEvent=new eW(this.store),this.ranklistEvent=new ej(this.store),this.reportEvent=new eq(this.store),this.rtcEvent=new eY(this.store),this.gameTabEvent=new eQ(this.store),this.userEvent=new eJ(this.store),this.vsEvent=new ez(this.store),this.slardarEvent=new eX.Uh(this.store),this.vipEvent=new e$(this.store),this.giftGuideEvent=new e0(this.store),this.wishListEvent=new e1(this.store),this.giftExhibitionEvent=new e2(this.store),this.lotteryEvent=new e6(this.store),this.reserveEvent=new e3(this.store),this.vrEvent=new e5(this.store),this.liveChannelEvent=new e4(this.store),this.aiHelperEvent=new e8(this.store)}constructor(e){super(),(0,s._)(this,"store",null),(0,s._)(this,"chatEvent",void 0),(0,s._)(this,"basicEvent",void 0),(0,s._)(this,"ecomEvent",void 0),(0,s._)(this,"fansclubEvent",void 0),(0,s._)(this,"giftBaseEvent",void 0),(0,s._)(this,"giftEvent",void 0),(0,s._)(this,"redPacketEvent",void 0),(0,s._)(this,"linkmicBaseEvent",void 0),(0,s._)(this,"linkmicEvent",void 0),(0,s._)(this,"loginEvent",void 0),(0,s._)(this,"pkEvent",void 0),(0,s._)(this,"playerEvent",void 0),(0,s._)(this,"ranklistEvent",void 0),(0,s._)(this,"reportEvent",void 0),(0,s._)(this,"rtcEvent",void 0),(0,s._)(this,"tabEvent",void 0),(0,s._)(this,"gameTabEvent",void 0),(0,s._)(this,"userEvent",void 0),(0,s._)(this,"vsEvent",void 0),(0,s._)(this,"slardarEvent",void 0),(0,s._)(this,"vipEvent",void 0),(0,s._)(this,"giftGuideEvent",void 0),(0,s._)(this,"wishListEvent",void 0),(0,s._)(this,"giftExhibitionEvent",void 0),(0,s._)(this,"lotteryEvent",void 0),(0,s._)(this,"reserveEvent",void 0),(0,s._)(this,"vrEvent",void 0),(0,s._)(this,"LiveChannelEvent",void 0),(0,s._)(this,"aiHelperEvent",void 0),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{chatEvent:l.observable,basicEvent:l.observable,ecomEvent:l.observable,fansclubEvent:l.observable,giftBaseEvent:l.observable,giftEvent:l.observable,linkmicBaseEvent:l.observable,linkmicEvent:l.observable,loginEvent:l.observable,pkEvent:l.observable,playerEvent:l.observable,ranklistEvent:l.observable,reportEvent:l.observable,rtcEvent:l.observable,tabEvent:l.observable,gameTabEvent:l.observable,userEvent:l.observable,vsEvent:l.observable,redPacketEvent:l.observable,vipEvent:l.observable,giftGuideEvent:l.observable,wishListEvent:l.observable,giftExhibitionEvent:l.observable,lotteryEvent:l.observable,reserveEvent:l.observable,vrEvent:l.observable,LiveChannelEvent:l.observable,aiHelperEvent:l.observable})}),(0,s._)(this,"reset",()=>{Object.entries(this).filter(e=>{let[t]=e;return/Event$/.test(t)}).forEach(e=>{let[t]=e;return this[t]=null}),this.store=null});this.store=e,this.makeObservable(),this.initEvents()}}class e7 extends a.Z{constructor(){super(),(0,s._)(this,"cameraInfo",{}),(0,s._)(this,"mainCameraInfo",{}),(0,s._)(this,"cameraInfoList",[]),(0,s._)(this,"multiCameraLogParams",{}),(0,s._)(this,"switchCameraNumber",0),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{cameraInfo:l.observable,mainCameraInfo:l.observable,cameraInfoList:l.observable,setCameraInfo:l.action,setMainCameraInfo:l.action,setCameraInfoList:l.action,setMultiCameraLogParams:l.action,multiCameraLogParams:l.observable,switchCameraNumber:l.observable,setSwitchCameraNumber:l.action})}),(0,s._)(this,"setSwitchCameraNumber",e=>{this.switchCameraNumber=e}),(0,s._)(this,"setMultiCameraLogParams",e=>{this.multiCameraLogParams=e}),(0,s._)(this,"reset",()=>{this.cameraInfo={},this.mainCameraInfo={},this.cameraInfoList=[]}),(0,s._)(this,"setCameraInfo",e=>{"function"==typeof e?this.cameraInfo=e(this.cameraInfo):this.cameraInfo=e}),(0,s._)(this,"setMainCameraInfo",e=>{"function"==typeof e?this.mainCameraInfo=e(this.mainCameraInfo):this.mainCameraInfo=e}),(0,s._)(this,"setCameraInfoList",e=>{"function"==typeof e?this.cameraInfoList=e(this.cameraInfoList):this.cameraInfoList=e});this.makeObservable()}}var te=i("387722");class tt extends a.Z{constructor(){super(),(0,s._)(this,"participatedLotterys",[]),(0,s._)(this,"landingPageType","userMain"),(0,s._)(this,"currentLottery",{}),(0,s._)(this,"leftTimeFromShortTouch",0),(0,s._)(this,"candidateState",0),(0,s._)(this,"isFirstLoad",!0),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{landingPageType:l.observable,participatedLotterys:l.observable,currentLottery:l.observable,leftTimeFromShortTouch:l.observable,candidateState:l.observable,isFirstLoad:l.observable,setIsFirstLoad:l.action})}),(0,s._)(this,"setParticipatedLotterys",e=>this.participatedLotterys=e),(0,s._)(this,"setLandingPageType",e=>this.landingPageType=e),(0,s._)(this,"setCurrentLottery",e=>this.currentLottery=e),(0,s._)(this,"setLeftTimeFromShortTouch",e=>this.leftTimeFromShortTouch=e),(0,s._)(this,"setCandidateStat",e=>this.candidateState=e),(0,s._)(this,"setIsFirstLoad",e=>this.isFirstLoad=e);this.makeObservable()}}class ti extends a.Z{constructor(){super(),(0,s._)(this,"rechargeAuthStatus",!1),(0,s._)(this,"showGiftRechargeContainer",!1),(0,s._)(this,"remoteRechargeContainerRendered",!1),(0,s._)(this,"remoteRechargeContainerRenderedRef",{isRender:!1}),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{rechargeAuthStatus:l.observable,setRechargeAuthStatus:l.action,showGiftRechargeContainer:l.observable,setShowGiftRechargeContainer:l.action,remoteRechargeContainerRendered:l.observable,setRemoteRechargeContainerRendered:l.action})}),(0,s._)(this,"setRechargeAuthStatus",e=>this.rechargeAuthStatus=e),(0,s._)(this,"setShowGiftRechargeContainer",e=>this.showGiftRechargeContainer=e),(0,s._)(this,"setRemoteRechargeContainerRendered",e=>{this.remoteRechargeContainerRenderedRef.isRender=e,this.remoteRechargeContainerRendered=e});this.makeObservable()}}let to=["wish_list","revenue_gift_exhibition","fansclub"];class ts extends a.Z{constructor(){var e;super(),e=this,(0,s._)(this,"JSBInstance",null),(0,s._)(this,"bannerList",[]),(0,s._)(this,"currentLandPage",[]),(0,s._)(this,"messageListenList",[]),(0,s._)(this,"bannerKeys",{}),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{JSBInstance:l.observable,bannerList:l.observable,currentLandPage:l.observable,setJSBInstance:l.action,setBannerList:l.action,setCurrentLandPage:l.action,setMessageListenList:l.action,messageListenList:l.observable,bannerKeys:l.observable,setBannerKeys:l.action})}),(0,s._)(this,"setJSBInstance",e=>{this.JSBInstance=e}),(0,s._)(this,"setBannerList",e=>{this.bannerList=e}),(0,s._)(this,"setCurrentLandPage",function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t.length>0&&!i){let i=t[t.length-1],o=to.find(e=>i.indexOf(e)>=0);if(o){let i=t.filter(e=>e.indexOf(o)>=0);e.currentLandPage=i}else{let i=t.filter(e=>to.every(t=>0>e.indexOf(t)));e.currentLandPage=i}}else e.currentLandPage=t}),(0,s._)(this,"closeLandPage",e=>{let t=this.currentLandPage.findIndex(t=>t.indexOf(e)>=0);if(t>=0){let e=[...this.currentLandPage];e.splice(t,1),this.currentLandPage=e}}),(0,s._)(this,"_getGoldActLandUrl",e=>{let{giftId:t,anchorId:i,secAnchorId:o,userId:s,secUserId:n,roomId:r}=e,a=(0,y._)((0,_._)({request_page:"gift_banner"},t?{gift_id:t}:{}),{anchor_id:i,sec_anchor_id:o,user_id:s,sec_user_id:n,room_id:r,__isDouyinPC:"true"}),l=Object.keys(a).map(e=>`${e}=${a[e]}`).join("&");return"https://lf-webcast-gr-sourcecdn.bytegecko.com/obj/byte-gurd-source-gr/webcast/mono/h5/classic_gifts_position_douyin/pages/main/index.html?"+l}),(0,s._)(this,"setMessageListenList",e=>{this.messageListenList=e}),(0,s._)(this,"setBannerKeys",(e,t)=>{this.bannerKeys[e]=t});this.makeObservable()}}class tn extends a.Z{constructor(){super(),(0,s._)(this,"isFirstLoad",!0),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{isFirstLoad:l.observable,setIsFirstLoad:l.action})}),(0,s._)(this,"setIsFirstLoad",e=>this.isFirstLoad=e);this.makeObservable()}}class tr extends a.Z{constructor(){super(),(0,s._)(this,"cartVisible",!1),(0,s._)(this,"showAgreement",!1),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{showAgreement:l.observable,cartVisible:l.observable,setCartVisible:l.action,setShowAgreement:l.action})}),(0,s._)(this,"setCartVisible",e=>this.cartVisible=e),(0,s._)(this,"setShowAgreement",e=>this.showAgreement=e);this.makeObservable()}}class ta extends a.Z{setShowShare(e){this.showShare=e}setLeft(e){this.left=e}setTop(e){this.top=e}setHeight(e){this.height=e}setShareFrom(e){this.shareFrom=e}constructor(){super(),(0,s._)(this,"showShare",!1),(0,s._)(this,"left",void 0),(0,s._)(this,"top",void 0),(0,s._)(this,"height",void 0),(0,s._)(this,"shareFrom","lottery"),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{showShare:l.observable,left:l.observable,top:l.observable,height:l.observable,shareFrom:l.observable,setShowShare:l.action,setLeft:l.action,setTop:l.action,setHeight:l.action,setShareFrom:l.action})});this.makeObservable()}}class tl extends a.Z{setVipEmojiConfig(e){this.vipEmojiConfig=e}constructor(){super(),(0,s._)(this,"isVip",!1),(0,s._)(this,"isShowVipPanel",!1),(0,s._)(this,"vipEmojiConfig",null),(0,s._)(this,"emojiPanelRef",null),(0,s._)(this,"vipLiveStatus",""),(0,s._)(this,"vipInfoLoaded",!1),(0,s._)(this,"vipSource","icon"),(0,s._)(this,"showVipLiveBoundary",!1),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{isShowVipPanel:l.observable,vipEmojiConfig:l.observable,setIsShowVipPanel:l.action,setVipEmojiConfig:l.action,emojiPanelRef:l.observable,isVip:l.observable,setIsVip:l.action,vipLiveStatus:l.observable,setVipLiveStatus:l.action,vipInfoLoaded:l.observable,setVipInfoLoaded:l.action,vipSource:l.observable,showVipLiveBoundary:l.observable,setShowVipLiveBoundary:l.action})}),(0,s._)(this,"setShowVipLiveBoundary",e=>{this.showVipLiveBoundary=e}),(0,s._)(this,"setIsShowVipPanel",e=>{let{isShow:t,source:i}=e;this.isShowVipPanel=t,i&&t&&(this.vipSource=i)}),(0,s._)(this,"setIsVip",e=>this.isVip=e),(0,s._)(this,"setEmojiPanelRef",e=>{this.emojiPanelRef=e}),(0,s._)(this,"setVipLiveStatus",e=>this.vipLiveStatus=e),(0,s._)(this,"setVipInfoLoaded",e=>this.vipInfoLoaded=e);this.makeObservable()}}ea.a4.SUPPORT,ea.a4.LIGHT_GIFT;var tv={FANS_CLUB:"FANS_CLUB",GIFT_EXHIBITION:"GIFT_EXHIBITION",WISH_LIST:"WISH_LIST"};class t_ extends a.Z{makeObservable(){(0,l.makeObservable)(this,{giftExhibitionGuideStatus:l.observable,wishListGuideStatus:l.observable,giftExhibitionGuideVisible:l.observable,wishListGuideVisible:l.observable,leftGiftGuideShowType:l.computed,rightGiftGuideShowType:l.computed,rightGiftGuideVisible:l.computed,setGiftExhibitionGuideStatus:l.action,setWishListGuideStatus:l.action,setGiftExhibitionGuideVisible:l.action,setWishListGuideVisible:l.action})}get leftGiftGuideShowType(){return tv.FANS_CLUB}get rightGiftGuideShowType(){return this.giftExhibitionGuideStatus?tv.GIFT_EXHIBITION:tv.WISH_LIST}get rightGiftGuideVisible(){return this.giftExhibitionGuideVisible||this.wishListGuideVisible}constructor(){super(),(0,s._)(this,"giftExhibitionGuideStatus",!1),(0,s._)(this,"wishListGuideStatus",!1),(0,s._)(this,"giftExhibitionGuideVisible",!1),(0,s._)(this,"wishListGuideVisible",!1),(0,s._)(this,"setGiftExhibitionGuideStatus",e=>this.giftExhibitionGuideStatus=e),(0,s._)(this,"setWishListGuideStatus",e=>this.wishListGuideStatus=e),(0,s._)(this,"setGiftExhibitionGuideVisible",e=>this.giftExhibitionGuideVisible=e),(0,s._)(this,"setWishListGuideVisible",e=>this.wishListGuideVisible=e);this.makeObservable()}}class tm extends a.Z{makeObservable(){(0,l.makeObservable)(this,{errorPrompts:l.observable,logId:l.observable,status_code:l.observable,error:l.observable,errorPageMessage:l.observable,iframeConf:l.observable,messageFrom:l.observable,isSpider:l.observable,defaultMoreLeague:l.observable,defaultMatchStatsDetail:l.observable,defaultTagMatchInfo:l.observable,setDetailExtra:l.action,reset:l.action,inRoomError:l.observable,setInRoomError:l.action,setIframeConf:l.action})}constructor(){super(),(0,s._)(this,"errorPrompts",""),(0,s._)(this,"logId",""),(0,s._)(this,"status_code",""),(0,s._)(this,"error",void 0),(0,s._)(this,"errorPageMessage",!1),(0,s._)(this,"iframeConf",{}),(0,s._)(this,"messageFrom",""),(0,s._)(this,"isSpider",!1),(0,s._)(this,"defaultMoreLeague",[]),(0,s._)(this,"defaultMatchStatsDetail",{}),(0,s._)(this,"defaultTagMatchInfo",""),(0,s._)(this,"inRoomError",void 0),(0,s._)(this,"setIframeConf",e=>{this.iframeConf=e}),(0,s._)(this,"setInRoomError",e=>{this.inRoomError=e}),(0,s._)(this,"setDetailExtra",e=>{Object.keys(e).forEach(t=>{this[t]=e[t]})}),(0,s._)(this,"reset",()=>{this.errorPrompts="",this.logId="",this.status_code="",this.error=void 0,this.errorPageMessage=!1,this.iframeConf={},this.messageFrom="",this.isSpider=!1,this.defaultMoreLeague=[],this.defaultMatchStatsDetail={},this.defaultTagMatchInfo=""});this.makeObservable()}}var td=i("308245"),tc=i("973140");class tu extends a.Z{get isPanelShow(){return this.renderItemList.length>0}get isFramePanelShow(){return this.frameRenderItemList.length>0}get playerMargin(){return this.renderItemList.length>0&&this.frameRenderItemList.length<=0?this.width+8:this.renderItemList.length<=0&&this.frameRenderItemList.length>0?this.frameWidth+8:this.renderItemList.length>0&&this.frameRenderItemList.length>0?Math.max(this.width,this.frameWidth)+8:0}get infoBarMargin(){return this.frameRenderItemList.length>0?this.frameWidth+10:10}constructor(e){super(),(0,s._)(this,"itemList",[]),(0,s._)(this,"renderItemList",[]),(0,s._)(this,"rootEl",null),(0,s._)(this,"frameRootEl",null),(0,s._)(this,"width",375),(0,s._)(this,"frameWidth",0),(0,s._)(this,"frameItemList",[]),(0,s._)(this,"frameRenderItemList",[]),(0,s._)(this,"eventBus",void 0),(0,s._)(this,"itemClassName",void 0),(0,s._)(this,"frameItemClassName",void 0),(0,s._)(this,"operatingBarPluginIsShow",void 0),(0,s._)(this,"actStore",void 0),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{frameItemClassName:l.observable,itemClassName:l.observable,itemList:l.observable,renderItemList:l.observable,rootEl:l.observable,frameRootEl:l.observable,width:l.observable,frameItemList:l.observable,frameRenderItemList:l.observable,closePanel:l.action,closeFramePanel:l.action,isPanelShow:l.computed,isFramePanelShow:l.computed,closeItem:l.action,closeFrameItem:l.action,registerItem:l.action,registerFrameItem:l.action,unRegisterItem:l.action,unRegisterFrameItem:l.action,playerMargin:l.computed,isItemShow:l.action,isFrameItemShow:l.action,setRootEl:l.action,setFrameRootEl:l.action,setItemClassName:l.action,setFrameItemClassName:l.action,frameWidth:l.observable,setFrameWidth:l.action,infoBarMargin:l.computed,operatingBarPluginIsShow:l.observable,setOperatingBarPluginIsShow:l.action})}),(0,s._)(this,"setOperatingBarPluginIsShow",e=>{this.operatingBarPluginIsShow=e}),(0,s._)(this,"setFrameWidth",e=>{this.frameWidth=e}),(0,s._)(this,"itemIndex",e=>this.renderItemList.findIndex(t=>t.itemKey===e)),(0,s._)(this,"frameItemIndex",e=>this.frameRenderItemList.findIndex(t=>t.itemKey===e)),(0,s._)(this,"setItemClassName",e=>{this.itemClassName=e}),(0,s._)(this,"setFrameItemClassName",e=>{this.frameItemClassName=e}),(0,s._)(this,"setRootEl",e=>{this.rootEl=e}),(0,s._)(this,"setFrameRootEl",e=>{this.frameRootEl=e}),(0,s._)(this,"closePanel",()=>{this.renderItemList.forEach(e=>e.onClose&&e.onClose()),this.renderItemList=[]}),(0,s._)(this,"closeFramePanel",()=>{this.frameRenderItemList.forEach(e=>e.onClose&&e.onClose()),this.frameRenderItemList=[]}),(0,s._)(this,"isItemShow",e=>this.renderItemList.findIndex(t=>t.itemKey===e)>=0),(0,s._)(this,"isFrameItemShow",e=>this.frameRenderItemList.findIndex(t=>t.itemKey===e)>=0),(0,s._)(this,"closeItem",e=>{if(!this.renderItemList)return;let t=this.renderItemList.findIndex(t=>t.itemKey===e);t>=0&&(this.renderItemList.splice(t,1),this.renderItemList=[...this.renderItemList])}),(0,s._)(this,"closeFrameItem",e=>{let t=this.frameRenderItemList.findIndex(t=>t.itemKey===e);t>=0&&(this.frameRenderItemList.splice(t,1),this.frameRenderItemList=[...this.frameRenderItemList])}),(0,s._)(this,"registerItem",e=>{e.group=e.group||e.itemKey;let t=this.itemList.findIndex(t=>t.itemKey===e.itemKey);t<0?this.itemList.push(e):this.itemList[t]=e,this.itemList=[...this.itemList]}),(0,s._)(this,"registerFrameItem",e=>{e.group=e.group||e.itemKey;let t=this.frameItemList.findIndex(t=>t.itemKey===e.itemKey);t<0?this.frameItemList.push(e):this.frameItemList[t]=e,this.frameItemList=[...this.frameItemList]}),(0,s._)(this,"unRegisterItem",e=>{let t=this.itemList.findIndex(t=>t.itemKey===e);t>=0&&(this.itemList.splice(t,1),this.itemList=[...this.itemList]),this.closeItem(e)}),(0,s._)(this,"unRegisterFrameItem",e=>{let t=this.frameItemList.findIndex(t=>t.itemKey===e);t>=0&&(this.frameItemList.splice(t,1),this.frameItemList=[...this.frameItemList]),this.closeFrameItem(e)}),(0,s._)(this,"openItem",e=>{let t=this.itemList.find(t=>t.itemKey===e);if(t&&t.group!==td.k.ACTIndicatorGroup){var i;null===(i=this.actStore)||void 0===i||i.setCurrentLandPage([])}if(!t)return;if(0===this.renderItemList.length){this.renderItemList=[t];return}if(this.renderItemList[0].group!==t.group){let e=this.renderItemList;this.renderItemList=[t],null==e||e.forEach(e=>e.onClose&&e.onClose());return}let o=this.renderItemList.findIndex(e=>e.itemKey===t.itemKey);if(o<0){this.renderItemList=[...this.renderItemList,t];return}if(o===this.renderItemList.length-1){let e=this.renderItemList[o];this.renderItemList.splice(o,1),this.renderItemList=[...this.renderItemList],e.onClose&&e.onClose();return}this.renderItemList.splice(o,1),this.renderItemList=[...this.renderItemList,t]}),(0,s._)(this,"openFrameItem",e=>{let t=this.frameItemList.find(t=>t.itemKey===e);if(!t)return;if(0===this.frameRenderItemList.length){this.frameRenderItemList=[t];return}if(this.frameRenderItemList[0].group!==t.group){let e=this.frameRenderItemList;this.frameRenderItemList=[t],null==e||e.forEach(e=>e.onClose&&e.onClose());return}let i=this.frameRenderItemList.findIndex(e=>e.itemKey===t.itemKey);if(i<0){this.frameRenderItemList=[...this.frameRenderItemList,t];return}if(0===i){let e=this.frameRenderItemList[i];this.frameRenderItemList.splice(i,1),this.frameRenderItemList=[...this.frameRenderItemList],e.onClose&&e.onClose();return}this.frameRenderItemList.splice(i,1),this.frameRenderItemList=[...this.frameRenderItemList,t]}),this.eventBus=new tc.N,this.actStore=e;this.makeObservable()}}var th=i("259808");class tg extends a.Z{get screenMode(){return this.isFullScreen?et.wq.FULL_SCREEN:this.isTheaterOn?et.wq.THEATER:et.wq.NORMAL}constructor(){super(),(0,s._)(this,"isTheaterOn",!1),(0,s._)(this,"isFullScreen",!1),(0,s._)(this,"isPause",!1),(0,s._)(this,"playerInstance",null),(0,s._)(this,"playerLoggerInstance",null),(0,s._)(this,"isPlayed",!1),(0,s._)(this,"loggerOptions",{}),(0,s._)(this,"isPlay",0),(0,s._)(this,"isLoadedData",!1),(0,s._)(this,"fullscreenTarget",null),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{isTheaterOn:l.observable,isFullScreen:l.observable,isPause:l.observable,playerInstance:l.observable,playerLoggerInstance:l.observable,setPlayerInstance:l.action,setPlayerLoggerInstance:l.action,setIsTheaterOn:l.action,setIsFullScreen:l.action,setIsPause:l.action,setIsPlayed:l.action,isPlayed:l.observable,screenMode:l.computed,loggerOptions:l.observable,setLoggerOptions:l.action,isPlay:l.observable,setIsPlay:l.action,isLoadedData:l.observable,setIsLoadedData:l.action,fullscreenTarget:l.observable,setFullScreenTarget:l.action})}),(0,s._)(this,"setFullScreenTarget",e=>{this.fullscreenTarget=e}),(0,s._)(this,"setIsLoadedData",e=>{this.isLoadedData=e}),(0,s._)(this,"setIsPlay",e=>{this.isPlay=e}),(0,s._)(this,"setLoggerOptions",e=>{this.loggerOptions=e}),(0,s._)(this,"setIsPlayed",e=>{this.isPlayed=e}),(0,s._)(this,"setPlayerInstance",e=>{this.playerInstance=e}),(0,s._)(this,"setPlayerLoggerInstance",e=>{this.playerLoggerInstance=e}),(0,s._)(this,"setIsTheaterOn",e=>{this.isTheaterOn=e}),(0,s._)(this,"setIsFullScreen",e=>{this.isFullScreen=e}),(0,s._)(this,"setIsPause",e=>{this.isPause=e});this.makeObservable(),(0,l.reaction)(()=>this.isTheaterOn,(e,t)=>{t&&!e&&((0,th.q)("ISLAND_SYNC_HEADER"),(0,th.q)("ISLAND_LAYOUT_NAVIGATION"))})}}class tE extends a.Z{constructor(){super(),(0,s._)(this,"showChat",!1),(0,s._)(this,"isDanmakuFeatureOn",!0),(0,s._)(this,"onSend",{current:()=>{}}),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{showChat:l.observable,setShowChat:l.action,isDanmakuFeatureOn:l.observable,setIsDanmakuFeatureOn:l.action})}),(0,s._)(this,"setIsDanmakuFeatureOn",e=>{this.isDanmakuFeatureOn=e}),(0,s._)(this,"setShowChat",e=>{this.showChat=e}),(0,s._)(this,"setOnSend",e=>{this.onSend.current=e});this.makeObservable()}}class tp extends a.Z{get isUseMutiCamera(){return!!this.isMutiVr&&this.isInVrView}get isMutiVr(){var e,t,i,o,s,n,r,a,l,v;return 0===Number(null===(o=this.store)||void 0===o?void 0:null===(i=o.roomStore)||void 0===i?void 0:null===(t=i.roomInfo)||void 0===t?void 0:null===(e=t.roomExtra)||void 0===e?void 0:e.vr_type)&&(null===(v=this.store)||void 0===v?void 0:null===(l=v.roomStore)||void 0===l?void 0:null===(a=l.roomInfo)||void 0===a?void 0:null===(r=a.room)||void 0===r?void 0:null===(n=r.pico_info)||void 0===n?void 0:null===(s=n.multi_stream_info)||void 0===s?void 0:s.multi_stream_scene)==="multi_camera"}get isVrLive(){var e,t,i,o;let s=Number(null===(o=this.store)||void 0===o?void 0:null===(i=o.roomStore)||void 0===i?void 0:null===(t=i.roomInfo)||void 0===t?void 0:null===(e=t.roomExtra)||void 0===e?void 0:e.vr_type);return 1===s||2===s||this.isMutiVr}get vr_type(){var e,t,i,o;let s=Number(null===(o=this.store)||void 0===o?void 0:null===(i=o.roomStore)||void 0===i?void 0:null===(t=i.roomInfo)||void 0===t?void 0:null===(e=t.roomExtra)||void 0===e?void 0:e.vr_type);return isNaN(s)?0:s}get is_vr_machine(){return this.isVrLive?this.isMutiVr?this.isInVrView?1:0:1:0}get is_host_camera(){return this.isMutiVr?this.isInVrView?0:1:1}get is_multi_camera_mode_on(){return this.isMutiVr?1:0}get is_original_vr(){return this.isMutiVr?0:1}get gyroscope_state(){return this.isStableView?"off":"on"}get anchorClientInfo(){var e,t,i,o,s,n,r;let a=null===(r=this.store)||void 0===r?void 0:null===(n=r.roomStore)||void 0===n?void 0:null===(s=n.roomInfo)||void 0===s?void 0:null===(o=s.room)||void 0===o?void 0:null===(i=o.stream_url)||void 0===i?void 0:null===(t=i.extra)||void 0===t?void 0:null===(e=t.anchor_client_info)||void 0===e?void 0:e.custom_info;try{let e=JSON.parse(a);return{projectionType:(null==e?void 0:e.projection_model)||"ERP",three180:null==e||!e.viewing_angle||180===Number(null==e?void 0:e.viewing_angle)}}catch(e){return{projectionType:"ERP",three180:!0}}}getCommonEventParams(){return{is_original_vr:this.is_original_vr,is_multi_camera_mode_on:this.is_multi_camera_mode_on,is_host_camera:this.is_host_camera,is_vr_machine:this.is_vr_machine,vr_type:this.vr_type}}constructor(e){super(),(0,s._)(this,"isStableView",!1),(0,s._)(this,"isImmersive",!1),(0,s._)(this,"isInVrView",!1),(0,s._)(this,"store",void 0),(0,s._)(this,"vrRotate",0),(0,s._)(this,"resetView",0),(0,s._)(this,"makeObservable",()=>{(0,l.makeObservable)(this,{isVrLive:l.computed,isStableView:l.observable,setIsStableView:l.action,isImmersive:l.observable,setIsImmersive:l.action,isInVrView:l.observable,setIsInVrView:l.action,isMutiVr:l.computed,vr_type:l.computed,is_vr_machine:l.computed,is_host_camera:l.computed,is_multi_camera_mode_on:l.computed,is_original_vr:l.computed,vrRotate:l.observable,resetView:l.observable,setVrRotate:l.action})}),(0,s._)(this,"setResetView",()=>{this.resetView=this.resetView+1}),(0,s._)(this,"setVrRotate",e=>{this.vrRotate=e}),(0,s._)(this,"setIsInVrView",e=>{this.isInVrView=e}),(0,s._)(this,"setIsImmersive",e=>{this.isImmersive=e}),(0,s._)(this,"setIsStableView",e=>{this.isStableView=e});this.makeObservable(),this.store=e}}class tS extends a.Z{makeObservable(){(0,l.makeObservable)(this,{engine:l.observable,setEngine:l.action,rtcConfig:l.observable,setRtcConfig:l.action,isForwardingStream:l.observable,setIsForwardingStream:l.action})}constructor(...e){super(...e),(0,s._)(this,"engine",null),(0,s._)(this,"rtcConfig",null),(0,s._)(this,"isForwardingStream",!1),(0,s._)(this,"setEngine",e=>{this.engine=e}),(0,s._)(this,"setRtcConfig",e=>{this.rtcConfig=e}),(0,s._)(this,"setIsForwardingStream",e=>{this.isForwardingStream=e}),(0,s._)(this,"resetStore",()=>{this.engine=null,this.rtcConfig=null,this.isForwardingStream=!1})}}(0,r.DT)(n.s);let tP=["appStore","userStore","homeStore","roomStore","layoutStore","streamStore","cameraStore","paidLiveStore","detailExtra"];class tf{constructor(){(0,s._)(this,"appStore",new b),(0,s._)(this,"userStore",new v),(0,s._)(this,"homeStore",new w),(0,s._)(this,"roomStore",new f(this)),(0,s._)(this,"linkmicStore",new k.ZP(this)),(0,s._)(this,"giftStore",new R),(0,s._)(this,"propStore",new O),(0,s._)(this,"pkStore",new M),(0,s._)(this,"audienceStore",new U),(0,s._)(this,"fansClubStore",new N),(0,s._)(this,"layoutStore",new V.Z),(0,s._)(this,"streamStore",new D),(0,s._)(this,"cameraStore",new e7),(0,s._)(this,"hourRankListStore",new F),(0,s._)(this,"feedStore",new B),(0,s._)(this,"singletonStore",new H),(0,s._)(this,"hybridStore",new x),(0,s._)(this,"eventStore",new e9(this)),(0,s._)(this,"paidLiveStore",new te.ZP),(0,s._)(this,"lotteryStore",new tt),(0,s._)(this,"rechargeStore",new ti),(0,s._)(this,"ecomStore",new tr),(0,s._)(this,"activityIndicatorStore",new ts),(0,s._)(this,"redpacketStore",new tn),(0,s._)(this,"shareStore",new ta),(0,s._)(this,"vipStore",new tl),(0,s._)(this,"giftGuideStore",new t_),(0,s._)(this,"detailExtra",new tm),(0,s._)(this,"rightPanelStore",new tu(this.activityIndicatorStore)),(0,s._)(this,"playerStore",new tg),(0,s._)(this,"chatStore",new tE),(0,s._)(this,"vrStore",new tp(this)),(0,s._)(this,"rtcStore",new tS(this)),(0,s._)(this,"hydrate",e=>{tP.forEach(t=>{this[t].hydrate(e[t])})}),(0,s._)(this,"reset",e=>{var t,i;Object.entries(this).filter(e=>{let[t]=e;return/Store$/.test(t)}).filter(t=>{let[i]=t;return!Array.isArray(e)||e.indexOf(i)>=0}).forEach(e=>{let[t,i]=e;(null==i?void 0:i.reset)&&(null==i||i.reset()),(null==i?void 0:i.resetStore)&&(null==i||i.resetStore())}),(null===(t=this.detailExtra)||void 0===t?void 0:t.reset)&&(null===(i=this.detailExtra)||void 0===i||i.reset())})}}function tb(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){let e=new tf;return!n.s&&(window.__STORE__=e),e}let i=null!=o?o:new tf;return(Object.keys(e).length&&i.hydrate(e),n.s)?i:(window.__STORE__=i,!o&&(o=i),i)}},494857:function(e,t,i){i.d(t,{Fk:function(){return k},SH:function(){return y},ZP:function(){return T},cK:function(){return C},g3:function(){return I},uH:function(){return A},xQ:function(){return L}});var o=i(480333),s=i(629686),n=i(402748);i(490629),i(706056),i(374954),i(362051),i(932651);var r=i(201821),a=i(997288),l=i(825795),v=i(864312),_=i(67868),m=i(950257),d=i(396868),c=i(731343),u=i(22496),h=i(762080),g=i(886363),E=i(336788),p=i(484002),S=i(156674),P=i.n(S),f=i(684864),b=i(907208);let w=e=>e?(0,b.ps)((0,s._)({},e)):e,k=(()=>{let e={};return[...Array(9)].forEach((t,i)=>{e[i]={idx:i}}),e})(),y=(e,t)=>!!Array.isArray(t)&&!!(t.length>0)||e===m.yP.VIDEO_6V6;var C={NOT_LINK:0,0:"NOT_LINK",LINKING:1,1:"LINKING",LINKED:2,2:"LINKED"},I={APPLYING:0,0:"APPLYING",TRUE:1,1:"TRUE",FALSE:2,2:"FALSE"},L={ENABLE_VIDEO:0,0:"ENABLE_VIDEO",ENABLE_AUDIO:1,1:"ENABLE_AUDIO",APPLY:2,2:"APPLY",HIDE:3,3:"HIDE",GROUP_CHOISE:4,4:"GROUP_CHOISE",INVITE_OPEN_CAMERA:5,5:"INVITE_OPEN_CAMERA",INVITE_LINK:6,6:"INVITE_LINK"},A={NONE:0,0:"NONE",ORDER_SING:1,1:"ORDER_SING",SELECT_GUEST:2,2:"SELECT_GUEST"};let R={[typeof a.V0]:void 0,[a.V0.LinkmicPlayMode_OrderSing]:[m.yP.AUDIO_1V8_STAGE,m.yP.AUDIO_1V8,m.yP.AUDIO_GRID,m.yP.VIDEO_DYNAMIC,m.yP.VIDEO_1V6,m.yP.VIDEO_1V8,m.yP.VIDEO_GRID,m.yP.VIDEO_1_V_8,m.yP.VIDEO_1_V_3,m.yP.VIDEO_1_V_6,m.yP.VIDEO_DYNAMIC_FLOAT,m.yP.AUDIO_DOUBLE_C],[a.V0.LinkmicPlayMode_Teamfight]:[m.yP.AUDIO_1V8,m.yP.AUDIO_1V8_STAGE,m.yP.VIDEO_1V8,m.yP.VIDEO_2V4V4],[a.V0.LinkmicPlayMode_DynamicLayout]:[m.yP.VIDEO_DYNAMIC],[a.V0.LinkmicPlayMode_GuestBattle]:[m.yP.VIDEO_1V8],[a.V0.LinkmicPlayMode_KTVSingingChallenge]:[m.yP.VIDEO_1V8],[a.V0.LinkmicPlayMode_NormalPaidLinkmic]:[m.yP.VIDEO_1V8]};class T extends r.Z{makeObservable(){(0,c.makeObservable)(this,{sceneNum:c.observable,setSceneNum:c.action,linkMicConfig:c.observable,imLinkMicSeats:c.observable,seiLinkMicSeats:c.observable,linkMicSeats:c.computed,linkMicSeatsRaw:c.computed,setImLinkMicSeats:c.action,setSeiLinkMicSeats:c.action,imLinkMicLayout:c.observable,seiLinkMicLayout:c.observable,uiLayout:c.observable,linkMicLayout:c.computed,setImLinkMicLayout:c.action,setSeiLinkMicLayout:c.action,setUiLayout:c.action,seiPosition:c.observable,teamfightInfo:c.computed,imTeamfightInfo:c.observable,seiTeamFightInfo:c.observable,setTeamfightInfo:c.action,guestBattleInfo:c.observable,setGuestBattleInfo:c.action,eggModeInfo:c.observable,setEggModeInfo:c.action,playModes:c.observable,setPlayModes:c.action,setPlayModesByConfig:c.action,playModesPC:c.computed,orderSingInfo:c.observable,setOrderSingInfo:c.action,orderSingUserScore:c.observable,setOrderSingUserScore:c.action,orderSingBannerData:c.observable,setOrderSingBannerData:c.action,orderSingSortRule:c.observable,setOrderSingSortRule:c.action,choosePeopleArr:c.observable,selectedGiftWebcastUid:c.observable,setChoosePeopleArr:c.action,setSelectedGiftWebcastUid:c.action,choosePeopleAll:c.observable,setChoosePeopleAll:c.action,choosePanelVisible:c.observable,setChoosePanelVisible:c.action,allowSendGiftGuest:c.computed,choosePeopleShowTCC:c.observable,setChoosePeopleShowTCC:c.action,useChoosePeopleFunc:c.computed,enlargeSeatApplyUid:c.observable,enlargeSeatImage:c.observable,enlargeGuestType:c.observable,functionType2:c.observable,otherRoomLinkSilenceStatus:c.observable,rankListShow:c.observable,showHonorStation:c.observable,honorUser:c.observable,rankParam:c.observable,seatInfoListShow:c.observable,seatInfoParam:c.observable,selectedLinkMicDevices:c.observable,linkStatus:c.observable,devicesModalMode:c.observable,selectedPosition:c.observable,userPopupCoordinate:c.observable,audioPermission:c.observable,videoPermission:c.observable,isFansGuide:c.observable,isCandidate:c.observable,selfLinkedPosition:c.observable,selfLinkMicId:c.observable,isPlayModeNotSupport:c.observable,floatModal:c.observable,liveRoomMode:c.observable,selfLinkInfo:c.computed,linkRoomType:c.computed,linkRoomTypeHooks:c.computed,isLinkRoom:c.computed,isDefaultOpenVideo:c.computed,isAllowVideo:c.computed,setFunctionType2:c.action,setLinkMicConfig:c.action,setOtherRoomLinkSilenceStatus:c.action,setRankListShow:c.action,setShowHonorStation:c.action,setHonorUser:c.action,setRankParam:c.action,setSeatInfoListShow:c.action,setSeatInfoParam:c.action,setDevices:c.action,setShowDevicesModal:c.action,setUserPopupCoordinate:c.action,setEnlargeSeatApplyUid:c.action,setAudioPermission:c.action,setVideoPermission:c.action,setSelfLinkMicId:c.action,setSelectedPosition:c.action,setIsFansGuide:c.action,setIsCandidate:c.action,resetStore:c.action,setSelfLinkedPosition:c.action,setIsPlayModeNotSupport:c.action,setFloatModal:c.action,dressListInfo:c.observable,setDressListInfo:c.action,showLinkMicApplyModal:c.observable,setShowLinkMicApplyModal:c.action,devicesModalCountDown:c.observable,setDevicesModalCountDown:c.action,inviteFromUserId:c.observable,setInviteFromUserId:c.action,linkmicModalSettings:c.observable,setLinkmicModalSettings:c.action,guestBattleSettingsShow:c.observable,setGuestBattleSettingsShow:c.action,setLinkMicSettings:c.action,dressMvpInfo:c.observable,setDressMvpInfo:c.action,dressListAll:c.observable,setDressListAll:c.action,layoutBackgroundImg:c.observable,layoutConfig:c.observable,isAgcAnchor:c.observable,setAgcAnchor:c.action,choosePeopleList:c.observable,setChoosePeopleList:c.action,faceRecognitionShow:c.observable,setFaceRecognitionShow:c.action,groupLiveMemberList:c.observable,setGroupLiveMemberList:c.action,isGroupLive:c.observable,setIsGroupLive:c.action,doubleCEnlarge:c.observable,setDoubleCEnlarge:c.action,setEnlargeSeatImage:c.action,setEnlargeGuestType:c.action,setLayoutConfig:c.action,setLayoutBackgroundImg:c.action,isCrossLink:c.observable,setIsCrossLink:c.action,crossLinkTimerStart:c.observable,setCrossLinkTimerStart:c.action,roomBattleType:c.observable,setRoomBattleType:c.action,openUiLayout:c.observable,lastOpenUiLayout:c.observable,setOpenUiLayout:c.action,changeVideoDevice:c.observable,setChangeVideoDevice:c.action,isGroupFight:c.computed,isGuestBattle:c.computed,asrSubtitle:c.observable,setAsrSubtitle:c.action,lastLayout:c.observable,setLastLayout:c.action,showGiftInfo:c.observable,setShowGiftInfo:c.action,linkmicVideoEqualLayoutFrameOpt:c.observable,setLinkmicVideoEqualLayoutFrameOpt:c.action,isPaidLinking:c.computed,groupLiveComponents:c.observable,setGroupLiveComponents:c.action,groupliveProfileSlot:c.observable,setGroupliveProfileSlot:c.action,isNewVideoLinkmicRoom:c.observable,setIsNewVideoLinkmicRoom:c.action,newSeiContent:c.observable,setNewSeiContent:c.action,seiDiffKey:c.observable,setSeiDiffKey:c.action,pkScoreBarInfo:c.observable,setPkScoreBarInfo:c.action,resetPkScoreBarInfo:c.action,sprintChallengeBarInfo:c.observable,setSprintChallengeBarInfo:c.action,resetSprintChallengeBarInfo:c.action,hasScoreBar:c.observable,setHasScoreBar:c.action,scoreBarHeight:c.observable,setScoreBarHeight:c.action,allDevices:c.observable,audioInputs:c.observable,videoInputs:c.observable,setAllDevices:c.action})}get isPaidLinking(){return this.playModes.includes(a.V0.LinkmicPlayMode_NormalPaidLinkmic)}get useNewLinkMicRender(){return f.dr.includes(Number(this.uiLayout))}get linkRoomTypeHooks(){return this.getLinkRoomType(this.imLinkMicLayout)||this.getLinkRoomType(this.seiLinkMicLayout)}get isLinked(){return 2===this.linkStatus}get linkRoomType(){return this.getLinkRoomType(this.linkMicLayout)}get hasImSeatUsers(){return P()(this.imLinkMicSeats).some(e=>!!(null==e?void 0:e.user))}get shouldUseImCrossRoomAudioSeats(){return"audio"===this.linkRoomType&&this.linkMicLayout===m.yP.VIDEO_6V6&&this.hasImSeatUsers}get linkMicLayout(){return 2===this.linkStatus?this.imLinkMicLayout:(this.seiLinkMicLayout===m.yP.AUDIO_1V8||this.seiLinkMicLayout===m.yP.AUDIO_1V8_STAGE||this.seiLinkMicLayout===m.yP.AUDIO_GRID)&&(this.imLinkMicLayout===m.yP.AUDIO_1V8||this.imLinkMicLayout===m.yP.AUDIO_1V8_STAGE||this.imLinkMicLayout===m.yP.AUDIO_GRID||this.imLinkMicLayout===m.yP.VIDEO_6V6||this.imLinkMicLayout===m.yP.AUDIO_DOUBLE_C)?this.imLinkMicLayout:this.seiLinkMicLayout}get isSing(){var e,t;return null===(t=this.orderSingInfo)||void 0===t?void 0:null===(e=t.user_microphone_list)||void 0===e?void 0:e.some(e=>!!(null==e?void 0:e.is_singing))}get enlargedSeatPostion(){let e=2===this.linkStatus||this.shouldUseImCrossRoomAudioSeats?this.imLinkMicSeats:this.seiLinkMicSeats;return(0,p.ut)(e)}get hasEnlargedSeat(){return -1!==this.enlargedSeatPostion}get linkMicSeatsRaw(){return 2===this.linkStatus||this.shouldUseImCrossRoomAudioSeats?this.imLinkMicSeats:this.seiLinkMicSeats}get linkMicSeats(){let e=2===this.linkStatus||this.shouldUseImCrossRoomAudioSeats?this.imLinkMicSeats:this.seiLinkMicSeats;return void 0!==this.linkMicLayout&&[m.yP.VIDEO_T1_V_B8,m.yP.VIDEO_6V6].includes(this.linkMicLayout)?e:(0,p.Qx)(e)}get isGuestBattle(){var e,t,i;return!!(null===(e=this.guestBattleInfo)||void 0===e?void 0:e.battle_id_str)&&Number(null===(t=this.guestBattleInfo)||void 0===t?void 0:t.status)!==_.NqB.GuestBattle_NONE&&Number(null===(i=this.guestBattleInfo)||void 0===i?void 0:i.status)!==_.NqB.GuestBattle_FINISH}get isGroupFight(){var e,t,i;return(null===(e=this.teamfightInfo)||void 0===e?void 0:e.type)===_.ywC.LinkmicTeamfightType_TWO_TEAM&&(null===(t=this.teamfightInfo)||void 0===t?void 0:t.status)!==_.Hj2.LinkmicTeamfightStatus_FINISHED&&(null===(i=this.teamfightInfo)||void 0===i?void 0:i.status)!==_.Hj2.LinkmicTeamfightStatus_NONE}get teamfightInfo(){return 2===this.linkStatus?this.imTeamfightInfo:this.seiTeamFightInfo}get isLinkRoom(){return void 0!==this.linkMicLayout}get isDefaultOpenVideo(){return this.linkMicConfig.config[l.V9.AU_BigPartyAudienceDefaultOpenVideo]===l.q2.OPEN}get isAllowVideo(){return this.linkMicConfig.config[l.V9.AU_BigPartyAllowAudienceOpenVideo]===l.q2.OPEN}get selfLinkInfo(){if(void 0!==this.selfLinkedPosition)return this.linkMicSeats[this.selfLinkedPosition]}get playModesPC(){let e=[];return this.playModes.forEach(t=>{let i=R[t];void 0!==this.linkMicLayout&&i&&(null==i?void 0:i.includes(this.linkMicLayout))&&e.push(t)}),e}get allowSendGiftGuest(){var e,t,i,o;return this.linkMicLayout===m.yP.VIDEO_DYNAMIC_FLOAT||("video"===this.linkRoomTypeHooks?(null===(t=this.linkMicConfig)||void 0===t?void 0:null===(e=t.config)||void 0===e?void 0:e[l.V9.AU_BigPartyGuestCanAcceptGift])===l.q2.OPEN:"audio"===this.linkRoomTypeHooks&&(null===(o=this.linkMicConfig)||void 0===o?void 0:null===(i=o.config)||void 0===i?void 0:i[l.V9.AU_AudioChatGuestCanAcceptGift])===l.q2.OPEN)}get useChoosePeopleFunc(){var e,t,i,o;if("audio"===this.linkRoomTypeHooks||"video"===this.linkRoomTypeHooks){if(this.choosePeopleShowTCC&&this.allowSendGiftGuest&&(null!==(o=null===(i=this.choosePeopleArr)||void 0===i?void 0:i.length)&&void 0!==o?o:0)>0)return!0}else if(this.isGroupLive&&(null!==(t=null===(e=this.choosePeopleArr)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0)return!0;return!1}constructor(e){super(),(0,o._)(this,"store",void 0),(0,o._)(this,"linkMicConfig",{config:{}}),(0,o._)(this,"otherRoomLinkSilenceStatus",void 0),(0,o._)(this,"imLinkMicSeats",(0,s._)({},k)),(0,o._)(this,"seiLinkMicSeats",(0,s._)({},k)),(0,o._)(this,"imLinkMicLayout",void 0),(0,o._)(this,"seiLinkMicLayout",void 0),(0,o._)(this,"uiLayout",void 0),(0,o._)(this,"seiPosition",void 0),(0,o._)(this,"playModes",[]),(0,o._)(this,"orderSingInfo",void 0),(0,o._)(this,"orderSingUserScore",void 0),(0,o._)(this,"orderSingBannerData",void 0),(0,o._)(this,"orderSingSortRule",v.jQ.OrderSingGiftRule),(0,o._)(this,"choosePeopleArr",[]),(0,o._)(this,"selectedGiftWebcastUid",""),(0,o._)(this,"choosePeopleAll",!1),(0,o._)(this,"choosePanelVisible",!1),(0,o._)(this,"choosePeopleShowTCC",!1),(0,o._)(this,"choosePeopleList",{}),(0,o._)(this,"functionType2",""),(0,o._)(this,"imTeamfightInfo",void 0),(0,o._)(this,"seiTeamFightInfo",void 0),(0,o._)(this,"guestBattleInfo",void 0),(0,o._)(this,"eggModeInfo",void 0),(0,o._)(this,"rankListShow",!1),(0,o._)(this,"rankParam",void 0),(0,o._)(this,"liveRoomMode",void 0),(0,o._)(this,"showHonorStation",!1),(0,o._)(this,"honorUser",void 0),(0,o._)(this,"seatInfoListShow",!1),(0,o._)(this,"seatInfoParam",void 0),(0,o._)(this,"scene",void 0),(0,o._)(this,"sceneNum",void 0),(0,o._)(this,"selectedLinkMicDevices",{}),(0,o._)(this,"linkStatus",0),(0,o._)(this,"devicesModalMode",3),(0,o._)(this,"applySource",u.JW.NONE),(0,o._)(this,"audioPermission",0),(0,o._)(this,"videoPermission",0),(0,o._)(this,"selectedPosition",void 0),(0,o._)(this,"userPopupCoordinate",void 0),(0,o._)(this,"isFansGuide",!1),(0,o._)(this,"isCandidate",!1),(0,o._)(this,"linkmicModalSettings",{show:!1}),(0,o._)(this,"guestBattleSettingsShow",!1),(0,o._)(this,"selfLinkedPosition",void 0),(0,o._)(this,"selfLinkMicId",void 0),(0,o._)(this,"isPlayModeNotSupport",!1),(0,o._)(this,"floatModal",0),(0,o._)(this,"dressListInfo",{}),(0,o._)(this,"showLinkMicApplyModal",!1),(0,o._)(this,"devicesModalCountDown",0),(0,o._)(this,"allDevices",[]),(0,o._)(this,"audioInputs",[]),(0,o._)(this,"videoInputs",[]),(0,o._)(this,"enlargeSeatApplyUid",null),(0,o._)(this,"enlargeSeatImage",""),(0,o._)(this,"enlargeGuestType",0),(0,o._)(this,"inviteFromUserId",""),(0,o._)(this,"dressMvpInfo",{}),(0,o._)(this,"dressListAll",[]),(0,o._)(this,"layoutBackgroundImg",""),(0,o._)(this,"layoutConfig",void 0),(0,o._)(this,"isAgcAnchor",!1),(0,o._)(this,"faceRecognitionShow",!1),(0,o._)(this,"groupLiveMemberList",void 0),(0,o._)(this,"isGroupLive",0),(0,o._)(this,"doubleCEnlarge",{showType:"",uid:void 0}),(0,o._)(this,"isCrossLink",!1),(0,o._)(this,"roomBattleType","pk"),(0,o._)(this,"crossLinkTimerStart",0),(0,o._)(this,"openUiLayout",void 0),(0,o._)(this,"lastOpenUiLayout",void 0),(0,o._)(this,"changeVideoDevice",{}),(0,o._)(this,"groupLiveComponents",[]),(0,o._)(this,"groupliveProfileSlot",null),(0,o._)(this,"asrSubtitle",{isOpen:!1,type:1}),(0,o._)(this,"openAudioSubtitle",!1),(0,o._)(this,"subtitleType",void 0),(0,o._)(this,"lastLayout",void 0),(0,o._)(this,"showGiftInfo",!1),(0,o._)(this,"linkmicVideoEqualLayoutFrameOpt","0"),(0,o._)(this,"isNewVideoLinkmicRoom",!1),(0,o._)(this,"newSeiContent",null),(0,o._)(this,"seiDiffKey",null),(0,o._)(this,"pkScoreBarInfo",{finishTime:0,teamInfos:[],pkScores:void 0,type:void 0,status:void 0,teamfightId:void 0,title:void 0,themeTitle:void 0,titleIcon:void 0,playId:void 0,gift:void 0}),(0,o._)(this,"sprintChallengeBarInfo",{status:void 0,totalScore:0,targetScore:0,finishTime:0,isAutomatic:!1,scoreStr:"",scoreFuzzyStr:"",contributorIds:[],increasedScore:void 0,eventTime:void 0,playerId:void 0,playId:void 0}),(0,o._)(this,"hasScoreBar",!1),(0,o._)(this,"scoreBarHeight",0),(0,o._)(this,"setGroupLiveComponents",e=>{this.groupLiveComponents=e}),(0,o._)(this,"setGroupliveProfileSlot",e=>{this.groupliveProfileSlot=e}),(0,o._)(this,"setGroupLiveMemberList",e=>{this.groupLiveMemberList=(e||[]).map(e=>(0,n._)((0,s._)({},e),{user:w(e.user)}))}),(0,o._)(this,"setIsGroupLive",e=>{this.isGroupLive=e}),(0,o._)(this,"setLinkmicModalSettings",e=>{this.linkmicModalSettings=e}),(0,o._)(this,"setGuestBattleSettingsShow",e=>{this.guestBattleSettingsShow=e}),(0,o._)(this,"getLinkRoomType",e=>{if(e===m.yP.AUDIO_1V8||e===m.yP.AUDIO_1V8_STAGE||e===m.yP.AUDIO_GRID||e===m.yP.MATE_CUSTOM||e===m.yP.AUDIO_DOUBLE_C)return"audio";if(e===m.yP.VIDEO_DYNAMIC||e===m.yP.VIDEO_1V6||e===m.yP.VIDEO_GRID||e===m.yP.VIDEO_1_V_8||e===m.yP.VIDEO_1_V_6||e===m.yP.VIDEO_1_V_3||e===m.yP.VIDEO_DYNAMIC_FLOAT||e===m.yP.VIDEO_T1_V_B8||e===m.yP.VIDEO_1V8||e===m.yP.VIDEO_2V4V4||e===m.yP.Fixed_1V6||e===m.yP.Fixed_1V8||e===m.yP.CrossLink_6V6||e===m.yP.CrossLink_1V6||e===m.yP.CrossLink_6V1||e===m.yP.CrossLink_1V1)return"video";if(e===m.yP.VIDEO_6V6)return this.liveRoomMode===h.ke.AUDIO?"audio":"video";if(void 0===e&&"new_audience"===this.functionType2||this.isNewVideoLinkmicRoom)return"video"}),(0,o._)(this,"setChoosePeopleArr",e=>{var t,i,o,s;this.choosePeopleArr&&(null===(t=this.choosePeopleArr)||void 0===t?void 0:t.length)>0&&localStorage.setItem(`linkmic-last-choose-people-${null===(s=this.store)||void 0===s?void 0:null===(o=s.roomStore)||void 0===o?void 0:null===(i=o.roomInfo)||void 0===i?void 0:i.roomId}`,JSON.stringify(e)),this.choosePeopleArr=e,this.selectedGiftWebcastUid=""}),(0,o._)(this,"setSelectedGiftWebcastUid",e=>{this.selectedGiftWebcastUid=e}),(0,o._)(this,"setChoosePeopleAll",e=>{var t,i,o;this.choosePeopleAll=e,localStorage.setItem(`linkmic-last-choose-people-all-${null===(o=this.store)||void 0===o?void 0:null===(i=o.roomStore)||void 0===i?void 0:null===(t=i.roomInfo)||void 0===t?void 0:t.roomId}`,String(e))}),(0,o._)(this,"setChoosePanelVisible",e=>{this.choosePanelVisible=e}),(0,o._)(this,"setChoosePeopleShowTCC",e=>{this.choosePeopleShowTCC=e}),(0,o._)(this,"getPositionIdxByUserIdStr",e=>{let t=P()(this.linkMicSeats);return null==t?void 0:t.findIndex(t=>{var i,o;return(null==t?void 0:null===(o=t.user)||void 0===o?void 0:null===(i=o.user)||void 0===i?void 0:i.id_str)===e})}),(0,o._)(this,"getRealPositionIdxByUserIdStr",e=>{var t;let i=P()(this.linkMicSeats);return null==i?void 0:null===(t=i.find(t=>{var i,o;return(null==t?void 0:null===(o=t.user)||void 0===o?void 0:null===(i=o.user)||void 0===i?void 0:i.id_str)===e}))||void 0===t?void 0:t.idx}),(0,o._)(this,"setApplySource",e=>{this.applySource=e}),(0,o._)(this,"setSelfLinkedPosition",e=>{this.selfLinkedPosition=e}),(0,o._)(this,"setAudioPermission",e=>{this.audioPermission=e}),(0,o._)(this,"setFunctionType2",e=>{this.functionType2=e}),(0,o._)(this,"setVideoPermission",e=>{this.videoPermission=e}),(0,o._)(this,"setDevices",e=>{this.selectedLinkMicDevices=e}),(0,o._)(this,"setOtherRoomLinkSilenceStatus",e=>{this.otherRoomLinkSilenceStatus=e}),(0,o._)(this,"setAudioDevice",e=>{this.selectedLinkMicDevices=(0,n._)((0,s._)({},this.selectedLinkMicDevices),{audio:e})}),(0,o._)(this,"setVideoDevice",e=>{this.selectedLinkMicDevices=(0,n._)((0,s._)({},this.selectedLinkMicDevices),{video:e})}),(0,o._)(this,"setSelectedPosition",e=>{this.selectedPosition=e}),(0,o._)(this,"setUserPopupCoordinate",e=>{this.userPopupCoordinate=e}),(0,o._)(this,"setInviteFromUserId",e=>{this.inviteFromUserId=e}),(0,o._)(this,"setShowDevicesModal",async e=>{this.setAudioPermission(0);let t=await (0,E.P)();if(!t.audio){d.F.info("无音源输入,连线失败"),this.setAudioPermission(2),this.setAudioDevice(void 0);return}this.setAudioPermission(1);let{audioInputs:i}=await (0,E.n)({linkRoomType:this.linkRoomType});if(0===i.length){d.F.info("无音源输入,连线失败");return}let o=async()=>{this.setVideoPermission(0),(await (0,E.P)(g.j5.CAMERA)).video?this.setVideoPermission(1):(this.setVideoPermission(2),this.setVideoDevice(void 0))};(2===e||6===e||4===e)&&"video"===this.linkRoomType&&t&&this.isAllowVideo&&this.isDefaultOpenVideo&&await o(),(0===e||5===e)&&await o(),this.devicesModalMode=e}),(0,o._)(this,"setLiveRoomMode",e=>{this.liveRoomMode=e}),(0,o._)(this,"setEnlargeSeatApplyUid",e=>{this.enlargeSeatApplyUid=e}),(0,o._)(this,"setEnlargeSeatImage",e=>{this.enlargeSeatImage=e}),(0,o._)(this,"setEnlargeGuestType",e=>{this.enlargeGuestType=e}),(0,o._)(this,"updateFunctionType2",e=>{e===m.yP.VIDEO_1V6||e===m.yP.AUDIO_1V8||e===m.yP.AUDIO_1V8_STAGE||e===m.yP.AUDIO_DOUBLE_C||e===m.yP.VIDEO_DYNAMIC_FLOAT&&"new_audience"!==this.functionType2?this.functionType2="radio":e===m.yP.VIDEO_DYNAMIC||e===m.yP.VIDEO_GRID||e===m.yP.AUDIO_GRID?this.functionType2="party":e===m.yP.MATE_CUSTOM&&(this.functionType2="audio_audience")}),(0,o._)(this,"setImLinkMicLayout",e=>{let t=void 0!==this.seiLinkMicLayout&&[m.yP.AUDIO_1V8,m.yP.AUDIO_GRID,m.yP.AUDIO_1V8_STAGE].includes(this.seiLinkMicLayout)&&void 0!==e&&[m.yP.AUDIO_1V8,m.yP.AUDIO_GRID,m.yP.VIDEO_6V6,m.yP.AUDIO_1V8_STAGE].includes(e);2===this.linkStatus?this.updateFunctionType2(e):t&&this.updateFunctionType2(e),this.imLinkMicLayout=e}),(0,o._)(this,"setSeiLinkMicLayout",e=>{2!==this.linkStatus&&this.updateFunctionType2(e),this.seiLinkMicLayout=e}),(0,o._)(this,"setUiLayout",e=>{this.uiLayout=Number(e)}),(0,o._)(this,"setPlayModes",e=>{this.playModes=e}),(0,o._)(this,"setPlayModesByConfig",e=>{let t=[...this.playModes];for(let i of Object.keys(e)){let o=Number(i),s=!!e[o];s&&!t.includes(o)?t.push(o):!s&&t.includes(o)&&(t=t.filter(e=>e!==o))}this.playModes=t}),(0,o._)(this,"setLinkMicSettings",e=>{this.linkMicConfig.settings=e}),(0,o._)(this,"setTeamfightInfo",(e,t)=>{if(t){var i,o;let t=null===(o=this.teamfightInfo)||void 0===o?void 0:null===(i=o.team_infos)||void 0===i?void 0:i.map(t=>{var i;let o=null===(i=e.team_infos)||void 0===i?void 0:i.find(e=>{var i,o;return String(null!==(i=null==e?void 0:e.team_id_str)&&void 0!==i?i:null==e?void 0:e.team_id)===String(null!==(o=null==t?void 0:t.team_id_str)&&void 0!==o?o:null==t?void 0:t.team_id)});return(0,n._)((0,s._)({},t),{is_score_fuzzy:null==o?void 0:o.is_score_fuzzy,score:null==o?void 0:o.score,score_str:null==o?void 0:o.score_str,score_fuzzy:null==o?void 0:o.score_fuzzy,contributors:null==o?void 0:o.contributors,players:null==o?void 0:o.players,owner_id:null==o?void 0:o.owner_id,bonus_score:null==o?void 0:o.bonus_score})});this.imTeamfightInfo=(0,n._)((0,s._)({},this.teamfightInfo),{current_time_ms:e.current_time_ms,team_infos:t}),this.seiTeamFightInfo=(0,n._)((0,s._)({},this.teamfightInfo),{current_time_ms:e.current_time_ms,team_infos:t});return}this.imTeamfightInfo=e,this.seiTeamFightInfo=e}),(0,o._)(this,"setGuestBattleInfo",e=>{this.guestBattleInfo=e}),(0,o._)(this,"setEggModeInfo",e=>{this.eggModeInfo=e}),(0,o._)(this,"setOrderSingInfo",e=>{this.orderSingInfo=e}),(0,o._)(this,"setOrderSingUserScore",e=>{this.orderSingUserScore=e}),(0,o._)(this,"setOrderSingBannerData",e=>{this.orderSingBannerData=e}),(0,o._)(this,"setOrderSingSortRule",e=>{this.orderSingSortRule=e}),(0,o._)(this,"setRankListShow",e=>{this.rankListShow=e}),(0,o._)(this,"setShowHonorStation",e=>{this.showHonorStation=e}),(0,o._)(this,"setHonorUser",e=>{this.honorUser=e?(0,n._)((0,s._)({},e),{targetUser:w(e.targetUser)}):e}),(0,o._)(this,"setRankParam",e=>{this.rankParam=e?(0,n._)((0,s._)({},e),{user:w(e.user)}):e}),(0,o._)(this,"setSeatInfoListShow",e=>{this.seatInfoListShow=e}),(0,o._)(this,"setSeatInfoParam",e=>{this.seatInfoParam=e}),(0,o._)(this,"setImLinkMicSeats",(e,t)=>{if(t){if(this.imLinkMicSeatsVersion){if(!!(Number(this.imLinkMicSeatsVersion)<Number(t)))this.imLinkMicSeats=e,this.imLinkMicSeatsVersion=t}else this.imLinkMicSeats=e,this.imLinkMicSeatsVersion=t}else this.imLinkMicSeats=e}),(0,o._)(this,"setSeiLinkMicSeats",e=>{this.seiLinkMicSeats=e}),(0,o._)(this,"setLinkStatus",e=>{2===this.linkStatus&&2!==e&&(this.setSeiLinkMicLayout(this.imLinkMicLayout),this.setSeiLinkMicSeats(this.imLinkMicSeats)),this.linkStatus=e,0===e&&this.setSelfLinkedPosition(void 0)}),(0,o._)(this,"setLinkMicConfig",e=>{this.linkMicConfig=e}),(0,o._)(this,"updateLinkMicConfig",e=>{let t=Object.assign({},this.linkMicConfig.config,e);this.linkMicConfig=(0,n._)((0,s._)({},this.linkMicConfig),{config:t})}),(0,o._)(this,"setIsFansGuide",e=>{this.isFansGuide=e}),(0,o._)(this,"setIsCandidate",e=>{this.isCandidate=e}),(0,o._)(this,"initLinkMicSeats",()=>{this.imLinkMicSeats=(0,s._)({},k),this.seiLinkMicSeats=(0,s._)({},k)}),(0,o._)(this,"setSelfLinkMicId",e=>{this.selfLinkMicId=e}),(0,o._)(this,"setIsPlayModeNotSupport",e=>{this.isPlayModeNotSupport=e}),(0,o._)(this,"setFloatModal",e=>{this.floatModal=e}),(0,o._)(this,"setSceneNum",e=>{this.sceneNum!==e&&(this.sceneNum=e)}),(0,o._)(this,"setDressListInfo",e=>{this.dressListInfo=e}),(0,o._)(this,"setShowLinkMicApplyModal",e=>{this.showLinkMicApplyModal=e}),(0,o._)(this,"setDevicesModalCountDown",e=>{this.devicesModalCountDown=e}),(0,o._)(this,"setDressMvpInfo",e=>{this.dressMvpInfo=e}),(0,o._)(this,"setDressListAll",e=>{this.dressListAll=e}),(0,o._)(this,"setLayoutBackgroundImg",e=>{this.layoutBackgroundImg=e}),(0,o._)(this,"setLayoutConfig",e=>{this.layoutConfig=e}),(0,o._)(this,"setAgcAnchor",e=>{this.isAgcAnchor=e}),(0,o._)(this,"setChoosePeopleList",e=>{this.choosePeopleList=e}),(0,o._)(this,"setFaceRecognitionShow",e=>{this.faceRecognitionShow=e}),(0,o._)(this,"setDoubleCEnlarge",e=>{this.doubleCEnlarge=e}),(0,o._)(this,"setIsCrossLink",e=>{this.isCrossLink=e}),(0,o._)(this,"setCrossLinkTimerStart",e=>{this.crossLinkTimerStart=e}),(0,o._)(this,"setRoomBattleType",e=>{this.roomBattleType=e}),(0,o._)(this,"setOpenUiLayout",e=>{e!==this.openUiLayout&&(void 0===this.lastOpenUiLayout?this.lastOpenUiLayout=e:this.lastOpenUiLayout=this.openUiLayout,this.openUiLayout=e)}),(0,o._)(this,"setChangeVideoDevice",e=>{this.changeVideoDevice=e}),(0,o._)(this,"setAsrSubtitle",e=>{this.asrSubtitle=e}),(0,o._)(this,"setLastLayout",e=>{this.lastLayout=e}),(0,o._)(this,"setShowGiftInfo",e=>{this.showGiftInfo=e}),(0,o._)(this,"setLinkmicVideoEqualLayoutFrameOpt",e=>{this.linkmicVideoEqualLayoutFrameOpt=e}),(0,o._)(this,"setIsNewVideoLinkmicRoom",e=>{this.isNewVideoLinkmicRoom=e}),(0,o._)(this,"setNewSeiContent",e=>{this.newSeiContent=e}),(0,o._)(this,"setSeiDiffKey",e=>{this.seiDiffKey=e}),(0,o._)(this,"setPkScoreBarInfo",e=>{this.pkScoreBarInfo=(0,s._)({},this.pkScoreBarInfo,e)}),(0,o._)(this,"resetPkScoreBarInfo",()=>{this.pkScoreBarInfo={finishTime:0,teamInfos:[],pkScores:void 0,type:void 0,status:void 0,teamfightId:void 0,title:void 0,themeTitle:void 0,titleIcon:void 0,playId:void 0,gift:void 0}}),(0,o._)(this,"setSprintChallengeBarInfo",e=>{this.sprintChallengeBarInfo=(0,s._)({},this.sprintChallengeBarInfo,e)}),(0,o._)(this,"resetSprintChallengeBarInfo",()=>{this.sprintChallengeBarInfo={status:void 0,totalScore:0,targetScore:0,finishTime:0,isAutomatic:!1,scoreStr:"",scoreFuzzyStr:"",contributorIds:[],increasedScore:void 0,eventTime:void 0,playerId:void 0,playId:void 0}}),(0,o._)(this,"setHasScoreBar",e=>{this.hasScoreBar=e}),(0,o._)(this,"setScoreBarHeight",e=>{this.scoreBarHeight=e}),(0,o._)(this,"setAllDevices",e=>{e.allDevices&&(this.allDevices=e.allDevices),e.audioInputs&&(this.audioInputs=e.audioInputs),e.videoInputs&&(this.videoInputs=e.videoInputs)}),(0,o._)(this,"resetStore",()=>{this.linkMicConfig={config:{}},this.imLinkMicSeats=(0,s._)({},k),this.imLinkMicSeatsVersion=void 0,this.imLinkMicLayout=void 0,this.playModes=[],this.orderSingInfo=void 0,this.orderSingUserScore=void 0,this.orderSingSortRule=v.jQ.OrderSingGiftRule,this.liveRoomMode=void 0,this.imTeamfightInfo=void 0,this.guestBattleInfo=void 0,this.eggModeInfo=void 0,this.rankListShow=!1,this.showHonorStation=!1,this.honorUser=void 0,this.rankParam=void 0,this.seatInfoListShow=!1,this.seatInfoParam=void 0,this.selectedLinkMicDevices={},this.linkStatus=0,this.showDevicesModal=!1,this.enlargeSeatApplyUid=null,this.enlargeSeatImage="",this.enlargeGuestType=0,this.applySource=u.JW.NONE,this.audioPermission=0,this.videoPermission=0,this.selectedPosition=void 0,this.userPopupCoordinate=void 0,this.isFansGuide=!1,this.isCandidate=!1,this.selfLinkedPosition=void 0,this.selfLinkMicId=void 0,this.floatModal=0,this.otherRoomLinkSilenceStatus=void 0,this.choosePanelVisible=!1,this.choosePeopleArr=[],this.choosePeopleAll=!1,this.layoutBackgroundImg="",this.choosePeopleList={},this.isGroupLive=0,this.groupLiveMemberList=[],this.isCrossLink=!1,this.crossLinkTimerStart=0,this.roomBattleType="pk",this.openUiLayout=void 0,this.lastOpenUiLayout=void 0,this.changeVideoDevice={},this.asrSubtitle={isOpen:!1,type:1},this.lastLayout=void 0,this.showGiftInfo=!0,this.groupliveProfileSlot=null,this.seiDiffKey=null,this.pkScoreBarInfo={finishTime:0,teamInfos:[],pkScores:void 0,type:void 0,teamfightId:void 0,title:void 0,titleIcon:void 0,playId:void 0,gift:void 0},this.hasScoreBar=!1,this.scoreBarHeight=0,this.allDevices=[],this.audioInputs=[],this.videoInputs=[]});this.makeObservable(),this.store=e}}},387722:function(e,t,i){i.d(t,{Bp:function(){return m},ZP:function(){return h},e1:function(){return d}});var o=i(480333),s=i(201821),n=i(731343),r=i(240686),a=i(198412),l=i.n(a),v=i(807922),_=i(205082),m={BAN:0,0:"BAN",OPEN:1,1:"OPEN"},d={MultiCamera:"MultiCamera",FansClub:"FansClub",SendGift:"SendGift",DANMU:"DANMU",Chat:"Chat",Link:"Link",FullScreen:"FullScreen",PIP:"PIP"};let c={MultiCamera:1,FansClub:1,Link:1,Chat:1,DANMU:1,SendGift:1,FullScreen:1,PIP:1},u={[v.ku.TRY_WATCH_ING]:{MultiCamera:0,FansClub:0,Link:0,Chat:1,DANMU:1,SendGift:1,FullScreen:0,PIP:0},[v.ku.TRT_WATCH_FINISH]:{MultiCamera:0,FansClub:0,Link:0,Chat:0,DANMU:0,SendGift:0,FullScreen:0,PIP:0},[v.ku.NORMAL_WATCH]:c};class h extends s.Z{get paidLiveBurryContrl(){return this.paidLiveBurryContrlDefault||this.paidLiveBurryContrlValue}get paidLiveBurryContrlDefault(){return!this.isPaidLive}get isPaidLive(){return Number(l()(this.paidLiveData,"paid_type",0))===_.PAID_LIVE_TYPE.PAID_LIVE}infoWarn(e){(0,r.S)(e)}constructor(){super(),(0,o._)(this,"viewType",v.ku.BAN),(0,o._)(this,"retType",v.Pf.NORMAL_WATCH),(0,o._)(this,"paidLiveData",null),(0,o._)(this,"paidLiveAuth",c),(0,o._)(this,"qrcodeVisible",!1),(0,o._)(this,"paidLiveBurryContrlValue",!1),(0,o._)(this,"makeObservable",()=>{(0,n.makeObservable)(this,{paidLiveData:n.observable,setPaidLiveData:n.action,retType:n.observable,setRetType:n.action,viewType:n.observable,setViewType:n.action,paidLiveAuth:n.observable,setPaidLiveAuth:n.action,qrcodeVisible:n.observable,setQrcodeVisible:n.action,isPaidLive:n.computed,paidLiveBurryContrlValue:n.observable,setPaidLiveBurryContrl:n.action,paidLiveBurryContrl:n.computed,paidLiveBurryContrlDefault:n.computed})}),(0,o._)(this,"setPaidLiveBurryContrl",e=>{this.paidLiveBurryContrlValue=e}),(0,o._)(this,"setPaidLiveData",e=>{if("function"==typeof e){var t;this.paidLiveData=e(null!==(t=this.paidLiveData)&&void 0!==t?t:{});return}let i=Number(l()(e,"view_right",0))?v.Pf.NORMAL_WATCH:v.Pf.TRY_WATCH_ING;this.setRetType(i),this.paidLiveData=e}),(0,o._)(this,"setViewType",e=>{this.viewType=e,this.paidLiveAuth=u[e]}),(0,o._)(this,"setPaidLiveAuth",e=>{this.paidLiveAuth=e}),(0,o._)(this,"setRetType",e=>{this.retType=e}),(0,o._)(this,"setQrcodeVisible",e=>{this.qrcodeVisible=e});this.makeObservable()}}},864312:function(e,t,i){i.d(t,{jQ:function(){return o}});var o={UnknownRule:0,0:"UnknownRule",OrderSingGiftRule:1,1:"OrderSingGiftRule",LinkmicPositionRule:2,2:"LinkmicPositionRule"}},730481:function(e,t,i){i.d(t,{s:function(){return o}});var o={UnknowPrivilege:0,0:"UnknowPrivilege",Unknow2Privilege:1,1:"Unknow2Privilege",PromptPrivilege:2,2:"PromptPrivilege",FactionPrivilege:3,3:"FactionPrivilege",WordPrivilege:4,4:"WordPrivilege",SliencePrivilege:5,5:"SliencePrivilege",BlockPrivilege:6,6:"BlockPrivilege",LinkMicPrivilege:7,7:"LinkMicPrivilege",VotePrivilege:8,8:"VotePrivilege",WishPrivilege:9,9:"WishPrivilege",LittleGamePrivilege:10,10:"LittleGamePrivilege",ScreenChatPrivilege:11,11:"ScreenChatPrivilege",CommentOnWallPrivilege:12,12:"CommentOnWallPrivilege",AdminDanmakuPrivilege:13,13:"AdminDanmakuPrivilege",LinkmicGuestBattlePrivilege:14,14:"LinkmicGuestBattlePrivilege",LinkmicTeamFightPrivilege:15,15:"LinkmicTeamFightPrivilege",LinkmicRoomBattlePrivilege:16,16:"LinkmicRoomBattlePrivilege",LinkmicRoomOrderSing:17,17:"LinkmicRoomOrderSing",UnionAnchorProvilege:18,18:"UnionAnchorProvilege",AudienceLinkmicPlaymodeControl:19,19:"AudienceLinkmicPlaymodeControl",EnlargeGuest:20,20:"EnlargeGuest",SetPositionName:21,21:"SetPositionName",PinPrivilege:22,22:"PinPrivilege",ScreenRecordPrivilege:23,23:"ScreenRecordPrivilege",ManageGameTeams:24,24:"ManageGameTeams",LinkmicUiLayout:25,25:"LinkmicUiLayout",KickOnce:26,26:"KickOnce",ChatSelfSee:27,27:"ChatSelfSee"}},877991:function(e,t,i){i.d(t,{L0:function(){return o},Nq:function(){return s}});var o={GuestBattlePlayerRoleNone:0,0:"GuestBattlePlayerRoleNone",GuestBattlePlayerRoleWinner:1,1:"GuestBattlePlayerRoleWinner",GuestBattlePlayerRoleLoser:2,2:"GuestBattlePlayerRoleLoser",GuestBattlePlayerRoleSecond:3,3:"GuestBattlePlayerRoleSecond",GuestBattlePlayerRoleThird:4,4:"GuestBattlePlayerRoleThird"},s={GuestBattle_NONE:0,0:"GuestBattle_NONE",GuestBattle_ON_GOING:1,1:"GuestBattle_ON_GOING",GuestBattle_SHOW_RESULT:2,2:"GuestBattle_SHOW_RESULT",GuestBattle_FINISH:3,3:"GuestBattle_FINISH",GuestBattle_PAUSE:4,4:"GuestBattle_PAUSE"}},243745:function(e,t,i){i.d(t,{W5:function(){return o},d$:function(){return s}});var o={UNKNOWN_MICROPHONE:0,0:"UNKNOWN_MICROPHONE",SILVER_MICROPHONE:1,1:"SILVER_MICROPHONE",GOLDEN_MICROPHONE:2,2:"GOLDEN_MICROPHONE"},s={NO_SINGER_STAGE:0,0:"NO_SINGER_STAGE",NO_SINGING_SINGER_STAGE:1,1:"NO_SINGING_SINGER_STAGE",SILVER_MIC_PROCESSING_STAGE:2,2:"SILVER_MIC_PROCESSING_STAGE",SILVER_MIC_COMPLETE_STAGE:3,3:"SILVER_MIC_COMPLETE_STAGE",GOLDEN_MIC_PROCESSING_STAGE:4,4:"GOLDEN_MIC_PROCESSING_STAGE",GOLDEN_MIC_COMPLETE_STAGE:5,5:"GOLDEN_MIC_COMPLETE_STAGE"}},825795:function(e,t,i){i.d(t,{NM:function(){return n},V9:function(){return o},q2:function(){return s}});var o={NONE:0,0:"NONE",AL_IsTurnOn:1,1:"AL_IsTurnOn",AL_AcceptMultiLinkmic:2,2:"AL_AcceptMultiLinkmic",AL_AcceptNotFollowerInvite:3,3:"AL_AcceptNotFollowerInvite",AL_AllowGiftToOtherAnchors:4,4:"AL_AllowGiftToOtherAnchors",PK_IsTurnOn:5,5:"PK_IsTurnOn",PK_AcceptNotFollowerInvite:6,6:"PK_AcceptNotFollowerInvite",PK_AllowGiftToOtherAnchors:7,7:"PK_AllowGiftToOtherAnchors",AU_IsTurnOn:8,8:"AU_IsTurnOn",AU_BigPartyAcceptNeedVerified:9,9:"AU_BigPartyAcceptNeedVerified",AU_BigPartyOnlyAcceptFollowerApply:10,10:"AU_BigPartyOnlyAcceptFollowerApply",AU_BigPartyGuestCanAcceptGift:11,11:"AU_BigPartyGuestCanAcceptGift",AU_IntimateChatOnlyAcceptFollowerApply:12,12:"AU_IntimateChatOnlyAcceptFollowerApply",AU_IntimateChatGuestCanAcceptGift:13,13:"AU_IntimateChatGuestCanAcceptGift",AU_IntimateChatOnlyJoinThroughInvitation:14,14:"AU_IntimateChatOnlyJoinThroughInvitation",AU_IntimateChatAcceptNeedVerified:15,15:"AU_IntimateChatAcceptNeedVerified",AU_AudioChatAcceptNeedVerified:16,16:"AU_AudioChatAcceptNeedVerified",AU_AudioChatOnlyAcceptFollowerApply:17,17:"AU_AudioChatOnlyAcceptFollowerApply",AU_AudioChatGuestCanAcceptGift:18,18:"AU_AudioChatGuestCanAcceptGift",AU_BigPartyAllowAdminOperateAudience:19,19:"AU_BigPartyAllowAdminOperateAudience",AU_IntimateChatAllowAdminOperateAudience:20,20:"AU_IntimateChatAllowAdminOperateAudience",AU_AudioChatAllowAdminOperateAudience:21,21:"AU_AudioChatAllowAdminOperateAudience",AU_BigPartyEmojiEntrance:22,22:"AU_BigPartyEmojiEntrance",AU_AudioChatEmojiEntrance:23,23:"AU_AudioChatEmojiEntrance",AU_AllowAdminOperateAudience:24,24:"AU_AllowAdminOperateAudience",AU_OfficialChannelHostCanAcceptGift:25,25:"AU_OfficialChannelHostCanAcceptGift",PK_AcceptFriendInvite:26,26:"PK_AcceptFriendInvite",PK_AcceptHourlyRankInvite:27,27:"PK_AcceptHourlyRankInvite",AU_InteractEmojiEntrance:28,28:"AU_InteractEmojiEntrance",AU_EmojiWithSound:29,29:"AU_EmojiWithSound",PK_PrecisionMatch:30,30:"PK_PrecisionMatch",PK_PrecisionMatchPreferGender:31,31:"PK_PrecisionMatchPreferGender",PK_PrecisionMatchFrequency:32,32:"PK_PrecisionMatchFrequency",AU_BigPartyAllowAudienceOpenVideo:33,33:"AU_BigPartyAllowAudienceOpenVideo",AU_KTVAllowAudienceOpenVideo:34,34:"AU_KTVAllowAudienceOpenVideo",AU_KTVGuideSongSwitch:35,35:"AU_KTVGuideSongSwitch",AU_IntimateChatAllowAudienceOpenVideo:36,36:"AU_IntimateChatAllowAudienceOpenVideo",AU_ApplyStrongReminderEntrance:37,37:"AU_ApplyStrongReminderEntrance",AU_KTVEnableBeatComponent:39,39:"AU_KTVEnableBeatComponent",AU_BigPartyOnlyJoinThroughInvitation:40,40:"AU_BigPartyOnlyJoinThroughInvitation",AU_IntimateChatPaiedCount:41,41:"AU_IntimateChatPaiedCount",AU_IntimateChatLimitedTime:42,42:"AU_IntimateChatLimitedTime",AU_BigPartyPaiedCount:43,43:"AU_BigPartyPaiedCount",AU_BigPartyLimitedTime:44,44:"AU_BigPartyLimitedTime",AU_AddLinkmicTime:45,45:"AU_AddLinkmicTime",AU_AudioChatPlayMode:46,46:"AU_AudioChatPlayMode",AU_IsAudioChatPreLinkmicTurnOn:47,47:"AU_IsAudioChatPreLinkmicTurnOn",AU_BigPartyEnableDynamicLayout:48,48:"AU_BigPartyEnableDynamicLayout",AU_BigPartyEnableEqual:49,49:"AU_BigPartyEnableEqual",PK_AcceptPopularityRankInvite:50,50:"PK_AcceptPopularityRankInvite",AU_IntimateChatApplicationReason:51,51:"AU_IntimateChatApplicationReason",AU_BigPartyAudienceDefaultOpenVideo:52,52:"AU_BigPartyAudienceDefaultOpenVideo",AU_KTVEnableAtmosphere:53,53:"AU_KTVEnableAtmosphere",AU_KTVEnableColdStartSongList:54,54:"AU_KTVEnableColdStartSongList",AU_KTVEnableAvatar:55,55:"AU_KTVEnableAvatar",AU_KTVFriendsGroup:56,56:"AU_KTVFriendsGroup",AU_IntimateChatBidPaidLinkmic:57,57:"AU_IntimateChatBidPaidLinkmic",AU_WaitingListSortStrategy:58,58:"AU_WaitingListSortStrategy",AU_AutoInitInfo:59,59:"AU_AutoInitInfo",AU_VideoChatEnableDynamic:60,60:"AU_VideoChatEnableDynamic",AU_EnableAudienceLinkmic:61,61:"AU_EnableAudienceLinkmic",AU_VideoChatAcceptAudienceApply:62,62:"AU_VideoChatAcceptAudienceApply",AU_NormalPaidLinkmicConfig:63,63:"AU_NormalPaidLinkmicConfig",AU_NormalPaidLinkmicExplainCard:64,64:"AU_NormalPaidLinkmicExplainCard",AU_NormalPaidLinkmicDesc:65,65:"AU_NormalPaidLinkmicDesc",AU_IntimateChatNormalPaidLinkmicConfig:66,66:"AU_IntimateChatNormalPaidLinkmicConfig",AU_IntimateChatBidPaidLinkmicConfig:67,67:"AU_IntimateChatBidPaidLinkmicConfig",AU_KTVChallengeConfig:68,68:"AU_KTVChallengeConfig",AU_RoomBattleConfig:69,69:"AU_RoomBattleConfig",AU_NormalPaidLinkmicAddPriceConfig:70,70:"AU_NormalPaidLinkmicAddPriceConfig",AU_VideoChatBidPaidLinkmicConfig:71,71:"AU_VideoChatBidPaidLinkmicConfig",AU_GuestBattleConfig:72,72:"AU_GuestBattleConfig",AU_TeamFightConfig:73,73:"AU_TeamFightConfig",PK_AcceptVolumeUp:75,75:"PK_AcceptVolumeUp",AU_SelfDisciplineConfig:76,76:"AU_SelfDisciplineConfig",AU_linkmicAutoSilence:77,77:"AU_linkmicAutoSilence",AU_PriorSong:78,78:"AU_PriorSong",AU_DuoBattleConfig:80,80:"AU_DuoBattleConfig",AU_RadioAcceptAudiencePreApply:81,81:"AU_RadioAcceptAudiencePreApply",AU_KTVAutoLeave:82,82:"AU_KTVAutoLeave",AU_KTVLyricMode:87,87:"AU_KTVLyricMode",AU_InitVideoChatFromAudienceLinkmic:88,88:"AU_InitVideoChatFromAudienceLinkmic",AU_PaidQueue:89,89:"AU_PaidQueue",AU_KTVComponent:90,90:"AU_KTVComponent",AU_KTVMidiMode:92,92:"AU_KTVMidiMode",AU_ClearGuestRankList:93,93:"AU_ClearGuestRankList",AU_AudioSubtitle:94,94:"AU_AudioSubtitle",AU_AutoOpenLinkmic:95,95:"AU_AutoOpenLinkmic",AU_StarWish:96,96:"AU_StarWish",AU_AdventureConfig:100,100:"AU_AdventureConfig",AL_UnionInvite:101,101:"AL_UnionInvite",AU_KTVMultiChorusConfig:102,102:"AU_KTVMultiChorusConfig",AU_KTVMultiChorusConfigV2:103,103:"AU_KTVMultiChorusConfigV2",AL_AcceptBigSmallLayout:104,104:"AL_AcceptBigSmallLayout",AU_EnlargeGuestEqual1V8:105,105:"AU_EnlargeGuestEqual1V8",AU_OrderSingConf:106,106:"AU_OrderSingConf",AU_GuestLinkConfig:107,107:"AU_GuestLinkConfig",AU_KTVStageHideLyricsSwitch:108,108:"AU_KTVStageHideLyricsSwitch",AU_Audio1V8EnlargeStageSwitch:109,109:"AU_Audio1V8EnlargeStageSwitch",AU_ChestGame:111,111:"AU_ChestGame",AU_GiftComment:112,112:"AU_GiftComment",AU_InteractActing:113,113:"AU_InteractActing",AU_KTVRealTimeChorus:114,114:"AU_KTVRealTimeChorus",AU_SpecifiedGuestsPK:115,115:"AU_SpecifiedGuestsPK",AU_AllowJoinGuestFansclub:116,116:"AU_AllowJoinGuestFansclub",PK_AutoStartStealDragon:117,117:"PK_AutoStartStealDragon",PK_ShowSeasonUserRank:118,118:"PK_ShowSeasonUserRank",AU_AudioHonorRank:119,119:"AU_AudioHonorRank",AU_GiftSing:120,120:"AU_GiftSing",AU_AllowEnlargeSelf:121,121:"AU_AllowEnlargeSelf",AU_GuestBattleV2Config:122,122:"AU_GuestBattleV2Config",AU_ShowLinkmicRanklist:123,123:"AU_ShowLinkmicRanklist",AU_VideoLinkmicDoNotDisturbConfig:124,124:"AU_VideoLinkmicDoNotDisturbConfig",PK_AcceptFindPeopleInvite:125,125:"PK_AcceptFindPeopleInvite",PK_AcceptTeamTask:126,126:"PK_AcceptTeamTask",AU_AnchorHide:127,127:"AU_AnchorHide"},s={UNSET:0,0:"UNSET",OPEN:1,1:"OPEN",OFF:2,2:"OFF",ONLY_FOLLOWING_USER:20,20:"ONLY_FOLLOWING_USER",ONLY_FANS_CLUB_USER:21,21:"ONLY_FANS_CLUB_USER",ONLY_FANS:22,22:"ONLY_FANS",ALL_USERS:23,23:"ALL_USERS",AUDIO_CHAT_ONE_PLUS_EIGHT:24,24:"AUDIO_CHAT_ONE_PLUS_EIGHT",AUDIO_CHAT_THREE_TIMES_THREE_ONE_EMPTY:25,25:"AUDIO_CHAT_THREE_TIMES_THREE_ONE_EMPTY",AUDIO_CHAT_THREE_TIMES_THREE_N_EMPTY:26,26:"AUDIO_CHAT_THREE_TIMES_THREE_N_EMPTY",WAITING_LIST_SORT_STRATEGY_APPLY_TIME:40,40:"WAITING_LIST_SORT_STRATEGY_APPLY_TIME",WAITING_LIST_SORT_STRATEGY_FAN_TICKET:41,41:"WAITING_LIST_SORT_STRATEGY_FAN_TICKET",WAITING_LIST_SORT_STRATEGY_RECOMEND:42,42:"WAITING_LIST_SORT_STRATEGY_RECOMEND"},n={SWITCH_UNSET:0,0:"SWITCH_UNSET",SWITCH_ON:1,1:"SWITCH_ON",SWITCH_OFF:2,2:"SWITCH_OFF"}},830411:function(e,t,i){i.d(t,{U5:function(){return a},cb:function(){return s},fc:function(){return r},pL:function(){return n}}),i(706056),i(490629),i(240148),i(759943),i(780582);var o=i(656671);let s=(e,t,i)=>(e.giftScene|t)===e.giftScene&&e.price*i<=o.sF,n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.dq.NORMAL,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=!(arguments.length>4)||void 0===arguments[4]||arguments[4],a=[];return e.filter(e=>!t.length||t.includes(e.pageType)).forEach(e=>{a=[...a,...e.giftList]}),r?a.filter(e=>s(e,i,n)):a},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(e=>e.onPanel)},a=e=>{var t;let i=null;Array.from(document.querySelectorAll('[class*="gift_item_gift_grid"]')).forEach(t=>{let o=t.className.match(/id-(\d+(\.\d+)?)/);o&&parseFloat(o[1])===e&&(i=t)}),null==i||null===(t=i.scrollIntoView)||void 0===t||t.call(i,{block:"nearest",behavior:"auto"},1e3)}},142689:function(e,t,i){i.d(t,{K4:function(){return m},V:function(){return v},Yi:function(){return d},m6:function(){return _},oD:function(){return l},xA:function(){return c}}),i(362051);var o=i(551413),s=i(807922),n=i(426038),r=i(198412),a=i.n(r);let l=e=>{switch(e){case s.ku.TRY_WATCH_ING:return"try";case s.ku.TRT_WATCH_FINISH:return"try_end";case s.ku.NORMAL_WATCH:default:return"regular"}},v=e=>{document.cookie=(0,o.serialize)(n.CookieKeys.PaidLiveDuration,JSON.stringify(e),{domain:".douyin.com",path:"/"})},_=()=>{var e,t;let i=a()(window,"__STORE__.paidLiveStore.paidLiveData.paid_type",0),o=a()(window,"__STORE__.paidLiveStore.viewType",s.ku.BAN),n=null===(t=window)||void 0===t?void 0:null===(e=t.__INVISIBLE_QUERY__)||void 0===e?void 0:e.entrance_form;return{is_paidlive:Number(i),watch_paidlive_status:l(o),entrance_form:n}},m=e=>({is_paidlive:1}),d=()=>{var e,t;let i;let o=null===(t=window)||void 0===t?void 0:null===(e=t.__STORE__)||void 0===e?void 0:e.paidLiveStore;switch(null==o?void 0:o.viewType){case s.ku.TRY_WATCH_ING:i="try_toolbar";case s.ku.TRT_WATCH_FINISH:i="tryend_toolbar";default:i="regular"}return{watch_type:i}},c=e=>{try{var t;let{title:i="",ticket_session_id_str:o=""}=null!==(t=null!=e?e:window.__STORE__.paidLiveStore.paidLiveData.ticket_session)&&void 0!==t?t:{};return{ticket_name:i,ticket_id:o}}catch(e){return{ticket_name:"",ticket_id:""}}}},375813:function(e,t,i){i.d(t,{x:function(){return n}}),i(14275),i(759943);var o=i(75138),s=i(598659);let n=e=>{/iframe/.test(location.pathname)?(0,o.dn)({headerText:e.headerText,enterMethod:e.enterMethod}):(0,s.p)().then(t=>{t(e)})}},591987:function(e,t,i){i.d(t,{RB:function(){return r},ld:function(){return m},r9:function(){return a}}),i(228983),i(759943),i(679308),i(706056),i(656562),i(992871),i(490629),i(683656),i(362051);var o=i(377228);i(229757);var s=i(198412),n=i.n(s);let r=e=>{let t=document.getElementById("root"),i=document.querySelector(".app-container");if(!!t&&!!i)e?(t.className=`${t.className} ${o.TV}`,i.className=`${i.className} ${o.TV}`):(t.className=t.className.split(" ").filter(e=>e!==o.TV).join(" "),i.className=i.className.split(" ").filter(e=>e!==o.TV).join(" "))},a=e=>n()({0:0,270:90,180:180,90:270},e,0),l=async e=>{try{var t,i;let o=await fetch(`${e}${(null==e?void 0:e.includes("?"))?"&":"?"}cdn_type=dispatch`).then(e=>null==e?void 0:e.json()),s=new URL(e),{pathname:n}=s,r=`${s.host}${n}`,a=`${s.host}${n.replace(".flv","")}`,l=null===(t=o[r])||void 0===t?void 0:t.complete_url.replace("%26cdn_type%3Ddispatch","").replace("&cdn_type=dispatch",""),v=null===(i=o[a])||void 0===i?void 0:i.complete_url.replace("%26cdn_type%3Ddispatch","").replace("&cdn_type=dispatch","");return l||v||e}catch(t){return e}},v=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;if(!e||"string"!=typeof e)return e;e.includes("http:")&&!(null==e?void 0:e.includes("https:"))&&(e=e.replace("http:","https:"));try{if(i)return l(e);return(await fetch(e,{method:"head"})).url||e}catch(i){if(t)return await v(e,t-1);if((null==i?void 0:i.code)===404||(null==i?void 0:i.errCode)===404)return"";return e}},_=["ld","sd","hd","uhd","fhd","origin"],m=(e,t)=>{try{let s={};if(e){var i,o;let t=JSON.parse((null==e?void 0:null===(o=e.live_core_sdk_data)||void 0===o?void 0:null===(i=o.pull_data)||void 0===i?void 0:i.stream_data)||"{}");s=(null==t?void 0:t.data)||{}}else t&&(s=(null==t?void 0:t.stream)||{});if(s&&Object.keys(s).length>0){let e=!1;return Object.keys(s).forEach(t=>{var i,o;let n=null===(i=s[t])||void 0===i?void 0:i.main;_.includes(t)&&(null==n?void 0:null===(o=n.sdk_params)||void 0===o?void 0:o.includes("264"))&&(e=!0)}),e}return!1}catch(e){return!1}}},620589:function(e,t,i){i.d(t,{Nu:function(){return d},UV:function(){return _},aV:function(){return m},wY:function(){return v}});var o=i(392430),s=i(198412),n=i.n(s),r=i(75138),a=i(380599),l=i(762080);let v=()=>{try{var e,t,i,o;let{roomInfo:s={}}=null===(t=window)||void 0===t?void 0:null===(e=t.__STORE__)||void 0===e?void 0:e.roomStore;if((null===(o=window)||void 0===o?void 0:null===(i=o.__INVISIBLE_QUERY__)||void 0===i?void 0:i.enter_from_merge)==="web_share_link"&&(null==s?void 0:s.enter_mode)===l.gE.APP)return a.R5.QRCODE;return(null===a.FO||void 0===a.FO?void 0:a.FO[n()(s,"room.stream_url.stream_orientation")])||""}catch(e){return a.R5.VERTICAL}},_=()=>{var e;if(!window.__STORE__)return{};let{homeStore:{selectedRoom:t},roomStore:{roomInfo:i}}=window.__STORE__,o=(0,r.C$)()?n()(t,"room.owner.id_str",""):n()(i,"anchor.id_str",""),s=(0,r.C$)()?n()(t,"room.id_str",""):n()(i,"roomId","");return{anchor_id:o,room_id:s,game_name:(0,r.C$)()?n()(t,"tag_name",""):null===(e=window.__INVISIBLE_QUERY__)||void 0===e?void 0:e.game_name}},m=()=>{var e,t,i,o,s;return{live_type:"game",game_live_source:"game_web",is_aweme_tied:(null===(i=window)||void 0===i?void 0:null===(t=i.__STORE__)||void 0===t?void 0:null===(e=t.userStore)||void 0===e?void 0:e.userInfo.id_str)?1:0,url:location.href,url_path:location.pathname,_is_new_version:null===(o=window)||void 0===o?void 0:o.isNewVersionFirstOpen,_live_version:null===(s=window)||void 0===s?void 0:s.version,stream_type:v()}},d=()=>{var e;let{web_live_page:t="",web_live_tab:i="",web_live_tab_2:s="",web_live_tab_3:a="",more_detail:l="",game_name:_="",enter_from_merge:m="",enter_method:d="",title_type:c="",cover_type:u="",is_recommend:h="",stream_type:g="",search_params:E="",action_type:p="click",evening_type:S="",previous_page:P="",live_type:f="",function_type:b="",function_type2:w="",seat_fit_status:k="",request_id:y="",insert_task_id:C="",group_id:I="",is_livehead_preview_mini_window_show:L="",enter_method_temai:A="click_other_area",show_rank:R,show_cnt:T,mini_window_show_type:O,search_tab:G,enter_live_detail_method:M,live_position:U="",url_source:N,preview_type:V,web_card_rank:D="",im_watch_assistant_order:F=""}=window.__INVISIBLE_QUERY__||{},{homeStore:{selectedRoom:B},roomStore:{roomInfo:Z},pkStore:{pkAppData:H,pkTeamCount:x,pkPlayMode:K,pkId:W,pkStatus:j}}=window.__STORE__,q=n()(window,"__STORE__.roomStore.roomInfo.roomId"),Y=(0,r.C$)()?n()(B,"room.owner.id_str",""):n()(Z,"anchor.id_str",""),Q=E;try{Q&&"String"===(0,o.tQ)(Q)&&(Q=JSON.parse(E))}catch(e){}return{anchor_id:Y,room_id:q,enter_from_merge:m,enter_method:d,web_live_page:t,web_live_tab:i,web_live_tab_2:s,web_live_tab_3:a,more_detail:l,game_name:_,title_type:c,cover_type:u,is_recommend:h,stream_type:g||v(),evening_type:S,previous_page:P,function_type:b,seat_fit_status:k,search_params:Q,search_type:null==Q?void 0:Q.search_type,search_id:null==Q?void 0:Q.search_id,action_type:p,request_id:y,insert_task_id:C,video_id:"web_video_head"===d?I:q,is_livehead_preview_mini_window_show:L,enter_method_temai:A,show_rank:R,show_cnt:T,mini_window_show_type:O,search_tab:G,enter_live_detail_method:M,live_position:U,url_source:N,channel_id:null==H?void 0:H.channelId,invite_mode:K,anchor_connect_status:(null==H?void 0:null===(e=H.grids)||void 0===e?void 0:e.length)||-1,pk_team_count:x,pk_id:W,preview_type:V,web_card_rank:D,im_watch_assistant_order:F?Number(F):void 0}}}}]); |