"use strict";(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["61070"],{164814:function(e,l,t){t.d(l,{u:function(){return m}}),t(362051);var i=t(101199),n=t(816565),o=t(426112),r=t(72878),a=t(855357),d=t(690301),u=t(638052),s=t(762167),c=t(499059),v=t(947383),f=t(290397);let m=e=>{let{awemeInfo:l,isActive:t,index:m}=e;(0,i.useEffect)(()=>{if(t&&(0===m&&c.Le.setConfig(c.gI.AdGapInfo,{ad_id:"",cid:"",time:new Date().getTime(),index:0}),l.rawAdData&&(0,n.hj)(l)||(0,o.Jt)(l))){var e,i;let t=c.Le.getConfig(c.gI.AdGapInfo),_=(0,o.Rx)(l);if((null==t?void 0:t.cid)===(null==_?void 0:_.creative_id)||m-((null==t?void 0:t.index)||0)-1<0)return;let h=(0,o.Rx)(l),g=null==h?void 0:null===(e=h.lynx_components)||void 0===e?void 0:e.find(e=>(null==e?void 0:e.lynx_type)===r.AD_FEED_TYPE),p=(null==g?void 0:null===(i=g.lynx_raw_data)||void 0===i?void 0:i.mixed_area_info)||{};l.awemeType===a.e.LiveCard&&(0,n.Do)(h)===d.nw.Swiper304&&(p=(null==h?void 0:h.card_data)||{});let w=new Date().getTime();(null==t?void 0:t.index)!==0&&u.logInstance.sendLog("adGapInfo",{cur_time_gap:w-((null==t?void 0:t.time)||0),cur_item_gap:(null==t?void 0:t.index)===0?0:m-((null==t?void 0:t.index)||0)-1,last_cid:null==t?void 0:t.cid,last_ad_id:null==t?void 0:t.ad_id,cid:null==_?void 0:_.creative_id,ad_id:null==_?void 0:_.ad_id,current_index:m,start_pos:m}),(0,s.E)("info_receive",{tag:(0,v.f)(),refer:f.tU.Card,ad_extra_data:JSON.stringify(p)}),c.Le.setConfig(c.gI.AdGapInfo,{ad_id:null==_?void 0:_.ad_id,cid:null==_?void 0:_.creative_id,time:w,index:m})}},[t,m])}},59677:function(e,l,t){t.d(l,{I:function(){return r}});var i=t(101199),n=t(855357),o=t(600767);let r=e=>{let{awemeInfo:l,isActive:t}=e;(0,i.useEffect)(()=>{if(t){var e,i,r,a,d,u,s,c,v,f,m,_,h,g;(null==l?void 0:null===(i=l.webRawData)||void 0===i?void 0:null===(e=i.insertInfo)||void 0===e?void 0:e.item_id)&&(0,o.sk)({id:null==l?void 0:null===(a=l.webRawData)||void 0===a?void 0:null===(r=a.insertInfo)||void 0===r?void 0:r.item_id,taskId:null==l?void 0:null===(u=l.webRawData)||void 0===u?void 0:null===(d=u.insertInfo)||void 0===d?void 0:d.task_id,exposeLimit:null==l?void 0:null===(c=l.webRawData)||void 0===c?void 0:null===(s=c.insertInfo)||void 0===s?void 0:s.expose_limit,objectType:null==l?void 0:null===(f=l.webRawData)||void 0===f?void 0:null===(v=f.insertInfo)||void 0===v?void 0:v.object_type,authorId:(null==l?void 0:l.awemeType)===n.e.LiveCard?null==l?void 0:null===(h=l.cellRoom)||void 0===h?void 0:null===(_=h.rawdata)||void 0===_?void 0:null===(m=_.owner)||void 0===m?void 0:m.id_str:null==l?void 0:null===(g=l.authorInfo)||void 0===g?void 0:g.uid})}},[l,t])}},535440:function(e,l,t){t.d(l,{J:function(){return r}});var i=t(101199),n=t(414061),o=t(601034);let r=e=>{let{index:l}=e;(0,i.useEffect)(()=>{n.emit(n.EVENT.FeedUpdateItemIndex,{scene:(0,o.yW)(),index:l})},[l])}},661063:function(e,l,t){let i;t.d(l,{ce:function(){return ej}});var n=t("629686"),o=t("402748"),r=t("811603");t("679308");var a=t("320165"),d=t("101199"),u=t("116537"),s=t("913655"),c=t("721108"),v=t("356336"),f=t("855357"),m=t("967139"),_=t("690301"),h=t("257795"),g=t("620865"),p=t("499059"),w=t("649310"),I=t("73053"),y=t("607312"),x=t("778018"),E=t("913285"),L=t("479141"),C=t("799155"),N=t("377381"),S=t("164814"),k=t("535440");t("76375"),t("490629"),t("706056"),t("968336");var b=t("431940"),T=t.n(b),R=t("59850"),D=t("198412"),P=t.n(D),j=t("330548"),A=t("682839"),M=t("104891"),F=t("677655"),V=t("764283"),U=t("816565"),O=t("426112"),W=t("426038"),B=t("553145"),z=t("147885"),H=t("618759"),q=t("558878"),G=t("601034"),K=t("995270"),Y=t("414061"),Z=t("709705"),Q=t("59412"),J=t("332009"),$=t("838468"),X=t("205030"),ee=t("240952");let el=e=>e.defaultStream;var et=t("624508");let ei={prfFirstFeedShow:{eventName:"prf_first_feed_show",params:{feed_total_duration:0,menu_total_duration:0,landing_page:"",is_landscape:0,group_id:"",vduration:0,if_invisible:"0",is_small_window:"0",real_index:0,is_cache_video:0,aweme_type:f.e.Normal,is_quick_player:0}},prfFirstFeedFirstFrameShow:{eventName:"prf_first_feed_first_frame_show",params:{feed_total_duration:0,landing_page:"",is_landscape:0,group_id:"",real_index:0,is_cache_video:0,aweme_type:f.e.Normal,is_quick_player:0}}};var en=new et.h(ei),eo=t("87897"),er=t("581999"),ea=t("38397");let ed=e=>{let l=(0,d.useContext)(s.qd);if(void 0===l)throw Error("roomStore must be used within Provider");return(0,j.oR)(l,e)},eu=()=>{try{if(p.Le.getConfig(p.gI.MarkFirstEnter)){var e,l,t,i,n,o,r,a;p.Le.setConfig(p.gI.MarkFirstEnter,!1),(0,H.DT)()?(0,q.sE)({awemeType:f.e.LiveCard}):(null===(l=performance)||void 0===l?void 0:null===(e=l.timing)||void 0===e?void 0:e.fetchStart)&&en.sendLog("prfFirstFeedShow",{feed_total_duration:Date.now()-(null===(a=performance)||void 0===a?void 0:null===(r=a.timing)||void 0===r?void 0:r.fetchStart),landing_page:(0,G.yW)(),if_invisible:(0,K.Vr)()?"1":"0",is_small_window:(0,K.QD)()?"1":"0",aweme_type:f.e.LiveCard}),en.sendLog("prfFirstFeedFirstFrameShow",{feed_total_duration:Date.now()-(null===(i=performance)||void 0===i?void 0:null===(t=i.timing)||void 0===t?void 0:t.fetchStart),landing_page:(0,G.yW)(),aweme_type:f.e.LiveCard}),((null===(n=p.Le.getConfig(p.gI.AbtestData))||void 0===n?void 0:n.prefetchFirst)||(null===(o=p.Le.getConfig(p.gI.AbtestData))||void 0===o?void 0:o.prefetchFirstServer))&&Y.emit(Y.EVENT.firstLoadMore)}}catch(e){}},es=e=>{var l,t;let{guide_text:i,enable:n,cover:o,highlight_id_str:r,highlight_type:a,video_id:d,video_url:u,duration:s="15"}=(null==e?void 0:null===(l=e.preview_expose)||void 0===l?void 0:l.preview_high_light)||{};return{guideText:i||"",enable:n||!1,cover:(null==o?void 0:null===(t=o.url_list)||void 0===t?void 0:t[0])||"",hightLightId:r||"",hightLightType:a||"",videoId:d||"",videoUrl:u||"",duration:Number(s)||15}},ec=(e,l,t)=>{let{highlight_id_str:i="",video_url:n=""}=e||{};return ea.cj.has(`${t}-${i}`)||"recommend"===l&&(0,ea.qN)(l)||"recommend"!==l&&"follow"!==l||!n?ee.kV.NORMAL:"follow"===l?ee.kV.HIGHLIGHT:"recommend"===l?ee.kV.SMALL_HIGHLIGHT:ee.kV.NORMAL},ev=(0,d.memo)(e=>{var l,t,i,o,r,u,s,c,v,f,m,_,h,g,w,I,y,x,E,L,C,N,S,k,b,D,j,H,q,G,K,et,ei,en,ea,ev;let ef,em,e_,eh,eg,ep;let{item:ew,isActive:eI,fullScreenTarget:ey,isFullScreen:ex,forceSwiperUpdate:eE,loggerOptions:eL,playNextFunc:eC,playPrevFunc:eN,swiper:eS,isFirst:ek,deleteCurrentSwiper:eb,from:eT,tab:eR,LiveChildComponent:eD,isVideoSupportMP4:eP,isShowGuide:ej,useNewUserSoundGuide:eA,index:eM,onReady:eF,isNext:eV}=e,{userInfo:eU,dispatch:eO}=(0,er.useUserInfoContext)()||{userInfo:{}},[eW,eB]=(0,d.useState)(""),ez=(0,d.useRef)(null),{isLogin:eH}=eU||{},eq=(0,eo._)(),[eG,eK]=(0,d.useState)(!1),[eY,eZ]=(0,d.useState)(J.s.getIsPageFullscreen()||!1),[eQ,eJ]=(0,d.useState)(""),[e$,eX]=(0,d.useState)(0===eM),e0=(0,R.Z)(()=>null==eO?void 0:eO({type:"updateUserInfo"})),e1=null==ew?void 0:null===(l=ew.cellRoom)||void 0===l?void 0:l.rawdata,e3=ew.rawAdData&&(0,U.hj)(ew)?(0,O.Rx)(ew):null,e2=(0,O.Gu)(ew);null==e1||null===(t=e1.scene_type_info)||void 0===t||t.commentary_type;let e4=null==e1?void 0:e1.stream_url;try{let{options:e,stream_data:l}=e4.live_core_sdk_data.pull_data,t=P()(e,"default_quality",{}),i=JSON.parse(l),n=null==i?void 0:i.data,o=el({abtestData:eq,streamUrl:e4,streamData:n,defaultStream:null==t?void 0:t.sdk_key});eg=null==i?void 0:null===(q=i.common)||void 0===q?void 0:q.sessionId,ep=null==i?void 0:null===(G=i.common)||void 0===G?void 0:G.secret_key,ef=(0,F.f)(n[o].main.flv),em=(0,F.f)(n[o].main.hls),e_=JSON.parse(null!==(ei=null==n?void 0:null===(et=n[o])||void 0===et?void 0:null===(K=et.main)||void 0===K?void 0:K.sdk_params)&&void 0!==ei?ei:{}).vbitrate,!ef&&V.kg.info("upload stream info if get flv failed",i),eh=(null==eq?void 0:eq.liveUseArea)===1?Object.keys(n).filter(e=>"ao"!==e).map(e=>{let l;try{l=JSON.parse(n[e].main.sdk_params)}catch(e){l={resolution:"0x0"}}return{quality:e,resolution:l.resolution,url:(0,F.f)(n[e].main.flv)}}):null}catch(e){V.kg.error("parse Stream error",e)}let e6="number"==typeof(null==e1?void 0:e1.owner_user_id)?T().stringify(null==e1?void 0:e1.owner_user_id):"object"==typeof(null==e1?void 0:e1.owner_user_id)?null==e1?void 0:e1.owner_user_id.valueOf():null==e1?void 0:e1.owner_user_id,e5=(null==ew?void 0:ew.libfinsertTaskId)||"0",e9=(null==ew?void 0:ew.liveReason)||"",e8=(null==e1?void 0:null===(i=e1.room_view_stats)||void 0===i?void 0:i.is_hidden)?"":null==e1?void 0:null===(o=e1.room_view_stats)||void 0===o?void 0:o.display_short,e7=1===Number(null!==(en=null==e1?void 0:null===(u=e1.ecom_data)||void 0===u?void 0:null===(r=u.room_cart_v2)||void 0===r?void 0:r.show_cart)&&void 0!==en?en:null==e1?void 0:null===(s=e1.room_cart)||void 0===s?void 0:s.show_cart),le="";try{le=null===(ea=JSON.parse(null==ew?void 0:ew.logPb))||void 0===ea?void 0:ea.impr_id}catch(e){le=""}let ll=(0,d.useCallback)(()=>{if(!eQ)eC()},[eC,eQ]),lt=(0,d.useCallback)(()=>{if(!eQ)eN()},[eN,eQ]);(0,d.useEffect)(()=>{if(eI){var e;eK(!!Number(null!==(e=(0,Z.$o)(W.LocalStorageKeys.PLAYER_NEXT_AUTOPLAY))&&void 0!==e?e:0))}},[eI]),(0,d.useEffect)(()=>{let e=Y.listen(Y.EVENT.videoPause,e=>{var l;let t=location.pathname||"",i=t.includes("/live/")&&!t.startsWith("/live/");if((null==e?!void 0:!e.isInChildRoute)||!i)null===(l=ez.current)||void 0===l||l.pause()});return()=>{null==e||e()}},[]),(0,d.useEffect)(()=>{let e=Y.listen(Y.EVENT.pageFullScreen,e=>{let{fullScreen:l}=e;eI&&(null===p.Le||void 0===p.Le||p.Le.setConfig(p.gI.IsPageFullScreen,{type:l||!1})),eZ(l||!1)});return()=>{null==e||e()}},[eI]),(0,d.useEffect)(()=>{null==eF||eF()},[]),(0,d.useEffect)(()=>{eI&&!eq.volumeBalanceControl&&(0,$.QU)()},[eI,eq]);let li=ed(e=>e.setMessageInstance),ln=ed(e=>e.destroy);(0,d.useEffect)(()=>(li(new B.v0C),()=>{ln&&ln()}),[]),(0,d.useEffect)(()=>{let e=Y.listen(Y.EVENT.LynxAutoEnterLive,e=>{let{roomId:l}=e;eB(l)});return()=>{null==e||e()}},[]);let lo={adData:e3,currentIndex:eM,isHardAd:e2,isInsertAd:null==ew?void 0:null===(v=ew.webRawData)||void 0===v?void 0:null===(c=v.insertInfo)||void 0===c?void 0:c.is_ad,anchorId:e6,roomId:null==e1?void 0:null===(m=e1.owner)||void 0===m?void 0:null===(f=m.own_room)||void 0===f?void 0:f.room_ids_str[0],webRid:null==e1?void 0:null===(_=e1.owner)||void 0===_?void 0:_.web_rid,secUid:null==e1?void 0:null===(h=e1.owner)||void 0===h?void 0:h.sec_uid,flvSrc:ef,hlsSrc:em,bitrate:e_,resolutions:eh,sessionId:eg,insertTaskId:e5,liveReason:e9,userCount:e8,cover:null==e1?void 0:null===(w=e1.cover)||void 0===w?void 0:null===(g=w.url_list)||void 0===g?void 0:g[0],episodeExtra:null==e1?void 0:e1.episode_extra,gameName:"",isEnd:(null==e1?void 0:e1.status)!==2,playMode:ec(null==e1?void 0:null===(I=e1.preview_expose)||void 0===I?void 0:I.preview_high_light,eR,null==e1?void 0:null===(E=e1.owner)||void 0===E?void 0:null===(x=E.own_room)||void 0===x?void 0:null===(y=x.room_ids_str)||void 0===y?void 0:y[0]),highLightInfo:es(e1),logParams:{enter_from_merge:ee.j4.get(eT),is_aweme_tied:eH?1:0,request_id:le,stream_type:null!==(ev=X.PY[null==e1?void 0:null===(L=e1.stream_url)||void 0===L?void 0:L.stream_orientation])&&void 0!==ev?ev:"other"},loggerOptions:eL,userName:null==e1?void 0:null===(C=e1.owner)||void 0===C?void 0:C.nickname,title:null==e1?void 0:e1.title,isLogReady:!!eH,isActive:eI,isNext:eV,fullScreenRoot:ey,isFullScreen:ex,isPageFullScreen:eY,onFullScreenChange:eE,next:eC,prev:ek?void 0:eN,sceneId:z.U[ee.mB.get(eT)],from:eT,isAutoNext:eG,swiper:eS,width:null==e1?void 0:null===(S=e1.stream_url)||void 0===S?void 0:null===(N=S.extra)||void 0===N?void 0:N.width,height:null==e1?void 0:null===(b=e1.stream_url)||void 0===b?void 0:null===(k=b.extra)||void 0===k?void 0:k.height,tab:eR,onAutoNextChange:()=>{eK(e=>(localStorage.setItem("player_nextautoplay",e?"0":"1"),!e))},ref:ez,deleteCurrentSwiper:eb,abtestData:eq,isShowCartInFeed:e7,userInfo:eU,onLoginSuccess:e0,followInfo:null==e1?void 0:null===(D=e1.owner)||void 0===D?void 0:D.follow_info,rawdata:e1,paidLiveData:null==e1?void 0:e1.paid_live_data,onLoadStart:()=>{Y.emit(Y.EVENT.pageFirstFrameLoadStart)},onLoaded:()=>{Y.emit(Y.EVENT.pageFirstFrameLoaded),eI&&!eW&&Y.emitAfterListen(Y.EVENT.showDouyinWindow,{from:"live"}),ek&&eu(),eX(!1)},onInnerText:e=>{eJ(e)},secretKey:ep,isCarnival:(null==e1?void 0:null===(j=e1.assist_label)||void 0===j?void 0:j.label_type)===82,isVideoSupportMP4:eP,roomInfo:e1,isShowGuide:ej,useNewUserSoundGuide:eA,dispatch:eO,seasonId:null==e1?void 0:null===(H=e1.episode_extra)||void 0===H?void 0:H.season_id_str,autoEnterRoomId:eW,originData:ew};return(0,d.useEffect)(()=>{if(eI){var e,l;null===(l=ez.current)||void 0===l||null===(e=l.setUserActive)||void 0===e||e.call(l,!0)}},[eI]),(0,d.useEffect)(()=>{if(eI&&eS){try{null==eS||eS.on("changeNext",ll),null==eS||eS.on("changePrev",lt)}catch(e){}return()=>{try{var e,l;null==eS||null===(e=eS.off)||void 0===e||e.call(eS,"changeNext",ll),null==eS||null===(l=eS.off)||void 0===l||l.call(eS,"changePrev",lt)}catch(e){}}}},[eI,ll,lt]),(0,Q.M)(),(0,d.useEffect)(()=>{!eI&&eX(!1)},[eI]),(0,a.jsx)(A.k,{componentName:M.l.LIVE_CARD_IN_MIX_PLAYER,children:(0,a.jsx)(eD,(0,n._)({},lo))})});var ef=t("469935"),em=t.n(ef),e_=t("466442"),eh=t("118616"),eg=t("250532"),ep=t("191825"),ew=t("624386"),eI=t.p+"media/avatar-live.6d9d24793b6e5c67.png";let ey=(0,d.forwardRef)((e,l)=>(0,a.jsxs)("svg",(0,o._)((0,n._)({width:373,height:33,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:[(0,a.jsx)("path",{d:"M365.69 20.879v9.182h-3.734V20.88h-8.387l-.306-3.184h8.693v-6.427h-3.888a47.403 47.403 0 0 1-1.591 4.224h-3.52c1.561-3.765 2.51-7.04 3.183-11.08h3.459a62.116 62.116 0 0 1-.674 3.672h3.031v-5.57h3.734v5.57h6.183v3.184h-6.183v6.427h7.009v3.184h-7.009zm-17.722-7.775h1.652c1.378 0 2.143.765 2.143 2.143V30.06h-3.734V15.34h-2.479l-1.133-3.276c3.214-2.785 4.867-6.152 5.693-9.55h3.949c-1.041 4.561-2.786 7.99-6.091 10.591zM334.592 26.266h7.346v3.06h-18.243l-.306-3.06h7.53v-3.857h-5.694l-.336-3.03h6.03v-3.03h3.673v3.03h6.029v3.03h-6.029v3.857zm0-13.713h7.162v3.061H324.43l-.306-3.06h6.795V9.4h-5.571l-.306-3.061h5.877V2.514h3.673V6.34h5.876V9.4h-5.876v3.153zm-13.499 6.03v8.356c0 1.5-1.01 2.724-2.724 2.816-1.194.062-2.081 0-3.122-.275l-.826-3.183c.795.275 1.408.336 2.142.275.582-.061.98-.367.98-.918v-6.367l-3.245.674-.52-3.306 3.765-.674v-5.479h-3.092l-.306-3.122h3.398V2.636h3.55V7.38h2.847v3.122h-2.847v4.837l2.786-.52v3.183l-2.786.581zM303.279 26.266h2.602c.275 0 .459-.184.459-.46V12.738c0-.276-.184-.46-.459-.46h-2.602v13.989zm-3.612 0v-2.938h-4.468v2.938h4.468zm0-5.969v-2.51h-4.468v2.51h4.468zm0-5.54v-2.48h-4.468v2.48h4.468zm-2.479-8.172l-.918 2.51h11.294c1.47 0 2.449.979 2.449 2.448V27c0 1.47-.979 2.45-2.449 2.45h-20.262c-1.47 0-2.449-.98-2.449-2.45V11.543c0-1.469.979-2.448 2.449-2.448h4.928l.887-2.51h-9.152l-.306-3.184h27.548v3.184h-14.019zm-5.601 19.68V12.279h-2.602c-.275 0-.459.183-.459.459v13.07c0 .275.184.459.459.459h2.602zM274.782 14.91h-15.885v1.01c0 .276.153.46.459.46h14.967c.306 0 .459-.184.459-.46v-1.01zm0-2.602v-1.01c0-.275-.153-.459-.459-.459h-14.967c-.306 0-.459.184-.459.46v1.01h15.885zm-2.938 11.02c2.051 1.683 4.775 2.693 8.907 3.428l-.857 3.122c-4.897-1.194-8.785-2.816-11.233-5.847v6.06h-3.673v-6.06c-2.173 2.786-5.693 4.622-11.325 5.877l-.827-3.152c4.071-.582 6.795-1.684 8.938-3.428h-8.203l-.306-2.816h11.723v-1.44h-7.377c-1.714 0-2.449-.979-2.449-2.448v-6.03c0-1.469.735-2.448 2.449-2.448h6.918V2.514h3.55V4.32h11.784v2.693h-11.784v1.133h7.989c1.714 0 2.449.98 2.449 2.448v6.03c0 1.47-.735 2.449-2.449 2.449h-7.407v1.439h11.692v2.816h-8.509zM208.393 5.88V2.576l6.55 2.05v3.306l-6.55-2.05zm-1.041 7.04V9.616l6.55 2.05v3.306l-6.55-2.05zm-.061 17.11a58.236 58.236 0 0 0 3.459-12.549h3.673c-.613 4.194-1.592 8.356-3.184 12.55h-3.948zM226.85 6.524h-3.735v-4.01h3.735v4.01zm0 19.253h8.141v3.183h-20.048l-.245-3.183h8.417V19.44h-6.55l-.275-3.183h6.825v-5.724h-7.162l-.276-3.183h18.764v3.183h-7.591v5.724h6.856v3.183h-6.856v6.336zM186.844 6.83h-3.795l-1.653-4.316h3.734l1.714 4.315zm10.499.948h5.479v3.184H192.17v4.346h11.448v3.183H192.69c1.408 3.122 4.928 6.091 11.571 7.959l-.98 3.611c-6.55-1.897-10.529-4.744-12.764-8.264-2.142 3.459-6.427 6.428-13.223 8.234l-.979-3.581c7.254-2.051 10.59-5.05 11.692-7.959h-10.835l-.276-3.183h11.54v-4.346h-10.499l-.275-3.184h15.824l1.898-5.264h3.918l-1.959 5.264zM163.153 21.032l-2.234-7.713h3.55l2.235 7.713h-3.551zm1.439-15.213h5.632c1.53 0 2.295.398 2.357 2.235.183 4.713.183 13.62-.245 18.15-.184 1.96-1.194 3.092-3.03 3.337-1.714.245-3.673.122-5.479-.214l-.796-3.03c1.591.336 3.275.459 4.867.244.673-.06 1.01-.398 1.071-1.071.275-4.346.337-11.509.306-16.161-.031-.337-.184-.429-.429-.429h-5.356c-.979 2.112-2.387 4.163-4.224 6.214l-1.194-4.132c2.02-2.296 3.337-5.602 3.612-8.418h3.459c-.092 1.102-.245 2.204-.551 3.275zm-10.193 12.887h-4.346v6.58c0 .276.184.46.459.46h3.428c.276 0 .459-.184.459-.46v-6.58zm0-3V9.86c0-.276-.183-.46-.459-.46h-3.428c-.275 0-.459.184-.459.46v5.846h4.346zm-1.163-9.427h2.204c1.592 0 2.449.857 2.449 2.448V26.42c0 1.592-.857 2.449-2.449 2.449h-6.428c-1.591 0-2.449-.857-2.449-2.45V8.729c0-1.592.858-2.45 2.449-2.45h.918l.704-3.764h3.337l-.735 3.765zM141.483 9.156h-3.612L136.004 3.4h3.55l1.929 5.755zm-4.653 14.11c.214.49.429.98.673 1.408.949 1.714 2.449 2.173 5.541.919l-.704 3.887c-4.439 1.438-6.275.214-7.806-2.357a9.06 9.06 0 0 1-.734-1.439c-1.99 1.316-4.224 2.327-6.673 3.03l-1.041-3.428c2.602-.734 4.775-1.775 6.551-3.06-.612-2.357-1.102-5.326-1.47-8.969h-6.335v3.398l4.254-.735v3.214l-4.254.765v6.06c0 2.572-1.255 3.919-3.643 4.133-1.408.122-2.724 0-3.765-.153l-.826-3.245c1.132.215 2.326.337 3.52.215.643-.062 1.041-.49 1.041-1.347v-4.99l-5.265.95-.674-3.214 5.939-1.01v-4.04h-5.51l-.337-3.184h5.847V7.197h-4.408l-.306-3.245h5.111c2.143 0 4.622-.275 6.642-.887V6.4c-.979.275-2.142.46-3.366.612v3.061h6.029c-.03-.582-.091-1.163-.122-1.775l-.398-5.785h3.673l.337 5.662c.03.643.092 1.286.122 1.898h8.111v3.183h-7.835c.214 2.388.52 4.438.918 6.244 1.347-1.591 2.296-3.336 2.847-5.08h3.764c-1.163 3.55-3.03 6.488-5.448 8.845zM57.768 26.633c0 1.653-.826 2.449-2.479 2.449h-6.244c-1.653 0-2.48-.796-2.48-2.449V7.625c0-1.653.827-2.448 2.48-2.448h6.244c1.653 0 2.48.795 2.48 2.448v19.008zm-7.59-1.194c0 .306.153.46.459.46h3.06c.306 0 .46-.154.46-.46V8.82c0-.306-.153-.46-.46-.46h-3.06c-.306 0-.46.154-.46.46v16.62zM37.965 6.34h3.979c1.653 0 2.357.797 2.448 2.45.276 5.478.276 12.304 0 17.875-.091 1.928-1.255 3.06-3.213 3.152-1.164.062-2.48 0-3.612-.275l-.857-3.183c1.01.245 2.112.367 3.122.275.643-.061.949-.398.98-1.01.336-4.744.244-11.019 0-15.64-.031-.338-.154-.46-.46-.46h-2.387c-.03 9.274-1.102 14.876-4.133 20.538h-3.948C33.098 23.91 34.2 19.042 34.23 9.523h-2.877l-.275-3.183h3.152V2.514h3.735V6.34zM25.384 26.633l-1.407-6.58h3.03l1.438 6.58h-3.06zm-4.59 0l-1.378-6.948h3.06l1.44 6.948h-3.123zm-13.132-.428l2.326-6.397h3.122l-2.142 6.397H7.662zm11.111.826c0 1.837-1.04 2.786-2.663 2.847-1.071.03-3-.061-4.132-.398l-.46-2.847c.797.215 2.174.276 2.756.276.55 0 .918-.337.918-.857v-10.07h3.581v11.05zM.653 13.563V10.35l6.09 1.928v3.214l-6.09-1.929zm.949-7.131V3.218L7.6 5.024v3.214l-6-1.806zM.01 29.663c1.745-3.764 2.816-7.346 3.428-10.896H7.05a45.04 45.04 0 0 1-3.183 10.896H.01zm21.793-17.66c1.53 1.836 3.887 3.244 6.642 4.315l-1.193 3.55c-4.347-1.774-7.683-4.621-9.152-7.866h-.643c-1.653 3.245-4.53 5.632-9.734 8.05l-.98-3.55c2.878-1.163 5.082-2.54 6.612-4.5H8.213l-.306-3.06h7.07c.276-.735.46-1.5.582-2.357H9.744l-.307-3.061h16.927v3.06H19.2a24.261 24.261 0 0 1-.55 2.358h9.213v3.06h-6.06z",fill:"#fff"}),(0,a.jsx)("g",{filter:"url(#title_svg__filter0_b_1538_13540)",children:(0,a.jsx)("rect",{x:75.102,y:".5",width:32,height:32,rx:8,fill:"#fff",fillOpacity:".16"})}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M90.402 9.774a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6zm-5.2 2.8a5.2 5.2 0 1 1 4.66 5.172 1.202 1.202 0 0 1-.261.028c-1.361 0-2.655.67-3.634 1.756a6.205 6.205 0 0 0-1.416 2.644H88a1.2 1.2 0 1 1 0 2.4h-4.8a1.2 1.2 0 0 1-1.2-1.2c0-1.995.85-3.973 2.184-5.451a8.043 8.043 0 0 1 2.39-1.828 5.181 5.181 0 0 1-1.373-3.521zm15.682 7.214a1.2 1.2 0 0 0-1.764-1.627l-3.952 4.282-1.917-1.917a1.2 1.2 0 0 0-1.697 1.697l2.8 2.8a1.2 1.2 0 0 0 1.73-.035l4.8-5.2z",fill:"#fff"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("filter",{id:"title_svg__filter0_b_1538_13540",x:48.435,y:-26.167,width:85.333,height:85.333,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,a.jsx)("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),(0,a.jsx)("feGaussianBlur",{in:"BackgroundImageFix",stdDeviation:13.333}),(0,a.jsx)("feComposite",{in2:"SourceAlpha",operator:"in",result:"effect1_backgroundBlur_1538_13540"}),(0,a.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_backgroundBlur_1538_13540",result:"shape"})]})})]})));var ex={container:"Uk5IjzQW",content:"Q5590xGH",title:"SJh7WSIV",subTitle:"mTTy3Wqr",list:"_iLPjxuD",buttons:"ENnZ74eP",btn:"dP2ztkQe",enter:"rubz0Ucr",noLike:"GCuXtuxe",video:"MLmubNGk",followItem:"ZlSkCYU8",avatarWrap:"GoYErIfk",avatarImgWrap:"fAevT2aE",animation:"T0Zk4ekS",avatarImg:"KtTgs8OH",liveBorder:"HZpkZhvC",liveBorderAnimation:"dtNxPgrC",liveImg:"rwV2Gg6P",userName:"fqd8q4LA",userLabel:"HklAANuQ",opacity90:"_whB824u",opacity50:"scHssrIm",opacity20:"hlJ5h6XO",hide:"Uqib5mhv",showAnimation:"vsENeJO1"},eE=e=>{var l;let{infoList:t,isActive:i,swiper:n,onPrev:o,deleteCurrentSwiper:r}=e,{isFullScreen:u=!1,isCssFullScreen:s=!1}=null!==(l=(0,d.useContext)(w.C))&&void 0!==l?l:{},{onAddFollowWidget:c,onCloseGuide:v,onShowGuide:f,onDislikeGuide:m}=(0,ew.e)({type:"follow"}),[_,h]=(0,d.useState)(!1),g=(0,d.useRef)(null),p=(0,d.useRef)(null),I=(0,d.useRef)(),y=(0,e_.D)(()=>{clearTimeout(g.current),r(),null==o||o(),v()},400,{leading:!0,trailing:!1}),x=(0,e_.D)(()=>{clearTimeout(g.current),r(),v()},400,{leading:!0,trailing:!1}),E=()=>{if(i&&I.current){var e;I.current.muted=!!Number(localStorage.getItem(W.LocalStorageKeys.PLAYER_IS_MUTE)),I.current.volume=Number(null!==(e=localStorage.getItem(W.LocalStorageKeys.PLAYER_VOLUME))&&void 0!==e?e:.3),I.current.play()}};return(0,d.useEffect)(()=>{var e,l,t;i&&f(),i&&I.current?(I.current.muted=!!Number(localStorage.getItem(W.LocalStorageKeys.PLAYER_IS_MUTE)),I.current.volume=Number(null!==(l=localStorage.getItem(W.LocalStorageKeys.PLAYER_VOLUME))&&void 0!==l?l:.3),null===(e=I.current)||void 0===e||e.play()):null===(t=I.current)||void 0===t||t.pause()},[i]),(0,d.useEffect)(()=>{if(i){(0,eg.o)({pauseCustomShortcut:!0,pauseGlobalShortcut:!0,pausePlayControlShortcut:!0},"followWidgetCard"),g.current=setTimeout(()=>{x()},15e3),p.current=setTimeout(()=>{h(!0)},200);try{null==n||n.on("changeNext",x),null==n||n.on("changePrev",y)}catch(e){}return()=>{try{var e,l;null==n||null===(e=n.off)||void 0===e||e.call(n,"changeNext",x),null==n||null===(l=n.off)||void 0===l||l.call(n,"changePrev",y)}catch(e){}clearTimeout(g.current),clearTimeout(p.current),(0,eg.m)("followWidgetCard")}}},[y,x,i]),(0,d.useEffect)(()=>{let e=Y.listen(Y.EVENT.videoPause,()=>{var e;null===(e=I.current)||void 0===e||e.pause()});return()=>{e()}},[]),(0,a.jsxs)("div",{className:em()(ex.container),children:[(0,a.jsx)("video",{loop:!0,ref:e=>{I.current=e,E()},src:"https://lf3-static.bytednsdoc.com/obj/eden-cn/ild_jw_upfbvk_lm/ljhwZthlaukjlkulzlp/follow/follow-widget-card.mp4",className:ex.video}),(0,a.jsxs)("div",{className:em()(ex.content,_?ex.showAnimation:ex.hide),children:[(0,a.jsx)("div",{className:em()(ex.title),children:(0,a.jsx)(eh.Z,{src:ey,width:373,height:33,viewBox:"0 0 373 33"})}),(0,a.jsx)("div",{className:em()(ex.subTitle),children:"便捷查看关注的人开播、作品更新等动态"}),(0,a.jsx)("div",{className:em()(ex.list),children:(t||[]).map((e,l)=>(0,a.jsxs)("div",{className:em()(ex.followItem,2===l&&ex.opacity90,3===l&&ex.opacity50,4===l&&ex.opacity20),children:[(0,a.jsxs)("div",{className:em()(ex.avatarWrap),children:[e.isLive&&(0,a.jsx)("div",{className:em()(ex.liveBorder)}),e.isLive&&(0,a.jsx)("div",{className:em()(ex.liveBorder,ex.liveBorderAnimation)}),(0,a.jsxs)("div",{className:em()(ex.avatarImgWrap,e.isLive&&ex.animation),children:[e.isLive&&(0,a.jsx)("img",{className:em()(ex.liveImg),src:eI}),e.avatarImg?(0,a.jsx)("img",{className:em()(ex.avatarImg),src:e.avatarImg}):null,e.avatarSvg?(0,a.jsx)(eh.Z,{className:em()(ex.avatarImg),src:e.avatarSvg,width:32,height:32,viewBox:"0 0 32 32"}):null]})]}),(0,a.jsx)("div",{className:em()(ex.userName),children:e.userName}),(0,a.jsx)("div",{className:em()(ex.userLabel),children:e.userLabel})]},e.userName))}),(0,a.jsxs)("div",{className:ex.buttons,children:[(0,a.jsx)("div",{className:em()(ex.btn,ex.enter),onClick:()=>{var e;null===(e=I.current)||void 0===e||e.pause(),r(),c()},children:"立即添加"}),(0,a.jsx)("div",{className:em()(ex.btn,ex.noLike),onClick:()=>{var e;null===(e=I.current)||void 0===e||e.pause(),r(),m()},children:"不感兴趣"})]})]}),(u||s)&&(0,a.jsx)(ep.I,{playPrevFunc:y,playNextFunc:x,className:em()("filter-bg")})]})};let eL=(i=null,()=>{try{if(i)return i;return(i=Promise.all([t.e("41162"),t.e("15799"),t.e("84813"),t.e("42794"),t.e("44077"),t.e("24882"),t.e("73481"),t.e("11043"),t.e("465")]).then(t.bind(t,511490)).then(e=>({default:e.LiveSliderCard}))).catch(()=>i=null),i}catch(e){}});var eC=t("59677"),eN=t("687581");let eS=e=>{let{awemeInfo:l,isActive:t}=e;(0,d.useEffect)(()=>{if(t){var e,i;let{item_id:t,task_id:n,is_ad:o,object_type:r,expose_limit:a}=null!==(i=null==l?void 0:null===(e=l.webRawData)||void 0===e?void 0:e.insertInfo)&&void 0!==i?i:{};t&&eN.oe.event.error({name:eN.Mo.AdminInsertExpose,report:{itemId:t,taskId:n,isAd:o,objectType:r,exposeLimit:a}})}},[l,t])},ek=(0,d.lazy)(()=>Promise.resolve().then(t.bind(t,861942)).then(e=>({default:e.LiveSmallWindow}))),eb=(0,d.lazy)(eL),eT=e=>{let{children:l}=e,t=(0,r._)(e,["children"]);return(0,a.jsx)(s.qd.Provider,(0,o._)((0,n._)({},t),{children:l}))},eR=(0,d.memo)(e=>{let l=(0,eo._)(),t=(0,er.useUserInfoContext)(),{from:i,videoRef:r,InnerPlayer:d,item:s}=e;return(0,u.C)(x.w3.components.video_player),(0,a.jsx)(I.Z,(0,o._)((0,n._)({},e),{isMultiInstanceScene:!0,ref:r,InnerPlayer:d,LiveSliderCard:ek,slardarInstance:C.oe,customProps:{userContext:t,abtestData:l,logParams:{video_mode:"landscape",enter_from:ee.yW.get(i),tab_name:ee.yW.get(i)},showRelatedCardEntry:!1,showRelatedCardGuide:!1,showTopicAndMusicCard:!1,showMixCard:!1,showMixCardEntry:!1,tab:ee.yW.get(i)}}))}),eD=(0,d.memo)(e=>{var l,t,i,r,f,m,_;let p=null!==(_=null==e?void 0:null===(r=e.item)||void 0===r?void 0:null===(i=r.cellRoom)||void 0===i?void 0:null===(t=i.rawdata)||void 0===t?void 0:null===(l=t.owner)||void 0===l?void 0:l.web_rid)&&void 0!==_?_:null,w=(0,eo._)(),{Currency:I}=h,{rechargeConfig:y}=(0,g.K)(),E=(0,d.useMemo)(()=>(0,s.Lj)(null!=p?p:"-1")(),[p]);(0,u.C)(x.w3.components.live_player);let C=(0,d.useMemo)(()=>{var l;return(0,o._)((0,n._)({},e),{loggerOptions:(0,n._)({scene:c.C.liveSlider},null!==(l=null==e?void 0:e.loggerOptions)&&void 0!==l?l:{})})},[e]);return(null==w?void 0:null===(f=w.previewEnterRoom)||void 0===f?void 0:f.value)===v.PreviewEnterRoomLib.Alpha||(null==w||null===(m=w.previewEnterRoom)||void 0===m||m.value,v.PreviewEnterRoomLib.Beta),e.tab,(0,a.jsx)(I.Provider,{value:y,children:(0,a.jsxs)(eT,{value:E,children:[(0,a.jsx)(L.p,{isActive:null==e?void 0:e.isActive}),(0,a.jsx)(d.Suspense,{children:(0,a.jsx)(ev,(0,o._)((0,n._)({},C),{LiveChildComponent:eb}))})]},p)})}),eP=e=>{(0,eo._)();let{fullScreenTarget:l}=(0,d.useContext)(w.C),{changeSplashAdStatus:t}=(0,N.K)(e=>{let{changeSplashAdStatus:l}=e;return{changeSplashAdStatus:l}}),{item:i,isActive:r,isFirst:a,isNext:s}=e;if((0,u.C)(x.w3.components.mixplayer),r){let e=!!(r&&(null==i?void 0:i.awemeType)===f.e.LiveCard);p.Le.setConfig(p.gI.HasLiveContent,e)}(0,d.useLayoutEffect)(()=>{a&&(i.awemeType!==f.e.Normal||!(0,m.p)(i))&&(null==t||t(_.QB.Normal))},[a,i]),(0,eC.I)({isActive:r,awemeInfo:i}),eS({isActive:r,awemeInfo:i}),(0,S.u)({isActive:r,awemeInfo:i,index:null==e?void 0:e.index}),(0,k.J)({index:null==e?void 0:e.index});let c=(0,o._)((0,n._)({},e),{fullScreenTarget:l,__is_replaced_live__:null==i?void 0:i.__is_replaced_live__});return(null==i?void 0:i.awemeType)===f.e.FollowWidgetCard?d.createElement(eE,{infoList:i.infoList,isActive:e.isActive,swiper:e.swiper,deleteCurrentSwiper:e.deleteCurrentSwiper,onNext:e.playNextFunc,onPrev:e.playPrevFunc}):(null==i?void 0:i.awemeType)===f.e.LiveCard?(r&&(0,y.AN)(),s&&(window.nextPlayer=null),d.createElement(eD,c)):d.createElement(eR,c)},ej=e=>(0,a.jsx)(E.k,{componentName:"MixPlayer",children:(0,a.jsx)(eP,(0,n._)({},e))})},240952:function(e,l,t){t.d(l,{j4:function(){return o},kV:function(){return a},mB:function(){return r},x_:function(){return i},yW:function(){return n}}),t(490629);var i={recommend:"recommend",follow:"follow",friend:"friend",topic:"topic"};let n=new Map([["recommend","recommend"],["follow","follow"],["friend","friend"],["topic","topic"]]),o=new Map([["recommend","web_homepage_hot"],["follow","web_homepage_follow"],["friend","web_homepage_friend"],["topic","web_homepage_topic"]]),r=new Map([["recommend","RECOMMEND"],["follow","FOLLOW"],["friend","FRIEND"],["topic","TOPIC"]]);var a={NORMAL:"normal",HIGHLIGHT:"highlight",SMALL_HIGHLIGHT:"small_highlight"}},502270:function(e,l,t){t.d(l,{b:function(){return T}});var i=t("629686");t("490629"),t("968336"),t("374954"),t("228983"),t("759943");var n=t("506887"),o=t("101199"),r=t("121998"),a=t("732979"),d=t.n(a),u=t("426038"),s=t("333047"),c=t("855357"),v=t("396868"),f=t("335924"),m=t("499059"),_=t("578272"),h=t("810069"),g=t("409250"),p=t("857800"),w=t("709705"),I=t("618759"),y=t("454604"),x=t("462208"),E=t("365169"),L=t("797885"),C=t("701650"),N=t("3653");t("117232"),t("527553");let S=()=>{let e=m.Le.getConfig(m.gI.itemIdToVideoPreferData)||{},l={fsn:[],min:[],show:[],skip:[],head:[]};return Object.keys(e).forEach(t=>{Object.keys(e[t].interaction).forEach(i=>{"dislike"===i&&l.skip.push({gid:t,user_act:k(e[t].interaction),s_ts:String(e[t].s_ts||0),p_t_a:String(e[t].p_t_a||0),aid:String(e[t].aid),v_t:String(e[t].v_t),timestamp:String(e[t].interaction.dislike||0)}),"follow"===i&&l.head.push({gid:t,user_act:k(e[t].interaction),s_ts:String(e[t].s_ts||0),p_t_a:String(e[t].p_t_a||0),aid:String(e[t].aid),v_t:String(e[t].v_t),timestamp:String(e[t].interaction.follow||0)}),e[t].interaction[i]&&l[i]&&l[i].push({gid:t,user_act:k(e[t].interaction),s_ts:String(e[t].s_ts||0),p_t_a:String(e[t].p_t_a||0),aid:String(e[t].aid),v_t:String(e[t].v_t),timestamp:String(e[t].interaction[i]||0)})})}),Object.keys(l).forEach(e=>{l[e].sort((e,l)=>{let t=Number(null==e?void 0:e.timestamp)||0;return(Number(null==l?void 0:l.timestamp)||0)-t})}),l},k=e=>String(parseInt([Number(!!e.dislike)||0,Number(!!e.clickComment)||0,Number(!!e.fav)||0,Number(!!e.click)||0,Number(!!e.head)||0,Number(!!e.follow)||0,Number(!!e.share)||0,Number(!!e.comment)||0,Number(!!e.lk)||0,Number(!!e.fsn)||0].join(""),2)),b={MIN:3e3,MAX:3e4};function T(e){let{abTestData:l,isLogin:t,refCancelTabFeedFunc:a,retryFuncRef:k,danmakuSwitchStatus:T,initialRecommendAwemeList:R}=e,[D,P]=(0,o.useState)(0),[j,A]=(0,o.useState)(!1),M=(0,o.useRef)((null==R?void 0:R.length)?2:1),F=(0,o.useRef)([]),V=(0,o.useRef)(""),{isMainland:U}=(0,E.Iq)(e=>{let{isMainland:l}=e;return{isMainland:l}}),O=(0,o.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;M.current=e},[]),W=(0,o.useRef)(0),B=(0,o.useRef)(0),z=(0,o.useRef)(0);return{fetchSlideList:(0,o.useCallback)(async e=>{var o,E,R,D,j,O,H,q,G,K,Y,Z,Q,J,$,X,ee,el,et;let ei={},{mode:en,pull_type:eo,refresh_type:er,reqCount:ea}=e,ed=r.parse((0,f.ht)()),eu=(null===(o=m.Le.getConfig(m.gI.FreeAdStatus))||void 0===o?void 0:o.status)||0,es=m.Le.getConfig(m.gI.RecommendReqCount)||0,ec=(0,I.DT)(),ev=8===eo,ef={refreshIndex:ev?1:_.B.prefetchFromClientUsed?++M.current:M.current++,count:ev?1:10,tagId:"",cancelCb:a,awemePcRecRawData:{},globalwid:null===(E=(0,h.Es)())||void 0===E?void 0:E.globalwid,pullType:eo||("loadmore"===en?2:0),refresh_type:er,minWindow:m.Le.getConfig(m.gI.IsMiniWin)||!1,plugBlock:(null===(R=m.Le.getConfig(m.gI.AdBlock))||void 0===R?void 0:R.needFilterAd)||!1,launchLiveFilters:null==F?void 0:F.current,freeRight:Number(1===eu||2===eu),useProtobuf:!1,usePassThrough:!1,viewCount:es,reqCount:ea},em=m.Le.getConfig(m.gI.AwemePcRecRawData)||{},e_={};e_=S(),em.newVideoPrefer=e_;let eh=(0,x.Sp)();em.is_client=(0,I.DT)(),em.ff_danmaku_status=1;let eg=null===(D=m.Le.getConfig(m.gI.DanmakuSetting))||void 0===D?void 0:D.isOpen;em.danmaku_switch_status=(null!=eg?eg:T)?1:0,em.is_dash_user=g.Q.getItem({sKey:u.CookieKeys.isDashUser})||0,(null==(em=(0,i._)({},em,eh))?void 0:em.newVideoPrefer)&&delete em.newVideoPrefer,ef.awemePcRecRawData=em,ef.awemePcRecRawData.related_recommend=1,g.Q.getItem({sKey:u.CookieKeys.RechargeFlag})&&t?ef.awemePcRecRawData.top_up_user=1:ef.awemePcRecRawData.top_up_user=void 0,ec&&(ef.awemePcRecRawData.min_window=ef.minWindow?1:0),!U&&!(null===(j=navigator)||void 0===j?void 0:j.language.startsWith("zh"))&&(ef.needTranslation=1),n.z.markStart("recommend_csr_fetch_data",{once:!0});let ep=3e4;if((null==l?void 0:null===(O=l.recommendFeed)||void 0===O?void 0:O.v2)&&W.current){let e=(null==l?void 0:null===(K=l.recommendFeed)||void 0===K?void 0:K.alpha)||.125,t=(null==l?void 0:null===(Y=l.recommendFeed)||void 0===Y?void 0:Y.beta)||.25,i=(null==l?void 0:null===(Z=l.recommendFeed)||void 0===Z?void 0:Z.K)||4;B.current&&z.current?(z.current=t*Math.abs(W.current-B.current)+(1-t)*z.current,B.current=e*W.current+(1-e)*B.current):(B.current=W.current,z.current=W.current/2),ep=B.current+i*z.current}if(ef.options={options:{timeout:ep}},null==l?void 0:null===(H=l.recommendFeed)||void 0===H?void 0:H.errorBoundary){let e=(null==l?void 0:null===(Q=l.recommendFeed)||void 0===Q?void 0:Q.maxTimeout)||b.MAX,t=(null==l?void 0:null===(J=l.recommendFeed)||void 0===J?void 0:J.minTimeout)||b.MIN;ef.options={options:{timeout:Number.isFinite(ep)?Math.max(t,Math.min(e,ep)):e}}}ei=await (0,C.NN)(ef),n.z.markEnd("recommend_csr_fetch_data",{once:!0}),m.Le.setConfig(m.gI.AwemePcRecRawData,{videoPrefer:{fsn:[],like:[],halfMin:[],min:[]},seo_info:document.referrer,ug_info:(0,f.Rs)("ug_source")}),(!(null==ei?void 0:ei.awemeList)||(null==ei?void 0:null===(q=ei.awemeList)||void 0===q?void 0:q.length)===0)&&(N.Z.sendLog("feedServerError",{status_code:null==ei?void 0:ei.statusCode,log_id:null==ei?void 0:ei.logPb,refresh_index:M.current,is_retry:0,http_code:null==ei?void 0:ei.httpCode,timeout:ep,is_first_failed:1}),(null==l?void 0:null===($=l.recommendFeed)||void 0===$?void 0:$.retry)&&(ef.options={options:{timeout:b.MAX}},(!(null==(ei=await (0,C.NN)(ef))?void 0:ei.awemeList)||(null==ei?void 0:null===(X=ei.awemeList)||void 0===X?void 0:X.length)===0)&&N.Z.sendLog("feedServerError",{status_code:null==ei?void 0:ei.statusCode,log_id:null==ei?void 0:ei.logPb,refresh_index:M.current,is_retry:1,http_code:null==ei?void 0:ei.httpCode}))),(null==ei?void 0:ei.consumerTime)&&Number.isFinite(null==ei?void 0:ei.consumerTime)&&(W.current=null==ei?void 0:ei.consumerTime);let{statusCode:ew,hasMore:eI,awemeList:ey=[],logPb:ex,httpCode:eE}=ei;if(0===ey.length?ew!==s.ERROR_CODE.ERROR_CANCEL&&A(!0):(!ev&&m.Le.setConfig(m.gI.RecommendReqCount,es+ey.length),A(!1)),ew===s.ERROR_CODE.ERROR_CANCEL)return{cancel:!0};P(ew);let eL=(0,y._)(ey,t);if("refresh"===en&&ed.vid&&ed.vid!==(null===(G=ey[0])||void 0===G?void 0:G.awemeId)&&(v.F.info("视频无法查看,请浏览其他精彩内容"),(0,f.U$)(["vid","previous_page"])),V.current=ex,(null==eL?void 0:eL.length)<3&&"refresh"===en&&!(0,p.B)()&&(null===(ee=k.current)||void 0===ee||ee.call(k)),1===ef.refreshIndex&&ed.live_insert_type){let e=[];null==eL||eL.forEach(l=>{var t,i,n,o;(null==l?void 0:l.awemeType)===c.e.LiveCard&&(null==l?void 0:null===(i=l.cellRoom)||void 0===i?void 0:null===(t=i.rawdata)||void 0===t?void 0:t.id_str)&&e.push(null==l?void 0:null===(o=l.cellRoom)||void 0===o?void 0:null===(n=o.rawdata)||void 0===n?void 0:n.id_str)});let l=(0,w.$o)(u.LocalStorageKeys.LiveLandingIds),t=d()().format("YYYYMMDD");(null==l?void 0:l.date)===t?(0,w.qQ)(u.LocalStorageKeys.LiveLandingIds,{date:null==l?void 0:l.date,ids:(el=[...(null===(et=l.ids)||void 0===et?void 0:et.split(","))||[],...e],el.join(","))}):(0,w.qQ)(u.LocalStorageKeys.LiveLandingIds,{date:t,ids:null==e?void 0:e.join(",")}),(0,f.U$)(["live_insert_type"])}return 1!==M.current&&(null==eL||eL.forEach(e=>{var l,t,i,n,o;if(e.awemeType===c.e.LiveCard&&(null==e?void 0:null===(l=e.cellRoom)||void 0===l?void 0:l.rawdata)){let l=e.cellRoom.rawdata;L.$.prefetch302({streamPluginConfig:{enable:!0,streamData:{h264PullData:null===(i=l.stream_url)||void 0===i?void 0:null===(t=i.live_core_sdk_data)||void 0===t?void 0:t.pull_data,h265PullData:null===(o=l.additional_stream_url)||void 0===o?void 0:null===(n=o.live_core_sdk_data)||void 0===n?void 0:n.pull_data},useLocalQuality:!0}})}})),{statusCode:ew,hasMore:eI,data:eL,logPb:ex,httpCode:eE}},[l,t]),statusCode:D,refRefreshIndex:M,isListError:j,setIsListError:A,setRefreshIndex:O}}},3653:function(e,l,t){var i=t(639249);l.Z=i.Z},701650:function(e,l,t){let i;t.d(l,{A:function(){return x},NN:function(){return k},Nu:function(){return N}});var n=t(629686),o=t(402748);t(362051),t(112459),t(759943),t(240148),t(679308),t(190932),t(808483),t(126159),t(100832),t(825666),t(943281),t(82726),t(76375);var r=t(121998),a=t(732979),d=t.n(a),u=t(30995),s=t(855357),c=t(528937),v=t(66948),f=t(426038),m=t(618759),_=t(335924),h=t(409250),g=t(709705),p=t(732199),w=t(552698),I=t(494729);let{COMMON_SEARCH_PARAMS:y}=u;function x(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{aweme_list:t=[],status_code:i,log_pb:n,http_code:o}=e||{},{filterLiveInClient:r=!1}=l||{},a=t;return(0,m.DT)()&&r&&(a=t.filter(e=>(null==e?void 0:e.aweme_type)!==s.e.LiveCard)),{statusCode:i,hasMore:!0,awemeList:(0,p.TN)({awemeList:a||[],logPb:n&&JSON.stringify(n)}),logPb:n&&JSON.stringify(n),httpCode:o}}let E=e=>{let l="";if(e){var t;let i=null==e?void 0:null===(t=e.request)||void 0===t?void 0:t.search,n=null==i?void 0:i.match(/vid=([0-9]+)?/);(null==n?void 0:n[1])&&(l=null==n?void 0:n[1])}else{let e=r.parse((0,_.ht)());(null==e?void 0:e.vid)&&(l=null==e?void 0:e.vid)}return l},L=e=>{var l;let t="",i=e?null==e?void 0:null===(l=e.request)||void 0===l?void 0:l.search:(0,_.ht)(),n=r.parse(i);return(null==n?void 0:n.live_insert_type)&&(t=null==n?void 0:n.live_insert_type),t},C=(e,l)=>{var t;let i="",n="",o=l?null==l?void 0:null===(t=l.request)||void 0===t?void 0:t.search:(0,_.ht)(),a=r.parse(o);return a.ug_source&&a.creative_id&&1===e&&(i=a.ug_source,n=a.creative_id),{ug_source:i,creative_id:n}};async function N(e,l){let{pullType:r,tagId:a="",count:d=10,refreshIndex:u=1,customConfig:s={},globalwid:c="",awemePcRecRawData:v={},options:g={},cancelCb:N={current:()=>{}},minWindow:S,launchLiveFilters:k,freeRight:b=0,viewCount:T=0,refresh_type:R,useProtobuf:D=!1,usePassThrough:P=!1,share_aweme_id:j,plugBlock:A=!1,needTranslation:M,reqCount:F}=e;v.is_client=(0,m.DT)(l),v.is_xigua_user=(0,_.CY)("xigua_webid")?1:0,D&&(g=(0,o._)((0,n._)({},g),{protobufDecode:async e=>{!i&&(i=await t.e("99077").then(t.t.bind(t,583193,23)));let l=i.com.ss.ugc.aweme.aweme_v2_feed_response,n=l.decode(new Uint8Array(e)),o=l.toObject(n),r=Date.now();(0,p.Pb)(o);let a=Date.now();return w.Z.sendLog("protobufPackParse",{duration:a-r}),o},useProtobuf:!0}));let V="",U=h.Q.getItem({sKey:f.CookieKeys.FeedCacheData,ctx:l});(null==U?void 0:U.awemeId)&&(V=null==U?void 0:U.awemeId);let O=(0,I.g8)(P?"/aweme/v2/web/feed/":"/aweme/v1/web/tab/feed/",(0,n._)((0,o._)((0,n._)((0,o._)((0,n._)({},y),{filterGids:V,tag_id:a,share_aweme_id:1===u?E(l)?E(l):j:"",live_insert_type:L(),pc_launch_live_filters:k,count:d,refresh_index:u,video_type_select:1,aweme_pc_rec_raw_data:JSON.stringify(v),globalwid:c,pull_type:r,refresh_type:R,min_window:S?1:0,free_right:b,view_count:T}),F?{req_count:F}:{}),{plug_block:A?1:0,need_translation:M}),C(u,l)),l,e=>x(e,s),g,e=>{var l;return 0===e.statusCode&&(null===(l=e.awemeList)||void 0===l?void 0:l.length)===0},N),{result:W}=await O;return W}let S=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=await c.get({key:v.TccKey.CommonSetting,defaultValue:v.TCC_DEFAULT_VALUE_MAP.get(v.TccKey.CommonSetting)});try{e.customConfig?e.customConfig.filterLiveInClient=l.clientFilterLiveInRecommend||!1:e.customConfig={filterLiveInClient:l.clientFilterLiveInRecommend||!1}}catch(e){}if((null==e?void 0:e.refreshIndex)===1){let l=r.parse((0,_.ht)());if(null==l?void 0:l.live_insert_type){let l=(0,g.$o)(f.LocalStorageKeys.LiveLandingIds),t=d()().format("YYYYMMDD");(null==l?void 0:l.date)===t&&(e.launchLiveFilters=null==l?void 0:l.ids)}}};async function k(e){var l,t,i;arguments.length>1&&void 0!==arguments[1]&&arguments[1];let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,{refreshIndex:o}=e;await S(e);let r=await N(e,n);return 1===o&&(null===(l=r.awemeList)||void 0===l?void 0:l.length)>0&&(null===(i=r.awemeList[0])||void 0===i?void 0:null===(t=i.status)||void 0===t?void 0:t.isDelete)&&(r.awemeList=r.awemeList.slice(1)),r}},147885:function(e,l,t){t.d(l,{J:function(){return n},U:function(){return i}});var i={RECOMMEND:253,253:"RECOMMEND",FOLLOW:254,254:"FOLLOW"},n={TEXTANDICON:1,1:"TEXTANDICON",IMG:2,2:"IMG",AVATAR:3,3:"AVATAR"}},990391:function(e,l,t){t.d(l,{P:function(){return h}});var i=t("320165"),n=t("101199"),o=t("469935"),r=t.n(o),a=t("618759"),d=t("915821"),u=t("879802"),s=t("629686"),c=t("402748");let v=(0,n.forwardRef)((e,l)=>(0,i.jsx)("svg",(0,c._)((0,s._)({width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,i.jsx)("path",{d:"M17.448 17.448a1.886 1.886 0 0 1-2.668 0L9 11.668l-5.78 5.78A1.886 1.886 0 1 1 .552 14.78L6.332 9 .552 3.22A1.886 1.886 0 1 1 3.22.552L9 6.332l5.78-5.78a1.886 1.886 0 1 1 2.668 2.668L11.668 9l5.78 5.78a1.886 1.886 0 0 1 0 2.668z",fill:"#fff"})})));var f=t("547641"),m=t("316213"),_=t("176449");let h=e=>{let{onClick:l,isClientMiniWin:t,isMiniWin:n,className:o,isBackSvg:s=!1}=e,c=(0,a.DT)()&&(0,d.y)((0,a.FJ)().awemePcClient,">=","5.4.0");return(0,i.jsx)("div",{className:r()(f.default.container,"isDark",o,{[f.default.hide]:t||n},c&&f.default.clientHomeStyleWrap),onClick:l,children:(0,i.jsxs)("div",{className:f.default.wrapper,children:[(0,i.jsx)("div",{className:f.default.circle}),s||c?(0,i.jsx)(m.z,{className:f.default.back,svg:(0,i.jsx)(u.Z,{style:{fontSize:"24px"}})}):(0,i.jsx)(_.Z,{src:v,className:f.default.close,viewBox:"0 0 18 18"})]})})}},646451:function(e,l,t){t.r(l),t.d(l,{default:function(){return T}});var i=t("629686");t("490629");var n=t("320165"),o=t("101199"),r=t("469935"),a=t.n(r),d=t("72430"),u=t("618759"),s=t("915821"),c=t("414061"),v=t("391302"),f=t("283172"),m=t("115874"),_=t("714102"),h=t("121237"),g=t("661812"),p=t("990391"),w=t("793571"),I=t("499059"),y=t("687875"),x=t("649310"),E=t("236121");let L=(e,l,t)=>{var i;let[n,r]=(0,o.useState)(!0),[a,d]=(0,o.useState)(!1),{handleHiddenLog:u}=(0,E.s)(),{isCssFullScreen:s,isFullScreen:v}=(0,o.useContext)(x.C),[f,m]=(0,o.useState)(null===(i=I.Le.getConfig(I.gI.IsInLookMiniModal))||void 0===i?void 0:i.isInMiniModal),_=(0,o.useRef)(null),h=(0,o.useRef)(!1),{run:g}=(0,w.Z)(()=>{r(!0)},500,[],{trailing:!1,leading:!0}),{run:p}=(0,w.Z)(async()=>{r(h.current||!1)},3e3),L=()=>{h.current=!0},C=()=>{h.current=!1};return(0,o.useEffect)(()=>c.listen(c.EVENT.syncInteraction,()=>{var e;m(null===(e=I.Le.getConfig(I.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal)}),[]),(0,o.useEffect)(()=>{var e,t,i,n,o,r,a;if(!(s||v)||!l||f)return;let d=null!==(a=null==l?void 0:l.innerContainer)&&void 0!==a?a:null==l?void 0:null===(e=l.config)||void 0===e?void 0:e.el,u=(null==d?void 0:null===(t=d.closest)||void 0===t?void 0:t.call(d,".basePlayerContainer"))||(null==l?void 0:null===(n=l.root)||void 0===n?void 0:null===(i=n.closest)||void 0===i?void 0:i.call(n,".basePlayerContainer"));if(!!u)return u.addEventListener("mousemove",g),u.addEventListener("mousemove",p),null===(o=_.current)||void 0===o||o.addEventListener("mouseenter",L),null===(r=_.current)||void 0===r||r.addEventListener("mouseleave",C),()=>{var e,l;u.removeEventListener("mousemove",g),u.removeEventListener("mousemove",p),null===(e=_.current)||void 0===e||e.removeEventListener("mouseenter",L),null===(l=_.current)||void 0===l||l.removeEventListener("mouseleave",C)}},[s,v,l,f]),(0,o.useEffect)(()=>{if(!!(s||v)&&!f)r(!0),h.current=!1,t&&p()},[t,e,s,v,f]),(0,o.useEffect)(()=>{d((s||v)&&!f&&n)},[s,v,n,f]),{isShowExtra:a,isCssFullScreen:s,isFullScreen:v,extraRef:_,handleExitFullscreen:()=>{s?c.emit(c.EVENT.pageFullScreen,{fullScreen:!1,playerId:null==l?void 0:l.playerId}):null==l||l.exitFullscreen()},searchBarProps:{onHistoryClick:e=>{let{text:l}=e.currentTarget.dataset;return u(l)},onSearchClick:e=>u(e),onInputKeyDown:(e,l)=>{if("Enter"===(0,y.CS)(e))return u(l)}}}};var C=t("36897"),N=t("331198"),S=t("37285"),k=t("365169"),b=t("452154"),T=e=>{var l;let{scene:t,awemeInfo:r,abtestData:w,userInfo:I,isClientMiniWin:y,isMiniWin:x,isInnerFeed:E,isActive:T,player:R,fullScreenTarget:D}=e,{awemeFeed:P}=(0,C.j)(),{supportAiTop1:j}=(0,k.Iq)(e=>{let{supportAiTop1:l}=e;return{supportAiTop1:l}}),A=P.useValue("modalAwemeInfo",Boolean),M=P.useValue("feedType"),{isShowExtra:F,extraRef:V,searchBarProps:U,handleExitFullscreen:O}=L(r,R,T),W=(0,o.useRef)(null),B=(0,o.useRef)(A),[z,H]=(0,o.useState)(!1),q=(0,u.DT)()&&(0,s.y)((0,u.FJ)().awemePcClient,">=","5.4.0"),G=(0,b.V1)(),[K,Y]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{H(!A&&B.current),B.current=A},[A]),(0,o.useEffect)(()=>{if(!A&&W.current){var e;let l=null===(e=W.current)||void 0===e?void 0:e.aweme;c.emit(c.EVENT.postCurVideoInfo,{awemeId:l.awemeId,groupId:l.groupId,scene:W.current.scene,suggestWords:null==l?void 0:l.suggestWords})}},[A]),(0,o.useEffect)(()=>{!A&&(W.current={aweme:r,scene:t})},[r,A,t]),(0,o.useEffect)(()=>{if(R&&T){var e;let l=R.getPlugin("ImmersiveSwitchSettingPlugin");(null==l?void 0:null===(e=l.config)||void 0===e?void 0:e.isOn)?Y(!0):K&&Y(!1);let t=e=>{Y(e.isOn)};return R.on(S.B.ImmersiveSwitchChange,t),()=>R.off(S.B.ImmersiveSwitchChange,t)}},[R,T,E]),(0,n.jsxs)("div",{className:a()(f.default.extraTL,"isDark",{[f.default.extraShow]:F,[f.default.clientHomeStyleWrap]:q}),ref:V,children:[A?(0,n.jsx)(N.N,{exitTextProps:{getCurrentTab:()=>M,modalEnterFrom:t,isSelf:!1,uidEquals:(null==r?void 0:null===(l=r.authorInfo)||void 0===l?void 0:l.uid)===(null==I?void 0:I.uid),awemeInfo:r},onHandleReturn:()=>{P.dispatch("modalAwemeInfo",null),(0,v.sF)()&&O()}}):(0,n.jsx)(p.P,{onClick:O,isMiniWin:x,isClientMiniWin:y}),(0,n.jsx)("div",{className:a()(f.default.searchCt,{[f.default.hidden]:K}),children:(()=>{if((null==w?void 0:w.aiSearchAiInput)&&(null==w?void 0:w.aiSearchInputMiddleNew)&&j&&!G)return(0,n.jsx)(m.default,(0,i._)({customProps:{isFullScreenShow:!0,isSmoothInnerFeed:A||z},userInfo:I,abTestData:w,playerProps:{awemeInfo:r,scene:t,fullScreenScene:d.lT.FullScreen},fullScreenTarget:D},U));if(!(null==w?void 0:w.aiSearchAiInput)&&(null==w?void 0:w.aiSearchInputMiddleNew)&&j&&!G)return(0,n.jsx)(_.E1,(0,i._)({customProps:{isFullScreenShow:!0,isSmoothInnerFeed:A||z},userInfo:I,abTestData:w,playerProps:{awemeInfo:r,scene:t,fullScreenScene:d.lT.FullScreen}},U));if((null==w?void 0:w.aiSearchAiInput)&&!(null==w?void 0:w.aiSearchInputMiddleNew)&&j&&!G)return(0,n.jsx)(h.E1,(0,i._)({customProps:{isFullScreenShow:!0,isSmoothInnerFeed:A||z},userInfo:I,abTestData:w,playerProps:{awemeInfo:r,scene:t,fullScreenScene:d.lT.FullScreen},fullScreenTarget:D},U));else return(0,n.jsx)(g.default,(0,i._)({customProps:{isFullScreenShow:!0,isSmoothInnerFeed:A||z},userInfo:I,abTestData:w,playerProps:{awemeInfo:r,scene:t,fullScreenScene:d.lT.FullScreen}},U))})()})]})}},479141:function(e,l,t){t.d(l,{p:function(){return f}}),t(490629),t(706056);var i=t(320165),n=t(101199),o=t(56924),r=t(103680),a=t(414061),d=t(391302),u=t(622005),s=t(310383),c=t(913285),v=t(563142);let f=e=>{let{log:l,isFromLynx:t,onCloseLynx:f,removeHideInLynxClassName:m,setHideInLynxClassName:_,showWindowByWebWhenLynx:h}=(0,v.H)(),{isActive:g=!0}=e||{},[p,w]=(0,n.useState)(t()),I=(0,s.N)(),y=p&&g&&t(),x=async e=>{var t;l("LynxEmbedPlugin onShowDouyinWindow",e);let{data:i}=await r.invoke("getLynxInfo");if((null===(t=i.url)||void 0===t?!void 0:!t.includes("/root/live"))||(null==e?void 0:e.from)!=="live")w(!1),(null==e?void 0:e.from)==="live"&&h(),f("self")};return((0,o.C)(()=>{if(y){let e=a.listen(a.EVENT.showDouyinWindow,x);return()=>{e()}}return()=>{}},[y]),(0,o.C)(()=>{w(t())},[g]),y)?(_(),(0,d.sF)())?null:(0,i.jsx)(c.k,{componentName:"LynxEmbedPlugin",Slardar:I,children:(0,i.jsx)("embed",{id:"plugin-punch-hole-1","ttplugin-id":"plugin-punch-hole-1",type:"ttplugin/v1","data-layer-type":"punch-hole",className:u.default.LynxEmbedPlugin})}):(m(),null)}},544642:function(e,l,t){t.d(l,{B:function(){return i}});var i={RECOMMEND:"recommend",FOLLOW:"follow",FRIEND:"friend",TOPIC:"topic"}},941976:function(e,l,t){t.d(l,{JA:function(){return N},zg:function(){return S}});var i=t("629686"),n=t("402748");t("706056"),t("374954"),t("490629"),t("932651"),t("679308");var o=t("101199"),r=t("426038"),a=t("855357"),d=t("939165"),u=t("709705"),s=t("601034"),c=t("138899"),v=t("806904"),f=t("414061"),m=t("499059"),_=t("618759"),h=t("600767"),g=t("36757"),p=t("624508"),w=new p.h({clickPreviousVideo:{eventName:"click_previous_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",click_from:"click_button",is_small_window:"0",play_material:"video"}},clickNextVideo:{eventName:"click_next_video",params:{author_id:"",group_id:"",log_pb:"",enter_from:"",previous_page:"",click_from:"click_button",is_small_window:"0",play_material:"video"}},feedRequest:{eventName:"feed_request",params:{enter_from:"",is_first:0,is_click:0,is_auto_play:0,unread_feed_nums:0}},feedRequestResponse:{eventName:"feed_request_response",params:{enter_from:"",is_first:0,video_count:0,duration:0,is_success:0,is_click:0,is_auto_play:0,live_position:-1,unread_feed_nums:0,is_retry:0,http_code:0,log_id:"",current_list_vid:""}},feedSlideBlocked:{eventName:"feed_slide_blocked",params:{duration:0,count:0,enter_from:""}}}),I=t("544642"),y=t("94109"),x=t("37821"),E=t("205030");function L(){let e=(0,u.$o)(r.LocalStorageKeys.PLAYER_NEXT_AUTOPLAY);return Number(null!=e?e:0)}let C=Object.keys(I.B).map(e=>I.B[e]),N=e=>{let{refCancelTabFeedFunc:l,setAwemeInfoList:t,fetchSlideList:o,fromTab:r,cb:a}=e;(async()=>{var e,d,u,v;null==l||null===(e=l.current)||void 0===e||e.call(l),t([]);let f=0;C.includes(r)&&(f=new Date().getTime(),w.sendLog("feedRequest",{enter_from:(0,s.yW)(),is_first:0,is_click:1,is_auto_play:L()}));let m=await o({mode:"refresh"});C.includes(r)&&w.sendLog("feedRequestResponse",(0,n._)((0,i._)({enter_from:(0,s.yW)(),is_first:0,video_count:null===(d=m.data)||void 0===d?void 0:d.length,duration:new Date().getTime()-f,is_success:0===m.statusCode?1:0,is_click:1,is_auto_play:L()},(0,c.p0)(null==m?void 0:m.data)),{is_retry:(null==m?void 0:m.isRetry)||0,http_code:null==m?void 0:m.httpCode,log_id:null==m?void 0:m.logPb,current_list_vid:null==m?void 0:null===(v=m.data)||void 0===v?void 0:null===(u=v.map)||void 0===u?void 0:u.call(v,e=>null==e?void 0:e.awemeId)})),0===m.statusCode&&m.data&&t(m.data),null==a||a()})()},S=e=>{let{swiper:l,awemeInfoList:t,setAwemeInfoList:p,swiperCallBack:N,fetchSlideList:S,fromTab:k,lastItemCb:b,abTestData:T={},initialRecommendAwemeList:R,initialRecommendAwemeListPromise:D,maxLimit:P,enableSlideBlockedLog:j=!1}=e,A=(0,o.useRef)(!1);(0,o.useRef)(!1);let M=(0,o.useRef)([]),F=(0,o.useRef)(!1),V=(0,o.useRef)(0),{markStart:U,markEnd:O}=function(e){let l=(0,o.useRef)(0),t=(0,o.useRef)(0),i=(0,o.useRef)(!1),n=(0,o.useCallback)(()=>{if(!!e){if(i.current){t.current+=1;return}t.current=1,l.current=performance.now(),i.current=!0}},[]);return{markStart:n,markEnd:(0,o.useCallback)(()=>{if(!!e){if(i.current){i.current=!1;let e=performance.now()-l.current;w.sendLog("feedSlideBlocked",{enter_from:(0,s.yW)(),duration:e,count:t.current})}}},[])}}(j),W=(0,o.useCallback)((e,l)=>{let t=[];for(let i=0;i{var t,n,o,r,d,u;return(null==e?void 0:e.awemeType)!==a.e.LiveCard?(null==e?void 0:e.awemeId)===(null===(t=l[i])||void 0===t?void 0:t.awemeId):(null==e?void 0:null===(o=e.cellRoom)||void 0===o?void 0:null===(n=o.rawdata)||void 0===n?void 0:n.id_str)===(null===(u=l[i])||void 0===u?void 0:null===(d=u.cellRoom)||void 0===d?void 0:null===(r=d.rawdata)||void 0===r?void 0:r.id_str)})&&t.push(l[i]);return t},[]),B=(0,o.useCallback)(async e=>{A.current=!0;let o=0;C.includes(k)&&(o=new Date().getTime(),w.sendLog("feedRequest",{enter_from:(0,s.yW)(),is_first:0,is_click:0,is_auto_play:L(),unread_feed_nums:(null==t?void 0:t.length)-(null==l?void 0:l.activeIndex)}));let r=await S((0,i._)({mode:"loadmore"},function(e){let{fromTab:l}=e,t={};return l===I.B.RECOMMEND&&(t=function(e){let{abTestData:l}=e,t={};return l.loadmoreCount>0&&(t.reqCount=l.loadmoreCount),t}(e)),t}({abTestData:T,fromTab:k})));if(C.includes(k)){var a,d,u;w.sendLog("feedRequestResponse",(0,n._)((0,i._)({enter_from:(0,s.yW)(),is_first:0,video_count:null===(a=r.data)||void 0===a?void 0:a.length,duration:new Date().getTime()-o,is_success:0===r.statusCode?1:0,is_click:0,is_auto_play:L(),unread_feed_nums:(null==t?void 0:t.length)-(null==l?void 0:l.activeIndex)},(0,c.p0)(null==r?void 0:r.data)),{is_retry:(null==r?void 0:r.isRetry)||0,http_code:null==r?void 0:r.httpCode,log_id:null==r?void 0:r.logPb,current_list_vid:null==r?void 0:null===(u=r.data)||void 0===u?void 0:null===(d=u.map)||void 0===d?void 0:d.call(u,e=>null==e?void 0:e.awemeId)}))}0===r.statusCode?(V.current=0,p(t=>{let i=W(t,r.data),n=[...t,...i];if(P)for(let e=0;e0&&void 0!==arguments[0]&&arguments[0];arguments.length>1&&void 0!==arguments[1]&&arguments[1];let i=Object.assign({},null==T?void 0:T.loadMore,null==T?void 0:T.loadMoreServer),n="recommend"===(0,s.yW)()&&(null==i?void 0:i.defaultCount)||4;if(e||Math.abs((null==l?void 0:l.activeIndex)-t.length)<=n&&!A.current){A.current=!0;let e=async()=>{await B(null)};if("recommend"!==(0,s.yW)())(0,v.l)(e,{timeout:3e3});else if(null==T?void 0:T.loadIdlecallbackDelay){var o;(0,v.l)(e,{timeout:null!==(o=null==T?void 0:T.loadIdlecallbackDelay)&&void 0!==o?o:3e3})}else e()}},[l,t,T,B]);(0,o.useEffect)(()=>{let e=Object.assign({},null==T?void 0:T.loadMore,null==T?void 0:T.loadMoreServer),i=null==e?void 0:e.bufferEmitCount;if((null==e?void 0:e.bufferEmit)&&i){let e=f.listen(f.EVENT.bufferedLoadMore,()=>{Math.abs((null==l?void 0:l.activeIndex)-t.length)<=i&&!A.current&&B()});return()=>{null==e||e()}}},[l,B,t.length,T]);let H=(0,o.useCallback)(e=>{let t="number"==typeof e?e:l.activeIndex;p(e=>e.slice(0,t).concat(e.slice(t+1))),z()},[l,z]);(0,d.o)(()=>f.listen(f.EVENT.firstLoadMore,()=>{z(!1,!0)}),[z]);let q=(0,o.useCallback)(function(e,l){let{isFirst:t=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)null==N||N("prev"),e&&"click_button"!==e&&f.emit(f.EVENT.reportPlayPrev,{clickFrom:e})},[N]),G=(0,o.useCallback)(function(e,l){let{isLast:t=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(z(),t){null==b||b();return}let i=m.Le.getConfig(m.gI.VideoFeedList),n=(null==i?void 0:i.autoPlayCount)||1;"auto"===e?m.Le.setConfig(m.gI.VideoFeedList,{autoPlayCount:n+1}):null==N||N("next"),e&&"click_button"!==e&&f.emit(f.EVENT.reportPlayNext,{clickFrom:e})},[z,b,N]),K=(0,o.useCallback)(e=>{var i,n;if((null==l?void 0:l.destroyed)||!l)return;let{from:o}=e||{};m.Le.setConfig(m.gI.FeedBackInfo,{activeIndex:null!==(n=l.activeIndex+1)&&void 0!==n?n:-1}),l.activeIndex===t.length-1&&U(),G(o,t[l.activeIndex],{isLast:l.activeIndex===t.length-1}),null===(i=l.slideNext)||void 0===i||i.call(l)},[l,t,G]),Y=(0,o.useCallback)(e=>{var i,n;if(!l||l.destroyed)return;m.Le.setConfig(m.gI.FeedBackInfo,{activeIndex:(n=l.activeIndex-1,n)});let{from:o}=e||{};q(o,t[l.activeIndex],{isFirst:0===l.activeIndex}),null===(i=l.slidePrev)||void 0===i||i.call(l)},[l,t,q]),Z=(0,o.useCallback)(()=>{z(!0)},[z]);(0,o.useEffect)(()=>{(async()=>{var e,l,t,o,a;if(null==R?void 0:R.length)return;if(D instanceof Promise){let l=await D;if(null==l?void 0:null===(e=l.recommendAwemeList)||void 0===e?void 0:e.length){p(l.recommendAwemeList);return}}let d=(0,g.getCookiesItem)(r.CookieKeys.DebugVids);if(d)try{let e=JSON.parse(d||"[]");if(!(null==e?void 0:e.length))return;let l=await (0,h.c7)({itemIds:e,from:"useBasicSlideFunc.tsx",originType:x.F.SlideList});p((null==l?void 0:l.detail)||[]);return}catch(e){}let u=0;C.includes(k)&&(u=new Date().getTime(),w.sendLog("feedRequest",{enter_from:(0,s.yW)(),is_first:1,is_click:0,is_auto_play:L()})),A.current=!0;let v=await S({mode:"refresh"});A.current=!1,C.includes(k)&&w.sendLog("feedRequestResponse",(0,n._)((0,i._)({enter_from:(0,s.yW)(),is_first:1,video_count:null===(l=v.data)||void 0===l?void 0:l.length,duration:new Date().getTime()-u,is_success:0===v.statusCode?1:0,is_click:0,is_auto_play:L(),live_position:null==v?void 0:null===(t=v.data)||void 0===t?void 0:t.findIndex(e=>(null==e?void 0:e.awemeType)===101)},(0,c.p0)(null==v?void 0:v.data)),{is_retry:(null==v?void 0:v.isRetry)||0,http_code:null==v?void 0:v.httpCode,log_id:null==v?void 0:v.logPb,current_list_vid:null==v?void 0:null===(a=v.data)||void 0===a?void 0:null===(o=a.map)||void 0===o?void 0:o.call(a,e=>null==e?void 0:e.awemeId)})),0===v.statusCode&&v.data&&p(e=>[...e||[],...W(e,v.data)||[]])})()},[R,D]),(0,d.o)(()=>{let e=f.listen(f.EVENT.wallPaperInsert,e=>{let l=(0,u.$o)(r.LocalStorageKeys.WallPaper);if((null==l?!void 0:!l.disappear)&&((null==l?!void 0:!l.timetamp)||new Date(Date.now()).toDateString()!==new Date(null==l?void 0:l.timetamp).toDateString()))p(l=>{var t;let i=l.findIndex(l=>l.awemeId===e);return i>-1&&(null===(t=M.current)||void 0===t?void 0:t.length)&&!F.current?(F.current=!0,(0,u.qQ)(r.LocalStorageKeys.WallPaper,{timetamp:Date.now()}),l.slice(0,i+1).concat(M.current,l.slice(i+1))):l})});return()=>{null==e||e()}},[]),(0,o.useEffect)(()=>{var e;let l=null!==(e=m.Le.getConfig(m.gI.CheckAwemeList))&&void 0!==e?e:[],i=t.filter(e=>e.awemeType!==a.e.LiveCard);if(i.length>0){if(0===l.length){let e=i.map(e=>({vid:e.awemeId,time:Date.now(),dy_q:Number(e.dyQ),tag:e.isAds?2:0}));m.Le.setConfig(m.gI.CheckAwemeList,e)}if(l.length>0){let e=l[l.length-1],t=i.findIndex(l=>l.awemeId===e.vid),n=i.slice(t+1).map(e=>({vid:e.awemeId,time:Date.now(),dy_q:Number(e.dyQ),tag:e.isAds?2:0}));m.Le.setConfig(m.gI.CheckAwemeList,l.concat(n))}}},[t]),(0,o.useEffect)(()=>{if(l){let e=-1,i=()=>{-1!==e&&(l.activeIndex>e?G:q)("drag",t[l.activeIndex])},n=()=>{e=l.activeIndex,l.once("slideChange",i)},o=()=>{setTimeout(()=>e=-1),(0,m.Vv)(E.CJ.drag)},r=()=>{l.once("touchMove",n)};try{l.on("touchStart",r),l.on("touchEnd",o)}catch(e){}return()=>{try{l.off("touchMove",n),l.off("touchEnd",o),l.off("touchStart",r)}catch(e){}}}},[l,t]);let Q=(0,o.useMemo)(()=>{let e={};return((null==T?void 0:T.preloadCountApplySideServer)==="both"||(0,_.DT)()&&(null==T?void 0:T.preloadCountApplySideServer)==="client"||!(0,_.DT)()&&(null==T?void 0:T.preloadCountApplySideServer)==="web")&&(e=null==T?void 0:T.preloadCountServer),Object.assign({},null==T?void 0:T.preloadCount,e)},[T]);return(0,o.useEffect)(()=>{var e,i;if(l&&!(null==T?void 0:null===(e=T.preloadStartBuffer)||void 0===e?void 0:e.notifyV4)){let e=(null==Q?void 0:Q.count)||1,n=()=>{var i;if(null==T?void 0:null===(i=T.preloadStartBuffer)||void 0===i?void 0:i.notifyV2){let i=l.activeIndex+2,n=t.slice(i),o=(0,c.$8)(n).slice(0,e);m.Le.setConfig(m.gI.PreloadList,o),f.emit(f.EVENT.promotePreload)}else if(null==Q?void 0:Q.open){let i=l.activeIndex+2,n=t.slice(i).filter(e=>(null==e?void 0:e.awemeType)===a.e.Normal&&!(0,y.Ni)(e)).slice(0,e);m.Le.setConfig(m.gI.PreloadList,n)}else{let e=t.slice(l.activeIndex+1,l.activeIndex+3).filter(e=>!(0,y.Ni)(e));m.Le.setConfig(m.gI.PreloadList,e)}};try{(null==T?void 0:null===(i=T.preloadStartBuffer)||void 0===i?void 0:i.notifyV3)&&n(),l.on("slideChange",n)}catch(e){}return()=>{try{l.off("slideChange",n)}catch(e){}}}},[l,t,Q,T]),(0,o.useEffect)(()=>{var e;if((null==T?void 0:null===(e=T.preloadStartBuffer)||void 0===e?void 0:e.notifyV4)&&l){let e=f.listen(f.EVENT.firstFrameReady,()=>{let e=(null==Q?void 0:Q.count)||1,i=l.activeIndex+2,n=t.slice(i),o=(0,c.$8)(n).slice(0,e);m.Le.setConfig(m.gI.PreloadList,o),f.emit(f.EVENT.promotePreload)});return()=>{e()}}},[l,Q,T,t]),(0,o.useEffect)(()=>{if(l&&(null==t?void 0:t.length)===0)try{l.slideTo(0,0)}catch(e){}},[l,t]),{deleteCurrentSwiper:H,nextPageFunc:K,lastPageFunc:Y,retryFunc:Z}}},254450:function(e,l,t){t.d(l,{A:function(){return o}}),t(706056);var i=t(101199),n=t(414061);let o=e=>{let{awemeInfoList:l,setAwemeInfoList:t}=e;(0,i.useEffect)(()=>{let e=n.listen(n.EVENT.checkSafeAwemeList,e=>{t(l.filter(l=>!e.includes(l.awemeId)))});return()=>e()},[l])}},620865:function(e,l,t){t.d(l,{K:function(){return a}}),t(490629);var i=t(101199),n=t(66948),o=t(528937),r=t(499059);let a=()=>{var e;let[l,t]=(0,i.useState)((null===(e=r.Le.getConfig(r.gI.TccData))||void 0===e?void 0:e[n.TccKey.PcRechargeConfig])||n.TCC_DEFAULT_VALUE_MAP.get(n.TccKey.PcRechargeConfig));return(0,i.useEffect)(()=>{let e=!1;return(async()=>{let l=await o.get({key:n.TccKey.PcRechargeConfig,defaultValue:n.TCC_DEFAULT_VALUE_MAP.get(n.TccKey.PcRechargeConfig)});!e&&t(l)})(),()=>{e=!0}},[]),{rechargeConfig:l}}},54841:function(e,l,t){t.d(l,{o:function(){return n}}),t(490629);var i=t(101199);let n=e=>{let{isActive:l,once:t=!1}=e,[n,o]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(l&&!n){var e,i;let l=0,n=setTimeout(()=>{var e,t;o(!0),null===(t=window)||void 0===t||null===(e=t.cancelIdleCallback)||void 0===e||e.call(t,l)},200);return l=null===(i=window)||void 0===i?void 0:null===(e=i.requestIdleCallback)||void 0===e?void 0:e.call(i,()=>{o(!0),clearTimeout(n)}),()=>{var e,i;!t&&o(!1),clearTimeout(n),null===(i=window)||void 0===i||null===(e=i.cancelIdleCallback)||void 0===e||e.call(i,l)}}},[l]),{idlCallBackFlag:n}}},54768:function(e,l,t){t.d(l,{z:function(){return o}}),t(490629);var i=t(101199),n=t(414061);let o=e=>{let{isNext:l,positionIndex:t,abtestData:o}=e,[r,a]=(0,i.useState)(!1),d=(0,i.useRef)(!1);return(0,i.useEffect)(()=>n.listen(n.EVENT.firstFrameReady,()=>{d.current=!0}),[]),(0,i.useEffect)(()=>{if(l&&1===t){if(!d.current)return n.listen(n.EVENT.firstFrameReady,()=>{a(!0)});a(!0)}},[]),{flag:r}}},514350:function(e,l,t){t.d(l,{K:function(){return s}}),t(679308),t(932651);var i=t(734123),n=t(101199),o=t(908219),r=t.n(o),a=t(476595),d=t(499059),u=t(414061);let s=e=>{let{isActive:l,player:o,abtestData:s}=e,c=(0,n.useRef)(null);(0,a.b)(async()=>{if(!c.current)try{let{Pylon:e,EBiz:l}=await t.e("52543").then(t.bind(t,831626));c.current=new e({biz:l.DOUYIN_WEB_RECOMMEND})}catch(e){}},[]),(0,n.useEffect)(()=>{if(l&&c.current&&o)try{let e=null==s?void 0:s.slidePreloadConfig,l=c.current.strategyInference({scene:"feed_slide",abConfig:{slideStrategy:(null==e?void 0:e.slideConfig)||[6,12]}});d.Le.setConfig(d.gI.FastSlowSlide,l);let t=window.playerPreloader;if(!(null==e?void 0:e.open)||!window.playerPreloader)return;0===l?t.updateConfig(e.normal):2===l?t.updateConfig(e.slow):1===l&&t.updateConfig(e.fast)}catch(e){}},[l,o,null==s?void 0:s.slidePreloadConfig]),(0,n.useEffect)(()=>{if(o&&l){let e=r()(()=>{let l=null==o?void 0:o.bufferedPoint,t=(null==l?void 0:l.end)-(null==o?void 0:o.currentTime)||0,n=Object.assign({},null==s?void 0:s.loadMore,null==s?void 0:s.loadMoreServer);t>(null==n?void 0:n.bufferEmit)&&(u.emit(u.EVENT.bufferedLoadMore),o.off(i.Events.TIME_UPDATE,e))},2e3);return o.on(i.Events.TIME_UPDATE,e),()=>{o.off(i.Events.TIME_UPDATE,e)}}},[l,o,s])}},451181:function(e,l,t){t.r(l),t.d(l,{FeedLiveAd:function(){return B}});var i=t("629686"),n=t("402748");t("228983"),t("759943"),t("706056");var o=t("320165"),r=t("101199"),a=t("908219"),d=t.n(a),u=t("469935"),s=t.n(u),c=t("48795"),v=t("426112"),f=t("762167"),m=t("638052"),_=t("690301"),h=t("72878"),g=t("816565"),p=t("414061"),w=t("947383"),I=t("759894"),y=t("601034"),x=t("394408"),E=t("386206"),L=t("687581");let C=e=>{let{awemeInfo:l,adData:t}=e;(0,r.useEffect)(()=>{let e=(null==t?void 0:t.min_price)?["product_name","product_title","ad_title","word_image_url","image_url","button_text","min_price","product_tags"]:["product_name","ad_title","word_image_url","image_url","button_text"];try{var i,n;let o=(0,v.Rx)(l),r=null==o?void 0:null===(i=o.lynx_components)||void 0===i?void 0:i.find(e=>(null==e?void 0:e.lynx_type)===h.AD_FEED_TYPE);e.forEach(e=>{!t[e]&&L.oe.event.error({name:L.Mo.AdCardInfoMiss,report:{awemeId:l.awemeId,key:e,adType:_.Z9.Live,creativeId:null==o?void 0:o.creative_id,logId:l.logPb}})}),!(null==t?void 0:t.min_price)&&L.oe.event.error({name:L.Mo.AdCardInfoMiss,report:{awemeId:l.awemeId,key:"min_price",adType:_.Z9.Live,creativeId:null==o?void 0:o.creative_id,logId:l.logPb}}),!(null==r?void 0:null===(n=r.lynx_raw_data)||void 0===n?void 0:n.open_url)&&L.oe.event.error({name:L.Mo.AdCardInfoMiss,report:{awemeId:l.awemeId,key:"open_url",adType:_.Z9.Live,creativeId:null==o?void 0:o.creative_id,logId:l.logPb}})}catch(e){}},[l])};var N=t("179994");t("490629"),t("374954");var S=t("863882");let k=e=>{var l,t;let{adData:i,logParams:n}=e,o=null==i?void 0:null===(l=i.lynx_components)||void 0===l?void 0:l.find(e=>(null==e?void 0:e.lynx_type)===h.AD_FEED_TYPE),a=null==o?void 0:null===(t=o.lynx_raw_data)||void 0===t?void 0:t.mixed_area_info;(0,r.useEffect)(()=>{let e=["product_phrase","product_name","image_url","live_product_infos"];try{let l=[];e.forEach(e=>{!(null==a?void 0:a[e])&&l.push(e)}),["collection_num","return_vistors","favorable_rate","product_tags","sell_num"].every(e=>!(null==a?void 0:a[e]))&&l.push("feedback"),l.length>=e.length&&(0,f.E)("othershow_fail",{tag:"draw_ad",value:i.creative_id,log_extra:i.log_extra}),L.oe.event.error({name:L.Mo.AdCardInfoMiss,report:{key:l,adType:_.Z9.Live,creativeId:null==i?void 0:i.creative_id,logId:null==n?void 0:n.requestId,logParams:n}})}catch(e){}},[i])};var b=t("815455"),T=t("714951"),R=t("118504"),D=t("380583"),P=t("373805"),j=t("866574"),A=t("290397"),M=e=>{let{adData:l,awemeInfo:t,isActive:n,logParams:a,isHide:u=!1}=e||{},[c,g]=(0,r.useState)(!1),[E,L]=(0,r.useState)(),[C,N]=(0,r.useState)(!1),M=(0,r.useRef)(!1),F=(0,r.useRef)(new Date().getTime()),V=(0,r.useRef)(new Date().getTime()),U=(0,r.useCallback)(d()((e,l)=>{var n,o;e.stopPropagation(),p.emit(p.EVENT.openAdSideCard);let r=(0,v.Rx)(t);(0,f.E)("realtime_click",(0,i._)({tag:(0,w.f)(),value:null==r?void 0:r.creative_id,log_extra:null==r?void 0:r.log_extra,ad_extra_data:(0,i._)({show_time:new Date().getTime()-F.current,click_time:new Date().getTime()-V.current},l)},l)),m.logInstance.sendLog("productEntranceClick",{cid:null==r?void 0:r.creative_id,source_page:(0,I.mo)(),enter_from:(0,I.mo)(),enter_from_merge:(0,y.yW)(),group_id:t.awemeId,content_id:t.awemeId,author_id:null===(n=t.authorInfo)||void 0===n?void 0:n.uid,follow_status:(0,x.F)(null===(o=t.authorInfo)||void 0===o?void 0:o.followStatus)?"1":"0",commodity_id:"",product_id:"",if_qianchuan_ad:1,ad_type:_.Z9.Live})},1e3,{leading:!0,trailing:!1}),[t]),O=(0,b.l)({adData:l,onClickElement:U}),{productName:W,phrase:B,sellInfo:z,tagsElement:H,feedbackInfo:q,componentIds:G,buttonText:K,imageUrl:Y,isBackupImgUrl:Z,tagsText:Q,defaultPhraseElement:J}=O,$="#FE2C55",X=W||"视频同款商品",{componentType:ee,adSlideItems:el}=(0,r.useMemo)(()=>{let e=null,l=[],t=[];return(null==G?void 0:G.includes(_.nw.SingleLine303))?(e=_.nw.SingleLine303,t=[B,z,H,q].filter(e=>!!e),l=[X]):(null==G?void 0:G.includes(_.nw.MultiLine303))?(e=_.nw.MultiLine303,t=[B,z,H,q].filter(e=>!!e)):(null==G?void 0:G.includes(_.nw.Detail303))&&(e=_.nw.Detail303,t=[B,z,q].filter(e=>!!e)),0===t.length?l.push(J):l=l.concat(t.slice(0,3)),{componentType:e,adSlideItems:l}},[O]),{stopListen:et}=(0,T.e)({awemeInfo:t,isActive:n,timerCb:e=>{var t,i;let{currentTime:n,isSeeking:o,isEnd:r}=e;(o||r)&&(g(!0),L($),N(!0),et());let a=null==l?void 0:null===(t=l.lynx_components)||void 0===t?void 0:t.find(e=>(null==e?void 0:e.lynx_type)===h.AD_FEED_TYPE),{show_button_seconds:d=j.vv,show_button_color_seconds:u=j.Wc,switch_style_seconds:s=j._u}=(null==a?void 0:null===(i=a.lynx_raw_data)||void 0===i?void 0:i.mixed_area_info)||{};n>=d&&g(!0),n>=u&&L($),n>=s&&(N(!0),et())}});return((0,r.useEffect)(()=>{c&&(V.current=new Date().getTime(),(0,f.E)("othershow",{tag:(0,w.f)(),value:l.creative_id,log_extra:l.log_extra,refer:(0,v.UV)(ee)?A.tU.SupportAreaCard:A.tU.SupportArea,ad_extra_data:{card_show_duration:V.current-F.current}}))},[c]),k({adData:l,logParams:a}),(0,r.useEffect)(()=>{if(c&&!M.current&&ee){var e,l;M.current=!0;let i=(0,v.Rx)(t);m.logInstance.sendLog("productEntranceShow",{cid:null==i?void 0:i.creative_id,if_qianchuan_ad:1,ad_type:_.Z9.Live,source_page:(0,I.mo)(),enter_from:(0,I.mo)(),enter_from_merge:(0,y.yW)(),group_id:t.awemeId,content_id:t.awemeId,author_id:null===(e=t.authorInfo)||void 0===e?void 0:e.uid,follow_status:(0,x.F)(null===(l=t.authorInfo)||void 0===l?void 0:l.followStatus)?"1":"0",commodity_id:"",product_id:""})}},[c]),(0,r.useEffect)(()=>{M.current=!1},[t]),c)?ee===_.nw.SingleLine303?(0,o.jsx)(R.Z,{className:s()(S.default.adCard,{[S.default.hidden]:u}),buttonText:"观看直播",imageUrl:Y,isBackupImgUrl:Z,slideItems:el,isStartPlay:C,onClick:U}):ee===_.nw.MultiLine303?(0,o.jsx)(D.Z,{className:s()(S.default.adCard,{[S.default.hidden]:u}),title:X,imageUrl:Y,isBackupImgUrl:Z,buttonText:"观看直播",slideItems:el,buttonBgColor:E,isStartPlay:C,onClick:U}):ee===_.nw.Detail303?(0,o.jsx)(P.Z,{className:s()(S.default.adCard,{[S.default.hidden]:u}),title:X,imageUrl:Y,isBackupImgUrl:Z,buttonText:"观看直播",tags:Q&&(null==Q?void 0:Q.length)>0?Q:j.lg,slideItems:el,buttonBgColor:E,isStartPlay:C,onClick:U}):null:null},F=t("573495"),V=t("769928"),U=t("401995"),O=t("227831");let W=e=>{let{awemeInfo:l,isActive:t,adData:i,isHide:n=!1}=e||{},{product_title:a,product_name:u,button_background_color:g,ad_title:E,word_image_url:L,image_url:S,button_text:k,min_price:b=0,product_tags:T=["优选好物"]}=i,R=(0,r.useRef)(!1),D=d()((e,t)=>{var i,o;if(P===A.cL.HIDDEN||n)return;e.stopPropagation(),p.emit(p.EVENT.openAdSideCard);let r=(0,v.Rx)(l);(0,f.E)("realtime_click",{tag:(0,w.f)(),value:null==r?void 0:r.creative_id,log_extra:null==r?void 0:r.log_extra,refer:t}),m.logInstance.sendLog("adComponentClick",{component_name:"FeedLiveAd",cid:null==r?void 0:r.creative_id,ad_refer:t}),m.logInstance.sendLog("productEntranceClick",{cid:null==r?void 0:r.creative_id,source_page:(0,I.mo)(),enter_from:(0,I.mo)(),enter_from_merge:(0,y.yW)(),group_id:l.awemeId,content_id:l.awemeId,author_id:null===(i=l.authorInfo)||void 0===i?void 0:i.uid,follow_status:(0,x.F)(null===(o=l.authorInfo)||void 0===o?void 0:o.followStatus)?"1":"0",commodity_id:"",product_id:"",if_qianchuan_ad:1,ad_type:_.Z9.Live})},1e3,{leading:!0,trailing:!1}),{displayState:P}=(0,U.I)({awemeInfo:l,isActive:t,showTimeList:[i.show_button_seconds,i.show_button_color_seconds,i.switch_style_seconds],needInit:!1});(0,r.useEffect)(()=>{R.current=!1},[l]);let j=(0,r.useMemo)(()=>{let e="";return P===A.cL.MINI_DARK||P===A.cL.MINI_LIGHT?e=u:P===A.cL.NORMAL_LIGHT&&(e=a||u),e},[P,a,u]);return(0,r.useEffect)(()=>{if(P!==A.cL.HIDDEN&&!n&&!R.current){var e,t;R.current=!0;let i=(0,v.Rx)(l);m.logInstance.sendLog("productEntranceShow",{cid:null==i?void 0:i.creative_id,if_qianchuan_ad:1,ad_type:_.Z9.Live,source_page:(0,I.mo)(),enter_from:(0,I.mo)(),enter_from_merge:(0,y.yW)(),group_id:l.awemeId,content_id:l.awemeId,author_id:null===(e=l.authorInfo)||void 0===e?void 0:e.uid,follow_status:(0,x.F)(null===(t=l.authorInfo)||void 0===t?void 0:t.followStatus)?"1":"0",commodity_id:"",product_id:""})}},[P,n]),C({awemeInfo:l,adData:i}),(0,o.jsx)("div",{className:s()(V.default.adWrapper,N.default.adWrapper,{[V.default.hasTransition]:!(P===A.cL.HIDDEN||n),[V.default.adWrapperHidden]:P===A.cL.HIDDEN||n}),id:V.default.adWrapper,children:(0,o.jsxs)("div",{className:V.default.adContainer,onClick:e=>D(e),children:[!b&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:V.default.adSource,onClick:e=>D(e,A.tU.Source),children:[(0,o.jsx)(O.Q,{src:S,iconHeight:30,iconWidth:30,className:V.default.adIcon}),(0,o.jsx)("span",{className:V.default.adName,children:j})]}),P>A.cL.MINI_LIGHT&&(0,o.jsxs)("div",{onClick:e=>D(e,A.tU.Title),className:V.default.adTitleWrapper,children:[(0,o.jsx)(O.Q,{src:L,iconHeight:30,iconWidth:30,className:V.default.moreIcon}),(0,o.jsx)("div",{className:V.default.split}),(0,o.jsx)("div",{className:V.default.adTitle,children:E})]})]}),!!b&&(0,o.jsxs)(o.Fragment,{children:[PD(e,A.tU.Source),children:[(0,o.jsx)(O.Q,{src:S,iconHeight:30,iconWidth:30,className:V.default.adIcon}),(0,o.jsx)("span",{className:V.default.adName,children:j})]}),P>A.cL.MINI_LIGHT&&(0,o.jsxs)("div",{className:N.default.adTitleWrapper,children:[(0,o.jsx)("div",{onClick:e=>D(e,A.tU.Source),children:(0,o.jsx)(O.Q,{src:S,iconHeight:30,iconWidth:30,className:N.default.mainCover,skeletonClass:N.default.skeleton})}),(0,o.jsxs)("div",{className:N.default.info,onClick:e=>D(e,A.tU.Title),children:[(0,o.jsx)("span",{className:N.default.adName,children:E}),(0,o.jsx)("div",{children:T.slice(0,2).map(e=>(0,o.jsx)("span",{className:N.default.tag,children:e},e))}),(0,o.jsxs)("div",{className:N.default.price,children:[(0,o.jsx)("span",{className:N.default.unit,children:"\xa5"}),b]})]})]})]}),(0,o.jsx)("div",{className:V.default.adButton,children:(0,o.jsxs)(c.Button,{theme:"solid",onClick:e=>D(e,A.tU.Button),style:{background:P<=A.cL.MINI_DARK?h.DEFAULT_BUTTON_COLOR:g},children:[(0,o.jsx)(F.WaveLineAnimation,{size:15}),(0,o.jsx)("span",{style:{fontWeight:500},children:k||"查看详情"})]})})]})})},B=e=>{var l,t;let{awemeInfo:r}=e||{},a=(0,g.hj)(r),d=(0,v.Rx)(r),u=(0,E.As)(null==d?void 0:d.log_extra),s=null==u?void 0:u.component_ids,c=null==d?void 0:null===(l=d.lynx_components)||void 0===l?void 0:l.find(e=>(null==e?void 0:e.lynx_type)===h.AD_FEED_TYPE),f=null==c?void 0:null===(t=c.lynx_raw_data)||void 0===t?void 0:t.mixed_area_info;return a&&f?(null==s?void 0:s.includes(_.nw.SingleLine303))||(null==s?void 0:s.includes(_.nw.MultiLine303))||(null==s?void 0:s.includes(_.nw.Detail303))?(0,o.jsx)(M,(0,n._)((0,i._)({},e),{adData:d})):(0,o.jsx)(W,(0,n._)((0,i._)({},e),{adData:f})):null}},815455:function(e,l,t){t.d(l,{l:function(){return c}});var i=t(629686),n=t(320165),o=t(101199),r=t(72878),a=t(386206),d=t(368763),u=t(686060),s=t(866574);let c=e=>{var l,t;let{adData:c,onClickElement:v}=e,f=null==c?void 0:null===(l=c.lynx_components)||void 0===l?void 0:l.find(e=>(null==e?void 0:e.lynx_type)===r.AD_FEED_TYPE),m=null==f?void 0:null===(t=f.lynx_raw_data)||void 0===t?void 0:t.mixed_area_info,_=(0,a.As)(null==c?void 0:c.log_extra),{product_phrase:h,product_name:g,image_url:p,product_tags:w,return_vistors:I,favorable_rate:y,sell_num:x,button_text:E,button_background_color:L,live_product_infos:C}=m||{},N=(0,o.useMemo)(()=>{var e,l,t,i,o;let r;let s=h?(0,n.jsx)("div",{className:d.default.swiperText,children:(0,n.jsx)("span",{onClick:e=>v(e,{refer:"sow",product_short_phrase:h}),children:h})}):null,c=(0,a.Hy)(x)?(0,n.jsx)("div",{className:d.default.swiperText,children:(0,n.jsxs)("span",{onClick:e=>v(e,{refer:"sow",sell_num:x}),children:["爆卖",(0,a.Hy)(x),"件"]})}):null,f=(null==w?void 0:w.length)>0?(0,n.jsx)("div",{className:d.default.tagLine,children:w.slice(0,2).map((e,l)=>(0,n.jsx)(u.Z,{className:d.default.tag,style:0===l?{marginRight:"4px"}:{},onClick:l=>v(l,{refer:"sow",product_tags:e}),children:e},e))}):null;return(null==C?void 0:null===(e=C[0])||void 0===e?void 0:e.product_feedback)?r=(0,n.jsx)("div",{className:d.default.swiperText,children:(0,n.jsx)("span",{onClick:e=>{var l;return v(e,{refer:"sow",product_feedback:null==C?void 0:null===(l=C[0])||void 0===l?void 0:l.product_feedback})},children:null==C?void 0:null===(i=C[0])||void 0===i?void 0:i.product_feedback})}):I?r=(0,n.jsx)("div",{className:d.default.swiperText,children:(0,n.jsx)("span",{onClick:e=>v(e,{refer:"sow",product_feedback:I}),children:I})}):y?r=(0,n.jsx)("div",{className:d.default.swiperText,children:(0,n.jsxs)("span",{onClick:e=>v(e,{refer:"sow",product_feedback:`商品好评率${Math.round(y)}%`}),children:["商品好评率",Math.round(y),"%"]})}):(null==C?void 0:null===(l=C[0])||void 0===l?void 0:l.collection_num)&&(r=(0,n.jsx)("div",{className:d.default.swiperText,children:(0,n.jsx)("span",{onClick:e=>{var l;return v(e,{refer:"sow",product_feedback:null==C?void 0:null===(l=C[0])||void 0===l?void 0:l.collection_num})},children:null==C?void 0:null===(o=C[0])||void 0===o?void 0:o.collection_num})})),{productName:g,phrase:s,sellInfo:c,tagsElement:f,tagsText:w,feedbackInfo:r,componentIds:null==_?void 0:_.component_ids,productGallery:null==C?void 0:null===(t=C[0])||void 0===t?void 0:t.product_gallery}},[e]),S=(0,o.useMemo)(()=>{let e=s.VD[Math.floor(Math.random()*s.VD.length)];return(0,n.jsx)("div",{className:d.default.swiperText,children:(0,n.jsx)("span",{onClick:l=>v(l,{refer:"sow",live_product_info_backup:e}),children:e})})},[v]);return(0,i._)({imageUrl:p||r.DEFAULT_AD_IMAGE_URL,isBackupImgUrl:!p,buttonText:E,buttonBackgroundColor:L,productPhrase:h,defaultPhraseElement:S},N)}},16902:function(e,l,t){t.d(l,{h:function(){return g}}),t("490629");var i=t("320165"),n=t("101199"),o=t("734123"),r=t("59850"),a=t("853552"),d=t("499059"),u=t("414061"),s=t("349206"),c=t("167067"),v=t("624508"),f=new v.h({checkVideoUnsafe:{eventName:"check_video_unsafe",params:{aweme_ids:[],counts:0}},checkVideoUnsafeModal:{eventName:"check_video_unsafe_modal",params:{aweme_id:""}}}),m=t("63601");let _={},h=48e4;{let e=localStorage.getItem("check_safe_time");h=e?Number(e):h}let g=e=>{let{awemeInfo:l,isActive:t,isUseOneCheck:v,playPrevFunc:g,playNextFunc:p,deleteCurrentSwiper:w}=e,I=(0,m.n)(),[y,x]=(0,n.useState)(!1),[E,L]=(0,n.useState)(5),C=(0,r.Z)(async()=>{if(Date.now()-1e3*Number(l.dyQ)>h){let e=l.awemeId,t=[{item_id:e,dy_q:l.dyQ,tag:l.isAds?2:0,potential_risk_level:0,authentication_token:""}],i=await (0,s.Y)(t);0===i.statusCode&&(_[e]=Date.now(),i.result.find(l=>l.item_id===e)&&(I.pause(),x(!0),f.sendLog("checkVideoUnsafe",{aweme_ids:[l.awemeId],counts:1}),f.sendLog("checkVideoUnsafeModal",{aweme_id:l.awemeId})));return}}),N=(0,n.useCallback)(async()=>{var e;let t=l.awemeId,i=null!==(e=d.Le.getConfig(d.gI.CheckAwemeList))&&void 0!==e?e:[],n=i.findIndex(e=>e.vid===t);if(-1!==n&&Date.now()-i[n].time>h){let e=i.slice(n,n+6).map(e=>({item_id:e.vid,dy_q:e.dy_q,tag:e.tag,potential_risk_level:0,authentication_token:""})),o=await (0,s.Y)(e);if(0===o.statusCode){let e=i.length;for(let l=n;le.item_id===i[l].vid);i[l].time=Date.now(),i[l].hasCheck=(null==e?void 0:e.safety_code)===0}d.Le.setConfig(d.gI.CheckAwemeList,i),o.result.find(e=>e.item_id===t)&&(I.pause(),x(!0),f.sendLog("checkVideoUnsafeModal",{aweme_id:l.awemeId}));let r=o.result.filter(e=>e.item_id!==t&&1===e.safety_code).map(e=>e.item_id);u.emit(u.EVENT.checkSafeAwemeList,r),f.sendLog("checkVideoUnsafe",{aweme_ids:o.result.map(e=>e.item_id),counts:o.result.length})}}},[I,l]),S=(0,n.useCallback)(async e=>{if(!e||"firstFrame"===e.eventType)v?C():N()},[v,C,N]);return(0,a.t)(e=>{!e&&t&&I&&C()}),(0,n.useEffect)(()=>{if(y&&E>0){I.pause();let e=setTimeout(()=>{L(E-1)},1e3);return()=>clearTimeout(e)}},[y,E]),(0,n.useEffect)(()=>{if(y&&0===E&&w){if(v){if("reverse"===d.Le.getConfig(d.gI.InnerAutoPlay).mode){g();return}p();return}w()}},[y,E,v,w]),(0,n.useEffect)(()=>{v&&(L(5),x(!1))},[v,l]),(0,n.useEffect)(()=>{if(I&&t)return I.on(o.Events.XGLOG,S),I.on(o.Events.REPLAY,S),()=>{I.off(o.Events.XGLOG,S),I.off(o.Events.REPLAY,S)}},[I,t,S]),y&&(0,i.jsxs)("div",{className:c.default.container,children:[(0,i.jsx)("div",{className:c.default.damaIcon}),(0,i.jsx)("div",{className:c.default.damaText,children:"当前视频出现问题,无法播放"}),(0,i.jsxs)("div",{className:c.default.damaTime,children:[(0,i.jsx)("span",{className:c.default.nums,children:E}),(0,i.jsx)("span",{children:"秒后自动切换至下一个内容"})]})]})}},262242:function(e,l,t){t.d(l,{x:function(){return v}});var i=t(629686);t(706056),t(374954);var n=t(320165),o=t(101199),r=t(734123),a=t(499059),d=t(913285),u=t(63601),s=t(310383);let c=e=>{let{awemeInfo:l,isActive:t,abTestData:i}=e,n=(0,u.n)(),d=()=>{let e=a.Le.getConfig(a.gI.AwemePcRecRawData);return!e&&(e={videoPrefer:{fsn:[],like:[],halfMin:[],min:[]}},a.Le.setConfig(a.gI.AwemePcRecRawData,e)),e};return(0,o.useEffect)(()=>{if(n){let e=()=>{n.playTimestamp=new Date().getTime()};return null==n||n.on(r.Events.PLAY,e),()=>n.off(r.Events.PLAY,e)}},[n]),(0,o.useEffect)(()=>{if(n&&t){let e=()=>{var e;let{fsn:t}=d().videoPrefer;t.filter((e,l)=>l%2==0).includes(null==l?void 0:l.groupId)||t.push(null==l?void 0:l.groupId,null==l?void 0:null===(e=l.authorInfo)||void 0===e?void 0:e.uid),(0,a.xL)(l,n,"fsn")};return null==n||n.on(r.Events.ENDED,e),()=>null==n?void 0:n.off(r.Events.ENDED,e)}},[n,t,l]),(0,o.useEffect)(()=>{if(n&&t)return()=>{[3e4,6e4].filter(e=>n.cumulateTime>=e).map(e=>3e4===e?"halfMin":"min").map(e=>{var t;return{field:e,groupId:null==l?void 0:l.groupId,authorId:null==l?void 0:null===(t=l.authorInfo)||void 0===t?void 0:t.uid}}).forEach(e=>{let t=d().videoPrefer[e.field];t.filter((e,l)=>l%2==0).includes(null==l?void 0:l.groupId)||t.push(e.groupId,e.authorId),(0,a.xL)(l,n,e.field)}),n.cumulateTime<2e3&&(0,a.xL)(l,n,"skip"),n.overallPlayTime?n.overallPlayTime+=n.cumulateTime:n.overallPlayTime=n.cumulateTime}},[n,t,l]),null},v=e=>{let l=(0,s.N)();return(0,n.jsx)(d.k,{componentName:"CumulativeTime",Slardar:l,children:(0,n.jsx)(c,(0,i._)({},e))})}},194771:function(e,l,t){t.r(l),t.d(l,{PostGuideDownloadInner:function(){return x},PostGuideDownload:function(){return E}});var i=t("629686");t("490629");var n=t("320165"),o=t("101199"),r=t("469935"),a=t.n(r),d=t("734123"),u=t("72430"),s=t("601034"),c=t("759894"),v=t("499059"),f=t("324160"),m=t("558327"),_=t("624508"),h=new _.h({feedDownloadButtonShow:{eventName:"feed_download_button_show",params:{group_id:"",enter_from_merge:"",enter_from:"",follow_status:""}},feedDownloadButtonClick:{eventName:"feed_download_button_click",params:{group_id:"",enter_from_merge:"",enter_from:"",follow_status:"",if_highlight:0}},addToDesktopShow:{eventName:"add_to_desktop_show",params:{enter_from:"",type:"feed_follow_post_button",platform:"client",channel_id:"",ug_channel_id:""}},addToDesktopClick:{eventName:"add_to_desktop_click",params:{enter_from:"",type:"feed_follow_post_button",platform:"client",channel_id:"",ug_channel_id:""}}}),g=t("913285"),p=t("310383"),w=t("589297");let I=u.fp.MidHigh+20;function y(e){let{highlightShow:l,followStatus:t,awemeId:i}=e,{downloadHref:r,downloadAttr:d}=(0,w.o)({channelId:f.g.Notice}),u=(0,o.useCallback)(()=>{h.sendLog("feedDownloadButtonClick",{group_id:i,enter_from:(0,s.yW)(),enter_from_merge:(0,c.vM)(),follow_status:String(t),if_highlight:l?1:0}),h.sendLog("addToDesktopClick",{enter_from:(0,s.yW)(),channel_id:f.g.Notice,type:"feed_follow_post_button",ug_channel_id:v.Le.getConfig(v.gI.WebUgChannelId)||""});let e=document.createElement("a");e.setAttribute("href",r),e.setAttribute("download",d),e.click()},[r,d,i,t,l]);return(0,n.jsx)("div",{className:a()(m.default.container),style:{bottom:I},children:(0,n.jsxs)("div",{className:a()(m.default.button,{[m.default.redColor]:l}),onClick:u,children:[(0,n.jsx)("div",{className:a()(m.default.text),children:"及时接收作品更新提醒"}),(0,n.jsx)("div",{className:a()(m.default.downloadTips),children:"下载电脑客户端"})]})})}let x=e=>{var l;let{player:t,awemeInfo:i,isActive:r}=e,[a,u]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{if(t){let e=()=>{t.currentTime>=5&&u(!0)};return t.on(d.Events.TIME_UPDATE,e),()=>{t.off(d.Events.TIME_UPDATE,e)}}},[t]),(0,o.useEffect)(()=>{if(r&&i){var e;h.sendLog("feedDownloadButtonShow",{group_id:null==i?void 0:i.awemeId,enter_from:(0,s.yW)(),enter_from_merge:(0,c.vM)(),follow_status:String(null==i?void 0:null===(e=i.authorInfo)||void 0===e?void 0:e.followStatus)}),h.sendLog("addToDesktopShow",{enter_from:(0,s.yW)(),channel_id:f.g.Notice,type:"feed_follow_post_button",ug_channel_id:v.Le.getConfig(v.gI.WebUgChannelId)||""})}},[r,i]),(0,n.jsx)(y,{highlightShow:a,followStatus:null==i?void 0:null===(l=i.authorInfo)||void 0===l?void 0:l.followStatus,awemeId:null==i?void 0:i.awemeId})},E=e=>{let l=(0,p.N)();return(0,n.jsx)(g.k,{componentName:"PostGuideDownload",Slardar:l,children:(0,n.jsx)(x,(0,i._)({},e))})}},3993:function(e,l,t){t.d(l,{s:function(){return m}});var i=t(629686),n=t(320165),o=t(101199),r=t(734123),a=t(414061),d=t(462208),u=t(913285),s=t(63601),c=t(310383),v=t(37285);let f=()=>{let e=(0,s.n)();return(0,o.useEffect)(()=>{if(!e)return()=>{};let l=()=>{let l=(0,d.c)(e);(0,d.Is)(l),(0,d.KK)(l)};l();let t=[v.B.AutoPlaySwitchChange,r.Events.FULLSCREEN_CHANGE,r.Events.VOLUME_CHANGE,r.Events.RATE_CHANGE],i=["visibilitychange"],n=[a.EVENT.pageFullScreen];t.forEach(t=>e.on(t,l)),i.forEach(e=>document.addEventListener(e,l));let o=n.map(e=>a.listen(e,l));return()=>{t.forEach(t=>e.off(t,l)),i.forEach(e=>document.removeEventListener(e,l)),o.forEach(e=>null==e?void 0:e())}},[e]),null},m=e=>{let l=(0,c.N)();return(0,n.jsx)(u.k,{componentName:"RecRawDataCookiePlugin",Slardar:l,children:(0,n.jsx)(f,(0,i._)({},e))})}},462208:function(e,l,t){t.d(l,{Is:function(){return s},KK:function(){return f},Sp:function(){return v},c:function(){return m}}),t(362051);var i=t(426038),n=t(409250),o=t(499059),r=t(880327),a=t(254852),d=t(332009);let u=i.CookieKeys.StreamPlayerStatusParams,s=e=>n.Q.setItem(u,JSON.stringify(e)),c=o.gI.PlayerStatus,v=()=>o.Le.getConfig(c),f=e=>o.Le.setConfig(c,e);function m(e){var l,t,i,n,o,u;let s={};return s.is_auto_play=(null===(i=e.plugins)||void 0===i?void 0:null===(t=i.autoplaysettingplugin)||void 0===t?void 0:null===(l=t.config)||void 0===l?void 0:l.nextAutoPlay)||(null==e?void 0:null===(u=e.plugins)||void 0===u?void 0:null===(o=u.searchautoplaysettingplugin)||void 0===o?void 0:null===(n=o.config)||void 0===n?void 0:n.nextAutoPlay)?1:0,s.is_full_screen=(0,r.r)()?1:0,s.is_full_webscreen=d.s.getIsPageFullscreen()?1:0,s.is_mute=e.muted?1:0,s.is_speed=e.playbackRate,s.is_visible=(0,a.d)()?1:0,s}},176060:function(e,l,t){t.d(l,{P:function(){return r}});var i=t(101199),n=t(734123),o=t(499059);let r=e=>{let{player:l}=e;(0,i.useEffect)(()=>{if(l){let e=()=>{var e,t;let i=null==l?void 0:null===(t=l.root)||void 0===t?void 0:null===(e=t.getBoundingClientRect)||void 0===e?void 0:e.call(t);i&&i.width&&i.height&&o.Le.setConfig(o.gI.VideoRect,{width:i.width,height:i.height-48,heightOrigin:i.height})};return l.once(n.Events.TIME_UPDATE,e),()=>l.off(n.Events.TIME_UPDATE,e)}},[l])}},38397:function(e,l,t){t.d(l,{bc:function(){return r},cj:function(){return i},qN:function(){return a}}),t(490629);let i=new Set,n=()=>{let e=new Date,l=e.getFullYear(),t=String(e.getMonth()+1).padStart(2,"0"),i=String(e.getDate()).padStart(2,"0");return`${l}-${t}-${i}`},o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return`__highlight_daily_dismiss___${e}`},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!!e&&"undefined"!=typeof window)try{window.localStorage.setItem(o(e),n())}catch(e){}},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e||"undefined"==typeof window)return!1;try{return window.localStorage.getItem(o(e))===n()}catch(e){return!1}}}}]);