;/*FB_PKG_DELIM*/ __d("CometPoliticalInfosheetDialogSelector_verifiedVoiceContext.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometPoliticalInfosheetDialogSelector_verifiedVoiceContext",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_rendering_for_ad_impression",storageKey:null},{args:null,kind:"FragmentSpread",name:"CometPoliticalInfosheetReshareDialog_verifiedVoiceContext"}],type:"VerifiedVoiceContext",abstractKey:null};e.exports=a}),null); __d("CometPoliticalInfosheetDialogV2Query_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="25171949772419209"}),null); __d("CometPoliticalInfosheetDialogV2Query$Parameters",["CometPoliticalInfosheetDialogV2Query_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometPoliticalInfosheetDialogV2Query_facebookRelayOperation"),metadata:{},name:"CometPoliticalInfosheetDialogV2Query",operationKind:"query",text:null}};e.exports=a}),null); __d("StoryLocationTransparencyDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5214471888614795"}),null); __d("StoryLocationTransparencyDialogQuery$Parameters",["StoryLocationTransparencyDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("StoryLocationTransparencyDialogQuery_facebookRelayOperation"),metadata:{},name:"StoryLocationTransparencyDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("InstreamVideoAdBreaksPlayerImpl_adBreaks.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"instream_placement",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"InstreamVideoAdBreaksPlayerImpl_adBreaks",selections:[{alias:null,args:null,concreteType:"InstreamVideoAdBreak",kind:"LinkedField",name:"mid_rolls",plural:!0,selections:[a,b,{alias:null,args:null,kind:"ScalarField",name:"time_offset_in_ms",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"InstreamVideoAdBreak",kind:"LinkedField",name:"pre_roll",plural:!1,selections:[a,b],storageKey:null}],type:"InstreamVideoAdBreaks",abstractKey:null}}();e.exports=a}),null); __d("PMVCometInterruptionsCounterResetMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8148148415210504"}),null); __d("PMVCometInterruptionsCounterResetMutation.graphql",["PMVCometInterruptionsCounterResetMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,kind:"ScalarField",name:"pmv_comet_interruptions_counter_reset",storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PMVCometInterruptionsCounterResetMutation",selections:a,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"PMVCometInterruptionsCounterResetMutation",selections:a},params:{id:b("PMVCometInterruptionsCounterResetMutation_facebookRelayOperation"),metadata:{},name:"PMVCometInterruptionsCounterResetMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("useInstreamAdsFetcherQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6959711170812725"}),null); __d("useInstreamAdsFetcherQuery.graphql",["useInstreamAdsFetcherQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"adTriggerSource"},c={defaultValue:null,kind:"LocalArgument",name:"first"},d={defaultValue:null,kind:"LocalArgument",name:"hostVideoId"},e={defaultValue:null,kind:"LocalArgument",name:"insertionPointOrigin"},f={defaultValue:null,kind:"LocalArgument",name:"instreamPlacement"},g={defaultValue:null,kind:"LocalArgument",name:"instreamVideoAdBreakIndex"},h={defaultValue:null,kind:"LocalArgument",name:"instreamVideoAdType"},i={defaultValue:null,kind:"LocalArgument",name:"isSponsorHostVideo"},j={defaultValue:null,kind:"LocalArgument",name:"playerFormat"},k={defaultValue:null,kind:"LocalArgument",name:"playerSubOrigin"},l={defaultValue:null,kind:"LocalArgument",name:"renderLocation"},m={defaultValue:null,kind:"LocalArgument",name:"requestedAdFormat"},n={defaultValue:null,kind:"LocalArgument",name:"scale"},o={defaultValue:null,kind:"LocalArgument",name:"storyIdentifier"},p={defaultValue:null,kind:"LocalArgument",name:"tracePolicy"},q=[{kind:"Variable",name:"ad_trigger_source",variableName:"adTriggerSource"},{kind:"Variable",name:"first",variableName:"first"},{kind:"Variable",name:"host_video_id",variableName:"hostVideoId"},{kind:"Variable",name:"insertion_point_origin",variableName:"insertionPointOrigin"},{kind:"Variable",name:"instream_placement",variableName:"instreamPlacement"},{kind:"Variable",name:"instream_video_ad_break_index",variableName:"instreamVideoAdBreakIndex"},{kind:"Variable",name:"instream_video_ad_type",variableName:"instreamVideoAdType"},{kind:"Variable",name:"is_sponsored_host_video",variableName:"isSponsorHostVideo"},{kind:"Variable",name:"player_format",variableName:"playerFormat"},{kind:"Variable",name:"player_sub_origin",variableName:"playerSubOrigin"},{kind:"Variable",name:"requested_ad_format",variableName:"requestedAdFormat"},{kind:"Variable",name:"story_identifier",variableName:"storyIdentifier"},{kind:"Variable",name:"trace_policy",variableName:"tracePolicy"}],r={alias:null,args:null,concreteType:"SponsoredData",kind:"LinkedField",name:"sponsored_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_token",storageKey:null}],storageKey:null},s=[{kind:"Variable",name:"location",variableName:"renderLocation"}],t={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},u={args:null,documentName:"useInstreamAdsFetcherQuery",fragmentName:"InstreamAdsStory_story",fragmentPropName:"story",kind:"ModuleImport"},v={alias:null,args:null,kind:"ScalarField",name:"query_refetch_interval_s",storageKey:null},w={alias:null,args:null,kind:"ScalarField",name:"should_show_ad_pod",storageKey:null},x={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},y=[x];return{fragment:{argumentDefinitions:[a,c,d,e,f,g,h,i,j,k,l,m,n,o,p],kind:"Fragment",metadata:null,name:"useInstreamAdsFetcherQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:q,concreteType:"InstreamVideoAdsConnection",kind:"LinkedField",name:"instream_video_ads",plural:!1,selections:[{alias:null,args:null,concreteType:"InstreamVideoAdsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"node",plural:!1,selections:[r,{alias:null,args:s,concreteType:"StoryAttachment",kind:"LinkedField",name:"attachments",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"media",plural:!1,selections:[t],storageKey:null}],storageKey:null},u],storageKey:null}],storageKey:null},v,w],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[m,c,d,h,g,f,p,k,j,i,l,o,e,n,a],kind:"Operation",name:"useInstreamAdsFetcherQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:q,concreteType:"InstreamVideoAdsConnection",kind:"LinkedField",name:"instream_video_ads",plural:!1,selections:[{alias:null,args:null,concreteType:"InstreamVideoAdsEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"node",plural:!1,selections:[r,{alias:null,args:s,concreteType:"StoryAttachment",kind:"LinkedField",name:"attachments",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"media",plural:!1,selections:[t,{kind:"InlineFragment",selections:y,type:"Node",abstractKey:"__isNode"},{kind:"InlineFragment",selections:y,type:"DynamicFeedAdAttachmentMedia",abstractKey:null},{kind:"InlineFragment",selections:y,type:"GenericAttachmentMedia",abstractKey:null},{kind:"InlineFragment",selections:y,type:"MontageImage",abstractKey:null},{kind:"InlineFragment",selections:y,type:"MontageVideo",abstractKey:null}],storageKey:null}],storageKey:null},x,u],storageKey:null}],storageKey:null},v,w],storageKey:null}],storageKey:null}]},params:{id:b("useInstreamAdsFetcherQuery_facebookRelayOperation"),metadata:{},name:"useInstreamAdsFetcherQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("useInstreamAdsHaloFetcherQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7216895058340640"}),null); __d("useInstreamAdsHaloFetcherQuery.graphql",["useInstreamAdsHaloFetcherQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"hostVideoId"},c={defaultValue:null,kind:"LocalArgument",name:"instreamVideoAdType"},d={defaultValue:null,kind:"LocalArgument",name:"isSponsorHostVideo"},e={defaultValue:null,kind:"LocalArgument",name:"playerFormat"},f={defaultValue:null,kind:"LocalArgument",name:"playerSubOrigin"},g={defaultValue:null,kind:"LocalArgument",name:"storyIdentifier"},h={defaultValue:null,kind:"LocalArgument",name:"tracePolicy"},i={alias:null,args:null,kind:"ScalarField",name:"ad_format",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"index",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"instream_placement",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"insertion_point_origin",storageKey:null};i=[{alias:null,args:[{fields:[{kind:"Variable",name:"comet_video_player_trace_policy",variableName:"tracePolicy"},{kind:"Variable",name:"host_video_id",variableName:"hostVideoId"},{kind:"Variable",name:"instream_video_ad_type",variableName:"instreamVideoAdType"},{kind:"Variable",name:"is_sponsored_host_video",variableName:"isSponsorHostVideo"},{kind:"Variable",name:"player_format",variableName:"playerFormat"},{kind:"Variable",name:"player_sub_origin",variableName:"playerSubOrigin"},{kind:"Variable",name:"story_identifier",variableName:"storyIdentifier"}],kind:"ObjectValue",name:"params"}],concreteType:"Scrubber",kind:"LinkedField",name:"scrubber",plural:!1,selections:[{alias:null,args:null,concreteType:"InstreamVideoAdBreak",kind:"LinkedField",name:"instream_video_ad_breaks",plural:!0,selections:[i,j,{alias:null,args:null,kind:"ScalarField",name:"time_offset_in_ms",storageKey:null},k,l],storageKey:null},{alias:null,args:null,concreteType:"InstreamVideoAdBreak",kind:"LinkedField",name:"post_roll_ad_break",plural:!1,selections:[i,j,k,l],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[a,c,d,e,f,g,h],kind:"Fragment",metadata:null,name:"useInstreamAdsHaloFetcherQuery",selections:i,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,f,e,h,c,g,d],kind:"Operation",name:"useInstreamAdsHaloFetcherQuery",selections:i},params:{id:b("useInstreamAdsHaloFetcherQuery_facebookRelayOperation"),metadata:{},name:"useInstreamAdsHaloFetcherQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometPoliticalInfosheetDialogV2.entrypoint",["CometPoliticalInfosheetDialogV2Query$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.ad_id,d=a.feed_object_id;a=a.story_id;return{queries:{politicalInfosheetQueryReference:{parameters:c("CometPoliticalInfosheetDialogV2Query$Parameters"),variables:{ad_id:b,feed_object_id:d,story_id:a}}}}},root:c("JSResourceForInteraction")("CometPoliticalInfosheetDialogV2.react").__setRef("CometPoliticalInfosheetDialogV2.entrypoint")};g["default"]=a}),98); __d("CometPoliticalInfosheetDialogSelector.react",["CometEntryPointDialogTrigger.react","CometLazyDialogTrigger.react","CometPoliticalInfosheetDialogSelector_verifiedVoiceContext.graphql","CometPoliticalInfosheetDialogV2.entrypoint","CometRelay","JSResourceForInteraction","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useRef,l=c("JSResourceForInteraction")("CometPoliticalInfosheetReshareDialog.react").__setRef("CometPoliticalInfosheetDialogSelector.react");function a(a){var e=a.adID,f=a.dialogTriggerFunc,g=a.feedObjectID,i=a.isInstream,m=a.storyID;a=a.verifiedVoiceContext;var n=k(null);a=d("CometRelay").useFragment(h!==void 0?h:h=b("CometPoliticalInfosheetDialogSelector_verifiedVoiceContext.graphql"),a);var o=(a==null?void 0:a.is_rendering_for_ad_impression)===!1;i=i;if(!o&&!i)return j.jsx(c("CometEntryPointDialogTrigger.react"),{dialogEntryPoint:c("CometPoliticalInfosheetDialogV2.entrypoint"),otherProps:{adID:e,onClose:c("emptyFunction"),storyID:m},preloadParams:{ad_id:e,feed_object_id:g,story_id:m},children:function(a){return f(a)}});else return j.jsx(c("CometLazyDialogTrigger.react"),{dialogProps:{adID:e,isReshared:!0,onClose:c("emptyFunction"),verifiedVoiceContext:a},dialogResource:l,children:function(a){return f(a,n)}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("StoryLocationTransparencyDialog.entrypoint",["JSResourceForInteraction","StoryLocationTransparencyDialogQuery$Parameters","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{storyLocationTransparencyDialogQueryReference:{parameters:c("StoryLocationTransparencyDialogQuery$Parameters"),variables:{scale:d("WebPixelRatio").get(),storyID:a.storyID}}}}},root:c("JSResourceForInteraction")("StoryLocationTransparencyDialog.react").__setRef("StoryLocationTransparencyDialog.entrypoint")};g["default"]=a}),98); __d("InstreamAdsPrerollTransitionScreen.react",["CometLoadingAnimation.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(){return i.jsx("div",{className:"x6s0dn4 xal61yo x1ey2m1c x9f619 x78zum5 xds687c xdt5ytf xl56j7k x10l6tqk x17qophe x13vifvy",children:i.jsx("div",{className:"xc9qbxq x1sy10c2 x1n2onr6 x14qfxbe",children:i.jsx(c("CometLoadingAnimation.react"),{size:36})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("InstreamAdsTransitionScreen.react",["fbt","react","useInstreamAdsStoryPlaybackControl"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.freezeTokenRef;a=a.organicController;c("useInstreamAdsStoryPlaybackControl")({freezeTokenRef:b,organicController:a});b=h._("__JHASH__KSKbQr-YdZV__JHASH__");return j.jsx("div",{className:"xal61yo x1ey2m1c x9f619 xds687c x10l6tqk x17qophe x13vifvy",children:j.jsx("div",{className:"x191j7n5 x14ctfv x1nxh6w3 x10l6tqk x16q8cke",children:b})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("InstreamAdsDisplay.react",["CometRelay","InstreamAdsExtraFieldsContext","InstreamAdsPrerollTransitionScreen.react","InstreamAdsTransitionScreen.react","VideoPlayerHooks","VideoPlayerInteractionOverlay.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react"),k=c("gkx")("1861111");function a(a){var b=a.NIAdStory,e=a.adPorableVideoID,f=a.freezeTokenRef,g=a.instreamAdsStory,h=a.palmState,l=a.playerFormat,m=a.setAdPortableVideoID,n=a.subOrigin;a=a.videoAdStory;var o=(i||(i=d("VideoPlayerHooks"))).useController(),p=d("InstreamAdsExtraFieldsContext").useInstreamAdsExtraFieldsContext(),q=-1;(p==null?void 0:p.isAdPod)===!0&&((p==null?void 0:p.adPodIndex)===1?q=1:q=0);p=q===1;var r=function(a){a!==e[0]&&m([a,e[1]])},s=function(a){a!==e[1]&&m([e[0],a])};if(h==="START"||h==="FETCH_PRE_ROLL"||h==="START_AD")return j.jsx(d("VideoPlayerInteractionOverlay.react").VideoPlayerInteractionOverlay,{children:j.jsxs("div",{className:"x1ey2m1c x9f619 xds687c x10l6tqk x17qophe x13vifvy x1rozsjd",children:[h==="START"?j.jsx(c("InstreamAdsTransitionScreen.react"),{freezeTokenRef:f,organicController:o}):null,h==="FETCH_PRE_ROLL"?j.jsx(c("InstreamAdsPrerollTransitionScreen.react"),{}):null,h==="START_AD"&&g?j.jsx(d("CometRelay").MatchContainer,{match:p?g[1]:g[0],props:{freezeTokenRef:f,onPortableVideoIdChange:p?s:r,organicController:o,playerFormat:l,portableVideoID:p?e[1]:e[0],position:q,story:p?g[1]:g[0],subOrigin:n}}):null]})});if(k&&b!==null)return j.jsx("div",{className:h==="PLAY_NI_VIDEO"?"x1ey2m1c x9f619 xds687c x10l6tqk x17qophe x13vifvy x1rozsjd":null,children:j.jsx(d("CometRelay").MatchContainer,{match:b,props:{freezeTokenRef:f,isNIAd:!0,onPortableVideoIdChange:r,organicController:o,playerFormat:l,portableVideoID:e[0],story:b,subOrigin:n}})});return h==="PLAY_LONGER_AD"?j.jsx("div",{className:"x1ey2m1c x9f619 xds687c x10l6tqk x17qophe x13vifvy x1rozsjd",children:j.jsx(d("CometRelay").MatchContainer,{match:a,props:{freezeTokenRef:f,isNIAd:!1,onPortableVideoIdChange:r,organicController:o,playerFormat:l,portableVideoID:e[0],story:a,subOrigin:n}})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("PlayButtonItemOverlay.react",["CometImage.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(){return i.jsx("div",{className:"x10l6tqk x1n0ejz7 x4o5f7y",children:i.jsx(c("CometImage.react"),{height:36,src:"/images/video/play_72dp.png",width:36})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("InstreamAdsFeedNIContextCardImpl.react",["fbt","ix","BaseRow.react","BaseRowItem.react","CometEmojiTransform","CometEmoticonTransform","CometEntryPointDialogTrigger.react","CometImage.react","CometLink.react","CometMiddot.react","CometPoliticalInfosheetDialogSelector.react","CometPressable.react","CometProfilePhoto.react","CometTextWithEntities.react","CometTrackingCodeContext","CometTrackingNodeProvider.react","InstreamAdsHideAdBehaviorContext","PlayButtonItemOverlay.react","StoryLocationTransparencyDialog.entrypoint","TetraCircleButton.react","TetraText.react","TetraTextPairing.react","VideoPlayerHooks","VideoPlayerRelay.react","VideoPlayerSurface.react","fbicon","gkx","react","stylex","useDebouncedValue"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||d("react"),n={body:{marginBottom:"x4vbgl9",marginTop:"x1rdy4ex",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingBottom:"xjkvuk6",paddingTop:"x1iorvi4",$$css:!0},bottomMenu:{bottom:"xqo3gd",position:"x10l6tqk",$$css:!0},container:{marginEnd:"xykv574",marginLeft:null,marginRight:null,marginStart:"xbmpl8g",paddingBottom:"xsag5q8",paddingEnd:"x1pi30zi",paddingLeft:null,paddingRight:null,paddingStart:"x1swvt13",paddingTop:"xyamay9",$$css:!0},dismiss:{marginStart:"x1i64zmx",marginLeft:null,marginRight:null,marginTop:"xifccgj",$$css:!0},divider:{marginEnd:"xfs2ol5",marginLeft:null,marginRight:null,marginStart:"x12mruv9",$$css:!0},feedDismiss:{marginTop:"x1ok221b",$$css:!0},feedMediaBorderContainer:{height:"xjp8j0k",$$css:!0},feedNiVideoContainer:{height:"xjp8j0k",width:"x13oubkp",$$css:!0},feedRoot:{backgroundColor:"xmjcpbm",height:"xjp8j0k",$$css:!0},fullScreenBody:{marginBottom:"xat24cr",marginTop:"x1rdy4ex",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingBottom:"xjkvuk6",paddingTop:"x1iorvi4",$$css:!0},fullScreenFirstRow:{marginBottom:"xyorhqc",$$css:!0},fullScreenHeader:{position:"x10l6tqk",start:"x8zc4e7",left:null,right:null,$$css:!0},fullscreenItem:{paddingEnd:"xsyo7zv",paddingLeft:null,paddingRight:null,paddingStart:"x1ye3gou",$$css:!0},fullScreenMediaBorderContainer:{height:"xjp8j0k",$$css:!0},fullScreenNiVideoContainer:{height:"xjp8j0k",width:"x13oubkp",$$css:!0},fullScreenRoot:{backgroundColor:"xrmyhay",height:"xjp8j0k",$$css:!0},hasBody:{boxSizing:"x9f619",fontSize:"x1lkfr7t",marginBottom:"x4vbgl9",marginTop:"x1rdy4ex",maxHeight:"xly2ba0",paddingBottom:"xjkvuk6",paddingTop:"x1iorvi4",$$css:!0},headerContainer:{paddingBottom:"xsag5q8",paddingEnd:"x1pi30zi",paddingLeft:null,paddingRight:null,paddingStart:"x1swvt13",paddingTop:"xz9dl7a",$$css:!0},headerItem:{marginStart:"x1i64zmx",marginLeft:null,marginRight:null,$$css:!0},imageContainer:{marginStart:"x1hk0nng",marginLeft:null,marginRight:null,marginTop:"xwya9rg",$$css:!0},item:{marginTop:"x1gslohp",paddingEnd:"xsyo7zv",paddingLeft:null,paddingRight:null,paddingStart:"x1ye3gou",$$css:!0},mediaBorderContainer:{borderBottomStartRadius:"x9jhf4c",borderTopStartRadius:"x1lq5wgf",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},meta:{marginTop:"x1anpbxc",$$css:!0},multipleLinesHeight:{minHeight:"xgujvf1",$$css:!0},niImageStyle:{maxWidth:"x193iq5w",objectFit:"xl1xv1r",objectPosition:"x1fmkh0f",transform:"x18871es",$$css:!0},niVideoContainer:{borderBottomStartRadius:"x9jhf4c",borderTopStartRadius:"x1lq5wgf",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},niVideoPressable:{display:"x1lliihq",height:"x5yr21d",position:"x10l6tqk",width:"xh8yej3",$$css:!0},overlay:{height:"x5yr21d",position:"x10l6tqk",width:"xh8yej3",$$css:!0},pressable:{display:"x1lliihq",$$css:!0},profilePic:{marginEnd:"xq8finb",marginLeft:null,marginRight:null,$$css:!0},root:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxSizing:"x9f619",marginBottom:"x1yztbdb",marginEnd:"xktsk01",marginLeft:null,marginRight:null,marginStart:"x1d52u69",position:"x1n2onr6",":hover_textDecoration":"x1lku1pv",$$css:!0},sponsoredText:{marginTop:"x1xmf6yo",$$css:!0},textPairingBody:{display:"x1lliihq",paddingBottom:"x1120s5i",$$css:!0},videoContainer:{marginStart:"x1hk0nng",marginLeft:null,marginRight:null,marginTop:"xwya9rg",$$css:!0}},o=c("gkx")("3476"),p=[c("CometEmoticonTransform")({size:18}),c("CometEmojiTransform")({size:18})],q=[c("CometEmoticonTransform")(),c("CometEmojiTransform")()];function a(a){var b=a.contextCardHideAdBehavior,e=a.instreamAdsContextCardData,f=a.isFullScreen;a=a.onDismiss;var g={url:e==null?void 0:e.adUrl};if(!e)return null;var k=(e==null?void 0:e.brandName)!=null?e.brandName.toString().trim():"",l=(e==null?void 0:e.description)!=null?e.description.toString().trim():"",s=(e==null?void 0:e.source)!=null?e.source.toString():null,t=(e==null?void 0:e.title)!=null?e.title.toString().trim():"",u=e.trackingCode,v=e.viewabilityLogger,w=e.adId,x=e.feedObjectID,y=e.storyId,z=e.verifiedVoiceContext,A=e.scmeLabel,B=o&&e.scmeLabel!=null,C=function(a,b){return m.jsx(c("CometLink.react"),{color:"secondary",onClick:a,ref:b,weight:"bold",children:A})};w=w!=null&&x!=null&&y!=null&&z!=null?m.jsx(c("CometPoliticalInfosheetDialogSelector.react"),{adID:w,dialogTriggerFunc:C,feedObjectID:x,isInstream:!0,storyID:y,verifiedVoiceContext:z}):y!=null?m.jsx(c("CometEntryPointDialogTrigger.react"),{dialogEntryPoint:c("StoryLocationTransparencyDialog.entrypoint"),otherProps:{},preloadParams:{storyID:y},children:function(a){return m.jsx(c("CometLink.react"),{color:"secondary",onClick:a,weight:"bold",children:A})}}):null;C=m.jsxs(m.Fragment,{children:[m.jsxs(c("BaseRow.react"),{verticalAlign:"center",xstyle:n.headerContainer,children:[m.jsx(c("BaseRowItem.react"),{children:m.jsxs(c("BaseRow.react"),{verticalAlign:"center",children:[e.profilePicURI!=null&&e.profilePicURI.length>0?m.jsx(c("BaseRowItem.react"),{xstyle:n.profilePic,children:m.jsx(c("CometProfilePhoto.react"),{shape:"circle",size:40,source:{uri:e.profilePicURI}})}):null,m.jsxs(c("BaseRowItem.react"),{children:[m.jsx(c("TetraText.react"),{color:"primary",type:"bodyLink3",children:k}),m.jsx("div",{className:"x1xmf6yo",children:m.jsxs(c("TetraText.react"),{color:"secondary",type:"meta4",children:[h._("__JHASH__9rhuPc7-Of2__JHASH__"),B?m.jsx(c("CometMiddot.react"),{className:"xfs2ol5 x12mruv9"}):null,B?w:null]})})]})]})}),m.jsx(c("BaseRowItem.react"),{children:m.jsxs(c("BaseRow.react"),{verticalAlign:f?"center":"stretch",children:[m.jsx(c("BaseRowItem.react"),{xstyle:n.headerItem,children:m.jsx("div",{children:m.jsx(d("InstreamAdsHideAdBehaviorContext").InstreamAdsHideAdBehaviorContext.Provider,{value:b,children:e.menuButton})})}),m.jsx(c("BaseRowItem.react"),{xstyle:n.headerItem,children:m.jsx("div",{className:"x1ok221b",children:m.jsx(c("TetraCircleButton.react"),{color:"secondary",icon:d("fbicon")._(i("478232"),16),label:"Button for dismissing the context card",onPress:a,size:24,type:"deemphasized"})})})]})})]}),m.jsx("div",{className:"x1lq5wgf xgqcy7u x30kzoy x9jhf4c x9f619 x1yztbdb xktsk01 x1d52u69 x1n2onr6 x1lku1pv xmjcpbm xjp8j0k",children:m.jsxs(c("BaseRow.react"),{verticalAlign:f?"center":"stretch",xstyle:n.container,children:[e.isClickToPlayVideo===!0?null:m.jsx(c("BaseRowItem.react"),{xstyle:n.imageContainer,children:m.jsx("div",{className:"x9jhf4c x1lq5wgf x6ikm8r x10wlt62 xjp8j0k",children:e.adImageURI!=null&&e.adImageURI.length>0?m.jsx(c("CometImage.react"),{height:96,src:e.adImageURI,width:96,xstyle:n.niImageStyle}):null})}),e.isClickToPlayVideo===!0?m.jsx(c("BaseRowItem.react"),{xstyle:n.videoContainer,children:m.jsx("div",{className:"x9jhf4c x1lq5wgf x6ikm8r x10wlt62 xjp8j0k x13oubkp",children:e.clickToPlayVideo?m.jsx(c("VideoPlayerRelay.react"),{adClientToken:e.clientToken,canAutoplay:"do_not_autoplay",portalingEnabled:!1,subOrigin:"inline",video:e.clickToPlayVideo,children:m.jsx(c("VideoPlayerSurface.react"),{children:m.jsx(r,{callback:e.callback})})}):null})}):null,m.jsxs(c("BaseRowItem.react"),{expanding:!0,useDeprecatedStyles:!0,xstyle:n.item,children:[m.jsx("div",{className:(j||(j=c("stylex")))(n.body,l!=null&&n.hasBody,l!=null&&l.length>0&&t!=null&&t.length>0&&n.multipleLinesHeight),children:m.jsx(c("TetraTextPairing.react"),{body:l!=null&&l.length>0?m.jsx("span",{"data-testid":void 0,children:m.jsx(c("CometTextWithEntities.react"),{text:l,transforms:q})}):null,bodyColor:"secondary",bodyLineLimit:1,headline:m.jsx("span",{className:"x1lliihq x1120s5i",children:m.jsx(c("CometTextWithEntities.react"),{text:t,transforms:p})}),headlineColor:"primary",headlineLineLimit:2,level:3})}),s!=null&&s.length>0?m.jsx("div",{className:"x1anpbxc","data-testid":void 0,children:m.jsx(c("TetraText.react"),{color:"secondary",numberOfLines:1,type:"body3",children:s})}):null]})]})})]});x=m.jsx("div",{className:"x1lq5wgf xgqcy7u x30kzoy x9jhf4c x9f619 x1yztbdb xktsk01 x1d52u69 x1n2onr6 x1lku1pv xrmyhay xjp8j0k",children:m.jsxs(c("BaseRow.react"),{xstyle:n.container,children:[e.isClickToPlayVideo===!0?null:m.jsx(c("BaseRowItem.react"),{xstyle:n.imageContainer,children:m.jsx("div",{className:"x9jhf4c x1lq5wgf x6ikm8r x10wlt62 xjp8j0k",children:e.adImageURI!=null&&e.adImageURI.length>0?m.jsx(c("CometImage.react"),{height:96,src:e.adImageURI,width:96,xstyle:n.niImageStyle}):null})}),e.isClickToPlayVideo===!0?m.jsx(c("BaseRowItem.react"),{xstyle:n.videoContainer,children:m.jsx("div",{className:"x9jhf4c x1lq5wgf x6ikm8r x10wlt62 xjp8j0k x13oubkp",children:e.clickToPlayVideo?m.jsx(c("VideoPlayerRelay.react"),{adClientToken:e.clientToken,canAutoplay:"do_not_autoplay",portalingEnabled:!1,subOrigin:"inline",video:e.clickToPlayVideo,children:m.jsx(c("VideoPlayerSurface.react"),{children:m.jsx(r,{callback:e.callback})})}):null})}):null,m.jsxs(c("BaseRowItem.react"),{expanding:!0,xstyle:n.fullscreenItem,children:[m.jsxs(c("BaseRow.react"),{verticalAlign:f?"center":"stretch",xstyle:n.fullScreenFirstRow,children:[e.profilePicURI!=null&&e.profilePicURI.length>0?m.jsx(c("BaseRowItem.react"),{xstyle:n.profilePic,children:m.jsx(c("CometProfilePhoto.react"),{shape:"circle",size:16,source:{uri:e.profilePicURI}})}):null,m.jsx("div",{className:"x10l6tqk x8zc4e7",children:m.jsx(c("BaseRowItem.react"),{children:m.jsxs(c("TetraText.react"),{color:"secondaryOnMedia",type:"body3",children:[s,m.jsx(c("CometMiddot.react"),{className:"xfs2ol5 x12mruv9"}),h._("__JHASH__9rhuPc7-Of2__JHASH__")]})})})]}),m.jsx("div",{className:j(l!=null&&n.hasBody,n.fullScreenBody),children:m.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"bodyLink2",children:t})}),l!=null&&l.length>0?m.jsx("div",{className:"x1anpbxc","data-testid":void 0,children:m.jsx(c("TetraText.react"),{color:"secondaryOnMedia",numberOfLines:1,type:"body3",children:l})}):null]}),m.jsxs(c("BaseRowItem.react"),{children:[m.jsx("div",{className:"x1i64zmx xifccgj",children:m.jsx(c("TetraCircleButton.react"),{color:"tertiary",icon:d("fbicon")._(i("478232"),16),label:"Button for dismissing the context card",onPress:a,size:24,type:"deemphasized"})}),m.jsx("div",{className:"xqo3gd x10l6tqk",children:m.jsx(d("InstreamAdsHideAdBehaviorContext").InstreamAdsHideAdBehaviorContext.Provider,{value:b,children:e.menuButton})})]})]})});return e.adUrl!=null?m.jsx(c("CometTrackingCodeContext").Provider,{value:u,children:m.jsx("div",{ref:v,children:m.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:15,children:m.jsx(c("CometPressable.react"),{display:"inline",label:t,linkProps:g,overlayDisabled:!0,xstyle:n.pressable,children:f?x:C})})})}):null}a.displayName=a.name+" [from "+f.id+"]";function r(a){var b=a.callback,e=(k||(k=d("VideoPlayerHooks"))).useController();a=k.usePaused();var f=k.usePlaying();f=c("useDebouncedValue")(f,5);a=a&&!f;f=function(){e.getCurrentState().paused&&(e.play("user_initiated"),e.setMuted(!0,null))};var g=function(){e.getCurrentState().playing&&(e.pause("product_initiated"),e.seek(0))},h=function(){b&&b("PLAY_NI_VIDEO")};return m.jsx(c("CometPressable.react"),{onPress:h,xstyle:n.niVideoPressable,children:m.jsx("div",{className:"x5yr21d x10l6tqk xh8yej3",onMouseEnter:f,onMouseLeave:g,children:a?m.jsx(c("PlayButtonItemOverlay.react"),{}):null})})}r.displayName=r.name+" [from "+f.id+"]";g["default"]=a}),98); __d("InstreamAdsFeedVideoContextCardImpl.react",["fbt","ix","BaseRow.react","BaseRowItem.react","CometEmojiTransform","CometEmoticonTransform","CometEntryPointDialogTrigger.react","CometLink.react","CometMiddot.react","CometPoliticalInfosheetDialogSelector.react","CometPressable.react","CometProfilePhoto.react","CometTextWithEntities.react","CometTrackingCodeContext","CometTrackingNodeProvider.react","InstreamAdsConfig","InstreamAdsHideAdBehaviorContext","PlayButtonItemOverlay.react","StoryLocationTransparencyDialog.entrypoint","TetraCircleButton.react","TetraText.react","TetraTextPairing.react","VideoPlayerHooks","VideoPlayerRelay.react","VideoPlayerSurface.react","fbicon","gkx","react","stylex","useDebouncedValue"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||d("react"),n={adProgressText:{color:"x14ctfv",fontSize:"x1pg5gke",marginTop:"x9otpla",position:"x10l6tqk",start:"xq7jlbq",left:null,right:null,top:"xwa60dl",whiteSpace:"xuxw1ft",$$css:!0},body:{marginBottom:"x4vbgl9",marginTop:"x1rdy4ex",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingBottom:"xjkvuk6",paddingTop:"x1iorvi4",$$css:!0},bottomMenu:{marginTop:"x1anpbxc",position:"x10l6tqk",$$css:!0},container:{height:"x1peatla",marginEnd:"xykv574",marginLeft:null,marginRight:null,marginStart:"xbmpl8g",marginTop:"xw7yly9",paddingEnd:"x1pi30zi",paddingLeft:null,paddingRight:null,paddingStart:"x1swvt13",paddingTop:"x7sb2j6",$$css:!0},ctaButtonContainer:{marginTop:"x1ok221b",$$css:!0},dismiss:{marginStart:"x1mnrxsn",marginLeft:null,marginRight:null,marginTop:"xafmxuu",$$css:!0},divider:{marginEnd:"xfs2ol5",marginLeft:null,marginRight:null,marginStart:"x12mruv9",$$css:!0},feedNiVideoContainer:{height:"xjp8j0k",width:"x13oubkp",$$css:!0},feedRoot:{backgroundColor:"xmjcpbm",$$css:!0},fullScreenRoot:{backgroundColor:"xrmyhay",$$css:!0},hasBody:{boxSizing:"x9f619",fontSize:"x1lkfr7t",marginBottom:"x4vbgl9",marginTop:"x1rdy4ex",maxHeight:"xly2ba0",paddingBottom:"xjkvuk6",paddingTop:"x1iorvi4",$$css:!0},item:{paddingEnd:"xsyo7zv",paddingLeft:null,paddingRight:null,paddingStart:"x1ye3gou",$$css:!0},meta:{marginTop:"x1anpbxc",$$css:!0},multipleLinesHeight:{minHeight:"xgujvf1",$$css:!0},niVideoContainer:{borderBottomStartRadius:"x9jhf4c",borderTopStartRadius:"x1lq5wgf",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},niVideoPressable:{display:"x1lliihq",height:"x5yr21d",position:"x10l6tqk",width:"xh8yej3",$$css:!0},overlay:{height:"x5yr21d",position:"x10l6tqk",width:"xh8yej3",$$css:!0},pressable:{display:"x1lliihq",$$css:!0},progressContainer:{backgroundColor:"xal61yo",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",bottom:"xqo3gd",end:"xlr8s2x",left:null,right:null,filter:"x1txq2hj",height:"x1qx5ct2",position:"x10l6tqk",width:"x1n7h9c3",$$css:!0},root:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxSizing:"x9f619",height:"xjp8j0k",marginTop:"xw7yly9",marginEnd:"xktsk01",marginBottom:"x1yztbdb",marginStart:"x1d52u69",position:"x1n2onr6",":hover_textDecoration":"x1lku1pv",$$css:!0},snapshotDesc:{paddingEnd:"xsyo7zv",paddingLeft:null,paddingRight:null,paddingStart:"x1ye3gou",$$css:!0},textPairingBody:{display:"x1lliihq",paddingBottom:"x1120s5i",$$css:!0},timelineBackground:{backgroundColor:"xobhos8",height:"xqu0tyb",width:"xh8yej3",$$css:!0},timelineCompleted:{backgroundColor:"x1wbbese",height:"xqu0tyb",$$css:!0},timelineContainer:{bottom:"x1ey2m1c",position:"x10l6tqk",width:"xh8yej3",$$css:!0},videoContainer:{marginStart:"x1hk0nng",marginLeft:null,marginRight:null,marginTop:"x1gslohp",$$css:!0},watchTabContainer:{height:"x1peatla",marginEnd:"xykv574",marginLeft:null,marginRight:null,marginStart:"xbmpl8g",paddingEnd:"x1pi30zi",paddingLeft:null,paddingRight:null,paddingStart:"x1swvt13",paddingTop:"xyamay9",$$css:!0},watchTabPressable:{display:"x1lliihq",paddingTop:"xyamay9",$$css:!0},watchTabRoot:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxSizing:"x9f619",height:"xjp8j0k",marginEnd:"xktsk01",marginLeft:null,marginRight:null,marginStart:"x1d52u69",paddingTop:"x1y1aw1k",position:"x1n2onr6",":hover_textDecoration":"x1lku1pv",$$css:!0}},o=c("gkx")("3476"),p=[c("CometEmoticonTransform")({size:18}),c("CometEmojiTransform")({size:18})],q=[c("CometEmoticonTransform")(),c("CometEmojiTransform")()],r=function(a){if(a!=null)return" "+Math.floor(a/60).toString()+":"+(Math.floor(a%60)<10?"0":"")+Math.floor(a%60).toString();else return""};function a(a){var b=a.adDuration,e=a.adPlaytime,f=a.contextCardHideAdBehavior,g=a.instreamAdsContextCardData,k=a.isAdsPlaying,l=a.isFullScreen,t=a.isWatchTab,u=a.onDismiss,v=a.onPlayFullLength;a=a.showPlayFullBtn;var w={url:g==null?void 0:g.adUrl};if(!g)return null;var x=g.isThirdPartyDealAd,y=(g==null?void 0:g.brandName)!=null?g.brandName.toString().trim():"",z=(g==null?void 0:g.source)!=null?g.source.toString():null,A=g.title,B=g.trackingCode,C=g.adId,D=g.feedObjectID,E=g.storyId,F=g.verifiedVoiceContext,G=g.scmeLabel,H=o&&g.scmeLabel!=null,I=0;e!=null&&b!==null&&b!==void 0&&b>0&&(I=e/b*100);var J=!k&&b!==null&&b!==void 0&&b>d("InstreamAdsConfig").DEFAULT_LONGER_AD_DURATION,K=function(a,b){return m.jsx(c("CometLink.react"),{color:"secondary",onClick:a,ref:b,weight:"bold",children:G})};C=C!=null&&D!=null&&E!=null&&F!=null?m.jsx(c("CometPoliticalInfosheetDialogSelector.react"),{adID:C,dialogTriggerFunc:K,feedObjectID:D,isInstream:!0,storyID:E,verifiedVoiceContext:F}):E!=null?m.jsx(c("CometEntryPointDialogTrigger.react"),{dialogEntryPoint:c("StoryLocationTransparencyDialog.entrypoint"),otherProps:{},preloadParams:{storyID:E},children:function(a){return m.jsx(c("CometLink.react"),{color:"secondary",onClick:a,weight:"bold",children:G})}}):null;K=m.jsx("div",{className:(j||(j=c("stylex")))(t===!0?n.watchTabRoot:n.root,!l&&n.feedRoot,l&&n.fullScreenRoot),children:m.jsxs(c("BaseRow.react"),{verticalAlign:"center",xstyle:t===!0?n.watchTabContainer:n.container,children:[J?m.jsx(c("BaseRowItem.react"),{xstyle:n.videoContainer,children:m.jsx("div",{className:"x9jhf4c x1lq5wgf x6ikm8r x10wlt62 xjp8j0k x13oubkp",children:g.clickToPlayVideo?m.jsx(c("VideoPlayerRelay.react"),{adClientToken:g.clientToken,canAutoplay:"do_not_autoplay",portalingEnabled:!1,subOrigin:"inline",video:g.clickToPlayVideo,children:m.jsx(c("VideoPlayerSurface.react"),{children:m.jsx(s,{adCompletedPercentage:I,adPlaytime:e,callback:g.callback})})}):null})}):null,!J&&g.profilePicURI!==null&&g.profilePicURI!==void 0&&g.profilePicURI.length>0?m.jsx(c("BaseRowItem.react"),{children:m.jsx(c("CometProfilePhoto.react"),{shape:"circle",size:48,source:{uri:g.profilePicURI}})}):null,m.jsxs(c("BaseRowItem.react"),{expanding:!0,useDeprecatedStyles:!0,xstyle:J?n.snapshotDesc:n.item,children:[m.jsx("div",{className:j(n.body,A!=null&&n.hasBody,A!=null&&A.length>0&&y!=null&&y.length>0&&n.multipleLinesHeight),children:m.jsx(c("TetraTextPairing.react"),{body:H&&a===!0?C:A!=null&&A.length>0?m.jsx("span",{"data-testid":void 0,children:m.jsx(c("CometTextWithEntities.react"),{text:A,transforms:q})}):null,bodyColor:l?"secondaryOnMedia":"secondary",bodyLineLimit:1,headline:m.jsx("span",{className:"x1lliihq x1120s5i",children:m.jsx(c("CometTextWithEntities.react"),{text:y.toString(),transforms:p})}),headlineColor:l?"white":"primary",headlineLineLimit:2,level:3})}),a===!0?m.jsx("div",{className:"x1anpbxc",children:v?m.jsx(c("CometPressable.react"),{display:"inline",onPress:v,children:m.jsxs(c("TetraText.react"),{color:l?"secondaryOnMedia":"secondary",numberOfLines:1,type:"body3",children:[h._("__JHASH__s8lLaDeCkPN__JHASH__"),r(b)]})}):null}):z!=null&&z.length>0?m.jsx("div",{className:"x1anpbxc","data-testid":void 0,children:m.jsxs(c("TetraText.react"),{color:l?"secondaryOnMedia":"secondary",numberOfLines:2,type:"body3",children:[k?null:h._("__JHASH__uwb8pd99De5__JHASH__"),H?m.jsx(c("CometMiddot.react"),{className:"xfs2ol5 x12mruv9"}):null,H?C:null,k?null:m.jsx(c("CometMiddot.react"),{className:"xfs2ol5 x12mruv9"}),z]})}):null]}),m.jsx(c("BaseRowItem.react"),{children:l&&k?m.jsx("div",{className:"x1ok221b",children:g.ctaButton}):null}),m.jsxs(c("BaseRowItem.react"),{children:[k?null:m.jsx("div",{className:"x1mnrxsn xafmxuu",children:m.jsx(c("TetraCircleButton.react"),{color:"tertiary",icon:d("fbicon")._(i("478233"),20),label:"Button for dismissing the context card",onPress:u,size:24,type:"deemphasized"})}),m.jsx("div",{className:k?null:"x1anpbxc x10l6tqk",children:m.jsx(d("InstreamAdsHideAdBehaviorContext").InstreamAdsHideAdBehaviorContext.Provider,{value:f,children:g.menuButton})})]})]})});return g.adUrl!=null&&x===!1?m.jsx(c("CometTrackingCodeContext").Provider,{value:B,children:m.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:15,children:m.jsx(c("CometPressable.react"),{display:"inline",label:y,linkProps:w,overlayDisabled:!0,xstyle:t===!0?n.watchTabPressable:n.pressable,children:K})})}):null}a.displayName=a.name+" [from "+f.id+"]";function s(a){var b=a.adCompletedPercentage,e=a.adPlaytime,f=a.callback,g=(k||(k=d("VideoPlayerHooks"))).useController();a=k.usePaused();var h=k.usePlaying();h=c("useDebouncedValue")(h,5);a=a&&!h;h=function(){g.getCurrentState().paused&&(g.play("user_initiated"),g.setMuted(!0,null))};var i=function(){g.getCurrentState().playing&&(g.pause("product_initiated"),g.seek(0))},j=function(){f&&f("PLAY_LONGER_AD")};return m.jsxs(c("CometPressable.react"),{onPress:j,xstyle:n.niVideoPressable,children:[m.jsx("div",{className:"x5yr21d x10l6tqk xh8yej3",onMouseEnter:h,onMouseLeave:i,children:a?m.jsx(c("PlayButtonItemOverlay.react"),{}):null}),e!=null&&e>=1?m.jsx("div",{className:"xal61yo x1lcm9me x1yr5g0i xrt01vj x10y3i5r xqo3gd xlr8s2x x1txq2hj x1qx5ct2 x10l6tqk x1n7h9c3",children:m.jsx("div",{className:"x14ctfv x1pg5gke x9otpla x10l6tqk xq7jlbq xwa60dl xuxw1ft",children:r(e)})}):null,m.jsx("div",{className:"x1ey2m1c x10l6tqk xh8yej3",children:m.jsx("div",{className:"xobhos8 xqu0tyb xh8yej3",children:m.jsx("div",{className:"x1wbbese xqu0tyb",style:{width:b+"%"}})})})]})}s.displayName=s.name+" [from "+f.id+"]";g["default"]=a}),98); __d("InstreamAdsFeedContextCardSurface.react",["CometVideoPlayerInstreamAdsFeedContextCardContext","InstreamAdsExtraFieldsContext","InstreamAdsFeedNIContextCardImpl.react","InstreamAdsFeedVideoContextCardImpl.react","InstreamAdsHideAdBehaviorContext","InstreamAdsPalmStateContext","InstreamPalmStateManagerContext","VideoPlayerInstreamAdsStateHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h;h||(h=d("react"));b=h;var i=b.useContext,j=b.useEffect,k=b.useRef,l=b.useState;function a(){var a=i(d("InstreamAdsHideAdBehaviorContext").InstreamAdsHideAdBehaviorContext),b=i(d("CometVideoPlayerInstreamAdsFeedContextCardContext").CometVideoPlayerInstreamAdsFeedContextCardContext),e=d("InstreamAdsPalmStateContext").useInstreamAdsPalmStateContext(),f=d("InstreamPalmStateManagerContext").useInstreamPalmStateManager(),g=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsFeedContextCardStateValue(),h=l(null),m=h[0],n=h[1],o=k(null),p=k(!1);h=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsFullScreenContextCardState();var q=h[0],r=h[1],s=d("InstreamAdsExtraFieldsContext").useInstreamAdsExtraFieldsContext();j(function(){var c={onClose:function(){(a==null?void 0:a.onClose)&&a.onClose(),p.current=!0,o.current=null,(b==null?void 0:b.onNodeChangeFunc)&&b.onNodeChangeFunc(null),r(null)},onOpen:function(){(a==null?void 0:a.onOpen)&&a.onOpen()}};n(c)},[a,b,r]);j(function(){if(m)if(e==="START_AD"||e==="START_NI_AD"||(e==="FETCH"||e==="INIT")&&q!==null||e==="END"&&!p.current){var a=e==="START_AD"||e==="START_NI_AD",d=e==="START_AD"&&(s==null?void 0:s.isTruncated),h=s==null?void 0:s.adDuration,i=s==null?void 0:s.adPlaytime,j=function(){p.current=!0,o.current=null,(b==null?void 0:b.onNodeChangeFunc)&&b.onNodeChangeFunc(null),r(null)},k=function(){f.setExtraFields(Object.assign(s||{},{isTruncated:!1}))},l=(g==null?void 0:g.isNIAd)!==!0?c("InstreamAdsFeedVideoContextCardImpl.react"):c("InstreamAdsFeedNIContextCardImpl.react"),n=l({adDuration:h,adPlaytime:i,contextCardHideAdBehavior:m,instreamAdsContextCardData:g,isAdsPlaying:a,isFullScreen:!1,isWatchTab:b.isWatchTab,onDismiss:j,onPlayFullLength:k,showPlayFullBtn:d});l=l({adDuration:h,adPlaytime:i,contextCardHideAdBehavior:m,instreamAdsContextCardData:g,isAdsPlaying:a,isFullScreen:!0,onDismiss:j,onPlayFullLength:k,showPlayFullBtn:d});p.current=!1;o.current=n;(b==null?void 0:b.onNodeChangeFunc)&&b.onNodeChangeFunc(n);r(l)}else o.current===null&&((b==null?void 0:b.onNodeChangeFunc)&&b.onNodeChangeFunc(null),r(null))},[m,e,g,b,r,s==null?void 0:s.isTruncated,s==null?void 0:s.adDuration,s==null?void 0:s.adClientToken,s==null?void 0:s.isNIAd,s==null?void 0:s.watchTillEnd,f,s]);return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("InstreamAdsCurrentInsertionContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||(h=d("react"));var i=h.useContext,j=b.createContext(null);function a(){return i(j)}g.InstreamAdsCurrentInsertionContext=j;g.useInstreamAdsCurrentInsertion=a}),98); __d("InstreamAdsIsEmptyContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||(h=d("react"));var i=h.useContext,j=b.createContext(!0);function a(){return i(j)}g.InstreamAdsIsEmptyContext=j;g.useInstreamAdsIsEmptyContext=a}),98); __d("InstreamAdsStartIndicator.react",["fbt","CometProgressRing.react","DateConsts","InstreamAdsCurrentInsertionContext","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||(i=d("react"));b=i;var l=b.useEffect,m=b.useRef;function a(){var a,b=m(null),e=m(null),f=m(null),g=(j||(j=d("VideoPlayerHooks"))).useController(),i=g.getPlayheadPosition();g=j.usePaused();var n=d("VideoPlayerInstreamAdsStateHooks").useStartIndicatorBeginningTimeState(),o=n[0],p=n[1];n=d("VideoPlayerInstreamAdsStateHooks").useAdBreaksTimeOffsetBeginningState();var q=n[0],r=n[1];n=(n=d("InstreamAdsCurrentInsertionContext").useInstreamAdsCurrentInsertion())==null?void 0:n.timeOffsetInMs;var s=((a=n)!=null?a:0)/d("DateConsts").MS_PER_SEC;l(function(){(e==null?void 0:e.current)&&(b==null?void 0:b.current)&&e.current.style.setProperty("width",(b.current.clientWidth+38).toString()+"px")});l(function(){var a;(o===null||i-((a=o)!=null?a:0)>((a=q)!=null?a:0))&&(p(i),r(s))},[i,s,p,o,r,q]);if(n==null||i-((a=o)!=null?a:0)>((n=q)!=null?n:0))return k.jsx(k.Fragment,{});a=s-i;n=o==null?0:(i-o)/(s-o)*100;var t="default",u=16,v=h._("__JHASH__BEvvefAAJAs__JHASH__"),w=function(){f.current&&(f.current.style.visibility="hidden")};return k.jsxs("div",{className:"x4afe7t x10e4vud xu5i820 xa3vuyk x10l6tqk xoie2o3",ref:f,children:[k.jsx("div",{className:"xal61yo x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1ey2m1c x1txq2hj xd7y6wv x10l6tqk x17qophe",ref:e}),k.jsxs("div",{className:"x1ey2m1c xd7y6wv x1hc1fzr x10l6tqk x17qophe",children:[k.jsx("div",{className:"x9otpla x1n2onr6 xr6gfmr xwa60dl",children:k.jsx(c("CometProgressRing.react"),{beginningPercentage:n,color:"light",duration:a,explicitStartTime:Date.now()-n/100*(a*1e3),onComplete:w,pause:g,size:u,type:t})}),k.jsx("div",{className:"x14ctfv x1pg5gke x132q4wb x9otpla x10l6tqk x10ick3y xwa60dl xuxw1ft",ref:b,children:v})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useInstreamAdsFetcher",["CometFeedStoryContext","CometRelay","InstreamAdsConfig","InstreamAdsCurrentInsertionContext","InstreamAdsExtraFieldsContext","InstreamAdsPalmStateContext","InstreamPalmStateManagerContext","VideoPlayerHooks","VideoPlayerTracePolicyContext","WebPixelRatio","createVideoStateHook","react","useInstreamAdsFetcherQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;c=i||d("react");var k=c.useEffect,l=c.useRef;e=d("createVideoStateHook").createVideoStateHook();var m=e.stateHook;f=d("createVideoStateHook").createVideoStateHook();var n=f.stateHook;c=d("createVideoStateHook").createVideoStateHook();var o=c.stateHook;e=d("createVideoStateHook").createVideoStateHook();var p=e.valueHook;f=d("createVideoStateHook").createVideoStateHook();var q=f.stateHook;c=d("createVideoStateHook").createVideoStateHook();var r=c.stateHook,s=h!==void 0?h:h=b("useInstreamAdsFetcherQuery.graphql");function t(a){return a==="GenericAttachmentMedia"||a==="PHOTO"}function a(a){var b=a.playerFormat,c=a.subOrigin,e=a.videoFBID,f=d("InstreamAdsPalmStateContext").useInstreamAdsPalmStateContext(),g=d("InstreamPalmStateManagerContext").useInstreamPalmStateManager(),h=d("CometRelay").useRelayEnvironment();a=m(null);var i=a[0],u=a[1];a=n(null);var v=a[0],w=a[1];a=o(null);var x=a[0],y=a[1],z=p({current:null}),A=d("InstreamAdsCurrentInsertionContext").useInstreamAdsCurrentInsertion();a=d("VideoPlayerTracePolicyContext").useVideoPlayerTracePolicy();var B=a.initialTracePolicy;a=a.routeTracePolicy;var C=(B=B)!=null?B:a,D=(j||(j=d("VideoPlayerHooks"))).useAdClientToken();B=q([null,null]);a=B[0];var E=B[1];B=r();var F=B[0],G=B[1],H=(B=d("CometFeedStoryContext").useCometFeedStoryContext())==null?void 0:B.storyID,I=j.useBroadcastStatus(),J=d("InstreamAdsExtraFieldsContext").useInstreamAdsExtraFieldsContext(),K=l({playerFormat:null});k(function(){K.current.playerFormat=b},[b]);k(function(){(f==="INIT"||f==="END")&&(z.current=null,u(null),E([null,null]))},[z,f,E,u]);k(function(){H!==null&&G(H);if(A==null)return;if(z.current!==null)return;if(I!=="LIVE"&&A.index===d("InstreamAdsConfig").UNIFIED_SCHEDULER_AD_INDEX)return;var a;I==="VOD_READY"?a="VOD":I==="LIVE"?a="LIVE":a="NONLIVE";a=d("CometRelay").fetchQuery(h,s,{adTriggerSource:A.adTriggerSource,first:10,hostVideoId:e,insertionPointOrigin:A.insertionPointOrigin,instreamPlacement:A.instreamPlacement,instreamVideoAdBreakIndex:A.index,instreamVideoAdType:a,isSponsorHostVideo:D!=null,playerFormat:K.current.playerFormat,playerSubOrigin:c,renderLocation:"feed_mobile",requestedAdFormat:A.adFormat,scale:d("WebPixelRatio").get(),storyIdentifier:F,tracePolicy:C});var b=a.subscribe({error:function(a){},next:function(a){var b=a.viewer.instream_video_ads.edges,c=a.viewer.instream_video_ads.query_refetch_interval_s;a=(a=(a=a.viewer)==null?void 0:(a=a.instream_video_ads)==null?void 0:a.should_show_ad_pod)!=null?a:!1;(b.length===0||a&&b.length===1)&&g.setExtraFields(Object.assign(J||{},{unifiedSchedulerRefetchIntervalSec:c}));if((!a&&b.length>0||b.length>1)&&z.current===null){var d,e=b[0].node,f=e.attachments[0].media.__typename;f=t(f);f=A.instreamPlacement==="NON_INTERRUPTIVE"||f;d=(d=A.adFormat)==null?void 0:d.startsWith("SKIPPABLE_VIDEO");var h=null;if(a){var i;b=b[1].node;h=b==null?void 0:(i=b.sponsored_data)==null?void 0:i.client_token;u([e,b]);z.current=[e,b]}else u([e]),z.current=[e];g.setExtraFields(Object.assign(J||{},{adClientToken:(i=e.sponsored_data)==null?void 0:i.client_token,adClientTokenSecond:h,adPodIndex:0,isAdPod:a,isNIAd:f,isSkippableAd:d,unifiedSchedulerRefetchIntervalSec:c}));g.setIsEmpty(!1);f?(y(null),w(e)):(w(null),y(e))}}});return function(){b.unsubscribe(),z.current=null}},[h,g,c,e,A,D,K,C,z,u,F,H,G,I,w,y]);return{NIAdStory:v,adPorableVideoID:a,instreamAdsStory:i,palmState:f,setAdPortableVideoID:E,videoAdStory:x}}g["default"]=a}),98); __d("PMVCometInterruptionsCounterReset",["CometRelay","PMVCometInterruptionsCounterResetMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("PMVCometInterruptionsCounterResetMutation.graphql");function a(a,b){b={mutation:i,onCompleted:b&&b.onSuccess,onError:b&&b.onFailure,variables:{}};return d("CometRelay").commitMutation(a,b)}g["default"]=a}),98); __d("PmvInterruptionsEventsFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1744185");b=d("FalcoLoggerInternal").create("pmv_interruptions_events",a);e=b;g["default"]=e}),98); __d("PMVMonetizationUtils",["PMVCometInterruptionsCounterReset","PmvInterruptionsEventsFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a){c("PMVCometInterruptionsCounterReset")(a,{onFailure:function(a){c("PmvInterruptionsEventsFalcoEvent").log(function(){return{debug_info:"error on resetting pmv comet interruptions counter",error_message:a.toString(),event:"pmv_comet_interruptions_counter_reset_error"}})},onSuccess:function(a){a.pmv_comet_interruptions_counter_reset===!0?c("PmvInterruptionsEventsFalcoEvent").log(function(){return{debug_info:"succeeded resetting pmv comet interruptions counter",event:"pmv_comet_interruptions_counter_reset"}}):c("PmvInterruptionsEventsFalcoEvent").log(function(){return{debug_info:"failed resetting pmv comet interruptions counter",event:"pmv_comet_interruptions_counter_reset_error"}})}})}g.PMVCometCounterReset=a}),98); __d("useInstreamAdsOrganicVideoControl",["CometRelay","InstreamAdsConfig","InstreamAdsExtraFieldsContext","InstreamAdsPalmStateContext","PMVMonetizationUtils","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","createVideoStateHook","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.useRef,l=c("requireDeferred")("CommercialBreakClickFalcoEvent").__setRef("useInstreamAdsOrganicVideoControl"),m=c("requireDeferred")("CommercialBreakEndFalcoEvent").__setRef("useInstreamAdsOrganicVideoControl");e=d("createVideoStateHook").createVideoStateHook("");var n=e.valueHook;function a(){var a=d("CometRelay").useRelayEnvironment(),b=d("InstreamAdsPalmStateContext").useInstreamAdsPalmStateContext(),c=(i||(i=d("VideoPlayerHooks"))).useController(),e=n({current:null}),f=d("InstreamAdsExtraFieldsContext").useInstreamAdsExtraFieldsContext(),g=(f==null?void 0:f.isAdPod)===!0&&(f==null?void 0:f.adPodIndex)===1,h=b==="END"&&g?f==null?void 0:f.adClientTokenSecond:f==null?void 0:f.adClientToken,o=f==null?void 0:f.isNIAd,p=i.useIsPremiumMusicVideo(),q=i.useIsNCSR(),r=(f==null?void 0:f.isSkippableAd)||b==="END"&&g,s=k(""),t=k(null),u=f==null?void 0:f.watchTillEnd,v=(f==null?void 0:f.adPlaytime)||0,w=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsPostRollEndedOrSkippedStateSetter();j(function(){if((b==="END"||g)&&(o===!0||t.current==="PLAY_LONGER_AD"||s.current!==h||!h)){if(b==="END"){var f=e.current;f&&c.unfreeze(f);e.current=null;if(c.getCurrentState().ended)w(!0);else{f=c.getCurrentState();f=f.paused;f&&c.play("commercial_break")}}if(t.current==="START_AD"&&(u===!0&&v=d("InstreamAdsConfig").DEFAULT_AD_COMPLETION_DURATION||r===!0)){var i=u!==!0&&r===!0;m.onReady(function(a){a.log(function(){return{commercial_break_ad_client_token:h,ending_reason:i?"skip_ad":"playback_finished"}})});i&&l.onReady(function(a){a.log(function(){return{ad_break_click_source:"skip_button_click",commercial_break_ad_client_token:h}})});(p||q)&&d("PMVMonetizationUtils").PMVCometCounterReset(a)}s.current=h}t.current=b},[h,a,p,c,b,w,e,u,o,q,v,r,g]);return e}g["default"]=a}),98); __d("useLiveInstreamAdsScheduler",["InstreamAdsConfig","InstreamAdsExtraFieldsContext","InstreamAdsIsEmptyContext","InstreamAdsPalmStateContext","InstreamPalmStateManagerContext","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","gkx","react","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.useRef,l=200,m=2e4,n=2e4;function a(){var a=d("VideoPlayerInstreamAdsStateHooks").useUnifiedSchedulerLastFetchTimeState(),b=a[0],e=a[1];a=d("VideoPlayerInstreamAdsStateHooks").useWaitingForAdFetchState();var f=a[0],g=a[1],h=k(f),o=(i||(i=d("VideoPlayerHooks"))).useController(),p=d("InstreamAdsPalmStateContext").useInstreamAdsPalmStateContext(),q=d("InstreamPalmStateManagerContext").useInstreamPalmStateManager(),r=d("InstreamAdsIsEmptyContext").useInstreamAdsIsEmptyContext(),s=k(r),t=i.useWatchTime(),u=i.useLastPlayedTime(),v=i.useIsLive(),w=d("InstreamAdsExtraFieldsContext").useInstreamAdsExtraFieldsContext(),x=k(0),y=d("InstreamAdsConfig").DEFAULT_FETCH_TIME_INTERVAL_MS;j(function(){s.current=r},[r]);j(function(){if(!v)return;function a(){if(p==="INIT"){var a={adFormat:null,adTriggerSource:d("InstreamAdsConfig").UNIFIED_SCHEDULER_TIGGER_SOURCE,index:d("InstreamAdsConfig").UNIFIED_SCHEDULER_AD_INDEX,insertionPointOrigin:null,instreamPlacement:"NON_INTERRUPTIVE",timeOffsetInMs:null};q.setCurrentInsertion(a);q.setState("FETCH")}}function f(){if(s.current===!0&&h.current===!0){c("setTimeout")(function(){f()},y);return}if(p==="FETCH"&&s.current===!1){(w==null?void 0:w.isNIAd)===!0&&(q.setState("START_NI_AD"),c("setTimeout")(function(){q.setState("INIT")},l));h.current=!1;g(!1);var a=t+(Date.now()-u);e(a)}}var i=o.subscribe(function(){if(c("gkx")("1638022")){var i;if(u===0)return;var j=t+(Date.now()-u);p==="END"&&q.setState("INIT");x.current=(i=w==null?void 0:w.unifiedSchedulerRefetchIntervalSec)!=null?i:d("InstreamAdsConfig").getUnifiedSchedulerFrequencyMs()/1e3;p==="INIT"&&(j>m&&(j-b>=x.current*1e3&&a()));j>d("InstreamAdsConfig").getUnifiedSchedulerFrequencyMs()&&p==="FETCH"&&h.current===!1&&(h.current=!0,g(!0),f(),c("setTimeout")(function(){p==="FETCH"&&(q.setState("INIT"),h.current===!0&&(e(t+(Date.now()-u)),g(!1),h.current=!1))},n))}});return function(){i.remove()}},[o,q,t,u,b,e,w,f,g,v,r,p])}g["default"]=a}),98); __d("useLiveInstreamPreRollAdsScheduler",["InstreamAdsConfig","InstreamAdsExtraFieldsContext","InstreamAdsIsEmptyContext","InstreamAdsPalmStateContext","InstreamPalmStateManagerContext","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","gkx","react","requireDeferred","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.useRef,l=c("requireDeferred")("CommercialBreakEndFalcoEvent").__setRef("useLiveInstreamPreRollAdsScheduler"),m=200;function a(a){var b=(i||(i=d("VideoPlayerHooks"))).useController(),e=d("InstreamAdsPalmStateContext").useInstreamAdsPalmStateContext(),f=d("InstreamPalmStateManagerContext").useInstreamPalmStateManager(),g=d("InstreamAdsIsEmptyContext").useInstreamAdsIsEmptyContext(),h=k(g),n=i.useLastPlayedTime(),o=i.useIsLive(),p=d("InstreamAdsExtraFieldsContext").useInstreamAdsExtraFieldsContext(),q=k(null),r=k(!1),s=k(!1),t=d("InstreamAdsConfig").getIsLivePrerollMaxFetchTimeMS(),u=d("InstreamAdsConfig").DEFAULT_FETCH_TIME_INTERVAL_MS,v=i.useWatchTime(),w=d("VideoPlayerInstreamAdsStateHooks").useUnifiedSchedulerLastFetchTimeState();w[0];var x=w[1];j(function(){q.current=p},[p]);j(function(){h.current=g},[g]);j(function(){if(!o)return;if(a.subOrigin!=="topic_live"&&a.subOrigin!=="channel_tab")return;function g(){e!=="FETCH"&&f.setState("END"),s.current=!0}function i(){var a={adFormat:null,adTriggerSource:d("InstreamAdsConfig").UNIFIED_SCHEDULER_TIGGER_SOURCE,index:d("InstreamAdsConfig").IS_LIVE_PREROLL_INDEX,insertionPointOrigin:null,instreamPlacement:"PRE_ROLL",timeOffsetInMs:null};f.setCurrentInsertion(a);f.setState("FETCH")}function j(){if((h.current===!0||q.current===null)&&s.current===!1){c("setTimeout")(function(){j()},u);return}if(h.current===!1&&s.current===!1){var a;((a=q.current)==null?void 0:a.isNIAd)===!0?(f.setState("START_NI_AD"),c("setTimeout")(function(){e!=="FETCH"&&f.setState("END")},m)):((a=q.current)==null?void 0:a.isNIAd)===!1&&f.setState("START_AD");s.current=!0;a=v+(Date.now()-n);x(a)}}function k(){c("setTimeout")(function(){h.current===!0&&s.current===!1&&(l.onReady(function(a){a.log(function(){return{ad_break_index:String(d("InstreamAdsConfig").IS_LIVE_PREROLL_INDEX),ending_reason:"timed_out"}})}),g())},t),j()}function w(){s.current===!1&&r.current===!1&&(r.current=!0,k())}var y=b.subscribe(function(){c("gkx")("1638022")&&((p==null?void 0:p.hasScheduledPrerollOnce)!==!0&&(e==="INIT"&&s.current===!1&&(f.setExtraFields({hasScheduledPrerollOnce:!0}),i()),w()))});return function(){y.remove()}},[b,f,v,n,p,o,g,e,u,t,x,a.playerFormat,a.subOrigin])}g["default"]=a}),98); __d("useVodInstreamAdsScheduler",["DateConsts","InstreamAdsConfig","InstreamAdsIsEmptyContext","InstreamAdsPalmStateContext","InstreamPalmStateManagerContext","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","clearTimeout","createVideoStateHook","react","setTimeout","useLocalStorage"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.useRef;e=d("createVideoStateHook").createVideoStateHook();var l=e.stateHook,m=200;function a(){var a=o(-1),b=(i||(i=d("VideoPlayerHooks"))).useController(),e=k(null),f=k(null),g=k(null),h=d("InstreamPalmStateManagerContext").useInstreamPalmStateManager(),l=d("InstreamAdsPalmStateContext").useInstreamAdsPalmStateContext(),p=d("InstreamAdsIsEmptyContext").useInstreamAdsIsEmptyContext(),q=k(p),r=k(null),s=k(null),t=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsMidRollsValue(),u=c("useLocalStorage")("instream_ads_vod_gap_rule",null),v=u[0],w=u[1];j(function(){q.current=p},[p]);j(function(){l==="START"&&(g.current!==null&&c("clearTimeout")(g.current),g.current=c("setTimeout")(function(){h.setState("START_AD");var a=Date.now();w(a)},d("InstreamAdsConfig").getNonLiveBeginningTransitionTimeMS()));return function(){g.current!==null&&c("clearTimeout")(g.current)}},[l,h,w]);j(function(){function g(){e.current!==null&&c("clearTimeout")(e.current),f.current!==null&&c("clearTimeout")(f.current),e.current=null,f.current=null,a.current=-1}function i(a){var f=b.getPlayheadPosition()*d("DateConsts").MS_PER_SEC,g=t[a];g=g.timeOffsetInMs;if(g==null)return;g=g-f-d("InstreamAdsConfig").getPreFetchTimeMs();if(g>d("InstreamAdsConfig").getPreFetchTimeDeltaMs()){e.current!==null&&c("clearTimeout")(e.current);f=g/2;e.current=c("setTimeout")(function(){i(a)},f);return}q.current!==!1&&h.setState("INIT");g=Date.now();v!==null&&g-v<=d("InstreamAdsConfig").getNonLiveMidrollGapRuleMS()?h.setState("INIT"):(h.setCurrentInsertion(t[a]),h.setState("FETCH"));e.current!==null&&(c("clearTimeout")(e.current),e.current=null)}function j(e){var i=b.getPlayheadPosition()*d("DateConsts").MS_PER_SEC,k=t[e].timeOffsetInMs;if(k==null)return;k=k-i;q.current===!1&&t[e].instreamPlacement==="MID_ROLL"&&h.setState("STARTING_INDICATOR");k=Math.min(k,d("InstreamAdsConfig").getRecheckStartMs());if(k>d("InstreamAdsConfig").getStartDeltaMs()){f.current!==null&&c("clearTimeout")(f.current);f.current=c("setTimeout")(function(){j(e)},k);return}q.current===!1?(t[e].instreamPlacement==="MID_ROLL"?h.setState("START"):t[e].instreamPlacement==="NON_INTERRUPTIVE"&&(h.setState("START_NI_AD"),g(),c("setTimeout")(function(){h.setState("END"),g(),l()},m)),a.current=e):(h.setState("INIT"),g(),l())}function k(a,b){if(a>=t.length)return;var g=t[a];g=g.timeOffsetInMs;if(g==null)return;g=g-b;g/=2;b=g-d("InstreamAdsConfig").getPreFetchTimeMs();if(g<0){l();return}b<=d("InstreamAdsConfig").getPreFetchTimeDeltaMs()?i(a):(e.current!==null&&c("clearTimeout")(e.current),e.current=c("setTimeout")(function(){i(a)},b));g-=d("InstreamAdsConfig").getStartingIndicatorMs();g<=d("InstreamAdsConfig").getStartDeltaMs()?j(a):(f.current!==null&&c("clearTimeout")(f.current),f.current=c("setTimeout")(function(){j(a)},g))}function l(){var c=b.getPlayheadPosition()*d("DateConsts").MS_PER_SEC,e=n(c,t);e===a.current&&(e+=1);k(e,c)}var o=(t==null?void 0:t.length)>0?b.subscribe(function(){var a=b.getCurrentState(),c=a.paused;a=a.playing;a&&a!==r.current?l():c&&c!==s.current&&g();r.current=a;s.current=c}):null;return function(){o&&o.remove(),g()}},[b,a,t,h,v])}function n(a,b){var c=b.length,e=c;for(c=c-1;c>=0;c--){var f=b[c].timeOffsetInMs;if(f!==null&&Number(f)>a+d("InstreamAdsConfig").getStartDeltaMs())e=c;else break}return e}function o(a){a=l({current:a});var b=a[0];a[1];return b}g["default"]=a}),98); __d("useVodInstreamPostRollAdsScheduler",["DateConsts","InstreamAdsConfig","InstreamAdsIsEmptyContext","InstreamAdsPalmStateContext","InstreamPalmStateManagerContext","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.useRef;function a(){var a=k(!1),b=d("InstreamAdsIsEmptyContext").useInstreamAdsIsEmptyContext(),c=k(b),e=(i||(i=d("VideoPlayerHooks"))).useDuration(),f=d("InstreamAdsPalmStateContext").useInstreamAdsPalmStateContext(),g=d("InstreamPalmStateManagerContext").useInstreamPalmStateManager(),h=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsPostRollValue(),l=k(!1),m=i.useController(),n=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsPostRollEndedOrSkippedStateSetter();j(function(){c.current=b},[b]);j(function(){function b(){var a=m.getPlayheadPosition()*d("DateConsts").MS_PER_SEC;a=e*d("DateConsts").MS_PER_SEC-a;return a<=d("InstreamAdsConfig").getPostRollPreFetchTimeMs()&&a>=d("InstreamAdsConfig").getPostRollPreFetchEndTimeMs()}function f(){g.setCurrentInsertion(h),g.setState("FETCH_POST_ROLL"),n(!1),a.current=!0}function i(){c.current===!1?g.setState("START_AD"):(g.setState("INIT"),n(!0)),l.current=!0}var j=h!==null?m.subscribe(function(){var c=m.getCurrentState(),d=c.ended;c=c.playing;c&&a.current===!1&&b()&&f();d&&a.current===!0&&l.current===!1&&i()}):null;return function(){j&&j.remove()}},[e,f,g,h,n,m])}g["default"]=a}),98); __d("useVodInstreamPreRollAdsScheduler",["InstreamAdsConfig","InstreamAdsIsEmptyContext","InstreamPalmStateManagerContext","PmvInterruptionsEventsFalcoEvent","VideoPlayerHooks","react","setTimeout","useVideoPlayerHasStartedPlayingAtLeastOnce"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.useRef;function a(a){var b=(i||(i=d("VideoPlayerHooks"))).useController(),e=k(null),f=d("InstreamPalmStateManagerContext").useInstreamPalmStateManager(),g=d("InstreamAdsIsEmptyContext").useInstreamAdsIsEmptyContext(),h=k(g),l=k(!1),m=k(!1),n=k(0),o=c("useVideoPlayerHasStartedPlayingAtLeastOnce")(),p=a.isPMV?d("InstreamAdsConfig").getPMVInterruptionsPreRollFetchTimeMs():d("InstreamAdsConfig").getNonPmvMaxFetchTimeMS(),q=a.isPMV?1e3:d("InstreamAdsConfig").DEFAULT_FETCH_TIME_INTERVAL_MS;j(function(){h.current=g},[g]);j(function(){function d(){f.setState("INIT");e.current=null;var a=b.getCurrentState();a=a.paused;a&&b.play("commercial_break");l.current=!0}function g(){if(h.current===!0&&l.current===!1){e.current=c("setTimeout")(function(){n.current+=q,g()},q);return}h.current===!1&&l.current===!1&&(f.setState("START_AD"),l.current=!0,a.isPMV&&c("PmvInterruptionsEventsFalcoEvent").log(function(){return{debug_info:"Total Fetch Time: "+n.current+" Max Fetch Time: "+p,event:"show_pmv_interruption",video_id:a.videoFBID}}))}function i(){c("setTimeout")(function(){h.current===!0&&(d(),a.isPMV&&c("PmvInterruptionsEventsFalcoEvent").log(function(){return{event:"fetch_pmv_interruption_time_out",video_id:a.videoFBID}}))},p),f.setState("FETCH_PRE_ROLL"),f.setCurrentInsertion(a.preRoll),g()}var j=b.subscribe(function(){var d=b.getCurrentState(),e=d.paused;d=d.playing;d&&l.current===!1&&a.preRoll!=null&&!o&&b.pause("commercial_break");e&&l.current===!1&&a.preRoll!=null&&m.current===!1&&!o&&(i(),c("PmvInterruptionsEventsFalcoEvent").log(function(){return{event:"pmv_interruption_requested",video_id:a.videoFBID}}),m.current=!0)});return function(){j.remove()}},[b,a.preRoll,f,a.videoFBID,p,o,q,a.isPMV])}g["default"]=a}),98); __d("InstreamAdsPalmPlayer.react",["CometErrorBoundary.react","InstreamAdsCurrentInsertionContext","InstreamAdsDisplay.react","InstreamAdsExtraFieldsContext","InstreamAdsFeedContextCardSurface.react","InstreamAdsHideAdBehaviorContext","InstreamAdsIsEmptyContext","InstreamAdsPalmStateContext","InstreamAdsStartIndicator.react","InstreamPalmStateManagerContext","VideoPlayerDebugInstreamAdsAPI","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","cr:1341999","react","requireDeferred","useInstreamAdsFetcher","useInstreamAdsOrganicVideoControl","useLiveInstreamAdsScheduler","useLiveInstreamPreRollAdsScheduler","useVodInstreamAdsScheduler","useVodInstreamPostRollAdsScheduler","useVodInstreamPreRollAdsScheduler"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react"));e=h;var k=e.useEffect,l=e.useRef,m=c("requireDeferred")("CommercialBreakStartingIndicatorFalcoEvent").__setRef("InstreamAdsPalmPlayer.react");e=40;var n={location:"bottom",size:e};function a(a){var e=a.midRolls,f=a.playerFormat,g=a.preRoll,h=a.subOrigin;a=a.videoFBID;var l=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsFullScreenContextCardStateValue(),m=(i||(i=d("VideoPlayerHooks"))).useVideoPlayerCaptionsReservationActions(),q=m.release,r=m.reserve;m=l!==null;k(function(){(f==="tahoe"||f==="full_screen")&&l!==null?r(n):q(n)},[m,f,r,q]);return j.jsx(c("CometErrorBoundary.react"),{children:j.jsxs(o,{children:[b("cr:1341999")&&j.jsx(b("cr:1341999"),{}),f==="tahoe"||f==="full_screen"?j.jsx("div",{className:"x1qqjqyx x10l6tqk xuerkxl xbwjon8",children:l}):null,c("InstreamAdsFeedContextCardSurface.react")?j.jsx(c("InstreamAdsFeedContextCardSurface.react"),{}):null,j.jsx(p,{midRolls:e,playerFormat:f,preRoll:g,subOrigin:h,videoFBID:a})]})})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b;a=a.children;var c=(b=d("VideoPlayerInstreamAdsStateHooks")).useInstreamAdsState(),e=c[0];c=c[1];var f=b.useInstreamAdsIsEmptyState(),g=f[0],h=f[1];f=b.useInstreamAdsCurrentInsertionState();var i=f[0],n=f[1];f=b.useInstreamAdsExtraFieldsState();var o=f[0];f=f[1];b=b.useInstreamAdsHideAdBehaviorState();var p=b[0];b=b[1];f=l({setCurrentInsertion:n,setExtraFields:f,setHideAdBehavior:b,setIsEmpty:h,setState:c});var q=o==null?void 0:o.adClientToken,r=(o==null?void 0:o.isAdPod)===!0?o==null?void 0:o.adClientTokenSecond:null;k(function(){function a(){n(null),h(!0)}(e==="INIT"||e==="END"||e==="START_NI_AD")&&a()},[n,h,e]);k(function(){e==="STARTING_INDICATOR"&&(m.onReady(function(a){a.log(function(){return{commercial_break_ad_client_token:q}})}),r!==null&&m.onReady(function(a){a.log(function(){return{commercial_break_ad_client_token:r}})}))},[e,q,r]);return j.jsx(d("InstreamAdsExtraFieldsContext").InstreamAdsExtraFieldsContext.Provider,{value:o,children:j.jsx(d("InstreamAdsPalmStateContext").InstreamAdsPalmStateContext.Provider,{value:e,children:j.jsx(d("InstreamAdsIsEmptyContext").InstreamAdsIsEmptyContext.Provider,{value:g,children:j.jsx(d("InstreamPalmStateManagerContext").InstreamPalmStateManagerContext.Provider,{value:f.current,children:j.jsx(d("InstreamAdsCurrentInsertionContext").InstreamAdsCurrentInsertionContext.Provider,{value:i,children:j.jsx(d("InstreamAdsHideAdBehaviorContext").InstreamAdsHideAdBehaviorContext.Provider,{value:p,children:a})})})})})})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.midRolls,e=a.playerFormat,f=a.preRoll,g=a.subOrigin;a=a.videoFBID;var h=(i||(i=d("VideoPlayerHooks"))).useIsPremiumMusicVideo();c("useVodInstreamPreRollAdsScheduler")({isPMV:h,preRoll:f,videoFBID:a});c("useVodInstreamPostRollAdsScheduler")();c("useVodInstreamAdsScheduler")();c("useLiveInstreamPreRollAdsScheduler")({playerFormat:e,subOrigin:g});c("useLiveInstreamAdsScheduler")();h=c("useInstreamAdsOrganicVideoControl")();f=c("useInstreamAdsFetcher")({playerFormat:e,subOrigin:g,videoFBID:a});a=f.NIAdStory;var k=f.adPorableVideoID,l=f.instreamAdsStory,m=f.palmState,n=f.setAdPortableVideoID;f=f.videoAdStory;c("VideoPlayerDebugInstreamAdsAPI").useVideoPlayerDebugAPIDefinition({midRolls:b,organicVideoFreezeTokenRef:h});return j.jsxs(j.Fragment,{children:[m==="STARTING_INDICATOR"&&j.jsx(c("InstreamAdsStartIndicator.react"),{}),j.jsx(c("InstreamAdsDisplay.react"),{NIAdStory:a,adPorableVideoID:k,freezeTokenRef:h,instreamAdsStory:l,palmState:m,playerFormat:e,setAdPortableVideoID:n,subOrigin:g,videoAdStory:f})]})}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useInstreamAdsHaloFetcher",["CometFeedStoryContext","CometRelay","InstreamAdsConfig","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","VideoPlayerTracePolicyContext","createVideoStateHook","react","useInstreamAdsHaloFetcherQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;c=i||d("react");var k=c.useEffect,l=c.useRef,m=c.useState;e=d("createVideoStateHook").createVideoStateHook();var n=e.stateHook,o=h!==void 0?h:h=b("useInstreamAdsHaloFetcherQuery.graphql");function a(a,b,c,e,f){var g=(j||(j=d("VideoPlayerHooks"))).useAdClientToken(),h=d("CometRelay").useRelayEnvironment(),i=d("VideoPlayerTracePolicyContext").useVideoPlayerTracePolicy(),p=i.initialTracePolicy;i=i.routeTracePolicy;var q=(p=p)!=null?p:i;p=m(!1);var r=p[0],s=p[1];i=m();p=i[0];var t=i[1];i=m(!1);var u=i[0],v=i[1];i=m();var w=i[0],x=i[1];i=m(!a);var y=i[0],z=i[1],A=j.usePaused(),B=l(h),C=j.useCurrentTimeThrottled(500),D=l(c),E=l(e),F=l(f);a=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsMidRollsState();var G=a[0];i=a[1];a=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsPostRollState();var H=a[0];a=a[1];var I=n(),J=I[0],K=I[1],L=(I=d("CometFeedStoryContext").useCometFeedStoryContext())==null?void 0:I.storyID,M=j.useBroadcastStatus(),N=d("InstreamAdsConfig").getHaloStartFetchTimeMS();k(function(){B.current=h},[h]);k(function(){var a;C*1e3>((a=b)!=null?a:0)&&v(!0)},[C,b]);k(function(){D.current=c},[c]);k(function(){E.current=e},[e]);k(function(){F.current=f},[f]);k(function(){L!==null&&K(L)},[J,L,K]);k(function(){C*1e3<=N&&z(!0)},[C,N]);k(function(){if(!y||G.length>0||r||A||H||!u)return;var a=d("CometRelay").fetchQuery(B.current,o,{hostVideoId:F.current,instreamVideoAdType:M==="VOD_READY"?"VOD":"NONLIVE",isSponsorHostVideo:g!=null,playerFormat:D.current,playerSubOrigin:E.current,storyIdentifier:J,tracePolicy:q}),b=a.subscribe({error:function(a){s(!0)},next:function(a){var b=a.scrubber.instream_video_ad_breaks;a=a.scrubber.post_roll_ad_break;b&&b.length>0&&t(b.map(function(a){return{adFormat:a.ad_format,index:a.index,insertionPointOrigin:a.insertion_point_origin,instreamPlacement:a.instream_placement,timeOffsetInMs:a.time_offset_in_ms}}));a&&x({adFormat:a.ad_format,index:a.index,insertionPointOrigin:a.insertion_point_origin,instreamPlacement:a.instream_placement,timeOffsetInMs:a.time_offset_in_ms});s(!0)}});return function(){b.unsubscribe()}},[g,G,y,i,a,J,r,A,H,q,M,u]);return{midRolls:p||[],postRoll:w,preRoll:null}}g["default"]=a}),98); __d("InstreamVideoAdBreaksPlayerImpl.react",["CometRelay","InstreamAdsPalmPlayer.react","InstreamVideoAdBreaksPlayerImpl_adBreaks.graphql","VideoPlayerInstreamAdsStateHooks","gkx","react","useInstreamAdsHaloFetcher"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useEffect,l=e.useMemo,m=c("gkx")("1908702"),n=["entry_point","inline_end_screen"],o=102;function a(a){var b=a.instreamExtraConfig,e=a.instreamVideoAdBreaksComet,f=a.playerFormat,g=a.subOrigin;a=a.videoFBID;e=p(e,f,g);var h=e.preRoll!==null,i=c("useInstreamAdsHaloFetcher")(h,b==null?void 0:b.instreamHaloDelayTimeSeconds,f,g,a);h=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsMidRollsState();var l=h[0],m=h[1];b=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsPostRollState();var n=b[0],o=b[1];k(function(){var a;l.length<=0&&(i==null?void 0:i.midRolls)&&((a=i.midRolls)==null?void 0:a.length)>0&&m(i.midRolls)},[i,l,m]);k(function(){n===null&&(i==null?void 0:i.postRoll)&&i.postRoll!==null&&o(i.postRoll)},[i,n,o]);return j.jsx(c("InstreamAdsPalmPlayer.react"),{midRolls:(i==null?void 0:i.midRolls)||[],playerFormat:f,preRoll:e.preRoll,subOrigin:g,videoFBID:a})}a.displayName=a.name+" [from "+f.id+"]";function p(a,c,e){var f=d("CometRelay").useFragment(h!==void 0?h:h=b("InstreamVideoAdBreaksPlayerImpl_adBreaks.graphql"),a);a=l(function(){return f.mid_rolls.map(function(a){return{adFormat:null,index:a.index,insertionPointOrigin:"VIDEO",instreamPlacement:a.instream_placement,timeOffsetInMs:a.time_offset_in_ms}}).filter(function(a){return a.instreamPlacement==="MID_ROLL"}).sort(function(a,b){return Number(a.timeOffsetInMs)-Number(b.timeOffsetInMs)})},[f.mid_rolls]);var g=null;c==="tahoe"&&f.pre_roll!=null?g={adFormat:null,index:f.pre_roll.index,instreamPlacement:f.pre_roll.instream_placement,timeOffsetInMs:null}:m&&n.includes(e)&&(g={adFormat:null,index:o,insertionPointOrigin:"VIDEO",instreamPlacement:"PRE_ROLL",timeOffsetInMs:null});return{midRolls:a,postRoll:null,preRoll:g}}g["default"]=a}),98); __d("CommercialBreakEndFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743431");b=d("FalcoLoggerInternal").create("commercial_break_end",a);e=b;g["default"]=e}),98); __d("CommercialBreakClickFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1993619");b=d("FalcoLoggerInternal").create("commercial_break_click",a);e=b;g["default"]=e}),98); __d("CommercialBreakStartingIndicatorFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743432");b=d("FalcoLoggerInternal").create("commercial_break_starting_indicator",a);e=b;g["default"]=e}),98);