if (self.CavalryLogger) { CavalryLogger.start_js(["D47hhLl"]); } __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")))("/common/scribe_endpoint.php").getQualifiedURI().toString();new(b("AsyncSignal"))(a,c).send()}}e.exports={run:a}}),null); __d("CometRouteActorToasterQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4283634038368163"}),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},f={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"XFBProfilePlusContinuityModeInfo",kind:"LinkedField",name:"profile_plus_continuity_mode_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_acting_as_profile_plus",storageKey:null}],storageKey:null}],type:"User",abstractKey: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,f],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,f,{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("LiveVideoCometNuxForCVCQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="3832265616859130"}),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},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="3434598286567017"}),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="2889547877749972"}),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:null,kind:"FragmentSpread",name:"MWChatContact_profile"}],storageKey:null}]}],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},{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:"InlineFragment",selections:[{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:"4601721123227254",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="4115654068514312"}),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="2607318959337318"}),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="4608982369131102"}),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("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,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="4189998731054969"}),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"}],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={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"VideoPlayerWatchAndScrollControl_video",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{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"}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_huddle",storageKey:null}],type:"Video",abstractKey:null};e.exports=a}),null); __d("useVideoPlayerWatchAndScrollControlNUXQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4063034090470312"}),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="5025499677480289"}),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={alias:null,args:null,kind:"ScalarField",name:"click_tracking_linkshim_cb",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"encrypted_click_tracking",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"encrypted_tracking",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"viewability_config",storageKey:null},o={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},p=[{kind:"Literal",name:"site",value:"www"}],q=[h],r={kind:"InlineFragment",selections:q,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"},{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollUpNextCard_video"},h,j],type:"Video",abstractKey:null}],storageKey:null}],storageKey:null},k,l,m,n,o],type:"Story",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null},{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollFallbackCTAScreen_video"}],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:p,kind:"ScalarField",name:"url",storageKey:'url(site:"www")'}],type:"User",abstractKey:null}],storageKey:null},j,h],type:"Video",abstractKey:null},r,{kind:"InlineFragment",selections:q,type:"GenericAttachmentMedia",abstractKey:null},{kind:"InlineFragment",selections:q,type:"MontageImage",abstractKey:null},{kind:"InlineFragment",selections:q,type:"MontageVideo",abstractKey:null}],storageKey:null}],storageKey:null},k,l,m,n,o],type:"Story",abstractKey:null},r,{kind:"InlineFragment",selections:q,type:"CommunityChatFeedObject",abstractKey:null},{kind:"InlineFragment",selections:q,type:"CommunityTabNewJoinFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:q,type:"CommunityTabTrendingPOGFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:q,type:"XFBGroupsTabSuggestedGroupSetFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:q,type:"XFBGroupsTabSuggestedGroupSetsFeedUnit",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null},h],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"can_viewer_share",storageKey:null},{alias:null,args:null,concreteType:"Story",kind:"LinkedField",name:"creation_story",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"shareable",plural:!1,selections:[g,{alias:"wwwUrl",args:p,kind:"ScalarField",name:"url",storageKey:'url(site:"www")'},r],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("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="7006798266004597"}),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,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},l=[{kind:"Variable",name:"id",variableName:"chainingSeedVideoID"}],m={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"uri_token",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},p=[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],q=[h,{alias:null,args:null,kind:"ScalarField",name:"start",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"end",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"representation_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mime_codec",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"segment_type",storageKey:null}],r={alias:null,args:null,kind:"ScalarField",name:"title_with_fallback",storageKey:null},s=[g],t={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,{args:null,kind:"FragmentSpread",name:"CometWatchAndScrollContainer_video"},{args:null,kind:"FragmentSpread",name:"VideoPlayerRelay_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"},k],storageKey:null},{alias:"chainingSeedVideo",args:l,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:[m,{kind:"InlineFragment",selections:[i,n,{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"},g,o,{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:p,storageKey:null},{kind:"InlineFragment",selections:[n,{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,{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:"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:[m,g],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,concreteType:"VideoPrefetchResources",kind:"LinkedField",name:"dash_prefetch_resources",plural:!1,selections:[{alias:null,args:null,concreteType:"VideoPrefetchResource",kind:"LinkedField",name:"audio",plural:!0,selections:q,storageKey:null},{alias:null,args:null,concreteType:"VideoPrefetchResource",kind:"LinkedField",name:"video",plural:!0,selections:q,storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"context",value:"DEFAULT"},{kind:"Literal",name:"supported",value:["CometVideoPlayerOzImplementation","CometVideoPlayerShakaImplementation","CometVideoPlayerProgressiveImplementation"]}],concreteType:null,kind:"LinkedField",name:"comet_video_player_implementations",plural:!0,selections:[m,{kind:"InlineFragment",selections:[{args:null,documentName:"useRelay3DVideoImplementations_video",fragmentName:"useRelay3DOzImplementation_implementation",fragmentPropName:"implementation",kind:"ModuleImport"}],type:"CometVideoPlayerOzImplementation",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"useRelay3DVideoImplementations_video",fragmentName:"useRelay3DShakaImplementation_implementation",fragmentPropName:"implementation",kind:"ModuleImport"}],type:"CometVideoPlayerShakaImplementation",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"useRelay3DVideoImplementations_video",fragmentName:"useRelay3DProgressiveImplementation_implementation",fragmentPropName:"implementation",kind:"ModuleImport"}],type:"CometVideoPlayerProgressiveImplementation",abstractKey:null}],storageKey:'comet_video_player_implementations(context:"DEFAULT",supported:["CometVideoPlayerOzImplementation","CometVideoPlayerShakaImplementation","CometVideoPlayerProgressiveImplementation"])'},{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:p,storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"image_preview_payload",storageKey:null},g],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:"is_huddle",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},o,r,{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],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:[m,{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithWatchAndScrollWarningScreen_video",fragmentName:"CometWarningScreenOverlay_data",fragmentPropName:"data",kind:"ModuleImport"}],type:"OverlayWarningScreenViewModel",abstractKey:null},t],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:["CometVideoPlayerWithHuddleOverlayRenderer","CometVideoPlayerWithPodcastOverlayRenderer","VideoPlayerWithMusicSproutOverlayRenderer"]}],concreteType:null,kind:"LinkedField",name:"comet_video_player_audio_overlay_renderer",plural:!1,selections:[m,{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}],storageKey:'comet_video_player_audio_overlay_renderer(supported:["CometVideoPlayerWithHuddleOverlayRenderer","CometVideoPlayerWithPodcastOverlayRenderer","VideoPlayerWithMusicSproutOverlayRenderer"])'},{alias:null,args:[{kind:"Literal",name:"supported",value:["CometVideoPlayerWithHuddleBackgroundRenderer","CometVideoPlayerWithPodcastBackgroundRenderer"]}],concreteType:null,kind:"LinkedField",name:"comet_video_player_audio_background_renderer",plural:!1,selections:[m,{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioBackground_video",fragmentName:"CometVideoPlayerWithHuddleBackgroundRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithHuddleBackgroundRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"VideoPlayerWithAudioBackground_video",fragmentName:"CometVideoPlayerWithPodcastBackgroundRenderer_renderer",fragmentPropName:"renderer",kind:"ModuleImport"}],type:"CometVideoPlayerWithPodcastBackgroundRenderer",abstractKey:null}],storageKey:'comet_video_player_audio_background_renderer(supported:["CometVideoPlayerWithHuddleBackgroundRenderer","CometVideoPlayerWithPodcastBackgroundRenderer"])'},k,{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:l,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:[m,{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:[m,{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:[m,{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:p,storageKey:'image(height:202,sizing:"cover-fill-cropped",width:360)'},r,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"owner",plural:!1,selections:[m,o,g],storageKey:null}],type:"Video",abstractKey:null},t,{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},t,{kind:"InlineFragment",selections:s,type:"CommunityChatFeedObject",abstractKey:null},{kind:"InlineFragment",selections:s,type:"CommunityTabNewJoinFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:s,type:"CommunityTabTrendingPOGFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:s,type:"XFBGroupsTabSuggestedGroupSetFeedUnit",abstractKey:null},{kind:"InlineFragment",selections:s,type:"XFBGroupsTabSuggestedGroupSetsFeedUnit",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("FleetBeaconSubscriptionNetwork_LogMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4501085869904851"}),null); __d("FleetBeaconSubscriptionNetwork_LogMutation.graphql",["FleetBeaconSubscriptionNetwork_LogMutation_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:"FleetBeaconLogResponsePayload",kind:"LinkedField",name:"fleet_beacon_log",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"FleetBeaconSubscriptionNetwork_LogMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"FleetBeaconSubscriptionNetwork_LogMutation",selections:c},params:{id:b("FleetBeaconSubscriptionNetwork_LogMutation_facebookRelayOperation"),metadata:{},name:"FleetBeaconSubscriptionNetwork_LogMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("FleetBeaconSubscriptionNetwork_PublishMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="3918234471547751"}),null); __d("FleetBeaconSubscriptionNetwork_PublishMutation.graphql",["FleetBeaconSubscriptionNetwork_PublishMutation_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:"FleetBeaconPublishResponsePayload",kind:"LinkedField",name:"fleet_beacon_publish",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"FleetBeaconSubscriptionNetwork_PublishMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"FleetBeaconSubscriptionNetwork_PublishMutation",selections:c},params:{id:b("FleetBeaconSubscriptionNetwork_PublishMutation_facebookRelayOperation"),metadata:{},name:"FleetBeaconSubscriptionNetwork_PublishMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("FleetBeaconSubscriptionNetwork_Subscription_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="3194829573871785"}),null); __d("FleetBeaconSubscriptionNetwork_Subscription.graphql",["FleetBeaconSubscriptionNetwork_Subscription_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:"TestFleetBeaconSubscribeResponsePayload",kind:"LinkedField",name:"test_fleet_beacon_subscribe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_subscription_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"test_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"FleetBeaconSubscriptionNetwork_Subscription",selections:c,type:"Subscription",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"FleetBeaconSubscriptionNetwork_Subscription",selections:c},params:{id:b("FleetBeaconSubscriptionNetwork_Subscription_facebookRelayOperation"),metadata:{subscriptionName:"test_fleet_beacon_subscribe"},name:"FleetBeaconSubscriptionNetwork_Subscription",operationKind:"subscription",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("LogoutHandler.react",["cr:11880"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:11880")}),98); __d("CometOnBeforeUnloadDialog.react",["fbt","CometCardedDialog.react","CometTrackingNodeProvider.react","TetraButtonGroup.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.cancel,e=a.confirm,f=a.disabled;f=f===void 0?!1:f;var g=a.onClose,j=a.onCloseButtonPress,k=a.primaryAction,l=a.secondaryAction;a=a.title;var m=function(){k(),g()},n=function(){l(),g()};return i.jsx(c("CometTrackingNodeProvider.react"),{trackingNode:163,children:i.jsxs(c("CometCardedDialog.react"),{onClose:function(){j(),g()},testid:void 0,title:a,titleHorizontalAlignment:"start",withCloseButton:!0,children:[i.jsx("div",{className:"l9j0dhe7 dati1w0a f10w8fjw hv4rvrfc pybr56ya",children:i.jsx(c("TetraText.react"),{type:"body3",children:b})}),i.jsx("div",{className:"a8nywdso ihqw7lf3 rz4wbd8a jb3vyjys bkfpd7mw btwxx1t3 j83agx80",children:i.jsx(c("TetraButtonGroup.react"),{direction:"backward",paddingHorizontal:16,primary:{disabled:f,label:(a=e)!=null?a:h._(/*FBT_CALL*/"Confirm"/*FBT_CALL*/),onPress:m,testid:"CometOnBeforeUnloadDialogConfirmButton"},secondary:{disabled:f,label:(b=d)!=null?b:h._(/*FBT_CALL*/"Cancel"/*FBT_CALL*/),onPress:n,reduceEmphasis:!0,testid:"CometOnBeforeUnloadDialogCancelButton"}})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometRouteActorToaster.react",["fbt","Actor","CometRelay","CometRouteActorToasterBlocklist","CometRouteActorToasterQuery.graphql","TetraProfilePhoto.react","TetraText.react","WebPixelRatio","cometPushToast","getTopMostRoute","promiseDone","react","requireDeferred","useCometRouterState","useCurrentRoute","useProfileCometIsViewAs","useRouteReferrer"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useEffect,l=e.useRef,m=c("requireDeferred")("AcfToastImpressionFalcoEvent").__setRef("CometRouteActorToaster.react");function n(a,b){if(b)return j.jsx(c("TetraText.react"),{color:"primary",type:"body3",children:h._(/*FBT_CALL*/"You're now interacting as {=your profile}"/*FBT_CALL*/,[h._param("=your profile",j.jsx(c("TetraText.react"),{type:"bodyLink3",children:h._(/*FBT_CALL*/"your profile"/*FBT_CALL*/)}))])});else return j.jsx(c("TetraText.react"),{color:"primary",type:"body3",children:h._(/*FBT_CALL*/"You're now interacting as {actor}"/*FBT_CALL*/,[h._param("actor",j.jsx(c("TetraText.react"),{type:"bodyLink3",children:a}))])})}var o=i!==void 0?i:i=b("CometRouteActorToasterQuery.graphql");function a(){var a=d("CometRelay").useRelayEnvironment(),b=d("Actor").useActor(),e=b[0];b=c("useCometRouterState")();var f=c("useCurrentRoute")(),g=c("useRouteReferrer")(),h=c("useProfileCometIsViewAs")(),i=l({actorID:g==null?void 0:g.actorID,tracePolicy:g==null?void 0:g.tracePolicy});g=c("CometRouteActorToasterBlocklist").route_trace_policies;var p=f==null?void 0:f.tracePolicy;g=g.includes(p);b=b!=null?c("getTopMostRoute")(b):null;f=f===b;var q=f&&!g&&!h;k(function(){var b,f=(b=i.current)==null?void 0:b.actorID,g=(b=i.current)==null?void 0:b.tracePolicy;if(f!=null&&f!==e&&q){b=function(a){var b;b=a==null?void 0:(b=a.viewer)==null?void 0:(b=b.actor)==null?void 0:b.name;if(b!=null){var e;e=(a==null?void 0:(e=a.viewer)==null?void 0:(e=e.actor)==null?void 0:e.__typename)==="User"&&(a==null?void 0:(e=a.viewer)==null?void 0:(e=e.actor)==null?void 0:(e=e.profile_plus_continuity_mode_info)==null?void 0:e.is_acting_as_profile_plus)!==!0;a=a==null?void 0:(a=a.viewer)==null?void 0:(a=a.actor)==null?void 0:(a=a.toast_icon)==null?void 0:a.uri;a=a!=null?j.jsx(c("TetraProfilePhoto.react"),{shape:"circle",size:32,source:{uri:a}}):null;b=n(b,e);d("cometPushToast").cometPushToast({icon:a,message:b});m.onReady(function(a){a=a.log;a(function(){var a;return{destination:(a=p)!=null?a:"comet.app",destination_type:"comet_route",source:g,source_type:"comet_route",source_userid:f}})})}};var h={scale:d("WebPixelRatio").get()};c("promiseDone")(d("CometRelay").fetchQuery(a,o,h).toPromise(),b)}i.current={actorID:e,tracePolicy:p}},[e,p,a,q]);return null}g["default"]=a}),98); __d("CometAlertDialogImpl.react",["fbt","CometCardedDialog.react","CometRow.react","CometRowItem.react","TetraButton.react","TetraText.react","react","useCometUniqueID"],(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;var f=c("useCometUniqueID")();return i.jsxs(c("CometCardedDialog.react"),{labelledBy:f,onClose:e,withCloseButton:!0,children:[i.jsx("div",{className:"bjjx79mm dati1w0a clqubjjj jbae33se",id:f,suppressHydrationWarning:!0,children:i.jsx(c("TetraText.react"),{numberOfLines:1,type:"headlineEmphasized2",children:a})}),i.jsx("div",{className:"l9j0dhe7 dati1w0a f10w8fjw hv4rvrfc pybr56ya",children:i.jsx(c("TetraText.react"),{type:"body3",children:b})}),i.jsx("div",{className:"a8nywdso ihqw7lf3 rz4wbd8a jb3vyjys",children:i.jsx(c("CometRow.react"),{align:"end",children:i.jsx(c("CometRowItem.react"),{children:i.jsx(c("TetraButton.react"),{label:(f=d)!=null?f:h._(/*FBT_CALL*/"Close"/*FBT_CALL*/),onPress:e,testid:void 0,type:"primary"})})})})]})}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:"k4urcfbm poy2od1o taijpn5t nznu9b0o j83agx80 bp9cbjyn",children:i.jsx(c("CometContentArea.react"),{verticalAlign:"middle",children:i.jsx(c("TetraNullState.react"),{headline:h._(/*FBT_CALL*/"Sorry! Something went wrong :("/*FBT_CALL*/),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","BaseToasterView.react","gkx","react","stylex","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:"j83agx80",flexDirection:"cbu4d94t",listStyle:"p7hjln8o",maxWidth:"d2edcug0"},root:{bottom:"i09qtzwb",display:"j83agx80",end:"n7fi1qx3",pointerEvents:"hzruof5a",position:"poy2od1o",start:"j9ispegn",zIndex:"kavbgo14"},rootBlue:{zIndex:"guygq49l"},rootWorkplaceLegacy:{zIndex:"lidd1b6n"},toast:{paddingTop:"discj3wi",paddingEnd:"hv4rvrfc",paddingBottom:"ihqw7lf3",paddingStart:"dati1w0a",pointerEvents:"oqq733wu"}},l={center:{justifyContent:"taijpn5t"},start:{justifyContent:"jifvfom9"}};function a(a){var b=a.align;b=b===void 0?"start":b;var d=a.filterToasts;a=a.maxVisible;a=a===void 0?1:a;var e=c("useToasterStateManager")(),f=j(function(){return e.getEmptyState()}),g=f[0],m=f[1];i(function(){var a=e.registerView(m,0);return a.remove},[e]);return h.jsx(c("BasePortal.react"),{target:document.body,xstyle:[k.root,c("gkx")("708253")?null:c("gkx")("1341692")?k.rootWorkplaceLegacy:k.rootBlue,l[b]],children:h.jsx(c("BaseToasterView.react"),{className:c("stylex")(k.list),filterToasts:d,maxVisible:a,toasterState:g,children:function(a,b,d,e){return h.jsx(c("BaseToastAnimationInternal.react"),{expired:d,id:b,position:e,xstyle:k.toast,children:h.jsx(c("BaseContextualLayerAnchorRoot.react"),{children:a})},e)}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometFeedUnitLoadingIndicatorMask.react",["CometProgressIndicator.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(){return h.jsx("div",{className:"tkr6xdv7 kr520xx4 j9ispegn pmk7jnqg taijpn5t cbu4d94t n7fi1qx3 j83agx80 i09qtzwb ms7hmo2b bp9cbjyn",children:h.jsx(c("CometProgressIndicator.react"),{})})}a.displayName=a.name+" [from "+f.id+"]";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(){d("JSScheduler").scheduleLoggingPriCallback(function(){c("ghlTestUBT")(function(a,b){return c("GhlTestUbtFalcoEvent").log(function(){return{recent:b,ubt:a}})})})}g["default"]=a}),98); __d("ErrorSetup",["fb-error"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=c("fb-error").ErrorSetup}),98); __d("JavascriptWebErrorFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1828905");c=b("FalcoLoggerInternal").create("javascript_web_error",a);e.exports=c}),null); __d("ErrorTransport",["JavascriptWebErrorFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a){c("JavascriptWebErrorFalcoEvent").log(function(){return a})}g.log=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",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._(/*FBT_CALL*/"Your internet connection was restored."/*FBT_CALL*/)},4e3,b):d("cometPushToast").cometPushToast({action:{label:h._(/*FBT_CALL*/"Refresh"/*FBT_CALL*/),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._(/*FBT_CALL*/"You are currently offline."/*FBT_CALL*/)},Infinity,b)}function a(){c("NetworkStatus").onChange(l)}g.subscribe=a}),98); __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","CometErrorRoot.react","CometFullPageCompatRoot.react","CometNetworkStatusToast","CometVCTracker","CometVirtualCursorStatus","DeferredCookie","DetectBrokenProxyCache","ErrorGuard","JSScheduler","SimplePageLoadLogger","WebStorageMonster","cr:10026","cr:1201738","cr:1332233","cr:1516609","cr:1813330","cr:2917","currentCometRouterInstance"],(function(a,b,c,d,e,f,g){"use strict";b("CometErrorRoot.react");b("CometFullPageCompatRoot.react");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,[]);b("cr:2917")&&c("ErrorGuard").applyWithGuard(function(){return b("cr:2917")()},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()});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,[])}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",["SiteData","WebBrowserDimensionsTypedLoggerLite","getViewportDimensions"],(function(a,b,c,d,e,f,g){"use strict";var h=null;function i(){h===null&&(h=c("getViewportDimensions")());return h}function a(a){var b,d=i();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("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","gkx","promiseDone","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;y(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;y(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;g=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&&y(a,b.current,c,e,f);i=g});return g}var s={height:36,scale:d("WebPixelRatio").get(),width:36},t=500,u=function(a,e){a=c("chunkArray")(Array.from(a),t);a=a.map(function(a){d("CometRelay").fetchQuery(e,o,{ids:a,scale:d("WebPixelRatio").get()},c("gkx")("1820749")?{fetchPolicy:"store-or-network"}:void 0).toPromise()});return b("Promise").all(a)},v=function(a,b,d){if(b.size===0)return;c("promiseDone")(u(b,d).then(function(b){d.commitUpdate(function(d){b.forEach(function(b){b=(b==null?void 0:(b=b.viewer)==null?void 0:b.chat_sidebar_contact_nodes)||[];b.forEach(function(b){var e,f=b==null?void 0:b.id;if(f==null)return;var g=d.get(f);g==null&&(g=d.create(f,"User"));var h=b==null?void 0:b.name;if(h==null)return c("recoverableViolation")("ContactProfilesQuery return empty name for user "+f,"messenger_comet");g.setValue(h,"name");h=g.getOrCreateLinkedRecord("profile_picture","Image",s);e=b==null?void 0:(e=b.profile_picture)==null?void 0:e.uri;if(e==null)return c("recoverableViolation")("ContactProfilesQuery return empty profileUri for user "+f,"messenger_comet");h.setValue(b==null?void 0:(e=b.profile_picture)==null?void 0:e.uri,"uri");g.setLinkedRecord(h,"profile_picture",s);a.push(g)})}),x(d,a)})}))},w=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));x(f,h)})};function x(a,b){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}a.setLinkedRecords(b,"chat_sidebar_contacts",{count:c("CometHomeContactsConfig").numContactsToFetch})}function y(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()}),w(a,b,e,d)}a={init:function(a,c,e,f,g){g=g!=null?g.map(function(a){return d("CometRelay").readInlineData(j!==void 0?j:j=b("PresenceStatusProviderSubscription_rankings.graphql"),a)}):null;var h=p(a),i=q(a,c,e,f,g),k=r(a,c,e,f,g);return{remove:function(){i.remove(),h.remove(),k.dispose()}}}};g["default"]=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,e=a.presenceInformer,f=a.presenceMap;a=k();var g=(a=a==null?void 0:(a=a.viewer)==null?void 0:a.chat_sidebar_contact_rankings)!=null?a:null,h=d("CometRelay").useRelayEnvironment();i(function(){var a=c("PresenceStatusProviderSubscription").init(h,f,e,b,g);return function(){a.remove()}},[h,e,f,g,b]);return null}g["default"]=a}),98); __d("CometRelayEF",["Bootloader","BootloaderEvents","ClientConsistencyEventEmitter","CometSSREntrypoint","cometAsyncFetch","gkx","performanceAbsoluteNow","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=new Map();function i(a,b){if(!c("gkx")("1334580"))return;a=d("CometSSREntrypoint").processRootEntryPoint(a,b);var e=[];a.forEach(function(a){a=a.name;h.has(a)||(e.push(a),d("BootloaderEvents").notifyHasteResponseEFStart("relay_3d",a))});if(e.length===0)return;var f=c("performanceAbsoluteNow")(),g=c("cometAsyncFetch")("/ajax/relay-ef/",{data:{queries:e},method:"POST"}).then(function(a){return{fetchPredictionsEnd:c("performanceAbsoluteNow")(),fetchPredictionsStart:f,payload:a}});e.forEach(function(a){return h.set(a,g)})}function a(a,b){if(!c("gkx")("1334580"))return;var e=c("performanceAbsoluteNow")();i(a,b);a=d("CometSSREntrypoint").processRootEntryPoint(a,b);a.forEach(function(a){var b=a.name,f=h.get(b);f&&f!==!0&&c("promiseDone")(f,function(a){var f=a.fetchPredictionsEnd,g=a.fetchPredictionsStart;a=a.payload;a!=null&&typeof a==="object"&&(c("Bootloader").loadPredictedResourceMap(a.predictions[b],{onLog:function(a){return d("BootloaderEvents").notifyHasteResponseEF("relay_3d",b,{fetchPredictionsEnd:f,fetchPredictionsStart:g,fetchRsrcsStart:e,tierOne:a})}},a.consistency.rev),c("ClientConsistencyEventEmitter").emit("newEntry",a.consistency))});h.set(a.name,!0)})}g.fetchPredictions=i;g.fetchPredictedResources=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._(/*FBT_CALL*/"Incoming video chat"/*FBT_CALL*/):h._(/*FBT_CALL*/"Incoming call"/*FBT_CALL*/);else return a?h._(/*FBT_CALL*/"Incoming group video chat"/*FBT_CALL*/):h._(/*FBT_CALL*/"Incoming group call"/*FBT_CALL*/)}function l(a){return h._(/*FBT_CALL*/"{caller name} is calling you. Click to answer."/*FBT_CALL*/,[h._param("caller name",a)])}g["default"]=a}),98); __d("ZenonDialogContext",["emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b=a.createContext({hide:c("emptyFunction"),hideAll:c("emptyFunction"),hideByID:c("emptyFunction"),show:c("emptyFunction"),showByID:c("emptyFunction"),toggle:c("emptyFunction")});e=b;g["default"]=e}),98); __d("useRTWebIncomingCallDialog",["fbt","ix","RTWebPreCallContext","ZenonDialogContext","ZenonUserActionLogger","cr:1568669","deferredLoadComponent","emptyFunction","fbicon","qpl","react","requireDeferred"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m=c("deferredLoadComponent")(c("requireDeferred")("RTWebCometIncomingCallContent.react").__setRef("useRTWebIncomingCallDialog")),n=c("deferredLoadComponent")(c("requireDeferred")("RTWebCometCallDialog.react").__setRef("useRTWebIncomingCallDialog")),o=b("cr:1568669")?b("cr:1568669").addPoint:c("emptyFunction");function a(){var a=l(c("ZenonDialogContext")),b=a.hide,e=a.show;a=l(c("RTWebPreCallContext"));var f=a?a.callInviteModel:null;return k(function(a){var g,k=a.inviterID,l=a.isVideoCall,q=a.onAccept,r=a.onDecline;a=a.participantIDs;d("ZenonUserActionLogger").logImpression({surface:"incoming_call_dialog"});o(c("qpl")._(64225282,"3408"),"render_dialog",{instanceKey:+(f==null?void 0:(g=f.getCurrentInvite())==null?void 0:g.ringID)});e(j.jsx(n,{acceptIcon:l?d("fbicon")._(i("493173"),16):d("fbicon")._(i("558160"),16),acceptLabel:h._(/*FBT_CALL*/"Accept"/*FBT_CALL*/),acceptTestid:"answerCallButton",body:j.jsx(m,{inviterID:k,isVideoCall:l,participantIDs:a}),declineLabel:h._(/*FBT_CALL*/"Decline"/*FBT_CALL*/),onClose:function(a){d("ZenonUserActionLogger").logClick({component:a?"accept_button":"decline_button",surface:"incoming_call_dialog"});b();return a?q():r()},title:p(l,a.length>1)}));return{dismiss:b}},[f,b,e])}function p(a,b){if(!b)return a?h._(/*FBT_CALL*/"Incoming video chat"/*FBT_CALL*/):h._(/*FBT_CALL*/"Incoming call"/*FBT_CALL*/);else return a?h._(/*FBT_CALL*/"Incoming group video chat"/*FBT_CALL*/):h._(/*FBT_CALL*/"Incoming group call"/*FBT_CALL*/)}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("useRTWebIncomingUnsupportedBrowserDialog",["RTWebIncomingUnsupportedBrowserDialogWrapper.react","ZenonDialogContext","ZenonUserActionLogger","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext;function a(){var a=j(c("ZenonDialogContext")),b=a.hide,e=a.show;return i(function(a){d("ZenonUserActionLogger").logImpression({surface:"unsupported_browser_dialog"});a=babelHelpers["extends"]({},a,{hide:b});e(h.jsx(c("RTWebIncomingUnsupportedBrowserDialogWrapper.react"),babelHelpers["extends"]({},a)));return{dismiss:b}},[b,e])}g["default"]=a}),98); __d("useRTWebMissedCallDialog",["fbt","ix","CometCardedDialogLoadingState.react","CometPlaceholder.react","JSResourceForInteraction","ZenonDialogContext","ZenonUserActionLogger","fbicon","lazyLoadComponent","react"],(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=c("lazyLoadComponent")(c("JSResourceForInteraction")("RTWebCometMissedCallContent.react").__setRef("useRTWebMissedCallDialog")),n=c("lazyLoadComponent")(c("JSResourceForInteraction")("RTWebCometCallDialog.react").__setRef("useRTWebMissedCallDialog"));function a(){var a=l(c("ZenonDialogContext")),b=a.hide,e=a.show;return k(function(a){var f=a.inviterID,g=a.isVideoCall,k=a.onCallback,l=a.participantIDs;a=a.timeMissed;d("ZenonUserActionLogger").logImpression({surface:"missed_call_dialog"});e(j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("CometCardedDialogLoadingState.react"),{}),children:j.jsx(n,{acceptIcon:g?d("fbicon")._(i("493173"),16):d("fbicon")._(i("558160"),16),acceptLabel:h._(/*FBT_CALL*/"Call back"/*FBT_CALL*/),body:j.jsx(m,{inviterID:f,isRoomCall:!1,isVideoCall:g,participantIDs:l,timeMissed:a}),declineLabel:h._(/*FBT_CALL*/"Close"/*FBT_CALL*/),onClose:function(a){d("ZenonUserActionLogger").logClick({component:a?"call_back":"close_dialog",surface:"missed_call_dialog"});a&&d("ZenonUserActionLogger").logClick({component:"start_call_button",surface:"missed_call_dialog"});b();return a?k():void 0},title:o(g,l.length>1)})}));return{dismiss:b}},[b,e])}function o(a,b){if(!b)return a?h._(/*FBT_CALL*/"Missed video chat"/*FBT_CALL*/):h._(/*FBT_CALL*/"Missed call"/*FBT_CALL*/);else return a?h._(/*FBT_CALL*/"Missed group video chat"/*FBT_CALL*/):h._(/*FBT_CALL*/"Missed group call"/*FBT_CALL*/)}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","VideoChatLinksUserActionsMultiplexLogger","ZenonDialogContext","react","useCometRelayEntrypointContextualEnvironmentProvider"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext;function a(){var a=j(c("ZenonDialogContext")),b=a.hide,e=a.show,f=c("useCometRelayEntrypointContextualEnvironmentProvider")();return i(function(a){var g=a.inviterID,i=a.linkUrl,j=a.onAccept,k=a.onDecline,l=a.roomName;a=a.sender;new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_received").setVideoCallLinkURLRaw(i).log();var m=d("CometRelay").loadEntryPoint(f,c("RTWebCometRoomIncomingCallDialog.entrypoint"),{});e(h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:m,props:{inviterID:g,linkUrl:i,onAccept:j,onDecline:k,roomName:l,sender:a}})}));return{dismiss:b}},[f,b,e])}g["default"]=a}),98); __d("useRoomMissedCallDialog",["fbt","ix","CometCardedDialogLoadingState.react","CometPlaceholder.react","JSResourceForInteraction","VideoChatLinksUserActionsMultiplexLogger","ZenonDialogContext","fbicon","lazyLoadComponent","react"],(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=c("lazyLoadComponent")(c("JSResourceForInteraction")("RTWebCometMissedCallContent.react").__setRef("useRoomMissedCallDialog")),n=c("lazyLoadComponent")(c("JSResourceForInteraction")("RTWebCometCallDialog.react").__setRef("useRoomMissedCallDialog"));function a(){var a=l(c("ZenonDialogContext")),b=a.hide,e=a.show;return k(function(a){var f=a.inviterID,g=a.linkUrl,k=a.onCallback,l=a.participantIDs,o=a.roomName;a=a.timeMissed;new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_missed").setVideoCallLinkURLRaw(g).log();e(j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("CometCardedDialogLoadingState.react"),{}),children:j.jsx(n,{acceptIcon:d("fbicon")._(i("493173"),16),acceptLabel:h._(/*FBT_CALL*/"Join"/*FBT_CALL*/),body:j.jsx(m,{inviterID:f,isRoomCall:!0,isVideoCall:!1,participantIDs:l,timeMissed:a}),declineLabel:h._(/*FBT_CALL*/"Close"/*FBT_CALL*/),onClose:function(a){a?(new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_accepted").setVideoCallLinkURLRaw(g).log(),k()):new(c("VideoChatLinksUserActionsMultiplexLogger"))().setSurface("vcl_meetups_notification").setEvent("room_ringback_missed_dialog_dismissed").setVideoCallLinkURLRaw(g).log(),b()},title:h._(/*FBT_CALL*/"Missed call from {room name}"/*FBT_CALL*/,[h._param("room name",o)])})}));return{dismiss:b}},[b,e])}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(){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&&(e.dismiss(),f(null));if(a===null)return;f(b())},[e,a,g,b]);return e}g["default"]=a}),98); __d("RTWebCometCallInviteDialogs.react",["Actor","RTWebPreCallContext","RTWebPreCallHooks","ServerTime","StartVideoChatLinkCall","qex","react","useRTWebIncomingCallDialog","useRTWebIncomingUnsupportedBrowserDialog","useRTWebMissedCallDialog","useRoomIncomingCallDialog","useRoomMissedCallDialog","useZenonDialogController"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useContext;function a(a){var b=a.invite;a=d("Actor").useActor();var e=a[0];a=h(c("RTWebPreCallContext"));var f=c("useRTWebIncomingCallDialog")(),g=c("useRoomIncomingCallDialog")(),i=c("useRTWebMissedCallDialog")(),j=c("useRoomMissedCallDialog")(),k=c("useRTWebIncomingUnsupportedBrowserDialog")(),l=d("RTWebPreCallHooks").useAcceptCallCallback(),m=d("RTWebPreCallHooks").useStartCallCallback(),n=a?a.callInviteModel:null;c("useZenonDialogController")(b,function(){if(b===null||n==null)return null;if(b.context.type==="room"){var a,h=b.context.room;a=(a=c("qex")._("1557"))!=null?a:!1;if(a)switch(b.type){case"ringing":return g({inviterID:b.inviterID,linkUrl:h.linkHash,onAccept:function(){d("StartVideoChatLinkCall").startCall(h.linkHash,!0,!0)},onDecline:function(){n.decline("IgnoreCall")},roomName:h.roomName,sender:h.sender});case"missed":return j({inviterID:b.inviterID,linkUrl:h.linkHash,onCallback:function(){d("StartVideoChatLinkCall").startCall(h.linkHash,!0,!0),n.dismiss()},participantIDs:b.participants,roomName:h.roomName,timeMissed:new Date(d("ServerTime").getMillis())});case"unsupported_browser":return k({inviterID:b.inviterID,isVideoCall:b.requestingVideo,onClose:function(){n.dismiss()},participantIDs:b.participants,threadType:3});default:return null}else switch(b.type){case"ringing":return g({inviterID:b.inviterID,linkUrl:h.linkHash,onAccept:function(){d("StartVideoChatLinkCall").startCall(h.linkHash,!0,!0)},onDecline:function(){n.decline("IgnoreCall")},roomName:h.roomName,sender:h.sender});case"missed":return j({inviterID:b.inviterID,linkUrl:h.linkHash,onCallback:function(){d("StartVideoChatLinkCall").startCall(h.linkHash,!0,!0),n.dismiss()},participantIDs:b.participants,roomName:h.roomName,timeMissed:new Date(d("ServerTime").getMillis())});default:return null}}switch(b.type){case"ringing":return f({inviterID:b.inviterID,isVideoCall:b.requestingVideo,onAccept:function(){l({trigger:"comet_incoming_dialog_accept_button"})},onDecline:function(){n.decline("IgnoreCall")},participantIDs:b.participants});case"missed":if(b.context.type==="thread"){var o=b.context.thread;return i({inviterID:b.inviterID,isVideoCall:b.requestingVideo,onCallback:function(){m({existingCall:null,invitees:[b.inviterID].concat(b.participants.filter(function(a){return a!==e})),mediaType:b.requestingVideo?"video":"audio",thread:o,trigger:"comet_missed_call_dialog"}),n.dismiss()},participantIDs:b.participants,timeMissed:new Date(d("ServerTime").getMillis())})}return null;case"unsupported_browser":return k({inviterID:b.inviterID,isVideoCall:b.requestingVideo,onClose:function(){n.dismiss()},participantIDs:b.participants,threadType:b.context.type==="thread"?b.context.thread.type:2});default:return null}});return null}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._(/*FBT_CALL*/"{name} is calling"/*FBT_CALL*/,[h._param("name",a.shortName)]):null);return null}g["default"]=a}),98); __d("useZenonDialogSetters",["react"],(function(a,b,c,d,e,f,g){"use strict";d("react");var h=d("react").useMemo;function a(a,b){return h(function(){return{hide:function(){a(null)},hideAll:function(){a(null),b([])},hideByID:function(a){b(function(b){return b.filter(function(b){return b.key!==a})})},show:a,showByID:function(a,c){b(function(b){var d=b.findIndex(function(b){return b.key===a}),e={key:a,node:c};if(d===-1)return[].concat(b,[e]);else return[].concat(b.slice(0,d),b.slice(d+1),[e])})},toggle:function(b){b===void 0&&(b=!1),b||a(null)}}},[a,b])}g["default"]=a}),98); __d("ZenonDialogProvider.react",["ZenonDialogContext","react","useZenonDialogSetters"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(a){a=a.children;var b=i(null),d=b[0];b=b[1];var e=i([]),f=e[0];e=e[1];b=c("useZenonDialogSetters")(b,e);return h.jsxs(c("ZenonDialogContext").Provider,{value:b,children:[a,d,f.map(function(a){a=a.node;return a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("RTWebCometCallInviteController.react",["RTWebCallBlockSettingHooks","RTWebCallInviteDesktopNotification.react","RTWebCometCallInviteDialogs.react","RTWebPreCallHooks","ZenonCallInviteRingtone.react","ZenonCallInviteTitleBlinking.react","ZenonDialogProvider.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(c("ZenonDialogProvider.react"),{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("RTWebCallWindowOpener",["cr:1099565"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:1099565")}),98); __d("RTWebCometIncomingCallContent.react",["fbt","CometProgressIndicator.react","RTWebCometCallMessageLayout.react","ZenonUsersHooks","cr:1568669","cr:1568670","emptyFunction","gkx","qpl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useEffect,k=b("cr:1568669")?b("cr:1568669").addPoint:c("emptyFunction"),l=b("cr:1568670")?b("cr:1568670").useCallInvite:c("emptyFunction"),m=c("gkx")("1536863")?e:c("emptyFunction");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();m(f,a,c("qpl")._(64225282,"3408"));a=a.length>1;var g=a?e?h._(/*FBT_CALL*/"{caller name} invited you to a group video chat."/*FBT_CALL*/,[h._param("caller name",b==null?void 0:b.name)]):h._(/*FBT_CALL*/"{caller name} invited you to a group call."/*FBT_CALL*/,[h._param("caller name",b==null?void 0:b.name)]):h._(/*FBT_CALL*/"{caller name} is calling you."/*FBT_CALL*/,[h._param("caller name",b==null?void 0:b.name)]);a=a?e?h._(/*FBT_CALL*/"Your video will be shared as soon as you answer"/*FBT_CALL*/):h._(/*FBT_CALL*/"The call will start as soon as you answer."/*FBT_CALL*/):h._(/*FBT_CALL*/"The call will start as soon as you answer."/*FBT_CALL*/);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 e(a,b,c){var d=n();j(function(){a.length===0&&k(c,"fetching_participants",{instanceKey:d}),a.length===b.length&&k(c,"fetched_participants",{instanceKey:d})},[d,b.length,a,c])}function n(){var a=l();return+(a==null?void 0:a.ringID)}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,e){var f;f=a.call(this)||this;f.$ZenonCallInviteModel3=function(a){c("FBLogger")("rtc_www").info("Received cancel for: ",a.ringID);if(f.__currentRequest&&f.__currentRequest.model&&f.__currentRequest.model.ringID===a.ringID)switch(a.reason){case d("ZenonIncomingRingSDKTypes").ZenonCancelReason.Hangup:a=((a=f.__currentRequest)==null?void 0:(a=a.model)==null?void 0:a.type)!==d("ZenonCallInviteModelTypes").CallInviteModelType.unsupported_browser;f.__currentRequest.model=babelHelpers["extends"]({},f.__currentRequest.model,{type:"missed"});a&&f.emit("callInvite",f.__currentRequest.model);break;case d("ZenonIncomingRingSDKTypes").ZenonCancelReason.OtherDismiss:f.dismiss();break}};f.$ZenonCallInviteModel2=function(a){c("FBLogger")("rtc_www").info("Receiving ring: ",a.ringID);var b=f.__ringFilter?f.__ringFilter(a):null;if(b!=null&&!b.allow)c("FBLogger")("rtc_www").info("Ring %s blocked by ring filter. Reason: %s",a.ringID,b.reason);else if(((b=f.__currentRequest)==null?void 0:(b=b.model)==null?void 0:b.type)==="ringing"){if(((b=f.__currentRequest)==null?void 0:(b=b.model)==null?void 0:b.ringID)!==a.ringID&&c("gkx")("1434282")){a.onDecline("InAnotherCall");c("FBLogger")("rtc_www").info("Sending InAnotherCall to ring: ",a.ringID,"Current ring: ",(b=f.__currentRequest)==null?void 0:(b=b.model)==null?void 0:b.ringID)}}else f.__currentRequest={model:{context:a.context,controllerParams:a.controllerParams,inviterID:a.inviterID,participants:a.otherParticipants,requestingVideo:a.requestingVideo,ringID:a.ringID,type:a.isClientPermissableRing?"ringing":"unsupported_browser"},ringPayload:a},f.emit("callInvite",f.__currentRequest.model),a.isClientPermissableRing||a.onDecline("VersionUnsupported")};f.$ZenonCallInviteModel1=function(a){c("FBLogger")("rtc_www").info("Blocking ring: ",a.ringID),a.onDecline("IgnoreCall",d("ZenonCallsModelTypes").ZenonEndCallSubreason.CallsBlocked)};f.__eventSource=b;f.__currentRequest=null;f.__ringFilter=e;return f}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("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:"j83agx80 bp9cbjyn",children:[i.jsx("div",{className:"oi9244e8",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:"hpfvmrgz",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:"aahdfvyu",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:"etr7akla l9j0dhe7 ozuftl9m n851cfcs tvfksri0 n1l5q3vz taijpn5t cbu4d94t j83agx80 bp9cbjyn","data-testid":void 0,children:[h.jsx("div",{className:"h4z51re5 osnr6wyh rv4hoivh jktsbyx5 n851cfcs spb7xbtv bkmhp75w emlxlaya s45kfl79 kozd3uwk moy3fgm5 jsrkvy3z gag4i7dh",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:"kr520xx4 j9ispegn pmk7jnqg fl8dtwsd gbhij3x4 tkv8g59h dsae2hpk taijpn5t n7fi1qx3 j83agx80 rq0escxv i09qtzwb kzizifcz c6a7hszh bp9cbjyn",children:k.jsxs("div",{className:"taijpn5t btwxx1t3 j83agx80 ll8tlv6m",children:[g&&k.jsx(c("CometWatchAndScrollActionButton.react"),{icon:d("fbicon")._(i("607168"),16),label:h._(/*FBT_CALL*/"More Videos on Watch"/*FBT_CALL*/),onPress:function(){n(null),o("watch_button")},url:c("XCometWatchControllerRouteBuilder").buildURL({})}),k.jsx(c("CometWatchAndScrollActionButton.react"),{icon:d("fbicon")._(i("534218"),16),label:h._(/*FBT_CALL*/"Replay video"/*FBT_CALL*/),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._(/*FBT_CALL*/"Share"/*FBT_CALL*/),onPress:function(){b(),o("share_button")}})},video:a})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScrollUpNextCard.react",["fbt","CometLink.react","CometRelay","CometResponsiveColumns.react","CometTahoeEndScreenProgressCircle.react","CometWatchAndScrollUpNextCard_video.graphql","TetraText.react","VideoPlayerHooks","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k={backgroundThumbnail:{backgroundPosition:"skiu6z9h",backgroundSize:"r4lidvzm",borderTopStartRadius:"jk6sbkaj",borderTopEndRadius:"kdgqqoy6",borderBottomEndRadius:"ihh4hy1g",borderBottomStartRadius:"qttc61fc",bottom:"i09qtzwb",boxSizing:"rq0escxv",end:"n7fi1qx3",position:"pmk7jnqg",start:"j9ispegn",top:"kr520xx4"},cardRoot:{backgroundColor:"cwj9ozl2",borderTopStartRadius:"ue3kfks5",borderTopEndRadius:"pw54ja7n",borderBottomEndRadius:"uo3d90p7",borderBottomStartRadius:"l82x9zwi",bottom:"mio9le5o",display:"j83agx80",end:"n7fi1qx3",marginTop:"aov4n071",marginEnd:"oi9244e8",marginBottom:"bi6gxh9e",marginStart:"h676nmdw",paddingTop:"cxgpxx05",paddingEnd:"dflh9lhu",paddingBottom:"sj5x9vvc",paddingStart:"scb9dxdr",position:"pmk7jnqg",start:"j9ispegn"},metaColumn:{flexBasis:"ovwxwvn6"},metadataContainer:{display:"j83agx80",flexDirection:"cbu4d94t",marginBottom:"qzhwtbm6",marginTop:"knvmm38d"},previewContainer:{alignItems:"bp9cbjyn",display:"j83agx80",flexDirection:"cbu4d94t",height:"pkqgeaxr",justifyContent:"taijpn5t",position:"pmk7jnqg",start:"j9ispegn",top:"kr520xx4",width:"e1e8jytk"},thumbnailColumn:{flexBasis:"cy3bvc1o"},upNextText:{marginBottom:"dicw6rsg"},videoMetaText:{marginTop:"aov4n071"}};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:c("stylex")(k.backgroundThumbnail),style:e});var m=a.title_with_fallback;a=(a=a.owner)==null?void 0:a.name;return j.jsx("div",{className:c("stylex")(k.cardRoot),children:j.jsxs(d("CometResponsiveColumns.react").Container,{children:[j.jsx(d("CometResponsiveColumns.react").Column,{xstyle:k.thumbnailColumn,children:j.jsxs("div",{className:c("stylex")(k.previewContainer),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:c("stylex")(k.metadataContainer),children:[j.jsx("div",{className:c("stylex")(k.upNextText),children:j.jsx(c("TetraText.react"),{color:"secondary",type:"meta4",children:h._(/*FBT_CALL*/"UP NEXT"/*FBT_CALL*/)})}),j.jsx("div",{className:c("stylex")(k.videoMetaText),children:j.jsx(c("TetraText.react"),{color:"secondary",numberOfLines:1,type:"body4",children:a})}),j.jsx("div",{className:c("stylex")(k.videoMetaText),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("CometWatchAndScrollChaining.react",["fbt","ix","CometBackgroundImage.react","CometPressable.react","CometRelay","CometSetWatchAndScrollVideoContext","CometTahoeEndScreenProgressCircle.react","CometTheme.react","CometWatchAndScrollChainingQuery.graphql","CometWatchAndScrollContextSection.react","CometWatchAndScrollFallbackCTAScreen.react","CometWatchAndScrollSetStoryViewabilityLoggerContext","CometWatchAndScrollUpNextCard.react","CometWatchAndScrollVideoContext","TetraIcon.react","TetraText.react","VideoPlayerHooks","WebPixelRatio","fbicon","qex","react","requireDeferred","useCometTahoeChainingDepth"],(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("CometWatchAndScrollChaining.react");function a(a){var e=a.hidden,f=a.routeTracePolicy,g=a.seedVideoID,q=a.subOrigin,r=m(c("CometWatchAndScrollVideoContext"));a=r==null?void 0:r.chainingCursor;var s=!!c("qex")._("1652");a=d("CometRelay").useLazyLoadQuery(j!==void 0?j:j=b("CometWatchAndScrollChainingQuery.graphql"),{caller:"WNS",chainingCursor:a,channelEntryPoint:"WNS",count:1,scale:d("WebPixelRatio").get(),seedVideoID:g});var t=d("useCometTahoeChainingDepth").useChainingDepthContext(),u=t.chainingDepthDispatch;t=o(!1);var v=t[0],w=t[1],x=d("VideoPlayerHooks").useController(),y=m(c("CometSetWatchAndScrollVideoContext"));t=(t=a.video)==null?void 0:(t=t.video_channel)==null?void 0:(t=t.video_channel_feed)==null?void 0:(t=t.edges)==null?void 0:t[0];var z=t==null?void 0:t.cursor,A=t==null?void 0:t.node;t=A==null?void 0:(t=A.attachments)==null?void 0:(t=t[0])==null?void 0:t.media;var B=t!=null&&t.__typename==="Video"?t==null?void 0:t.id:null;n(function(){!e&&!v&&p.onReady(function(a){a.log({event:"watch_and_scroll_end_screen_impression"})})},[e,v]);var C=m(c("CometWatchAndScrollSetStoryViewabilityLoggerContext")),D=l(function(a){p.onReady(function(b){b.log({event:a})}),y({chainingCursor:z,chainingSeedVideoID:g,routeTracePolicy:f,sessionStartTime:r==null?void 0:r.sessionStartTime,sessionTrigger:r==null?void 0:r.sessionTrigger,subOrigin:q,videoID:B}),C({clientViewConfig:A==null?void 0:A.client_view_config,encryptedTracking:A==null?void 0:A.encrypted_tracking,trackingCode:{click_tracking_linkshim_cb:(A==null?void 0:A.click_tracking_linkshim_cb)||"",encrypted_click_tracking:(A==null?void 0:A.encrypted_click_tracking)||"",encrypted_tracking:(A==null?void 0:A.encrypted_tracking)||""},videoID:B,viewabilityConfig:A==null?void 0:A.viewability_config})},[B,z,f,g,C,y,A==null?void 0:A.click_tracking_linkshim_cb,A==null?void 0:A.client_view_config,A==null?void 0:A.encrypted_click_tracking,A==null?void 0:A.encrypted_tracking,A==null?void 0:A.viewability_config,q,r==null?void 0:r.sessionStartTime,r==null?void 0:r.sessionTrigger]);if(v)return k.jsx(c("CometWatchAndScrollFallbackCTAScreen.react"),{setIsCanceled:w,video:a==null?void 0:a.video});if(t==null||t.__typename!=="Video"){p.onReady(function(a){a.log({event:"watch_and_scroll_chaining_query_empty"})});return k.jsx(c("CometWatchAndScrollFallbackCTAScreen.react"),{setIsCanceled:w,video:a==null?void 0:a.video})}a=(a=t.image)==null?void 0:a.uri;var E=function(){w(!0),p.onReady(function(a){a.log({click_point:"cancel_button",click_target:"watch_and_scroll_end_screen",event:"click"})})},F=function(){x.play("user_initiated"),p.onReady(function(a){a.log({click_point:"replay",click_target:"watch_and_scroll_end_screen",event:"click"})})},G=h._(/*FBT_CALL*/"Replay"/*FBT_CALL*/);return s?k.jsx(c("CometWatchAndScrollUpNextCard.react"),{hidden:e,onNextVideo:function(a){D(a),u&&u({type:"INCREMENT"})},video:t}):k.jsx(c("CometTheme.react"),{theme:"dark",children:k.jsxs("div",{className:"kr520xx4 j9ispegn pmk7jnqg n7fi1qx3 rq0escxv i09qtzwb",children:[k.jsx("div",{className:"kr520xx4 j9ispegn pmk7jnqg n7fi1qx3 rq0escxv i09qtzwb",children:a!=null&&k.jsx(c("CometBackgroundImage.react"),{src:a})}),k.jsxs("div",{className:"kr520xx4 j9ispegn pmk7jnqg h4z51re5 osnr6wyh rv4hoivh jktsbyx5 cbu4d94t n7fi1qx3 j83agx80 rq0escxv i09qtzwb c6a7hszh",children:[k.jsx("div",{className:"oud54xpy",children:k.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"body3",children:h._(/*FBT_CALL*/"UP NEXT FROM WATCH"/*FBT_CALL*/)})}),k.jsx(c("CometWatchAndScrollContextSection.react"),{video:t}),k.jsxs("div",{className:"km676qkl j83agx80 bp9cbjyn",children:[k.jsx("div",{className:"oi9244e8",children:k.jsx(c("TetraIcon.react"),{"aria-label":G,color:"white",icon:d("fbicon")._(i("534219"),20),onPress:F})}),k.jsx(c("CometPressable.react"),{onPress:F,children:k.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"bodyLink4",children:G})})]})]}),k.jsx("div",{className:"kr520xx4 j9ispegn pmk7jnqg hzruof5a taijpn5t cbu4d94t n7fi1qx3 j83agx80 rq0escxv i09qtzwb bp9cbjyn",children:k.jsxs("div",{className:"oqq733wu jei6r52m",children:[!e&&k.jsx(c("CometPressable.react"),{"aria-label":h._(/*FBT_CALL*/"Play next video"/*FBT_CALL*/),onPress:function(){D("watch_and_scroll_chaining_click_advance"),u&&u({type:"INCREMENT"})},children:k.jsx(c("CometTahoeEndScreenProgressCircle.react"),{circleDiameter:44,circleStrokeColor:"var(--base-blue)",circleStrokeWidth:3,iconSize:20,isMakingProgress:!e,onProgressDone:function(){D("watch_and_scroll_chaining_auto_advance"),u&&u({type:"INCREMENT"})},timeoutSec:6})}),k.jsx("div",{className:"ku2m03ct",children:k.jsx(c("CometPressable.react"),{onPress:E,children:k.jsx(c("TetraText.react"),{color:"secondary",type:"bodyLink4",children:h._(/*FBT_CALL*/"Cancel"/*FBT_CALL*/)})})})]})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerWithWatchAndScrollChaining.react",["CometLoadingAnimation.react","CometPlaceholder.react","CometWatchAndScrollChaining.react","CometWatchAndScrollVideoContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function a(a){var b=a.hidden,d=a.routeTracePolicy;a=a.subOrigin;var e=i(c("CometWatchAndScrollVideoContext"));e=e==null?void 0:e.chainingSeedVideoID;return e==null?null:h.jsx(c("CometPlaceholder.react"),{fallback:h.jsx("div",{className:"kr520xx4 j9ispegn pmk7jnqg taijpn5t n7fi1qx3 j83agx80 rq0escxv i09qtzwb c6a7hszh bp9cbjyn",children:h.jsx("div",{className:"thwo4zme l9j0dhe7 tv7at329",children:h.jsx(c("CometLoadingAnimation.react"),{size:36})})}),children:h.jsx(c("CometWatchAndScrollChaining.react"),{hidden:b,routeTracePolicy:d,seedVideoID:e,subOrigin:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=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._(/*FBT_CALL*/"Close captions menu"/*FBT_CALL*/),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:"enjifjd9 k4urcfbm kr520xx4 j9ispegn poy2od1o datstx6m","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","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l={captionsDisplayLabel:{fontSize:"e9vueds3",fontWeight:"lrazzd5p",marginStart:"ozuftl9m"},chevronLeft:{alignItems:"bp9cbjyn",display:"pq6dq46d"},chevronRight:{display:"a8c37x1j"},icon:{display:"q9uorilb"},menuHeading:{alignItems:"bp9cbjyn",color:"ljqsnud1",cursor:"nhd2j8a9",display:"j83agx80",fontWeight:"lrazzd5p",":hover":{textDecoration:"p8dawk7l"}},menuOptionLabel:{cursor:"nhd2j8a9",display:"q9uorilb",fontSize:"e9vueds3",fontWeight:"lrazzd5p",width:"ohfs48kq"},menuOptionRow:{color:"ljqsnud1",display:"a8c37x1j",outline:"lzcic4wl",paddingTop:"cxgpxx05",paddingEnd:"rz4wbd8a",paddingBottom:"sj5x9vvc",paddingStart:"a8nywdso",textAlign:"hzawbc8m",width:"fwkrndq2"},menuOptions:{marginTop:"ku2m03ct"},menuOptionValue:{fontSize:"e9vueds3",fontWeight:"b1v8xokw"},pressableOption:{width:"k4urcfbm"}},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._(/*FBT_CALL*/"Background Color"/*FBT_CALL*/),name:"captionsBackgroundColor"},"Background Opacity":{ftbLabel:h._(/*FBT_CALL*/"Background Opacity"/*FBT_CALL*/),name:"captionsBackgroundOpacity"},"Text Color":{ftbLabel:h._(/*FBT_CALL*/"Text Color"/*FBT_CALL*/),name:"captionsTextColor"},"Text Size":{ftbLabel:h._(/*FBT_CALL*/"Text Size"/*FBT_CALL*/),name:"captionsTextSize"}},o={Black:h._(/*FBT_CALL*/"Black"/*FBT_CALL*/),Blue:h._(/*FBT_CALL*/"Blue"/*FBT_CALL*/),Cyan:h._(/*FBT_CALL*/"Cyan"/*FBT_CALL*/),Green:h._(/*FBT_CALL*/"Green"/*FBT_CALL*/),Magenta:h._(/*FBT_CALL*/"Magenta"/*FBT_CALL*/),Red:h._(/*FBT_CALL*/"Red"/*FBT_CALL*/),White:h._(/*FBT_CALL*/"White"/*FBT_CALL*/),Yellow:h._(/*FBT_CALL*/"Yellow"/*FBT_CALL*/)};function p(a){var b=null,c=null;switch(a){case"(50%)":b=h._(/*FBT_CALL*/"Small"/*FBT_CALL*/);c="X-";break;case"(75%)":b=h._(/*FBT_CALL*/"Small"/*FBT_CALL*/);break;case"(125%)":b=h._(/*FBT_CALL*/"Large"/*FBT_CALL*/);break;case"(150%)":b=h._(/*FBT_CALL*/"Large"/*FBT_CALL*/);c="X-";break;case"(175%)":b=h._(/*FBT_CALL*/"Large"/*FBT_CALL*/);c="XX-";break;case"(200%)":b=h._(/*FBT_CALL*/"Large"/*FBT_CALL*/);c="XXX-";break;case"(100%)":b=h._(/*FBT_CALL*/"Medium"/*FBT_CALL*/)}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:c("stylex")(l.menuOptionLabel),children:[n[d].ftbLabel,j.jsx("div",{className:c("stylex")(l.menuOptionValue),"data-testid":void 0,children:g==="captionsTextSize"?p(e):h})]}),j.jsx("div",{className:c("stylex")(l.icon),children:j.jsx("div",{className:c("stylex")(l.chevronRight),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:c("stylex")(l.menuHeading),children:j.jsxs(c("CometPressable.react"),{onPress:a,xstyle:l.pressableOption,children:[j.jsx("span",{className:c("stylex")(l.chevronLeft),children:j.jsx(c("CometImage.react"),{src:i("480580")})}),j.jsx("span",{className:c("stylex")(l.captionsDisplayLabel),children:h._(/*FBT_CALL*/"Subtitle Options"/*FBT_CALL*/)})]})}),j.jsx("div",{className:c("stylex")(l.menuOptions),"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","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l={chevronLeft:{alignItems:"bp9cbjyn",display:"pq6dq46d",width:"la0tivve"},icon:{display:"q9uorilb",width:"la0tivve"},menuHeading:{alignItems:"bp9cbjyn",color:"ljqsnud1",cursor:"nhd2j8a9",display:"j83agx80",fontSize:"e9vueds3",fontWeight:"lrazzd5p",":hover":{textDecoration:"p8dawk7l"}},menuLabel:{cursor:"nhd2j8a9",display:"q9uorilb"},menuOptionRow:{color:"ljqsnud1",display:"a8c37x1j",outline:"lzcic4wl",paddingTop:"cxgpxx05",paddingEnd:"rz4wbd8a",paddingBottom:"sj5x9vvc",paddingStart:"a8nywdso",textAlign:"hzawbc8m"},menuOptions:{fontSize:"e9vueds3",fontWeight:"b1v8xokw",marginTop:"ku2m03ct"},pressableOption:{width:"k4urcfbm"}},m={captionsBackgroundColor:h._(/*FBT_CALL*/"Background Color"/*FBT_CALL*/),captionsBackgroundOpacity:h._(/*FBT_CALL*/"Background Opacity"/*FBT_CALL*/),captionsTextColor:h._(/*FBT_CALL*/"Text Color"/*FBT_CALL*/),captionsTextSize:h._(/*FBT_CALL*/"Text Size"/*FBT_CALL*/)},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:c("stylex")(l.icon),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:c("stylex")(l.menuLabel),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:c("stylex")(l.menuHeading),children:j.jsxs(c("CometPressable.react"),{onPress:p,testid:void 0,xstyle:l.pressableOption,children:[j.jsx("span",{className:c("stylex")(l.chevronLeft),children:j.jsx(c("CometImage.react"),{src:i("480580")})}),a]})}),j.jsx("div",{className:c("stylex")(l.menuOptions),"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","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useEffect,l={icon:{display:"q9uorilb",width:"odw8uiq3"},menuLabel:{cursor:"nhd2j8a9",display:"q9uorilb",marginStart:"gu00c43d",width:"e6erh6tl"},menuOptionRow:{color:"ljqsnud1",display:"a8c37x1j",fontSize:"e9vueds3",fontWeight:"b1v8xokw",minWidth:"jrlfinob",outline:"lzcic4wl",paddingTop:"cxgpxx05",paddingEnd:"rz4wbd8a",paddingBottom:"sj5x9vvc",paddingStart:"a8nywdso",textAlign:"hzawbc8m",":hover":{backgroundColor:"hb574vwe"}},menuOptions:{marginTop:"ku2m03ct",maxHeight:"jl1kqi8g"},moreOptionsLabel:{cursor:"nhd2j8a9",display:"q9uorilb",marginStart:"fp4oknrt"}},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:c("stylex")(l.icon),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:c("stylex")(l.menuLabel),children:[e.localized_language,(b=e.localized_country)!=null?b:null,!a&&h._(/*FBT_CALL*/"(Provided by Author)"/*FBT_CALL*/)]})]})}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:c("stylex")(l.menuOptions),"data-testid":void 0,children:[j.jsxs(c("CometPressable.react"),{onPress:function(){r(""),s.setCaptionsVisible(!1)},xstyle:l.menuOptionRow,children:[j.jsx("div",{className:c("stylex")(l.icon),children:o===""&&j.jsx(c("TetraIcon.react"),{color:"white",icon:d("fbicon")._(i("477813"),16)})}),j.jsx("div",{className:c("stylex")(l.menuLabel),children:h._(/*FBT_CALL*/"Off"/*FBT_CALL*/)})]}),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:c("stylex")(l.moreOptionsLabel),children:h._(/*FBT_CALL*/"See more"/*FBT_CALL*/)})}),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:c("stylex")(l.moreOptionsLabel),children:h._(/*FBT_CALL*/"See less"/*FBT_CALL*/)})})]})})]})})}a.displayName=a.name+" [from "+f.id+"]";g.VideoPlayerCaptionsMenuMainPane=a}),98); __d("VideoPlayerCaptionsMenuTopBar.react",["fbt","ix","CometImage.react","CometPressable.react","VideoPlayerCaptionsMenu.react","VideoPlayerHooks","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useCallback,l={"default":{color:"ljqsnud1",display:"j83agx80",minWidth:"b38knevg"},label:{fontSize:"e9vueds3",fontWeight:"lrazzd5p"},labelAutoGenerated:{fontSize:"e9vueds3",fontStyle:"fmqa7x8m"},option:{alignItems:"bp9cbjyn",color:"ljqsnud1",cursor:"nhd2j8a9",display:"pq6dq46d",flexGrow:"idf2khru",justifyContent:"bkfpd7mw",marginStart:"scy8460b"},optionsLabel:{display:"pq6dq46d",fontWeight:"b1v8xokw",marginStart:"ggphbty4"},pressableOption:{width:"k4urcfbm"},settingIconRight:{display:"pq6dq46d"}};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:c("stylex")(l["default"]),children:j.jsxs(c("CometPressable.react"),{onPress:a,testid:void 0,xstyle:l.pressableOption,children:[j.jsx("div",{className:c("stylex")(l.label),children:h._(/*FBT_CALL*/"Subtitles"/*FBT_CALL*/)}),j.jsxs("div",{className:c("stylex")(l.option),children:[j.jsx("span",{className:c("stylex")(l.settingIconRight),children:j.jsx(c("CometImage.react"),{src:i("492300")})}),j.jsx("div",{className:c("stylex")(l.optionsLabel),children:h._(/*FBT_CALL*/"Options"/*FBT_CALL*/)})]})]})}),b!=null&&b&&j.jsx("div",{className:c("stylex")(l.labelAutoGenerated),children:h._(/*FBT_CALL*/"Auto-generated"/*FBT_CALL*/)})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("VideoPlayerCaptionsControl.react",["fbt","ix","CometRelay","VideoPlayerCaptionsControl_video.graphql","VideoPlayerCaptionsMenu.react","VideoPlayerControlIcon.react","VideoPlayerDefaultControlsProperties","VideoPlayerHooks","VideoPlayerLoggingSuboriginContext","VideoPlayerUserInteractionCounter","fbicon","gkx","react","requireDeferred","stylex","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.useState,p=c("requireDeferred")("VideoHomeTypedLoggerLite").__setRef("VideoPlayerCaptionsControl.react");function a(a){var e=a.alignMenuToIcon;e=e===void 0?!1:e;var f=a.captionsVisible,g=a.children;g=g===void 0?null:g;var q=a.compactMenu,r=a.icon,s=a.menuOpened,t=a.onMenuOpen,u=a.onUserInteraction,v=a.setMenuOpened;a=a.video;var w=h._(/*FBT_CALL*/"Captions"/*FBT_CALL*/);d("VideoPlayerUserInteractionCounter").useVideoPlayerUserInteraction("video_captions_menu",s===d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_CAPTIONS_MENU,u);u=d("CometRelay").useFragment(j!==void 0?j:j=b("VideoPlayerCaptionsControl_video.graphql"),a);var x=d("VideoPlayerHooks").useMuted(),y=d("VideoPlayerHooks").useController();a=o(null);var z=a[0],A=a[1],B=c("usePlayerOriginRouteTracePolicy")(),C=c("gkx")("5235");n(function(){C&&(x&&!f&&z===null&&(A(!0),y.setCaptionsVisible(!0)),!x&&z===!0&&(y.setCaptionsVisible(!1),A(!1)))},[f,z,A,y,x,C]);var D=u==null?void 0:u.video_available_captions_locales,E=u==null?void 0:u.captions_url;a=o("");u=a[0];var F=a[1];n(function(){D==null?void 0:D.map(function(a){a.captions_url===E&&a.locale!=null&&F(a.locale)})},[D,E]);a=[];if(D!=null)for(var G=D,H=Array.isArray(G),I=0,G=H?G:G[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var J;if(H){if(I>=G.length)break;J=G[I++]}else{I=G.next();if(I.done)break;J=I.value}J=J;var K={};K.captions_url=J.captions_url;K.localized_country=J.localized_country;K.localized_creation_method=J.localized_creation_method;K.localized_language=J.localized_language;K.locale=J.locale;a.push(K)}a.sort(function(a,b){return((a=a.localized_language)!=null?a:"")>((a=b.localized_language)!=null?a:"")?1:-1});var L=s===d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_CAPTIONS_MENU;J=o(!1);K=J[0];I=J[1];var M=m(c("VideoPlayerLoggingSuboriginContext")),N=l(function(a,b){a===void 0&&(a=null),b===void 0&&(b=null),p.onReady(function(c){c.log({click_point:a,event:"click",event_target_info:B,event_target_sub_type:b,player_suborigin:M})})},[B,M]);return k.jsxs("div",{className:"ggphbty4 w0hvl6rk fv0vnmcu qjjbsfad q9uorilb"+(e===!0?" g0qnabr5 l9j0dhe7":""),"data-testid":void 0,children:[L&&k.jsx("div",{className:c("stylex").dedupe({"background-color-1":"i6mnz4h1","border-top-start-radius-1":"jk6sbkaj","border-top-end-radius-1":"kdgqqoy6","border-bottom-end-radius-1":"ihh4hy1g","border-bottom-start-radius-1":"qttc61fc","bottom-1":"c55xq0r4","color-1":"ljqsnud1","margin-left-1":"nd86bwwq","max-height-1":"jl64ab26","max-width-1":"q9x9keny","padding-top-1":"discj3wi","padding-end-1":"hv4rvrfc","padding-bottom-1":"ihqw7lf3","padding-start-1":"dati1w0a","position-1":"pmk7jnqg","right-1":"a5343qcf","width-1":"bc3a0qav"},q===!0?{"right-1":"cq2v5s49"}:null,e===!0?{"right-1":"k7ouz845"}:null),children:k.jsx(d("VideoPlayerCaptionsMenu.react").VideoPlayerCaptionsMenu,{availableCaptionsLocales:a,captionsListExpanded:K,onClose:function(){v!=null&&v(null)},onPressLog:N,selectedCaptionsLocale:u,setCaptionsListExpanded:I,setSelectedCaptionsLocale:F,children:g})}),k.jsx(c("VideoPlayerControlIcon.react"),{icon:r==null?f?d("fbicon")._(i("662652"),20):d("fbicon")._(i("662655"),20):r,label:w,onPress:function(){v!=null&&v(L?null:d("VideoPlayerDefaultControlsProperties").VideoMenuType.VIDEO_CAPTIONS_MENU),!L&&t!=null&&t(),N("closed_captions_button")},tooltip:w})]})}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._(/*FBT_CALL*/"Show comments and reactions"/*FBT_CALL*/):h._(/*FBT_CALL*/"Hide comments and reactions"/*FBT_CALL*/);return j.jsx("div",{className:"ggphbty4 w0hvl6rk fv0vnmcu qjjbsfad q9uorilb",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:"nqmqzb3c"}},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._(/*FBT_CALL*/"Continue watching while you browse Facebook."/*FBT_CALL*/),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","CometRelay","CometRouteRenderType","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;function a(a){var e=a.subOrigin;a=a.video;var f=m(c("CometWatchAndScrollTriggerContext")),g=f.isControlShown,s=f.setIsControlShown;f=d("CometRouteRenderType").useIsPushView();var t=d("VideoPlayerHooks").useIsFullscreen(),u=c("useCometRouterDispatcher")(),v=c("useCometRouterState")(),w=(v=v==null?void 0:v.main.route.tabKey)!=null?v:"undefined";v=d("CometRelay").useFragment(j!==void 0?j:j=b("VideoPlayerWatchAndScrollControl_video.graphql"),a);var x=v==null?void 0:v.id;a=(a=v==null?void 0:v.playable_duration_in_ms)!=null?a:0;var y=v==null?void 0:v.is_huddle;n(function(){s!=null&&s(!0)},[s]);var z=c("usePlayerOriginRouteTracePolicy")(),A=c("useIsVideoHomePlayerOriginFromTracePolicy")(z);v=(v==null?void 0:(v=v.owner)==null?void 0:v.has_professional_features_for_watch)===!0&&a>=r&&g&&!A;var B=d("VideoPlayerHooks").usePlaying(),C=d("VideoPlayerHooks").useController();a=C.getPlayheadPosition();var D=a>=10;g=o(!1);A=g[0];var E=g[1];a=c("gkx")("3017");g=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsStateValue();g=g==="STARTING_INDICATOR"||g==="PLAY_NI_VIDEO"||g==="START_AD"||g==="PLAY_LONGER_AD";n(function(){B&&D&&E(!0)},[D,B]);var F=d("CastingStateHooks").useIsCastingAnyVideo(),G=c("useCometLazyDialog")(q),H=G[0];G=!g&&A&&v;g=c("useVideoPlayerWatchAndScrollControlNUX")(G);var I=g.handleDismissNUX;A=g.nuxRef;v=g.shouldShowNUX;var J=v===!0&&G;g=m(c("CometWatchAndScrollControlNUXContext"));var K=g.setIsVideoPlayerWatchAndScrollControlNUXVisible;n(function(){K&&K(J)},[J,K]);var L=d("useWatchAndScrollTrigger").useWatchAndScrollTrigger(e,d("VideoPlayerWithWatchAndScrollTrigger.react").WatchAndScrollTriggerType.WNS_CONTROL,x),M=z==="comet.videos.tahoe",N=l(function(){F&&x!=null?H({onClose:c("emptyFunction"),onContinue:L,startingVideoType:"wns"},c("emptyFunction")):L()},[F,L,H,x]);v=l(function(){N(),p.onReady(function(a){a.log({click_point:"control_watch_and_scroll",event:"click",event_target_info:w})}),J===!0&&I(),u&&u.popPushView&&u.popPushView()},[N,J,u,w,I]);var O=e==="live_producer";G=l(function(){N(),p.onReady(function(a){a.log({click_point:"control_watch_and_scroll",event:"click",event_target_info:w})}),J===!0&&I(),t&&C.requestSetIsFullscreen(!1),u!=null&&(O||M)&&u.go("/",{})},[N,J,t,w,I,C,u,O,M]);g=f?v:G;c("gkx")("1224637")?z=h._(/*FBT_CALL*/"Continue watching while you use Workplace"/*FBT_CALL*/):y===!0?z=h._(/*FBT_CALL*/"Continue listening while you browse Facebook."/*FBT_CALL*/):z=h._(/*FBT_CALL*/"Continue watching while you browse Facebook."/*FBT_CALL*/);return k.jsx("div",{ref:A,children:k.jsx(c("VideoPlayerControlIcon.react"),{color:"white",icon:a?d("fbicon")._(i("150489"),20):d("fbicon")._(i("1414201"),20),label:z,onPress:g,tooltip:J?null:z})})}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.shouldRenderCostreamControl;A=A===void 0?!1:A;var B=a.shouldRenderModeratorControl;B=B===void 0?!1:B;var C=a.subOrigin,D=f==null?void 0:f.id;b=f==null?void 0:(b=f.owner)==null?void 0:b.id;var E=f==null?void 0:f.if_viewer_can_see_costreaming_tools,F=E!=null,G=f==null?void 0:f.if_viewer_can_use_clipping,H=(f==null?void 0:f.is_clipping_enabled)===!0,I=f==null?void 0:f.if_viewer_can_see_community_moderation_tools,J=I!=null,K=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&&C!=null&&f!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:y,children:i.jsx(c("VideoPlayerWatchAndScrollControl.react"),{subOrigin:C,video:f})}):null;u=C==="watch_scroll";return i.jsxs(c("VideoPlayerControlsContainerOverlay.react"),{isBackgroundVisible:v,isVisible:t,children:[e?i.jsx(d("CometRelay").MatchContainer,{match:K,props:{isControlsVisible:v&&!g,onUserInteraction:z,video:K}}):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&&D!=null&&i.jsx(c("LiveCostreamerTagSubscription.react"),{pageID:b,videoID:D}),F&&A&&D!=null&&!h&&i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:E,props:{video:E}})}),a.shouldRenderQuietModeControl===!0&&!h&&i.jsx(c("VideoPlayerQuietModeControl.react"),{}),H&&D!=null&&i.jsx(d("CometRelay").MatchContainer,{match:G,props:{video:G,videoID:D}}),J&&B?i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").MatchContainer,{match:I,props:{video:I,videoID:D}})}):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&&!u&&c("gkx")("5104")?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&&C!=null&&f!=null?i.jsx(c("VideoPlayerCastControlShim.react"),{isVisible:v&&!g,subOrigin:C}):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.shouldHideRewindControls,l=a.shouldRenderCostreamControl,m=a.shouldRenderModeratorControl,n=a.shouldRenderPauseControl,o=a.shouldRenderQuietModeControl,p=a.shouldRenderWatchAndScrollControl,q=a.subOrigin,r=a.video;a=a.videoTahoeUrl;r=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerDefaultControlsImplLive_video.graphql"),r);return i.jsx(c("VideoPlayerLiveVideoControls.react"),{expandControl:e,isControlsVisible:f,isVolumeControlVisible:g,onUserInteraction:j,shouldHideRewindControls:k,shouldRenderCostreamControl:l,shouldRenderModeratorControl:m,shouldRenderPauseControl:n,shouldRenderQuietModeControl:o,shouldRenderWatchAndScrollControl:p,subOrigin:q,video:r,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;function a(a){var e=a.expandControl,f=a.isControlsVisible,g=a.isVolumeControlVisible,n=a.onUserInteraction,o=a.shouldRenderQuietModeControl;o=o===void 0?!1:o;var p=a.shouldRenderWatchAndScrollControl,q=a.skipControl,r=a.subOrigin;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerDefaultControlsImplNotLive_video.graphql"),a);var s=d("VideoPlayerHooks").useIsFullscreen(),t=a==null?void 0:a.id,u=a==null?void 0:a.if_viewer_can_use_clipping,v=j(d("VideoPlayerControlsBottomRowAddOnContext").VideoPlayerControlsBottomRowAddOnContext);o=o===!0&&!s?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,noPaddingEnd:!0,children:i.jsx(c("VideoPlayerQuietModeControl.react"),{})}):null;s=u!=null&&t!=null&&i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,noPaddingEnd:!0,noPaddingStart:o!=null,children:i.jsx(d("CometRelay").MatchContainer,{match:u,props:{video:u,videoID:t}})});u=k(null);t=u[0];u=u[1];v=i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,noPaddingEnd:!0,noPaddingStart:o!=null||s!=null,children:i.jsx(c("VideoPlayerSettingsControl.react"),{alignMenuToIcon:(v==null?void 0:v.getBottomRowAddOn())!=null,menuOpened:t,onUserInteraction:n,setMenuOpened:u})});p=p===!0&&r!=null&&a!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:i.jsx(c("VideoPlayerWatchAndScrollControl.react"),{subOrigin:r,video:a})}):null;e=i.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{allowShrinking:!0,isVisible:f,noPaddingEnd:!0,noPaddingStart:!0,children:[e,i.jsx(c("VideoPlayerJoinOnPortalControl.react"),{isVisible:f})]});var w=m!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:!0,children:i.jsx(m,{enableNUX:d("PlaybackSpeedExperiments").enableCometPlaybackSpeedControlHeadroomTestNUX(),onUserInteraction:n})}):null;g=i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:m?!0:g,noPaddingStart:!0,children:i.jsx(c("VideoPlayerVolumeControl.react"),{onUserInteraction:n})});var x=i.jsx(d("VideoPlayerControlsGroups.react").Expanded,{isVisible:f,children:i.jsx(c("VideoPlayerScrubberWithPreview.react"),{onUserInteraction:n,video:a})});q=i.jsxs(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:[i.jsx(c("VideoPlayerPlaybackControl.react"),{}),q,i.jsx(c("VideoPlayerPlaybackTimer.react"),{}),l!=null?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:i.jsx(l,{onUserInteraction:n})}):null]});r=r==="watch_scroll";var y=d("VideoPlayerHooks").useCaptionsLoaded(),z=d("VideoPlayerHooks").useCaptionsVisible();y=y&&c("gkx")("5104")&&!c("gkx")("1745416")&&!r?i.jsx(d("VideoPlayerControlsGroups.react").Contracted,{isVisible:f,children:i.jsx(c("VideoPlayerCaptionsControl.react"),{captionsVisible:z,menuOpened:t,onUserInteraction:n,setMenuOpened:u,video:a})}):null;return i.jsxs(c("VideoPlayerControlsContainerOverlay.react"),{isBackgroundVisible:f,children:[q,x,o,s,v,y,p,e,w,g]})}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._(/*FBT_CALL*/"Skip"/*FBT_CALL*/),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","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=a.subOrigin;a=a.video;a=d("CometRelay").useFragment(h!==void 0?h:h=b("VideoPlayerSkipControl_video.graphql"),a);var f=d("useCometTahoeChainingDepth").useChainingDepthContext(),g=f.chainingDepthDispatch,n=k(c("CometWatchAndScrollVideoContext"));f=d("VideoPlayerHooks").useEnded();var o=k(c("CometWatchAndScrollSetStoryViewabilityLoggerContext")),p=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 q=a==null?void 0:a.cursor,r=a==null?void 0:a.node,s=r==null?void 0:r.client_view_config;a=r==null?void 0:(a=r.attachments)==null?void 0:(a=a[0])==null?void 0:a.media;var t=a!=null&&a.__typename==="Video"?a==null?void 0:a.id:null,u=n==null?void 0:n.chainingSeedVideoID,v=c("usePlayerOriginRouteTracePolicy")(),w=l(!1),x=w[0],y=w[1];w=j(function(){y(!0),m.onReady(function(a){a.log({event:"watch_and_scroll_skip_overlay_impression"})})},[]);var z=j(function(){y(!1)},[]),A=j(function(){var a;m.onReady(function(a){a.log({click_point:"control_skip",click_target:"watch_and_scroll",event:"click"})});p({chainingCursor:q,chainingSeedVideoID:u,routeTracePolicy:(a=n==null?void 0:n.routeTracePolicy)!=null?a:v,sessionStartTime:n==null?void 0:n.sessionStartTime,sessionTrigger:n==null?void 0:n.sessionTrigger,subOrigin:e,videoID:t});a={can_delay_log_impression:s==null?void 0:s.can_delay_log_impression,use_banzai_signal_imp:s==null?void 0:s.use_banzai_signal_imp,use_banzai_vital_imp:s==null?void 0:s.use_banzai_vital_imp};o({clientViewConfig:a,encryptedTracking:r==null?void 0:r.encrypted_tracking,trackingCode:{click_tracking_linkshim_cb:(r==null?void 0:r.click_tracking_linkshim_cb)||"",encrypted_click_tracking:(r==null?void 0:r.encrypted_click_tracking)||"",encrypted_tracking:(r==null?void 0:r.encrypted_tracking)||""},videoID:t,viewabilityConfig:r==null?void 0:r.viewability_config});g&&g({type:"INCREMENT"})},[t,g,s==null?void 0:s.can_delay_log_impression,s==null?void 0:s.use_banzai_signal_imp,s==null?void 0:s.use_banzai_vital_imp,q,v,o,p,r==null?void 0:r.click_tracking_linkshim_cb,r==null?void 0:r.encrypted_click_tracking,r==null?void 0:r.encrypted_tracking,r==null?void 0:r.viewability_config,e,u,n==null?void 0:n.routeTracePolicy,n==null?void 0:n.sessionStartTime]);if(a==null||a.__typename!=="Video"){m.onReady(function(a){a.log({event:"watch_and_scroll_chaining_query_empty"})});return i.jsx(c("VideoPlayerSkipControlBase.react"),{disabled:!0})}return i.jsxs(i.Fragment,{children:[i.jsx(c("VideoPlayerSkipControlBase.react"),{onHoverIn:w,onHoverOut:z,onPress:A}),x&&!f&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"mindcfhs t35zue3m oz0m54rj pmk7jnqg kmzbrmfl mio9le5o b6jg2yqc hp05c5td bn9qtmzc s8bnoagg cwj9ozl2"}),i.jsx(c("CometWatchAndScrollUpNextCard.react"),{hidden:!1,video:a})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useVideoPlayerWithWatchAndScrollChaining.react",["CometPrerenderer.react","VideoPlayerHooks","VideoPlayerWithWatchAndScrollChaining.react","qex","react","useVideoPlayerControllerSubscription"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=.8,j=0;function a(a){var b=a.isVideoHomeEligible,e=a.routeTracePolicy,f=a.subOrigin,g=d("VideoPlayerHooks").useIsLive();a=c("useVideoPlayerControllerSubscription")(function(a,b){var d,e;if(g)d=!1,e=!1;else{var f=a.getCurrentState().ended,h=a.getPlayheadPosition();a=a.getCurrentState();var k=a.duration,l=a.loopCount;a=a.loopCurrent;k=Math.min(k*i,k-j);var m=!!c("qex")._("1652");d=a>=l&&f;e=m||b!=null&&b.shouldPrerender||h>k}return b!=null&&b.isVisible===d&&b.shouldPrerender===e?b:{isVisible:d,shouldPrerender:e}});if(!b)return{isWatchAndScrollChainingComponentRendered:!1,watchAndScrollChainingComponent:null};b=h.jsx(c("CometPrerenderer.react"),{prerenderingProps:a,children:function(a){return h.jsx("div",{className:a.hidden===!0?"mkhogb32":"",children:h.jsx(c("VideoPlayerWithWatchAndScrollChaining.react"),babelHelpers["extends"]({routeTracePolicy:e,subOrigin:f},a))})}});return{isWatchAndScrollChainingComponentRendered:a.isVisible,watchAndScrollChainingComponent:b}}g["default"]=a}),98); __d("CometWatchAndScrollCloseButton.react",["fbt","ix","CometRelay","CometSetWatchAndScrollVideoContext","CometWatchAndScrollCloseButton_video.graphql","CometWatchAndScrollVideoContext","TetraIcon.react","VideoPlayerInstreamAdsStateHooks","fbicon","react","requireDeferred","useCometRouterState","useCometTahoeChainingDepth","useRainbowNativeSurveyDialog","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"),n="906640246872605";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(),o=g.chainingDepthState;g=c("useVideoPlayerDefaultControlsVisibility")();var p=g.isControlsVisible,q=g.onUserInteraction;a=!!(a==null?void 0:(g=a.owner)==null?void 0:g.has_professional_features_for_watch);g=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsIsStart();var r=a||g;a=c("useCometRouterState")();var s=(g=a==null?void 0:a.main.route.tabKey)!=null?g:"undefined",t=c("useRainbowNativeSurveyDialog")(n,[]);return k.jsx("i",{className:(r?"":"ntk8zc1u pmk7jnqg agsi23a0")+" tkr6xdv7"+(!r&&!p?" kr9hpln1 b5wmifdl":""),children:k.jsx(c("TetraIcon.react"),{"aria-label":h._(/*FBT_CALL*/"Close Watch and Scroll"/*FBT_CALL*/),color:r?"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;s==="home"&&c==="vod"&&t();e(null);q({name:"exit_watch_and_scroll_video",type:"happened"});r&&m.onReady(function(d){var e=o+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:s});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","stylex","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:"h676nmdw",paddingTop:"jb3vyjys",paddingEnd:"rz4wbd8a",paddingBottom:"qt6c0cv9",paddingStart:"a8nywdso"},closeButton:{display:"j83agx80",marginTop:"n1l5q3vz",marginEnd:"tvfksri0",marginBottom:"n851cfcs",marginStart:"ozuftl9m",paddingTop:"jb3vyjys",paddingEnd:"rz4wbd8a",paddingBottom:"qt6c0cv9",paddingStart:"a8nywdso"},root:{backgroundColor:"cwj9ozl2",borderTopEndRadius:"pw54ja7n",borderTopStartRadius:"ue3kfks5",boxShadow:"h0eh6jkb",display:"j83agx80",end:"n7fi1qx3",height:"ur1d1wif",opacity:"pedkr2u6",position:"pmk7jnqg",start:"j9ispegn",top:"p6s4hbd1",transform:"of6qqfjd",transformOrigin:"ho8ehabp",transitionDuration:"ebpj63zs",transitionProperty:"flx89l3n"},row:{marginTop:"kvgmc6g5",marginEnd:"cxmmr5t8",marginBottom:"oygrvhab",marginStart:"hcukyx3x",width:"k4urcfbm"},threeDot:{display:"j83agx80",marginTop:"kvgmc6g5",marginEnd:"cxmmr5t8",marginBottom:"oygrvhab",marginStart:"hcukyx3x",paddingTop:"jb3vyjys",paddingEnd:"rz4wbd8a",paddingBottom:"qt6c0cv9",paddingStart:"a8nywdso"}};function a(a){var e=a.isGamingVideo,f=a.permalinkUrl,g=a.routeTracePolicy,q=a.subOrigin;a=a.video;a=d("CometRelay").useFragment(i!==void 0?i:i=b("CometWatchAndScrollTopBar_video.graphql"),a);var r=c("useNavigateToTahoePassthroughProps")(),s=k(!1);s[0];var t=s[1];s=function(a){t(a)};var u=a==null?void 0:a.owner;if(a==null||u==null)return null;r=babelHelpers["extends"]({},r,{playerSubOrigin:q,portalingRouteTracePolicy:g,portalingSubOrigin:q});var v="#",w=u.uri_token;w!=null?v=c("XCometVideoHomePlaylistControllerRouteBuilder").buildURL({idorvanity:w}):u.url!=null&&(v=u.url);if(e){w=(w=(w=u.page_vanity_url)!=null?w:u.vanity)!=null?w:u.uri_token;if(w!=null){var x;v=c("XCometGamingVanityControllerRouteBuilder").buildURL({injected_hero_video_id:(x=a.id)!=null?x:void 0,vanity:w})}}return j.jsx("div",{className:c("stylex")(m.root),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:v,iconURI:(x=u.profile_picture)==null?void 0:x.uri,passthroughProps:e?r:void 0})}),j.jsx(c("CometRowItem.react"),{expanding:!0,children:j.jsx(c("TetraTextPairing.react"),{headline:j.jsx(p,{isGamingVideo:e,passthroughProps:r,permalinkUrl:f,routeTracePolicy:g,subOrigin:q,title:a.title_with_fallback,videoUrl:a.url}),headlineLineLimit:1,level:4,meta:j.jsx(o,{actorName:u.name,actorURL:v,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:(w=a.creation_story)==null?void 0:w.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:(x=a.creation_story)==null?void 0:x.debug_info,tracking:(f=a.creation_story)==null?void 0:f.tracking,videoID:a.id,videoMenuLocation:"WATCH_AND_SCROLL"})}),j.jsx(c("CometRowItem.react"),{xstyle:m.closeButton,children:j.jsx(c("CometWatchAndScrollCloseButton.react"),{video:a})})]})})}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.isGamingVideo,d=a.passthroughProps,e=a.permalinkUrl,f=a.title;a=a.videoUrl;var g=c("useCometRouterState")(),h=g==null?void 0:g.main.route.tabKey;g=b?"gaming":"watch";b=h!==g;g=b&&d.portableVideoID!=null?e:a;return j.jsx(c("CometLink.react"),{href:g,onClick:function(){l.onReady(function(a){a.log({click_point:"video_title",click_target:"watch_and_scroll",event:"click",event_target_info:h})})},passthroughProps:d,children:f})}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometWatchAndScroll.react",["CaptionsTextSizeMapping","CometInteractionSourceContext","CometLoadingAnimation.react","CometObjectFitContainerWithMaxHeight.react","CometPlaceholder.react","CometRelay","CometRouterPushViewStackContext","CometSetWatchAndScrollVideoContext","CometTahoeChainingDepthLogging.react","CometTrackingCodeProvider.react","CometUFIVideoPlayerUtils","CometWarningScreenContext","CometWatchAndScrollCloseButton.react","CometWatchAndScrollContainer_video.graphql","CometWatchAndScrollSoundContext","CometWatchAndScrollStoryViewabilityLoggerContext","CometWatchAndScrollTopBar.react","CometWatchAndScrollVideoContext","CometWatchAndScrollVideoQuery.graphql","HiddenSubtreeContext","HiddenSubtreeContextProvider.react","Locale","VideoAutoplayLocalScopeProvider.react","VideoPlayerAutoplayRulesProvider","VideoPlayerCaptionsDisplayConfigContext","VideoPlayerCometWatchInjectionControl.react","VideoPlayerDefaultControls.react","VideoPlayerDefaultControlsProperties","VideoPlayerHooks","VideoPlayerInstreamAdsStateHooks","VideoPlayerNavigateToTahoeOrFullScreenControl.react","VideoPlayerRelay.react","VideoPlayerSkipControlBase.react","VideoPlayerSurface.react","VideoPlayerWithAudioBackground.react","VideoPlayerWithAudioOverlay.react","VideoPlayerWithLiveVideoIndicator.react","VideoPlayerWithWatchAndScrollSoundContext.react","VideoPlayerWithWatchAndScrollWarningScreen.react","WebPixelRatio","XCometGamingVideoControllerRouteBuilder","XCometWatchControllerRouteBuilder","cr:2180","deferredLoadComponent","gkx","isRouteTransparent","qex","react","requireDeferred","requireDeferredForDisplay","useCometRouterState","useStoryViewabilityLogger","useVideoOriginalDimensionsRelay","useVideoPlayerWithWatchAndScrollChaining.react"],(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=b("cr:2180").useHook(),c=338,d=80;a=a*c+d;return a}function a(){var a=k(c("CometRouterPushViewStackContext")),b=k(c("CometWatchAndScrollVideoContext")),e=k(c("CometSetWatchAndScrollVideoContext")),f=k(c("CometWatchAndScrollSoundContext"));a=(a||[]).some(function(a){a=a.route;return!c("isRouteTransparent")(a)});var g=b==null?void 0:b.portableVideoID,h=b==null?void 0:b.routeTracePolicy,i=b==null?void 0:b.subOrigin,m=b==null?void 0:b.videoID,n=b==null?void 0:b.chainingSeedVideoID,o=b==null?void 0:b.chainingCursor;l(function(){b!=null&&m!=null&&n==null&&e(babelHelpers["extends"]({},b,{chainingSeedVideoID:m}))},[n,e,m,b]);l(function(){m==null&&(f.setMuted(null),f.setVolume(null))},[f,m]);var p=q();return m==null||i==null||h==null||a&&c("gkx")("3017")?null:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx("div",{className:"a9ndjppc poy2od1o k3cnv2bo taijpn5t esma6hys j83agx80 eu4i7hue k01i5q8h tqsryivl",style:d("Locale").isRTL()?{left:p}:{right:p},children:j.jsx("div",{className:"thwo4zme pmk7jnqg dfilqbxc j83agx80",children:j.jsx(c("CometLoadingAnimation.react"),{size:36})})}),children:j.jsx(c("HiddenSubtreeContextProvider.react"),{isHidden:a,children:j.jsx(r,{chainingCursor:o,chainingSeedVideoID:n,portableVideoID:g,routeTracePolicy:h,subOrigin:i,videoID:m})})})}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=g.chainingSeedVideo;g=g.video;if(g==null)return null;var q=(g==null?void 0:g.is_gaming_video)===!0,r=g==null?void 0:g.id,t=c("XCometGamingVideoControllerRouteBuilder").buildURL(r!=null?{ref:"comet_wns",video_id:r}:{});r=c("XCometWatchControllerRouteBuilder").buildURL(r!=null?{v:r}:{});e=(g==null?void 0:(e=g.pay_to_access_paywall)==null?void 0:e.should_show_paywall)===!0;t=q?t:r;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(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:o,isGamingVideo:q,isVideoHomeEligible:!!((r=g.owner)==null?void 0:r.has_professional_features_for_watch),permalinkUrl:t,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;l=j.jsxs("div",{className:"a9ndjppc poy2od1o k3cnv2bo taijpn5t esma6hys j83agx80 eu4i7hue k01i5q8h tqsryivl",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})]});g=h==null?void 0:h.trackingCode;return g!=null&&a?j.jsx(c("CometTrackingCodeProvider.react"),{trackingCode:g,children:l}):l}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 l=c("useCometRouterState")();l=l==null?void 0:l.main.route.tabKey;var p=d("CometWarningScreenContext").useHasOverlay(),q=d("VideoPlayerInstreamAdsStateHooks").useInstreamAdsIsStart(),r=d("VideoPlayerHooks").useIsVideoBroadcast(),s=k(c("CometSetWatchAndScrollVideoContext"));q=f||q;var u=e?"gaming":"watch";r=f&&!p&&l==="watch"&&!((r=r)!=null?r:!1)&&c("gkx")("1163");l=l!==u&&f&&!p;var v=!e&&(l||r);u=c("useVideoPlayerWithWatchAndScrollChaining.react")({isVideoHomeEligible:f,routeTracePolicy:h,subOrigin:i});p=u.isWatchAndScrollChainingComponentRendered;l=u.watchAndScrollChainingComponent;r=!!c("qex")._("1691");f=!!c("qex")._("1652")||!p;var w=function(a){n.onReady(function(b){b.log({click_point:a,click_target:"watch_and_scroll",event:"click"})})},x=a.url;u=m(function(){return{subOrigin:i,videoTahoeUrl:x}},[i,x]);var y=c("gkx")("3017");p=c("gkx")("2790")?d("VideoPlayerDefaultControlsProperties").MutedButtonVisibility.SAME_AS_OTHER_CONTROLS:d("VideoPlayerDefaultControlsProperties").MutedButtonVisibility.SEPARATE_FROM_OTHER_CONTROLS;return j.jsxs(c("VideoPlayerSurface.react"),{children:[j.jsx(c("CometTahoeChainingDepthLogging.react"),{}),q&&j.jsx(c("CometWatchAndScrollTopBar.react"),{isGamingVideo:e,permalinkUrl:g,routeTracePolicy:h,subOrigin:i,video:a}),j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(c("VideoPlayerWithAudioBackground.react"),{playerFormat:"inline",video:a})}),f&&j.jsx(c("VideoPlayerDefaultControls.react"),{mutedButtonVisibility:p,renderExpandControl:function(a){a=a.onUserInteraction;return v?j.jsx(c("VideoPlayerCometWatchInjectionControl.react"),{onPress:function(){s(null),w("control_open_in_watch")},routeTracePolicy:h,subOrigin:i,videoWatchUrl:g}):j.jsx(c("VideoPlayerNavigateToTahoeOrFullScreenControl.react"),{onPressFullscreenControl:function(){return w("control_fullscreen")},onPressTahoeControl:function(){w("control_expand_to_tahoe"),y&&s(null)},onUserInteraction:a,subOrigin:"watch_scroll",videoTahoeUrl:x})},skipControl:r?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"}),!q&&j.jsx(c("CometWatchAndScrollCloseButton.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})}),l,j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(c("VideoPlayerWithWatchAndScrollWarningScreen.react"),{video:a})}),j.jsx(d("CometUFIVideoPlayerUtils").CometUFIVideoPlayerStateAndControllerExtractor,{data:u}),j.jsx(c("VideoPlayerWithWatchAndScrollSoundContext.react"),{})]})}u.displayName=u.name+" [from "+f.id+"]";g["default"]=a}),98); __d("ZenonCallLogger",["ZenonInfraActionsLogger","gkx","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h=new Set(["setMediaStats","updateE2EEStats","updateIceInfo","setRemoteSdpOffer"]),i=new Set(["atLeastOneParticipantAlerted","atLeastOneParticipantAnswered"]);a=function(){function a(a,b){var d,e=this;this.$1=[];this.$3=new Set();this.$2={localCallID:c("uuid")(),peerID:a.peerID,sharedCallID:(d=a.serverInfoData)!=null?d:a.callID};b.forEach(function(b){return e.$1.push(new b(a,function(a){Object.assign(e.$2,a)}))})}var b=a.prototype;b.log=function(a){this.$4(a),this.$1.forEach(function(b){b.processEvent(a)})};b.$4=function(a){if(!c("gkx")("2890"))return;if(h.has(a.name))return;if(i.has(a.name)&&this.$3.has(a.name))return;this.$3.add(a.name);c("ZenonInfraActionsLogger").logCheckpoint({checkpoint:"[ZP] ZenonCallLogger event: "+a.name})};b.getLogIdentifiers=function(){return this.$2};return a}();g["default"]=a}),98); __d("ZenonCallSummaryUploader",["cr:11423"],(function(a,b,c,d,e,f,g){"use strict";function a(){return b("cr:11423").getLoggableSummaries()}function c(){b("cr:11423").logCallSummaries()}function d(a){b("cr:11423").logCallSummary(a)}g.getLoggableSummaries=a;g.logCallSummaries=c;g.logCallSummary=d}),98); __d("ZenonCollisionContext",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=null;a.groupThreadID!=null?b={id:a.groupThreadID,type:2}:a.peerID!=null&&(b={id:a.peerID,type:1});return b}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("ZenonMqttUtil",["FBMqttChannel","IGDOverLSMqttChannel","ZenonAppProvider"],(function(a,b,c,d,e,f,g){"use strict";function a(){if(d("ZenonAppProvider").isInstagramApp())return c("IGDOverLSMqttChannel");else return c("FBMqttChannel")}g.getMqttChannel=a}),98); __d("ZenonSignalingConstants",[],(function(a,b,c,d,e,f){"use strict";a="/rtc_multi";b="D3F4U1T_F8_TR4CK";f.RTC_MULTI_MQTT_TOPIC=a;f.DEFAULT_TRACK=b}),66); __d("ZenonMqttMWMessageSender",["Promise","ZenonDebugLogger","ZenonMWMessageLogger","ZenonMWMessageReliabilityLogger","ZenonMWMessageTranslator","ZenonMqttUtil","ZenonSignalingConstants","ZenonUserActionLogger","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h=15e3;a=function(){function a(){}var e=a.prototype;e.waitForMqttConnected=function(){return new(b("Promise"))(function(a,b){var e=d("ZenonMqttUtil").getMqttChannel();if(e.getConnectionState()==="Connected")a();else{c("ZenonUserActionLogger").logCheckpoint({checkpoint:"MQTT not connected, deferring sending MWS message"});c("ZenonUserActionLogger").startTimer("MQTT not connected");var f={onMQTTStateChanged:function(b){b==="Connected"&&(c("ZenonUserActionLogger").stopTimer({checkpointName:"MQTT connected after deferring sending MWS message",timerName:"MQTT not connected"}),e.unsubscribeChannelEvents(f),window.clearTimeout(g),a())}},g=window.setTimeout(function(){e.unsubscribeChannelEvents(f),c("ZenonUserActionLogger").stopTimer({checkpointName:"MQTT never connected. Current status: "+e.getConnectionState(),timerName:"MQTT not connected"}),b("timeout")},h);e.subscribeChannelEvents(f)}})};e.asyncSendMessage=function(a){var e=this,f,g,h;return b("regeneratorRuntime").async(function(i){while(1)switch(i.prev=i.next){case 0:f=!0;i.next=3;return b("regeneratorRuntime").awrap(this.waitForMqttConnected()["catch"](function(a){c("ZenonUserActionLogger").logCheckpoint({checkpoint:"Not sending MWS message through MQTT because MQTT could not connect. Error: "+a}),f=!1}));case 3:if(f){i.next=5;break}return i.abrupt("return");case 5:g=c("ZenonDebugLogger").getInstance();d("ZenonMWMessageReliabilityLogger").logSendingMessage(a);g.logMWMessage("SENDING","MQTT",a);this.$2&&d("ZenonMWMessageLogger").logSentMessage(a,this.$2);h=d("ZenonMqttUtil").getMqttChannel();i.prev=10;i.next=13;return b("regeneratorRuntime").awrap(h.publish(d("ZenonSignalingConstants").RTC_MULTI_MQTT_TOPIC,JSON.stringify(a)).then(function(b){d("ZenonMWMessageReliabilityLogger").logSentMessage(a)},function(b){e.$3(a,b.toString())}));case 13:i.next=18;break;case 15:i.prev=15,i.t0=i["catch"](10),this.$3(a,i.t0.toString());case 18:case"end":return i.stop()}},null,this,[[10,15]])};e.$3=function(a,b){var e=c("ZenonDebugLogger").getInstance();b=b!=null?b:"MQTT Message Send Error";d("ZenonMWMessageReliabilityLogger").logSendMessageFailed(a);e.logSendMultiwayMessageFailure(b,a.jsonPayload.header.type)};e.sendMessage=function(a){a=d("ZenonMWMessageTranslator").toMWMessage(a);a!=null&&this.asyncSendMessage(a)};e.setMessageReceiver=function(a){this.$1=a};e.setLoggingEventHandler=function(a){this.$2=a};return a}();g["default"]=a}),98); __d("XGroupCallSendMessageController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/groupcall/sendmessage/",{av:{type:"FBID"},webrtc_fbtrace:{type:"Int"}})}),null); __d("XGroupCallSendRequestController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/groupcall/sendrequest/",{av:{type:"FBID"},webrtc_fbtrace:{type:"Int"}})}),null); __d("ZenonXControllerSendRequest",["AsyncRequest","Promise","XGroupCallSendMessageController","XGroupCallSendRequestController","ZenonActorHooks","ZenonMWMessageReliabilityLogger","err","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h=6e3;function i(a,e){return new(b("Promise"))(function(b,f){d("ZenonMWMessageReliabilityLogger").logSendingMessage(e),a.setMethod("POST").setAllowCrossPageTransition(!0).setHandler(function(a){d("ZenonMWMessageReliabilityLogger").logSentMessage(e),b(a)}).setErrorHandler(function(a){d("ZenonMWMessageReliabilityLogger").logSendRequestFailedFromHandler(e);a=a.getErrorDescription();a=new(c("err"))(a!=null?a.toString():"AsyncRequest error");f(a)}).setTimeoutHandler(h,function(){f("Timeout")}),a.send()})}function a(a){var b=c("XGroupCallSendMessageController").getURIBuilder();c("gkx")("2028434")&&b.setFBID("av",d("ZenonActorHooks").ZenonActor.getID());b=b.getURI();b=new(c("AsyncRequest"))(b).setData({message:JSON.stringify(a)});return i(b,a)}function e(a){var b=c("XGroupCallSendRequestController").getURIBuilder();c("gkx")("2028434")&&b.setFBID("av",d("ZenonActorHooks").ZenonActor.getID());b=b.getURI();b=new(c("AsyncRequest"))(b).setData({request:JSON.stringify(a)});return i(b,a)}g.sendMessage=a;g.sendRequest=e}),98); __d("ZenonXControllerMWMessageSender",["ZenonDebugLogger","ZenonMWMessageLogger","ZenonMWMessageReliabilityLogger","ZenonMWMessageTranslator","ZenonMWMessageTypes","ZenonMWTranslatorUtils","ZenonXControllerSendRequest","regeneratorRuntime","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){}var e=a.prototype;e.handleResponse=function(a){a=a.payload;if(a==null)return;var b=a.header||null;a=a.body||null;var e=c("ZenonDebugLogger").getInstance();if(b!=null&&a!=null){b=d("ZenonMWTranslatorUtils").createMWMessage(b,a);d("ZenonMWMessageReliabilityLogger").logStartProcessingResponse(b);e.logMWMessage("RECEIVED","XController",b);d("ZenonMWMessageReliabilityLogger").logReceivedMessage(b);a=d("ZenonMWMessageTranslator").toSignalingMessage(b);if(this.$1!=null)this.$1(a),d("ZenonMWMessageReliabilityLogger").logProcessingMessage(b);else throw c("unrecoverableViolation")("Should never have null message receiver","rtc_www")}};e.asyncSendMessage=function(a){var e,f,g;return b("regeneratorRuntime").async(function(h){while(1)switch(h.prev=h.next){case 0:e=c("ZenonDebugLogger").getInstance();e.logMWMessage("SENDING","XController",a);this.$2&&d("ZenonMWMessageLogger").logSentMessage(a,this.$2);h.prev=3;if(!this.isResponseExpected(a)){h.next=11;break}h.next=7;return b("regeneratorRuntime").awrap(d("ZenonXControllerSendRequest").sendRequest(a));case 7:f=h.sent;this.handleResponse(f);h.next=13;break;case 11:h.next=13;return b("regeneratorRuntime").awrap(d("ZenonXControllerSendRequest").sendMessage(a));case 13:h.next=20;break;case 15:h.prev=15,h.t0=h["catch"](3),g=h.t0!=null?h.t0.toString():"Message Send Error",d("ZenonMWMessageReliabilityLogger").logSendMessageFailed(a),e.logSendMultiwayMessageFailure(g,a.jsonPayload.header.type);case 20:case"end":return h.stop()}},null,this,[[3,15]])};e.isResponseExpected=function(a){switch(a.jsonPayload.header.type){case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_MEDIA_UPDATE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DATA_MESSAGE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CLIENT_EVENT:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.UNSUBSCRIBE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.UPDATE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CONNECT:return!0;case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.RING:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SERVER_MEDIA_UPDATE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.NOTIFY:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.CONFERENCE_STATE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.HANGUP:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ICE_CANDIDATE:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DISMISS:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.ADD_PARTICIPANTS:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.SUBSCRIPTION:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.REMOVE_PARTICIPANTS:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.PING:case d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.P2P_PROTOCOL:return!1;default:return!1}};e.sendMessage=function(a){a=d("ZenonMWMessageTranslator").toMWMessage(a);a!=null&&this.asyncSendMessage(a)};e.setMessageReceiver=function(a){this.$1=a};e.setLoggingEventHandler=function(a){this.$2=a};return a}();g["default"]=a}),98); __d("ZenonHybridMWMessageSender",["FBLogger","ZenonActorHooks","ZenonGraphQLMWMessageSender","ZenonInfraActionsLogger","ZenonMWMessageTranslator","ZenonMWMessageTypes","ZenonMqttMWMessageSender","ZenonXControllerMWMessageSender"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.$1=new(c("ZenonXControllerMWMessageSender"))(),this.$2=new(c("ZenonGraphQLMWMessageSender"))(),this.$3=new(c("ZenonMqttMWMessageSender"))(),this.$4=!1,this.$4=d("ZenonActorHooks").ZenonActor.isPage()}var b=a.prototype;b.sendMessage=function(a){try{var b=d("ZenonMWMessageTranslator").toMWMessage(a),e=b==null?void 0:b.jsonPayload.header.type;if(a.getHeader().remoteSignalingID==null&&e!=null&&e!==d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.JOIN){c("ZenonInfraActionsLogger").logCheckpoint({checkpoint:"[ZP][DROP] No remoteSignalingID in message: "+e});c("FBLogger")("rtc_www").warn("[ZP][DROP] No remoteSignalingID in message: "+e);return}b!=null&&(this.$4?this.$2.asyncSendMessage(b):(this.$3.asyncSendMessage(b),e!==d("ZenonMWMessageTypes").ZenonMWSignalingPayloadType.DATA_MESSAGE&&this.$2.asyncSendMessage(b)))}catch(a){c("FBLogger")("rpweb").catching(a).warn("Error sending message from ZenonHybridMWMessageSender");throw a}};b.setMessageReceiver=function(a){this.$1.setMessageReceiver(a),this.$2.setMessageReceiver(a)};b.setLoggingEventHandler=function(a){this.$1.setLoggingEventHandler(a),this.$2.setLoggingEventHandler(a)};return a}();g["default"]=a}),98); __d("ZenonParentSignalingClient",["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 b=a.prototype;b.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};b.setLoggingEventHandler=function(a){this.$8=a};b.getSignalingModel=function(){return this.$1};b.sendDismiss=function(a){this.$4="terminated";a={eventName:"terminateRequest",fromJoinResponse:!1,reason:a,shouldInformPeer:!0};this.$10(a)};b.receiveMessage=function(a){this.$2.receiveMessage(a)};b.isTerminated=function(){return this.$4==="terminated"};b.sendAnswerIntent=function(){if(this.$4==="inviteAcknowledged"){this.$4="answered";var a={eventName:"answerIntentRequest"};this.$10(a)}else throw c("unrecoverableViolation")("sendAnswerIntent called in unexpected state "+this.$4,"rtc_www")};b.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};this.$10(a)}else throw c("unrecoverableViolation")("respondToInvite called in unexpected state "+this.$4,"rtc_www")};b.initiateClientRenegotiation=function(a){throw c("unrecoverableViolation")("initiateClientRenegotiation called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendClientEvent=function(a){throw c("unrecoverableViolation")("sendClientEvent called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendInvite=function(a,b,d){throw c("unrecoverableViolation")("sendInvite called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendSdp=function(a,b){throw c("unrecoverableViolation")("sendSdp called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendIceCandidate=function(a){throw c("unrecoverableViolation")("sendIceCandidate called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendMediaUpdate=function(a){throw c("unrecoverableViolation")("sendMediaUpdate called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendAddParticipantsMessage=function(a){throw c("unrecoverableViolation")("sendAddParticipantsMessage called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendRemoveParticipantsRequest=function(a){throw c("unrecoverableViolation")("sendRemoveParticipantsRequest called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendUsersApprovalRequest=function(a,b){throw c("unrecoverableViolation")("sendUsersApprovalRequest called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendStateSyncUnsubscribe=function(a){throw c("unrecoverableViolation")("sendStateSyncUnsubscribe called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendStateSyncUpdate=function(a,b){throw c("unrecoverableViolation")("sendStateSyncUpdate called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendSubscriptionRequest=function(a){throw c("unrecoverableViolation")("sendSubscriptionRequest called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendClientInfo=function(a){throw c("unrecoverableViolation")("sendClientInfo called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.sendGenericDataMessage=function(a,b,d){throw c("unrecoverableViolation")("sendGenericDataMessage called on ZenonParentSignalingClient. Did you mean to use ZenonSignalingClient instead?","rtc_www")};b.$10=function(a){c("ZenonDebugLogger").getInstance().logStateMachine("ParentSignalingClient",this.$4,"sending "+a.eventName,this.$1.getSignalingID()),this.$3.sendEvent(a)};b.$11=function(a,b,c){this.$4==="init"&&(this.$4="inviteReceived",this.$7=b,this.$5(a,c,this))};b.$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)}}};b.$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("TokenBucketRateLimit",["DateConsts"],(function(a,b,c,d,e,f,g){"use strict";var h=1e3;a=function(){function a(a,b){this.$1=a*h,this.$2=a*h,this.$3=Date.now(),this.$4=b*h}var b=a.prototype;b.take=function(a){a===void 0&&(a=1);a=a*h;this.$5();if(this.$2=this.$1)return;var a=Date.now(),b=(a-this.$3)/d("DateConsts").MS_PER_SEC;b=Math.round(b*this.$4);if(b===0)return;this.$2=Math.min(this.$1,this.$2+b);this.$3=a};return a}();g["default"]=a}),98); __d("ZenonSDKRateLimiter",["TokenBucketRateLimit","ZenonPlatformRateLimitSitevarConfig"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.$1=new Map()}var b=a.prototype;b.take=function(a,b){b===void 0&&(b=1);a=this.$2(a);return a.take(b)};b.$2=function(a){var b,d=this.$1.get(a);if(d)return d;b=(b=c("ZenonPlatformRateLimitSitevarConfig").buckets.get(a))!=null?b:c("ZenonPlatformRateLimitSitevarConfig")["default"];d=new(c("TokenBucketRateLimit"))(b.bucket_size,b.refill_rate);this.$1.set(a,d);return d};return a}();g["default"]=a}),98); __d("ZenonParentCallsManager",["BaseEventEmitter","FBLogger","JSResource","LazyLoadInstance","ZenonActorHooks","ZenonBrowsers","ZenonCallLogger","ZenonCallsModelTypes","ZenonCollisionContext","ZenonDismissReason","ZenonHybridMWMessageSender","ZenonParentSignalingClient","ZenonSDKRateLimiter","ZenonSignalingProtocol","cr:11758","cr:11759","gkx","recoverableViolation","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(e,a);function e(b){var e;e=a.call(this)||this;e.$ZenonParentCallsManager4=new Map();e.$ZenonParentCallsManager5=new Set();e.$ZenonParentCallsManager6=null;e.onInviteReceived=function(a,b,f){var g,h=f.getSignalingModel().getSignalingID();f.setSignalingEventHandlers({onDismissReceived:e.onDismissReceived});var i=a.appMessages,j=a.inviterID,k=a.otherParticipants,l=a.requestingVideo;a=a.roomInfo;var m=l&&d("ZenonBrowsers").supportsVideoCalls(),n=b===c("ZenonSignalingProtocol").P2P?"p2p_incoming":"multiway_incoming",o=e.$ZenonParentCallsManager8({callID:h,callTrigger:n,isCaller:!1,isVideo:m,peerID:j,protocol:b});o.log({name:"inviteReceived"});l=e.$ZenonParentCallsManager3.isSupportedClientForProtocol(b);var p=l?"OK":"NOT_SUPPORTED";f.respondToInvite(p);o.log({name:"inviteResponded"});p={thread:{id:"0",type:2},type:"thread"};if(((g=a.context)==null?void 0:g.groupThreadID)||((g=a.context)==null?void 0:g.peerID)){p={thread:(g=d("ZenonCollisionContext").getThreadIDAndTypeFromCollisionContext(a.context))!=null?g:p.thread,type:"thread"}}else((g=a.room)==null?void 0:g.linkHash)!=null&&((g=a.room)==null?void 0:g.roomName)!=null&&(p={room:a.room,type:"room"});g=d("ZenonActorHooks").ZenonActor.getID();a={appMessages:i,context:p,controllerParams:{callContext:a.name,callID:h,configuration:b,serverInfoData:(p=(i=a.context)==null?void 0:i.serverInfoData)!=null?p:null},inviterID:j,isClientPermissableRing:l,onAccept:function(a,d){d=d.isPopupBlocked;o.log({name:"callAccepted",trigger:n});b===c("ZenonSignalingProtocol").P2P&&e.$ZenonParentCallsManager2.get(function(a){a.storeOfferForBackwardsCompat(j,h)});f.sendAnswerIntent();e.$ZenonParentCallsManager9(a,{callID:h,callTrigger:n,isPopupBlocked:d,isVideo:m,peerID:j,protocol:b})},onDecline:function(a,b){b===void 0&&(b=null),e.onDecline(h,o,a,b)},otherParticipants:k.includes(g)?k:[g].concat(k),requestingVideo:m,ringID:h};e.emit("incomingRing",a)};e.onDismissReceived=function(a,b){var c=d("ZenonDismissReason").dismissReasonToCancelReason(b);c={reason:c,ringID:a};e.emit("ringCancel",c);c=e.$ZenonParentCallsManager4.get(a);c!=null&&(c.log({name:"dismissRecv"}),c.log({endCallReason:b,isRemoteEnded:!0,name:"callEnded"}))};e.$ZenonParentCallsManager3=b;e.$ZenonParentCallsManager2=new(c("LazyLoadInstance"))(c("JSResource")("ZenonSignalingParentTransport").__setRef("ZenonParentCallsManager"),function(a){return new a()});var f=new(c("ZenonHybridMWMessageSender"))();e.$ZenonParentCallsManager1=new(c("LazyLoadInstance"))(c("JSResource")("ZenonSignalingClientManager").__setRef("ZenonParentCallsManager"),function(a){return new a(c("ZenonParentSignalingClient"),e.onInviteReceived,f)});c("gkx")("357")&&(e.$ZenonParentCallsManager6=new(c("ZenonSDKRateLimiter"))());return e}var f=e.prototype;f.startOutgoingCallIntent=function(a,b){if(!this.$ZenonParentCallsManager7("startOutgoingCallIntent"))return;var c=b.callID,d=b.callTrigger,e=b.isVideo,f=b.peerID,g=b.protocol;this.$ZenonParentCallsManager8({callID:c,callTrigger:d,isCaller:!0,isVideo:e,peerID:f,protocol:g});this.$ZenonParentCallsManager9(a,b)};f.$ZenonParentCallsManager8=function(a){var b=a.callID,d=a.callTrigger,e=a.isCaller,f=a.isVideo,g=a.peerID;a=a.protocol;var h=this.$ZenonParentCallsManager4.get(b);!h?(h=new(c("ZenonCallLogger"))({callID:b,callTrigger:d,isCaller:e,isVideo:f,peerID:g,protocol:a},this.getLogProcessors()),this.$ZenonParentCallsManager4.set(b,h)):c("recoverableViolation")("Call logger key collision in parentCallsManager for callID: "+b,"rtc_www");return h};f.getLogProcessors=function(){var a=[b("cr:11759")];b("cr:11758")&&a.push(b("cr:11758"));return a};f.$ZenonParentCallsManager9=function(a,c){var e,f,g,h,i;return b("regeneratorRuntime").async(function(j){while(1)switch(j.prev=j.next){case 0:e=c.alohaEscalatedMW,f=c.callID,g=c.isPopupBlocked;this.$ZenonParentCallsManager2.get(function(b){b.verificationNonce=a});this.$ZenonParentCallsManager5.add(f);h=this.$ZenonParentCallsManager4.get(f);if(!(h!=null)){j.next=11;break}h.log({isPopupBlocked:g,name:"popupOpened"});if(!(e!=null)){j.next=11;break}j.next=9;return b("regeneratorRuntime").awrap(e);case 9:i=j.sent,i&&h.log({endCallReason:d("ZenonDismissReason").ZenonDismissReason.OtherInstanceHandled,endCallSubreason:"forceP2POverMWForAloha",isRemoteEnded:!1,name:"callEnded"});case 11:case"end":return j.stop()}},null,this)};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.onRawP2PMessageReceived(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.onRawP2PMessageReceived=function(a){this.$ZenonParentCallsManager2.get(function(b){b.enqueueRawP2PMessage(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.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.$ZenonParentCallsManager7=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("ZenonP2PMessageValidator",["ZenonActorHooks","ZenonP2PMessageTypes","err"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=JSON.parse(a);var b=a.call_id,e=a.from,f=a.id,g=a.msg_type,h=a.payload,i=a.source,j=a.to;a=a.type;if(j!=null&&j.toString()!==d("ZenonActorHooks").ZenonActor.getID())throw c("err")("P2P message.to field "+j+" does not match logged in user ID "+d("ZenonActorHooks").ZenonActor.getID()+" for msg_type "+g);if(e&&b&&h){j={call_id:b,from:e,id:f,msg_type:g,payload:h,source:i,type:a};return j}else throw c("err")("P2P message does not have valid from, call_id, and payload fields")}function b(a){if(a){var b=a.msg_type;switch(b){case d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.OFFER:return i(a);case d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.HANG_UP:return j(a);case d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.ICE_CANDIDATE:return h(a);case d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.OTHER_DISMISS:return k(a)}}return null}function h(a){var b=a.from,c=a.payload;a=a.source;c=JSON.parse(c);var e=c.call_id,f=c.capability,g=c.label,h=c.msg_id,i=c.sdp,j=c.sdp_line_idx,k=c.sdp_mid;c=c.version;e={call_id:e,capability:f,from:b,label:g,msg_id:h,sdp:i,sdp_line_idx:j,sdp_mid:k,source:a,type:d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.ICE_CANDIDATE,version:c};return e}function i(a){var b,c,e,f,g=a.from,h=a.payload;a=a.source;h=JSON.parse(h);var i=h.call_id,j=h.calltype,k=h.capability;b=(b=h.escalation_conference_name)!=null?b:null;c=(c=h.experiments)!=null?c:[];e=(e=h.extraParams)!=null?e:[];f=(f=h.fbexp)!=null?f:"";var l=h.handlescollision!==void 0?h.handlescollision:!1,m=h.offer_escalation_support!==void 0?h.offer_escalation_support:!1,n=h.msg_id,o=h.sdp;h=h.videoon;i={call_id:i,calltype:j,capability:k,escalation_conference_name:b,experiments:c,extraParams:e,fbexp:f,from:g,handlescollision:l,msg_id:n,offer_escalation_support:m,sdp:o,source:a,type:d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.OFFER,videoon:h};return i}function j(a){var b=a.from,c=a.payload;a=a.source;c=JSON.parse(c);var e=c.call_id,f=c.capability,g=c.msg_id,h=c.reason;c=c.subreason;e={call_id:e,capability:f,from:b,msg_id:g,reason:h,source:a,subreason:c,type:d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.HANG_UP};return e}function k(a){var b=a.from,c=a.payload;a=a.source;c=JSON.parse(c);var e=c.call_id,f=c.capability;c=c.msg_id;e={call_id:e,capability:f,from:b,msg_id:c,source:a,type:d("ZenonP2PMessageTypes").ZenonP2PSignalingPayloadType.OTHER_DISMISS};return e}g.getValidP2PMessage=a;g.transformP2PMessage=b}),98); __d("RTWebSignalingListener",["FBLogger","FBMqttChannel","ZenonDebugLogger","ZenonMWMessageReliabilityLogger","ZenonMWMessageTranslator","ZenonP2PMessageTranslator","ZenonP2PMessageValidator","cr:1979","promiseDone","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){}var e=a.prototype;e.subscribe=function(a,e,f){var g=this;c("FBMqttChannel").subscribe("/webrtc",function(b){var f=c("ZenonDebugLogger").getInstance(),h=d("ZenonP2PMessageValidator").getValidP2PMessage(b),i=d("ZenonP2PMessageValidator").transformP2PMessage(h);g.$1(b,e);if(i){b=d("ZenonP2PMessageTranslator").toSignalingMessage(i);b&&(f.logP2PMessageReceived(h),a(b),f.logP2PMessageProcessed(h))}});c("FBMqttChannel").subscribe("/rtc_multi",function(b){try{var e=JSON.parse(b),h=c("ZenonDebugLogger").getInstance();d("ZenonMWMessageReliabilityLogger").logReceivedMessage(e);h.logMWMessage("RECEIVED","MQTT",e);h=d("ZenonMWMessageTranslator").toSignalingMessage(e);a(h);f&&g.$2(b,f);d("ZenonMWMessageReliabilityLogger").logProcessingMessage(e)}catch(a){c("FBLogger")("rpweb").catching(a).warn("Error receiving MQTT message from /rtc_multi topic")}});b("cr:1979")&&c("FBMqttChannel").subscribeBinary("/t_rtc_multi",function(e){try{e=b("cr:1979").toZenonMWMessage(e);c("promiseDone")(e,function(b){if(b==null)return;var c=d("ZenonMWMessageTranslator").toSignalingMessage(b);a(c);f&&f(b)})}catch(a){c("FBLogger")("rpweb").catching(a).warn("Error receiving binary MQTT message from /t_rtc_multi topic")}})};e.unsubscribe=function(){c("FBMqttChannel").unsubscribeAll("/webrtc"),c("FBMqttChannel").unsubscribeAll("/rtc_multi"),b("cr:1979")&&c("FBMqttChannel").unsubscribeAll("/t_rtc_multi")};e.$1=function(a,b){try{a=JSON.parse(a);b(a)}catch(a){c("recoverableViolation")("Signaling messages should be json parsable. error:"+a,"rtweb")}};e.$2=function(a,b){try{a=JSON.parse(a);b(a)}catch(a){c("recoverableViolation")("Signaling messages should be json parsable. error:"+a,"rtweb")}};return a}();g["default"]=a}),98); __d("FBRTCCallSummaryUploader",["Banzai","DateConsts","FBRTCCallSummary","FBRTCCallSummaryStore","ZenonCallSummaryUploader","cr:11757","gkx"],(function(a,b,c,d,e,f,g){var h=1*d("DateConsts").MS_PER_MIN,i=null;function a(){if(c("gkx")("4700")){if(i!==null)return;i=window.setInterval(function(){var a=c("FBRTCCallSummaryStore").getInstance();d("ZenonCallSummaryUploader").logCallSummaries();b("cr:11757")==null?void 0:b("cr:11757").logCallSummaries();c("FBRTCCallSummary").logSavedSummaries(a)},h)}else c("Banzai").subscribe(c("Banzai").SEND,function(){var a=c("FBRTCCallSummaryStore").getInstance();d("ZenonCallSummaryUploader").logCallSummaries();b("cr:11757")==null?void 0:b("cr:11757").logCallSummaries();c("FBRTCCallSummary").logSavedSummaries(a)})}g.init=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)}):b()})}g.doLog=a;g.doLogPromise=e}),98); __d("BladeRunnerConfig",["RTISubscriptionManagerConfig","WebDriverConfig","gkx","isEmpty"],(function(a,b,c,d,e,f,g){var h="javascript-sandbox",i="OverrideServer",j="www_sandbox";a=function(){function a(){}var b=a.prototype;b.patchRequestHeaders=function(a){var b={},d=c("RTISubscriptionManagerConfig").bladerunner_www_sandbox;if(!c("isEmpty")(c("WebDriverConfig").auxiliaryServiceInfo)){var e;e=(e=c("WebDriverConfig").auxiliaryServiceInfo.BladeRunner)!=null?e:c("WebDriverConfig").auxiliaryServiceInfo["BladeRunner-sandcastle"];e!=null&&(typeof e.ip_address==="string"?b[i]=e.ip_address+":18295":typeof e.hostname==="string"&&(b[i]=e.hostname+":18295"),typeof c("WebDriverConfig").originHost==="string"&&(b[j]="www."+c("WebDriverConfig").originHost))}else d!=null&&(b[h]=d);c("gkx")("307")&&(b["Accept-Ack"]="RSAck");for(var f in a)b[f]=a[f];return b};return a}();b=new a();d=b;g["default"]=d}),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.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);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){c===void 0&&(c=null);d===void 0&&(d=null);e===void 0&&(e=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};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){f===void 0&&(f=null);if(a==null||a.requestId==null||a.clientLoggingDisabled!=null)return;var g={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};c("RtiRequestStreamE2eClientFalcoEvent").log(function(){return g})}g.RequestStreamE2ELogger=k;g.createStreamLogger=a;g.logRequestStreamE2EEventStatic=b}),98); __d("BladeRunnerSocket",["BladeRunnerEventHandler","BladeRunnerLogger","BladeRunnerStreamStatus","BladeRunnerTypes","BladeRunnerTypesInternal","CurrentUser","FBMqttChannel","MqttPublishListener","Promise","RequestStreamE2EClientLoggerEvent","RequestStreamE2EClientLoggerMessageType","RequestStreamE2ELogger","RequestStreamTransport","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h="Connected",i="Disconnected",j=511*1024,k="/br_sr",l="/sr_res",m=null;function n(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 o(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 p(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 q(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=p(a);a!==null&&(b.flow_status=a)}});return b}function r(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 s(a,b,e){var f=n(a);if(f==null)return;var g=o(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;r(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(){m==null&&(m=new a(c("FBMqttChannel")));return m};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>j){var g=Math.floor(a.length/2);if(g===0){a.forEach(function(a){return s(a,d("MqttPublishListener").MqttPublishEvent.PUBLISH_ERROR,{reason:"too long"})});var h=new Error("Publish is too long: "+f.length);h.stack;this.$21(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 "+k+" ("+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){s(a,b,{latency:c})})}}}this.$7.publish(k,f,h)["catch"](function(a){b.$21(e,a,"Failed publishing to MQTT")});c("BladeRunnerLogger").bumpCounter("mqtt_publish_success")}catch(a){this.$21(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(k,function(a){throw new Error("Unexpected response: "+k+" "+a.toString())});this.$7.subscribe(l,function(b){a.$22(b)})};e.$22=function(a){a=d("BladeRunnerTypesInternal").GatewayStreamBatch.read(a);this.processBatch(a)};e.$21=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.$23(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.$24(h)}}}c("BladeRunnerLogger").info("Failed publishing to MQTT: "+b.message);c("BladeRunnerLogger").bumpCounter("mqtt_publish_error")};e.$24=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,q(a));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.$24(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.$23(a,b,d("BladeRunnerStreamStatus").StreamStatus.REJECTED,!1,0)};e.$23=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};return a}();a.maxStreamCount=2e3;g["default"]=a}),98); __d("IRequestStreamRef",[],(function(a,b,c,d,e,f){"use strict"}),null); __d("BladeRunnerStream",["Promise","regeneratorRuntime"],(function(a,b,c,d,e,f,g){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}();g["default"]=a}),98); __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");return JSON.stringify(b,Object.keys(b).sort())}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;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("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(var 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(var 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"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d,e){var f={};a=Object.entries(a);for(var g=0;g0&&(f["xrs-instrumentation"]=c("Base64").encode(d));f["XRS-Accept-Ack"]="RSAck";e!=null&&e.ackTimeoutSec!=null&&(f["XRS-SRAck-Timeout"]=e.ackTimeoutSec.toString());return f}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 b(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 a.auxId}catch(a){}return null}function d(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.getAuxIdFromPayload=b;g.transformContextWithRewriteDelta=d}),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"]);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,g){"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}();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.$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("RequestStreamCommonRequestStreamCommonSerializers",["RequestStreamCommonRequestStreamCommonTypes","ThriftTypes","jsbi"],(function(a,b,c,d,e,f){"use strict";a=function(){return{}};c=function(){return{bytes:Uint8Array.of()}};d=function(){return{message:""}};f=function(){return{reason:b("RequestStreamCommonRequestStreamCommonTypes").TerminationReason.cast(0)}};var g=function(){return{}},h=function(){return{stream_id:"0",last_sequencer:0,amendment_count:0,last_status:b("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.cast(0)}},i=function(){return{caller_timestamp_ms:"0"}},j=function(){return{original_ping_timestamp_ms:"0"}},k=function(){return{}},l=function(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()},m=function(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()},n=function(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()},o=function(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()},p=function(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()},q=function(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()},r=function(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()},s=function(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(var 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(var 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(var 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()},t=function(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()},u=function(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},v=function(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},w=function(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},x=function(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},y=function(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},z=function(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},A=function(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(var f=0;f0)return new(b("Promise"))(function(a){return setTimeout(a,k)}).then(function(){return h.$25()});else return this.$25()}};e.$26=function(){return this.$11!=null};e.$22=function(a,b){var e,f=this,g=typeof a=="string"?new TextEncoder().encode(a):a,h=String(this.$16++);(e=this.$6)==null?void 0:e.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").AMENDMENT,c("RequestStreamE2EClientLoggerEvent").RECEIVED,{data_size:(a=a==null?void 0:(e=a.length)==null?void 0:e.toString())!=null?a:"0"},h);e=p(this.$5,h);a={amend:{amendment:g,instrumentation_data:e}};b&&a.amend&&(a.amend.amendment_id=h);g=d("CompactSerializerPolyfill").serialize(a,d("RequestStreamSingleChannelSingleChannelRequestStreamSerializers").serializePayload);var i=Date.now();if(this.$27()&&this.$11!=null){b&&this.$18.add(h);this.$11.send(g).then(function(a){var b;o(a);a=(Date.now()-i).toString();(b=f.$6)==null?void 0:b.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").AMENDMENT,c("RequestStreamE2EClientLoggerEvent").PUBACK,{latency:a},h)})["catch"](function(a){var b;(b=f.$6)==null?void 0:b.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").AMENDMENT,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:a.message},h);f.$18.reject(h,a)});(e=this.$6)==null?void 0:e.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").AMENDMENT,c("RequestStreamE2EClientLoggerEvent").SENT,{},h);return h}else{(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").AMENDMENT,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"not_started"},h)}};e.$24=function(a){var e=this,f,g,i,j,k,l,m;return b("regeneratorRuntime").async(function(n){while(1)switch(n.prev=n.next){case 0:if(this.$9){n.next=32;break}g=this.$2||this.$1;n.prev=2;i=this.$28();this.$13=i;j=d("DGWRequestStreamUtils").convertHeaders(babelHelpers["extends"]({},g.headers,this.$29()),g.body!=null,this.$5);n.next=8;return b("regeneratorRuntime").awrap(this.$19.establishStream(j,i,this.$7));case 8:this.$11=n.sent;n.next=19;break;case 11:n.prev=11;n.t0=n["catch"](2);if(!(d("DGWStream").StreamError.isValid(n.t0)&&!d("DGWStream").isRetryableError(n.t0))){n.next=15;break}throw new Error("StreamError: "+n.t0);case 15:if(!(d("DGWStream").StreamError.isValid(n.t0)&&d("DGWStream").isRetryableError(n.t0))){n.next=18;break}this.$30(n.t0);return n.abrupt("return");case 18:throw n.t0;case 19:if(!this.$9){n.next=22;break}this.$23(d("RequestStreamCloseReason").RequestStreamCloseReason.UserIntention,"user cancel the stream",!0);return n.abrupt("return");case 22:k=new Uint8Array([]);g.body!=null&&(l={request_body:{body:g.body}},k=d("CompactSerializerPolyfill").serialize(l,d("RequestStreamSingleChannelSingleChannelRequestStreamSerializers").serializePayload));if(this.$11){n.next=26;break}throw new Error("dgwstream_is_null");case 26:m=this.$11.send(k).then(function(a){o(a),e.$9&&e.$23(d("RequestStreamCloseReason").RequestStreamCloseReason.UserIntention,"user cancel the stream",!0)});(f=this.$6)==null?void 0:f.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").REQUEST_STREAM,c("RequestStreamE2EClientLoggerEvent").SENT,{},a,String(this.$17));this.$12=h;return n.abrupt("return",m);case 32:throw new Error("stream_already_canceled");case 33:case"end":return n.stop()}},null,this,[[2,11]])};e.$27=function(){return this.$8.flowStatus===d("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Started||this.$8.flowStatus===d("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Accepted};e.$23=function(a,b,c){var e;this.$11&&a!==d("RequestStreamCloseReason").RequestStreamCloseReason.StreamError&&a!==d("RequestStreamCloseReason").RequestStreamCloseReason.RemoteTermination&&this.$11.close();(e=this.$13)==null?void 0:e.stop();this.$11=null;this.$10=!0;this.$31(d("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Stopped)&&this.$3.onFlowStatus(d("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Stopped);c&&!this.$9&&this.$3.onTermination("terminate stream because "+a+" with msg : "+b)};e.$31=function(a){var b=this.$8;this.$8=d("RequestStreamState").getNextState(b,a);return b!==this.$8};e.$25=function(){this.$12--;this.$17++;return this.start(!0)};e.$32=function(a){var b=this;a=d("CompactSerializerPolyfill").deserialize(a,d("RequestStreamSingleChannelSingleChannelRequestStreamSerializers").deserializePayload);if(a.response){var e=d("DGWRequestStreamUtils").getAuxIdFromPayload(a);if(!this.$26()){var f;(f=this.$6)==null?void 0:f.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"response_received_after_close"},e,String(this.$17));return}(f=this.$6)==null?void 0:f.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").RECEIVED,q(a.response),e,String(this.$17));f=a.response.delta;f.forEach(function(a){if(a.data)b.$8.flowStatus===d("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Started&&b.$3.onData(new TextDecoder("utf-8").decode(a.data.bytes));else if(a.flow_status){var c=a.flow_status;b.$31(c)&&b.$3.onFlowStatus(c)}else if(a.termination){c=(c=a.termination.message)!=null?c:"unknown termination msg";b.$2=null;b.shouldTerminateOrRetry(d("RequestStreamCloseReason").RequestStreamCloseReason.RemoteTermination,c,a.termination.reason===d("RequestStreamCommonRequestStreamCommonTypes").TerminationReason.TryAgain,a.termination.retry_delay_ms!=null?parseInt(a.termination.retry_delay_ms,10):null)}else if(a.log)b.$3.onLog(a.log.message);else if(a.amend_ack){c=a.amend_ack.amendment_id;if(c!=null){var e=a.amend_ack.accepted||!1;b.$18.resolve(c,e)}}else if(a.rewrite){c=d("DGWRequestStreamUtils").transformContextWithRewriteDelta(b.$1,a.rewrite);a.rewrite.temporary===!0?b.$2=c:b.$1=c}});(f=this.$6)==null?void 0:f.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").SENT,{},e,String(this.$17));a.response.ack_level===d("RequestStreamCommonRequestStreamCommonTypes").AckLevel.Device&&a.response.response_id!=null&&this.$33(a.response.response_id,e)}else{(f=this.$6)==null?void 0:f.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"unexpected_payload_type"},null,String(this.$17))}};e.$33=function(a,b){a={ack:{response_id:a,ack:d("RequestStreamSingleChannelSingleChannelRequestStreamTypes").Ack.Success}};a=d("CompactSerializerPolyfill").serialize(a,d("RequestStreamSingleChannelSingleChannelRequestStreamSerializers").serializePayload);if(this.$11!=null){this.$11.send(a);(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE_ACK,c("RequestStreamE2EClientLoggerEvent").SENT,{},b,String(this.$17))}else{(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE_ACK,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"not_started"},b,String(this.$17))}};e.$21=function(){return this.$1.headers.method==="Falco"};e.$28=function(){return new(c("DGWStreamHandler"))(this.$34.bind(this),this.$35.bind(this),this.$30.bind(this),this.$36.bind(this),this.$37.bind(this))};e.$37=function(a){(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").REQUEST_STREAM,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"OnClose: Server Has FinishedSendingData"},null,String(this.$17));this.$23(d("RequestStreamCloseReason").RequestStreamCloseReason.ServerDataEnd,"Client receive OnServerHasFinishedSendingData and Server will not send more data",!0)};e.$34=function(a){(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").REQUEST_STREAM,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:"OnClose: Server Close Connection"},null,String(this.$17));this.$23(d("RequestStreamCloseReason").RequestStreamCloseReason.RemoteTermination,"Client receive OnClose and Server will not send more data",!0)};e.$35=function(a){try{this.$32(a)}catch(b){(a=this.$6)==null?void 0:a.logE2EEvent(c("RequestStreamE2EClientLoggerMessageType").RESPONSE,c("RequestStreamE2EClientLoggerEvent").FAILURE,{reason:b.message},null,String(this.$17));this.shouldTerminateOrRetry(d("RequestStreamCloseReason").RequestStreamCloseReason.ClientError,b.message,!1)}};e.$30=function(a){var b="",c=d("DGWStream").isRetryableError(a);b="StreamError: Received "+a;this.shouldTerminateOrRetry(d("RequestStreamCloseReason").RequestStreamCloseReason.StreamError,b,c)};e.$36=function(a,b){this.shouldTerminateOrRetry(d("RequestStreamCloseReason").RequestStreamCloseReason.ServerDrain,b,!0)};e.$29=function(){var a={},b=c("RTISubscriptionManagerConfig").bladerunner_www_sandbox;b!=null&&(a[n]=b);return a};return a}();g["default"]=a}),98); __d("DGWAuth",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";var g=b("$InternalEnum")({TEST:"0:0",FACEBOOK:"1:0",INTERNALFB:"2:0",ENTERPRISEFB:"7:0",RECRUITINGFB:"8:0",INSTAGRAM:"6:0"});function a(a){if(a==="TEST")return g.TEST;else if(a==="FACEBOOK")return g.FACEBOOK;else if(a==="INTERNALFB")return g.INTERNALFB;else if(a==="ENTERPRISEFB")return g.ENTERPRISEFB;else if(a==="RECRUITINGFB")return g.RECRUITINGFB;else if(a==="INSTAGRAM")return g.INSTAGRAM;else{a=new Error("failed to convert string ("+a+") to DGWAuth Type");a.stack;throw a}}function c(a){if(a===g.FACEBOOK)return"FACEBOOK";else if(a===g.INTERNALFB)return"INTERNALFB";else if(a===g.ENTERPRISEFB)return"ENTERPRISEFB";else if(a===g.RECRUITINGFB)return"RECRUITINGFB";else if(a===g.INSTAGRAM)return"INSTAGRAM";else return"TEST"}f.DGWAuth=g;f.fromStringToDGWAuth=a;f.fromDGWAuthToString=c}),66); __d("DgwClientFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f){"use strict";a=b("getFalcoLogPolicy_DO_NOT_USE")("1755537");c=b("FalcoLoggerInternal").create("dgw_client",a);e.exports=c}),null); __d("DGWLoggingContext",["$InternalEnum","DgwClientFalcoEvent","ODS","Random"],(function(a,b,c,d,e,f,g){"use strict";a="dgw_client";var h=b("$InternalEnum")({STREAM_GROUP_COMPONENT:"WebStreamGroup",GROUPED_STREAM_COMPONENT:"GroupedWebStream",WEBSOCKET_TRANSPORT_COMPONENT:"WebSocketTransport",ACK_MANAGER_COMPONENT:"WebStreamAckManager",CODEC_COMPONENT:"WebCodec"});function i(a){switch(a){case h.GROUPED_STREAM_COMPONENT:case h.ACK_MANAGER_COMPONENT:return!0;default:return!1}}e=function(){function a(a,b,c,d,e,f,g){f===void 0&&(f=!1),g===void 0&&(g=!1),this.$5=""+a,this.$1=b,this.$4=c,this.$3=d,this.$6=e,this.$2=f,this.$7=g}var b=a.prototype;b.bumpODSKey=function(a,b,c){c===void 0&&(c=1);if(!d("Random").coinflip(c))return;a=a+"."+b;d("ODS").bumpEntityKey(3589,"dgw_web_client",a,c)};b.logEvent=function(a,b,c,d){d===void 0&&(d=!1),this.$2||this.$8(a,b,null,c,d)};b.$8=function(a,b,d,e,f){var g=this;f===void 0&&(f=!1);if(f&&!this.$7)return;(i(a)&&this.$1!=null||!i(a)&&this.$6!=null)&&c("DgwClientFalcoEvent").log(function(){return{event:b,logging_id:g.$1,dgw_version:g.$5,error:d,uuid:g.$3,dgw_component:a,extra_info:e,destination_tier:g.$4,sg_transport_id:g.$6}})};b.logError=function(a,b,c,d,e){e===void 0&&(e=!1),this.$2||this.$8(a,b,c,d,e)};b.logWarn=function(a,b,c,d,e){e===void 0&&(e=!1),this.$2||this.$8(a,b,c,d,e)};return a}();g.DGW_MODULE=a;g.DGWLoggingComponent=h;g.DGWLoggingContext=e}),98); __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("DGWCppBridge",[],(function(l,m,n,o,p,q){var r=function(){var l=typeof document!=="undefined"&&document.currentScript?document.currentScript.src:void 0;return function(m){m=m||{};var m=typeof m!=="undefined"?m:{},n=function(){function m(){}function n(l,m){return function(){l.apply(m,arguments)}}function l(m){if(!(this instanceof l))throw new TypeError("Promises must be constructed via new");if(typeof m!=="function")throw new TypeError("not a function");this._state=0;this._handled=!1;this._value=void 0;this._deferreds=[];t(m,this)}function o(m,n){while(m._state===3)m=m._value;if(m._state===0){m._deferreds.push(n);return}m._handled=!0;l._immediateFn(function(){var l=m._state===1?n.onFulfilled:n.onRejected;if(l===null){(m._state===1?p:q)(n.promise,m._value);return}try{l=l(m._value)}catch(l){q(n.promise,l);return}p(n.promise,l)})}function p(m,o){try{if(o===m)throw new TypeError("A promise cannot be resolved with itself.");if(o&&(typeof o==="object"||typeof o==="function")){var p=o.then;if(o instanceof l){m._state=3;m._value=o;r(m);return}else if(typeof p==="function"){t(n(p,o),m);return}}m._state=1;m._value=o;r(m)}catch(l){q(m,l)}}function q(l,m){l._state=2,l._value=m,r(l)}function r(m){m._state===2&&m._deferreds.length===0&&l._immediateFn(function(){m._handled||l._unhandledRejectionFn(m._value)});for(var n=0,p=m._deferreds.length;n=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(var 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("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("StreamIdGenerator",["err"],(function(a,b,c,d,e,f,g){"use strict";var h=255,i=65535;a=function(){function a(){this.$1=new Set();for(var a=0;a<=h;++a)this.$1.add(a)}var b=a.prototype;b.getNextStreamId=function(){var a;if(this.$1.size===0)throw c("err")("Max number of stream IDs reached");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};return a}();b=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(var 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()h&&(clearTimeout(r),z());p.push([a,b]);q+=c}function z(){r=null;s=!1;var a=p;l.enqueue(function(b){return b.log(a.map(function(a){return a[1].item}),function(b){for(var c=0;c=this.$1.publishWaitIntervalsMS().length};b.waitForNextPublish=function(){var a=this,b=this.$1.publishWaitIntervalsMS()[this.$3];this.$3+=1;b===0?this.$8():c("setTimeout")(function(){a.$8()},b)};b.startSubscribeTimer=function(){var a=this,b=this.$1.subscribeTimeoutIntervalMS();this.$4=c("setTimeout")(function(){a.$9()},b)};b.startPayloadTimer=function(){var a=this,b=this.$1.payloadTimeoutIntervalMS();this.$5=c("setTimeout")(function(){a.$10()},b)};b.cleanUpFleetBeacon=function(){this.$1.cleanUpFleetBeacon()};b.onCleanUpFinish=function(){var a=this;this.$6(function(){return a.$2.cleanUpFinish()})};b.$8=function(){var a=this;this.$6(function(){return a.$2.waitForPublishTimeout()})};b.$9=function(){var a=this;this.$6(function(){return a.$2.subscribeTimeout()})};b.$10=function(){var a=this;this.$6(function(){return a.$2.payloadTimeout()})};b.onPrepareFleetBeaconSuccess=function(){var a=this;this.$6(function(){return a.$2.prepareFleetBeaconSucceed()})};b.onPrepareFleetBeaconFailed=function(){var a=this;this.$6(function(){return a.$2.prepareFleetBeaconFailed()})};b.onSubscribe=function(){var a=this;c("clearTimeout")(this.$4);this.$6(function(){return a.$2.subscribeSuccessSignalReceived()})};b.onPayloadReceived=function(){var a=this;c("clearTimeout")(this.$5);this.$6(function(){return a.$2.payloadReceived()})};b.onPublishFailed=function(){var a=this;c("clearTimeout")(this.$5);this.$6(function(){return a.$2.publishFailed()})};b.$6=function(a){a=a();var b=this.$2;this.$2=a.newState;var c=this.$2;this.$11(b,c);a.action()};b.$11=function(a,b){this.$1.onFleetBeaconStateTransition(a,b)};return a}();g["default"]=a}),98); __d("FleetBeaconStateTransitionListener",[],(function(a,b,c,d,e,f){a=function(){function a(){}var b=a.prototype;b.onFleetBeaconStateTransition=function(a,b,c,d){throw new Error("Require implementation")};b.cleanState=function(){throw new Error("Require implementation")};return a}();f["default"]=a}),66); __d("FleetBeaconTestBase",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1=null,this.$2=[]}var b=a.prototype;b.addStateTransitionListener=function(a){this.$2.push(a)};b.cleanPreviousFleetBeaconResult=function(){this.$2.forEach(function(a){a.cleanState()})};b.getNumberOfPublishers=function(){var a;return(a=(a=this.$1)==null?void 0:a.getPublishTimes())!=null?a:-1};b.getTestID=function(){throw new Error("Require implementation")};b.setFleetBeaconRunner=function(a){this.$1=a};b.prepareFleetBeaconTest=function(){throw new Error("Require implementation")};b.onPrepareFleetBeaconSuccess=function(){var a;(a=this.$1)==null?void 0:a.onPrepareFleetBeaconSuccess()};b.onPrepareFleetBeaconFailed=function(){var a;(a=this.$1)==null?void 0:a.onPrepareFleetBeaconFailed()};b.subscribe=function(){throw new Error("Require implementation")};b.onSubscribe=function(){var a;(a=this.$1)==null?void 0:a.onSubscribe()};b.publish=function(){throw new Error("Require implementation")};b.cleanUpFleetBeacon=function(){throw new Error("Require implementation")};b.onCleanUpFinish=function(){var a;(a=this.$1)==null?void 0:a.onCleanUpFinish()};b.onPublishFailed=function(){var a;(a=this.$1)==null?void 0:a.onPublishFailed()};b.onPayloadReceived=function(){var a;(a=this.$1)==null?void 0:a.onPayloadReceived()};b.subscribeTimeoutIntervalMS=function(){return 1e4};b.payloadTimeoutIntervalMS=function(){return 2e4};b.publishWaitIntervalsMS=function(){return[1e4,5e3]};b.shouldStartTime=function(){return!0};b.onFleetBeaconStateTransition=function(a,b){var c=this,d=Date.now();this.$2.forEach(function(e){e.onFleetBeaconStateTransition(a,b,d,c)})};return a}();f["default"]=a}),66); __d("FleetBeaconTestUIAnnouncer",["FleetBeaconStateTransitionListener"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b;b=a.call(this)||this;b.$FleetBeaconTestUIAnnouncer1=[];b.$FleetBeaconTestUIAnnouncer3=!1;b.$FleetBeaconTestUIAnnouncer4=!1;b.$FleetBeaconTestUIAnnouncer5=!1;b.$FleetBeaconTestUIAnnouncer6=!1;b.$FleetBeaconTestUIAnnouncer7=-1;b.$FleetBeaconTestUIAnnouncer8=-1;b.$FleetBeaconTestUIAnnouncer9=0;b.$FleetBeaconTestUIAnnouncer10=0;b.$FleetBeaconTestUIAnnouncer11=[];b.$FleetBeaconTestUIAnnouncer12=-1;b.$FleetBeaconTestUIAnnouncer13=-1;b.$FleetBeaconTestUIAnnouncer14=-1;return b}var c=b.prototype;c.cleanState=function(){this.$FleetBeaconTestUIAnnouncer3=!1,this.$FleetBeaconTestUIAnnouncer4=!1,this.$FleetBeaconTestUIAnnouncer5=!1,this.$FleetBeaconTestUIAnnouncer6=!1,this.$FleetBeaconTestUIAnnouncer7=-1,this.$FleetBeaconTestUIAnnouncer8=-1,this.$FleetBeaconTestUIAnnouncer9=0,this.$FleetBeaconTestUIAnnouncer10=0,this.$FleetBeaconTestUIAnnouncer11=[],this.$FleetBeaconTestUIAnnouncer12=-1,this.$FleetBeaconTestUIAnnouncer13=-1,this.$FleetBeaconTestUIAnnouncer14=-1};c.addSubscriber=function(a){this.$FleetBeaconTestUIAnnouncer1.push(a)};c.onFleetBeaconStateTransition=function(a,b,c,d){var e=d.getTestID(),f={oldState:a,newState:b,testID:e,timestamp:c,extra:{}};this.$FleetBeaconTestUIAnnouncer2==null&&(this.$FleetBeaconTestUIAnnouncer2=d);e="NONE";switch(b.getName()){case"initial":break;case"preparing":this.$FleetBeaconTestUIAnnouncer12=Date.now();this.$FleetBeaconTestUIAnnouncer3=!0;f.extra=babelHelpers["extends"]({},f.extra,{createIssued:!0});break;case"before_subscribe":this.$FleetBeaconTestUIAnnouncer13=Date.now();this.$FleetBeaconTestUIAnnouncer4=!0;f.extra=babelHelpers["extends"]({},f.extra,{createSuccess:!0});break;case"subscribe_issued":this.$FleetBeaconTestUIAnnouncer5=!0;f.extra=babelHelpers["extends"]({},f.extra,{subscribeIssued:!0,subscribeTimestamp:this.$FleetBeaconTestUIAnnouncer13,subscribeTimeoutIntervalMS:(d=(c=this.$FleetBeaconTestUIAnnouncer2)==null?void 0:c.subscribeTimeoutIntervalMS())!=null?d:-1});break;case"waiting_to_publish":a.getName()==="subscribe_issued"&&(this.$FleetBeaconTestUIAnnouncer6=!0,this.$FleetBeaconTestUIAnnouncer7=Date.now()-this.$FleetBeaconTestUIAnnouncer13,f.extra=babelHelpers["extends"]({},f.extra,{subscribeSuccess:!0,subscribeLatencyMS:this.$FleetBeaconTestUIAnnouncer7}));a.getName()==="publish_issued"&&this.$FleetBeaconTestUIAnnouncer15(f);break;case"publish_issued":this.$FleetBeaconTestUIAnnouncer9+=1;this.$FleetBeaconTestUIAnnouncer14=Date.now();f.extra=babelHelpers["extends"]({},f.extra,{publishIssued:!0,payloadTimeoutInterval:(c=(b=this.$FleetBeaconTestUIAnnouncer2)==null?void 0:b.payloadTimeoutIntervalMS())!=null?c:-1});break;case"failed":a.getName()==="subscribe_issued"&&(e="SUBSCRIBE_FAILED");a.getName()==="publish_issued"&&(e="RECEIVE_PUBLISH_FAILED");this.$FleetBeaconTestUIAnnouncer16(f,"FAILURE",e);break;case"succeed":a.getName()==="publish_issued"&&this.$FleetBeaconTestUIAnnouncer15(f);this.$FleetBeaconTestUIAnnouncer16(f,"SUCCESS","NONE");break;case"aborted":a.getName()==="preparing"&&(e="CREATE_TEST_FAILED");a.getName()==="publish_issued"&&(e="MUTATE_FIELD_FAILED");this.$FleetBeaconTestUIAnnouncer16(f,"ABORT",e);break;case"finish":f.extra=babelHelpers["extends"]({},f.extra,{cleanUpFinish:!0});break;default:}this.$FleetBeaconTestUIAnnouncer1.forEach(function(a){a(f)})};c.$FleetBeaconTestUIAnnouncer15=function(a){this.$FleetBeaconTestUIAnnouncer10+=1;var b=Date.now()-this.$FleetBeaconTestUIAnnouncer14;this.$FleetBeaconTestUIAnnouncer11.push(b);a.extra=babelHelpers["extends"]({},a.extra,{payloadSuccess:!0,payloadSuccessCnt:this.$FleetBeaconTestUIAnnouncer10,payloadLatency:b})};c.$FleetBeaconTestUIAnnouncer16=function(a,b,c){a.extra=babelHelpers["extends"]({},a.extra,{testResult:b,failureReason:c})};return b}(c("FleetBeaconStateTransitionListener"));g["default"]=a}),98); __d("FleetBeaconSubscriptionNetwork",["CurrentUser","FleetBeaconSubscriptionNetwork_LogMutation.graphql","FleetBeaconSubscriptionNetwork_PublishMutation.graphql","FleetBeaconSubscriptionNetwork_Subscription.graphql","Promise","RelayFBSubscription","cr:1053","regeneratorRuntime","relay-runtime","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=b("cr:1053").addFBisms(d("relay-runtime").commitMutation),l=c("RelayFBSubscription").addFBisms(d("relay-runtime").requestSubscription);a=function(){function a(a){this.environment=a}var d=a.prototype;d.subscribe=function(a,c){return l(this.environment,{subscription:h!==void 0?h:h=b("FleetBeaconSubscriptionNetwork_Subscription.graphql"),variables:{input:{test_id:a}},onError:c.onError,onNext:c.onNext})};d.publish=function(a){var d=this;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new(b("Promise"))(function(e,f){k(d.environment,{mutation:i!==void 0?i:i=b("FleetBeaconSubscriptionNetwork_PublishMutation.graphql"),variables:{input:{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getAccountID(),test_id:a}},onCompleted:function(a){return e()},onError:f})}));case 1:case"end":return e.stop()}},null,this)};d.log=function(a){var c=this;return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:return d.abrupt("return",new(b("Promise"))(function(d,e){k(c.environment,{mutation:j!==void 0?j:j=b("FleetBeaconSubscriptionNetwork_LogMutation.graphql"),variables:{input:a},onCompleted:function(a){return d()},onError:e})}));case 1:case"end":return d.stop()}},null,this)};return a}();g["default"]=a}),98); __d("FleetBeaconTestSubscriptionLogger",["CurrentUser","FleetBeaconStateTransitionListener","RelayRTIUtils","uuid"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c,d){var e;e=a.call(this)||this;e.$FleetBeaconTestSubscriptionLogger1=null;e.$FleetBeaconTestSubscriptionLogger2=b;e.$FleetBeaconTestSubscriptionLogger3=!1;e.$FleetBeaconTestSubscriptionLogger4=!1;e.$FleetBeaconTestSubscriptionLogger5=!1;e.$FleetBeaconTestSubscriptionLogger6=!1;e.$FleetBeaconTestSubscriptionLogger7=-1;e.$FleetBeaconTestSubscriptionLogger8=-1;e.$FleetBeaconTestSubscriptionLogger9=0;e.$FleetBeaconTestSubscriptionLogger10=0;e.$FleetBeaconTestSubscriptionLogger11=[];e.$FleetBeaconTestSubscriptionLogger12=-1;e.$FleetBeaconTestSubscriptionLogger13=-1;e.$FleetBeaconTestSubscriptionLogger14=-1;e.$FleetBeaconTestSubscriptionLogger15=c;e.$FleetBeaconTestSubscriptionLogger16=d;return e}var e=b.prototype;e.cleanState=function(){this.$FleetBeaconTestSubscriptionLogger3=!1,this.$FleetBeaconTestSubscriptionLogger4=!1,this.$FleetBeaconTestSubscriptionLogger5=!1,this.$FleetBeaconTestSubscriptionLogger6=!1,this.$FleetBeaconTestSubscriptionLogger7=-1,this.$FleetBeaconTestSubscriptionLogger8=-1,this.$FleetBeaconTestSubscriptionLogger9=0,this.$FleetBeaconTestSubscriptionLogger10=0,this.$FleetBeaconTestSubscriptionLogger11=[],this.$FleetBeaconTestSubscriptionLogger12=-1,this.$FleetBeaconTestSubscriptionLogger13=-1,this.$FleetBeaconTestSubscriptionLogger14=-1};e.onFleetBeaconStateTransition=function(a,b,c,d){this.$FleetBeaconTestSubscriptionLogger1==null&&(this.$FleetBeaconTestSubscriptionLogger1=d);c="NONE";switch(b.getName()){case"initial":break;case"preparing":this.$FleetBeaconTestSubscriptionLogger12=Date.now();this.$FleetBeaconTestSubscriptionLogger3=!0;break;case"before_subscribe":this.$FleetBeaconTestSubscriptionLogger13=Date.now();this.$FleetBeaconTestSubscriptionLogger4=!0;break;case"subscribe_issued":this.$FleetBeaconTestSubscriptionLogger5=!0;break;case"waiting_to_publish":a.getName()==="subscribe_issued"&&(this.$FleetBeaconTestSubscriptionLogger6=!0,this.$FleetBeaconTestSubscriptionLogger7=Date.now()-this.$FleetBeaconTestSubscriptionLogger13);a.getName()==="publish_issued"&&this.$FleetBeaconTestSubscriptionLogger17();break;case"publish_issued":this.$FleetBeaconTestSubscriptionLogger9+=1;this.$FleetBeaconTestSubscriptionLogger14=Date.now();break;case"failed":a.getName()==="subscribe_issued"&&(c="SUBSCRIBE_FAILED");a.getName()==="publish_issued"&&(c="RECEIVE_PUBLISH_FAILED");this.$FleetBeaconTestSubscriptionLogger18("FAILURE",c);break;case"succeed":a.getName()==="publish_issued"&&this.$FleetBeaconTestSubscriptionLogger17();this.$FleetBeaconTestSubscriptionLogger18("SUCCESS","NONE");break;case"aborted":a.getName()==="preparing"&&(c="CREATE_TEST_FAILED");a.getName()==="publish_issued"&&(c="MUTATE_FIELD_FAILED");this.$FleetBeaconTestSubscriptionLogger18("ABORT",c);break;default:}};e.$FleetBeaconTestSubscriptionLogger17=function(){this.$FleetBeaconTestSubscriptionLogger10+=1;var a=Date.now()-this.$FleetBeaconTestSubscriptionLogger14;this.$FleetBeaconTestSubscriptionLogger11.push(a)};e.$FleetBeaconTestSubscriptionLogger18=function(a,b){var e,f=this,g=this.$FleetBeaconTestSubscriptionLogger12=Date.now()-this.$FleetBeaconTestSubscriptionLogger12,h=parseInt(this.$FleetBeaconTestSubscriptionLogger11.reduce(function(a,b){return a+b},0)/this.$FleetBeaconTestSubscriptionLogger10,10);e=(e=this.$FleetBeaconTestSubscriptionLogger1)==null?void 0:e.getTestID();if(e==null)return;this.$FleetBeaconTestSubscriptionLogger2.log({client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getAccountID(),test_id:e,test_name:"Web_Manual",test_result:a,failure_reason:b,subscribe_issued:this.$FleetBeaconTestSubscriptionLogger5,subscribe_success:this.$FleetBeaconTestSubscriptionLogger6,subscribe_latency_ms:this.$FleetBeaconTestSubscriptionLogger7,subscribe_timeout_interval_ms:(e=this.$FleetBeaconTestSubscriptionLogger1)==null?void 0:e.subscribeTimeoutIntervalMS(),publish_success:this.$FleetBeaconTestSubscriptionLogger10>0,publish_latency_ms:h,publish_timeout_interval_ms:(a=this.$FleetBeaconTestSubscriptionLogger1)==null?void 0:a.payloadTimeoutIntervalMS(),test_duration_ms:g,triggering_subscription:(b=this.$FleetBeaconTestSubscriptionLogger15)!=null?b:"manual",app_id:d("RelayRTIUtils").GRAPH_SERVICES_SDK_APP_ID}).then(function(a){f.$FleetBeaconTestSubscriptionLogger16(!0)})["catch"](function(a){f.$FleetBeaconTestSubscriptionLogger16(!1)})};return b}(c("FleetBeaconStateTransitionListener"));g["default"]=a}),98); __d("FleetBeaconTestSubscription",["FleetBeaconTestBase","FleetBeaconTestSubscriptionLogger","FleetBeaconTestUIAnnouncer","uuid"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,d,e){var f;f=a.call(this)||this;f.onCleanUpFleetBeaconFinish=function(a){f.onCleanUpFinish()};f.$FleetBeaconTestSubscription1=b;f.$FleetBeaconTestSubscription3=null;f.$FleetBeaconTestSubscription4=e;f.$FleetBeaconTestSubscription6=new(c("FleetBeaconTestSubscriptionLogger"))(b,d,f.onCleanUpFleetBeaconFinish);f.$FleetBeaconTestSubscription5=new(c("FleetBeaconTestUIAnnouncer"))();a.prototype.addStateTransitionListener.call(babelHelpers.assertThisInitialized(f),f.$FleetBeaconTestSubscription6);a.prototype.addStateTransitionListener.call(babelHelpers.assertThisInitialized(f),f.$FleetBeaconTestSubscription5);f.cleanPreviousFleetBeaconResult();return f}var d=b.prototype;d.cleanPreviousFleetBeaconResult=function(){a.prototype.cleanPreviousFleetBeaconResult.call(this),this.$FleetBeaconTestSubscription2=c("uuid")()};d.getTestID=function(){return this.$FleetBeaconTestSubscription2};d.getFleetBeaconUIAnnouncer=function(){return this.$FleetBeaconTestSubscription5};d.prepareFleetBeaconTest=function(){this.onPrepareFleetBeaconSuccess()};d.subscribe=function(){var a=this,b=this.$FleetBeaconTestSubscription2;if(b==null)return;this.$FleetBeaconTestSubscription3=this.$FleetBeaconTestSubscription1.subscribe(b,{onNext:function(){a.onPayloadReceived()},onError:function(){}});this.onSubscribe()};d.publish=function(){var b=this,c=this.$FleetBeaconTestSubscription2;if(c==null)return;this.$FleetBeaconTestSubscription1.publish(c)["catch"](function(c){a.prototype.onPublishFailed.call(b)})};d.cleanUpFleetBeacon=function(){};d.$FleetBeaconTestSubscription7=function(){var a;(a=this.$FleetBeaconTestSubscription3)==null?void 0:a.dispose()};d.onFleetBeaconStateTransition=function(b,c){a.prototype.onFleetBeaconStateTransition.call(this,b,c);b=c.getName();b==="finish"&&(this.$FleetBeaconTestSubscription4(),this.$FleetBeaconTestSubscription7())};return b}(c("FleetBeaconTestBase"));g["default"]=a}),98); __d("FleetBeaconSubscriptionLauncher",["FleetBeaconRunner","FleetBeaconSubscriptionNetwork","FleetBeaconTestSubscription"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){a=new(c("FleetBeaconTestSubscription"))(new(c("FleetBeaconSubscriptionNetwork"))(a),b,d);return a}function b(a){var b=new(c("FleetBeaconRunner"))(a);a.setFleetBeaconRunner(b);b.prepareFleetBeaconTest()}g.CreateFleetBeaconTestSubscription=a;g.LaunchFleetBeaconTestSubscription=b}),98); __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)})};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","MqttUtils","Promise","PromiseResult"],(function(a,b,c,d,e,f){"use strict";var g=b("MqttProtocolCodec").WireMessage,h=b("MqttProtocolCodec").decodeByteMessages,i=b("MqttEnv").Env,j=b("MqttProtocolCodec").MESSAGE_TYPE,k="fetch_pull",l="fetch_pull_finish",m="fetch_",n=6e4,o="action",p="chunked",q="send",r="true",s=5,t=20,u=10,v=5e3;a=function(){function a(){this.$1="",this.$2=i.getLoggerInstance(),this.$3=0,this.$4="",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 fetch==="function"};var c=a.prototype;c.run=function(a,c,d,e,f,g,h,i){this.$1=b("MqttUtils").endpointWithSessionId(a,c),this.$3=c,this.$4=d,this.$5=e,this.$6=f,this.$7=g,this.$8=h,this.$9=i,this.$20()};c.isTopicSupported=function(a){return!0};c.publish=function(a,c){if(this.$14!=="ReceivingData"){this.$2.bumpCounter(m+"publish."+a+".invalidstate");return b("Promise").reject("not connected")}else{this.$2.bumpCounter(m+"publish."+a+".publish");var d=new(b("PromiseResult"))();a={topic:a,payload:c,promiseResult:d};this.$15.push(a);this.$21();return d.promise}};c.abort=function(){this.$6=function(){},this.$7=function(a){},this.$8=function(){},this.$9=function(a){}};c.$22=function(a){var b=this;a.forEach(function(a){b.$2.bumpCounter(m+"publish."+a.topic+".resolved"),a.promiseResult.resolve()});this.$12+=a.length};c.$23=function(a,b){var c=this;a.forEach(function(a){c.$2.bumpCounter(m+"publish."+a.topic+".rejected"),a.promiseResult.reject(b)})};c.$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(m+"publish_request_failed");this.$14!="ReceivingData"||c===s?(this.$23(a,d),this.$18=!1,this.$2.bumpCounter(m+"publish_request_failed_final"),this.$21()):this.$25(a,b,c+1)};c.$26=function(a,b,c,d){if(!d.ok){this.$2.bumpCounter(m+"publish_request_failed.http."+d.status);if(d.status===409){this.$19++;if(this.$19>=u){this.$2.bumpCounter(m+"409_reset");this.$27(new Error("Too many 409 errors"));return}}this.$24(a,b,c,this.$28(d));return}this.$2.bumpCounter(m+"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()};c.$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,t);this.$15=this.$15.slice(t,this.$15.length);clearTimeout(this.$17);this.$17=null;var b=this.$16.slice(0,t);this.$16=this.$16.slice(t,this.$16.length);this.$25(a,b,0)};c.$25=function(a,c,d){var e=this,f=a.map(function(a){return a.topic}).join(",");this.$2.debugTrace("FetchClient","Fetch publish request sent. Publishes:"+f+", retry:"+d);f=b("MqttUtils").endpointWithExtraParameter(this.$1,o,q);var g=a.map(function(a){return{topic:a.topic,payload:a.payload,qos:0,messageId:i.random()}});g=this.$5.gen(this.$3,[],g,c);this.$2.bumpCounter(m+"publish_request");b("MqttUtils").promiseDoneWithTimeout(fetch(f,{method:"POST",mode:"cors",cache:"no-cache",credentials:"include",referrer:"no-referrer",body:g,keepalive:!1}),function(b){return e.$26(a,c,d,b)},function(b){return e.$24(a,c,d,b)},n)};c.$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(m+"error");this.$14="Error"};c.$31=function(a){var b=this;this.$2.debugTrace("FetchClient","Fetch response data received");a=h(new Uint8Array(a));a=a.messages;var c=a.filter(function(a){return a.messageType===j.PINGREQ});a=a.filter(function(a){return a.messageType===j.PUBLISH}).map(function(a){if(!(a instanceof g.Publish))return{};a=a;a.qos===1&&a.messageIdentifier!=null&&(b.$16.push(a.messageIdentifier),b.$17==null&&(b.$17=i.setTimeout(function(){b.$21()},v)));return{topic:a.topic,payload:a.payloadMessage,qos:a.qos}});for(var d=a,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var k;if(e){if(f>=d.length)break;k=d[f++]}else{f=d.next();if(f.done)break;k=f.value}k=k;this.$2.bumpCounter(m+"response_"+k.topic)}a&&a.length>0&&(this.$13+=a.length,this.$7(a));c&&c.length>0&&this.$32()};c.$32=function(){this.$2.debugTrace("FetchClient","Got server ping request"),this.$2.bumpCounter(m+"ping")};c.$27=function(a){this.$2.debugTrace("FetchClient","Fetch request ended: "+a.toString()),this.$2.bumpCounter(m+"done"),this.$33(a.message),this.$8(),this.$14="Done"};c.$34=function(a,c,d){var e=this;if(d!==null&&d!==void 0)try{this.$31(d)}catch(a){this.$27(a);this.$2.bumpCounter(m+"dataDecodeException");return}if(c){this.$27(new Error("EOF"));return}b("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)})};c.$35=function(a){if(!a.ok){this.$2.bumpCounter(m+"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(m+"success");this.$30(!0,null);this.$11=Date.now();this.$14="ReceivingData";this.$2.debugTrace("FetchClient","Fetch request success");this.$34(a,!1,null)};c.$33=function(a){this.$2.eventLogPullFinish({pullEventName:l,sessionID:this.$3,duration:Date.now()-this.$11,errorMessage:a,publishReceived:this.$13,publishSent:this.$12})};c.$30=function(a,b){this.$2.eventLogPull({pullEventName:k,sessionID:this.$3,status:a,duration:Date.now()-this.$10,hostname:this.$1,errorMessage:b})};c.$20=function(){var a=this;if(this.$14!="Ready")return;this.$2.debugTrace("FetchClient","Sending fetch request");this.$2.bumpCounter(m+"request");this.$10=Date.now();var c=b("MqttUtils").endpointWithExtraParameter(this.$1,p,r);b("MqttUtils").promiseDoneWithTimeout(fetch(c,{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)},n)};c.$28=function(a){return new Error("Http error, status="+a.status)};return a}();e.exports=a}),null); __d("MqttLongPollingClient",["MqttEnv","MqttProtocolCodec","Promise","XHRRequest","getCrossOriginTransport"],(function(a,b,c,d,e,f){"use strict";var g=b("MqttProtocolCodec").WireMessage,h=b("MqttProtocolCodec").decodeByteMessages,i=b("MqttEnv").Env,j=120*1e3,k="simple_pull";a=function(){function a(){this.$3="",this.$4=0,this.$2=i.getLoggerInstance(),this.$1="Ready",this.$5="",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 c=a.prototype;c.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)};c.isTopicSupported=function(a){return this.$13.has(a)};c.publish=function(a,c){return b("Promise").reject("not supported")};c.abort=function(){this.$12!=null&&this.$12.abort("Disconnected")};c.$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)};c.$16=function(a){if(this.$1!="RequestSend")return;if(!a){this.$17("EmptyResponse",null);return}this.$7();this.$18(!0,null);this.$15("ResponseReceived");a=h(new Uint8Array(a));a=a.messages.filter(function(a){return a instanceof g.Publish}).map(function(a){if(a instanceof g.Publish){a=a;return{topic:a.topic,payload:a.payloadMessage,qos:a.qos}}else return{}});this.$8(a);this.$9()};c.$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.$15("Error",a)};c.$18=function(a,b){this.$2.eventLogPull({pullEventName:k,sessionID:this.$4,status:a,duration:Date.now()-this.$11,hostname:this.$3,errorMessage:b})};c.$14=function(a){var c=this;if(this.$1!="Ready"||this.$12)return;try{this.$11=Date.now(),this.$12=new(b("XHRRequest"))(this.$3).setResponseType("arraybuffer").setRawData(a).setTransportBuilder(b("getCrossOriginTransport").withCredentials).setResponseHandler(function(a){return c.$16(a)}).setNetworkFailureHandler(function(a){c.$17("Network",a)}).setErrorHandler(function(a){c.$17("Error",a)}).setAbortHandler(function(a){c.$17("Abort",null)}).setTimeoutHandler(function(){c.$17("Timeout",null)}).setTimeout(j).send(),this.$15("RequestSend")}catch(a){this.$17("Error",a)}};return a}();e.exports=a}),null); __d("exponentialBackoff",["MqttEnv"],(function(a,b,c,d,e,f){var g=b("MqttEnv").Env;function a(a,b){b===void 0&&(b=null);var c=null,d=0;function e(){for(var e=arguments.length,f=new Array(e),h=0;h=j&&this.$24("LPError")};c.$28=function(){var a=h.genGk(i.mqtt_lp_no_delay),b=h.genGk(i.mqtt_ws_polling_enabled),c=h.genGk(i.mqtt_fast_lp),d=h.genGk(i.mqtt_enable_long_polling_after_ws_success);this.$5.debugTrace("LongPollingRunner","_shouldPoll? pollNow:"+String(a)+" enabled:"+String(b)+" fastPoll:"+String(c)+" hasWSSupport:"+String(this.$4)+" hasSuccess:"+String(this.$1)+" failureCount:"+this.$2+" wsFatal:"+String(this.$3));if(!b)return!1;if(a){this.$5.bumpCounter(m+".nd");return!0}if(!this.$4){this.$5.bumpCounter(m+".na");return!0}if(this.$3){this.$5.bumpCounter(m+".fatal");return!0}if(this.$1&&!d)return!1;if(c){b=Date.now()-this.$20;if(this.$21===o){if(this.$2>=1)return!0;if(b>k){this.$5.bumpCounter(m+".fastdelay");return!0}}else if(b>l){this.$5.bumpCounter(m+".regulardelay");return!0}}if(this.$2>=3){this.$5.bumpCounter(m+".failure");return!0}return!1};c.$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};c.$30=function(){if(this.$22){this.$5.debugTrace("LongPollingRunner","Creating polling client using Fetch API");return new(b("MqttFetchClient"))()}else{this.$5.debugTrace("LongPollingRunner","Creating regular Polling client");return new(b("MqttLongPollingClient"))()}};c.$31=function(){this.$5.debugTrace("LongPollingRunner","Poll success"),this.$19.onPollRequestSuccess(),this.$18.reset(),this.$24("LPActive"),this.$26(),h.configWrite(n,o),this.$25("ReceivingData")};c.$32=function(a){var b=a.map(function(a){return a.topic}).join(",");this.$5.debugTrace("LongPollingRunner","Poll response received, message received:"+b);for(var b=0;b