;/*FB_PKG_DELIM*/ __d("SetHovercardInteractionPreferenceMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8371614642855977"}),null); __d("SetHovercardInteractionPreferenceMutation.graphql",["SetHovercardInteractionPreferenceMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XFBSetHovercardInteractionPreferenceHovercardSettingsResponsePayload",kind:"LinkedField",name:"xfb_set_hovercard_interaction_preference_hovercard_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"SetHovercardInteractionPreferenceMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"SetHovercardInteractionPreferenceMutation",selections:c},params:{id:b("SetHovercardInteractionPreferenceMutation_facebookRelayOperation"),metadata:{},name:"SetHovercardInteractionPreferenceMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("LiveVideoCometNuxForCVCQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5349533685085225"}),null); __d("LiveVideoCometNuxForCVCQuery.graphql",["LiveVideoCometNuxForCVCQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"nuxID"},{defaultValue:null,kind:"LocalArgument",name:"videoID"}],c=[{kind:"Variable",name:"nux_id",variableName:"nuxID"}],d={kind:"InlineFragment",selections:[{args:null,documentName:"LiveVideoCometNuxForCVCQuery",fragmentName:"LiveVideoCometNuxForCVCInternal_nux",fragmentPropName:"nux",kind:"ModuleImport"}],type:"DefaultNUX",abstractKey:null},e=[{kind:"Variable",name:"id",variableName:"videoID"}],f={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"LiveVideoCometNuxForCVCQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[d],storageKey:null},{alias:null,args:e,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"LiveVideoCometNuxForCVCInternal_video"}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"LiveVideoCometNuxForCVCQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,f],storageKey:null},{alias:null,args:e,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_premiere",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_live_audio_room_v2_broadcast",storageKey:null},f],storageKey:null}]},params:{id:b("LiveVideoCometNuxForCVCQuery_facebookRelayOperation"),metadata:{},name:"LiveVideoCometNuxForCVCQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometBatchNotificationsStateChangeSubscription_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5374406885991869"}),null); __d("CometBatchNotificationsStateChangeSubscription.graphql",["CometBatchNotificationsStateChangeSubscription_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"environment"},c={defaultValue:null,kind:"LocalArgument",name:"input"},d=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"BatchNotificationStateChangeSubscribeResponsePayload",kind:"LinkedField",name:"batch_notification_state_change_subscribe",plural:!1,selections:[{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"aggregated_notifications",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seen_state",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"environment",variableName:"environment"}],kind:"ScalarField",name:"notifications_unseen_count",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_update_timestamp",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"CometBatchNotificationsStateChangeSubscription",selections:d,type:"Subscription",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"CometBatchNotificationsStateChangeSubscription",selections:d},params:{id:b("CometBatchNotificationsStateChangeSubscription_facebookRelayOperation"),metadata:{subscriptionName:"batch_notification_state_change_subscribe"},name:"CometBatchNotificationsStateChangeSubscription",operationKind:"subscription",text:null}}}();e.exports=a}),null); __d("CometNotificationsStateChangeSubscription_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4984136874957718"}),null); __d("CometNotificationsStateChangeSubscription.graphql",["CometNotificationsStateChangeSubscription_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"environment"},c={defaultValue:null,kind:"LocalArgument",name:"input"},d=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"NotificationStateChangeSubscribeResponsePayload",kind:"LinkedField",name:"notification_state_change_subscribe",plural:!1,selections:[{alias:null,args:null,concreteType:"Notification",kind:"LinkedField",name:"notification",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"seen_state",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"environment",variableName:"environment"}],kind:"ScalarField",name:"notifications_unseen_count",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_update_timestamp",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"CometNotificationsStateChangeSubscription",selections:d,type:"Subscription",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"CometNotificationsStateChangeSubscription",selections:d},params:{id:b("CometNotificationsStateChangeSubscription_facebookRelayOperation"),metadata:{subscriptionName:"notification_state_change_subscribe"},name:"CometNotificationsStateChangeSubscription",operationKind:"subscription",text:null}}}();e.exports=a}),null); __d("PresenceStatusProviderSubscriptionComponentQuery.graphql",["relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"scale"}],b=[{kind:"Variable",name:"count",variableName:"count"}],c={alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"buddy_id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"PresenceStatusProviderSubscriptionComponentQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:b,concreteType:"ChatSidebarRankedContact",kind:"LinkedField",name:"chat_sidebar_contact_rankings",plural:!0,selections:[{kind:"InlineDataFragmentSpread",name:"PresenceStatusProviderSubscription_rankings",selections:[c,d,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[e,{args:[{kind:"Literal",name:"enableMsys",value:!1}],kind:"FragmentSpread",name:"MWChatContact_profile"}],storageKey:null}],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"PresenceStatusProviderSubscriptionComponentQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:b,concreteType:"ChatSidebarRankedContact",kind:"LinkedField",name:"chat_sidebar_contact_rankings",plural:!0,selections:[c,d,{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[e,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"first",value:1}],concreteType:"DirectInboxBroadcastBucketConnection",kind:"LinkedField",name:"story_bucket",plural:!1,selections:[{alias:null,args:null,concreteType:"DirectMessageThreadBucket",kind:"LinkedField",name:"nodes",plural:!0,selections:[e,{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"first_story_to_show",plural:!1,selections:[e,{alias:null,args:null,concreteType:"StoryCardSeenState",kind:"LinkedField",name:"story_card_seen_state",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_seen_by_viewer",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:"story_bucket(first:1)"},{alias:null,args:[{kind:"Literal",name:"height",value:36},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:36}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"availability",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_active_time",storageKey:null}]}],type:"User",abstractKey:null}],type:"Profile",abstractKey:"__isProfile"}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:"6054132501277619",metadata:{},name:"PresenceStatusProviderSubscriptionComponentQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("PresenceStatusProviderSubscription_ContactProfilesQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7188178894556645"}),null); __d("PresenceStatusProviderSubscription_ContactProfilesQuery.graphql",["PresenceStatusProviderSubscription_ContactProfilesQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"ids"},{defaultValue:null,kind:"LocalArgument",name:"scale"}],c=[{kind:"Variable",name:"ids",variableName:"ids"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},f={alias:null,args:[{kind:"Literal",name:"height",value:36},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:36}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"PresenceStatusProviderSubscription_ContactProfilesQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"chat_sidebar_contact_nodes",plural:!0,selections:[d,e,f],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"PresenceStatusProviderSubscription_ContactProfilesQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"chat_sidebar_contact_nodes",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,{kind:"TypeDiscriminator",abstractKey:"__isProfile"},e,f],storageKey:null}],storageKey:null}]},params:{id:b("PresenceStatusProviderSubscription_ContactProfilesQuery_facebookRelayOperation"),metadata:{},name:"PresenceStatusProviderSubscription_ContactProfilesQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5081675628568293"}),null); __d("PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery.graphql",["PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"chat_visibility",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"has_converted_to_view_side_settings",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[a,{alias:null,args:null,concreteType:"PresenceViewerBasedSettings",kind:"LinkedField",name:"presence_view_side_settings",plural:!1,selections:[c],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[a,{alias:null,args:null,concreteType:"PresenceViewerBasedSettings",kind:"LinkedField",name:"presence_view_side_settings",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery_facebookRelayOperation"),metadata:{},name:"PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("PresenceStatusProviderSubscription_rankings.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"PresenceStatusProviderSubscription_rankings"};e.exports=a}),null); __d("RTWebCallBlockSettingHooksQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5713943828634945"}),null); __d("RTWebCallBlockSettingHooksQuery.graphql",["RTWebCallBlockSettingHooksQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"call_blocked_until",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"RTWebCallBlockSettingHooksQuery",selections:a,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"RTWebCallBlockSettingHooksQuery",selections:a},params:{id:b("RTWebCallBlockSettingHooksQuery_facebookRelayOperation"),metadata:{},name:"RTWebCallBlockSettingHooksQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("RTWebCometRoomIncomingCallDialog_DisclaimerQuery$Parameters",["RTWebCometRoomIncomingCallDialog_DisclaimerQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("RTWebCometRoomIncomingCallDialog_DisclaimerQuery_facebookRelayOperation"),metadata:{},name:"RTWebCometRoomIncomingCallDialog_DisclaimerQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("RTWebIncomingUnsupportedE2EEDialogNameQuery$Parameters",["RTWebIncomingUnsupportedE2EEDialogNameQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("RTWebIncomingUnsupportedE2EEDialogNameQuery_facebookRelayOperation"),metadata:{},name:"RTWebIncomingUnsupportedE2EEDialogNameQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("VideoPlayerWithWatchAndScrollChainingWrapper_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerWithWatchAndScrollChainingWrapper_video",selections:[{args:null,kind:"FragmentSpread",name:"VideoPlayerWithWatchAndScrollChaining_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerWithWatchAndScrollChaining_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerWithWatchAndScrollChaining_video",selections:[{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollChaining_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerWithWatchAndScrollWarningScreen_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerWithWatchAndScrollWarningScreen_video",selections:[{alias:null,args:[{kind:"Literal",name:"framework",value:"WARNING_SCREENS"},{kind:"Literal",name:"location",value:"video_channel"}],concreteType:"CIXScreen",kind:"LinkedField",name:"cix_screen",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"view_model",plural:!1,selections:[{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithWatchAndScrollWarningScreen_video",fragmentName:"CometWarningScreenOverlay_data",fragmentPropName:"data",kind:"ModuleImport"}],type:"OverlayWarningScreenViewModel",abstractKey:null}],storageKey:null}],storageKey:'cix_screen(framework:"WARNING_SCREENS",location:"video_channel")'},{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"container_story",plural:!1,selections:[a],storageKey:null},a,{alias:null,args:null,concreteType:"VideoThumbnail",kind:"LinkedField",name:"preferred_thumbnail",plural:!1,selections:[{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null}],storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("VideoPlayerCaptionsControl_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"captions_url",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerCaptionsControl_video",selections:[a,{alias:null,args:null,kind:"ScalarField",name:"default_video_caption_locale",storageKey:null},{alias:null,args:null,concreteType:"VideoCaptionLocale",kind:"LinkedField",name:"video_available_captions_locales",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"localized_creation_method",storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"locale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"localized_language",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"localized_country",storageKey:null}],storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("VideoPlayerCaptionsSettingMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4806273429427493"}),null); __d("VideoPlayerCaptionsSettingMutation.graphql",["VideoPlayerCaptionsSettingMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"VideoPlayerCaptionsSettingResponsePayload",kind:"LinkedField",name:"video_player_captions_setting",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"VideoPlayerCaptionsSettingMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"VideoPlayerCaptionsSettingMutation",selections:c},params:{id:b("VideoPlayerCaptionsSettingMutation_facebookRelayOperation"),metadata:{},name:"VideoPlayerCaptionsSettingMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("VideoPlayerDefaultControlsImplLive_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerDefaultControlsImplLive_video",selections:[{args:null,kind:"FragmentSpread",name:"VideoPlayerLiveVideoControls_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerDefaultControlsImplNotLive_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerDefaultControlsImplNotLive_video",selections:[{args:null,kind:"FragmentSpread",name:"VideoPlayerScrubberPreview_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWatchAndScrollControl_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerCaptionsControl_video"},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_use_clipping",plural:!1,selections:[{args:null,documentName:"VideoPlayerDefaultControlsImplNotLive_video_if_viewer_can_use_clipping",fragmentName:"VideoPlayerClipVideoControl_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("VideoPlayerLiveVideoControls_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerLiveVideoControls_video",selections:[a,{alias:null,args:null,kind:"ScalarField",name:"is_clipping_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"live_rewind_enabled",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[a],storageKey:null},{args:null,kind:"FragmentSpread",name:"VideoPlayerWatchAndScrollControl_video"},{args:null,kind:"FragmentSpread",name:"LiveVideoLatencyMenuContextProvider_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerCaptionsControl_video"},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_see_community_moderation_tools",plural:!1,selections:[{args:null,documentName:"VideoPlayerLiveVideoControls_video",fragmentName:"VideoPlayerModeratorControl_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_use_live_rewind",plural:!1,selections:[{args:null,documentName:"VideoPlayerLiveVideoControls_video_if_viewer_can_use_live_rewind",fragmentName:"VideoPlayerLiveRewindControlsGroup_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_use_clipping",plural:!1,selections:[{args:null,documentName:"VideoPlayerLiveVideoControls_video_if_viewer_can_use_clipping",fragmentName:"VideoPlayerClipVideoControl_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"if_viewer_can_see_costreaming_tools",plural:!1,selections:[{args:null,documentName:"VideoPlayerLiveVideoControls_video_if_viewer_can_see_costreaming_tools",fragmentName:"VideoPlayerCostreamingControl_video",fragmentPropName:"video",kind:"ModuleImport"}],storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("VideoPlayerSkipControl_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[{defaultValue:"WNS",kind:"LocalArgument",name:"caller"},{defaultValue:"WNS",kind:"LocalArgument",name:"channelEntryPoint"},{defaultValue:1,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"cursor"},{defaultValue:null,kind:"LocalArgument",name:"seedVideoID"}],kind:"Fragment",metadata:null,name:"VideoPlayerSkipControl_video",selections:[a,{alias:null,args:[{kind:"Variable",name:"entry_point",variableName:"channelEntryPoint"}],concreteType:null,kind:"LinkedField",name:"video_channel",plural:!1,selections:[{alias:null,args:[{kind:"Variable",name:"after",variableName:"cursor"},{kind:"Variable",name:"caller",variableName:"caller"},{kind:"Variable",name:"exclude_video",variableName:"seedVideoID"},{kind:"Variable",name:"first",variableName:"count"}],concreteType:"VideoChannelFeedConnection",kind:"LinkedField",name:"video_channel_feed",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoChannelFeedEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StoryAttachment",kind:"LinkedField",name:"attachments",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"media",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[a,{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollUpNextCard_video"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[a],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],type:"Video",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"click_tracking_linkshim_cb",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"encrypted_click_tracking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"encrypted_tracking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewability_config",storageKey:null},{alias:null,args:null,concreteType:"CometClientViewConfig",kind:"LinkedField",name:"client_view_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"can_delay_log_impression",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_signal_imp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_vital_imp",storageKey:null}],storageKey:null}],type:"Story",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("VideoPlayerWatchAndScrollControl_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerWatchAndScrollControl_video",selections:[a,{alias:null,args:null,kind:"ScalarField",name:"playable_duration_in_ms",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_professional_features_for_watch",storageKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"},a],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_huddle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("useVideoPlayerWatchAndScrollControlNUXQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4901851916588521"}),null); __d("useVideoPlayerWatchAndScrollControlNUXQuery.graphql",["useVideoPlayerWatchAndScrollControlNUXQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"Literal",name:"nux_id",value:9347}],c={alias:null,args:null,kind:"ScalarField",name:"should_show",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useVideoPlayerWatchAndScrollControlNUXQuery",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[c],storageKey:"nux(nux_id:9347)"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"useVideoPlayerWatchAndScrollControlNUXQuery",selections:[{alias:null,args:a,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:"nux(nux_id:9347)"}]},params:{id:b("useVideoPlayerWatchAndScrollControlNUXQuery_facebookRelayOperation"),metadata:{},name:"useVideoPlayerWatchAndScrollControlNUXQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometWatchAndScrollChainingQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5586890634727556"}),null); __d("CometWatchAndScrollChainingQuery.graphql",["CometWatchAndScrollChainingQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"caller"},{defaultValue:null,kind:"LocalArgument",name:"chainingCursor"},{defaultValue:null,kind:"LocalArgument",name:"channelEntryPoint"},{defaultValue:null,kind:"LocalArgument",name:"count"},{defaultValue:null,kind:"LocalArgument",name:"scale"},{defaultValue:null,kind:"LocalArgument",name:"seedVideoID"}],c=[{kind:"Variable",name:"id",variableName:"seedVideoID"}],d=[{kind:"Variable",name:"entry_point",variableName:"channelEntryPoint"}],e=[{kind:"Variable",name:"after",variableName:"chainingCursor"},{kind:"Variable",name:"caller",variableName:"caller"},{kind:"Variable",name:"exclude_video",variableName:"seedVideoID"},{kind:"Variable",name:"first",variableName:"count"}],f={alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},i=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],j={alias:null,args:[{kind:"Literal",name:"height",value:202},{kind:"Literal",name:"sizing",value:"cover-fill-cropped"},{kind:"Literal",name:"width",value:360}],concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:i,storageKey:'image(height:202,sizing:"cover-fill-cropped",width:360)'},k=[h],l={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"click_tracking_linkshim_cb",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"encrypted_click_tracking",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"encrypted_tracking",storageKey:null},p={alias:null,args:null,kind:"ScalarField",name:"viewability_config",storageKey:null},q={alias:null,args:null,concreteType:"CometClientViewConfig",kind:"LinkedField",name:"client_view_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"can_delay_log_impression",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_signal_imp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_vital_imp",storageKey:null}],storageKey:null},r={kind:"InlineFragment",selections:k,type:"Node",abstractKey:"__isNode"};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CometWatchAndScrollChainingQuery",selections:[{alias:null,args:c,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"video_channel",plural:!1,selections:[{alias:null,args:e,concreteType:"VideoChannelFeedConnection",kind:"LinkedField",name:"video_channel_feed",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoChannelFeedEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StoryAttachment",kind:"LinkedField",name:"attachments",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"media",plural:!1,selections:[g,{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollContextSection_video"},h,j,{alias:null,args:null,concreteType:"MusicVideoMetadata",kind:"LinkedField",name:"pmv_metadata",plural:!1,selections:[g],storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:k,storageKey:null},l],type:"Video",abstractKey:null}],storageKey:null}],storageKey:null},m,n,o,p,q],type:"Story",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CometWatchAndScrollChainingQuery",selections:[{alias:null,args:c,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"video_channel",plural:!1,selections:[g,{alias:null,args:e,concreteType:"VideoChannelFeedConnection",kind:"LinkedField",name:"video_channel_feed",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoChannelFeedEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[f,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[g,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StoryAttachment",kind:"LinkedField",name:"attachments",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"media",plural:!1,selections:[g,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"title_with_fallback",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[g,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},h,{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:32}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:i,storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_professional_features_for_watch",storageKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"},{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"site",value:"www"}],kind:"ScalarField",name:"url",storageKey:'url(site:"www")'}],type:"User",abstractKey:null}],storageKey:null},h,j,{alias:null,args:null,concreteType:"MusicVideoMetadata",kind:"LinkedField",name:"pmv_metadata",plural:!1,selections:[g,h],storageKey:null},l],type:"Video",abstractKey:null},r,{kind:"InlineFragment",selections:k,type:"DynamicFeedAdAttachmentMedia",abstractKey:null},{kind:"InlineFragment",selections:k,type:"GenericAttachmentMedia",abstractKey:null},{kind:"InlineFragment",selections:k,type:"MontageImage",abstractKey:null},{kind:"InlineFragment",selections:k,type:"MontageVideo",abstractKey:null}],storageKey:null}],storageKey:null},m,n,o,p,q],type:"Story",abstractKey:null},r,{kind:"InlineFragment",selections:k,type:"FBShortsMidCardFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:k,type:"XFBDummyReelsInWatchIFU",abstractKey:null},{kind:"InlineFragment",selections:k,type:"XFBSFTFeedUnit",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},h],storageKey:null},h],storageKey:null}]},params:{id:b("CometWatchAndScrollChainingQuery_facebookRelayOperation"),metadata:{},name:"CometWatchAndScrollChainingQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometWatchAndScrollChaining_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometWatchAndScrollChaining_video",selections:[{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollFallbackCTAScreen_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("CometWatchAndScrollCloseButton_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometWatchAndScrollCloseButton_video",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_professional_features_for_watch",storageKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("CometWatchAndScrollContainer_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometWatchAndScrollContainer_video",selections:[{args:null,kind:"FragmentSpread",name:"useVideoOriginalDimensionsRelay_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("CometWatchAndScrollContextSection_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"scale"}],kind:"Fragment",metadata:null,name:"CometWatchAndScrollContextSection_video",selections:[{alias:null,args:null,kind:"ScalarField",name:"title_with_fallback",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:32}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"has_professional_features_for_watch",storageKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"},{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"site",value:"www"}],kind:"ScalarField",name:"url",storageKey:'url(site:"www")'}],type:"User",abstractKey:null}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("CometWatchAndScrollFallbackCTAScreen_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometWatchAndScrollFallbackCTAScreen_video",selections:[{args:null,kind:"FragmentSpread",name:"VideoPlayerReshareButton_video"}],type:"Video",abstractKey:null};e.exports=a}),null); __d("CometWatchAndScrollTopBar_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"uri_token",storageKey:null};return{argumentDefinitions:[{kind:"RootArgument",name:"scale"}],kind:"Fragment",metadata:null,name:"CometWatchAndScrollTopBar_video",selections:[a,b,{alias:null,args:null,kind:"ScalarField",name:"title_with_fallback",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollCloseButton_video"},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[b,a,{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:32}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{kind:"InlineFragment",selections:[c,{alias:null,args:null,kind:"ScalarField",name:"page_vanity_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"vanity",storageKey:null}],type:"Page",abstractKey:null},{kind:"InlineFragment",selections:[c,{kind:"InlineFragment",selections:[{alias:null,args:[{kind:"Literal",name:"site",value:"www"}],kind:"ScalarField",name:"url",storageKey:'url(site:"www")'}],type:"User",abstractKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"}],storageKey:null},{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"creation_story",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"identifier_token",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"debug_info",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tracking",storageKey:null}],storageKey:null}],type:"Video",abstractKey:null}}();e.exports=a}),null); __d("CometWatchAndScrollUpNextCard_video.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometWatchAndScrollUpNextCard_video",selections:[{alias:null,args:[{kind:"Literal",name:"height",value:202},{kind:"Literal",name:"sizing",value:"cover-fill-cropped"},{kind:"Literal",name:"width",value:360}],concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:'image(height:202,sizing:"cover-fill-cropped",width:360)'},{alias:null,args:null,kind:"ScalarField",name:"title_with_fallback",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("CometWatchAndScrollVideoQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6060461453985018"}),null); __d("CometWatchAndScrollVideoQuery.graphql",["CometWatchAndScrollVideoQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"chainingCursor"},c={defaultValue:null,kind:"LocalArgument",name:"chainingSeedVideoID"},d={defaultValue:null,kind:"LocalArgument",name:"scale"},e={defaultValue:null,kind:"LocalArgument",name:"videoID"},f=[{kind:"Variable",name:"id",variableName:"videoID"}],g={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"has_professional_features_for_watch",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"is_gaming_video",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"is_soundbites_video",storageKey:null},l={alias:null,args:null,concreteType:"PayToAccessPaywall",kind:"LinkedField",name:"pay_to_access_paywall",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"should_show_paywall",storageKey:null}],storageKey:null},m=[{kind:"Variable",name:"id",variableName:"chainingSeedVideoID"}],n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"uri_token",storageKey:null},p=[{kind:"Literal",name:"site",value:"www"}],q={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},r=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],s=[g],t={alias:null,args:null,kind:"ScalarField",name:"title_with_fallback",storageKey:null},u={kind:"InlineFragment",selections:s,type:"Node",abstractKey:"__isNode"};return{fragment:{argumentDefinitions:[a,c,d,e],kind:"Fragment",metadata:null,name:"CometWatchAndScrollVideoQuery",selections:[{alias:null,args:f,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[g,h,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[{kind:"InlineFragment",selections:[i],type:"VideoOwner",abstractKey:"__isVideoOwner"}],storageKey:null},j,k,{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollContainer_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerRelay_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWithLiveVideoEndscreen_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWithLiveVideoIndicator_video"},{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollTopBar_video"},{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollCloseButton_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWithWatchAndScrollWarningScreen_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWithAudioOverlay_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWithAudioBackground_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerWithWatchAndScrollChainingWrapper_video"},l],storageKey:null},{alias:"chainingSeedVideo",args:m,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{kind:"Defer",selections:[{args:[{kind:"Variable",name:"cursor",variableName:"chainingCursor"},{kind:"Variable",name:"seedVideoID",variableName:"chainingSeedVideoID"}],kind:"FragmentSpread",name:"VideoPlayerSkipControl_video"}]}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[a,c,e,d],kind:"Operation",name:"CometWatchAndScrollVideoQuery",selections:[{alias:null,args:f,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[g,h,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[n,{kind:"InlineFragment",selections:[i,o,{kind:"InlineFragment",selections:[{alias:null,args:p,kind:"ScalarField",name:"url",storageKey:'url(site:"www")'}],type:"User",abstractKey:null}],type:"VideoOwner",abstractKey:"__isVideoOwner"},g,q,{alias:null,args:[{kind:"Literal",name:"height",value:32},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:32}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:r,storageKey:null},{kind:"InlineFragment",selections:[o,{alias:null,args:null,kind:"ScalarField",name:"page_vanity_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"vanity",storageKey:null}],type:"Page",abstractKey:null}],storageKey:null},j,k,{alias:null,args:null,kind:"ScalarField",name:"original_width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"original_height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"original_rotation",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"animated_image_caption",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"broadcaster_origin",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"broadcast_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"broadcast_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dash_manifest",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_live_streaming",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_live_trace_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_looping",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_video_broadcast",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_podcast_video",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"loop_count",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_spherical",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_spherical_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"unsupported_browser_message",storageKey:null},{alias:null,args:null,concreteType:"MusicVideoMetadata",kind:"LinkedField",name:"pmv_metadata",plural:!1,selections:[n,g],storageKey:null},{alias:null,args:null,concreteType:"LatencySensitiveConfig",kind:"LinkedField",name:"latency_sensitive_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"broadcast_latency_sensitivity",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"LivePlaybackInstrumentationConfigParams",kind:"LinkedField",name:"live_playback_instrumentation_configs",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_client_triggered_trace_enabled",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_ncsr",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"permalink_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"dash_prefetch_experimental",storageKey:null},{alias:null,args:null,concreteType:"VideoCaptionLocale",kind:"LinkedField",name:"video_available_captions_locales",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"localized_creation_method",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"can_use_oz",storageKey:null},{alias:"playable_url_dash",args:[{kind:"Literal",name:"scrubbing_preference",value:"MPEG_DASH"}],kind:"ScalarField",name:"playable_url",storageKey:'playable_url(scrubbing_preference:"MPEG_DASH")'},{alias:null,args:null,kind:"ScalarField",name:"min_quality_preference",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_rss_podcast_video",storageKey:null},{alias:null,args:null,concreteType:"VideoPlayerShakaLiveP2PInit",kind:"LinkedField",name:"video_player_shaka_live_p2p_init",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"json_encoded_video_data",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"playable_url",storageKey:null},{alias:"playable_url_quality_hd",args:[{kind:"Literal",name:"quality",value:"HD"}],kind:"ScalarField",name:"playable_url",storageKey:'playable_url(quality:"HD")'},{alias:null,args:null,concreteType:"SphericalVideoFallbackUrls",kind:"LinkedField",name:"spherical_video_fallback_urls",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"hd",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"sd",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_latency_menu_enabled",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"fbls_tier",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_latency_sensitive_broadcast",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"comet_video_player_static_config",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"comet_video_player_context_sensitive_config",storageKey:null},{alias:null,args:null,concreteType:"VideoPlayerShakaPerformanceLoggerInit",kind:"LinkedField",name:"video_player_shaka_performance_logger_init",plural:!1,selections:[{args:null,documentName:"useVideoPlayerShakaPerformanceLoggerRelayImpl_video",fragmentName:"useVideoPlayerShakaPerformanceLoggerRelayImpl_init",fragmentPropName:"init",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"video_player_shaka_performance_logger_should_sample",storageKey:null},{alias:"video_player_shaka_performance_logger_init2",args:null,concreteType:"VideoPlayerShakaPerformanceLoggerInit",kind:"LinkedField",name:"video_player_shaka_performance_logger_init",plural:!1,selections:[{args:null,documentName:"useVideoPlayerShakaPerformanceLoggerBuilder_video",fragmentName:"useVideoPlayerShakaPerformanceLoggerBuilder_init",fragmentPropName:"init",kind:"ModuleImport"},{alias:null,args:null,kind:"ScalarField",name:"per_session_sampling_rate",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"autoplay_gating_result",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewer_autoplay_setting",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"can_autoplay",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"drm_info",storageKey:null},{alias:null,args:null,concreteType:"VideoP2PSettings",kind:"LinkedField",name:"p2p_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ticket",storageKey:null},{alias:null,args:null,concreteType:"VideoP2PSettingsConfig",kind:"LinkedField",name:"config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"delay_p2p_until_play",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"disable_hivejava_for_livevc",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"VideoHiveCommunityInfo",kind:"LinkedField",name:"community_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"community_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"community_name",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"VideoHiveInitializationOptions",kind:"LinkedField",name:"hive_initialization_options",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoHiveInitializationOptionHiveJava",kind:"LinkedField",name:"hive_java",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"min_version",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hive_tech_order",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"debug_level",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"AudioSettings",kind:"LinkedField",name:"audio_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"video_volume_setting",storageKey:null},g],storageKey:null},{alias:null,args:null,concreteType:"CaptionsSettings",kind:"LinkedField",name:"captions_settings",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"always_show_captions",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_background_color",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_background_opacity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_text_color",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"captions_text_size",storageKey:null},g],storageKey:null},{alias:null,args:null,concreteType:"VideoBroadcastLowLatencyConfig",kind:"LinkedField",name:"broadcast_low_latency_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"ll_desired_latency_ms",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ll_latency_tolerance_ms",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"audio_availability",storageKey:null},{alias:null,args:null,concreteType:"VideoMutedSegment",kind:"LinkedField",name:"muted_segments",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"mute_start_time_in_sec",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mute_end_time_in_sec",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"SphericalVideoRenderer",kind:"LinkedField",name:"spherical_video_renderer",plural:!1,selections:[{args:null,documentName:"VideoPlayerRelay_video_spherical_video_renderer",fragmentName:"VideoPlayerSphericalRelay_sphericalVideoRenderer",fragmentPropName:"sphericalVideoRenderer",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,concreteType:"VideoThumbnail",kind:"LinkedField",name:"preferred_thumbnail",plural:!1,selections:[{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:r,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"image_preview_payload",storageKey:null},g],storageKey:null},{alias:null,args:null,concreteType:"VideoIMFData",kind:"LinkedField",name:"video_imf_data",plural:!1,selections:[{args:null,documentName:"useVideoPlayerIMFFromVideoMetadataRelay_video",fragmentName:"useVideoPlayerIMFFromVideoMetadataRelay_video_imf_data",fragmentPropName:"video_imf_data",kind:"ModuleImport"}],storageKey:null},{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"live_end_text",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_huddle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_live_audio_room_v2_broadcast",storageKey:null},{alias:null,args:null,concreteType:"Event",kind:"LinkedField",name:"associated_paid_online_event",plural:!1,selections:s,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_paid_virtual_event_premium_content",storageKey:null},{alias:"breakingStatus",args:null,kind:"ScalarField",name:"breaking_status",storageKey:null},{alias:"videoId",args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:"isPremiere",args:null,kind:"ScalarField",name:"is_premiere",storageKey:null},{alias:"liveViewerCount",args:null,kind:"ScalarField",name:"live_viewer_count_read_only",storageKey:null},{alias:"rehearsalInfo",args:null,concreteType:"LiveVideoRehearsalInfo",kind:"LinkedField",name:"rehearsal_info",plural:!1,selections:[{alias:"typeName",args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"publish_time",storageKey:null},{alias:null,args:null,concreteType:"Video",kind:"LinkedField",name:"live_speaker_count_indicator",plural:!1,selections:[{args:null,documentName:"VideoPlayerWithLiveVideoIndicator_video",fragmentName:"HuddlesSpeakerCountIndicatorContainer_video",fragmentPropName:"video",kind:"ModuleImport"},g],storageKey:null},q,t,{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"creation_story",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"identifier_token",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"debug_info",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"tracking",storageKey:null},g,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"shareable",plural:!1,selections:[n,{alias:"wwwUrl",args:p,kind:"ScalarField",name:"url",storageKey:'url(site:"www")'},u],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"framework",value:"WARNING_SCREENS"},{kind:"Literal",name:"location",value:"video_channel"}],concreteType:"CIXScreen",kind:"LinkedField",name:"cix_screen",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"view_model",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithWatchAndScrollWarningScreen_video",fragmentName:"CometWarningScreenOverlay_data",fragmentPropName:"data",kind:"ModuleImport"}],type:"OverlayWarningScreenViewModel",abstractKey:null},u],storageKey:null}],storageKey:'cix_screen(framework:"WARNING_SCREENS",location:"video_channel")'},{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"container_story",plural:!1,selections:s,storageKey:null},{alias:null,args:[{kind:"Literal",name:"supported",value:["CometVideoPlayerWithLiveAudioRoomV2OverlayRenderer","CometVideoPlayerWithHuddleOverlayRenderer","CometVideoPlayerWithPodcastOverlayRenderer","VideoPlayerWithMusicSproutOverlayRenderer","CometVideoPlayerWithSoundbiteOverlayRenderer"]}],concreteType:null,kind:"LinkedField",name:"comet_video_player_audio_overlay_renderer",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioOverlay_video",fragmentName:"CometVideoPlayerWithLiveAudioRoomV2OverlayRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithLiveAudioRoomV2OverlayRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioOverlay_video",fragmentName:"CometVideoPlayerWithHuddleOverlayRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithHuddleOverlayRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioOverlay_video",fragmentName:"CometVideoPlayerWithPodcastOverlayRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithPodcastOverlayRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioOverlay_video",fragmentName:"VideoPlayerWithMusicSproutOverlayRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"VideoPlayerWithMusicSproutOverlayRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioOverlay_video",fragmentName:"CometVideoPlayerWithSoundbiteOverlayRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithSoundbiteOverlayRenderer",abstractKey:null}],storageKey:'comet_video_player_audio_overlay_renderer(supported:["CometVideoPlayerWithLiveAudioRoomV2OverlayRenderer","CometVideoPlayerWithHuddleOverlayRenderer","CometVideoPlayerWithPodcastOverlayRenderer","VideoPlayerWithMusicSproutOverlayRenderer","CometVideoPlayerWithSoundbiteOverlayRenderer"])'},{alias:null,args:[{kind:"Literal",name:"supported",value:["CometVideoPlayerWithHuddleBackgroundRenderer"]}],concreteType:null,kind:"LinkedField",name:"comet_video_player_audio_background_renderer",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioBackground_video",fragmentName:"CometVideoPlayerWithHuddleBackgroundRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithHuddleBackgroundRenderer",abstractKey:null}],storageKey:'comet_video_player_audio_background_renderer(supported:["CometVideoPlayerWithHuddleBackgroundRenderer"])'},{alias:null,args:null,kind:"ScalarField",name:"can_viewer_share",storageKey:null},l,{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"selected_latency_setting",storageKey:null}]},{"if":null,kind:"Defer",label:"VideoPlayerRelay_video$defer$InstreamVideoAdBreaksPlayer_video",selections:[g,{alias:null,args:null,concreteType:"InstreamExtraConfig",kind:"LinkedField",name:"instream_extra_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"instream_halo_delay_time_seconds",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"InstreamVideoAdBreaks",kind:"LinkedField",name:"instream_video_ad_breaks_comet",plural:!1,selections:[{args:null,documentName:"InstreamVideoAdBreaksPlayer_video_instream_video_ad_breaks_comet",fragmentName:"InstreamVideoAdBreaksPlayerImpl_adBreaks",fragmentPropName:"adBreaks",kind:"ModuleImport"}],storageKey:null}]}],storageKey:null},{alias:"chainingSeedVideo",args:m,concreteType:"Video",kind:"LinkedField",name:"video",plural:!1,selections:[{"if":null,kind:"Defer",label:"CometWatchAndScrollVideoQuery$defer$VideoPlayerSkipControl_video_izUbj",selections:[g,{alias:null,args:[{kind:"Literal",name:"entry_point",value:"WNS"}],concreteType:null,kind:"LinkedField",name:"video_channel",plural:!1,selections:[n,{alias:null,args:[{kind:"Variable",name:"after",variableName:"chainingCursor"},{kind:"Literal",name:"caller",value:"WNS"},{kind:"Variable",name:"exclude_video",variableName:"chainingSeedVideoID"},{kind:"Literal",name:"first",value:1}],concreteType:"VideoChannelFeedConnection",kind:"LinkedField",name:"video_channel_feed",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoChannelFeedEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"cursor",storageKey:null},{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[n,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StoryAttachment",kind:"LinkedField",name:"attachments",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"media",plural:!1,selections:[n,{kind:"InlineFragment",selections:[g,{alias:null,args:[{kind:"Literal",name:"height",value:202},{kind:"Literal",name:"sizing",value:"cover-fill-cropped"},{kind:"Literal",name:"width",value:360}],concreteType:"Image",kind:"LinkedField",name:"image",plural:!1,selections:r,storageKey:'image(height:202,sizing:"cover-fill-cropped",width:360)'},t,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[n,q,g],storageKey:null},h],type:"Video",abstractKey:null},u,{kind:"InlineFragment",selections:s,type:"DynamicFeedAdAttachmentMedia",abstractKey:null},{kind:"InlineFragment",selections:s,type:"GenericAttachmentMedia",abstractKey:null},{kind:"InlineFragment",selections:s,type:"MontageImage",abstractKey:null},{kind:"InlineFragment",selections:s,type:"MontageVideo",abstractKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"click_tracking_linkshim_cb",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"encrypted_click_tracking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"encrypted_tracking",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"viewability_config",storageKey:null},{alias:null,args:null,concreteType:"CometClientViewConfig",kind:"LinkedField",name:"client_view_config",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"can_delay_log_impression",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_signal_imp",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"use_banzai_vital_imp",storageKey:null}],storageKey:null}],type:"Story",abstractKey:null},u,{kind:"InlineFragment",selections:s,type:"FBShortsMidCardFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:s,type:"XFBDummyReelsInWatchIFU",abstractKey:null},{kind:"InlineFragment",selections:s,type:"XFBSFTFeedUnit",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},g],storageKey:'video_channel(entry_point:"WNS")'}]},g],storageKey:null}]},params:{id:b("CometWatchAndScrollVideoQuery_facebookRelayOperation"),metadata:{},name:"CometWatchAndScrollVideoQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometRouteActorToasterQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4961682900536225"}),null); __d("CometRouteActorToasterQuery.graphql",["CometRouteActorToasterQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"scale"}],c={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},e={alias:"toast_icon",args:[{kind:"Literal",name:"height",value:32},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:32}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"CometRouteActorToasterQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actor",plural:!1,selections:[c,d,e],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"CometRouteActorToasterQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actor",plural:!1,selections:[c,d,e,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("CometRouteActorToasterQuery_facebookRelayOperation"),metadata:{},name:"CometRouteActorToasterQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometVirtualCursorStatus",["UserAgent","cr:1345969","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";var h=null,i=null;function j(){i||(i=window.addEventListener("blur",function(){h=null,k()}))}function k(){i&&(i.remove(),i=null)}function a(a){h=a.keyCode,j()}function d(a){h=null,k()}if(typeof window!=="undefined"&&window.document&&window.document.createElement){f=document.documentElement;if(f)if(f.addEventListener)f.addEventListener("keydown",a,!0),f.addEventListener("keyup",d,!0);else if(f.attachEvent){f=f.attachEvent;f("onkeydown",a);f("onkeyup",d)}}var l={getKeyDownCode:function(){return h},isKeyDown:function(){return!!h}},m=!1,n=!1,o=null,p=!1;function q(a){var b=new Set(),d=l.isKeyDown(),e=a.WEBKIT_FORCE_AT_MOUSE_DOWN,f=a.clientX,g=a.clientY,h=a.isTrusted,i=a.mozInputSource,j=a.offsetX,k=a.offsetY,o=a.webkitForce;f===0&&g===0&&j>=0&&k>=0&&n&&h&&i==null&&b.add("Chrome");m&&n&&!d&&o!=null&&o= 10")&&i==null){o=a.target;e=o.clientHeight;d=o.clientWidth;f<0&&g<0?b.add("IE"):(j<0||j>d)&&(k<0||k>e)&&b.add("MSIE")}i===0&&h&&b.add("Firefox");return b}function r(){m=!0,c("setTimeout")(function(){m=!1},0)}function s(){n=!0,c("setTimeout")(function(){n=!1},0)}function t(a){p&&b("cr:1345969").log({extra_data:{source_app:"comet"},indicated_browsers:o,is_virtual_cursor_action:a})}function u(a){o===null&&(o=Array.from(q(a)));p=o!=null&&o.length>0;a=a.target!=null&&a.target.getAttribute!=null&&a.target.getAttribute("data-accessibilityid")==="virtual_cursor_trigger";t(a);c("setTimeout")(function(){p=!1,o=null},0)}function e(){document.addEventListener("click",u,!0),document.addEventListener("mousedown",r,!0),document.addEventListener("mouseup",s,!0)}g.initLogging=e}),98); __d("XUpdateTimezoneControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/ajax/autoset_timezone_ajax/",Object.freeze({is_forced:!1}),["/ajax/autoset_timezone_ajax.php","/ajax/timezone/update/","/ajax/timezone/update.php"],void 0);b=a;g["default"]=b}),98); __d("getBrowserTimezone",["FBLogger"],(function(a,b,c,d,e,f,g){"use strict";function a(){try{var a;a=((a=window.Intl)==null?void 0:a.DateTimeFormat)&&Intl.DateTimeFormat();a=(a==null?void 0:a.resolvedOptions)&&a.resolvedOptions();return a==null?void 0:a.timeZone}catch(a){c("FBLogger")("TimezoneAutoset").catching(a).warn("Could not read IANA timezone from browser");return null}}g["default"]=a}),98); __d("CometTimezoneUpdater",["UserTimezoneServerTimeData","XUpdateTimezoneControllerRouteBuilder","cometAsyncFetch","getBrowserGMTOffsetAdjustedForSkew","getBrowserTimezone","killswitch"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=d("UserTimezoneServerTimeData").force_update,b=d("UserTimezoneServerTimeData").server_gmt_offset,e=d("UserTimezoneServerTimeData").server_time,f=d("UserTimezoneServerTimeData").timezone;if(e==null||b==null)return;e=-c("getBrowserGMTOffsetAdjustedForSkew")(e);var g=c("killswitch")("TIMEZONE_SET_IANA_ZONE_NAME")?null:c("getBrowserTimezone")();(a===!0||e!==b||g!=null&&g!==f)&&c("cometAsyncFetch")(c("XUpdateTimezoneControllerRouteBuilder").buildExtraURL("/ajax/timezone/update.php",{}),{data:{gmt_off:e,is_forced:a,tz:g},method:"POST"})}b={updateTimezoneIfNecessary:a};e=b;g["default"]=e}),98); __d("SetHovercardInteractionPreference",["CometRelay","SetHovercardInteractionPreferenceMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var c=a.environment;a=a.input;d("CometRelay").commitMutation(c,{mutation:h!==void 0?h:h=b("SetHovercardInteractionPreferenceMutation.graphql"),variables:a})}g["default"]=a}),98); __d("LogoutHandler.react",["cr:11880"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:11880")}),98); __d("CometDialogStartAlignedTextHeader.react",["fbt","CometCircleButton.react","CometDialogHeaderContainer.react","CrossFilled24.svg.react","TetraText.react","emptyFunction","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.closeTestID;b=b===void 0?"close-button":b;b=a.disabled;b=b===void 0?!1:b;var d=a.withCloseButton;d=d===void 0?!0:d;var e=a.onClose;e=e===void 0?c("emptyFunction"):e;var f=a.text,g=a.id;a=a.withoutDivider;a=a===void 0?!0:a;return i.jsxs(c("CometDialogHeaderContainer.react"),{withDivider:!a,children:[f!=null&&i.jsx("div",{className:"x1d52u69 xw7yly9 x1yztbdb",children:i.jsx(c("TetraText.react"),{align:"start",id:g,isSemanticHeading:!0,type:"headlineEmphasized2",children:f})}),i.jsx("div",{className:"xqcrz7y x1d52u69 xktsk01 x14vqqas xod5an3",children:d?i.jsx(c("CometCircleButton.react"),{disabled:b,icon:c("CrossFilled24.svg.react"),label:h._("__JHASH__tnRfHlva-bL__JHASH__"),onPress:e,size:36,testid:void 0}):i.jsx("div",{className:"xc9qbxq xw7yly9 x1yztbdb x14qfxbe"})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometAlertDialogImpl.react",["fbt","CometDialog.react","CometDialogFooter.react","CometDialogStartAlignedTextHeader.react","TetraText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.body,d=a.close,e=a.onClose;a=a.title;return i.jsx(c("CometDialog.react"),{footer:i.jsx(c("CometDialogFooter.react"),{expanding:!1,primary:{label:(d=d)!=null?d:h._("__JHASH__XzprMQh2D7n__JHASH__"),onPress:e,testid:"CometAlertDialogImpl-closeButton"}}),header:i.jsx(c("CometDialogStartAlignedTextHeader.react"),{onClose:e,text:a}),label:a,children:i.jsx("div",{className:"x1swvt13 x1pi30zi x1n2onr6",children:i.jsx(c("TetraText.react"),{type:"body3",children:b})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometIconWirelessSlashFilled.react",["CometSVGIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsx(c("CometSVGIcon.react"),babelHelpers["extends"]({viewBox:"0 0 24 24"},a,{children:h.jsx("path",{d:"M23.7805.2195c.2925.293.2925.768 0 1.061l-22.5 22.5C1.134 23.927.942 24 .75 24c-.192 0-.384-.073-.5305-.2195-.2925-.293-.2925-.768 0-1.061l12.1967947-12.1971509c-2.3773758-.1150468-4.79162015.7286756-6.6038447 2.5401009-.3905.3905-1.0235.3905-1.414 0-.3905-.3905-.3905-1.024 0-1.414 2.65728981-2.65728981 6.3696459-3.62280965 9.8005664-2.90852144l2.430738-2.43186193C11.7816792 4.58111626 6.15198938 5.65271062 2.27735 9.52735c-.3905.3905-1.0235.3905-1.414 0-.3905-.3905-.3905-1.0235 0-1.414 4.6714534-4.67191574 11.571522-5.78608437 17.3096457-3.34843552L22.7195.2195c.293-.2925.768-.2925 1.061 0zM12 18.5c.6905 0 1.25.5595 1.25 1.25S12.6905 21 12 21s-1.25-.5595-1.25-1.25.5595-1.25 1.25-1.25zm1.4175-4.81495c.9705.2455 1.8905.741 2.6485 1.499.3905.3905.3905 1.0235 0 1.414-.1955.1955-.451.293-.707.293-.256 0-.512-.0975-.707-.293-.7835333-.7835333-1.8301422-1.1445778-2.8581093-1.0880116L11.574 15.52855l1.8435-1.8435zm3.8154-3.8154c.848.4725 1.649 1.059 2.3685 1.779.391.39.391 1.023 0 1.414-.195.195-.451.293-.707.293-.2555 0-.5115-.098-.707-.293-.7285-.728-1.5575-1.291-2.439-1.7085zm2.1908-2.1908l1.4425-1.4425c.8.545 1.5615 1.168 2.2705 1.877.3905.3905.3905 1.0235 0 1.414-.1955.1955-.451.293-.707.293-.256 0-.5115-.0975-.707-.293-.5933333-.59333333-1.2283333-1.11861111-1.895162-1.57959491L19.4237 7.67885l1.4425-1.4425z"})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometUncaughtError.react",["fbt","CometContentArea.react","NullStateGeneral","TetraNullState.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(){return i.jsx("div",{className:"x6s0dn4 x78zum5 x1dr59a3 xl56j7k xixxii4 xh8yej3",children:i.jsx(c("CometContentArea.react"),{verticalAlign:"middle",children:i.jsx(c("TetraNullState.react"),{headline:h._("__JHASH__GbFoxuI3sCw__JHASH__"),icon:c("NullStateGeneral")})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometToasterView_DO_NOT_USE.react",["BaseContextualLayerAnchorRoot.react","BasePortal.react","BaseToastAnimationInternal.react","CometGlobalPanelGating","XPlatReactToasterView.react","gkx","react","useCometRouterState","useToasterStateManager"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useEffect,j=b.useState,k={list:{display:"x78zum5",flexDirection:"xdt5ytf",listStyle:"xe8uvvx",maxWidth:"x193iq5w",$$css:!0},root:{bottom:"x1ey2m1c",display:"x78zum5",end:"xds687c",pointerEvents:"x47corl",position:"xixxii4",start:"x1uvyrtv",zIndex:"xoegz02",$$css:!0},rootBlue:{zIndex:"x1jvg36b",$$css:!0},rootWithGlobalPanelHome:{start:"x17qophe","@media (max-width: 1159px)_start":"xv0u79y",$$css:!0},rootWorkplaceLegacy:{zIndex:"xdwmgzo",$$css:!0},toast:{paddingTop:"xyamay9",paddingEnd:"x1pi30zi",paddingBottom:"x1l90r2v",paddingStart:"x1swvt13",pointerEvents:"x71s49j","@media (max-width: 899px)_maxWidth":"xx1nl2z",$$css:!0}},l={center:{justifyContent:"xl56j7k",$$css:!0},end:{justifyContent:"x13a6bvl",$$css:!0},start:{justifyContent:"x1nhvcw1",$$css:!0}},m={full:{maxWidth:"x193iq5w",$$css:!0},regular:{maxWidth:"xpqan2r",$$css:!0}};function a(a){var b=a.align;b=b===void 0?"start":b;var e=a.filterToasts,f=a.maxVisible;f=f===void 0?1:f;a=a.maxWidth;var g=a===void 0?"full":a,n=c("useToasterStateManager")();a=j(function(){return n.getEmptyState()});var o=a[0],p=a[1];i(function(){var a=n.registerView(p,0);return a.remove},[n]);a=((a=c("useCometRouterState")())==null?void 0:a.main.route.tabKey)==="home";return h.jsx(c("BasePortal.react"),{target:document.body,xstyle:[k.root,c("gkx")("708253")?d("CometGlobalPanelGating").isGlobalPanelVisible()&&a?k.rootWithGlobalPanelHome:null:c("gkx")("1341692")?k.rootWorkplaceLegacy:k.rootBlue,l[b]],children:h.jsx("ul",{className:"x78zum5 xdt5ytf xe8uvvx x193iq5w",children:h.jsx(c("XPlatReactToasterView.react"),{filterToasts:e,maxVisible:f,onExpireToast:function(a){n.expire(a)},toasterState:o,children:function(a,b,d,e){return h.jsx(c("BaseToastAnimationInternal.react"),{expired:d,id:b,position:e,xstyle:[k.toast,m[c("gkx")("1196")?"regular":g]],children:h.jsx(c("BaseContextualLayerAnchorRoot.react"),{children:a})},e)}})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("addCometProfileSwitchAnnotation",["JSScheduler","isRecentProfileSwitchSessionStorage","profileSwitchOriginSessionStorage"],(function(a,b,c,d,e,f,g){"use strict";function a(a){d("JSScheduler").scheduleLoggingPriCallback(function(){var b=c("isRecentProfileSwitchSessionStorage").getAndRemove();b&&a.addAnnotationInt("is_recent_profile_switch",b.didSwitchToMainProfile?2:1);b=c("profileSwitchOriginSessionStorage").getAndRemove();b&&a.addMetadata("origin",b.origin)})}g["default"]=a}),98); __d("GhlTestUbtFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1942319");c=b("FalcoLoggerInternal").create("ghl_test_ubt",a);e.exports=c}),null); __d("CometGHLTestUBT",["GhlTestUbtFalcoEvent","JSScheduler","ghlTestUBT"],(function(a,b,c,d,e,f,g){"use strict";function a(a){d("JSScheduler").scheduleLoggingPriCallback(function(){c("ghlTestUBT")(function(b,d){b&&a.addGlobalMetadata("adblocker_enabled",1);return c("GhlTestUbtFalcoEvent").log(function(){return{recent:d,ubt:b}})})})}g["default"]=a}),98); __d("CometErrorLogging",["ClientConsistency","Env","ErrorGuard","ErrorSetup","ErrorTransport","JSErrorLoggingConfig","SiteData","WebSession"],(function(a,b,c,d,e,f,g){"use strict";function a(a){c("ErrorGuard").skipGuardGlobal(c("Env").nocatch);b=a;if(c("JSErrorLoggingConfig").sampleWeight!=null){c("ErrorSetup").setup({additional_client_revisions:c("ClientConsistency").getAdditionalRevisions(),appId:c("JSErrorLoggingConfig").appId,cavalry_lid:b,client_revision:c("SiteData").client_revision,extra:c("JSErrorLoggingConfig").extra,loggingFramework:"comet",projectBlocklist:c("JSErrorLoggingConfig").projectBlocklist,push_phase:c("SiteData").push_phase,report_source:c("JSErrorLoggingConfig").report_source,report_source_ref:c("JSErrorLoggingConfig").report_source_ref,sample_weight:(a=c("JSErrorLoggingConfig").sampleWeight)!=null?a:0,script_path:"/comet",server_revision:c("SiteData").server_revision,spin:c("SiteData").spin,web_session_id:d("WebSession").getId()},d("ErrorTransport").log)}}c("ErrorSetup").preSetup();g.init=a}),98); __d("CometBootloaderEventsTypedLoggerLite",["generateLiteTypedLogger"],(function(a,b,c,d,e,f){"use strict";e.exports=b("generateLiteTypedLogger")("logger:CometBootloaderEventsLoggerConfig")}),null); __d("HasteResponseFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1823926");c=b("FalcoLoggerInternal").create("haste_response",a);e.exports=c}),null); __d("CometBootloaderLoggerUtil",["BootloaderEvents","BootloaderEventsPerf","CometBootloaderEventsTypedLoggerLite","CometTimeSpentNavigation","HasteResponseFalcoEvent","ResourceTimingStore","SiteData","performanceNavigationStart"],(function(a,b,c,d,e,f,g){"use strict";var h=!1;function a(a){var b=a.bl_sample_rate,e=a.hr_sample_rate,f=a.parent_lid;if(h||!(b||e))return;h=!0;d("ResourceTimingStore").init();var g=function(a){return{ms_since_navstart:Math.round(a-c("performanceNavigationStart")()),parent_lid:f,pkg_cohort:c("SiteData").pkg_cohort,request_path:(a=c("CometTimeSpentNavigation").getPathInfo())==null?void 0:a.name,svn_rev:c("SiteData").client_revision}};e&&d("BootloaderEvents").onHasteResponse(function(a){return c("HasteResponseFalcoEvent").log(function(){var b=d("BootloaderEventsPerf").computeHRData(a),c=d("BootloaderEventsPerf").flattenData(b);return babelHelpers["extends"]({},c,g(b.start_time))})});b&&d("BootloaderEvents").onBootload(function(a){a=d("BootloaderEventsPerf").computeBLData(a);var e=d("BootloaderEventsPerf").flattenData(a);c("CometBootloaderEventsTypedLoggerLite").log(babelHelpers["extends"]({},e,g(a.start_time)),{weight:b})})}g.initLogging=a}),98); __d("CometPixelRatioUpdater",["Cookie","Run","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";var h="dpr";function i(a){c("Cookie").set(h,String(a))}function j(){window.devicePixelRatio!==d("WebPixelRatio").get()&&i(window.devicePixelRatio)}function a(){j(),d("Run").onBeforeUnload(j,!1),"onpagehide"in window&&window.addEventListener("pageHide",j)}g.startDetecting=a}),98); __d("CometNetworkStatusToast",["fbt","ix","BaseToasterStateManager","CometIconWirelessSlashFilled.react","CometRelayEnvironmentFactory","NetworkStatus","SVGIcon","TetraIcon.react","cometPushToast","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=null;function l(a){a=a.online;var b=c("BaseToasterStateManager").getInstance();k!=null&&(b.expire(k),k=null);k=a?d("cometPushToast").cometPushToast({icon:j.jsx(c("TetraIcon.react"),{color:"positive",icon:d("fbicon")._(i("485124"),24)}),message:h._("__JHASH__Twor-U8sZs8__JHASH__")},4e3,b):d("cometPushToast").cometPushToast({action:{label:h._("__JHASH__mzjg0e604Yh__JHASH__"),onPress:function(){d("CometRelayEnvironmentFactory").commitLocalUpdateForEachEnvironment(function(a,b,c){c.invalidateStore()})}},icon:j.jsx(c("TetraIcon.react"),{color:"disabled",icon:d("SVGIcon").legacySVGIcon(c("CometIconWirelessSlashFilled.react")),size:24}),message:h._("__JHASH__px_Aor7szAo__JHASH__")},Infinity,b)}function a(){c("NetworkStatus").onChange(l)}g.subscribe=a}),98); __d("DetectBrokenProxyCache",["AsyncSignal","Cookie","URI"],(function(a,b,c,d,e,f){var g;function a(a,c){var d=b("Cookie").get(c);if(d!=a&&d!=null&&a!="0"){c={c:"si_detect_broken_proxy_cache",m:c+" "+a+" "+d};a=new(g||(g=b("URI")))("/platform/scribe_endpoint.php").getQualifiedURI().toString();new(b("AsyncSignal"))(a,c).send()}}e.exports={run:a}}),null); __d("SimplePageLoadLogger",["ODS","performance"],(function(a,b,c,d,e,f,g){"use strict";function a(){d("ODS").bumpEntityKey(1678,"www_client_navigations",h())}function h(){if(c("performance").navigation==null||c("performance").navigation.type==null)return"UNSUPPORTED";switch(c("performance").navigation.type){case c("performance").navigation.TYPE_NAVIGATE:return"NAVIGATE";case c("performance").navigation.TYPE_RELOAD:return"RELOAD";case c("performance").navigation.TYPE_BACK_FORWARD:return"BACK_FORWARD";case c("performance").navigation.TYPE_RESERVED:return"RESERVED";default:return"UNKNOWN"}}g.logPageNavigationType=a}),98); __d("CometRootDeferredShared",["CometBootloaderLoggerUtil","CometNetworkStatusToast","CometVCTracker","CometVirtualCursorStatus","DeferredCookie","DetectBrokenProxyCache","ErrorGuard","JSScheduler","SimplePageLoadLogger","WebStorageMonster","cr:10026","cr:1201738","cr:1332233","cr:1516609","cr:1813330","cr:2718","cr:653","currentCometRouterInstance"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var e=a.blLoggingCavalryFields,f=a.deferredCookies,g=a.userID;c("ErrorGuard").applyWithGuard(function(){return d("CometBootloaderLoggerUtil").initLogging(e)},null,[]);c("ErrorGuard").applyWithGuard(function(){return d("CometVirtualCursorStatus").initLogging()},null,[]);c("ErrorGuard").applyWithGuard(function(){return d("CometNetworkStatusToast").subscribe()},null,[]);b("cr:10026")!=null&&c("ErrorGuard").applyWithGuard(function(){return b("cr:10026")(function(){var a;return(a=d("currentCometRouterInstance").get())==null?void 0:(a=a.getCurrentRouterState())==null?void 0:(a=a.main)==null?void 0:a.route})},null,[]);c("ErrorGuard").applyWithGuard(function(){return d("SimplePageLoadLogger").logPageNavigationType()},null,[]);d("JSScheduler").scheduleSpeculativeCallback(function(){c("WebStorageMonster").schedule()});d("JSScheduler").scheduleSpeculativeCallback(function(){d("DetectBrokenProxyCache").run(g,"c_user")});b("cr:1201738")&&c("CometVCTracker").VisualCompletionTraceObserver.subscribe(function(a){a.interactionType==="INITIAL_LOAD"&&b("cr:1201738").init("comet.idle")});b("cr:653")&&c("CometVCTracker").VisualCompletionTraceObserver.subscribe(function(a){a.interactionType==="INITIAL_LOAD"&&b("cr:653").init()});Object.keys(f).forEach(function(a){var b=f[a],d=b.expiration_for_js,e=b.first_party_only,g=b.path,h=b.secure;b=b.value;c("DeferredCookie").addToQueue(a,b,d,g,e,!1,h)});b("cr:1332233")&&c("ErrorGuard").applyWithGuard(function(){return b("cr:1332233")()},null,[]);b("cr:1516609")!=null&&c("ErrorGuard").applyWithGuard(function(){return b("cr:1516609").initSignalCollection()},null,[]);b("cr:1813330")&&c("ErrorGuard").applyWithGuard(function(){return b("cr:1813330").init()},null,[]);b("cr:2718")&&c("ErrorGuard").applyWithGuard(function(){return b("cr:2718").init()},null,[])}g.initDeferred=a}),98); __d("CometRootDeferred",["CometRootDeferredShared","CometTimezoneUpdater","JSScheduler","SketchComet"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.sketchInfo;a=babelHelpers.objectWithoutPropertiesLoose(a,["sketchInfo"]);b!=null&&d("JSScheduler").scheduleSpeculativeCallback(function(){c("SketchComet").solveAllPrimitivesAndCallAsyncController(b.seed1,b.seed2,b.rounds)});d("CometRootDeferredShared").initDeferred(a);c("CometTimezoneUpdater").updateTimezoneIfNecessary()}g.initDeferred=a}),98); __d("LiveVideoCometNuxForCVC.react",["CometPlaceholder.react","CometRelay","LiveVideoCometNuxForCVCQuery.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("LiveVideoCometNuxForCVCQuery.graphql");function a(a){a=a.videoID;a=d("CometRelay").useLazyLoadQuery(j,{nuxID:8030,videoID:a});return i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:a.nux,props:{video:a.video}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WebBrowserDimensionsTypedLoggerLite",["generateLiteTypedLogger"],(function(a,b,c,d,e,f){"use strict";e.exports=b("generateLiteTypedLogger")("logger:WebBrowserDimensionsLoggerConfig")}),null); __d("CometBrowserDimensionsLogger",["CometDebounce","Cookie","ExecutionEnvironment","SiteData","WebBrowserDimensionsTypedLoggerLite","getViewportDimensions","isInIframe"],(function(a,b,c,d,e,f,g){"use strict";var h=null,i=!1,j={height:0,width:0};function k(){h===null&&(h=c("getViewportDimensions")());return h}function l(){var a=c("getViewportDimensions")(),b=a.height;a=a.width;(j.width!==a||j.height!==b)&&(j={height:b,width:a},c("Cookie").set("wd",a+"x"+b))}function m(){if(!c("ExecutionEnvironment").canUseDOM||c("isInIframe")()||i)return;i=!0;l();window.addEventListener("resize",c("CometDebounce")(l,{wait:250}),{passive:!0});window.addEventListener("focus",l,{passive:!0})}function a(a){var b,d=k();m();b={client_hint_width:a==null?void 0:a.clientHintWidth,pixel_ratio:(b=window.devicePixelRatio)!=null?b:1,screen_x:window.screen.width,screen_y:window.screen.height,server_pixel_ratio:c("SiteData").pr,server_viewport_x:a==null?void 0:a.viewportWidth,server_viewport_y:a==null?void 0:a.viewportHeight,viewport_x:d.width,viewport_y:d.height};window.navigator&&window.navigator.hardwareConcurrency&&(b.cpu_cores_count=window.navigator.hardwareConcurrency);if(window.innerWidth>0&&window.outerWidth>0){a=Math.round(window.outerWidth/window.innerWidth*100)/100;b.zoom_ratio=a}if(window.getComputedStyle&&document.documentElement!=null){d=window.getComputedStyle(document.documentElement);d!=null&&(b.document_font_size=d.fontSize)}c("WebBrowserDimensionsTypedLoggerLite").log(b)}g.init=a}),98); __d("CometBatchNotificationsStateChangeSubscription",["CometBatchNotificationsStateChangeSubscription.graphql","CometRelay"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("CometBatchNotificationsStateChangeSubscription.graphql");function a(a){return d("CometRelay").requestSubscription(a,{subscription:i,variables:{environment:"MAIN_SURFACE",input:{environment:"MAIN_SURFACE",query_flags:["INCLUDE_WA_P2B_NOTIFS"]}}})}g.subscription=i;g.batchSubscribe=a}),98); __d("CometNotificationsStateChangeSubscription",["CometNotificationsStateChangeSubscription.graphql","CometRelay"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("CometNotificationsStateChangeSubscription.graphql");function a(a){return d("CometRelay").requestSubscription(a,{subscription:i,variables:{environment:"MAIN_SURFACE",input:{environment:"MAIN_SURFACE",query_flags:["INCLUDE_WA_P2B_NOTIFS"]}}})}c={subscribe:a,subscription:i};g["default"]=c}),98); __d("MWCMGetGroupId",["I64","LSDatabaseDeferred.bs","Promise","ReQL"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return new(b("Promise"))(function(b,c){d("LSDatabaseDeferred.bs").db.then(function(e){e.runInTransaction(function(c){return d("ReQL").firstAsync(d("ReQL").fromTableAscending(c.table("threads")).getKeyRange(d("I64").of_string(a))).then(function(a){if(a)return d("ReQL").firstAsync(d("ReQL").fromTableAscending(c.table("community_folders")).getKeyRange(a.parentThreadKey)).then(function(a){a?b(d("I64").to_string(a.fbGroupId)):b()});else b()})},"readonly")["catch"](function(a){c(a)})})["catch"](function(a){c(a)})})}g["default"]=a}),98); __d("AvailableListState",[],(function(a,b,c,d,e,f){a=Object.freeze({OFFLINE:0,IDLE:1,ACTIVE:2,MOBILE:3});f["default"]=a}),66); __d("PresenceStatusProviderSubscription",["AvailableListState","CometHomeContactsConfig","CometRelay","CurrentUser","PresenceStatusProviderSubscription_ContactProfilesQuery.graphql","PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery.graphql","PresenceStatusProviderSubscription_rankings.graphql","Promise","WebPixelRatio","chunkArray","promiseDone","qex","recoverableViolation","relay-runtime","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=c("requireDeferred")("FBMqttChannel").__setRef("PresenceStatusProviderSubscription"),l=c("requireDeferred")("MessengerMQTTPresence").__setRef("PresenceStatusProviderSubscription"),m=Object.assign.apply(Object,[{}].concat(Object.entries(c("AvailableListState")).map(function(a){var b,c=a[0];a=a[1];return b={},b[String(a)]=c,b}))),n=h!==void 0?h:h=b("PresenceStatusProviderSubscription_PresenceStatusChatVisibilityQuery.graphql"),o=i!==void 0?i:i=b("PresenceStatusProviderSubscription_ContactProfilesQuery.graphql");function p(a){var b=null,c=k.onReady(function(c){c.subscribe("/legacy_web",function(b){var c=JSON.parse(b);c.type==="privacy_changed"&&a.commitUpdate(function(a){a=a.getRoot();if(a==null)return;a=a.getLinkedRecord("viewer");if(a==null)return;a.setValue(((a=c.data)==null?void 0:a.visibility)===!0,"chat_visibility")})}),b=function(){return c.unsubscribeAll("/legacy_web")}});return{remove:function(){c.remove(),b!=null&&b()}}}function q(a,b,c,d,e){var f=null,g=l.onReady(function(g){g.subscribe({reset:function(){var f=b.current,g={};Object.keys(f).forEach(function(a){delete g[a]});b.current=g;z(a,b.current,c,d,e)},setMultiFromMQTT:function(f){var g=b.current,h=babelHelpers["extends"]({},g);f.forEach(function(a){h[a.u]={last_active_time:a.l,status:a.p}});b.current=h;z(a,b.current,c,d,e)}}),f=function(){return g.unsubscribe()}});return{remove:function(){g.remove(),f!=null&&f()}}}function r(a,b,c,e,f){var g,h=d("relay-runtime").getRequest(n);h=d("relay-runtime").createOperationDescriptor(h,{});h=a.lookup(h.fragment);g=(g=h.data)==null?void 0:g.viewer;var i=typeof g==="object"?g==null?void 0:g.chat_visibility:null;e.current=!!i;return a.subscribe(h,function(d){d=d.data;d=d==null?void 0:d.viewer;if(typeof d!=="object"||d==null)return;var g=d==null?void 0:d.presence_view_side_settings;if(typeof g==="object"&&g!=null&&g.has_converted_to_view_side_settings===!0)return;g=d.chat_visibility;i!=null&&g!==i&&z(a,b.current,c,e,f);i=g})}var s={height:36,scale:d("WebPixelRatio").get(),width:36},t=500;function u(a,e){a=c("chunkArray")(Array.from(a),t);a=a.map(function(a){return d("CometRelay").fetchQuery(e,o,{ids:a,scale:d("WebPixelRatio").get()},{fetchPolicy:"store-or-network"}).toPromise()});return b("Promise").all(a)}var v=function(a,b,d){if(b.size===0)return;c("promiseDone")(u(b,d).then(function(b){d.commitUpdate(function(c){b.forEach(function(b){b=(b==null?void 0:(b=b.viewer)==null?void 0:b.chat_sidebar_contact_nodes)||[];b.forEach(function(b){b=w(b,c);a.push(b)})}),y(c,a)})}))};function w(a,b){var c=a==null?void 0:a.id;if(c==null)return;var d=b.get(c);d==null&&(d=b.create(c,"User"));b=a==null?void 0:a.name;if(b==null)return;d.setValue(b,"name");c=d.getOrCreateLinkedRecord("profile_picture","Image",s);b=a==null?void 0:(b=a.profile_picture)==null?void 0:b.uri;if(b==null)return;c.setValue(a==null?void 0:(b=a.profile_picture)==null?void 0:b.uri,"uri");d.setLinkedRecord(c,"profile_picture",s);return d}var x=function(a,b,d,e){a.commitUpdate(function(f){if(d==null)return;var g=new Set(Object.keys(b).filter(function(a){return c("CurrentUser").getID()!==a&&((a=b[a])==null?void 0:a.status)===2})),h=d.filter(function(a){var c=a.buddy_id;a=a.status;return a==null||c==null?!1:((c=e.current?(c=b[c])==null?void 0:c.status:0)!=null?c:0)===a}).map(function(a){a=(a=a.user)==null?void 0:a.id;if(a==null)return null;g["delete"](a);return f.get(a)}).filter(Boolean);g.size>0&&(g.forEach(function(a){var b=f.get(a);if(b!=null&&b.getValue("name")!=null){var c=b.getLinkedRecord("profile_picture",s);c!=null&&c.getValue("uri")!=null&&(h.push(b),g["delete"](a))}}),v(h,g,a));y(f,h)})};function y(a,b){var d;a=a.getRoot().getLinkedRecord("viewer");if(a==null){c("recoverableViolation")("Viewer should not be null here, something has gone horribly wrong","messenger_web_product");return}d=(d=c("qex")._("274"))!=null?d:!1;if(d){d=a.getLinkedRecord("initial_presence_data");d=d==null?void 0:d.getLinkedRecord("ls_initial_presence_data");d==null?void 0:d.setLinkedRecords(b,"ranked_contacts")}else a.setLinkedRecords(b,"chat_sidebar_contacts",{count:c("CometHomeContactsConfig").numContactsToFetch})}function z(a,b,c,d,e){a.commitUpdate(function(a){var e=a.getRoot();if(e==null)return;e=e.getLinkedRecord("viewer");if(e==null)return;var f=e.getLinkedRecord("presence_view_side_settings"),g=f!=null&&f.getValue("has_converted_to_view_side_settings")===!0||e.getValue("chat_visibility")===!0;f=e.getLinkedRecord("actor");f!=null&&g?f.setValue("ACTIVE","availability"):f!=null&&f.setValue("OFFLINE","availability");d.current=g;e=Object.keys(b);e.forEach(function(c){var d,e;d=(d=b[c])==null?void 0:d.status;e=(e=b[c])==null?void 0:e.last_active_time;d=d==null?null:m[String(d)];var f=a.get(c);f==null&&d==="ACTIVE"&&(f=a.create(c,"User"));f!=null&&(f.setValue(d==="ACTIVE"&&g?d:null,"availability"),!g?f.setValue(null,"last_active_time"):e!==0&&e!=null&&f.setValue(e,"last_active_time"))});c()}),x(a,b,e,d)}function a(a,e,f,g,h){h=h!=null?h.map(function(a){return d("CometRelay").readInlineData(j!==void 0?j:j=b("PresenceStatusProviderSubscription_rankings.graphql"),a)}):null;var i=p(a),k=c("qex")._("274")?null:q(a,e,f,g,h),l=r(a,e,f,g,h);return{remove:function(){k==null?void 0:k.remove(),i.remove(),l.dispose()}}}g.fetchProfiles=u;g.updateContactProfile=w;g.updateChatSidebarContacts=y;g.init=a}),98); __d("PresenceStatusProviderSubscriptionComponent.react",["CometRelay","PresenceStatusProviderSubscription","PresenceStatusProviderSubscriptionComponentQuery.graphql","WebPixelRatio","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react").useEffect,j=50,k=function(){return d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("PresenceStatusProviderSubscriptionComponentQuery.graphql"),{count:j,scale:d("WebPixelRatio").get()})};function a(a){var b=a.chatVisibilityRef,c=a.presenceInformer,e=a.presenceMap;a=k();var f=(a=a==null?void 0:(a=a.viewer)==null?void 0:a.chat_sidebar_contact_rankings)!=null?a:null,g=d("CometRelay").useRelayEnvironment();i(function(){var a=d("PresenceStatusProviderSubscription").init(g,e,c,b,f);return function(){a.remove()}},[g,c,e,f,b]);return null}g["default"]=a}),98); __d("RTWebCallBlockSettingHooks",["CometRelay","DateConsts","RTWebCallBlockSettingHooksQuery.graphql","RTWebCallBlockedSettingSubscription","RTWebPreCallContext","ServerTime","promiseDone","react"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useContext,j=e.useEffect,k=e.useState,l=6e4,m=h!==void 0?h:h=b("RTWebCallBlockSettingHooksQuery.graphql"),n=function(a,b){return function(c){c=c.getRoot();if(c==null)return;c=c.getLinkedRecord("viewer");if(c==null)return;c.setValue(b,a)}};function o(a){return a===-1?a:(a||0)*d("DateConsts").MS_PER_SEC}function p(){var a=d("CometRelay").useRelayEnvironment(),b=d("CometRelay").getActorID(a),e=k(0),f=e[0],g=e[1];j(function(){var e=d("CometRelay").fetchQuery(a,m,{},{fetchPolicy:"store-or-network"}).toPromise().then(function(a){a=a==null?void 0:a.viewer;a!=null&&g(o(a.call_blocked_until))});c("promiseDone")(e);var f=d("RTWebCallBlockedSettingSubscription").subscribe(a,{viewer_id:b},function(b){b=b==null?void 0:b.rtweb_call_blocked_setting_subscribe;b!=null&&(g(o(b.call_blocked_until)),a.commitUpdate(n("call_blocked_until",b.call_blocked_until)))});return function(){f.dispose()}},[a,b]);return f}function q(){var a=p(),b=d("ServerTime").getMillis(),c=a<0,e=a>b;b=k(c||e);var f=b[0],g=b[1];(c||e)!==f&&g(c||e);j(function(){if(e){var b=window.setInterval(function(){a<=d("ServerTime").getMillis()&&(g(!1),window.clearInterval(b))},l);return function(){window.clearInterval(b)}}},[a,e]);return f}function a(){var a=i(c("RTWebPreCallContext")),b=q();j(function(){a!=null&&a.callInviteModel.startListening({callsBlocked:b})},[a,b])}g.useCallBlockSettingValue=p;g.useHasCallsBlocked=q;g.useCallBlockSetting=a}),98); __d("showDesktopNotification",["MessengerDesktopNotificationPermissions","MessengerDesktopNotifications","ZenonUserActionLogger"],(function(a,b,c,d,e,f,g){"use strict";var h=8e3;function a(){return function(a){var b=a.acceptCall,e=a.body,f=a.icon;a=a.title;var g={body:e,closeTime:h,icon:f,onClick:function(){d("ZenonUserActionLogger").logClick({component:"browser_notification",surface:"desktop_notification"}),window.focus(),b({trigger:"desktop_notification"})},onShow:function(){d("ZenonUserActionLogger").logImpression({component:"browser_notification",surface:"desktop_notification"})},title:a};if(d("MessengerDesktopNotifications").checkPermission()===c("MessengerDesktopNotificationPermissions").DEFAULT){d("MessengerDesktopNotifications").requestPermission(function(){d("MessengerDesktopNotifications").showNotification(g)});return}d("MessengerDesktopNotifications").showNotification(g)}}g["default"]=a}),98); __d("RTWebCallInviteDesktopNotification.react",["fbt","RTWebPreCallHooks","ZenonUsersHooks","react","showDesktopNotification","usePrevious"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){a=a.invite;return(a==null?void 0:a.type)==="ringing"?i.jsx(j,{invite:a}):null}a.displayName=a.name+" [from "+f.id+"]";function j(a){a=a.invite;var b=c("showDesktopNotification")(),e=c("usePrevious")(a.ringID),f=d("RTWebPreCallHooks").useAcceptCallCallback(),g=d("ZenonUsersHooks").useZenonUser(a.inviterID),h=a.requestingVideo,i=a.participants.length>1;if(e!==a.ringID&&g!=null){b({acceptCall:f,body:l(g.shortName),icon:(e=g.profilePictureUrl)!=null?e:null,title:k(h,i)})}return null}function k(a,b){if(!b)return a?h._("__JHASH__tNVvdc3BFrb__JHASH__"):h._("__JHASH__g-EGCs7nK0S__JHASH__");else return a?h._("__JHASH__xQCntgBdfrr__JHASH__"):h._("__JHASH__P8yKBnycp5c__JHASH__")}function l(a){return h._("__JHASH__Cy_ySzw9b09__JHASH__",[h._param("caller name",a)])}g["default"]=a}),98); __d("RTWebCometIncomingCallContent.react",["fbt","CometProgressIndicator.react","QPLUserFlow","RTWebCometCallMessageLayout.react","RTWebPreCallHooks","ZenonUsersHooks","qpl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useEffect;function a(a){var b=a.inviterID,e=a.isVideoCall;a=a.participantIDs;b=d("ZenonUsersHooks").useZenonUser(b);var f=d("ZenonUsersHooks").useZenonUsers(a).valueSeq().toArray();k(f,a,c("qpl")._(64225282,"3408"));a=a.length>1;var g=a?e?h._("__JHASH__qP1b4M_nTXB__JHASH__",[h._param("caller name",b==null?void 0:b.name)]):h._("__JHASH__YsiR5w0qBLR__JHASH__",[h._param("caller name",b==null?void 0:b.name)]):h._("__JHASH__TTe25Nj-Ero__JHASH__",[h._param("caller name",b==null?void 0:b.name)]);a=a?e?h._("__JHASH__ZsGiBdfFxcf__JHASH__"):h._("__JHASH__OMWmh1IhBCA__JHASH__"):h._("__JHASH__OMWmh1IhBCA__JHASH__");return b===null?i.jsx(c("CometProgressIndicator.react"),{}):i.jsx(c("RTWebCometCallMessageLayout.react"),{caller:b,mainMessage:g,participants:f,subMessage:a})}a.displayName=a.name+" [from "+f.id+"]";function k(a,b,d){var e=l();j(function(){a.length===0&&c("QPLUserFlow").addPoint(d,"fetching_participants",{instanceKey:e}),a.length===b.length&&c("QPLUserFlow").addPoint(d,"fetched_participants",{instanceKey:e})},[e,b.length,a,d])}function l(){var a=d("RTWebPreCallHooks").useCallInvite();return+(a==null?void 0:a.ringID)}g["default"]=a}),98); __d("RTWebCometIncomingCallDialogContainer.react",["fbt","ix","RTWebCometCallDialog.react","RTWebCometIncomingCallContent.react","ZenonUserActionLogger","ZenonUsersHooks","cr:3626","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){var e=a.inviterID,f=a.isE2EECall;f=f===void 0?!1:f;var g=a.isVideoCall;g=g===void 0?!0:g;var l=a.onAccept,m=a.onClose,n=a.onDecline;a=a.participantIDs;var o=d("ZenonUsersHooks").useZenonUser(e),p=a.length>1;if(b("cr:3626")!=null){return j.jsx(b("cr:3626"),{acceptLabel:h._("__JHASH__dpE3kinjxKt__JHASH__"),declineLabel:h._("__JHASH__dTblojfehN7__JHASH__"),headline:p?g?h._("__JHASH__E5uMxVlOys1__JHASH__",[h._param("name",o==null?void 0:o.name)]):h._("__JHASH__k3FKWh9ZadY__JHASH__",[h._param("name",o==null?void 0:o.name)]):h._("__JHASH__PWAbxoD9AAl__JHASH__",[h._param("name",o==null?void 0:o.name)]),isE2EECall:f,isVideoCall:g,metaContent:h._("__JHASH__pISuXhjR7Xl__JHASH__"),onAccept:l,onClose:m,onDecline:n,profiles:[{source:{uri:(p=o==null?void 0:o.profilePictureUrl)!=null?p:""}}]})}return j.jsx(c("RTWebCometCallDialog.react"),{acceptIcon:g?d("fbicon")._(i("493173"),16):d("fbicon")._(i("558160"),16),acceptLabel:h._("__JHASH__ivfEGW_UIib__JHASH__"),acceptTestid:"answerCallButton",body:j.jsx(c("RTWebCometIncomingCallContent.react"),{inviterID:e,isVideoCall:g,participantIDs:a}),declineLabel:h._("__JHASH__BNPdoljcmpA__JHASH__"),onClose:function(a){c("ZenonUserActionLogger").logClick({component:a?"accept_button":"decline_button",surface:"incoming_call_dialog"}),a?(l(),m()):(n(),m())},title:k(g,a.length>1)})}a.displayName=a.name+" [from "+f.id+"]";function k(a,b){if(!b)return a?h._("__JHASH__HcszCzWYoZy__JHASH__"):h._("__JHASH__Y4Lt6k9IK3R__JHASH__");else return a?h._("__JHASH__QH0_n03VzR0__JHASH__"):h._("__JHASH__OABxKl2ZdpF__JHASH__")}g["default"]=a}),98); __d("useRTWebIncomingCallDialog",["QPLUserFlow","RTWebCometIncomingCallDialogContainer.react","RTWebPreCallContext","ZenonUserActionLogger","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useState;function a(a){var b=a.inviterID,e=a.isE2EECall,f=a.isVideoCall,g=a.onAccept,k=a.onDecline;a=a.participantIDs;var l=j(!1),m=l[0],n=l[1];l=i(c("RTWebPreCallContext"));var o=l?l.callInviteModel:null;return[m?h.jsx(c("RTWebCometIncomingCallDialogContainer.react"),{inviterID:b,isE2EECall:e,isVideoCall:f,onAccept:function(){g(),n(!1)},onClose:function(){return n(!1)},onDecline:function(){k(),n(!1)},participantIDs:a}):null,{dismiss:function(){return n(!1)},show:function(){var a;d("ZenonUserActionLogger").logImpression({surface:"incoming_call_dialog"});c("QPLUserFlow").addPoint(c("qpl")._(64225282,"3408"),"render_dialog",{instanceKey:+(o==null?void 0:(a=o.getCurrentInvite())==null?void 0:a.ringID)});n(!0)}}]}g["default"]=a}),98); __d("RTWebIncomingUnsupportedBrowserDialogWrapper.react",["cr:230"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:230")}),98); __d("RTWebIncomingUnsupportedE2EEDialog.entrypoint",["JSResourceForInteraction","RTWebIncomingUnsupportedE2EEDialogNameQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.id;return{queries:{queryReference:{parameters:b("RTWebIncomingUnsupportedE2EEDialogNameQuery$Parameters"),variables:{id:a}}}}},root:c("JSResourceForInteraction")("RTWebIncomingUnsupportedE2EEDialog.react").__setRef("RTWebIncomingUnsupportedE2EEDialog.entrypoint")};g["default"]=a}),98); __d("useRTWebIncomingUnsupportedBrowserDialog",["CometPlaceholder.react","RTWebIncomingUnsupportedBrowserDialogWrapper.react","RTWebIncomingUnsupportedE2EEDialog.entrypoint","RelayHooks","ZenonUserActionLogger","react","useCometRelayEntrypointContextualEnvironmentProvider"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(a){var b=a.inviterID,e=a.isE2EECall,f=a.isVideoCall,g=a.onClose,j=a.participantIDs;a=a.threadType;var k=i(!1),l=k[0],m=k[1];k=c("useCometRelayEntrypointContextualEnvironmentProvider")();k=d("RelayHooks").useEntryPointLoader(k,c("RTWebIncomingUnsupportedE2EEDialog.entrypoint"));var n=k[0],o=k[1];function p(a){a&&e&&n==null&&o({id:b}),m(a)}return[l?e?h.jsx(c("CometPlaceholder.react"),{fallback:null,children:n!=null&&h.jsx(d("RelayHooks").EntryPointContainer,{entryPointReference:n,props:{inviterID:b,onClose:function(){g(),p(!1)},threadType:a}})}):h.jsx(c("RTWebIncomingUnsupportedBrowserDialogWrapper.react"),{hide:function(){return p(!1)},inviterID:b,isVideoCall:f,onClose:function(){g(),p(!1)},participantIDs:j,threadType:a}):null,{dismiss:function(){return p(!1)},show:function(){d("ZenonUserActionLogger").logImpression({surface:"unsupported_browser_dialog"}),p(!0)}}]}g["default"]=a}),98); __d("RTWebCometMissedCallContent.react",["fbt","CometProgressIndicator.react","CometRelativeTimestamp.react","RTWebCometCallMessageLayout.react","ZenonUsersHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.inviterID,e=a.isRoomCall,f=a.isVideoCall,g=a.participantIDs;a=a.timeMissed;b=d("ZenonUsersHooks").useZenonUser(b);var j=d("ZenonUsersHooks").useZenonUsers(g).valueSeq().toArray();g=g.length>1;g=!g||e?h._("__JHASH__yg5Wj05Olkt__JHASH__",[h._param("caller name",b==null?void 0:b.name)]):f?h._("__JHASH__N8i901ca52j__JHASH__",[h._param("caller name",b==null?void 0:b.name)]):h._("__JHASH__DUJ5tOEW6-x__JHASH__",[h._param("caller name",b==null?void 0:b.name)]);return b===null?i.jsx(c("CometProgressIndicator.react"),{}):i.jsx(c("RTWebCometCallMessageLayout.react"),{caller:b,mainMessage:g,participants:j,subMessage:i.jsx(c("CometRelativeTimestamp.react"),{date:a,format:"normal"})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("RTWebCometMissedCallDialogContainer.react",["fbt","ix","IntlVariations","RTWebCometCallDialog.react","RTWebCometMissedCallContent.react","ZenonUserActionLogger","ZenonUsersHooks","cr:3626","emptyFunction","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){var e=a.inviterID,f=a.isVideoCall,g=a.onCallback,l=a.onClose,m=a.participantIDs;a=a.timeMissed;var n=d("ZenonUsersHooks").useZenonUser(e);if(b("cr:3626")!=null){return j.jsx(b("cr:3626"),{acceptLabel:h._("__JHASH__EBp4M17vY4j__JHASH__"),declineLabel:h._("__JHASH__GgiLHNwW0uJ__JHASH__"),headline:h._("__JHASH__6OttBPSrAFd__JHASH__",[h._name("caller",n==null?void 0:n.name,c("IntlVariations").GENDER_UNKNOWN)]),isVideoCall:f,metaContent:h._("__JHASH__d_49GG-7G7P__JHASH__",[h._name("caller",n==null?void 0:n.name,c("IntlVariations").GENDER_UNKNOWN)]),onAccept:g,onClose:l,onDecline:c("emptyFunction"),profiles:[{source:{uri:(n=n==null?void 0:n.profilePictureUrl)!=null?n:""}}]})}return j.jsx(c("RTWebCometCallDialog.react"),{acceptIcon:f?d("fbicon")._(i("493173"),16):d("fbicon")._(i("558160"),16),acceptLabel:h._("__JHASH__NM_tQ4oG79k__JHASH__"),body:j.jsx(c("RTWebCometMissedCallContent.react"),{inviterID:e,isRoomCall:!1,isVideoCall:f,participantIDs:m,timeMissed:a}),declineLabel:h._("__JHASH__EugSOocwBfG__JHASH__"),onClose:function(a){c("ZenonUserActionLogger").logClick({component:a?"call_back":"close_dialog",surface:"missed_call_dialog"});a&&c("ZenonUserActionLogger").logClick({component:"start_call_button",surface:"missed_call_dialog"});l();return a?g():void 0},title:k(f,m.length>1)})}a.displayName=a.name+" [from "+f.id+"]";function k(a,b){if(!b)return a?h._("__JHASH__Gs4O-fXsGXr__JHASH__"):h._("__JHASH__CL9qW1mKn0M__JHASH__");else return a?h._("__JHASH__TGMW_qMV6h8__JHASH__"):h._("__JHASH__Yhj5-AH8Y2o__JHASH__")}g["default"]=a}),98); __d("useRTWebMissedCallDialog",["RTWebCometMissedCallDialogContainer.react","ZenonUserActionLogger","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(a){var b=a.inviterID,e=a.isVideoCall,f=a.onCallback,g=a.participantIDs;a=a.timeMissed;var j=i(!1),k=j[0],l=j[1];return[k?h.jsx(c("RTWebCometMissedCallDialogContainer.react"),{inviterID:b,isVideoCall:e,onCallback:f,onClose:function(){return l(!1)},participantIDs:g,timeMissed:a}):null,{dismiss:function(){return l(!1)},show:function(){d("ZenonUserActionLogger").logImpression({surface:"missed_call_dialog"}),l(!0)}}]}g["default"]=a}),98); __d("RTWebCometRoomIncomingCallDialog.entrypoint",["JSResourceForInteraction","RTWebCometRoomIncomingCallDialog_DisclaimerQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{queries:{queryReference:{parameters:b("RTWebCometRoomIncomingCallDialog_DisclaimerQuery$Parameters"),variables:{nuxID:8259}}}}},root:c("JSResourceForInteraction")("RTWebCometRoomIncomingCallDialogContainer.react").__setRef("RTWebCometRoomIncomingCallDialog.entrypoint")};g["default"]=a}),98); __d("useRoomIncomingCallDialog",["CometPlaceholder.react","CometRelay","RTWebCometRoomIncomingCallDialog.entrypoint","RelayHooks","VideoChatLinksUserActionsMultiplexLogger","react","useCometRelayEntrypointContextualEnvironmentProvider"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(a){var b=a.inviterID,e=a.linkUrl,f=a.onAccept,g=a.onDecline,j=a.roomName;a=a.sender;var k=c("useCometRelayEntrypointContextualEnvironmentProvider")();k=d("RelayHooks").useEntryPointLoader(k,c("RTWebCometRoomIncomingCallDialog.entrypoint"));var l=k[0],m=k[1];k=i(!1);var n=k[0],o=k[1];return[n&&l!=null?h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:l,props:{inviterID:b,linkUrl:e,onAccept:function(){f(),o(!1)},onDecline:function(){g(),o(!1)},roomName:j,sender:a}})}):null,{dismiss:function(){return o(!1)},show:function(){m({}),new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_received").setVideoCallLinkURLRaw(e).log(),o(!0)}}]}g["default"]=a}),98); __d("RTWebCometRoomMissedCallDialogContainer.react",["fbt","ix","RTWebCometCallDialog.react","RTWebCometMissedCallContent.react","VideoChatLinksUserActionsMultiplexLogger","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){var b=a.inviterID,e=a.linkUrl,f=a.onCallback,g=a.onClose,k=a.participantIDs,l=a.roomName;a=a.timeMissed;return j.jsx(c("RTWebCometCallDialog.react"),{acceptIcon:d("fbicon")._(i("493173"),16),acceptLabel:h._("__JHASH__w3CZsnYYCtS__JHASH__"),body:j.jsx(c("RTWebCometMissedCallContent.react"),{inviterID:b,isRoomCall:!0,isVideoCall:!1,participantIDs:k,timeMissed:a}),declineLabel:h._("__JHASH__EugSOocwBfG__JHASH__"),onClose:function(a){a?(new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_accepted").setVideoCallLinkURLRaw(e).log(),f()):new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_missed_dialog_dismissed").setVideoCallLinkURLRaw(e).log(),g()},title:h._("__JHASH__bMJmvEBqc28__JHASH__",[h._param("room name",l)])})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useRoomMissedCallDialog",["RTWebCometRoomMissedCallDialogContainer.react","VideoChatLinksUserActionsMultiplexLogger","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(a){var b=a.inviterID,d=a.linkUrl,e=a.onCallback,f=a.participantIDs,g=a.roomName;a=a.timeMissed;var j=i(!1),k=j[0],l=j[1];return[k?h.jsx(c("RTWebCometRoomMissedCallDialogContainer.react"),{inviterID:b,linkUrl:d,onCallback:e,onClose:function(){return l(!1)},participantIDs:f,roomName:g,timeMissed:a}):null,{dismiss:function(){return l(!1)},show:function(){new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_missed").setVideoCallLinkURLRaw(d).log(),l(!0)}}]}g["default"]=a}),98); __d("useZenonDialogController",["react","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useEffect,i=b.useState;function a(a,b){var d=i(null),e=d[0],f=d[1],g=c("usePrevious")(a);h(function(){var c;if((a==null?void 0:a.ringID)===(g==null?void 0:g.ringID)&&(a==null?void 0:a.type)===(g==null?void 0:g.type))return;e!=null&&(e.dismiss(),f(null));if(a===null)return;f(b);(c=b())==null?void 0:c.show()},[e,b,a,g])}g["default"]=a}),98); __d("RTWebCometCallInviteDialogs.react",["Actor","RTWebDropInUtils","RTWebIncomingRingConfiguration","RTWebPreCallContext","RTWebPreCallHooks","ServerTime","StartVideoChatLinkCall","react","useRTWebIncomingCallDialog","useRTWebIncomingUnsupportedBrowserDialog","useRTWebMissedCallDialog","useRoomIncomingCallDialog","useRoomMissedCallDialog","useZenonDialogController"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function a(a){var b,e=a.invite;a=d("Actor").useActor();var f=a[0];a=i(c("RTWebPreCallContext"));var g=d("RTWebPreCallHooks").useStartCallCallback(),j=a?a.callInviteModel:null,k=(a=e==null?void 0:e.participants)!=null?a:[],l=(a=e==null?void 0:e.isE2eeMandated)!=null?a:!1;a=(a=e==null?void 0:e.inviterID)!=null?a:"";b=(b=e==null?void 0:e.requestingVideo)!=null?b:!1;var m=null,n="",o="";if((e==null?void 0:e.context.type)==="room"){var p;m=e.context.room;n=(p=m.linkHash)!=null?p:"";o=(p=m.roomName)!=null?p:""}var q=d("RTWebPreCallHooks").useAcceptCallCallback();p=c("useRoomMissedCallDialog")({inviterID:a,linkUrl:n,onCallback:function(){d("StartVideoChatLinkCall").startCall(n,!0,!0),j==null?void 0:j.dismiss()},participantIDs:k,roomName:o,timeMissed:new Date(d("ServerTime").getMillis())});var r=p[0],s=p[1];p=c("useRTWebIncomingCallDialog")({inviterID:a,isE2EECall:l,isVideoCall:b,onAccept:function(){q({trigger:"comet_incoming_dialog_accept_button"})},onDecline:function(){j==null?void 0:j.decline("IgnoreCall")},participantIDs:k});var t=p[0],u=p[1];p=c("useRTWebIncomingUnsupportedBrowserDialog")({inviterID:a,isE2EECall:l,isVideoCall:b,onClose:function(){j==null?void 0:j.dismiss()},participantIDs:k,threadType:(e==null?void 0:e.context.type)==="thread"?e.context.thread.type:2});var v=p[0],w=p[1];m=c("useRoomIncomingCallDialog")({inviterID:a,linkUrl:n,onAccept:function(){d("StartVideoChatLinkCall").startCall(n,!0,!0)},onDecline:function(){j==null?void 0:j.decline("IgnoreCall")},roomName:o,sender:(o=(p=m)==null?void 0:p.sender)!=null?o:""});p=m[0];var x=m[1];o=c("useRTWebMissedCallDialog")({inviterID:a,isVideoCall:b,onCallback:function(){if((e==null?void 0:e.context.type)==="thread"){var a,b=e==null?void 0:e.context.thread;g({existingCall:null,invitees:[(a=e==null?void 0:e.inviterID)!=null?a:""].concat(k.filter(function(a){return a!==f})),isE2eeMandated:(a=e==null?void 0:e.isE2eeMandated)!=null?a:!1,mediaType:(e==null?void 0:e.requestingVideo)?"video":"audio",thread:b,trigger:"comet_missed_call_dialog"})}j==null?void 0:j.dismiss()},participantIDs:k,timeMissed:new Date(d("ServerTime").getMillis())});m=o[0];var y=o[1];c("useZenonDialogController")(e,function(){if(e===null||j==null)return null;if(d("RTWebDropInUtils").isDropInFromAppMessages(e==null?void 0:e.controllerParams.appMessages))return null;if(l&&!d("RTWebIncomingRingConfiguration").isE2EESupportedClient())return w;if(e.context.type==="room")switch(e.type){case"ringing":return x;case"missed":return s;default:return null}switch(e.type){case"ringing":return u;case"missed":return e.context.type==="thread"?y:null;case"unsupported_browser":return w;default:return null}});return h.jsxs(h.Fragment,{children:[t,m,v,r,p]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useZenonRingTone",["RTCSounds","Sound","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useEffect,i=[d("RTCSounds").ringtone_mp3_url,d("RTCSounds").ringtone_ogg_url];function a(a){a===void 0&&(a=!1),h(function(){if(a){d("Sound").play(i,null,!0);return function(){d("Sound").stop(i)}}},[a])}g["default"]=a}),98); __d("ZenonCallInviteRingtone.react",["useZenonRingTone"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=a.invite;c("useZenonRingTone")((a==null?void 0:a.type)==="ringing");return null}g["default"]=a}),98); __d("useDocumentTitleBlink",["DocumentTitle","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useEffect;function a(a){h(function(){if(a==null)return;var b=c("DocumentTitle").blink(a);return function(){b.stop()}},[a])}g["default"]=a}),98); __d("ZenonCallInviteTitleBlinking.react",["fbt","ZenonUsersHooks","react","useDocumentTitleBlink"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){a=a.invite;return a!==null&&a.type==="ringing"&&a.inviterID!=null?i.jsx(j,{inviterID:a.inviterID}):null}a.displayName=a.name+" [from "+f.id+"]";function j(a){a=a.inviterID;a=d("ZenonUsersHooks").useZenonUser(a);c("useDocumentTitleBlink")(a?h._("__JHASH__MwALAshovbD__JHASH__",[h._param("name",a.shortName)]):null);return null}g["default"]=a}),98); __d("RTWebCometCallInviteController.react",["RTWebCallBlockSettingHooks","RTWebCallInviteDesktopNotification.react","RTWebCometCallInviteDialogs.react","RTWebPreCallHooks","ZenonCallInviteRingtone.react","ZenonCallInviteTitleBlinking.react","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=c("requireDeferred")("FBRTCCallSummaryUploader").__setRef("RTWebCometCallInviteController.react");b.onReady(function(a){a.init()});function a(){d("RTWebCallBlockSettingHooks").useCallBlockSetting();d("RTWebPreCallHooks").useNoAnswerTimeout();var a=d("RTWebPreCallHooks").useCallInvite();return h.jsxs(h.Fragment,{children:[h.jsx(c("RTWebCometCallInviteDialogs.react"),{invite:a}),h.jsx(c("RTWebCallInviteDesktopNotification.react"),{invite:a}),h.jsx(c("ZenonCallInviteRingtone.react"),{invite:a}),h.jsx(c("ZenonCallInviteTitleBlinking.react"),{invite:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("ZenonCallWindowOpener_Popup",["ZenonUserActionLogger"],(function(a,b,c,d,e,f,g){"use strict";var h=1280,i={LargeForGroup:{height:772,width:1100},LargeForP2P:{height:720,width:1280},Small:{height:540,width:960}},j=["menubar=no","location=no","scrollbars=no","status=no","personalbar=no"];a=function(){function a(){}var b=a.prototype;b.openWindow=function(a){a=this.$1(a.joinContext);var b=this.$2(a),c=b.left;b=b.top;d("ZenonUserActionLogger").logCheckpoint({checkpoint:"Opening_Popup: left="+c+",top="+b+",width="+a.width+",height="+a.height});return window.open("","",[].concat(j,["height="+a.height,"width="+a.width,"left="+c,"top="+b]).join(","))};b.$1=function(a){if(screen&&screen.width>h)if(a.type==="link"||a.thread.type===2)return{height:i.LargeForGroup.height,width:i.LargeForGroup.width};else return{height:i.LargeForP2P.height,width:i.LargeForP2P.width};else return{height:i.Small.height,width:i.Small.width}};b.$2=function(a){var b=a.height;a=a.width;return{left:Math.floor(window.innerWidth/2-a/2+((a=window.screenLeft)!=null?a:window.screenX)),top:Math.floor(window.innerHeight/2-b/2+((a=window.screenTop)!=null?a:window.screenY))}};return a}();g["default"]=a}),98); __d("RTWebCallWindowOpener",["RTWebDropInUtils","ZenonCallWindowOpener_Popup"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.$1=new(c("ZenonCallWindowOpener_Popup"))()}var b=a.prototype;b.openWindow=function(a){if(a.context.intent==="accept invite"&&a.context.controllerParams.appMessages!=null){var b=d("RTWebDropInUtils").isDropInFromAppMessages(a.context.controllerParams.appMessages);if(b)return babelHelpers["extends"]({},window,{close:function(){return null}})}return this.$1.openWindow(a)};return a}();g["default"]=a}),98); __d("ZenonCallInviteModelTypes",[],(function(a,b,c,d,e,f){"use strict";a={missed:"missed",ringing:"ringing",unsupported_browser:"unsupported_browser"};f.CallInviteModelType=a}),66); __d("ZenonCallInviteModel",["BaseEventEmitter","FBLogger","ZenonCallInviteModelTypes","ZenonCallsModelTypes","ZenonIncomingRingSDKTypes","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this)||this;e.$ZenonCallInviteModel3=function(a){c("FBLogger")("rtc_www").info("Received cancel for: ",a.ringID);if(e.__currentRequest&&e.__currentRequest.model&&e.__currentRequest.model.ringID===a.ringID)switch(a.reason){case d("ZenonIncomingRingSDKTypes").ZenonCancelReason.Hangup:a=((a=e.__currentRequest)==null?void 0:(a=a.model)==null?void 0:a.type)!==d("ZenonCallInviteModelTypes").CallInviteModelType.unsupported_browser;e.__currentRequest.model=babelHelpers["extends"]({},e.__currentRequest.model,{type:"missed"});a&&e.emit("callInvite",e.__currentRequest.model);break;case d("ZenonIncomingRingSDKTypes").ZenonCancelReason.OtherDismiss:e.dismiss();break}};e.$ZenonCallInviteModel2=function(a){var b;c("FBLogger")("rtc_www").info("Receiving ring: ",a.ringID);if(((b=e.__currentRequest)==null?void 0:(b=b.model)==null?void 0:b.type)==="ringing")return;e.__currentRequest={model:{actorID:a.actorID,context:a.context,controllerParams:a.controllerParams,inviterID:a.inviterID,isE2eeMandated:a.isE2eeMandated,participants:a.otherParticipants,receiverUserId:a.receiverUserId,requestingVideo:a.requestingVideo,ringID:a.ringID,type:a.isClientPermissableRing?"ringing":"unsupported_browser"},ringPayload:a};e.emit("callInvite",e.__currentRequest.model);a.isClientPermissableRing||a.onDecline("VersionUnsupported")};e.$ZenonCallInviteModel1=function(a){var b=c("gkx")("97");b||(c("FBLogger")("rtc_www").info("Blocking ring: ",a.ringID),a.onDecline("IgnoreCall",d("ZenonCallsModelTypes").ZenonEndCallSubreason.CallsBlocked))};e.__eventSource=b;e.__currentRequest=null;return e}var e=b.prototype;e.getCurrentInvite=function(){var a;return(a=(a=this.__currentRequest)==null?void 0:a.model)!=null?a:null};e.startListening=function(a){a=a.callsBlocked;this.__currentRequest&&this.dismiss();this.stopListening();a?this.__eventSource.addListener("incomingRing",this.$ZenonCallInviteModel1):(this.__eventSource.addListener("incomingRing",this.$ZenonCallInviteModel2),this.__eventSource.addListener("ringCancel",this.$ZenonCallInviteModel3))};e.stopListening=function(){this.__eventSource.removeAllListeners("incomingRing"),this.__eventSource.removeAllListeners("ringCancel"),this.__currentRequest=null};e.dismiss=function(){var a;c("FBLogger")("rtc_www").info("Dismissing ring: ",(a=this.__currentRequest)==null?void 0:(a=a.model)==null?void 0:a.ringID);this.__currentRequest=null;this.emit("callInvite",null)};e.accept=function(a,b){var d=this.__currentRequest;if(d){var e;c("FBLogger")("rtc_www").info("Accepting ring: ",(e=d.model)==null?void 0:e.ringID);((e=d.model)==null?void 0:e.type)==="ringing"&&d.ringPayload.onAccept(a,b);this.dismiss()}};e.decline=function(a,b){a===void 0&&(a="IgnoreCall");var d=this.__currentRequest;if(d){var e;c("FBLogger")("rtc_www").info("Declining ring: ",(e=d.model)==null?void 0:e.ringID);d.ringPayload.onDecline(a,b);this.dismiss();return}};return b}(c("BaseEventEmitter"));g["default"]=a}),98); __d("delegateZenonCallInviteModel",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){a.getCurrentInvite=b.getCurrentInvite.bind(b),a.startListening=b.startListening.bind(b),a.stopListening=b.stopListening.bind(b),a.dismiss=b.dismiss.bind(b),a.accept=b.accept.bind(b),a.decline=b.decline.bind(b),b.addListener("callInvite",function(b){a.emit("callInvite",b)})}f["default"]=a}),66); __d("ZenonCallWindowController",["FBLogger","Promise","ZenonCallWindowErrors"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b){var c=b.callWindowInitializerResource,d=b.callWindowOpener;b=b.uriBuilderResource;this.$2=null;this.$3=!1;this.$5=null;this.$1=a;this.$7=b;this.$4=c;this.$6=d}var e=a.prototype;e.initCall=function(a){var e=this;if(this.$3)throw new(d("ZenonCallWindowErrors").OpeningAnotherCallError)();try{if(this.$2&&!this.$2.closed&&a.joinContext.type==="thread"&&this.$2.inCallWith===a.joinContext.thread.id){this.$2.focus();return[this.$2,b("Promise").resolve({alohaEscalatedMW:!1})]}}catch(a){c("FBLogger")("rtc_www").catching(a).warn("Failed to access inCallWith on call window")}var f=this.$6.openWindow(a);try{this.$2&&(this.$2.closed||this.$2.close(),this.$2=null)}catch(a){c("FBLogger")("rtc_www").catching(a).warn("Failed to access close on call window")}this.$2=f;this.$3=!0;return[f,b("Promise").all([this.$7.load(),this.$4.load()]).then(function(b){var c=b[0];b=b[1];e.$5===null&&(e.$5=new b(e.$1,new c(e.$1)));return e.$5.initCall(e.$2,a)})["finally"](function(){e.$3=!1})]};return a}();g["default"]=a}),98); __d("CometVideoPictureInPictureManager.react",["CometSetWatchAndScrollVideoContext","CometVideoPictureInPictureManagerContext","CometWatchAndScrollVideoContext","XCometWatchControllerRouteBuilder","clearTimeout","gkx","qex","react","requireDeferred","setTimeout","useCometRouterDispatcher"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext,k=b.useEffect,l=b.useMemo,m=b.useRef,n=b.useState,o=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometVideoPictureInPictureManager.react"),p=c("gkx")("1443572"),q=(e=c("qex")._("44"))!=null?e:50;b=["286211568997787","214604021960500","108677131037"];var r=(e=c("qex")._("586"))!=null?e:!1,s=window.document.pictureInPictureEnabled;function a(a){var b=c("useCometRouterDispatcher")(),e=a.isPipEnabled,f=n(null),g=f[0],t=f[1];f=n(!1);var u=f[0],v=f[1];f=n(!1);var w=f[0],x=f[1],y=m(!1),z=i(function(a){y.current=a},[]);f=l(function(){return{hasNextChainedVideo:w,isPipEnabled:e,setHasNextChainedVideo:x,setSkippedFromPipPlayer:v,skippedFromPipPlayer:u}},[u,v,w,x,e]);var A=n(null),B=A[0],C=A[1],D=j(c("CometWatchAndScrollVideoContext")),E=j(c("CometSetWatchAndScrollVideoContext")),F=m(null),G=m(null),H=i(function(a){a===void 0&&(a=null),o.onReady(function(b){b.log({click_point:a,event:"click"})})},[]),I=i(function(){var a=D==null?void 0:D.videoID,d=D==null?void 0:D.videoUrl;if(a!=null&&d!=null){var e=D==null?void 0:D.routeTracePolicy,f=D==null?void 0:D.subOrigin;d=p?d:c("XCometWatchControllerRouteBuilder").buildURL({v:a});b&&(b.go(d,{passthroughProps:{portableVideoID:B,portalingRouteTracePolicy:e,portalingSubOrigin:f}}),E(null))}},[b,D,B,E]),J=i(function(){g!=null&&(F.current=c("setTimeout")(function(){var a=g.getCurrentState(),b=a.lastPauseReason;a=a.paused;y.current||(e&&(a===!1||a===!0&&b==="product_initiated")?(I(),H("control_pip_player_return_to_tab")):window.document.pictureInPictureElement===null&&(E(null),H("control_pip_player_close")))},q))},[g,e,I,E,H]),K=i(function(){g!=null&&(r||(window.navigator.mediaSession.setActionHandler("nexttrack",null),window.navigator.mediaSession.setActionHandler("nexttrack",function(){g.pause("user_initiated"),v(!0),z(!1),H("control_pip_player_skip")})),y.current||(window.navigator.mediaSession.setActionHandler("play",null),window.navigator.mediaSession.setActionHandler("pause",null),window.navigator.mediaSession.setActionHandler("pause",function(){g.pause("product_initiated")})),w||window.navigator.mediaSession.setActionHandler("nexttrack",null))},[g,w,H,z]),L=i(function(a){a.requestPictureInPicture();S(!1);a=a.internal_getVideoElement();G.current=a==null?void 0:a.currentSrc},[]),M=i(function(){if(g!=null){var a=g.getIsDesktopPictureInPicture();if(a){g.exitPictureInPicture();return}L(g)}},[L,g]),N=i(function(a){t(a)},[t]),O=i(function(a){a!=null&&C(a)},[C]);A=l(function(){return{openPipPlayer:M,setController:N,setPipPortableVideoID:O}},[M,N,O]);var P=m(!1),Q=n(!1),R=Q[0],S=Q[1];k(function(){var a=null;if(s&&g!=null&&window.document.pictureInPictureElement){var b=g.internal_getVideoElement();b=b==null?void 0:b.currentSrc;var c=!1,d=!1;a=g.subscribe(function(){var a=g.getCurrentState(),b=a.playing;a=a.isDesktopPictureInPicture;!c&&b&&P.current&&!y.current&&(P.current=!1,S(!0));d&&!a&&J();!d&&a&&K();c=b;d=a});b!==G.current?!R?(g.play("user_initiated"),P.current=!0):L(g):e&&(K(),G.current=b)}return function(){a!=null&&a.remove()}},[L,g,M,w,K,J,e,R]);k(function(){return function(){F.current!=null&&(c("clearTimeout")(F.current),F.current=null)}},[]);return h.jsx(d("CometVideoPictureInPictureManagerContext").CometVideoPictureInPictureManagerContext.Provider,{value:f,children:h.jsx(d("CometVideoPictureInPictureManagerContext").CometVideoPictureInPictureManagerAPIContext.Provider,{value:A,children:a.children})})}a.displayName=a.name+" [from "+f.id+"]";g.EXCLUDED_PROVIDERS=b;g.CometVideoPictureInPictureManager=a}),98); __d("CometWatchAndScrollContextSection.react",["CometLink.react","CometRelay","CometWatchAndScrollContextSection_video.graphql","TetraProfilePhoto.react","TetraText.react","XCometVideoHomePlaylistControllerRouteBuilder","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScrollContextSection.react");function a(a){var e;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("CometWatchAndScrollContextSection_video.graphql"),a);var f=a==null?void 0:a.owner;if(a==null||f==null)return null;var g=f.id,k=f.name,l=f.url;e=(e=f.profile_picture)==null?void 0:e.uri;var m="#";f.has_professional_features_for_watch===!0?m=c("XCometVideoHomePlaylistControllerRouteBuilder").buildURL({idorvanity:g}):l!=null&&(m=l);return i.jsxs("div",{className:"x6s0dn4 x78zum5",children:[i.jsx("div",{className:"x1emribx",children:i.jsx(c("TetraProfilePhoto.react"),{"aria-label":k!=null&&k!==""?k:m,linkProps:{url:m},onPress:function(){j.onReady(function(a){a.log({click_point:"actor_profile_picture",click_target:"watch_and_scroll_end_screen",event:"click"})})},size:32,source:{uri:e||""}})}),i.jsxs("div",{className:"xeuugli",children:[k!=null&&k!==""&&i.jsx(c("CometLink.react"),{color:"secondary",href:m,onClick:function(){j.onReady(function(a){a.log({click_point:"actor_name",click_target:"watch_and_scroll_end_screen",event:"click"})})},children:i.jsx(c("TetraText.react"),{color:"secondary",numberOfLines:1,type:"meta4",children:k})}),i.jsx("div",{className:"x1gslohp",children:i.jsx(c("TetraText.react"),{color:"primary",numberOfLines:1,type:"headlineEmphasized4",children:a==null?void 0:a.title_with_fallback})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScrollActionButton.react",["CometPressable.react","TetraIcon.react","TetraText.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.icon,d=a.label,e=a.onPress,f=a.testid;f=a.url;return h.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf xl56j7k x14vqqas xq8finb xod5an3 x16n37ib x1n2onr6 x1dmp6jm","data-testid":void 0,children:[h.jsx("div",{className:"xb2d7b1 xo26eqo xmk2xwg x8nt7p6 x14yjl9h xudhj91 x18nykt9 xww2gxu xod5an3 x889kno x1iji9kk x1a8lsjc x1sln4lm",children:h.jsx(c("CometPressable.react"),{"aria-label":d,linkProps:{url:f},onPress:e,children:h.jsx(c("TetraIcon.react"),{"aria-label":d,color:"white",hideHoverOverlay:!0,icon:b})})}),h.jsx(c("CometPressable.react"),{linkProps:{url:f},onPress:e,children:h.jsx(c("TetraText.react"),{align:"center",color:"primaryOnMedia",type:"bodyLink4",children:d})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScrollFallbackCTAScreen.react",["fbt","ix","CometRelay","CometSetWatchAndScrollVideoContext","CometWatchAndScrollActionButton.react","CometWatchAndScrollFallbackCTAScreen_video.graphql","VideoPlayerHooks","VideoPlayerReshareButton.react","XCometWatchControllerRouteBuilder","fbicon","react","requireDeferred","useCometRouterState"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=d("react").useContext,m=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScrollFallbackCTAScreen.react");function a(a){var e=a.setIsCanceled;a=a.video;a=d("CometRelay").useFragment(j!==void 0?j:j=b("CometWatchAndScrollFallbackCTAScreen_video.graphql"),a);var f=d("VideoPlayerHooks").useController(),g=c("useCometRouterState")();g=g==null?void 0:g.main.route.tabKey;g=g!=="watch";var n=l(c("CometSetWatchAndScrollVideoContext")),o=function(a){m.onReady(function(b){b.log({click_point:a,click_target:"watch_and_scroll_end_screen",event:"click"})})};return k.jsx("div",{className:"x6s0dn4 xrmyhay x16u764g x1ey2m1c x9f619 x78zum5 xds687c xl56j7k x13zrc24 xbxaen2 x1t1ogtf x1u72gb5 x10l6tqk x17qophe x13vifvy",children:k.jsxs("div",{className:"x1cy8zhl x78zum5 x1q0g3np xl56j7k",children:[g&&k.jsx(c("CometWatchAndScrollActionButton.react"),{icon:d("fbicon")._(i("607168"),16),label:h._("__JHASH__RNKdDd1Dhwj__JHASH__"),onPress:function(){n(null),o("watch_button")},url:c("XCometWatchControllerRouteBuilder").buildURL({})}),k.jsx(c("CometWatchAndScrollActionButton.react"),{icon:d("fbicon")._(i("534218"),16),label:h._("__JHASH__3wtbhevyblT__JHASH__"),onPress:function(){f.play("user_initiated"),e(!1),o("replay")}}),a!=null&&k.jsx(c("VideoPlayerReshareButton.react"),{renderActionButton:function(a){var b=a.onPress;return k.jsx(c("CometWatchAndScrollActionButton.react"),{icon:d("fbicon")._(i("484394"),16),label:h._("__JHASH__7sgCXbUM9aN__JHASH__"),onPress:function(){b(),o("share_button")}})},video:a})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScrollChaining.react",["fbt","ix","CometBackgroundImage.react","CometPictureInPictureExpContext","CometPressable.react","CometRelay","CometSetWatchAndScrollVideoContext","CometTahoeEndScreenProgressCircle.react","CometTheme.react","CometVideoPictureInPictureManager.react","CometWatchAndScrollChainingQuery.graphql","CometWatchAndScrollChaining_video.graphql","CometWatchAndScrollContextSection.react","CometWatchAndScrollFallbackCTAScreen.react","CometWatchAndScrollSetStoryViewabilityLoggerContext","CometWatchAndScrollVideoContext","TetraIcon.react","TetraText.react","VideoPlayerHooks","WebPixelRatio","fbicon","react","requireDeferred","useCometTahoeChainingDepth"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=d("react");e=d("react");var m=e.useCallback,n=e.useContext,o=e.useEffect,p=e.useState,q=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScrollChaining.react");function a(a){var e,f=a.hidden,g=a.routeTracePolicy,r=a.seedVideoID,s=a.subOrigin;a=a.video;var t=n(c("CometWatchAndScrollVideoContext")),u=t==null?void 0:t.chainingCursor;a=d("CometRelay").useFragment(j!==void 0?j:j=b("CometWatchAndScrollChaining_video.graphql"),a);u=d("CometRelay").useLazyLoadQuery(k!==void 0?k:k=b("CometWatchAndScrollChainingQuery.graphql"),{caller:"WNS",chainingCursor:u,channelEntryPoint:"WNS",count:1,scale:d("WebPixelRatio").get(),seedVideoID:r});var v=d("useCometTahoeChainingDepth").useChainingDepthContext(),w=v.chainingDepthDispatch;v=p(!1);var x=v[0],y=v[1],z=d("VideoPlayerHooks").useController(),A=n(c("CometSetWatchAndScrollVideoContext"));v=(v=u.video)==null?void 0:(u=v.video_channel)==null?void 0:(v=u.video_channel_feed)==null?void 0:(u=v.edges)==null?void 0:u[0];var B=v==null?void 0:v.cursor,C=v==null?void 0:v.node,D=C==null?void 0:(u=C.attachments)==null?void 0:(v=u[0])==null?void 0:v.media;u=(D==null?void 0:D.pmv_metadata)&&D.pmv_metadata!=null;var E=!!u;o(function(){!f&&!x&&q.onReady(function(a){a.log({event:"watch_and_scroll_end_screen_impression"})})},[f,x]);var F=n(c("CometWatchAndScrollSetStoryViewabilityLoggerContext")),G=n(c("CometPictureInPictureExpContext")),H=m(function(a){q.onReady(function(b){b.log({event:a})}),A({chainingCursor:B,chainingSeedVideoID:r,routeTracePolicy:g,sessionStartTime:t==null?void 0:t.sessionStartTime,sessionTrigger:t==null?void 0:t.sessionTrigger,subOrigin:s,videoID:D==null?void 0:D.id,videoUrl:D==null?void 0:D.url}),F({clientViewConfig:C==null?void 0:C.client_view_config,encryptedTracking:C==null?void 0:C.encrypted_tracking,trackingCode:{click_tracking_linkshim_cb:(C==null?void 0:C.click_tracking_linkshim_cb)||"",encrypted_click_tracking:(C==null?void 0:C.encrypted_click_tracking)||"",encrypted_tracking:(C==null?void 0:C.encrypted_tracking)||""},videoID:D==null?void 0:D.id,viewabilityConfig:C==null?void 0:C.viewability_config})},[B,g,r,F,A,C==null?void 0:C.click_tracking_linkshim_cb,C==null?void 0:C.client_view_config,C==null?void 0:C.encrypted_click_tracking,C==null?void 0:C.encrypted_tracking,C==null?void 0:C.viewability_config,s,t==null?void 0:t.sessionStartTime,t==null?void 0:t.sessionTrigger,D]);if(x)return l.jsx(c("CometWatchAndScrollFallbackCTAScreen.react"),{setIsCanceled:y,video:a});if(D==null||D.__typename!=="Video"){q.onReady(function(a){a.log({event:"watch_and_scroll_chaining_query_empty"})});return l.jsx(c("CometWatchAndScrollFallbackCTAScreen.react"),{setIsCanceled:y,video:a})}u=(v=D.image)==null?void 0:v.uri;a=function(){y(!0),q.onReady(function(a){a.log({click_point:"cancel_button",click_target:"watch_and_scroll_end_screen",event:"click"})})};v=function(){z.play("user_initiated"),q.onReady(function(a){a.log({click_point:"replay",click_target:"watch_and_scroll_end_screen",event:"click"})})};var I=h._("__JHASH__gHxfq7Lt3Mv__JHASH__"),J=D==null?void 0:(e=D.owner)==null?void 0:e.id;return l.jsx(c("CometTheme.react"),{theme:"dark",children:l.jsxs("div",{className:"x1ey2m1c x9f619 xds687c x10l6tqk x17qophe x13vifvy",children:[l.jsx("div",{className:"x1ey2m1c x9f619 xds687c x10l6tqk x17qophe x13vifvy",children:u!=null&&l.jsx(c("CometBackgroundImage.react"),{src:u})}),l.jsxs("div",{className:"xrmyhay x1ey2m1c x9f619 x78zum5 xds687c xdt5ytf x889kno x1iji9kk x1a8lsjc x1sln4lm x10l6tqk x17qophe x13vifvy",children:[l.jsx("div",{className:"xyorhqc",children:l.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"body3",children:h._("__JHASH__L9EZP1qHWd4__JHASH__")})}),l.jsx(c("CometWatchAndScrollContextSection.react"),{video:D}),l.jsxs("div",{className:"x6s0dn4 x78zum5 xr1yuqi",children:[l.jsx("div",{className:"x1emribx",children:l.jsx(c("TetraIcon.react"),{"aria-label":I,color:"white",icon:d("fbicon")._(i("534219"),20),onPress:v})}),l.jsx(c("CometPressable.react"),{onPress:v,children:l.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"bodyLink4",children:I})})]})]}),l.jsx("div",{className:"x6s0dn4 x1ey2m1c x9f619 x78zum5 xds687c xdt5ytf xl56j7k x47corl x10l6tqk x17qophe x13vifvy",children:l.jsxs("div",{className:"x1sy10c2 x71s49j",children:[!f&&l.jsx(c("CometPressable.react"),{"aria-label":h._("__JHASH__RPoFRbVl1Un__JHASH__"),onPress:function(){H("watch_and_scroll_chaining_click_advance"),w&&w({type:"INCREMENT"})},children:l.jsx(c("CometTahoeEndScreenProgressCircle.react"),{circleDiameter:44,circleStrokeColor:"var(--base-blue)",circleStrokeWidth:3,iconSize:20,isMakingProgress:!f,onProgressDone:function(){var a=G.pictureInPictureExpConfig.isInPictureInPictureExp,b=G.pictureInPictureExpConfig.isInPictureInPictureExpControlGroup,c=G.pictureInPictureExpConfig.isSkipAndChainingDisabled;a=!a&&!b||(a||b)&&!E&&!d("CometVideoPictureInPictureManager.react").EXCLUDED_PROVIDERS.includes(J)&&!c;if(a)H("watch_and_scroll_chaining_auto_advance"),w&&w({type:"INCREMENT"});else return},timeoutSec:6})}),l.jsx("div",{className:"x1anpbxc",children:l.jsx(c("CometPressable.react"),{onPress:a,children:l.jsx(c("TetraText.react"),{color:"secondary",type:"bodyLink4",children:h._("__JHASH__DTSCtZ4zhvM__JHASH__")})})})]})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerWithWatchAndScrollChaining.react",["CometLoadingAnimation.react","CometPlaceholder.react","CometRelay","CometWatchAndScrollChaining.react","CometWatchAndScrollVideoContext","VideoPlayerWithWatchAndScrollChaining_video.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useContext;function a(a){var e=a.hidden,f=a.routeTracePolicy,g=a.subOrigin;a=a.video;var k=j(c("CometWatchAndScrollVideoContext"));k=k==null?void 0:k.chainingSeedVideoID;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerWithWatchAndScrollChaining_video.graphql"),a);return k==null?null:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx("div",{className:"x6s0dn4 xrmyhay x1ey2m1c x9f619 x78zum5 xds687c xl56j7k x10l6tqk x17qophe x13vifvy",children:i.jsx("div",{className:"xc9qbxq x1n2onr6 x14qfxbe",children:i.jsx(c("CometLoadingAnimation.react"),{size:36})})}),children:i.jsx(c("CometWatchAndScrollChaining.react"),{hidden:e,routeTracePolicy:f,seedVideoID:k,subOrigin:g,video:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerWithWatchAndScrollChainingWrapper.react",["CometPrerenderer.react","CometRelay","VideoPlayerHooks","VideoPlayerWithWatchAndScrollChaining.react","VideoPlayerWithWatchAndScrollChainingWrapper_video.graphql","react","useVideoPlayerControllerSubscription"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=.8,k=0,l=function(a){var b=d("VideoPlayerHooks").useIsLive(),e=c("useVideoPlayerControllerSubscription")(function(a,c){var d,e;if(b)d=!1,e=!1;else{var f=a.getCurrentState().ended,g=a.getPlayheadPosition();a=a.getCurrentState();var h=a.duration,i=a.loopCount;a=a.loopCurrent;h=Math.min(h*j,h-k);d=a>=i&&f;e=c!=null&&c.shouldPrerender||g>h}return c!=null&&c.isVisible===d&&c.shouldPrerender===e?c:{isVisible:d,shouldPrerender:e}});return!a?{isVisible:!1,shouldPrerender:!1}:e};function a(a){var e=a.isVideoHomeEligible,f=a.routeTracePolicy,g=a.subOrigin;a=a.video;var j=l(e),k=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerWithWatchAndScrollChainingWrapper_video.graphql"),a);return e?i.jsx(c("CometPrerenderer.react"),{prerenderingProps:j,children:function(a){return i.jsx("div",{className:""+(a.hidden===!0?" x1s85apg":""),children:i.jsx(c("VideoPlayerWithWatchAndScrollChaining.react"),babelHelpers["extends"]({routeTracePolicy:f,subOrigin:g},a,{video:k}))})}}):null}a.displayName=a.name+" [from "+f.id+"]";g.useWatchAndScrollChainingComponentRenderedStatus=l;g.VideoPlayerWithWatchAndScrollChainingWrapper=a}),98); __d("VideoPlayerWithWatchAndScrollSoundContext.react",["CometWatchAndScrollSoundContext","VideoPlayerHooks","react","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";d("react");b=d("react");var h=b.useContext,i=b.useEffect,j=b.useRef;function a(){var a=h(c("CometWatchAndScrollSoundContext")),b=d("VideoPlayerHooks").useController(),e=d("VideoPlayerHooks").useMuted(),f=d("VideoPlayerHooks").useVolume(),g=d("VideoPlayerHooks").usePaused(),k=c("usePrevious")(e),l=c("usePrevious")(f),m=j(e),n=j(f);i(function(){k!==null&&k!==e&&a.setMuted(e),l!==null&&l!==f&&a.setVolume(f)},[e,k,l,a,f]);i(function(){g||(a.muted==null&&a.setMuted(m.current),a.volume==null&&a.setVolume(n.current))},[g,a]);i(function(){if(!g){var c=a.muted,d=a.volume;c!=null&&b.setMuted(c,"user_initiated");d!=null&&b.setVolume(d)}},[b,g,a]);return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerWithWatchAndScrollWarningScreen.react",["CometRelay","CometWarningScreenContext","VideoPlayerHooks","VideoPlayerWithWatchAndScrollWarningScreen_video.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useEffect;function a(a){var c,e;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerWithWatchAndScrollWarningScreen_video.graphql"),a);var f=d("VideoPlayerHooks").useController(),g=d("VideoPlayerHooks").usePaused(),k=d("VideoPlayerHooks").useEnded(),l=d("CometWarningScreenContext").useSetOverlayExists(),m=d("CometWarningScreenContext").useShowOverlay(),n=d("CometWarningScreenContext").useIsOverlayShown();c=a==null?void 0:(c=a.cix_screen)==null?void 0:c.view_model;var o=c!=null;e=(e=a==null?void 0:(e=a.preferred_thumbnail)==null?void 0:(e=e.image)==null?void 0:e.uri)!=null?e:"#";var p=a==null?void 0:a.id;a=a==null?void 0:(a=a.container_story)==null?void 0:a.id;j(function(){o&&(l(!0),m(!0))},[f,l,m,o]);j(function(){!g&&n&&f.pause("warning_screen_cover")},[f,n,g]);return o&&!k?i.jsx(d("CometRelay").MatchContainer,{match:c,props:{alwaysShowDetails:!0,contentID:p,data:c,mediaUri:e,storyID:a,surface:"video_channel"}}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometCastingMiniplayerRoot.react",["CastingContext","CometPlaceholder.react","JSResourceForInteraction","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext,j=c("lazyLoadComponent")(c("JSResourceForInteraction")("CometCastingMiniplayer.react").__setRef("CometCastingMiniplayerRoot.react"));function a(){var a=i(d("CastingContext").CastingStateContext);return a==null?null:h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(j,{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerCaptionsMenu.react",["fbt","$InternalEnum","CometKeys","VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react","VideoPlayerCaptionsMenuCaptionsDisplayPane.react","VideoPlayerCaptionsMenuMainPane.react","VideoPlayerHooks","react","useLayerKeyCommands"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");e=d("react");var j=e.useCallback,k=e.useEffect,l=e.useMemo,m=e.useRef,n=e.useState,o=b("$InternalEnum")({CAPTIONS_BG_COLOR:"captionsBackgroundColor",CAPTIONS_BG_OPACITY:"captionsBackgroundOpacity",CAPTIONS_DISPLAY_MAIN:"captionsDisplayMain",CAPTIONS_TEXT_COLOR:"captionsTextColor",CAPTIONS_TEXT_SIZE:"captionsTextSize",CAPTIONS_MAIN:"captionsMain"});function a(a){var b=a.availableCaptionsLocales,e=a.captionsListExpanded,f=a.children;f=f===void 0?null:f;var g=a.onClose,p=a.onPressLog,q=a.selectedCaptionsLocale,r=a.setCaptionsListExpanded;a=a.setSelectedCaptionsLocale;var s=d("VideoPlayerHooks").useCaptionDisplayStyle(),t=n(o.CAPTIONS_MAIN),u=t[0];t=t[1];var v=m(null),w=m(null),x=j(function(a){v.current&&w.current&&a.target instanceof HTMLElement&&document.contains(a.target)&&!v.current.contains(a.target)&&w.current.contains(a.target)&&g()},[g]);k(function(){document.addEventListener("click",x);return function(){document.removeEventListener("click",x)}},[x]);var y=l(function(){return[{command:{key:c("CometKeys").ESCAPE},description:h._("__JHASH__IJWa3i0ku9h__JHASH__"),handler:function(){g()}}]},[g]);c("useLayerKeyCommands")(y);y=i.jsx(d("VideoPlayerCaptionsMenuMainPane.react").VideoPlayerCaptionsMenuMainPane,{availableCaptionsLocales:b,captionsListExpanded:e,onPressLog:p,selectedCaptionsLocale:q,setCaptionsListExpanded:r,setPane:t,setSelectedCaptionsLocale:a,children:f});switch(u){case o.CAPTIONS_MAIN:break;case o.CAPTIONS_DISPLAY_MAIN:y=i.jsx(d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react").VideoPlayerCaptionsMenuCaptionsDisplayMainPane,{currentCaptionsDisplay:s,onPressLog:p,setPane:t});break;case o.CAPTIONS_BG_COLOR:y=i.jsx(d("VideoPlayerCaptionsMenuCaptionsDisplayPane.react").VideoPlayerCaptionsMenuCaptionsDisplayPane,{captionsDisplayOption:"captionsBackgroundColor",currentCaptionsDisplay:s,onPressLog:p,setPane:t});break;case o.CAPTIONS_BG_OPACITY:y=i.jsx(d("VideoPlayerCaptionsMenuCaptionsDisplayPane.react").VideoPlayerCaptionsMenuCaptionsDisplayPane,{captionsDisplayOption:"captionsBackgroundOpacity",currentCaptionsDisplay:s,onPressLog:p,setPane:t});break;case o.CAPTIONS_TEXT_SIZE:y=i.jsx(d("VideoPlayerCaptionsMenuCaptionsDisplayPane.react").VideoPlayerCaptionsMenuCaptionsDisplayPane,{captionsDisplayOption:"captionsTextSize",currentCaptionsDisplay:s,setPane:t});break;case o.CAPTIONS_TEXT_COLOR:y=i.jsx(d("VideoPlayerCaptionsMenuCaptionsDisplayPane.react").VideoPlayerCaptionsMenuCaptionsDisplayPane,{captionsDisplayOption:"captionsTextColor",currentCaptionsDisplay:s,onPressLog:p,setPane:t});break}return i.jsxs(i.Fragment,{children:[i.jsx("div",{ref:v,children:y}),i.jsx("div",{className:"x5yr21d xixxii4 x17qophe x13vifvy xh8yej3 x8knxv4","data-testid":void 0,ref:w})]})}a.displayName=a.name+" [from "+f.id+"]";g.VideoPlayerCaptionsMenuPaneType=o;g.VideoPlayerCaptionsMenu=a}),98); __d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react",["fbt","ix","CometImage.react","CometPressable.react","FocusRegion.react","VideoPlayerCaptionsMenu.react","focusScopeQueries","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l={captionsDisplayLabel:{fontSize:"x1nxh6w3",fontWeight:"x1s688f",marginStart:"x16n37ib",$$css:!0},chevronLeft:{alignItems:"x6s0dn4",display:"x3nfvp2",$$css:!0},chevronRight:{display:"x1lliihq",$$css:!0},icon:{display:"x1rg5ohu",$$css:!0},menuHeading:{alignItems:"x6s0dn4",color:"x14ctfv",cursor:"x1ypdohk",display:"x78zum5",fontWeight:"x1s688f",":hover_textDecoration":"x1lku1pv",$$css:!0},menuOptionLabel:{cursor:"x1ypdohk",display:"x1rg5ohu",fontSize:"x1nxh6w3",fontWeight:"x1s688f",width:"x1uncgzr",$$css:!0},menuOptionRow:{color:"x14ctfv",display:"x1lliihq",outline:"x1a2a7pz",paddingTop:"x1y1aw1k",paddingEnd:"x4uap5",paddingBottom:"xwib8y2",paddingStart:"xkhd6sd",textAlign:"x1yc453h",width:"xafpxmx",$$css:!0},menuOptions:{marginTop:"x1anpbxc",$$css:!0},menuOptionValue:{fontSize:"x1nxh6w3",fontWeight:"xo1l8bm",$$css:!0},pressableOption:{width:"xh8yej3",$$css:!0}},m={captionsBackgroundColor:{Black:"BLACK",Blue:"BLUE",Cyan:"CYAN",Green:"GREEN",Magenta:"MAGENTA",Red:"RED",White:"WHITE",Yellow:"YELLOW"},captionsBackgroundOpacity:{"0%":"TRANSPARENT","25%":"LIGHT","45%":"DEFAULT","75%":"DARK","100%":"OPAQUE"},captionsTextColor:{Black:"BLACK",Blue:"BLUE",Cyan:"CYAN",Green:"GREEN",Magenta:"MAGENTA",Red:"RED",White:"WHITE",Yellow:"YELLOW"},captionsTextSize:{"(50%)":"SMALLEST","(75%)":"SMALL","(100%)":"DEFAULT","(125%)":"MEDIUM","(150%)":"BIG","(175%)":"BIGGER","(200%)":"BIGGEST"}},n={"Background Color":{ftbLabel:h._("__JHASH___JkqGHU6s6W__JHASH__"),name:"captionsBackgroundColor"},"Background Opacity":{ftbLabel:h._("__JHASH__4Nh73Z-aeW___JHASH__"),name:"captionsBackgroundOpacity"},"Text Color":{ftbLabel:h._("__JHASH__M3skPlj7iF___JHASH__"),name:"captionsTextColor"},"Text Size":{ftbLabel:h._("__JHASH__U5jCK0KgfGO__JHASH__"),name:"captionsTextSize"}},o={Black:h._("__JHASH__A4ukiml3pYS__JHASH__"),Blue:h._("__JHASH__IpnzJ1LIfYB__JHASH__"),Cyan:h._("__JHASH__o9RFd4r9BR3__JHASH__"),Green:h._("__JHASH__oOxxTNBullx__JHASH__"),Magenta:h._("__JHASH__Ld9joX9Wzr7__JHASH__"),Red:h._("__JHASH__4r3EzkN_IgK__JHASH__"),White:h._("__JHASH__i_Mq3bSjDEc__JHASH__"),Yellow:h._("__JHASH__M1JGv_1IGWD__JHASH__")};function p(a){var b=null,c=null;switch(a){case"(50%)":b=h._("__JHASH__jOdOc9Kt75y__JHASH__");c="X-";break;case"(75%)":b=h._("__JHASH__jOdOc9Kt75y__JHASH__");break;case"(125%)":b=h._("__JHASH__W4ixrK_j61o__JHASH__");break;case"(150%)":b=h._("__JHASH__W4ixrK_j61o__JHASH__");c="X-";break;case"(175%)":b=h._("__JHASH__W4ixrK_j61o__JHASH__");c="XX-";break;case"(200%)":b=h._("__JHASH__W4ixrK_j61o__JHASH__");c="XXX-";break;case"(100%)":b=h._("__JHASH__a7N3n7jAB1i__JHASH__")}return j.jsxs("span",{children:[c!=null&&c,b,a]})}p.displayName=p.name+" [from "+f.id+"]";var q={captionsBackgroundColor:d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_BG_COLOR,captionsBackgroundOpacity:d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_BG_OPACITY,captionsTextColor:d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_TEXT_COLOR,captionsTextSize:d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_TEXT_SIZE};function r(a){var b=a.onPressLog,d=a.option,e=a.optionVal,f=a.setPane,g=n[d].name;a=k(function(){f(q[g]),b&&b("captions_display_main_menu",d)},[g,f,d,b]);var h=null;switch(g){case"captionsTextColor":case"captionsBackgroundColor":h=o[e];break;default:h=e;break}var m=d.replace(" ","");m="video-player-captions-menu-captions-display-main-"+m;return j.jsxs(c("CometPressable.react"),{onPress:a,xstyle:l.menuOptionRow,children:[j.jsxs("div",{className:"x1ypdohk x1rg5ohu x1nxh6w3 x1s688f x1uncgzr",children:[n[d].ftbLabel,j.jsx("div",{className:"x1nxh6w3 xo1l8bm","data-testid":void 0,children:g==="captionsTextSize"?p(e):h})]}),j.jsx("div",{className:"x1rg5ohu",children:j.jsx("div",{className:"x1lliihq",children:j.jsx("div",{style:{display:"table-cell"},children:j.jsx(c("CometImage.react"),{src:i("480588")})})})})]})}r.displayName=r.name+" [from "+f.id+"]";function a(a){var b=a.currentCaptionsDisplay,e=a.onPressLog,f=a.setPane;a=k(function(){f(d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_MAIN)},[f]);return j.jsxs(d("FocusRegion.react").FocusRegion,{autoFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,recoverFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,children:[j.jsx("div",{className:"x6s0dn4 x14ctfv x1ypdohk x78zum5 x1s688f x1lku1pv",children:j.jsxs(c("CometPressable.react"),{onPress:a,xstyle:l.pressableOption,children:[j.jsx("span",{className:"x6s0dn4 x3nfvp2",children:j.jsx(c("CometImage.react"),{src:i("480580")})}),j.jsx("span",{className:"x1nxh6w3 x1s688f x16n37ib",children:h._("__JHASH__JdYTKKzsT-t__JHASH__")})]})}),j.jsx("div",{className:"x1anpbxc","data-testid":void 0,children:Object.keys(n).map(function(a){var c=n[a].name,d=m[c];d=Object.fromEntries(Object.entries(d).map(function(a){var b=a[0];a=a[1];return[a,b]}));d=b!=null?d[b[c]]:"";return j.jsx(r,{onPressLog:e,option:a,optionVal:d,setPane:f},a)})})]})}a.displayName=a.name+" [from "+f.id+"]";g.captionsDisplayOptionsMap=m;g.colorsFBTMap=o;g.getFontSizeDivWithFBTLabel=p;g.VideoPlayerCaptionsMenuCaptionsDisplayMainPane=a}),98); __d("VideoPlayerCaptionsSettingMutation",["CometRelay","VideoPlayerCaptionsSettingMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("VideoPlayerCaptionsSettingMutation.graphql");function a(a,b,c){return d("CometRelay").commitMutation(a,{mutation:i,onCompleted:c&&c.onCompleted,onError:c&&c.onError,optimisticResponse:{video_captions_setting:{success:!0}},variables:{input:{captions_background_color:b.captions_background_color,captions_background_opacity:b.captions_background_opacity,captions_text_color:b.captions_text_color,captions_text_size:b.captions_text_size,client_mutation_id:"www_captions_settings"}}})}g.commit=a}),98); __d("VideoPlayerCaptionsMenuCaptionsDisplayPane.react",["fbt","ix","CometImage.react","CometPressable.react","CometRelay","FocusRegion.react","TetraIcon.react","VideoPlayerCaptionsMenu.react","VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react","VideoPlayerCaptionsSettingMutation","VideoPlayerHooks","fbicon","focusScopeQueries","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l={chevronLeft:{alignItems:"x6s0dn4",display:"x3nfvp2",width:"x1849jeq",$$css:!0},icon:{display:"x1rg5ohu",width:"x1849jeq",$$css:!0},menuHeading:{alignItems:"x6s0dn4",color:"x14ctfv",cursor:"x1ypdohk",display:"x78zum5",fontSize:"x1nxh6w3",fontWeight:"x1s688f",":hover_textDecoration":"x1lku1pv",$$css:!0},menuLabel:{cursor:"x1ypdohk",display:"x1rg5ohu",$$css:!0},menuOptionRow:{color:"x14ctfv",display:"x1lliihq",outline:"x1a2a7pz",paddingTop:"x1y1aw1k",paddingEnd:"x4uap5",paddingBottom:"xwib8y2",paddingStart:"xkhd6sd",textAlign:"x1yc453h",$$css:!0},menuOptions:{fontSize:"x1nxh6w3",fontWeight:"xo1l8bm",marginTop:"x1anpbxc",$$css:!0},pressableOption:{width:"xh8yej3",$$css:!0}},m={captionsBackgroundColor:h._("__JHASH___JkqGHU6s6W__JHASH__"),captionsBackgroundOpacity:h._("__JHASH__4Nh73Z-aeW___JHASH__"),captionsTextColor:h._("__JHASH__M3skPlj7iF___JHASH__"),captionsTextSize:h._("__JHASH__U5jCK0KgfGO__JHASH__")},n=function(a){return{captions_background_color:a.captionsBackgroundColor,captions_background_opacity:a.captionsBackgroundOpacity,captions_text_color:a.captionsTextColor,captions_text_size:a.captionsTextSize}};function o(a){var b=a.captionsDisplayOption,e=a.currentCaptionsDisplay,f=a.onPressLog,g=a.option,h=a.selected,m=a.setPane,o=d("VideoPlayerHooks").useController();a=h;var p=d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react").captionsDisplayOptionsMap[b];h=null;switch(b){case"captionsTextColor":case"captionsBackgroundColor":h=d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react").colorsFBTMap[g];break;default:h=g}var q="video-player-captions-menu-captions-display-pane-"+b+"-"+g;q=k(function(){a=!0;if(e!=null){e[b]=p[g];o.setCaptionsDisplayStyle(e);var c=n(e);d("VideoPlayerCaptionsSettingMutation").commit(r,c)}m(d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_DISPLAY_MAIN);f&&f(b)},[e,p,b,o,g]);var r=d("CometRelay").useRelayEnvironment();return j.jsxs(c("CometPressable.react"),{onPress:q,testid:void 0,xstyle:l.menuOptionRow,children:[j.jsx("div",{className:"x1rg5ohu x1849jeq",children:a&&j.jsx("div",{"data-testid":void 0,children:j.jsx(c("TetraIcon.react"),{color:"white",icon:d("fbicon")._(i("477813"),16)})})}),b==="captionsTextSize"?d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react").getFontSizeDivWithFBTLabel(g):j.jsx("div",{className:"x1ypdohk x1rg5ohu",children:h})]})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.captionsDisplayOption,e=a.currentCaptionsDisplay,f=a.onPressLog,g=a.setPane;a=m[b];var h=d("VideoPlayerCaptionsMenuCaptionsDisplayMainPane.react").captionsDisplayOptionsMap[b],n=e!=null?e[b]:null,p=k(function(){g(d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_DISPLAY_MAIN)},[g]),q="video-player-captions-menu-captions-display-pane-"+b;return j.jsxs(d("FocusRegion.react").FocusRegion,{autoFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,recoverFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,children:[j.jsx("div",{className:"x6s0dn4 x14ctfv x1ypdohk x78zum5 x1nxh6w3 x1s688f x1lku1pv",children:j.jsxs(c("CometPressable.react"),{onPress:p,testid:void 0,xstyle:l.pressableOption,children:[j.jsx("span",{className:"x6s0dn4 x3nfvp2 x1849jeq",children:j.jsx(c("CometImage.react"),{src:i("480580")})}),a]})}),j.jsx("div",{className:"x1nxh6w3 xo1l8bm x1anpbxc","data-testid":void 0,children:Object.keys(h).map(function(a){var c=n===h[a];return j.jsx(o,{captionsDisplayOption:b,currentCaptionsDisplay:e,onPressLog:f,option:a,selected:c,setPane:g},a)})})]})}a.displayName=a.name+" [from "+f.id+"]";g.VideoPlayerCaptionsMenuCaptionsDisplayPane=a}),98); __d("VideoPlayerCaptionsMenuMainPane.react",["fbt","ix","CometPressable.react","CometScrollableArea.react","FocusRegion.react","TetraIcon.react","VideoPlayerCaptionsMenuTopBar.react","VideoPlayerHooks","fbicon","focusScopeQueries","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useEffect,l={icon:{display:"x1rg5ohu",width:"xw4jnvo",$$css:!0},menuLabel:{cursor:"x1ypdohk",display:"x1rg5ohu",marginStart:"x17adc0v",width:"xzjbwwf",$$css:!0},menuOptionRow:{color:"x14ctfv",display:"x1lliihq",fontSize:"x1nxh6w3",fontWeight:"xo1l8bm",minWidth:"xfvyar9",outline:"x1a2a7pz",paddingTop:"x1y1aw1k",paddingEnd:"x4uap5",paddingBottom:"xwib8y2",paddingStart:"xkhd6sd",textAlign:"x1yc453h",":hover_backgroundColor":"xx8nu07",$$css:!0},menuOptions:{marginTop:"x1anpbxc",maxHeight:"x15eivr9",$$css:!0},moreOptionsLabel:{cursor:"x1ypdohk",display:"x1rg5ohu",marginStart:"x1iedhe",$$css:!0}},m=5;function n(a){var b,e=a.captions,f=a.captionsVisible,g=a.controller,k=a.focused,m=a.onPressLog,n=a.setSelectedCaptionsLocale;a=d("VideoPlayerHooks").useIsVideoBroadcast();a=e.localized_creation_method!=null||a;b="video-player-captions-menu-language-list-item-"+((b=e.localized_language)!=null?b:"");return j.jsxs(c("CometPressable.react"),{onPress:function(){var a;e.locale!=null&&n(e.locale);f||g.setCaptionsVisible(!0);e.captions_url!=null&&g.setCaptionsUrl(e.captions_url);m&&m("captions_language_selector",(a=e.localized_language)!=null?a:"")},testid:void 0,xstyle:l.menuOptionRow,children:[j.jsx("div",{className:"x1rg5ohu xw4jnvo",children:k&&j.jsx("div",{"data-testid":void 0,children:j.jsx(c("TetraIcon.react"),{color:"white",icon:d("fbicon")._(i("477813"),16)})})}),j.jsxs("div",{className:"x1ypdohk x1rg5ohu x17adc0v xzjbwwf",children:[e.localized_language,(b=e.localized_country)!=null?b:null,!a&&h._("__JHASH__61S-FIBVxhC__JHASH__")]})]})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.availableCaptionsLocales,e=a.captionsListExpanded,f=a.children,g=a.onPressLog,o=a.selectedCaptionsLocale,p=a.setCaptionsListExpanded,q=a.setPane,r=a.setSelectedCaptionsLocale,s=d("VideoPlayerHooks").useController(),t=d("VideoPlayerHooks").useCaptionsVisible();a=b!=null?b.length:0;k(function(){t||r("")},[t,r]);return b==null?null:j.jsx(d("FocusRegion.react").FocusRegion,{autoFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,recoverFocusQuery:d("focusScopeQueries").headerFirstTabbableSecondScopeQuery,children:j.jsxs("div",{"data-testid":void 0,children:[j.jsx(c("VideoPlayerCaptionsMenuTopBar.react"),{availableCaptionsLocales:b,onPressLog:g,setPane:q}),f,j.jsx(c("CometScrollableArea.react"),{hideScrollbar:!0,children:j.jsxs("div",{className:"x1anpbxc x15eivr9","data-testid":void 0,children:[j.jsxs(c("CometPressable.react"),{onPress:function(){r(""),s.setCaptionsVisible(!1)},xstyle:l.menuOptionRow,children:[j.jsx("div",{className:"x1rg5ohu xw4jnvo",children:o===""&&j.jsx(c("TetraIcon.react"),{color:"white",icon:d("fbicon")._(i("477813"),16)})}),j.jsx("div",{className:"x1ypdohk x1rg5ohu x17adc0v xzjbwwf",children:h._("__JHASH__e5FM_cV1hlu__JHASH__")})]}),b.slice(0,4).map(function(a){var b=a.locale===o;return a.localized_language!=null?j.jsx(n,{captions:a,captionsVisible:t,controller:s,focused:b,onPressLog:g,setSelectedCaptionsLocale:r},a.locale):null}),a>=m&&!e&&j.jsx(c("CometPressable.react"),{onPress:function(){p(!0)},xstyle:l.menuOptionRow,children:j.jsx("div",{className:"x1ypdohk x1rg5ohu x1iedhe",children:h._("__JHASH__OIavC7F1dep__JHASH__")})}),e&&b.slice(4).map(function(a){var b=a.locale===o;return a.localized_language!=null?j.jsx(n,{captions:a,captionsVisible:t,controller:s,focused:b,setSelectedCaptionsLocale:r},a.locale):null}),e&&j.jsx(c("CometPressable.react"),{onPress:function(){p(!1)},xstyle:l.menuOptionRow,children:j.jsx("div",{className:"x1ypdohk x1rg5ohu x1iedhe",children:h._("__JHASH__ety7kKeVKSL__JHASH__")})})]})})]})})}a.displayName=a.name+" [from "+f.id+"]";g.VideoPlayerCaptionsMenuMainPane=a}),98); __d("VideoPlayerCaptionsMenuTopBar.react",["fbt","ix","CometImage.react","CometPressable.react","VideoPlayerCaptionsMenu.react","VideoPlayerHooks","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l={"default":{color:"x14ctfv",display:"x78zum5",minWidth:"x1jzhcrs",$$css:!0},label:{fontSize:"x1nxh6w3",fontWeight:"x1s688f",$$css:!0},labelAutoGenerated:{fontSize:"x1nxh6w3",fontStyle:"x1k4tb9n",$$css:!0},option:{alignItems:"x6s0dn4",color:"x14ctfv",cursor:"x1ypdohk",display:"x3nfvp2",flexGrow:"x1bhwmg6",justifyContent:"x13a6bvl",marginStart:"x8zvzrc",$$css:!0},optionsLabel:{display:"x3nfvp2",fontWeight:"xo1l8bm",marginStart:"x1mnrxsn",$$css:!0},pressableOption:{width:"xh8yej3",$$css:!0},settingIconRight:{display:"x3nfvp2",$$css:!0}};function a(a){var b=a.availableCaptionsLocales,e=a.onPressLog,f=a.setPane;a=k(function(){f(d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenuPaneType.CAPTIONS_DISPLAY_MAIN),e&&e("captions_main_menu_top_bar")},[f,e]);var g=d("VideoPlayerHooks").useIsVideoBroadcast();b=(b==null?void 0:b.some(function(a){return a.localized_creation_method!=null}))||g;return j.jsxs("div",{children:[j.jsx("div",{className:"x14ctfv x78zum5 x1jzhcrs",children:j.jsxs(c("CometPressable.react"),{onPress:a,testid:void 0,xstyle:l.pressableOption,children:[j.jsx("div",{className:"x1nxh6w3 x1s688f",children:h._("__JHASH__LFEdNCYpX2s__JHASH__")}),j.jsxs("div",{className:"x6s0dn4 x14ctfv x1ypdohk x3nfvp2 x1bhwmg6 x13a6bvl x8zvzrc",children:[j.jsx("span",{className:"x3nfvp2",children:j.jsx(c("CometImage.react"),{src:i("492300")})}),j.jsx("div",{className:"x3nfvp2 xo1l8bm x1mnrxsn",children:h._("__JHASH__H44BsQl2goa__JHASH__")})]})]})}),b!=null&&b&&j.jsx("div",{className:"x1nxh6w3 x1k4tb9n",children:h._("__JHASH__uZTU9s4hTUD__JHASH__")})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerCaptionsControl.react",["fbt","ix","CometRelay","IntlCurrentLocale","VideoPlayerCaptionsControl_video.graphql","VideoPlayerCaptionsMenu.react","VideoPlayerControlIcon.react","VideoPlayerDefaultControlsProperties","VideoPlayerHooks","VideoPlayerLoggingSuboriginContext","VideoPlayerUserInteractionCounter","fbicon","react","requireDeferred","usePlayerOriginRouteTracePolicy"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useCallback,m=e.useContext,n=e.useEffect,o=e.useRef,p=e.useState,q=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("VideoPlayerCaptionsControl.react"),r="asr",s=function(a){return a.length<2?null:a.substr(0,2)};function a(a){var e,f=a.alignMenuToIcon;f=f===void 0?!1:f;var g=a.captionsVisible,t=a.children;t=t===void 0?null:t;var u=a.compactMenu,v=a.icon,w=a.menuOpened,x=a.onMenuOpen,y=a.onUserInteraction,z=a.setMenuOpened;a=a.video;var A=h._("__JHASH__RzG6zhlG9t4__JHASH__");d("VideoPlayerUserInteractionCounter").useVideoPlayerUserInteraction("video_captions_menu",w===d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_CAPTIONS_MENU,y);y=d("CometRelay").useFragment(j!==void 0?j:j=b("VideoPlayerCaptionsControl_video.graphql"),a);var B=d("VideoPlayerHooks").useMuted(),C=d("VideoPlayerHooks").useController(),D=c("usePlayerOriginRouteTracePolicy")();a=y==null?void 0:y.video_available_captions_locales;e=p((e=y==null?void 0:y.default_video_caption_locale)!=null?e:"");var E=e[0];e=e[1];var F=o(y==null?void 0:y.default_video_caption_locale),G=o(null);y=[];var H=c("IntlCurrentLocale").code;n(function(){var a;F.current!==r&&s((a=F.current)!=null?a:"")!==s(H)&&G.current===null?(C.setCaptionsVisible(!1),G.current=!1):B&&!g&&G.current===null?(G.current=!0,C.setCaptionsVisible(!0)):!B&&G.current===!0&&(C.setCaptionsVisible(!1),G.current=!1)},[g,C,B,H]);if(a!=null)for(var a=a,I=Array.isArray(a),J=0,a=I?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var K;if(I){if(J>=a.length)break;K=a[J++]}else{J=a.next();if(J.done)break;K=J.value}K=K;K={captions_url:K.captions_url,locale:K.locale,localized_country:K.localized_country,localized_creation_method:K.localized_creation_method,localized_language:K.localized_language};y.push(K)}y.sort(function(a,b){return((a=a.localized_language)!=null?a:"")>((a=b.localized_language)!=null?a:"")?1:-1});var L=w===d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_CAPTIONS_MENU;K=p(!1);J=K[0];I=K[1];var M=m(c("VideoPlayerLoggingSuboriginContext")),N=l(function(a,b){a===void 0&&(a=null),b===void 0&&(b=null),q.onReady(function(c){c.log({click_point:a,event:"click",event_target_info:D,event_target_sub_type:b,player_suborigin:M})})},[D,M]);return k.jsxs("div",{className:"x1rg5ohu x1k70j0n x1w0mnb xzueoph x1mnrxsn"+(f===!0?" x1n2onr6 xuxw1ft":""),"data-testid":void 0,children:[L&&k.jsx("div",{className:"x1av4zun x1lcm9me x1yr5g0i xrt01vj x10y3i5r xacj9c0 x14ctfv x89ytp0 x1hdnelj xgmxx4u xyamay9 x1pi30zi x1l90r2v x1swvt13 x10l6tqk x1602a87"+(f===!0?" x1g75g36":""+(u===!0?" xwjie4w":" xk6ci0l")),children:k.jsx(d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenu,{availableCaptionsLocales:y,captionsListExpanded:J,onClose:function(){z!=null&&z(null)},onPressLog:N,selectedCaptionsLocale:E,setCaptionsListExpanded:I,setSelectedCaptionsLocale:e,children:t})}),k.jsx(c("VideoPlayerControlIcon.react"),{icon:v==null?g?d("fbicon")._(i("662652"),20):d("fbicon")._(i("662655"),20):v,label:A,onPress:function(){z!=null&&z(L?null:d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_CAPTIONS_MENU),!L&&x!=null&&x(),N("closed_captions_button")},tooltip:A})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerCastControlShim.react",["CometPlaceholder.react","VideoPlayerControlsGroups.react","cr:11811","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var e=a.isVisible;a=babelHelpers.objectWithoutPropertiesLoose(a,["isVisible"]);return h.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:e,noPaddingEnd:!0,noPaddingStart:!0,children:h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(b("cr:11811"),babelHelpers["extends"]({},a))})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerJoinOnPortalControl.react",["cr:1795495","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){a=a.isVisible;return!a||b("cr:1795495")==null?null:h.jsx(b("cr:1795495"),{})};c=a;g["default"]=c}),98); __d("VideoPlayerQuietModeControl.react",["fbt","ix","CometTahoeSidePaneContext","VideoPlayerControlIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useContext;function a(){var a=k(c("CometTahoeSidePaneContext")),b=a.rightRailHidden,e=a.setRightRailHidden;a=b?h._("__JHASH__kXpbNzjk3HM__JHASH__"):h._("__JHASH__eNC0h5sAaC-__JHASH__");return j.jsx("div",{className:"x1rg5ohu x1k70j0n x1w0mnb xzueoph x1mnrxsn",children:j.jsx(c("VideoPlayerControlIcon.react"),{icon:b?d("fbicon")._(i("942218"),20):d("fbicon")._(i("942221"),20),label:a,onPress:function(){e(!b)},tooltip:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useVideoPlayerWatchAndScrollControlNUX",["fbt","CometRelay","CometWatchAndScrollTriggerContext","react","recoverableViolation","requireDeferred","useCometCallout","useVideoPlayerWatchAndScrollControlNUXQuery.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i;e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useState,n=c("requireDeferred")("CometDismissFBNuxMutation").__setRef("useVideoPlayerWatchAndScrollControlNUX"),o=c("requireDeferred")("CometLogImpressionFBNuxMutation").__setRef("useVideoPlayerWatchAndScrollControlNUX"),p={nux:{maxWidth:"xw5ewwj",$$css:!0}},q=9347,r=i!==void 0?i:i=b("useVideoPlayerWatchAndScrollControlNUXQuery.graphql");function a(a){var b=k(c("CometWatchAndScrollTriggerContext")),e=b.setIsTriggerDisabled;b=m(null);var f=b[0],g=b[1],i=d("CometRelay").useRelayEnvironment(),s=j(function(){e!=null&&e(!0),g(!1),n.onReady(function(a){a.commit(i,q)})},[i,e]);l(function(){if(a&&f===null){var b=d("CometRelay").fetchQuery(i,r,{fetchPolicy:"store-or-network"}).subscribe({next:function(b){b=(b==null?void 0:(b=b.nux)==null?void 0:b.should_show)||!1;g(b);b&&a&&o.onReady(function(a){a.commit(i,q,function(){},function(){c("recoverableViolation")("logimpression fb nux mutation failed for video player watch and scroll control.","watch_www_bug_rotation")})})}});return function(){b.unsubscribe()}}},[i,a,f]);b={align:"end",arrowStyle:"inset",disableAutoFlip:!0,hasCloseButton:!0,label:h._("__JHASH__cTRQbv1sbZ0__JHASH__"),onClose:function(){s()},onHide:function(){g(!1)},position:"below",type:"accent",xstyle:p.nux};b=c("useCometCallout")(b,f===!0&&a||!1);return{handleDismissNUX:s,nuxRef:b,shouldShowNUX:f}}g["default"]=a}),98); __d("VideoPlayerWatchAndScrollControl.react",["fbt","ix","CastingStateHooks","CometPictureInPictureExpContext","CometRelay","CometRouteRenderType","CometVideoPictureInPictureManager.react","CometVideoPictureInPictureManagerContext","CometWatchAndScrollControlNUXContext","CometWatchAndScrollTriggerContext","JSResourceForInteraction","VideoPlayerControlIcon.react","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","VideoPlayerWatchAndScrollControl_video.graphql","VideoPlayerWithWatchAndScrollTrigger.react","emptyFunction","fbicon","gkx","react","requireDeferred","useCometLazyDialog","useCometRouterDispatcher","useCometRouterState","useIsVideoHomePlayerOriginFromTracePolicy","usePlayerOriginRouteTracePolicy","useVideoPlayerWatchAndScrollControlNUX","useWatchAndScrollTrigger"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useCallback,m=e.useContext,n=e.useEffect,o=e.useState,p=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("VideoPlayerWatchAndScrollControl.react"),q=c("JSResourceForInteraction")("CometCastingStopWatchAndScrollDialog.react").__setRef("VideoPlayerWatchAndScrollControl.react"),r=6e4,s=window.document.pictureInPictureEnabled;function a(a){var e,f=a.subOrigin;a=a.video;var g=m(c("CometWatchAndScrollTriggerContext")),t=g.isControlShown,u=g.setIsControlShown;g=d("CometRouteRenderType").useIsPushView();var v=d("VideoPlayerHooks").useIsFullscreen(),w=c("useCometRouterDispatcher")(),x=c("useCometRouterState")(),y=(x=x==null?void 0:x.main.route.tabKey)!=null?x:"undefined";x=d("CometRelay").useFragment(j!==void 0?j:j=b("VideoPlayerWatchAndScrollControl_video.graphql"),a);var z=x==null?void 0:x.id;a=(a=x==null?void 0:x.playable_duration_in_ms)!=null?a:0;var A=x==null?void 0:x.is_huddle,B=x==null?void 0:x.url;n(function(){u!=null&&u(!0)},[u]);var C=c("usePlayerOriginRouteTracePolicy")(),D=c("useIsVideoHomePlayerOriginFromTracePolicy")(C);e=(x==null?void 0:(e=x.owner)==null?void 0:e.has_professional_features_for_watch)===!0&&a>=r&&t&&!D;var E=d("VideoPlayerHooks").usePlaying(),F=d("VideoPlayerHooks").useController();a=F.getPlayheadPosition();var G=a>=10;t=o(!1);D=t[0];var H=t[1];a=o(!1);var I=a[0],J=a[1];t=o(!1);a=t[0];var K=t[1];t=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsStateValue();t=t==="STARTING_INDICATOR"||t==="PLAY_NI_VIDEO"||t==="START_AD"||t==="PLAY_LONGER_AD";n(function(){E&&G&&H(!0)},[G,E]);var L=d("CastingStateHooks").useIsCastingAnyVideo(),M=c("useCometLazyDialog")(q),N=M[0];M=!t&&D&&e;t=c("useVideoPlayerWatchAndScrollControlNUX")(M);var O=t.handleDismissNUX;D=t.nuxRef;e=t.shouldShowNUX;var P=e===!0&&M;t=m(c("CometWatchAndScrollControlNUXContext"));var Q=t.setIsVideoPlayerWatchAndScrollControlNUXVisible,R=m(c("CometPictureInPictureExpContext"));n(function(){Q&&Q(P)},[P,Q]);var S=d("useWatchAndScrollTrigger").useWatchAndScrollTrigger(f,d("VideoPlayerWithWatchAndScrollTrigger.react").WatchAndScrollTriggerType.WNS_CONTROL,z,B),T=d("VideoPlayerHooks").useIsPremiumMusicVideo(),U=x==null?void 0:(e=x.owner)==null?void 0:e.id;M=l(function(){var a=d("CometVideoPictureInPictureManagerContext").isInPictureInPictureExp(),b=d("CometVideoPictureInPictureManagerContext").isInPictureInPictureExpControlGroup(),c=d("CometVideoPictureInPictureManagerContext").isSkipAndChainingDisabledInPictureInPicture();R.setPictureInPictureExpConfig({isInPictureInPictureExp:a,isInPictureInPictureExpControlGroup:b,isSkipAndChainingDisabled:c});s&&a&&J(!0);c=(a||b)&&(T||d("CometVideoPictureInPictureManager.react").EXCLUDED_PROVIDERS.includes(U));c&&K(!0)},[T,U,R]);var V=C==="comet.videos.tahoe",W=l(function(){L&&z!=null?N({onClose:c("emptyFunction"),onContinue:S,startingVideoType:"wns"},c("emptyFunction")):S()},[L,S,N,z]);t=l(function(){W(),I?(p.onReady(function(a){a.log({click_point:"control_picture_in_picture",event:"click",event_target_info:C,player_suborigin:f})}),F.requestPictureInPicture()):p.onReady(function(a){a.log({click_point:"control_watch_and_scroll",event:"click",event_target_info:y})}),P===!0&&O(),w&&w.popPushView&&w.popPushView()},[W,P,w,y,O,C,f,F,I]);var X=f==="live_producer";B=l(function(){W(),I?(p.onReady(function(a){a.log({click_point:"control_picture_in_picture",event:"click",event_target_info:C,player_suborigin:f})}),F.requestPictureInPicture()):p.onReady(function(a){a.log({click_point:"control_watch_and_scroll",event:"click",event_target_info:y})}),P===!0&&O(),v&&F.requestSetIsFullscreen(!1),w!=null&&(X||V)&&w.go("/",{})},[W,P,v,y,O,F,w,X,V,f,C,I]);x=g?t:B;c("gkx")("1224637")?e=h._("__JHASH__B-CiurI5Nqm__JHASH__"):A===!0?e=h._("__JHASH__1NTpM1RL-cA__JHASH__"):e=h._("__JHASH__cTRQbv1sbZ0__JHASH__");I&&(e=h._("__JHASH__AQMjhAwOZ46__JHASH__"));return a?null:k.jsx("div",{onMouseEnter:M,ref:D,children:k.jsx(c("VideoPlayerControlIcon.react"),{color:"white",icon:d("fbicon")._(i("150489"),20),label:e,onPress:x,tooltip:P?null:e})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerLiveVideoControls.react",["CometPlaceholder.react","CometRelay","CometTahoeCustomVideoAreaContext","CometTrackingNodeProvider.react","LiveCostreamerTagSubscription.react","LiveVideoLatencyMenu.react","PlaybackSpeedExperiments","VideoPlayerCaptionsControl.react","VideoPlayerCastControlShim.react","VideoPlayerControlsBottomRowAddOnContext","VideoPlayerControlsContainerOverlay.react","VideoPlayerControlsGroups.react","VideoPlayerHooks","VideoPlayerJoinOnPortalControl.react","VideoPlayerLiveVideoControls_video.graphql","VideoPlayerPlaybackControl.react","VideoPlayerQuietModeControl.react","VideoPlayerSettingsControl.react","VideoPlayerVolumeControl.react","VideoPlayerWatchAndScrollControl.react","cr:1809777","gkx","react","useVideoPlayerBigPlayButtonOverlay"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useState,l=d("PlaybackSpeedExperiments").isInCometHeadroomTest()?b("cr:1809777"):null,m=h!==void 0?h:h=b("VideoPlayerLiveVideoControls_video.graphql");function n(a){var b,e,f=d("CometRelay").useFragment(m,a.video),g=d("VideoPlayerHooks").useEnded(),h=d("VideoPlayerHooks").useIsFullscreen(),n=j(d("VideoPlayerControlsBottomRowAddOnContext").VideoPlayerControlsBottomRowAddOnContext),o=c("useVideoPlayerBigPlayButtonOverlay")();o=o.bigPlayButtonIsVisible;var p=d("VideoPlayerHooks").useCaptionsLoaded(),q=d("VideoPlayerHooks").useCaptionsVisible(),r=k(null),s=r[0];r=r[1];var t=j(d("CometTahoeCustomVideoAreaContext").CometTahoeCustomVideoAreaContext);t=t.customVideoAreaHidden;if(g)return null;g=a.disablePlaybackControls;var u=a.expandControl,v=a.isControlsVisible,w=a.isExpandControlVisible;w=w===void 0?!1:w;var x=a.isVolumeControlVisible,y=a.isWatchAndScrollControlVisible;y=y===void 0?!1:y;var z=a.onUserInteraction,A=a.shouldRenderCaptionsControl;A=A===void 0?!0:A;var B=a.shouldRenderCostreamControl;B=B===void 0?!1:B;var C=a.shouldRenderModeratorControl;C=C===void 0?!1:C;var D=a.subOrigin,E=f==null?void 0:f.id;b=f==null?void 0:(b=f.owner)==null?void 0:b.id;var F=f==null?void 0:f.if_viewer_can_see_costreaming_tools,G=F!=null,H=f==null?void 0:f.if_viewer_can_use_clipping,I=(f==null?void 0:f.is_clipping_enabled)===!0,J=f==null?void 0:f.if_viewer_can_see_community_moderation_tools,K=J!=null,L=f==null?void 0:f.if_viewer_can_use_live_rewind;e=((e=f==null?void 0:f.live_rewind_enabled)!=null?e:!1)&&a.shouldHideRewindControls!==!0;w=w||v||g===!0&&!o;y=y||v||g===!0&&!o;o=i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:w,noPaddingEnd:!0,noPaddingStart:!0,children:u});w=a.shouldRenderWatchAndScrollControl===!0&&D!=null&&f!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:y,children:i.jsx(c("VideoPlayerWatchAndScrollControl.react"),{subOrigin:D,video:f})}):null;u=D==="watch_scroll";y=c("gkx")("8487")?A===!0:!u;return i.jsxs(c("VideoPlayerControlsContainerOverlay.react"),{isBackgroundVisible:v,isVisible:t,children:[e?i.jsx(d("CometRelay").MatchContainer,{match:L,props:{isControlsVisible:v&&!g,onUserInteraction:z,video:L}}):i.jsxs(i.Fragment,{children:[Boolean(a.shouldRenderPauseControl)?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:v&&!g,children:i.jsx(c("VideoPlayerPlaybackControl.react"),{})}):null,i.jsx(d("VideoPlayerControlsGroups.react").Expanded,{children:i.jsx(i.Fragment,{})})]}),i.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:v,children:[b!=null&&E!=null&&i.jsx(c("LiveCostreamerTagSubscription.react"),{pageID:b,videoID:E}),G&&B&&E!=null&&!h&&i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:F,props:{video:F}})}),a.shouldRenderQuietModeControl===!0&&!h&&i.jsx(c("VideoPlayerQuietModeControl.react"),{}),I&&E!=null&&i.jsx(d("CometRelay").MatchContainer,{match:H,props:{video:H,videoID:E}}),K&&C?i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:J,props:{video:J,videoID:E}})}):null,g===!0?null:i.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:257,children:i.jsx(d("LiveVideoLatencyMenu.react").LiveVideoLatencyMenuContextProvider,{video:f,children:i.jsx(c("VideoPlayerSettingsControl.react"),{alignMenuToIcon:(n==null?void 0:n.getBottomRowAddOn())!=null,menuOpened:s,onUserInteraction:z,setMenuOpened:r})})}),l!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:v,children:i.jsx(l,{onUserInteraction:z})}):null,p&&y?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:v,children:i.jsx(c("VideoPlayerCaptionsControl.react"),{alignMenuToIcon:(n==null?void 0:n.getBottomRowAddOn())!=null,captionsVisible:q,menuOpened:s,onUserInteraction:z,setMenuOpened:r,video:f})}):null,a.shouldRenderCastControl===!0&&D!=null&&f!=null?i.jsx(c("VideoPlayerCastControlShim.react"),{isVisible:v&&!g,subOrigin:D}):null]}),o,i.jsx(c("VideoPlayerJoinOnPortalControl.react"),{isVisible:v}),w,i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:x,noPaddingStart:!0,children:i.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:114,children:i.jsx(c("VideoPlayerVolumeControl.react"),{onUserInteraction:z})})})]})}n.displayName=n.name+" [from "+f.id+"]";function a(a){return i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(n,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerDefaultControlsImplLive.react",["CometRelay","VideoPlayerDefaultControlsImplLive_video.graphql","VideoPlayerLiveVideoControls.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e=a.expandControl,f=a.isControlsVisible,g=a.isVolumeControlVisible,j=a.onUserInteraction,k=a.pictureInPictureControl,l=a.shouldHideRewindControls,m=a.shouldRenderCaptionsControl,n=a.shouldRenderCostreamControl,o=a.shouldRenderModeratorControl,p=a.shouldRenderPauseControl,q=a.shouldRenderQuietModeControl,r=a.shouldRenderWatchAndScrollControl,s=a.subOrigin,t=a.video;a=a.videoTahoeUrl;t=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerDefaultControlsImplLive_video.graphql"),t);return i.jsx(c("VideoPlayerLiveVideoControls.react"),{expandControl:e,isControlsVisible:f,isVolumeControlVisible:g,onUserInteraction:j,pictureInPictureControl:k,shouldHideRewindControls:l,shouldRenderCaptionsControl:m,shouldRenderCostreamControl:n,shouldRenderModeratorControl:o,shouldRenderPauseControl:p,shouldRenderQuietModeControl:q,shouldRenderWatchAndScrollControl:r,subOrigin:s,video:t,videoTahoeUrl:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerDefaultControlsImplNotLive.react",["CometRelay","PlaybackSpeedExperiments","VideoPlayerCaptionsControl.react","VideoPlayerControlsBottomRowAddOnContext","VideoPlayerControlsContainerOverlay.react","VideoPlayerControlsGroups.react","VideoPlayerDefaultControlsImplNotLive_video.graphql","VideoPlayerHooks","VideoPlayerJoinOnPortalControl.react","VideoPlayerPlaybackControl.react","VideoPlayerPlaybackTimer.react","VideoPlayerQuietModeControl.react","VideoPlayerScrubberWithPreview.react","VideoPlayerSettingsControl.react","VideoPlayerVolumeControl.react","VideoPlayerWatchAndScrollControl.react","cr:1790881","cr:1809777","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useState,l=d("PlaybackSpeedExperiments").isInCometHeadroomTest?b("cr:1790881"):null,m=d("PlaybackSpeedExperiments").isInCometHeadroomTest?b("cr:1809777"):null,n=c("gkx")("3610");function a(a){var e=a.expandControl,f=a.isControlsVisible,g=a.isVolumeControlVisible,o=a.onUserInteraction,p=a.pictureInPictureControl,q=a.shouldRenderCaptionsControl;q=q===void 0?!0:q;var r=a.shouldRenderQuietModeControl;r=r===void 0?!1:r;var s=a.shouldRenderWatchAndScrollControl,t=a.skipControl,u=a.subOrigin;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerDefaultControlsImplNotLive_video.graphql"),a);var v=d("VideoPlayerHooks").useIsFullscreen(),w=a==null?void 0:a.id,x=a==null?void 0:a.if_viewer_can_use_clipping,y=j(d("VideoPlayerControlsBottomRowAddOnContext").VideoPlayerControlsBottomRowAddOnContext);r=r===!0&&!v?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,noPaddingEnd:!0,children:i.jsx(c("VideoPlayerQuietModeControl.react"),{})}):null;v=x!=null&&w!=null&&i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,noPaddingEnd:!0,noPaddingStart:r!=null,children:i.jsx(d("CometRelay").MatchContainer,{match:x,props:{video:x,videoID:w}})});x=k(null);w=x[0];x=x[1];y=i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,noPaddingEnd:!0,noPaddingStart:r!=null||v!=null,children:i.jsx(c("VideoPlayerSettingsControl.react"),{alignMenuToIcon:(y==null?void 0:y.getBottomRowAddOn())!=null,menuOpened:w,onUserInteraction:o,setMenuOpened:x})});s=s===!0&&u!=null&&a!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:i.jsx(c("VideoPlayerWatchAndScrollControl.react"),{subOrigin:u,video:a})}):null;e=i.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,noPaddingEnd:!0,children:[e,i.jsx(c("VideoPlayerJoinOnPortalControl.react"),{isVisible:f})]});var z=m!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:!0,children:i.jsx(m,{enableNUX:d("PlaybackSpeedExperiments").enableCometPlaybackSpeedControlHeadroomTestNUX(),onUserInteraction:o})}):null;g=i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:m?!0:g,noPaddingStart:!0,children:i.jsx(c("VideoPlayerVolumeControl.react"),{onUserInteraction:o})});var A=i.jsx(d("VideoPlayerControlsGroups.react").Expanded,{isVisible:f,children:i.jsx(c("VideoPlayerScrubberWithPreview.react"),{onUserInteraction:o,video:a})});t=i.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:[i.jsx(c("VideoPlayerPlaybackControl.react"),{}),t,i.jsx(c("VideoPlayerPlaybackTimer.react"),{}),l!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:i.jsx(l,{onUserInteraction:o})}):null]});u=u==="watch_scroll";q=c("gkx")("8487")?q===!0:!u;var B=d("VideoPlayerHooks").useCaptionsLoaded(),C=d("VideoPlayerHooks").useCaptionsVisible();B=B&&!c("gkx")("1745416")&&q?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:i.jsx(c("VideoPlayerCaptionsControl.react"),{captionsVisible:C,menuOpened:w,onUserInteraction:o,setMenuOpened:x,video:a})}):null;q=u&&n?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:p}):null;return i.jsxs(c("VideoPlayerControlsContainerOverlay.react"),{isBackgroundVisible:f,children:[t,A,r,v,y,B,s,e,q,z,g]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerPictureInPictureControl.react",["fbt","ix","CometVideoPictureInPictureManagerContext","VideoPlayerControlIcon.react","VideoPlayerHooks","fbicon","react","requireDeferred","useVideoPlayerPortalingPassthroughProps"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useCallback,l=b.useContext,m=b.useEffect,n=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("VideoPlayerPictureInPictureControl.react"),o=window.document.pictureInPictureEnabled;function a(a){var b=a.routeTracePolicy,e=a.subOrigin;a=h._("__JHASH__AQMjhAwOZ46__JHASH__");var f=k(function(){n.onReady(function(a){a.log({click_point:"control_picture_in_picture",event:"click",event_target_info:b,player_suborigin:e})})},[b,e]),g=d("VideoPlayerHooks").useController(),p=l(d("CometVideoPictureInPictureManagerContext").CometVideoPictureInPictureManagerAPIContext),q=k(function(){p.openPipPlayer(),f()},[f,p]),r=c("useVideoPlayerPortalingPassthroughProps")(),s=r.portableVideoID;m(function(){o&&(p.setController(g),p.setPipPortableVideoID(s))},[p,g,s]);return o?j.jsx(c("VideoPlayerControlIcon.react"),{icon:d("fbicon")._(i("509931"),20),label:a,onPress:q,tooltip:a}):null}a.displayName=a.name+" [from "+f.id+"]";g.VideoPlayerPictureInPictureControl=a}),98); __d("CometVideoPictureInPictureManagerHooks",["CometVideoPictureInPictureManagerContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useContext;function a(){return h(d("CometVideoPictureInPictureManagerContext").CometVideoPictureInPictureManagerContext)}g.useCometVideoPictureInPictureManager=a}),98); __d("CometWatchAndScrollUpNextCard.react",["fbt","CometLink.react","CometRelay","CometResponsiveColumns.react","CometTahoeEndScreenProgressCircle.react","CometWatchAndScrollUpNextCard_video.graphql","TetraText.react","VideoPlayerHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k={backgroundThumbnail:{backgroundPosition:"xztyhrg",backgroundSize:"x18d0r48",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",bottom:"x1ey2m1c",boxSizing:"x9f619",end:"xds687c",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",$$css:!0},cardRoot:{backgroundColor:"x1jx94hy",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",bottom:"x1qqjqyx",display:"x78zum5",end:"xds687c",marginTop:"x1xmf6yo",marginEnd:"x1emribx",marginBottom:"x1e56ztr",marginStart:"x1i64zmx",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",position:"x10l6tqk",start:"x17qophe",$$css:!0},metaColumn:{flexBasis:"x12s9zaq",$$css:!0},metadataContainer:{display:"x78zum5",flexDirection:"xdt5ytf",marginBottom:"xu06os2",marginTop:"x1ok221b",$$css:!0},previewContainer:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"xdt5ytf",height:"xaymia4",justifyContent:"xl56j7k",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"x10y0s8s",$$css:!0},thumbnailColumn:{flexBasis:"x19l4sor",$$css:!0},upNextText:{marginBottom:"xjpr12u",$$css:!0},videoMetaText:{marginTop:"x1xmf6yo",$$css:!0}};function a(a){var e,f=a.hidden,g=a.onNextVideo;a=a.video;a=d("CometRelay").useFragment(i!==void 0?i:i=b("CometWatchAndScrollUpNextCard_video.graphql"),a);var l=d("VideoPlayerHooks").useEnded();if(a==null)return null;e=(e=a.image)==null?void 0:e.uri;e=e!=null?{backgroundImage:"url("+e+")"}:{backgroundColor:"var(--disabled-icon)"};e=j.jsx("div",{className:"xztyhrg x18d0r48 x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1ey2m1c x9f619 xds687c x10l6tqk x17qophe x13vifvy",style:e});var m=a.title_with_fallback;a=(a=a.owner)==null?void 0:a.name;return j.jsx("div",{className:"x1jx94hy x1lq5wgf xgqcy7u x30kzoy x9jhf4c x1qqjqyx x78zum5 xds687c x1xmf6yo x1emribx x1e56ztr x1i64zmx x1y1aw1k x1sxyh0 xwib8y2 xurb0ha x10l6tqk x17qophe",children:j.jsxs(d("CometResponsiveColumns.react").Container,{children:[j.jsx(d("CometResponsiveColumns.react").Column,{xstyle:k.thumbnailColumn,children:j.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf xaymia4 xl56j7k x10l6tqk x17qophe x13vifvy x10y0s8s",children:[e,g&&j.jsx(c("CometLink.react"),{onClick:function(){return g("watch_and_scroll_chaining_click_advance")},children:j.jsx(c("CometTahoeEndScreenProgressCircle.react"),{circleDiameter:32,circleStrokeColor:"var(--base-blue)",circleStrokeWidth:3,iconSize:20,isMakingProgress:!f&&l,onProgressDone:function(){return g("watch_and_scroll_chaining_auto_advance")},timeoutSec:6})})]})}),j.jsx(d("CometResponsiveColumns.react").Column,{xstyle:k.metaColumn,children:j.jsxs("div",{className:"x78zum5 xdt5ytf xu06os2 x1ok221b",children:[j.jsx("div",{className:"xjpr12u",children:j.jsx(c("TetraText.react"),{color:"secondary",type:"meta4",children:h._("__JHASH__ie05BxoRsTp__JHASH__")})}),j.jsx("div",{className:"x1xmf6yo",children:j.jsx(c("TetraText.react"),{color:"secondary",numberOfLines:1,type:"body4",children:a})}),j.jsx("div",{className:"x1xmf6yo",children:j.jsx(c("TetraText.react"),{color:"primary",numberOfLines:1,type:"bodyLink4",children:m})})]})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerSkipControlBase.react",["fbt","ix","VideoPlayerControlIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");function a(a){return j.jsx(c("VideoPlayerControlIcon.react"),{color:"white",disabled:a.disabled,icon:d("fbicon")._(i("1052613"),20),label:h._("__JHASH__RMwYtzhsEt6__JHASH__"),onHoverIn:a.onHoverIn,onHoverOut:a.onHoverOut,onPress:a.onPress})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerSkipControl.react",["CometRelay","CometSetWatchAndScrollVideoContext","CometVideoPictureInPictureManager.react","CometVideoPictureInPictureManagerHooks","CometWatchAndScrollSetStoryViewabilityLoggerContext","CometWatchAndScrollUpNextCard.react","CometWatchAndScrollVideoContext","VideoPlayerHooks","VideoPlayerSkipControlBase.react","VideoPlayerSkipControl_video.graphql","react","requireDeferred","useCometTahoeChainingDepth","usePlayerOriginRouteTracePolicy"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useState,m=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("VideoPlayerSkipControl.react");function a(a){var e,f=a.subOrigin;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerSkipControl_video.graphql"),a);var g=d("useCometTahoeChainingDepth").useChainingDepthContext(),n=g.chainingDepthDispatch,o=k(c("CometWatchAndScrollVideoContext"));g=d("VideoPlayerHooks").useEnded();var p=k(c("CometWatchAndScrollSetStoryViewabilityLoggerContext")),q=k(c("CometSetWatchAndScrollVideoContext"));a=(a=a.video_channel)==null?void 0:(a=a.video_channel_feed)==null?void 0:(a=a.edges)==null?void 0:a[0];var r=a==null?void 0:a.cursor,s=a==null?void 0:a.node,t=s==null?void 0:s.client_view_config;a=s==null?void 0:(a=s.attachments)==null?void 0:(a=a[0])==null?void 0:a.media;var u=a!=null&&a.__typename==="Video"?a==null?void 0:a.id:null,v=o==null?void 0:o.chainingSeedVideoID,w=c("usePlayerOriginRouteTracePolicy")(),x=l(!1),y=x[0],z=x[1];x=j(function(){z(!0),m.onReady(function(a){a.log({event:"watch_and_scroll_skip_overlay_impression"})})},[]);var A=j(function(){z(!1)},[]);e=a==null?void 0:(e=a.owner)==null?void 0:e.id;var B=d("VideoPlayerHooks").useIsPremiumMusicVideo(),C=a==null?void 0:a.url,D=j(function(){var a;m.onReady(function(a){a.log({click_point:"control_skip",click_target:"watch_and_scroll",event:"click"})});q({chainingCursor:r,chainingSeedVideoID:v,routeTracePolicy:(a=o==null?void 0:o.routeTracePolicy)!=null?a:w,sessionStartTime:o==null?void 0:o.sessionStartTime,sessionTrigger:o==null?void 0:o.sessionTrigger,subOrigin:f,videoID:u,videoUrl:C});a={can_delay_log_impression:t==null?void 0:t.can_delay_log_impression,use_banzai_signal_imp:t==null?void 0:t.use_banzai_signal_imp,use_banzai_vital_imp:t==null?void 0:t.use_banzai_vital_imp};p({clientViewConfig:a,encryptedTracking:s==null?void 0:s.encrypted_tracking,trackingCode:{click_tracking_linkshim_cb:(s==null?void 0:s.click_tracking_linkshim_cb)||"",encrypted_click_tracking:(s==null?void 0:s.encrypted_click_tracking)||"",encrypted_tracking:(s==null?void 0:s.encrypted_tracking)||""},videoID:u,viewabilityConfig:s==null?void 0:s.viewability_config});n&&n({type:"INCREMENT"})},[u,n,t==null?void 0:t.can_delay_log_impression,t==null?void 0:t.use_banzai_signal_imp,t==null?void 0:t.use_banzai_vital_imp,r,w,p,q,s==null?void 0:s.click_tracking_linkshim_cb,s==null?void 0:s.encrypted_click_tracking,s==null?void 0:s.encrypted_tracking,s==null?void 0:s.viewability_config,f,v,o==null?void 0:o.routeTracePolicy,o==null?void 0:o.sessionStartTime,o==null?void 0:o.sessionTrigger,C]),E=d("CometVideoPictureInPictureManagerHooks").useCometVideoPictureInPictureManager(),F=E.setHasNextChainedVideo,G=E.setSkippedFromPipPlayer;E=E.skippedFromPipPlayer;if(a==null||a.__typename!=="Video"){m.onReady(function(a){a.log({event:"watch_and_scroll_chaining_query_empty"})});F(!1);return i.jsx(c("VideoPlayerSkipControlBase.react"),{disabled:!0})}else F(!B&&!d("CometVideoPictureInPictureManager.react").EXCLUDED_PROVIDERS.includes(e));E&&(D(),G(!1));return i.jsxs(i.Fragment,{children:[i.jsx(c("VideoPlayerSkipControlBase.react"),{onHoverIn:x,onHoverOut:A,onPress:D}),y&&!g&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"x1jx94hy xm3z3ea x1x8b98j x131883w x16mih1h x1qqjqyx x1ta3ar0 x10l6tqk xyokknr x1rr8tx7 x1se2ifz"}),i.jsx(c("CometWatchAndScrollUpNextCard.react"),{hidden:!1,video:a})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScrollCloseButton.react",["fbt","ix","CometRelay","CometSetWatchAndScrollVideoContext","CometWatchAndScrollCloseButton_video.graphql","CometWatchAndScrollVideoContext","TetraIcon.react","VideoPlayerInstreamAdsStateHooks","fbicon","react","requireDeferred","useCometRouterState","useCometTahoeChainingDepth","useVideoPlayerDefaultControlsVisibility"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=d("react").useContext,m=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScrollCloseButton.react");function a(a){a=a.video;a=d("CometRelay").useFragment(j!==void 0?j:j=b("CometWatchAndScrollCloseButton_video.graphql"),a);var e=l(c("CometSetWatchAndScrollVideoContext")),f=l(c("CometWatchAndScrollVideoContext")),g=d("useCometTahoeChainingDepth").useChainingDepthContext(),n=g.chainingDepthState;g=c("useVideoPlayerDefaultControlsVisibility")();var o=g.isControlsVisible,p=g.onUserInteraction;a=!!(a==null?void 0:(g=a.owner)==null?void 0:g.has_professional_features_for_watch);g=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsIsStart();var q=a||g;a=c("useCometRouterState")();var r=(g=a==null?void 0:a.main.route.tabKey)!=null?g:"undefined";return k.jsx("i",{className:"x1vjfegm"+((q?"":" xnx3k43 x10l6tqk x1jzctok")+(!q&&!o?" xg01cxk xlshs6z":"")),children:k.jsx(c("TetraIcon.react"),{"aria-label":h._("__JHASH__og21Kk60gDi__JHASH__"),color:q?"primary":"white",icon:d("fbicon")._(i("478233"),20),onPress:function(){var a=f==null?void 0:f.sessionStartTime,b=new Date(),c=(f==null?void 0:f.sessionTrigger)?f==null?void 0:f.sessionTrigger:null;e(null);p({name:"exit_watch_and_scroll_video",type:"happened"});q&&m.onReady(function(d){var e=n+1,f=a?(b.getTime()-a.getTime())/1e3:null;d.log({click_point:"close_button",click_target:"watch_and_scroll",event:"click",event_target_info:r});d.log({event:"watch_and_scroll_end_session",event_target_info:c,video_watched_count:e,watch_time_in_watch_and_scroll_s:f})})}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScrollTopBar.react",["ix","CometLink.react","CometRelay","CometRow.react","CometRowItem.react","CometVideoHomeThreeDotContextMenu.react","CometWatchAndScrollCloseButton.react","CometWatchAndScrollTopBar_video.graphql","TetraProfilePhoto.react","TetraTextPairing.react","XCometGamingVanityControllerRouteBuilder","XCometVideoHomePlaylistControllerRouteBuilder","fbicon","react","requireDeferred","useCometRouterState","useNavigateToTahoePassthroughProps"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useState,l=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScrollTopBar.react"),m={actorIcon:{marginStart:"x1i64zmx",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",$$css:!0},closeButton:{display:"x78zum5",marginTop:"x14vqqas",marginEnd:"xq8finb",marginBottom:"xod5an3",marginStart:"x16n37ib",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",$$css:!0},root:{backgroundColor:"x1jx94hy",borderTopEndRadius:"xgqcy7u",borderTopStartRadius:"x1lq5wgf",boxShadow:"x163d74j",display:"x78zum5",end:"xds687c",height:"x1dqyrwa",opacity:"x1hc1fzr",position:"x10l6tqk",start:"x17qophe",top:"x11zq2l5",transform:"x1nm1lid",transformOrigin:"xm4efwp",transitionDuration:"xx6bhzk",transitionProperty:"x11xpdln",$$css:!0},row:{marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",width:"xh8yej3",$$css:!0},threeDot:{display:"x78zum5",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",$$css:!0}};function a(a){var e=a.isGamingVideo,f=a.routeTracePolicy,g=a.subOrigin,q=a.video;a=a.videoUrl;q=d("CometRelay").useFragment(i!==void 0?i:i=b("CometWatchAndScrollTopBar_video.graphql"),q);var r=c("useNavigateToTahoePassthroughProps")(),s=k(!1);s[0];var t=s[1];s=function(a){t(a)};var u=q==null?void 0:q.owner;if(q==null||u==null)return null;r=babelHelpers["extends"]({},r,{playerSubOrigin:g,portalingRouteTracePolicy:f,portalingSubOrigin:g});f="#";g=u.uri_token;g!=null?f=c("XCometVideoHomePlaylistControllerRouteBuilder").buildURL({idorvanity:g}):u.url!=null&&(f=u.url);if(e){g=(g=(g=u.page_vanity_url)!=null?g:u.vanity)!=null?g:u.uri_token;if(g!=null){var v;f=c("XCometGamingVanityControllerRouteBuilder").buildURL({injected_hero_video_id:(v=q.id)!=null?v:void 0,vanity:g})}}return j.jsx("div",{className:"x1jx94hy xgqcy7u x1lq5wgf x163d74j x78zum5 xds687c x1dqyrwa x1hc1fzr x10l6tqk x17qophe x11zq2l5 x1nm1lid xm4efwp xx6bhzk x11xpdln",children:j.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingVertical:0,verticalAlign:"center",xstyle:m.row,children:[j.jsx(c("CometRowItem.react"),{xstyle:m.actorIcon,children:j.jsx(n,{actorID:u.id,actorName:u.name,actorURL:f,iconURI:(v=u.profile_picture)==null?void 0:v.uri,passthroughProps:e?r:void 0})}),j.jsx(c("CometRowItem.react"),{expanding:!0,children:j.jsx(c("TetraTextPairing.react"),{headline:j.jsx(p,{passthroughProps:r,title:q.title_with_fallback,videoUrl:a}),headlineLineLimit:1,level:4,meta:j.jsx(o,{actorName:u.name,actorURL:f,passthroughProps:e?r:void 0}),metaLineLimit:1,metaLocation:"above"})}),j.jsx(c("CometRowItem.react"),{xstyle:m.threeDot,children:j.jsx(c("CometVideoHomeThreeDotContextMenu.react"),{icon:d("fbicon")._(h("555291"),20),identifierToken:(g=q.creation_story)==null?void 0:g.identifier_token,onMenuVisibilityChange:s,onPress:function(){l.onReady(function(a){a.log({click_point:"three_dot_menu",click_target:"watch_and_scroll",event:"click"})})},position:"above",storyDebugInfo:(v=q.creation_story)==null?void 0:v.debug_info,tracking:(a=q.creation_story)==null?void 0:a.tracking,videoID:q.id,videoMenuLocation:"WATCH_AND_SCROLL"})}),j.jsx(c("CometRowItem.react"),{xstyle:m.closeButton,children:j.jsx(c("CometWatchAndScrollCloseButton.react"),{video:q})})]})})}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b=a.actorName,d=a.actorURL,e=a.iconURI;a=a.passthroughProps;return j.jsx(c("TetraProfilePhoto.react"),{"aria-label":b!=null&&b!==""?b:d,linkProps:{passthroughProps:(b=a)!=null?b:void 0,url:d},onPress:function(){l.onReady(function(a){a.log({click_point:"actor_profile_picture",click_target:"watch_and_scroll",event:"click"})})},size:32,source:{uri:e||""}})}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.actorName,d=a.actorURL;a=a.passthroughProps;return b!=null&&b!==""?j.jsx(c("CometLink.react"),{href:d,onClick:function(){l.onReady(function(a){a.log({click_point:"actor_name",click_target:"watch_and_scroll",event:"click"})})},passthroughProps:(d=a)!=null?d:void 0,children:b}):null}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.passthroughProps,d=a.title;a=a.videoUrl;var e=c("useCometRouterState")(),f=e==null?void 0:e.main.route.tabKey;return j.jsx(c("CometLink.react"),{href:a,onClick:function(){l.onReady(function(a){a.log({click_point:"video_title",click_target:"watch_and_scroll",event:"click",event_target_info:f})})},passthroughProps:b,children:d})}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScroll.react",["CaptionsTextSizeMapping","CometInteractionSourceContext","CometLoadingAnimation.react","CometObjectFitContainerWithMaxHeight.react","CometPictureInPictureExpContext","CometPlaceholder.react","CometProductAttribution","CometRelay","CometRouteProductAttributionContext","CometRouterPushViewStackContext","CometSetWatchAndScrollVideoContext","CometTahoeChainingDepthLogging.react","CometTrackingCodeProvider.react","CometUFIVideoPlayerUtils","CometVideoPictureInPictureManager.react","CometVideoPictureInPictureManagerContext","CometWarningScreenContext","CometWatchAndScrollCloseButton.react","CometWatchAndScrollContainer_video.graphql","CometWatchAndScrollSoundContext","CometWatchAndScrollStoryViewabilityLoggerContext","CometWatchAndScrollTopBar.react","CometWatchAndScrollVideoContext","CometWatchAndScrollVideoQuery.graphql","HiddenSubtreeContext","HiddenSubtreeContextProvider.react","Locale","MWChatOpenTabCount.bs","VideoAutoplayLocalScopeProvider.react","VideoPlayerAutoplayRulesProvider","VideoPlayerCaptionsDisplayConfigContext","VideoPlayerCometWatchInjectionControl.react","VideoPlayerDefaultControls.react","VideoPlayerDefaultControlsProperties","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","VideoPlayerNavigateToTahoeOrFullScreenControl.react","VideoPlayerPictureInPictureControl.react","VideoPlayerRelay.react","VideoPlayerSkipControlBase.react","VideoPlayerSurface.react","VideoPlayerWithAudioBackground.react","VideoPlayerWithAudioOverlay.react","VideoPlayerWithLiveVideoEndscreen.react","VideoPlayerWithLiveVideoIndicator.react","VideoPlayerWithWatchAndScrollChainingWrapper.react","VideoPlayerWithWatchAndScrollSoundContext.react","VideoPlayerWithWatchAndScrollWarningScreen.react","WebPixelRatio","XCometGamingVideoControllerRouteBuilder","XCometWatchControllerRouteBuilder","deferredLoadComponent","gkx","isRouteTransparent","react","requireDeferred","requireDeferredForDisplay","useCometRouterState","useStoryViewabilityLogger","useVideoOriginalDimensionsRelay","useVideoPlayerPortalingPassthroughProps"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect,m=e.useMemo,n=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("CometWatchAndScroll.react"),o=c("deferredLoadComponent")(c("requireDeferredForDisplay")("VideoPlayerSkipControl.react").__setRef("CometWatchAndScroll.react")),p=d("VideoPlayerAutoplayRulesProvider").provideAutoplayRules("wns");function q(){var a=d("MWChatOpenTabCount.bs").useHook(),b=338,c=80;return a*b+c}function a(){var a=k(c("CometRouterPushViewStackContext")),b=k(c("CometWatchAndScrollVideoContext")),e=k(c("CometSetWatchAndScrollVideoContext")),f=k(c("CometWatchAndScrollSoundContext")),g=k(c("CometPictureInPictureExpContext")),h=!1;b!=null&&g.pictureInPictureExpConfig.isInPictureInPictureExp&&(h=!0);g=h?!1:(a||[]).some(function(a){a=a.route;return!c("isRouteTransparent")(a)});a=b==null?void 0:b.portableVideoID;var i=b==null?void 0:b.routeTracePolicy,m=b==null?void 0:b.subOrigin,n=b==null?void 0:b.videoID,o=b==null?void 0:b.chainingSeedVideoID,p=b==null?void 0:b.chainingCursor;l(function(){b!=null&&n!=null&&o==null&&e(babelHelpers["extends"]({},b,{chainingSeedVideoID:n}))},[o,e,n,b]);l(function(){n==null&&(f.setMuted(null),f.setVolume(null))},[f,n]);var s=q();return n==null||m==null||i==null||g?null:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx("div",{className:h?"xal61yo x1jn9clo x2c8kfy x1s85apg x164qtfw xl56j7k xz65tgg xixxii4 xxsgkw5":"xal61yo x1jn9clo x2c8kfy x78zum5 x164qtfw xl56j7k xz65tgg xixxii4 xxsgkw5",style:d("Locale").isRTL()?{left:s}:{right:s},children:j.jsx("div",{className:"x78zum5 x6gtfd8 x10l6tqk x14qfxbe",children:j.jsx(c("CometLoadingAnimation.react"),{size:36})})}),children:j.jsx(c("HiddenSubtreeContextProvider.react"),{isHidden:g,children:j.jsx(d("CometVideoPictureInPictureManager.react").CometVideoPictureInPictureManager,{isPipEnabled:h,children:j.jsx(r,{chainingCursor:p,chainingSeedVideoID:o,portableVideoID:a,routeTracePolicy:i,subOrigin:m,videoID:n})})})})}a.displayName=a.name+" [from "+f.id+"]";function r(a){var e,f=a.chainingCursor,g=a.chainingSeedVideoID,i=a.portableVideoID,k=a.routeTracePolicy,l=a.subOrigin;a=a.videoID;g=d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("CometWatchAndScrollVideoQuery.graphql"),{chainingCursor:f,chainingSeedVideoID:(f=g)!=null?f:a,scale:d("WebPixelRatio").get(),videoID:a});var n=d("CaptionsTextSizeMapping").FixedCaptionsTextSizeMap;f=m(function(){return{liveCaptionsTextAlignment:"center",textSizeMapping:n}},[n]);var o=m(function(){return{v2:[d("CometProductAttribution").getProductAttributionEntryV2({link_context:null,rootName:"CometWatchAndScroll.react",tap_point:"unexpected",tracePolicy:k,trackingNodes:null})]}},[k]),q=g.chainingSeedVideo;g=g.video;if(g==null)return null;var r=(g==null?void 0:g.is_gaming_video)===!0,t=g==null?void 0:g.id,v=c("XCometGamingVideoControllerRouteBuilder").buildURL(t!=null?{ref:"comet_wns",video_id:t}:{});t=c("XCometWatchControllerRouteBuilder").buildURL(t!=null?{v:t}:{});e=(g==null?void 0:(e=g.pay_to_access_paywall)==null?void 0:e.should_show_paywall)===!0;v=r?v:t;return e?null:j.jsx(c("CometInteractionSourceContext").Provider,{value:54,children:j.jsx(c("VideoAutoplayLocalScopeProvider.react"),{autoplayLocalRules:p,children:j.jsx(d("CometUFIVideoPlayerUtils").CometUFIVideoPlayerStateAndControllerContextProvider,{children:j.jsx(d("CometWarningScreenContext").CometWarningScreenContextProvider,{overlayExists:!1,children:j.jsx(c("VideoPlayerCaptionsDisplayConfigContext").Provider,{value:f,children:j.jsx(c("CometRouteProductAttributionContext").Provider,{value:o,children:j.jsx(s,{video:g,videoID:a,children:j.jsx(c("VideoPlayerRelay.react"),{initialTracePolicy:k,playerFormat:"watch_scroll",portalingEnabled:!0,portalingFromVideoID:i,portalingPlaceMetaData:{placeDescription:"watch_and_scroll"},subOrigin:l,video:g,volumeSetting:null,children:j.jsx(u,{chainingSeedVideo:q,isGamingVideo:r,isVideoHomeEligible:!!((t=g.owner)==null?void 0:t.has_professional_features_for_watch),permalinkUrl:v,routeTracePolicy:k,subOrigin:l,video:g})})})})})})})})})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var e=a.children,f=a.video;a=a.videoID;f=d("CometRelay").useFragment(i!==void 0?i:i=b("CometWatchAndScrollContainer_video.graphql"),f);f=c("useVideoOriginalDimensionsRelay")(f);f=f.originalAspectRatio;var g=q(),h=k(c("CometWatchAndScrollStoryViewabilityLoggerContext"));a=(h==null?void 0:h.videoID)===a;var l=c("useStoryViewabilityLogger")({clientViewConfig:h==null?void 0:h.clientViewConfig,encryptedTracking:h==null?void 0:h.encryptedTracking,position:0,viewabilityConfig:h==null?void 0:h.viewabilityConfig}),m=l.debuggingInfoLoggers;l=l.ref;var n=k(c("CometPictureInPictureExpContext"));n=n.pictureInPictureExpConfig.isInPictureInPictureExp;n=j.jsxs("div",{className:""+(n?" xal61yo x1jn9clo x2c8kfy x1s85apg x164qtfw xl56j7k xz65tgg xixxii4 xxsgkw5":" xal61yo x1jn9clo x2c8kfy x78zum5 x164qtfw xl56j7k xz65tgg xixxii4 xxsgkw5"),ref:a?l:null,style:d("Locale").isRTL()?{left:g}:{right:g},children:[m,j.jsx(c("CometObjectFitContainerWithMaxHeight.react"),{contentAspectRatio:f,maxHeight:300,children:e})]});l=h==null?void 0:h.trackingCode;return l!=null&&a?j.jsx(c("CometTrackingCodeProvider.react"),{trackingCode:l,children:n}):n}function t(){var a=d("VideoPlayerHooks").useController(),b=k(c("HiddenSubtreeContext")).hidden;l(function(){b||a.play("user_initiated")},[a,b])}function u(a){var b=a.chainingSeedVideo,e=a.isGamingVideo,f=a.isVideoHomeEligible,g=a.permalinkUrl,h=a.routeTracePolicy,i=a.subOrigin;a=a.video;t();var p=c("useCometRouterState")();p=p==null?void 0:p.main.route.tabKey;var q=d("CometWarningScreenContext").useHasOverlay(),r=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsIsStart(),s=d("VideoPlayerHooks").useIsVideoBroadcast(),u=k(c("CometSetWatchAndScrollVideoContext")),v=a.is_soundbites_video===!0;r=f||r||v;v=e?"gaming":"watch";s=f&&!q&&p==="watch"&&!((s=s)!=null?s:!1);p=p!==v&&f&&!q;var w=!e&&(p||s);v=d("VideoPlayerWithWatchAndScrollChainingWrapper.react").useWatchAndScrollChainingComponentRenderedStatus(f).isVisible;q=k(c("CometPictureInPictureExpContext"));var x=q.pictureInPictureExpConfig.isInPictureInPictureExp;p=q.pictureInPictureExpConfig.isSkipAndChainingDisabled;s=x&&!p;q=!v;var y=function(a){n.onReady(function(b){b.log({click_point:a,click_target:"watch_and_scroll",event:"click"})})},z=a.url;p=m(function(){return{subOrigin:i,videoTahoeUrl:z}},[i,z]);v=c("gkx")("2790")?d("VideoPlayerDefaultControlsProperties").MutedButtonVisibility.SAME_AS_OTHER_CONTROLS:d("VideoPlayerDefaultControlsProperties").MutedButtonVisibility.SEPARATE_FROM_OTHER_CONTROLS;var A=d("VideoPlayerHooks").useController(),B=k(d("CometVideoPictureInPictureManagerContext").CometVideoPictureInPictureManagerAPIContext),C=c("useVideoPlayerPortalingPassthroughProps")(),D=C.portableVideoID;l(function(){x&&(B.setController(A),B.setPipPortableVideoID(D))},[B,A,D,x]);return j.jsxs(c("VideoPlayerSurface.react"),{children:[j.jsx(c("CometTahoeChainingDepthLogging.react"),{}),r&&j.jsx(c("CometWatchAndScrollTopBar.react"),{isGamingVideo:e,routeTracePolicy:h,subOrigin:i,video:a,videoUrl:w?g:z}),j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(c("VideoPlayerWithAudioBackground.react"),{playerFormat:"inline",video:a})}),q&&j.jsx(c("VideoPlayerDefaultControls.react"),{mutedButtonVisibility:v,pictureInPictureControl:j.jsx(d("VideoPlayerPictureInPictureControl.react").VideoPlayerPictureInPictureControl,{routeTracePolicy:h,subOrigin:i}),renderExpandControl:function(a){a=a.onUserInteraction;return w?j.jsx(c("VideoPlayerCometWatchInjectionControl.react"),{onPress:function(){u(null),y("control_open_in_watch")},routeTracePolicy:h,subOrigin:i,videoWatchUrl:g}):j.jsx(c("VideoPlayerNavigateToTahoeOrFullScreenControl.react"),{onPressFullscreenControl:function(){return y("control_fullscreen")},onPressTahoeControl:function(){y("control_expand_to_tahoe"),u(null)},onUserInteraction:a,subOrigin:"watch_scroll",videoTahoeUrl:z})},shouldRenderCaptionsControl:!1,skipControl:s?j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("VideoPlayerSkipControlBase.react"),{disabled:!0}),children:b?j.jsx(o,{subOrigin:i,video:b}):j.jsx(c("VideoPlayerSkipControlBase.react"),{disabled:!0})}):null,subOrigin:"watch_scroll"}),!r&&j.jsx(c("CometWatchAndScrollCloseButton.react"),{video:a}),j.jsx(c("VideoPlayerWithLiveVideoEndscreen.react"),{video:a}),j.jsx(c("VideoPlayerWithLiveVideoIndicator.react"),{hasCometNavOverlay:!1,video:a}),j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(c("VideoPlayerWithAudioOverlay.react"),{playerFormat:"watch_scroll",video:a})}),j.jsx(d("VideoPlayerWithWatchAndScrollChainingWrapper.react").VideoPlayerWithWatchAndScrollChainingWrapper,{isVideoHomeEligible:f,routeTracePolicy:h,subOrigin:i,video:a}),j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(c("VideoPlayerWithWatchAndScrollWarningScreen.react"),{video:a})}),j.jsx(d("CometUFIVideoPlayerUtils").CometUFIVideoPlayerStateAndControllerExtractor,{data:p}),j.jsx(c("VideoPlayerWithWatchAndScrollSoundContext.react"),{})]})}u.displayName=u.name+" [from "+f.id+"]";g["default"]=a}),98); __d("ZenonParentQPLLogProcessor",["QPLUserFlow","qpl","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.$1=a.signalingID}var d=a.prototype;d.processEvent=function(a){return b("regeneratorRuntime").async(function(b){while(1)switch(b.prev=b.next){case 0:b.t0=a.name;b.next=b.t0==="inviteReceived"?3:b.t0==="callEnded"?5:b.t0==="callAccepted"?9:b.t0==="dismissRecv"?11:b.t0==="inviteResponded"?13:b.t0==="popupOpened"?15:17;break;case 3:c("QPLUserFlow").start(c("qpl")._(64225282,"3408"),{instanceKey:+this.$1});return b.abrupt("break",17);case 5:if(!a.isRemoteEnded){b.next=7;break}return b.abrupt("return");case 7:c("QPLUserFlow").endCancel(c("qpl")._(64225282,"3408"),{instanceKey:+this.$1});return b.abrupt("break",17);case 9:c("QPLUserFlow").addPoint(c("qpl")._(64225282,"3408"),"call_accepted",{instanceKey:+this.$1});return b.abrupt("break",17);case 11:c("QPLUserFlow").addPoint(c("qpl")._(64225282,"3408"),"dismiss_recv",{instanceKey:+this.$1});return b.abrupt("break",17);case 13:c("QPLUserFlow").addPoint(c("qpl")._(64225282,"3408"),"invite_responded",{instanceKey:+this.$1});return b.abrupt("break",17);case 15:c("QPLUserFlow").endSuccess(c("qpl")._(64225282,"3408"),{instanceKey:+this.$1});return b.abrupt("break",17);case 17:case"end":return b.stop()}},null,this)};return a}();g["default"]=a}),98); __d("ZenonCollisionContext",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){var c=null;a.groupThreadID!=null?c={id:a.groupThreadID,type:2}:a.peerID!=null&&(c={id:a.peerID,secureOneToOneThreadPeerId:b?a.peerID:void 0,type:b?15:1});return c}f.getThreadIDAndTypeFromCollisionContext=a}),66); __d("LazyLoadInstance",["promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h={LOADING:1,NOT_READY:0,READY:2};a=function(){function a(a,b){this.$1={instantiate:b,moduleReference:a,stage:h.NOT_READY}}var b=a.prototype;b.get=function(a){switch(this.$1.stage){case h.NOT_READY:c("promiseDone")(this.$2(this.$1),a);break;case h.LOADING:c("promiseDone")(this.$1.instancePromise,a);break;case h.READY:a(this.$1.instance);break}};b.getNow=function(){return this.$1.stage===h.READY?this.$1.instance:null};b.preload=function(){this.$1.stage===h.NOT_READY&&this.$2(this.$1)};b.$2=function(a){var b=this,c=a.instantiate;a=a.moduleReference;a=a.load().then(function(a){a=c(a);b.$1={instance:a,stage:h.READY};return a});this.$1={instancePromise:a,stage:h.LOADING};return a};return a}();g["default"]=a}),98); __d("ZenonParentSignalingClient",["Promise","ZenonDebugLogger","ZenonSignalingTypes","qpl","recoverableViolation","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,d,e){var f=this;this.remoteSignalingID=null;this.$4="init";this.$6=null;this.$7=null;this.$8=function(){};this.$9=function(a,b,d){c("ZenonDebugLogger").getInstance().logStateMachine("ParentSignalingClient",f.$4,"received "+a.eventName,f.$1.getSignalingID());switch(a.eventName){case"inviteRequest":f.$11(a,b,d);break;case"remoteSdpRequest":f.$12(a,b);break;case"terminateRequest":f.$13(a,b,d);break}};this.$1=a;this.$3=d;this.$5=e;this.$2=b;b.setReceiver(this.$9);c("ZenonDebugLogger").getInstance().startQPL(c("qpl")._(64234815,"1094"),+a.getSignalingID())}var e=a.prototype;e.setSignalingEventHandlers=function(a){if(this.$6!=null){c("recoverableViolation")("setSignalingEventHandlers should only be called once, to avoid accidentally losing handlers.","rtc_www");return}this.$6=a};e.setLoggingEventHandler=function(a){this.$8=a};e.setSecureDataMessageManager=function(a){throw c("unrecoverableViolation")("setSecureDataMessageManager called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.getSignalingModel=function(){return this.$1};e.processReceiveEvent=function(a,b,d){throw c("unrecoverableViolation")("processReceiveEvent called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendDismiss=function(a){this.$4="terminated";a={eventName:"terminateRequest",fromJoinResponse:!1,reason:a,shouldInformPeer:!0};return this.$10(a)};e.receiveMessage=function(a){this.$2.receiveMessage(a)};e.isTerminated=function(){return this.$4==="terminated"};e.sendAnswerIntent=function(){if(this.$4==="inviteAcknowledged"){this.$4="answered";var a={eventName:"answerIntentRequest"};return this.$10(a)}else throw c("unrecoverableViolation")("sendAnswerIntent called in unexpected state "+this.$4,"rtc_www")};e.respondToInvite=function(a){if(this.$4==="inviteReceived"){if(this.$7==null)throw c("unrecoverableViolation")("respondToInvite called without inviteMessageId being populated first","rtc_www");this.$4="inviteAcknowledged";a={ackMessageId:this.$7,eventName:"inviteResponse",status:a};return this.$10(a)}else throw c("unrecoverableViolation")("respondToInvite called in unexpected state "+this.$4,"rtc_www")};e.initiateClientRenegotiation=function(a){throw c("unrecoverableViolation")("initiateClientRenegotiation called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendClientEvent=function(a){throw c("unrecoverableViolation")("sendClientEvent called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendInvite=function(a,b,d){throw c("unrecoverableViolation")("sendInvite called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendSdp=function(a,b){throw c("unrecoverableViolation")("sendSdp called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendIceCandidate=function(a){throw c("unrecoverableViolation")("sendIceCandidate called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendMediaUpdate=function(a){throw c("unrecoverableViolation")("sendMediaUpdate called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendAddParticipantsMessage=function(a){throw c("unrecoverableViolation")("sendAddParticipantsMessage called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendRemoveParticipantsRequest=function(a){throw c("unrecoverableViolation")("sendRemoveParticipantsRequest called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendUsersApprovalRequest=function(a,b){throw c("unrecoverableViolation")("sendUsersApprovalRequest called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendStateSyncUnsubscribe=function(a){throw c("unrecoverableViolation")("sendStateSyncUnsubscribe called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendStateSyncUpdate=function(a,b){throw c("unrecoverableViolation")("sendStateSyncUpdate called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendSubscriptionRequest=function(a){throw c("unrecoverableViolation")("sendSubscriptionRequest called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendClientInfo=function(a){throw c("unrecoverableViolation")("sendClientInfo called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.sendGenericDataMessage=function(a,b,d){throw c("unrecoverableViolation")("sendGenericDataMessage called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.silentlyTerminate=function(){throw c("unrecoverableViolation")("terminate called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};e.$10=function(a){var d=this;c("ZenonDebugLogger").getInstance().logStateMachine("ParentSignalingClient",this.$4,"sending "+a.eventName,this.$1.getSignalingID());return new(b("Promise"))(function(b,c){return d.$3.sendEvent(a,b,c)})};e.$11=function(a,b,c){this.$4==="init"&&(this.$4="inviteReceived",this.$7=b,this.$5(a,c,this))};e.$13=function(a,b,c){if(this.$4!=="terminated"){this.$4="terminated";c={ackMessageId:b,eventName:"dismissResponse"};this.$3.sendEvent(c);if(this.$6&&this.$6.onDismissReceived){this.$6.onDismissReceived(this.$1.getSignalingID(),a.reason,(b=a.subreason)!=null?b:null,a.detailedReasonFromMW)}}};e.$12=function(a,b){b={ackMessageId:b,acknowledgedVersion:a.sdp.version,eventName:"remoteSdpResponse",negotiateType:a.negotiateType,statusCode:d("ZenonSignalingTypes").ZenonSignalingStatusCode.OK,type:a.sdp.type};this.$3.sendEvent(b)};return a}();g["default"]=a}),98); __d("ZenonParentCallsManager",["BaseEventEmitter","FBLogger","JSResource","LazyLoadInstance","OverlayConfigManagerWithServerLayer","Promise","ZenonActorHooks","ZenonBrowsers","ZenonCallLogger","ZenonCallsModelTypes","ZenonCollisionContext","ZenonDismissReason","ZenonGraphQLMWMessageSender","ZenonMessageSenderChain","ZenonMqttMWMessageSender","ZenonParentQPLLogProcessor","ZenonParentSignalingClient","ZenonSDKRateLimiter","cr:4942","gkx","recoverableViolation","uuid"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(e,a);function e(e){var f;f=a.call(this)||this;f.$ZenonParentCallsManager4=new Map();f.$ZenonParentCallsManager5=new Set();f.$ZenonParentCallsManager6=null;f.onInviteReceived=function(a,b,e){var g,h=e.getSignalingModel().getSignalingID();e.setSignalingEventHandlers({onDismissReceived:f.onDismissReceived});var i=a.appMessages,j=a.inviterID,k=a.isE2eeMandated,l=a.otherParticipants,m=a.requestingVideo,n=a.roomInfo,o=a.serverInfoData,p=m&&d("ZenonBrowsers").supportsVideoCalls(),q="multiway_incoming",r=f.$ZenonParentCallsManager9({callTrigger:q,isCaller:!1,isVideo:p,localCallID:c("uuid")(),peerID:j,protocol:b,signalingID:h});r==null?void 0:r.log({name:"inviteReceived",serverInfoData:o});m=f.$ZenonParentCallsManager3.isSupportedClientForProtocol(b);o=m?"OK":"NOT_SUPPORTED";e.respondToInvite(o);r==null?void 0:r.log({name:"inviteResponded"});o={thread:{id:"0",type:2},type:"thread"};if(((g=n.context)==null?void 0:g.groupThreadID)||((g=n.context)==null?void 0:g.peerID)){o={thread:(g=d("ZenonCollisionContext").getThreadIDAndTypeFromCollisionContext(n.context,(g=k)!=null?g:!1))!=null?g:o.thread,type:"thread"}}else((g=n.room)==null?void 0:g.linkHash)!=null&&((g=n.room)==null?void 0:g.roomName)!=null&&(o={room:n.room,type:"room"});g=(g=a.actorID)!=null?g:d("ZenonActorHooks").ZenonActor.getID();o={actorID:a.actorID,context:o,controllerParams:{appMessages:i,callContext:n.name,callID:h,configuration:b,serverInfoData:(i=(o=n.context)==null?void 0:o.serverInfoData)!=null?i:null},inviterID:j,isClientPermissableRing:m,isE2eeMandated:(n=k)!=null?n:!1,onAccept:function(a,c){c=c.isPopupBlocked;r==null?void 0:r.log({name:"callAccepted",trigger:q});e.sendAnswerIntent();f.$ZenonParentCallsManager10(a,{callTrigger:q,isPopupBlocked:c,isVideo:p,peerID:j,protocol:b,signalingID:h})},onDecline:function(a,b){b===void 0&&(b=null),f.onDecline(h,r,a,b)},otherParticipants:l.includes(g)?l:[g].concat(l),receiverUserId:a.userID,requestingVideo:p,ringID:h};f.emit("incomingRing",o)};f.onDismissReceived=function(a,c){var e=d("ZenonDismissReason").dismissReasonToCancelReason(c);e={reason:e,ringID:a};f.emit("ringCancel",e);e=f.$ZenonParentCallsManager4.get(a);e!=null&&(e.log({name:"dismissRecv"}),e.log({endCallReason:c,isRemoteEnded:!0,name:"callEnded"}));return b("Promise").resolve()};f.$ZenonParentCallsManager7=new(c("OverlayConfigManagerWithServerLayer"))();f.$ZenonParentCallsManager3=e;f.$ZenonParentCallsManager2=new(c("LazyLoadInstance"))(c("JSResource")("ZenonSignalingParentTransport").__setRef("ZenonParentCallsManager"),function(a){return new a()});var g=new(c("ZenonMessageSenderChain"))([new(c("ZenonMqttMWMessageSender"))(),new(c("ZenonGraphQLMWMessageSender"))()]);f.$ZenonParentCallsManager1=new(c("LazyLoadInstance"))(c("JSResource")("ZenonSignalingClientManager").__setRef("ZenonParentCallsManager"),function(a){return new a(c("ZenonParentSignalingClient"),f.onInviteReceived,g)});f.$ZenonParentCallsManager6=new(c("ZenonSDKRateLimiter"))();return f}var f=e.prototype;f.startOutgoingCallIntent=function(a,b){if(!this.$ZenonParentCallsManager8("startOutgoingCallIntent"))return;var d=b.callTrigger,e=b.isVideo,f=b.peerID,g=b.protocol,h=b.signalingID;this.$ZenonParentCallsManager9({callTrigger:d,isCaller:!0,isVideo:e,localCallID:c("uuid")(),peerID:f,protocol:g,signalingID:h});this.$ZenonParentCallsManager10(a,b)};f.$ZenonParentCallsManager9=function(a){var b,d=a.callTrigger,e=a.isCaller,f=a.isVideo,g=a.localCallID,h=a.peerID,i=a.protocol;a=a.signalingID;b=(b=this.$ZenonParentCallsManager4.get(a))!=null?b:null;!b&&!(d==="meetup_join"&&c("gkx")("3198"))?(b=new(c("ZenonCallLogger"))({callTrigger:d,isCaller:e,isVideo:f,localCallID:g,peerID:h,protocol:i,signalingID:a},this.getLogProcessors(),this.$ZenonParentCallsManager7),this.$ZenonParentCallsManager4.set(a,b)):c("recoverableViolation")("Call logger key collision in parentCallsManager for signalingID: "+a,"rtc_www");return b};f.getLogProcessors=function(){var a=[b("cr:4942")];c("ZenonParentQPLLogProcessor")&&a.push(c("ZenonParentQPLLogProcessor"));return a};f.$ZenonParentCallsManager10=function(a,b){var c=b.isPopupBlocked;b=b.signalingID;this.$ZenonParentCallsManager2.get(function(b){b.verificationNonce=a});this.$ZenonParentCallsManager5.add(b);b=this.$ZenonParentCallsManager4.get(b);b!=null&&b.log({isPopupBlocked:c,name:"popupOpened"})};f.initListeners=function(a){var b=this;for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;e.subscribe(function(a){return b.onMessageReceived(a)},function(a){return b.onRawMWMessageReceived(a)})}};f.onMessageReceived=function(a){var b=a.getHeader().signalingID;if(b!=null&&this.$ZenonParentCallsManager5.has(b))return;this.$ZenonParentCallsManager1.get(function(b){b.receiveMessage(a)})};f.onRawMWMessageReceived=function(a){this.$ZenonParentCallsManager2.get(function(b){b.enqueueRawMWMessage(a)})};f.onDecline=function(a,b,e,f){f===void 0&&(f=null),this.$ZenonParentCallsManager1.get(function(g){g=g.getSignalingClient(a);if(g){var h=d("ZenonDismissReason").endCallToDismissReason(e);e!=="VersionUnsupported"&&f!==d("ZenonCallsModelTypes").ZenonEndCallSubreason.CallsBlocked&&g.sendDismiss(h);b==null?void 0:b.log({endCallReason:h,endCallSubreason:f==null?null:f,isRemoteEnded:!1,name:"callEnded"})}else c("recoverableViolation")("signaling client should be defined","rtc_www")})};f.removeListeners=function(a){for(var a=a,b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;d.unsubscribe()}};f.$ZenonParentCallsManager8=function(a){if(this.$ZenonParentCallsManager6&&!this.$ZenonParentCallsManager6.take(a)){c("FBLogger")("rtc_www").warn("[ZP] Dropping "+a+" invocation. This SDK method is being called too rapidly.");return!1}return!0};return e}(c("BaseEventEmitter"));g["default"]=a}),98); __d("WebPerfDeviceInfoLogFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1871697");c=b("FalcoLoggerInternal").create("web_perf_device_info_log",a);e.exports=c}),null); __d("XDeviceClassRealtimeController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/web_perf/get_perf_level/",{})}),null); __d("WebDevicePerfInfoLogging",["AsyncTypedRequest","JSScheduler","Promise","WebDevicePerfInfoData","WebPerfDeviceInfoLogFalcoEvent","XDeviceClassRealtimeController","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";function h(a){var b=document.createElement("canvas");b=b.getContext("webgl")||b.getContext("experimental-webgl");if(!b)return;var c=b.getExtension("WEBGL_debug_renderer_info");if(!c)return;var d=b.getParameter(c.UNMASKED_RENDERER_WEBGL);b=b.getParameter(c.UNMASKED_VENDOR_WEBGL);a.gpu_vendor=b;a.gpu_renderer=d}function i(){var a=window.navigator,b={};a&&a.hardwareConcurrency!==void 0&&(b.cpu_cores=a.hardwareConcurrency);a&&a.deviceMemory!==void 0&&(b.ram=a.deviceMemory);c("WebDevicePerfInfoData").needsFullUpdate&&h(b);return b}function j(){var a=i();c("WebPerfDeviceInfoLogFalcoEvent").log(function(){var b;return{cpu_cores:(b=a.cpu_cores)!=null?b:null,ram:(b=a.ram)!=null?b:null,gpu_renderer:(b=a.gpu_renderer)!=null?b:null,gpu_vendor:(b=a.gpu_vendor)!=null?b:null}})}function k(){var a,d;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:a=i();e.next=3;return b("regeneratorRuntime").awrap(new(c("AsyncTypedRequest"))(c("XDeviceClassRealtimeController").getURIBuilder().getURI()).setData(a).promisePayload());case 3:d=e.sent;return e.abrupt("return",d.devicePerfClassLevel);case 5:case"end":return e.stop()}},null,this)}function a(){(c("WebDevicePerfInfoData").needsFullUpdate||c("WebDevicePerfInfoData").needsPartialUpdate)&&d("JSScheduler").scheduleSpeculativeCallback(j)}function e(){return new(b("Promise"))(function(a,b){c("WebDevicePerfInfoData").needsFullUpdate||c("WebDevicePerfInfoData").needsPartialUpdate?d("JSScheduler").scheduleSpeculativeCallback(function(){k().then(a)["catch"](b)}):a()})}g.doLog=a;g.doLogPromise=e}),98); __d("BladeRunnerConfig",["RTISubscriptionManagerConfig","WebDriverConfig","cr:3024","gkx","isEmpty"],(function(a,b,c,d,e,f,g){var h="javascript-sandbox",i="OverrideServer",j="www_sandbox";a=function(){function a(){}var d=a.prototype;d.patchRequestHeaders=function(a){var d={},e=c("RTISubscriptionManagerConfig").bladerunner_www_sandbox;if(!c("isEmpty")(c("WebDriverConfig").auxiliaryServiceInfo)){var f;f=(f=c("WebDriverConfig").auxiliaryServiceInfo.BladeRunner)!=null?f:c("WebDriverConfig").auxiliaryServiceInfo["BladeRunner-sandcastle"];f!=null?(typeof f.ip_address==="string"?d[i]=f.ip_address+":18295":typeof f.hostname==="string"&&(d[i]=f.hostname+":18295"),typeof c("WebDriverConfig").originHost==="string"&&(d[j]="www."+c("WebDriverConfig").originHost)):e!=null&&(d[h]=e)}else e!=null&&(d[h]=e);if(c("WebDriverConfig").isTestRunning&&c("gkx")("5639")){f=b("cr:3024")==null?void 0:b("cr:3024").get();f!=null&&(d.is_test="1",d.original_request_id=f)}c("gkx")("307")&&(d["Accept-Ack"]="RSAck");for(e in a)d[e]=a[e];d.http_referer=window.location.href;return d};return a}();d=new a();e=d;g["default"]=e}),98); __d("BladeRunnerLogger",["FBLogger","ODS"],(function(a,b,c,d,e,f,g){var h="bladerunner_js_client",i={info:"info",warning:"warning",exception:"exception"};a=function(){function a(){this.setFBLoggerLevel(1)}var b=a.prototype;b.info=function(a){this.$2>=2&&c("FBLogger")(h).info("BladeRunner info: %s",a),this.$3(i.info,a)};b.warn=function(a){this.$2>=1&&c("FBLogger")(h).warn("BladeRunner warn: %s",a),this.$3(i.warning,a)};b.exception=function(a,b){b===void 0&&(b="");var d=b+" "+a.toString();this.$2>=0&&c("FBLogger")(h).warn("BladeRunner exception: %s, %s",b,a.toString());this.$3(i.exception,d)};b.trimForLogging=function(a){var b=1024;return typeof a==="string"&&a.length>b?"[trimmed]:"+a.substring(0,b)+"...":a};b.bumpCounter=function(a,b){b===void 0&&(b=1),d("ODS").bumpEntityKey(2966,"BladeRunnerClient",a,b)};b.setClientSessionId=function(a){this.$1=a};b.setFBLoggerLevel=function(a){this.$2=a};b.$3=function(a,b){};return a}();b=new a();e=b;g["default"]=e}),98); __d("BladeRunnerTypes",[],(function(a,b,c,d,e,f,g){a={REQUEST:1,DATA:2,DATA_ACK:3,STATUS_UPDATE:4,REWRITE_REQUEST:5,LOG:6};b={BLADE_RUNNER:1,GATEWAY:2};g.StreamFrameType=a;g.StreamRequestType=b}),98); __d("BladeRunnerTypesInternal",["Base64","BladeRunnerLogger","BladeRunnerTypes"],(function(a,b,c,d,e,f,g){var h=function(){function a(){}var b=a.prototype;b.getHeaders=function(){if(this.headers!=null)return this.headers;throw new Error("Expected headers")};b.getInstrumentationData=function(){if(this.instrumentationData!=null&&this.instrumentationData.length>0)try{return JSON.parse(this.instrumentationData)}catch(a){return null}else return null};b.updateRetryRequestPayload=function(a){a!=null?this.payload=c("Base64").encode(a):this.payload=null};a.readObject=function(b){var c=new a();c.streamId=o(b.streamId);c.requestType=o(b.requestType);c.payload=r(b.payload);c.headers=u(b.headers);c.extraHeader=r(b.extraHeader);c.requestTarget=r(b.requestTarget);c.instrumentationData=r(b.instrumentationData);return c};return a}(),i=function(){function a(){}a.readObject=function(b){var c=new a();c.streamId=o(b.streamId);c.dataId=p(b.dataId);c.data=r(b.data);c.shouldAck=w(b.shouldAck);return c};var b=a.prototype;b.rawData=function(){if(this.data==null)throw new Error("Expected data");return this.data};b.rawDataSize=function(){return this.data==null?0:this.data.length};b.decodeData=function(){if(this.data==null)throw new Error("Expected data");return c("Base64").decode(this.data)};b.setData=function(a){this.data=c("Base64").encode(a)};b.getInstrumentationData=function(){if(this.instrumentationData!=null)return JSON.parse(this.instrumentationData);else return null};return a}(),j=function(){function a(){}a.readObject=function(b){var c=new a();c.streamId=o(b.streamId);c.dataId=o(b.dataId);c.success=v(b.success);c.message=r(b.message);c.code=p(b.code);return c};return a}();j.ACK_CODE_LANDED_AND_ACCEPTED=20;j.ACK_CODE_LANDED_BUT_NOT_ACCEPTED=21;j.ACK_CODE_FAILED_TO_LAND=50;var k=function(){function a(){}a.readObject=function(b){var c=new a();c.streamId=p(b.streamId);c.message=r(b.message);return c};return a}(),l=function(){function a(){}a.readObject=function(b){var c=new a();c.streamId=o(b.streamId);c.status=o(b.status);c.message=r(b.message);c.code=p(b.code);c.shouldRetry=w(b.shouldRetry);c.retryDelayMs=p(b.retryDelayMs);return c};return a}(),m=function(){function a(){}a.readObject=function(b){var c=new a();c.streamId=o(b.streamId);c.newBody=r(b.newBody);c.newExtraHeader=r(b.newExtraHeader);c.patchExtraHeader=r(b.patchExtraHeader);c.killBody=w(b.killBody);c.temporary=w(b.temporary);return c};return a}(),n=function(){function a(){}var b=a.prototype;b.getRequest=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.REQUEST&&this.request!=null)return this.request;throw new Error("Expected request")};b.getData=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.DATA&&this.data!=null)return this.data;throw new Error("Expected data")};b.getDataAck=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.DATA_ACK&&this.dataAck!=null)return this.dataAck;throw new Error("Expected dataAck")};b.getStatusUpdate=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE&&this.statusUpdate!=null)return this.statusUpdate;throw new Error("Expected status update")};b.getLog=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.LOG&&this.log!=null)return this.log;throw new Error("Expected log")};b.getRewriteRequest=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.REWRITE_REQUEST&&this.rewriteRequest!=null)return this.rewriteRequest;throw new Error("Expected rewrite request")};b.getStreamId=function(){if(this.type==d("BladeRunnerTypes").StreamFrameType.REQUEST&&this.request!=null)return this.request.streamId;if(this.type==d("BladeRunnerTypes").StreamFrameType.DATA&&this.data!=null)return this.data.streamId;if(this.type==d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE&&this.statusUpdate!=null)return this.statusUpdate.streamId;if(this.type==d("BladeRunnerTypes").StreamFrameType.LOG&&this.log!=null)return this.log.streamId;if(this.type==d("BladeRunnerTypes").StreamFrameType.REWRITE_REQUEST&&this.rewriteRequest!=null)return this.rewriteRequest.streamId;if(this.type==d("BladeRunnerTypes").StreamFrameType.DATA_ACK&&this.dataAck!=null)return this.dataAck.streamId;throw new Error("Frame with unexpected type")};b.isInstrumented=function(){if(this.type===d("BladeRunnerTypes").StreamFrameType.REQUEST)return this.getRequest().instrumentationData!=null;else if(this.type===d("BladeRunnerTypes").StreamFrameType.DATA)return this.getData().instrumentationData!=null;else return!1};a.readObject=function(b){var e=new a();e.type=o(b.type);switch(e.type){case d("BladeRunnerTypes").StreamFrameType.REQUEST:e.request=h.readObject(s(b.request));break;case d("BladeRunnerTypes").StreamFrameType.DATA:e.data=i.readObject(s(b.data));break;case d("BladeRunnerTypes").StreamFrameType.DATA_ACK:e.dataAck=j.readObject(s(b.dataAck));break;case d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE:e.statusUpdate=l.readObject(s(b.statusUpdate));break;case d("BladeRunnerTypes").StreamFrameType.LOG:e.log=k.readObject(s(b.log));break;case d("BladeRunnerTypes").StreamFrameType.REWRITE_REQUEST:e.rewriteRequest=m.readObject(s(b.rewriteRequest));break;default:c("BladeRunnerLogger").warn("Frame with unexpected type: "+e.type);return null}return e};a.newRequestFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.REQUEST;c.request=b;return c};a.newDataFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.DATA;c.data=b;return c};a.newDataAckFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.DATA_ACK;c.dataAck=b;return c};a.newStatusUpdateFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE;c.statusUpdate=b;return c};a.newLogFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.LOG;c.log=b;return c};a.newRewriteRequestFrame=function(b){var c=new a();c.type=d("BladeRunnerTypes").StreamFrameType.REWRITE_REQUEST;c.rewriteRequest=b;return c};return a}();a=function(){function a(a,b,c){this.batchId=a,this.frames=b,this.instrumentationData=c}var b=a.prototype;b.getFrames=function(){if(this.frames!=null)return this.frames;throw new Error("Expected frames")};b.getInstrumentationData=function(){if(this.instrumentationData!=null)try{return JSON.parse(this.instrumentationData)}catch(a){return null}else return null};b.getInstrumentationDataDfTraceId=function(){if(this.instrumentationData!=null)try{var a=JSON.parse(this.instrumentationData);return(a=a.dataFlowTracingData)==null?void 0:a.traceId}catch(a){return null}else return null};b.write=function(){return JSON.stringify(this)};b.isInstrumented=function(){return this.getFrames().some(function(a){return a.isInstrumented()})};a.read=function(b){b=JSON.parse(b);var c=b.batchId||0,d=[];for(var e=b.frames,f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;h=n.readObject(h);h!=null&&d.push(h)}h=b.instrumentationData||null;return new a(c,d,h)};return a}();function o(a){if(typeof a==="number")return a;throw new Error("Expected number")}function p(a){return a==null?null:o(a)}function q(a){if(typeof a==="string")return a;throw new Error("Expected string")}function r(a){return a==null?null:q(a)}function s(a){if(typeof a==="object"&&a!=null)return a;throw new Error("Expected object")}function t(a){if(typeof a==="object"&&a!=null){var b=a,c={};Object.keys(b).forEach(function(a){var d=b[a];typeof d==="string"&&d!=null&&(c[a]=d)});return c}throw new Error("Expected string map")}function u(a){return a==null?null:t(a)}function v(a){if(typeof a==="boolean"&&a!=null)return a;throw new Error("Expected boolean")}function w(a){return a==null?null:v(a)}g.GatewayStreamRequest=h;g.GatewayStreamData=i;g.GatewayStreamDataAck=j;g.GatewayStreamLog=k;g.GatewayStreamStatusUpdate=l;g.GatewayStreamRewriteRequest=m;g.GatewayStreamFrame=n;g.GatewayStreamBatch=a}),98); __d("RequestStreamE2EClientLoggerEvent",[],(function(a,b,c,d,e,f){a=Object.freeze({RECEIVED:"received",SENT:"sent",FAILURE:"failure",PUBACK:"puback"});f["default"]=a}),66); __d("RequestStreamE2EClientLoggerMessageType",[],(function(a,b,c,d,e,f){a=Object.freeze({REQUEST_STREAM:"request_stream",AMENDMENT:"amendment",AMENDMENT_ACK:"amendment_ack",CANCEL:"cancel",RESPONSE:"response",RESPONSE_ACK:"response_ack",TIMED_REQUEST:"timed_request",INTERRUPT:"interrupt"});f["default"]=a}),66); __d("BladeRunnerEventHandler",["BladeRunnerLogger","BladeRunnerStreamStatus","BladeRunnerTypes","BladeRunnerTypesInternal","RequestStreamE2EClientLoggerEvent","RequestStreamE2EClientLoggerMessageType","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){var h=1e3;a=function(){function a(a,b,c){this.$2=a,this.$1=b,this.$3=c}var b=a.prototype;b.onProxyResponse=function(a){this.$4(a);var b=[];for(var e=a.getFrames(),f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;this.$2.witnessFrame(h)&&b.push(h)}h=this.$2.getRequest();(g=h.e2eLogger)==null?void 0:g.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").SENT,{},(f=a.getInstrumentationData())==null?void 0:f.auxId,null,a.getInstrumentationDataDfTraceId());b.length>0&&this.$5(new(d("BladeRunnerTypesInternal").GatewayStreamBatch)(a.batchId,b,a.instrumentationData))};b.onDisconnect=function(){this.$2.resetErrors();var a=new(d("BladeRunnerTypesInternal").GatewayStreamStatusUpdate)();a.streamId=this.$2.getRequest().streamId;a.status=d("BladeRunnerStreamStatus").StreamStatus.CLOSED;a.shouldRetry=!0;a.retryDelayMs=0;a=new(d("BladeRunnerTypesInternal").GatewayStreamBatch)(null,[d("BladeRunnerTypesInternal").GatewayStreamFrame.newStatusUpdateFrame(a)]);this.onProxyResponse(a)};b.$4=function(a){var b=this;a=a.getFrames().filter(function(a){return a.type==d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE});for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;g=g.getStatusUpdate();if(g.status==d("BladeRunnerStreamStatus").StreamStatus.CLOSED||g.status==d("BladeRunnerStreamStatus").StreamStatus.REJECTED){this.$2.onError();var i=g.shouldRetry!=null&&g.shouldRetry,j=g.message!=null?g.message:"null";if(i&&this.$2.getErrorCount()<=this.$2.getRetriesAllowed()){g.status=d("BladeRunnerStreamStatus").StreamStatus.STOPPED;var k=h;g.retryDelayMs!=null&&(k=g.retryDelayMs);c("BladeRunnerLogger").info("Can retry: stream "+g.streamId+" closed with status "+g.status+", message "+j+". Error count: "+this.$2.getErrorCount()+", retryDelay "+k+"ms. Already retrying: "+this.$2.getRetryRequestScheduled().toString());this.$2.getRetryRequestScheduled()?c("BladeRunnerLogger").bumpCounter("stream_closed_already_retrying"):(c("BladeRunnerLogger").bumpCounter("stream_closed_will_retry"),this.$2.setRetryRequestScheduled(!0),k>0?c("setTimeoutAcrossTransitions")(function(){return b.$6()},k):this.$6())}else c("BladeRunnerLogger").info("Will not retry: stream "+g.streamId+" closed with status "+g.status+", message "+j+". Error count: "+this.$2.getErrorCount()+", shouldRetry "+i.toString()+". Already retrying: "+this.$2.getRetryRequestScheduled().toString()),i?c("BladeRunnerLogger").bumpCounter("stream_closed_retry_exceeded"):c("BladeRunnerLogger").bumpCounter("stream_closed_no_retry"),this.$3.removeStream(g.streamId)}}};b.$6=function(){this.$2.setRetryRequestScheduled(!1);if(this.$2.isAlive()){var a=this.$1.getUpdatedRequestBody();a!=null&&this.$2.updateRetryRequestPayload(a);this.$3.sendRetryStreamRequest(this.$2)}};b.$5=function(a){c("BladeRunnerLogger").bumpCounter("send_to_handler");var b=[];this.$1.onBatch(a);for(var a=a.getFrames(),e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;try{switch(g.type){case d("BladeRunnerTypes").StreamFrameType.DATA:this.$1.onData(g.getData());b.push(g.getData());break;case d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE:this.$1.onStatusUpdate(g.getStatusUpdate().status);break;case d("BladeRunnerTypes").StreamFrameType.LOG:g=g.getLog().message;g!=null&&this.$1.onLog(g);break;case d("BladeRunnerTypes").StreamFrameType.DATA_ACK:break;default:throw new Error("Frame with unexpected type")}}catch(a){c("BladeRunnerLogger").bumpCounter("send_to_handler_error"),c("BladeRunnerLogger").exception(a,"Failed sending frame to stream handler")}}this.$7(b)};b.$7=function(a){var b=[];for(var c=0;c=a?i+=1:i=a;return i.toString()}var k=function(){function a(a,b,c,e,f,g,h,i,j,k){this.$10=[];this.$11=!1;this.$1=a;this.$2=b;this.$3=c;this.$4=e;this.$5=f;this.$6=g;this.$7=h;this.$8=i;this.$9=j;this.$12=(a=k)!=null?a:!1;b=d("ConstUriUtils").getUri(window.location.href);b&&(this.$13=b.getDomain())}var b=a.prototype;b.logE2EEvent=function(a,b,c,d,e,f){c===void 0&&(c=null);d===void 0&&(d=null);e===void 0&&(e=null);f===void 0&&(f=null);if(this.$3==="Falco")return;e={request_id:this.$1,resume_id:"0",retry_id:e,transport:this.$2,method:this.$3,use_case:this.$4,request_log_context:this.$5,force_log_context:this.$6,e2e_sample_rate:this.$7,message_type:a,event:b,timestamp_ms:j(),aux_id:d,additional_data:c,dgw_stream_group_logging_id:this.$8,dgw_count_prior_streams_in_group:this.$9,domain:this.$13,df_trace_id:f};this.$14(e)};b.$14=function(a){if(!this.$12){c("RtiRequestStreamE2eClientFalcoEvent").log(function(){return a});return}this.$10.push(a);if(this.$11||a.event==c("RequestStreamE2EClientLoggerEvent").FAILURE||a.message_type==c("RequestStreamE2EClientLoggerMessageType").RESPONSE){var b={events:this.$10};c("RtiRequestStreamE2eClientBatchFalcoEvent").log(function(){return b});this.$10=[];this.$11=!0}};b.getRequestId=function(){return this.$1};return a}();function a(a,b,d){if(a==null||a.method==null)return null;var e=!1;h.includes(a.method)&&!c("gkx")("2810")&&(e=!0);if(b==null||b.length==0)return null;b=JSON.parse(b);return b.requestId==null?null:new k(b.requestId,d,a.method,l(a.method,a),b.requestLogContext,b.forceLogContext,b.sampleRate,b.dgwStreamGroupLoggingId,b.dgwCountPriorStreamsInGroup,e)}function l(a,b){if(a==="FBLQ"&&b.config_id)return b.config_id;if(a==="SKY"){if(b.topic){var c=b.topic.lastIndexOf("/");return c>0?b.topic.substr(0,c):b.topic}return}return a}function b(a,b,d,e,f,g){f===void 0&&(f=null);g===void 0&&(g=null);if(a==null||a.requestId==null||a.clientLoggingDisabled!=null)return;var h={request_id:a.requestId,resume_id:"0",transport:b,e2e_sample_rate:a.sampleRate,message_type:d,event:e,timestamp_ms:j(),aux_id:a.auxId,additional_data:f,df_trace_id:g};c("RtiRequestStreamE2eClientFalcoEvent").log(function(){return h})}g.RequestStreamE2ELogger=k;g.createStreamLogger=a;g.logRequestStreamE2EEventStatic=b}),98); __d("RequestStreamTransport",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum").Mirrored(["WEB_BR_MQTT","WEB_RS_MQTT","WEB_RS_STARGATE"]);f.RequestStreamTransport=a}),66); __d("BladeRunnerSocket",["BladeRunnerEventHandler","BladeRunnerLogger","BladeRunnerStreamStatus","BladeRunnerTypes","BladeRunnerTypesInternal","CurrentUser","FBMqttChannel","MqttPublishListener","Promise","RequestStreamE2EClientLoggerEvent","RequestStreamE2EClientLoggerMessageType","RequestStreamE2ELogger","RequestStreamTransport","justknobx","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h="Connected",i="Disconnected",j="/br_sr",k="/sr_res",l=null;function m(a){var b;switch(a.type){case d("BladeRunnerTypes").StreamFrameType.REQUEST:return(b=a.request)==null?void 0:b.getInstrumentationData();case d("BladeRunnerTypes").StreamFrameType.DATA:return(b=a.data)==null?void 0:b.getInstrumentationData()}return null}function n(a){switch(a.type){case d("BladeRunnerTypes").StreamFrameType.REQUEST:return c("RequestStreamE2EClientLoggerMessageType").REQUEST_STREAM;case d("BladeRunnerTypes").StreamFrameType.DATA:return c("RequestStreamE2EClientLoggerMessageType").AMENDMENT}return null}function o(a){if(a===null)return null;switch(a){case d("BladeRunnerStreamStatus").StreamStatus.ACCEPTED:return"Accepted";case d("BladeRunnerStreamStatus").StreamStatus.REJECTED:return"Rejected";case d("BladeRunnerStreamStatus").StreamStatus.STARTED:return"Started";case d("BladeRunnerStreamStatus").StreamStatus.STOPPED:return"Stopped";case d("BladeRunnerStreamStatus").StreamStatus.CLOSED:return"Closed"}return null}function p(a){var b={};a==null?void 0:(a=a.frames)==null?void 0:a.forEach(function(a){if(a.type===d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE){a=(a=a.statusUpdate)==null?void 0:a.status;a=o(a);a!==null&&(b.flow_status=a)}});return b}function q(a,b){var c;switch(a.type){case d("BladeRunnerTypes").StreamFrameType.REQUEST:b.data_base64_size=(c=a.request)==null?void 0:(c=c.payload)==null?void 0:(c=c.length)==null?void 0:c.toString();break;case d("BladeRunnerTypes").StreamFrameType.DATA:b.data_base64_size=(c=a.data)==null?void 0:(b=c.rawDataSize())==null?void 0:b.toString();break}return null}function r(a,b,e){var f=m(a);if(f==null)return;var g=n(a);if(g==null)return;var h=null;switch(b){case d("MqttPublishListener").MqttPublishEvent.SENT:h=c("RequestStreamE2EClientLoggerEvent").SENT;break;case d("MqttPublishListener").MqttPublishEvent.ACKED:h=c("RequestStreamE2EClientLoggerEvent").PUBACK;break;case d("MqttPublishListener").MqttPublishEvent.NOT_ACKED:case d("MqttPublishListener").MqttPublishEvent.NOT_CONNECTED:case d("MqttPublishListener").MqttPublishEvent.PUBLISH_ERROR:h=c("RequestStreamE2EClientLoggerEvent").FAILURE;e.reason==null&&(e.reason=b);break}if(h==null)return;q(a,e);if(((b=a.request)==null?void 0:b.e2eLogger)!=null&&f.clientLoggingDisabled==null){(b=a.request)==null?void 0:b.e2eLogger.logE2EEvent(g,h,e,f.auxId)}else d("RequestStreamE2ELogger").logRequestStreamE2EEventStatic(f,d("RequestStreamTransport").RequestStreamTransport.WEB_BR_MQTT,g,h,e)}a=function(){function a(a){this.$1=[],this.$2=0,this.$3=0,this.$4=null,this.$5=0,this.$6=new Map(),this.$7=a!=null?a:c("FBMqttChannel"),this.$8=new Map(),c("BladeRunnerLogger").setClientSessionId(c("uuid")()),this.$9()}a.get=function(){l==null&&(l=new a(c("FBMqttChannel")));return l};var e=a.prototype;e.sendNewStreamRequest=function(b,d){d=new(c("BladeRunnerEventHandler"))(b,d,this);var e=b.getRequest();this.$6.set(e.streamId,d);if(!this.$10()){this.$11(d,e.streamId);return}this.getStreamCount()<=a.maxStreamCount?this.$12(e):(c("BladeRunnerLogger").bumpCounter("socket_request_throttled_max_streams"),c("BladeRunnerLogger").warn("Maximum stream count reached, will not send request: "+JSON.stringify(b.getRequest().getHeaders())),this.$11(d,e.streamId))};e.sendRetryStreamRequest=function(a){this.$12(a.getRequest())};e.sendCancel=function(a){c("BladeRunnerLogger").bumpCounter("socket_send_cancel");var b=new(d("BladeRunnerTypesInternal").GatewayStreamStatusUpdate)();b.streamId=a.streamId;b.status=d("BladeRunnerStreamStatus").StreamStatus.CLOSED;this.$13(b,a);this.removeStream(a.streamId)};e.sendAmendment=function(a,b,e){c("BladeRunnerLogger").bumpCounter("socket_send_amendment");var f=new(d("BladeRunnerTypesInternal").GatewayStreamData)();f.streamId=a;f.setData(b);e!=null&&(f.instrumentationData=e);this.$14(f)};e.sendAmendmentWithAck=function(a,e,f){var g=this;c("BladeRunnerLogger").bumpCounter("socket_send_amendment");var h=this.$15(),i=new(d("BladeRunnerTypesInternal").GatewayStreamData)();i.streamId=a;i.setData(e);i.shouldAck=!0;i.dataId=h;f!=null&&(i.instrumentationData=f);a=new(b("Promise"))(function(a,b){g.$8.set(h,{resolve:a,reject:b})});this.$14(i);return a};e.$14=function(a){this.$1.push(d("BladeRunnerTypesInternal").GatewayStreamFrame.newDataFrame(a)),this.$16()};e.sendDataAcks=function(a){c("BladeRunnerLogger").bumpCounter("socket_send_data_ack",a.length),this.$17(a)};e.removeStream=function(a){this.$6["delete"](a)};e.getStreamCount=function(){return this.$6.size};e.getNextStreamId=function(){this.$5++;return this.$5};e.onMQTTStateChanged=function(a){this.$16();if(a!=i&&a!=h||this.$4==a)return;this.$4=a;c("BladeRunnerLogger").info("MQTTStateChanged: "+a);a==i?(c("BladeRunnerLogger").bumpCounter("mqtt_state_disconnected"),this.$18()):a==h&&c("BladeRunnerLogger").bumpCounter("mqtt_state_connected")};e.$12=function(a){c("BladeRunnerLogger").bumpCounter("socket_send_request");this.$1.push(d("BladeRunnerTypesInternal").GatewayStreamFrame.newRequestFrame(a));if(!this.$16()){(a=a.e2eLogger)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").REQUEST_STREAM,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"MQTT Not Connected"})}};e.$13=function(a,b){this.$1.push(d("BladeRunnerTypesInternal").GatewayStreamFrame.newStatusUpdateFrame(a));if(this.$16()){(a=b.e2eLogger)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").CANCEL,c("RequestStreamE2EClientLoggerEvent").SENT)}};e.$17=function(a){for(var b=0;b0)try{this.$20(this.$1),a=!0}catch(a){}finally{this.$1=[]}return a};e.$20=function(a){var b=this,e=new(d("BladeRunnerTypesInternal").GatewayStreamBatch)(this.$19(),a),f=e.write();if(f.length>this.$21()){var g=Math.floor(a.length/2);if(g===0){a.forEach(function(a){return r(a,d("MqttPublishListener").MqttPublishEvent.PUBLISH_ERROR,{reason:"too long"})});var h=new Error("Publish is too long: "+f.length);h.stack;this.$22(e,h,"Publish is too long");throw h}this.$20(a.slice(0,g));this.$20(a.slice(g,a.length))}else try{c("BladeRunnerLogger").info("send message to "+j+" ("+f.length+" bytes)");h={qos:1,skipBuffer:!1};if(e.isInstrumented()){var i=Date.now();h.listener={onEvent:function(b){var c=(Date.now()-i).toString();a.forEach(function(a){r(a,b,{latency:c})})}}}this.$7.publish(j,f,h)["catch"](function(a){b.$22(e,a,"Failed publishing to MQTT")});c("BladeRunnerLogger").bumpCounter("mqtt_publish_success")}catch(a){this.$22(e,a,"Failed publishing to MQTT");throw a}};e.$9=function(){var a=this;c("BladeRunnerLogger").info("Starting socket with endpoint "+this.$7.getEndpoint()+" useragent "+navigator.userAgent);this.onMQTTStateChanged(this.$7.getConnectionState());this.$7.subscribeChannelEvents({onMQTTStateChanged:function(b){a.onMQTTStateChanged(b)},onJSError:function(a){var b=a!=null&&typeof a.isRecoverable==="boolean"?a.isRecoverable:!1;b?c("BladeRunnerLogger").bumpCounter("mqtt_channel_recoverable_error"):(c("BladeRunnerLogger").warn("JS error in MQTTChannel: "+(typeof a=="object"&&a!=null?a.toString():"unknown error")+", "+JSON.stringify(a)),c("BladeRunnerLogger").bumpCounter("mqtt_channel_error"))}});this.$7.subscribe(j,function(a){throw new Error("Unexpected response: "+j+" "+a.toString())});this.$7.subscribe(k,function(b){a.$23(b)})};e.$23=function(a){a=d("BladeRunnerTypesInternal").GatewayStreamBatch.read(a);this.processBatch(a)};e.$22=function(a,b,e){for(var a=a.getFrames(),f=Array.isArray(a),g=0,a=f?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=a.length)break;h=a[g++]}else{g=a.next();if(g.done)break;h=g.value}h=h;if(h.type===d("BladeRunnerTypes").StreamFrameType.REQUEST){var i=h.getRequest(),j=this.$6.get(i.streamId);j!=null&&this.$24(j,i.streamId,d("BladeRunnerStreamStatus").StreamStatus.CLOSED,!0,null)}else if(h.type===d("BladeRunnerTypes").StreamFrameType.DATA){j=h.getData();i=j.dataId;if(j.shouldAck!=null&&j.shouldAck&&i!=null){h=new(d("BladeRunnerTypesInternal").GatewayStreamDataAck)();h.streamId=j.streamId;h.dataId=i;h.success=!1;h.code=d("BladeRunnerTypesInternal").GatewayStreamDataAck.ACK_CODE_FAILED_TO_LAND;h.message=e;this.$25(h)}}}c("BladeRunnerLogger").info("Failed publishing to MQTT: "+b.message);c("BladeRunnerLogger").bumpCounter("mqtt_publish_error")};e.$25=function(a){var b=this.$8.get(a.dataId);b!=null&&(this.$8["delete"](a.dataId),a.success?b.resolve(!0):a.code===d("BladeRunnerTypesInternal").GatewayStreamDataAck.ACK_CODE_LANDED_BUT_NOT_ACCEPTED?b.resolve(!1):b.reject(a.message))};e.processBatch=function(a){try{d("RequestStreamE2ELogger").logRequestStreamE2EEventStatic(a.getInstrumentationData(),d("RequestStreamTransport").RequestStreamTransport.WEB_BR_MQTT,c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").RECEIVED,p(a),a.getInstrumentationDataDfTraceId());c("BladeRunnerLogger").bumpCounter("socket_process_batch");var b=JSON.stringify(a);c("BladeRunnerLogger").info("Received batch ("+b.length+" bytes)");b=null;for(var e=a.getFrames(),f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;var i=h.getStreamId();b==null&&(b=i);if(i!=null&&b!=i)throw new Error("Received batch with frames for multiple streams");h.type==d("BladeRunnerTypes").StreamFrameType.DATA_ACK&&this.$25(h.getDataAck())}if(b!=null){i=this.$6.get(b);i!=null?i.onProxyResponse(a):c("BladeRunnerLogger").info("Received batch with frames for unknown stream id: "+b)}else c("BladeRunnerLogger").info("Received batch with no frames")}catch(a){c("BladeRunnerLogger").exception(a,"Failed processing batch from MQTT");c("BladeRunnerLogger").bumpCounter("socket_process_batch_error");throw a}};e.$18=function(){this.$6.forEach(function(a,b,c){a.onDisconnect()})};e.$11=function(a,b){this.$24(a,b,d("BladeRunnerStreamStatus").StreamStatus.REJECTED,!1,0)};e.$24=function(a,b,c,e,f){var g=new(d("BladeRunnerTypesInternal").GatewayStreamStatusUpdate)();g.streamId=b;g.status=c;g.shouldRetry=e;g.retryDelayMs=f;b=new(d("BladeRunnerTypesInternal").GatewayStreamBatch)(null,[d("BladeRunnerTypesInternal").GatewayStreamFrame.newStatusUpdateFrame(g)]);a.onProxyResponse(b)};e.$10=function(){if(!c("CurrentUser").isLoggedIn()){c("BladeRunnerLogger").bumpCounter("request_stream_user_logged_out");return!1}return!0};e.$21=function(){var a=1024*1024,b=512*1024;try{var d=c("justknobx")._("317");b=d*a}catch(a){}return Math.max(b-1024,0)};return a}();a.maxStreamCount=2e3;g["default"]=a}),98); __d("BladeRunnerStream",["Promise","regeneratorRuntime"],(function(a,b,c,d,e,f){a=function(){function a(a){this.$1=a}var c=a.prototype;c.getStreamHandler=function(){return this.$1};c.cancel=function(){};c.amendWithAck=function(a){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:return a.abrupt("return",!1);case 1:case"end":return a.stop()}},null,this)};c.amendFireAndForget=function(a){};c.amendWithoutAck=function(a){};c.start=function(){return b("Promise").resolve()};c.isAlive=function(){return!1};c.canAmend=function(){return!1};c.getStatus=function(){return null};c.getStreamId=function(){return 0};return a}();f["default"]=a}),66); __d("BladeRunnerStreamState",["BladeRunnerLogger","BladeRunnerStreamStatus","BladeRunnerTypes"],(function(a,b,c,d,e,f,g){a=function(){function a(a){this.$1=a,this.$2=null,this.$3=0,this.$4=!1,this.$5=0,this.$6=!1}var b=a.prototype;b.getRequest=function(){return this.$1};b.updateRetryRequestPayload=function(a){this.$1.updateRetryRequestPayload(a)};b.isAlive=function(){return!(this.$2==d("BladeRunnerStreamStatus").StreamStatus.CLOSED||this.$2==d("BladeRunnerStreamStatus").StreamStatus.REJECTED)};b.canAmend=function(){return this.$2==d("BladeRunnerStreamStatus").StreamStatus.ACCEPTED||this.$2==d("BladeRunnerStreamStatus").StreamStatus.STARTED||this.$2==d("BladeRunnerStreamStatus").StreamStatus.STOPPED};b.getLastStatus=function(){return this.$2};b.setLastStatus=function(a){this.$2=a};b.onError=function(){this.$3+=1};b.getErrorCount=function(){return this.$3};b.resetErrors=function(){this.$3=0};b.getRetryRequestScheduled=function(){return this.$6};b.setRetryRequestScheduled=function(a){this.$6=a};b.witnessFrame=function(a){switch(a.type){case d("BladeRunnerTypes").StreamFrameType.STATUS_UPDATE:var b=a.getStatusUpdate(),c=!0;switch(b.status){case d("BladeRunnerStreamStatus").StreamStatus.ACCEPTED:c=!this.$4;this.$4||(this.$4=!0);break;case d("BladeRunnerStreamStatus").StreamStatus.STARTED:c=this.getLastStatus()!=d("BladeRunnerStreamStatus").StreamStatus.STARTED;break;case d("BladeRunnerStreamStatus").StreamStatus.STOPPED:c=this.getLastStatus()==d("BladeRunnerStreamStatus").StreamStatus.STARTED;break;case d("BladeRunnerStreamStatus").StreamStatus.CLOSED:case d("BladeRunnerStreamStatus").StreamStatus.REJECTED:default:c=!0}this.setLastStatus(b.status);return c;case d("BladeRunnerTypes").StreamFrameType.REWRITE_REQUEST:this.$7(a.getRewriteRequest());return!1;default:return!0}};b.setRetriesAllowed=function(a){this.$5=a};b.getRetriesAllowed=function(){return this.$5};b.$7=function(a){if(!(a.temporary!=null||a.temporary==!0)){a.newBody!=null&&(this.$1.payload=a.newBody);a.newExtraHeader!=null&&(this.$1.extraHeader=a.newExtraHeader,this.$1.headers=JSON.parse(a.newExtraHeader));if(a.patchExtraHeader!=null)try{var b=JSON.parse(a.patchExtraHeader),d=this.$1.extraHeader!=null?JSON.parse(this.$1.extraHeader):{};this.$1.headers==null&&(this.$1.headers={});var e=Object.keys(b);for(var f=0;f1&&a!=null){a=c("RequestStreamE2EClientSamplingConfig").methodToSamplingMultiplier[a];a==0?d=0:a!=null&&(d/=a)}return d==1?1:d/b}function k(a,b,d,e){var f=c("uuid")();(b.requestId==null||b.requestId===""||typeof b.requestId!="string")&&(a.requestId!=null&&typeof a.requestId=="string"?b.requestId=a.requestId:b.requestId=f);b.requestId+="/_"+f.substring(0,4);b.resumeId="0";d!=null?b.sampleRate=d:b.sampleRate=void 0;f="";e!=null&&e.length>0&&(f=e);f.length>0&&(b.requestLogContext!=null&&b.requestLogContext.length>0?b.requestLogContext+=":":b.requestLogContext="",b.requestLogContext+=f);(a==null?void 0:a.method)==="Falco"&&(b.clientLoggingDisabled="Falco");d={};for(e=Object.keys(b).sort(),f=Array.isArray(e),a=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(f){if(a>=e.length)break;g=e[a++]}else{a=e.next();if(a.done)break;g=a.value}g=g;d[g]=b[g]}return JSON.stringify(d)}function a(a,b,d,e){b&&(!b.requestId.includes("/")&&!b.requestId.includes("#")||h(0,41721));e=j(a.method,(e=e)!=null?e:1);if(c("Random").coinflip(e))return k(a,b||{requestId:""},e,d);return i(b)?k(a,b||{requestId:""},null,d):""}g.isForceLogged=i;g.getSampleRateForLogging=j;g.normalizeInstrumentationData=k;g.validateInstrumentationData=a}),98); __d("BladeRunnerClient",["Base64","BladeRunnerConfig","BladeRunnerLogger","BladeRunnerSocket","BladeRunnerSocketStream","BladeRunnerTypes","BladeRunnerTypesInternal","RequestStreamE2ELogger","RequestStreamE2ESampling","RequestStreamTransport","cr:2046346"],(function(a,b,c,d,e,f,g){a=function(){function a(a,b){this.$2=d("RequestStreamTransport").RequestStreamTransport.WEB_BR_MQTT,this.$1=a!=null?a:c("BladeRunnerSocket").get(),b&&(this.$2=b)}var e=a.prototype;e.createStream=function(a,b,c,d){return this.$3(a,b,c,d)};e.requestStream=function(a,c,d,e){a=this.$3(a,c,d,e);a.send();b("cr:2046346")!=null&&b("cr:2046346").startPulsarTest();return a};e.logInfo=function(a){c("BladeRunnerLogger").info(a)};e.bumpCounter=function(a){c("BladeRunnerLogger").bumpCounter(a)};e.$3=function(a,b,e,f){var g=new(d("BladeRunnerTypesInternal").GatewayStreamRequest)();g.streamId=this.$1.getNextStreamId();g.requestType=d("BladeRunnerTypes").StreamRequestType.BLADE_RUNNER;g.headers=c("BladeRunnerConfig").patchRequestHeaders(a);g.extraHeader=JSON.stringify(g.headers);g.payload=b!=null?c("Base64").encode(b):null;f!=null&&(f.transport="WEB_RS_MQTT");g.instrumentationData=d("RequestStreamE2ESampling").validateInstrumentationData(g.headers||{},f);g.e2eLogger=d("RequestStreamE2ELogger").createStreamLogger(g.headers,g.instrumentationData,this.$2);return new(c("BladeRunnerSocketStream"))(e,g,this.$1)};return a}();g["default"]=a}),98); __d("InflightAmends",["Deferred","err"],(function(a,b,c,d,e,f,g){"use strict";var h="inflight_amends_timeout",i="inflight_amends_duplicate_id";a=function(){function a(a,b,c){this.$1=a,this.$3=b,this.$4=c,this.$2=new Map()}var b=a.prototype;b.add=function(a){var b=this;if(this.$2.has(a))throw c("err")(i);var d=new(c("Deferred"))(),e=Date.now(),f=setTimeout(function(){b.$2.has(a)&&b.reject(a,c("err")(h))},this.$1);this.$2.set(a,{id:a,deferred:d,createdTimestampMs:e,timeoutId:f});return d.getPromise()};b.getPromise=function(a){return(a=this.$5(a))==null?void 0:a.deferred.getPromise()};b.resolve=function(a,b){a=this.$5(a);a&&(a.deferred.resolve==null?void 0:a.deferred.resolve(b),this.$3(a.id,Date.now()-a.createdTimestampMs),this.$6(a))};b.reject=function(a,b){a=this.$5(a);a&&(a.deferred.reject==null?void 0:a.deferred.reject(b),this.$4(a.id,b),this.$6(a))};b.rejectAll=function(a){for(var b=this.$2.entries(),c=Array.isArray(b),d=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=b.length)break;e=b[d++]}else{d=b.next();if(d.done)break;e=d.value}e=e;var f=e[0];e[1];this.reject(f,a)}};b.getSize=function(){return this.$2.size};b.getAllPromises=function(){var a=[];for(var b=this.$2.values(),c=Array.isArray(b),d=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=b.length)break;e=b[d++]}else{d=b.next();if(d.done)break;e=d.value}e=e;a.push(e.deferred.getPromise())}return a};b.$6=function(a){clearTimeout(a.timeoutId),this.$2["delete"](a.id)};b.$5=function(a){return this.$2.get(a)};return a}();g["default"]=a}),98); __d("RequestStreamCloseReason",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum").Mirrored(["UserIntention","StartStreamFailure","StreamError","RemoteTermination","ServerDataEnd","ServerDrain","ReestablishError","ClientError"]);f.RequestStreamCloseReason=a}),66); __d("jsbi",[],(function(a,b,c,d,e,f){(function(a,b){"object"==typeof f&&"undefined"!=typeof e?e.exports=b():"function"==typeof define&&define.amd?define(b):a.JSBI=b()})(this,function(){"use strict";function a(b){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},a(b)}function b(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function c(a,b){for(var c,d=0;dg.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return a=m(this,f(g).call(this,a)),a.sign=c,a}return e(g,c),d(g,[{key:"toDebugString",value:function(){var a=["BigInt["],b=!0,c=!1,d=void 0;try{for(var e,e,f=this[Symbol.iterator]();!(b=(e=f.next()).done);b=!0)e=e.value,a.push((e?(e>>>0).toString(16):e)+", ")}catch(a){c=!0,d=a}finally{try{b||null==f["return"]||f["return"]()}finally{if(c)throw d}}return a.push("]"),a.join("")}},{key:"toString",value:function(){var a=0a||36this.length&&(c=this.length);for(var d=65535&a,a=a>>>16,e=0,f=65535&b,b=b>>>16,i=0;i>>16;var o=j(m,d);m=j(m,a);var p=j(n,d);n=j(n,a);var q=f+(65535&o);o=b+e+(q>>>16)+(o>>>16)+(65535&m)+(65535&p);f=(m>>>16)+(p>>>16)+(65535&n)+(o>>>16),e=f>>>16,f&=65535,b=n>>>16;this.__setDigit(i,65535&q|o<<16)}if(0!==e||0!==f||0!==b)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(a,b,c){for(var d,e=0,f=0;f>>16,this.__setHalfDigit(b+f,d);return e}},{key:"__inplaceSub",value:function(a,b,c){var d=0;if(1&b){b>>=1;for(var e=this.__digit(b),f=65535&e,k=0;k>>1;k++){var l=a.__digit(k),m=(e>>>16)-(65535&l)-d;d=1&m>>>16,this.__setDigit(b+k,m<<16|65535&f),e=this.__digit(b+k+1),f=(65535&e)-(l>>>16)-d,d=1&f>>>16}m=a.__digit(k);l=(e>>>16)-(65535&m)-d;d=1&l>>>16,this.__setDigit(b+k,l<<16|65535&f);if(b+k+1>=this.length)throw new RangeError("out of bounds");0==(1&c)&&(e=this.__digit(b+k+1),f=(65535&e)-(m>>>16)-d,d=1&f>>>16,this.__setDigit(b+a.length,4294901760&e|65535&f))}else{b>>=1;for(l=0;l>>16;f=(k>>>16)-(m>>>16)-d;d=1&f>>>16,this.__setDigit(b+l,f<<16|65535&e)}k=this.__digit(b+l);m=a.__digit(l);f=(65535&k)-(65535&m)-d;d=1&f>>>16;e=0;0==(1&c)&&(e=(k>>>16)-(m>>>16)-d,d=1&e>>>16),this.__setDigit(b+l,e<<16|65535&f)}return d}},{key:"__inplaceRightShift",value:function(a){if(0!==a){for(var b,c=this.__digit(0)>>>a,d=this.length-1,e=0;e>>a;this.__setDigit(d,c)}}},{key:"__digit",value:function(a){return this[a]}},{key:"__unsignedDigit",value:function(a){return this[a]>>>0}},{key:"__setDigit",value:function(a,b){this[a]=0|b}},{key:"__setDigitGrow",value:function(a,b){this[a]=0|b}},{key:"__halfDigitLength",value:function(){var a=this.length;return 65535>=this.__unsignedDigit(a-1)?2*a-1:2*a}},{key:"__halfDigit",value:function(a){return 65535&this[a>>>1]>>>((1&a)<<4)}},{key:"__setHalfDigit",value:function(a,b){var c=a>>>1,d=this.__digit(c);a=1&a?65535&d|b<<16:4294901760&d|65535&b;this.__setDigit(c,a)}}],[{key:"BigInt",value:function(b){var c=Math.floor,d=Number.isFinite;if("number"==typeof b){if(0===b)return g.__zero();if((0|b)===b)return 0>b?g.__oneDigit(-b,!0):g.__oneDigit(b,!1);if(!d(b)||c(b)!==b)throw new RangeError("The number "+b+" cannot be converted to BigInt because it is not an integer");return g.__fromDouble(b)}if("string"==typeof b){d=g.__fromString(b);if(null===d)throw new SyntaxError("Cannot convert "+b+" to a BigInt");return d}if("boolean"==typeof b)return!0===b?g.__oneDigit(1,!1):g.__zero();if("object"===a(b)){if(b.constructor===g)return b;c=g.__toPrimitive(b);return g.BigInt(c)}throw new TypeError("Cannot convert "+b+" to a BigInt")}},{key:"toNumber",value:function(a){var b=a.length;if(0===b)return 0;if(1===b){var c=a.__unsignedDigit(0);return a.sign?-c:c}c=a.__digit(b-1);var d=k(c),e=32*b-d;if(1024>>=12;var h=d-12,i=12<=d?0:c<<20+d;d=20+d;0>>32-h,i=c<>>32-d,d-=32);h=g.__decideRounding(a,d,b,c);if((1===h||0===h&&1==(1&i))&&(i=i+1>>>0,0===i&&(f++,0!=f>>>20&&(f=0,e++,1023=g.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===a.length&&2===a.__digit(0)){var c=1+(b>>>5),d=a.sign&&0!=(1&b);d=new g(c,d);d.__initializeDigits();var e=1<<(31&b);return d.__setDigit(c-1,e),d}c=null;e=a;for(0!=(1&b)&&(c=a),b>>=1;0!==b;b>>=1)e=g.multiply(e,e),0!=(1&b)&&(null===c?c=e:c=g.multiply(c,e));return c}},{key:"multiply",value:function(a,b){if(0===a.length)return a;if(0===b.length)return b;var c=a.length+b.length;32<=a.__clzmsd()+b.__clzmsd()&&c--;c=new g(c,a.sign!==b.sign);c.__initializeDigits();for(var d=0;dg.__absoluteCompare(a,b))return g.__zero();var c=a.sign!==b.sign,d=b.__unsignedDigit(0);if(1===b.length&&65535>=d){if(1===d)return c===a.sign?a:g.unaryMinus(a);d=g.__absoluteDivSmall(a,d,null)}else d=g.__absoluteDivLarge(a,b,!0,!1);return d.sign=c,d.__trim()}},{key:"remainder",value:function(a,b){if(0===b.length)throw new RangeError("Division by zero");if(0>g.__absoluteCompare(a,b))return a;var c=b.__unsignedDigit(0);if(1===b.length&&65535>=c){if(1===c)return g.__zero();c=g.__absoluteModSmall(a,c);return 0===c?g.__zero():g.__oneDigit(c,a.sign)}c=g.__absoluteDivLarge(a,b,!1,!0);return c.sign=a.sign,c.__trim()}},{key:"add",value:function(a,b){var c=a.sign;return c===b.sign?g.__absoluteAdd(a,b,c):0<=g.__absoluteCompare(a,b)?g.__absoluteSub(a,b,c):g.__absoluteSub(b,a,!c)}},{key:"subtract",value:function(a,b){var c=a.sign;return c===b.sign?0<=g.__absoluteCompare(a,b)?g.__absoluteSub(a,b,c):g.__absoluteSub(b,a,!c):g.__absoluteAdd(a,b,c)}},{key:"leftShift",value:function(a,b){return 0===b.length||0===a.length?a:b.sign?g.__rightShiftByAbsolute(a,b):g.__leftShiftByAbsolute(a,b)}},{key:"signedRightShift",value:function(a,b){return 0===b.length||0===a.length?a:b.sign?g.__leftShiftByAbsolute(a,b):g.__rightShiftByAbsolute(a,b)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(a,b){return 0>g.__compareToBigInt(a,b)}},{key:"lessThanOrEqual",value:function(a,b){return 0>=g.__compareToBigInt(a,b)}},{key:"greaterThan",value:function(a,b){return 0=g.__kMaxLengthBits)return b;var c=a+31>>>5;if(b.lengthg.__kMaxLengthBits)throw new RangeError("BigInt too big");return g.__truncateAndSubFromPowerOfTwo(a,b,!1)}if(a>=g.__kMaxLengthBits)return b;var c=a+31>>>5;if(b.length>>d)return b}return g.__truncateToNBits(a,b)}},{key:"ADD",value:function(a,b){if(a=g.__toPrimitive(a),b=g.__toPrimitive(b),"string"==typeof a)return"string"!=typeof b&&(b=b.toString()),a+b;if("string"==typeof b)return a.toString()+b;if(a=g.__toNumeric(a),b=g.__toNumeric(b),g.__isBigInt(a)&&g.__isBigInt(b))return g.add(a,b);if("number"==typeof a&&"number"==typeof b)return a+b;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(a,b){return g.__compare(a,b,0)}},{key:"LE",value:function(a,b){return g.__compare(a,b,1)}},{key:"GT",value:function(a,b){return g.__compare(a,b,2)}},{key:"GE",value:function(a,b){return g.__compare(a,b,3)}},{key:"EQ",value:function(b,c){for(;;){if(g.__isBigInt(b))return g.__isBigInt(c)?g.equal(b,c):g.EQ(c,b);if("number"==typeof b){if(g.__isBigInt(c))return g.__equalToNumber(c,b);if("object"!==a(c))return b==c;c=g.__toPrimitive(c)}else if("string"==typeof b){if(g.__isBigInt(c))return b=g.__fromString(b),null!==b&&g.equal(b,c);if("object"!==a(c))return b==c;c=g.__toPrimitive(c)}else if("boolean"==typeof b){if(g.__isBigInt(c))return g.__equalToNumber(c,+b);if("object"!==a(c))return b==c;c=g.__toPrimitive(c)}else if("symbol"===a(b)){if(g.__isBigInt(c))return!1;if("object"!==a(c))return b==c;c=g.__toPrimitive(c)}else if("object"===a(b)){if("object"===a(c)&&c.constructor!==g)return b==c;b=g.__toPrimitive(b)}else return b==c}}},{key:"NE",value:function(a,b){return!g.EQ(a,b)}},{key:"__zero",value:function(){return new g(0,!1)}},{key:"__oneDigit",value:function(a,b){b=new g(1,b);return b.__setDigit(0,a),b}},{key:"__decideRounding",value:function(a,b,c,d){if(0b)b=-b-1;else{if(0===c)return-1;c--,d=a.__digit(c),b=31}b=1<>>20;c=c-1023;var d=(c>>>5)+1;a=new g(d,0>a);var e=1048575&g.__kBitConversionInts[1]|1048576,f=g.__kBitConversionInts[0],k=20;c=31&c;var n=0;if(c>>m,e=e<<32-m|f>>>m,f<<=32-m}else if(c===k)n=32,b=e,e=f;else{m=c-k;n=32-m,b=e<>>32-m,e=f<=a&&9<=a)||(159>=a?32==a:131071>=a?160==a||5760==a:196607>=a?(a&=131071,10>=a||40==a||41==a||47==a||95==a||4096==a):65279==a)}},{key:"__fromString",value:function(a){var b=11073741824/i)return null;var k=i*m+j>>>g.__kBitsPerCharTableShift,l=new g(k+31>>>5,!1),n=10>b?b:10,o=10>=g.__kBitsPerCharTableShift;var p=[],q=[],r=!1;do{for(var s,t=0,u=0;;){if(void 0,f-48>>>0>>0>>0>>0>>g.__kBitsPerCharTableShift+5;l.__inplaceMultiplyAdd(z,y,B)}while(!v)}if(e!==d){if(!g.__isWhitespace(f))return null;for(e++;e>>m-f)}if(0!==e){if(d>=a.length)throw new Error("implementation bug");a.__setDigit(d++,e)}for(;d>>1)+(85&d),d=(51&d>>>2)+(51&d),d=(15&d>>>4)+(15&d);d=d;b=b-1;var e=a.__digit(c-1),f=k(e);f=0|(32*c-f+d-1)/d;if(a.sign&&f++,268435456>>q,n=32-q;n>=d;)h[f--]=g.__kConversionChars[l&b],l>>>=d,n-=d}p=(l|e<>>d-n;0!==l;)h[f--]=g.__kConversionChars[l&b],l>>>=d;if(a.sign&&(h[f--]="-"),-1!==f)throw new Error("implementation bug");return h.join("")}},{key:"__toStringGeneric",value:function(a,b,c){var d=a.length;if(0===d)return"";if(1===d){var e=a.__unsignedDigit(0).toString(b);return!1===c&&a.sign&&(e="-"+e),e}e=32*d-k(a.__digit(d-1));d=g.__kMaxBitsPerChar[b];d=d-1;e=e*g.__kBitsPerCharTableMultiplier;e+=d-1,e=0|e/d;var f;d=e+1>>1;e=g.exponentiate(g.__oneDigit(b,!1),g.__oneDigit(d,!1));var h=e.__unsignedDigit(0);if(1===e.length&&65535>=h){f=new g(a.length,!1),f.__initializeDigits();for(var i,j=0,l=2*a.length-1;0<=l;l--)i=j<<16|a.__halfDigit(l),f.__setHalfDigit(l,0|i/h),j=0|i%h;i=j.toString(b)}else{h=g.__absoluteDivLarge(a,e,!0,!0);f=h.quotient;l=h.remainder.__trim();i=g.__toStringGeneric(l,b,!0)}f.__trim();for(j=g.__toStringGeneric(f,b,!0);i.lengtha?g.__absoluteLess(c):0}},{key:"__compareToNumber",value:function(a,b){if(!0|b){var c=a.sign,d=0>b;if(c!==d)return g.__unequalSign(c);if(0===a.length){if(d)throw new Error("implementation bug");return 0===b?0:-1}if(1d?g.__absoluteGreater(c):eb)return g.__unequalSign(c);if(0===b)throw new Error("implementation bug: should be handled elsewhere");if(0===a.length)return-1;g.__kBitConversionDouble[0]=b;b=2047&g.__kBitConversionInts[1]>>>20;if(2047==b)throw new Error("implementation bug: handled elsewhere");b=b-1023;if(0>b)return g.__absoluteGreater(c);var d=a.length,e=a.__digit(d-1),f=k(e),l=32*d-f;b=b+1;if(lb)return g.__absoluteGreater(c);b=1048576|1048575&g.__kBitConversionInts[1];var m=g.__kBitConversionInts[0],o=20;f=31-f;if(f!==(l-1)%31)throw new Error("implementation bug");var p;l=0;if(f>>q,b=b<<32-q|m>>>q,m<<=32-q}else if(f===o)l=32,p=b,b=m;else{q=f-o;l=32-q,p=b<>>32-q,b=m<>>=0,p>>>=0,e>p)return g.__absoluteGreater(c);if(e>>0,b=m,m=0):p=0;o=a.__unsignedDigit(f);if(o>p)return g.__absoluteGreater(c);if(ob&&a.__unsignedDigit(0)===h(b):0===g.__compareToDouble(a,b)}},{key:"__comparisonResultToBool",value:function(a,b){switch(b){case 0:return 0>a;case 1:return 0>=a;case 2:return 0b;case 3:return a>=b}if(g.__isBigInt(a)&&"string"==typeof b)return b=g.__fromString(b),null!==b&&g.__comparisonResultToBool(g.__compareToBigInt(a,b),c);if("string"==typeof a&&g.__isBigInt(b))return a=g.__fromString(a),null!==a&&g.__comparisonResultToBool(g.__compareToBigInt(a,b),c);if(a=g.__toNumeric(a),b=g.__toNumeric(b),g.__isBigInt(a)){if(g.__isBigInt(b))return g.__comparisonResultToBool(g.__compareToBigInt(a,b),c);if("number"!=typeof b)throw new Error("implementation bug");return g.__comparisonResultToBool(g.__compareToNumber(a,b),c)}if("number"!=typeof a)throw new Error("implementation bug");if(g.__isBigInt(b))return g.__comparisonResultToBool(g.__compareToNumber(b,a),2^c);if("number"!=typeof b)throw new Error("implementation bug");return 0===c?ab:3===c?a>=b:void 0}},{key:"__absoluteAdd",value:function(a,b,c){if(a.length>>16)+(f>>>16)+(m>>>16);c=h>>>16,d.__setDigit(e,65535&m|h<<16)}for(;e>>16)+(m>>>16);c=h>>>16,d.__setDigit(e,65535&m|h<<16)}return e>>16;f=(f>>>16)-(l>>>16)-d;d=1&f>>>16,c.__setDigit(e,65535&m|f<<16)}for(;e>>16;f=(l>>>16)-d;d=1&f>>>16,c.__setDigit(e,65535&m|f<<16)}return c.__trim()}},{key:"__absoluteAddOne",value:function(a,b){var c=2c?0:a.__unsignedDigit(c)>b.__unsignedDigit(c)?1:-1}},{key:"__multiplyAccumulate",value:function(a,b,c,d){if(0!==b){for(var e=65535&b,b=b>>>16,f=0,g=0,k=0,l=0;l>>16,p=a.__digit(l),q=65535&p;p=p>>>16;var r=j(q,e);q=j(q,b);var s=j(p,e);p=j(p,b);n+=g+(65535&r),o+=k+f+(n>>>16)+(r>>>16)+(65535&q)+(65535&s),f=o>>>16,g=(q>>>16)+(s>>>16)+(65535&p)+f,f=g>>>16,g&=65535,k=p>>>16,m=65535&n|o<<16,c.__setDigit(d,m)}for(;0!==f||0!==g||0!==k;d++){r=c.__digit(d);q=(65535&r)+g;s=(r>>>16)+(q>>>16)+k+f;g=0,k=0,f=s>>>16,r=65535&q|s<<16,c.__setDigit(d,r)}}}},{key:"__internalMultiplyAdd",value:function(a,b,c,d,e){for(var c=c,f=0,h=0;h>>16;l=j(l>>>16,b);m=(65535&l)+(m>>>16)+c;c=m>>>16,f=l>>>16,e.__setDigit(h,m<<16|65535&n)}if(e.length>d)for(e.__setDigit(d++,c+f);d>>0,k=0|f/b;d=0|f%b,f=(d<<16|a.__halfDigit(e-1))>>>0;var l=0|f/b;d=0|f%b,c.__setDigit(e>>>1,k<<16|l)}return c}},{key:"__absoluteModSmall",value:function(a,b){for(var c,d=0,e=2*a.length-1;0<=e;e--)c=(d<<16|a.__halfDigit(e))>>>0,d=0|c%b;return d}},{key:"__absoluteDivLarge",value:function(a,b,c,d){var f=b.__halfDigitLength(),e=b.length,n=a.__halfDigitLength()-f,i=null;c&&(i=new g(n+2>>>1,!1),i.__initializeDigits());var l=new g(f+2>>>1,!1);l.__initializeDigits();var m=g.__clz16(b.__halfDigit(f-1));0>>0;p=0|q/k;for(var q=0|q%k,r=b.__halfDigit(f-2),s=a.__halfDigit(n+f-2);j(p,r)>>>0>(q<<16|s)>>>0&&(p--,q+=k,!(65535>>1,o|p))}return d?(a.__inplaceRightShift(m),c?{quotient:i,remainder:a}:a):c?i:void 0}},{key:"__clz16",value:function(a){return k(a)-16}},{key:"__specialLeftShift",value:function(a,b,c){var e=a.length,d=new g(e+c,!1);if(0===b){for(var f=0;f>>32-b;return 0b)throw new RangeError("BigInt too big");var c=b>>>5;b=31&b;var d=a.length,e=0!==b&&0!=a.__digit(d-1)>>>32-b,f=d+c+(e?1:0),m=new g(f,a.sign);if(0===b){for(var n=0;n>>32-b;if(e)m.__setDigit(d+c,n);else if(0!==n)throw new Error("implementation bug")}return m.__trim()}},{key:"__rightShiftByAbsolute",value:function(a,b){var c=a.length,d=a.sign;b=g.__toShiftAmount(b);if(0>b)return g.__rightShiftByMaximum(d);var e=b>>>5;b=31&b;var f=c-e;if(0>=f)return g.__rightShiftByMaximum(d);var i=!1;if(d)if(0!=(a.__digit(e)&(1<>>b,f=c-e-1,c=0;c>>b;m.__setDigit(f,d)}return i&&(m=g.__absoluteAddOne(m,!0,m)),m.__trim()}},{key:"__rightShiftByMaximum",value:function(a){return a?g.__oneDigit(1,!0):g.__zero()}},{key:"__toShiftAmount",value:function(a){if(1g.__kMaxLengthBits?-1:a}},{key:"__toPrimitive",value:function(b){var c=1>>5,d=new g(c,b.sign),c=c-1,e=0;e>>b}return d.__setDigit(c,e),d.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(a,b,c){for(var d=Math.min,e=a+31>>>5,c=new g(e,c),f=0,e=e-1,h=0,d=d(e,b.length);f>>16;j=0-(j>>>16)-h;h=1&j>>>16,c.__setDigit(f,65535&l|j<<16)}for(;f>>16;f=0-(l>>>16)-h;b=65535&d|f<<16}else{a=32-j;l=l<>>a;d=1<<32-a;f=(65535&d)-(65535&l)-h;h=1&f>>>16;j=(d>>>16)-(l>>>16)-h;b=65535&f|j<<16,b&=d-1}return c.__setDigit(e,b),c.__trim()}},{key:"__digitPow",value:function(a,b){for(var c=1;0>>=1,a*=a;return c}}]),g}(k(Array));return n.__kMaxLength=33554432,n.__kMaxLengthBits=n.__kMaxLength<<5,n.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],n.__kBitsPerCharTableShift=5,n.__kBitsPerCharTableMultiplier=1<this.$3&&a.fid-this.$3<=B-1?c+=this.$1.writeByte(a.fid-this.$3<<4|b):(c+=this.$1.writeByte(b),c+=this.writeI16(a.fid));this.$3=a.fid;return c};b.$8=function(a){var b=0,c=this.$9(a.etype);a.size<=B-2?b+=this.$1.writeByte(a.size<<4|c):(b+=this.$1.writeByte(240|c),b+=this.writeVarint32(a.size));return b};b.readFieldBegin=function(){var a=this.$1.readByte(),b=a&15;if(b===c("ThriftTypes").STOP)return{ftype:c("ThriftTypes").STOP,fid:0};a=(a&240)>>>4;var d;a===0?d=this.readI16():d=this.$3+a;a=this.$10(b);(b===h.CT_BOOLEAN_TRUE||b===h.CT_BOOLEAN_FALSE)&&(this.$5=b===h.CT_BOOLEAN_TRUE);this.$3=d;return{ftype:a,fid:d}};b.readListBegin=function(){return this.$11()};b.readListEnd=function(){return 0};b.readSetBegin=function(){return this.$11()};b.readSetEnd=function(){return 0};b.readMapBegin=function(){var a=this.readVarint32();if(a>0){var b=this.$1.readByte(),c=this.$12(b>>4,"readMapBegin:key");b=this.$12(b&15,"readMapBegin:value");return{ktype:this.$10(c),vtype:this.$10(b),size:a}}return{size:a}};b.readMapEnd=function(){return 0};b.$12=function(a,b){if(a<0||a>13)throw new Error(b+" read invalid compact type: "+a);return a};b.$11=function(){var a=this.$1.readByte(),b=this.$12(a&15,"_readListOrSetBegin");b=this.$10(b);a=a>>4&15;a===15&&(a=this.readVarint32());return{etype:b,size:a}};b.readFieldEnd=function(){return 0};b.readByte=function(){this.$6.setUint8(0,this.$1.readByte());return this.$6.getInt8(0)};b.writeByte=function(a){if(ak)throw new Error("byte to write is out of range: "+a);this.$6.setInt8(0,a);return this.$1.writeByte(this.$6.getUint8(0))};b.readFloat=function(){return this.$1.readFloatBE()};b.writeFloat=function(a){return this.$1.writeFloatBE(a)};b.readDouble=function(){return this.$1.readDoubleBE()};b.writeDouble=function(a){return this.$1.writeDoubleBE(a)};b.writeString=function(a){return this.writeBinary(d("StringToUtf8").StringToUtf8(a))};b.skip=function(a){switch(a){case c("ThriftTypes").STOP:return;case c("ThriftTypes").BOOL:this.readBool();break;case c("ThriftTypes").BYTE:this.readByte();break;case c("ThriftTypes").DOUBLE:this.readDouble();break;case c("ThriftTypes").I16:this.readI16();break;case c("ThriftTypes").I32:this.readI32();break;case c("ThriftTypes").I64:this.readI64();break;case c("ThriftTypes").STRING:this.readString();break;case c("ThriftTypes").STRUCT:this.readStructBegin();var b;while(!0){b=this.readFieldBegin();if(b.ftype===c("ThriftTypes").STOP)break;this.skip(b.ftype)}this.readStructEnd();break;case c("ThriftTypes").MAP:b=this.readMapBegin();if(b.size>0&&b.ktype!=null&&b.vtype!=null){var d=b.ktype,e=b.vtype;for(var f=0;fm)throw new Error("trying to write i16 out of range: "+a);return this.writeVarint32(this.i32ToZigzag(a))};b.readI16=function(){var a=this.zigzagToI32(this.readVarint32());if(am)throw new Error("read invalid i16: "+a);return a};b.writeI32=function(a){if(ao)throw new Error("i32 out of range: "+a);return this.writeVarint32(this.i32ToZigzag(a))};b.readI32=function(){return this.zigzagToI32(this.readVarint32())};b.writeI64=function(a){return this.writeVarint64(this.i64ToZigzag(a))};b.readI64=function(){return this.zigzagToI64(this.readVarint64())};b.readBool=function(){var a;this.$5!=null?(a=this.$5,this.$5=null):a=this.$1.readByte()===h.CT_BOOLEAN_TRUE;return a};b.writeBool=function(a){var b=0;this.$4!=null?(b+=this.$7(this.$4,a?i.CT_BOOLEAN_TRUE:i.CT_BOOLEAN_FALSE),this.$4=null):b+=this.$1.writeByte(a?h.CT_BOOLEAN_TRUE:h.CT_BOOLEAN_FALSE);return b};b.readBinary=function(){var a=this.readVarint32();return a===0?new Uint8Array(0):this.$1.readBytes(a)};b.writeBinary=function(a){var b=0;b+=this.writeVarint32(a.length);b+=this.$1.write(a);return b};b.i32ToZigzag=function(a){if(ao)throw new Error("number: "+a+" is out of range of i32");return(a<<1^(a<0?4294967295:0))>>>0};b.zigzagToI32=function(a){if(a<0||a>q)throw new Error("number: "+a+" is out of range of uint32");return a>>>1^-1*(a&1)};b.i64ToZigzag=function(a){if(c("jsbi").greaterThan(a,r)||c("jsbi").lessThan(a,s))throw new Error("i64 out of range: "+a.toString());return c("jsbi").bitwiseXor(c("jsbi").signedRightShift(a,u),c("jsbi").leftShift(a,v))};b.zigzagToI64=function(a){if(c("jsbi").lessThan(a,0)||c("jsbi").greaterThan(a,t))throw new Error("invalid uint64: "+a.toString());return c("jsbi").equal(c("jsbi").bitwiseAnd(a,v),v)?c("jsbi").bitwiseNot(c("jsbi").signedRightShift(a,v)):c("jsbi").signedRightShift(a,v)};b.writeVarint32=function(a){if(a<0||a>q)throw new Error("writeVarint32 received out of range uint32: "+a);a=a;var b=0;while(!0)if(a>>>7===0){this.$1.writeByte(a);b++;break}else this.$1.writeByte(a&127|128),b++,a>>>=7;return b};b.readVarint32=function(){var a=0,b=0,c;while(!0){c=this.$1.readByte();a=(a|(c&127)<>>0;b+=7;if((c&128)==0){if(b===35&&(c&240)!=0)throw new Error("result exceeded 32 bit limit");break}if(b>28)throw new Error("result exceeded 32 bit limit")}return a};b.writeVarint64=function(a){if(c("jsbi").lessThan(a,w)||c("jsbi").greaterThan(a,t))throw new Error("invalid uint64: "+a.toString());a=a;var b=0;while(!0)if(c("jsbi").equal(c("jsbi").signedRightShift(a,x),w)){this.$1.writeByte(c("jsbi").toNumber(a));b++;break}else{var d=c("jsbi").toNumber(c("jsbi").bitwiseOr(c("jsbi").bitwiseAnd(a,z),A));this.$1.writeByte(d);b++;a=c("jsbi").signedRightShift(a,x)}return b};b.readVarint64=function(){var a=w,b=w,d;while(!0){d=c("jsbi").BigInt(this.$1.readByte());a=c("jsbi").bitwiseOr(a,c("jsbi").leftShift(c("jsbi").bitwiseAnd(d,z),b));b=c("jsbi").add(b,x);if(c("jsbi").equal(c("jsbi").bitwiseAnd(d,A),w)){if(c("jsbi").equal(b,y)&&c("jsbi").notEqual(d,v))throw new Error("result exceeded 64 bit limit");break}if(c("jsbi").greaterThan(b,u))throw new Error("result exceeded 64 bit limit")}return a};b.readString=function(){return d("Utf8ToString").Utf8ToString(this.readBinary())};b.getLastFieldId=function(){return this.$3};b.getLastField=function(){return this.$2};b.getBooleanFieldInfo=function(){return this.$4};b.getBooleanValue=function(){return this.$5};b.$9=function(a){return j[a]};b.$10=function(a){switch(a){case h.CT_STOP:return c("ThriftTypes").STOP;case h.CT_BOOLEAN_FALSE:case h.CT_BOOLEAN_TRUE:return c("ThriftTypes").BOOL;case h.CT_BYTE:return c("ThriftTypes").BYTE;case h.CT_I16:return c("ThriftTypes").I16;case h.CT_I32:return c("ThriftTypes").I32;case h.CT_I64:return c("ThriftTypes").I64;case h.CT_DOUBLE:return c("ThriftTypes").DOUBLE;case h.CT_FLOAT:return c("ThriftTypes").FLOAT;case h.CT_BINARY:return c("ThriftTypes").STRING;case h.CT_LIST:return c("ThriftTypes").LIST;case h.CT_SET:return c("ThriftTypes").SET;case h.CT_MAP:return c("ThriftTypes").MAP;case h.CT_STRUCT:return c("ThriftTypes").STRUCT;default:throw new Error("don't know what type")}};return a}();g["default"]=a}),98); __d("CompactSerializerPolyfill",["TCompactProtocolPolyfill","TNoOpWriteBuffer","TReadBuffer","TWriteBuffer"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){a=new(c("TReadBuffer"))(a);a=new(c("TCompactProtocolPolyfill"))(a);return b(a)}function a(a,b,c){try{return h(a,b)}catch(a){c!=null&&c(a)}return null}function i(a,b,d){d===void 0&&(d=!1);if(d){d=new(c("TNoOpWriteBuffer"))();var e=new(c("TCompactProtocolPolyfill"))(d);b(a,e);e=new(c("TWriteBuffer"))(d.currentSize())}else e=new(c("TWriteBuffer"))();d=new(c("TCompactProtocolPolyfill"))(e);b(a,d);return d.toByteArray()}function b(a,b,c,d){c===void 0&&(c=!1);try{return i(a,b,c)}catch(a){d!=null&&d(a)}return null}g.deserialize=h;g.deserializeNoThrow=a;g.serialize=i;g.serializeNoThrow=b}),98); __d("DGWRequestStreamUtils",["Base64","WebDriverConfig","cr:3024","gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(a,d,e,f){var g={};a=Object.entries(a);for(var h=0;h0&&(g["xrs-instrumentation"]=c("Base64").encode(e));g["XRS-Accept-Ack"]="RSAck";f!=null&&f.ackTimeoutSec!=null&&(g["XRS-SRAck-Timeout"]=f.ackTimeoutSec.toString());g["XRSS-http_referer"]=window.location.href;if(c("WebDriverConfig").isTestRunning&&c("gkx")("5639")){j=b("cr:3024")==null?void 0:b("cr:3024").get();j!=null&&(g["XRSS-is_test"]="1",g["XRSS-original_request_id"]=j)}return g}function h(a){return Object.keys(a).reduce(function(b,c){(typeof a[c]==="string"||typeof a[c]==="boolean"||typeof a[c]==="number"||typeof a[c]==="object")&&(b[c]=a[c]);return b},{})}function d(a){if(a.response&&a.response.instrumentation_data!=null&&a.response.instrumentation_data.length>0)try{a=JSON.parse(new TextDecoder("utf-8").decode(a.response.instrumentation_data));return{auxId:a.auxId,dfTraceId:(a=a.dataFlowTracingData)==null?void 0:a.traceId}}catch(a){}return null}function e(a,b){var c=a.headers;a=a.body;b.kill_body===!0&&(a=null);b.new_body!=null&&(a=b.new_body);if(b.new_headers!=null)try{c=h(JSON.parse(b.new_headers))}catch(a){}if(b.patch_headers!=null)try{c=babelHelpers["extends"]({},c,h(JSON.parse(b.patch_headers)))}catch(a){}return{headers:c,body:a}}g.convertHeaders=a;g.cleanHeaders=h;g.getInstrumentationDataFieldsFromPayload=d;g.transformContextWithRewriteDelta=e}),98); __d("DGWStream",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";var g=b("$InternalEnum").Mirrored(["ABNORMAL_CLOSURE","GOING_AWAY","SERVER_INTERNAL_ERROR","PREMATURE_CLOSE","UNKNOWN_ERROR","KEEPALIVE_TIMEOUT","TRANSPORT_CLOSED_BEFORE_STREAM_INIT","ESTABLISHMENT_TIMEOUT","UNAUTHORIZED","REJECTED","BAD_REQUEST","DGW_SERVER_ERROR","ESTABLISHMENT_ERROR"]);function a(a){switch(a){case g.UNAUTHORIZED:case g.REJECTED:case g.BAD_REQUEST:case g.UNKNOWN_ERROR:case g.SERVER_INTERNAL_ERROR:return!1;default:return!0}}f.StreamError=g;f.isRetryableError=a}),66); __d("DGWStreamHandler",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a,b,c,d,e){this.$2=a,this.$3=b,this.$4=c,this.$5=d,this.$6=e,this.$1=!0}var b=a.prototype;b.onClose=function(a){if(!this.$1)return;this.$2(a)};b.onDataReceived=function(a){if(!this.$1)return;this.$3(a)};b.onError=function(a){if(!this.$1)return;this.$4(a)};b.onStreamMustDrain=function(a,b){if(!this.$1)return;this.$5(a,b)};b.onServerHasFinishedSendingData=function(a){if(!this.$1)return;this.$6(a)};b.stop=function(){this.$1=!1};b.isStopped=function(){return!this.$1};return a}();f["default"]=a}),66); __d("RequestStreamCommonRequestStreamCommonSerializers",["RequestStreamCommonRequestStreamCommonTypes","ThriftTypes","jsbi"],(function(a,b,c,d,e,f){"use strict";function a(){return{}}function c(){return{bytes:Uint8Array.of()}}function d(){return{message:""}}function e(){return{reason:b("RequestStreamCommonRequestStreamCommonTypes").TerminationReason.cast(0)}}function g(){return{}}function h(){return{stream_id:"0",last_sequencer:0,amendment_count:0,last_status:b("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.cast(0)}}function i(){return{caller_timestamp_ms:"0"}}function j(){return{original_ping_timestamp_ms:"0"}}function k(){return{}}function l(a,c){c.writeStructBegin("ResponseRewriteRequest"),a.new_headers!=null&&(c.writeFieldBegin({fname:"new_headers",ftype:b("ThriftTypes").STRING,fid:1}),c.writeString(a.new_headers),c.writeFieldEnd()),a.new_body!=null&&(c.writeFieldBegin({fname:"new_body",ftype:b("ThriftTypes").STRING,fid:2}),c.writeBinary(a.new_body),c.writeFieldEnd()),a.patch_headers!=null&&(c.writeFieldBegin({fname:"patch_headers",ftype:b("ThriftTypes").STRING,fid:3}),c.writeString(a.patch_headers),c.writeFieldEnd()),a.kill_body!=null&&(c.writeFieldBegin({fname:"kill_body",ftype:b("ThriftTypes").BOOL,fid:4}),c.writeBool(a.kill_body),c.writeFieldEnd()),a.temporary!=null&&(c.writeFieldBegin({fname:"temporary",ftype:b("ThriftTypes").BOOL,fid:5}),c.writeBool(a.temporary),c.writeFieldEnd()),c.writeFieldStop(),c.writeStructEnd()}function m(a,c){c.writeStructBegin("ResponseData");c.writeFieldBegin({fname:"bytes",ftype:b("ThriftTypes").STRING,fid:1});if(a.bytes!=null)c.writeBinary(a.bytes);else{var d=Uint8Array.of();c.writeBinary(d)}c.writeFieldEnd();a.metadata!=null&&(c.writeFieldBegin({fname:"metadata",ftype:b("ThriftTypes").STRING,fid:2}),c.writeString(a.metadata),c.writeFieldEnd());c.writeFieldStop();c.writeStructEnd()}function n(a,c){c.writeStructBegin("LogMessage");c.writeFieldBegin({fname:"message",ftype:b("ThriftTypes").STRING,fid:1});if(a.message!=null)c.writeString(a.message);else{a="";c.writeString(a)}c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd()}function o(a,c){c.writeStructBegin("Termination");c.writeFieldBegin({fname:"reason",ftype:b("ThriftTypes").I32,fid:1});if(a.reason!=null){var d;c.writeI32((d=a.reason)!=null?d:0)}else{d=b("RequestStreamCommonRequestStreamCommonTypes").TerminationReason.cast(0);c.writeI32((d=d)!=null?d:0)}c.writeFieldEnd();a.message!=null&&(c.writeFieldBegin({fname:"message",ftype:b("ThriftTypes").STRING,fid:2}),c.writeString(a.message),c.writeFieldEnd());a.retry_delay_ms!=null&&(c.writeFieldBegin({fname:"retry_delay_ms",ftype:b("ThriftTypes").I64,fid:3}),c.writeI64(b("jsbi").BigInt(a.retry_delay_ms)),c.writeFieldEnd());c.writeFieldStop();c.writeStructEnd()}function p(a,c){c.writeStructBegin("AmendStreamAck"),a.amendment_id!=null&&(c.writeFieldBegin({fname:"amendment_id",ftype:b("ThriftTypes").I64,fid:1}),c.writeI64(b("jsbi").BigInt(a.amendment_id)),c.writeFieldEnd()),a.accepted!=null&&(c.writeFieldBegin({fname:"accepted",ftype:b("ThriftTypes").BOOL,fid:2}),c.writeBool(a.accepted),c.writeFieldEnd()),a.result!=null&&(c.writeFieldBegin({fname:"result",ftype:b("ThriftTypes").STRING,fid:3}),c.writeBinary(a.result),c.writeFieldEnd()),c.writeFieldStop(),c.writeStructEnd()}function q(a,c){c.writeStructBegin("StreamCheck");c.writeFieldBegin({fname:"stream_id",ftype:b("ThriftTypes").I64,fid:1});if(a.stream_id!=null)c.writeI64(b("jsbi").BigInt(a.stream_id));else{var d="0";c.writeI64(b("jsbi").BigInt(d))}c.writeFieldEnd();c.writeFieldBegin({fname:"last_sequencer",ftype:b("ThriftTypes").I32,fid:2});if(a.last_sequencer!=null)c.writeI32(a.last_sequencer);else{d=0;c.writeI32(d)}c.writeFieldEnd();c.writeFieldBegin({fname:"amendment_count",ftype:b("ThriftTypes").I32,fid:4});if(a.amendment_count!=null)c.writeI32(a.amendment_count);else{d=0;c.writeI32(d)}c.writeFieldEnd();c.writeFieldBegin({fname:"last_status",ftype:b("ThriftTypes").I32,fid:3});if(a.last_status!=null){c.writeI32((d=a.last_status)!=null?d:0)}else{a=b("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.cast(0);c.writeI32((d=a)!=null?d:0)}c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd()}function r(a,c){c.writeStructBegin("Ping");c.writeFieldBegin({fname:"caller_timestamp_ms",ftype:b("ThriftTypes").I64,fid:1});if(a.caller_timestamp_ms!=null)c.writeI64(b("jsbi").BigInt(a.caller_timestamp_ms));else{var d="0";c.writeI64(b("jsbi").BigInt(d))}c.writeFieldEnd();if(a.streams_to_check!=null){c.writeFieldBegin({fname:"streams_to_check",ftype:b("ThriftTypes").LIST,fid:2});c.writeListBegin({etype:b("ThriftTypes").STRUCT,size:a.streams_to_check.length});for(var d=a.streams_to_check,a=Array.isArray(d),e=0,d=a?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(a){if(e>=d.length)break;f=d[e++]}else{e=d.next();if(e.done)break;f=e.value}f=f;q(f,c)}c.writeListEnd();c.writeFieldEnd()}c.writeFieldStop();c.writeStructEnd()}function s(a,c){c.writeStructBegin("Pong");c.writeFieldBegin({fname:"original_ping_timestamp_ms",ftype:b("ThriftTypes").I64,fid:1});if(a.original_ping_timestamp_ms!=null)c.writeI64(b("jsbi").BigInt(a.original_ping_timestamp_ms));else{var d="0";c.writeI64(b("jsbi").BigInt(d))}c.writeFieldEnd();if(a.stream_ids_missing!=null){c.writeFieldBegin({fname:"stream_ids_missing",ftype:b("ThriftTypes").LIST,fid:2});c.writeListBegin({etype:b("ThriftTypes").I64,size:a.stream_ids_missing.length});for(var d=a.stream_ids_missing,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;c.writeI64(b("jsbi").BigInt(g))}c.writeListEnd();c.writeFieldEnd()}if(a.stream_ids_behind!=null){c.writeFieldBegin({fname:"stream_ids_behind",ftype:b("ThriftTypes").LIST,fid:3});c.writeListBegin({etype:b("ThriftTypes").I64,size:a.stream_ids_behind.length});for(g=a.stream_ids_behind,f=Array.isArray(g),e=0,g=f?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(f){if(e>=g.length)break;d=g[e++]}else{e=g.next();if(e.done)break;d=e.value}d=d;c.writeI64(b("jsbi").BigInt(d))}c.writeListEnd();c.writeFieldEnd()}if(a.stream_ids_with_lost_amendments!=null){c.writeFieldBegin({fname:"stream_ids_with_lost_amendments",ftype:b("ThriftTypes").LIST,fid:4});c.writeListBegin({etype:b("ThriftTypes").I64,size:a.stream_ids_with_lost_amendments.length});for(d=a.stream_ids_with_lost_amendments,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;c.writeI64(b("jsbi").BigInt(g))}c.writeListEnd();c.writeFieldEnd()}if(a.stream_ids_with_wrong_status!=null){c.writeFieldBegin({fname:"stream_ids_with_wrong_status",ftype:b("ThriftTypes").LIST,fid:5});c.writeListBegin({etype:b("ThriftTypes").I64,size:a.stream_ids_with_wrong_status.length});for(g=a.stream_ids_with_wrong_status,f=Array.isArray(g),e=0,g=f?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(f){if(e>=g.length)break;d=g[e++]}else{e=g.next();if(e.done)break;d=e.value}a=d;c.writeI64(b("jsbi").BigInt(a))}c.writeListEnd();c.writeFieldEnd()}c.writeFieldStop();c.writeStructEnd()}function t(a,c){c.writeStructBegin("StreamResponseDelta");if(a.flow_status!=null){var d;c.writeFieldBegin({fname:"flow_status",ftype:b("ThriftTypes").I32,fid:1});c.writeI32((d=a.flow_status)!=null?d:0);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}if(a.log!=null){c.writeFieldBegin({fname:"log",ftype:b("ThriftTypes").STRUCT,fid:2});n(a.log,c);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}if(a.rewrite!=null){c.writeFieldBegin({fname:"rewrite",ftype:b("ThriftTypes").STRUCT,fid:3});l(a.rewrite,c);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}if(a.data!=null){c.writeFieldBegin({fname:"data",ftype:b("ThriftTypes").STRUCT,fid:4});m(a.data,c);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}if(a.termination!=null){c.writeFieldBegin({fname:"termination",ftype:b("ThriftTypes").STRUCT,fid:5});o(a.termination,c);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}if(a.amend_ack!=null){c.writeFieldBegin({fname:"amend_ack",ftype:b("ThriftTypes").STRUCT,fid:6});p(a.amend_ack,c);c.writeFieldEnd();c.writeFieldStop();c.writeStructEnd();return}c.writeFieldStop();c.writeStructEnd()}function u(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").STRING?c.new_headers=a.readString():a.skip(e);break;case 2:e===b("ThriftTypes").STRING?c.new_body=a.readBinary():a.skip(e);break;case 3:e===b("ThriftTypes").STRING?c.patch_headers=a.readString():a.skip(e);break;case 4:e===b("ThriftTypes").BOOL?c.kill_body=a.readBool():a.skip(e);break;case 5:e===b("ThriftTypes").BOOL?c.temporary=a.readBool():a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();return c}function v(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").STRING?c.bytes=a.readBinary():a.skip(e);break;case 2:e===b("ThriftTypes").STRING?c.metadata=a.readString():a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();c.bytes===void 0&&(c.bytes=Uint8Array.of());return c}function w(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").STRING?c.message=a.readString():a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();c.message===void 0&&(c.message="");return c}function x(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").I32?c.reason=b("RequestStreamCommonRequestStreamCommonTypes").TerminationReason.cast(a.readI32()):a.skip(e);break;case 2:e===b("ThriftTypes").STRING?c.message=a.readString():a.skip(e);break;case 3:e===b("ThriftTypes").I64?c.retry_delay_ms=a.readI64().toString():a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();c.reason===void 0&&(c.reason=b("RequestStreamCommonRequestStreamCommonTypes").TerminationReason.cast(0));return c}function y(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").I64?c.amendment_id=a.readI64().toString():a.skip(e);break;case 2:e===b("ThriftTypes").BOOL?c.accepted=a.readBool():a.skip(e);break;case 3:e===b("ThriftTypes").STRING?c.result=a.readBinary():a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();return c}function z(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").I64?c.stream_id=a.readI64().toString():a.skip(e);break;case 2:e===b("ThriftTypes").I32?c.last_sequencer=a.readI32():a.skip(e);break;case 4:e===b("ThriftTypes").I32?c.amendment_count=a.readI32():a.skip(e);break;case 3:e===b("ThriftTypes").I32?c.last_status=b("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.cast(a.readI32()):a.skip(e);break;default:a.skip(e)}a.readFieldEnd()}a.readStructEnd();c.stream_id===void 0&&(c.stream_id="0");c.last_sequencer===void 0&&(c.last_sequencer=0);c.amendment_count===void 0&&(c.amendment_count=0);c.last_status===void 0&&(c.last_status=b("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.cast(0));return c}function A(a){var c={};a.readStructBegin();while(!0){var d=a.readFieldBegin(),e=d.ftype;d=d.fid;if(e===b("ThriftTypes").STOP)break;switch(d){case 1:e===b("ThriftTypes").I64?c.caller_timestamp_ms=a.readI64().toString():a.skip(e);break;case 2:if(e===b("ThriftTypes").LIST){c.streams_to_check=[];d=a.readListBegin();for(var f=0;f=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;b("RequestStreamCommonRequestStreamCommonSerializers").serializeStreamResponseDelta(g,c)}c.writeListEnd()}else{g=[];c.writeListBegin({etype:b("ThriftTypes").STRUCT,size:g.length});for(f=0;f=0;--p)o[48+p]=52+p,o[65+p]=p,o[97+p]=26+p;o[43]=62;o[47]=63;function q(m,n,p){var q,r,l=0,s=n,t=p.length;n=n+(t*3>>2)-(p[t-2]=="=")-(p[t-1]=="=");for(;l>4,s>2),s>2]=o;t[y+68>>2]=p;t[y+64>>2]=l;t[y+60>>2]=r;t[y+56>>2]=m;t[y+52>>2]=n;a:{if(t[y+52>>2]?!t[y+56>>2]|(!t[y+72>>2]|!t[y+68>>2]|(!t[y+64>>2]|!t[y+60>>2])):1){t[y+76>>2]=5;break a}t[t[y+64>>2]>>2]=0;t[t[y+60>>2]>>2]=0;p=t[y+68>>2];l=t[y+56>>2];r=t[y+52>>2];o=A+-64|0;A=o;t[o+56>>2]=t[y+72>>2];t[o+52>>2]=p;t[o+48>>2]=l;t[o+44>>2]=r;t[o+40>>2]=0;t[o+36>>2]=t[o+56>>2];b:{c:{d:{while(1){if(!t[o+52>>2])break c;t[o+32>>2]=t[o+36>>2];q[o+31|0]=u[t[o+36>>2]];t[o+52>>2]=t[o+52>>2]-1;t[o+36>>2]=t[o+36>>2]+1;if(u[o+31|0]!=10?u[o+31|0]==2|u[o+31|0]==4|u[o+31|0]==9:1){t[o+40>>2]=t[o+40>>2]+1;continue}t[o+24>>2]=1;if(V(u[o+31|0])&1){z=o,B=X(u[o+31|0])&1,q[z+23|0]=B;t[o+16>>2]=q[o+23|0]&1?1:2;if(w[o+52>>2]>2]){t[t[o+48>>2]>>2]=t[o+32>>2];t[t[o+44>>2]>>2]=t[o+52>>2]+t[o+24>>2];break b}t[o+52>>2]=t[o+52>>2]-t[o+16>>2];t[o+24>>2]=t[o+16>>2]+t[o+24>>2];t[o+36>>2]=t[o+16>>2]+t[o+36>>2];if(!(u[o+31|0]!=14?u[o+31|0]!=8:0)){t[o+40>>2]=t[o+40>>2]+1;continue}}if(w[o+52>>2]<3)break d;t[o+12>>2]=0;p=t[o+36>>2];l=u[p|0]|u[p+1|0]<<8;q[o+12|0]=l;q[o+13|0]=l>>>8;q[o+14|0]=u[p+2|0];t[o+52>>2]=t[o+52>>2]-3;t[o+24>>2]=t[o+24>>2]+3;t[o+36>>2]=t[o+36>>2]+3;if(w[o+12>>2]<=w[o+52>>2]){t[o+40>>2]=t[o+40>>2]+1;t[o+36>>2]=t[o+12>>2]+t[o+36>>2];t[o+52>>2]=t[o+52>>2]-t[o+12>>2];continue}break}t[t[o+48>>2]>>2]=t[o+32>>2];t[t[o+44>>2]>>2]=t[o+52>>2]+t[o+24>>2];break b}t[t[o+48>>2]>>2]=t[o+32>>2];t[t[o+44>>2]>>2]=t[o+52>>2]+t[o+24>>2];break b}t[t[o+44>>2]>>2]=t[o+52>>2]}t[o+60>>2]=t[o+40>>2];A=o- -64|0;t[y+48>>2]=t[o+60>>2];if(!t[y+48>>2]){t[y+76>>2]=0;break a}z=y,B=D(x(t[y+48>>2],20)),t[z+44>>2]=B;if(!t[y+44>>2]){t[y+76>>2]=3;break a}t[y+40>>2]=t[y+44>>2];t[y+36>>2]=t[y+72>>2];t[y+32>>2]=t[y+68>>2]-t[t[y+52>>2]>>2];t[y+28>>2]=0;while(1){if(w[y+28>>2]>2]){if(w[y+32>>2]<1){O(t[y+44>>2],t[y+28>>2]);t[y+76>>2]=1;break a}q[y+27|0]=u[t[y+36>>2]];t[y+36>>2]=t[y+36>>2]+1;t[y+32>>2]=t[y+32>>2]-1;e:{if(!u[y+27|0]|u[y+27|0]==1|(u[y+27|0]==2|u[y+27|0]==3)|(u[y+27|0]==4|u[y+27|0]==9|u[y+27|0]==10))break e;if(V(u[y+27|0])&1)break e;O(t[y+44>>2],t[y+28>>2]);t[y+76>>2]=6;break a}o=t[y+40>>2];t[o>>2]=u[y+27|0]&15|t[o>>2]&-16;f:{if(u[y+27|0]!=10?u[y+27|0]==2|u[y+27|0]==4|u[y+27|0]==9:1){o=t[y+40>>2];t[o>>2]=t[o>>2]&-268435441;t[y+40>>2]=t[y+40>>2]+20;break f}if(V(u[y+27|0])&1){o=A-48|0;A=o;t[o+40>>2]=t[y+40>>2];t[o+36>>2]=y+36;t[o+32>>2]=y+32;g:{if(!(V(t[t[o+40>>2]>>2]&15)&1)){t[o+44>>2]=1;break g}z=o,B=X(t[t[o+40>>2]>>2]&15)&1,q[z+31|0]=B;t[o+24>>2]=q[o+31|0]&1?1:2;if(w[t[o+32>>2]>>2]>2]){t[o+44>>2]=1;break g}ba(t[o+40>>2]+4|0,t[t[o+36>>2]>>2],t[o+24>>2]);p=t[o+36>>2];t[p>>2]=t[o+24>>2]+t[p>>2];p=t[o+32>>2];t[p>>2]=t[p>>2]-t[o+24>>2];if((t[t[o+40>>2]>>2]&15)==8){p=t[o+40>>2];t[p>>2]=t[p>>2]&-268435441;t[o+44>>2]=0;break g}if((t[t[o+40>>2]>>2]&15)==14){p=t[o+40>>2];t[p>>2]=t[p>>2]&-268435441;t[o+44>>2]=0;break g}if(w[t[o+32>>2]>>2]<3){t[o+44>>2]=11;break g}t[o+20>>2]=0;p=t[t[o+36>>2]>>2];l=u[p|0]|u[p+1|0]<<8;q[o+20|0]=l;q[o+21|0]=l>>>8;q[o+22|0]=u[p+2|0];p=t[o+36>>2];t[p>>2]=t[p>>2]+3;p=t[o+32>>2];t[p>>2]=t[p>>2]-3;p=t[o+40>>2];t[p>>2]=t[p>>2]&-268435441|(t[o+20>>2]&16777215)<<4;if(w[t[o+32>>2]>>2]>2]){t[o+44>>2]=11;break g}if((t[t[o+40>>2]>>2]&15)==15){t[t[o+40>>2]+12>>2]=t[o+20>>2];p=D(t[o+20>>2]);t[t[o+40>>2]+8>>2]=p;if(!t[t[o+40>>2]+8>>2]){t[o+44>>2]=3;break g}ba(t[t[o+40>>2]+8>>2],t[t[o+36>>2]>>2],t[o+20>>2]);p=t[o+36>>2];t[p>>2]=t[o+20>>2]+t[p>>2];p=t[o+32>>2];t[p>>2]=t[p>>2]-t[o+20>>2];t[o+44>>2]=0;break g}if((t[t[o+40>>2]>>2]&15)==5){t[t[o+40>>2]+12>>2]=t[o+20>>2];p=D(t[o+20>>2]);t[t[o+40>>2]+8>>2]=p;if(!t[t[o+40>>2]+8>>2]){t[o+44>>2]=3;break g}ba(t[t[o+40>>2]+8>>2],t[t[o+36>>2]>>2],t[o+20>>2]);p=t[o+36>>2];t[p>>2]=t[o+20>>2]+t[p>>2];p=t[o+32>>2];t[p>>2]=t[p>>2]-t[o+20>>2];t[o+44>>2]=0;break g}h:{if(!((t[t[o+40>>2]>>2]&15)!=6?(t[t[o+40>>2]>>2]&15)!=7:0)){z=o,B=Q(t[o+36>>2],t[o+32>>2],o+19|0,o+18|0),t[z+12>>2]=B;if(t[o+12>>2]){t[o+44>>2]=t[o+12>>2];break g}break h}if(!((t[t[o+40>>2]>>2]&15)!=13?(t[t[o+40>>2]>>2]&15)!=12:0)){l=t[o+32>>2];p=A-32|0;t[p+24>>2]=t[o+36>>2];t[p+20>>2]=l;t[p+16>>2]=o+19;t[p+12>>2]=o+16;s[p+10>>1]=0;i:{if(w[t[p+20>>2]>>2]<2){t[p+28>>2]=1;break i}l=t[t[p+24>>2]>>2];l=u[l|0]|u[l+1|0]<<8;q[p+10|0]=l;q[p+11|0]=l>>>8;l=t[p+24>>2];t[l>>2]=t[l>>2]+2;l=t[p+20>>2];t[l>>2]=t[l>>2]-2;q[t[p+16>>2]]=(v[p+10>>1]&32768)==32768;s[t[p+12>>2]>>1]=v[p+10>>1]&32767;t[p+28>>2]=0}t[o+12>>2]=t[p+28>>2];if(t[o+12>>2]){t[o+44>>2]=t[o+12>>2];break g}}}if((t[t[o+40>>2]>>2]&15)==12){p=t[o+40>>2];s[p+8>>1]=s[p+8>>1]&1|v[o+16>>1]<<1;t[o+44>>2]=0;break g}if((t[t[o+40>>2]>>2]&15)==7){p=t[o+40>>2];q[p+8|0]=q[p+8|0]&1|u[o+18|0]<<1;t[o+44>>2]=0;break g}if((t[t[o+40>>2]>>2]&15)==13){l=t[o+32>>2];r=t[o+20>>2];m=t[o+40>>2]+12|0;n=t[o+40>>2];p=A-32|0;A=p;t[p+24>>2]=t[o+36>>2];t[p+20>>2]=l;t[p+16>>2]=r;t[p+12>>2]=m;t[p+8>>2]=n+16;j:{if(w[p+16>>2]<2){t[p+28>>2]=9;break j}t[t[p+8>>2]>>2]=t[p+16>>2]-2;if(w[t[p+20>>2]>>2]>2]>>2]){t[p+28>>2]=1;break j}l=D(t[t[p+8>>2]>>2]);t[t[p+12>>2]>>2]=l;if(!t[t[p+12>>2]>>2]){t[p+28>>2]=3;break j}ba(t[t[p+12>>2]>>2],t[t[p+24>>2]>>2],t[t[p+8>>2]>>2]);l=t[p+24>>2];t[l>>2]=t[t[p+8>>2]>>2]+t[l>>2];l=t[p+20>>2];t[l>>2]=t[l>>2]-t[t[p+8>>2]>>2];t[p+28>>2]=0}A=p+32|0;t[o+8>>2]=t[p+28>>2];if(t[o+8>>2]){t[o+44>>2]=t[o+8>>2];break g}p=t[o+40>>2];s[p+8>>1]=q[o+19|0]&1|v[p+8>>1]&65534;p=t[o+40>>2];s[p+8>>1]=s[p+8>>1]&1|v[o+16>>1]<<1;t[o+44>>2]=0;break g}if((t[t[o+40>>2]>>2]&15)==6){z=o,B=M(t[o+36>>2],t[o+32>>2],t[o+20>>2],t[o+40>>2]+12|0,t[o+40>>2]+16|0),t[z+4>>2]=B;if(t[o+4>>2]){t[o+44>>2]=t[o+4>>2];break g}p=t[o+40>>2];q[p+8|0]=q[o+19|0]&1|u[p+8|0]&254;p=t[o+40>>2];q[p+8|0]=q[p+8|0]&1|u[o+18|0]<<1;t[o+44>>2]=0;break g}t[o+44>>2]=1}A=o+48|0;t[y+20>>2]=t[o+44>>2];if(!t[y+20>>2]){t[y+40>>2]=t[y+40>>2]+20;break f}O(t[y+44>>2],t[y+28>>2]);t[y+76>>2]=t[y+20>>2];break a}t[y+16>>2]=0;if(w[y+32>>2]<3){O(t[y+44>>2],t[y+28>>2]);t[y+76>>2]=1;break a}o=t[y+36>>2];p=u[o|0]|u[o+1|0]<<8;q[y+16|0]=p;q[y+17|0]=p>>>8;q[y+18|0]=u[o+2|0];t[y+36>>2]=t[y+36>>2]+3;t[y+32>>2]=t[y+32>>2]-3;if(!(t[y+16>>2]==1|u[y+27|0]!=1)){O(t[y+44>>2],t[y+28>>2]);t[y+76>>2]=7;break a}o=t[y+40>>2];t[o>>2]=t[o>>2]&-268435441|(t[y+16>>2]&16777215)<<4;if(u[y+27|0]==3){if(t[y+16>>2]!=1){O(t[y+44>>2],t[y+28>>2]);t[y+76>>2]=10;break a}q[y+15|0]=0;if(w[y+32>>2]<1){J(t[y+44>>2]);t[y+76>>2]=1;break a}q[y+15|0]=u[t[y+36>>2]];t[y+36>>2]=t[y+36>>2]+1;t[y+32>>2]=t[y+32>>2]-1;k:{if(u[y+15|0]<=4){q[t[y+40>>2]+4|0]=u[y+15|0];break k}q[t[y+40>>2]+4|0]=4}t[y+40>>2]=t[y+40>>2]+20;break f}z=y,B=Q(y+36|0,y+32|0,y+14|0,y+13|0),t[z+8>>2]=B;if(t[y+8>>2]){O(t[y+44>>2],t[y+28>>2]);t[y+76>>2]=t[y+8>>2];break a}if(u[y+27|0]==1){o=t[y+40>>2];q[o+4|0]=q[o+4|0]&1|u[y+13|0]<<1;t[y+40>>2]=t[y+40>>2]+20;break f}if(!u[y+27|0]){z=y,B=M(y+36|0,y+32|0,t[y+16>>2],t[y+40>>2]+8|0,t[y+40>>2]+12|0),t[z+4>>2]=B;if(t[y+4>>2]){O(t[y+44>>2],t[y+28>>2]);t[y+76>>2]=t[y+4>>2];break a}o=t[y+40>>2];q[o+4|0]=q[y+14|0]&1|u[o+4|0]&254;o=t[y+40>>2];q[o+4|0]=q[o+4|0]&1|u[y+13|0]<<1;t[y+40>>2]=t[y+40>>2]+20}}t[y+28>>2]=t[y+28>>2]+1;continue}break}if(t[y+32>>2]){O(t[y+44>>2],t[y+48>>2]);t[y+76>>2]=1;break a}t[t[y+64>>2]>>2]=t[y+44>>2];t[t[y+60>>2]>>2]=t[y+48>>2];t[y+76>>2]=0}A=y+80|0;return t[y+76>>2]}function D(o){var q=0,l=0,r=0,m=0,n=0,s=0,u=0,v,w=0,x,p;w=8;a:{b:{if(o>>>0>4294967239)break b;while(1){w=w>>>0>8?w:8;l=t[603];n=l;m=t[602];u=m;o=o>>>0>8?o+3&-4:8;c:{if(o>>>0<=127){s=(o>>>3|0)-1|0;break c}r=y(o);s=((o>>>29-r^4)-(r<<2)|0)+110|0;if(o>>>0<=4095)break c;r=((o>>>30-r^2)-(r<<1)|0)+71|0;s=r>>>0<63?r:63}q=s;r=q&31;(q&63)>>>0>=32?(q=0,l=l>>>r|0):(q=l>>>r|0,l=((1<>>r);r=q;if(l|q){while(1){n=l;q=r;d:{if(q|l){m=q-1|0;v=m+1|0;u=m;m=l-1|0;u=(m|0)!=-1?v:u;m=y(l^m)+32|0;l=y(q^u);l=(l|0)==32?m:l;q=63-l|0;0-(l>>>0>63)|0;break d}q=64}m=q;q=m;l=q&31;(q&63)>>>0>=32?(q=0,u=r>>>l|0):(q=r>>>l|0,u=((1<>>l);r=q;s=m+s|0;n=s<<4;q=t[n+1384>>2];m=n+1376|0;e:{if((q|0)!=(m|0)){l=I(q,w,o);if(l)break b;l=t[q+4>>2];t[l+8>>2]=t[q+8>>2];t[t[q+8>>2]+4>>2]=l;t[q+8>>2]=m;l=n+1380|0;t[q+4>>2]=t[l>>2];t[l>>2]=q;t[t[q+4>>2]+8>>2]=q;s=s+1|0;l=(r&1)<<31|u>>>1;r=r>>>1|0;break e}x=t[603];q=s;v=q&63;l=v;n=l&31;l>>>0>=32?(l=0,m=-1>>>n|0):(l=-1>>>n|0,m=(1<>>n);m=m&-2;n=v&31;v>>>0>=32?(l=m<>>32-n|l<>>0>=32?(l=-1<>>32-q|-1<>>0>=32?(m=0,q=l>>>q|0):(m=l>>>q|0,q=((1<>>q);l=q|v;B=n|m;t[602]=t[602]&l;t[603]=B&x;l=u^1}if(l|r)continue;break}m=t[602];n=t[603]}f:{if(n|m){r=y(n);r=63-((r|0)==32?y(m)+32|0:r)<<4;q=r+1376|0;r=t[r+1384>>2];g:{if(!n&m>>>0<1073741824)break g;s=98;if((q|0)==(r|0))break g;while(1){l=I(r,w,o);if(l)break b;r=t[r+8>>2];if(!s)break g;s=s-1|0;if((q|0)!=(r|0))continue;break}}if(G(o+48|0))break f;if(!r|(q|0)==(r|0))break a;while(1){l=I(r,w,o);if(l)break b;r=t[r+8>>2];if((q|0)!=(r|0))continue;break}break a}if(!G(o+48|0))break a}l=0;if(o>>>0>4294967239)break b;r=w;q=0;while(1){s=q;if(r){r=r-1&r;q=q+1|0;continue}break}if(s>>>0<=1)continue;break}}return l}return 0}function E(o,p,l,r,m,n,x){o=o|0;p=p|0;l=l|0;r=r|0;m=m|0;n=n|0;x=x|0;var y=0,z=0;y=A-32|0;A=y;s[y+26>>1]=o;t[y+20>>2]=p;t[y+16>>2]=l;q[y+15|0]=r;s[y+12>>1]=m;t[y+8>>2]=n;t[y+4>>2]=x;a:{if(!(!(q[y+15|0]&1)|v[y+12>>1]<=32767)){t[y+28>>2]=4;break a}p=t[y+20>>2];l=t[y+16>>2];r=t[y+8>>2];m=t[y+4>>2];n=q[y+15|0]&1;o=A+-64|0;A=o;t[o+56>>2]=y+26;t[o+52>>2]=p;t[o+48>>2]=l;t[o+44>>2]=r;t[o+40>>2]=m;q[o+39|0]=2;q[o+38|0]=13;t[o+32>>2]=y+12;q[o+31|0]=n;q[o+30|0]=2;b:{c:{if(!(!t[o+52>>2]|(!t[o+44>>2]|!t[o+40>>2]))&&w[o+48>>2]<=16777215)break c;t[o+60>>2]=5;break b}t[o+24>>2]=t[o+48>>2]+(u[o+39|0]+(u[o+30|0]+4|0)|0);z=o,x=D(t[o+24>>2]),t[z+20>>2]=x;if(!t[o+20>>2]){t[o+60>>2]=3;break b}t[o+16>>2]=t[o+20>>2];q[t[o+16>>2]]=u[o+38|0];t[o+16>>2]=t[o+16>>2]+1;ba(t[o+16>>2],t[o+56>>2],u[o+30|0]);t[o+16>>2]=u[o+30|0]+t[o+16>>2];t[o+12>>2]=u[o+39|0]+t[o+48>>2];if(w[o+12>>2]>2]){J(t[o+20>>2]);t[o+60>>2]=9;break b}p=t[o+16>>2];l=u[o+12|0]|u[o+13|0]<<8;q[p|0]=l;q[p+1|0]=l>>>8;q[p+2|0]=u[o+14|0];t[o+16>>2]=t[o+16>>2]+3;if(q[o+31|0]&1)d:{if(u[o+38|0]==6){p=t[o+32>>2];q[p|0]=u[p|0]|128;break d}e:{if(u[o+38|0]==13){p=t[o+32>>2];s[p>>1]=v[p>>1]|32768;break e}J(t[o+20>>2]);t[o+60>>2]=1;break b}}ba(t[o+16>>2],t[o+32>>2],u[o+39|0]);t[o+16>>2]=u[o+39|0]+t[o+16>>2];ba(t[o+16>>2],t[o+52>>2],t[o+48>>2]);t[t[o+44>>2]>>2]=t[o+20>>2];t[t[o+40>>2]>>2]=t[o+24>>2];t[o+60>>2]=0}A=o- -64|0;t[y+28>>2]=t[o+60>>2]}A=y+32|0;return t[y+28>>2]}function F(o,p,l,r,m){o=o|0;p=p|0;l=l|0;r=r|0;m=m|0;var n=0,v=0;n=A-32|0;A=n;s[n+30>>1]=o;t[n+24>>2]=p;t[n+20>>2]=l;t[n+16>>2]=r;t[n+12>>2]=m;p=t[n+24>>2];l=t[n+20>>2];r=t[n+16>>2];m=t[n+12>>2];o=A-48|0;A=o;t[o+40>>2]=n+30;t[o+36>>2]=p;t[o+32>>2]=l;t[o+28>>2]=r;t[o+24>>2]=m;q[o+23|0]=2;q[o+22|0]=15;a:{if(!(t[o+24>>2]?t[o+28>>2]:0)){t[o+44>>2]=5;break a}t[t[o+28>>2]>>2]=0;t[t[o+24>>2]>>2]=0;if(!(w[o+32>>2]<=16777215?t[o+36>>2]:0)){t[o+44>>2]=5;break a}t[o+16>>2]=t[o+32>>2]+(u[o+23|0]+4|0);v=o,r=D(t[o+16>>2]),t[v+12>>2]=r;if(!t[o+12>>2]){t[o+44>>2]=3;break a}t[o+8>>2]=t[o+12>>2];q[t[o+8>>2]]=u[o+22|0];t[o+8>>2]=t[o+8>>2]+1;ba(t[o+8>>2],t[o+40>>2],u[o+23|0]);t[o+8>>2]=u[o+23|0]+t[o+8>>2];p=t[o+8>>2];l=u[o+32|0]|u[o+33|0]<<8;q[p|0]=l;q[p+1|0]=l>>>8;q[p+2|0]=u[o+34|0];t[o+8>>2]=t[o+8>>2]+3;ba(t[o+8>>2],t[o+36>>2],t[o+32>>2]);t[o+8>>2]=t[o+32>>2]+t[o+8>>2];t[t[o+28>>2]>>2]=t[o+12>>2];t[t[o+24>>2]>>2]=t[o+16>>2];t[o+44>>2]=0}A=o+48|0;A=n+32|0;return t[o+44>>2]}function G(o){var p=0,l,r=0,m=0,n,s=0;r=t[343];l=o+3&-4;p=r+l|0;a:{b:{if(p>>>0<=r>>>0?l:0)break b;if(p>>>0>wa()<<16>>>0&&!(z(p|0)|0))break b;t[343]=p;break a}t[604]=48;r=-1}if((r|0)!=-1){l=o+r|0;p=l-16|0;t[p+12>>2]=16;t[p>>2]=16;o=t[600];o?s=t[o+8>>2]:s=0;c:{d:{if((s|0)==(r|0)){m=r-(t[r-4>>2]&-2)|0;n=t[m-4>>2];t[o+8>>2]=l;o=m-(n&-2)|0;l=-16;if(!(q[(o+t[o>>2]|0)-4|0]&1))break d;l=t[o+4>>2];t[l+8>>2]=t[o+8>>2];t[t[o+8>>2]+4>>2]=l;p=p-o|0;t[o>>2]=p;break c}t[r+12>>2]=16;t[r>>2]=16;t[r+8>>2]=l;t[r+4>>2]=o;t[600]=r;l=16}o=r+l|0;p=p-o|0;t[o>>2]=p}t[((p&-4)+o|0)-4>>2]=p|1;s=o;m=t[o>>2]-8|0;e:{if(m>>>0<=127){p=(m>>>3|0)-1|0;break e}n=y(m);p=((m>>>29-n^4)-(n<<2)|0)+110|0;if(m>>>0<=4095)break e;p=((m>>>30-n^2)-(n<<1)|0)+71|0;p=p>>>0<63?p:63}l=p<<4;t[s+4>>2]=l+1376;l=l+1384|0;t[o+8>>2]=t[l>>2];t[l>>2]=o;t[t[o+8>>2]+4>>2]=o;l=t[603];o=p&31;(p&63)>>>0>=32?(p=1<>>32-o,o=1<>1]=o;s[m+8>>1]=p;t[m+4>>2]=l;t[m>>2]=r;a:{if(v[m+8>>1]>32767){t[m+12>>2]=4;break a}p=t[m+4>>2];l=t[m>>2];o=A-48|0;A=o;t[o+40>>2]=m+10;t[o+36>>2]=p;t[o+32>>2]=l;q[o+31|0]=2;q[o+30|0]=12;t[o+24>>2]=m+8;q[o+23|0]=2;b:{if(!(t[o+32>>2]?t[o+36>>2]:0)){t[o+44>>2]=5;break b}t[o+16>>2]=u[o+31|0]+(u[o+23|0]+4|0);n=o,r=D(t[o+16>>2]),t[n+12>>2]=r;if(!t[o+12>>2]){t[o+44>>2]=3;break b}t[o+8>>2]=t[o+12>>2];q[t[o+8>>2]]=u[o+30|0];t[o+8>>2]=t[o+8>>2]+1;ba(t[o+8>>2],t[o+40>>2],u[o+23|0]);t[o+8>>2]=u[o+23|0]+t[o+8>>2];t[o+4>>2]=u[o+31|0];p=t[o+8>>2];l=u[o+4|0]|u[o+5|0]<<8;q[p|0]=l;q[p+1|0]=l>>>8;q[p+2|0]=u[o+6|0];t[o+8>>2]=t[o+8>>2]+3;ba(t[o+8>>2],t[o+24>>2],u[o+31|0]);t[t[o+32>>2]>>2]=t[o+16>>2];t[t[o+36>>2]>>2]=t[o+12>>2];t[o+44>>2]=0}A=o+48|0;t[m+12>>2]=t[o+44>>2]}A=m+16|0;return t[m+12>>2]}function H(o,p,l){o=o|0;p=p|0;l=l|0;var q=0,m=0,n=0,r=0,s=0;n=A+-64|0;A=n;m=1;a:{if(R(o,p,0))break a;m=0;if(!p)break a;q=A+-64|0;A=q;m=t[p>>2];r=t[m-4>>2];s=t[m-8>>2];t[q+20>>2]=0;t[q+16>>2]=1084;t[q+12>>2]=p;t[q+8>>2]=1132;m=0;ca(q+24|0,39);p=p+s|0;b:{if(R(r,1132,0)){t[q+56>>2]=1;ka[t[t[r>>2]+20>>2]](r,q+8|0,p,p,1,0);m=t[q+32>>2]==1?p:0;break b}ka[t[t[r>>2]+24>>2]](r,q+8|0,p,1,0);c:switch(t[q+44>>2]){case 0:m=t[q+48>>2]==1?t[q+36>>2]==1?t[q+40>>2]==1?t[q+28>>2]:0:0:0;break b;case 1:break c;default:break b}if(t[q+48>>2]|t[q+36>>2]!=1|t[q+40>>2]!=1?t[q+32>>2]!=1:0)break b;m=t[q+24>>2]}A=q- -64|0;p=m;m=0;if(!p)break a;ca(n+8|4,52);t[n+56>>2]=1;t[n+20>>2]=-1;t[n+16>>2]=o;t[n+8>>2]=p;ka[t[t[p>>2]+28>>2]](p,n+8|0,t[l>>2],1);o=t[n+32>>2];(o|0)==1&&(t[l>>2]=t[n+24>>2]);m=(o|0)==1}o=m;A=n- -64|0;return o|0}function I(o,p,l){var q=0,m,n=0,r=0;q=o+4|0;m=(q+p|0)-1&0-p;p=t[o>>2];if(m+l>>>0<=(p+o|0)-4>>>0){n=t[o+4>>2];t[n+8>>2]=t[o+8>>2];t[t[o+8>>2]+4>>2]=n;(q|0)!=(m|0)&&(m=m-q|0,n=o-(t[o-4>>2]&-2)|0,q=m+t[n>>2]|0,t[n>>2]=q,t[(n+(q&-4)|0)-4>>2]=q,o=o+m|0,p=p-m|0,t[o>>2]=p);a:{if(l+24>>>0<=p>>>0){q=(o+l|0)+8|0;p=(p-l|0)-8|0;t[q>>2]=p;t[(q+(p&-4)|0)-4>>2]=p|1;r=q;n=t[q>>2]-8|0;b:{if(n>>>0<=127){m=(n>>>3|0)-1|0;break b}p=y(n);m=((n>>>29-p^4)-(p<<2)|0)+110|0;if(n>>>0<=4095)break b;p=((n>>>30-p^2)-(p<<1)|0)+71|0;m=p>>>0<63?p:63}p=m;m=p<<4;t[r+4>>2]=m+1376;m=m+1384|0;t[q+8>>2]=t[m>>2];t[m>>2]=q;t[t[q+8>>2]+4>>2]=q;m=t[603];q=p&31;(p&63)>>>0>=32?(p=1<>>32-q,r=1<>2]=p;t[((p&-4)+o|0)-4>>2]=p;break a}t[(o+p|0)-4>>2]=p}o=o+4|0}else o=0;return o}function J(o){var p=0,l,q=0,m,n=0;if(o){l=o-4|0;m=t[l>>2];q=m;p=l;n=t[o-8>>2];o=n&-2;(o|0)!=(n|0)&&(p=l-o|0,q=t[p+4>>2],t[q+8>>2]=t[p+8>>2],t[t[p+8>>2]+4>>2]=q,q=o+m|0);o=l+m|0;l=t[o>>2];(l|0)!=t[(o+l|0)-4>>2]&&(m=t[o+4>>2],t[m+8>>2]=t[o+8>>2],t[t[o+8>>2]+4>>2]=m,q=q+l|0);t[p>>2]=q;t[((q&-4)+p|0)-4>>2]=q|1;n=p;q=t[p>>2]-8|0;a:{if(q>>>0<=127){o=(q>>>3|0)-1|0;break a}m=y(q);o=((q>>>29-m^4)-(m<<2)|0)+110|0;if(q>>>0<=4095)break a;o=((q>>>30-m^2)-(m<<1)|0)+71|0;o=o>>>0<63?o:63}l=o<<4;t[n+4>>2]=l+1376;l=l+1384|0;t[p+8>>2]=t[l>>2];t[l>>2]=p;t[t[p+8>>2]+4>>2]=p;l=t[603];p=o&31;(o&63)>>>0>=32?(o=1<>>32-p,p=1<>2]=n;t[p+36>>2]=o;t[p+32>>2]=l;a:{if(!(t[p+32>>2]?t[p+36>>2]:0)){t[p+44>>2]=5;break a}if(w[p+40>>2]>4){t[p+44>>2]=8;break a}t[p+28>>2]=5;m=p,l=D(t[p+28>>2]),t[m+24>>2]=l;if(!t[p+24>>2]){t[p+44>>2]=3;break a}t[p+20>>2]=t[p+24>>2];q[p+19|0]=3;q[t[p+20>>2]]=u[p+19|0];t[p+20>>2]=t[p+20>>2]+1;t[p+12>>2]=1;n=t[p+20>>2];o=u[p+12|0]|u[p+13|0]<<8;q[n|0]=o;q[n+1|0]=o>>>8;q[n+2|0]=u[p+14|0];t[p+20>>2]=t[p+20>>2]+3;q[p+11|0]=t[p+40>>2];q[t[p+20>>2]]=u[p+11|0];t[t[p+36>>2]>>2]=t[p+24>>2];t[t[p+32>>2]>>2]=t[p+28>>2];t[p+44>>2]=0}A=p+48|0;return t[p+44>>2]}function L(n,o,l,p,m){n=n|0;o=o|0;l=l|0;p=p|0;m=m|0;if(R(n,t[o+8>>2],m)){da(o,l,p);return}a:{if(R(n,t[o>>2],m)){if(!(t[o+20>>2]!=(l|0)?t[o+16>>2]!=(l|0):0)){if((p|0)!=1)break a;t[o+32>>2]=1;return}t[o+32>>2]=p;b:{if(t[o+44>>2]==4)break b;s[o+52>>1]=0;n=t[n+8>>2];ka[t[t[n>>2]+20>>2]](n,o,l,l,1,m);if(u[o+53|0]){t[o+44>>2]=3;if(!u[o+52|0])break b;break a}t[o+44>>2]=4}t[o+20>>2]=l;t[o+40>>2]=t[o+40>>2]+1;if(t[o+36>>2]!=1|t[o+24>>2]!=2)break a;q[o+54|0]=1;return}n=t[n+8>>2];ka[t[t[n>>2]+24>>2]](n,o,l,p,m)}}function M(o,p,l,q,m){var n=0;n=A-32|0;A=n;t[n+24>>2]=o;t[n+20>>2]=p;t[n+16>>2]=l;t[n+12>>2]=q;t[n+8>>2]=m;a:{if(w[n+16>>2]<1){t[n+28>>2]=9;break a}t[t[n+8>>2]>>2]=t[n+16>>2]-1;if(w[t[n+20>>2]>>2]>2]>>2]){t[n+28>>2]=1;break a}o=D(t[t[n+8>>2]>>2]);t[t[n+12>>2]>>2]=o;if(!t[t[n+12>>2]>>2]){t[n+28>>2]=3;break a}ba(t[t[n+12>>2]>>2],t[t[n+24>>2]>>2],t[t[n+8>>2]>>2]);o=t[n+24>>2];t[o>>2]=t[t[n+8>>2]>>2]+t[o>>2];o=t[n+20>>2];t[o>>2]=t[o>>2]-t[t[n+8>>2]>>2];t[n+28>>2]=0}A=n+32|0;return t[n+28>>2]}function N(n,o,l){n=n|0;o=o|0;l=l|0;var p=0,m=0;p=A-32|0;A=p;s[p+26>>1]=n;t[p+20>>2]=o;t[p+16>>2]=l;t[t[p+16>>2]>>2]=3;m=p,l=D(t[t[p+16>>2]>>2]),t[m+12>>2]=l;a:{if(!t[p+12>>2]){t[p+28>>2]=3;break a}t[t[p+20>>2]>>2]=t[p+12>>2];q[p+11|0]=14;q[t[p+12>>2]]=u[p+11|0];t[p+12>>2]=t[p+12>>2]+1;n=t[p+12>>2];o=u[p+26|0]|u[p+27|0]<<8;q[n|0]=o;q[n+1|0]=o>>>8;t[p+28>>2]=0}A=p+32|0;return t[p+28>>2]}function O(m,n){var l=0;l=A-16|0;A=l;t[l+12>>2]=m;t[l+8>>2]=n;t[l+4>>2]=0;while(1){if(w[l+4>>2]>2]){t[l>>2]=t[l+12>>2]+x(t[l+4>>2],20);a:{if(!(t[t[l>>2]>>2]&15)){J(t[t[l>>2]+8>>2]);break a}b:{if((t[t[l>>2]>>2]&15)==5){J(t[t[l>>2]+8>>2]);break b}(t[t[l>>2]>>2]&15)==6&&J(t[t[l>>2]+12>>2])}}t[l+4>>2]=t[l+4>>2]+1;continue}break}J(t[l+12>>2]);A=l+16|0}function P(m,n,l,o){q[m+53|0]=1;a:{if(t[m+4>>2]!=(l|0))break a;q[m+52|0]=1;l=t[m+16>>2];if(!l){t[m+36>>2]=1;t[m+24>>2]=o;t[m+16>>2]=n;if((o|0)!=1|t[m+48>>2]!=1)break a;q[m+54|0]=1;return}if((n|0)==(l|0)){l=t[m+24>>2];(l|0)==2&&(t[m+24>>2]=o,l=o);if(t[m+48>>2]!=1|(l|0)!=1)break a;q[m+54|0]=1;return}q[m+54|0]=1;t[m+36>>2]=t[m+36>>2]+1}}function Q(n,o,l,p){var m;m=A-32|0;t[m+24>>2]=n;t[m+20>>2]=o;t[m+16>>2]=l;t[m+12>>2]=p;q[m+11|0]=0;a:{if(w[t[m+20>>2]>>2]<1){t[m+28>>2]=1;break a}q[m+11|0]=u[t[t[m+24>>2]>>2]];n=t[m+24>>2];t[n>>2]=t[n>>2]+1;n=t[m+20>>2];t[n>>2]=t[n>>2]-1;q[t[m+16>>2]]=(u[m+11|0]&128)==128;q[t[m+12>>2]]=u[m+11|0]&127;t[m+28>>2]=0}return t[m+28>>2]}function ma(n,o,l,p,m){n=n|0;o=o|0;l=l|0;p=p|0;m=m|0;if(R(n,t[o+8>>2],m)){da(o,l,p);return}a:{if(!R(n,t[o>>2],m))break a;if(!(t[o+20>>2]!=(l|0)?t[o+16>>2]!=(l|0):0)){if((p|0)!=1)break a;t[o+32>>2]=1;return}t[o+20>>2]=l;t[o+32>>2]=p;t[o+40>>2]=t[o+40>>2]+1;t[o+36>>2]!=1|t[o+24>>2]!=2||(q[o+54|0]=1);t[o+44>>2]=4}}function R(m,n,l){var o;if(!l)return t[m+4>>2]==t[n+4>>2];if((m|0)==(n|0))return 1;l=t[m+4>>2];m=u[l|0];n=t[n+4>>2];o=u[n|0];a:{if(!m|(o|0)!=(m|0))break a;while(1){o=u[n+1|0];m=u[l+1|0];if(!m)break a;n=n+1|0;l=l+1|0;if((m|0)==(o|0))continue;break}}return(m|0)==(o|0)}function na(m,n){m=m|0;n=n|0;var l=0,o=0;l=A-32|0;A=l;t[l+24>>2]=m;t[l+20>>2]=n;o=l,m=D(1),t[o+16>>2]=m;a:{if(!t[l+16>>2]){t[l+28>>2]=3;break a}q[l+15|0]=9;q[t[l+16>>2]]=u[l+15|0];t[t[l+24>>2]>>2]=t[l+16>>2];t[t[l+20>>2]>>2]=1;t[l+28>>2]=0}A=l+32|0;return t[l+28>>2]}function S(m,n){m=m|0;n=n|0;var l=0,o=0;l=A-32|0;A=l;t[l+24>>2]=m;t[l+20>>2]=n;o=l,m=D(1),t[o+16>>2]=m;a:{if(!t[l+16>>2]){t[l+28>>2]=3;break a}q[l+15|0]=10;q[t[l+16>>2]]=u[l+15|0];t[t[l+24>>2]>>2]=t[l+16>>2];t[t[l+20>>2]>>2]=1;t[l+28>>2]=0}A=l+32|0;return t[l+28>>2]}function T(m,n){m=m|0;n=n|0;var l=0,o=0;l=A-32|0;A=l;t[l+24>>2]=m;t[l+20>>2]=n;o=l,m=D(1),t[o+16>>2]=m;a:{if(!t[l+16>>2]){t[l+28>>2]=3;break a}q[l+15|0]=2;q[t[l+16>>2]]=u[l+15|0];t[t[l+24>>2]>>2]=t[l+16>>2];t[t[l+20>>2]>>2]=1;t[l+28>>2]=0}A=l+32|0;return t[l+28>>2]}function U(m,n){m=m|0;n=n|0;var l=0,o=0;l=A-32|0;A=l;t[l+24>>2]=m;t[l+20>>2]=n;o=l,m=D(1),t[o+16>>2]=m;a:{if(!t[l+16>>2]){t[l+28>>2]=3;break a}q[l+15|0]=4;q[t[l+16>>2]]=u[l+15|0];t[t[l+24>>2]>>2]=t[l+16>>2];t[t[l+20>>2]>>2]=1;t[l+28>>2]=0}A=l+32|0;return t[l+28>>2]}function V(l){var m=0;m=A-16|0;A=m;t[m+12>>2]=l;l=1;a:{if(X(t[m+12>>2])&1)break a;l=1;if(t[m+12>>2]==15)break a;l=1;if(t[m+12>>2]==13)break a;l=1;if(t[m+12>>2]==12)break a;l=t[m+12>>2]==14}A=m+16|0;return l}function W(m,n,l){var o;o=t[m+16>>2];if(!o){t[m+36>>2]=1;t[m+24>>2]=l;t[m+16>>2]=n;return}a:{if((n|0)==(o|0)){if(t[m+24>>2]!=2)break a;t[m+24>>2]=l;return}q[m+54|0]=1;t[m+24>>2]=2;t[m+36>>2]=t[m+36>>2]+1}}function X(l){var m;m=A-16|0;t[m+12>>2]=l;l=1;a:{if(t[m+12>>2]==5)break a;l=1;if(t[m+12>>2]==6)break a;l=1;if(t[m+12>>2]==7)break a;l=t[m+12>>2]==8}return l}function Y(o,p,l,q,m,n){o=o|0;p=p|0;l=l|0;q=q|0;m=m|0;n=n|0;if(R(o,t[p+8>>2],n)){P(p,l,q,m);return}o=t[o+8>>2];ka[t[t[o>>2]+20>>2]](o,p,l,q,m,n)}function Z(){var m=0,n,l;while(1){n=m<<4;l=n+1376|0;t[n+1380>>2]=l;t[n+1384>>2]=l;m=m+1|0;if((m|0)!=64)continue;break}G(48)}function $(m,n,l,o){m=m|0;n=n|0;l=l|0;o=o|0;if(R(m,t[n+8>>2],0)){W(n,l,o);return}m=t[m+8>>2];ka[t[t[m>>2]+28>>2]](m,n,l,o)}function aa(o,p,l,q,m,n){o=o|0,p=p|0,l=l|0,q=q|0,m=m|0,n=n|0,R(o,t[p+8>>2],n)&&P(p,l,q,m)}function ba(m,n,l){if(l)while(1){q[m|0]=u[n|0];m=m+1|0;n=n+1|0;l=l-1|0;if(l)continue;break}}function ca(l,m){if(m)while(1){q[l|0]=0;l=l+1|0;m=m-1|0;if(m)continue;break}}function oa(m,n,l,o){m=m|0,n=n|0,l=l|0,o=o|0,R(m,t[n+8>>2],0)&&W(n,l,o)}function da(m,n,l){t[m+28>>2]==1|t[m+4>>2]!=(n|0)||(t[m+28>>2]=l)}function pa(l,m){l=l|0;m=m|0;return x(m,20)+l|0}function ea(l){l=l|0;return v[l+8>>1]>>>1|0}function qa(l){l=l|0;return s[l+8>>1]&1}function fa(l){l=l|0;return t[l+12>>2]}function ra(l){l=l|0;return t[l>>2]&15}function sa(l){l=l|0;return t[l+16>>2]}function ga(l){l=l|0;return v[l+4>>1]}function ha(l){l=l|0;return t[l+8>>2]}function ia(l){l=l|0;return u[l+4|0]}function ja(l){l=l|0;return l|0}function ta(l){return D(l)}function ua(l){l=l|0,J(l)}function va(l){l|0}n=u;r(l);var ka=m([null,ja,ua,va,va,H,aa,ma,oa,ua,Y,L,$]);function wa(){return p.byteLength/65536|0}function xa(l){l=l|0;var m=wa()|0;l=m+l|0;if(m0&&(l+=m-l%m);return l}var H,I;function J(l){H=l,m.HEAP8=new Int8Array(l),m.HEAP16=new Int16Array(l),m.HEAP32=new Int32Array(l),m.HEAPU8=I=new Uint8Array(l),m.HEAPU16=new Uint16Array(l),m.HEAPU32=new Uint32Array(l),m.HEAPF32=new Float32Array(l),m.HEAPF64=new Float64Array(l)}u=m.INITIAL_MEMORY||2097152;m.wasmMemory?E=m.wasmMemory:E=new D.Memory({initial:u/65536,maximum:2147483648/65536});E&&(H=E.buffer);H.byteLength;J(H);var K,L=[],M=[],N=[];function O(){if(m.preRun){typeof m.preRun=="function"&&(m.preRun=[m.preRun]);while(m.preRun.length)ma(m.preRun.shift())}da(L)}function P(){da(M)}function Q(){if(m.postRun){typeof m.postRun=="function"&&(m.postRun=[m.postRun]);while(m.postRun.length)na(m.postRun.shift())}da(N)}function ma(l){L.unshift(l)}function R(l){M.unshift(l)}function na(l){N.unshift(l)}(!Math.imul||Math.imul(4294967295,5)!==-5)&&(Math.imul=function(l,m){var n=l>>>16;l=l&65535;var o=m>>>16;m=m&65535;return l*m+(n*m+l*o<<16)|0});if(!Math.fround){var S=new Float32Array(1);Math.fround=function(l){S[0]=l;return S[0]}}Math.clz32||(Math.clz32=function(l){var m=32,n=l>>16;n&&(m-=16,l=n);n=l>>8;n&&(m-=8,l=n);n=l>>4;n&&(m-=4,l=n);n=l>>2;n&&(m-=2,l=n);n=l>>1;return n?m-2:m-l});Math.trunc||(Math.trunc=function(l){return l<0?Math.ceil(l):Math.floor(l)});var T=0,U=null,V=null;function W(l){T++,m.monitorRunDependencies&&m.monitorRunDependencies(T)}function X(l){T--;m.monitorRunDependencies&&m.monitorRunDependencies(T);if(T==0){U!==null&&(clearInterval(U),U=null);if(V){l=V;V=null;l()}}}m.preloadedImages={};m.preloadedAudios={};function Y(l){m.onAbort&&m.onAbort(l);l+="";B(l);F=!0;l="abort("+l+"). Build with -s ASSERTIONS=1 for more info.";l=new D.RuntimeError(l);s(l);throw l}var Z="data:application/octet-stream;base64,";function $(l){return l.startsWith(Z)}var aa="dgwcppbridge.wasm";$(aa)||(aa=z(aa));function ba(l){try{if(l==aa&&C)return new Uint8Array(C);var m=ga(l);if(m)return m;if(A)return A(l);else throw"both async and sync fetching of the wasm failed"}catch(l){Y(l)}}function ca(){return!C&&(w||x)&&typeof fetch==="function"?fetch(aa,{credentials:"same-origin"}).then(function(l){if(!l.ok)throw"failed to load wasm binary file at '"+aa+"'";return l.arrayBuffer()})["catch"](function(){return ba(aa)}):n.resolve().then(function(){return ba(aa)})}function oa(){var n={a:ha};function o(n,l){l=n.exports;m.asm=l;K=m.asm.A;R(m.asm.c);X("wasm-instantiate")}W("wasm-instantiate");function r(l){o(l.instance)}function t(l){return ca().then(function(l){l=D.instantiate(l,n);return l}).then(l,function(l){B("failed to asynchronously prepare wasm: "+l),Y(l)})}function u(){if(!C&&typeof D.instantiateStreaming==="function"&&!$(aa)&&typeof fetch==="function")return fetch(aa,{credentials:"same-origin"}).then(function(l){l=D.instantiateStreaming(l,n);return l.then(r,function(l){B("wasm streaming compile failed: "+l);B("falling back to ArrayBuffer instantiation");return t(r)})});else return t(r)}if(m.instantiateWasm)try{var l=m.instantiateWasm(n,o);return l}catch(l){B("Module.instantiateWasm callback failed with error: "+l);return!1}u()["catch"](s);return{}}function da(l){while(l.length>0){var n=l.shift();if(typeof n=="function"){n(m);continue}var o=n.func;typeof o==="number"?n.arg===void 0?K.get(o)():K.get(o)(n.arg):o(n.arg===void 0?null:n.arg)}}function pa(l){try{E.grow(l-H.byteLength+65535>>>16);J(E.buffer);return 1}catch(l){}}function ea(l){var m=I.length;l=l>>>0;var n=2147483648;if(l>n)return!1;for(var o=1;o<=4;o*=2){var p=m*(1+.2/o);p=Math.min(p,l+100663296);p=Math.min(n,la(Math.max(l,p),65536));p=pa(p);if(p)return!0}return!1}var qa=!1;function fa(l){var m=[];for(var n=0;n255&&(qa&&G(!1,"Character code "+o+" ("+String.fromCharCode(o)+") at offset "+n+" not in 0x00-0xFF."),o&=255);m.push(String.fromCharCode(o))}return m.join("")}var ra=typeof atob==="function"?atob:function(l){var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="",o,p,q,r,s,t=0;l=l.replace(/[^A-Za-z0-9\+\/\=]/g,"");do p=m.indexOf(l.charAt(t++)),q=m.indexOf(l.charAt(t++)),r=m.indexOf(l.charAt(t++)),s=m.indexOf(l.charAt(t++)),p=p<<2|q>>4,q=(q&15)<<4|r>>2,o=(r&3)<<6|s,n=n+String.fromCharCode(p),r!==64&&(n=n+String.fromCharCode(q)),s!==64&&(n=n+String.fromCharCode(o));while(t0)return;O();if(T>0)return;function n(){if(ia)return;ia=!0;m.calledRun=!0;if(F)return;P();o(m);m.onRuntimeInitialized&&m.onRuntimeInitialized();Q()}m.setStatus?(m.setStatus("Running..."),setTimeout(function(){setTimeout(function(){m.setStatus("")},1),n()},1)):n()}m.run=ja;if(m.preInit){typeof m.preInit=="function"&&(m.preInit=[m.preInit]);while(m.preInit.length>0)m.preInit.pop()()}ja();return m.ready}}();typeof q==="object"&&typeof p==="object"?p.exports=r:typeof define==="function"&&define.amd?define([],function(){return r}):typeof q==="object"&&(q.Module=r)}),null); __d("DGWUtils",["Base64","DGWConstants","DGWCppBridge","DGWLoggingContext","Random","URI","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h=4;function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=d("Random").random()*16|0;a=a=="x"?b:b&3|8;return a.toString(16)})}function i(a){var b=new TextDecoder();b=b.decode(a);a=c("Base64").encode(b);b=a.replace(/\+/gi,"-").replace(/\//gi,"_").replace(/=/gi,"");return b}var j=null;e=function(){function a(){}a.initialize=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:if(!(j!=null)){a.next=2;break}return a.abrupt("return");case 2:a.next=4;return b("regeneratorRuntime").awrap(c("DGWCppBridge")());case 4:j=a.sent;case 5:case"end":return a.stop()}},null,this)};a.constructConnectUrl=function(a){var b,e=a.appId,f=a.appVersion,g=a.authType,h=a.dgwVersion,j=a.fbId,k=a.tier,l=a.loggingId,m=a.headers,n=a.endpoint,o=a.serviceId,p=a.regionHint;a=a.establishStreamFrame;var q=(b={},b[d("DGWConstants").HEADER_CONSTANTS.HEADER_APPID]=e,b[d("DGWConstants").HEADER_CONSTANTS.HEADER_APPVERSION]=f,b[d("DGWConstants").HEADER_CONSTANTS.HEADER_AUTHTYPE]=g,b[d("DGWConstants").HEADER_CONSTANTS.HEADER_DGW_VERSION]=""+h,b[d("DGWConstants").HEADER_CONSTANTS.HEADER_UUID]=j,b[d("DGWConstants").HEADER_CONSTANTS.HEADER_TARGET_TIER]=k,b);a!==void 0&&(q[d("DGWConstants").HEADER_CONSTANTS.HEADER_ESTABLISH_STREAM_FRAME_BASE64]=i(a));l!==void 0&&(q[d("DGWConstants").HEADER_CONSTANTS.HEADER_LOGGING_ID]=l);p!==void 0&&(q[d("DGWConstants").HEADER_CONSTANTS.HEADER_REGIONHINT]=p);Object.keys(m).forEach(function(a){var b=d("DGWConstants").HEADER_CONSTANTS.APPHEADER_PREFIX+a;Object.prototype.hasOwnProperty.call(q,b)||(q[b]=m[a])});e=new(c("URI"))(n);e.setQueryData(q);e.setPath(e.getPath()+"/"+o);e.toString().length>2e3&&(delete q[d("DGWConstants").HEADER_CONSTANTS.HEADER_ESTABLISH_STREAM_FRAME_BASE64],e.setQueryData(q));return e.toString()};return a}();f=function(){function a(a,b,c){this.$1=null,this.$2=a,this.$3=b,this.$4=c}a.initialize=function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:if(!(j!=null)){a.next=2;break}return a.abrupt("return");case 2:a.next=4;return b("regeneratorRuntime").awrap(c("DGWCppBridge")());case 4:j=a.sent;case 5:case"end":return a.stop()}},null,this)};var e=a.prototype;e.malloc=function(a){try{a=j.__malloc(a);if(a===0){var b;(b=this.$2)==null?void 0:b.logError(d("DGWLoggingContext").DGWLoggingComponent.CODEC_COMPONENT,"wasm malloc failure","malloc returned 0");return-1}return a}catch(a){(b=this.$2)==null?void 0:b.logError(d("DGWLoggingContext").DGWLoggingComponent.CODEC_COMPONENT,"wasm malloc failure","exception during malloc",a.toString());return-1}};e.free=function(a){j.__free(a)};e.append=function(a){if(this.$1==null){this.$1=a;return}var b=this.$1.length,c=new Uint8Array(b+a.length);c.set(this.$1,0);c.set(a,b);this.$1=c};e.processData=function(){var a=this;if(this.$1==null)return;var b=this.$1.length,c=this.malloc(b);if(c===-1)return;var e=j.HEAPU8.subarray(c,c+b);if(this.$1)for(var f=0;fi){this.$1=new Uint8Array(((b=this.$1)==null?void 0:b.subarray(i))||[])}else this.$1=null;k=j.HEAPU32.subarray(g/h,g/h+1)[0];c=j.HEAPU32.subarray(e/h,e/h+1)[0];var l=[];for(b=0;b0&&(this.$2=setTimeout(function(){a.$6()},this.$1))};b.cancel=function(){this.$2&&(clearTimeout(this.$2),this.$2=null)};return a}();f.DGWPinger=a}),66); __d("DGWStreamGroupCallbacks",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum")({TRANSPORT_SERVER_INTERNAL_ERROR:0,TRANSPORT_ABNORMAL_CLOSURE:1,TRANSPORT_GOING_AWAY:2,TRANSPORT_UNKNOWN_ERROR:3,TRANSPORT_KEEPALIVE_TIMEOUT:4,TRANSPORT_UNAUTHORIZED:5,TRANSPORT_REJECTED:6,TRANSPORT_BAD_REQUEST:7,TRANSPORT_DGW_SERVER_ERROR:8});c=function(){function a(){}var b=a.prototype;b.onStreamGroupError=function(){};b.onStreamGroupMustDrain=function(){};b.onStreamGroupTransportClose=function(){};return a}();f.DGWStreamGroupError=a;f.NoOpDGWStreamGroupCallbacks=c}),66); __d("DGWTransportEvents",["DGWLoggingContext"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.$3=a}var b=a.prototype;b.transportEstablished=function(){this.$3.logEvent(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"open"),this.$2=Date.now()};b.transportEstablishmentPending=function(){this.$1=Date.now(),this.$3.logEvent(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"transportPending",null,!0)};b.transportClosed=function(a,b){this.$4=Date.now(),a?(this.$3.bumpODSKey(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"transport_close_graceful"),this.$3.logEvent(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Transport closed gracefully",null,!0)):(this.$3.bumpODSKey(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"transport_close_with_error"),this.$3.logError(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Transport closed abnormally",b))};b.transportEstablishmentFailure=function(a){this.$3.logError(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"WebSocket transport establishment failure","WebSocket close code: "+a)};b.streamEstablishmentTimeout=function(a,b){this.$3.logError(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Grouped Stream establishment timeout",a,"streamId:"+b)};b.streamEstablishmentPending=function(a){this.$3.logEvent(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Grouped Stream establishment pending","streamId:"+a,!0)};b.streamEstablishmentSuccess=function(a){this.$3.logEvent(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Grouped Stream establishment success","streamId:"+a,!0)};b.transportError=function(a,b,c){this.$3.logError(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,a,b,c)};b.receivedFrameForInactiveStream=function(a,b,c){this.$3.logWarn(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Frame received for inactive stream","frameType: "+a+", streamID: "+b,c)};b.ranOutOfStreamIds=function(a){this.$3.logWarn(d("DGWLoggingContext").DGWLoggingComponent.WEBSOCKET_TRANSPORT_COMPONENT,"Hit max StreamId limit","Hit max StreamId limit",a)};return a}();g.DGWTransportEvents=a}),98); __d("DGWWebSocketTransport",[],(function(a,b,c,d,e,f){"use strict";function a(a){a=new WebSocket(a);a.binaryType="arraybuffer";a.onopen=function(){};a.onclose=function(){};a.onerror=function(){};return a}f.getWebSocketConnection=a}),66); __d("DGWAckManager",["DGWLoggingContext","Promise","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h=function(){var b=a.prototype;b.stopTracking=function(a){clearTimeout(this.$1),this.$3(a)};function a(a,b,c){var d=this;this.$3=c;this.sendId=a;this.$2=b;this.handleAckReceived=function(){d.stopTracking(!0)};this.$1=setTimeout(function(){d.stopTracking(!1)},b)}return a}();a=function(){function a(a){this.$1=new Map(),this.$2=a}var c=a.prototype;c.waitForAck=function(a,c){var e,f;return b("regeneratorRuntime").async(function(g){while(1)switch(g.prev=g.next){case 0:e=this.$1;g.prev=1;g.next=4;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(b,d){e.set(a,new h(a,c,b))}));case 4:f=g.sent;f===!0?this.$2.logEvent(d("DGWLoggingContext").DGWLoggingComponent.ACK_MANAGER_COMPONENT,"Received ACK","sendId: "+a,!0):this.$2.logWarn(d("DGWLoggingContext").DGWLoggingComponent.ACK_MANAGER_COMPONENT,"ACK timeout","Request "+a+" timed out after "+c+"ms");e["delete"](a);return g.abrupt("return",f);case 10:g.prev=10;g.t0=g["catch"](1);e["delete"](a);throw g.t0;case 14:case"end":return g.stop()}},null,this,[[1,10]])};c.handleAckReceived=function(a){var b=this.$1.get(a);if(b===void 0){this.$2.logWarn(d("DGWLoggingContext").DGWLoggingComponent.ACK_MANAGER_COMPONENT,"untracked ACK","Received ACK for ackId "+a+" which was not being tracked");return}b.handleAckReceived()};c.clearPendingAcks=function(){var a=this;this.$2.logEvent(d("DGWLoggingContext").DGWLoggingComponent.ACK_MANAGER_COMPONENT,"Clearing pending acks","ACKs cleared size: "+this.$1.size);this.$1.forEach(function(b,c,e){a.$2.logEvent(d("DGWLoggingContext").DGWLoggingComponent.ACK_MANAGER_COMPONENT,"Clearing pending ACK with ackId "+b.sendId,null,!0),b.stopTracking(!1),e["delete"](c)})};return a}();g.DGWAckManager=a}),98); __d("DGWStreamEvents",[],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,c){this.$4=new Map(),this.$5=new Map(),this.$6=a,this.$1=b,c!=null&&(this.$8="streamId:"+c+"::")}var b=a.prototype;b.streamEstablished=function(){this.$6.logEvent(this.$1,"open",this.$8,!0),this.$6.bumpODSKey(this.$1,"stream_establishment_success")};b.streamEstablishmentPending=function(){this.$2=Date.now(),this.$6.logEvent(this.$1,"streamPending",this.$8,!0),this.$6.bumpODSKey(this.$1,"stream_establishment_pending")};b.dataSent=function(a,b,c){var d=c?"sendWithAckRequested":"sendWithoutAckRequested";this.$6.logEvent(this.$1,d,((d=this.$8)!=null?d:"")+"sendId:"+a+", payloadSize:"+b,!0);this.$4.set(a,{ackRequested:c,payloadSize:b,sendTimestamp:Date.now()})};b.ackReceived=function(a){var b;this.$6.logEvent(this.$1,"AckReceived",((b=this.$8)!=null?b:"")+"sendId:"+a+"}",!0);this.$6.bumpODSKey(this.$1,"ack_received");b=this.$4.get(a);b!=null&&(b.ackReceivedTimestamp=Date.now())};b.ackSent=function(a){var b;this.$6.bumpODSKey(this.$1,"ack_sent");this.$6.logEvent(this.$1,"ACK sent",((b=this.$8)!=null?b:"")+"ackId: "+a,!0)};b.drainSent=function(a){var b;this.$6.logEvent(this.$1,"Drain sent",((b=this.$8)!=null?b:"")+"drainReason: "+a)};b.dataReceived=function(a,b,c){var d;this.$6.bumpODSKey(this.$1,"data_received");this.$6.logEvent(this.$1,"Data received",((d=this.$8)!=null?d:"")+"sendId: "+((d=c)!=null?d:"null")+", ackRequested: "+b.toString()+", payloadSize: "+a,!0);c!=null&&this.$5.set(c,{ackRequested:b,payloadSize:a,receiveTimestamp:Date.now()})};b.endOfDataReceived=function(){this.$6.bumpODSKey(this.$1,"end_of_data_received"),this.$6.logEvent(this.$1,"EndOfDataReceived",this.$8,!0)};b.endOfDataSent=function(){this.$6.bumpODSKey(this.$1,"end_of_data_sent"),this.$6.logEvent(this.$1,"EndOfDataSent",this.$8,!0)};b.streamClosed=function(a,b){this.$7=Date.now();var c=this.$9();if(a){this.$6.bumpODSKey(this.$1,"stream_closed_gracefully");this.$6.logEvent(this.$1,"Stream closed gracefully",""+((a=this.$8)!=null?a:"")+c)}else{this.$6.bumpODSKey(this.$1,"stream_closed_with_error");this.$6.logError(this.$1,"Stream closed abnormally",b,""+((a=this.$8)!=null?a:"")+c)}};b.connectionEstablishmentFailure=function(a){this.$6.logEvent(this.$1,"WebSocket connection establishment failure","WebSocket close code: "+a)};b.streamEstablishmentFailure=function(a,b){this.$6.logError(this.$1,"Failed to establish DGW Stream","Last seen error: "+a.toString(),""+((a=this.$8)!=null?a:"")+b);this.$6.bumpODSKey(this.$1,"stream_establishment_failure")};b.error=function(a,b){b={msg:b,state:this.$9()};this.$6.logError(this.$1,a,JSON.stringify(b),this.$8)};b.$9=function(){var a={currentNetworkCondition:window.navigator&&window.navigator.onLine==!0,establishRequestTimestamp:this.$2,establishedTimestamp:this.$3,streamClosedTimestamp:this.$7,sendHistory:JSON.stringify(Array.from(this.$4.entries())),receiveHistory:JSON.stringify(Array.from(this.$5.entries()))};return JSON.stringify(a)};return a}();g.DGWStreamEvents=a}),98); __d("GroupedStream",["DGWAckManager","DGWConstants","DGWLoggingContext","DGWStream","DGWStreamEvents","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,c,e,f,g,h){this.$1=a,this.$3=!1,this.$4=!1,this.$5=!1,this.$6=b,this.$7=c,this.$8=e,this.$2=g,this.$9=f,this.$10=new(d("DGWAckManager").DGWAckManager)(this.$9),this.$12=new(d("DGWStreamEvents").DGWStreamEvents)(this.$9,d("DGWLoggingContext").DGWLoggingComponent.GROUPED_STREAM_COMPONENT,this.$1),this.$11=0,this.$13=h}var c=a.prototype;c.send=function(a,c){var e,f,g;return b("regeneratorRuntime").async(function(h){while(1)switch(h.prev=h.next){case 0:f=this.$11++%d("DGWConstants").MAX_ACK_ID;if(this.$14(a,!0,f)){h.next=3;break}return h.abrupt("return",!1);case 3:h.next=5;return b("regeneratorRuntime").awrap(this.$10.waitForAck(f,(e=c)!=null?e:d("DGWConstants").DEFAULT_ACK_TIMEOUT_MS));case 5:g=h.sent;return h.abrupt("return",g);case 7:case"end":return h.stop()}},null,this)};c.sendAndForget=function(a){return this.$14(a,!1)};c.close=function(){var a=this.$2.encodeEndOfData(this.$1);if(a==null){this.$9.logError(d("DGWLoggingContext").DGWLoggingComponent.GROUPED_STREAM_COMPONENT,"Failed to encode EndOfData","streamId: "+this.$1);return}a=this.$8.send(a);if(!a){this.$9.logError(d("DGWLoggingContext").DGWLoggingComponent.GROUPED_STREAM_COMPONENT,"Failed to send EndOfData","streamId: "+this.$1+". StreamGroupTransport not open during send");return}this.$12.endOfDataSent();this.$5=!0;this.$4&&this.$15()};c.__sendDrain=function(a){var b=d("DGWConstants").drainReasonToDrainReasonString(a);if(this.$5)return!1;a=this.$2.encodeDrain(a);if(a==null)return!1;this.$12.drainSent(b);b=this.$8.send(a);return b};c.__transportCloseHook=function(a){this.$13(),this.$10.clearPendingAcks(),a?(this.$12.error("Received StreamError","StreamErrorType: "+a),this.$6.onError(a)):this.$5&&this.$4?this.$15():(this.$12.streamClosed(!1,"Stream closed: ClosedLocally: "+this.$5.toString()+", EndOfDataReceived: "+this.$4.toString()),this.$6.onError(d("DGWStream").StreamError.PREMATURE_CLOSE))};c.$15=function(){this.$13(),this.$12.streamClosed(!0,"Graceful close"),this.$6.onClose(this)};c.__dataReceivedHook=function(a,b){this.$12.dataReceived(a.length,b!=null,b),b!=null&&this.$16(b),this.$6.onDataReceived(a)};c.__ackReceivedHook=function(a){this.$12.ackReceived(a),this.$10.handleAckReceived(a)};c.__drainReceivedHook=function(a){this.$3===!1&&(this.$6.onStreamMustDrain(this,a),this.$3=!0)};c.__endOfDataHook=function(){this.$12.endOfDataReceived(),this.$4=!0,this.$5?this.$15():this.$6.onServerHasFinishedSendingData(this)};c.$14=function(a,b,c){b===void 0&&(b=!1);c===void 0&&(c=0);if(this.$5){this.$9.logError(d("DGWLoggingContext").DGWLoggingComponent.GROUPED_STREAM_COMPONENT,"Failed to send data","Stream closed locally");return!1}a=this.$2.encodeData(a,b,c,this.$1);if(a==null)return!1;var e=this.$8.send(a);if(!e){this.$9.logError(d("DGWLoggingContext").DGWLoggingComponent.GROUPED_STREAM_COMPONENT,"Failed to send data","ClosedLocally: "+this.$5.toString());return!1}this.$12.dataSent(c,a.length,b);return!0};c.$16=function(a){var b=this.$2.encodeAck(a,this.$1);if(b==null){this.$9.logError(d("DGWLoggingContext").DGWLoggingComponent.GROUPED_STREAM_COMPONENT,"Failed to encode ACK","ackId: "+a);return!1}b=this.$8.send(b);if(!b){this.$9.logError(d("DGWLoggingContext").DGWLoggingComponent.GROUPED_STREAM_COMPONENT,"Failed to send ACK","ackId: "+a);return!1}this.$12.ackSent(a);return!0};return a}();g.GroupedStream=a}),98); __d("StreamIdGenerator",["err"],(function(a,b,c,d,e,f,g){"use strict";var h=65535;a=function(){function a(){this.$1=new Set(),this.$2=0,this.$1.add(this.$2)}var b=a.prototype;b.getNextStreamId=function(){var a;if(!this.streamIdAvailable())throw c("err")("Max number of stream IDs reached");if(this.$1.size===0)return++this.$2;a=(a=this.$1.values().next().value)!=null?a:0;this.$1["delete"](a);return a};b.putBackStreamId=function(a){this.$1.add(a)};b.streamIdAvailable=function(){return this.$1.size>0||this.$2=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;e=e.bucketIndex;if(e==void 0)break;b.push(e)}return b};b=function(a){var b=[];for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;e=e.bucketName;if(e===void 0)break;b.push(e)}return b};var g=function(a){return a.name};c=function(a){return a.map(g)};d=function(a){var b=[];for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;e=e.value;if(e===void 0)break;b.push(e)}return b};f.getBucketIndices=a;f.getBucketNames=b;f.getContextNames=c;f.getContextValues=d}),66); __d("ContextualConfigCollateExposureData",["ContextualConfigConstants","ContextualConfigResolvedContextsUtils"],(function(a,b,c,d,e,f,g){"use strict";var h=["cfg_ver_timestamp","policy_id","version","sample_rate"],i=function(a){return a.join(d("ContextualConfigConstants").LIST_DELIMITER)},j=function(a,b){for(var c=0;c0},i=function(a){return typeof a==="number"&&!isNaN(a)&&a!==Infinity&&a!==-Infinity},j=function(a){return typeof a==="string"},k=function(a){switch(a){case d("ContextualConfigConstants").TYPE.BOOL:case d("ContextualConfigConstants").TYPE.FLOAT:case d("ContextualConfigConstants").TYPE.INT:case d("ContextualConfigConstants").TYPE.STRING:return!0;default:return!1}};g.isArray=a;g.isBoolean=b;g.isDefined=c;g.isKey=e;g.isInteger=f;g.isNonEmptyString=h;g.isNumber=i;g.isString=j;g.isType=k}),98); __d("ContextualConfigParseBoolean",["ContextualConfigConstants"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a.toUpperCase()){case"TRUE":return!0;case"FALSE":return!1;default:throw new Error(d("ContextualConfigConstants").ERROR.BAD_BOOLEAN_FORMAT)}}g["default"]=a}),98); __d("ContextualConfigParsePredBoolean",["ContextualConfigConstants","ContextualConfigParseBoolean"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var e;switch(b){case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.SAME:var f=c("ContextualConfigParseBoolean")(a);e=function(a){return a===f};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.NULL:e=function(a){return a==null};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.NNULL:e=function(a){return a!=null};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.CATCH_ALL:e=function(a){return!0};break;default:throw new Error(d("ContextualConfigConstants").ERROR.ILLEGAL_BOOLEAN_STRATEGY)}return function(a){return e(a)}}g["default"]=a}),98); __d("ContextualConfigParseFloat",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=/^[-\+]?([1-9]\d*|0)(\.\d+)?$/,i=function(a){return h.test(a)};function a(a){c("ContextualConfigAssert")(i(a),d("ContextualConfigConstants").ERROR.BAD_NUMBER_FORMAT);a=parseFloat(a);c("ContextualConfigAssert")(d("ContextualConfigValidators").isNumber(a),d("ContextualConfigConstants").ERROR.BAD_NUMBER_FORMAT);return a}g["default"]=a}),98); __d("ContextualConfigParseInteger",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=/^[-\+]?([1-9]\d*|0)$/,i=function(a){return h.test(a)};function a(a){c("ContextualConfigAssert")(i(a),d("ContextualConfigConstants").ERROR.BAD_NUMBER_FORMAT);a=parseInt(a,10);c("ContextualConfigAssert")(d("ContextualConfigValidators").isNumber(a),d("ContextualConfigConstants").ERROR.BAD_NUMBER_FORMAT);return a}g["default"]=a}),98); __d("ContextualConfigPredAssertions",["ContextualConfigAssert","ContextualConfigConstants"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){return c("ContextualConfigAssert")(a>0,d("ContextualConfigConstants").ERROR.MISMATCH_NUMBER_OF_VALUES)};b=function(a,b){return c("ContextualConfigAssert")(a===b,d("ContextualConfigConstants").ERROR.MISMATCH_NUMBER_OF_VALUES)};e=function(a,b){return c("ContextualConfigAssert")(a=g[0]&&ag[0]};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.GTE:d("ContextualConfigPredAssertions").assertNumberOfValues(g.length,1);h=function(a){if(typeof a!=="number")return!1;return f&&!d("ContextualConfigValidators").isInteger(a)?!1:a>=g[0]};break;default:throw new Error(d("ContextualConfigConstants").ERROR.ILLEGAL_NUMERIC_STRATEGY)}return function(a){return h(a)}}g["default"]=a}),98); __d("ContextualConfigParseRegExp",["ContextualConfigConstants"],(function(a,b,c,d,e,f,g){"use strict";var h=/^\/(.+)\/(.*)$/;function a(a){try{var b=a.match(h);if(b!=null)return new RegExp(b[1],b[2]);else return new RegExp(a)}catch(a){throw new Error(d("ContextualConfigConstants").ERROR.REGEX_SYNTAX_ERROR)}}g["default"]=a}),98); __d("ContextualConfigParsePredString",["ContextualConfigConstants","ContextualConfigParseRegExp","ContextualConfigPredAssertions"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){if(typeof a!=="string")throw new Error(d("ContextualConfigConstants").ERROR.INVALID_VALUE_TYPE);return a},i=function(a){var b=[];for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;b.push(h(e))}return b};function a(a,b,e){var f=i(e),g;switch(b){case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.SAME:g=function(b){return typeof b!=="string"?!1:b===a};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.NULL:g=function(a){return a==null};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.NNULL:g=function(a){return a!=null};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.CATCH_ALL:g=function(a){return!0};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.IN:d("ContextualConfigPredAssertions").assertHasValues(f.length);g=function(a){return typeof a!=="string"?!1:f.indexOf(a)!==-1};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.NIN:d("ContextualConfigPredAssertions").assertHasValues(f.length);g=function(a){return typeof a!=="string"?!1:f.indexOf(a)===-1};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.CONTAINS:d("ContextualConfigPredAssertions").assertNumberOfValues(f.length,1);g=function(a){return typeof a!=="string"?!1:a.indexOf(f[0])!==-1};break;case d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY.REGEX:d("ContextualConfigPredAssertions").assertNumberOfValues(f.length,1);var h=c("ContextualConfigParseRegExp")(f[0]);g=function(a){return typeof a!=="string"?!1:h.test(a)};break;default:throw new Error(d("ContextualConfigConstants").ERROR.ILLEGAL_STRING_STRATEGY)}return function(a){return g(a)}}g["default"]=a}),98); __d("ContextualConfigParseContextBuckets",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigParsePredBoolean","ContextualConfigParsePredNumeric","ContextualConfigParsePredString","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a),d("ContextualConfigConstants").ERROR.MISSING_BUCKETS)},i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.MISSING_BUCKETS)},j=d("ContextualConfigValidators").isKey(d("ContextualConfigConstants").CONTEXT_BUCKET_STRATEGY),k=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isString(a)&&j(a.toUpperCase()),d("ContextualConfigConstants").ERROR.MISSING_BUCKET_STRATEGY)},l=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.ILLEGAL_BUCKET_VALUES)},m=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isNonEmptyString(a),d("ContextualConfigConstants").ERROR.MISSING_BUCKET_NAME)},n=function(a,b){var e=b.name;m(e);var f=b.strategy;k(f);b=b.values||[];l(b);switch(a){case d("ContextualConfigConstants").TYPE.BOOL:return c("ContextualConfigParsePredBoolean")(e,f);case d("ContextualConfigConstants").TYPE.FLOAT:return c("ContextualConfigParsePredNumeric")(e,f,b,!1);case d("ContextualConfigConstants").TYPE.INT:return c("ContextualConfigParsePredNumeric")(e,f,b,!0);case d("ContextualConfigConstants").TYPE.STRING:return c("ContextualConfigParsePredString")(e,f,b);default:throw new Error(d("ContextualConfigConstants").ERROR.UNKNOWN_BUCKET_DEFINITION)}},o=function(a,b){h(b);var c=b.name;m(c);return{name:c,pred:n(a,b)}};function a(a,b){i(b);return b.map(function(b){return o(a,b)})}g["default"]=a}),98); __d("ContextualConfigParseContexts",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigParseContextBuckets","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a)&&a.length>0,d("ContextualConfigConstants").ERROR.MISSING_CONTEXT_IN_CONFIG)},j=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isNonEmptyString(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},k=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isType(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},l=function(a){h(a);var b=a.name,d=a.type;a=a.buckets;j(b);k(d);return{name:b,type:d,buckets:c("ContextualConfigParseContextBuckets")(d,a)}};function a(a){i(a);return a.map(l)}g["default"]=a}),98); __d("ContextualConfigIsEqualParams",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){if(a.length!=b.length)return!1;for(var c=0;c=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;if(f.name===b)return f.type}throw new Error(d("ContextualConfigConstants").ERROR.UNDECLARED_OUTPUT_PARAM)},m=function(a){return function(b){i(b);var d=b.name;j(d);var e=l(a,d);k(e);b=c("ContextualConfigParseResultParamValue")(e,b.value);return{name:d,type:e,value:b}}};function a(a,b){h(b);return b.map(m(a))}g["default"]=a}),98); __d("ContextualConfigParseDenseResultParams",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigIsEqualParams","ContextualConfigParseResultParams"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a,b){return c("ContextualConfigAssert")(c("ContextualConfigIsEqualParams")(a,b),d("ContextualConfigConstants").ERROR.RESULTS_VECTOR_SIZE_MISMATCH)};function a(a,b){b=c("ContextualConfigParseResultParams")(a,b.map(function(b,c){return{name:a[c].name,value:b}}));h(a,b);return b}g["default"]=a}),98); __d("ContextualConfigParseDenseDefaults",["ContextualConfigConstants","ContextualConfigParseDenseResultParams"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){try{return c("ContextualConfigParseDenseResultParams")(a,b)}catch(a){throw new Error(d("ContextualConfigConstants").ERROR.MISSING_DEFAULT_VALUE)}}g["default"]=a}),98); __d("ContextualConfigParseMonitors",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.BAD_MONITORED_CONTEXTS)},j=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isNonEmptyString(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},k=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isType(a),d("ContextualConfigConstants").ERROR.BAD_CONTEXT_IDENTIFIER)},l=function(a){h(a);var b=a.name;a=a.type;j(b);k(a);return{name:b,type:a}};function a(a){i(a);return a.map(l)}g["default"]=a}),98); __d("ContextualConfigParseOutputParams",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.MISSING_OUTPUTS_DEFINITION)},i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isType(a),d("ContextualConfigConstants").ERROR.BAD_OUTPUT_TYPE)},j=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isNonEmptyString(a),d("ContextualConfigConstants").ERROR.BAD_OUTPUT_NAME)},k=function(a){return c("ContextualConfigAssert")(l(a),d("ContextualConfigConstants").ERROR.DUPLICATE_OUTPUT_NAME)},l=function(a){var b={};for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;if(b[e.name])return!1;b[e.name]=!0}return!0},m=function(a){j(a.name);i(a.type);return a};function a(a){h(a);a=a.map(m);k(a);return a}g["default"]=a}),98); __d("ContextualConfigParseVector",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigParseResultParamValue","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.MISSING_VECTOR)},i=function(a,b){return c("ContextualConfigAssert")(a===b,d("ContextualConfigConstants").ERROR.RESULTS_VECTOR_SIZE_MISMATCH)},j=function(a,b){i(a.length,b.length);for(var d=0;d=0;d-=1)b.push(c),c*=a[d].buckets.length;return b.reverse()},j=function(a,b,d,e){try{b=b.slice(d,d+a.length);return[null,c("ContextualConfigParseDenseResultParams")(a,b)]}catch(a){return[a,e]}},k=function(a,b,d){try{d=d.reduce(function(b,d,e){c("ContextualConfigAssert")(e=b.length)break;f=b[e++]}else{e=b.next();if(e.done)break;f=e.value}f=f;c[f.name]=f}f=[];for(e=a,d=Array.isArray(e),b=0,e=d?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(d){if(b>=e.length)break;a=e[b++]}else{b=e.next();if(b.done)break;a=b.value}a=a;var g=c[a.name];f.push(g!=null&&g.name===a.name&&g.type===a.type?g:a)}return f}f["default"]=a}),66); __d("ContextualConfigParseDefaults",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigIsEqualParams","ContextualConfigParseResultParams"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a,b){return c("ContextualConfigAssert")(c("ContextualConfigIsEqualParams")(a,b),d("ContextualConfigConstants").ERROR.MISSING_DEFAULT_VALUE)};function a(a,b){b=c("ContextualConfigParseResultParams")(a,b);h(a,b);return b}g["default"]=a}),98); __d("ContextualConfigParseTable",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigParseResultParams","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.MISSING_TABLE)},i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a),d("ContextualConfigConstants").ERROR.MISSING_TABLE)},j=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isNonEmptyString(a),d("ContextualConfigConstants").ERROR.MISSING_TABLE_ITEM_BUCKET)},k=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isArray(a),d("ContextualConfigConstants").ERROR.MISSING_TABLE_ITEM_VALUES)},l=function(a,b){i(b);var d=b.bucket;b=b.values;j(d);k(b);return{bucket:d,values:c("ContextualConfigParseResultParams")(a,b)}};function a(a,b){h(b);return b.reduce(function(b,c){c=l(a,c);b[c.bucket]=c.values;return b},{})}g["default"]=a}),98); __d("TableContextualConfig",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigMergePartialResultParams","ContextualConfigParseContexts","ContextualConfigParseDefaults","ContextualConfigParseMonitors","ContextualConfigParseOutputParams","ContextualConfigParseTable","ContextualConfigResolveContexts","ContextualConfigResolvedContextsUtils","ContextualConfigValidators"],(function(a,b,c,d,e,f,g){"use strict";var h=[],i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a),d("ContextualConfigConstants").ERROR.BAD_CONFIG)};a=function(){function a(a,b){i(a);this.globalContextProviders=babelHelpers["extends"]({},b);b=c("ContextualConfigParseOutputParams")(a.outputs);this.contexts=c("ContextualConfigParseContexts")(a.contexts);this.defaults=c("ContextualConfigParseDefaults")(b,a.defaults);this.monitors=a.monitors!=null?c("ContextualConfigParseMonitors")(a.monitors):[];this.table=c("ContextualConfigParseTable")(b,a.table)}var b=a.prototype;b.resolve=function(a){try{return this.unsafeResolve(a)}catch(a){return[a,this.defaults,d("ContextualConfigConstants").EMPTY_RESOLVED_CONTEXTS,d("ContextualConfigConstants").EMPTY_RESOLVED_MONITORS]}};b.unsafeResolve=function(a){var b=this.globalContextProviders,e=this.contexts,f=this.defaults,g=this.monitors,i=this.table;e=c("ContextualConfigResolveContexts")(e,b,a);var j=e[0];e=e[1];if(j!=null)return[j,f,e,[]];j=d("ContextualConfigResolvedContextsUtils").getBucketNames(e).join(d("ContextualConfigConstants").BUCKET_DELIMITER);i=i[j]||h;j=c("ContextualConfigMergePartialResultParams")(f,i);f=c("ContextualConfigResolveContexts")(g,b,a);i=f[0];g=f[1];return i!=null?[i,j,e,[]]:[null,j,e,g]};return a}();g["default"]=a}),98); __d("ContextualConfigParseConfig",["ContextualConfigAssert","ContextualConfigConstants","ContextualConfigValidators","DenseContextualConfig","MultiOutputResolvedContextualConfig","TableContextualConfig"],(function(a,b,c,d,e,f,g){"use strict";var h=[1],i=function(a){return c("ContextualConfigAssert")(d("ContextualConfigValidators").isDefined(a)&&d("ContextualConfigValidators").isDefined(a.version),d("ContextualConfigConstants").ERROR.BAD_CONFIG)},j=function(a){return c("ContextualConfigAssert")(h.indexOf(a)!==-1,d("ContextualConfigConstants").ERROR.UNSUPPORTED_CONFIG_VERSION)};function a(a,b){i(a);j(a.version);switch(a.cctype){case d("ContextualConfigConstants").CONFIG_TYPE.DENSE:return new(c("DenseContextualConfig"))(a,b);case d("ContextualConfigConstants").CONFIG_TYPE.MULTI_OUTPUT_RESOLVED:return new(c("MultiOutputResolvedContextualConfig"))(a,b);case d("ContextualConfigConstants").CONFIG_TYPE.TABLE:return new(c("TableContextualConfig"))(a,b);default:throw new Error(d("ContextualConfigConstants").ERROR.UNKNOWN_CONFIG_TYPE)}}g["default"]=a}),98); __d("ContextualConfigWarn",[],(function(a,b,c,d,e,f){"use strict";function a(a){}f["default"]=a}),66); __d("ContextualConfigResult",["ContextualConfigConstants","ContextualConfigWarn"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.$1=a.reduce(function(a,b){var c=b.name;b=b.value;a[c]=b;return a},{}),this.$2=a}var b=a.prototype;b.get=function(a,b){try{a=this.$1[a];if(typeof a!==typeof b){c("ContextualConfigWarn")(d("ContextualConfigConstants").ERROR.REQUESTED_PARAM_NOT_FOUND);return b}return a}catch(a){c("ContextualConfigWarn")(a.message);return b}};b.getParams=function(){return this.$2};return a}();g["default"]=a}),98); __d("ErrorContextualConfig",["ContextualConfigConstants"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.error=a}var b=a.prototype;b.resolve=function(a){return[this.error,d("ContextualConfigConstants").EMPTY_RESULT_PARAMS,d("ContextualConfigConstants").EMPTY_RESOLVED_CONTEXTS,d("ContextualConfigConstants").EMPTY_RESOLVED_MONITORS]};return a}();g["default"]=a}),98); __d("ContextualConfig",["ContextualConfigCollateExposureData","ContextualConfigConstants","ContextualConfigExposureLogger","ContextualConfigParseConfig","ContextualConfigResult","ErrorContextualConfig","Random"],(function(a,b,c,d,e,f,g){"use strict";var h=1/d("ContextualConfigConstants").JSON_SUB_SAMPLE_RATE,i=1;a=function(){function a(a,b){b===void 0&&(b={}),this.isDebugLoggingEnabled=!1,this.$3=!1,this.$4=a,this.$2=b}var b=a.prototype;b.$5=function(){if(this.$1)return this.$1;var a=this.$2,b=this.$4;try{b=c("ContextualConfigParseConfig")(b,a)}catch(a){b=new(c("ErrorContextualConfig"))(a)}this.$1=b;return b};b.$6=function(a){var b=this.isDebugLoggingEnabled,e=this.$4,f=this.$3;f=!f&&d("Random").random()=e.length)break;C=e[b++]}else{b=e.next();if(b.done)break;C=b.value}C=C;r.add(C)}function D(a,b){K(b.item.name,"js.br.add_to_batch",1,!0);var c=b.item.extra.length;t+c>h&&(clearTimeout(u),E());s.push([a,b]);t+=c}function E(){u=null;v=!1;var a=s;I("js.br.send_batch",a.map(function(a){return a[1].item}));if(!z){J("js.br.init_not_complete.log",a.length);var b=function(){var b=a[d],e=b[0],f=b[1];K(f.item.name,"js.br.banzai_fallback_for_init_not_complete",1,!0);if((b=f.item.logImmediate)!=null?b:!1){((b=c("AnalyticsCoreData").use_critical_for_fallback_from_immediate)!=null?b:!1)?L.logCritical([f.item],function(a){return e.markItem(f,a)}):L.logImmediately([f.item],function(a){return e.markItem(f,a)})}else L.log([f.item],function(a){return e.markItem(f,a)})};for(var d=0;d0&&(a.ambientState=c("AnalyticsCoreData").state_for_br);return Object.freeze(a)}function H(a,b){for(var e=0;e0&&J(a,c)}function J(a,b){var e,f="falco.fabric.www."+c("AnalyticsCoreData").push_phase;((e=c("AnalyticsCoreData").queue_activation_experiment)!=null?e:!1)&&(f+=".queue_activation_experiment");d("ODS").bumpEntityKey(1344,f,a,b)}function K(a,b,c,e){if(a===p)return!1;d("ODS").bumpEntityKey(1344,"falco.event."+a,b,c);e&&J(b,c);return!0}var L={log:function(a,b){I("js.banzai.post.log",a),H(a,c("Banzai").BASIC),b(!0)},logImmediately:function(a,b){I("js.banzai.post.log_immediately",a),H(a,c("Banzai").VITAL),b(!0)},logCritical:function(a,b){I("js.banzai.post.log_critical",a),H(a,{signal:!0,retry:!0}),b(!0)}};function M(a){R();var b=N(a,"banzai_data_loss","log"),d=N(a,"banzai_data_loss","logImmediately"),e=N(a,"banzai_data_loss","logCritical"),f=N(a,"bladerunner_data_loss","");J("js.br_data_loss.posted."+a,1);if(z&&y)try{l.enqueue(function(b){return b.log([f],function(b){if(!b){J("js.br.transport_failure."+a,1);L.logCritical([f],function(b){J("js.br.failure_fallback_success_callback."+a,1)});return}J("js.br.success_callback."+a,1)})})}catch(b){J("js.br.error_enqueueing."+a,1),L.logCritical([f],function(b){J("js.br.enqueuing_fallback_success_callback."+a,1)})}else y||J("js.br.failed."+a,1),z||J("js.br.init_not_complete."+a,1),L.logCritical([f],function(b){J("js.br.init_fallback_success_callback."+a,1)});H([b],c("Banzai").BASIC);H([d],c("Banzai").VITAL);H([e],{signal:!0,retry:!0})}function N(a,b,d){return{name:b,time:c("performanceAbsoluteNow")(),policy:{r:1},extra:JSON.stringify({event_index:a,falco_js_connection_id:o,logging_mode:d,logging_flow_flag:((b=c("AnalyticsCoreData").fix_br_init_rc)!=null?b:!1)?"race_condition_fixed":"original_flow"})}}function O(){A+m=4){var d=c[0],e=c[1],f=c[2];c=c[3];f!==""?b={appScopedIdentity:f,claim:c}:d!==""&&(b={fbIdentity:{accountId:d,actorId:e},claim:c});q.set(a,b)}return b}}function a(){var a;if(x)return;x=!0;c("PersistedQueue").setHandler("falco_queue_log",function(a){var b,c=T(a.getQueueNameSuffix());while(b=a.dequeueItem())(function(b){S(b.item)?(K(b.item.name,"js.use_bladerunner.log",1,!0),R(),u==null&&(u=setTimeout(E,i)),D(a,b)):(K(b.item.name,"js.use_banzai.log",1,!0),c&&(b.item.identity=c),L.log([b.item],function(c){return a.markItem(b,c)}))})(b)});c("PersistedQueue").setHandler("falco_queue_immediately",function(a){var b,d=T(a.getQueueNameSuffix());while(b=a.dequeueItem())(function(b){S(b.item)?(K(b.item.name,"js.use_bladerunner.log_immediately",1,!0),R(),(u==null||!v)&&(clearTimeout(u),u=setTimeout(E,j),v=!0),b.item.logImmediate=!0,D(a,b),c("PersistedQueue").isPersistenceAllowed()||(K(b.item.name,"js.br.send_immediately_no_persistence",1,!0),E())):(K(b.item.name,"js.use_banzai.log_immediately",1,!0),d&&(b.item.identity=d),L.logImmediately([b.item],function(c){return a.markItem(b,c)}))})(b)});c("PersistedQueue").setHandler("falco_queue_critical",function(a){var b,c=T(a.getQueueNameSuffix());while(b=a.dequeueItem())(function(b){var d=b.item;S(d)?(K(d.name,"js.use_bladerunner.log_critical",1,!0),R(),!z?(K(d.name,"js.br.init_not_complete.logCritical",1,!0),c&&(d.identity=c),L.logCritical([d],function(c){return a.markItem(b,c)})):l.enqueue(function(e){return e.logCritical([d],function(e){if(!e){J("js.br.banzai_fallback.critical",1);K(b.item.name,"js.br.banzai_fallback_for_failure.critical",1,!0);c&&(d.identity=c);L.logCritical([d],function(c){return a.markItem(b,c)});return}K(b.item.name,"js.br.success_callback.batch.critical",1,!0);a.markItem(b,e)})})):(c&&(d.identity=c),K(d.name,"js.use_banzai.log_critical",1,!0),L.logCritical([d],function(c){return a.markItem(b,c)}))})(b)});((a=c("AnalyticsCoreData").queue_activation_experiment)!=null?a:!1)&&(c("PersistedQueue").setOnQueueActivateExperiment(),c("PersistedQueue").eventEmitter.emit("active",null));c("AnalyticsCoreData").enable_dataloss_timer&&(R(),O(),P())}g.attach=a}),98); __d("SkywalkerUtils",["CurrentLocale","RTISubscriptionManagerConfig"],(function(a,b,c,d,e,f){a={patchContext:function(a){a=a||{};a.locale=b("CurrentLocale").get();if(b("RTISubscriptionManagerConfig").assimilator){var c=b("RTISubscriptionManagerConfig").assimilator;c.tierType!=null&&(a.tierType=c.tierType);c.sandboxIP!=null&&c.sandboxPort!=null&&c.sandboxHostname!=null&&(a.sandboxIP=c.sandboxIP,a.sandboxPort=c.sandboxPort,a.sandboxHostname=c.sandboxHostname)}return a}};e.exports=a}),null); __d("MqttLongPollingHookCollection",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1=new Set()}var b=a.prototype;b.addHook=function(a){this.$1.add(a)};b.removeHook=function(a){this.$1["delete"](a)};b.onPollRequestSent=function(){this.$1.forEach(function(a){a.onPollRequestSent()})};b.onPollRequestSuccess=function(){this.$1.forEach(function(a){a.onPollRequestSuccess()})};b.onPollResponse=function(a){this.$1.forEach(function(b){b.onPollResponse(a)})};b.onPollFinish=function(){this.$1.forEach(function(a){a.onPollFinish()})};b.onPollRequestFailed=function(a){this.$1.forEach(function(b){b.onPollRequestFailed(a)})};b.onPollShutdownAbort=function(){this.$1.forEach(function(a){a.onPollShutdownAbort()})};return a}();f["default"]=a}),66); __d("PromiseResult",["Promise"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){var a=this;this.promise=new(b("Promise"))(function(b,c){a.$1=b,a.$2=c})}var c=a.prototype;c.resolve=function(a){this.$1(a)};c.reject=function(a){this.$2(a)};return a}();f["default"]=a}),66); __d("MqttFetchClient",["MqttEnv","MqttProtocolCodec","MqttUserName","MqttUtils","Promise","PromiseResult"],(function(a,b,c,d,e,f,g){"use strict";var h="fetch_pull",i="fetch_pull_finish",j="fetch_",k=6e4,l="action",m="chunked",n="send",o="true",p=5,q=20,r=10,s=5e3;a=function(){function a(){this.$1="",this.$2=d("MqttEnv").Env.getLoggerInstance(),this.$3=0,this.$4="",this.$5=new(c("MqttUserName"))("",0,1,"",0,!0),this.$6=function(){},this.$7=function(a){},this.$8=function(){},this.$9=function(a){},this.$10=0,this.$11=0,this.$12=0,this.$13=0,this.$14="Ready",this.$15=[],this.$16=[],this.$17=null,this.$18=!1,this.$19=0}a.isSupported=function(){return typeof window.fetch==="function"};var e=a.prototype;e.run=function(a,b,d,e,f,g,h,i){this.$1=c("MqttUtils").endpointWithSessionId(a,b),this.$3=b,this.$4=d,this.$5=e,this.$6=f,this.$7=g,this.$8=h,this.$9=i,this.$20()};e.isTopicSupported=function(a){return!0};e.publish=function(a,d){if(this.$14!=="ReceivingData"){this.$2.bumpCounter(j+"publish."+a+".invalidstate");return b("Promise").reject("not connected")}else{this.$2.bumpCounter(j+"publish."+a+".publish");var e=new(c("PromiseResult"))();a={topic:a,payload:d,promiseResult:e};this.$15.push(a);this.$21();return e.promise}};e.abort=function(){this.$6=function(){},this.$7=function(a){},this.$8=function(){},this.$9=function(a){}};e.$22=function(a){var b=this;a.forEach(function(a){b.$2.bumpCounter(j+"publish."+a.topic+".resolved"),a.promiseResult.resolve()});this.$12+=a.length};e.$23=function(a,b){var c=this;a.forEach(function(a){c.$2.bumpCounter(j+"publish."+a.topic+".rejected"),a.promiseResult.reject(b)})};e.$24=function(a,b,c,d){var e=a.map(function(a){return a.topic}).join(",");this.$2.debugTrace("FetchClient","Fetch publish request failed. Publishes:"+e+", retry:"+c);this.$2.bumpCounter(j+"publish_request_failed");this.$14!=="ReceivingData"||c===p?(this.$23(a,d),this.$18=!1,this.$2.bumpCounter(j+"publish_request_failed_final"),this.$21()):this.$25(a,b,c+1)};e.$26=function(a,b,c,d){if(!d.ok){this.$2.bumpCounter(j+"publish_request_failed.http."+d.status);if(d.status===409){this.$19++;if(this.$19>=r){this.$2.bumpCounter(j+"409_reset");this.$27(new Error("Too many 409 errors"));return}}this.$24(a,b,c,this.$28(d));return}this.$2.bumpCounter(j+"publish_request_success");b=a.map(function(a){return a.topic}).join(",");this.$2.debugTrace("FetchClient","Fetch publish request success. Publishes:"+b+", retry:"+c);this.$22(a);this.$18=!1;this.$21()};e.$21=function(){if(this.$14!=="ReceivingData")return;if(this.$18)return;if(this.$15.length===0&&this.$16.length===0)return;this.$18=!0;var a=this.$15.slice(0,q);this.$15=this.$15.slice(q,this.$15.length);this.$17!=null&&d("MqttEnv").Env.clearTimeout(this.$17);this.$17=null;var b=this.$16.slice(0,q);this.$16=this.$16.slice(q,this.$16.length);this.$25(a,b,0)};e.$25=function(a,b,e){var f=this,g=a.map(function(a){return a.topic}).join(",");this.$2.debugTrace("FetchClient","Fetch publish request sent. Publishes:"+g+", retry:"+e);g=c("MqttUtils").endpointWithExtraParameter(this.$1,l,n);var h=a.map(function(a){return{topic:a.topic,payload:a.payload,qos:0,messageId:d("MqttEnv").Env.random()}});h=this.$5.gen(this.$3,[],h,b);this.$2.bumpCounter(j+"publish_request");c("MqttUtils").promiseDoneWithTimeout(window.fetch(g,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",referrer:"no-referrer",body:h,keepalive:!1}),function(c){return f.$26(a,b,e,c)},function(c){return f.$24(a,b,e,c)},k)};e.$29=function(a){a=a.message;this.$2.debugTrace("FetchClient","Fetch request failed with error:"+a);this.$9(a);this.$30(!1,a);this.$2.bumpCounter(j+"error");this.$14="Error"};e.$31=function(a){var b=this;this.$2.debugTrace("FetchClient","Fetch response data received");a=d("MqttProtocolCodec").decodeByteMessages(new Uint8Array(a));a=a.messages;var c=a.filter(function(a){return a.messageType===d("MqttProtocolCodec").MESSAGE_TYPE.PINGREQ});a=a.filter(function(a){return a.messageType===d("MqttProtocolCodec").MESSAGE_TYPE.PUBLISH}).map(function(a){if(!(a instanceof d("MqttProtocolCodec").WireMessage.Publish))return{};a=a;a.qos===1&&a.messageIdentifier!=null&&(b.$16.push(a.messageIdentifier),b.$17==null&&(b.$17=d("MqttEnv").Env.setTimeout(function(){b.$21()},s)));return{topic:a.topic,payload:a.payloadMessage,qos:a.qos}});for(var e=a,f=Array.isArray(e),g=0,e=f?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=e.length)break;h=e[g++]}else{g=e.next();if(g.done)break;h=g.value}h=h;this.$2.bumpCounter(j+"response_"+((h=h.topic)!=null?h:"void"))}a&&a.length>0&&(this.$13+=a.length,this.$7(a));c&&c.length>0&&this.$32()};e.$32=function(){this.$2.debugTrace("FetchClient","Got server ping request"),this.$2.bumpCounter(j+"ping")};e.$27=function(a){this.$2.debugTrace("FetchClient","Fetch request ended: "+a.toString()),this.$2.bumpCounter(j+"done"),this.$33(a.message),this.$8(),this.$14="Done"};e.$34=function(a,b,d){var e=this;if(d!=null)try{this.$31(d)}catch(a){this.$27(a);this.$2.bumpCounter(j+"dataDecodeException");return}if(b){this.$27(new Error("EOF"));return}c("MqttUtils").promiseDone(a.read(),function(c){var b=c.done;c=c.value;return e.$34(a,b,c)},function(a){return e.$27(a)})};e.$35=function(a){if(!a.ok){this.$2.bumpCounter(j+"error.http."+a.status);this.$29(this.$28(a));return}a=a.body;if(!a){this.$29(new Error("Empty body"));return}a=a.getReader();this.$6();this.$2.bumpCounter(j+"success");this.$30(!0,null);this.$11=Date.now();this.$14="ReceivingData";this.$2.debugTrace("FetchClient","Fetch request success");this.$34(a,!1,null)};e.$33=function(a){this.$2.eventLogPullFinish({pullEventName:i,sessionID:this.$3,duration:Date.now()-this.$11,errorMessage:a,publishReceived:this.$13,publishSent:this.$12})};e.$30=function(a,b){this.$2.eventLogPull({pullEventName:h,sessionID:this.$3,status:a,duration:Date.now()-this.$10,hostname:this.$1,errorMessage:b})};e.$20=function(){var a=this;if(this.$14!=="Ready")return;this.$2.debugTrace("FetchClient","Sending fetch request");this.$2.bumpCounter(j+"request");this.$10=Date.now();var b=c("MqttUtils").endpointWithExtraParameter(this.$1,m,o);c("MqttUtils").promiseDoneWithTimeout(window.fetch(b,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",referrer:"no-referrer",body:this.$4,keepalive:!1}),function(b){return a.$35(b)},function(b){return a.$29(b)},k)};e.$28=function(a){return new Error("Http error, status="+a.status)};return a}();g["default"]=a}),98); __d("MqttLongPollingClient",["MqttEnv","MqttProtocolCodec","MqttUserName","Promise","XHRRequest","getCrossOriginTransport"],(function(a,b,c,d,e,f,g){"use strict";var h=120*1e3,i="simple_pull",j="longpolling_";a=function(){function a(){this.$3="",this.$4=0,this.$2=d("MqttEnv").Env.getLoggerInstance(),this.$1="Ready",this.$5="",this.$6=new(c("MqttUserName"))("",0,1,"",0,!0),this.$7=function(){},this.$8=function(a){},this.$9=function(){},this.$10=function(a){},this.$11=0,this.$12=null,this.$13=new Set(["/t_ms","/messenger_sync_get_diffs","/messenger_sync_create_queue","/webrtc","/rtc_multi"])}var e=a.prototype;e.run=function(a,b,c,d,e,f,g,h){this.$3=a,this.$4=b,this.$5=c,this.$6=d,this.$7=e,this.$8=f,this.$9=g,this.$10=h,this.$14(this.$5)};e.isTopicSupported=function(a){return this.$13.has(a)};e.publish=function(a,c){return b("Promise").reject("not supported")};e.abort=function(){this.$12!=null&&this.$12.abort("Disconnected")};e.$15=function(a,b){if(this.$1===a)return;this.$1=a;a==="Error"&&b!=null&&this.$10(b);this.$2.debugTrace("LongPollingClient","_changeStatus : "+a)};e.$16=function(a){if(this.$1!=="RequestSend")return;if(!a){this.$17("EmptyResponse",null);return}this.$7();this.$2.bumpCounter(j+"success");this.$18(!0,null);this.$15("ResponseReceived");a=d("MqttProtocolCodec").decodeByteMessages(new Uint8Array(a));a=a.messages.filter(function(a){return a instanceof d("MqttProtocolCodec").WireMessage.Publish}).map(function(a){if(a instanceof d("MqttProtocolCodec").WireMessage.Publish){a=a;return{topic:a.topic,payload:a.payloadMessage,qos:a.qos}}else return{}});this.$8(a);this.$9()};e.$17=function(a,b){b=b!=null?b.message:"null";this.$2.debugTrace("LongPollingClient Error","Poll failed with error:"+a+", errorMsg:"+b);this.$18(!1,a+":"+b);this.$2.bumpCounter(j+"error."+a);this.$15("Error",a)};e.$18=function(a,b){this.$2.eventLogPull({pullEventName:i,sessionID:this.$4,status:a,duration:Date.now()-this.$11,hostname:this.$3,errorMessage:b})};e.$14=function(a){var b=this;if(this.$1!=="Ready"||this.$12)return;this.$2.bumpCounter(j+"request");try{this.$11=Date.now(),this.$12=new(c("XHRRequest"))(this.$3).setResponseType("arraybuffer").setRawData(a).setTransportBuilder(c("getCrossOriginTransport").withCredentials).setResponseHandler(function(a){return b.$16(a)}).setNetworkFailureHandler(function(a){b.$17("Network",a)}).setErrorHandler(function(a){b.$17("Error",a)}).setAbortHandler(function(a){b.$17("Abort",null)}).setTimeoutHandler(function(){b.$17("Timeout",null)}).setTimeout(h).send(),this.$15("RequestSend")}catch(a){this.$17("Error",a)}};return a}();g["default"]=a}),98); __d("exponentialBackoff",["MqttEnv"],(function(a,b,c,d,e,f,g){function a(a,b){b===void 0&&(b=null);var c=null,e=0;function f(){for(var f=arguments.length,g=new Array(f),h=0;h=h&&this.$24("LPError")};e.$28=function(){var a=d("MqttEnv").Env.genGk(d("MqttEnv").MqttGkNames.mqtt_lp_no_delay),b=d("MqttEnv").Env.genGk(d("MqttEnv").MqttGkNames.mqtt_ws_polling_enabled),c=d("MqttEnv").Env.genGk(d("MqttEnv").MqttGkNames.mqtt_fast_lp);this.$5.debugTrace("LongPollingRunner","_shouldPoll? pollNow:"+String(a)+" enabled:"+String(b)+" fastPoll:"+String(c)+" hasWSSupport:"+String(this.$4)+" hasWsSuccessBefore:"+String(this.$1)+" failureCount:"+this.$2+" wsFatal:"+String(this.$3));if(!b)return!1;if(a){this.$5.bumpCounter(k+".nd");return!0}if(!this.$4){this.$5.bumpCounter(k+".na");return!0}if(this.$3){this.$5.bumpCounter(k+".fatal");return!0}if(this.$1)return!1;if(c){b=Date.now()-this.$20;if(this.$21===m){if(this.$2>=1)return!0;if(b>i){this.$5.bumpCounter(k+".fastdelay");return!0}}else if(b>j){this.$5.bumpCounter(k+".regulardelay");return!0}}if(this.$2>=3){this.$5.bumpCounter(k+".failure");return!0}return!1};e.$29=function(){if(this.$14!=null)return!1;var a=this.$28();!this.$13&&a&&(this.$5.bumpCounter("polling_kickin"),this.$13=!0,this.$24("LPActive"),this.$26());this.$13&&!a&&(this.$5.bumpCounter("polling_stopped"),this.$13=!1,this.$24("LPInactive"),this.$26());return a};e.$30=function(){if(this.$22){this.$5.debugTrace("LongPollingRunner","Creating polling client using Fetch API");return new(c("MqttFetchClient"))()}else{this.$5.debugTrace("LongPollingRunner","Creating regular Polling client");return new(c("MqttLongPollingClient"))()}};e.$31=function(){this.$5.debugTrace("LongPollingRunner","Poll success"),this.$19.onPollRequestSuccess(),this.$18.reset(),this.$24("LPActive"),this.$26(),d("MqttEnv").Env.configWrite(l,m),this.$25("ReceivingData")};e.$32=function(a){var b=a.map(function(a){return a.topic}).join(",");this.$5.debugTrace("LongPollingRunner","Poll response received, message received:"+b);for(b=0;b