1 line
103 KiB
Plaintext
1 line
103 KiB
Plaintext
"use strict";(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["69855"],{157945:function(e,i,o){o.d(i,{K:function(){return h}});var l=o(547352),n=o(880327),t=o(596678),d=o(661444),r=o(414061),u=o(499059),a=o(618759),v=o(426038),s=o(409250),_=o(707246),c=o(746517),f=o(785701);let m={live:"force_login_live",directVideo:"force_login_direct_video",video:"force_login_video"};function p(e,i){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.CookieKeys.RecordForceLogin,n={timestamp:Date.now(),force_login_video:0,force_login_live:0,force_login_direct_video:0};n[e]++;try{let t=s.Q.getItem({sKey:o});if(!t)return s.Q.setItem(o,n),n;return(!i&&!(0,l.KC)(t.timestamp)||i&&!(0,l.fu)(t.timestamp))&&(t.force_login_video=0,t.force_login_live=0,t.force_login_direct_video=0,t.timestamp=Date.now()),t[e]++,s.Q.setItem(o,t),t}catch(e){return s.Q.setItem(o,n),n}}function g(e){let{scene:i,forceLoginCallback:o,enterMethod:l,teaEvtParams:u}=e;(0,n.r)()&&(0,t._)(),(0,d.aI)()&&(0,f.a)(),(0,c.default)({headerText:"live"===i?"登录后即可畅享超清直播":"登录后即可观看更多精彩视频",enterMethod:l||("live"===i?"force_login_live":"force_login"),showClose:!1,showFeedback:!0,teaEvtParams:u,success:()=>{window.location.reload()}}),clearTimeout(y),y=setTimeout(()=>{("directVideo"===i||"video"===i)&&r.emit(r.EVENT.videoPause,"recordForceLogin"),o&&(null==o||o())},300)}let y="",h=e=>{var i,o;let{scene:l="video",isLogin:n=!0,location:t,forceLoginCallback:d}=e||{},{isLogin:r=n}=u.Le.getConfig(u.gI.AnnieXUserInfo)||{};!function(e){var i,o;let l=(null===(o=u.Le.getConfig(u.gI.AbtestData))||void 0===o?void 0:null===(i=o.forceLoginSelect)||void 0===i?void 0:i.v3)||0,n="medium"===_.cr.getState().userRiskLevel;if(!l||e||(0,a.tq)()||!n)return;let t=p("force_login_video",!1,v.CookieKeys.RecordForceLoginSelect);(null==t?void 0:t.force_login_video)>=l&&g({scene:"video",enterMethod:"force_login_medium_user",teaEvtParams:{risk_reason:_.cr.getState().userRiskReason}})}(r);let s=(null===(i=u.Le.getConfig(u.gI.AbtestData))||void 0===i?void 0:i.forceLoginHourly)||0,c=(null===(o=u.Le.getConfig(u.gI.AbtestData))||void 0===o?void 0:o.forceLoginDaily)||0||s;if(!c)return;let{cityName:f}=_.cr.getState(),y=(t?null==c?void 0:c[t]:null==c?void 0:c[f])||(null==c?void 0:c.default),h=m[l],w=null==y?void 0:y[h];if(r||!w||(0,a.tq)())return;let E=p(h,!!s);(null==E?void 0:E[h])>=w&&g({scene:l,forceLoginCallback:d})}},700762:function(e,i,o){o.d(i,{O:function(){return t}}),o(490629);var l=o(101199),n=o(37285);function t(e){let{player:i,isActive:o,slideOptimize:t}=e,[d,r]=(0,l.useState)(!t&&void 0);return(0,l.useEffect)(()=>{if(i&&o){var e;let o=e=>{"boolean"==typeof(null==e?void 0:e.isOn)&&r(e.isOn)};return null===(e=i.on)||void 0===e||e.call(i,n.B.ImmersiveSwitchChange,o),()=>{var e;null===(e=i.off)||void 0===e||e.call(i,n.B.ImmersiveSwitchChange,o)}}!o&&i&&r(!1)},[i,o]),{inImmersive:d}}},82430:function(e,i,o){let l;o.d(i,{Z:function(){return ip}});var n=o("629686"),t=o("320165"),d=o("101199"),r=o("428658"),u=o("618759"),a=o("795653"),v=o("103680"),s=o("50331"),_=o("703259");let c=!1,f=async()=>{var e;if(!(0,u.DT)())return 0;if((null===(e=(0,a.fV)())||void 0===e?void 0:e.os)!=="Windows")return(0,r.$n)();{let e=await v.invoke("getHardwareDecodeState");return(null==e?void 0:e.code)===s.jK.Success&&(null==e?void 0:e.data)===1?1:0}};var m=o("402748");o("706056");var p=o("426038"),g=o("855357"),y=o("499059"),h=o("414061"),w=o("409250"),E=o("700762");let I=e=>{var i,o,l,n,t,d,r,u,a,v,s,_,c,f,m,p,y,h,w,E,I,b,L,S,T,R,C,P,D,k,A,M;return{author_id:null==e?void 0:null===(i=e.authorInfo)||void 0===i?void 0:i.uid,group_id:null==e?void 0:e.awemeId,log_pb:null==e?void 0:e.logPb,compilation_id:null==e?void 0:null===(o=e.mixInfo)||void 0===o?void 0:o.mixId,playlet_id:null==e?void 0:null===(l=e.seriesInfo)||void 0===l?void 0:l.seriesId,impressionData:null==e?void 0:e.impressionData,awemeId:null==e?void 0:e.awemeId,vduration:null==e?void 0:null===(n=e.video)||void 0===n?void 0:n.duration,qualityType:(null==e?void 0:null===(r=e.video)||void 0===r?void 0:null===(d=r.bitRateList)||void 0===d?void 0:null===(t=d[0])||void 0===t?void 0:t.qualityType)||(null==e?void 0:null===(u=e.video)||void 0===u?void 0:u.qualityType),bitRate:(null==e?void 0:null===(s=e.video)||void 0===s?void 0:null===(v=s.bitRateList)||void 0===v?void 0:null===(a=v[0])||void 0===a?void 0:a.bitRate)||(null==e?void 0:null===(_=e.video)||void 0===_?void 0:_.bitRate),gearName:(null==e?void 0:null===(m=e.video)||void 0===m?void 0:null===(f=m.bitRateList)||void 0===f?void 0:null===(c=f[0])||void 0===c?void 0:c.gearName)||"",bitrate_set:null==e?void 0:null===(y=e.video)||void 0===y?void 0:null===(p=y.bitRateList)||void 0===p?void 0:p.map(e=>null==e?void 0:e.gearName),bitrate_set_dash:null==e?void 0:null===(E=e.video)||void 0===E?void 0:null===(w=E.bitRateList)||void 0===w?void 0:null===(h=w.filter(e=>"dash"===e.format))||void 0===h?void 0:h.map(e=>null==e?void 0:e.gearName),bitrate_has_dash:(null==e?void 0:null===(L=e.video)||void 0===L?void 0:null===(b=L.bitRateList)||void 0===b?void 0:null===(I=b.filter(e=>"dash"===e.format))||void 0===I?void 0:I.length)>0?1:0,quality_bitrate:null==e?void 0:null===(T=e.video)||void 0===T?void 0:null===(S=T.bitRateList)||void 0===S?void 0:S.map(e=>`${null==e?void 0:e.qualityType}:${null==e?void 0:e.bitRate}`),aweme_type:(null==e?void 0:e.isSlides)?g.e.Slides:null==e?void 0:e.awemeType,pic_cnt:null!==(M=null==e?void 0:null===(R=e.images)||void 0===R?void 0:R.length)&&void 0!==M?M:0,trending_topic:null==e?void 0:null===(C=e.hotList)||void 0===C?void 0:C.header,first_tag_name:null==e?void 0:null===(P=e.hotList)||void 0===P?void 0:P.sentence,top:null==e?void 0:null===(D=e.hotList)||void 0===D?void 0:D.rank,awemeRequestTime:null==e?void 0:e.requestTime,is_landscape:(null==e?void 0:null===(k=e.video)||void 0===k?void 0:k.width)>(null==e?void 0:null===(A=e.video)||void 0===A?void 0:A.height)?1:0}},b={videoPlay:["is_click_cover"],playTime:["is_click_cover"],videoPlayFinish:["is_click_cover"]};var L=o("734123"),S=o("72430"),T=o("545467"),R=o("384884"),C=o("277764");function P(e){let{networkSpeed:i}=(null==e?void 0:e.curDefinition)||{};return null!=l?l:i?Math.floor(i/1e3):0}var D=o("759894"),k=o("335924"),A=o("31992"),M=o("332911"),O=o("857800"),F=o("626787"),V=o("857609"),N=o("693017"),q=o("439827"),x=o("921626"),B=o("767192"),Z=o("448602"),U=o("193143"),G=o("911159"),W=o("486463"),K=o("145770"),z=o("332009");let Y=e=>{let{getLogInfo:i,clickFrom:o}=e,{author_id:l,group_id:t,log_pb:d,extraParams:r,isMini:u,trending_topic:a,first_tag_name:v,top:s}=i();return(0,m._)((0,n._)({urlParamList:["previous_page"],author_id:l,group_id:t,log_pb:d,enter_from:(0,D.mo)(),click_from:o,tab_name:(0,A.zD)()||(0,k.Rs)("tab_name")||"",trending_topic:a,first_tag_name:v,top:s},r),{is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:""})};var H=o("601034"),J=o("37285");let Q=e=>{let{getLogInfo:i,isAutoPlay:o,customParams:l}=e,{author_id:t,group_id:d,log_pb:r,extraParams:u}=i();return(0,m._)((0,n._)({urlParamList:["previous_page"],author_id:t,group_id:d,log_pb:r,enter_from:(0,H.yW)(),status:o?"on":"off"},u,l),{is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",player_display_mode:(0,D.Ok)()})};o("76375");var $=o("426112"),j=o("762167"),X=o("947383");let ee={click:"click_button",dblclick:"double_click"},ei=e=>{let{getLogInfo:i,clickFrom:o}=e,{author_id:l,group_id:t,log_pb:d,extraParams:r}=i();return(0,n._)({urlParamList:["previous_page"],author_id:l,group_id:t,log_pb:d,enter_from:(0,H.yW)(),click_from:o,is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",player_display_mode:(0,D.Ok)()},r)};o("104882");var eo=o("4804"),el=o("295207"),en=o("570831"),et=o("55938"),ed=o("755890"),er=o("880327");o("968336");var eu=o("558878"),ea=o("995270"),ev=o("810069");let es={playbacksettingplugin:"hover_speed_cell",immersiveswitchsettingplugin:"hover_pure_mode",volume:"hover_volume",playclaritysettingplugin:"hover_clarity_cell",innerautoplayplugin:"hover_auto_play_mode",watchlaterplugin:"hover_watch_later_add"},e_=e=>{let{awemeInfo:i,player:o,getLogInfo:l}=e;(0,d.useEffect)(()=>{if(!o)return;let e=e=>{if(!e||"change_pip"!==e.action)return;let{extraParams:o}=l();M.Z.sendLog("clickSmallWindowEntrance",(0,n._)({enter_from:(0,D.vM)(),click_method:"click_bar",is_manual:"1",group_id:null==i?void 0:i.awemeId,player_display_mode:(0,D.Ok)()},o))},t=e=>{if(!e||"open"!==e.action)return;let{extraParams:o}=l();M.Z.sendLog("clickSmallWindowEntrance",(0,n._)({enter_from:(0,D.vM)(),click_method:"hot_key",is_manual:"1",group_id:null==i?void 0:i.awemeId,player_display_mode:(0,D.Ok)()},o))};return o.on(L.Events.USER_ACTION,e),o.on("onPipShortcutKeyDown",t),()=>{o.off(L.Events.USER_ACTION,e),o.off("onPipShortcutKeyDown",t)}},[o])};var ec=o("550506"),ef=o("49242"),em=o("632062"),ep=o("766511"),eg=o("267133"),ey=o("108954"),eh=o("889094"),ew=o("196982"),eE=o("484606"),eI=o("792903"),eb=o("908750");let eL=e=>{let i=(0,y.YR)(e);return i?{is_cut:i.isCut,cut_protect_type:i.cutProtectType}:{}};var eS=o("153688"),eT=o("32712"),eR=o("137375"),eC=o("902622"),eP=o("443782");let eD=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object.keys(e).length>0){var i,o;return{ufq_src:e.src,ufq_enh:e.enh,ufq_trans:e.trans,ufq_playback_ori:null===(i=e.playback)||void 0===i?void 0:i.ori,ufq_playback_srv1:null===(o=e.playback)||void 0===o?void 0:o.srv1}}return{}},ek=e=>{var i,o;return(null==e?void 0:null===(i=e.video)||void 0===i?void 0:i.seeking)?"seeking":(null==e?void 0:null===(o=e.video)||void 0===o?void 0:o.ended)?"end":"playing"},eA=(e,i)=>{var o,l,t,d;let{group_id:r,vduration:u,bitRate:a,qualityType:v,extraParams:s,bitrate_set:_,quality_bitrate:c,action_type:f,aweme_type:p,video_play_mode:g,is_landscape:y,bitrate_set_client:h}=i,{bitrate:w}=(null==e?void 0:e.curDefinition)||{};return(0,n._)((0,m._)((0,n._)({group_id:r},eL(r)),{vduration:u,bitrate_set:_,quality_bitrate:c,video_play_mode:g,is_landscape:y,aweme_type:p,action_type:"click"===f?"click":"up"===f?"down":"up",video_quality:(0,eS.S)({player:e,qualityType:v}),video_bitrate:w||a,audio_bitrate:(null===(l=e.curDefinition)||void 0===l?void 0:null===(o=l.audioDefinition)||void 0===o?void 0:o.bitrate)||0,real_bitrate:(null===(t=e.curDefinition)||void 0===t?void 0:t.realBitrate)||0,feature_id:null===(d=e.curDefinition)||void 0===d?void 0:d.featureId,bitrate_set_client:h}),s)},eM=e=>{let i=y.Le.getConfig(y.gI.PagingType),o=y.Le.getConfig(y.gI.FastSlowSlide);return{paging_type:e?null==i?void 0:i.current:null==i?void 0:i.pre,slide_speed:o}},eO=(e,i)=>{var o,l,n,t,d,r,u,a,v,s,c,f,m,p,g,h,w,E,I;let{codecFormat:b,isH265:L,videoFormat:S}=(0,eT.Z)({awemeInfo:i,player:e}),{currentLowDecodeCount:T=0,decoderMode:R=0,lowdecodeVV:C=0,vv:D=0,fps:k=0,currentState:A=0}=(null===(l=e.video)||void 0===l?void 0:null===(o=l.getStats)||void 0===o?void 0:o.call(l))||{},M=null===(n=e.videoFrameInfo)||void 0===n?void 0:n.dropped,O=null===(t=e.videoFrameInfo)||void 0===t?void 0:t.droppedRate;try{if(null==e?void 0:null===(h=e.plugins)||void 0===h?void 0:null===(g=h.srplugin)||void 0===g?void 0:null===(p=g.getStat())||void 0===p?void 0:p.usingSR){let{totalFrames:i,droppedRate:o}=(null==e?void 0:null===(E=e.plugins)||void 0===E?void 0:null===(w=E.srplugin)||void 0===w?void 0:w.getStat())||{};O=o,M=Math.floor(i*o)}}catch(e){}return{duration:e.cumulateTime?e.cumulateTime:0,player_version:e.version,codec_format:b,video_format:S,video_fps:null==e?void 0:null===(d=e.curDefinition)||void 0===d?void 0:d.fps,is_over_rect:(null==e?void 0:null===(r=e.config)||void 0===r?void 0:r.isOverRect)?1:0,internet_speed:P(e),drop_frame:null===(u=e.videoFrameInfo)||void 0===u?void 0:u.dropped,drop_frame_sr:M,total_play_frame:null===(a=e.videoFrameInfo)||void 0===a?void 0:a.total,drop_frame_rate_sr:O,drop_frame_rate:null===(v=e.videoFrameInfo)||void 0===v?void 0:v.droppedRate,drop_frame_duration:null===(s=e.videoFrameInfo)||void 0===s?void 0:s.droppedDuration,end_status:ek(e),is_bytevc1:L,current_low_decode_count:T,decoder_mode:R,h265_failure_rate:10===D?C/D:-1,decode_fps:null!==(I=null===(c=e.video)||void 0===c?void 0:c.decodeFps)&&void 0!==I?I:0,is_supported_265:(0,_.VV)()?1:0,is_265_degrade_client:(0,_.ad)({player:e}),is_265_degrade_web:(0,_.OS)({player:e}),frame_rate:k,current_state:A,quality_level:(null==i?void 0:null===(f=i.webRawData)||void 0===f?void 0:f.quality)===1,is_ad:(0,$.Jt)(i)?1:0,is_ai_note:(0,eP.Z)({awemeInfo:i})?1:0,is_compilation:(null==i?void 0:null===(m=i.mixInfo)||void 0===m?void 0:m.mixId)?1:0,is_full_screen:(0,er.r)(),is_show_comment:y.Le.getConfig(y.gI.IsCommetTab)?1:0,is_visible:"visible"===document.visibilityState?1:0}};var eF=o("8013"),eV=o("162164"),eN=o("474221"),eq=o("226846"),ex=o("237869"),eB=o("420253");o("362051"),o("374954");var eZ=o("687581"),eU=o("272726"),eG=o("191785"),eW=o("889429"),eK=o("292382"),ez=o("72137"),eY=o.n(ez),eH=o("923440"),eJ=o("459076"),eQ=o("386206"),e$=o("709705"),ej=o("631407"),eX=o("18177"),e0=o("256033");let e1=e=>{try{var i;if(!window)return;(null===(i=window.videoPlayQuality)||void 0===i?void 0:i.length)?window.videoPlayQuality.push(e):window.videoPlayQuality=[e]}catch(e){}},e2=()=>{let e=y.Le.getConfig(y.gI.ModalStartOpenTime);return e?(y.Le.setConfig(y.gI.ModalStartOpenTime,0),Date.now()-e):-1},e6=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Object.keys(e).length>0){var i,o;return{ufq_src:e.src,ufq_enh:e.enh,ufq_trans:e.trans,ufq_playback_ori:null===(i=e.playback)||void 0===i?void 0:i.ori,ufq_playback_srv1:null===(o=e.playback)||void 0===o?void 0:o.srv1}}return{}};var e4=o("265950"),e5=o("74639"),e3=o("991742"),e9=o("449716"),e7=o("600767"),e8=o("47014"),ie=o("688736"),ii=o("917737"),io=o("157945"),il=e=>{let{player:i,awemeInfo:o,isActive:l,getLogInfo:t}=e;(0,d.useEffect)(()=>{var e,d,r;if(!i||!o||!l||(null===(e=y.Le.getConfig(y.gI.AbtestData))||void 0===e?void 0:e.longtask))return;let{group_id:u,vduration:a,extraParams:v,bitrate_set:s,bitrate_set_client:_,quality_bitrate:c,action_type:f,aweme_type:g,video_play_mode:h,is_landscape:w}=t(),{codecFormat:E,isH265:I,videoFormat:b}=(0,eT.Z)({awemeInfo:o,player:i}),{battery:L={},memory:S={}}=(0,eH.J)();M.Z.sendLog("videoInit",(0,m._)((0,n._)((0,m._)((0,n._)({urlParamList:["previous_page","tab_name"]},(0,eI.Z)(i)),{group_id:u,bitrate_set:s,bitrate_set_client:_,vduration:a,player_version:i.version,video_format:b,codec_format:E,is_mute:(null==i?void 0:i.muted)?"1":"0",player_volume:null==i?void 0:i.volume,local_mute:(0,e$.$o)(p.LocalStorageKeys.PLAYER_IS_MUTE),local_volume:(0,e$.$o)(p.LocalStorageKeys.PLAYER_VOLUME),is_video_support:Number((0,eU.k)().isSupport),quality_bitrate:c,action_type:f,is_ad:(0,$.Jt)(o)?1:0,is_compilation:(null==o?void 0:null===(d=o.mixInfo)||void 0===d?void 0:d.mixId)?1:0,aweme_type:g,is_bytevc1:I,video_play_mode:h,is_landscape:w,play_order:(0,B.G)()}),v),{buffer_duration:(0,ep.U)(i,null==o?void 0:null===(r=o.video)||void 0===r?void 0:r.duration),battery_charging:L.charging,battery_level:L.level,memory_js_heap_size_limit:S.jsHeapSizeLimit,memory_free_js_heap_size:S.freeJSHeapSize,memory_free_level:S.freeLevel,memory_used_js_heap_size:S.usedJSHeapSize}))},[i,o,l])},it=o("190516"),id=o("819765");let ir=0;o("490629");let iu=e=>{var i,o,l,n,t,d,r,u,a;if(!Array.isArray(null==e?void 0:null===(t=e.plugins)||void 0===t?void 0:null===(n=t.mp4encryptplayer)||void 0===n?void 0:null===(l=n.mp4)||void 0===l?void 0:null===(o=l.meta)||void 0===o?void 0:null===(i=o.moov)||void 0===i?void 0:i.trak))return{mediaTime:0};let v=e.plugins.mp4encryptplayer.mp4.meta.moov.trak.find(e=>{var i,o;return(null===(o=e.mdia)||void 0===o?void 0:null===(i=o.hdlr)||void 0===i?void 0:i.handlerType)==="vide"});if(!v)return{mediaTime:0};let s=null===(r=v.edts)||void 0===r?void 0:null===(d=r.elst)||void 0===d?void 0:d.entries,_=null===(a=v.mdia)||void 0===a?void 0:null===(u=a.mdhd)||void 0===u?void 0:u.timescale;if(Array.isArray(s)&&s.length>0&&_>0){let e=s[0].media_time;if(e>0)return{mediaTime:e/_}}return{mediaTime:0}},ia=["MP4_MSE","DASH","MP4_MSE_SOFT"],iv=e=>{let{isNext:i,player:o,awemeInfo:l,getLogInfo:n,isActive:t}=e;(0,d.useEffect)(()=>{if(i&&o&&l){let e=(0,H.yW)(),i=()=>{var i,t,d,r,u,a;if(ia.includes(o.vtype.toUpperCase()))return;let{awemeId:v}=l,s=(null===(i=o.curDefinition)||void 0===i?void 0:i.bitrate)||0,_=(0,ep.U)(o,null==l?void 0:null===(t=l.video)||void 0===t?void 0:t.duration),c=(0,ec.e)(_*s),f=(0,eg.A)(o),{qualityType:m}=n(),p={user_unique_id:null===(d=(0,ev.Es)())||void 0===d?void 0:d.user_unique_id,enter_from:e,group_id:v,preload_size:c,preload_time:_,video_bitrate:s,audio_bitrate:(null===(u=o.curDefinition)||void 0===u?void 0:null===(r=u.audioDefinition)||void 0===r?void 0:r.bitrate)||0,real_bitrate:(null===(a=o.curDefinition)||void 0===a?void 0:a.realBitrate)||0,video_quality:(0,eS.S)({player:o,qualityType:m}),data_player_type:f,vtype:o.vtype,duration:o.duration,type:0};M.Z.sendLog("prfLastPreloadDataSize",p,!1)};return o.on(J.B.BeforeDestroy,i),window.addEventListener("beforeunload",i),()=>{o.off(J.B.BeforeDestroy,i),window.removeEventListener("beforeunload",i)}}},[o,l,i])};var is=o("63601"),i_=o("310383"),ic=o("913285");let im=e=>{let{awemeInfo:i,isActive:o,isNext:t,isPrev:a,logParams:v,userInfo:s,isFirst:ek,index:ez,disableRecord:ia=!1}=e||{},i_=(0,is.n)(),{getH265DegradeReportFlag:ic,getSupportHwClientFlag:im}=function(e){let{awemeInfo:i,isActive:o}=e,l=(0,d.useRef)(!1),n=(0,d.useRef)((0,r.$n)());l.current=(0,d.useMemo)(()=>!c&&!(0,_.Cu)()&&(c=!0,!0),[i]),(0,d.useEffect)(()=>{(async()=>{o&&(n.current=await f())})()},[i,o]);let t=(0,d.useCallback)(()=>n.current,[]);return{getH265DegradeReportFlag:(0,d.useCallback)(()=>l.current?1:0,[]),getSupportHwClientFlag:t}}({awemeInfo:i,isActive:o}),{getActionType:ip,getIsChangingVideoSrc:ig}=function(e){let{awemeInfo:i}=e,{isNext:o,isPrev:l,isActive:n}=e,t=(0,d.useRef)(null),r=(0,d.useRef)("click"),u=(0,d.useRef)(!1),a=(0,d.useRef)();o?r.current="down":l&&(r.current="up"),t.current&&(null==i?void 0:i.awemeId)&&(null==i?void 0:i.awemeId)!==t.current&&(n&&a.current?(u.current=!0,r.current="click"):u.current=!1),a.current=n,t.current=null==i?void 0:i.awemeId;let v=(0,d.useCallback)(()=>r.current,[]);return{getActionType:v,getIsChangingVideoSrc:(0,d.useCallback)(()=>u.current,[])}}({awemeInfo:i,isNext:t,isPrev:a,isActive:o}),{getLogInfo:iy}=function(e){let{awemeInfo:i,player:o,isActive:l}=e,{isFirst:t,specialParams:r,logParams:u}=e,{getActionType:a}=e,{inImmersive:v}=(0,E.O)({player:o,isActive:l});(0,d.useEffect)(()=>{if(!o||!l)return;let e=e=>{let i=(null==e?void 0:e.from)||(null==e?void 0:e.clickFrom),o="auto";["click_button","scroll"].includes(i)?o="manual":"auto"===i&&(o="auto_play_open"),y.Le.setConfig(y.gI.VideoPlayMethod,o)},i=h.listen(h.EVENT.reportPlayNext,e),n=h.listen(h.EVENT.reportPlayPrev,e);return()=>{n(),i()}},[o,i,l]);let s=(0,d.useRef)(null);return s.current=(0,d.useMemo)(()=>{var e,l,d,s,_,c,f,g,h,E,b,L,S,T,R,C,P;let D=(0,m._)((0,n._)({item_duration_ms:(null==i?void 0:null===(e=i.video)||void 0===e?void 0:e.duration)||0},u),{log_pb:null==i?void 0:i.logPb});Object.keys(r).forEach(e=>{r[e].forEach(e=>{delete D[e]})});let k={is_click_cover:t?1:0,action_type:a(),is_pure:v?"1":"0",extraParams:D,isMini:0,video_play_mode:(null===(l=w.Q.getItem({sKey:p.CookieKeys.VideoFilterMemoSelect,refresh:!1}))||void 0===l?void 0:l.type)===1?"landscape":"all",is_insert_wallpaper:(null===(d=y.Le.getConfig(y.gI.WallPaperIds))||void 0===d?void 0:d.includes(null==i?void 0:i.awemeId))?1:0,latest_group_id:null===(s=y.Le.getConfig(y.gI.FeedLatestViewedAweme))||void 0===s?void 0:s.awemeId,if_first_big_card:u.if_first_big_card||0},A={origin:[],client:[]};return(null==i?void 0:null===(c=i.video)||void 0===c?void 0:null===(_=c.bitRateList)||void 0===_?void 0:_.length)>0&&(A.origin=i.video.bitRateList.map(e=>({bitRate:e.bitRate,resolution:e.width+"x"+e.height,codec:e.isH265,gear_name:e.gearName,video_quality:e.qualityType,format:e.format,fps:e.fps,hdr:e.HDRBit?1:0,mvmaf:e.mvmaf,ufq:e.ufq}))),(null==o?void 0:null===(h=o.config)||void 0===h?void 0:null===(g=h.definition)||void 0===g?void 0:null===(f=g.list)||void 0===f?void 0:f.length)>0&&(A.client=o.config.definition.list.map(e=>({bitRate:e.bitrate,resolution:e.width+"x"+e.height,codec:e.isH265,gear_name:e.gearName,video_quality:e.qualityType,format:e.format,fps:e.fps,hdr:e.isHDR,mvmaf:e.mvmaf,ufq:e.ufq}))),(0,m._)((0,n._)({},I(i),k),{isFromNextAutoPlay:(null==o?void 0:null===(L=o.plugins)||void 0===L?void 0:null===(b=L.autoplaysettingplugin)||void 0===b?void 0:null===(E=b.config)||void 0===E?void 0:E.nextAutoPlay)||(null==o?void 0:null===(R=o.plugins)||void 0===R?void 0:null===(T=R.searchautoplaysettingplugin)||void 0===T?void 0:null===(S=T.config)||void 0===S?void 0:S.nextAutoPlay),bitrate_info:A,bitrate_set_client:null==o?void 0:null===(C=o.definitionList)||void 0===C?void 0:C.map(e=>null==e?void 0:e.gearName),quality_bitrate_client:null==o?void 0:null===(P=o.definitionList)||void 0===P?void 0:P.map(e=>`${e.qualityType}:${e.bitrate}`)})},[i,u,t,v,o,a]),{getLogInfo:(0,d.useCallback)(()=>s.current,[])}}({awemeInfo:i,player:i_,specialParams:b,logParams:v,isFirst:ek,isActive:o,getActionType:ip}),{getSpecialParams:ih}=function(e){let{getLogInfo:i}=e,o=i(),l=(0,d.useRef)(null);return l.current=(0,d.useMemo)(()=>{let e={};return Object.keys(b).forEach(i=>{let l={};b[i].forEach(e=>{l[e]=o[e]}),e[i]=l}),e},[o]),{getSpecialParams:(0,d.useCallback)(()=>l.current,[])}}({getLogInfo:iy});return!function(e){let{player:i}=e;(0,d.useEffect)(()=>{if(!i)return;let e=()=>{i.emit("focus")};return!i.paused&&e(),i.on("autoplay_started",e),()=>{i.off("autoplay_started",e)}},[i]),(0,d.useEffect)(()=>{if(!i)return;let e=()=>{h.emit(h.EVENT.videoPlay)},o=()=>{h.emit(h.EVENT.videoPlayPrevent)};return!i.paused&&(e(),o()),i.on(L.Events.AUTOPLAY_PREVENTED,o),i.on(L.Events.AUTOPLAY_STARTED,e),()=>{i.off(L.Events.AUTOPLAY_PREVENTED,o),i.off(L.Events.AUTOPLAY_STARTED,e)}},[i])}({player:i_}),!function(e){let{player:i,awemeInfo:o,userInfo:l,isActive:n,disable:t=!1}=e,r=(0,d.useRef)(!1),u=(0,d.useRef)({});(0,d.useEffect)(()=>{if(o&&n)return()=>{let{awemeId:e,progress:i}=u.current;y.Le.setConfig(y.gI.PreAwemeSeenStatus,{id:e,seen:i>=95?1:0})}},[n,o]),(0,d.useEffect)(()=>{r.current=!1},[o.awemeId]),(0,d.useEffect)(()=>{if(!i||!o||t||!n)return;let e=()=>{var e,i,n;if(!r.current){if(r.current=!0,(null==l?void 0:l.isLogin)&&(null==o?void 0:o.awemeId)){let{id:e,seen:i}=y.Le.getConfig(y.gI.PreAwemeSeenStatus)||{};(0,T.w6)({awemeId:null==o?void 0:o.awemeId,authorId:null==o?void 0:null===(n=o.authorInfo)||void 0===n?void 0:n.uid,preItemId:e,preItemSeen:i})}(0,C.N)(o),(null===(i=y.Le.getConfig(y.gI.UnLookVideos))||void 0===i?void 0:null===(e=i[null==o?void 0:o.awemeId])||void 0===e?void 0:e.status)===S.Pl.UnLook&&((0,R.fetchHomeImpression)({awemeIds:o.awemeId}),(0,C.O)({awemeInfo:o}))}},d=e=>{let l=0;if((null==o?void 0:o.awemeType)===g.e.Note){var n;let e=null==i?void 0:null===(n=i.getPlugin)||void 0===n?void 0:n.call(i,"pictureProgress");l=100*((null==e?void 0:e.percent)||0)}else l=(null==e?void 0:e.currentTime)/(null==e?void 0:e.duration)*100;let t=null==o?void 0:o.awemeId,{awemeId:d,progress:r}=u.current;if(t!==d||!(l<r))u.current={awemeId:t,progress:l}};return i.on("timeupdate",d),i.once("timeupdate",e),()=>{i.off("timeupdate",d),i.off("timeupdate",e)}},[i,o,l,n,t])}({player:i_,awemeInfo:i,userInfo:s,isActive:o,disable:ia}),!function(e){let{player:i}=e;(0,d.useEffect)(()=>{if(!i)return;let e=e=>{let{speed:i}=e;l=i,y.Le.setConfig(y.gI.NetworkSpeed,i)};return i.on("download_speed_change",e),()=>{i.off("download_speed_change",e)}},[i])}({player:i_}),!function(e){let{awemeInfo:i,player:o,isActive:l,isNext:t,index:a}=e,{getIsChangingVideoSrc:v,getLogInfo:s,getH265DegradeReportFlag:c,getSpecialParams:f,getReportNetworkSpeed:g,getSupportHwClientFlag:E}=e;!function(e){let{player:i,awemeInfo:o}=e,{getLogInfo:l}=e;(0,d.useEffect)(()=>{if(!i)return;let e=!1,o=()=>{e=!0},t=()=>{e=!1},d=1,r=setInterval(()=>{if(!e)return;let{author_id:i,group_id:o,log_pb:t,compilation_id:r,extraParams:u,trending_topic:a,first_tag_name:v,top:s}=l(),_=0;try{var c,f,m;let e=null===(m=window)||void 0===m?void 0:null===(f=m.__LIVE_PLAYER__)||void 0===f?void 0:null===(c=f.getPlayer)||void 0===c?void 0:c.call(f);_=(null==e?void 0:e.paused)===!1&&(null==e?void 0:e.muted)===!1?1:0}catch(e){}M.Z.sendLog("videoPlayCheckPoint",(0,n._)({urlParamList:["previous_page"],author_id:i,group_id:o,log_pb:t,enter_from:(0,D.mo)(),compilation_id:r,order:d++,tab_name:(0,A.zD)()||(0,k.Rs)("tab_name")||"",trending_topic:a,first_tag_name:v,top:s,is_live_playing:_},u))},6e4);return!i.paused&&o(),i.on("autoplay_started",o),i.on("play",o),i.on("pause",t),()=>{r&&clearInterval(r),i.off("autoplay_started",o),i.off("play",o),i.off("pause",t)}},[i,o,l])}({awemeInfo:i,player:o,getLogInfo:s}),!function(e){let{awemeInfo:i,player:o,isActive:l}=e,{getLogInfo:n,getH265DegradeReportFlag:t,getSupportHwClientFlag:r}=e,u=(0,d.useRef)(null),a=(0,d.useRef)(null),v=(0,q.l)(),s=()=>{var e,o;let l=y.Le.getConfig(y.gI.LynxInfo);return(!(0,O.r)()||(null==l?void 0:l.swiperIndex)===void 0||!((null==l?void 0:null===(e=l.awemeList)||void 0===e?void 0:e.length)>0)||(null===(o=l.awemeList[null==l?void 0:l.swiperIndex])||void 0===o?void 0:o.aweme_id)!==i.awemeId)&&(y.Le.setConfig(y.gI.hasReportVideoRequest,!0),!0)};(0,d.useEffect)(()=>{var e,d;let _;(u.current&&(null===(e=u.current)||void 0===e?void 0:e.awemeId)!==(null==i?void 0:i.awemeId)||!l||!i)&&(u.current=null,a.current=null);let c=o,f=()=>{u.current&&!u.current.isReport&&(u.current.isReport=!0,s()&&(0,F.Z)(u.current.data))},m=()=>{c&&(c.loadstart=1),l&&f()},p=()=>{if(a.current&&!a.current.isReport){var e,i;(0,V.Z)(a.current.data),(null===(i=a.current)||void 0===i?void 0:null===(e=i.data)||void 0===e?void 0:e.is_success)&&(a.current.isReport=!0)}},g=()=>{c&&(c.loadeddata=1),l&&p()},h=e=>{var o,l;let d=n(),{awemeId:a,vduration:v,compilation_id:s,qualityType:_,extraParams:f}=d,m=(null===(o=u.current)||void 0===o?void 0:o.duration)?new Date().getTime()-u.current.duration:0;return{awemeId:i.awemeId,isReport:!1,data:{group_id:a,extraParams:f,duration:m,vduration:v,compilation_id:s,videoQuality:(null==c?void 0:null===(l=c.curDefinition)||void 0===l?void 0:l.qualityType)||_,is_success:e,logInfo:d,player:c,awemeInfo:i,h265DeGrade:t(),supportHw:r(),vtype:null==c?void 0:c.vtype}}},w=e=>{let o=n(),{awemeId:l,extraParams:d}=o;return{awemeId:i.awemeId,duration:new Date().getTime(),data:{group_id:l,extraParams:d,logInfo:o,player:c,awemeInfo:i,h265DeGrade:t(),supportHw:r(),host:null==e?void 0:e.host,fetchExpired:null==i?void 0:i.fetchExpired,vtype:null==c?void 0:c.vtype},isReport:!1}},E=e=>{var i,o;if("loadstart"===e.eventType){let o=y.Le.getConfig(y.gI.SearchVideoPlayMethod);o&&y.Le.setConfig(y.gI.VideoPlayMethod,o),u.current?!(null===(i=a.current)||void 0===i?void 0:i.isReport)&&(a.current=h(0),u.current.duration=new Date().getTime(),g()):(u.current=w(e),m())}else"loadeddata"===e.eventType&&(!(null===(o=a.current)||void 0===o?void 0:o.isReport)&&(a.current=h(1)),g())};i&&(m(),g(),c&&c.on(L.Events.XGLOG,E));let I=e=>{if(i){var o,l;(c=e).dyLogStat&&c.dyLogStat.loadstart&&((null===(o=c.dyLogStat.loadstart.awemeInfo)||void 0===o?void 0:o.awemeId)===i.awemeId&&E(c.dyLogStat.loadstart.data),c.dyLogStat.loadstart=null);let n=(0,x.I)();n.loadstart.used=!0,n.loadstart.data&&(E(n.loadstart.data),n.loadstart.data=null),c.dyLogStat&&c.dyLogStat.loadeddata&&((null===(l=c.dyLogStat.loadeddata.awemeInfo)||void 0===l?void 0:l.awemeId)===i.awemeId&&E(c.dyLogStat.loadeddata.data),c.dyLogStat.loadeddata=null),n.loadeddata.used=!0,n.loadeddata.data&&(E(n.loadeddata.data),n.loadstart.data=null),c.on(L.Events.XGLOG,E),_=()=>{c.off(L.Events.XGLOG,E)}}};return null==v||null===(d=v.on)||void 0===d||d.call(v,N.V.PlayerCreated,I),()=>{var e;null==_||_(),null==c||c.off(L.Events.XGLOG,E),null==v||null===(e=v.off)||void 0===e||e.call(v,N.V.PlayerCreated,I)}},[i,l])}({awemeInfo:i,player:o,isActive:l,getLogInfo:s,getH265DegradeReportFlag:c,getSupportHwClientFlag:E}),!function(e){let{player:i,getLogInfo:o,awemeInfo:l}=e,t=(0,d.useRef)(-1);(0,d.useEffect)(()=>{if(!i)return;let e=null,d=d=>{"change_volume"===d.action&&(-1===t.current&&(t.current=d.volume),e&&clearTimeout(e),e=setTimeout(()=>{var e,r;if(!(null===(e=d.props)||void 0===e?void 0:e.volume))return;let{to:u}=null===(r=d.props)||void 0===r?void 0:r.volume,a=t.current;t.current=-1;let v=a>u,{extraParams:s}=o();M.Z.sendLog("prfVolumeChange",(0,n._)((0,m._)((0,n._)({down:v?1:0,enter_from:(0,D.vM)(),group_id:null==s?void 0:s.from_group_id},s,null==d?void 0:d.logData),{is_mute:0===u?"1":"0",pre_player_volume:a,cur_player_volume:u,play_order:(0,B.G)(),is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",listen_device:(0,D.nj)()}),(0,Z.$)({player:i,awemeInfo:l})))},500))};return i.on("user_action",d),()=>{i.off("user_action",d)}},[i])}({player:o,getLogInfo:s,awemeInfo:i}),!function(e){let{player:i,awemeInfo:o,isActive:l,getH265DegradeReportFlag:t,getLogInfo:u,getSupportHwClientFlag:a}=e,v=(0,d.useRef)(0),s=(0,d.useRef)(0),_=(0,d.useRef)(0);(0,d.useEffect)(()=>{var e;if(!i||!l)return;let d=!1,c="",f="",p=-1,g=0,h=0,w=(null===(e=y.Le.getConfig(y.gI.IsInModalVideo))||void 0===e?void 0:e.isInModal)||!1,E=e=>{c=null==e?void 0:e.host,f=null==e?void 0:e.vtype,i.removedBuffer=0},I=()=>{g=1},b=e=>{"firstFrame"===e.eventType&&(p=Date.now())},S=()=>{h=1},T=()=>{v.current++},R=e=>{let{eventType:i,pluginName:o,action:l,currentTime:n,prePlayTime:t}=e||{},d=()=>{s.current++,_.current=t-n};if("progress"===o)switch(i){case"click":d();break;case"drag":"dragend"===l&&d()}else l===J.B.DyUserSeek&&d()},C=()=>{var e,l,y,E,I,b,L,S,T,R,C,P,k,A,O,F,V,N,q,x,W,K,z,Y,H,J,Q,$,j,X,ee;if(d)return;d=!0;let ei=(null==o?void 0:null===(y=o.video)||void 0===y?void 0:null===(l=y.playApi)||void 0===l?void 0:null===(e=l.startsWith)||void 0===e?void 0:e.call(l,"blob"))?1:0,{preloadTime:eo,preloadSize:el,startBuffer:en,audioDuration:et,minDuration:ed}=(0,ey.P)(i),er=null==o?void 0:null===(I=o.video)||void 0===I?void 0:null===(E=I.bitRateList)||void 0===E?void 0:E.find(e=>{var o;return e.qualityType===(null==i?void 0:null===(o=i.curDefinition)||void 0===o?void 0:o.qualityType)}),eu=(0,m._)((0,n._)({preload_time:(0,ec.N)(eo),preload_time_audio:et,preload_time_min:ed,preload_size:el||0,preload_type:(0,eR.me)(i)?2:1,hit_preload:(0,eR.qJ)(i),is_mute:(null==i?void 0:i.muted)?"1":"0",player_volume:null==i?void 0:i.volume,video_mute:(null==i?void 0:null===(b=i.video)||void 0===b?void 0:b.muted)?"1":"0",video_volume:null==i?void 0:null===(L=i.video)||void 0===L?void 0:L.volume,equalize_state:null!==(Y=null==i?void 0:i.equalizeVolumeState)&&void 0!==Y?Y:0,lufs:null!==(H=null==i?void 0:i.lufs)&&void 0!==H?H:eC.G7,use_new_mammon_worklet_processor:null!==(J=null==i?void 0:i.useMammonWorkletProcessorV3)&&void 0!==J&&J,use_new_mammon_worklet_processor_with_wasm:null!==(Q=null==i?void 0:i.useMammonWorkletProcessorV3Wasm)&&void 0!==Q&&Q,hit_new_mammon_worklet_processor:null!==($=null==i?void 0:i.hitMammonWorkletProcessorV3)&&void 0!==$&&$,volume_balance_longtest_consume_time:null!==(j=null==i?void 0:null===(S=i.effectNodeConsumeTime)||void 0===S?void 0:S.longest)&&void 0!==j?j:-2,volume_balance_shortest_consume_time:null!==(X=null==i?void 0:null===(T=i.effectNodeConsumeTime)||void 0===T?void 0:T.shortest)&&void 0!==X?X:-2,is_in_modal:w},(0,Z.$)({player:i,awemeInfo:o}),(()=>{try{var e,l,n,t;let{cdn:d,pcdn:r}=(null==i?void 0:i.bandwidth)||(null==i?void 0:i.bandWidth)||{},{size:u}=d||{},{size:a,trace_id:c,uri:f,fid:m}=r||{},p=_.current,g=s.current,y=(0,em.a)(i,v.current),h=(null==i?void 0:null===(e=i.curDefinition)||void 0===e?void 0:e.realBitrate)||(null==i?void 0:null===(l=i.curDefinition)||void 0===l?void 0:l.bitrate)||0,w=(0,ep.U)(i,null==o?void 0:null===(n=o.video)||void 0===n?void 0:n.duration),E=(0,ec.e)(w*h),I=(0,eg.A)(i);if(ei){let e=i.duration?(y>0?i.duration:i.currentTime)/i.duration:0;E*=e}let{pcdn_tracker_request_cnt:b,pcdn_tracker_failed_cnt:L,pcdn_download_request_cnt:S,pcdn_download_failed_cnt:T}=(null==i?void 0:i.pcdnReq)||(null==i?void 0:null===(t=i.config)||void 0===t?void 0:t.pcdnReq)||{};return{fid:m,trace_id:c,uri:f,pcdn_size_video:a||0,cdn_size_video:u||0,play_size:(0,em.L)(i),loop_cnt:y,seek_cnt:g,seek_time:(0,ec.N)(p),play_leave_position:(0,ec.N)(i.currentTime),play_duration_clean:(0,ec.N)(y>0?i.duration:i.currentTime),cache_size:Math.max(E,(0,em.L)(i)),cache_duration:(0,ec.N)(w),data_player_type:I,pcdn_tracker_request_cnt:b,pcdn_tracker_failed_cnt:L,pcdn_download_request_cnt:S,pcdn_download_failed_cnt:T}}catch(e){return{}}})(),(0,eh.m)({player:i}),(0,eh.B)({player:i}),(null==i?void 0:i.superResolution)||{},(null==er?void 0:er.mvmaf)||{},eD(null==er?void 0:er.ufq)),{urlParamList:["previous_page","tab_name"],is_success:g||(null==i?void 0:null===(R=i.video)||void 0===R?void 0:R.readyState)>=2?1:0,host:c,vtype:f,play_order:(0,B.G)(),is_265_degrade:t(),from_start_duration:-1===p?-1:Date.now()-p,is_support_hw:a(),is_hw:(null==i?void 0:null===(C=i.config)||void 0===C?void 0:C.mediaType)==="video"?1:0,is_supported_hevc1_hw:(0,r._u)()?1:0,is_supported_264_hw:(0,r.b4)()?1:0,is_hw_client:(0,ew.N)(i),is_gear_down:null!==(ee=null==i?void 0:null===(P=i.curDefinition)||void 0===P?void 0:P.orgDefinition)&&void 0!==ee?ee:0,definition:null==i?void 0:null===(k=i.curDefinition)||void 0===k?void 0:k.definition,start_buffer:en,if_invisible:(0,ea.Vr)()?"1":"0",is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",buffer:(null==i?void 0:null===(A=i.bufferedPoint)||void 0===A?void 0:A.end)-(null==i?void 0:null===(O=i.bufferedPoint)||void 0===O?void 0:O.start)||0,has_down_definition:i.definitionList.find(e=>{var o;return(null==e?void 0:e.definition)===(null==i?void 0:null===(o=i.curDefinition)||void 0===o?void 0:o.definition)+1})?1:0});(0,eE.O)(i);let ev=(null==i?void 0:null===(F=i.getSwitchDefinationInfos)||void 0===F?void 0:F.call(i))||{},es=null==i?void 0:null===(V=i.config)||void 0===V?void 0:V.srMissReason,e_=(0,m._)((0,n._)((0,m._)((0,n._)({},eM(!1),eu,(0,eI.Z)(i),(0,eb.Z)(),eO(i,o),eA(i,u()),(null==i?void 0:i.stages)||{},(null==i?void 0:null===(N=i.stat)||void 0===N?void 0:N.stage)||{},(null==i?void 0:i.startTimelines)||{},(null==i?void 0:i.pcdnVVStat)||{},(null==i?void 0:null===(W=i.plugins)||void 0===W?void 0:null===(x=W.srplugin)||void 0===x?void 0:null===(q=x.getStat)||void 0===q?void 0:q.call(x))||{},(null==i?void 0:i.novv)||{},(0,ef.v)(o)),{has_sr_plugins:!!(null==i?void 0:null===(K=i.plugins)||void 0===K?void 0:K.srplugin),sr_plugins_miss_reason:es,firstframed:i.firstframe?1:0,loadstart:(null==i?void 0:i.loadstart)?1:0,loadeddata:(null==i?void 0:i.loadeddata)?1:0,is_cache_video:ei,listen_device:(0,D.nj)(),abr_upper_count:i.upperCount||0,abr_lower_count:i.lowerCount||0,abr_total_count:i.abrCount||0,abr_change_count:i.abrChangeCount||0,abr_change_upper_count:i.upperAbrChangeCount||0,abr_change_lower_count:i.lowerAbrChangeCount||0,block_play_type:i.blockPlayType,pause_type:i.pauseType,end_config_autoplay:i.config.autoplay,end_autoplay:i.autoplay}),ev),{clarity_now:null==i?void 0:null===(z=i.getClarity)||void 0===z?void 0:z.call(i,!1),video_play_speed:i.playbackRate,is_loop:h});M.Z.sendLog("videoPlayEnd",e_,!1),i.removedBuffer=0,i.preplayStat=0,i.prepauseStat=0,i.superResolution={},i.upperCount=0,i.lowerCount=0,i.abrCount=0,i.abrChangeCount=0,i.upperAbrChangeCount=0,i.lowerAbrChangeCount=0,i.bandWidth=null,i.blockPlayType="",i.pauseType="",i.firstframe=0,i.loadstart=0,i.loadeddata=0,i.danmakuGetBoundingCounts=0,i.danmuElCreateCounts=0},P=e=>{i.removedBuffer+=e.removeDur};return i.on("removeBuffer",P),i.on(L.Events.XGLOG,b),i.on(L.Events.PLAY,E),i.once(L.Events.LOADED_DATA,I),i.on(L.Events.USER_ACTION,R),i.on(L.Events.ENDED,T),i.on("prepause",C),i.on(L.Events.REPLAY,S),window.addEventListener("beforeunload",C),i.once(J.B.BeforeDestroy,C),()=>{C(),i.off(J.B.BeforeDestroy,C),i.off(L.Events.XGLOG,b),i.off(L.Events.PLAY,E),i.off(L.Events.LOADED_DATA,I),i.off(L.Events.USER_ACTION,R),i.off(L.Events.ENDED,T),i.off("prepause",C),i.off("removeBuffer",P),i.off(L.Events.REPLAY,S),window.removeEventListener("beforeunload",C)}},[i,o,l]),(0,d.useEffect)(()=>{v.current=0,s.current=0,_.current=0},[o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s,getH265DegradeReportFlag:c,getSupportHwClientFlag:E}),!function(e){let{player:i,awemeInfo:o,isActive:l,index:t}=e,{getLogInfo:u,getSpecialParams:a}=e;(0,d.useEffect)(()=>{if(!i||!l||(null==o?void 0:o.awemeType)===68)return;let e=a(),d=()=>{var l,d,a,v,s,_,c,f,g,h,E;let{author_id:I,group_id:b,log_pb:L,compilation_id:S,playlet_id:T,extraParams:R,aweme_type:C,isMini:P,trending_topic:O,first_tag_name:F,top:V,is_click_cover:N,is_pure:q,is_insert_wallpaper:x,if_first_big_card:B}=u(),{isH265:Z}=(0,eT.Z)({awemeInfo:o,player:i}),W=!1,K=(0,eF.G)(p.SessionStorageKeys.CacheRecommendActiveAwemeID);K&&K===b&&(W=!0),M.Z.sendLog("videoPlayFinish",(0,m._)((0,n._)((0,m._)((0,n._)((0,m._)((0,n._)({is_click_cover:N,urlParamList:["trending_topic","previous_page"],enter_from:(0,D.mo)(),enter_from_merge:(0,eV.z)(""),enter_method:(0,k.Rs)("enter_method")||"",author_id:I,group_id:b,log_pb:L,compilation_id:S,playlet_id:T,is_insert_wallpaper:x,tab_name:(0,A.zD)()||(0,k.Rs)("tab_name")||"",is_full_screen:(0,er.r)()?"1":"0",is_full_webscreen:z.s.getIsPageFullscreen()?"1":"0",is_visible:String("visible"===document.visibilityState?1:0),is_author_card_expand:(null===(l=y.Le.getConfig(y.gI.IsCollapseAuthorCard))||void 0===l?void 0:l.isCollapseAuthorCard)?0:1,from_follow_list:(null===(d=y.Le.getConfig(y.gI.FromFollowList))||void 0===d?void 0:d.tag)?"1":"0",is_mute:(null==i?void 0:i.muted)?"1":"0"},(0,eN.t)()),{mute_type:null===(a=y.Le.getConfig(y.gI.ForceMuted))||void 0===a?void 0:a.currentMuteType,is_force:(null===(v=y.Le.getConfig(y.gI.ForceMuted))||void 0===v?void 0:v.currentMuteType)==="browser"?"1":"0",aweme_type:C,trending_topic:O,first_tag_name:F,top:V,is_pure:q,from_push:w.Q.getItem({sKey:p.CookieKeys.FromClientPush})?1:0}),R,e.videoPlayFinish||{}),{is_bytevc1:Z,video_time:(0,eq.n)(null==o?void 0:null===(s=o.video)||void 0===s?void 0:s.duration),is_from_ad:(0,$.Jt)(o)?1:0,auto_play_mode:null===(_=y.Le.getConfig(y.gI.InnerAutoPlay))||void 0===_?void 0:_.mode,is_supported_hevc1_hw:(0,r._u)()?1:0,is_supported_264_hw:(0,r.b4)()?1:0,video_play_method:null!==(g=y.Le.getConfig(y.gI.VideoPlayMethod))&&void 0!==g?g:"auto",is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",is_hw_client:(0,ew.N)(i),is_ai_note:(0,eP.Z)({awemeInfo:o})?1:0,from_click_group_id:null!==(h=null==o?void 0:o.insertId)&&void 0!==h?h:"",url_source:null!==(E=null==o?void 0:null===(c=o.continationInfo)||void 0===c?void 0:c.urlSource)&&void 0!==E?E:["recommend","personal_homepage"].includes((0,D.vM)())?w.Q.getItem({sKey:p.CookieKeys.UrlSourceForBrowserPlugin}):"",is_cache_video:W,is_first_video:!t,column_type:(null==R?void 0:R.column_type)||(null==R?void 0:null===(f=R.search_params)||void 0===f?void 0:f.column_type),if_first_big_card:B}),(0,ex.Wc)()),{is_selected_label:(null==o?void 0:o.weeklyRecommend)?1:0}));let Y=y.Le.getConfig(y.gI.SearchVideoPlayMethod);Y&&y.Le.setConfig(y.gI.VideoPlayMethod,Y)},v=(0,x.I)();return v.playfinish.used=!0,v.playfinish.data?(d(),v.playfinish.data=null):i.once(L.Events.ENDED,d),()=>{i.off(L.Events.ENDED,d)}},[i,o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s,getSpecialParams:f,index:a}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:n}=e;(0,d.useEffect)(()=>{if(!i||!l)return;let e=e=>{M.Z.sendLog("clickPreviousVideo",Y({getLogInfo:n,clickFrom:e})),"click_button"===e&&(0,K.V)()},t=e=>{M.Z.sendLog("clickNextVideo",Y({getLogInfo:n,clickFrom:e})),"click_button"===e&&(0,K.V)()},d=()=>{var e;if(!l||!o||o&&(null==o?void 0:o.cell_room))return!1;let n=z.s.getPlayerScene(i.playerId),t=z.s.getPlayersByScene(S.lT.Modal)||[],d=null===(e=y.Le.getConfig(y.gI.IsInLookMiniModal))||void 0===e?void 0:e.isInMiniModal,r=(0,W.OB)();return(n===S.lT.Modal||!(t.length>0))&&(!d||i.playerId===r)&&!0},r=h.listen(h.EVENT.reportPlayNext,e=>{let{clickFrom:i}=e;if(!!d())t(i)}),u=h.listen(h.EVENT.reportPlayPrev,i=>{let{clickFrom:o}=i;if(!!d())e(o)});return()=>{r(),u()}},[i,o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:n}=e;(0,d.useEffect)(()=>{if(!i||!l)return;let e=e=>{if((null==e?void 0:e.isInnerReset)===!0)return;let i=null==e?void 0:e.isOn;M.Z.sendLog("clickAutoPlay",Q({getLogInfo:n,isAutoPlay:i,customParams:"object"==typeof(null==e?void 0:e.logParams)?null==e?void 0:e.logParams:{}}))};return i.on(J.B.AutoPlaySwitchChange,e),()=>{i.off(J.B.AutoPlaySwitchChange,e)}},[i,o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:t}=e;(0,d.useEffect)(()=>{if(!i||!l)return;let e=e=>{if((0,$.Jt)(o)){let i=(0,$.Rx)(o);(0,j.E)("full_screen",{tag:(0,X.f)(),value:i.creative_id,log_extra:i.log_extra,player_form:e})}},d=i=>{M.Z.sendLog("enterFullScreen",ei({getLogInfo:t,clickFrom:i})),e("browser_full")},r=i=>{M.Z.sendLog("exitFullScreen",(0,m._)((0,n._)({},ei({getLogInfo:t,clickFrom:i})),{stack_trace:"click_button"!==i?Error().stack:""})),e("normal")},u=(e,i)=>{e?r(i):d(i)},a=e=>{if("switch_fullscreen"===e.action){let i=ee[e.eventType]||"keyboard";u(e.fullscreen||"system"===e.eventType,i)}},v=e=>{u(!e.fullscreen,"hot_key")};return i.on(L.Events.USER_ACTION,a),i.on(J.B.SwitchFullScreen,v),()=>{i.off(L.Events.USER_ACTION,a),i.off(J.B.SwitchFullScreen,v)}},[i,o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s}),(0,eB.Z)({player:o,awemeInfo:i,isActive:l,getLogInfo:s,getSpecialParams:f}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:t}=e;(0,d.useEffect)(()=>{if(!i||!l)return;let e=e=>{let{author_id:i,group_id:o,log_pb:l,extraParams:d}=t();M.Z.sendLog("clickVideoSpeed",(0,n._)({urlParamList:["previous_page"],author_id:i,group_id:o,log_pb:l,enter_from:(0,H.yW)(),speed:Number(e).toFixed(2),is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",player_display_mode:(0,D.Ok)()},d))};return i.on(J.B.PlayRatioChange,e),()=>{i.off(J.B.PlayRatioChange,e)}},[i,o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:t}=e;(0,d.useEffect)(()=>{if(!i||!l)return;let e=e=>{if((null==e?void 0:e.action)==="switch_play_pause"){let i="pauseVideo";i=e.paused?"startVideo":"pauseVideo";let l=(0,eo.m)(e),{extraParams:d}=t();M.Z.sendLog(i,(0,m._)((0,n._)({enter_from:(0,H.yW)(),click_method:l},d),{is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",player_display_mode:(0,D.Ok)(),group_id:o.awemeId||""}))}};return i.on(L.Events.USER_ACTION,e),()=>{i.off(L.Events.USER_ACTION,e)}},[i,o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:t}=e;(0,d.useEffect)(()=>{if(!i||!l)return;let e=e=>{if((null==e?void 0:e.action)==="change_muted"||(null==e?void 0:e.action)==="change_volume"){let l=!1,{extraParams:d}=t();(null==e?void 0:e.action)==="change_muted"?(M.Z.sendLog("clickVolume",(0,n._)({enter_from:(0,H.yW)(),status:e.muted?"1":"0",group_id:null==o?void 0:o.awemeId,player_display_mode:(0,D.Ok)()},d)),(null==e?void 0:e.muted)&&(l=!0)):e.volume>0&&(l=!0),l&&(null==i||i.emit("openVolume"))}};return i.on(L.Events.USER_ACTION,e),()=>{i.off(L.Events.USER_ACTION,e)}},[i,o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e;(0,d.useRef)({isDrag:!1}),(0,d.useEffect)(()=>{if(!i||!l)return;let e=e=>{var l,n,t,d;return{position:(null==i?void 0:i.currentTime)||0,enter_from:(0,D.mo)(),enter_from_merge:(0,D.vM)(),tab_name:(0,A.zD)()||(0,k.Rs)("tab_name")||"",rate:e.percent,action:e.currentTime>e.prePlayTime?"forward":"rewind",is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",is_chapter_bar:(null==o?void 0:null===(l=o.chapterInfo)||void 0===l?void 0:l.status)?1:0,chapter_index:(0,en.P)({awemeInfo:o,currentTime:e.currentTime}),group_id:null==o?void 0:o.awemeId,author_id:null==o?void 0:null===(n=o.authorInfo)||void 0===n?void 0:n.uid,vduration:null==o?void 0:null===(t=o.video)||void 0===t?void 0:t.duration,if_continued_play:y.Le.getConfig(y.gI.PlayRecord)?(0,ed.v)(o.awemeId)?1:0:"",before_rate:1e3*e.prePlayTime/(null==o?void 0:null===(d=o.video)||void 0===d?void 0:d.duration),before_position:e.prePlayTime,is_ting_window:et.e.activeScene===el.d.ListenVideo?1:0,player_display_mode:(0,D.Ok)()}},t=o=>{(null==o?void 0:o.action)==="click"&&M.Z.sendLog("progressClick",(0,m._)((0,n._)({play_current_time:Math.floor((null==i?void 0:i.currentTime)||0)},e(o)),{click_method:"click"}))};i.on(L.Events.USER_ACTION,t);let d=i.getPlugin("progress"),r=o=>{M.Z.sendLog("progressClick",(0,m._)((0,n._)({play_current_time:Math.floor((null==i?void 0:i.currentTime)||0)},e(o)),{click_method:"drag"}))};return d&&d.addCallBack("dragend",r),()=>{i.off(L.Events.USER_ACTION,t),d&&d.removeCallBack("dragend",r)}},[i,o,l])}({player:o,awemeInfo:i,isActive:l}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:t}=e;(0,d.useEffect)(()=>{if(!i||!l)return;let e=e=>{let{getEnterFromDynamic:i,extraParams:l}=t();if(e.isInnerReset)return;let d=(null==i?void 0:i())||(0,D.mo)(),r=(0,m._)((0,n._)({enter_from:d},l,e.logParams||{}),{group_id:null==o?void 0:o.awemeId,is_full_screen:(0,er.r)()?"1":"0",is_full_webscreen:z.s.getIsPageFullscreen()?"1":"0",player_display_mode:(0,D.Ok)()});e.isOn&&M.Z.sendLog("openPureMode",r),e.isOn||M.Z.sendLog("closePureMode",r)};return i.on(J.B.ImmersiveSwitchChange,e),()=>{i.off(J.B.ImmersiveSwitchChange,e)}},[i,o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:t,getH265DegradeReportFlag:r,getSupportHwClientFlag:u}=e,a=(0,d.useRef)([]),v=(0,d.useRef)(0),s=(0,d.useRef)(""),c=(0,d.useRef)([]),f=(0,q.l)();(0,d.useEffect)(()=>{var e;let d;(s.current!==(null==o?void 0:o.awemeId)||!l||!o)&&(s.current=null==o?void 0:o.awemeId,a.current=[],v.current=0);let g=i,h=()=>{let e=a.current.length;if(e){let i=a.current[e-1];M.Z.sendLog("videoPlayFailed",i),eZ.oe.event.info({name:eZ.Mo.VideoPlayFailed,report:i})}a.current=[],c.current.forEach(e=>{M.Z.sendLog("linkPlayFailed",e)}),c.current=[]},w=()=>{l&&h()},E=e=>{var i,d,s,c,f,h,E,I,b,L,S,T,R,C,P,D,k;let{group_id:A,vduration:O,extraParams:F,action_type:V,aweme_type:N,awemeRequestTime:q,qualityType:x,log_pb:Z,bitrate_set_client:W}=t(),{isH265:K,codecFormat:z,videoFormat:Y}=(0,eT.Z)({awemeInfo:o,player:g}),H=(0,n._)((0,m._)((0,n._)({urlParamList:["previous_page","tab_name"]},(0,eI.Z)(g),(0,eb.Z)()),{group_id:A,errorCode:(null==e?void 0:null===(i=e.mediaError)||void 0===i?void 0:i.code)||(null==e?void 0:e.errorCode)||"",errorDesc:(null==e?void 0:null===(d=e.mediaError)||void 0===d?void 0:d.message)||(null==e?void 0:e.errorMessage)||"",vduration:O,video_quality:(0,eS.S)({player:g,qualityType:x}),player_version:g.version,current_position:1e3*g.currentTime,is_video_support:Number((0,eU.k)().isSupport),host:null==e?void 0:e.host,vtype:(null==e?void 0:e.vtype)||(null==g?void 0:g.vtype),action_type:V,bitrate_set_client:W,is_ad:(0,$.Jt)(o)?1:0,is_compilation:(null==o?void 0:null===(s=o.mixInfo)||void 0===s?void 0:s.mixId)?1:0,is_full_screen:(0,er.r)(),is_show_comment:y.Le.getConfig(y.gI.IsCommetTab)?1:0,is_active:1,is_cdn_expired:1===(0,eG.q)(g.currentSrc)?1:0,is_bytevc1:K,aweme_type:N,log_pb:Z,codec_format:z,video_format:Y,play_order:(0,B.G)(),is_supported_265:(0,_.VV)()?1:0,is_265_degrade:r(),has_report:v.current++,is_265_degrade_client:(0,_.ad)({player:g}),is_support_hw:u(),is_hw:(null==g?void 0:null===(c=g.config)||void 0===c?void 0:c.mediaType)==="video"?1:0,if_invisible:(0,ea.Vr)()?"1":"0",is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",feature_id:null==g?void 0:null===(f=g.curDefinition)||void 0===f?void 0:f.featureId,clarity_now:null==g?void 0:null===(h=g.getClarity)||void 0===h?void 0:h.call(g,!1),aweme_detail:JSON.stringify(null==o?void 0:null===(E=o.video)||void 0===E?void 0:E.bitRateList),secret_key:(null==o?void 0:null===(L=o.video)||void 0===L?void 0:null===(b=L.bitRateList)||void 0===b?void 0:null===(I=b[0])||void 0===I?void 0:I.playerAccessKey)||"",secret_format:null==o?void 0:null===(R=o.video)||void 0===R?void 0:null===(T=R.bitRateList)||void 0===T?void 0:null===(S=T[0])||void 0===S?void 0:S.format}),(0,eh.m)({player:g}),(0,eh.B)({player:g}),F);if((null==e?void 0:null===(C=e.mediaError)||void 0===C?void 0:C.code)===6&&(H.aweme_info=null==g?void 0:null===(D=g.config)||void 0===D?void 0:D.url),l){if(null==g?void 0:g.errored)return;g.errored=1,M.Z.sendLog("videoPlayFailed",H),eZ.oe.event.info({name:eZ.Mo.VideoPlayFailed,report:H})}else a.current.push(H),w();if((0,eW.G6)()&&(null==e?void 0:null===(P=e.mediaError)||void 0===P?void 0:P.code)===3&&1===K){let e=null!==(k=(0,eF.G)(p.SessionStorageKeys.DecodeError))&&void 0!==k?k:0;(0,eF.t_)(p.SessionStorageKeys.DecodeError,e+1)}},I=e=>{var i,n,d,r,u,a,v,s,_,f,m;let{group_id:p,aweme_type:y}=t(),{isH265:h,codecFormat:E,videoFormat:I}=(0,eT.Z)({awemeInfo:o,player:g}),b=(0,eK.E)(e.src,g.config.url).isPcdnSource,L={group_id:p,aweme_type:y,host:null==e?void 0:e.host,enter_from:(0,H.yW)(),is_pcdn:Number(b),user_unique_id:null===(i=(0,ev.Es)())||void 0===i?void 0:i.user_unique_id,src:null==e?void 0:e.src,errorDesc:null!==(_=null==e?void 0:null===(n=e.mediaError)||void 0===n?void 0:n.message)&&void 0!==_?_:null==e?void 0:e.message,errorCode:null!==(f=null==e?void 0:null===(d=e.mediaError)||void 0===d?void 0:d.code)&&void 0!==f?f:null==e?void 0:e.errorCode,vtype:null!==(m=null==e?void 0:e.vtype)&&void 0!==m?m:null==g?void 0:g.vtype,range:null==e?void 0:e.range,content_length:null==e?void 0:null===(r=e.headers)||void 0===r?void 0:r["content-length"],content_range:null==e?void 0:null===(u=e.headers)||void 0===u?void 0:u["content-range"],content_type:null==e?void 0:null===(a=e.headers)||void 0===a?void 0:a["content-type"],server_ip:null==e?void 0:null===(v=e.headers)||void 0===v?void 0:v.server_ip,x_response_cinfo:null==e?void 0:null===(s=e.headers)||void 0===s?void 0:s["x-response-cinfo"],is_bytevc1:h,codec_format:E,video_format:I,current_position:null==g?void 0:g.currentTime};l?M.Z.sendLog("linkPlayFailed",L):(c.current.push(L),w())};o&&(w(),g&&(g.on(L.Events.ERROR,E),g.on(L.Events.SOURCE_ERROR,I)));let b=e=>{(g=e).on(L.Events.ERROR,E),g.on(L.Events.SOURCE_ERROR,I),d=()=>{g.off(L.Events.ERROR,E),g.off(L.Events.SOURCE_ERROR,I)}};return null==f||null===(e=f.on)||void 0===e||e.call(f,N.V.PlayerCreated,b),()=>{var e;null==d||d(),null==g||g.off(L.Events.ERROR,E),null==g||g.off(L.Events.SOURCE_ERROR,I),null==f||null===(e=f.off)||void 0===e||e.call(f,N.V.PlayerCreated,b)}},[o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s,getH265DegradeReportFlag:c,getSupportHwClientFlag:E}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:t,getReportNetworkSpeed:u,getH265DegradeReportFlag:a,getIsChangingVideoSrc:v,getSupportHwClientFlag:s}=e,c=(0,d.useRef)({waiting_buffer:-1,waiting_audio_buffer:-1,waiting_video_buffer:-1});(0,d.useEffect)(()=>{var e;if(!i||!o||!l)return;let d=0,f=0,p=0,g=!0,h={},w=(null===(e=y.Le.getConfig(y.gI.IsInModalVideo))||void 0===e?void 0:e.isInModal)||!1,E=e=>{var E,I,b,L,S,T,R,C,P,D,k,A,O,F,V,N,q,x;let{group_id:Z,vduration:W,bitRate:K,qualityType:z,extraParams:Y,action_type:H,aweme_type:J,video_play_mode:Q,is_landscape:j,bitrate_set_client:X}=t(),{codecFormat:ee,isH265:ei,videoFormat:eo}=(0,eT.Z)({awemeInfo:o,player:i}),{bitrate:el}=(null==i?void 0:i.curDefinition)||{},en=(0,m._)((0,n._)((0,m._)((0,n._)((0,m._)((0,n._)((0,m._)((0,n._)({urlParamList:["previous_page","tab_name"],group_id:Z,duration:e.costTime,duration_origin:e.fixedCostTime,interval:e.interval,diff_start:e.diffStart,diff_end:e.diffEnd,vduration:W,player_version:i.version,video_quality:(0,eS.S)({player:i,qualityType:z})},(0,eh.m)({player:i}),(0,eh.B)({player:i})),{video_format:eo,video_fps:null==i?void 0:null===(E=i.curDefinition)||void 0===E?void 0:E.fps,video_bitrate:el||K,audio_bitrate:(null===(b=i.curDefinition)||void 0===b?void 0:null===(I=b.audioDefinition)||void 0===I?void 0:I.bitrate)||0,real_bitrate:(null===(L=i.curDefinition)||void 0===L?void 0:L.realBitrate)||0,feature_id:null===(S=i.curDefinition)||void 0===S?void 0:S.featureId,codec_format:ee,internet_speed:u(i),current_position:1e3*i.currentTime,percentage_position:1e3*i.currentTime/W*100,video_play_speed:i.playbackRate,is_ad:(0,$.Jt)(o)?1:0,is_compilation:(null==o?void 0:null===(T=o.mixInfo)||void 0===T?void 0:T.mixId)?1:0,is_full_screen:(0,er.r)(),is_show_comment:y.Le.getConfig(y.gI.IsCommetTab)?1:0,buffer_time:(0,ep._)(i),bitrate_set_client:X,is_visible:Number(!document.hidden),is_visible_when_block_start:Number(g),block_type:null==e?void 0:e.type,end_type:null==e?void 0:e.endType,host:null==e?void 0:e.host,vtype:(null==e?void 0:e.vtype)||(null==i?void 0:i.vtype),action_type:H,aweme_type:J,drop_frame:null===(R=i.videoFrameInfo)||void 0===R?void 0:R.dropped,total_play_frame:null===(C=i.videoFrameInfo)||void 0===C?void 0:C.total,drop_frame_rate:null===(P=i.videoFrameInfo)||void 0===P?void 0:P.droppedRate,drop_frame_duration:null===(D=i.videoFrameInfo)||void 0===D?void 0:D.droppedDuration,is_bytevc1:ei,video_play_mode:Q,is_landscape:j,play_order:(0,B.G)(),is_supported_265:(0,_.VV)()?1:0,is_265_degrade:a(),is_support_hw:s(),is_hw:(null==i?void 0:null===(k=i.config)||void 0===k?void 0:k.mediaType)==="video"?1:0,is_supported_hevc1_hw:(0,r._u)()?1:0,is_supported_264_hw:(0,r.b4)()?1:0,is_hw_client:(0,ew.N)(i),if_invisible:(0,ea.Vr)()?"1":"0",is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:""}),(0,eI.Z)(i),(0,eb.Z)(),Y),{preload_type:(0,eR.me)(i)?2:1,hit_preload:(0,eR.qJ)(i)}),(null==i?void 0:null===(F=i.plugins)||void 0===F?void 0:null===(O=F.srplugin)||void 0===O?void 0:null===(A=O.getStat)||void 0===A?void 0:A.call(O))||{}),{battery_charging_when_block_start:null==h?void 0:h.charging,battery_level_when_block_start:null==h?void 0:h.level}),(null==i?void 0:i.novv)||{},c.current||{}),{firstframed:i.firstframe?1:0,loadstart:(null==i?void 0:i.loadstart)?1:0,loadeddata:(null==i?void 0:i.loadeddata)?1:0,is_in_modal:w,clarity_now:null==i?void 0:null===(V=i.getClarity)||void 0===V?void 0:V.call(i,!1),is_switch:null==i?void 0:null===(N=i.getIsInSwitching)||void 0===N?void 0:N.call(i)});if("waitingEnd"===e.eventType&&1===e.type){if(!1===l)en.duration=0,en.duration_origin=0,c.current={waiting_buffer:-1,waiting_audio_buffer:-1,waiting_video_buffer:-1};else{let{slideStartTime:i}=y.Le.getConfig(y.gI.SlideStartTime)||{},o=v()||!i?null==e?void 0:e.costTime:Date.now()-i>(null==e?void 0:e.costTime)?null==e?void 0:e.costTime:Date.now()-i,l=v()||!i||Date.now()-i>(null==e?void 0:e.fixedCostTime)?null==e?void 0:e.fixedCostTime:Date.now()-i;en.duration=o,en.duration_origin=l}M.Z.sendLog("videoBlock",en),eZ.oe.event.warn({name:eZ.Mo.VideoPlayBlock,report:eY()(en,["player_version","video_quality","block_type","end_type","host","vtype","duration"])})}if("waitingStart"===e.eventType){d=Date.now(),f+=1,i.config.blockCount=f,g="visible"===document.visibilityState;let{battery:e}=(0,eH.J)()||{};h=e;try{if(c.current.waiting_buffer=((null==i?void 0:null===(q=i.bufferedPoint)||void 0===q?void 0:q.end)-i.currentTime)*1e3,null==i?void 0:null===(x=i.plugins)||void 0===x?void 0:x.dashplugin){let e=i.plugins.dashplugin._kernal.__dash__.mse._sourceBuffer;c.current.waiting_audio_buffer=(i.getBufferedRange(e.audio.buffered)[1]-i.currentTime)*1e3,c.current.waiting_video_buffer=(i.getBufferedRange(e.video.buffered)[1]-i.currentTime)*1e3}}catch(e){}}if("waitingEnd"===e.eventType){if(p+=1,0===d||(null==e?void 0:e.type)===1)return;M.Z.sendLog("videoBlock",en),eZ.oe.event.warn({name:eZ.Mo.VideoPlayBlock,report:eY()(en,["player_version","video_quality","block_type","end_type","host","vtype","duration"])}),d=0}},I=()=>{var e,o,l,d,r,u,a;if(null===(e=y.Le.getConfig(y.gI.AbtestData))||void 0===e?void 0:e.longtask)return;let{extraParams:v}=null!==(a=t())&&void 0!==a?a:{};M.Z.sendLog("videoBlockCount",(0,n._)({block_count:f,differ_count:f-p,player_version:i.version,drop_frame:null===(o=i.videoFrameInfo)||void 0===o?void 0:o.dropped,total_play_frame:null===(l=i.videoFrameInfo)||void 0===l?void 0:l.total,drop_frame_rate:null===(d=i.videoFrameInfo)||void 0===d?void 0:d.droppedRate,drop_frame_duration:null===(r=i.videoFrameInfo)||void 0===r?void 0:r.droppedDuration,is_bytevc1:null==i?void 0:null===(u=i.curDefinition)||void 0===u?void 0:u.isH265,play_order:(0,B.G)(),is_in_modal:w},(0,eI.Z)(i),v))};return i.on(L.Events.XGLOG,E),window.addEventListener("beforeunload",I),()=>{I(),i.off(L.Events.XGLOG,E),window.removeEventListener("beforeunload",I)}},[i,o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s,getReportNetworkSpeed:g,getH265DegradeReportFlag:c,getIsChangingVideoSrc:v,getSupportHwClientFlag:E}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:t,getReportNetworkSpeed:u,getH265DegradeReportFlag:a,getIsChangingVideoSrc:v,getSupportHwClientFlag:s}=e,c=(0,q.l)(),f=(0,d.useRef)(!1),g=(0,d.useRef)(""),w=()=>{var e,i,l;let n=y.Le.getConfig(y.gI.LynxInfo);return(!!y.Le.getConfig(y.gI.hasReportVideoRequest)||(null==n?void 0:n.swiperIndex)===void 0||!((null==n?void 0:null===(e=n.awemeList)||void 0===e?void 0:e.length)>0)||!((null===(i=n.progressBarInfo)||void 0===i?void 0:i.timeCurrent)>0)||(null===(l=n.awemeList[null==n?void 0:n.swiperIndex])||void 0===l?void 0:l.aweme_id)!==o.awemeId)&&!0};(0,d.useEffect)(()=>{if(!l&&(f.current=!1),l){var e,o,n,t,d,r;g.current="";let l=null==i?void 0:null===(n=i.plugins)||void 0===n?void 0:null===(o=n.mp4encryptplayer)||void 0===o?void 0:null===(e=o.states)||void 0===e?void 0:e.length;l>0&&(g.current=(null==i?void 0:null===(r=i.plugins)||void 0===r?void 0:null===(d=r.mp4encryptplayer)||void 0===d?void 0:null===(t=d.states[l-1])||void 0===t?void 0:t.state)||"")}},[l]),(0,d.useEffect)(()=>{f.current=!1;let e=i,l=i=>{if("firstFrame"===i.eventType&&!f.current){var l,d,c,E,I,b,S,T,R,C,P,k,A,O,F,V,N,q,x,W,K,z,Y,J,Q,j,X,ee,ei,eo,el,en,et,ed,eu,ev,es,e_,ef,em,ep,eg,eE,eP,eD,ek,eA,eO,eF,eV,eN,eq,ex,eB,eZ,eG,eW,eK,ez,eY,eH,e4,e5,e3,e9,e7,e8,ie,ii,io;f.current=!0;let{group_id:il,vduration:it,bitRate:id,qualityType:ir,extraParams:iu,bitrate_set:ia,bitrate_set_client:iv,bitrate_set_dash:is,bitrate_has_dash:i_,bitrate_info:ic,quality_bitrate:im,action_type:ip,aweme_type:ig,video_play_mode:iy,is_landscape:ih}=t(),{codecFormat:iw,isH265:iE,videoFormat:iI}=(0,eT.Z)({awemeInfo:o,player:e});e.firstframe=(0,eQ.dg)();let{preloadTime:ib,preloadSize:iL,startBuffer:iS,audioDuration:iT,minDuration:iR}=(0,ey.P)(e),{bitrate:iC,realBitrate:iP}=(null==e?void 0:e.curDefinition)||{},{slideStartTime:iD,slideFrom:ik}=y.Le.getConfig(y.gI.SlideStartTime)||{},iA=null==o?void 0:null===(d=o.video)||void 0===d?void 0:null===(l=d.bitRateList)||void 0===l?void 0:l.find(i=>{var o;return i.qualityType===(null==e?void 0:null===(o=e.curDefinition)||void 0===o?void 0:o.qualityType)}),{currentLowDecodeCount:iM=0,decoderMode:iO=0,lowdecodeVV:iF=0,vv:iV=0}=(null===(E=e.video)||void 0===E?void 0:null===(c=E.getStats)||void 0===c?void 0:c.call(E))||{},iN=v(),iq=Date.now(),ix=iq-iD>1e4&&(null==i?void 0:i.costTime)<1e3,iB=iN||!iD||ix?null==i?void 0:i.costTime:iq-iD;if(performance&&il)try{let e=`@@first_frame_duration_${il}`,i=`@@first_frame_start${il}`;(null===(eA=(eO=performance).getEntriesByName)||void 0===eA?void 0:eA.call(eO,i,"mark").length)>0&&(null===(eF=(eV=performance).measure)||void 0===eF||eF.call(eV,e,i),null===(eN=(eq=performance).clearMarks)||void 0===eN||eN.call(eq,i),null===(ex=(eB=performance).clearMeasures)||void 0===ex||ex.call(eB,e))}catch(e){}let iZ=y.Le.getConfig(y.gI.StartPlayTime),iU=!iN&&iD&&iZ?iZ-iD:-1,iG=null==e?void 0:e.video,iW={},iK=-1;!(null===(I=y.Le.getConfig(y.gI.AbtestData))||void 0===I?void 0:I.longtask)&&(iK=Number(!!(null==iG?void 0:iG.parentNode)),iW=null==iG?void 0:iG.getBoundingClientRect());let iz=0,iY=y.Le.getConfig(y.gI.GeneralSearchVideoSlideIntoVisionTime);"general_search"===(0,H.yW)()&&0!==iY&&(iz=Date.now()-iY);let iH=y.Le.getConfig(y.gI.MenuClick)||0,iJ=0;iH&&(y.Le.setConfig(y.gI.MenuClick,0),iJ=iq-iH);let iQ="",i$="",ij="";try{let l=(null==i?void 0:i.vtype)||(null==e?void 0:e.vtype),n=y.Le.getConfig(y.gI.recentVtypes)||[];n.push(l),y.Le.setConfig(y.gI.recentVtypes,n.slice(0,5)),iQ=window.location.href,(null===(eZ=y.Le.getConfig(y.gI.AbtestData))||void 0===eZ?void 0:eZ.fixPause)===2&&!(null==e?void 0:null===(eW=e.curDefinition)||void 0===eW?void 0:null===(eG=eW.audioDefinition)||void 0===eG?void 0:eG.audioQuality)&&(i$=JSON.stringify(null==e?void 0:null===(eK=e.curDefinition)||void 0===eK?void 0:eK.audioDefinition),ij=JSON.stringify(null==o?void 0:null===(ez=o.video)||void 0===ez?void 0:ez.bitRateAudioList))}catch(e){}let iX=(0,m._)((0,n._)((0,m._)((0,n._)((0,m._)((0,n._)((0,m._)((0,n._)((0,m._)((0,n._)({},eM(!0)),{urlParamList:["previous_page","tab_name"]}),(0,eI.Z)(e),(0,eb.Z)()),{audio_definition:i$,audio_origin:ij,group_id:il}),eL(il)),{bitrate_set:ia,bitrate_set_client:iv,bitrate_set_dash:is,bitrate_has_dash:i_,bitrate_info:ic,bitrate_info_record:null==e?void 0:null===(b=e.config)||void 0===b?void 0:b.recordList,menu_total_duration:iJ,player_first_frame:null==i?void 0:i.costTime,buffer:null==i?void 0:i.buffer,duration:iB,vduration:it,video_width:null==iG?void 0:iG.videoWidth,video_height:null==iG?void 0:iG.videoHeight,video_ratio:(null==iG?void 0:iG.videoWidth)/(null==iG?void 0:iG.videoHeight),video_rect_width:null==iW?void 0:iW.width,video_rect_height:null==iW?void 0:iW.height,is_over_gear:(0,eX.E)(e),is_over_rect:(null==e?void 0:null===(S=e.config)||void 0===S?void 0:S.isOverRect)?1:0,device_ratio:null!==(eY=window.devicePixelRatio)&&void 0!==eY?eY:-1,has_pkt_offset:(null==e?void 0:null===(C=e.curDefinition)||void 0===C?void 0:null===(R=C.pktOffsetMap)||void 0===R?void 0:null===(T=R.find)||void 0===T?void 0:T.call(R,e=>(null==e?void 0:e.time)===5))?1:0,audio_channels:null==e?void 0:null===(P=e.curDefinition)||void 0===P?void 0:P.audioChannels,audio_sample_rate:null==e?void 0:null===(k=e.curDefinition)||void 0===k?void 0:k.audioSampleRate,has_first_segment_range:(null==e?void 0:null===(A=e.curDefinition)||void 0===A?void 0:A.first_segment_range)?1:0,feature_id:null==e?void 0:null===(O=e.curDefinition)||void 0===O?void 0:O.featureId,player_version:e.version,video_quality:(0,eS.S)({player:e,qualityType:ir}),video_size:null==e?void 0:null===(F=e.curDefinition)||void 0===F?void 0:F.size,video_fps:null==e?void 0:null===(V=e.curDefinition)||void 0===V?void 0:V.fps,definition:null===(N=e.curDefinition)||void 0===N?void 0:N.definition,video_format:iI,video_bitrate:iC||id,audio_bitrate:(null===(x=e.curDefinition)||void 0===x?void 0:null===(q=x.audioDefinition)||void 0===q?void 0:q.bitrate)||0,real_bitrate:(null===(W=e.curDefinition)||void 0===W?void 0:W.realBitrate)||0,sr_sharpness_strength:(null==e?void 0:null===(K=e.curDefinition)||void 0===K?void 0:K.srSharpnessStrength)||-1,codec_format:iw,internet_speed:u(e),if_invisible:(0,ea.Vr)()?"1":"0",is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",preload_time:(0,ec.N)(ib),preload_time_audio:iT,preload_time_min:iR,preload_size:iL||0,preload_type:(0,eR.me)(e)?2:1,hit_preload:(0,eR.qJ)(e),start_buffer:iS,is_mute:(null==e?void 0:e.muted)?"1":"0",player_volume:null==e?void 0:e.volume,video_mute:(null==e?void 0:null===(z=e.video)||void 0===z?void 0:z.muted)?"1":"0",video_volume:null==e?void 0:null===(Y=e.video)||void 0===Y?void 0:Y.volume,local_mute:(0,e$.$o)(p.LocalStorageKeys.PLAYER_IS_MUTE),local_volume:(0,e$.$o)(p.LocalStorageKeys.PLAYER_VOLUME),equalize_state:null!==(eH=null==e?void 0:e.equalizeVolumeState)&&void 0!==eH?eH:0,lufs:null!==(e4=null==e?void 0:e.lufs)&&void 0!==e4?e4:eC.G7,use_new_mammon_worklet_processor:null!==(e5=null==e?void 0:e.useMammonWorkletProcessorV3)&&void 0!==e5&&e5,use_new_mammon_worklet_processor_with_wasm:null!==(e3=null==e?void 0:e.useMammonWorkletProcessorV3Wasm)&&void 0!==e3&&e3,hit_new_mammon_worklet_processor:null!==(e9=null==e?void 0:e.hitMammonWorkletProcessorV3)&&void 0!==e9&&e9,volume_balance_longtest_consume_time:null!==(e7=null==e?void 0:null===(J=e.effectNodeConsumeTime)||void 0===J?void 0:J.longest)&&void 0!==e7?e7:-2,volume_balance_shortest_consume_time:null!==(e8=null==e?void 0:null===(Q=e.effectNodeConsumeTime)||void 0===Q?void 0:Q.shortest)&&void 0!==e8?e8:-2,is_in_modal:(null===(j=y.Le.getConfig(y.gI.IsInModalVideo))||void 0===j?void 0:j.isInModal)||!1,host:null==i?void 0:i.host,vtype:(null==i?void 0:i.vtype)||(null==e?void 0:e.vtype),is_video_support:Number((0,eU.k)().isSupport),quality_bitrate:im,action_type:ip,is_ad:(0,$.Jt)(o)?1:0,is_compilation:(null==o?void 0:null===(X=o.mixInfo)||void 0===X?void 0:X.mixId)?1:0,enable_danmaku:(null==o?void 0:null===(ee=o.danmakuControl)||void 0===ee?void 0:ee.enableDanmaku)?1:0,web_rid:null==o?void 0:null===(el=o.authorInfo)||void 0===el?void 0:null===(eo=el.roomData)||void 0===eo?void 0:null===(ei=eo.owner)||void 0===ei?void 0:ei.web_rid,is_full_screen:(0,er.r)(),is_show_comment:y.Le.getConfig(y.gI.IsCommetTab)?1:0,quality_level:(null==o?void 0:null===(en=o.webRawData)||void 0===en?void 0:en.quality)===1,aweme_type:ig,is_bytevc1:iE,is_hevc_error_down:null!==(ie=null==e?void 0:e.isHevcErrorDown)&&void 0!==ie?ie:0,video_play_mode:iy,is_landscape:ih,mp4_type:typeof(null==e?void 0:null===(et=e.plugins)||void 0===et?void 0:et.mp4encryptplayer),dash_type:typeof(null==e?void 0:null===(ed=e.plugins)||void 0===ed?void 0:ed.dashplugin),current_low_decode_count:iM,decoder_mode:iO,h265_failure_rate:10===iV?iF/iV:-1,play_order:(0,B.G)(),first_video_after_cold_start:(0,ej.R)(0)&&1===(0,B.G)(),is_supported_265:(0,_.VV)()?1:0,is_265_degrade:a(),is_265_degrade_client:(0,_.ad)({player:e}),is_265_degrade_web:(0,_.OS)({player:e}),is_support_hw:s(),is_hw:(null==e?void 0:null===(eu=e.config)||void 0===eu?void 0:eu.mediaType)==="video"?1:0,is_supported_hevc1_hw:(0,r._u)()?1:0,is_supported_264_hw:(0,r.b4)()?1:0,is_hw_client:(0,ew.N)(e),is_support_hdr:L.Sniffer.isHdrSupported(),is_support_dolby_hdr:L.Sniffer.isDolbyHdrSupported(),active_stage:g.current,slide_start_to_play:iU,play_to_first_frame:iZ?iq-iZ:-1,click_to_modal_first_frame:e2(),gear_name:null==e?void 0:null===(ev=e.curDefinition)||void 0===ev?void 0:ev.gearName,is_hdr:(null==e?void 0:null===(es=e.curDefinition)||void 0===es?void 0:es.isHDR)?1:0,media_type:null==e?void 0:null===(e_=e.config)||void 0===e_?void 0:e_.mediaType,is_video_in_dom:iK,is_multiple:(null==e?void 0:e.isMultiple)?1:0,buffered_before_active:Math.floor(null==e?void 0:e.bufferedBeforeActive),loadstart_before_active:null==e?void 0:e.loadstartBeforeActive,loadeddata_before_active:null==e?void 0:e.loadeddataBeforeActive,load_range_type:null==e?void 0:null===(ep=e.plugins)||void 0===ep?void 0:null===(em=ep.mp4encryptplayer)||void 0===em?void 0:null===(ef=em.config)||void 0===ef?void 0:ef.loadRangeType,load_range_type_preloader:null===(eP=window)||void 0===eP?void 0:null===(eE=eP.playerPreloader)||void 0===eE?void 0:null===(eg=eE._config)||void 0===eg?void 0:eg.loadRangeType,slide_from:ik,video_play_speed:e.playbackRate}),(0,Z.$)({player:e,awemeInfo:o}),(0,e0.D)({isChangeVideoSrc:iN,player:e,data:i,slideStartTime:iD}),(0,eh.m)({player:e}),(0,eh.B)({player:e}),iu),{general_search_duration:iz}),(null==e?void 0:e.novv)||{},(null==e?void 0:null===(eD=e.stat)||void 0===eD?void 0:eD.stage)||{},(null==e?void 0:e.startTimelines)||{},(null==iA?void 0:iA.mvmaf)||{},e6(null==iA?void 0:iA.ufq)),{preplay_stat:(null==e?void 0:e.preplayStat)?1:0,prepause_stat:(null==e?void 0:e.prepauseStat)?1:0,end_type:null==i?void 0:i.endType,page_url:iQ});w()&&(M.Z.sendLog("videoPlayQuality",(0,m._)((0,n._)({},iX),{listen_device:(0,D.nj)(),start_play_clarity_type:null==e?void 0:null===(ii=e.getClarity)||void 0===ii?void 0:ii.call(e,!0)})),e.firstFrameTmp=new Date().getTime(),(null===(io=y.Le.getConfig(y.gI.AbtestData))||void 0===io?void 0:io.blockBlankAfterPlay)&&(0,eJ.default)("destroyAgent.remove","blankScreen")),(null===(ek=y.Le.getConfig(y.gI.AbtestData))||void 0===ek?void 0:ek.fixOOM)!==1&&e1(iX),h.emit(h.EVENT.firstFrame)}};if(!e){let i;let n=n=>{if(o){if((e=n).dyLogStat&&e.dyLogStat.firstFrame){var t;(null===(t=e.dyLogStat.firstFrame.awemeInfo)||void 0===t?void 0:t.awemeId)===o.awemeId&&(e.dyLogStat.firstFrame.data&&e.isReusePlayer&&(e.dyLogStat.firstFrame.data.costTime=0),l(e.dyLogStat.firstFrame.data)),e.dyLogStat.firstFrame=null}let d=(0,x.I)();d.firstFrame.used=!0,d.firstFrame.data&&(l(d.firstFrame.data),d.firstFrame.data=null),e.on(L.Events.XGLOG,l),i=()=>{e.off(L.Events.XGLOG,l)}}};return c.on(N.V.PlayerCreated,n),()=>{null==i||i(),c.off(N.V.PlayerCreated,n)}}return e.on(L.Events.XGLOG,l),()=>{e.off(L.Events.XGLOG,l)}},[o])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s,getReportNetworkSpeed:g,getH265DegradeReportFlag:c,getIsChangingVideoSrc:v,getSupportHwClientFlag:E}),!function(e){let{player:i,awemeInfo:o,isActive:l,index:n}=e,t=(0,d.useRef)(!1);(0,d.useEffect)(()=>{var e,d;let r;if(!i||!o||!l)return;let a=()=>{h.emit(h.EVENT.pageFirstFrameLoadStart)},v=()=>{if(y.Le.setConfig(y.gI.isVideoPlayed,!0),h.emit(h.EVENT.pageFirstFrameLoaded),t.current=!0,(0,O.B)())return;let e=r||Date.now();try{if(y.Le.getConfig(y.gI.MarkFirstEnter)){var i,l,d,a,v,s,_,c,f,m,p,g,w,E,I,b,L,S,T,R;y.Le.setConfig(y.gI.MarkFirstEnter,null);let t=(null==o?void 0:null===(d=o.video)||void 0===d?void 0:null===(l=d.playApi)||void 0===l?void 0:null===(i=l.startsWith)||void 0===i?void 0:i.call(l,"blob"))?1:0;(0,u.DT)()?(0,eu.sE)(o,n):(null===(v=performance)||void 0===v?void 0:null===(a=v.timing)||void 0===a?void 0:a.fetchStart)&&M.Z.sendLog("prfFirstFeedShow",{feed_total_duration:e-(null===(_=performance)||void 0===_?void 0:null===(s=_.timing)||void 0===s?void 0:s.fetchStart),is_landscape:(null==o?void 0:null===(c=o.video)||void 0===c?void 0:c.width)>(null==o?void 0:null===(f=o.video)||void 0===f?void 0:f.height)?1:0,group_id:null==o?void 0:o.awemeId,landing_page:(0,H.yW)(),vduration:null==o?void 0:null===(m=o.video)||void 0===m?void 0:m.duration,if_invisible:(0,ea.Vr)()?"1":"0",is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",real_index:n,is_cache_video:t,aweme_type:null==o?void 0:o.awemeType,is_quick_player:(null===(g=window)||void 0===g?void 0:null===(p=g.__QUICK_PLAYER)||void 0===p?void 0:p.firstLoadDataTimeStamp)?1:0});try{M.Z.sendLog("prfFirstFeedFirstFrameShow",{feed_total_duration:e-(null===(E=performance)||void 0===E?void 0:null===(w=E.timing)||void 0===w?void 0:w.fetchStart),is_landscape:(null==o?void 0:null===(I=o.video)||void 0===I?void 0:I.width)>(null==o?void 0:null===(b=o.video)||void 0===b?void 0:b.height)?1:0,group_id:null==o?void 0:o.awemeId,landing_page:(0,H.yW)(),real_index:n,is_cache_video:t,aweme_type:null==o?void 0:o.awemeType,is_quick_player:(null===(S=window)||void 0===S?void 0:null===(L=S.__QUICK_PLAYER)||void 0===L?void 0:L.firstLoadDataTimeStamp)?1:0}),((null===(T=y.Le.getConfig(y.gI.AbtestData))||void 0===T?void 0:T.prefetchFirst)||(null===(R=y.Le.getConfig(y.gI.AbtestData))||void 0===R?void 0:R.prefetchFirstServer))&&h.emit(h.EVENT.firstLoadMore)}catch(e){}}"recommend"===(0,H.yW)()&&y.Le.getConfig(y.gI.FirstEnterRecommend)&&(y.Le.setConfig(y.gI.FirstEnterRecommend,!1),h.emit(h.EVENT.firstEnterVideoPlay))}catch(e){}},s=()=>{if(y.Le.setConfig(y.gI.isVideoPlayed,!0),!(0,O.B)()&&!!t.current)v()},_=(0,x.I)();_.prfFirstFeedShow&&!_.prfFirstFeedShow.used&&_.prfFirstFeedShow.data&&(r=_.prfFirstFeedShow.data,v(),_.prfFirstFeedShow.used=!0),_.prfFirstFrameStart&&!_.prfFirstFrameStart.used&&_.prfFirstFrameStart.data&&(a(),_.prfFirstFrameStart.used=!0);let c=null===(d=window)||void 0===d?void 0:null===(e=d.__QUICK_PLAYER)||void 0===e?void 0:e.firstLoadDataTimeStamp;return c&&(r=c,v()),i.on(L.Events.PLAY,s),i.on(L.Events.LOADED_DATA,v),i.on(L.Events.LOAD_START,a),()=>{i.off(L.Events.PLAY,s),i.off(L.Events.LOADED_DATA,v),i.off(L.Events.LOAD_START,a)}},[i,o,l,n])}({player:o,awemeInfo:i,isActive:l,index:a}),!function(e){let{player:i,awemeInfo:o,isActive:l,index:t}=e,{getLogInfo:u,getSpecialParams:a}=e,v=(0,q.l)(),s=(0,d.useRef)(""),_=(0,d.useRef)(null),c=(0,d.useRef)(!1);(0,d.useEffect)(()=>{!l&&(s.current="")},[l]),(0,d.useEffect)(()=>{o.awemeId!==s.current&&(s.current="");let e=i,l=()=>{var i,l,d,v,f,g,h,E,I,b,L,S,T,R,C,P,O,F,V,N,q,x,B,Z,W,K,Y,H,J,Q,j;if(s.current)return;s.current=o.awemeId;let{author_id:X,group_id:ee,log_pb:ei,compilation_id:eo,playlet_id:el,impressionData:en,extraParams:et,aweme_type:eu,pic_cnt:ev,trending_topic:es,first_tag_name:e_,top:ec,is_pure:ef,is_click_cover:em,is_landscape:ep,is_insert_wallpaper:eg,isMini:ey,latest_group_id:eh,if_first_big_card:ew}=u(),{isH265:eE}=(0,eT.Z)({awemeInfo:o,player:e}),eI=y.Le.getConfig(y.gI.VideoFeedList),eL=(null==eI?void 0:eI.autoPlayCount)||1,eS=(0,k.Rs)("if_from_widget"),eR=0;((0,k.Rs)("modeFrom")===e4.MODE_FROM||(0,k.Rs)("modeFrom")===e4.MODE_FROM_SEARCH)&&(eR=1);let eC=!1,eD=(0,eF.G)(p.SessionStorageKeys.CacheRecommendActiveAwemeID);eD&&eD===ee&&(eC=!0);let ek=(null===(i=window.EXPOSE_DATA)||void 0===i?void 0:i.landingPage)==="discover",eA=(null===(l=window.EXPOSE_DATA)||void 0===l?void 0:l.landingPage)==="follow",eM=ek&&(null===(d=window.EXPOSE_DATA)||void 0===d?void 0:d.landingMode)!==2&&(null===(v=window.EXPOSE_DATA)||void 0===v?void 0:v.landingMode)!==3,eO=null!==(K=null!==(W=(0,k.Rs)("enter_method"))&&void 0!==W?W:ek||eA?"default_landing":void 0)&&void 0!==K?K:"other",eB="";try{eB=(null==o?void 0:null===(Y=o.logPb)||void 0===Y?void 0:Y.includes("impr_id"))?JSON.parse(null==o?void 0:o.logPb).impr_id:null==o?void 0:o.logPb}catch(e){}let eZ=(0,m._)((0,n._)((0,m._)((0,n._)((0,m._)((0,n._)((0,m._)((0,n._)((0,m._)((0,n._)({pc_source:null==o?void 0:null===(f=o.chanFeedVideo)||void 0===f?void 0:f.source,video_source:(0,ie.B)(o),is_click_cover:em,is_insert_wallpaper:eg,is_landscape:ep,urlParamList:["trending_topic","previous_page","keywords_index","keywords_content"],enter_method:eO,author_id:X,enter_from:(0,D.mo)(),enter_from_merge:(0,eV.z)(""),group_id:ee,log_pb:ei,compilation_id:eo,playlet_id:el,is_auto_play:String((null==e?void 0:null===(E=e.plugins)||void 0===E?void 0:null===(h=E.autoplaysettingplugin)||void 0===h?void 0:null===(g=h.config)||void 0===g?void 0:g.nextAutoPlay)||(null==e?void 0:null===(L=e.plugins)||void 0===L?void 0:null===(b=L.searchautoplaysettingplugin)||void 0===b?void 0:null===(I=b.config)||void 0===I?void 0:I.nextAutoPlay)?1:0),sidebar_status:(0,e3.GE)(),is_visible:String("visible"===document.visibilityState?1:0),impression_data:en,speed:`${null==e?void 0:e.playbackRate}`,auto_cnt:eL,video_detail_enter_from:(0,eV.z)("web_link"),is_full_screen:(0,er.r)()?"1":"0",is_full_webscreen:z.s.getIsPageFullscreen()?"1":"0",tab_name:(0,A.zD)()||(0,k.Rs)("tab_name")||"",from_follow_list:(null===(S=y.Le.getConfig(y.gI.FromFollowList))||void 0===S?void 0:S.tag)?"1":"0",is_mute:(null==e?void 0:e.muted)?"1":"0",mute_type:null===(T=y.Le.getConfig(y.gI.ForceMuted))||void 0===T?void 0:T.currentMuteType,is_pure:ef},(0,eN.t)()),{from_academy:eR,aweme_type:eu,pic_cnt:ev,trending_topic:es,first_tag_name:e_,top:ec,impr_id:eB,browser_height:(0,eW.P6)(),browser_width:(0,eW.wi)(),browser_ratio:(0,eW.P6)()/(0,eW.wi)(),is_from_ad:(0,$.Jt)(o)?1:0,is_ad:(0,$.Jt)(o)?1:0,is_compilation:(null==o?void 0:null===(R=o.mixInfo)||void 0===R?void 0:R.mixId)?1:0,is_bytevc1:eE,video_time:(0,eq.n)(null==o?void 0:null===(C=o.video)||void 0===C?void 0:C.duration),is_force:(null===(P=y.Le.getConfig(y.gI.ForceMuted))||void 0===P?void 0:P.currentMuteType)==="browser"?"1":"0",from_push:w.Q.getItem({sKey:p.CookieKeys.FromClientPush})?1:0,auto_play_mode:null===(O=y.Le.getConfig(y.gI.InnerAutoPlay))||void 0===O?void 0:O.mode,seo_vids:e9.t("seo_vids")||"",webdriver:navigator&&navigator.webdriver?1:0,vtype:null==e?void 0:e.vtype,is_long_not_use_refresh_vid:!!(null==e?void 0:null===(F=e.config)||void 0===F?void 0:F.notUseRefreshVid),is_supported_hevc1_hw:(0,r._u)()?1:0,is_supported_264_hw:(0,r.b4)()?1:0,is_hevc_error_down:null!==(H=null==e?void 0:e.isHevcErrorDown)&&void 0!==H?H:0}),(0,eb.Z)(),et,(null===(V=a())||void 0===V?void 0:V.videoPlay)||{}),{video_play_method:null!==(J=y.Le.getConfig(y.gI.VideoPlayMethod))&&void 0!==J?J:"auto",if_invisible:(0,ea.Vr)()?"1":"0",is_small_window:(0,U.f)()?"1":"0",small_window_scene:(0,U.f)()?G.w_.getState().smallWindowScene:"",is_top:(0,ea.k)()?"1":"0"}),eg&&y.Le.getConfig(y.gI.WallPaperPosition)>0?{vv_sync:1}:{}),{url_source:null!==(Q=null==o?void 0:null===(N=o.continationInfo)||void 0===N?void 0:N.urlSource)&&void 0!==Q?Q:["recommend","personal_homepage"].includes((0,D.vM)())?w.Q.getItem({sKey:p.CookieKeys.UrlSourceForBrowserPlugin}):"",latest_group_id:eh,expand_video_card_type:(null===(q=y.Le.getConfig(y.gI.PlayerCardInfo))||void 0===q?void 0:q.isActive)?null===(x=y.Le.getConfig(y.gI.PlayerCardInfo))||void 0===x?void 0:x.expandCardType:"",if_continued_play:y.Le.getConfig(y.gI.PlayRecord)?(0,ed.v)(o.awemeId)?1:0:"",rate:y.Le.getConfig(y.gI.PlayRecord)?(null==e?void 0:e.currentTime)/(null==e?void 0:e.duration):""}),(0,e5.K)(o)),{if_from_widget:eS?1:0,from_click_group_id:null!==(j=null==o?void 0:o.insertId)&&void 0!==j?j:"",column_type:(null==et?void 0:et.column_type)||(null==et?void 0:null===(B=et.search_params)||void 0===B?void 0:B.column_type),is_cache_video:eC,is_first_video:!t,if_first_big_card:ew,is_highlight_show:(0,ii.Z)({awemeInfo:o})?1:0,player_start_time:(null==e?void 0:null===(Z=e.config)||void 0===Z?void 0:Z.startTime)||0,is_ai_note:(0,eP.Z)({awemeInfo:o})?1:0,is_recommend:"default_landing"===eO?Number(eM):void 0}),(0,ex.Wc)(ex.rh.PLAY_START)),{is_selected_label:(null==o?void 0:o.weeklyRecommend)?1:0});(0,io.K)(),M.Z.sendLog("videoPlay",eZ);try{!c.current&&(0,e8.yr)()}catch(e){}_.current={aweme_type:eu,item_id:ee,source:0,play_delta:1,operation_info:null==o?void 0:o.webOperationInfo},y.Le.getConfig(y.gI.TeaBlocked)},d=()=>{s.current="",l()},f=e=>{s.current=e};if(!e){let i;let n=n=>{if(o){e=n;let o=(0,x.I)();o.autoplayStarted.used=!0,o.autoplayStarted.data&&(l(),o.autoplayStarted.data=null),e.on("enter_inner_feed",d),e.on("exit_inner_feed",f),e.on(L.Events.AUTOPLAY_STARTED,l),i=()=>{e.off("enter_inner_feed",d),e.off("exit_inner_feed",f),e.off(L.Events.AUTOPLAY_STARTED,l)}}};return v.on(N.V.PlayerCreated,n),()=>{v.off(N.V.PlayerCreated,n),null==i||i()}}return e.on("enter_inner_feed",d),e.on("exit_inner_feed",f),e.on(L.Events.AUTOPLAY_STARTED,l),()=>{e.off("enter_inner_feed",d),e.off("exit_inner_feed",f),e.off(L.Events.AUTOPLAY_STARTED,l)}},[o.awemeId,l]),(0,d.useEffect)(()=>{let e=()=>{(0,e7.x0)(_.current)};return l&&i?(i.once(L.Events.TIME_UPDATE,e),()=>{i.off(L.Events.TIME_UPDATE,e)}):()=>null},[l,i])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s,getSpecialParams:f,index:a}),il({player:o,awemeInfo:i,isActive:l,getLogInfo:s}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e;(0,d.useEffect)(()=>{if(i){let e=e=>{var l,t;let{vid:d,force_set_min:r}=e||{},u=(0,m._)((0,n._)({},e||{}),{user_unique_id:null===(l=(0,ev.Es)())||void 0===l?void 0:l.user_unique_id,group_id:d,force_set_min:r?1:0,vduration:null==o?void 0:null===(t=o.video)||void 0===t?void 0:t.duration,enter_from:(0,H.yW)(),video_play_speed:i.playbackRate,vtype:null==i?void 0:i.vtype});M.Z.sendLog("prfTaskDataSize",u)};return i.on("prf_data_size",e),()=>{i.off("prf_data_size",e)}}},[i,o])}({player:o,awemeInfo:i,isActive:l}),iv({isNext:t,player:o,awemeInfo:i,getLogInfo:s,isActive:l}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:t}=e;(0,d.useEffect)(()=>{if(i&&l)try{let e=e=>{try{var l,d,r,u,a,v;let{group_id:s,playlet_id:_,log_pb:c,extraParams:f,aweme_type:p,top:g,is_pure:y,bitRate:h,latest_group_id:w}=t(),{isH265:E}=(0,eT.Z)({awemeInfo:o,player:i}),I=(null===(l=i.curDefinition)||void 0===l?void 0:l.bitrate)||h||0,b=-1,L=-1,S=-1;try{if(b=((null==i?void 0:null===(a=i.bufferedPoint)||void 0===a?void 0:a.end)-i.currentTime)*1e3,null==i?void 0:null===(v=i.plugins)||void 0===v?void 0:v.dashplugin){let e=i.plugins.dashplugin._kernal.__dash__.mse._sourceBuffer;L=(i.getBufferedRange(e.audio.buffered)[1]-i.currentTime)*1e3,S=(i.getBufferedRange(e.video.buffered)[1]-i.currentTime)*1e3}}catch(e){}M.Z.sendLog("fpsStuck",(0,m._)((0,n._)((0,m._)((0,n._)((0,m._)((0,n._)({},e),{enter_from:(0,D.mo)(),group_id:s,playlet_id:_,log_pb:c,speed:String(null==i?void 0:i.playbackRate)}),(0,eN.t)()),{aweme_type:p,top:g,is_pure:y,is_bytevc1:E}),(0,eb.Z)(),f),{play_order:(0,B.G)(),video_bitrate:I,audio_bitrate:(null===(r=i.curDefinition)||void 0===r?void 0:null===(d=r.audioDefinition)||void 0===d?void 0:d.bitrate)||0,real_bitrate:(null===(u=i.curDefinition)||void 0===u?void 0:u.realBitrate)||0,latest_group_id:w,current_position:i.currentTime,vtype:i.vtype,waiting_buffer:b,waiting_audio_buffer:L,waiting_video_buffer:S}),!1)}catch(e){eZ.oe.event.error({name:eZ.Mo.FpsStuckReportError,report:{type:1}})}};return i.on(L.Events.FPS_STUCK,e),()=>{i.off(L.Events.FPS_STUCK,e)}}catch(e){eZ.oe.event.error({name:eZ.Mo.FpsStuckReportError,report:{type:0}})}},[i,o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s,getSpecialParams:f}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:t,getH265DegradeReportFlag:r,getSupportHwClientFlag:u}=e,a=(0,d.useRef)([]),v=(0,d.useRef)(0),s=(0,d.useRef)(""),c=(0,q.l)();(0,d.useEffect)(()=>{let e;(s.current!==(null==o?void 0:o.awemeId)||!l||!o)&&(s.current=null==o?void 0:o.awemeId,a.current=[],v.current=0);let d=i,f=()=>{l&&(a.current.forEach(e=>{M.Z.sendLog("videoDegrade",e)}),a.current=[])},p=e=>{var i,l;let{group_id:s,vduration:c,extraParams:p,action_type:g,aweme_type:y,awemeRequestTime:h,qualityType:w,log_pb:E,bitrate_set_client:I}=t(),{isH265:b,codecFormat:L,videoFormat:S}=(0,eT.Z)({awemeInfo:o,player:d}),T=(0,n._)((0,m._)((0,n._)({urlParamList:["previous_page","tab_name"]},(0,eI.Z)(d),(0,eb.Z)()),{group_id:s,errorCode:null==e?void 0:e.errc,errorDesc:null==e?void 0:e.err_msg,vduration:c,video_quality:(0,eS.S)({player:d,qualityType:w}),player_version:d.version,current_position:1e3*d.currentTime,is_video_support:Number((0,eU.k)().isSupport),host:null==e?void 0:e.host,vtype:(null==e?void 0:e.vtype)||(null==d?void 0:d.vtype),action_type:g,bitrate_set_client:I,is_ad:(0,$.Jt)(o)?1:0,is_compilation:(null==o?void 0:null===(i=o.mixInfo)||void 0===i?void 0:i.mixId)?1:0,is_active:1,is_cdn_expired:1===(0,eG.q)(d.currentSrc)?1:0,is_bytevc1:b,aweme_type:y,log_pb:E,codec_format:L,video_format:S,play_order:(0,B.G)(),is_supported_265:(0,_.VV)()?1:0,is_265_degrade:r(),has_report:v.current++,is_265_degrade_client:(0,_.ad)({player:d}),is_support_hw:u(),is_hw:(null==d?void 0:null===(l=d.config)||void 0===l?void 0:l.mediaType)==="video"?1:0,hit_preload:(0,eR.qJ)(d)}),(0,eh.m)({player:d}),(0,eh.B)({player:d}),p);a.current.push(T),f()};o&&(f(),d&&d.on("degrade",p));let g=i=>{(d=i).on("degrade",p),e=()=>{d.on("degrade",p)}};if(!d){var y;null==c||null===(y=c.on)||void 0===y||y.call(c,N.V.PlayerCreated,g)}return()=>{var i;null==e||e(),null==d||d.off("degrade",p),null==c||null===(i=c.off)||void 0===i||i.call(c,N.V.PlayerCreated,g)}},[o,l])}({player:o,awemeInfo:i,isActive:l,getLogInfo:s,getH265DegradeReportFlag:c,getSupportHwClientFlag:E}),!function(e){let{player:i,isActive:o}=e;(0,d.useEffect)(()=>{if(i&&o){var e;let o=e=>{var o,l,t,d,r,u,a,v,s,_,c,f,m,p;let g=null==e?void 0:e.code;M.Z.sendLog("srDegrade",(0,n._)({enter_from:(0,H.yW)(),group_id:null==i?void 0:null===(o=i.config)||void 0===o?void 0:o.vid,vtype:null==i?void 0:i.vtype,quality_type:null==i?void 0:null===(l=i.curDefinition)||void 0===l?void 0:l.qualityType,gear_name:null==i?void 0:null===(t=i.curDefinition)||void 0===t?void 0:t.gearName,definition:null==i?void 0:null===(d=i.curDefinition)||void 0===d?void 0:d.definition,is_bytevc1:null==i?void 0:null===(r=i.curDefinition)||void 0===r?void 0:r.isH265,current_time:null==i?void 0:i.currentTime},(null==i?void 0:null===(v=i.plugins)||void 0===v?void 0:null===(a=v.srplugin)||void 0===a?void 0:null===(u=a.getStat)||void 0===u?void 0:u.call(a))||{},e||{},(0,eh.m)({player:i}))),y.Le.setConfig(y.gI.SrDegradeCode,null!=g?g:-1),(null==i?void 0:null===(f=i.plugins)||void 0===f?void 0:null===(c=f.srplugin)||void 0===c?void 0:null===(_=c.getStat)||void 0===_?void 0:null===(s=_.call(c))||void 0===s?void 0:s.renderDelta)>(null==e?void 0:e.defaultRenderDelta)&&ir++;let h=null===(p=y.Le.getConfig(y.gI.AbtestData))||void 0===p?void 0:null===(m=p.SR)||void 0===m?void 0:m.renderDeltaAccumulate;ir>h&&(0,id.l)(1),[2,3,-300,-600].includes(g)&&(window.srDegradeFinally=!0,y.Le.setConfig(y.gI.SrDegrade,1)),[-300,-600].includes(g)&&(0,id.l)(1)};return null==i||null===(e=i.on)||void 0===e||e.call(i,it.D.SR_DEGRADE,o),()=>{var e;null==i||null===(e=i.off)||void 0===e||e.call(i,it.D.SR_DEGRADE,o)}}},[i,o])}({player:o,isActive:l}),!function(e){let{player:i,awemeInfo:o,isActive:l}=e,{getLogInfo:t,getSpecialParams:r}=e;(0,d.useEffect)(()=>{if(!i||!l||(null==o?void 0:o.awemeType)===68)return;let e=r(),d=l=>{try{var d;let{author_id:r,group_id:u,log_pb:a,compilation_id:v,playlet_id:s,extraParams:_,aweme_type:c,trending_topic:f,first_tag_name:p,top:g,is_click_cover:y,is_pure:h,is_insert_wallpaper:w}=t(),{isH265:E}=(0,eT.Z)({awemeInfo:o,player:i}),{mediaTime:I}=iu(i);M.Z.sendLog("videoEditListOffsetTime",(0,m._)((0,n._)({duration:1e3*I,is_ended:null==l?void 0:l.ended,is_click_cover:y,urlParamList:["enter_method","trending_topic","previous_page"],enter_from:(0,D.mo)(),author_id:r,group_id:u,log_pb:a,compilation_id:v,playlet_id:s,is_insert_wallpaper:w,is_visible:String("visible"===document.visibilityState?1:0),is_mute:(null==i?void 0:i.muted)?"1":"0",aweme_type:c,trending_topic:f,first_tag_name:p,top:g,is_pure:h},_,e.videoPlayFinish||{}),{is_bytevc1:E,video_time:(0,eq.n)(null==o?void 0:null===(d=o.video)||void 0===d?void 0:d.duration)}))}catch(e){}};return i.on(L.Events.ENDED,d),()=>{!i.ended&&d(),i.off(L.Events.ENDED,d)}},[i,o,l])}({player:o,isActive:l,awemeInfo:i,getLogInfo:s,getSpecialParams:f}),!function(e){let{player:i,getLogInfo:o}=e;(0,d.useEffect)(()=>{if(!i)return()=>{};let e=e=>{let i=es[null==e?void 0:e.pluginName];if((null==e?void 0:e.pluginName)==="fullscreen"&&(i=(0,er.r)()?"hover_exit_full_screen":"hover_enter_full_webscreen"),!i)return;let l=null==o?void 0:o();M.Z.sendLog(i,{enter_from:(0,D.mo)(),player_display_mode:(0,D.Ok)(),group_id:(null==l?void 0:l.group_id)||""})};i.on("icon_mouseleave",e);let l=i.getPlugin("progress"),n=()=>{let e=null==o?void 0:o();M.Z.sendLog("hover_progress",{enter_from:(0,D.mo)(),player_display_mode:(0,D.Ok)(),group_id:(null==e?void 0:e.group_id)||""})};return null==l||l.addCallBack("mouseleave",n),()=>{i.off("icon_mouseleave",e),null==l||l.removeCallBack("mouseleave",n)}},[i])}({player:o,getLogInfo:s}),e_({awemeInfo:i,player:o,getLogInfo:s})}({player:i_,isActive:o,awemeInfo:i,getIsChangingVideoSrc:ig,getLogInfo:iy,getH265DegradeReportFlag:ic,getSpecialParams:ih,getReportNetworkSpeed:P,getSupportHwClientFlag:im,isNext:t,index:ez}),null},ip=e=>{let i=(0,i_.N)();return(0,d.useMemo)(()=>{var i;return null==e?void 0:null===(i=e.abtestData)||void 0===i?void 0:i.etPluginOptimize},[])?(0,t.jsx)(ic.k,{componentName:"EtPlugin",Slardar:i,children:(0,t.jsx)(im,(0,n._)({},e))}):(0,t.jsx)(im,(0,n._)({},e))}},18177:function(e,i,o){o.d(i,{E:function(){return t}}),o(117232);var l=o(499059);let n={1:{width:1920,height:1080},2:{width:1280,height:720},3:{width:1024,height:576},4:{width:1024,height:576}},t=e=>{var i,o,t,d,r,u,a;if(null===(i=l.Le.getConfig(l.gI.AbtestData))||void 0===i?void 0:i.longtask)return -1;let v={definition:0},s=null==e?void 0:e.video,_=null==s?void 0:s.getBoundingClientRect(),c=(null==s?void 0:s.videoWidth)/(null==s?void 0:s.videoHeight);l.Le.setConfig(l.gI.videoRect,_);let f=null==e?void 0:null===(d=e.config)||void 0===d?void 0:null===(t=d.definition)||void 0===t?void 0:null===(o=t.list)||void 0===o?void 0:o.sort((e,i)=>(null==i?void 0:i.definition)-(null==e?void 0:e.definition));if(f&&c>1)for(let e=0;e<f.length;e++){let i=null!==(u=f[e].definition)&&void 0!==u?u:1,o=n[i];if(!((null==_?void 0:_.width)>(null==o?void 0:o.width))||!((null==_?void 0:_.height)>(null==o?void 0:o.height))){v.definition=i;break}}if(f&&c<1)for(let e=0;e<f.length;e++){let i=null!==(a=f[e].definition)&&void 0!==a?a:1,o=n[i];if(!((null==_?void 0:_.width)>(null==o?void 0:o.height))||!((null==_?void 0:_.height)>(null==o?void 0:o.width))){v.definition=i;break}}return(null==e?void 0:null===(r=e.curDefinition)||void 0===r?void 0:r.definition)<v.definition?1:0}},484606:function(e,i,o){o.d(i,{O:function(){return u}}),o(374954);var l=o(426038),n=o(499059),t=o(709705);let d=l.LocalStorageKeys.FrameInfoList,r=!1,u=e=>{var i,o,l,u,a,v,s;if((null===(i=n.Le.getConfig(n.gI.AbtestData))||void 0===i?void 0:i.useCache)===1&&r)return;let _=null!==(s=(0,t.$o)(d))&&void 0!==s?s:[],c=_.filter(e=>0===e.isH265),f=_.filter(e=>1===e.isH265);if(c.length>=5&&f.length>=5){r=!0;return}if(c.length>=5&&(null==e?void 0:null===(o=e.curDefinition)||void 0===o?void 0:o.isH265)===0||f.length>=5&&(null==e?void 0:null===(l=e.curDefinition)||void 0===l?void 0:l.isH265)===1)return;let m={isH265:null==e?void 0:null===(u=e.curDefinition)||void 0===u?void 0:u.isH265,total:null==e?void 0:null===(a=e.videoFrameInfo)||void 0===a?void 0:a.total,rate:null==e?void 0:null===(v=e.videoFrameInfo)||void 0===v?void 0:v.droppedRate};_.push(m),(0,t.qQ)(d,_)}},153688:function(e,i,o){o.d(i,{S:function(){return n}});var l=o(703259);let n=e=>{var i,o;let{player:n,qualityType:t}=e;return(0,l.I)({player:n})?-2:null!==(o=null==n?void 0:null===(i=n.curDefinition)||void 0===i?void 0:i.qualityType)&&void 0!==o?o:t}},448602:function(e,i,o){o.d(i,{$:function(){return n}});var l=o(902622);let n=e=>{var i,o,n,t,d,r;let{player:u,awemeInfo:a}=e,v={};try{v=JSON.parse((null==a?void 0:null===(n=a.video)||void 0===n?void 0:null===(o=n.meta)||void 0===o?void 0:o.volume_info)||"{}")}catch(e){}return{loudness_range_end:null==v?void 0:v.LoudnessRangeEnd,loudness_range_start:null==v?void 0:v.LoudnessRangeStart,loudness_range:null==v?void 0:v.LoudnessRange,maximum_momentary_loudness:null==v?void 0:v.MaximumMomentaryLoudness,maximum_short_term_loudness:null==v?void 0:v.MaximumShortTermLoudness,peak:null==v?void 0:v.Peak,target_lufs:null!==(t=null==u?void 0:u.lufs)&&void 0!==t?t:l.G7,source_lufs:null!==(r=Number(null!==(d=null==a?void 0:null===(i=a.video.meta)||void 0===i?void 0:i.loudness)&&void 0!==d?d:0))&&void 0!==r?r:0}}},196982:function(e,i,o){o.d(i,{N:function(){return d}});var l=o(618759);let n=e=>{let i={};if("string"==typeof e)try{i=JSON.parse(e)}catch(e){i={}}return i},t=e=>{let i={};try{var o,t,d,r,u;if(!(0,l.DT)()||!(null==e?void 0:e.video)||(null==e?void 0:null===(o=e.video)||void 0===o?void 0:o.nodeType)!==1)return{};let a=null==e?void 0:null===(d=e.video)||void 0===d?void 0:null===(t=d.querySelectorAll)||void 0===t?void 0:t.call(d,"source");for(let e=0;e<(null==a?void 0:a.length);e++){let o=a[e];if(null==o?void 0:null===(r=o.execute)||void 0===r?void 0:r.call(o,"isActive","")){let e=null==o?void 0:null===(u=o.execute)||void 0===u?void 0:u.call(o,"getMediaInfo","");i=n(e);break}}}catch(e){i={}}return i},d=e=>{var i;let o=null===(i=t(e))||void 0===i?void 0:i.video_platform_decoder;return void 0===o?-1:o}},256033:function(e,i,o){o.d(i,{D:function(){return t}});var l=o(629686);o(362051);let n=(e,i,o)=>{try{var l,n;let t=(null==e?void 0:null===(n=e.plugins)||void 0===n?void 0:null===(l=n.mp4encryptplayer)||void 0===l?void 0:l.states)||[],d=t.find(e=>(null==e?void 0:e.state)===i),r=t.find(e=>(null==e?void 0:e.state)===o),u=(null==r?void 0:r.t2)-(null==d?void 0:d.t2);return Number.isFinite(u)?u:0}catch(e){return 0}},t=e=>{let{player:i,isChangeVideoSrc:o=!1,slideStartTime:t=!1,data:d,loadedDataTime:r}=e,u={};try{var a,v,s,_,c,f,m,p,g;o?u.is_slide_loadeddata=-1:t&&(u.is_slide_loadeddata=t-r>0?1:0,u.slide_to_loadeddata=r-t);let e=null==i?void 0:null===(f=i.plugins)||void 0===f?void 0:null===(c=f.mp4encryptplayer)||void 0===c?void 0:null===(_=c.states)||void 0===_?void 0:null===(s=_.find)||void 0===s?void 0:null===(v=s.call(_,e=>"PRELOAD_ERROR"===e.state))||void 0===v?void 0:null===(a=v.data)||void 0===a?void 0:a.t,y=null==i?void 0:null===(g=i.plugins)||void 0===g?void 0:null===(p=g.mp4encryptplayer)||void 0===p?void 0:null===(m=p.states)||void 0===m?void 0:m.map(e=>(e.data=void 0,e));return i.stages=(0,l._)({playerinit_to_loadstart:null==d?void 0:d.startCostTime,playerinit_to_loadeddata:null==d?void 0:d.loadedCostTime,playerstart_to_mp4metaready:n(i,"PLAYER_START_INIT","MP4_META_READY"),mp4init_to_mp4metaready:n(i,"MP4_INIT","MP4_META_READY"),playerinitfinally_to_loadstart:n(i,"PLAY_INIT_FINALLY","LOAD_START"),mp4metaready_to_loadstart:n(i,"MP4_META_READY","LOAD_START"),loadstart_to_mseopen:n(i,"LOAD_START","MSE_OPEN"),mseinitsegok_to_appenddataok:n(i,"MSE_INITSEG_OK","APPEND_DATA_OK"),mseinitseg_to_mseinitsegok:n(i,"MSE_INITSEG","MSE_INITSEG_OK"),appenddataok_to_loadeddata:n(i,"APPEND_DATA_OK","LOADED_DATA"),mseopen_to_loadeddata:n(i,"MSE_OPEN","LOADED_DATA"),mse_all_phrase:JSON.stringify(y),preload_error:e},u),i.stages||{}}catch(e){return{}}}},632062:function(e,i,o){o.d(i,{L:function(){return t},a:function(){return n}});var l=o(550506);let n=(e,i)=>!e||1===i&&e.currentTime>=e.duration?0:i,t=e=>{if(!e)return 0;try{var i;let o=(e.cumulateTime||0)/1e3,n=(null==e?void 0:null===(i=e.curDefinition)||void 0===i?void 0:i.realBitrate)||0;return(0,l.e)(o*n)}catch(e){return 0}}},267133:function(e,i,o){o.d(i,{A:function(){return l}});let l=e=>{let i;switch(e.vtype||""){case"MP4_MSE":i=1;break;case"MP4":i=2;break;case"MP4_1":case"MP4_2":i=3;break;default:i=0}return i}},108954:function(e,i,o){o.d(i,{P:function(){return t}});var l=o(550506),n=o(137375);let t=e=>{let i={preloadTime:0,preloadSize:0,startBuffer:0,audioDuration:0,minDuration:0};if(!e)return i;try{var o,t,d,r;let{preLoadData:u,plugins:a}=e||{},{buffer:v=0,startBuffer:s=0}=null==e?void 0:null===(t=e.plugins)||void 0===t?void 0:null===(o=t.xglogger)||void 0===o?void 0:o.levelInfo;if(i.startBuffer=s,(0,n.me)(e)){let{duration:e,byteLength:o,audioDuration:l=0}=u||(null==a?void 0:null===(d=a.mp4encryptplayer)||void 0===d?void 0:d.preLoadData)||{};return i.preloadSize=o,i.preloadTime=e,i.audioDuration=1e3*l,i.minDuration=Math.min(1e3*e,1e3*l)||0,i}if(v>0){let o=v/1e3,n=(null==e?void 0:null===(r=e.curDefinition)||void 0===r?void 0:r.realBitrate)||0,t=(0,l.e)(o*n);i.preloadSize=t,i.preloadTime=o}return i}catch(e){return{preloadSize:0,preloadTime:0,startBuffer:0,audioDuration:0,minDuration:0}}}},626787:function(e,i,o){o.d(i,{Z:function(){return L}});var l=o(629686),n=o(402748),t=o(426112),d=o(880327),r=o(499059),u=o(428658),a=o(995270),v=o(191785),s=o(870327),_=o(434441),c=o(153688),f=o(792903),m=o(908750),p=o(889094),g=o(32712),y=o(767192),h=o(703259),w=o(332911),E=o(292382),I=o(193143),b=o(911159);function L(e){var i,o,L,S,T,R,C,P,D,k,A,M,O,F,V,N;let{group_id:q,compilation_id:x="",is_csr:B=1,extraParams:Z={},host:U,vtype:G,player:W,awemeInfo:K,h265DeGrade:z,logInfo:Y,supportHw:H,fetchExpired:J}=e,{aweme_type:Q,video_play_mode:$,is_landscape:j,action_type:X}=Y,{isH265:ee,videoFormat:ei}=(0,g.Z)({awemeInfo:K,player:W}),{isPcdnSource:eo}=(0,E.E)(U,null==W?void 0:null===(i=W.config)||void 0===i?void 0:i.url),el=(null==K?void 0:null===(S=K.video)||void 0===S?void 0:null===(L=S.bitRateList)||void 0===L?void 0:null===(o=L[0])||void 0===o?void 0:o.qualityType)||(null==K?void 0:null===(T=K.video)||void 0===T?void 0:T.qualityType);(0,y.v)();let en=(0,y.G)(),et=null==W?void 0:null===(P=W.config)||void 0===P?void 0:null===(C=P.url)||void 0===C?void 0:null===(R=C[0])||void 0===R?void 0:R.src,ed=(0,l._)((0,n._)((0,l._)({urlParamList:["previous_page","tab_name"],group_id:q,compilation_id:x,is_csr:B,host:U,vtype:G,aweme_type:Q,action_type:X,is_ad:(0,t.Jt)(K)?1:0,is_compilation:(null==K?void 0:null===(D=K.mixInfo)||void 0===D?void 0:D.mixId)?1:0,is_full_screen:(0,d.r)(),is_show_comment:r.Le.getConfig(r.gI.IsCommetTab)?1:0,video_format:ei,video_play_mode:$,is_landscape:j,is_bytevc1:ee,play_order:en,is_supported_265:(0,h.VV)()?1:0,is_265_degrade:z,is_support_hw:H,v_like_cnt:null==K?void 0:null===(k=K.stats)||void 0===k?void 0:k.diggCount,v_share_cnt:null==K?void 0:null===(A=K.stats)||void 0===A?void 0:A.shareCount,v_comment_cnt:null==K?void 0:null===(M=K.stats)||void 0===M?void 0:M.commentCount,v_download_cnt:null==K?void 0:null===(O=K.stats)||void 0===O?void 0:O.downloadCount,v_forward_cnt:null==K?void 0:null===(F=K.stats)||void 0===F?void 0:F.forwardCount,vduration:null==K?void 0:null===(V=K.video)||void 0===V?void 0:V.duration,is_have_pcdn:Number(eo),is_supported_hevc1_hw:(0,u._u)()?1:0,is_supported_264_hw:(0,u.b4)()?1:0,player_version:null==W?void 0:W.version,feature_id:null==W?void 0:null===(N=W.curDefinition)||void 0===N?void 0:N.featureId,video_quality:(0,c.S)({player:W,qualityType:el}),if_invisible:(0,a.Vr)()?"1":"0",is_small_window:(0,I.f)()?"1":"0",small_window_scene:(0,I.f)()?b.w_.getState().smallWindowScene:""},(0,f.Z)(W),(0,m.Z)(),Z),{fetch_expired:J,active_expired:et?(0,v.q)(et):-1}),(0,p.m)({player:W}),(0,p.B)({player:W}));return(0,s.Vw)(_.H.video_request,(0,n._)((0,l._)({},ed),{aweme_info:K})),w.Z.sendLog("videoRequest",ed),!0}},857609:function(e,i,o){o.d(i,{Z:function(){return _}});var l=o(629686),n=o(426112),t=o(428658),d=o(767192),r=o(32712),u=o(792903),a=o(908750),v=o(703259),s=o(332911);function _(e){var i,o;let{group_id:_,compilation_id:c="",vduration:f,duration:m,is_csr:p=1,is_success:g,videoQuality:y="",extraParams:h={},host:w,vtype:E,player:I,awemeInfo:b,logInfo:L,h265DeGrade:S,supportHw:T}=e,{aweme_type:R,video_play_mode:C,is_landscape:P,action_type:D}=L,{isH265:k,videoFormat:A}=(0,r.Z)({awemeInfo:b,player:I}),M=(0,d.G)();return s.Z.sendLog("videoRequestResponse",(0,l._)({urlParamList:["previous_page","tab_name"],group_id:_,compilation_id:c,vduration:f,video_quality:y,video_format:A,is_success:g,duration:m,is_csr:p,host:w,vtype:E,action_type:D,is_ad:(0,n.Jt)(b)?1:0,is_compilation:(null==b?void 0:null===(i=b.mixInfo)||void 0===i?void 0:i.mixId)?1:0,aweme_type:R,video_play_mode:C,is_landscape:P,is_bytevc1:k,play_order:M,is_supported_265:(0,v.VV)()?1:0,is_265_degrade:S,is_support_hw:T,is_hw:(null==I?void 0:null===(o=I.config)||void 0===o?void 0:o.mediaType)==="video"?1:0,is_supported_hevc1_hw:(0,t._u)()?1:0,is_supported_264_hw:(0,t.b4)()?1:0,player_version:null==I?void 0:I.version},(0,u.Z)(I),(0,a.Z)(),h)),!0}},733900:function(e,i,o){o.d(i,{g:function(){return w}});var l=o(629686);o(679308),o(706056);var n=o(320165),t=o(101199),d=o(734123),r=o(68608),u=o(426038),a=o(709705),v=o(409250),s=o(414061),_=o(63601),c=o(310383),f=o(913285),m=o(396868),p=o(435132),g=o(37285);let y=e=>{let{isActive:i,abtestData:o}=e,l=(0,_.n)(),n=(0,r.U)();return(0,t.useEffect)(()=>{if(l&&i){let e=e=>{var i;if((null==e?void 0:e.isInternalOp)!==!0&&(null==l?!void 0:null===(i=l.config)||void 0===i?!void 0:!i.volume_raw))0===(0,a.$o)(u.LocalStorageKeys.PLAYER_IS_MUTE)&&l.muted&&(0,a.qQ)(u.LocalStorageKeys.PREVIEW_IS_MUTE,1),(0,a.qQ)(u.LocalStorageKeys.PLAYER_VOLUME,l.volume),(0,a.qQ)(u.LocalStorageKeys.PLAYER_IS_MUTE,l.muted?1:0),(0,p.c)({isMute:l.muted,volume:l.volume})};new Promise((e,i)=>{let{volume:n,autoplayMuted:t}=(0,p.J)(o);try{var d,r;null===(0,a.$o)(u.LocalStorageKeys.PLAYER_VOLUME)&&(0,a.qQ)(u.LocalStorageKeys.PLAYER_VOLUME,n),null===(0,a.$o)(u.LocalStorageKeys.PLAYER_IS_MUTE)&&(0,a.qQ)(u.LocalStorageKeys.PLAYER_IS_MUTE,0),l.video.volume=n;let i=l.playerId&&l.playerId===(null===(d=window.__QUICK_PLAYER)||void 0===d?void 0:d.playerId);!(l.__isInlinePlayer&&!l.paused)&&(l.video.muted=t),!i&&!l.paused&&(l.video.muted=t),null===(r=l.getPlugin("volume"))||void 0===r||r.onVolumeChange(),!v.Q.getItem({sKey:u.CookieKeys.VolumeInfo})&&v.Q.setItem(u.CookieKeys.VolumeInfo,{isUserMute:!1,isMute:l.video.muted,volume:l.video.volume}),e(0)}catch(e){l.volume=n,!(l.__isInlinePlayer&&!l.paused)&&(l.video.muted=t),i(e)}}).then(()=>{null==l||l.on(d.Events.VOLUME_CHANGE,e)}).catch(e=>{});let i=s.listen(s.EVENT.syncInteraction,()=>{if(null==l?void 0:l.video){let{volume:e,autoplayMuted:i}=(0,p.J)(o);l.video.volume=e,l.video.muted=i}});return()=>{null==l||l.off(d.Events.VOLUME_CHANGE,e),i()}}},[l,i,o,n]),(0,t.useEffect)(()=>{if(i&&l){let e=e=>{((null==e?void 0:e.action)==="change_muted"||(null==e?void 0:e.action)==="change_volume")&&setTimeout(()=>{(0,p.c)({isUserMute:!0===l.muted||0===l.volume,isMute:l.muted,volume:l.volume})})};return l.on(d.Events.USER_ACTION,e),()=>{l.off(d.Events.USER_ACTION,e)}}},[l,o,i]),(0,t.useEffect)(()=>{if(i&&l){let e=e=>{("volumeDown"===e.action||"volumeUp"===e.action)&&setTimeout(()=>{(0,p.c)({isUserMute:0===l.volume,isMute:l.muted,volume:l.volume})})};return l.on(g.B.CustomShortCut,e),()=>{l.off(g.B.CustomShortCut,e)}}},[l,o,i]),null},h=e=>{let{isActive:i,abtestData:o,awemeInfo:l,scene:n="",toast:d}=e,r=(0,_.n)();return(0,t.useEffect)(()=>{if(r&&i){let e=setTimeout(()=>{var e,i,o;r.muted=!0,r.volume=0,r.musicMute=!0,null===(o=r.plugins)||void 0===o||null===(i=o.volume)||void 0===i||null===(e=i.disable)||void 0===e||e.call(i)});return()=>{var i,o,l;clearTimeout(e),r.musicMute=!1,null===(l=r.plugins)||void 0===l||null===(o=l.volume)||void 0===o||null===(i=o.enable)||void 0===i||i.call(o)}}},[r,i]),(0,t.useEffect)(()=>{if(r&&i&&["modal","detail"].includes(n)){if(d){d("该声音不可用");return}m.F.info("该声音不可用")}},[r,i,n]),null},w=e=>{var i,o;let t=(0,c.N)(),{awemeInfo:d}=e;return(null==d?void 0:null===(o=d.status)||void 0===o?void 0:null===(i=o.videoMute)||void 0===i?void 0:i.isMute)?(0,n.jsx)(h,(0,l._)({},e)):(0,n.jsx)(f.k,{componentName:"VolumePlugin",Slardar:t,children:(0,n.jsx)(y,(0,l._)({},e))})}},292382:function(e,i,o){o.d(i,{E:function(){return l}}),o(656562),o(992871),o(490629),o(968336);let l=(e,i)=>{if("string"!=typeof e||!Array.isArray(i))return{pcdnSrcIndex:-1,isPcdnSource:!1};let o=i.findIndex(e=>!!(e.src&&e.ispcdn));if(o>-1){let l=i[o].src,n=new URL(e.startsWith("https:")?e:`https:${e}`),t=new URL(l.startsWith("https:")?l:`https:${l}`),d=n.host===t.host;return{isPcdnSource:d,pcdnSrcIndex:d?o:-1}}return{pcdnSrcIndex:o,isPcdnSource:!1}}},277764:function(e,i,o){o.d(i,{N:function(){return d},O:function(){return r}});var l=o(72430),n=o(414061),t=o(499059);let d=e=>{n.emit(n.EVENT.syncInteractionStatus,{action:"lookVideo",awemeId:e.awemeId,fromUserId:e.authorInfo.secUid,extraAwemeInfo:{isFromSort:e.isFromSort}})},r=e=>{var i;let{awemeInfo:o}=e,n=t.Le.getConfig(t.gI.UnLookVideos);if(!!n)(null===(i=n[null==o?void 0:o.awemeId])||void 0===i?void 0:i.status)===l.Pl.UnLook&&(n[null==o?void 0:o.awemeId].status=l.Pl.Looked,d(o))}},688736:function(e,i,o){o.d(i,{B:function(){return t}}),o(706056);var l=o(499059),n=o(759894);let t=e=>{var i,o,t;return"discover"!==(0,n.vM)()?null==e?void 0:null===(i=e.chanFeedVideo)||void 0===i?void 0:i.source:(l.Le.getConfig(l.gI.JingxuanCacheAwmeInfoIds)||[]).includes((null==e?void 0:e.awemeId)||"")?"jingxuan_first_page_cahce":(null==e?void 0:null===(o=e.webSelectInfo)||void 0===o?void 0:o.source)||(null==e?void 0:null===(t=e.chanFeedVideo)||void 0===t?void 0:t.source)}},47014:function(e,i,o){o.d(i,{$I:function(){return u},Fp:function(){return a},yr:function(){return r}}),o(706056),o(490629);var l=o(101199),n=o(499059),t=o(601034),d=o(773453);let r=e=>{try{if(performance.getEntriesByName("recommend_mounted").length>0){var i,o,l,r;performance.mark("recommend_video_play"),performance.measure("recommendMountedToPlay","recommend_mounted","recommend_video_play");let u=null===(i=performance.getEntriesByName("recommendMountedToPlay")[0])||void 0===i?void 0:i.duration,a=null!==(o=n.Le.getConfig(n.gI.PageEntered))&&void 0!==o?o:[],v=!a.includes(location.pathname);v&&n.Le.setConfig(n.gI.PageEntered,[...a,location.pathname]),!isNaN(u)&&d.i.sendLog("recommendFirstVideoPlay",{cost:Math.floor(u),from_cache:null!==(l=null==e?void 0:e.fromCache)&&void 0!==l?l:0,is_first:v?1:0,path:location.pathname,enter_from:(0,t.yW)(),is_live:null!==(r=null==e?void 0:e.isLive)&&void 0!==r?r:0}),performance.clearMarks("recommend_mounted"),performance.clearMarks("recommend_video_play"),performance.clearMeasures("recommendMountedToPlay")}}catch(e){}},u=e=>{(0,l.useEffect)(()=>(performance.mark("multi_page_mounted"),()=>{performance.getEntriesByName("multi_page_mounted").length>0&&performance.clearMarks("multi_page_mounted")}),[e])},a=()=>{try{if(performance.getEntriesByName("multi_page_mounted").length>0){var e;performance.mark("page_available"),performance.measure("mountedToAvailable","multi_page_mounted","page_available");let i=null===(e=performance.getEntriesByName("mountedToAvailable")[0])||void 0===e?void 0:e.duration;!isNaN(i)&&d.i.sendLog("pageMountedToAvailable",{cost:Math.floor(i),path:location.pathname}),performance.clearMarks("multi_page_mounted"),performance.clearMarks("page_available"),performance.clearMeasures("mountedToAvailable")}}catch(e){}}},145770:function(e,i,o){o.d(i,{V:function(){return t}});var l=o(709705),n=o(426038);function t(){(0,l.qQ)(n.LocalStorageKeys.LatestSlideSideButtonUsed,Date.now())}}}]); |