douxiaoyun.js/profiles/douyin-profile/Default/Cache/Cache_Data/f_0003d8
2026-07-17 22:23:39 +08:00

1 line
77 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["64942"],{874688:function(e,l,t){t.d(l,{E:function(){return h}});var i=t("320165"),n=t("101199"),o=t("469935"),a=t.n(o),r=t("342221"),d=t("63601");t("490629");var s=t("254457"),u=t("933524"),c=t("5537"),v=t("601034"),f=t("771410"),m=t("176449");let p=e=>{let{data:l,onClick:t,awemeInfo:o,activityCardDirectOpen:d}=e,{urlList:p,content:h}=l,[g,_]=(0,u.Z)(),[w,y]=(0,n.useState)(p[0]);return(0,n.useEffect)(()=>{if(_){var e;f.Z.report("pc_feed_label_show",{enter_from:(0,v.yW)(),group_id:null==o?void 0:o.awemeId,author_id:String(null!==(e=null==o?void 0:o.authorUserId)&&void 0!==e?e:""),label_type:null==l?void 0:l.activityName,activity_id:null==l?void 0:l.schema})}},[_]),(0,n.useEffect)(()=>{d&&(null==t||t("jingxuanActivity",l))},[]),(0,i.jsxs)("span",{ref:g,className:a()(r.default.anchor),onClick:e=>{null==t||t("jingxuanActivity",l)},children:[(0,i.jsx)("img",{className:r.default.icon,src:w,onError:()=>y(c||""),alt:""}),(0,i.jsx)("span",{className:r.default.text,children:h}),(0,i.jsx)(m.Z,{className:a()(r.default.arrowSvg),src:s.Z,width:12,height:12,viewBox:"0 0 12 12"})]})},h=e=>{let{awemeInfo:l,className:t,anchorList:n,openActivityCard:o,isDetailPage:s=!1,activityCardDirectOpen:u}=e,c=(0,d.n)();return((null==c?void 0:c.video)||s)&&0!==n.length?(0,i.jsx)("span",{className:a()(r.default.anchorContainer,{[r.default.detail]:s},t),children:n.map(e=>{let{activityKey:t,data:n}=e;return"jingxuanActivity"===t?(0,i.jsx)(p,{data:n,awemeInfo:l,onClick:o,activityCardDirectOpen:u},n.activityName):null})}):null}},880323:function(e,l,t){t.d(l,{e:function(){return s}}),t(706056),t(374954);var i=t(101199),n=t(121998),o=t(365169);let a={strategy:1,candidates:[{business_id:"daily_recommend",priority:9417,type:0,static_label:{style:{container_number:1,padding:null},containers:[{id:"main_frame_label",template:4,style:{color:"#FFFFFF",transparency:100,border_radius:4,padding:[4,3,0,2],height:20},elements:[{type:2,multi_images:{images:[{image:{uri:"aweme-client-static-resource/selected_dark_icon.png",url_list:["https://p9-pc-sign.douyinpic.com/obj/aweme-client-static-resource/selected_dark_icon.png?lk3s=138a59ce&x-expires=1767182400&x-signature=RhHBTovlBNI2KFXDQ1IceLa6I4E%3D&from=327834062","https://p3-pc-sign.douyinpic.com/obj/aweme-client-static-resource/selected_dark_icon.png?lk3s=138a59ce&x-expires=1767182400&x-signature=13pPxcPPGoTvfFhcrSAdjMUC0zU%3D&from=327834062"],width:720,height:720},style:{shape:0,size:12}}]},data_ref:"default_data"},{type:0,text:{content:"抖音精选内容",style:{size:12,bold:!0,omit_strategy:0,max_character:6,font_color:"#161823"}}},{type:2,multi_images:{images:[{image:{uri:"aweme-client-static-resource/ic_s_s_arrowrightmini@3x.png",url_list:["https://p3-pc-sign.douyinpic.com/obj/aweme-client-static-resource/ic_s_s_arrowrightmini@3x.png?lk3s=138a59ce&x-expires=1767182400&x-signature=RuRjFGnqe8jKOy8OKaoHUSn1hGY%3D&from=327834062","https://p9-pc-sign.douyinpic.com/obj/aweme-client-static-resource/ic_s_s_arrowrightmini@3x.png?lk3s=138a59ce&x-expires=1767182400&x-signature=XcubiT13mRNVEDxrwPYc6lY%2F%2BGQ%3D&from=327834062"],width:720,height:720},style:{size:12}}]},data_ref:"default_data"}],event_id:"daily_recommend"}],actions:[{event_id:"daily_recommend",action_type:6,data_ref:"default_data"}],data:null,tracking_info:"",data_map:[{key:"default_data",data:{schema:"sslocal://hunter_popup?enable_canvas=1&radius=0&banner_type=creator_lottery&loading_bg_color=%23FFFFFF00&container_bg_color=%23FFFFFF00&group=yumme_billboard_popup_overlay_daily&enable_code_cache=1&enable_canvas_optimize=1&enable_perf_collection=1&enable_preload=1&thread_strategy=2&channel=yumme_billboard_popup_overlay&bundle=pages%2Findex%2Ftemplate.js&disable_outside_click_close=0&enable_font_scale=1&surl=https%3A%2F%2Flf-normal-gr-sourcecdn.bytegecko.com%2Fobj%2Fbyte-gurd-source-gr%2Fyumme%2Fbillboard%2Fpopup%2Fyumme_billboard_popup_overlay%2Fpages%2Findex%2Ftemplate.js&entrance_author_id=3935877303122940&entrance_item_id=7584276638897589561&entrance_item_create_time=1765852032&need_vote=0"}}],external_events:null}}]},r=[{business_id:"daily_recommend",activities:[{activity_name:"creator_lottery",download_modal_config:{no_content:!0,background_img:"https://lf3-static.bytednsdoc.com/obj/eden-cn/ild_jw_upfbvk_lm/ljhwZthlaukjlkulzlp/jingxuan_creator_lottery.png",light_style:!0},path:"/weekly_activity/fans-activity"}]}],d=(e,l)=>{try{var t,i,o,a,r,d,s,u,c,v,f,m,p,h,g,_,w,y,x,C,E,S,I,b,T,N,k,L,j;if(!(null==l?void 0:l.length))return null;let P=l.map(e=>e.business_id),R=null==e?void 0:null===(i=e.candidates)||void 0===i?void 0:null===(t=i.find)||void 0===t?void 0:t.call(i,e=>P.includes((null==e?void 0:e.business_id)||""));if(!(null==R?void 0:R.business_id)||!(null==R?void 0:R.static_label))return null;let{business_id:M,static_label:A}=R,F=(null===(a=l.find)||void 0===a?void 0:null===(o=a.call(l,e=>(null==e?void 0:e.business_id)===M))||void 0===o?void 0:o.activities)||[],O=null==A?void 0:null===(s=A.actions)||void 0===s?void 0:null===(d=s.find)||void 0===d?void 0:null===(r=d.call(s,e=>(null==e?void 0:e.event_id)===M))||void 0===r?void 0:r.data_ref,B=null==A?void 0:null===(f=A.data_map)||void 0===f?void 0:null===(v=f.find)||void 0===v?void 0:null===(c=v.call(f,e=>(null==e?void 0:e.key)===O))||void 0===c?void 0:null===(u=c.data)||void 0===u?void 0:u.schema,D=(null===(p=n.parseUrl(B))||void 0===p?void 0:null===(m=p.query)||void 0===m?void 0:m.banner_type)||"",W=null===(h=F.find)||void 0===h?void 0:h.call(F,e=>(null==e?void 0:e.activity_name)===D);if(!W)return null;let H=null==A?void 0:null===(w=A.containers)||void 0===w?void 0:null===(_=w.find)||void 0===_?void 0:null===(g=_.call(w,e=>(null==e?void 0:e.event_id)===M))||void 0===g?void 0:g.elements,V=(null==H?void 0:null===(C=H.find)||void 0===C?void 0:null===(x=C.call(H,e=>(null==e?void 0:e.type)===0))||void 0===x?void 0:null===(y=x.text)||void 0===y?void 0:y.content)||"抖音精选",U=null==H?void 0:null===(N=H.find)||void 0===N?void 0:null===(T=N.call(H,e=>(null==e?void 0:e.type)===2))||void 0===T?void 0:null===(b=T.multi_images)||void 0===b?void 0:null===(I=b.images)||void 0===I?void 0:null===(S=I[0])||void 0===S?void 0:null===(E=S.image)||void 0===E?void 0:E.url_list;if(!V||!(null==U?void 0:U.length))return null;return{content:V,urlList:U,path:(null==W?void 0:W.path)||"",downloadConfig:{noContent:(null==W?void 0:null===(k=W.download_modal_config)||void 0===k?void 0:k.no_content)||!1,backgroundImg:(null==W?void 0:null===(L=W.download_modal_config)||void 0===L?void 0:L.background_img)||"",lightStyle:(null==W?void 0:null===(j=W.download_modal_config)||void 0===j?void 0:j.light_style)||!1},schema:B,activityName:D}}catch(e){return null}},s=e=>{let{awemeInfo:l}=e,{isMainland:t,jingxuanActivity:n}=(0,o.Iq)(e=>{let{isMainland:l,jingxuanActivity:t}=e;return{isMainland:l,jingxuanActivity:t}}),{anchorList:r,hasJingxuanActivity:s}=(0,i.useMemo)(()=>{if(!t)return{anchorList:[],hasJingxuanActivity:!1};let e=[],i=d(null==l?void 0:l.generalLabel,n);localStorage.getItem("isJingxuanActivityTrue")&&!i&&(i=d(a,n));let o=!1;return i&&(o=!0,e.push({activityKey:"jingxuanActivity",data:i})),{anchorList:e,hasJingxuanActivity:o}},[t,l]);return{anchorList:r,hasJingxuanActivity:s}}},359141:function(e,l,t){t.d(l,{ZP:function(){return O}});var i=t("629686"),n=t("402748");t("490629"),t("679308"),t("706056");var o=t("320165"),a=t("469935"),r=t.n(a),d=t("101199"),s=t("593124"),u=t("939165"),c=t("72430"),v=t("690301"),f=t("68608"),m=t("880327"),p=t("335948"),h=t("499059"),g=t("414061"),_=t("798357"),w=t("687581"),y=t("601034"),x=t("273372"),C=t("448797"),E=t("570269"),S=t("649310"),I=t("386206");let b=e=>{let{containerEl:l,nextSwiperHeaderHeight:t,cardBetween:i,upperSpace:n}=e,o=(0,I.U)(t)?0:100*t,a=(0,I.U)(t)?t:0,r=l?(0,I.U)(i)?0:100*i:0,d=(0,I.U)(i)?i:l?0:24,s=(0,I.U)(n)?0:100*n,u=(0,I.U)(n)?n:0,c=`calc(${100-o-r-s}% - ${u+d+a}px)`,v=`calc(${s}% + ${u}px)`;return{swiperHeight:c,calcUpperSpace:v,calSpaceBetween:d||r/100*(null==l?void 0:l.offsetHeight),spacePixelSum:u+d+a}};var T=t("994166"),N=t("591142"),k=t("538220"),L=t("552698"),j=t("593697"),P=t("332009"),R=t("36897"),M=t("396868"),A=t("365169"),F=t("185498"),O=function(e){var l,t,a,I;let{className:O,swiperClassName:B,abTestData:D={},cardBetween:W=k.qF.cardBetween,upperSpace:H=k.qF.upperSpace,nextSwiperHeaderHeight:V=k.qF.nextSwiperHeaderHeight,children:U,onSwiper:z,style:$={},swiperStyle:G={},isDefaultShowSideBar:Z,customTop:K,data:X,scene:Y,defaultCssFullScreen:q,initIndex:Q,useWheelListener:J=!0,splashAdStatus:ee,collectionFolderInfo:el,isVideoSupportMP4:et,pagingSpeed:ei,globalAiCardValue:en}=e,{removeSlideListButton:eo}=(0,A.Iq)(e=>{let{removeSlideListButton:l}=e;return{removeSlideListButton:l}}),ea=(0,d.useRef)(null),er=(0,d.useRef)(!1),[ed,es]=(0,d.useState)(null),[eu,ec]=(0,d.useState)(null),[ev,ef]=(0,d.useState)(),[em,ep]=(0,d.useState)(),[eh,eg]=(0,d.useState)(!1),e_=(0,C.W)(e=>e.isSideBarShow),ew=(0,C.W)(e=>e.setIsSideBarShow),[ey,ex]=(0,d.useState)(),[eC,eE]=(0,d.useState)((0,m.r)()),[eS,eI]=(0,d.useState)(q),[eb,eT]=(0,d.useState)(!1),eN=(0,F.G0)(eC||eS),[ek,eL]=(0,d.useState)(!1),[ej,eP]=(0,d.useState)(eC),eR=(0,p.x)(),[eM,eA]=(0,d.useState)(s.L.Author),eF=(0,d.useRef)(!1),eO=(0,d.useRef)(""),eB=(0,d.useRef)();ea.current=eu;let eD=()=>{var e;null===(e=ea.current)||void 0===e||e.update()},{awemeFeed:eW}=(0,R.j)();(0,d.useEffect)(()=>{ew(Z)},[Z]);let eH=(0,d.useRef)(null),eV=(0,d.useRef)(null),eU=(0,d.useCallback)(e=>{M.F.info({text:e},eH.current)},[]);(0,d.useEffect)(()=>{let e=()=>{(0,m.r)()?(eP(!0),(0,d.startTransition)(()=>{eE(!0)})):(eP(!1),eE(!1))};return document.addEventListener("fullscreenchange",e),document.addEventListener("mozfullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),document.addEventListener("msfullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("mozfullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),document.removeEventListener("msfullscreenchange",e),h.Le.setConfig(h.gI.SlideStartTime,{slideStartTime:0})}},[]),(0,u.o)(()=>{h.Le.getConfig(h.gI.IsMiniWinFromWidget)&&eT(h.Le.getConfig(h.gI.IsMiniWinFromWidget));let e=g.listen(g.EVENT.changeMinWindows,e=>{let{isMiniWin:l}=e;if(!(P.s.getPlayersByScene(c.lT.Modal).length>0)||Y===k.R5.Modal)l&&(eO.current=document.body.style.minWidth),document.body.style.minWidth=l?"auto":eO.current,document.body.style.overflow=l?"hidden":"",er.current=!0,eT(l)});return()=>e()},[]);let[ez,e$]=(0,d.useState)(eS);(0,d.useEffect)(()=>{let e=g.listen(g.EVENT.pageFullScreen,e=>{let{fullScreen:l,fromAuthorCard:t}=e;0===P.s.getPlayersByScene(c.lT.Modal).length&&(eI(e=>null!=l?l:!e),e$(e=>!e&&l&&t?e:null!=l?l:!e))});return()=>{null==e||e()}},[]),(0,d.useEffect)(()=>{let e=setTimeout(()=>{try{let e=(0,_.t)();e instanceof Element&&"flex"!==getComputedStyle(e).display&&(w.oe.event.error({name:w.Mo.CssDroped}),L.Z.sendLog("cssDroped",{enter_from:(0,y.yW)()}))}catch(e){}},5e3);return()=>{clearTimeout(e)}},[]);let eG=(0,d.useRef)(0);(0,d.useEffect)(()=>{if(eu){let e=()=>{g.emit(g.EVENT.tabContainerScroll,{tab:"recommend",scrollType:eu.activeIndex>eG.current?"down":"up"}),eG.current=eu.activeIndex};return eu.on("slideChange",e),()=>{eu.off("slideChange",e)}}},[eu]),(0,d.useEffect)(()=>{if(ed){let e=x.Z.bind(ed,eD);return()=>{e&&(null==e||e())}}},[ed]),(0,d.useEffect)(()=>{if(eu){let e=h.Le.getConfig(h.gI.GlobalSwiper);return h.Le.setConfig(h.gI.GlobalSwiper,eu),()=>{h.Le.setConfig(h.gI.GlobalSwiper,e)}}},[eu]);let eZ=eb||eC||ej||ez,eK=(0,d.useMemo)(()=>{let e=V;return ek&&(e-=30),{nextSwiperHeaderHeightIn:e>=0?e:0,cardBetweenIn:W,upperSpaceIn:H}},[ek,V,W,H]),eX=(0,d.useMemo)(()=>{let{nextSwiperHeaderHeightIn:e,cardBetweenIn:l,upperSpaceIn:t}=eK,{calcUpperSpace:i,calSpaceBetween:n,swiperHeight:o}=b({containerEl:ed,nextSwiperHeaderHeight:e,cardBetween:l,upperSpace:t});return setTimeout(()=>null==eu?void 0:eu.update()),{upperSpace:eZ?0:i,swiperHeight:eZ||ee===v.QB.Fullscreen?"100%":o,spaceBetween:eZ?0:n}},[eK,ed,eZ,ee]),eY=(0,d.useRef)(new Set),eq=(0,d.useMemo)(()=>(0,n._)((0,i._)({globalIsCommentShow:ev,setIsCommentShowFunc:ef,globalIsCommentTrayPushGuideShow:em,setIsCommentTrayPushGuideShowFunc:ep,globalCommentTrayPushGuideType:eh,setCommentTrayPushGuideTypeFunc:eg,globalIsRelatedShow:ey,setIsRelatedShowFunc:ex,globalIsSideBarShow:e_,setIsSideBarShowFunc:ew,setTargetVideoRef:e=>{eV.current=e.current},swiper:eu,isFullScreen:eC,isCssFullScreen:eS,isClientMiniWin:eb,fullScreenTarget:ed,videoToast:eU,slideVideoTab:eM,setSlideVideoTab:eA,dislikeIdList:eY.current,collectionFolderInfo:el},en||{}),{hasDefaultOpenAiRelatedCardRef:eF}),[ev,ey,e_,eu,eC,eS,eb,ed,eU,eM,em,eh,el,en]),eQ=(0,f.U)(),eJ=(0,d.useMemo)(()=>({position:"absolute",left:0,top:K||eX.upperSpace}),[K,eX]),e0=eZ?0:null!==(t=null==G?void 0:G.paddingLeft)&&void 0!==t?t:30,e1=eZ?0:null!==(a=null==G?void 0:G.paddingRight)&&void 0!==a?a:60,e2=eN&&(eC||eS),e3=e2?`calc(100% - ${F.BP})`:ee===v.QB.Fullscreen?`calc(100% + ${e1}px)`:"100%",e6=e2?e3:null!==(I=null==G?void 0:G.width)&&void 0!==I?I:e3,e4=(0,d.useCallback)(()=>{if(window.nextPlayer){var e;let l=null===(e=window)||void 0===e?void 0:e.nextPlayer,t=null==l?void 0:l.buffered;(null==t?void 0:t.length)>0?l.bufferedBeforeActive=1e3*t.end(0):l.bufferedBeforeActive=0,l.loadstartBeforeActive=(null==l?void 0:l.loadstart)?1:0,l.loadeddataBeforeActive=(null==l?void 0:l.loadeddata)?1:0}},[]),e5=(0,d.useMemo)(()=>eb?"unset":Y===k.R5.Recommend?`${495}px`:"400px",[eb,Y]),e9=(0,d.useMemo)(()=>(0,n._)((0,i._)({},eJ),{left:"auto",right:0,width:F.BP,height:eX.swiperHeight}),[eJ,eX.swiperHeight]),e7=(0,d.useMemo)(()=>(0,n._)((0,i._)({},$),{[F.pF]:F.BP}),[$]);return d.Children.toArray(U).some(e=>{var l;return(null==e?void 0:null===(l=e.props)||void 0===l?void 0:l.slot)===k.t6.OCCUPATION})?(0,o.jsx)(o.Fragment,{children:d.Children.toArray(U).map(e=>{var l;if((null==e?void 0:null===(l=e.props)||void 0===l?void 0:l.slot)===k.t6.OCCUPATION)return e})}):(0,o.jsxs)(S.C.Provider,{value:eq,children:[d.Children.toArray(U).map(e=>{var l;if((null==e?void 0:null===(l=e.props)||void 0===l?void 0:l.slot)===k.t6.OUTOFCONTAINER)return e}),(0,o.jsxs)("div",{id:"slidelist","data-active":eQ,className:r()(N.default.outerContainer,"slidelist",O,"fullscreen_capture_feedback",{"recommend-slidelist":Y===k.R5.Recommend,[r()(N.default.isFullScreen,"isCssFullScreen")]:eZ,[N.default.withLayoutSideCard]:e2,isTrimControls:null==D?void 0:null===(l=D.controls)||void 0===l?void 0:l.fullscreen,isMiniWindow:eb,isMiniWindowOptimize:eb&&eR}),ref:es,style:e7,children:[d.Children.toArray(U).map(e=>{var l;if((null==e?void 0:null===(l=e.props)||void 0===l?void 0:l.slot)===k.t6.OUTSIDE)return e}),(0,o.jsx)(j.t,{isDisabled:()=>!!eW.getValue("modalAwemeInfo"),onActiveIndexChange:e=>{var l,t,i,n,o;h.Le.setConfig(h.gI.SlideStartTime,{slideStartTime:Date.now()});let a=(null===(l=X[e-1])||void 0===l?void 0:l.awemeType)===101?"live":"video",r=(null===(t=X[e])||void 0===t?void 0:t.awemeType)===101?"live":"video";"video"===r&&(null===(i=X[e])||void 0===i?void 0:i.awemeId)&&(null===(o=performance)||void 0===o||null===(n=o.mark)||void 0===n||n.call(o,"@@first_frame_start"+X[e].awemeId)),E.w.createFpsTask(e),E.w.calculateFpsBasedOnDuration(e,a,r),e4()},direction:1,className:r()(N.default.swiperContainer,"fullscreen_capture_feedback",B,{[N.default.noPaddingLeft]:Y===k.R5.Follow||ee===v.QB.Fullscreen,[N.default.removeSlideListButton]:eo,[N.default.disableAnimation]:!0}),isVideoSupportMP4:et,style:(0,n._)((0,i._)({},eJ,G),{width:e6,height:eX.swiperHeight,overflow:"visible",paddingLeft:e0,paddingRight:e1,minHeight:e5}),data:X,spaceBetween:eX.spaceBetween,speed:null!=ei?ei:250,touchRatio:2,resistanceRatio:eZ?0:.7,ref:eB,onSwiper:e=>{ec(e),null==z||z(e)},slideKey:e=>{var l,t;return(null==e?void 0:e.awemeId)||(null==e?void 0:null===(t=e.cellRoom)||void 0===t?void 0:null===(l=t.rawdata)||void 0===l?void 0:l.id_str)},"data-e2e":"slideList","data-active":eQ,initIndex:Q,children:d.Children.toArray(U).map(e=>{var l;if([k.t6.INSIDE,k.t6.CONTAINERSTART,k.t6.CONTAINEREND,k.t6.WRAPPERSTART,k.t6.WRAPPEREND,k.t6.WRAPPERRIGHT].includes(null==e?void 0:null===(l=e.props)||void 0===l?void 0:l.slot))return e})}),e2&&eQ&&(0,o.jsx)("div",{id:"layoutSideCard",className:r()(N.default.layoutSideCard,{[N.default.displayNone]:eb,"isDark dark":!(null==D?void 0:D.newThemeColor)}),style:e9,onWheel:e=>e.stopPropagation(),children:(0,o.jsx)("div",{className:N.default.layoutSideCardInnerWrapper,children:(0,o.jsx)(F.gR,{isFullScreen:eC||eS,withContainer:!1})})}),(0,o.jsx)("div",{style:{marginLeft:e0,marginRight:e1,width:e6},className:r()(N.default.slidVideoToastContainer,"fullscreen_capture"),ref:eH}),(0,o.jsx)("div",{id:"fullscreen_capture_feedback",children:(0,o.jsx)("div",{id:"fullscreen_capture"})}),J&&(0,o.jsx)(T.J,{abtestData:D,EventListener:eu,refContainerStatus:ed,isCssFullScreen:eS,isClientMiniWin:eb})]})]})}},794016:function(e,l,t){t.d(l,{j:function(){return v}});var i=t(629686);t(706056),t(362051);var n=t(101199),o=t(333777),a=t(638052),r=t(734123),d=t(759894),s=t(601034),u=t(810069),c=t(499059);let v=e=>{let{player:l,isActive:t,abValue:v}=e;(0,n.useEffect)(()=>{var e,i;if(l&&t&&(null==v?void 0:null===(e=v.abrConfig)||void 0===e?void 0:e.downSrConfig)){let e=()=>{var e,t;(null===(t=l.abrInstance)||void 0===t?void 0:null===(e=t.module)||void 0===e?void 0:e.setGetTargetSrName)&&l.abrInstance.module.setGetTargetSrName(e=>{var l;let t=null==v?void 0:null===(l=v.SR)||void 0===l?void 0:l.improvePictureQuality;if((null==e?void 0:e.includes("1080"))&&t)return"720"})};return null==l||null===(i=l.once)||void 0===i||i.call(l,r.Events.TIME_UPDATE,e),()=>{var t;null==l||null===(t=l.off)||void 0===t||t.call(l,r.Events.TIME_UPDATE,e)}}},[l,t,v]),(0,n.useEffect)(()=>{if(l){l.upperCount=l.upperCount||0,l.lowerCount=l.lowerCount||0,l.abrCount=l.abrCount||0,l.abrChangeCount=l.abrChangeCount||0,l.upperAbrChangeCount=l.upperAbrChangeCount||0,l.lowerAbrChangeCount=l.lowerAbrChangeCount||0;let e=e=>{var t,n,o;let{v_time:r,buffer:v,target_birate:f,b_seek:m,costTime:p,net_speed:h,is_upper:g}=e;a.logInstance.sendLog("abrChange",(0,i._)({enter_from:(0,d.vM)(),enter_from_merge:(0,s.yW)(),abr_id:`${null===(t=(0,u.Es)())||void 0===t?void 0:t.user_unique_id}_${null==l?void 0:null===(n=l.config)||void 0===n?void 0:n.vid}_${null==l?void 0:l.firstFrameTmp}`,group_id:null==l?void 0:null===(o=l.config)||void 0===o?void 0:o.vid,buffer:v,current_position:r,target_birate:f,internet_speed:h,user_seek:m,costTime:p,is_upper:g,abr_config:JSON.stringify(c.Le.getConfig(c.gI.AbtestData).abrConfig)},e||{})),g?l.upperCount++:l.lowerCount++,l.abrCount++},t=function(){var e,t,n;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{orgDefinition:r,orgBitrate:v,currentDefinition:f,currentBitrate:m}=o;a.logInstance.sendLog("abrChangeDefinition",(0,i._)({enter_from:(0,d.vM)(),enter_from_merge:(0,s.yW)(),group_id:null==l?void 0:null===(e=l.config)||void 0===e?void 0:e.vid,origin_definition:r,origin_bitrate:v,current_definition:f,current_bitrate:m,is_upper:m>v?1:0,is_upper_definition:f>r?1:0,abr_id:`${null===(t=(0,u.Es)())||void 0===t?void 0:t.user_unique_id}_${null==l?void 0:null===(n=l.config)||void 0===n?void 0:n.vid}_${null==l?void 0:l.firstFrameTmp}`,abr_config:JSON.stringify(c.Le.getConfig(c.gI.AbtestData).abrConfig)},o)),m>v?l.upperAbrChangeCount++:l.lowerAbrChangeCount++,l.abrChangeCount++};return l.on(o._c.ABR_STAT,e),l.on(o._c.ABR_DEFINITION_REAL_CHANGE,t),()=>{l.off(o._c.ABR_STAT,e),l.off(o._c.ABR_DEFINITION_REAL_CHANGE,t)}}},[l])}},12041:function(e,l,t){t.d(l,{k:function(){return s}});var i=t(101199),n=t(263832),o=t(594942),a=t(426112),r=t(771410),d=t(759894);let s=e=>{let{awemeInfo:l,abtestData:t,isActive:s,shouldRender:u}=e;(0,i.useEffect)(()=>{if(s&&(null==t?void 0:t.useGameAnchorReport)===1){var e,i;let t=(null==l?void 0:null===(e=l.anchorInfo)||void 0===e?void 0:e.type)===n.as.AnchorGame,s=(0,o.cy)(),c=!(0,a.Kf)(l);r.Z.report("game_anchor_info_report",{isHitAbTest:!0,hasGameAnchor:t,anchorInfoType:null==l?void 0:null===(i=l.anchorInfo)||void 0===i?void 0:i.type,isSupportLynx:s,isNotBrandAd:c,awemeId:l.awemeId,groupId:l.groupId,logPb:l.logPb,shouldRender:u,enterFrom:(0,d.vM)()})}},[s,l,t,u])}},988215:function(e,l,t){t.d(l,{T:function(){return r}}),t(490629);var i=t(101199),n=t(939165),o=t(414061),a=t(365169);let r=e=>{let{isFirst:l,isAuthorCardShow:t,isShowRelatedCard:r,isLast:d,canUseListenFeed:s,prevAwemeInfo:u,nextAwemeInfo:c,listenFeedPrevAwemeInfo:v,listenFeedNextAwemeInfo:f,isInnerFeed:m,isActive:p}=e,{isListenVideoMiniWin:h}=(0,a.Iq)(e=>{let{isListenVideoMiniWin:l}=e;return{isListenVideoMiniWin:l}}),[g,_]=(0,i.useState)(),[w,y]=(0,i.useState)();return(0,n.o)(()=>{if(!p)return;let e=l&&!(t||r)||(t||r)&&!u,i=d&&!(t||r)||(t||r)&&!c,n=!v,a=!f,g=!m&&s;o.emit(o.EVENT.ListenVideoPipWindowStatusSync,{from:"main",to:"pip",type:"disablePrevStatusSync",newVal:g&&h?n:e}),o.emit(o.EVENT.ListenVideoPipWindowStatusSync,{from:"main",to:"pip",newVal:g&&h?a:i,type:"disableNextStatusSync"}),y(g&&h?a:i),_(g&&h?n:e)},[v,f,l,t,r,d,h,s,c,u,m,p]),{listenVideoDisableNext:w,listenVideoDisablePrev:g}}},997082:function(e,l,t){t.d(l,{u:function(){return d}});var i=t(101199),n=t(730084),o=t(499059),a=t(94109),r=t(78190);let d=e=>{let{awemeInfo:l,player:t}=e;(0,i.useEffect)(()=>{let e=(0,a.zJ)(l),i=o.Le.getConfig(o.gI.ImmersiveSwitchStatus);if(e&&i){var d,s;let e=null==t?void 0:null===(s=t.root)||void 0===s?void 0:null===(d=s.closest)||void 0===d?void 0:d.call(s,".basePlayerContainer");e&&(n.ZP.removeClass(e,r.oY),n.ZP.removeClass(e,r.PN),n.ZP.removeClass(e,r.oP),n.ZP.removeClass(e,r.nl))}},[l,t])}},13994:function(e,l,t){t.d(l,{U:function(){return p}});var i=t(629686),n=t(402748);t(679308),t(362051);var o=t(101199),a=t(499059),r=t(335924),d=t(650887),s=t(857800),u=t(964575),c=t(27964);let v=!1,f=()=>{if(v)return null;v=!0;let e=a.Le.getConfig(a.gI.PlayerStateBeforeRefeshForNotUse);if(e&&"object"==typeof e)return a.Le.setConfig(a.gI.PlayerStateBeforeRefeshForNotUse,null),e;if((0,r.Rs)(u.REFRESH_FOR_NOT_USE)){let e=(0,r.Rs)(u.VID)||(0,r.Rs)(u.MODAL_ID),l=Number((0,r.Rs)(u.SEEK_TIME)),t=!!(0,r.Rs)(u.REFRESH_IMMERSIVE_SWITCH),i=(0,r.Rs)(u.REFRESH_VIDEO_TAB);return Promise.resolve().then(()=>{let e=(0,d.q)([u.REFRESH_FOR_NOT_USE,u.VID,u.SEEK_TIME,u.REFRESH_IMMERSIVE_SWITCH,u.REFRESH_VIDEO_TAB],location.href);history.replaceState({},"",e)}),{vid:e,seekTime:l,immersiveSwitch:t,videoTab:i}}return null},m=()=>{let e=a.Le.getConfig(a.gI.PlayerStateFromLynx);(null==e?void 0:e.vid)&&a.Le.setConfig(a.gI.PlayerStateFromLynx,(0,n._)((0,i._)({},e),{hasSeek:!0}))},p=e=>{let{config:l,player:t,isActive:i,awemeInfo:n,setIsSideBarShowFunc:r,setSlideVideoTab:d,playerReady:u}=e,v=(0,o.useRef)(i),p=(0,o.useRef)(void 0),h=(0,o.useRef)(null);if((0,o.useEffect)(()=>{h.current&&h.current!==n.awemeId&&c.Z.sendLog("refreshNoMatchVid",{vid:h.current})},[]),!i)return l.autoplay=i,l.notUseRefreshVid=null,t&&(t.config.notUseRefreshVid=null),l.isOnByOuter=void 0,l;if((0,s.B)()||(0,s.r)())return l.autoplay=!1,l;let g=()=>{m(),a.Le.setConfig(a.gI.PlayerStateFromLynx,void 0),t.off("seeked",g)},_=a.Le.getConfig(a.gI.PlayerStateFromLynx);if(_){let{vid:e,seekTime:o,paused:r,muted:d,hasSeek:s}=_;return i&&e&&(null==n?void 0:n.awemeId)&&e!==(null==n?void 0:n.awemeId)?(a.Le.setConfig(a.gI.PlayerStateFromLynx,void 0),l):(l.autoplay=!1,v.current=!1,l.notUseRefreshVid=n.awemeId,e===n.awemeId&&(l.autoplay=!r,l.startTime=o,t&&!s&&(t.seek(o,r?"pause":"play"),t.on("seeked",g))),t&&(t.muted=d),l)}let w=f();if(w){let{vid:e,seekTime:t,immersiveSwitch:i,videoTab:o}=w;h.current=e,l.autoplay=!1,v.current=!1,l.notUseRefreshVid=n.awemeId,e===n.awemeId&&t&&document.hidden&&(l.startTime=t,i&&(p.current=!0),o&&(null==r||r(!0),null==d||d(o)))}return t&&t.config&&t.config.notUseRefreshVid!==n.awemeId&&(l.notUseRefreshVid=null,t.config.notUseRefreshVid=null,p.current=void 0),l.isOnByOuter=p.current,l.autoplay=v.current,l}},631431:function(e,l,t){t.d(l,{w:function(){return s}}),t(706056);var i=t(101199),n=t(734123),o=t(156627),a=t(414061),r=t(910170),d=t(16530);let s=e=>{let{player:l,isActive:t,abtestData:s,awemeInfo:u={},isInnerFeed:c}=e,{awemeId:v,isAds:f}=u,m=(0,i.useCallback)(()=>{var e,t,i,n,o,a,r,c,v,f,m,p,h,g;let _=(0,d.RH)({abtestData:s,player:l,awemeInfo:u});if(l.claritySr=_,!_){l.cancelSR=1,null===(t=window.TTCommon)||void 0===t||null===(e=t.executeWithElement)||void 0===e||e.call(t,l.video,"updateSrState",0);return}if((null==l?void 0:l.video)&&window.TTCommon&&_){let e=(null==s?void 0:null===(i=s.SR)||void 0===i?void 0:i.videoGpuSrSupportType)||"255",t=null==l?void 0:null===(n=l.curDefinition)||void 0===n?void 0:n.srSharpnessStrength;if((null==s?void 0:null===(o=s.dxsr)||void 0===o?void 0:o.enable)&&t){let e=null==s?void 0:null===(f=s.dxsr)||void 0===f?void 0:null===(v=f.definition)||void 0===v?void 0:v.includes(null==l?void 0:null===(c=l.curDefinition)||void 0===c?void 0:c.definition),i=null==s?void 0:null===(p=s.dxsr)||void 0===p?void 0:null===(m=p.sharpness)||void 0===m?void 0:m.includes(t);e&&i&&(null===(g=window.TTCommon)||void 0===g||null===(h=g.executeWithElement)||void 0===h||h.call(g,l.video,"UpdateSrSharpLevel",t))}null===(r=window.TTCommon)||void 0===r||null===(a=r.executeWithElement)||void 0===a||a.call(r,l.video,"updateSrState",e),l.sr=1}},[l,v,s]),p=(0,i.useCallback)(()=>{var e,t,i,n,o,a,r,d,u;if((null==l?void 0:null===(e=l.curDefinition)||void 0===e?void 0:e.qualityType)>9&&!f){if(null==s?void 0:null===(o=s.SR)||void 0===o?void 0:o.improvePictureQuality){m();return}l.cancelSR=1,null===(r=window.TTCommon)||void 0===r||null===(a=r.executeWithElement)||void 0===a||a.call(r,l.video,"updateSrState",0)}else l.cancelSR=1,null===(u=window.TTCommon)||void 0===u||null===(d=u.executeWithElement)||void 0===d||d.call(u,l.video,"updateSrState",0);f&&(null==l?void 0:null===(t=l.curDefinition)||void 0===t?void 0:t.qualityType)>9&&m(),(null==s?void 0:null===(i=s.SR)||void 0===i?void 0:i.enable1080)&&(null==l?void 0:null===(n=l.curDefinition)||void 0===n?void 0:n.definition)===1&&m()},[l,v,s,f,m]);(0,i.useEffect)(()=>{if(t&&window.TTCommon&&l){var e,i;return l.sr=0,l.currentTime>0&&p(),null==l||null===(e=l.on)||void 0===e||e.call(l,r.C.DefinitionChangeOnlyForSr,p),null==l||null===(i=l.on)||void 0===i||i.call(l,o.W.DEFINITION_CHANGE_HINT,p),l.on("ABR_AUTO_DESC_CHANGE",p),()=>{var e,t;null==l||null===(e=l.off)||void 0===e||e.call(l,o.W.DEFINITION_CHANGE_HINT,p),null==l||null===(t=l.off)||void 0===t||t.call(l,r.C.DefinitionChangeOnlyForSr,p),l.off("ABR_AUTO_DESC_CHANGE",p)}}},[l,v,t,s,p]),(0,i.useEffect)(()=>{if(window.TTCommon&&l){var e,t;let i=e=>{"firstFrame"===e.eventType&&p()};return null==l||null===(e=l.on)||void 0===e||e.call(l,n.Events.XGLOG,i),null==l||null===(t=l.once)||void 0===t||t.call(l,n.Events.TIME_UPDATE,p),()=>{var e,t;null==l||null===(e=l.off)||void 0===e||e.call(l,n.Events.XGLOG,i),null==l||null===(t=l.off)||void 0===t||t.call(l,n.Events.TIME_UPDATE,p)}}},[l,v,p]),(0,i.useEffect)(()=>{if(!l||!t||c||!(null==s?void 0:s.authorCardSr))return;let e=a.listen(a.EVENT.InnerFeedReady,()=>{var e;(null==l?void 0:null===(e=l.video)||void 0===e?void 0:e.style)&&(l.video.style.display="none")}),i=a.listen(a.EVENT.InnerFeedExit,()=>{var e;(null==l?void 0:null===(e=l.video)||void 0===e?void 0:e.style)&&(l.video.style.display="block")});return()=>{e(),i()}},[l,t,v,c,null==s?void 0:s.authorCardSr])}},797618:function(e,l,t){t.d(l,{e:function(){return N}});var i=t("480333"),n=t("629686");t("490629"),t("932651");var o=t("320165"),a=t("101199"),r=t("734123"),d=t("502615"),s=t("358986"),u=t("939165"),c=t("614170"),v=t("970473"),f=t("759894"),m=t("414061"),p=t("549416"),h=t("889429"),g=t("402748");let _=(0,a.forwardRef)((e,l)=>(0,o.jsx)("svg",(0,g._)((0,n._)({width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,o.jsx)("path",{d:"M18.451 6.296c.272 0 .536.029.791.084-.022.069-.042.136-.066.198-.016.04-.032.074-.045.102-.029.013-.063.032-.107.05-.09.035-.19.068-.293.097l-.31.08a2.28 2.28 0 0 0-1.404.952l-.102.163v.001h-5.947a2.015 2.015 0 0 0-2.016 2.015v10.59c0 1.114.903 2.017 2.016 2.017h4.55l.34-1.59c.115-.518.376-.991.751-1.366l2.867-2.81c.293-.298.628-.546.99-.74v-2.253a2.347 2.347 0 0 0 1.727.231v1.553l.074-.003a2.972 2.972 0 0 1 2.125.853 3.534 3.534 0 0 1-.36 4.926l-2.866 2.875a2.777 2.777 0 0 1-1.362.753l-3.717.798h-.207a.828.828 0 0 1-.818-1.093l.087-.408h-4.181a3.742 3.742 0 0 1-3.742-3.742v-10.59a3.742 3.742 0 0 1 3.742-3.743h7.483zm3.816 10.934a2.387 2.387 0 0 0-1.636.743l-2.865 2.885c-.153.149-.26.338-.306.546l-.534 2.545 2.54-.546a1.09 1.09 0 0 0 .545-.305l2.866-2.875c.796-.64.954-1.792.36-2.622a1.34 1.34 0 0 0-.97-.371zm-6.912-3.131a.864.864 0 0 1 0 1.727H11.77a.864.864 0 0 1 0-1.727h3.585zm1.15-3.109a.864.864 0 0 1 0 1.728h-4.734a.864.864 0 0 1 0-1.728h4.735zM21.62 6c.075 0 .165.016.25.063.09.05.19.147.223.297.058.261.145.586.268.893.126.313.277.578.447.746.168.167.432.315.744.439.306.12.629.206.888.263.149.033.245.131.296.22a.508.508 0 0 1 0 .5.453.453 0 0 1-.296.223 5.955 5.955 0 0 0-.887.265c-.312.124-.577.273-.745.44-.17.17-.32.435-.447.749a5.951 5.951 0 0 0-.27.892.453.453 0 0 1-.22.296.509.509 0 0 1-.25.064.511.511 0 0 1-.252-.065.453.453 0 0 1-.22-.297 5.927 5.927 0 0 0-.265-.891c-.125-.314-.274-.58-.443-.748-.167-.167-.43-.315-.74-.439a5.91 5.91 0 0 0-.889-.265.453.453 0 0 1-.297-.223.511.511 0 0 1 0-.5c.051-.089.147-.189.299-.222a5.9 5.9 0 0 0 .887-.263c.31-.123.573-.271.74-.438.169-.168.319-.432.443-.745.122-.307.207-.631.265-.892a.454.454 0 0 1 .22-.298A.513.513 0 0 1 21.62 6z",fill:"#fff",fillOpacity:".9"})})));var w=t("198502"),y=t("913285"),x=t("176449"),C=t("44599"),E=t("63601"),S=t("310383");let I=()=>(0,o.jsx)("div",{className:w.default.xgTips,children:"AI 笔记"}),b=e=>{let{isAiNoteIcon:l,aiNoteProps:t,awemeInfo:i}=e,n=(0,a.useCallback)(()=>{if(m.emit(m.EVENT.toggleAiCard,{tab:c.X.Note,awemeId:i.awemeId,aiNoteEnterMethod:"bottom_bar"}),!t.isShow){var e;v.K.sendLog("aiNoteButtonEnter",{enter_method:"bottom_bar",enter_from:(0,f.mo)(),group_id:i.awemeId,author_id:null===(e=i.authorInfo)||void 0===e?void 0:e.uid,player_display_mode:(0,f.Ok)()})}},[t,i]);return(0,a.useEffect)(()=>{var e;v.K.sendLog("aiNoteButtonShow",{enter_method:"bottom_bar",enter_from:(0,f.mo)(),group_id:i.awemeId,author_id:null===(e=i.authorInfo)||void 0===e?void 0:e.uid,player_display_mode:(0,f.Ok)()}),m.emit(m.EVENT.controlAdapt)},[]),(0,o.jsx)("div",{children:l?(0,o.jsxs)("div",{className:w.default.icon,children:[(0,o.jsx)(x.Z,{src:_,width:32,height:32,viewBox:"0 0 32 32",onClick:n}),(0,o.jsx)(I,{})]}):(0,o.jsxs)("div",{className:w.default.bar,onClick:n,children:[(0,o.jsx)(x.Z,{src:_,width:32,height:32,viewBox:"0 0 32 32"}),(0,o.jsx)("span",{className:w.default.text,children:"AI 笔记"})]})})},T=e=>{let{isActive:l,awemeInfo:t,isAiNoteIcon:c,aiNoteProps:v}=e,f=(0,E.g)(),m=(0,E.n)(),p=(0,a.useMemo)(()=>{let e=f?d.di:r.Plugin;return class extends e{static get pluginName(){return"AiNotePlugin"}static get defaultConfig(){return{position:s.POSITIONS.CONTROLS_LEFT,index:8}}destroy(){(0,C.v)(this)}renderRoot(){(0,C.s)(this,(0,o.jsx)(b,(0,n._)({},this.config)))}updateConfig(e){this.config=e,this.renderRoot()}render(){return`<div data-state="normal" class="${w.default["ai-note-container"]} ai-note-container" data-e2e='ai-note-container' style=""></div>`}constructor(...e){super(...e),(0,i._)(this,"config",void 0)}}},[f]);return(0,u.o)(()=>{if(m&&l){var t;let l=(0,n._)({},e);return f&&Object.assign(l,{position:d.PZ.CONTROL_LEFT,index:8}),null===(t=m.registerPlugin)||void 0===t||t.call(m,p,l),()=>{var e,l;(null==m?void 0:null===(e=m.getPlugin)||void 0===e?void 0:e.call(m,"AiNotePlugin"))&&(null==m||null===(l=m.unRegisterPlugin)||void 0===l||l.call(m,"AiNotePlugin",!0))}}},[m,l,t,p]),(0,a.useEffect)(()=>{if(m&&l){var t;let l=null==m?void 0:null===(t=m.getPlugin)||void 0===t?void 0:t.call(m,"AiNotePlugin");if(l){let t=(0,n._)({},e);f&&Object.assign(t,{position:d.PZ.CONTROL_LEFT,index:2.95}),l.updateConfig(t)}}},[c,v]),null},N=e=>{var l,t,i;let a=(0,S.N)();return!((null==e?void 0:null===(t=e.awemeInfo)||void 0===t?void 0:null===(l=t.douyinPcVideoExtra)||void 0===l?void 0:l.aiNoteV2)!==1&&!(0,p.R)()||!(null==e?void 0:null===(i=e.aiNoteProps)||void 0===i?void 0:i.useable)||(0,h.km)(78))?(0,o.jsx)(y.k,{componentName:"AiNote",Slardar:a,children:(0,o.jsx)(T,(0,n._)({},e))}):null}},103978:function(e,l,t){t.d(l,{o:function(){return s}});var i=t(320165),n=t(101199),o=t(855357),a=t(901393),r=t(63601),d=t(191450);let s=e=>{let{isActive:l,awemeInfo:t}=e,s=(0,n.useRef)(!1);s.current=(null==t?void 0:t.awemeType)===o.e.Article;let u=(0,r.n)(),c=(0,n.useCallback)(e=>{e.stopPropagation();let l=null==t?void 0:t.awemeId;l&&window.open(`/article/${l}`)},[t]),v=(0,n.useCallback)(e=>{e.stopPropagation()},[]);return((0,n.useEffect)(()=>{if(s.current&&l&&u){let e=()=>{s.current&&u.pause()};return e(),u.on("play",e),()=>{u.off("play",e)}}},[s.current,l,u]),s.current)?(0,i.jsxs)("div",{className:d.default.articleMode,onClick:v,onMouseDown:e=>e.stopPropagation(),children:[(0,i.jsx)("img",{src:"https://p-pc-weboff.byteimg.com/tos-cn-i-9r5gewecjs/img_empty_teenager.svg",alt:"icon",className:d.default.icon}),(0,i.jsx)("div",{className:d.default.title,children:"当前内容暂时无法播放"}),(0,i.jsx)("div",{className:d.default.desc,children:"需跳转查看完整内容"}),(0,i.jsx)(a.zx,{className:d.default.viewBtn,type:"primary",onClick:c,children:"去查看"})]}):null}},140268:function(e,l,t){t.d(l,{WC:function(){return F}});var i=t("480333"),n=t("629686"),o=t("402748");t("490629");var a=t("320165"),r=t("101199"),d=t("469935"),s=t.n(d),u=t("734123"),c=t("358986"),v=t("280647"),f=t("356336"),m=t("638052"),p=t("966473"),h=t("939165"),g=t("708003"),_=t("414061"),w=t("759894");let y=e=>{let l=Math.floor(Number(e));if(isNaN(l)||l<0)return"";let t=Math.floor(l/60);return[String(t).padStart(2,"0"),String(l%60).padStart(2,"0")].join(":")};var x=t("209651");let C=(0,r.forwardRef)((e,l)=>(0,a.jsx)("svg",(0,o._)((0,n._)({width:12,height:12,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,a.jsx)("path",{d:"M4 1l5 5-5 5",stroke:"#fff",strokeOpacity:".9",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}))),E=(0,r.forwardRef)((e,l)=>(0,a.jsx)("svg",(0,o._)((0,n._)({width:31,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.54 8a1.04 1.04 0 1 0 0 2.08h13.92a1.04 1.04 0 1 0 0-2.08H8.54zm3.425 13.89a.448.448 0 0 0 0-.772l-3.47-2.043a.448.448 0 0 0-.675.386v4.086c0 .346.377.561.676.386l3.468-2.043zM7.5 15.242c0-.575.466-1.04 1.04-1.04h13.92a1.04 1.04 0 1 1 0 2.08H8.54a1.04 1.04 0 0 1-1.04-1.04zm7.44 5.16a1.04 1.04 0 0 0 0 2.08h7.52a1.04 1.04 0 1 0 0-2.08h-7.52z",fill:"#fff"})}))),S=(0,r.forwardRef)((e,l)=>(0,a.jsx)("svg",(0,o._)((0,n._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.113 1.279c-.31.016-.598.167-.786.414-.216.284-.216.803-.216 1.842v8.296c0 1.063 0 1.594.22 1.88.192.248.485.398.798.41.36.012.793-.297 1.656-.916l5.926-4.245c.66-.473.991-.71 1.105-1 .1-.256.097-.54-.009-.792-.12-.289-.455-.518-1.126-.977L6.755 2.14c-.857-.587-1.286-.88-1.642-.861zm.831 2.527v7.746l5.533-3.963-5.533-3.783z",fill:"#fff",fillOpacity:".5"})}))),I=(0,r.forwardRef)((e,l)=>(0,a.jsx)("svg",(0,o._)((0,n._)({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,a.jsx)("path",{d:"M3.944 1.198a.5.5 0 0 1 .5.5v12.604a.5.5 0 0 1-.5.5h-.777a.5.5 0 0 1-.5-.5V1.698a.5.5 0 0 1 .5-.5h.777zM8.39 3.466a.5.5 0 0 1 .5.5v8.07a.5.5 0 0 1-.5.5H7.61a.5.5 0 0 1-.5-.5v-8.07a.5.5 0 0 1 .5-.5h.779zm4.443 2.266a.5.5 0 0 1 .5.5v3.535a.5.5 0 0 1-.5.5h-.777a.5.5 0 0 1-.5-.5V6.232a.5.5 0 0 1 .5-.5h.777z",fill:"#fff",fillOpacity:".5"})})));var b=t("63601"),T=t("310383"),N=t("44599"),k=t("913285"),L=t("176449");function j(){return(0,a.jsx)("div",{className:s()(x.default.xgTips,"xgTips"),children:(0,a.jsx)("span",{children:"章节要点"})})}function P(e){let{player:l,visible:t,chapterList:i,chapterProgress:n,handleChapterPopoverItemClick:o}=e,d=(0,r.useRef)(),[u,c]=(0,r.useState)({visibility:"hidden"});return(0,r.useEffect)(()=>{var e;if(!t&&c({visibility:"hidden"}),!d.current||!(null==l?void 0:l.root)||!t)return;let i=d.current.getBoundingClientRect(),n=(null==l?void 0:null===(e=l.root)||void 0===e?void 0:e.getBoundingClientRect()).left-i.left+2;n>0?c({visibility:t?"visible":"hidden",transform:`translateX(calc(-50% + ${n}px))`}):c({visibility:t?"visible":"hidden"})},[l,t]),(0,a.jsx)("div",{className:x.default.chapterListPopover,style:u,onWheel:e=>e.stopPropagation(),ref:d,children:(0,a.jsx)("div",{className:x.default.chapterListContent,children:i.map((e,l)=>{let t=l===n;return(0,a.jsxs)("div",{className:s()(x.default.simpleChapterItem,{[x.default.active]:t}),onClick:()=>o(e,l),children:[t?(0,a.jsx)(I,{className:x.default.playStatusIcon}):(0,a.jsx)(S,{className:x.default.playStatusIcon}),(0,a.jsx)("span",{className:x.default.simpleChapterTitle,children:e.desc})]},e.timestamp)})})})}t("788210");let R=e=>{var l,t,i,d,u;let{awemeInfo:c,isChapterIcon:v,chapterProps:h,chapterMaxWidth:S,player:I,userInfo:b,abtestData:T}=e,N=null!==(d=null==c?void 0:null===(l=c.chapterInfo)||void 0===l?void 0:l.list)&&void 0!==d?d:[],{chapterProgress:k,triggerChapterSliderShow:R}=h,M=(null==c?void 0:null===(t=c.chapterInfo)||void 0===t?void 0:t.isPoint)?1:0,A=c.authorInfo.uid===(null==b?void 0:null===(i=b.info)||void 0===i?void 0:i.uid),[F,O]=(0,r.useState)(!1),B=(0,r.useRef)(null),D=null!==(u=null==T?void 0:T.chapterToggleType)&&void 0!==u?u:f.ChapterToggleType.V0,W=D===f.ChapterToggleType.V1,H=D===f.ChapterToggleType.V2,V=e=>{g.F.info(e,I.innerContainer)},U=e=>{if(e&&(null==I?void 0:I.seek)){let l=e.timestamp/1e3;I.seek(l);let t=y(l);V(`已定位至 ${t}`)}else!e&&V("已定位至最后章节")},z=()=>"number"==typeof k&&-1!==k?k+1:null,$=(e,l)=>{U(e),O(!1),m.logInstance.sendLog("chapterTagHoverClick",(0,o._)((0,n._)({},K()),{chapter_index_click:l+1}))};(0,r.useEffect)(()=>{_.emit(_.EVENT.controlAdapt)},[k]);let G=()=>{H&&(B.current&&clearTimeout(B.current),O(!0),m.logInstance.sendLog("chapterTagHoverShow",K()))},Z=()=>{H&&(B.current=setTimeout(()=>{O(!1)},200))};(0,r.useEffect)(()=>(_.emit(_.EVENT.controlAdapt),()=>{B.current&&clearTimeout(B.current)}),[]);let K=()=>{var e;return{enter_from:(0,w.mo)(),enter_from_merge:(0,w.vM)(),group_id:null==c?void 0:c.awemeId,author_id:null==c?void 0:null===(e=c.authorInfo)||void 0===e?void 0:e.uid,chapter_sequence_num_impr:z(),is_knowledge_point:M,is_author:A?1:0,chapter_num:N.length,player_display_mode:(0,w.Ok)()}},X=(0,p.Y)(()=>{m.logInstance.sendLog("chapterTagShow",(0,o._)((0,n._)({},K()),{is_chapter_next:W?1:0}))}),Y=e=>{m.logInstance.sendLog("chapterTagClick",(0,o._)((0,n._)({},K()),{click_area:e,chapter_index_click:z()})),R()};if((0,r.useEffect)(()=>{var e,l;v?null===(e=I.root.querySelector(".chapterContainer"))||void 0===e||e.classList.add(x.default.displayIcon):null===(l=I.root.querySelector(".chapterContainer"))||void 0===l||l.classList.remove(x.default.displayIcon)},[v,I]),0===N.length)return null;let q=N[k],Q=k+1,J=W?`第${Q}章`:`章节要点${Q}`;return(0,a.jsx)(a.Fragment,{children:v?(0,a.jsxs)("div",{className:x.default.chapterIcon,onMouseEnter:G,onMouseLeave:Z,ref:X,children:[(0,a.jsx)(L.Z,{src:E,width:32,height:32,viewBox:"0 0 32 32",onClick:()=>Y("chapter_icon")}),H?(0,a.jsx)(P,{player:I,visible:F,chapterList:N,chapterProgress:k,handleChapterPopoverItemClick:$}):(0,a.jsx)(j,{})]}):(0,a.jsxs)("div",{className:x.default.chapterBar,style:S?{maxWidth:`${S}px`}:void 0,ref:X,children:[(0,a.jsxs)("div",{className:x.default.chapterTitleContainer,onMouseEnter:G,onMouseLeave:Z,children:[(0,a.jsx)("div",{className:x.default.chapterTitle,onClick:()=>Y("chapter_title"),children:-1===k?`章节要点:共${N.length}个`:`${J}${null==q?void 0:q.desc}`}),H&&(0,a.jsx)(P,{visible:F,chapterList:N,chapterProgress:k,handleChapterPopoverItemClick:$})]}),W?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:s()(x.default.nextChapterDivider)}),(0,a.jsxs)("div",{className:x.default.chapterNext,onClick:()=>{let e=k+1;U(e<N.length?N[e]:void 0),m.logInstance.sendLog("chapterTagClick",(0,o._)((0,n._)({},K()),{click_area:"chapter_next",chapter_index_click:z()}))},children:[(0,a.jsx)("span",{className:x.default.chapterNextText,children:"下一章"}),(0,a.jsx)(L.Z,{className:x.default.arrowIcon,src:C,width:12,height:12,viewBox:"0 0 12 12"})]})]}):(0,a.jsx)(L.Z,{className:x.default.arrowIcon,src:C,width:12,height:12,viewBox:"0 0 12 12"})]})})};class M extends u.Plugin{static get pluginName(){return"ChapterPlugin"}static get defaultConfig(){return{position:c.POSITIONS.CONTROLS_LEFT,index:4,className:"xgplayer-chapter"}}afterCreate(){}destroy(){(0,N.v)(this)}renderRoot(){(0,N.s)(this,(0,a.jsx)(R,(0,n._)({},this.config)))}updateConfig(e){this.config=e,this.renderRoot()}render(){return`<div data-state="normal" class="${x.default.chapterContainer} chapterContainer" data-e2e='chapter-container' style=""></div>`}constructor(...e){super(...e),(0,i._)(this,"config",void 0)}}let A=e=>{let{isActive:l,awemeInfo:t,chapterProps:i,isChapterIcon:o,chapterMaxWidth:a,userInfo:r,abtestData:d}=e,s=(0,b.n)();return(0,h.o)(()=>{var e;if(s&&l&&(null==t?void 0:null===(e=t.chapterInfo)||void 0===e?void 0:e.status)){let{defaultConfig:e}=M,l=(0,n._)({player:s,awemeInfo:t,chapterProps:i,isChapterIcon:o,chapterMaxWidth:a,userInfo:r,abtestData:d},e);return s.registerPlugin(M,l),()=>{var e,l;(null==s?void 0:null===(e=s.getPlugin)||void 0===e?void 0:e.call(s,"ChapterPlugin"))&&(null==s||null===(l=s.unRegisterPlugin)||void 0===l||l.call(s,"ChapterPlugin",!0))}}},[s,l,t,r]),(0,v.Z)(()=>{var e;if(s&&(null==t?void 0:null===(e=t.chapterInfo)||void 0===e?void 0:e.status)){let e=s.getPlugin("ChapterPlugin");e&&e.updateConfig({player:s,awemeInfo:t,chapterProps:i,isChapterIcon:o,chapterMaxWidth:a,abtestData:d})}},[o,a,i]),null},F=e=>{let l=(0,T.N)();return(0,a.jsx)(k.k,{componentName:"Chapter",Slardar:l,children:(0,a.jsx)(A,(0,n._)({},e))})}},730430:function(e,l,t){t.d(l,{I:function(){return _}});var i=t("629686"),n=t("402748");t("490629");var o=t("320165"),a=t("101199"),r=t("911159"),d=t("403686"),s=t("771410"),u=t("759894"),c=t("226846"),v={LinearHidden:1,1:"LinearHidden",LinearLifted:2,2:"LinearLifted",SolidHidden:3,3:"SolidHidden",SolidLifted:4,4:"SolidLifted"},f=t("194523"),m=t("63601"),p=t("310383"),h=t("913285");let g=e=>{let{awemeInfo:l,onShowChange:t,abtestData:p}=e,h=(0,m.n)(),[g,_]=(0,a.useState)(!1),w=(0,a.useRef)(!1),y=(0,a.useRef)(!1),[x,C]=(0,a.useState)(0),[E,S]=(0,a.useState)([]);(0,a.useEffect)(()=>{if(null==l?void 0:l.awemeId){var e;let t=null===(e=r.w_.getState().highlightBarData)||void 0===e?void 0:e[null==l?void 0:l.awemeId];t&&0!==t.length?(C(Math.max(...t)),S(t)):(0,d.Iv)({awemeId:l.awemeId,highlightVersion:"v1"}).then(e=>{(null==e?void 0:e.statusCode)===0&&(null==e?void 0:e.highlightData)&&e.highlightData.length>0&&(r.w_.setState(t=>({highlightBarData:(0,n._)((0,i._)({},t.highlightBarData||{}),{[l.awemeId]:e.highlightData})})),C(Math.max(...e.highlightData)),S(e.highlightData))}).catch(e=>{})}},[null==l?void 0:l.awemeId,S,C]);let I=(null==p?void 0:p.highlightBarStyle)||v.LinearHidden,b=I===v.SolidHidden||I===v.SolidLifted,T=I===v.LinearLifted||I===v.SolidLifted;(0,a.useEffect)(()=>{if(!h||!E||0===E.length)return;let e=h.getPlugin("progress"),i=()=>{let e=w.current||y.current;_(i=>{if(i!==e){if(e){var n;h.root.classList.add(f.default["has-highlight-bar-show"]),T&&h.root.classList.add(f.default["has-highlight-bar-lifted"]),null==t||t(!0),s.Z.report("video_highlight_bar_show",{enter_from:(0,u.mo)(),enter_from_merge:(0,u.vM)(),video_time:(0,c.n)(null==l?void 0:null===(n=l.video)||void 0===n?void 0:n.duration),group_id:null==l?void 0:l.awemeId})}else h.root.classList.remove(f.default["has-highlight-bar-show"]),h.root.classList.remove(f.default["has-highlight-bar-lifted"]),null==t||t(!1)}return e})},n=()=>{w.current=!0,i()},o=()=>{w.current=!1,i()},a=()=>{y.current=!0,i()},r=()=>{y.current=!1,i()};return null==e||e.addCallBack("mouseenter",n),null==e||e.addCallBack("mouseleave",o),null==e||e.addCallBack("dragstart",a),null==e||e.addCallBack("dragend",r),()=>{null==e||e.removeCallBack("mouseenter",n),null==e||e.removeCallBack("mouseleave",o),null==e||e.removeCallBack("dragstart",a),null==e||e.removeCallBack("dragend",r),(null==h?void 0:h.root)&&(h.root.classList.remove(f.default["has-highlight-bar-show"]),h.root.classList.remove(f.default["has-highlight-bar-lifted"])),w.current=!1,y.current=!1}},[null==l?void 0:l.awemeId,h,t,E,T]);let{fillPathD:N,linePathD:k}=(0,a.useMemo)(()=>{if(!E||0===E.length)return{fillPathD:"",linePathD:""};let e=1e3/(E.length-1),l=40-E[0]/x*40,t=`M 0 ${l}`,i=`M 0 40 L 0 ${l}`;for(let l=0;l<E.length-1;l++){let n=l*e,o=40-E[l]/x*40,a=(l+1)*e,r=40-E[l+1]/x*40,d=n+(a-n)*.5,s=a-(a-n)*.5,u=` C ${d} ${o}, ${s} ${r}, ${a} ${r}`;t+=u,i+=u}return{fillPathD:i+=" L 1000 40 Z",linePathD:t}},[null==l?void 0:l.awemeId,E,x]);if(!N)return null;let L=`${f.default["highlight-bar-plugin"]} ${b?f.default.solid:f.default.linear} ${T?f.default["caption-lifted"]:""} ${g?f.default.visible:""}`;return(0,o.jsxs)("div",{className:L,children:[(0,o.jsxs)("svg",{className:f.default["svg-content"],viewBox:"0 0 1000 40",preserveAspectRatio:"none",children:[(0,o.jsx)("defs",{children:(0,o.jsxs)("linearGradient",{id:"highlight-bar-linear-gradient",x1:"0",y1:"0",x2:"0",y2:"40",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{offset:"0",stopColor:"#FFFFFF",stopOpacity:"0.9"}),(0,o.jsx)("stop",{offset:"0.6",stopColor:"#FFFFFF",stopOpacity:"0.2"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#FFFFFF",stopOpacity:"0"})]})}),(0,o.jsx)("path",{d:N})]}),!b&&(0,o.jsx)("svg",{className:f.default["svg-content-line"],viewBox:"0 0 1000 40",preserveAspectRatio:"none",children:(0,o.jsx)("path",{d:k,stroke:"white",strokeWidth:"1.5",fill:"none"})})]})},_=e=>{let l=(0,p.N)();return(0,o.jsx)(h.k,{componentName:"HighlightBar",Slardar:l,children:(0,o.jsx)(g,(0,i._)({},e))})}},581841:function(e,l,t){t.r(l),t.d(l,{MiniWinMask:function(){return G},MiniWinMaskInner:function(){return $}});var i=t("629686"),n=t("402748"),o=t("811603");t("490629"),t("706056");var a=t("320165"),r=t("101199"),d=t("469935"),s=t.n(d),u=t("734123"),c=t("618759"),v=t("335948"),f=t("795653"),m=t("759894"),p=t("499059"),h=t("72430"),g=t("386325"),_=t("290913"),w=t("272442"),y=t("624508"),x=new y.h({pauseVideo:{eventName:"pause_video",params:{enter_from:"",mute_remind:"none",click_method:"click",is_small_window:"0",player_display_mode:"",group_id:""}},smallWindowLoginNotify:{eventName:"small_window_login_notify",params:{enter_from:"",enter_method:""}}}),C=t("48795"),E=t("915821"),S=t("103680"),I=t("414061"),b=t("621123"),T=t("42424"),N=t("878726"),k=t("747570"),L=t("103239"),j=t("764840"),P=t("163385"),R=t("403251"),M=t("540129"),A=new y.h({smallWindowOps:{eventName:"small_window_ops",params:{action:"",enter_from:"",group_id:"",player_display_mode:""}}}),F=t("575462"),O=t("63601"),B=t("316213");let D=r.memo(e=>{let{awemeInfo:l,className:t,isActive:i,abtestData:n,mouseHandler:o,electronWarpRef:d}=e,h=(0,c.FJ)().awemePcClient,[g,_]=(0,r.useState)(p.Le.getConfig(p.gI.IsClientTopMode)),[w,y]=(0,r.useState)(p.Le.getConfig(p.gI.IsMiniWinHideMode)),x=(0,r.useRef)(null),D=(0,r.useRef)(null),W=(0,r.useRef)(null),H=(0,c.DT)(),V=!(0,f.dz)()&&(0,E.y)(h,">=","3.7.1"),U=(0,f.dz)()&&(0,E.y)(h,">=","3.7.1"),z=!(0,f.O)()&&(V||U)&&(0,E.y)(h,">=","3.7.0"),$=(0,v.x)(),G=(0,O.n)(),Z=(0,r.useCallback)(()=>{S.invoke("changeMiniWindowHideMode",{data:!1}),y(!1),p.Le.setConfig(p.gI.IsMiniWinHideMode,!1)},[]),K=r.useCallback(e=>{Z(),S.invoke("WINDOW_MIN"),e.stopPropagation(),A.sendLog("smallWindowOps",{action:"minimize",enter_from:(0,m.mo)(),group_id:null==l?void 0:l.awemeId,player_display_mode:(0,m.Ok)()}),null==G||G.emit(u.Events.USER_ACTION,{action:"click_window_minimize"})},[G,null==l?void 0:l.awemeId]),X=r.useCallback(e=>{I.emit(I.EVENT.changeMinWindows,{event:"close",isMiniWin:!1,clickMethod:"click_bar"}),e.stopPropagation()},[]),Y=r.useCallback(e=>{S.invoke("SET_ALWAYS_ON_TOP",{data:!g}),_(e=>(p.Le.setConfig(p.gI.IsClientTopMode,!e),!e)),e.stopPropagation(),null==o||o(),A.sendLog("smallWindowOps",{action:g?"cancel_pin":"pin",enter_from:(0,m.mo)(),group_id:null==l?void 0:l.awemeId,player_display_mode:(0,m.Ok)()}),null==G||G.emit(u.Events.USER_ACTION,{action:g?"click_window_cancel_pin":"click_window_pin"})},[g,G,null==l?void 0:l.awemeId]),q=(0,r.useCallback)(e=>{S.invoke("changeMiniWindowHideMode",{data:!w}),y(!w),p.Le.setConfig(p.gI.IsMiniWinHideMode,!w),e.stopPropagation(),A.sendLog("smallWindowOps",{action:w?"cancel_invisible":"invisible",enter_from:(0,m.mo)(),group_id:null==l?void 0:l.awemeId,player_display_mode:(0,m.Ok)()}),null==G||G.emit(u.Events.USER_ACTION,{action:w?"click_window_cancel_invisible":"click_window_invisible"})},[w,null==l?void 0:l.awemeId]);(0,r.useEffect)(()=>{setTimeout(()=>{S.invoke("IS_ALWAYS_ON_TOP").then(e=>{let{data:l}=e;_(l)}),S.invoke("isMiniWindowHideMode").then(e=>{y(null==e?void 0:e.data)})},100)},[i]);let Q=(0,b.N)();return(0,a.jsxs)("div",{className:s()(F.default.windowBar,"miniWinToolBar",t),children:[(0,a.jsx)("div",{ref:d,className:s()(F.default.electronWarp)}),(0,a.jsxs)("div",{className:F.default.miniWindowBtn,children:[z&&!Q?(0,a.jsx)(C.Tooltip,{content:w?"已开启「隐身」,点击关闭":"已关闭「隐身」,点击开启",position:"bottom",getPopupContainer:()=>W.current||document.body,children:(0,a.jsx)("div",{className:F.default.toolItem,onClick:q,ref:W,children:w?(0,a.jsx)(B.z,{className:F.default.icon,svg:(0,a.jsx)(T.Z,{})}):(0,a.jsx)(B.z,{className:F.default.icon,svg:(0,a.jsx)(N.Z,{})})})}):null,(0,a.jsx)(C.Tooltip,{content:(0,a.jsxs)("div",{className:s()(F.default.tipContent),children:["返回大窗播放",!!(H&&M.SHORTCUT_KEY.pip.badgeText)&&(0,a.jsx)("span",{className:F.default.tag,children:M.SHORTCUT_KEY.pip.badgeText})]}),getPopupContainer:()=>D.current||document.body,position:"bottom",children:(0,a.jsx)("div",{ref:D,className:s()(F.default.toolItem,F.default.autoMargin),onClick:e=>{A.sendLog("smallWindowOps",{action:"zoom",enter_from:(0,m.mo)(),group_id:null==l?void 0:l.awemeId,player_display_mode:(0,m.Ok)()}),null==G||G.emit(u.Events.USER_ACTION,{action:"click_window_zoom"}),X(e)},children:(0,a.jsx)(B.z,{className:s()(F.default.icon,F.default.dropShadow),svg:(0,a.jsx)(k.Z,{})})})}),Q?null:(0,a.jsx)(C.Tooltip,{content:g?"取消置顶":"窗口置顶",position:"bottom",getPopupContainer:()=>x.current||document.body,children:(0,a.jsx)("div",{ref:x,className:F.default.toolItem,onClick:Y,children:g?(0,a.jsx)(B.z,{className:F.default.icon,svg:(0,a.jsx)(L.Z,{})}):(0,a.jsx)(B.z,{className:F.default.icon,svg:(0,a.jsx)(j.Z,{})})})}),Q?null:(0,a.jsx)("div",{className:F.default.toolItem,onClick:K,children:(0,a.jsx)(B.z,{className:F.default.icon,svg:(0,a.jsx)(P.Z,{})})}),(0,a.jsx)("div",{className:F.default.toolItem,onClick:e=>{A.sendLog("smallWindowOps",{action:"close",enter_from:(0,m.mo)(),group_id:null==l?void 0:l.awemeId,player_display_mode:(0,m.Ok)()}),null==G||G.emit(u.Events.USER_ACTION,{action:"click_window_close"}),$?(Z(),S.invoke("WINDOW_CLOSE")):X(e)},children:(0,a.jsx)(B.z,{className:s()(F.default.icon,F.default.dropShadow),svg:(0,a.jsx)(R.Z,{})})})]})]})});var W=t("913285"),H=t("433766"),V=t("191825"),U=t("310383"),z=t("332009");let $=e=>{var{abtestData:l,enablePlaySwitch:t=!0}=e,d=(0,o._)(e,["abtestData","enablePlaySwitch"]);let y=(0,O.n)(),[C,E]=(0,r.useState)(!1),[S,I]=(0,r.useState)(!1),[b,T]=(0,r.useState)(!1),N=(0,r.useRef)(null),k=(0,r.useRef)(null),L=(0,r.useRef)(null),j=(0,c.DT)(),P=(0,v.x)();(0,r.useEffect)(()=>{let e=()=>{Array.from(document.getElementsByClassName("isMiniWindow")).forEach(e=>{var l,t;null===(l=e.classList)||void 0===l||l.add("isMiniWindowHover"),(null==e?void 0:null===(t=e.id)||void 0===t?void 0:t.includes("slideMode"))&&e.setAttribute("data-mini","isMiniWindowHover")})},l=()=>{document.getElementsByClassName("isMiniWindowHover").length<=0&&e()},t=()=>{let e=document.getElementsByClassName("isMiniWindowHover");e.length>0&&Array.from(e).forEach(e=>{var l,t;null===(l=e.classList)||void 0===l||l.remove("isMiniWindowHover"),(null==e?void 0:null===(t=e.id)||void 0===t?void 0:t.includes("slideMode"))&&e.removeAttribute("data-mini")})},i=l=>{(!(0,f.Q5)()||document.hasFocus())&&e()},n=e=>{let l=document.getElementsByClassName("isMiniWindow"),t={minXY:(0,f.Q5)()?0:5,maxX:(0,f.Q5)()?window.innerWidth:window.innerWidth-5,maxY:(0,f.Q5)()?window.innerHeight:window.innerHeight-5};((null==e?void 0:e.clientY)<t.minXY||(null==e?void 0:e.clientY)>=(null==t?void 0:t.maxY)||(null==e?void 0:e.clientX)<t.minXY||(null==e?void 0:e.clientX)>=t.maxX)&&Array.from(l).forEach(e=>{var l,t;null===(l=e.classList)||void 0===l||l.remove("isMiniWindowHover"),(null==e?void 0:null===(t=e.id)||void 0===t?void 0:t.includes("slideMode"))&&e.removeAttribute("data-mini")})};return document.addEventListener("mouseover",i),document.addEventListener("mouseleave",n),window.addEventListener("blur",t),window.addEventListener("focus",l),()=>{document.removeEventListener("mouseover",i),document.removeEventListener("mouseleave",n),window.removeEventListener("blur",t),window.removeEventListener("focus",l)}},[]);let R=(0,r.useCallback)(()=>{x.sendLog("pauseVideo",{mute_remind:"none",enter_from:(0,m.mo)(),is_small_window:"1",click_method:"click",player_display_mode:(0,m.Ok)(),group_id:(null==d?void 0:d.awemeInfo.awemeId)||""})},[]),M=(0,r.useCallback)(()=>{z.s.getPlayerScene(null==y?void 0:y.playerId)===h.lT.Search&&(null==y||y.emitUserAction(u.Events.USER_ACTION,"switch_play_pause",{action:"switch_play_pause",paused:null==y?void 0:y.paused,pluginName:"click"}))},[null==y?void 0:y.playerId]),A=(0,r.useCallback)(()=>{var e,l;M(),(null==y?void 0:y.paused)?null==y||null===(e=y.play)||void 0===e||e.call(y):(null==y||null===(l=y.pause)||void 0===l||l.call(y),R())},[y,R]);return(0,r.useEffect)(()=>{let e=()=>{E(!(null==y?void 0:y.paused))};return y&&(y.on("play",e),y.on("pause",e)),()=>{y&&(y.off("play",e),y.off("pause",e))}},[y,R]),(0,r.useEffect)(()=>{y&&E(!(null==y?void 0:y.paused))},[y]),(0,r.useEffect)(()=>(p.Le.getConfig(p.gI.PlaySwitchMethods),p.Le.setConfig(p.gI.PlaySwitchMethods,""),()=>{k.current&&(clearTimeout(k.current),k.current=null)}),[]),(0,a.jsxs)("div",{ref:L,className:s()(w.default.wrap,{[w.default.newWrap]:P}),onMouseLeave:e=>{(null==e?void 0:e.target)!==N.current&&I(!1)},children:[(0,a.jsxs)("div",{className:s()(w.default.fullbox),onMouseOver:e=>{(null==e?void 0:e.target)!==N.current&&I(!0)},onMouseLeave:e=>{!j&&(null==e?void 0:e.target)!==N.current&&I(!1)},onClick:A,children:[C?(0,a.jsx)(B.z,{svg:(0,a.jsx)(g.Z,{}),className:s()(w.default.svg,{[w.default.hide]:P||b||!S})}):(0,a.jsx)(B.z,{svg:(0,a.jsx)(_.Z,{}),className:s()(w.default.svg,{[w.default.hide]:!P&&(b||!S)})}),(0,a.jsx)(D,{awemeInfo:null==d?void 0:d.awemeInfo,className:s()({[w.default.hide]:!P&&(b||!S),[w.default.miniWindowOptimize]:P}),abtestData:l,electronWarpRef:N}),P&&(0,a.jsx)(H.N,{awemeInfo:null==d?void 0:d.awemeInfo,hitMiniWindowOptimize:P})]}),(0,a.jsx)(V.I,(0,n._)((0,i._)({},d),{playSwitchCb:()=>p.Le.setConfig(p.gI.PlaySwitchMethods,"click_button"),className:s()(w.default.playSwitchContainer,{[w.default.hide]:!t||!P&&(b||!S),[w.default.miniWindowOptimize]:P})}))]})},G=e=>{let l=(0,U.N)();return(0,a.jsx)(W.k,{componentName:"MiniWinMask",Slardar:l,children:(0,a.jsx)($,(0,i._)({},e))})}},14105:function(e,l,t){t.d(l,{U:function(){return m}});var i=t(629686),n=t(320165);t(101199);var o=t(469935),a=t.n(o),r=t(426112),d=t(913285),s=t(81683),u=t(116553),c=t(310383),v=t(501305);let f=e=>{var l;let{awemeInfo:t}=e,i=null==t?void 0:t.desc,o=null==t?void 0:null===(l=t.authorInfo)||void 0===l?void 0:l.nickname,d=null==t?void 0:t.mixInfo,c=(0,r.Jt)(t),f=(0,r.Kf)(t);return(0,n.jsxs)("div",{className:a()("miniInfo",v.default.wrap),children:[(0,n.jsx)("div",{className:v.default.nickname,children:(0,n.jsx)(s.Z,{className:v.default.userText,text:`@${o}`})}),(0,n.jsxs)("div",{className:a()(v.default.title,{[v.default.isAd]:c||f}),children:[(0,n.jsx)(s.Z,{className:v.default.text,text:i,isRemoveRowspan:!0,children:(null==d?void 0:d.currentEpisode)&&(0,n.jsxs)("span",{children:["第",null==d?void 0:d.currentEpisode,"集:"]})}),(c||f)&&(0,n.jsx)(u.Vp,{className:a()(v.default.adTag),presetType:"ad",children:"广告"})]})]})},m=e=>{let l=(0,c.N)();return(0,n.jsx)(d.k,{componentName:"MiniWinInfoWeb",Slardar:l,children:(0,n.jsx)(f,(0,i._)({},e))})}},423830:function(e,l,t){t.d(l,{q:function(){return L}});var i=t("629686"),n=t("402748");t("706056");var o=t("320165"),a=t("101199"),r=t("734123"),d=t("85079"),s=t.n(d),u=t("855357"),c=t("263832"),v=t("499059"),f=t("138899"),m=t("509523"),p=t("414061"),h=t("661444"),g=t("265886"),_=t("618759"),w=t("624508"),y=new w.h({addPreloadTask:{eventName:"add_preolad_task",params:{}}}),x=t("137375"),C=t("632887"),E=t("723349"),S=t("241891"),I=t("63601"),b=t("310383"),T=t("913285");let N=[u.e.Normal],k=e=>{let{isActive:l,abtestData:t,awemeInfo:o,isInnerFeed:d,index:u,scene:w,getAwemeInfoList:b}=e||{},T=(0,I.n)(),k=(0,a.useMemo)(()=>{if(!s()(t))return(0,x.hG)({abtestData:t})},[t]),L=(0,a.useCallback)(e=>{var l,a,r,s;let u=e||v.Le.getConfig(v.gI.PreloadList)||[],m=null!==(a=null==k?void 0:k.preloadTime)&&void 0!==a?a:5,p=(null==b?void 0:b(!0))||[],h=window.playerPreloader;if((null==t?void 0:null===(l=t.preloadStartBuffer)||void 0===l?void 0:l.notifyV2)&&(null==u?void 0:u.length)>0){let e=(0,f.$8)(u).filter(e=>!(0,f.Kk)(h,null==e?void 0:e.awemeId)).map((e,l)=>{var o,a,r;let s,v;let f=(0,C.YO)({abtestData:t,awemeInfo:e,isInnerFeed:d}),h=(0,E.QF)({awemeInfo:e,abtestData:t,filter264InMix:!0,enableSr:f}),g=null==h?void 0:null===(o=h.definition)||void 0===o?void 0:o.list;(null==t?void 0:null===(a=t.bitratePlaylist)||void 0===a?void 0:a.enable)&&["modal","recommend","follow","friend"].includes(w)&&(s=(0,S.Um)({awemeInfo:e,awemeInfoList:p,preloadList:u,abtestData:t,isInnerFeed:d,scene:w,fromPreload:!0}),v=(null==t?void 0:null===(r=t.bitratePlaylist)||void 0===r?void 0:r.playlistSelectBitrate)||{});let _=(null==g?void 0:g.find(e=>(null==e?void 0:e.vtype)==="DASH"))?null==t?void 0:t.stepPreloadDashConfig:null==t?void 0:t.stepPreloadConfig;return{order:l,data:(0,n._)((0,i._)({codecType:null==h?void 0:h.codecType,vid:null==e?void 0:e.awemeId,payload:g,preloadTime:m,vtype:null==h?void 0:h.vtype,bizType:(null==e?void 0:e.isAds)?c._6.Ad:c._6.Normal},_),{playlist_info:s,playlist_select_bitrate:v})}});(null==e?void 0:e.length)>0&&(null===(r=h.addPreloadList)||void 0===r||r.call(h,e),y.sendLog("addPreloadTask")),v.Le.setConfig(v.gI.PreloadList,[])}else if((null==u?void 0:u.length)>0&&h){let e=(0,C.YO)({abtestData:t,awemeInfo:o,isInnerFeed:d}),l=u.filter(e=>{var l;return l=e,N.includes(l.awemeType)}).map((l,n)=>{var o,a,r;let s=(0,E.QF)({awemeInfo:l,abtestData:t,filter264InMix:!0,enableSr:e}),v=null==s?void 0:null===(o=s.definition)||void 0===o?void 0:o.list,f={};(null==t?void 0:null===(a=t.bitratePlaylist)||void 0===a?void 0:a.enable)&&["modal","recommend","follow","friend"].includes(w)&&(f={playlist_info:(0,S.Um)({awemeInfo:l,awemeInfoList:p,preloadList:u,abtestData:t,isInnerFeed:d,scene:w,fromPreload:!0}),playlist_select_bitrate:(null==t?void 0:null===(r=t.bitratePlaylist)||void 0===r?void 0:r.playlistSelectBitrate)||{}});let h=(null==v?void 0:v.find(e=>(null==e?void 0:e.vtype)==="DASH"))?null==t?void 0:t.stepPreloadDashConfig:null==t?void 0:t.stepPreloadConfig;return{order:n,data:(0,i._)({codecType:null==s?void 0:s.codecType,vid:null==l?void 0:l.awemeId,payload:v,preloadTime:m,vtype:null==s?void 0:s.vtype,bizType:(null==l?void 0:l.isAds)?c._6.Ad:c._6.Normal},h,f)}});(null==l?void 0:l.length)>0&&(null===(s=h.addPreloadList)||void 0===s||s.call(h,l),y.sendLog("addPreloadTask"))}},[o,t,k]);return(0,a.useEffect)(()=>{var e;if(T&&(null==t?void 0:null===(e=t.preloadStartBuffer)||void 0===e?void 0:e.notifyV2)&&l&&window.playerPreloader){let e=e=>{"firstFrame"===e.eventType&&L()},l=p.listen(p.EVENT.promotePreload,()=>{if(null==T?void 0:T.firstframe)m.p.postTask({task:()=>L()});else{var l;null==T||null===(l=T.on)||void 0===l||l.call(T,r.Events.XGLOG,e)}});return()=>{var t;null==l||l(),null==T||null===(t=T.off)||void 0===t||t.call(T,r.Events.XGLOG,e)}}},[t,T,L,l]),(0,a.useEffect)(()=>{let e=window.playerPreloader;T&&l&&e&&m.p.postTask({task:()=>L()})},[T,l,t]),(0,a.useEffect)(()=>{var e,i,n;let o=window.playerPreloader;if(T&&l&&o&&!(null==t?void 0:null===(e=t.preloadStartBuffer)||void 0===e?void 0:e.bind)){let e;let l=()=>{var t,i,n,a;((null==T?void 0:null===(t=T.plugins)||void 0===t?void 0:t.mp4encryptplayer)||(null==T?void 0:null===(i=T.plugins)||void 0===i?void 0:i.dashplugin))&&(null==o||null===(n=o.attachPlayer)||void 0===n||n.call(o,T),null==T||null===(a=T.off)||void 0===a||a.call(T,r.Events.TIME_UPDATE,l),clearTimeout(e))},a=(0,h.En)()?null===(i=(0,g.P)(t))||void 0===i?void 0:i.preloadAttachDelay:null==t?void 0:t.preloadAttachDelay;return(0,_.DT)()&&navigator.hardwareConcurrency>8&&(a=0),a?e=setTimeout(l,a||3e3):null==T||null===(n=T.once)||void 0===n||n.call(T,r.Events.TIME_UPDATE,l),()=>{var t;null==T||null===(t=T.off)||void 0===t||t.call(T,r.Events.TIME_UPDATE,l),null==o||o.detachPlayer(T),clearTimeout(e)}}},[l,T,o,t]),(0,a.useEffect)(()=>{var e,i,n;if(T&&l&&(null==t?void 0:null===(e=t.preloadStartBuffer)||void 0===e?void 0:e.bind)){let e;let l=()=>{let t=window.playerPreloader;if(t){var i,n;null==t||null===(i=t.attachPlayer)||void 0===i||i.call(t,T),null==T||null===(n=T.off)||void 0===n||n.call(T,r.Events.TIME_UPDATE,l),clearTimeout(e)}},o=(0,h.En)()?null===(i=(0,g.P)(t))||void 0===i?void 0:i.preloadAttachDelay:null==t?void 0:t.preloadAttachDelay;return(0,_.DT)()&&navigator.hardwareConcurrency>8&&(o=0),o?e=setTimeout(l,o||3e3):null==T||null===(n=T.once)||void 0===n||n.call(T,r.Events.TIME_UPDATE,l),()=>{var e,t,i;null==T||null===(e=T.off)||void 0===e||e.call(T,r.Events.TIME_UPDATE,l),null===(i=window)||void 0===i||null===(t=i.playerPreloader)||void 0===t||t.detachPlayer(T)}}},[l,T,o,t]),null},L=e=>{let l=(0,b.N)();return(0,o.jsx)(T.k,{componentName:"Preload",Slardar:l,children:(0,o.jsx)(k,(0,i._)({},e))})}},467359:function(e,l,t){t.d(l,{B:function(){return S}});var i=t("629686"),n=t("402748");t("313036"),t("490629");var o=t("320165"),a=t("101199"),r=t("469935"),d=t.n(r),s=t("966473"),u=t("601034"),c=t("162164"),v=t("182424"),f=t("381927"),m=t("624508"),p=new m.h({videoAnchorShow:{eventName:"video_anchor_show",params:{group_id:"",author_id:"",enter_from:"",type:""}},videoAnchorClick:{eventName:"video_anchor_click",params:{group_id:"",author_id:"",enter_from:"",type:""}},vsVideoShow:{eventName:"vs_video_show",params:{enter_from_merge:"",enter_method:"",previous_page:"",action_type:"",is_vs:1,vs_season_id:"",vs_episode_id:"",room_id:"",vs_ep_group_id:"",vs_episode_stage:"",vs_episode_type:"",vs_episode_sub_type:"",vs_play_status:"",vs_is_portraid_content:""}}}),h=t("234150"),g=t("227831"),_=t("176449"),w=t("913285"),y=t("63601"),x=t("310383");function C(e){let{onClick:l,targetHref:t,className:a,cardHidden:r,style:u,alinkProps:c={},imgSrc:m,description:p,title:w,onShow:y,type:x="",player:C,target:E}=e,S=(0,s.x)(()=>y());return(0,o.jsxs)(h.a,(0,n._)((0,i._)({onClick:e=>{null==l||l(e),null==C||C.pause()},href:t,className:d()(f.default.outerContainer,a,{[f.default.hidden]:r}),style:u,refEl:S},c),{target:E,children:[(0,o.jsxs)("div",{className:f.default.image,children:[(0,o.jsx)(g.Q,{src:m,iconStyle:{width:"100%",height:"100%"}}),"variety"===x&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:f.default.miniTitle,children:"正片"}),(0,o.jsx)(_.Z,{className:f.default.playIcon,src:v.Z,width:32,height:32,viewBox:"0 0 39 39"})]})]}),(0,o.jsxs)("div",{className:f.default.information,children:[(0,o.jsx)("div",{className:f.default.description,children:p}),(0,o.jsx)("div",{className:f.default.title,children:w})]})]}))}function E(e){var l,t,r,d,s,v,f,m,h;let{awemeInfo:g,abtestData:_,isActive:w}=e,x=(0,y.n)(),E=(0,a.useRef)(""),[S,I]=(0,a.useState)(!1),b=(0,a.useCallback)(e=>{I(!e)},[]),{title:T,subtitle:N,roomLink:k,link:L,liveSource:j,type:P,vsContent:R}=(null==g?void 0:null===(l=g.webRawData)||void 0===l?void 0:l.anchorCardInfo)||{},M={dependOnPlayer:!0,title:N,description:T,targetHref:k,imgSrc:L,onShow:()=>null,onClick:()=>null,target:"_self"},A={group_id:null==g?void 0:g.awemeId,enter_from:(0,u.yW)(),type:""};switch(null==g?void 0:null===(r=g.webRawData)||void 0===r?void 0:null===(t=r.anchorCardInfo)||void 0===t?void 0:t.source){case"pc_movie_father":M.hidden=(null==_?void 0:_.showMovie)!==1,M.className="",M.target="_blank",M.targetHref+=`?previous_page=${(0,u.yW)()}`,A.type="movie",M.onShow=()=>{p.sendLog("videoAnchorShow",A)};break;case"variety":M.hidden=!k||(null==R?void 0:null===(d=R.user_statistics)||void 0===d?void 0:d.watch_ratio)>.9,A=(0,n._)((0,i._)({},A),{type:"vs",is_vs:1,author_id:null==R?void 0:null===(v=R.owner_user_id)||void 0===v?void 0:null===(s=v.c)||void 0===s?void 0:s.map(e=>`${e}`).join(""),vs_season_id:null==R?void 0:R.season_id_str,vs_episode_id:null==R?void 0:R.episode_id_str,room_id:"",vs_ep_group_id:null==R?void 0:R.item_id,vs_episode_stage:["unknown","live","premiere","record"][(null==R?void 0:null===(f=R.episode_type)||void 0===f?void 0:f.episode_stage)||0],vs_episode_type:["unknown","formal","special"][(null==R?void 0:null===(m=R.episode_type)||void 0===m?void 0:m.episode_type)||0],vs_episode_sub_type:["unknown","normal","latest","pilot_file"][(null==R?void 0:null===(h=R.episode_type)||void 0===h?void 0:h.episode_sub_type)||0],vs_play_status:"",vs_is_portraid_content:""}),M.alinkProps={target:"_blank"},M.target="_blank",M.type="variety",M.onShow=()=>{var e,l,t;p.sendLog("videoAnchorShow",A),p.sendLog("vsVideoShow",{enter_from_merge:(0,u.yW)(),enter_method:"video_anchor_module",previous_page:(0,c.z)("web_link"),action_type:"click",is_vs:1,vs_season_id:null==R?void 0:R.season_id_str,vs_episode_id:null==R?void 0:R.episode_id_str,room_id:"",vs_ep_group_id:null==R?void 0:R.item_id,vs_episode_stage:["unknown","live","premiere","record"][(null==R?void 0:null===(e=R.episode_type)||void 0===e?void 0:e.episode_stage)||0],vs_episode_type:["unknown","formal","special"][(null==R?void 0:null===(l=R.episode_type)||void 0===l?void 0:l.episode_type)||0],vs_episode_sub_type:["unknown","normal","latest","pilot_file"][(null==R?void 0:null===(t=R.episode_type)||void 0===t?void 0:t.episode_sub_type)||0],vs_play_status:"",vs_is_portraid_content:""})}}M.onClick=()=>{p.sendLog("videoAnchorClick",A)};let{imgSrc:F,hidden:O=!0}=M;return(0,a.useEffect)(()=>{var e;return null==x||null===(e=x.on)||void 0===e||e.call(x,"titleIsFold",b),()=>{var e;null==x||null===(e=x.off)||void 0===e||e.call(x,"titleIsFold",b)}},[]),(0,a.useEffect)(()=>{E.current=F},[F]),(0,o.jsx)(o.Fragment,{children:O||E.current!==F||!w?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(C,(0,n._)((0,i._)({},M),{cardHidden:S,player:x}))})}let S=e=>{let l=(0,x.N)();return(0,o.jsx)(w.k,{componentName:"ProgramCard",Slardar:l,children:(0,o.jsx)(E,(0,i._)({},e))})}},198969:function(e,l,t){t.d(l,{S:function(){return p}});var i=t(629686),n=t(320165),o=t(101199),a=t(600767),r=t(709705),d=t(386206),s=t(426038),u=t(63601),c=t(310383),v=t(913285),f=t(37285);let m=e=>{let{isActive:l,startTime:t,awemeInfo:i,isLogin:n=!1,isMiniWin:c=!1}=e,v=(0,u.n)(),m=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(l&&v&&n)return()=>{if((null==v?void 0:v.currentTime)>0){var e,l;let t=1e3>=Math.abs((null==i?void 0:null===(e=i.video)||void 0===e?void 0:e.duration)-(null==v?void 0:v.currentTime)*1e3);(0,a.J$)({item_id:null==i?void 0:i.awemeId,item_duration:Number(null==i?void 0:null===(l=i.video)||void 0===l?void 0:l.duration),item_progress:t?0:Math.floor((null==v?void 0:v.currentTime)*1e3)})}}},[l,i,v,n]),(0,o.useEffect)(()=>{if(v&&n){let e=()=>{if(l&&(null==v?void 0:v.currentTime)>0){var e,t;let l=1e3>=Math.abs((null==i?void 0:null===(e=i.video)||void 0===e?void 0:e.duration)-(null==v?void 0:v.currentTime)*1e3);(0,a.J$)({item_id:null==i?void 0:i.awemeId,item_duration:Number(null==i?void 0:null===(t=i.video)||void 0===t?void 0:t.duration),item_progress:l?0:Math.floor((null==v?void 0:v.currentTime)*1e3)})}};return v.on(f.B.BeforeDestroy,e),()=>{v.off(f.B.BeforeDestroy,e)}}},[v,i,l,n]),(0,o.useEffect)(()=>{if(v&&n){let e=e=>{let{currentTime:l}=e,t=Math.floor(l);if(t>=10&&t%10==0){var n;(0,r.qQ)(s.LocalStorageKeys.CurrentVideoProgress,{awemeType:null==i?void 0:i.awemeType,itemId:null==i?void 0:i.awemeId,preItemDuration:Number(null==i?void 0:null===(n=i.video)||void 0===n?void 0:n.duration),preItemProgress:1e3*t})}};return v.on("timeupdate",e),()=>{v.off("timeupdate",e)}}},[v,i,n]),(0,o.useEffect)(()=>{if(v&&l&&t>=3&&n&&!c&&!m.current){let e=()=>{var e,l;null===(l=v.showPrompt)||void 0===l||l.call(v,{text:`上次播放至:${(0,d.$y)(1e3*t)}`},{mode:"arrow",autoHide:!0,interval:3e3,preventScreenOverflow:!0,style:{left:`${1e3*t/(null==i?void 0:null===(e=i.video)||void 0===e?void 0:e.duration)*100}%`,bottom:"10px",padding:"8px 12px",borderRadius:"12px",backgroundColor:"#33343F",color:"#ffffff",fontSize:"12px",transition:"none",zIndex:"20"}}),m.current=!0};return v.once("play",e),()=>{v.off("play",e)}}if(v&&l&&t>=3&&n&&c){var e;null===(e=v.hidePrompt)||void 0===e||e.call(v)}},[v,l,t,i,n,c]),null},p=e=>{let l=(0,c.N)();return(0,n.jsx)(v.k,{componentName:"RecordContinuePlay",Slardar:l,children:(0,n.jsx)(m,(0,i._)({},e))})}},758137:function(e,l,t){t.r(l),t.d(l,{MenuListInner:function(){return W},MenuList:function(){return H}});var i=t("629686"),n=t("402748");t("490629"),t("968336"),t("706056");var o=t("320165"),a=t("101199"),r=t("469935"),d=t.n(r),s=t("734123"),u=t("121998"),c=t("540129"),v=t("855357"),f=t("728810"),m=t("488721"),p=t("56554"),h=t("426112"),g=t("762167"),_=t("405368"),w=t("749113"),y=t("46892"),x=t("880327"),C=t("326367"),E=t("414061"),S=t("601034"),I=t("759894"),b=t("709705"),T=t("947383"),N=t("638052"),k=t("426038"),L=t("579002"),j=t("489278"),P=t("304217");let R=e=>{let{player:l,showContextMenu:t,awemeInfo:i,hideContextMenu:n,containerStatus:o}=e;(0,a.useEffect)(()=>{if(l){var e;let i=(0,P.H)(l),o=e=>{var i,n;(null==l?void 0:null===(n=l.video)||void 0===n?void 0:null===(i=n.parentElement)||void 0===i?void 0:i.contains(null==e?void 0:e.target))&&t(e)};return null===(e=l.root)||void 0===e||e.addEventListener("contextmenu",o,!0),null==i||i.addEventListener("contextmenu",t),document.addEventListener("click",n,!0),()=>{var e;null===(e=l.root)||void 0===e||e.removeEventListener("contextmenu",o,!0),document.removeEventListener("click",n,!0),null==i||i.removeEventListener("contextmenu",t)}}},[l,i,t]),(0,a.useEffect)(()=>{if(o)return o.addEventListener("contextmenu",t),()=>{o.removeEventListener("contextmenu",t)}},[o,t])};var M=t("874769"),A=t("63601"),F=t("310383"),O=t("234150"),B=t("913285"),D=t("671571");s.I18N.extend([{LANG:"zh",TEXT:{FULLSCREEN_TIPS:`${w.a.t("full_screen",{},"进入全屏")}<span class="shortcutKey">H</span>`,EXITFULLSCREEN_TIPS:`${w.a.t("full_screen_exit",{},"退出全屏")}<span class="shortcutKey">H</span>`,PIP:`${w.a.t("pip",{},"小窗模式")}<span class="shortcutKey">U</span>`}}]);let W=e=>{let{isActive:l=!1,shortcutDisable:t,shortcutInclude:r,shortcutExclude:w,awemeInfo:P,shortCutFiltered:F=[],showEnterDetail:B=!1,showAdMenu:W=!1,modalEnterFrom:H,userInfo:V,abtestData:U,directJumpToUser:z,showRecommendToFriend:$}=e,G=(0,A.n)(),{awemeId:Z}=P||{},[K,X]=(0,a.useState)(!1),[Y,q]=(0,a.useState)({x:0,y:0}),[Q,J]=(0,a.useState)(null),ee=(0,a.useRef)(null),{isShortcutListShow:el}=(0,L.y)({isNoPlayer:!0,isLogin:null==V?void 0:V.isLogin}),et=(0,a.useMemo)(()=>c.getShortcut({disable:t,include:r,exclude:w}),[t,r,w,el]),ei=e=>{var l;if(!(e&&(null===(l=ee.current)||void 0===l?void 0:l.contains(e.target))))X(!1)},en=(0,a.useCallback)(()=>{var e,l;let t=(null==P?void 0:P.awemeType)===v.e.XgVideo?(0,y.GN)(null==P?void 0:null===(e=P.authorInfo)||void 0===e?void 0:e.uid):(0,y.HC)(null==P?void 0:null===(l=P.authorInfo)||void 0===l?void 0:l.secUid,(0,u.stringify)({is_full_screen:(0,x.r)()?"1":"0",enter_method:"video_title",from_gid:P.groupId,vid:null==P?void 0:P.awemeId}));window.open(t,(0,C.f)()?"_self":"_blank","noopener")},[P]),eo=(0,a.useCallback)(function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("feedback"===e&&E.emit(E.EVENT.showFeedback),"enterDetail"===e&&E.emit(E.EVENT.videoPause,"ShortCut_onEnterDetail"),"showComment"===e&&"video_detail"===(0,S.yW)()&&!(0,x.r)()&&E.emit(E.EVENT.commentFocus),"downloadVideo"===e&&(E.emit(E.EVENT.downloadVideo,P),N.logInstance.sendLog("download",{enter_from:(0,I.mo)(),enter_from_merge:(0,I.vM)(),group_id:null==P?void 0:P.awemeId,click_from:"right_click",boost_task_id:(null==P?void 0:P.boostTaskId)||""})),"createMultitaskingWindow"===e){let e=l;"string"==typeof e&&e.startsWith("//")?e=`https:${l}`:"string"==typeof e&&e.startsWith("/video")&&(e=`https://www.douyin.com${l}`),(0,b.qQ)(k.LocalStorageKeys.MultiWindowMenuListRedDot,1),(0,D.Q)(U,e,"right_click_menu",!0)}z&&"onAvatar"===e?en():null==G||G.emit(e,l),X(!1)},[G,P,en,U,z]);(0,a.useEffect)(()=>{if(z&&G)return G.on("onAvatar",en),()=>{G.off("onAvatar",en)}},[en,G,z]);let{menuList:ea,adMenuList:er}=(0,M._)({shortcut:et,emitEvent:eo,position:Y,showEnterDetail:B,setIsShow:X,awemeInfo:P,userInfo:V,modalEnterFrom:H,abtestData:U,showRecommendToFriend:$}),ed=(0,a.useMemo)(()=>(W?er:ea).filter(e=>!F.includes(e.key)),[W,er,ea,F]),es=e=>{switch(!0){case!!e.link:return(0,a.createElement)(O.a,(0,n._)((0,i._)({},e.link),{className:j.default.itemText,key:e.text}),e.text);case!!e.component:return e.component;default:return(0,o.jsxs)("div",{className:j.default.contextMenuItem,onClick:e.handler,children:[(0,o.jsx)("div",{className:j.default.itemText,children:e.text}),e.key&&(0,o.jsxs)("div",{className:j.default.itemTip,children:["",e.key,""]}),e.useRedDot&&(0,M.H)(e.redDotKey)&&(0,o.jsx)("div",{className:d()(j.default.itemRedDotBox,{[j.default.itemMarginLeft]:!e.key}),children:(0,o.jsx)("div",{className:j.default.itemRedDot})})]},e.text)}};(0,a.useEffect)(()=>{ei()},[Z,l]),(0,a.useEffect)(()=>{null==G||G.on(s.Events.FULLSCREEN_CHANGE,ei);let e=E.listen(E.EVENT.pageFullScreen,()=>{ei()});return()=>{null==G||G.off(s.Events.FULLSCREEN_CHANGE,ei),null==e||e()}},[G]);let eu=(0,a.useCallback)(e=>{e.preventDefault();let{width:l,height:t,left:n,right:o,top:a,bottom:r}=G.root.getBoundingClientRect();if(ee.current&&ee.current.contains(e.target))return;let d=ee.current?ee.current.clientWidth:224,s=ee.current?ee.current.clientHeight:26*ed.length+32-6,u=(null==e?void 0:e.clientX)+d>o?(null==e?void 0:e.clientX)-d-n:(null==e?void 0:e.clientX)-n;if(q({x:u,y:(null==e?void 0:e.clientY)+s>r?(null==e?void 0:e.clientY)-s-a:(null==e?void 0:e.clientY)-a}),X(!0),(0,f.A)(P)||(0,m.L)(P)||(0,p.u)(P)){let e=(0,h.Rx)(P);(0,g.E)("othershow",{tag:(0,T.f)(),value:e.creative_id,log_extra:e.log_extra,refer:"feedback",ad_extra_data:(0,i._)({},(0,h.f6)(P))})}},[G,P,ee,ed]);return R({player:G,showContextMenu:eu,awemeInfo:P,hideContextMenu:ei,containerStatus:Q}),K?(0,o.jsx)("div",{className:j.default.container,ref:J,children:(0,o.jsx)("div",{className:d()(j.default.contextMenuContainer,{[j.default.isAd]:(0,f.A)(P)||(0,_.o4)(P)||(0,m.L)(P)||(0,p.u)(P)}),style:{top:Y.y,left:Y.x},ref:ee,children:ed.map(e=>es(e))})}):(0,o.jsx)("div",{})},H=e=>{let l=(0,F.N)();return(0,o.jsx)(B.k,{componentName:"MenuList",Slardar:l,children:(0,o.jsx)(W,(0,i._)({},e))})}},951115:function(e,l,t){t.d(l,{h:function(){return v}});var i=t(629686),n=t(320165),o=t(101199),a=t(63601),r=t(310383),d=t(913285),s=t(795653);t(954785);var u=t(242875);let c=e=>{var l,t,i;let{isActive:n}=e||{},{isMobile:r,isiPad:d}=(0,u.X)(),c=(0,a.n)(),v=(0,s.O)()||r||d?null==c?void 0:null===(l=c.getPlugin("progress"))||void 0===l?void 0:l.parent:null==c?void 0:null===(t=c.getPlugin("progress"))||void 0===t?void 0:t.outer,f=null==c?void 0:null===(i=c.getPlugin("volume"))||void 0===i?void 0:i.root;return(0,o.useEffect)(()=>{let e=e=>{null==e||e.stopPropagation()};return null==v||v.addEventListener("pointerdown",e),null==v||v.addEventListener("touchstart",e),null==f||f.addEventListener("pointerdown",e),null==f||f.addEventListener("touchstart",e),()=>{null==v||v.removeEventListener("pointerdown",e),null==v||v.removeEventListener("touchstart",e),null==f||f.removeEventListener("pointerdown",e),null==f||f.removeEventListener("touchstart",e)}},[v,f]),(0,o.useEffect)(()=>{if(c&&n){c.addClass("hide-loading");let e=setTimeout(()=>{c.removeClass("hide-loading")},2e3),l=()=>{c.removeClass("hide-loading"),clearTimeout(e)};return c.once("playing",l),()=>{clearTimeout(e),c.off("playing",l)}}},[n,c]),null},v=e=>{let l=(0,r.N)();return(0,n.jsx)(d.k,{componentName:"SwiperFitPlugin",Slardar:l,children:(0,n.jsx)(c,(0,i._)({},e))})}},869066:function(e,l,t){t.d(l,{W:function(){return a}}),t(490629);var i=t(101199),n=t(855357),o=t(426112);function a(e,l,t){let[a,r]=(0,i.useState)(!1),d=(0,i.useMemo)(()=>{var e;return(null==l?void 0:null===(e=l.chapterInfo)||void 0===e?void 0:e.status)&&(null==l?void 0:l.awemeType)!==n.e.Note},[l]),s=(0,o.Kf)(l);return(0,i.useEffect)(()=>{if(s){r(!1);return}r(d)},[d,s]),{hasChapterBar:a}}},766353:function(e,l,t){t.d(l,{t:function(){return a}}),t(490629),t(706056);var i=t(101199),n=t(426112),o=t(356336);function a(e,l){let[t,a]=(0,i.useState)(!1),r=(0,n.Kf)(l),d=(0,n.Jt)(l),s=(0,i.useMemo)(()=>{var t,i;return!(null==l?void 0:null===(t=l.chapterInfo)||void 0===t?void 0:t.status)&&!r&&!d&&[o.HighlightBarStyle.LinearHidden,o.HighlightBarStyle.LinearLifted,o.HighlightBarStyle.SolidHidden,o.HighlightBarStyle.SolidLifted].includes(null==e?void 0:e.highlightBarStyle)&&(null==l?void 0:null===(i=l.douyinPcVideoExtra)||void 0===i?void 0:i.highlightBar)===1},[l,e]);return{infoStyle:(0,i.useMemo)(()=>t&&s?[o.HighlightBarStyle.LinearHidden,o.HighlightBarStyle.SolidHidden].includes(null==e?void 0:e.highlightBarStyle)?{opacity:0,transition:"opacity 0.3s ease"}:{paddingBottom:40,transition:"padding-bottom 0.3s ease"}:{},[t,s,null==e?void 0:e.highlightBarStyle]),renderHighlightBar:s,isHighlightBarShow:t,setIsHighlightBarShow:a}}},182424:function(e,l,t){var i=t(629686),n=t(402748),o=t(320165),a=t(101199);let r=(0,a.forwardRef)((e,l)=>(0,o.jsx)("svg",(0,n._)((0,i._)({width:36,height:36,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:l},e),{children:(0,o.jsx)("path",{d:"M10 10.693c0-1.7 0-2.549.354-3.013A1.729 1.729 0 0 1 11.64 7c.582-.03 1.284.45 2.687 1.409l9.697 6.63c1.097.75 1.646 1.126 1.843 1.598.172.414.177.878.014 1.296-.187.476-.727.863-1.808 1.638l-9.697 6.945c-1.413 1.013-2.12 1.52-2.71 1.498a1.728 1.728 0 0 1-1.305-.67C10 26.877 10 26.007 10 24.268V10.693z",fill:"#0A0C20"})})));l.Z=r}}]);