;/*FB_PKG_DELIM*/ __d("MessengerPlatformClientTypedLogger",["Banzai","GeneratedLoggerUtils"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1={}}var c=a.prototype;c.log=function(a){b("GeneratedLoggerUtils").log("logger:MessengerPlatformClientLoggerConfig",this.$1,b("Banzai").BASIC,a)};c.logVital=function(a){b("GeneratedLoggerUtils").log("logger:MessengerPlatformClientLoggerConfig",this.$1,b("Banzai").VITAL,a)};c.logImmediately=function(a){b("GeneratedLoggerUtils").log("logger:MessengerPlatformClientLoggerConfig",this.$1,{signal:!0},a)};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setAppID=function(a){this.$1.appid=a;return this};c.setAppversion=function(a){this.$1.appversion=a;return this};c.setClientUserID=function(a){this.$1.client_userid=a;return this};c.setClienttime=function(a){this.$1.clienttime=a;return this};c.setCountry=function(a){this.$1.country=a;return this};c.setDeviceid=function(a){this.$1.deviceid=a;return this};c.setExtraClientData=function(a){this.$1.extra_client_data=a;return this};c.setIsemployee=function(a){this.$1.isemployee=a;return this};c.setLoggingToken=function(a){this.$1.logging_token=a;return this};c.setName=function(a){this.$1.name=a;return this};c.setRawclienttime=function(a){this.$1.rawclienttime=a;return this};c.setSessionid=function(a){this.$1.sessionid=a;return this};c.setThreadID=function(a){this.$1.thread_id=a;return this};return a}();c={appid:!0,appversion:!0,client_userid:!0,clienttime:!0,country:!0,deviceid:!0,extra_client_data:!0,isemployee:!0,logging_token:!0,name:!0,rawclienttime:!0,sessionid:!0,thread_id:!0};f["default"]=a}),66); __d("commitWorkplaceChatBotSubmitFeedbackMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6107272026057140"}),null); __d("commitWorkplaceChatBotSubmitFeedbackMutation.graphql",["commitWorkplaceChatBotSubmitFeedbackMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:"results",args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"WorkplaceChatBotSubmitFeedbackResponsePayload",kind:"LinkedField",name:"workplace_chat_bot_submit_feedback",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"commitWorkplaceChatBotSubmitFeedbackMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"commitWorkplaceChatBotSubmitFeedbackMutation",selections:c},params:{id:b("commitWorkplaceChatBotSubmitFeedbackMutation_facebookRelayOperation"),metadata:{},name:"commitWorkplaceChatBotSubmitFeedbackMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("FBPayHubTransactionDetailDialogQuery$Parameters.facebook",["FBPayHubTransactionDetailDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("FBPayHubTransactionDetailDialogQuery_facebookRelayOperation"),metadata:{},name:"FBPayHubTransactionDetailDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("FBPayHubTransactionDetailDialogQuery$Parameters",["cr:1932967"],(function(a,b,c,d,e,f){"use strict";e.exports=b("cr:1932967")}),null); __d("GroupsCometAdmodChatsPendingPostReviewDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7997417240284733"}),null); __d("GroupsCometAdmodChatsPendingPostReviewDialogQuery$Parameters",["GroupsCometAdmodChatsPendingPostReviewDialogQuery_facebookRelayOperation","IsMergQAPolls.relayprovider","IsWorkUser.relayprovider"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("GroupsCometAdmodChatsPendingPostReviewDialogQuery_facebookRelayOperation"),metadata:{},name:"GroupsCometAdmodChatsPendingPostReviewDialogQuery",operationKind:"query",text:null,providedVariables:{__relay_internal__pv__IsWorkUserrelayprovider:b("IsWorkUser.relayprovider"),__relay_internal__pv__IsMergQAPollsrelayprovider:b("IsMergQAPolls.relayprovider")}}};e.exports=a}),null); __d("GroupsCometAdmodChatsReviewDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6865480280197768"}),null); __d("GroupsCometAdmodChatsReviewDialogQuery$Parameters",["GroupsCometAdmodChatsReviewDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("GroupsCometAdmodChatsReviewDialogQuery_facebookRelayOperation"),metadata:{},name:"GroupsCometAdmodChatsReviewDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("CometMarketplaceCreateDiscountedPriceDialogContentQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5428046370622309"}),null); __d("CometMarketplaceCreateDiscountedPriceDialogContentQuery$Parameters",["CometMarketplaceCreateDiscountedPriceDialogContentQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometMarketplaceCreateDiscountedPriceDialogContentQuery_facebookRelayOperation"),metadata:{},name:"CometMarketplaceCreateDiscountedPriceDialogContentQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("CometMarketplaceCreateDiscountedPriceDialogNUXQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7286910081353715"}),null); __d("CometMarketplaceCreateDiscountedPriceDialogNUXQuery$Parameters",["CometMarketplaceCreateDiscountedPriceDialogNUXQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometMarketplaceCreateDiscountedPriceDialogNUXQuery_facebookRelayOperation"),metadata:{},name:"CometMarketplaceCreateDiscountedPriceDialogNUXQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("P2MAttachBankSlipDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5342426462467736"}),null); __d("P2MAttachBankSlipDialogQuery$Parameters",["P2MAttachBankSlipDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("P2MAttachBankSlipDialogQuery_facebookRelayOperation"),metadata:{},name:"P2MAttachBankSlipDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("P2MOrderDetailDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6286286258107098"}),null); __d("P2MOrderDetailDialogQuery$Parameters",["P2MOrderDetailDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("P2MOrderDetailDialogQuery_facebookRelayOperation"),metadata:{live:{polling_interval:1e4}},name:"P2MOrderDetailDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("P2MOffsiteBankTransferDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5004730099638134"}),null); __d("P2MOffsiteBankTransferDialogQuery$Parameters",["P2MOffsiteBankTransferDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("P2MOffsiteBankTransferDialogQuery_facebookRelayOperation"),metadata:{},name:"P2MOffsiteBankTransferDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("MWChatCustomerFeedbackFormDataQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5832261760118587"}),null); __d("MWChatCustomerFeedbackFormDataQuery.graphql",["MWChatCustomerFeedbackFormDataQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"formID"}],c={alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null};c=[{alias:null,args:[{kind:"Variable",name:"form_id",variableName:"formID"}],concreteType:"MessengerFeedbackFormDataResult",kind:"LinkedField",name:"messenger_feedback_form_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"form_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"page_id",storageKey:null},{alias:null,args:null,concreteType:"MessengerFeedbackBusinessPrivacyObject",kind:"LinkedField",name:"privacy",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"MessengerFeedbackFormScreenObject",kind:"LinkedField",name:"first_screen",plural:!1,selections:[{alias:null,args:null,concreteType:"MessengerFeedbackQuestionObject",kind:"LinkedField",name:"feedback_questions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_default_title",storageKey:null},c,{alias:null,args:null,kind:"ScalarField",name:"score_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"score_option",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"left_score_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"right_score_label",storageKey:null},{alias:null,args:null,concreteType:"MessengerFeedBackQuestionFollowup",kind:"LinkedField",name:"follow_up",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"placeholder",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWChatCustomerFeedbackFormDataQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWChatCustomerFeedbackFormDataQuery",selections:c},params:{id:b("MWChatCustomerFeedbackFormDataQuery_facebookRelayOperation"),metadata:{},name:"MWChatCustomerFeedbackFormDataQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWChatCustomerFeedbackStateQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4589106431193063"}),null); __d("MWChatCustomerFeedbackStateQuery.graphql",["MWChatCustomerFeedbackStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"formID"}],c=[{alias:null,args:[{fields:[{kind:"Variable",name:"form_id",variableName:"formID"}],kind:"ObjectValue",name:"input"}],concreteType:"MessengerFeedbackFormStateQueryObject",kind:"LinkedField",name:"messenger_feedback_form_state",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"form_state",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWChatCustomerFeedbackStateQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWChatCustomerFeedbackStateQuery",selections:c},params:{id:b("MWChatCustomerFeedbackStateQuery_facebookRelayOperation"),metadata:{},name:"MWChatCustomerFeedbackStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWV2MessageProfilePhotoMenuQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24429151556729782"}),null); __d("MWV2MessageProfilePhotoMenuQuery$Parameters",["MWV2MessageProfilePhotoMenuQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("MWV2MessageProfilePhotoMenuQuery_facebookRelayOperation"),metadata:{},name:"MWV2MessageProfilePhotoMenuQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("MWChatPIIFormNuxQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5048028465289521"}),null); __d("MWChatPIIFormNuxQuery.graphql",["MWChatPIIFormNuxQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,concreteType:"MessengerPIIFormFirstPartyPrivacyObject",kind:"LinkedField",name:"messenger_pii_nux",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url_text",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatPIIFormNuxQuery",selections:a,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatPIIFormNuxQuery",selections:a},params:{id:b("MWChatPIIFormNuxQuery_facebookRelayOperation"),metadata:{},name:"MWChatPIIFormNuxQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWChatPIIFormScreenQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5021823607854583"}),null); __d("MWChatPIIFormScreenQuery.graphql",["MWChatPIIFormScreenQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"formID"},{defaultValue:null,kind:"LocalArgument",name:"screenIndex"}],c=[{alias:null,args:[{fields:[{kind:"Variable",name:"form_id",variableName:"formID"},{kind:"Variable",name:"screen_index",variableName:"screenIndex"}],kind:"ObjectValue",name:"input"}],concreteType:"MessengerPIIFormSingleScreenObject",kind:"LinkedField",name:"messenger_pii_form_single_screen",plural:!1,selections:[{alias:null,args:null,concreteType:"MessengerPIIFormScreenObject",kind:"LinkedField",name:"screen",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"screen_title",storageKey:null},{alias:null,args:null,concreteType:"MessengerPIIQuestionObject",kind:"LinkedField",name:"questions",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtitle",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"placeholder",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"length",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"format",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"mask",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWChatPIIFormScreenQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWChatPIIFormScreenQuery",selections:c},params:{id:b("MWChatPIIFormScreenQuery_facebookRelayOperation"),metadata:{},name:"MWChatPIIFormScreenQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWChatPIIFormStateQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4923666631045015"}),null); __d("MWChatPIIFormStateQuery.graphql",["MWChatPIIFormStateQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"formID"}],c=[{alias:null,args:[{fields:[{kind:"Variable",name:"form_id",variableName:"formID"}],kind:"ObjectValue",name:"input"}],concreteType:"MessengerPIIFormStateQueryObject",kind:"LinkedField",name:"messenger_pii_form_state",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWChatPIIFormStateQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWChatPIIFormStateQuery",selections:c},params:{id:b("MWChatPIIFormStateQuery_facebookRelayOperation"),metadata:{},name:"MWChatPIIFormStateQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWChatReceiptDataQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7735392359808092"}),null); __d("MWChatReceiptDataQuery.graphql",["MWChatReceiptDataQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"messageID"},c={defaultValue:null,kind:"LocalArgument",name:"receiptID"},d=[{alias:null,args:[{kind:"Variable",name:"message_id",variableName:"messageID"},{kind:"Variable",name:"receipt_id",variableName:"receiptID"}],concreteType:"ReceiptDataResult",kind:"LinkedField",name:"receipt_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"recipient_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"merchant_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"order_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"payment_method",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"order_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"cancellation_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"address_line_1",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"address_line_2",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"address_line_3",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_cost",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"total_tax",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shipping_cost",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subtotal",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"order_time",storageKey:null},{alias:null,args:null,concreteType:"ReceiptItem",kind:"LinkedField",name:"items",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thumb_url",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"quantity",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"price",storageKey:null}],storageKey:null},{alias:null,args:null,concreteType:"Adjustment",kind:"LinkedField",name:"adjustments",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"adjustment_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_adjustment_amount",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"MWChatReceiptDataQuery",selections:d,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a],kind:"Operation",name:"MWChatReceiptDataQuery",selections:d},params:{id:b("MWChatReceiptDataQuery_facebookRelayOperation"),metadata:{},name:"MWChatReceiptDataQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("useRollcallContributionsXMAActionHandlerQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="23868899752758299"}),null); __d("useRollcallContributionsXMAActionHandlerQuery.graphql",["useRollcallContributionsXMAActionHandlerQuery_facebookRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{kind:"Literal",name:"surface_nux_id",value:10706},{kind:"Literal",name:"trigger",value:"COMMUNITY_MESSAGING_PROMPT"}],c=[{kind:"Literal",name:"supported",value:"TDHjT"}],d={kind:"InlineFragment",selections:[{args:null,documentName:"useRollcallContributionsXMAActionHandlerQuery",fragmentName:"CometQuickPromotionMessengerWebPromptsNuxDialogRendererStrategy_quickPromotionRef",fragmentPropName:"quickPromotionRef",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerWebPromptsRendererStrategy",abstractKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useRollcallContributionsXMAActionHandlerQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:a,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[d],storageKey:'renderer_strategy(supported:"TDHjT")'}],storageKey:null}],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:10706,trigger:"COMMUNITY_MESSAGING_PROMPT")'}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"useRollcallContributionsXMAActionHandlerQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:a,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d],storageKey:'renderer_strategy(supported:"TDHjT")'}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:10706,trigger:"COMMUNITY_MESSAGING_PROMPT")'}],storageKey:null}]},params:{id:b("useRollcallContributionsXMAActionHandlerQuery_facebookRelayOperation"),metadata:{},name:"useRollcallContributionsXMAActionHandlerQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null); __d("MWBuyerShippingAddressRootQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24917306604535550"}),null); __d("MWBuyerShippingAddressRootQuery.graphql",["MWBuyerShippingAddressRootQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"id"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"label",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"street1",storageKey:null},f={alias:null,args:null,kind:"ScalarField",name:"street2",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"city_name",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"state_name",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"district",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"sub_district",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"postal_code",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"country_name",storageKey:null},m={alias:null,args:null,kind:"ScalarField",name:"care_of",storageKey:null},n={alias:null,args:null,concreteType:"XFBPAYAddressAssociatedPhoneNumberResponse",kind:"LinkedField",name:"address_linked_phone_number",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"normalized_phone_number",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"national_number",storageKey:null}],storageKey:null},o=[{kind:"Variable",name:"id",variableName:"id"}],p={alias:null,args:null,kind:"ScalarField",name:"country_id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWBuyerShippingAddressRootQuery",selections:[{alias:null,args:null,concreteType:"FBPayAccountExtended",kind:"LinkedField",name:"fbpay_account_extended",plural:!1,selections:[{alias:null,args:null,concreteType:"PAYFBPayAccount",kind:"LinkedField",name:"fbpay_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"shipping_addresses",plural:!0,selections:[{kind:"InlineDataFragmentSpread",name:"MWBuyerShippingAddressSelectionAddressListItem",selections:[c,d,e,f,g,h,i,j,k,l,m,n],args:null,argumentDefinitions:[]}],storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:o,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MWBuyerShippingAddressSelectionPrivacyText"},p],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWBuyerShippingAddressRootQuery",selections:[{alias:null,args:null,concreteType:"FBPayAccountExtended",kind:"LinkedField",name:"fbpay_account_extended",plural:!1,selections:[{alias:null,args:null,concreteType:"PAYFBPayAccount",kind:"LinkedField",name:"fbpay_account",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"shipping_addresses",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"TypeDiscriminator",abstractKey:"__isPAYMailingAddress"},c,d,e,f,g,h,i,j,k,l,m,n],storageKey:null},c],storageKey:null}],storageKey:null},{alias:null,args:o,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"messenger_privacy_policy_url",storageKey:null},p,c],storageKey:null}]},params:{id:b("MWBuyerShippingAddressRootQuery_facebookRelayOperation"),metadata:{},name:"MWBuyerShippingAddressRootQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("ServicesApproveAppointmentMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5262522413766771"}),null); __d("ServicesApproveAppointmentMutation.graphql",["ServicesApproveAppointmentMutation_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:"InstantBookingConfirmAppointmentResponsePayload",kind:"LinkedField",name:"instant_booking_confirm_appointment",plural:!1,selections:[{alias:null,args:null,concreteType:"NativeComponentFlowBookingRequest",kind:"LinkedField",name:"request",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"ServicesApproveAppointmentMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"ServicesApproveAppointmentMutation",selections:c},params:{id:b("ServicesApproveAppointmentMutation_facebookRelayOperation"),metadata:{},name:"ServicesApproveAppointmentMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("MessagingPaymentCTAMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6571599459573019"}),null); __d("MessagingPaymentCTAMutation.graphql",["MessagingPaymentCTAMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:"mutation",args:[{kind:"Variable",name:"input",variableName:"input"}],concreteType:"MessagingPaymentCtaMutationResponsePayload",kind:"LinkedField",name:"messaging_payment_cta_mutation",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MessagingPaymentCTAMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MessagingPaymentCTAMutation",selections:c},params:{id:b("MessagingPaymentCTAMutation_facebookRelayOperation"),metadata:{},name:"MessagingPaymentCTAMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("GraphQLMessengerPlatformCtaPostHandlingMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4973572169363354"}),null); __d("GraphQLMessengerPlatformCtaPostHandlingMutation.graphql",["GraphQLMessengerPlatformCtaPostHandlingMutation_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:"MessengerPlatformCtaPostHandlingResponsePayload",kind:"LinkedField",name:"messenger_platform_cta_post_handling",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"GraphQLMessengerPlatformCtaPostHandlingMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"GraphQLMessengerPlatformCtaPostHandlingMutation",selections:c},params:{id:b("GraphQLMessengerPlatformCtaPostHandlingMutation_facebookRelayOperation"),metadata:{},name:"GraphQLMessengerPlatformCtaPostHandlingMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("commitWorkplaceChatBotSubmitFeedbackMutation",["CometRelay","Promise","commitWorkplaceChatBotSubmitFeedbackMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("commitWorkplaceChatBotSubmitFeedbackMutation.graphql");function a(a){var c=a.action_content_blob,e=a.config;return new(i||(i=b("Promise")))(function(a,b){d("CometRelay").commitMutation(e.environment,{mutation:j,onCompleted:function(b){a((b=b.results)==null?void 0:b.success)},onError:function(a){b(a)},variables:{input:{action_content_blob:c}}})})}g["default"]=a}),98); __d("InfoCircleFilled20.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("path",{d:"M10 2a8 8 0 1 0 8 8 8.009 8.009 0 0 0-8-8zm1 11.5a.75.75 0 0 1-1.5 0v-3h-.25a.75.75 0 0 1 0-1.5h1a.75.75 0 0 1 .75.75zM10 8a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("MessagesFilled20.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("path",{d:"M16 7.17a.755.755 0 0 0-1 .715v1.166A3.949 3.949 0 0 1 11.051 13H8.917a.753.753 0 0 0-.45.15l-1.345 1.008a.753.753 0 0 0-.032 1.181A2.933 2.933 0 0 0 8.949 16h2.717l2.534 1.9a.5.5 0 0 0 .3.1.508.508 0 0 0 .224-.053A.5.5 0 0 0 15 17.5V16h.051A2.949 2.949 0 0 0 18 13.051V10a3 3 0 0 0-2-2.83z"}),i.jsx("path",{d:"M11.051 12A2.952 2.952 0 0 0 14 9.051v-3.1A2.952 2.952 0 0 0 11.051 3h-6.1A2.952 2.952 0 0 0 2 5.949v3.1A2.952 2.952 0 0 0 4.949 12H5v1.5a.5.5 0 0 0 .276.447A.508.508 0 0 0 5.5 14a.5.5 0 0 0 .3-.1L8.334 12z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("FBPayHubTransactionDetailDialog.entrypoint",["FBPayHubTransactionDetailDialogQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.transactionID;return{queries:{fBPayHubTransactionDetailDialogQueryReference:{parameters:b("FBPayHubTransactionDetailDialogQuery$Parameters"),variables:{transaction_id:a}}}}},root:c("JSResourceForInteraction")("FBPayHubTransactionDetailDialog.react").__setRef("FBPayHubTransactionDetailDialog.entrypoint")};g["default"]=a}),98); __d("GroupsCometAdmodChatsPendingPostReviewDialog.entrypoint",["GroupsCometAdmodChatsPendingPostReviewDialogQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.authorID,e=a.groupID,f=a.postID;a=a.scale;return{queries:{queryReference:{parameters:c("GroupsCometAdmodChatsPendingPostReviewDialogQuery$Parameters"),variables:{authorID:b,feedLocation:"GROUP_PENDING",focusCommentID:null,groupID:e,postID:f,privacySelectorRenderLocation:"COMET_STREAM",renderLocation:"group_pending_queue",scale:a?a:d("WebPixelRatio").get(),useDefaultActor:!1}}}}},root:c("JSResourceForInteraction")("GroupsCometAdmodChatsPendingPostReviewDialog.react").__setRef("GroupsCometAdmodChatsPendingPostReviewDialog.entrypoint")};b=a;g["default"]=b}),98); __d("GroupsCometAdmodChatsReviewDialog.entrypoint",["GroupsCometAdmodChatsReviewDialogQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.groupID,e=a.profileID;a=a.scale;return{queries:{queryReference:{parameters:c("GroupsCometAdmodChatsReviewDialogQuery$Parameters"),variables:{groupID:b,profileID:e,scale:a?a:d("WebPixelRatio").get()}}}}},root:c("JSResourceForInteraction")("GroupsCometAdmodChatsReviewDialog.react").__setRef("GroupsCometAdmodChatsReviewDialog.entrypoint")};b=a;g["default"]=b}),98); __d("createCometAtSignComposerMentionsMatchStrategyWithInstagramHandleSupport",["createCometMentionMatchStrategy"],(function(a,b,c,d,e,f,g){"use strict";var h=["@","\\uff20"].join(""),i=",\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>:;";function a(a){var b=a.disallowedTerms;a=a.minMatchLength;return c("createCometMentionMatchStrategy")({disallowedChars:i,disallowedTerms:b,minMatchLength:a,name:"CometAtSignComposerMentionsMatchStrategyWithInstagramHandleSupport("+a.toString()+")",triggers:h})}g["default"]=a}),98); __d("MWChatComposerMentionsUtils",["remove-accents"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){if(b.length===0)return!0;var d=c("remove-accents")(b).toLowerCase();b=c("remove-accents")(a).toLowerCase();return b.split(" ").some(function(a){return a.startsWith(d)})||b.startsWith(d)}g.doesParticipantNameMatch=a}),98); __d("MWChatComposerTypeaheadUtil",["fbt","ix","MWChatComposerMentionsUtils","gkx"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=h._("__JHASH__5zKX9L3wCmC__JHASH__").toString(),k={decorType:"regular",handle:j,key:"0",label:j,rawData:{image:i("391426"),subtitle:void 0},type:"entry"};function a(a,b,e,f,g,i,l){var m=a.query,n=[];g===!0&&d("MWChatComposerMentionsUtils").doesParticipantNameMatch(j,m)&&n.push(k);if(g===!0?i:!0){b.forEach(function(a){var b=a.actualName,c=a.contactId,e=a.nickname,f=a.profilePictureUrl;a=a.secondaryName;var g=null;a!=null&&d("MWChatComposerMentionsUtils").doesParticipantNameMatch(a,m)?g="secondaryName":d("MWChatComposerMentionsUtils").doesParticipantNameMatch(b,m)?g="name":e!=null&&d("MWChatComposerMentionsUtils").doesParticipantNameMatch(e,m)&&(g="nickname");if(g!=null&&f!=null){var h;n.push({decorType:"regular",handle:(h=a)!=null?h:g==="nickname"?(h=e)!=null?h:b:b,key:c+" "+g,label:b,rawData:{photoURI:f,source:g,subtitle:(h=a)!=null?h:e},type:"entry"})}});if(c("gkx")("1608686")){g=h._("__JHASH__sTLNkkV9rF7__JHASH__").toString();if(d("MWChatComposerMentionsUtils").doesParticipantNameMatch(g,m)){i=h._("__JHASH__rLeo5-LqefI__JHASH__").toString();n.push({decorType:"regular",handle:g,key:""+e,label:g,rawData:{source:"all",subtitle:i},type:"entry"})}b=h._("__JHASH__qb09B47tS-j__JHASH__").toString();if(d("MWChatComposerMentionsUtils").doesParticipantNameMatch(b,m)){g=h._("__JHASH__Y9cD1qBx4DO__JHASH__").toString();n.push({decorType:"regular",handle:b,key:e+"-active",label:b,rawData:{source:"all",subtitle:g},type:"entry"})}}}n.length>l&&(n=n.slice(0,l));n.length=2&&(c[c.length-1]=a[a.length-1]);return c}function n(a,b,c){var d=Math.min.apply(Math,a),e=Math.max.apply(Math,a),f=e-d,g=c-b;return a.map(function(a){return(a-d)/f*g+b})}g.getTotalBuffersLen=h;g.flattenBuffer=a;g.interleave=b;g.exportWAV=c;g.getAudioDuration=e;g.computeWaveformAmplitudes=f;g.linearConversion=n}),98); __d("useBlockeesInThread",["I64","LSContactBlockedByViewerStatus","LSIntEnum","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function a(a){var b=(j||(j=c("useReStore")))(),e=d("ReQLSuspense").useArray(function(){return d("ReQL").mergeJoin(d("ReQL").fromTableAscending(b.table("participants"),[]).getKeyRange(a),d("ReQL").fromTableAscending(b.table("contacts"),["id","blockedByViewerStatus"])).filter(function(a){a[0];a=a[1];return!(h||(h=d("I64"))).equal(a.blockedByViewerStatus,(i||(i=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED))}).map(function(a){a[0];a=a[1].id;return(h||(h=d("I64"))).to_string(a)})},[a,b],f.id+":24");return e}g["default"]=a}),98); __d("useMWChatOpenTabByThreadKey",["I64","LSAuthorityLevel","LSContactType","LSFactory","LSIntEnum","LSVerifyThreadRowExistsStoredProcedure","MWPActor.react","Promise","ReQL","promiseDone","react","useMWBaseChatOpenTabForUser","useMWChatOpenTabForPage","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l;e=l||d("react");var m=e.useCallback,n=e.useMemo;function a(a,e){var f=(k||(k=c("useReStore")))(),g=c("useMWBaseChatOpenTabForUser")(void 0,e),l=g[0],o=c("useMWChatOpenTabForPage")(e),p=d("MWPActor.react").useActor(),q=n(function(){return new(h||(h=b("Promise")))(function(b,e){var g=(e=d("ReQL")).mergeJoin(e.fromTableAscending(f.table("participants")).getKeyRange(a).filter(function(a){return!(i||(i=d("I64"))).equal(a.contactId,p)}),e.fromTableAscending(f.table("contacts"))),h={contents:function(){}};h.contents=g.subscribe(function(a,e){if(e.operation==="delete")return;a=e.value[1];if((i||(i=d("I64"))).ge(a.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE))){h.contents();return b(a)}});c("promiseDone")(e.firstAsync(g),function(e){if(e!=null){e=e[1];if((i||(i=d("I64"))).ge(e.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE))){h.contents();return b(e)}else return}c("promiseDone")(f.runInTransaction(function(b){return c("LSVerifyThreadRowExistsStoredProcedure")(c("LSFactory")(b),{syncGroup:(j||(j=d("LSIntEnum"))).ofNumber(1),threadKey:a,threadType:j.ofNumber(1)})},"readwrite"))})})},[a,f]);return m(function(){c("promiseDone")(q,function(b){var e=(i||(i=d("I64"))).to_string(a);b=b.contactType;if((i||(i=d("I64"))).equal(b,(j||(j=d("LSIntEnum"))).ofNumber(c("LSContactType").PAGE)))return o(e,!1);else return l(e,!1)})},[q,l,o,a])}g["default"]=a}),98); __d("MWChatAppendMentionsNodeToReply",["I64","LSContactTypeExact","LSIntEnum","Lexical","LexicalText","MWChatComposerTypeaheadUtil","MWPReplyContext.react","MessengerLexicalActorNode","ReQL","ReQLSuspense","cometMentionsDataEntryText","react","usePrevious","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;b=k||d("react");var l=b.useContext,m=b.useEffect;function n(a,b){a.update(function(){var e=d("Lexical").$getSelection();if(!d("Lexical").$isRangeSelection(e)||!e.isCollapsed())return;var f=e.anchor;f=f.getNode();var g=c("cometMentionsDataEntryText")(b),h=d("Lexical").$getRoot().getAllTextNodes().some(function(a){return d("MessengerLexicalActorNode").$isMessengerLexicalActorNode(a)&&a.getTextContent().includes(g)});if(h===!0)return;h=d("MessengerLexicalActorNode").$createMessengerLexicalActorNode({id:b.key,text:g});var i=d("LexicalText").$isRootTextContentEmpty(a.isComposing());i?e.insertNodes([h]):f.insertBefore(h);h.selectNext(0,0)})}function a(a,b,e){var g=l(d("MWPReplyContext.react").MWPReplyContext),k=g.reply,o=c("usePrevious")(k),p=(h||(h=c("useReStore")))(),q=d("ReQLSuspense").useFirst(function(){return k!=null?d("ReQL").fromTableAscending(p.table("messages")).getKeyRange(b,k.timestampMs,k.messageId):d("ReQL").empty()},[k,b,p],f.id+":91");g=d("ReQLSuspense").useFirst(function(){return q!=null?d("ReQL").fromTableAscending(p.table("contacts")).getKeyRange(q.senderId):d("ReQL").empty()},[p,q],f.id+":102");g=g!=null?(i||(i=d("I64"))).equal(g.contactTypeExact,(j||(j=d("LSIntEnum"))).ofNumber(c("LSContactTypeExact").GENERATIVE_AI_BOT)):!1;var r=g&&(q==null?void 0:q.botResponseId)!=null;m(function(){var b=o==null&&k!=null;b&&r&&e===!0&&n(a,d("MWChatComposerTypeaheadUtil").aiBotMentionsEntry)},[a,k,o,r,e])}g.insertMentionNodeToFront=n;g.useMWChatAppendMentionsNodeToReply=a}),98); __d("MWChatComposerMentionsViewItem.react",["CometIcon.react","CometImageFromIXValue.react","CometProfilePhoto.react","CometSearchMentionsBaseViewItem.react","TetraTextPairing.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={image:{height:"x1fgtraw",width:"xgd8bvy",$$css:!0}};function a(a){var b,d=a.entry;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry"]);var e=d.handle;e=d.key;e=d.label;var f=d.rawData,g=f.icon,h=f.image,k=f.photoURI;f=f.subtitle;var l;k!=null?l=i.jsx(c("CometProfilePhoto.react"),{size:28,source:{uri:k}}):g!=null?l=i.jsx(c("CometIcon.react"),{color:"primary",disabled:!1,icon:g}):h!=null&&(l=i.jsx(c("CometImageFromIXValue.react"),{source:h,xstyle:j.image}));return i.jsx(c("CometSearchMentionsBaseViewItem.react"),babelHelpers["extends"]({},a,{entry:d,itemStartContent:l,testid:void 0,children:i.jsx(c("TetraTextPairing.react"),{body:e,bodyLineLimit:1,level:3,meta:f,metaLineLimit:1})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatComposerMentionsTypeaheadDataSource",["CurrentUser","MWChatComposerTypeaheadUtil","Promise"],(function(a,b,c,d,e,f,g){"use strict";var h,i=6;a=function(){function a(a,b,d,e,f){this.$1=[];this.$1=Array.from(a.values()).filter(function(a){return a.contactId!==c("CurrentUser").getID()});this.$2=b;this.$3=(a=d)!=null?a:null;this.$4=e;this.$5=f}var e=a.prototype;e.bootstrap=function(){return};e.fetchCache=function(a){return d("MWChatComposerTypeaheadUtil").fetchCacheComposerMentionsTypeahead(a,this.$1,this.$2,this.$3,this.$4,this.$5,i)};e.fetchNetwork=function(a){return(h||(h=b("Promise"))).resolve(this.fetchCache(a))};return a}();g["default"]=a}),98); __d("useMWChatMentionsDataSourceResolverConfig",["I64","LSMessagingThreadTypeUtil","LSThreadBitOffset","MWChatComposerMentionsTypeaheadDataSource","MWLSThread","createCometAtSignComposerMentionsMatchStrategyWithInstagramHandleSupport","react","useCometMentionsDataSourceResolverConfig"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(h||d("react")).useMemo;function a(a){var b=a.isAiBotMentionsEnabled,e=a.participants,f=a.threadFBID,g=a.triggerParticipantsSearch;a=d("MWLSThread").useThreadExn((i||(i=d("I64"))).of_string(f));var h=d("LSMessagingThreadTypeUtil").isGroup(a.threadType)&&d("LSThreadBitOffset").has(43,a);a=j(function(){return[{dataSource:new(c("MWChatComposerMentionsTypeaheadDataSource"))(e,f,g,b,h),matchStrategy:c("createCometAtSignComposerMentionsMatchStrategyWithInstagramHandleSupport")({minMatchLength:0})}]},[h,b,e,f,g]);return c("useCometMentionsDataSourceResolverConfig")(a,!0)}g["default"]=a}),98); __d("useMWComposerAriaDescribedBy",["fbt","I64","Int64Hooks","MWPActor.react","ReQL","ReQLSuspense","intlList","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j;function a(a){var b=a.threadKey,e=a.threadName,g=(j||(j=c("useReStore")))(),k=d("MWPActor.react").useActor(),l=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(g.table("participants"),["contactId"]).getKeyRange(b).map(function(a){return d("ReQLSuspense").first(d("ReQL").fromTableAscending(g.table("contacts")).getKeyRange(a.contactId),f.id+":38")})},[g,b],f.id+":33");return d("Int64Hooks").useMemoInt64(function(){if(e!=null)return h._("__JHASH__AZYBx6Ry0lI__JHASH__",[h._param("name of conversation",e)]);var a=c("intlList")(l.map(function(a){if(a!=null&&!(i||(i=d("I64"))).equal(a.id,k))return a.name}).filter(Boolean),c("intlList").CONJUNCTIONS.AND,c("intlList").DELIMITERS.COMMA);return h._("__JHASH__a-kg7czmDb1__JHASH__",[h._param("participant list",a)])},[l,e,k])}g["default"]=a}),98); __d("MercuryLocalIDs",["randomInt"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return"root:"+h(a)}function h(a){a=a!=null?a:Date.now();var b=c("randomInt")(0,4294967295);b=("0000000000000000000000"+b.toString(2)).slice(-22);a=a.toString(2)+b;return i(a.slice(-63))}function i(a){var b="";a=a;while(a!="0"){var c=0,d="";for(var e=0;e=10?(d+="1",c-=10):d+="0";b=c.toString()+b;a=d.slice(d.indexOf("1"))}return b}g.generateThreadID=a;g.generateOfflineThreadingID=h}),98); __d("MWLSImagePostbackCtaHandler",["ActorURI","I64","LSFactory","LSInsertNewMediaSendStoredProcedure","LSIntEnum","LSLocalApplyOptimisticMessageWithAttachmentsStoredProcedure","LSMailboxType","LSMarkSubJobCompletedV2StoredProcedure","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSOptimisticSendMessageV2StoredProcedure","LSResumeMediaSendJobStoredProcedure","LSShape","LSThreadAttributionTypeUtil","LSVec","MWPActor.react","MWThreadKey.react","MercuryConfig","MercuryLocalIDs","MessagePowerUp","MessagingAttachmentType","Promise","URI","XComposerPhotoUploader","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n=(k||d("react")).useMemo;function o(a,e,f,g,h,i,k){var n=d("MercuryLocalIDs").generateOfflineThreadingID();return c("LSLocalApplyOptimisticMessageWithAttachmentsStoredProcedure")(c("LSFactory")(a),{attachments:c("LSVec").ofArray([d("LSShape").ofRecord({action_url:void 0,attachment_fbid:n,attachment_index:(l||(l=d("I64"))).zero,attachment_type:(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE),cta1_title:void 0,cta2_title:void 0,cta3_title:void 0,description_text:void 0,filename:"postback image.jpg",filesize:void 0,has_media:!0,has_xma:!1,image_url:void 0,mini_preview:void 0,offline_attachment_id:n,original_file_hash:void 0,playable_duration_ms:void 0,playable_url:void 0,playable_url_mime_type:void 0,preview_height:void 0,preview_url:g,preview_url_mime_type:"image/jpeg ",preview_width:void 0,source_text:void 0,subtitle_text:void 0,title_text:void 0,xma_layout_type:void 0,xmas_template_type:void 0})]),replySourceType:m.ofNumber(c("LSMessageReplySourceType").NONE),replySourceTypeV2:m.ofNumber(c("LSMessageReplySourceTypeV2").NONE),senderId:e,snippetHasEmoji:!1,threadKey:f,threadType:m.ofNumber(1)}).then(function(c){var e=c[0];return a.table("messages_optimistic_context").add({externalAttachmentUrl:void 0,initiatingSource:void 0,markThreadRead:!0,messageId:void 0,offlineThreadingId:e,platformRef:void 0,platformToken:h,replySourceId:void 0,replySourceType:void 0,sendType:void 0,skipUrlPreviewGen:void 0,taskId:(l||(l=d("I64"))).of_string(e),threadAttributionSource:i,threadKey:f}).then(function(){return(j||(j=b("Promise"))).resolve([e,n])})})}function a(a,e){var f=(h||(h=c("useReStore")))(),g=d("MWPActor.react").useActor(),k=d("MWThreadKey.react").useMWThreadKeyMemoizedExn();return n(function(){return function(h,n,p){var q=(l||(l=d("I64"))).to_string(g),r=function(a){var e=a[1],g=a[0],h=new(c("XComposerPhotoUploader"))({concurrentLimit:3,onUploadFailure:function(a,b){return!0},onUploadProgress:function(a,b){},onUploadStart:function(a){a=f.runInTransaction(function(a){return c("LSInsertNewMediaSendStoredProcedure")(c("LSFactory")(a),{attachmentType:(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE),inMessageIndex:(l||(l=d("I64"))).zero,isSecure:!1,offlineAttachmentId:e,offlineThreadingId:g,sendByServer:!1,shouldTranscode:!1,useDoublePhase:!1})},"readwrite");c("promiseDone")(a)},onUploadSuccess:function(a,b){a=b.response.payload.metadata[0];var h=a.image_id;if(h==null)return;b=f.runInTransaction(function(a){return c("LSMarkSubJobCompletedV2StoredProcedure")(c("LSFactory")(a),{fbid:(l||(l=d("I64"))).of_string(h.toString()),offlineAttachmentId:e}).then(function(){return c("LSResumeMediaSendJobStoredProcedure")(c("LSFactory")(a),{jobId:g,pluginType:(l||(l=d("I64"))).zero})})},"readwrite");c("promiseDone")(b)},retryLimit:1,uploadEndpoint:d("ActorURI").create(new(i||(i=c("URI")))(c("MercuryConfig").upload_url),q)});a=window.fetch(p).then(function(a){return a.blob()}).then(function(a){h.getAsyncUploadRequest([new File([a],"postback image.jpg",{type:"image/jpeg"})]).send();return(j||(j=b("Promise"))).resolve()});c("promiseDone")(a)},s=d("LSThreadAttributionTypeUtil").getSource(k,a),t=f.runInTransaction(function(a){return c("LSOptimisticSendMessageV2StoredProcedure")(c("LSFactory")(a),{extraSendMessageParams:d("LSShape").ofRecord({calculate_denormalizations:!0,initiating_source:(a=e)!=null?a:void 0,mark_read:!0,power_up_style:(m||(m=d("LSIntEnum"))).ofNumber(c("MessagePowerUp").NONE),reply_source_type:m.ofNumber(c("LSMessageReplySourceType").NONE),reply_source_type_v2:m.ofNumber(c("LSMessageReplySourceTypeV2").NONE),snippet_has_emoji:!1,source:s}),mailboxType:m.ofNumber(c("LSMailboxType").MESSENGER),senderId:g,snippet:h,text:h,threadKey:k,threadType:m.ofNumber(1)})},"readwrite").then(function(a){return f.runInTransaction(function(a){return o(a,g,k,p,n,s,e).then(function(a){r(a)})},"readwrite")});c("promiseDone")(t)}},[f,g,k])}g.usePostbackCtaHandler=a}),98); __d("MWLSPostbackCtaHandler",["Int64Hooks","LSFactory","LSIntEnum","LSMailboxType","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSOptimisticSendMessageV2StoredProcedure","LSShape","LSThreadAttributionTypeUtil","MWPActor.react","MWThreadKey.react","MessagePowerUp","promiseDone","useLSMessagingInitiatingSource","useLSMessagingSource","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(){var a=(i||(i=c("useReStore")))(),b=d("MWPActor.react").useActor(),e=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),f=c("useLSMessagingInitiatingSource")(),g=c("useLSMessagingSource")();return d("Int64Hooks").useCallbackInt64(function(i,j){var k=d("LSThreadAttributionTypeUtil").getSource(e,g);c("promiseDone")(a.runInTransaction(function(a){return c("LSOptimisticSendMessageV2StoredProcedure")(c("LSFactory")(a),{extraSendMessageParams:d("LSShape").ofRecord({calculate_denormalizations:!0,initiating_source:(a=f)!=null?a:void 0,mark_read:!0,platform_token:i,power_up_style:(h||(h=d("LSIntEnum"))).ofNumber(c("MessagePowerUp").NONE),reply_source_type:h.ofNumber(c("LSMessageReplySourceType").NONE),reply_source_type_v2:h.ofNumber(c("LSMessageReplySourceTypeV2").NONE),snippet_has_emoji:!1,source:k}),mailboxType:h.ofNumber(c("LSMailboxType").MESSENGER),senderId:b,snippet:j,text:j,threadKey:e,threadType:h.ofNumber(1)})},"readwrite"))},[a,g,f,b,e])}g.usePostbackCtaHandler=a}),98); __d("MWLSWebUrlCtaHandler",["JSResourceForInteraction","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWInboxUrlWebviewDialog.react").__setRef("MWLSWebUrlCtaHandler")),b=a[0];return i(function(a){return b({htmlBlob:a},function(){})},[b])}g.useShowWebViewDialog=a}),98); __d("LSOptimisticProcessMarketplaceCallFunctionCTA",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return c.db.table(9).fetch([[[a[1]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=c.i64.cast([0,1]):(b=a.item,d[5]=b.syncGroup,c.i64.neq(d[5],void 0)?d[4]=d[5]:d[4]=c.i64.cast([0,1]),d[0]=d[4])})},function(e){return d[2]=new c.Map(),d[2].set("action_type",a[4]),d[2].set("attachment_fbid",a[2]),d[2].set("message_id",a[0]),d[2].set("target_id",a[3]),d[2].set("thread_key",a[1]),d[2].set("sync_group",d[0]),d[3]=c.toJSON(d[2]),c.storedProcedure(b("LSIssueNewTask"),"process_marketplace_xma_cta",c.i64.cast([0,185]),d[3],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticProcessMarketplaceCallFunctionCTAStoredProcedure",["LSOptimisticProcessMarketplaceCallFunctionCTA"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.messageId;d[1]=b.threadKey;d[2]=b.attachmentFbid;d[3]=b.targetId;d[4]=b.actionType;return c("LSOptimisticProcessMarketplaceCallFunctionCTA").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("useMWLSMarketplaceXmaCtaHandler",["LSFactory","LSOptimisticProcessMarketplaceCallFunctionCTAStoredProcedure","MWThreadKey.react","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useCallback;function a(){var a=(h||(h=c("useReStore")))(),b=d("MWThreadKey.react").useMWThreadKeyMemoizedExn();return j(function(d,e,f,g){c("promiseDone")(a.runInTransaction(function(a){return c("LSOptimisticProcessMarketplaceCallFunctionCTAStoredProcedure")(c("LSFactory")(a),{actionType:g,attachmentFbid:e,messageId:d,targetId:f,threadKey:b})},"readwrite"))},[a,b])}g["default"]=a}),98); __d("MWChatCustomerFeedbackFormDataQuery",["CometRelay","MWChatCustomerFeedbackFormDataQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a,b,e){b=d("CometRelay").fetchQuery(b,j,{formID:a}).toPromise().then(function(a){a&&e({firstScreen:a.messenger_feedback_form_data.first_screen,formId:a.messenger_feedback_form_data.form_id,pageId:a.messenger_feedback_form_data.page_id,privacy:a.messenger_feedback_form_data.privacy})});c("promiseDone")(b)},j=h!==void 0?h:h=b("MWChatCustomerFeedbackFormDataQuery.graphql");a=function(a,b,c){i(a,b,function(a){return c(a)})};g.fetch=a}),98); __d("MWChatCustomerFeedbackStateQuery",["CometRelay","MWChatCustomerFeedbackStateQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a,b,e){b=d("CometRelay").fetchQuery(b,j,{formID:a}).toPromise().then(function(a){if(a){e((a=a.messenger_feedback_form_state)==null?void 0:a.form_state)}});c("promiseDone")(b)},j=h!==void 0?h:h=b("MWChatCustomerFeedbackStateQuery.graphql");a=function(a,b,c){i(a,b,function(a){return c(a)})};g.fetch=a}),98); __d("MWPComposerDraftMessages",["I64"],(function(a,b,c,d,e,f,g){"use strict";var h,i=new Map();function a(a,b){if(b==null){i["delete"]((h||(h=d("I64"))).to_string(a));return}i.set((h||(h=d("I64"))).to_string(a),b)}function b(a){return i.get((h||(h=d("I64"))).to_string(a))}g.updateDraftMessage=a;g.getDraftMessage=b}),98); __d("useMWLSSaveDrafts",["CometDebounce","Int64Hooks","LexicalText","MWPComposerDraftMessages"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.editor,e=a.isPreviewThread,f=a.threadKey;d("Int64Hooks").useEffectInt64(function(){return e?void 0:b.registerUpdateListener(c("CometDebounce")(function(a){a=a.editorState;a=a.read(function(){return d("LexicalText").$rootTextContent()});d("MWPComposerDraftMessages").updateDraftMessage(f,a)},{wait:250}))},[b,f,e]);d("Int64Hooks").useEffectInt64(function(){return function(){if(e)return;var a=b.getEditorState().read(function(){return d("LexicalText").$rootTextContent()});d("MWPComposerDraftMessages").updateDraftMessage(f,a)}},[b,f,e])}g["default"]=a}),98); __d("MWEncryptedBackupsIssueRangeQueryDeferred",["requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("MWEncryptedBackupsIssueRangeQuery").__setRef("MWEncryptedBackupsIssueRangeQueryDeferred");function a(a){var b=a.db,c=a.newerNumMessages,d=a.numMessages,e=a.sortOrderMs,f=a.threadId;h.onReady(function(a){return a.runQuery(b,f,e,d,c)})}g.issueRangeQueryDeferred=a}),98); __d("useMWChatPollXMAActionHandler",["JSResourceForInteraction","MWThreadKey.react","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=d("MWThreadKey.react").useMWThreadKeyMemoized(),b=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatPollDetailsDialog.react").__setRef("useMWChatPollXMAActionHandler")),e=b[0];return i(function(b,c){if(a==null||b==null||c==null)return;return e({pollId:b,threadKey:a,title:c},function(){})},[e,a])}g["default"]=a}),98); __d("MWGroupUpdatesVerifiedIcon.react",["ix","CometIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){return j.jsx(c("CometIcon.react"),{color:"highlight",icon:d("fbicon")._(h("494936"),12)})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWCMBotIcons.react",["ix","cr:2344","cr:4919","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){if(b("cr:4919")!=null)return j.jsx("span",{className:"x1n2onr6 x1atx4j1",children:j.jsx(b("cr:4919"),{color:"secondary",inline:!0,size:16,viewBox:"4 4 24 24"})});return b("cr:2344")!=null?j.jsx(b("cr:2344"),{color:"secondary",icon:d("fbicon")._(h("1108145"),12)}):null}a.displayName=a.name+" [from "+f.id+"]";function c(){if(b("cr:4919")!=null)return j.jsx(b("cr:4919"),{color:"secondary",inline:!0,size:16,viewBox:"2 4 24 24"});return b("cr:2344")!=null?j.jsx(b("cr:2344"),{color:"secondary",icon:d("fbicon")._(h("1108145"),12)}):null}c.displayName=c.name+" [from "+f.id+"]";function e(){if(b("cr:4919")!=null)return j.jsx(b("cr:4919"),{color:"secondary",inline:!0,size:24,viewBox:"4 4 24 24"});return b("cr:2344")!=null?j.jsx(b("cr:2344"),{color:"secondary",icon:d("fbicon")._(h("621884"),20)}):null}e.displayName=e.name+" [from "+f.id+"]";function k(){if(b("cr:4919")!=null)return j.jsx(b("cr:4919"),{color:"primary",inline:!1,size:28,viewBox:"-1 -1 32 32"});return b("cr:2344")!=null?j.jsx(b("cr:2344"),{color:"primary",icon:d("fbicon")._(h("621884"),20)}):null}k.displayName=k.name+" [from "+f.id+"]";g.BadgeIcon=a;g.WelcomeCardBadgeIcon=c;g.ProfileCardBadgeIcon=e;g.EntryPointIcon=k}),98); __d("MWCMHostTextHovercard.entrypoint",["JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{}},root:c("JSResourceForInteraction")("MWCMHostTextHovercard.react").__setRef("MWCMHostTextHovercard.entrypoint")};g["default"]=a}),98); __d("useMWCMIsSenderChatHost",["Int64Hooks","LSFactory","LSIntEnum","LSIssueCommunityAdminModerationActionsFetchStoredProcedure","MessagingSpecialThreadRole","MessagingSpecialThreadRoleBitOffset","ReQL","ReQLSuspense","pageID","promiseDone","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b,e){var g,j=(i||(i=c("useReStore")))();d("Int64Hooks").useEffectInt64(function(){c("promiseDone")(j.runInTransaction(function(f){return c("LSIssueCommunityAdminModerationActionsFetchStoredProcedure")(c("LSFactory")(f),{fbGroupId:a,requestId:c("pageID"),source:(h||(h=d("LSIntEnum"))).ofNumber(14),targetUserId:e,threadId:b})},"readwrite"))},[j,a,e,b]);return(g=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(j.table("community_members")).getKeyRange(a,e,(h||(h=d("LSIntEnum"))).ofNumber(14),c("pageID")).map(function(a){return d("MessagingSpecialThreadRoleBitOffset").has(c("MessagingSpecialThreadRole").CHAT_HOST,a)})},[j,a,e],f.id+":59"))!=null?g:!1}g["default"]=a}),98); __d("MWXIconThread",["MWXSvgIcon","SVGIcon","cr:6940","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:6940")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98); __d("MWCMCreateSubthreadRowActionButton.react",["fbt","I64","Int64Hooks","LsFalcoEventEntryPoint","MWXIconStrict.react","MWXIconThread","MWXPressable.react","MWXTooltip.react","react","requireDeferred","useMWCMCreateSubthread","useOpenSubthreadView"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react"),l=c("requireDeferred")("LsMessageActionFalcoEvent").__setRef("MWCMCreateSubthreadRowActionButton.react"),m=h._("__JHASH__BJS3T2_tOPf__JHASH__"),n=h._("__JHASH__ZHBRqixJ9Qy__JHASH__");function a(a){var b=a.message;a=c("useMWCMCreateSubthread")(b);var e=a[0];a=a[1];var f=c("useOpenSubthreadView")(),g=b.subthreadKey,h=d("Int64Hooks").useCallbackInt64(function(){l.onReady(function(a){return a.log(function(){var a={};return{action:{container_module:"MWCMCreateSubthreadRowActionButton",type:g!=null?105:104},error:{message:void 0},extra:a,message:{attachment_type:"",entry_point:d("LsFalcoEventEntryPoint").messageActions,id:b.messageId,recipient_id:void 0},thread:{group_size:(j||(j=d("I64"))).to_string(j.zero),id:j.to_string(b.threadKey),type:18}}})}),g!=null?f(g):void e()},[b.messageId,b.threadKey,e,f,g]);return k.jsx(c("MWXTooltip.react"),{align:"middle",position:"above",tooltip:g!=null?n:m,children:k.jsx("div",{className:"xc26acl x6s0dn4 x14yjl9h xudhj91 x18nykt9 xww2gxu x1ypdohk x78zum5 x2lah0s xxk0z11 xl56j7k x11i5rnm x1mh8g0r x197sbye x1n2onr6 x2b8uid xvy4d1p x1164lod x4gyw5p x15vn3sj x1o7uuvo",children:k.jsx(c("MWXPressable.react"),{"aria-label":g!=null?n:m,disabled:a,expanding:!0,onPress:h,overlayDisabled:!0,children:k.jsx(c("MWXIconStrict.react"),{color:"secondary",icon:c("MWXIconThread"),size:16})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("FDSChevronRightSvgIcon.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsx("svg",babelHelpers["extends"]({viewBox:"-4 -4 26 26"},a,{children:i.jsxs("g",{fill:"none",fillRule:"evenodd",children:[i.jsx("path",{d:"M5.636 13.47a.75.75 0 1 0 1.06 1.06l6-6a.75.75 0 0 0 0-1.06l-6-6a.75.75 0 0 0-1.06 1.06L11.106 8l-5.47 5.47Z",fill:"currentColor",fillRule:"nonzero"}),i.jsx("path",{d:"M0 16h16V0H0z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;g["default"]=a}),98); __d("MWCMSubthreadXMAIcons",["MWXIcon.react","SVGIcon","cr:6167","cr:6168","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.color;if(b("cr:6168")!=null)return i.jsx(c("MWXIcon.react"),{color:a,icon:d("SVGIcon").svgIcon(b("cr:6168")),size:16});return b("cr:6167")!=null?i.jsx(c("MWXIcon.react"),{color:a,icon:d("SVGIcon").svgIcon(b("cr:6167")),size:16}):null}a.displayName=a.name+" [from "+f.id+"]";g.ChevronRightIcon=a}),98); __d("MessagingLoggingUtils",["I64","MessagingAttachmentType"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){a=(h||(h=d("I64"))).to_int32(a);switch(a){case c("MessagingAttachmentType").NONE:return 1;case c("MessagingAttachmentType").STICKER:return 4;case c("MessagingAttachmentType").IMAGE:return 8;case c("MessagingAttachmentType").ANIMATED_IMAGE:return 6;case c("MessagingAttachmentType").VIDEO:return 10;case c("MessagingAttachmentType").AUDIO:return 11;case c("MessagingAttachmentType").FILE:return 9;case c("MessagingAttachmentType").XMA:return 13;case c("MessagingAttachmentType").EPHEMERAL_IMAGE:return 8;case c("MessagingAttachmentType").EPHEMERAL_VIDEO:return 5;case c("MessagingAttachmentType").SELFIE_STICKER:return 22;case c("MessagingAttachmentType").SOUND_BITE:return 23;default:return 1}}g.convertI64ToAttachmentType=a}),98); __d("MWMessageCellKeyCommands.react",["CometComponentWithKeyCommands.react","MWV2MessageRowActionsContext.react","cometGetKeyCommandConfig","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useMemo;function a(a){var b=a.children;a.message;a=b;b=d("MWV2MessageRowActionsContext.react").useMessageRowActionsContext();var e=b.forwardMessage,f=b.openReactionsMenu,g=b.removeMessage,h=b.replyToMessage,l=j(function(){return f.current()},[f]),m=j(function(){return h.current()},[h]),n=j(function(){return e.current()},[e]),o=j(function(){return g.current()},[g]);b=k(function(){var a,b=[],c=(a=d("cometGetKeyCommandConfig")).getCometAndGeminiKeyCommandConfig("chats","likeMessage",l);b.push(c);c=a.getCometAndGeminiKeyCommandConfig("chats","replyToMessage",m);b.push(c);c=a.getCometAndGeminiKeyCommandConfig("chats","forwardMessage",n);b.push(c);c=a.getCometAndGeminiKeyCommandConfig("chats","removeMessage",o);b.push(c);return b},[l,m,n,o]);return i.jsx(c("CometComponentWithKeyCommands.react"),{commandConfigs:b,xstyle:!1,children:a})}a.displayName=a.name+" [from "+f.id+"]";e=a;g.keyCommands=e}),98); __d("MWMessageDisplayContext.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext,k=i.createContext();function a(a){var b=a.children;a=a.value;a=a===void 0?"standard":a;return i.jsx(k.Provider,{value:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";function b(){return j(k)}g.MWMessageDisplayContextProvider=a;g.useMWMessageDisplayContext=b}),98); __d("MWMessageDeliverySentTimestamp",["fbt","I64"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=(i||(i=d("I64"))).of_int32(60),k=i.of_int32(60*60),l=i.of_int32(24*60*60),m=i.of_int32(7*24*60*60);function a(a,b){b=(i||(i=d("I64"))).of_float(b.getTime()/1e3);a=i.div(a,i.of_int32(1e3));b=i.sub(b,a);a=h._("__JHASH__FdnMQ3ayYbi__JHASH__");if((i||(i=d("I64"))).lt(b,j))return a;else if((i||(i=d("I64"))).lt(b,k)){var c=(i||(i=d("I64"))).to_string(i.div(b,j));return h._("__JHASH__wurNpoApU1z__JHASH__",[h._param("minutes",c)])}else if((i||(i=d("I64"))).lt(b,l)){c=(i||(i=d("I64"))).to_string(i.div(b,k));return h._("__JHASH__Og6TIDKGh51__JHASH__",[h._param("hours",c)])}else if((i||(i=d("I64"))).lt(b,m)){c=(i||(i=d("I64"))).to_string(i.div(b,l));return h._("__JHASH___ys48wQwNKi__JHASH__",[h._param("days",c)])}else return a}g.getSentTitleWithTimestamp=a}),98); __d("MWMessageSendingContext.react",["emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;e=b.createContext;var j=b.useContext,k=b.useMemo,l=b.useRef,m=e({findSendingMessage:c("emptyFunction").thatReturnsFalse,trackSendingMessage:c("emptyFunction"),untrackSendingMessage:c("emptyFunction")});function a(a){a=a.children;var b=l(new Set()),c=k(function(){return{findSendingMessage:function(a){return b.current.has(a)},trackSendingMessage:function(a){b.current.add(a)},untrackSendingMessage:function(a){b.current["delete"](a)}}},[b]);return i.jsx(m.Provider,{value:c,children:a})}a.displayName=a.name+" [from "+f.id+"]";d={Provider:a,useHook:function(){return j(m)}};g["default"]=d}),98); __d("MWStatusText.react",["MWPThreadThemeGradientUtils","MWXText.react","react","stylex","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={alignLeft:{paddingStart:"xtt4iyq",paddingLeft:null,paddingRight:null,$$css:!0},alignRight:{paddingEnd:"x1sxyh0",paddingLeft:null,paddingRight:null,$$css:!0},mask:{backgroundColor:"xcrg951",$$css:!0}};function a(a){var b=a.alignLeft;b=b===void 0?!1:b;var e=a.error,f=a.text;a=a.xstyle;var g=c("useMWPThreadTheme")();return j.jsx("span",{className:(h||(h=c("stylex")))(b?k.alignLeft:k.alignRight,d("MWPThreadThemeGradientUtils").isGradient(g)&&k.mask,a),role:"none",children:j.jsx(c("MWXText.react"),{align:b===!0?"start":"end",color:e===!0?"negative":"secondary",testid:void 0,type:"meta4",children:f})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWMessageOutgoingStatus.react",["MWMessageDeliverySentTimestamp","MWMessageDeliveryStatus","MWMessageSendingContext.react","MWPThreadThemeGradientUtils","MWStatusText.react","clearTimeout","react","setTimeout","stylex","useMWPThreadTheme","useServerTime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useMemo,m=b.useRef,n=b.useState,o=3e3,p={mask:{backgroundColor:"xcrg951",$$css:!0},mountAnimation:{animationDuration:"x4afe7t",animationName:"x1nuzdyh",animationTimingFunction:"x4hg4is",display:"x1rg5ohu",$$css:!0},statusText:{paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",position:"x1n2onr6",$$css:!0},statusTextRow:{display:"x78zum5",justifyContent:"x13a6bvl",$$css:!0}};function a(a){var b=a.alignLeft,e=a.isLastMessage,f=a.message,g=a.status,i=a.xstyle;a=n(!1);var q=a[0],r=a[1],s=m(null),t=m(!1);a=c("MWMessageSendingContext.react").useHook();var u=a.findSendingMessage,v=a.trackSendingMessage,w=a.untrackSendingMessage;a=c("useMWPThreadTheme")();var x=c("useServerTime")();k(function(){w(f.offlineThreadingId);g.type==="Sending"?(v(f.offlineThreadingId),s.current=c("setTimeout")(function(){r(!0)},o)):s.current&&c("clearTimeout")(s.current);return function(){s.current&&c("clearTimeout")(s.current)}},[u,f.offlineThreadingId,g.type,v,w]);var y=l(function(){g.type==="Sending"?v(f.offlineThreadingId):u(f.offlineThreadingId)&&(t.current=!0);var a=g.type==="Sending"||t.current;a=[p.statusText,a&&p.mountAnimation,i];switch(g.type){case"Sending":return q?j.jsx(c("MWStatusText.react"),{alignLeft:b,text:d("MWMessageDeliveryStatus").Titles.sending.toString(),xstyle:a}):null;case"Sent":case"Delivered":return e?j.jsx(c("MWStatusText.react"),{alignLeft:b,text:d("MWMessageDeliverySentTimestamp").getSentTitleWithTimestamp(f.timestampMs,x).toString(),xstyle:a}):null;case"Error":return j.jsx(c("MWStatusText.react"),{alignLeft:b,error:!0,text:d("MWMessageDeliveryStatus").Titles.error.toString(),xstyle:a});default:return null}},[b,u,e,f.offlineThreadingId,f.timestampMs,x,q,g.type,v,i]);return j.jsx("div",{className:(h||(h=c("stylex")))(p.statusTextRow,d("MWPThreadThemeGradientUtils").isGradient(a)&&p.mask),"data-testid":void 0,children:y})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatBubbleEmphasisRing.react",["react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");({borderRadius:22,borderStyle:"solid",borderWidth:2,content:"''",display:"block",pointerEvents:"none",position:"absolute",zIndex:1});var k={emphasis_ring:{backgroundColor:"xjbqb8w",borderTopColor:"xo5tm0a",borderEndColor:"xh1n2d4",borderBottomColor:"xnrveld",borderStartColor:"x16jkurw",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x1gp4ovq",borderEndWidth:"xdio9jc",borderBottomWidth:"x1h2mt7u",borderStartWidth:"x7g060r",display:"x78zum5",maxWidth:"x1hvl878",position:"x1n2onr6","::after_borderTopStartRadius":"xquudas","::after_borderTopEndRadius":"x6p43zf","::after_borderBottomEndRadius":"x1wnhr99","::after_borderBottomStartRadius":"x1gquc79","::after_borderTopStyle":"xynf4tj","::after_borderEndStyle":"xdspwft","::after_borderBottomStyle":"x1r9ni5o","::after_borderStartStyle":"x1d52zm6","::after_borderTopWidth":"x31ga2r","::after_borderEndWidth":"xcmxnv6","::after_borderBottomWidth":"x13afdcp","::after_borderStartWidth":"x10va8jt","::after_content":"x1s928wv","::after_display":"xhkezso","::after_pointerEvents":"x2q1x1w","::after_position":"x1j6awrg","::after_zIndex":"xitxdhh","::after_borderTopColor":"xs65dz8","::after_borderEndColor":"x12bj33z","::after_borderBottomColor":"x15uivxv","::after_borderStartColor":"xbxgwnb","::after_bottom":"xdb1ctf","::after_end":"x4bhatf","::after_left":null,"::after_right":null,"::after_start":"xhg89tr","::after_top":"x7kqs8i","::before_borderTopStartRadius":"x2e93ah","::before_borderTopEndRadius":"xigdz7j","::before_borderBottomEndRadius":"x1vxwiij","::before_borderBottomStartRadius":"xfgw0w6","::before_borderTopStyle":"xnvurfn","::before_borderEndStyle":"xv1ta3e","::before_borderBottomStyle":"x1opv7go","::before_borderStartStyle":"x1dtnpoi","::before_borderTopWidth":"x1b8stmw","::before_borderEndWidth":"xyhsekn","::before_borderBottomWidth":"xmbliey","::before_borderStartWidth":"x1igdxxj","::before_content":"x1cpjm7i","::before_display":"x1fgarty","::before_pointerEvents":"xkk1bqk","::before_position":"x1hmns74","::before_zIndex":"x12maryy","::before_borderTopColor":"xdxy94m","::before_borderEndColor":"xt7heth","::before_borderBottomColor":"xq7m7h9","::before_borderStartColor":"xp0hy2t","::before_bottom":"xe80sof","::before_end":"x105ji64","::before_left":null,"::before_right":null,"::before_opacity":"x1u3qutx","::before_start":"xbs7dl3","::before_top":"x51xajf",$$css:!0},emphasis_ring_before_xma:{borderBottomStyle:"x1sy0etr","::after_borderBottom":"x1bxl7c5","::after_borderBottomEndRadius":"x1qo8dsh","::after_borderBottomStartRadius":"x1oiup0q","::before_borderBottom":"xozyfcf","::before_borderBottomEndRadius":"x1nxuetn","::before_borderBottomStartRadius":"x1doa7m0",$$css:!0},emphasis_ring_connect_bottom_incoming:{"::after_borderBottomStartRadius":"x1573djm","::before_borderBottomStartRadius":"x106tphz",$$css:!0},emphasis_ring_connect_bottom_outgoing:{"::after_borderBottomEndRadius":"x1nb2ndt","::before_borderBottomEndRadius":"x7ft4bm",$$css:!0},emphasis_ring_connect_top_incoming:{"::after_borderTopStartRadius":"x14nzmgs","::before_borderTopStartRadius":"x58eeit",$$css:!0},emphasis_ring_connect_top_outgoing:{"::after_borderTopEndRadius":"xe41ffp","::before_borderTopEndRadius":"x1cbhpwz",$$css:!0},emphasis_ring_xma:{borderTopStyle:"x1ejq31n",width:"x1o2z316","::after_borderTop":"x12dgpll","::after_borderTopEndRadius":"x1utvphz","::after_borderTopStartRadius":"x17dqjr0","::before_borderTop":"xp2bjph","::before_borderTopEndRadius":"xajc7s","::before_borderTopStartRadius":"x1eo7yr1",$$css:!0}};function a(a){var b=a.hasXMA,d=a.children,e=a.connectBottom,f=a.connectTop,g=a.outgoing;a=a.precedesXMA;var i=g?k.emphasis_ring_connect_top_outgoing:k.emphasis_ring_connect_top_incoming;g=g?k.emphasis_ring_connect_bottom_outgoing:k.emphasis_ring_connect_bottom_incoming;a=[k.emphasis_ring,a?k.emphasis_ring_before_xma:e&&g,f&&(b?k.emphasis_ring_xma:i)];return j.jsx("div",{className:(h||(h=c("stylex")))(a),"data-testid":void 0,children:d})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPMessageIsReply",["LSIntEnum","LSMessageReplySourceTypeV2"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){return a.replySourceTypeV2!=null&&(h||(h=d("LSIntEnum"))).toNumber(a.replySourceTypeV2)!==c("LSMessageReplySourceTypeV2").FORWARD}g["default"]=a}),98); __d("MWPThreadGradientBackground.react",["MWPColorUtils","MWPThreadThemeGradientUtils","gkx","react","useMWPThreadTheme","useResizeObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;e=b.createContext;var j=b.useState;function k(a,b){if(c("gkx")("1969")&&b!=null&&b.length>0)return{backgroundImage:"url("+b+")"};return a.length>1?{backgroundImage:d("MWPColorUtils").gradient(a)}:{}}function l(a){return{backgroundPosition:Math.floor(a.left)+"px "+Math.floor(a.top)+"px",backgroundSize:Math.floor(a.width)+"px "+Math.floor(a.height)+"px",willChange:"scrollPosition"}}b=e({});var m=b.Provider;function a(a){a=a.children;var b=c("useMWPThreadTheme")(),e=b.outgoingGradientColors;b=b.threadTheme;var f=j({}),g=f[0],h=f[1];f=c("useResizeObserver")(function(a,b,c){b!=null&&h(l(b.getBoundingClientRect()))});return c("gkx")("557")?i.jsx(m,{value:g,children:i.jsx("div",{className:"x18d0r48 x78zum5 x1r8uery xdt5ytf x1iyjqo2 xmz0i5r x6ikm8r x10wlt62 x1n2onr6",ref:f,children:a})}):i.jsx("div",{className:"x18d0r48 x78zum5 x1r8uery xdt5ytf x1iyjqo2 xmz0i5r x6ikm8r x10wlt62 x1n2onr6",style:babelHelpers["extends"]({},k(e,b.backgroundUrl),d("MWPThreadThemeGradientUtils").getStyleOverridesForThreadTheme(b)),children:a})}a.displayName=a.name+" [from "+f.id+"]";g.context=b;g.MWPThreadGradientBackground=a}),98); __d("useMWInlineStylesForReply",["MWLSThreadDisplayContext","MWPColorUtils","gkx","isArmadillo","react","useMatchMedia"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useMemo;function a(a,b,e){var f=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),g=f!=="Inbox",h=c("useMatchMedia")("(min-height: "+String(1280)+"px)");return i(function(){if(c("gkx")("1969")&&a.backgroundUrl!=null&&a.backgroundUrl.length>=1&&b.length>0)return{backgroundColor:d("MWPColorUtils").int64ToHex(b[0].color)};if(e&&b.length>1)return{backgroundAttachment:"fixed",backgroundColor:d("MWPColorUtils").int64ToHex(a.fallbackColor),backgroundImage:d("MWPColorUtils").gradient(b,g?{footerHeight:56,headerHeight:c("isArmadillo")()?32:48,totalHeight:h?570:455}:void 0)};else if(e)return{backgroundColor:d("MWPColorUtils").int64ToHex(a.fallbackColor)};else return{backgroundColor:"var(--chat-incoming-message-bubble-background-color)"}},[a.backgroundUrl,a.fallbackColor,b,e,g,h])}g["default"]=a}),98); __d("MWV2ChatBubbleReply.react",["MWXSolidMessageBubble.react","react","useMWInlineStylesForReply"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.gradientColors,d=a.threadTheme,e=a.children,f=a.connectBottom,g=a.connectTop,h=a.outgoing;a=a.precedesXMA;d=c("useMWInlineStylesForReply")(d,b,h);return i.jsx(c("MWXSolidMessageBubble.react"),{connectBottom:f,connectTop:g,outgoing:h,precedesXMA:a,style:d,children:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatBubbleUtils.react",["MWPColorUtils","gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){if(c("gkx")("1969")){var e=b?a.outgoingGradientColors:a.incomingGradientColors;if(e!=null&&e.length>0)return{backgroundColor:d("MWPColorUtils").int64ToHex(e[0].color)}}if(c("gkx")("557")){e=b?a.outgoingGradientColors:a.incomingGradientColors;if(e.length>1)return{backgroundAttachment:"fixed",backgroundImage:d("MWPColorUtils").gradient(e)}}if(b)return{backgroundColor:d("MWPColorUtils").int64ToHex(a.threadTheme.fallbackColor)};else return{backgroundColor:"var(--chat-incoming-message-bubble-background-color)"}}g.getInlineStylesForSolidBubble=a}),98); __d("MWV2ChatBubble.react",["MWMessageDisplayContext.react","MWPMessageIsReply","MWPThreadGradientBackground.react","MWPThreadThemeContext","MWV2ChatBubbleReply.react","MWV2ChatBubbleUtils.react","MWXSolidMessageBubble.react","MWXTransparentMessageBubble.react","gkx","react","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(a){var b=a.message,e=a.xmaLayout,f=a.children,g=a.connectBottom,h=a.connectTop,k=a.outgoing;a=a.precedesXMA;var l=c("useMWPThreadTheme")(),m=k?l.outgoingGradientColors:l.incomingGradientColors,n=l.threadTheme;b=c("MWPMessageIsReply")(b);var o=j(d("MWPThreadGradientBackground.react").context),p=d("MWMessageDisplayContext.react").useMWMessageDisplayContext();if(b)return i.jsx(c("MWV2ChatBubbleReply.react"),{connectBottom:g,connectTop:h,gradientColors:m,outgoing:k,precedesXMA:a,threadTheme:n,children:f});if(p==="reportMessages")return i.jsx(c("MWXSolidMessageBubble.react"),{connectBottom:g,connectTop:h,outgoing:k,precedesXMA:a,style:babelHelpers["extends"]({},d("MWV2ChatBubbleUtils.react").getInlineStylesForSolidBubble(d("MWPThreadThemeContext").defaultContextValue,k)),xmaLayout:e,children:f});if(c("gkx")("1969")&&k&&Boolean(n.backgroundUrl))return i.jsx(c("MWXSolidMessageBubble.react"),{connectBottom:g,connectTop:h,outgoing:k,precedesXMA:a,style:babelHelpers["extends"]({},d("MWV2ChatBubbleUtils.react").getInlineStylesForSolidBubble(l,k)),xmaLayout:e,children:f});return k&&m.length>1?c("gkx")("557")?i.jsx(c("MWXSolidMessageBubble.react"),{connectBottom:g,connectTop:h,outgoing:k,precedesXMA:a,style:babelHelpers["extends"]({},o,d("MWV2ChatBubbleUtils.react").getInlineStylesForSolidBubble(l,k)),xmaLayout:e,children:f}):i.jsx(c("MWXTransparentMessageBubble.react"),{connectBottom:g,connectTop:h,outgoing:k,precedesXMA:a,children:f}):i.jsx(c("MWXSolidMessageBubble.react"),{connectBottom:g,connectTop:h,outgoing:k,precedesXMA:a,style:babelHelpers["extends"]({},d("MWV2ChatBubbleUtils.react").getInlineStylesForSolidBubble(l,k)),xmaLayout:e,children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatBubbleContainer.react",["MWChatBubbleEmphasisRing.react","MWV2ChatBubble.react","react","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.hasEmphasisRing;b=b===void 0?!1:b;var e=a.message,f=a.xmaLayout;f=f===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:f;var g=a.children;a=babelHelpers.objectWithoutPropertiesLoose(a,["hasEmphasisRing","message","xmaLayout","children"]);g=i.jsx(c("MWV2ChatBubble.react"),babelHelpers["extends"]({children:g,message:e,xmaLayout:f},a));return b?i.jsx(c("MWChatBubbleEmphasisRing.react"),babelHelpers["extends"]({hasXMA:!1},a,{children:g})):g}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2TombstonedMessage.react",["react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={connectBottom:{borderBottomEndRadius:"x5pf9jr",borderBottomStartRadius:"xo71vjh",$$css:!0},connectTop:{borderTopEndRadius:"x13lgxp2",borderTopStartRadius:"x168nmei",$$css:!0},root:{borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",borderTopColor:"x8cjs6t",borderEndColor:"x1ch86jh",borderBottomColor:"x80vd3b",borderStartColor:"xckqwgs",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopEndRadius:"x1g8br2z",borderTopStartRadius:"x1tlxs6b",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",color:"x1dntmbh",maxWidth:"x193iq5w",paddingTop:"x889kno",paddingEnd:"x1iji9kk",paddingBottom:"x1a8lsjc",paddingStart:"x1sln4lm",wordBreak:"x13faqbe",$$css:!0}};function a(a){var b=a.children,d=a.connectTop,e=a.connectBottom;a=(a=a.xstyle)!=null?a:!1;d=d!=null?d:!1;e=e!=null?e:!1;return j.jsx("div",{className:(h||(h=c("stylex")))(k.root,d?k.connectTop:!1,e?k.connectBottom:!1,a),children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatErrorBubble.react",["fbt","MWV2TombstonedMessage.react","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={vr:{height:"x36qwtl",width:"xh8yej3",$$css:!0},withBackground:{backgroundColor:"xcrg951",$$css:!0},withRepliedMessage:{zIndex:"x1vjfegm",$$css:!0}};function a(a){a=a.isReply;return k.jsxs("div",{className:(i||(i=c("stylex")))(a?l.withRepliedMessage:l.withBackground),children:[a?null:k.jsx("div",{className:"x36qwtl xh8yej3 xcrg951"}),k.jsx(c("MWV2TombstonedMessage.react"),{xstyle:l.withBackground,children:h._("__JHASH__fgvjfNhcDBr__JHASH__")})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatSeenHeadsRow.react",["fbt","CometImage.react","JSResourceForInteraction","MDSGlimmer.react","MWLSThreadDisplayContext","MWPThreadThemeGradientUtils","MWV2MessageRowIsRowFocusedContext.react","MWXPressable.react","MWXTooltip.react","MWXTooltipGroup.react","MercuryTimestamp","getFBTSafeGenderFromGenderConst","react","stylex","useMWPThreadTheme","useMWXLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));b=j;var l=b.useContext,m=b.useRef,n=5,o=c("JSResourceForInteraction")("MWV2ChatSeenHeadsDialog.react").__setRef("MWV2ChatSeenHeadsRow.react"),p={heads:{display:"x78zum5",flexShrink:"x2lah0s",$$css:!0},img:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"x1v9usgg",paddingEnd:"x19um543",paddingLeft:null,paddingRight:null,paddingStart:"x1m6msm",verticalAlign:"xxymvpz",width:"x6jxa94",$$css:!0},mask:{backgroundColor:"xcrg951",$$css:!0},overflow:{backgroundColor:"x1qhmfi1",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",color:"xi81zsa",fontSize:"x1ncwhqj",fontWeight:"x117nqv4",lineHeight:"x1hkbg2g",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingTop:"xexx8yu",paddingEnd:"x150jy0e",paddingBottom:"x18d9i69",paddingStart:"x1e558r4",textAlign:"x2b8uid",$$css:!0},root:{display:"x78zum5",paddingBottom:"x1120s5i",$$css:!0},spacer:{flexBasis:"x1r8uery",flexGrow:"x1iyjqo2",$$css:!0}};function q(a,b,d,e){if(!d)return[];d=Math.max(Math.floor(b-9),0);a=a.slice(d,b);var f="\n"+h._("__JHASH__8_D_WS90lqj__JHASH__",[h._param("Number of additional views",d,[0])]).toString();a=k.jsxs("ul",{children:[a.reverse().map(function(a,b){return k.jsx("li",{children:a.name},String(b))}),d>0?k.jsx("li",{children:f},"overflow"):null]});d=h._("__JHASH__hpZlVXKj1CE__JHASH__",[h._param("the number of additional viewers",b,[0])]);return[k.jsx(c("MWXTooltip.react"),{align:e==="Inbox"?"middle":"end",forceInlineDisplay:!0,label:d,position:"above",tooltip:a,children:k.jsx("span",{className:"x1qhmfi1 x1lq5wgf xgqcy7u x30kzoy x9jhf4c xi81zsa x1ncwhqj x117nqv4 x1hkbg2g xdj266r x11i5rnm xat24cr x1mh8g0r xexx8yu x150jy0e x18d9i69 x1e558r4 x2b8uid",children:d})},"overflow")]}function r(a){var b=a.displayContext,e=a.index;a=a.user;var f=a.timestamp>0?h._("__JHASH__i65FoHjBJBT__JHASH__",[h._name("full name",a.name,c("getFBTSafeGenderFromGenderConst")(a.gender)),h._param("seen time",d("MercuryTimestamp").getPreciseTimestamp(a.timestamp))]):h._("__JHASH__o0y2JESDXU1__JHASH__",[h._name("full name",a.name,c("getFBTSafeGenderFromGenderConst")(a.gender))]);return k.jsx(c("MWXTooltip.react"),{align:b==="Inbox"?"middle":"end",forceInlineDisplay:!0,position:"above",tooltip:f,children:a.imageSrc===""?k.jsx(c("MDSGlimmer.react"),{index:e,xstyle:p.img}):k.jsx(c("CometImage.react"),{alt:f,src:a.imageSrc,xstyle:p.img})})}r.displayName=r.name+" [from "+f.id+"]";function s(a,b){var c=a.length,d=c>n;c=Math.max(Math.floor(c-(d?n-1:n)),0);var e=a.slice(c);return[].concat(q(a,c,d,b),e.map(function(a,c){return k.jsx(r,{displayContext:b,index:c,user:a},a.id)}))}function a(a){var b=a.messageSeenBy,e=a.xstyle;a=c("useMWPThreadTheme")();var f=l(d("MWV2MessageRowIsRowFocusedContext.react").context),g=f.setFocused,j=f.setIsDialogOpened;f=b.length;var n=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),q=m(null),r={messageSeenBy:b},t=c("useMWXLazyDialog")(o),u=t[0],v=function(){return u(r,function(){j(function(){return!1}),g(function(){return!0})})};return k.jsxs("div",{className:(i||(i=c("stylex")))(p.root,d("MWPThreadThemeGradientUtils").isGradient(a)?p.mask:!1),role:"none",children:[k.jsx("div",{className:"x1r8uery x1iyjqo2"}),k.jsx(c("MWXPressable.react"),{"aria-label":h._("__JHASH__JhvMDLpCFuF__JHASH__",[h._param("number of participants who have seen this message",String(f))]).toString(),onPress:function(){j(function(){return!0}),v()},overlayDisabled:!0,ref:q,xstyle:function(){return[p.heads,e]},children:k.jsx(c("MWXTooltipGroup.react"),{children:s(b,n)})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatSingleSeenHead.react",["MDSGlimmer.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var b=a.altText,d=a.head;a=a.xstyle;return d.imageSrc===""?j.jsx(c("MDSGlimmer.react"),{index:1,xstyle:k.profilePlaceholder}):j.jsx("img",{alt:b,className:(h||(h=c("stylex")))(k.image,a),"data-testid":void 0,height:"14px",src:d.imageSrc,width:"14px"})}a.displayName=a.name+" [from "+f.id+"]";var k={image:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",userSelect:"x87ps6o",verticalAlign:"x11njtxf",$$css:!0},profilePlaceholder:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"x1v9usgg",verticalAlign:"x3ajldb",width:"x6jxa94",$$css:!0}};g["default"]=a}),98); __d("MWChatSingleSeenHeadRow.react",["MWChatSingleSeenHead.react","MWLSThreadDisplayContext","MWPThreadThemeGradientUtils","MWXTooltip.react","react","stylex","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={mask:{backgroundColor:"xcrg951",$$css:!0},root:{display:"x78zum5",justifyContent:"x13a6bvl",$$css:!0},singleSeenHeadRow:{display:"x1jfb8zj",$$css:!0}};function a(a){var b=a.head,e=a.text;a=a.xstyle;var f=c("useMWPThreadTheme")(),g=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();return j.jsx("div",{className:(h||(h=c("stylex")))(k.root,d("MWPThreadThemeGradientUtils").isGradient(f)?k.mask:!1),"data-testid":void 0,children:j.jsx("div",{className:h([k.singleSeenHeadRow,a]),children:j.jsx(c("MWXTooltip.react"),{align:g==="Inbox"?"middle":"end",forceInlineDisplay:!0,position:"above",tooltip:e,children:j.jsx(c("MWChatSingleSeenHead.react"),{altText:e,head:b})},b.id)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2MessageEndOfGroupContentTextOnly.react",["fbt","MWMessageDeliveryStatus","MWStatusText.react","intlSummarizeNumber","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={statusText:{paddingBottom:"xwib8y2",paddingTop:"x1iorvi4",$$css:!0}};function l(a){var b=a.alignLeft,d=a.enableSeenInfo;a=a.num;return!d?j.jsx(j.Fragment,{}):j.jsx(c("MWStatusText.react"),{alignLeft:b,text:h._("__JHASH__SlWkB_YFGR6__JHASH__",[h._param("seenByNumber",c("intlSummarizeNumber")(a))]).toString(),xstyle:k.statusText})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.alignLeft,e=a.enableSeenInfo;e=e===void 0?!0:e;a=a.status;var f=d("MWMessageDeliveryStatus").getBroadcastStatusTitle(a);switch(a.type){case"NoneStatus":return null;case"Error":return j.jsx(c("MWStatusText.react"),{error:!0,text:f.toString(),xstyle:k.statusText});case"SingleSeenHead":return j.jsx(l,{enableSeenInfo:e,num:1});case"MultipleSeenHeads":case"DeliveredAndRead":break;case"SeenCount":return j.jsx(l,{alignLeft:b,enableSeenInfo:e,num:a.count});case"Loading":return j.jsx(c("MWStatusText.react"),{alignLeft:b,text:f.toString(),xstyle:k.statusText});case"RetriableError":return j.jsx(c("MWStatusText.react"),{alignLeft:b,error:!0,text:f.toString(),xstyle:k.statusText});default:return j.jsx(c("MWStatusText.react"),{text:f.toString(),xstyle:k.statusText})}return j.jsx(l,{enableSeenInfo:e,num:a.heads.length})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2MessageEndOfGroupContent.react",["LSMessagingThreadTypeUtil","MWChatSingleSeenHeadRow.react","MWLSThread","MWMessageDeliveryStatus","MWMessageOutgoingStatus.react","MWPMessageListColumn.react","MWV2ChatSeenHeadsRow.react","MWV2MessageEndOfGroupContentTextOnly.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={baseStyle:{marginEnd:"x1emribx",marginLeft:null,marginRight:null,marginTop:"x1gslohp",$$css:!0},lastMessage:{marginBottom:"x12nagc",$$css:!0},nonLastMessage:{marginBottom:"xod5an3",$$css:!0},seenHeads:{marginTop:"x1gslohp",marginEnd:"xw3qccf",marginBottom:"xjpr12u",marginStart:"x1mh8g0r",$$css:!0}};function a(a){var b=a.alignLeft,e=a.enableSeenInfo;e=e===void 0?!0:e;var f=a.hasTextBasedMessageReceipts,g=a.isLastMessage,h=a.isOutgoing,k=a.isTextOnly,l=a.message;a=a.status;var m=d("MWLSThread").useThread(l.threadKey,function(a){return d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(a.threadType)});if(g&&f&&a.type==="NoneStatus")return i.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:22});if(k===!0)return i.jsx(c("MWV2MessageEndOfGroupContentTextOnly.react"),{alignLeft:b,enableSeenInfo:e,status:a});if(a.type==="MultipleSeenHeads")return i.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:i.jsx(c("MWV2ChatSeenHeadsRow.react"),{messageSeenBy:a.heads,xstyle:[j.seenHeads,f&&(g?j.lastMessage:j.nonLastMessage),f&&j.baseStyle]})});if(f&&a.type==="SeenCount"&&(m===!0&&g))return i.jsx(c("MWV2MessageEndOfGroupContentTextOnly.react"),{alignLeft:b,enableSeenInfo:e,status:a});if(f&&a.type==="SingleSeenHead")return i.jsx(c("MWChatSingleSeenHeadRow.react"),{head:a.head,text:d("MWMessageDeliveryStatus").getSingleSeenHead(a.head),xstyle:[g?j.lastMessage:j.nonLastMessage,j.baseStyle]});if(f&&a.type==="SingleSeenHead")return i.jsx(c("MWChatSingleSeenHeadRow.react"),{head:a.head,text:d("MWMessageDeliveryStatus").getSingleSeenHead(a.head),xstyle:[g?j.lastMessage:j.nonLastMessage,j.baseStyle]});if(h&&f)return i.jsx(c("MWMessageOutgoingStatus.react"),{alignLeft:b,isLastMessage:g,message:l,status:a,xstyle:[g?j.lastMessage:j.nonLastMessage,j.baseStyle]});return h&&f?i.jsx(c("MWMessageOutgoingStatus.react"),{alignLeft:b,isLastMessage:g,message:l,status:a,xstyle:[g?j.lastMessage:j.nonLastMessage,j.baseStyle]}):null}a.displayName=a.name+" [from "+f.id+"]";g.MWV2MessageEndOfGroupContent=a}),98); __d("MDSAccountSvgIcon.react",["MDSSvgIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsx(c("MDSSvgIcon.react"),babelHelpers["extends"]({},a,{children:i.jsx("path",{clipRule:"evenodd",d:"M18 29c6.075 0 11-4.925 11-11S24.075 7 18 7 7 11.925 7 18s4.925 11 11 11zm5.824-6.132c.408.316.431.91.059 1.268A8.472 8.472 0 0118 26.5c-2.283 0-4.355-.9-5.883-2.364a.834.834 0 01.059-1.268C13.654 21.719 15.746 21 18 21c2.255 0 4.346.719 5.824 1.868zM18 19c-1.882 0-3.5-1.304-3.5-4.142C14.5 12.544 15.974 11 18 11s3.5 1.544 3.5 3.858C21.5 17.696 19.882 19 18 19z",fillRule:"evenodd"})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2MessageProfilePhotoMenu.entrypoint",["JSResourceForInteraction","MWV2MessageProfilePhotoMenuQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.groupID;a=a.userID;return{queries:{messageProfilePhotoMenuQueryRef:{parameters:c("MWV2MessageProfilePhotoMenuQuery$Parameters"),variables:{groupID:b,userID:a}}}}},root:c("JSResourceForInteraction")("MWV2MessageProfilePhotoMenu.react").__setRef("MWV2MessageProfilePhotoMenu.entrypoint")};g["default"]=a}),98); __d("MWV2MessageProfilePhotoContent.react",["fbt","CometEntryPointPopoverTrigger.react","CometImageCover.react","I64","LSContactBitOffset","MDSAccountSvgIcon.react","MDSGlimmer.react","MWCMIsAnyCMThread","MWLSThread","MWPActor.react","MWPreloadableQueries","MWV2MessageProfilePhotoMenu.entrypoint","MWXIcon.react","MWXPressable.react","MWXTooltip.react","ReQLSuspense","SVGIcon","getLSMediaContactProfilePictureUrl","qex","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m=h._("__JHASH__G4Bi2CYTkJR__JHASH__"),n={glimmer:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"x1fgtraw",width:"xgd8bvy",$$css:!0},noProfilePhoto:{width:"xgd8bvy",$$css:!0},profile:{alignItems:"xuk3077",display:"x78zum5",flexShrink:"x2lah0s",height:"x1fgtraw",width:"xgd8bvy",$$css:!0}};function a(a){var b=a.ariaHidden;b=b===void 0?!1:b;var e=a.contact,g=a.isGroupThread,h=a.isLastMessageInGroup,k=a.message;a=a.nickname;var o=d("MWPActor.react").useActor(),p=(i||(i=c("useReStore")))(),q=d("MWLSThread").useThread(k.threadKey),r=q==null?void 0:q.parentThreadKey;q=q==null?void 0:q.threadType;var s=d("ReQLSuspense").useFirst(function(){var a;return d("MWPreloadableQueries").getCommunityFolderQuery(p,(a=r)!=null?a:(j||(j=d("I64"))).zero).map(function(a){return a.fbGroupId})},[p,r],f.id+":78");q=q?c("MWCMIsAnyCMThread")(q):!1;if(!h)return l.jsx("div",{className:"xgd8bvy"});if(k.takedownState!=null)h=l.jsx(c("MWXTooltip.react"),{align:"middle",position:"start",tooltip:m,children:l.jsx(c("MWXIcon.react"),{alt:m,icon:d("SVGIcon").legacySVGIcon(function(){return l.jsx(c("MDSAccountSvgIcon.react"),{color:"disabled",size:28,viewBox:"6 6 24 24"})})})});else if(e!=null&&c("getLSMediaContactProfilePictureUrl")(e)!==""){var t,u;a=a!=null?a+" ("+e.name+")":e.name;t=(t=d("LSContactBitOffset").has(77,e))!=null?t:!1;u=(u=d("LSContactBitOffset").has(84,e))!=null?u:!1;var v=l.jsx(c("CometImageCover.react"),{alt:e.name,src:c("getLSMediaContactProfilePictureUrl")(e),style:{borderRadius:"50%"}});h=l.jsx(c("MWXTooltip.react"),{align:"middle",position:"start",tooltip:a,children:c("qex")._("384")&&!u&&!t&&q?l.jsx(c("CometEntryPointPopoverTrigger.react"),{entryPointParams:{groupID:(j||(j=d("I64"))).to_string((e=s)!=null?e:(j||(j=d("I64"))).zero),userID:(j||(j=d("I64"))).to_string(o)},otherProps:{message:k},popoverEntryPoint:c("MWV2MessageProfilePhotoMenu.entrypoint"),position:"above",children:function(a,b,d,e,f,h){return g?l.jsx(c("MWXPressable.react"),{onHoverIn:e,onHoverOut:f,onPress:function(){return b()},onPressIn:h,overlayRadius:"50%",ref:a,xstyle:n.profile,children:v}):v}}):v})}else h=l.jsx(c("MDSGlimmer.react"),{index:1,xstyle:n.glimmer});return l.jsx("div",{"aria-hidden":b,className:"xuk3077 x78zum5 x2lah0s x1fgtraw xgd8bvy",children:h})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2MessageProfilePhoto.react",["MWPContactContext.react","MWV2MessageProfilePhotoContent.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.ariaHidden;b=b===void 0?!1:b;var e=a.isGroupThread,f=a.isLastMessageInGroup;a=a.message;var g=d("MWPContactContext.react").useMWPContactStableContext(),h=g.contact;g=g.nickname;return i.jsx(c("MWV2MessageProfilePhotoContent.react"),{ariaHidden:b,contact:h,isGroupThread:e,isLastMessageInGroup:f,message:a,nickname:g})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWTheme.react",["I64","cr:4128","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react")),k=h,l=k.createContext,m=k.useContext,n=k.useEffect,o=k.useMemo;function a(a,b){a=a!=null?a:.4;var c=parseInt(b.slice(1,3),16),d=parseInt(b.slice(3,5),16);b=parseInt(b.slice(5,7),16);a=a.toFixed(4);return"rgba("+c+","+d+","+b+","+a+")"}function e(a){return a.type==="solid"?a.color:a.colors[0]}function p(a){return"#"+a.slice(2)}function q(a){a=(i||(i=d("I64"))).to_int32(a);var b=(a&16711680)>>>16,c=(a&65280)>>>8;a=a&255;var e=function(a){return a.toString(16).padStart(2,"0")};return"#"+(e(b)+(e(c)+e(a)))}var r=l({clearTheme:c("emptyFunction"),setTheme:c("emptyFunction"),theme:b("cr:4128")});function s(){return m(r).theme}function t(){var a=m(r),b=a.clearTheme;n(function(){return b},[b]);return[a.setTheme,b]}function u(a){var b=a.children,d=a.clearTheme,e=a.setTheme,f=a.theme;a=o(function(){var a;return{clearTheme:(a=d)!=null?a:c("emptyFunction"),setTheme:(a=e)!=null?a:c("emptyFunction"),theme:f}},[d,e,f]);return j.jsx(r.Provider,{value:a,children:b})}u.displayName=u.name+" [from "+f.id+"]";function v(a){return a.type==="gradient"}g.defaultTheme=b("cr:4128");g.lighten=a;g.top=e;g.aRGBtoHex=p;g.intToHex=q;g.useTheme=s;g.usePreview=t;g.MWThemeProvider=u;g.isGradient=v}),98); __d("MWPDateBreak.react",["BaseHeading.react","CometTimestamp.react","MWTheme.react","MWXText.react","formatDate","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={accessibleElem:{clip:"xzpqnlu",clipPath:"x1hyvwdk",height:"xqtp20y",overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"xnalus7",$$css:!0},emphasized:{fontWeight:"xk50ysn",$$css:!0},mask:{backgroundColor:"xcrg951",$$css:!0},root:{marginBottom:"xjpr12u",marginTop:"xr9ek0c",textAlign:"x2b8uid",$$css:!0}};function l(a){var b=a.renderTextWrapper;a=a.timestamp;a=j.jsx("span",{className:"xk50ysn",children:c("formatDate")(new Date(a),{future:"g:ia",older:"m/d/Y g:ia",thisYear:"M jS, g:ia",today:"g:ia",withinWeek:"D g:ia"})});return b!=null?b(a):a}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.renderTextWrapper;a=a.timestamp;var e=d("MWTheme.react").useTheme();return j.jsxs(c("BaseHeading.react"),{testid:void 0,children:[j.jsx("div",{className:"xzpqnlu x1hyvwdk xqtp20y x6ikm8r x10wlt62 xnalus7",children:j.jsx(c("CometTimestamp.react"),{date:new Date(a)})}),j.jsx("div",{"aria-hidden":!0,className:(h||(h=c("stylex")))(k.root,d("MWTheme.react").isGradient(e)&&k.mask),"data-scope":"date_break",children:j.jsx(c("MWXText.react"),{color:"tertiary",type:"meta4",children:j.jsx(l,{renderTextWrapper:b,timestamp:a})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWAdminTextLayout.react",["CometTextWithEntities.react","MWChatTextTransform","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.cta;a=a.message;a=a.text;if(a!=null)if(b!=null)return i.jsxs(i.Fragment,{children:[i.jsx(c("CometTextWithEntities.react"),{text:a,transforms:d("MWChatTextTransform").epdTextTransforms})," ",b]});else return i.jsx(c("CometTextWithEntities.react"),{text:a,transforms:d("MWChatTextTransform").epdTextTransforms});else if(b!=null)return b;else return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSCustomUpdateMuteManagement",["LSGetViewerFBID","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(a){return c.storedProcedure(b("LSGetViewerFBID")).then(function(a){return a=a,d[0]=a[0],a})},function(e){return d[1]=new c.Map(),d[1].set("game_id",a[1]),d[1].set("muted_user_id",a[0]),d[1].set("owner_id",d[0]),d[1].set("user_action_type",a[2]),d[2]=c.toJSON(d[1]),c.storedProcedure(b("LSIssueNewTask"),"instant_game_custom_update_mute_management",c.i64.cast([0,759]),d[2],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSCustomUpdateMuteManagementStoredProcedure",["LSCustomUpdateMuteManagement"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.mutedUserId;d[1]=b.gameId;d[2]=b.userActionType;return c("LSCustomUpdateMuteManagement").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MWNotificationMessageInstantGameCustomUpdateMuteManagementAdminMsgCta.react",["LSCustomUpdateMuteManagementStoredProcedure","LSFactory","LSIntEnum","MWAdminTextLayout.react","MWXLink.react","ReQL","ReQLSuspense","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useCallback;function a(a){var b=a.message,e=a.shouldMute,g=(h||(h=c("useReStore")))(),j=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("admin_message_ctas")).getKeyRange(b.threadKey,b.messageId)},[g,b.messageId,b.threadKey],f.id+":32");a=l(function(){if((j==null?void 0:j.targetId)==null)return;var a=j.targetId,f=e?(i||(i=d("LSIntEnum"))).ofNumber(0):(i||(i=d("LSIntEnum"))).ofNumber(1);c("promiseDone")(g.runInTransaction(function(d){return c("LSCustomUpdateMuteManagementStoredProcedure")(c("LSFactory")(d),{gameId:a,mutedUserId:b.threadKey,userActionType:f})},"readwrite"))},[g,b.threadKey,e,j]);a=b.adminMsgCtaTitle!=null?k.jsx(c("MWXLink.react"),{onClick:a,target:"_blank",children:b.adminMsgCtaTitle}):void 0;return k.jsx(c("MWAdminTextLayout.react"),{cta:a,message:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSUpdateBotSubscription",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[0].set("user_action_type",a[1]),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),"game_messenger_updates_management_xmat",c.i64.cast([0,755]),d[1],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSUpdateBotSubscriptionStoredProcedure",["LSUpdateBotSubscription"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;d[1]=b.userActionType;return c("LSUpdateBotSubscription").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MWNotificationMessageInstantGameSubscriptionManagementAdminMsgCta.react",["I64","LSFactory","LSIntEnum","LSUpdateBotSubscriptionStoredProcedure","MWAdminTextLayout.react","MWXLink.react","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react")),m=k.useCallback;function a(a){var b=a.message,e=a.shouldSubscribe,f=(h||(h=c("useReStore")))(),g=(i||(i=d("I64"))).to_string(b.threadKey),k=m(function(){var a=e?(j||(j=d("LSIntEnum"))).ofNumber(0):(j||(j=d("LSIntEnum"))).ofNumber(1);c("promiseDone")(f.runInTransaction(function(b){return c("LSUpdateBotSubscriptionStoredProcedure")(c("LSFactory")(b),{threadKey:(i||(i=d("I64"))).of_string(g),userActionType:a})},"readwrite"))},[f,g,e]);a=b.adminMsgCtaTitle!=null?l.jsx(c("MWXLink.react"),{onClick:function(){return k()},target:"_blank",children:b.adminMsgCtaTitle}):void 0;return l.jsx(c("MWAdminTextLayout.react"),{cta:a,message:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2AdminMsgArmadilloEphemeralChangeDuration.react",["MWAdminTextLayout.react","cr:7125","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.message;var d=a.adminMsgCtaTitle;d=d!=null&&b("cr:7125")!=null?i.jsx("div",{className:"xz94kzr x1rg5ohu xo1l8bm",children:i.jsx(b("cr:7125"),{threadKey:a.threadKey,title:d})}):null;return i.jsx(c("MWAdminTextLayout.react"),{cta:d,message:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("XPolarisDirectInboxControllerRouteBuilder",["jsExtraRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsExtraRouteBuilder")("/direct/inbox/",Object.freeze({initial_e2ee_toggle_position:!1,recurring_notification:!1}),["/direct/t/{?thread_key}/","/direct/{?subpage}/{?folder}/"],void 0);b=a;g["default"]=b}),98); __d("MWV2AdminMsgE2EECutoverRollback.react",["CurrentEnvironment","I64","MWAdminTextLayout.react","MWInboxRouteBuilder","MWXLink.react","ReQL","ReQLSuspense","WALoggerDeferred","XPolarisDirectInboxControllerRouteBuilder","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["Failed to generate the url, thread is missing in mi_act_mapping table for threadKey ",""]);k=function(){return a};return a}var l=j||d("react");function a(a){var b=a.message,e=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(e.table("mi_act_mapping_table")).getKeyRange(b.threadKey).map(function(a){return(i||(i=d("I64"))).to_string(a.jid)})},[e,b.threadKey],f.id+":39");a=a!=null?c("CurrentEnvironment").instagramdotcom?c("XPolarisDirectInboxControllerRouteBuilder").buildExtraURL("/direct/t/{?thread_key}/",{thread_key:a}):d("MWInboxRouteBuilder").buildURL({thread_key:a}):(d("WALoggerDeferred").LOG(k(),(i||(i=d("I64"))).to_string(b.threadKey)),d("MWInboxRouteBuilder").buildHomeURL());var g=d("ReQLSuspense").useFirst(function(){var a;return d("ReQL").fromTableAscending(e.table("admin_message_ctas")).getKeyRange(b.threadKey,b.messageId,(a=b.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},[e,b],f.id+":64");g=g==null?void 0:g.title;a=g!=null?l.jsx("div",{className:"xz94kzr x1rg5ohu xk50ysn",children:l.jsx(c("MWXLink.react"),{href:a,target:"_self",children:g})}):null;return l.jsx(c("MWAdminTextLayout.react"),{cta:a,message:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2AdminMsgE2EEDescription.react",["fbt","CurrentEnvironment","I64","JSResourceForInteraction","MDSLockSvgIcon.react","MWAdminTextLayout.react","MWXLink.react","ReQL","ReQLSuspense","XInstagramHelpDotComContentControllerRouteBuilder","react","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m=c("JSResourceForInteraction")("MAWLearnMoreCutoverDialog.react").__setRef("MWV2AdminMsgE2EEDescription.react"),n=h._("__JHASH__8YEBJluoCs5__JHASH__");function a(a){var b,e=a.message,g=(i||(i=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){var a;return d("ReQL").fromTableAscending(g.table("admin_message_ctas")).getKeyRange(e.threadKey,e.messageId,(a=e.adminMsgCtaId)!=null?a:(j||(j=d("I64"))).neg_one)},[g,e],f.id+":52");b=(b=c("XInstagramHelpDotComContentControllerRouteBuilder").buildUri({cms_id:"491565145294150"}).setDomain("help.instagram.com"))==null?void 0:(b=b.setProtocol("https"))==null?void 0:b.toString();var h={},k=c("useMWXLazyDialog")(m),o=k[0];k=function(){return o(h)};a=a==null?void 0:a.title;b=a!=null?c("CurrentEnvironment").instagramdotcom?l.jsx(c("MWXLink.react"),{href:b,target:"_blank",children:n}):l.jsx("div",{className:"xz94kzr x1rg5ohu xk50ysn",children:l.jsx(c("MWXLink.react"),{onClick:k,target:"_blank",children:a})}):null;return l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"x1o583il x1rg5ohu x177n6bx x1n2onr6",children:l.jsx(c("MDSLockSvgIcon.react"),{color:"tertiary",size:16})}),l.jsx(c("MWAdminTextLayout.react"),{cta:b,message:e})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWNotificationMessageManageNotificationsLazyDialogTrigger.react",["JSResourceForInteraction","emptyFunction","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;h||d("react");var i=c("JSResourceForInteraction")("MWNotificationMessagesManageNotificationsDialog.react").__setRef("MWNotificationMessageManageNotificationsLazyDialogTrigger.react");function a(a){var b=a.isOptOut,d=a.renderer,e=a.targetId;a=a.threadKey;var f={isOptOut:b,targetId:e,threadKey:a};b=c("useMWXLazyDialog")(i);var g=b[0];e=function(){return g(f,c("emptyFunction"))};return d(e)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWNotificationMessageManageNotificationsAdminMsgCta.react",["CometTextWithEntities.react","MWNotificationMessageManageNotificationsLazyDialogTrigger.react","MWXPressable.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.isOptOut,d=a.targetId,e=a.threadKey,f=a.title;a=function(a){return i.jsx(c("MWXPressable.react"),{onPress:function(){return a()},children:i.jsx(c("CometTextWithEntities.react"),{text:f})})};return i.jsx(c("MWNotificationMessageManageNotificationsLazyDialogTrigger.react"),{isOptOut:b,renderer:a,targetId:d,threadKey:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2AdminMsgNotificationMessageManageNotifications.react",["I64","MWAdminTextLayout.react","MWNotificationMessageManageNotificationsAdminMsgCta.react","ReQL","ReQLSuspense","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function a(a){var b=a.isOptOut,e=a.message,g=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){var a;return d("ReQL").fromTableAscending(g.table("admin_message_ctas")).getKeyRange(e.threadKey,e.messageId,(a=e.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},[g,e],f.id+":35");var j=e.adminMsgCtaTitle,l=a==null?void 0:a.targetId;a=j!=null&&a!=null&&l!=null?k.jsx("div",{className:"x1rg5ohu x1s688f",children:k.jsx(c("MWNotificationMessageManageNotificationsAdminMsgCta.react"),{isOptOut:b,targetId:l,threadKey:e.threadKey,title:j})}):null;return k.jsx(c("MWAdminTextLayout.react"),{cta:a,message:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("P2bDifferentiationPrivacyDisclosureOpenClickWebFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("3008");b=d("FalcoLoggerInternal").create("p2b_differentiation_privacy_disclosure_open_click_web",a);e=b;g["default"]=e}),98); __d("MWV2AdminMsgP2BPrivacyDisclosure.react",["I64","JSResourceForInteraction","MWAdminTextLayout.react","MWXLink.react","P2bDifferentiationPrivacyDisclosureOpenClickWebFalcoEvent","ReQL","ReQLSuspense","react","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l=c("JSResourceForInteraction")("MWPrivacyDisclosureDialog.react").__setRef("MWV2AdminMsgP2BPrivacyDisclosure.react");function a(a){var b=a.message,e=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){var a;return d("ReQL").fromTableAscending(e.table("admin_message_ctas")).getKeyRange(b.threadKey,b.messageId,(a=b.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},[e,b],f.id+":31");var g=c("useMWXLazyDialog")(l),j=g[0];g=a==null?void 0:a.title;a=g!=null?k.jsx(c("MWXLink.react"),{onClick:function(){j({entryPoint:"ADMIN_TEXT",threadKey:b.threadKey},function(){}),c("P2bDifferentiationPrivacyDisclosureOpenClickWebFalcoEvent").log(function(){return{consumer_id:"0",entry_point:"ADMIN_TEXT",page_id:(i||(i=d("I64"))).to_string(b.threadKey)}})},children:g}):null;return k.jsx(c("MWAdminTextLayout.react"),{cta:a,message:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2AdminMsgPostMessageRemoveActions.react",["C4GFalcoLoggerDeferred","I64","JSResourceForInteraction","MWAdminTextLayout.react","MWXLink.react","ReQL","ReQLSuspense","react","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react")),l=i.useCallback,m=c("JSResourceForInteraction")("MWCMAdmodRemoveMessageOtherActionsDialog.react").__setRef("MWV2AdminMsgPostMessageRemoveActions.react");function n(a){var b=a.senderId,e=a.threadKey;a=a.title;var f=c("useMWXLazyDialog")(m),g=f[0];f=l(function(){d("C4GFalcoLoggerDeferred").logC4GEngagementFalcoEvent({action:"tap",event:"message_removed_more_actions_sheet_rendered",surface:"thread_view",thread_id:(j||(j=d("I64"))).to_string(e)}),g({senderId:b,threadKey:e})},[g,b,e]);return k.jsx(c("MWXLink.react"),{color:"highlight",onClick:f,role:"button",children:a})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.message,e=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){var a;return d("ReQL").fromTableAscending(e.table("admin_message_ctas")).getKeyRange(b.threadKey,b.messageId,(a=b.adminMsgCtaId)!=null?a:(j||(j=d("I64"))).neg_one)},[e,b],f.id+":60");var g=a==null?void 0:a.title;a=a==null?void 0:a.actionUrl;var i=null;if(a!=null){a=new URL(a);i=a.searchParams.get("removed_msg_sender_id")}a=i!=null&&g!=null?k.jsx(n,{senderId:i,threadKey:b.threadKey,title:g}):null;return k.jsx(c("MWAdminTextLayout.react"),{cta:a,message:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2AdminMsgServiceBookingLegalDisclaimer.react",["I64","JSResourceForInteraction","MWAdminTextLayout.react","MWXLink.react","ReQL","ReQLSuspense","react","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l=c("JSResourceForInteraction")("MWPrivacyDisclosureDialog.react").__setRef("MWV2AdminMsgServiceBookingLegalDisclaimer.react");function a(a){var b=a.message,e=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){var a;return d("ReQL").fromTableAscending(e.table("admin_message_ctas")).getKeyRange(b.threadKey,b.messageId,(a=b.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},[e,b],f.id+":32");var g=c("useMWXLazyDialog")(l),j=g[0];g=a==null?void 0:a.title;a=g!=null?k.jsx(c("MWXLink.react"),{onClick:function(){return j({entryPoint:"ADMIN_TEXT",threadKey:b.threadKey},function(){})},children:g}):null;return k.jsx(c("MWAdminTextLayout.react"),{cta:a,message:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWAdminMsgCtaLink.react",["MWPColorUtils","MWXLink.react","react","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.children,e=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","xstyle"]);var f=c("useMWPThreadTheme")();f=f.threadTheme.fallbackColor;return i.jsx(c("MWXLink.react"),babelHelpers["extends"]({style:{color:d("MWPColorUtils").int64ToHex(f)},weight:"bold",xstyle:e},a,{children:b}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2AdminMsgShowPinnedMessages.react",["I64","JSResourceForInteraction","MWAdminMsgCtaLink.react","MWAdminTextLayout.react","MWPBumpEntityKey","ReQL","ReQLSuspense","react","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l=c("JSResourceForInteraction")("MWPinnedMessagesDialog.react").__setRef("MWV2AdminMsgShowPinnedMessages.react");function a(a){var b=a.message,e=(h||(h=c("useReStore")))();a=c("useMWXLazyDialog")(l);var g=a[0];a=d("ReQLSuspense").useFirst(function(){var a;return d("ReQL").fromTableAscending(e.table("admin_message_ctas")).getKeyRange(b.threadKey,b.messageId,(a=b.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},[e,b],f.id+":32");var j=function(){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw_pinned_messages","see_all_admin_msg_cta");return g({threadKey:b.threadKey},function(){})};a=a==null?void 0:a.title;j=a!=null?k.jsx(c("MWAdminMsgCtaLink.react"),{onClick:j,children:a}):null;return k.jsx(c("MWAdminTextLayout.react"),{cta:j,message:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2AdminMsgViewMessagesDualThreadCutover.react",["I64","LSFactory","LSIntEnum","LSPlatformWaitForTaskCompletion","LSVerifyThreadRowExistsStoredProcedure","MWAdminTextLayout.react","MWXLink.react","MWXText.react","ReQL","WALoggerDeferred","asyncToGeneratorRuntime","promiseDone","react","useAsyncReStore","useMWNavigation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[Dual-thread-cutover] Failed to navitage to open messages thread ",""]);k=function(){return a};return a}var l=h||(h=d("react")),m=h.useCallback;function a(a){var e=a.message,f=c("useAsyncReStore")(),g=c("useMWNavigation")();a=m(function(){c("promiseDone")(f,function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b,f=(b=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("mi_act_mapping_table")).getKeyRange(e.threadKey))))==null?void 0:b.jid;f&&(yield c("LSPlatformWaitForTaskCompletion")(a,function(a){return c("LSVerifyThreadRowExistsStoredProcedure")(c("LSFactory")(a),{syncGroup:(i||(i=d("LSIntEnum"))).ofNumber(1),threadKey:f,threadType:i.ofNumber(1)})},"readwrite"));b=f?yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("threads")).getKeyRange(f)):null;b?g.openTabOrInbox({clientThreadKey:b.clientThreadKey,threadKey:b.threadKey,threadType:b.threadType},"preCutoverThread"):void d("WALoggerDeferred").LOG(k(),(j||(j=d("I64"))).to_string(e.threadKey))});return function(b){return a.apply(this,arguments)}}())},[f,e.threadKey,g]);var h=e.adminMsgCtaTitle;a=h!=null?l.jsx(c("MWXLink.react"),{onClick:a,role:"button",children:l.jsx(c("MWXText.react"),{color:"blueLink",type:"body4",children:h})}):null;return l.jsx(c("MWAdminTextLayout.react"),{cta:a,message:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2AdminMsgWebUrl.react",["I64","MWAdminTextLayout.react","MWXLink.react","ReQL","ReQLSuspense","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function a(a){var b=a.message,e=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){var a;return d("ReQL").fromTableAscending(e.table("admin_message_ctas")).getKeyRange(b.threadKey,b.messageId,(a=b.adminMsgCtaId)!=null?a:(i||(i=d("I64"))).neg_one)},[e,b],f.id+":24");var g=a==null?void 0:a.title;a=a==null?void 0:a.actionUrl;a=g!=null&&a!=null?k.jsx(c("MWXLink.react"),{color:"primary",href:a,target:"_blank",children:g}):null;return k.jsx(c("MWAdminTextLayout.react"),{cta:a,message:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatAdminMessage.react",["MWAdminTextLayout.react","MWNotificationMessageInstantGameCustomUpdateMuteManagementAdminMsgCta.react","MWNotificationMessageInstantGameSubscriptionManagementAdminMsgCta.react","MWV2AdminMsgArmadilloEphemeralChangeDuration.react","MWV2AdminMsgE2EECutoverRollback.react","MWV2AdminMsgE2EEDescription.react","MWV2AdminMsgNotificationMessageManageNotifications.react","MWV2AdminMsgP2BPrivacyDisclosure.react","MWV2AdminMsgPostMessageRemoveActions.react","MWV2AdminMsgServiceBookingLegalDisclaimer.react","MWV2AdminMsgShowPinnedMessages.react","MWV2AdminMsgViewMessagesDualThreadCutover.react","MWV2AdminMsgWebUrl.react","MWXText.react","cr:6991","cr:6996","cr:6997","gkx","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={container:{paddingStart:"x5ib6vp",paddingLeft:null,paddingRight:null,paddingEnd:"xc73u3c",paddingTop:"xyamay9",paddingBottom:"x1l90r2v",$$css:!0},containerThatPrecedesAdminMessage:{paddingBottom:"x1a8lsjc",$$css:!0},containerThatProceedsAdminMessage:{paddingTop:"x889kno",$$css:!0},content:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",maxWidth:"x1ekjcvx",textAlign:"x2b8uid",wordBreak:"x13faqbe",$$css:!0}};function l(a){if(a!=null)return a.isAdminMessage;else return!1}function m(a){var b=a.children,d=a.nextMessage;a=a.prevMessage;return j.jsx("div",{className:(h||(h=c("stylex")))(k.container,l(a)?k.containerThatProceedsAdminMessage:!1,l(d)?k.containerThatPrecedesAdminMessage:!1),children:j.jsx("div",{className:"xr1yuqi xkrivgy x4ii5y1 x1gryazu x1ekjcvx x2b8uid x13faqbe",children:b})})}m.displayName=m.name+" [from "+f.id+"]";function n(a){var d=a.message;a.nextMessage;a.prevMessage;a=b("cr:6991")!=null&&b("cr:6997")!=null?b("cr:6991").buildLocalizedString([],[],b("cr:6997").CURRENT_USER_ADDED_DEVICE):"";a=d.text===a&&b("cr:6996")!=null?j.jsx(b("cr:6996"),{}):null;var e=d.adminMsgCtaType;if(e!=null)if(e==="admin_msg_armadillo_ephemeral_change_duration")return j.jsx(c("MWV2AdminMsgArmadilloEphemeralChangeDuration.react"),{message:d});else if(e==="admin_msg_dual_thread_cutover")return j.jsx(c("MWV2AdminMsgViewMessagesDualThreadCutover.react"),{message:d});else if(e==="admin_msg_web_url")return j.jsx(c("MWV2AdminMsgWebUrl.react"),{message:d});else if(e==="admin_msg_p2b_privacy_disclosure"&&c("gkx")("2386"))return j.jsx(c("MWV2AdminMsgP2BPrivacyDisclosure.react"),{message:d});else if(e==="admin_notification_messages_opt_out")return j.jsx(c("MWV2AdminMsgNotificationMessageManageNotifications.react"),{isOptOut:!0,message:d});else if(e==="admin_notification_messages_opt_in")return j.jsx(c("MWV2AdminMsgNotificationMessageManageNotifications.react"),{isOptOut:!1,message:d});else if(e==="admin_msg_thread_level_cutover")return j.jsx(c("MWV2AdminMsgE2EEDescription.react"),{message:d});else if(e==="admin_msg_e2ee_thread")return null;else if(e==="admin_msg_cutover_rollback")return j.jsx(c("MWV2AdminMsgE2EECutoverRollback.react"),{message:d});else if(e==="xmat_instant_game_bot_message_subscribe")return j.jsx(c("MWNotificationMessageInstantGameSubscriptionManagementAdminMsgCta.react"),{message:d,shouldSubscribe:!0});else if(e==="xmat_instant_game_bot_message_unsubscribe")return j.jsx(c("MWNotificationMessageInstantGameSubscriptionManagementAdminMsgCta.react"),{message:d,shouldSubscribe:!1});else if(e==="admin_msg_view_pin_msgs_v2")return j.jsx(c("MWV2AdminMsgShowPinnedMessages.react"),{message:d});else if(e==="xmat_instant_game_custom_update_message_mute")return j.jsx(c("MWNotificationMessageInstantGameCustomUpdateMuteManagementAdminMsgCta.react"),{message:d,shouldMute:!0});else if(e==="xmat_instant_game_custom_update_message_unmute")return j.jsx(c("MWNotificationMessageInstantGameCustomUpdateMuteManagementAdminMsgCta.react"),{message:d,shouldMute:!1});else if(e==="admin_message_service_booking_legal_disclaimer")return j.jsx(c("MWV2AdminMsgServiceBookingLegalDisclaimer.react"),{message:d});else if(e==="admin_msg_admod_post_msg_remove_actions")return j.jsx(c("MWV2AdminMsgPostMessageRemoveActions.react"),{message:d});else return j.jsxs("div",{children:[j.jsx(c("MWAdminTextLayout.react"),{message:d}),a]});return j.jsxs("div",{children:[j.jsx(c("MWAdminTextLayout.react"),{message:d}),a]})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.message,d=a.nextMessage;a=a.prevMessage;return j.jsx(m,{nextMessage:d,prevMessage:a,children:j.jsx(c("MWXText.react"),{color:"tertiary",type:"meta4",children:j.jsx(n,{message:b})})})}a.displayName=a.name+" [from "+f.id+"]";g.isAdminMessage=l;g.MWV2ChatAdminMessageContainer=m;g.MWV2ChatAdminMessage=a}),98); __d("MWV2MessageStartOfGroupContent.react",["I64","MWPDateBreak.react","MWPMessageListColumn.react","MWV2ChatAdminMessage.react","MWV2MessageRowSimple.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react");function k(a,b){if(b!=null)return(i||(i=d("I64"))).compare(i.abs(i.sub(a.timestampMs,b.timestampMs)),i.of_string("900000"))>0;else return!0}function l(a){var b=a.domElementRef,e=a.message,f=a.prevMessage;a=a.renderTextWrapper;if(k(e,f))return j.jsx(c("MWV2MessageRowSimple.react"),{domElementRef:b,children:j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:j.jsx(d("MWV2ChatAdminMessage.react").MWV2ChatAdminMessageContainer,{nextMessage:e,prevMessage:f,children:j.jsx(c("MWPDateBreak.react"),{renderTextWrapper:a,timestamp:(i||(i=d("I64"))).to_float(e.timestampMs)})})})});else return null}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.domElementRef,c=a.message,d=a.prevMessage;a=a.renderTextWrapper;return j.jsx(l,{domElementRef:b,message:c,prevMessage:d,renderTextWrapper:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWP2PPaymentTransactionInformationVerify",["JSResourceForInteraction","XP2PVerificationDialogBaseControllerRouteBuilder","gkx","nullthrows","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("CometCompatModal.react").__setRef("MWP2PPaymentTransactionInformationVerify")),b=a[0];a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("CometP2PPaymentIDVFlow.react").__setRef("MWP2PPaymentTransactionInformationVerify"));var d=a[0];return i(function(a){a=a.id;if(c("gkx")("94"))return d({transferId:c("nullthrows")(a)},function(){});else return b({params:{rel:"dialog-post",uri:c("XP2PVerificationDialogBaseControllerRouteBuilder").buildURL({id:c("nullthrows")(a),is_sender_flow:!1})}},function(){})},[b])}g.useP2PPaymentTransactionInformationVerify=a}),98); __d("useMWUICheckoutDialog",["FBP2MCheckoutDialog.entrypoint","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){return c("useMWXEntryPointDialog")(c("FBP2MCheckoutDialog.entrypoint"),{orderID:a,pageID:b})}g["default"]=a}),98); __d("useMWLSShowCheckout",["react","useMWUICheckoutDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useMemo,k=b.useState;function a(){var a=k(null),b=a[0],d=a[1];a=k("");var e=a[0],f=a[1];a=k(!1);var g=a[0],h=a[1];a=c("useMWUICheckoutDialog")(b);var l=a[0];i(function(){b!=null&&g&&l({orderID:b,pageID:e},function(){return h(!1)})},[b,e,g,l]);return j(function(){return function(a,b){h(function(){return!0});d(function(){return a});return f(function(){return b})}},[h,d])}g["default"]=a}),98); __d("useMWUIOffsiteBankTransferDialog",["P2MOffsiteBankTransferDialog.entrypoint","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return c("useMWXEntryPointDialog")(c("P2MOffsiteBankTransferDialog.entrypoint"),{orderID:a})}g["default"]=a}),98); __d("useMWLSShowOffsiteBankTransfer",["react","useMWUIOffsiteBankTransferDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useMemo,k=b.useState;function a(){var a=k(null),b=a[0],d=a[1];a=k(!1);var e=a[0],f=a[1];a=c("useMWUIOffsiteBankTransferDialog")(b);var g=a[0];i(function(){b!=null&&e&&g({orderID:b},function(){return f(!1)})},[b,e,g]);return j(function(){return function(a){f(function(){return!0});return d(function(){return a})}},[f,d])}g["default"]=a}),98); __d("useMWUIAttachBankSlipDialog",["P2MAttachBankSlipDialog.entrypoint","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return c("useMWXEntryPointDialog")(c("P2MAttachBankSlipDialog.entrypoint"),{orderID:a})}g["default"]=a}),98); __d("useMWLSShowAttachBankSlip",["react","useMWUIAttachBankSlipDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useMemo,k=b.useState;function a(){var a=k(null),b=a[0],d=a[1];a=k(!1);var e=a[0],f=a[1];a=c("useMWUIAttachBankSlipDialog")(b);var g=a[0];i(function(){b!=null&&e&&g({orderID:b},function(){return f(!1)})},[b,e,g]);return j(function(){return function(a){f(function(){return!0});return d(function(){return a})}},[f,d])}g["default"]=a}),98); __d("useMWUIOrderDetailsDialog",["P2MOrderDetailDialog.entrypoint","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return c("useMWXEntryPointDialog")(c("P2MOrderDetailDialog.entrypoint"),{orderID:a})}g["default"]=a}),98); __d("useMWLSShowOrderDetails",["react","useMWUIOrderDetailsDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useMemo,k=b.useState;function a(){var a=k(null),b=a[0],d=a[1];a=k(!1);var e=a[0],f=a[1];a=c("useMWUIOrderDetailsDialog")(b);var g=a[0];i(function(){b!=null&&e&&g({orderID:b},function(){return f(!1)})},[b,e,g]);return j(function(){return function(a){f(function(){return!0});return d(function(){return a})}},[f,d])}g["default"]=a}),98); __d("useMWUIPaymentDetailsDialog",["FBPayHubTransactionDetailDialog.entrypoint","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return c("useMWXEntryPointDialog")(c("FBPayHubTransactionDetailDialog.entrypoint"),{transactionID:a})}g["default"]=a}),98); __d("useMWLSShowPaymentDetails",["fbt","LSIntEnum","MWLSDatabaseLazySync","promiseDone","react","useMWUIPaymentDetailsDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j;b=i||d("react");var k=b.useEffect,l=b.useMemo,m=b.useState;function a(){var a=m(null),b=a[0],e=a[1];a=m(!1);var f=a[0],g=a[1];a=c("useMWUIPaymentDetailsDialog")(b);var i=a[0],n=d("MWLSDatabaseLazySync").useSync((j||(j=d("LSIntEnum"))).ofNumber(15));k(function(){b!=null&&f&&i({title:h._("__JHASH__NIyxBo8HYXZ__JHASH__"),transactionID:b},function(){return g(!1)})},[b,f,i]);return l(function(){return function(a){c("promiseDone")(n());g(function(){return!0});return e(function(){return a})}},[g,e,n])}g["default"]=a}),98); __d("useMWP2PPaymentRequestCancelDialog",["JSResourceForInteraction","emptyFunction","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatComposerP2PPaymentRequestCancelDialog.react").__setRef("useMWP2PPaymentRequestCancelDialog")),b=a[0];return i(function(a){a!=null&&b({id:a},c("emptyFunction"))},[b])}g["default"]=a}),98); __d("useMWP2PPaymentTransactionDeclineDialog",["JSResourceForInteraction","emptyFunction","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatComposerP2PPaymentTransactionDeclineDialog.react").__setRef("useMWP2PPaymentTransactionDeclineDialog")),b=a[0];return i(function(a){a!=null&&b({id:a},c("emptyFunction"))},[b])}g["default"]=a}),98); __d("useP2PPaymentMethodAddDialog",["JSResourceForInteraction","emptyFunction","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatComposerP2PPaymentMethodAddDialog.react").__setRef("useP2PPaymentMethodAddDialog")),b=a[0];return i(function(a){a!=null&&b({id:a},c("emptyFunction"))},[b])}g["default"]=a}),98); __d("useP2PPaymentRequestConfirmDialog",["JSResourceForInteraction","emptyFunction","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatComposerP2PPaymentRequestConfirmDialog.react").__setRef("useP2PPaymentRequestConfirmDialog")),b=a[0];return i(function(a){a!=null&&b({id:a},c("emptyFunction"))},[b])}g["default"]=a}),98); __d("useP2PPaymentRequestDeclineDialog",["JSResourceForInteraction","emptyFunction","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatComposerP2PPaymentRequestDeclineDialog.react").__setRef("useP2PPaymentRequestDeclineDialog")),b=a[0];return i(function(a){a!=null&&b({id:a},c("emptyFunction"))},[b])}g["default"]=a}),98); __d("PiiActionFlowFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1744182");b=d("FalcoLoggerInternal").create("pii_action_flow",a);e=b;g["default"]=e}),98); __d("MWChatPIIFormNuxQuery",["CometRelay","MWChatPIIFormNuxQuery.graphql","PiiActionFlowFalcoEvent","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a,b,e,f){a=d("CometRelay").fetchQuery(a,j,{}).toPromise().then(function(a){if(a){c("PiiActionFlowFalcoEvent").log(function(){return{event_name:"pii_initial_query_success",extra_data:"",form_id:b,page_id:e}});if(a.messenger_pii_nux==null)f({description:"",seen:!0,title:"",url:"",url_text:""});else{var d;f({description:(d=a.messenger_pii_nux.description)!=null?d:"",seen:!1,title:(d=a.messenger_pii_nux.title)!=null?d:"",url:(d=a.messenger_pii_nux.url)!=null?d:"",url_text:(d=a.messenger_pii_nux.url_text)!=null?d:""})}}},function(a){c("PiiActionFlowFalcoEvent").log(function(){return{event_name:"pii_initial_query_failure",extra_data:a.message,form_id:b,page_id:e}})});c("promiseDone")(a)},j=h!==void 0?h:h=b("MWChatPIIFormNuxQuery.graphql");a=function(a,b,c,d){i(a,b,c,function(a){return d(a)})};g.fetch=a}),98); __d("MWChatPIIFormScreenQuery",["CometRelay","MWChatPIIFormScreenQuery.graphql","PiiActionFlowFalcoEvent","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a,b,e,f,g){f=d("CometRelay").fetchQuery(f,j,{formID:a,screenIndex:e}).toPromise().then(function(d){if(d){d=d.messenger_pii_form_single_screen.screen;var e=d.questions.map(function(a){return{format:a.format,id:a.id,length:a.length,mask:a.mask,placeholder:a.placeholder,subtitle:a.subtitle,title:a.title,type:a.type}}),f={question_list_size:d.questions.length};c("PiiActionFlowFalcoEvent").log(function(){return{event_name:"pii_single_page_query_success",extra_data:JSON.stringify(f),form_id:a,page_id:b}});g({questions:e,screen_title:d.screen_title})}},function(d){c("PiiActionFlowFalcoEvent").log(function(){return{event_name:"pii_single_page_query_failure",extra_data:d.message,form_id:a,page_id:b}})});c("promiseDone")(f)},j=h!==void 0?h:h=b("MWChatPIIFormScreenQuery.graphql");a=function(a,b,c,d,e){i(a,b,c,d,function(a){return e(a)})};g.fetch=a}),98); __d("MWChatPIIFormStateQuery",["CometRelay","MWChatPIIFormStateQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=function(a,b,e){b=d("CometRelay").fetchQuery(b,j,{formID:a}).toPromise().then(function(a){a&&e(a.messenger_pii_form_state.state)});c("promiseDone")(b)},j=h!==void 0?h:h=b("MWChatPIIFormStateQuery.graphql");a=function(a,b,c){i(a,b,function(a){return c(a)})};g.fetch=a}),98); __d("MWPreloadedText",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=(h||d("react")).createContext;b=a({text:null});g["default"]=b}),98); __d("getOrRequestMWChatPresenceStatusForContactId",["requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("MessengerMQTTPresence").__setRef("getOrRequestMWChatPresenceStatusForContactId");function a(a,b){var c=a.getStatus(b);a=a.getChatVisibility();if(c!=null||!a)return c;h.onReady(function(a){return a.sendAdditionalBuddyRequest(b)})}g["default"]=a}),98); __d("useMWChatHasActiveContact",["I64","PresenceStatusContext","getOrRequestMWChatPresenceStatusForContactId","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useContext,k=b.useMemo;function a(a){var b=j(c("PresenceStatusContext")),e=k(function(){return a.map((i||(i=d("I64"))).to_string)},[a]);return e.some(function(a){a=c("getOrRequestMWChatPresenceStatusForContactId")(b,a);if(a==null)return!1;a=a.status;return a===2})}g.useMWChatHasActiveContact=a}),98); __d("MWChatReceiptDataQuery",["CometRelay","CometRelayEnvironment","MWChatReceiptDataQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(a,b,e){c("promiseDone")(d("CometRelay").fetchQuery(c("CometRelayEnvironment"),i,{messageID:b,receiptID:a}).toPromise().then(function(a){if((a==null?void 0:a.receipt_data)!=null){a=a.receipt_data;var b=a.items?a.items.map(function(a){return{description:a.description,name:a.name,price:a.price,quantity:a.quantity,thumb_url:a.thumb_url}}):[],c=a.adjustments?a.adjustments.map(function(a){return{adjustment_type:a.adjustment_type,display_adjustment_amount:a.display_adjustment_amount}}):[];e({address_line_1:a.address_line_1,address_line_2:a.address_line_2,address_line_3:a.address_line_3,adjustments:c,cancellation_url:a.cancellation_url,items:b,merchant_name:a.merchant_name,order_id:a.order_id,order_time:a.order_time,order_url:a.order_url,payment_method:a.payment_method,recipient_name:a.recipient_name,shipping_cost:a.shipping_cost,subtotal:a.subtotal,total_cost:a.total_cost,total_tax:a.total_tax})}}))};var i=h!==void 0?h:h=b("MWChatReceiptDataQuery.graphql");g.fetch=a}),98); __d("MWRollCallTimerPill.react",["fbt","I64","MWXText.react","react","useInterval"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||(i=d("react"));b=i;var l=b.useMemo,m=b.useState;function n(a){var b=1e3,c=b*60,d=c*60,e=d*24;a=a;var f=Math.floor(a/e);a-=f*e;e=Math.floor(a/d);a-=e*d;d=Math.floor(a/c);a-=d*c;c=Math.floor(a/b);a-=c*b;return{days:f,hours:e,minutes:d,seconds:c}}function a(a){var b=a.attachment;a=l(function(){var a;return(j||(j=d("I64"))).to_float((a=b.countdownTimestampMs)!=null?a:(j||(j=d("I64"))).zero)},[b.countdownTimestampMs]);var e=m(Date.now()),f=e[0],g=e[1];e=f>a;c("useInterval")(function(){g(Date.now())},e?6e4:1e3,[g]);if(!e){e=n(a-f);var i=e.minutes;e=e.seconds;i=("0"+i).slice(-2)+":"+("0"+e).slice(-2)}else if(b.cta1Type==="xma_roll_call_open_viewer")i=h._("__JHASH__iEcmesFoHMR__JHASH__");else{e=n(f-a);f=e.days;a=e.hours;e=e.minutes;f>30?i=h._("__JHASH__FgpGUEY9N0G__JHASH__"):f>0?i=h._("__JHASH__UZjF4IaHC-f__JHASH__",[h._param("days",f)]):a>0?i=h._("__JHASH__4LZO7x78s0P__JHASH__",[h._param("hours",a)]):i=h._("__JHASH__JXYYWJwIx9x__JHASH__",[h._param("minutes",Math.max(1,e))])}return k.jsx("div",{className:"x1h0vfkc x1a2cdl4 xnhgr82 x1qt0ttw xgk8upj x9f619 x78zum5 xdt5ytf x1qx5ct2 xl56j7k xkrivgy x1gryazu x1sxyh0 xurb0ha xeq5yr9",children:k.jsx(c("MWXText.react"),{numberOfLines:1,type:"meta4",children:i})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRollCallXMAAttachmentItem.react",["BaseImage.react","MWXImage.react","MWXText.react","gkx","isStringNullOrEmpty","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=160,l=213,m={avatar:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",$$css:!0},card:{borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",filter:"xa5fk4t",height:"x1xx6w2s",overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"xq1dxzn",$$css:!0},media:{backgroundColor:"xwcfey6",backgroundPosition:"x1xsqp64",backgroundSize:"x18d0r48",borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",objectFit:"xl1xv1r",$$css:!0},textCard:{backgroundColor:"x9bbmet",display:"x78zum5",flexDirection:"xdt5ytf",paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",$$css:!0},timestamp:{flexShrink:"x2lah0s",paddingBottom:"x84yb8i",$$css:!0},titleText:{flexGrow:"x1iyjqo2",paddingEnd:"x1pi30zi",paddingLeft:null,paddingRight:null,paddingTop:"xyamay9",paddingBottom:"x1l90r2v",$$css:!0}};function a(a){a=a.attachmentItem;var b=a.faviconUrl,d=a.playableUrl,e=a.previewUrl,f=a.subtitleText;a=a.titleText;if(!c("isStringNullOrEmpty")(d))return j.jsx("div",{className:"xfh8nwu xoqspk4 x12v9rci x138vmkv xa5fk4t x1xx6w2s x6ikm8r x10wlt62 xq1dxzn",children:j.jsx("video",{className:"xwcfey6 x1xsqp64 x18d0r48 xfh8nwu xoqspk4 x12v9rci x138vmkv xl1xv1r",height:l,muted:!0,src:d,width:k})});else if(!c("isStringNullOrEmpty")(e))return j.jsx("div",{className:"xfh8nwu xoqspk4 x12v9rci x138vmkv xa5fk4t x1xx6w2s x6ikm8r x10wlt62 xq1dxzn",children:j.jsx(c("BaseImage.react"),{height:l,src:e,width:k,xstyle:m.media})});else if(c("gkx")("9992")&&!c("isStringNullOrEmpty")(a)&&!c("isStringNullOrEmpty")(b))return j.jsxs("div",{className:"xfh8nwu xoqspk4 x12v9rci x138vmkv xa5fk4t x1xx6w2s x6ikm8r x10wlt62 xq1dxzn x9bbmet x78zum5 xdt5ytf xz9dl7a xn6708d xsag5q8 x1ye3gou",children:[j.jsx(c("MWXImage.react"),{height:24,src:b,width:24,xstyle:m.avatar}),j.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).spread(m.titleText),{children:j.jsx(c("MWXText.react"),{numberOfLines:6,type:"entityHeaderMeta3",children:a})})),c("isStringNullOrEmpty")(f)?null:j.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).spread(m.timestamp),{children:j.jsx(c("MWXText.react"),{type:"body4",children:f})}))]});return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRollcallContributionsDialogContainer.react",["CometHideLayerOnEscape.react","CometTheme.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.children,d=a.onClose;a=a.visibilityRef;return i.jsx(c("CometHideLayerOnEscape.react"),{onHide:d,children:i.jsx("div",{className:"x1qjc9v5 xal61yo x9f619 x78zum5 xdt5ytf x1iyjqo2 x5yr21d x1n2onr6 x87ps6o x1uvtmcs",ref:a,children:i.jsx(c("CometTheme.react"),{style:{display:"contents"},theme:"dark",children:b})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRollcallContributionsDialogFallback.react",["fbt","ix","MDSColumn.react","MDSColumnItem.react","MDSGlimmer.react","MDSRow.react","MDSRowItem.react","MWRollcallContributionsDialogContainer.react","MWXIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");function a(a){var b;a=a.onClose;return k.jsxs(c("MWRollcallContributionsDialogContainer.react"),{onClose:a,children:[k.jsxs(c("MDSRow.react"),{paddingHorizontal:16,paddingVertical:16,spacing:0,verticalAlign:"center",children:[k.jsx(b=c("MDSRowItem.react"),{children:k.jsx(c("MWXIcon.react"),{"aria-label":h._("__JHASH__l-5nlfLCheV__JHASH__"),icon:d("fbicon")._(i("478232"),16),onPress:a,size:20})}),k.jsx(b,{children:k.jsx(a=c("MDSGlimmer.react"),{index:0,xstyle:l.rollcallTitle})}),k.jsx(b,{children:k.jsx(c("MWXIcon.react"),{"aria-label":h._("__JHASH__LLSQ7_q3mOX__JHASH__"),disabled:!0,icon:d("fbicon")._(i("816819"),16),size:20})})]}),k.jsx(c("MDSColumn.react"),{align:"center",expanding:!0,paddingVertical:20,spacing:20,verticalAlign:"center",children:k.jsxs(c("MDSColumnItem.react"),{children:[k.jsxs(c("MDSRow.react"),{align:"start",paddingHorizontal:0,paddingVertical:12,spacing:8,verticalAlign:"center",xstyle:l.contributionHeader,children:[k.jsx(b,{children:k.jsx(a,{index:0,xstyle:l.profilePicture})}),k.jsx(b,{children:k.jsx(a,{index:0,xstyle:l.profileName})})]}),k.jsx(a,{index:0,xstyle:l.contributionMedia})]})})]})}a.displayName=a.name+" [from "+f.id+"]";var l={contributionHeader:{width:"x1cvmir6",$$css:!0},contributionMedia:{borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",height:"xuo6tqj",marginBottom:"x1e56ztr",width:"x1cvmir6",$$css:!0},profileName:{borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",height:"x1qx5ct2",width:"x1oysuqx",$$css:!0},profilePicture:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"x10w6t97",width:"x1td3qas",$$css:!0},rollcallTitle:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x10w6t97",width:"xdzyupr",$$css:!0}};g["default"]=a}),98); __d("RollcallXmaCtaClickQplLogging",["QPLUserFlow","qpl"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("QPLUserFlow").endSuccess(c("qpl")._(127406705,"1680"))}function b(){c("QPLUserFlow").endFailure(c("qpl")._(127406705,"1680"),"fail to load roll call information")}function d(a,b,d){c("QPLUserFlow").start(c("qpl")._(127406705,"1680"),{annotations:{string:{cta_title:d,entry_point:a,source_type:b}}})}g.endSuccessXMACtaClickQplLogging=a;g.endFailureXMACtaClickQplLogging=b;g.startXMACtaClickQplLogging=d}),98); __d("RollcallXmaViewerQplLogging",["QPLUserFlow","qpl"],(function(a,b,c,d,e,f,g){"use strict";function a(){c("QPLUserFlow").endSuccess(c("qpl")._(127403136,"1137"))}function b(){c("QPLUserFlow").endFailure(c("qpl")._(127403136,"1137"),"error while doing actions in Rollcall viewer.")}function d(a,b,d){c("QPLUserFlow").start(c("qpl")._(127403136,"1137"),{annotations:{bool:{is_viewer_contribute:b},"int":{total_media_items:a},string:{source_type:d}}})}function e(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"added_reaction")}function f(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"unsend_contribution")}function h(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"reset_prompt")}function i(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"report_prompt")}function j(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"report_contribution")}function k(){c("QPLUserFlow").addPoint(c("qpl")._(127403136,"1137"),"reply_contribution")}g.endSuccessXMARollCallViewerQplLogging=a;g.endFailureXMARollCallViewerQplLogging=b;g.startXMARollCallViewerQplLogging=d;g.addReactionRollCallViewerQplPoint=e;g.unsendContributionRollCallViewerQplPoint=f;g.resetPromptRollCallViewerQplPoint=h;g.reportPromptRollCallViewerQplPoint=i;g.reportContributionRollCallViewerQplPoint=j;g.replyContributionRollCallViewerQplPoint=k}),98); __d("useRollcallContributionsXMAActionHandler",["CometRelay","I64","JSResourceForInteraction","MWCMIsAnyCMThread","MWDidQueryPromptsNux","MWLSThread","MWRollcallContributionsDialogFallback.react","RollcallXmaCtaClickQplLogging","RollcallXmaViewerQplLogging","promiseDone","react","useMWXLazyDialog","usePrevious","useRollcallContributionsXMAActionHandlerQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react"));e=i;var l=e.useCallback,m=e.useEffect,n=e.useState;function o(){var a=d("CometRelay").useRelayEnvironment();return function(){return d("CometRelay").fetchQuery(a,h!==void 0?h:h=b("useRollcallContributionsXMAActionHandlerQuery.graphql"),{}).toPromise()}}function a(){var a=n((j||(j=d("I64"))).zero),b=a[0],e=a[1];a=n(j.zero);var f=a[0],g=a[1];a=n(null);var h=a[0],i=a[1];a=n(null);var p=a[0],q=a[1],r=c("usePrevious")(b),s=c("usePrevious")(f);a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWRollcallContributionsDialog.react").__setRef("useRollcallContributionsXMAActionHandler"),function(a){return k.jsx(c("MWRollcallContributionsDialogFallback.react"),{onClose:a})});var t=a[0];a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWCommunityMessagingPromptsNUXQuickPromotion.react").__setRef("useRollcallContributionsXMAActionHandler"));var u=a[0],v=o(),w=d("MWLSThread").useThread(b,function(a){return c("MWCMIsAnyCMThread")(a.threadType)});m(function(){w!=null&&!(j||(j=d("I64"))).is_zero(b)&&!(j||(j=d("I64"))).is_zero(f)&&r!==b&&s!==f&&(d("RollcallXmaCtaClickQplLogging").startXMACtaClickQplLogging("xma_www_button",w?"cm_thread":"friends_family_thread","open_viewer"),d("MWDidQueryPromptsNux").getDidQueryPromptsNux()||d("MWDidQueryPromptsNux").markDidQueryPromptsNux(),t({ctaType:p,rollCallId:f,scrollToContributionMessageId:h,threadKey:b},function(){d("RollcallXmaViewerQplLogging").endSuccessXMARollCallViewerQplLogging(),e((j||(j=d("I64"))).zero),g(j.zero),i(null)}),c("promiseDone")(v(),function(a){a=a==null?void 0:(a=a.viewer)==null?void 0:(a=a.eligible_promotions)==null?void 0:(a=a.nodes)==null?void 0:(a=a.find(function(a){return((a=a.comet_qp_sections)==null?void 0:a.renderer_strategy)!=null}))==null?void 0:(a=a.comet_qp_sections)==null?void 0:a.renderer_strategy;a&&u({asCreator:!1,rendererStrategy:a})}))},[w,s,r,f,t,b,h,v,u,p]);return l(function(a,b,c,d){e(b),g(a),i(c),q(d)},[])}g.useRollcallContributionsXMAActionHandler=a}),98); __d("logCallAttemptViaLocalhost",["MessengerDesktopDeeplinkEventFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.funnelSessionId;c("MessengerDesktopDeeplinkEventFalcoEvent").logImmediately(function(){return{event:"attempt_localhost_deeplink",eventLocation:"browser",eventType:"call",funnelSessionId:b,mobile_app_source:"unknown"}})}g["default"]=a}),98); __d("MWStartRTCCallUtils",["I64","Int64Hooks","LSContactBitOffset","LSContactBlockedByViewerStatus","LSContactType","LSIntEnum","LSMessagingThreadTypeUtil","LSThreadBitOffset","MWChatIsMessageRequest","MWPActor.react","MessengerDesktopDeepLinkUtils","MessengerDesktopLocalServerRequest","ODS","Promise","ReQL","ReQLSuspense","ZenonRTWebBrowserFeatureSupport","gkx","isFeatureLimitEnabled","logCallAttemptViaLocalhost","promiseDone","react","useIsReadOnlyFeatureLimitedWithThreadType","useReStore","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n=j||d("react"),o=n.useCallback,p=n.useRef;function a(a){var e=p(c("uuidv4")()).current;return o(function(f,g,h){var j="/call?threadid="+g+"&isvideocall="+(f?1:0)+"&funnel_id="+e;(m||(m=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","initiating_dapp_call");c("logCallAttemptViaLocalhost")({funnelSessionId:e});c("promiseDone")((i||(i=b("Promise"))).all([new(c("MessengerDesktopLocalServerRequest"))(j,d("MessengerDesktopDeepLinkUtils").PORT).setOnLoadEndHandler(function(){}).setErrorHandler(function(b){(m||(m=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","call_failed_with_error_"+b),a(f,g,h)}).setTimeoutHandler(function(){(m||(m=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","call_timed_out"),a(f,g,h)}).send()]))},[a,e])}function e(a,e,f){var g=p(c("uuidv4")()).current;return d("Int64Hooks").useCallbackInt64(function(h){var j=(k||(k=d("I64"))).to_string(a),l=e==="video"?1:0;j="/call?threadid="+j+"&isvideocall="+l+"&funnel_id="+g;(m||(m=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","initiating_dapp_call");c("logCallAttemptViaLocalhost")({funnelSessionId:g});c("promiseDone")((i||(i=b("Promise"))).all([new(c("MessengerDesktopLocalServerRequest"))(j,d("MessengerDesktopDeepLinkUtils").PORT).setOnLoadEndHandler(function(){}).setErrorHandler(function(a){(m||(m=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","call_failed_with_error_"+a),f(h)}).setTimeoutHandler(function(){(m||(m=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","call_timed_out"),f(h)}).send()]))},[e,g,a,f])}function q(a,b,e){a=r(a);var f,g=!1;if(a.length!==1)f=!1;else{var h,i=a[0];b=d("LSMessagingThreadTypeUtil").isOneToOne(b)&&i!=null&&!(k||(k=d("I64"))).equal(i.blockedByViewerStatus,(l||(l=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED));if(b)return[!1,!1];f=i!=null?(k||(k=d("I64"))).equal(i.contactType,(l||(l=d("LSIntEnum"))).ofNumber(c("LSContactType").PAGE)):!1;b=i!=null?(b=d("LSContactBitOffset").has(0,i))!=null?b:!0:!0;h=i!=null?(h=d("LSContactBitOffset").has(1,i))!=null?h:!0:!0;g=e&&i!=null&&i.blockedSinceTimestampMs==null&&!f&&(!b||!h)}if(!f)return[!g,!g];return c("gkx")("1710932")?[a.every(function(a){return a==null?!0:d("LSContactBitOffset").has(17,a)}),a.every(function(a){return a==null?!0:d("LSContactBitOffset").has(16,a)})]:[!1,!1]}function r(a){var b=(h||(h=c("useReStore")))(),e=d("MWPActor.react").useActor();return d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(b.table("participants"),["contactId"]).getKeyRange(a).take(2).filter(function(a){return!(k||(k=d("I64"))).equal(a.contactId,e)}).map(function(a){return d("ReQLSuspense").first(d("ReQL").fromTableAscending(b.table("contacts"),["contactType","blockedSinceTimestampMs","capabilities","capabilities2","blockedByViewerStatus"]).getKeyRange(a.contactId),f.id+":279")})},[b,a,e],f.id+":268")}function s(a){var b=a.folderName,e=a.threadKey,g=a.threadType,i=(h||(h=c("useReStore")))(),j=d("MWPActor.react").useActor(),m=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableDescending(i.table("messages_ranges_v2__generated"),["threadKey"]).getKeyRange(e)},[i,e],f.id+":300")!=null,n=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(i.table("participants"),["threadKey","contactId"]).getKeyRange(e,j)},[i,e,j],f.id+":309")!=null,o=d("LSThreadBitOffset").has(25,a),p=d("LSThreadBitOffset").has(24,a),r=d("LSMessagingThreadTypeUtil").isSecure(g),s=c("useIsReadOnlyFeatureLimitedWithThreadType")(g)&&(!r||c("isFeatureLimitEnabled")());a=q(e,a.threadType,r);var t=a[0];a=a[1];if(r&&(!d("ZenonRTWebBrowserFeatureSupport").isInsertableStreamsSupported()||!c("gkx")("5709")))return[!1,!1];r=((k||(k=d("I64"))).equal(g,(l||(l=d("LSIntEnum"))).ofNumber(2))||(k||(k=d("I64"))).equal(g,(l||(l=d("LSIntEnum"))).ofNumber(16)))&&n||(k||(k=d("I64"))).equal(g,(l||(l=d("LSIntEnum"))).ofNumber(1))||(k||(k=d("I64"))).equal(g,(l||(l=d("LSIntEnum"))).ofNumber(15));n=d("MWChatIsMessageRequest").fn(b);g=!n&&m&&!s&&r;return g?[t&&o,a&&p]:[!1,!1]}g.useStartDesktopCall=a;g.useStartMessengerDesktopCall=e;g.useCanCall=s}),98); __d("useShouldTryWithMessengerDesktop",["MWFacebookUserWithoutMessengerAccess","MessengerDesktopDeepLinkUtils","ODS","gkx","promiseDone","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.useRef,l=b.useState;function a(){var a=l(!1),b=a[0],e=a[1],f=k(!1),g=d("MWFacebookUserWithoutMessengerAccess").useIsFacebookUserWithoutMessengerAccess();j(function(){if(f.current)return;f.current=!0;if(g)return;if(c("gkx")("1987549")||!d("MessengerDesktopDeepLinkUtils").isMessengerDesktopDeeplinkEligible())return;(i||(i=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","is_dapp_running");c("promiseDone")(d("MessengerDesktopDeepLinkUtils").isMessengerDesktopRunning(d("MessengerDesktopDeepLinkUtils").PORT).then(function(a){if(!a||a!==200){a||(i||(i=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","localhost_did_not_respond");a===500&&(i||(i=d("ODS"))).bumpEntityKey(3303,"dapp_calling_entrypoints","localhost_responded_but_crashed");return}e(!0)}))});return b}g["default"]=a}),98); __d("useStartRTCCall",["MWLSStartPhoneCall","MWStartRTCCallUtils","useShouldTryWithMessengerDesktop"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("useShouldTryWithMessengerDesktop")(),b=d("MWLSStartPhoneCall").useMakeRTCCall();b=b[0];var e=d("MWStartRTCCallUtils").useStartDesktopCall(b);return a?e:b}g["default"]=a}),98); __d("MWChatGutterItem.react",["MWChatSingleSeenHead.react","MWLSThreadDisplayContext","MWMessageDeliveryStatus","MWMessageDeliveryStatusIcons","MWTheme.react","MWXTooltip.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={icon:{display:"x78zum5",flexShrink:"x2lah0s",height:"x1v9usgg",marginEnd:"xw3qccf",marginLeft:null,marginRight:null,marginStart:"xsgj6o6",userSelect:"x87ps6o",verticalAlign:"x11njtxf",width:"x6jxa94",$$css:!0},incoming:{flexDirection:"x15zctf7",$$css:!0},mask:{backgroundColor:"xcrg951",$$css:!0},noneStatus:{flexShrink:"x2lah0s",width:"x17z2i9w",$$css:!0},root:{alignItems:"xuk3077",display:"x78zum5",$$css:!0},singleSeenHead:{marginEnd:"xw3qccf",marginLeft:null,marginRight:null,marginStart:"xsgj6o6",$$css:!0}};function l(a){var b=a.iconStyle,d=a.status;a=a.tooltipText;b=[k.icon,b];switch(d.type){case"Sending":return j.jsx(c("MWMessageDeliveryStatusIcons").SendingIcon,{size:12,xstyle:b});case"Sent":return j.jsx(c("MWMessageDeliveryStatusIcons").SentIcon,{size:12,xstyle:b});case"Delivered":return j.jsx(c("MWMessageDeliveryStatusIcons").DeliveredIcon,{size:12,xstyle:b});case"Error":return j.jsx(c("MWMessageDeliveryStatusIcons").ErrorIcon,{size:12,title:a.toString(),xstyle:k.icon})}return null}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b=a.title,d=a.status;a=babelHelpers.objectWithoutPropertiesLoose(a,["title","status"]);switch(d.type){case"NoneStatus":return j.jsx("div",{className:"x2lah0s x17z2i9w"});case"SingleSeenHead":return j.jsx(c("MWChatSingleSeenHead.react"),{altText:b,head:d.head,xstyle:k.singleSeenHead});case"DeliveredAndRead":return j.jsx(c("MWMessageDeliveryStatusIcons").DeliveredAndReadIcon,{size:12,xstyle:k.icon});case"MultipleSeenHeads":case"SeenCount":case"Loading":case"RetriableError":return null}return j.jsx("div",{children:j.jsx(l,babelHelpers["extends"]({},a,{status:d}))})}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b=a.tooltipText,e=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();return b!==""?j.jsx(c("MWXTooltip.react"),{align:e==="Inbox"?"middle":"end",position:"above",tooltip:b,children:j.jsx(m,babelHelpers["extends"]({},a))}):j.jsx(m,babelHelpers["extends"]({},a))}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.errorMessage,e=a.hasRepliedToMessage;e=e===void 0?!1:e;var f=a.iconStyle,g=a.id;g=g===void 0?"":g;var i=a.incoming;i=i===void 0?!1:i;var l=a.status;a=a.xstyle;a=a===void 0?!1:a;var m=d("MWTheme.react").useTheme();m=d("MWTheme.react").isGradient(m);var o=d("MWMessageDeliveryStatus").getStatusTitle(l);b=l.type==="Error"&&b!=null?b:o;return j.jsx("div",{className:(h||(h=c("stylex")))(k.root,m&&!e?k.mask:!1,i?k.incoming:!1,a),"data-testid":void 0,id:g,role:"none",children:j.jsx(n,{iconStyle:f,status:l,title:o,tooltipText:b})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWLSOpenStaticLocationDialog.react",["I64","JSResourceForInteraction","MWThreadKey.react","Promise","ReQL","ReQLSuspense","promiseDone","react","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=(k||d("react")).useCallback;function a(){var a=(i||(i=c("useReStore")))(),e=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),g=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatStaticLocationDialog.react").__setRef("useMWLSOpenStaticLocationDialog.react")),k=g[0];return l(function(g){c("promiseDone")(d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("attachments")).getKeyRange(e,g).map(function(b){b=b.defaultCtaId;b=b!=null?b:(j||(j=d("I64"))).zero;b=d("ReQLSuspense").first(d("ReQL").fromTableAscending(a.table("attachment_ctas")).getKeyRange(b),f.id+":45");if(b!=null)return b.nativeUrl})).then(function(a){a=(a=a)!=null?a:"";a=a.split(",");var c=a[0];a=a[1];k({latitude:c,longitude:a},function(){});return(h||(h=b("Promise"))).resolve()}))},[a,e,k])}g["default"]=a}),98); __d("MWChatImageSize",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useRef,k=b.useState;function a(a,b,c){var d=b!=null?b:!1,e=j();c=k();b=c[0];var f=c[1];i(function(){if(a==null)return;if(e.current==null&&!d){var b=new Image();b.src=a;b.onload=function(){return f({height:b.naturalHeight,width:b.naturalWidth})};e.current=b}return function(){f(function(){});var a=e.current;if(a==null)return;a.onload=null}},[a,d,f]);return b}g.useImageSize=a}),98); __d("MessengerDefaultTheme",["CurrentEnvironment","I64"],(function(a,b,c,d,e,f,g){"use strict";var h;a={color:c("CurrentEnvironment").messengerdotcom?"#0099FF":"#0084FF",id:(h||(h=d("I64"))).of_string("196241301102133"),label:"Default Blue",type:"solid"};g["default"]=a}),98); __d("MWChatFilePreProcessingErrorDialog.react",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";a={body:h._("__JHASH__rp1B2ks3qwV__JHASH__"),title:h._("__JHASH__Tgh_5naYWqz__JHASH__")};g.invalidFileFormat=a}),98); __d("MWChatFileUploadErrorDialog.react",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";a=function(a){return{body:h._("__JHASH__Tr8urrZ1rc1__JHASH__",[h._param("size",a)]),title:h._("__JHASH__GVmFuh2jycz__JHASH__")}};g.maxFileSizeExceeded=a}),98); __d("useMWLSShowMemberRequest",["GroupsCometAdminActivityLogItemSeeDetailsDialog.entrypoint","GroupsCometAdmodChatsReviewDialog.entrypoint","WebPixelRatio","react","useCometDynamicEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=c("useCometDynamicEntryPointDialog")(c("GroupsCometAdminActivityLogItemSeeDetailsDialog.entrypoint")),b=c("useCometDynamicEntryPointDialog")(c("GroupsCometAdmodChatsReviewDialog.entrypoint"));return i(function(c,e,f,g){if(c==null)return;g!=null&&g!=="0"?a({routeProps:{adminActivityID:g,groupID:e,isManagementActivityLogTargetProfilePlus:!1}},{activityLogTarget:"Group",groupID:e}):b({groupID:e,profileID:f,scale:d("WebPixelRatio").get()},{})},[a,b])}g["default"]=a}),98); __d("useMWUIPendingPostDialog",["GroupsCometAdminActivityLogItemSeeDetailsDialog.entrypoint","GroupsCometAdmodChatsPendingPostReviewDialog.entrypoint","WebPixelRatio","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,e,f,g){a=c("useMWXEntryPointDialog")(c("GroupsCometAdminActivityLogItemSeeDetailsDialog.entrypoint"),{routeProps:{adminActivityID:g,groupID:b,isManagementActivityLogTargetProfilePlus:!1}});e=c("useMWXEntryPointDialog")(c("GroupsCometAdmodChatsPendingPostReviewDialog.entrypoint"),{authorID:e,groupID:b,postID:f,scale:d("WebPixelRatio").get()});return g!=null&&g!=="0"?a:e}g["default"]=a}),98); __d("useMWLSShowPendingPost",["react","useMWUIPendingPostDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useMemo,k=b.useState;function a(){var a=k(null),b=a[0],d=a[1];a=k("");var e=a[0],f=a[1];a=k("");var g=a[0],h=a[1];a=k("");var l=a[0],m=a[1];a=k("");var n=a[0],o=a[1];a=k(!1);var p=a[0],q=a[1];a=c("useMWUIPendingPostDialog")(b,e,g,l,n);var r=a[0];i(function(){b!=null&&p&&r({activityLogTarget:"Group",groupID:e},function(){return q(!1)})},[b,p]);return j(function(){return function(a,b,c,e,g){q(!0);d(a);f(b);h(c);m(e);return o(g)}},[q,d])}g["default"]=a}),98); __d("MWBuyerShippingAddressRootQuery",["MWBuyerShippingAddressRootQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h!==void 0?h:h=b("MWBuyerShippingAddressRootQuery.graphql");c=a;g["default"]=c}),98); __d("CometMessengerComposerInner.react",["fbt","CometLexicalContentEditable.react","CometLexicalPlaceholder.react","LSMessagingThreadTypeUtil","LexicalComposerContext","LexicalErrorBoundary","LexicalHistoryPlugin","LexicalPlainTextPlugin","MLCInstrumentationPluginDeferred__INTERNAL.react","cr:1948","cr:7192","gkx","react","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useMemo,m=c("requireDeferred")("CometMessengerHandlePastedFileComposerPlugin").__setRef("CometMessengerComposerInner.react"),n=c("gkx")("6943"),o={container:{backgroundColor:"xmjcpbm",borderTopStartRadius:"x107yiy2",borderTopEndRadius:"xv8uw2v",borderBottomEndRadius:"x1tfwpuw",borderBottomStartRadius:"x2g32xy",boxSizing:"x9f619",flexGrow:"x1iyjqo2",minWidth:"xeuugli",$$css:!0},editor:{flexGrow:"x1iyjqo2",maxHeight:"x1gh3ibb",minHeight:"xisnujt",minWidth:"xeuugli",overflowY:"x1odjw0f",$$css:!0},editorWrapper:{display:"x78zum5",flexGrow:"x1iyjqo2",marginEnd:"x1gja9t",marginLeft:null,marginRight:null,marginStart:"x16n37ib",marginTop:"x1xmf6yo",marginBottom:"x1e56ztr",minWidth:"xeuugli",position:"x1n2onr6",$$css:!0},inputRow:{display:"x78zum5",flexWrap:"x1a02dak",justifyContent:"x13a6bvl",$$css:!0}},p=h._("__JHASH__mUqaYJ48Erc__JHASH__").toString();function a(a){var e=a.ariaDescribedBy,f=a.contentEditableRef,g=a.editor,h=a.endContent,i=a.handlePastedFiles,q=a.isSecureThread,r=a.mentionsPlugin,s=a.placeholderText;s=s===void 0?"Aa":s;var t=a.policyProduct,u=a.startContent,v=a.style,w=a.surface,x=a.testId,y=a.threadSubtype;a=a.topContent;var z=k(function(a){a=(a=a)!=null?a:null;if(!n){var b=f.current;if(a==null||b===a)return}f.current=a;g.setRootElement(a)},[f,g]),A=d("LexicalComposerContext").createLexicalComposerContext(),B=l(function(){return[g,A]},[g,A]);e=j.jsx(c("CometLexicalContentEditable.react"),{ariaDescribedBy:e,ariaLabel:p,contentEditableRef:z,editor:g,spellCheck:!0,tabIndex:0,webDriverTestID:x,xstyle:o.editor});z=j.jsx(c("CometLexicalPlaceholder.react"),{children:s});x=!(d("LSMessagingThreadTypeUtil").isPageToUserThread(y)&&b("cr:7192"))&&!Boolean(q);s=c("useDeferredModuleOnReady")(m);return j.jsxs("div",{className:"xmjcpbm x107yiy2 xv8uw2v x1tfwpuw x2g32xy x9f619 x1iyjqo2 xeuugli",style:v,children:[j.jsx(c("MLCInstrumentationPluginDeferred__INTERNAL.react"),{editor__DEPRECATED:g,policyProduct:t,surface:w}),a,j.jsxs("div",{className:"x78zum5 x1a02dak x13a6bvl",children:[u,j.jsx("div",{className:"x78zum5 x1iyjqo2 x1gja9t x16n37ib x1xmf6yo x1e56ztr xeuugli x1n2onr6",children:j.jsxs(d("LexicalComposerContext").LexicalComposerContext.Provider,{value:B,children:[j.jsx(d("LexicalPlainTextPlugin").PlainTextPlugin,{ErrorBoundary:c("LexicalErrorBoundary"),contentEditable:e,placeholder:z}),j.jsx(d("LexicalHistoryPlugin").HistoryPlugin,{})]})}),h]}),r,x&&b("cr:1948")!=null&&j.jsx(b("cr:1948"),{editor:g}),d("LSMessagingThreadTypeUtil").isPageToUserThread(y)&&b("cr:7192")&&j.jsx(b("cr:7192"),{editor:g}),s==null?null:j.jsx(s,{editor:g,handlePastedFiles:i})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("messengerMentionsLexicalCreateNodeStrategy",["MessengerLexicalActorNode","cometBaseMentionsLexicalCreateNodeStrategy","cometMentionsDataEntryText"],(function(a,b,c,d,e,f,g){"use strict";a=c("cometBaseMentionsLexicalCreateNodeStrategy")(function(a){return d("MessengerLexicalActorNode").$createMessengerLexicalActorNode({id:a.key,text:c("cometMentionsDataEntryText")(a)})});b=a;g["default"]=b}),98); __d("useMWCMMentionsDataSourceResolverConfig",["I64","Int64Hooks","LSClearCommunityMembersAndRangeStoredProcedure","LSFactory","LSIssueCommunityMemberListFetchStoredProcedure","LSVec","Promise","asyncToGeneratorRuntime","createCometAtSignComposerMentionsMatchStrategyWithInstagramHandleSupport","pageID","promiseDone","react","useCometMentionsDataSourceResolverConfig","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;e=k||d("react");var l=e.useMemo,m=e.useRef;function a(a,e,f){var g=(i||(i=c("useReStore")))(),k=m(null),n=m([]),o=d("Int64Hooks").useCallbackInt64(function(){var f=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){yield g.runInTransaction(function(a){return c("LSClearCommunityMembersAndRangeStoredProcedure")(c("LSFactory")(a),{requestId:c("pageID"),source:(j||(j=d("I64"))).of_int32(8)})},"readwrite"),yield g.runInTransaction(function(f){return c("LSIssueCommunityMemberListFetchStoredProcedure")(c("LSFactory")(f),{communityId:a,fetchAdminsOnly:!1,fetchFriendMembersOnly:!1,maxName:"",maxTimestampMs:(j||(j=d("I64"))).zero,nextPageCursor:"",requestId:c("pageID"),roles:c("LSVec").ofArray([j.of_int32(0)]),searchText:b,source:j.of_int32(8),threadKey:e,threadRoles:c("LSVec").ofArray([])})},"readwrite")});return function(a){return f.apply(this,arguments)}}(),[g,a,e]),p=l(function(){return[{dataSource:{bootstrap:function(){},fetchCache:function(){return{entries:[],params:{query:""}}},fetchNetwork:function(a){return new(h||(h=b("Promise")))(function(b){(a.query!==k.current||a.query===""&&k.current!=="")&&(k.current=a.query,c("promiseDone")(o(k.current))),f.length!==0&&(n.current=f),b({entries:f.length===0?n.current:f,params:a})})}},matchStrategy:c("createCometAtSignComposerMentionsMatchStrategyWithInstagramHandleSupport")({minMatchLength:0})}]},[f,o]);return c("useCometMentionsDataSourceResolverConfig")(p,!1)}g["default"]=a}),98); __d("MWCMMentionsComposerPluginCreatorWithTypeaheadViewForLexical.react",["CometMentionsForLexical.react","CometMentionsLayoutStrategy.react","I64","MWChatComposerMentionsViewItem.react","ReQL","ReQLSuspense","messengerMentionsLexicalCreateNodeStrategy","pageID","promiseDone","react","useBlockeesInThread","useCometTypeaheadViewListStrategy","useCommunityMembers","useMWCMMentionsDataSourceResolverConfig","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useEffect,m={view:{minWidth:"x1jzhcrs",$$css:!0}};function a(a){var b=a.editor,e=a.fbGroupId,g=a.folderId;a=a.threadFBID;var j=(h||(h=c("useReStore")))(),n=c("useBlockeesInThread")((i||(i=d("I64"))).of_string(a)),o=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(j.table("community_members").index("communitySource")).getKeyRange(e,(i||(i=d("I64"))).of_int32(8),c("pageID")).filter(function(a){return!n.includes((i||(i=d("I64"))).to_string(a.contactId))}).take(6).map(function(a){var b,c;b=(b=d("ReQLSuspense").first(d("ReQL").fromTableAscending(j.table("contextual_profile_v1")).getKeyRange(a.contactId,g),f.id+":63"))==null?void 0:b.profileName;return{key:(i||(i=d("I64"))).to_string(a.contactId),label:(c=b)!=null?c:a.name,rawData:{photoURI:a.profilePictureUrl,source:"all",subtitle:b!=null?a.name:a.subtitle},type:"entry"}})},[j,e,g]);a=c("useMWCMMentionsDataSourceResolverConfig")(e,i.of_string(a),o);o=c("useCometTypeaheadViewListStrategy")({viewItemStrategyRenderer:c("MWChatComposerMentionsViewItem.react"),viewXStyle:m.view});var p=d("useCommunityMembers").useClearMemberList(8);l(function(){return function(){c("promiseDone")(p(c("pageID")))}},[p]);return k.jsx(c("CometMentionsForLexical.react"),{createNodeStrategy:c("messengerMentionsLexicalCreateNodeStrategy"),dataSourceResolverConfig:a,editor:b,layoutStrategyRenderer:c("CometMentionsLayoutStrategy.react"),position:"above",viewStrategyRenderer:o})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MessengerMentionsComposerPluginCreatorWithTypeaheadViewForLexical.react",["CometMentionsForLexical.react","CometMentionsLayoutStrategy.react","I64","LSMessagingThreadTypeUtil","MWCMThreadTypes.react","MWChatAppendMentionsNodeToReply","MWChatComposerMentionsViewItem.react","MWLSThread","cr:2600","cr:4183","messengerMentionsLexicalCreateNodeStrategy","react","useCometTypeaheadSectionedViewListStrategy","useCommunityFolder","useMWChatMentionsDataSourceResolverConfig"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react")),k=h.useMemo,l=(e=b("cr:4183"))!=null?e:function(a){return function(a,b){}},m={view:{minWidth:"x1jzhcrs",$$css:!0}};function a(a){var e=a.editor,f=a.isAiBotMentionsEnabled,g=a.participants,h=a.threadFBID,n=l((i||(i=d("I64"))).of_string(h));a=k(function(){return{isAiBotMentionsEnabled:f,participants:g,threadFBID:h,triggerParticipantsSearch:n}},[f,g,h,n]);a=c("useMWChatMentionsDataSourceResolverConfig")(a);var o=c("useCometTypeaheadSectionedViewListStrategy")({viewItemStrategyRenderer:c("MWChatComposerMentionsViewItem.react"),viewXStyle:m.view}),p=d("MWLSThread").useThreadExn(i.of_string(h)),q=c("useCommunityFolder")(p);d("MWChatAppendMentionsNodeToReply").useMWChatAppendMentionsNodeToReply(e,p.threadKey,f);if(b("cr:2600")!=null&&(d("MWCMThreadTypes.react").isJoinedCMThread(p.threadType)&&q||d("LSMessagingThreadTypeUtil").isJoinedSocialChannelV2(p.threadType))){var r;return j.jsx(b("cr:2600"),{editor:e,fbGroupId:(r=q==null?void 0:q.fbGroupId)!=null?r:p.threadKey,folderId:(r=q==null?void 0:q.folderId)!=null?r:p.threadKey,threadFBID:h})}else return j.jsx(c("CometMentionsForLexical.react"),{createNodeStrategy:c("messengerMentionsLexicalCreateNodeStrategy"),dataSourceResolverConfig:a,editor:e,layoutStrategyRenderer:c("CometMentionsLayoutStrategy.react"),position:"above",viewStrategyRenderer:o})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWReQLComposerInner.react",["CometMessengerComposerInner.react","I64","MWLSThread","MessengerMentionsComposerPluginCreatorWithTypeaheadViewForLexical.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react");function a(a){var b=a.ariaDescribedBy,e=a.contentEditableRef,f=a.editor,g=a.endContent,h=a.handlePastedFiles,k=a.isAiBotMentionsEnabled,l=a.isSecureThread,m=a.participants,n=a.placeholderText;n=n===void 0?"Aa":n;var o=a.policyProduct,p=a.startContent,q=a.style,r=a.surface,s=a.testId,t=a.threadID,u=a.topContent;a=a.useMentionsPlugin;var v=d("MWLSThread").useThread((i||(i=d("I64"))).of_string(t),function(a){return a.threadSubtype});a=a&&j.jsx(c("MessengerMentionsComposerPluginCreatorWithTypeaheadViewForLexical.react"),{editor:f,isAiBotMentionsEnabled:k,participants:m,threadFBID:t});return j.jsx(c("CometMessengerComposerInner.react"),{ariaDescribedBy:b,contentEditableRef:e,editor:f,endContent:g,handlePastedFiles:h,isSecureThread:l,mentionsPlugin:a,placeholderText:n,policyProduct:o,startContent:p,style:q,threadSubtype:v,topContent:u,surface:r,testId:s})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatComposerGetViewContent",["Lexical","MessengerLexicalActorNode","MessengerLexicalEntityTextNode","cr:3101","cr:6138"],(function(a,b,c,d,e,f,g){"use strict";var h=b("cr:3101")||b("cr:6138");a={getRanges:function(a){var b=[],c=0;a.getEditorState().read(function(){var a=d("Lexical").$getRoot().getFirstChild();a instanceof d("Lexical").ElementNode&&a.getChildren().forEach(function(a){if(d("MessengerLexicalEntityTextNode").isMessengerLexicalEntityTextNode(a)){var e=a.getEntity();b.push({id:e.id,length:a.getTextContent().length,offset:c,type:d("MessengerLexicalActorNode").$isMessengerLexicalActorNode(a)?a.getRangeType():"p"})}if(h!=null&&a instanceof h.MessengerLexicalCommandNode){e=a.getEntity();b.push({id:e.commandId,length:a.getTextContent().length,offset:c,type:a.getRangeType()})}c+=a.getTextContent().length})});return b}};c=a;g["default"]=c}),98); __d("MWV2ComposerActionsContext.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;c=b.createContext;var j=b.useContext,k=b.useMemo,l=c({});function a(a){var b=a.children,c=a.onMessageSendAttempt;a=j(l);var d=a.onMessageSendAttempt;a=k(function(){return{onMessageSendAttempt:function(a){d==null?void 0:d(a),c==null?void 0:c(a)}}},[d,c]);return i.jsx(l.Provider,{value:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";g.MWV2ComposerActionsContext=l;g.MWV2ComposerActionsListener=a}),98); __d("MWV2ComposerMediaProgressBar.react",["MWPColorUtils","react","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.height;a=a.mediaStaging;var e=c("useMWPThreadTheme")();e=e.threadTheme;e=a.hasError?"var(--negative)":d("MWPColorUtils").int64ToHex(e.fallbackColor);var f=Math.ceil(a.progress*100),g=(b/2).toString();g="M 0,"+g+" L 100,"+g;return a.progress===1?null:i.jsxs("svg",{"aria-hidden":!0,className:"x1ey2m1c x10l6tqk x17qophe xh8yej3",preserveAspectRatio:"none",style:{height:b.toString()},viewBox:"0 0 100 "+b.toString(),children:[i.jsx("path",{d:g,stroke:"rgba(0,0,0,.5)",strokeLinecap:"round",strokeWidth:b.toString()}),i.jsx("path",{d:g,stroke:e,strokeLinecap:"round",strokeWidth:(f===0?0:b).toString(),style:{strokeDasharray:"100",strokeDashoffset:(100-f|0).toString(),transition:"stroke-dashoffset .5s, stroke .5s"}})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatFileIcon.react",["ix","MWXIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){return j.jsx("div",{className:"x6s0dn4 x2bj2ny x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 xl56j7k xmo9yow x1y1aw1k x1sxyh0 xwib8y2 xurb0ha",children:j.jsx(c("MWXIcon.react"),{color:"primary",icon:d("fbicon")._(h("908355"),16)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerMediaStagingItem.react",["fbt","ix","CometImageCover.react","I64","LSIntEnum","MWChatFileIcon.react","MWV2ComposerMediaProgressBar.react","MWXCircleButton.react","MWXIconCross","MWXImage.react","MWXText.react","MessagingAttachmentType","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=k||(k=d("react")),o=k.useCallback,p={button:{end:"xoo4vsp",left:null,right:null,position:"x10l6tqk",top:"x1v4kod4",$$css:!0},file:{alignItems:"x6s0dn4",display:"x78zum5",paddingStart:"xurb0ha",paddingLeft:null,paddingRight:null,paddingEnd:"x1sxyh0",paddingTop:"x1iorvi4",paddingBottom:"xjkvuk6",userSelect:"x87ps6o",$$css:!0},fileContainer:{width:"x2pejg6",$$css:!0},fileContent:{flexGrow:"x1iyjqo2",$$css:!0},filePreviewContainer:{backgroundColor:"x1vtvx1t",width:"x2pejg6",$$css:!0},itemContainer:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",height:"xsdox4t",marginTop:"xr9ek0c",marginEnd:"xq8finb",marginBottom:"xzueoph",marginStart:"x1mh8g0r",position:"x1n2onr6",width:"x1useyqa",$$css:!0},playIcon:{marginStart:"x16hk5td",marginLeft:null,marginRight:null,marginTop:"x7wgvq7",position:"x10l6tqk",start:"xtzzx4i",left:null,right:null,top:"xwa60dl",$$css:!0},previewContainer:{borderTopStartRadius:"x1a2cdl4",borderTopEndRadius:"xnhgr82",borderBottomEndRadius:"x1qt0ttw",borderBottomStartRadius:"xgk8upj",height:"xsdox4t",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",width:"x1useyqa",$$css:!0},video:{objectFit:"xl1xv1r",$$css:!0}};function a(a){var b=a.mediaStaging,e=a.onAttachmentRemoved;a=o(function(){return e(b.offlineAttachmentId)},[b.offlineAttachmentId,e]);var f=!(l||(l=d("I64"))).equal(b.attachmentType,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO))&&!(l||(l=d("I64"))).equal(b.attachmentType,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))&&!q(b);return n.jsxs("div",{className:(j||(j=c("stylex")))(p.itemContainer,f&&p.fileContainer),"data-testid":void 0,children:[n.jsxs("div",{className:j(p.previewContainer,f&&p.filePreviewContainer),children:[n.jsx(r,{mediaStaging:b}),n.jsx(c("MWV2ComposerMediaProgressBar.react"),{height:4,mediaStaging:b})]}),n.jsx("div",{className:"xoo4vsp x10l6tqk x1v4kod4",children:n.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconCross"),label:h._("__JHASH__JpwWRvbxl3y__JHASH__"),onPress:a,size:24,type:"overlay"})})]})}a.displayName=a.name+" [from "+f.id+"]";function q(a){if(a.mimeType==="image/gif")return!0;else return a.mimeType==="image/webp"}function r(a){a=a.mediaStaging;var b=a.attachmentType,e=a.previewUrl;if(q(a)||(l||(l=d("I64"))).equal(b,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE)))if(e!=null)return n.jsx(c("CometImageCover.react"),{alt:"",src:e});else return null;if((l||(l=d("I64"))).equal(b,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)))if(e!=null)return n.jsxs(n.Fragment,{children:[n.jsx("video",{className:"xl1xv1r",height:"48",src:e,width:"48"}),n.jsx("div",{className:"x16hk5td x7wgvq7 x10l6tqk xtzzx4i xwa60dl",children:n.jsx(c("MWXImage.react"),{src:i("354763")})})]});else return null;return n.jsxs("div",{className:"x6s0dn4 x78zum5 xurb0ha x1sxyh0 x1iorvi4 xjkvuk6 x87ps6o",children:[n.jsx(c("MWChatFileIcon.react"),{}),n.jsx("div",{className:"x1iyjqo2",children:n.jsx(c("MWXText.react"),{numberOfLines:2,type:"headline4",children:a.filename})})]})}r.displayName=r.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerMediaStaging.react",["fbt","ix","CometFileSelector.react","MWV2ComposerMediaStagingItem.react","MWXIcon.react","MWXPressable.react","fbicon","react","useMWV2ComposerOnFilesSelected"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l={container:{alignItems:"x6s0dn4",boxSizing:"x9f619",display:"x78zum5",flexWrap:"xozqiw3",justifyContent:"x1nhvcw1",overflowX:"xw2csxc",paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",width:"xh8yej3",$$css:!0},uploadPlaceholderRoot:{alignItems:"x6s0dn4",backgroundColor:"x1vtvx1t",borderTopStartRadius:"x1a2cdl4",borderTopEndRadius:"xnhgr82",borderBottomEndRadius:"x1qt0ttw",borderBottomStartRadius:"xgk8upj",display:"x78zum5",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",height:"xsdox4t",justifyContent:"xl56j7k",marginEnd:"xq8finb",marginLeft:null,marginRight:null,position:"x1n2onr6",width:"x1useyqa",$$css:!0}};function m(a){var b=a.onAttachmentsAdded;a=a.supportedFileTypes;b=c("useMWV2ComposerOnFilesSelected")(b);return k.jsx(c("CometFileSelector.react"),{accept:a,multiple:!0,onFilesSelected:b,children:function(a){return k.jsx(c("MWXPressable.react"),{"aria-label":h._("__JHASH__Mhonj9wa21Q__JHASH__"),onPress:function(){return a()},xstyle:l.uploadPlaceholderRoot,children:k.jsx(c("MWXIcon.react"),{color:"primary",icon:d("fbicon")._(i("481777"),24),testid:void 0})})}})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.mediaStaging,d=a.onAttachmentRemoved,e=a.onAttachmentsAdded;a=a.supportedFileTypes;return b.length===0?null:k.jsxs("div",{className:"x6s0dn4 x9f619 x78zum5 xozqiw3 x1nhvcw1 xw2csxc xz9dl7a xn6708d xsag5q8 x1ye3gou xh8yej3",children:[k.jsx(m,{onAttachmentsAdded:e,supportedFileTypes:a}),b.map(function(a){return k.jsx(c("MWV2ComposerMediaStagingItem.react"),{mediaStaging:a,onAttachmentRemoved:d},a.offlineAttachmentId)})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2FileDropzone.react",["fbt","LSFactory","LSIssueNewErrorStoredProcedure","LSMessagingThreadTypeUtil","LSThreadBitOffset","MWCMThreadTypes.react","MWXText.react","cometIsMimeTypeForMedia","gkx","promiseDone","react","recoverableViolation","stylex","useFileDragEvents","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));b=k;e=b.createContext;var m=b.createElement,n=b.useCallback,o=b.useRef,p=e({current:{enabled:!0,handler:null}});function q(a){var b=a.children;a=a.fileUploadHandlerConfigRef;return m(p.Provider,{children:b,value:a})}var r={dropzone:{alignItems:"x6s0dn4",backgroundColor:"x1h0vfkc",bottom:"x1ey2m1c",display:"x78zum5",end:"xds687c",left:null,right:null,justifyContent:"xl56j7k",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",zIndex:"x1vjfegm",$$css:!0},root:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",maxWidth:"x193iq5w",minHeight:"x2lwn1j",position:"x1n2onr6",$$css:!0}};function s(a){if(a==null)return[];a=a.dataTransfer;return a==null?[]:a.types}function t(a){switch(a){case 0:return void 0;case 1:return h._("__JHASH__M7mGXjgzxvT__JHASH__").toString();default:return h._("__JHASH__UaK2GgtSNQH__JHASH__").toString()}}function u(a,b){var d=t(b);if(d==null)return;c("promiseDone")(a.runInTransaction(function(a){return c("LSIssueNewErrorStoredProcedure")(c("LSFactory")(a),{errorBodyText:d,errorTitleText:d})},"readwrite"))}function v(a){a=a.type;return d("cometIsMimeTypeForMedia").isMimeTypeForPhoto(a)||d("cometIsMimeTypeForMedia").isMimeTypeForVideo(a)?!0:a.startsWith("audio/")}var w=new Set(["text/plain","text/html","text/uri-list"]);function a(a){var b=a.children,e=a.isDisabled,f=a.isMediaOnly,g=a.thread;a=a.xstyle;var k=o({enabled:!1,handler:null}),m=o(null),p=(i||(i=c("useReStore")))(),t=g!=null?(d("MWCMThreadTypes.react").isBroadcastThread(g.threadType)||d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(g.threadType)||d("LSMessagingThreadTypeUtil").isAiBot(g.threadType))&&!d("LSThreadBitOffset").has(56,g):!1;g=!c("gkx")("1835569");var x=e===!0||g||t;e=function(a){var b;return((b=k.current)==null?void 0:b.handler)==null?!1:!s(a).some(function(a){return w.has(a)})};g=c("useFileDragEvents")(function(){return!1},void 0,e);e=n(function(a){var b;if(((b=k.current)==null?void 0:b.enabled)===!1)return;b=(b=k.current)==null?void 0:b.handler;if(b==null){if(!t){var d=k.current==null?"fileUploadHandlerConfigRef was not setup to handle dropped file!":"fileUploadHandlerConfigRef.current.handler was not setup to handle dropped file";c("recoverableViolation")(d,"messenger_comet")}return}d=Array.from(a);a=f?d.filter(v):d;d.length!==a.length&&u(p,d.length);!x&&a.length!==0&&b(a)},[f,x,t,p]);c("useFileDragEvents")(e,m.current,function(a){return!0});return l.jsxs("div",{className:(j||(j=c("stylex")))(r.root,(e=a)!=null?e:!1),ref:m,children:[l.jsx(q,{fileUploadHandlerConfigRef:k,children:b}),!x&&g?l.jsx("div",{className:"x6s0dn4 x1h0vfkc x1ey2m1c x78zum5 xds687c xl56j7k x10l6tqk x17qophe x13vifvy x1vjfegm",children:l.jsx(c("MWXText.react"),{type:"body1",children:h._("__JHASH__Cpq0daihgaG__JHASH__")})}):null]})}a.displayName=a.name+" [from "+f.id+"]";g.mWV2FileDropzoneContext=p;g.MWV2FileDropzone=a}),98); __d("MWV2ComposerEmojiButton.react",["fbt","JSResourceForInteraction","MWChatComposerIcons","MWXLazyPopoverTrigger.react","MWXPressable.react","MWXTooltip.react","MessengerWebUXLogger","Promise","gkx","promiseDone","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=h._("__JHASH__HXazdxq92Fj__JHASH__"),m={buttonFDS:{paddingTop:"x1iorvi4",paddingEnd:"x150jy0e",paddingBottom:"xjkvuk6",paddingStart:"x1e558r4",$$css:!0},buttonMDS:{paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0}},n=c("JSResourceForInteraction")("cometAddEmojiToComposerForLexical").__setRef("MWV2ComposerEmojiButton.react");function a(a){var e=a.color,f=a.editor;a=function(a){c("promiseDone")(n.load().then(function(c){c(a,f,16);return(i||(i=b("Promise"))).resolve()}))};var g=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger();return k.jsx(c("MWXLazyPopoverTrigger.react"),{align:"end",popoverProps:{onSelect:a,withArrow:!0},popoverResource:c("JSResourceForInteraction")("MWV2ComposerEmojiPickerForJSResource").__setRef("MWV2ComposerEmojiButton.react"),preloadTrigger:c("gkx")("10613")?"button":void 0,children:function(a,b,f,h,i,j,o){return k.jsx(c("MWXTooltip.react"),{align:"middle",position:"above",tooltip:l,children:k.jsx(c("MWXPressable.react"),{"aria-label":l,onHoverIn:h,onHoverOut:i,onPress:function(a){b(),n.preload(),g==null?void 0:g({eventName:"composer_open_emoji_picker"})},onPressIn:j,overlayRadius:"50%",ref:a,testid:void 0,xstyle:function(){return[c("gkx")("571")?m.buttonMDS:m.buttonFDS]},children:k.jsx(d("MWChatComposerIcons").MWChatComposerIconsEmoji,{fill:e,size:20})})})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerFileButton.react",["fbt","CometFileSelector.react","MWChatComposerIcons","MWXPressable.react","MWXTooltip.react","MessengerWebUXLogger","gkx","react","useMWV2ComposerOnFilesSelected"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={buttonFDS:{paddingTop:"x1iorvi4",paddingEnd:"x150jy0e",paddingBottom:"xjkvuk6",paddingStart:"x1e558r4",$$css:!0},buttonMDS:{paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0}},l=h._("__JHASH__irWVZkNfl97__JHASH__");function a(a){var b=a.color,e=a.disabled,f=a.onAttachmentsAdded;a=a.supportedFileTypes;f=c("useMWV2ComposerOnFilesSelected")(f);var g=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger();return j.jsx(c("CometFileSelector.react"),{accept:a,multiple:!0,onFilesSelected:f,children:function(a){return j.jsx(c("MWXTooltip.react"),{align:"middle",forceInlineDisplay:!0,position:"above",tooltip:l,children:j.jsx(c("MWXPressable.react"),{"aria-label":l,disabled:e,onPress:function(){a(),g==null?void 0:g({eventName:"composer_open_file_picker"})},overlayRadius:"50%",testid:void 0,xstyle:function(){return[c("gkx")("571")?k.buttonMDS:k.buttonFDS]},children:j.jsx(d("MWChatComposerIcons").MWChatComposerIconsPhoto,{fill:e?void 0:b,size:20})})})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerSendButton.react",["fbt","Locale","MWChatChatButtonColorConstants","MWXPressable.react","MWXTooltip.react","MessengerWebUXLogger","UserAgent","gkx","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");b=c("gkx")("6934");e=c("UserAgent").isPlatform("Mac OS X");var l=b?e?h._("__JHASH__rZOmP6eifIV__JHASH__"):h._("__JHASH__ylwhpFdWk4l__JHASH__"):h._("__JHASH__7975gRkNyLl__JHASH__"),m={buttonFDS:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",marginStart:"xsgj6o6",marginLeft:null,marginRight:null,marginEnd:"xw3qccf",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},buttonMDS:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",marginStart:"x1i64zmx",marginLeft:null,marginRight:null,marginEnd:"x1emribx",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},reverse:{transform:"xpk2tj9",$$css:!0}};function a(a,b){var e=a.color,f=a.disabled,g=a.onPress,h=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger();return k.jsx(c("MWXTooltip.react"),{align:"middle",forceInlineDisplay:!0,position:"above",tooltip:l,children:k.jsx(c("MWXPressable.react"),{disabled:f,label:l,onPress:function(){g(),h==null?void 0:h({eventName:"composer_send_message"})},overlayDisabled:f,overlayRadius:"50%",ref:b,testid:void 0,xstyle:function(){return[c("gkx")("571")?m.buttonMDS:m.buttonFDS,d("Locale").isRTL()&&m.reverse]},children:k.jsxs("svg",{className:(i||(i=c("stylex")))(d("MWChatChatButtonColorConstants").styles.fillGrey),height:"20px",viewBox:"0 0 24 24",width:"20px",children:[k.jsx("title",{children:l}),k.jsx("path",{d:"M16.6915026,12.4744748 L3.50612381,13.2599618 C3.19218622,13.2599618 3.03521743,13.4170592 3.03521743,13.5741566 L1.15159189,20.0151496 C0.8376543,20.8006365 0.99,21.89 1.77946707,22.52 C2.41,22.99 3.50612381,23.1 4.13399899,22.8429026 L21.714504,14.0454487 C22.6563168,13.5741566 23.1272231,12.6315722 22.9702544,11.6889879 C22.8132856,11.0605983 22.3423792,10.4322088 21.714504,10.118014 L4.13399899,1.16346272 C3.34915502,0.9 2.40734225,1.00636533 1.77946707,1.4776575 C0.994623095,2.10604706 0.8376543,3.0486314 1.15159189,3.99121575 L3.03521743,10.4322088 C3.03521743,10.5893061 3.34915502,10.7464035 3.50612381,10.7464035 L16.6915026,11.5318905 C16.6915026,11.5318905 17.1624089,11.5318905 17.1624089,12.0031827 C17.1624089,12.4744748 16.6915026,12.4744748 16.6915026,12.4744748 Z",fill:e})]})})})}a.displayName=a.name+" [from "+f.id+"]";b=k.forwardRef(a);g["default"]=b}),98); __d("MWCommandsComposerPluginCommandList",["fbt","ix","FBLogger","fbicon"],(function(a,b,c,d,e,f,g,h,i){"use strict";function a(a,b,c,d,e){b=b.toString();return{data:{decorType:"regular",handle:b,key:a,label:b,rawData:{icon:d,subtitle:c.toString()},type:"entry"},rangeType:e}}e=[a("silent",h._("__JHASH__fM-I8ly761K__JHASH__"),h._("__JHASH__bcTzx6eBHE9__JHASH__"),d("fbicon")._(i("549627"),16),"s")];f=e.map(function(a){return a.data});var j=e.reduce(function(a,b){var c;a[(c=b.data.handle)!=null?c:b.data.key]=b.rangeType;return a},{});function b(a){var b=j[a];if(b==null){c("FBLogger")("messenger_web_product").mustfix("Unregisted messenger composer command %s used. Please add the command to the mapping in MWCommandsComposerPluginCommandList",a);return"n"}return b}g.commands=f;g.commandToRangeType=b}),98); __d("MWCommandsComposerPluginTextNode",["Lexical"],(function(a,b,c,d,e,f,g){"use strict";var h=function(b){babelHelpers.inheritsLoose(a,b);function a(a,c){var d,e=a.commandId,f=a.commandPrefix,g=a.handle;a=a.rangeType;d=b.call(this,""+((d=f)!=null?d:"")+g,c)||this;d.__handle=g;d.__commandId=e;d.__rangeType=a;d.__commandPrefix=f;return d}a.getType=function(){return"command"};a.clone=function(b){var c,d=b.getEntity();return new a({commandId:d.commandId,commandPrefix:(c=b.__commandPrefix)!=null?c:"",handle:d.handle,rangeType:d.rangeType},b.__key)};a.importJSON=function(a){return i({commandId:a.commandId,handle:a.handle,rangeType:a.rangeType})};var c=a.prototype;c.exportJSON=function(){return babelHelpers["extends"]({},b.prototype.exportJSON.call(this),{commandId:this.__commandId,handle:this.__handle,rangeType:this.__rangeType,type:"command"})};c.createDOM=function(a){a=b.prototype.createDOM.call(this,a);a.className="xv78j7m xt0e3qv";a.spellcheck=!1;return a};c.getEntity=function(){return{commandId:this.__commandId,handle:this.__handle,rangeType:this.__rangeType}};c.getRangeType=function(){return this.__rangeType};c.getCommandId=function(){return this.__commandId};return a}(d("Lexical").TextNode);function i(a){return new h(a).setMode("segmented").toggleDirectionless()}g.MessengerLexicalCommandNode=h;g.$createMessengerLexicalCommandNode=i}),98); __d("messengerCommandsLexicalCreateNodeStrategy",["MWCommandsComposerPluginCommandList","MWCommandsComposerPluginTextNode","cometBaseMentionsLexicalCreateNodeStrategy","cometMentionsDataEntryText"],(function(a,b,c,d,e,f,g){"use strict";a=c("cometBaseMentionsLexicalCreateNodeStrategy")(function(a){var b;return d("MWCommandsComposerPluginTextNode").$createMessengerLexicalCommandNode({commandId:"0",commandPrefix:"/",handle:c("cometMentionsDataEntryText")(a),rangeType:d("MWCommandsComposerPluginCommandList").commandToRangeType((b=a.handle)!=null?b:a.key)})});b=a;g["default"]=b}),98); __d("MWCommandsComposerPlugin.react",["CometMentionsForLexical.react","CometMentionsLayoutStrategy.react","MWChatComposerMentionsViewItem.react","MWCommandsComposerPluginCommandList","Promise","createCometMentionMatchStrategy","messengerCommandsLexicalCreateNodeStrategy","react","useCometMentionsDataSourceResolverConfig","useCometTypeaheadViewListStrategy"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useMemo,l={view:{minWidth:"x1jzhcrs",$$css:!0}},m=function(){function a(){}var c=a.prototype;c.bootstrap=function(){return};c.fetchCache=function(a){return{entries:a.query.length===0?d("MWCommandsComposerPluginCommandList").commands:d("MWCommandsComposerPluginCommandList").commands.filter(function(b){return(b=b.handle)==null?void 0:b.startsWith(a.query)}),params:a}};c.fetchNetwork=function(a){return(h||(h=b("Promise"))).resolve(this.fetchCache(a))};return a}();function a(a){a=a.editor;var b=c("useCometMentionsDataSourceResolverConfig")(k(function(){return[{dataSource:new m(),matchStrategy:c("createCometMentionMatchStrategy")({minMatchLength:0,name:"MessengerCommandsMatchStrategy",triggers:"/"})}]},[]),!0),d=c("useCometTypeaheadViewListStrategy")({viewItemStrategyRenderer:c("MWChatComposerMentionsViewItem.react"),viewXStyle:l.view});return j.jsx(c("CometMentionsForLexical.react"),{createNodeStrategy:c("messengerCommandsLexicalCreateNodeStrategy"),dataSourceResolverConfig:b,editor:a,layoutStrategyRenderer:c("CometMentionsLayoutStrategy.react"),position:"above",viewStrategyRenderer:d})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWMediaTraceHandler",["I64","LSAppendDataTraceAddonStoredProcedure","LSDataTraceCheckPoint","LSDataTraceType","LSFactory","LSIntEnum","MAWTimeUtils","WATimeUtils"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function j(a,b){return a.table("data_trace_meta").add({contextOne:void 0,contextThree:void 0,contextTwo:void 0,foregroundTimestampMs:(h||(h=d("I64"))).zero,initTimestampMs:d("MAWTimeUtils").toTimestamp(d("WATimeUtils").unixTime()),predefinedId:void 0,shouldFlush:!1,traceId:b,traceType:(i||(i=d("LSIntEnum"))).ofNumber(c("LSDataTraceType").TASK)})}function a(a,b,e,f){return j(a,b).then(function(){return c("LSAppendDataTraceAddonStoredProcedure")(c("LSFactory")(a),{checkPointId:(i||(i=d("LSIntEnum"))).ofNumber(c("LSDataTraceCheckPoint").RICH_MEDIA_UPLOAD_START),dataTraceId:b,syncChannel:(h||(h=d("I64"))).neg_one,tags:h.to_string(e)+","+h.to_string(f)})})}g.logMediaSendStart=a}),98); __d("MWV2SendOpenMessageCallbacks",["MWChatInteraction","err","sendToSentQPLLogger"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a){a=d("MWChatInteraction").get(d("MWChatInteraction").s2sKey(a));return a!=null?Number(a):null};function i(a,b){d("sendToSentQPLLogger").markSendToSentPoint(a,"received_successful_server_ack"),d("sendToSentQPLLogger").markSendToSentSuccess(a),d("MWChatInteraction").remove(d("MWChatInteraction").s2sKey(b))}function a(a){var b=h(a);b!=null&&i(b,a)}function j(a,b){d("sendToSentQPLLogger").markSendToSentFail(a,c("err")("fail_to_send_message")),d("MWChatInteraction").remove(d("MWChatInteraction").s2sKey(b))}function b(a){var b=h(a);b!=null&&j(b,a)}function k(a){d("sendToSentQPLLogger").markSendToSentPoint(a,"sending_message")}function e(a){a=h(a);a!=null&&k(a)}g.onSendMsgFailure=b;g.onSendMsgFailureImpl=j;g.onSendMsgSending=e;g.onSendMsgSendingImpl=k;g.onSendMsgSuccess=a;g.onSendMsgSuccessImpl=i}),98); __d("ReQLSubscribe",["ErrorGuard","ReQL","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){a=a.take(1);var e=(h||(h=c("ErrorGuard"))).guard(b),f=!1,g=null,i=a.subscribe(function(a,b){if(f)return;switch(b.operation){case"delete":(g==null||g.current!==void 0)&&(g={current:void 0},e(g.current));return;case"add":case"put":((a=g)==null?void 0:a.current)!==b.value&&(g={current:b.value},e(g.current))}});c("promiseDone")(d("ReQL").firstAsync(a),function(a){!f&&g==null&&(g={current:a},e(a))});return function(){f||(f=!0,i==null?void 0:i())}}g.subscribeToFirst=a}),98); __d("MWV2SetupS2SLoggingShared",["I64","LSIntEnum","MWChatInteraction","MWLSLogSend","MWVersion","ReQL","ReQLSubscribe","asyncToGeneratorRuntime","gkx","sendToSentQPLLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var e=a.db,f=a.initiatingSource,g=a.isCommunityEvent,j=a.isMessageRequest,k=a.onSendMsgFailureImpl,l=a.onSendMsgSendingImpl,m=a.onSendMsgSuccessImpl,n=a.s2sInstanceKey,o=a.threadType,p=a.traceSendMessageAPI,q={initiatingSource:f,isCommunityEvent:g,isMessageRequest:j,mwVersion:d("MWVersion").v2,threadType:o};return function(a){d("MWLSLogSend").logSentHeroInteraction(p,a,q);d("MWChatInteraction").set(d("MWChatInteraction").s2sKey(a),String(n));d("sendToSentQPLLogger").addSendToSentAnnotations(n,{string:babelHelpers["extends"]({},d("MWLSLogSend").getMessageSendAnnotations(q))});if(c("gkx")("10731")){d("sendToSentQPLLogger").addSendToSentAnnotations(n,{bool:{subscription_points_gk:!0}});var f=!1,g=d("ReQL").fromTableAscending(e.table("messages").index("optimistic")).getKeyRange(a),j=d("ReQLSubscribe").subscribeToFirst(g,function(b){b!=null&&(h||(h=d("I64"))).equal(b.sendStatusV2,(i||(i=d("LSIntEnum"))).ofNumber(2))?(f=!0,m(n,a),j()):b!=null&&(h||(h=d("I64"))).equal(b.sendStatusV2,(i||(i=d("LSIntEnum"))).ofNumber(4))?(f=!0,k(n,a),j()):b!=null&&(h||(h=d("I64"))).equal(b.sendStatusV2,(i||(i=d("LSIntEnum"))).ofNumber(1))&&l(n)});window.setTimeout(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(!f){var a=(yield d("ReQL").firstAsync(g));f||d("sendToSentQPLLogger").addSendToSentAnnotations(n,{string:{status_after_10s:a?""+(i||(i=d("LSIntEnum"))).toNumber(a.sendStatusV2):"none"}})}}),1e4);window.setTimeout(function(){j()},6e4)}}}g["default"]=a}),98); __d("MAWOptimisticUpdateContactRelationship",["I64","LSAddMessengerContactStoredProcedure","LSFactory","LSMessagingThreadTypeUtil","ReQL","asyncToGeneratorRuntime","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,e,f){if(!d("LSMessagingThreadTypeUtil").isOneToOne(a.threadType))return;c("promiseDone")(e.runInTransaction(function(){var g=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var g;g=(g=(yield d("ReQL").firstAsync(d("ReQL").mergeJoin(d("ReQL").fromTableAscending(e.table("participants")).getKeyRange(a.threadKey),d("ReQL").fromTableAscending(e.table("contacts"))).filter(function(a){a[0];a=a[1];return!(h||(h=d("I64"))).equal(a.id,f)}))))!=null?g:[void 0,void 0];g[0];g=g[1];if(g==null)return;var i=babelHelpers["extends"]({},g,{contactViewerRelationship:(h||(h=d("I64"))).of_string("2")});yield b.table("contacts").upsert([g.id],i);yield c("LSAddMessengerContactStoredProcedure")(c("LSFactory")(b),{contactId:g.id})});return function(a){return g.apply(this,arguments)}}(),"readwrite"))}g.call=a}),98); __d("useMWV2SendOpenMessageImplShared",["ArmadilloDataTraceCheckPoint","I64","Int64Hooks","LSAppendDataTraceAddonStoredProcedure","LSAuthorityLevel","LSFactory","LSIntEnum","LSMailboxType","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSOptimisticSendMessageV2StoredProcedure","LSShape","MWPActor.react","MWPReplyContext.react","MessagePowerUp","MultipleTabsLogger","asyncToGeneratorRuntime","gkx","react","useLSMessagingInitiatingSource"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(h||d("react")).useContext;function l(a,b,c){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){e!=null&&c("gkx")("2517")&&(yield c("LSAppendDataTraceAddonStoredProcedure")(c("LSFactory")(a),{checkPointId:d("ArmadilloDataTraceCheckPoint").armadilloTlcControlOpenThread,dataTraceId:e,syncChannel:(i||(i=d("I64"))).minus_one,tags:b}))});return m.apply(this,arguments)}function a(a){var e=a.authorityLevel,f=a.onOptimisticMessageCreation,g=a.skipUrlPreviewGen,h=a.threadKey,m=a.threadType,n=d("MWPActor.react").useActor();a=k(d("MWPReplyContext.react").MWPReplyContext);var o=a.reply,p=c("useLSMessagingInitiatingSource")();return d("Int64Hooks").useCallbackInt64(function(a){var k=a.afterSend,q=a.attributionAppId,r=a.dataTraceId,s=a.externalAttachmentUrl,t=a.hotEmojiSize,u=a.logSendPoint,v=a.mentionData,w=a.messageText,x=a.messageTypeParams,y=a.optimisticAttachmentPreview,z=a.platformToken,A=a.profileRanges,B=a.s2sInstanceKey,C=a.sendFirstMessageSeparately,D=C===void 0?!1:C,E=a.setupS2SLogging,F=a.source,G=a.stickerID;C=a.transaction;return H(C);function H(a){return I.apply(this,arguments)}function I(){I=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=c("LSFactory")(a),C=c("gkx")("7566");yield l(a,(i||(i=d("I64"))).to_string(h),r);a=(yield d("MultipleTabsLogger").hasMultipleTabs());var H=x.hasAttachment,I=x.hasGif,J=x.hasLinks,K=x.hasSticker,L=x.hasText;b=(yield c("LSOptimisticSendMessageV2StoredProcedure")(b,{extraSendMessageParams:d("LSShape").ofRecord({attribution_app_id:q,calculate_denormalizations:!1,data_trace_id:(b=r)!=null?b:void 0,external_attachment_url:s,hot_emoji_size:t,initiating_source:p,mark_read:i.ge(e,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE)),mention_data:v,multitab_env:a,optimistic_attachment_preview:y,platform_token:z,power_up_style:j.ofNumber(c("MessagePowerUp").NONE),qpl_instance_key:B==null?void 0:B.toString(),reply_source_id:o==null?void 0:o.messageId,reply_source_type:o!=null?(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceType").MESSAGE):void 0,reply_source_type_v2:o!=null?(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").MESSAGE):void 0,skip_url_preview_gen:g,source:F,sticker_id:G,text_has_links:J&&C}),mailboxType:j.ofNumber(c("LSMailboxType").MESSENGER),senderId:n,text:w,threadKey:h,threadType:m}));u("create_optimistic_message_success");if(!H){a=b[0];E(a)}f!=null&&f({TAG:0,hasLink:J,hasMention:A!=null&&A.length>0,isGIF:I,isReply:!!(o&&o.messageId!==""),isSticker:K,isText:L,offlineThreadingId:b[0]});C=b[0];k!=null&&k(C);return D===!0?null:b});return I.apply(this,arguments)}},[h,p,e,o,g,n,m,f])}g["default"]=a}),98); __d("useMWV2SendOpenMessageImpl",["useMWV2SendOpenMessageImplShared"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.onOptimisticMessageCreation,d=a.skipUrlPreviewGen;a=a.thread;return c("useMWV2SendOpenMessageImplShared")({authorityLevel:a.authorityLevel,onOptimisticMessageCreation:b,skipUrlPreviewGen:d,threadKey:a.threadKey,threadType:a.threadType})}g["default"]=a}),98); __d("MWPSendMessageLogger",["requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("MWLogSend").__setRef("MWPSendMessageLogger");function a(a,b,c,d,e,f,g,i){h.onReady(function(h){return h.log({actor:c,attachmentFbids:e,attachmentType:g,backend:0,hasReply:i,offlineThreadingId:d,sendType:0,source:f,threadKey:a,threadType:b})})}g.log=a}),98); __d("useMWV2SendOpenStagedMedia",["ArmadilloDataTraceCheckPoint","I64","Int64Hooks","LSAppendDataTraceAddonStoredProcedure","LSFactory","LSGenerateTraceId","LSInsertNewMediaSendStoredProcedure","LSIntEnum","LSLocalApplyOptimisticMessageWithAttachmentsStoredProcedure","LSMarkSubJobCompletedV2StoredProcedure","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSMessagingThreadTypeUtil","LSShape","LSThreadBitOffset","LSVec","MWConsole","MWMediaTraceHandler","MWPActor.react","MWPComposerMediaUploadUtil","MWPOpenComposerUtils","MWPReplyContext.react","MWPSendMessageLogger","MessagingLoggingUtils","MessengerWebEventsFalcoEvent","asyncToGeneratorRuntime","gkx","react","updateAndFlushLSDataTrace","useLSMessagingInitiatingSource"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(h||d("react")).useContext;function l(a,b,c,d){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c,e){b!=null&&(yield d("MWMediaTraceHandler").logMediaSendStart(a,b,c,(i||(i=d("I64"))).of_int32(e)))});return m.apply(this,arguments)}function n(a,b,c){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){e!=null&&c("gkx")("2517")&&(yield c("LSAppendDataTraceAddonStoredProcedure")(c("LSFactory")(a),{checkPointId:d("ArmadilloDataTraceCheckPoint").armadilloTlcControlOpenThread,dataTraceId:e,syncChannel:(i||(i=d("I64"))).minus_one,tags:b}))});return o.apply(this,arguments)}function a(a){var e=a.onOptimisticMessageCreation,f=a.thread,g=d("MWPActor.react").useActor();a=k(d("MWPReplyContext.react").MWPReplyContext);var h=a.reply,m=c("useLSMessagingInitiatingSource")(),o=d("LSThreadBitOffset").has(40,f);return d("Int64Hooks").useCallbackInt64(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.firstAttachmentTypeContents,k=a.isFirstMessage;k=k===void 0?!1:k;var p=a.isFirstMessageText,q=a.mediaStagings,r=a.sendFirstMessageSeparately;r=r===void 0?!1:r;var s=a.setupS2SLogging,t=a.source,u=a.transaction,v=c("LSFactory")(u);a={contents:b};b=q[0];if(q.length===0){d("MWPSendMessageLogger").log(f.threadKey,f.threadType,g,void 0,[],t,a.contents,h!=null);return}var w={contents:!0};a.contents=d("MessagingLoggingUtils").convertI64ToAttachmentType(b.attachmentType);b=d("MWPComposerMediaUploadUtil").createPartitionedAttachments(q,o);for(var x=0;x=b.previewHeight?{previewHeight:(i||(i=d("I64"))).of_float(c),previewWidth:i.of_float(b.previewWidth)}:{previewHeight:(i||(i=d("I64"))).of_float(b.previewHeight),previewWidth:i.of_float(a.previewWidth*b.previewHeight/a.previewHeight)}}function a(a,b,c){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f){var g=(yield (k||(k=b("Promise"))).all(e.map(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a[0];a=a[1];var e=URL.createObjectURL(b),g;c("justknobx")._("1704")===!0&&b.type.includes("video/")?g=(yield m(e)):g=(yield l(e));return[{attachmentType:d("MWPComposerMediaUploadUtil").getAttachmentType(b),durationMs:void 0,fbid:void 0,filename:b.name,fileSize:(i||(i=d("I64"))).of_int32(b.size),hasError:!1,isSent:!1,mailboxType:(j||(j=d("LSIntEnum"))).ofNumber(c("LSMailboxType").MESSENGER),mimeType:b.type,offlineAttachmentId:a,offlineThreadingId:void 0,previewUrl:e,progress:0,threadKey:f},g]});return function(b){return a.apply(this,arguments)}}())));yield a.runInTransaction(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var c=(yield a.table("sync_groups").get((i||(i=d("I64"))).of_float(1))),e;if((c==null?void 0:c.syncParams)!=null){c=JSON.parse(c.syncParams);var f=c.preview_height;c=c.preview_width;e={previewHeight:f,previewWidth:c}}yield (k||(k=b("Promise"))).all(g.map(function(b){var c=b[0];b=b[1];return a.table("media_staging").add(babelHelpers["extends"]({},c,n(b,e)))}))});return function(b){return a.apply(this,arguments)}}(),"readwrite")});return o.apply(this,arguments)}function e(a,b){return a.runInTransaction(function(a){return a.table("media_staging")["delete"](b)},"readwrite")}function p(a){var b=(h||(h=c("useReStore")))();return d("ReQLSuspense").useArray(function(){return d("MWPreloadableQueries").getMediaStagingQuery(b,a.threadKey)},[b,a.threadKey],f.id+":167")}g.insertMediaStaging=a;g.deleteMediaStaging=e;g.useMediaStaging=p}),98); __d("MWMediaManager",["FBLogger","I64","LSMessagingThreadTypeUtil","MWChatFilePreProcessingErrorDialog.react","MWChatFileUploadErrorDialog.react","MWPActor.react","MWSharedMediaManagerUtils","Promise","cr:6986","emptyFunction","gkx","promiseDone","requireDeferred","useMWXAlertDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=c("requireDeferred")("MWOpenMediaManagerUtils").__setRef("MWMediaManager"),l=function(){if(b("cr:6986")==null){c("FBLogger")("messenger_web_product").warn("Unsupported thread type for media upload");return(j||(j=b("Promise"))).resolve(null)}return b("cr:6986").load()},m=c("gkx")("1147754")?75:25;function n(a,c){if(c)return l().then(function(c){return(c=c==null?void 0:c.preprocess(a))!=null?c:(j||(j=b("Promise"))).resolve([])});else return k.load().then(function(b){return b.preprocess(a)})}function o(a,b,c){for(var d=0;df*1024*1024)return f}return null}function a(a){var e=a.chatSupportUserId,f=a.chatSupportUserNonce,g=a.getMaxAttachmentSizeInMB,p=g===void 0?function(){return m}:g,q=a.isChatSupportUser,r=a.onUploadFailure,s=a.onUploadStart,t=a.onUploadSuccess,u=a.showUploadFailureToast,v=a.thread,w=(i||(i=c("useReStore")))(),x=c("useMWXAlertDialog")({onClose:c("emptyFunction")}),y=d("LSMessagingThreadTypeUtil").isSecure(v.threadType),z=d("MWSharedMediaManagerUtils").useMediaStaging(v),A=d("MWPActor.react").useActor();g=function(a){var g=o(a,y,p);if(g!=null){x(d("MWChatFileUploadErrorDialog.react").maxFileSizeExceeded(g),c("emptyFunction"));return}c("promiseDone")(n(a,y)["catch"](function(){x(d("MWChatFilePreProcessingErrorDialog.react").invalidFileFormat,c("emptyFunction"));return(j||(j=b("Promise"))).resolve([])}).then(function(a){c("promiseDone")(d("MWSharedMediaManagerUtils").insertMediaStaging(w,a,v.threadKey));var b=v.threadKey;return y?l().then(function(c){return c==null?void 0:c.upload(w,b,a)}):k.load().then(function(c){return c.upload(w,b,a,u,s,t,r,q,e,f,(h||(h=d("I64"))).to_string(A))})}))};a=function(a){c("promiseDone")(d("MWSharedMediaManagerUtils").deleteMediaStaging(w,a).then(function(){if(y&&b("cr:6986")!=null)return b("cr:6986").load().then(function(b){b.MAWMediaManagerAttachments["delete"](a)})}))};var B=function(){var a=z.map(function(a){return a.offlineAttachmentId});a.forEach(function(a){d("MWSharedMediaManagerUtils").deleteMediaStaging(w,a)["catch"](function(a){c("FBLogger")("MWMediaManager").catching(a).mustfix("Error deletting media staging.")})});y&&b("cr:6986")!=null&&c("promiseDone")(b("cr:6986").load().then(function(b){b.clearAttachments(a)}))};return{handleFileRemove:a,handleFileSelect:g,mediaStaging:z,resetAttachments:B}}g.useMediaManager=a}),98); __d("useMWV2FileDropzoneRegisterHandler",["MWV2FileDropzone.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useContext,j=b.useEffect;function a(a){var b=i(d("MWV2FileDropzone.react").mWV2FileDropzoneContext);j(function(){var c={enabled:!0,handler:a};b.current=c;return function(){c.enabled=!1,c.handler=null}},[b,a])}g["default"]=a}),98); __d("MWV2MediaViewerFallback.react",["fbt","MWV2MediaViewerContainer.react","MWXCircleButton.react","MWXIconCross","MWXRow.react","MWXRowItem.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.onClose;a=a.shouldShowMessengerLogo;return j.jsx(c("MWV2MediaViewerContainer.react"),{actions:j.jsx(c("MWXRow.react"),{paddingTop:0,spacing:8,children:j.jsx(c("MWXRowItem.react"),{children:j.jsx(c("MWXCircleButton.react"),{color:"white",icon:c("MWXIconCross"),label:h._("__JHASH__tnRfHlva-bL__JHASH__"),onPress:b,size:36,type:"dark-overlay"})})}),shouldShowMessengerLogo:a,children:null})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWV2MediaViewerShowDialog",["JSResourceForInteraction","MWV2MediaViewerFallback.react","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect;function k(a){return i.jsx(c("MWV2MediaViewerFallback.react"),{onClose:a})}k.displayName=k.name+" [from "+f.id+"]";function a(a){var b=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWV2MediaViewer.react").__setRef("useMWV2MediaViewerShowDialog"),k),d=b[0],e=b[1];j(function(){a||e()},[e,a]);return[d,e]}g["default"]=a}),98); __d("XCometMessengerMediaControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/messenger_media/",Object.freeze({}),void 0);b=a;g["default"]=b}),98); __d("useMWV2MediaViewerURL",["I64","Int64Hooks","LSIntEnum","MessagingAttachmentType","XCometMessengerMediaControllerRouteBuilder","XCometMessengerPhotoControllerRouteBuilder","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){return d("Int64Hooks").useMemoInt64(function(){var b=(h||(h=d("I64"))).equal(a.attachmentType,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE));return b&&c("gkx")("9571")===!1?c("XCometMessengerPhotoControllerRouteBuilder").buildURL({fbid:a.attachmentFbid,message_id:a.messageId,photo_ids:void 0}):c("XCometMessengerMediaControllerRouteBuilder").buildURL({attachment_id:a.attachmentFbid,message_id:a.messageId,thread_id:h.to_string(a.threadKey)})},[a.threadKey,a.attachmentType,a.messageId,a.attachmentFbid])}g["default"]=a}),98); __d("MWV2MessageActionsVisibility.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useRef;function a(){return i(function(){})}g.useStopHoveringRef=a}),98); __d("MWEditedEyebrow.react",["fbt","CometMiddot.react","MessengerWebUXLogger","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var b=a.hasSeparator;a=a.xstyle;var d=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useImpressionLoggerRef({eventName:"edit_eyebrow_impression"}),e=h._("__JHASH__Mh0-kan22Pe__JHASH__");return k.jsxs(k.Fragment,{children:[b&&k.jsx("span",{className:(i||(i=c("stylex")))(a),children:k.jsx(c("CometMiddot.react"),{})}),k.jsx("span",{"data-testid":void 0,ref:d,children:e})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWMessageUnsentTimestampText.react",["fbt","I64","MercuryTimestamp","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react");function a(a){var b=a.timestampMs;a=a.unsentTimestampMs;return k.jsxs("div",{children:[k.jsx("div",{children:h._("__JHASH__L93MxMH-RPL__JHASH__",[h._param("time",d("MercuryTimestamp").getPreciseTimestamp((j||(j=d("I64"))).to_float(b)))])}),k.jsx("div",{children:c("gkx")("1531920")?h._("__JHASH__6L85PWgp0uQ__JHASH__",[h._param("time",d("MercuryTimestamp").getPreciseTimestamp((j||(j=d("I64"))).to_float(a)))]):h._("__JHASH__exEcskNfDMO__JHASH__",[h._param("time",d("MercuryTimestamp").getPreciseTimestamp((j||(j=d("I64"))).to_float(a)))])})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2MessageIsEmojiOnly",["EmojiRenderer","EmoticonRenderer","cr:2472","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h=/^[ \r\n\s]*$/;function a(a,e){if(a==null)return!1;var f=b("cr:2472")==null?a:b("cr:2472").unvault(a);a=d("EmojiRenderer").parse(f).map(function(a){return{length:a.length,offset:a.offset}});var g=c("gkx")("1839834");g=g?e?d("EmoticonRenderer").parse(f).map(function(a){return{length:a.chars.length,offset:a.offset}}):[]:[];e=a.concat(g);if(e.length===0)return!1;a=e.sort(function(a,b){return a.offset-b.offset|0});var i={contents:0},j={contents:0};g=a.some(function(a){i.contents===a.offset?(i.contents=i.contents+a.length|0,j.contents=i.contents):j.contents=a.offset;var b=f.substring(i.contents,j.contents);i.contents=a.offset+a.length|0;return h.test(b)===!1});e=i.contents!==f.length&&!h.test(f.substring(j.contents));if(g)return!1;else return!e}g["default"]=a}),98); __d("MWV2MessageTimestampTooltip.react",["fbt","I64","LSIntEnum","MWMessageUnsentTimestampText.react","MWXTooltip.react","MercuryTimestamp","cr:1654","cr:6194","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||(i=d("react")),m=i.useMemo;function n(a){a=a.ts;return l.jsx("div",{children:a!=null?"Uploaded to EB: "+a:null})}n.displayName=n.name+" [from "+f.id+"]";function o(a){a=a.ts;return l.jsx("div",{children:a!=null&&a>0?"Send Latency: "+a.toString()+"ms":null})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var e=a.children,f=a.message,g=b("cr:1654")==null?void 0:b("cr:1654")(f.messageId),i=b("cr:6194")==null?void 0:b("cr:6194")(f.messageId);a=m(function(){var a=f.isUnsent,b=f.unsentTimestampMs;if((j||(j=d("I64"))).equal(f.displayedContentTypes,(k||(k=d("LSIntEnum"))).ofNumber(65536))){var e=h._("__JHASH__OwAZycr4-8G__JHASH__");return[e,e]}if(b!=null&&a)return[l.jsx(c("MWMessageUnsentTimestampText.react"),{timestampMs:f.timestampMs,unsentTimestampMs:b}),h._("__JHASH__8eZEd_EeDsx__JHASH__")];e=h._("__JHASH__GNnexJRNZQN__JHASH__",[h._param("time",d("MercuryTimestamp").getPreciseTimestamp((j||(j=d("I64"))).to_float(f.timestampMs)))]);return[l.jsxs("div",{children:[l.jsx(o,{ts:g}),l.jsx(n,{ts:i}),l.jsx("div",{children:e})]}),e]},[f,g,i]);var p=a[0];a=a[1];return l.jsx(c("MWXTooltip.react"),{align:"middle",label:a,position:"start",tooltip:p,children:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("usePinnedTextAnimation",["react","useDebouncedValue"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useRef,k=b.useState,l={mountAnimation:{animationDuration:"x5hsz1j",animationName:"x127lhb5",animationTimingFunction:"x4hg4is",$$css:!0},unmountAnimation:{animationDuration:"x5hsz1j",animationFillMode:"x10e4vud",animationName:"xvma63k",animationTimingFunction:"x4hg4is",$$css:!0}};function a(a){var b=k(!1),d=b[0],e=b[1],f=j(a);i(function(){a!==f.current&&e(!0),f.current=a},[a]);return{mountAnimation:d?l.mountAnimation:null,shouldShow:c("useDebouncedValue")(a,200),unmountAnimation:l.unmountAnimation}}g["default"]=a}),98); __d("MAWMessageRetryButton.react",["fbt","MAWBridgeFireAndForget","MAWDbMsg","MWXButton.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){a=a.message;var b=d("MAWDbMsg").toMsgId(a.messageId);return b!=null&&j.jsx(c("MWXButton.react"),{label:h._("__JHASH__0lUI7bmWtlT__JHASH__"),onPress:function(){return d("MAWBridgeFireAndForget").fireAndForget("backend","retryUploadMedia",{msgId:b})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWAdminViewLogins.react",["fbt","JSResourceForInteraction","MWPBumpEntityKey","MWXPressable.react","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={content:{color:"xz94kzr",cursor:"x1ypdohk",display:"x1rg5ohu",fontWeight:"xo1l8bm",marginStart:"xsgj6o6",marginLeft:null,marginRight:null,$$css:!0}};function a(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MAWTrustedLoginsDialog.react").__setRef("MAWAdminViewLogins.react")),b=a[0];return j.jsx(c("MWXPressable.react"),{onPress:function(){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.sidebar","trusted_logins");return b({},function(){})},xstyle:k.content,children:h._("__JHASH__D2IrBdmxyUD__JHASH__").toString()})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMAWQPLLogger",["QPLUserFlow","Random","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useMemo;function a(a){return i(function(){return{addQPLAnnotations:function(b,d){c("QPLUserFlow").addAnnotations(a,d,{instanceKey:b})},markQPLFailure:function(b,d){c("QPLUserFlow").endFailure(a,d.name,{error:d,instanceKey:b})},markQPLPoint:function(b,d,e){c("QPLUserFlow").addPoint(a,d,{debugInfo:e,instanceKey:b})},markQPLStart:function(){var b=Date.now()+(Math.round(d("Random").random()*1e4)+1e4);c("QPLUserFlow").start(a,{instanceKey:b});return b},markQPLSuccess:function(b){c("QPLUserFlow").endSuccess(a,{instanceKey:b})}}},[a])}g.useMAWQPLLogger=a}),98); __d("MAWFetchMoreMessages",["I64","LSFactory","LSIssueMessagesRangeQueryStoredProcedure","MAWBridgeSendAndReceive","MAWDbMsg","MAWInternalLog","MAWMiActOnActThreadReady","MWEncryptedBackupsIssueRangeQueryDeferred","Promise","ReQL","ReQLSuspense","gkx","promiseDone","qpl","react","useMAWQPLLogger","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;a=k||d("react");var l=a.useCallback,m=a.useMemo;e={useFetchCutoverMessages:function(a,e,g){var k=(j||(j=c("useReStore")))(),m=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(k.table("messages_ranges_v2__generated")).getKeyRange(a)},[k,a],f.id+":44"),n=d("ReQLSuspense").useFirst(function(){return e!=null?d("ReQL").fromTableAscending(k.table("messages_ranges_v2__generated")).getKeyRange(e):d("ReQL").empty()},[k,e],f.id+":51"),o=l(function(a){c("promiseDone")(k.runInTransaction(function(d){if(e!=null&&n!=null)return c("LSIssueMessagesRangeQueryStoredProcedure")(c("LSFactory")(d),{direction:a,referenceTimestampMs:n.minTimestampMs,threadKey:e});else return(h||(h=b("Promise"))).resolve()},"readwrite"))},[k,n,e]);return l(function(b){if(m==null)return;var e=m.hasMoreBefore,f=d("MAWDbMsg").toMsgId(m.minMessageId);c("promiseDone")(d("MAWMiActOnActThreadReady").onActThreadReady(k,a,"MAWFetchMoreMessages",function(a,c,g){d("MAWInternalLog").internalLog("useFetchCutoverMessages: start loadMoreMsgs");return d("MAWBridgeSendAndReceive").sendAndReceive("backend","loadMoreMsgs",{direction:"before",numMsgs:10,offsetMsgId:f,threadId:c}).then(function(a){d("MAWInternalLog").internalLog("useFetchCutoverMessages: response is "+a.hasMoreBefore.toString());if(a.hasMoreBefore)return;return d("MAWBridgeSendAndReceive").sendAndReceive("backend","getMaybeNextNonAdminMsgSortOrderMs",{mayBeAdminMsgId:f,threadId:c}).then(function(a){d("MWEncryptedBackupsIssueRangeQueryDeferred").issueRangeQueryDeferred({db:k,newerNumMessages:(i||(i=d("I64"))).zero,numMessages:i.of_string("10"),sortOrderMs:i.of_float(a.minMsgTimestampMs),threadId:c});if(!e)return o(b)})})}))},[m,k,a,o])},useFetchSecureMessages:function(a){var e=(j||(j=c("useReStore")))(),f=d("useMAWQPLLogger").useMAWQPLLogger(c("qpl")._(25303796,"1974")),g=f.addQPLAnnotations,k=f.markQPLFailure,l=f.markQPLPoint,n=f.markQPLStart,o=f.markQPLSuccess;return m(function(){return function(f,j,m){var p=n();function q(a){l(p,"load_more_msgs_success","successfully loaded messages from worker"),g(p,a)}d("MAWInternalLog").internalLog("useFetchSecureMessages: started to get message range");l(p,"before_start_load_more_msgs","before fetching messages range from table");g(p,{string:babelHelpers["extends"]({direction:m,thread_id:(i||(i=d("I64"))).to_string(j)},a!=null?{thread_type:(i||(i=d("I64"))).to_string(a)}:{})});return d("ReQL").firstAsync(d("ReQL").fromTableAscending(e.table("messages_ranges_v2__generated")).getKeyRange(j)).then(function(a){if(a!=null&&!a.isLoadingBefore&&m==="before"){l(p,"start_load_more_msgs","starting the load more QPL event");return d("MAWMiActOnActThreadReady").onActThreadReady(e,j,"MAWFetchMoreMessages",function(b,g,h){d("MAWInternalLog").internalLog("useFetchSecureMessages: put message range");l(p,"put_message_range","put txn in messages_ranges_v2__generated table");return f.table("messages_ranges_v2__generated").put({hasMoreAfter:a.hasMoreAfter,hasMoreBefore:a.hasMoreBefore,isLoadingAfter:a.isLoadingAfter,isLoadingBefore:!0,maxMessageId:a.maxMessageId,maxTimestampMs:a.maxTimestampMs,minMessageId:a.minMessageId,minTimestampMs:a.minTimestampMs,threadKey:a.threadKey}).then(function(){d("MAWInternalLog").internalLog("useFetchSecureMessages: loadMoreMsgs started"),l(p,"send_loadMoreMsgs_to_backend","calling backend with loadMoreMsgs"),c("promiseDone")(d("MAWBridgeSendAndReceive").sendAndReceive("backend","loadMoreMsgs",{direction:m,numMsgs:10,offsetMsgId:d("MAWDbMsg").toMsgId(a.minMessageId),threadId:g}).then(function(b){d("MAWInternalLog").internalLog("useFetchSecureMessages: response is "+b.hasMoreBefore.toString());q({bool:{hasMoreBefore:b.hasMoreBefore}});if(b.hasMoreBefore){o(p);return}return d("MAWBridgeSendAndReceive").sendAndReceive("backend","getMaybeNextNonAdminMsgSortOrderMs",{mayBeAdminMsgId:d("MAWDbMsg").toMsgId(a.minMessageId),threadId:g}).then(function(a){d("MAWInternalLog").internalLog("useFetchSecureMessages: minMsgSortOrderTsResponse "+a.minMsgTimestampMs);l(p,"issued_range_query","useFetchSecureMessages: minMsgSortOrderTsResponse "+a.minMsgTimestampMs);o(p);return d("MWEncryptedBackupsIssueRangeQueryDeferred").issueRangeQueryDeferred({db:e,newerNumMessages:(i||(i=d("I64"))).zero,numMessages:i.of_string("10"),sortOrderMs:i.of_float(a.minMsgTimestampMs),threadId:g})})}))})})["catch"](function(a){k(p,a)})}if(c("gkx")("8830")&&a!=null&&!a.isLoadingAfter&&m==="after"){l(p,"start_load_more_msgs","starting the load more QPL event");return d("MAWMiActOnActThreadReady").onActThreadReady(e,j,"MAWFetchMoreMessages",function(b,e,g){d("MAWInternalLog").internalLog("useFetchSecureMessages: put message range");return f.table("messages_ranges_v2__generated").put({hasMoreAfter:a.hasMoreAfter,hasMoreBefore:a.hasMoreBefore,isLoadingAfter:!0,isLoadingBefore:a.isLoadingBefore,maxMessageId:a.maxMessageId,maxTimestampMs:a.maxTimestampMs,minMessageId:a.minMessageId,minTimestampMs:a.minTimestampMs,threadKey:a.threadKey}).then(function(){d("MAWInternalLog").internalLog("useFetchSecureMessages: loadMoreMsgs started"),l(p,"send_loadMoreMsgs_to_backend","useFetchSecureMessages: loadMoreMsgs started"),c("promiseDone")(d("MAWBridgeSendAndReceive").sendAndReceive("backend","loadMoreMsgs",{direction:"after",numMsgs:10,offsetMsgId:d("MAWDbMsg").toMsgId(a.maxMessageId),threadId:e}).then(function(a){q({bool:{hasMoreAfter:a.hasMoreAfter}}),d("MAWInternalLog").internalLog("useFetchSecureMessages: response is "+a.hasMoreAfter.toString())})["catch"](function(a){k(p,a)}))})})["catch"](function(a){k(p,a)})}g(p,{bool:{isLoadingAfter:a==null?void 0:a.isLoadingAfter,isLoadingBefore:a==null?void 0:a.isLoadingBefore}});l(p,"already_loading_messages","end the load more QPL event.");o(p);return(h||(h=b("Promise"))).resolve()})["catch"](function(a){k(p,a)})}},[g,e,k,l,n,o,a])}};a=e;g["default"]=a}),98); __d("MAWHotLike.react",["MWPColorUtils","MessengerHotLikeSVGReact.bs","react","stylex","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={likePreview:{display:"x78zum5","float":"x1guec7k",height:"x1dnml7z",width:"x7tvc40",$$css:!0},noCustomLikePreview:{display:"x78zum5",justifyContent:"xl56j7k",$$css:!0}};function a(a){a=a.xstyle;var b=c("useMWPThreadTheme")();b=b.threadTheme;b=d("MWPColorUtils").int64ToHex(b.fallbackColor);return j.jsx("div",{className:(h||(h=c("stylex")))(k.likePreview,k.noCustomLikePreview,a),children:j.jsx(d("MessengerHotLikeSVGReact.bs").MessengerHotLikeSVGReact,{color:b})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWEphemeralMessageTimer.react",["fbt","CometScreenReaderText.react","I64","MAWEphemeralConsts","MWXText.react","WATimeUtils","react","setTimeout"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||(i=d("react"));b=i;var l=b.useEffect,m=b.useState;function n(a){if(a(j||(j=d("I64"))).to_int32(b)?(j||(j=d("I64"))).to_int32(b):a}function a(a){var b=a.ephemeralDurationInSec,e=a.expirationTimestamp;a=m(function(){return o(e,b)});var f=a[0],g=a[1];a=n(f);var i=h._("__JHASH__LNXEmV_oB6W__JHASH__",[h._param("time",a)]);l(function(){f>0&&c("setTimeout")(function(){return g(f-1)},d("MAWEphemeralConsts").msPerSec)},[f,e]);return f>0?k.jsxs("div",{className:"x2b8uid xbkr7qi",children:[k.jsx(c("CometScreenReaderText.react"),{text:i}),k.jsx("div",{"aria-hidden":!0,children:k.jsx(c("MWXText.react"),{testid:void 0,type:"meta1",children:a})})]}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWEphemeralAdminMsgCta.react",["CometTextWithEntities.react","JSResourceForInteraction","MWXPressable.react","QPLUserFlow","qpl","react","useMWXLazyDialog","useThreadJid"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("JSResourceForInteraction")("MAWEphemeralSettingsDialog.react").__setRef("MAWEphemeralAdminMsgCta.react");function a(a){var b=a.threadKey;a=a.title;var d=c("useThreadJid")(b),e={getThreadJid:d,threadKey:b};d=c("useMWXLazyDialog")(j);var f=d[0],g=function(){c("QPLUserFlow").start(c("qpl")._(1056845690,"2034"),{annotations:{string:{action_type:"change_ephemeral_message_duration"}}}),f(e)};return i.jsx(c("MWXPressable.react"),{onPress:function(){return g()},children:i.jsx(c("CometTextWithEntities.react"),{text:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPAudioPlayerIcons.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.color;return i.jsx("svg",{"aria-hidden":!0,height:"24px",viewBox:"0 0 36 36",width:"24px",children:i.jsx("path",{d:"M10 25.5v-15a1.5 1.5 0 012.17-1.34l15 7.5a1.5 1.5 0 010 2.68l-15 7.5A1.5 1.5 0 0110 25.5z",fill:a})})}a.displayName=a.name+" [from "+f.id+"]";function b(a){a=a.color;return i.jsx("svg",{"aria-hidden":!0,height:"24px",viewBox:"0 0 36 36",width:"24px",children:i.jsx("rect",{fill:a,height:"18",rx:"2",width:"18",x:"9",y:"9"})})}b.displayName=b.name+" [from "+f.id+"]";function c(a){a=a.color;return i.jsx("svg",{"aria-hidden":!0,height:"24px",viewBox:"0 0 36 36",width:"24px",children:i.jsx("path",{d:"M11 8.5c-.83 0-1.5.67-1.5 1.5v16c0 .83.67 1.5 1.5 1.5h4c.83 0 1.5-.67 1.5-1.5V10c0-.83-.67-1.5-1.5-1.5h-4zM21 8.5c-.83 0-1.5.67-1.5 1.5v16c0 .83.67 1.5 1.5 1.5h4c.83 0 1.5-.67 1.5-1.5V10c0-.83-.67-1.5-1.5-1.5h-4z",fill:a})})}c.displayName=c.name+" [from "+f.id+"]";g.PlayIcon=a;g.StopIcon=b;g.PauseIcon=c}),98); __d("MWPAudioPlaybackThreadContext.react",["I64","Int64Hooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react"));c=h;e=c.createContext;var k=c.useContext;c={threadKey:(i||(i=d("I64"))).zero};var l=e(c);function a(){return k(l).threadKey}function b(a){var b=a.children,c=a.threadKey;a=d("Int64Hooks").useMemoInt64(function(){return{threadKey:c}},[c]);return j.jsx(l.Provider,{value:a,children:b})}b.displayName=b.name+" [from "+f.id+"]";g.useMWPAudioPlaybackThreadKey=a;g.MWPAudioPlaybackThreadContextProvider=b}),98); __d("MWPAudioPlaybackContext.react",["fbt","$InternalEnum","I64","Int64Hooks","MWPAudioPlaybackThreadContext.react","ReQL","ReQLSuspense","bx","emptyFunction","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||(j=d("react")),m=j,n=m.createContext,o=m.useCallback,p=m.useContext,q=m.useEffect,r=m.useMemo,s=m.useRef,t=m.useState,u=b("$InternalEnum")({SLOW:.5,NORMAL:1,FAST:1.5,DOUBLE:2});function v(a){var b=new Audio();b.preload="auto";b.src=a;b.load();return b}function w(){return v(c("bx").getURL(c("bx")("577")))}function x(a){var b=Array.from(u.members()),c=b.findIndex(function(b){return b===a});c=c+1;return b[c%b.length]}function y(a){return h._("__JHASH__T0e3ZJkGlxz__JHASH__",[h._param("playback rate",a,[0])])}y.displayName=y.name+" [from "+f.id+"]";m={activeAudio:null,activeThreadKey:(k||(k=d("I64"))).zero,addNextPlayableUrl:c("emptyFunction"),clearActiveAudio:c("emptyFunction"),getNewOrExistingAudio:v,onChangePlaybackRate:c("emptyFunction"),playbackRateLabel:y(u.NORMAL),setUseOutOfChatPlayback:c("emptyFunction")};var z=n(m);function a(a,b,c){var e=p(z),f=e.activeAudio,g=e.activeThreadKey,h=e.addNextPlayableUrl,i=e.getNewOrExistingAudio,j=e.setUseOutOfChatPlayback,l=d("MWPAudioPlaybackThreadContext.react").useMWPAudioPlaybackThreadKey();d("Int64Hooks").useEffectInt64(function(){if(!c||(k||(k=d("I64"))).is_zero(g)||(k||(k=d("I64"))).is_zero(l))return;j(!(k||(k=d("I64"))).equal(g,l));return function(){j((k||(k=d("I64"))).equal(g,l))}},[f,g,j,c,l]);return d("Int64Hooks").useMemoInt64(function(){if(a!=null&&a!==""){if(!c)return v(a);b!=null&&b!==""&&h(a,b);return i(a,l)}},[h,i,b,a,c,l])}function e(){var a=p(z),b=a.onChangePlaybackRate;a=a.playbackRateLabel;return[a,b]}function A(){var a=p(z),b=a.activeAudio,e=a.activeThreadKey;a=a.clearActiveAudio;var g=(i||(i=c("useReStore")))(),h=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableDescending(g.table("threads")).getKeyRange(e)},[g,e],f.id+":168");return[b,a,h]}function B(a){a=a.children;var b=s(new Map()),c=s(new Map()),e=s([]);q(function(){var a=e.current;return function(){while(a.length>0){var b=a.pop(),c=b[0],d=b[1];b=b[2];c.removeEventListener(d,b);c.pause()}}},[]);var f=t(u.NORMAL),g=f[0],h=f[1],i=r(function(){return y(g)},[g]);f=t((k||(k=d("I64"))).zero);var j=f[0],m=f[1];f=t(null);var n=f[0],p=f[1];f=t(!1);var A=f[0],B=f[1],C=(n==null?void 0:n.paused)===!1,D=r(function(){return A&&C?n:null},[n,C,A]),E=o(function(){p(function(a){a!=null&&a.pause();return null})},[]),F=o(function(a,d){var f,h=(f=b.current.get(a))!=null?f:v(a);h.playbackRate=g;f=function(a,b){h.addEventListener(a,b),e.current.push([h,a,b])};var i=function(){var d=c.current.get(a);if(d!=null){var e=b.current.get(d);if(e!=null&&e.paused)return void w().play().then(function(){p(e);return e.play()["catch"](function(){return p(null)})})}p(null)};f("ended",i);i=function(){for(var a=b.current.values(),c=Array.isArray(a),e=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(c){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;f!==h&&f.pause()}p(h);m(d)};f("playing",i);b.current.set(a,h);return h},[g]),G=o(function(){h(function(a){a=x(a);for(var c=b.current.values(),d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;f.playbackRate=a}return a})},[]),H=o(function(a,b){c.current.set(a,b)},[]);f=d("Int64Hooks").useMemoInt64(function(){return{activeAudio:D,activeThreadKey:j,addNextPlayableUrl:H,clearActiveAudio:E,getNewOrExistingAudio:F,onChangePlaybackRate:G,playbackRateLabel:i,setUseOutOfChatPlayback:B}},[D,j,H,E,F,G,i]);return l.jsx(z.Provider,{value:f,children:a})}B.displayName=B.name+" [from "+f.id+"]";g.useMWPAudioPlaybackElement=a;g.useMWPAudioPlaybackRate=e;g.useMWPAudioOutOfChatPlayback=A;g.MWPAudioPlaybackContextProvider=B}),98); __d("MWPAudioPlayerUtils",["fbt","$InternalEnum","MWPAudioPlaybackContext.react","cancelAnimationFrame","gkx","promiseDone","react","requestAnimationFrameAcrossTransitions","useStable"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i,l=k.createContext,m=k.useCallback,n=k.useContext,o=k.useEffect,p=k.useRef,q=k.useState,r=b("$InternalEnum").Mirrored(["PLAYER","RECORDER"]),s=l(r.PLAYER),t=c("gkx")("4435");function u(){var a=n(s);return t&&a===r.PLAYER}function a(a,b){if(b==null)return 0;b=b.getBoundingClientRect();var c=b.left;b=b.width;a=a.clientX-c;c=b>0&&a>0?a/b:0;return v(c,0,1)}function v(a,b,c){return Math.min(Math.max(b,a),c)}function e(a){var b=a.currentTime;a=a.duration;return j.jsx("div",{"aria-label":h._("__JHASH__cCPjPb_WWZb__JHASH__"),"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":b,role:"slider",style:{position:"absolute"},tabIndex:0})}e.displayName=e.name+" [from "+f.id+"]";function w(){var a=u();return a?{marginLeft:12,marginRight:12}:{marginLeft:6,marginRight:6}}function x(a){return m(function(b){var c=a.current;if(c!=null){b.stopPropagation();return c.updateHighlight(0)}},[a])}function y(a,b,d,e,f,g){f===void 0&&(f=!1);var h=p();o(function(){var d=function(a){var b=h.current;if(b!=null)return b.updateHighlight(a)};if(g){f?d(100):d(0);return}if(e){var i={contents:void 0},j,k=function e(f){var g;if(b.current!=null)g=b.current.currentTime/b.current.duration;else{var h=i.contents,k=0;h!=null?k=f-h:i.contents=f;g=k/(a*1e3)}h=Math.min(g*100,100);d(h);if(h<100){j=c("requestAnimationFrameAcrossTransitions")(e);return}};j=c("requestAnimationFrameAcrossTransitions")(k);return function(){j!=null&&c("cancelAnimationFrame")(j)}}if(b.current!=null){k=b.current.currentTime/b.current.duration;d(k*100)}},[a,e,g,h,b,f,d]);return h}var z=b("$InternalEnum").Mirrored(["ENDED","LOADING","NONE","PAUSED","PLAYING"]);function A(a,b,e,f,g){var h=u(),i=c("useStable")(function(){return e}),j=d("MWPAudioPlaybackContext.react").useMWPAudioPlaybackElement(a,b,h),k=p(j);a=q(z.NONE);var l=a[0],n=a[1];b=q(function(){var a;return(a=j==null?void 0:j.currentTime)!=null?a:0});a=b[0];var r=b[1];o(function(){if(j==null){n(z.NONE);return}j.ended&&n(z.ENDED);n(function(){return j.paused?z.PAUSED:z.PLAYING});r(j.currentTime);k.current=j},[j]);o(function(){var a=k.current;if(a==null)return;var b=function(){return n(z.PAUSED)},c=function(){return n(z.PLAYING)},d=function(){return n(z.LOADING)},e=function(){k.current!=null&&r(k.current.currentTime)},f=function(){k.current=a,b()},g=function(){k.current!=null&&(k.current.currentTime=0,r(0)),n(z.ENDED)};a.addEventListener("loadstart",d);a.addEventListener("canplay",f);a.addEventListener("timeupdate",e);a.addEventListener("playing",c);a.addEventListener("pause",b);a.addEventListener("ended",g);return function(){a.removeEventListener("loadstart",d),a.removeEventListener("canplay",f),a.removeEventListener("timeupdate",e),a.removeEventListener("playing",c),a.removeEventListener("pause",b),a.removeEventListener("ended",g),h||a.pause()}},[j,h]);b=m(function(){var a=k.current;if(a==null)return;switch(l){case z.NONE:case z.LOADING:return;case z.ENDED:case z.PAUSED:c("promiseDone")(a.play(),function(){return n(z.PLAYING)},i);return;case z.PLAYING:a.pause();n(z.PAUSED);return}},[i,l]);var s=m(function(a){var b=k.current;if(b==null)return;b.currentTime=a;r(a)},[]);return[l,a,k,b,y(g,k,a,l===z.PLAYING,f,l===z.ENDED),s]}function B(){var a=d("MWPAudioPlaybackContext.react").useMWPAudioOutOfChatPlayback(),b=a[0],e=a[1];a=a[2];var f=q(function(){if(b==null)return z.NONE;return b.ended?z.ENDED:b.paused?z.PAUSED:z.PLAYING}),g=f[0],h=f[1];f=q(function(){return b!=null?b.duration-b.currentTime:0});var i=f[0],j=f[1];o(function(){if(b==null)return;var a=function(){return j(b.duration-b.currentTime)},d=function(){return h(z.LOADING)},e=function(){return h(z.ENDED)};b.addEventListener("timeupdate",a);b.addEventListener("loadstart",d);b.addEventListener("ended",e);c("promiseDone")(b.play(),function(){return h(z.PLAYING)});return function(){b.removeEventListener("timeupdate",a),b.removeEventListener("loadstart",d),b.removeEventListener("ended",e)}},[b]);f=m(function(){if(b==null)return;switch(g){case z.NONE:case z.LOADING:return;case z.ENDED:case z.PAUSED:c("promiseDone")(b.play(),function(){return h(z.PLAYING)});return;case z.PLAYING:b.pause();h(z.PAUSED);return}},[b,g]);return[a,g===z.PLAYING,b!=null&&a!=null&&t,i,f,e]}g.UseCase=r;g.UseCaseContext=s;g.isEnabled=t;g.useShowNewUX=u;g.getMousePos=a;g.ScreenReaderLabel=e;g.usePlaybackButtonContainerStyle=w;g.useResetHighlightProgress=x;g.useProgressLiveUpdate=y;g.State=z;g.useControlCenter=A;g.useOutOfChatControlCenter=B}),98); __d("MWPAudioPlaybackIcon.react",["MWPAudioPlayerIcons.react","MWPAudioPlayerUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.backgroundColor,c=a.disabled,e=a.hasEnded,f=a.isPaused,g=a.isPlaying;a=a.outgoing;var h=d("MWPAudioPlayerUtils").useShowNewUX();h=h?a?"var(--always-white)":"var(--progress-ring-neutral-foreground)":a?b:void 0;if(g)return i.jsx(d("MWPAudioPlayerIcons.react").PauseIcon,{color:h});return f||e||c?i.jsx(d("MWPAudioPlayerIcons.react").PlayIcon,{color:h}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPAudioPlayerSharedStyles",[],(function(a,b,c,d,e,f,g){"use strict";a={bar:{backgroundColor:"x14hiurz",borderTopStartRadius:"x1inr27j",borderTopEndRadius:"x1vcqv9c",borderBottomEndRadius:"xfrm7hi",borderBottomStartRadius:"xpbad92",boxShadow:"x49dmcg",height:"xn3w4p2",position:"x10l6tqk",top:"xwa60dl",transform:"x1cb1t30",width:"x51ohtg",zIndex:"x1vjfegm",$$css:!0},common:{alignItems:"x6s0dn4",alignSelf:"xkh2ocl",display:"x78zum5",flexGrow:"x1iyjqo2",justifyContent:"x1qughib",$$css:!0},container:{alignItems:"x6s0dn4",display:"x78zum5",flexGrow:"x1iyjqo2",justifyContent:"x1qughib",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0},highlight:{height:"x5yr21d",position:"x10l6tqk",start:"x17qophe",left:null,right:null,top:"x13vifvy",width:"xh8yej3",$$css:!0},incomingWaveFormStyle:{fill:"x1f9y4dh",$$css:!0},mask:{height:"x5yr21d",position:"x10l6tqk",width:"xh8yej3",$$css:!0},outgoingWaveFormStyle:{fill:"xe3v8dz",$$css:!0},playbackButtonContainer:{marginStart:"x1mnrxsn",marginLeft:null,marginRight:null,marginEnd:"x1w0mnb",$$css:!0},pressable:{alignItems:"x6s0dn4",backgroundColor:"x14hiurz",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",display:"x78zum5",height:"xxk0z11",justifyContent:"xl56j7k",minWidth:"xnei2rj",$$css:!0},rightSideBottom:{backgroundColor:"x14hiurz",borderTopStartRadius:"xfj52jq",borderTopEndRadius:"xykzs3s",borderBottomEndRadius:"x17xv1ja",borderBottomStartRadius:"x1mvicbb",$$css:!0},rightSideImprove:{marginStart:"x16n37ib",marginLeft:null,marginRight:null,marginEnd:"xq8finb",width:"x1691je0",$$css:!0},rightSideMargin:{marginTop:"x1gslohp",$$css:!0},rightSideTop:{alignItems:"x6s0dn4",color:"x1a3ma36",display:"x78zum5",fontSize:"x1nxh6w3",fontWeight:"x1s688f",height:"xi0exxh",justifyContent:"xl56j7k",marginStart:"x1mnrxsn",marginLeft:null,marginRight:null,marginEnd:"x1w0mnb",position:"x1n2onr6",userSelect:"x87ps6o",width:"x1r9kitl",$$css:!0},scrubber:{alignItems:"x6s0dn4",display:"x78zum5",height:"x5yr21d",position:"x1n2onr6",width:"xh8yej3",zIndex:"x1vjfegm",$$css:!0},transparent:{height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",position:"x1n2onr6","::after_borderTopColor":"xipm1xi","::after_borderEndColor":"x24l0bi","::after_borderBottomColor":"x11usdlg","::after_borderStartColor":"xcukw63","::after_borderTopStartRadius":"xwuuf8d","::after_borderTopEndRadius":"xpd6q6o","::after_borderBottomEndRadius":"x1n6g0fn","::after_borderBottomStartRadius":"xu4xob7","::after_borderTopStyle":"xynf4tj","::after_borderEndStyle":"xdspwft","::after_borderBottomStyle":"x1r9ni5o","::after_borderStartStyle":"x1d52zm6","::after_borderTopWidth":"x1gnji40","::after_borderEndWidth":"xymhjbi","::after_borderBottomWidth":"x1ekxc0f","::after_borderStartWidth":"x5arhyh","::after_bottom":"x14apmda","::after_content":"x1s928wv","::after_display":"xhkezso","::after_end":"xhyvd7x","::after_left":null,"::after_right":null,"::after_pointerEvents":"x2q1x1w","::after_position":"x1j6awrg","::after_start":"x1aneyt","::after_top":"xso615a",$$css:!0},transparentBar:{backgroundColor:"xjbqb8w",borderTopStartRadius:"x1inr27j",borderTopEndRadius:"x1vcqv9c",borderBottomEndRadius:"xfrm7hi",borderBottomStartRadius:"xpbad92",boxShadow:"x49dmcg",height:"xn3w4p2",position:"x10l6tqk",top:"xwa60dl",transform:"x1cb1t30",width:"x51ohtg",zIndex:"x1vjfegm",$$css:!0},waveform:{height:"xn3w4p2",position:"x1n2onr6",width:"xh8yej3",$$css:!0}};g.styles=a}),98); __d("MWPAudioPlayerButtons.react",["MWPAudioPlaybackContext.react","MWPAudioPlayerSharedStyles","MWPAudioPlayerUtils","MWXPressable.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){a=a.outgoing;var b=d("MWPAudioPlayerUtils").useShowNewUX(),e=d("MWPAudioPlaybackContext.react").useMWPAudioPlaybackRate(),f=e[0];e=e[1];if(!b)return null;b=a?"var(--always-white)":"var(--progress-ring-neutral-foreground)";return j.jsx(c("MWXPressable.react"),{onPress:e,overlayDisabled:!0,children:j.jsx("div",{className:(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.rightSideTop,d("MWPAudioPlayerSharedStyles").styles.rightSideMargin,d("MWPAudioPlayerSharedStyles").styles.rightSideBottom,d("MWPAudioPlayerSharedStyles").styles.rightSideImprove),style:{backgroundColor:"var(--placeholder-text-on-media)",borderRadius:10,color:b},children:f})})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b=a.disabled,e=a.icon,f=a.label;a.onHoverMove;a=a.onPress;var g=d("MWPAudioPlayerUtils").useShowNewUX(),h=g?{backgroundColor:"transparent"}:{};return j.jsx(c("MWXPressable.react"),{"aria-label":f,disabled:b,onPress:a,overlayDisabled:g,overlayRadius:"50%",style:h,testid:void 0,xstyle:d("MWPAudioPlayerSharedStyles").styles.pressable,children:e})}b.displayName=b.name+" [from "+f.id+"]";g.PlaybackRateButton=a;g.AudioPlayerPlaybackButton=b}),98); __d("MWPAudioPlayerLabels",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";a=h._("__JHASH__KhMMxBdqg3x__JHASH__");b=h._("__JHASH__2rBFW-RfRDV__JHASH__");c=h._("__JHASH__IubwmxlTNhe__JHASH__");g.playLabel=a;g.stopLabel=b;g.pauseLabel=c}),98); __d("MWPAudioPlaybackButton.react",["MWPAudioPlaybackIcon.react","MWPAudioPlayerButtons.react","MWPAudioPlayerLabels","MWPAudioPlayerSharedStyles","MWPAudioPlayerUtils","MWXSpinner.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var b=a.isLoading,e=a.onPress,f=a.scrubberRef,g=a.backgroundColor,i=a.disabled,k=a.hasEnded,l=a.isPaused,m=a.isPlaying;a=a.outgoing;var n=d("MWPAudioPlayerUtils").usePlaybackButtonContainerStyle();f=d("MWPAudioPlayerUtils").useResetHighlightProgress(f);var o=m||l;return b?j.jsx("div",{className:(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.pressable),onMouseMove:o?f:void 0,style:n,children:j.jsx(c("MWXSpinner.react"),{color:"disabled",size:16})}):j.jsx("div",{onMouseMove:o?f:void 0,style:n,children:j.jsx(d("MWPAudioPlayerButtons.react").AudioPlayerPlaybackButton,{disabled:i,icon:j.jsx(c("MWPAudioPlaybackIcon.react"),{backgroundColor:g,disabled:i,hasEnded:k,isPaused:l,isPlaying:m,outgoing:a}),label:m?d("MWPAudioPlayerLabels").pauseLabel:d("MWPAudioPlayerLabels").playLabel,onPress:e})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPAudioPlayerContainer.react",["MWPAudioPlayerSharedStyles","MWPAudioPlayerUtils","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useRef;function a(a){var b=a.audioEl,e=a.children,f=a.hasScrubber,g=a.scrubberRef,i=a.style,l=a.testid;l=a.useCase;a=d("MWPAudioPlayerUtils").useShowNewUX();var m=k(),n=function(a){var c=b.current,e=m.current;c!=null&&e!=null&&Number.isFinite(c.duration)&&(c.currentTime=d("MWPAudioPlayerUtils").getMousePos(a,e)*c.duration)},o=function(a){if(m.current!=null&&g.current!=null)return g.current.updateHighlight(d("MWPAudioPlayerUtils").getMousePos(a,m.current)*100)},p=function(){if(g.current!=null)return g.current.updateHighlight(0)};i=babelHelpers["extends"]({cursor:f?"pointer":"default",height:a&&l===d("MWPAudioPlayerUtils").UseCase.PLAYER?70:36},i);a=f&&!a;return j.jsx(d("MWPAudioPlayerUtils").UseCaseContext.Provider,{value:l,children:j.jsx("div",{className:(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.container),"data-testid":void 0,onClick:a?n:void 0,onMouseLeave:f?p:void 0,onMouseMove:a?o:void 0,ref:m,style:i,children:e})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPAudioPlayerScrubberBar.react",["fbt","MWPAudioPlayerSharedStyles","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));b=j.forwardRef;e=b(a);function a(a,b){var e=a.currentTime,f=a.duration;a=a.xPosition;return k.jsx("div",{"aria-label":h._("__JHASH__cCPjPb_WWZb__JHASH__"),"aria-valuemax":f,"aria-valuemin":0,"aria-valuenow":e,className:(i||(i=c("stylex")))(e===0?d("MWPAudioPlayerSharedStyles").styles.transparentBar:d("MWPAudioPlayerSharedStyles").styles.bar),ref:b,role:"slider",style:{left:a.toFixed(2)+"%"}})}a.displayName=a.name+" [from "+f.id+"]";b=e;g["default"]=b}),98); __d("MWPAudioPlayerWaveform.react",["MWChatRecorderUtils","MWPAudioPlayerSharedStyles","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useLayoutEffect,l=b.useMemo,m=b.useRef,n=b.useState,o=Float32Array.of(.5,.1875,.375,.75,.5,1,1,.75,.25,.375,.75,1,1,.5,.75,1,.75,.75,.5,.25,.25,.375,.5,1,.75,.5,.5,.75,.25,.5,.75,1,.5,.25,.75),p=3,q=3,r=44,s=4;function t(a,b){var c=l(function(){return a==null||a===""?o:Float32Array.from(a.split(",").map(Number))},[a]);return l(function(){if(b<=0||c.length===0)return[];var a=Math.floor(b/(q*2));a=d("MWChatRecorderUtils").linearConversion(d("MWChatRecorderUtils").computeWaveformAmplitudes(c,a),s,r);return a.map(function(a,b){a=Math.ceil(a);var c=p,d=q;b=b*q*2;var e="calc(50% - "+a/2+"px)";return{height:a,rx:c,width:d,x:b,y:e}})},[b,c])}function u(a){var b=a.hasEnded,e=b===void 0?!1:b;b=a.isPlaying;var f=b===void 0?!1:b,g=a.outgoing,i=a.scrubberLeft;b=babelHelpers.objectWithoutPropertiesLoose(a,["hasEnded","isPlaying","outgoing","scrubberLeft"]);var l=m(null);a=n("auto");var o=a[0],p=a[1];k(function(){var a=l.current;p(function(){var b="auto";(e||f)&&(b=g===!0?"var(--non-media-pressed-on-dark)":"var(--secondary-button-background-on-dark)");if(a==null)return b;var c=a.getBoundingClientRect();c=c.left;return i>c?g===!0?"var(--always-white)":"var(--progress-ring-neutral-foreground)":b})},[e,f,g,i]);a=g===!0?(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.outgoingWaveFormStyle):(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.incomingWaveFormStyle);return j.jsx("rect",babelHelpers["extends"]({},b,{className:a,ref:l,style:{fill:o}}))}u.displayName=u.name+" [from "+f.id+"]";function a(a){var b=a.hasEnded,e=a.isListened,f=a.isPlaying,g=a.outgoing,i=a.scrubberLeft;a=a.waveformData;var l=m(null),o=n(0),p=o[0],q=o[1],r=b===!0||e===!0;k(function(){if(l.current!=null){var a=l.current.getBoundingClientRect();q(a.width)}},[]);o=t(a,p);return o.length===0?j.jsx("div",{className:(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.waveform),ref:l}):j.jsx("div",{className:(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.waveform),ref:l,children:j.jsx("svg",{"aria-hidden":!0,className:h(d("MWPAudioPlayerSharedStyles").styles.mask),children:o.map(function(a,b){return j.createElement(u,babelHelpers["extends"]({},a,{hasEnded:r,isPlaying:f,key:b,outgoing:g,scrubberLeft:i}))})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPAudioPlayerHighlight.react",["MWPAudioPlayerScrubberBar.react","MWPAudioPlayerSharedStyles","MWPAudioPlayerUtils","MWPAudioPlayerWaveform.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;e=b.forwardRef;var k=b.useImperativeHandle,l=b.useLayoutEffect,m=b.useRef,n=b.useState,o=e(function(a,b){var e=a.audioEl,f=a.children,g=a.duration,i=a.hasEnded,o=a.isListened,q=a.isPlaying;q=q===void 0?!0:q;var r=a.onUpdateScrubber,s=a.outgoing,t=a.waveformData;a=a.xstyle;var u=d("MWPAudioPlayerUtils").useShowNewUX(),v=m(),w=m(),x=n(0),y=x[0],z=x[1];x=n(0);var A=x[0],B=x[1];l(function(){if((e==null?void 0:e.current)!=null&&w.current!=null&&g!=null&&g>0){var a=e.current.currentTime,b=w.current;B(p(b,a/g*100))}},[e,g]);k(b,function(){return{updateHighlight:function(a){var b=v.current,c=w.current;if(b==null)return;if(u){if(c!=null){c=p(c,a);B(c)}}else b.style.transform="translateX("+(a-100).toFixed(1)+"%)"}}},[u]);x=function(a){if(v.current!=null){var b,c;b=(b=v.current)==null?void 0:b.getBoundingClientRect();b=(b=b==null?void 0:b.left)!=null?b:0;b=a.clientX-b;c=(c=(c=v.current)==null?void 0:c.offsetWidth)!=null?c:0;z(b/c*100);if(g!=null&&g>0){b=d("MWPAudioPlayerUtils").getMousePos(a,v.current)*g;if(r!=null&&w.current!=null){c=w.current;r(b);B(p(c,b/g*100))}}}};if(u){return j.jsxs(j.Fragment,{children:[f,j.jsxs("div",{className:(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.highlight,d("MWPAudioPlayerSharedStyles").styles.scrubber),onMouseDownCapture:x,ref:v,children:[j.jsx(c("MWPAudioPlayerScrubberBar.react"),{currentTime:e==null?void 0:(b=e.current)==null?void 0:b.currentTime,duration:(x=e==null?void 0:(f=e.current)==null?void 0:f.duration)!=null?x:0,ref:w,xPosition:y}),j.jsx(c("MWPAudioPlayerWaveform.react"),{hasEnded:i,isListened:o,isPlaying:q,outgoing:s,scrubberLeft:A,waveformData:t})]})]})}return j.jsx("div",{className:(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.highlight,a),ref:v})});function p(a,b){a.style.left=b.toFixed(2)+"%";a.style.transition="transform 1s ease-out";b=a.getBoundingClientRect();a=b.left;return a}function a(a){var b=a.hasScrubber,c=a.progressHighlightRef,e=a.scrubberRef,f=a.audioEl,g=a.children,h=a.currentTime,i=a.duration,k=a.hasEnded,l=a.isListened,m=a.isPlaying;m=m===void 0?!0:m;var n=a.onUpdateScrubber,p=a.outgoing,q=a.waveformData;a=a.xstyle;var r=d("MWPAudioPlayerUtils").useShowNewUX();return r?j.jsx(o,{audioEl:f,duration:i,hasEnded:k,isListened:l,isPlaying:m,onUpdateScrubber:n,outgoing:p,ref:c,waveformData:q,xstyle:a,children:g}):j.jsxs(j.Fragment,{children:[j.jsx(o,{ref:c,xstyle:a}),b?j.jsx(d("MWPAudioPlayerUtils").ScreenReaderLabel,{currentTime:h,duration:i}):null,j.jsx(o,{ref:e,xstyle:a}),g]})}a.displayName=a.name+" [from "+f.id+"]";g.MWPAudioPlayerHighlightV1=o;g.MWPAudioPlayerHighlightV2=a}),98); __d("MWPAudioPlayerKeyCommands.react",["fbt","CometComponentWithKeyCommands.react","CometKeys","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useMemo;function m(a){if(a>30)return 5;else if(a>10)return 3;else if(a>5)return 2;else if(a>2)return 1;else return.5}function a(a){var b=a.audioEl;a=a.children;var d=k(function(){if(b.current==null)return;var a=b.current.duration;b.current.currentTime-=m(a)},[b]),e=k(function(){if(b.current==null)return;var a=b.current.duration;b.current.currentTime+=m(a)},[b]),f=k(function(){b.current!=null&&(b.current.currentTime=0)},[b]),g=k(function(){if(b.current==null)return;var a=b.current.duration;b.current.currentTime=a},[b]),i=l(function(){var a;return[{command:{key:(a=c("CometKeys")).UP},description:h._("__JHASH__0poPtptaPoq__JHASH__"),handler:e},{command:{key:a.DOWN},description:h._("__JHASH__rYkfY7o-Wnk__JHASH__"),handler:d},{command:{key:a.LEFT},description:h._("__JHASH__1Lid3qpGe7D__JHASH__"),handler:d},{command:{key:a.RIGHT},description:h._("__JHASH__SFoCE2wpUn9__JHASH__"),handler:e},{command:{key:a.HOME},description:h._("__JHASH__d6P7X8Ve8io__JHASH__"),handler:f},{command:{key:a.END},description:h._("__JHASH__QXmXaNdkPYM__JHASH__"),handler:g}]},[d,e,f,g]);return j.jsx(c("CometComponentWithKeyCommands.react"),{commandConfigs:i,children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPAudioPlayerTimer.react",["MWPAudioPlayerSharedStyles","MWPAudioPlayerUtils","MWPThreadThemeGradientUtils","formatDurationSeconds","react","stylex","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var b=a.outgoing;b=b===void 0?!0:b;a=a.time;var e=c("useMWPThreadTheme")();e=d("MWPThreadThemeGradientUtils").getBottomGradientColor(e);var f=d("MWPAudioPlayerUtils").useShowNewUX();b=f?{color:b?"var(--always-white)":"var(--progress-ring-neutral-foreground)"}:{color:b?e:"var(--always-black)",cursor:"pointer"};return j.jsx("div",{className:(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.rightSideTop,!f&&d("MWPAudioPlayerSharedStyles").styles.rightSideBottom,f&&d("MWPAudioPlayerSharedStyles").styles.rightSideImprove),"data-testid":void 0,style:b,children:c("formatDurationSeconds")(a)})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MessengerSurfaceContext.bs",["MessengerSurfaceType","react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b=a.createContext(d("MessengerSurfaceType").messenger);g.context=b;g.defaultValue=d("MessengerSurfaceType").messenger}),98); __d("MessengerSurfaceQuickChat.bs",["MessengerSurfaceContext.bs","MessengerSurfaceType","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=i.useContext(d("MessengerSurfaceContext.bs").context);return a===d("MessengerSurfaceType").workQuickchat}g.useIsQuickChatSurface=a}),98); __d("useMWNextAttachment",["ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=(h||(h=c("useReStore")))(),e=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(b.table("messages").index("messageId")).bounds({gt:d("ReQL").key(a.messageId)}).filter(function(a){return!a.isUnsent})},[b,a.messageId],f.id+":22"),g=d("ReQLSuspense").useFirst(function(){return e!=null?d("ReQL").fromTableAscending(b.table("attachments")).getKeyRange(e.threadKey,e.messageId):d("ReQL").empty()},[b,e],f.id+":29");return g}g["default"]=a}),98); __d("fetch",[],(function(a,b,c,d,e,f){"use strict";a=window.fetch;b=a;f["default"]=b}),66); __d("fetchMWPAudioWaveformDataForURL",["AudioContextSingleton","FBLogger","Promise","asyncToGeneratorRuntime","fetch"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(a){var b=[];for(var c=0;cl&&h(a.join(m))}}}),[e]);j(function(){if(g!=null&&g.length>l)return;c("promiseDone")(p())},[p,g]);j(function(){g!=null&&g.length>l&&g!==a.waveformData&&o({waveformData:g})["catch"](function(a){c("FBLogger")("messenger_web_product","audio_waveform_error").catching(a).mustfix("Error from updating attachment waveform data")})},[a.waveformData,o,g]);return g}g["default"]=a}),98); __d("useMWPMarkAudioAttachmentAsConsumed.react",["FBLogger","react","useMWAttachmentUpdater"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect;function a(a,b){var d=c("useMWAttachmentUpdater")(b),e=b.isAttachmentConsumed;i(function(){var b=a==null?void 0:a.current;if(b==null)return;var f=function(){(e==null||e===!1)&&void d({isAttachmentConsumed:!0})["catch"](function(a){c("FBLogger")("messenger_web_product","attachment_update_error").catching(a).mustfix("Error marking attachment as consumed.")})};b.addEventListener("ended",f);return function(){b.removeEventListener("ended",f)}},[a,e,d])}g["default"]=a}),98); __d("MWAudioPlayer.react",["I64","MWLSThreadDisplayContext","MWPAudioPlaybackButton.react","MWPAudioPlayerButtons.react","MWPAudioPlayerContainer.react","MWPAudioPlayerHighlight.react","MWPAudioPlayerKeyCommands.react","MWPAudioPlayerSharedStyles","MWPAudioPlayerTimer.react","MWPAudioPlayerUtils","MWPColorUtils","MessengerSurfaceQuickChat.bs","react","requireDeferred","stylex","useMWInlineStylesForReply","useMWNextAttachment","useMWPAudioWaveformData.react","useMWPMarkAudioAttachmentAsConsumed.react","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react"));b=i;var l=b.useMemo,m=b.useRef,n=c("requireDeferred")("MWChatAudioLog").__setRef("MWAudioPlayer.react"),o={incoming:{backgroundColor:"x1arowe1",opacity:"x1ptxcow",$$css:!0},outgoing:{backgroundColor:"x14hiurz",opacity:"xz5rk10",$$css:!0},root:{transform:"x5i6ehr",$$css:!0}};function p(a){return l(function(){return[o.root,a?o.outgoing:o.incoming]},[a])}function q(){n.onReady(function(a){return a.logBrowserDenyAccess()})}function a(a){var b=a.attachment,e=a.getPlayableUrl,f=a.isReply;f=f===void 0?!1:f;var g=a.outgoing;a=a.width;var i=c("useMWPThreadTheme")(),l=i.outgoingGradientColors;i=i.threadTheme;var n=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),o=d("MessengerSurfaceQuickChat.bs").useIsQuickChatSurface(),r=b.playableDurationMs;r=(j||(j=d("I64"))).to_float((r=r)!=null?r:(j||(j=d("I64"))).zero)/1e3;var s=c("useMWNextAttachment")(b),t=e(b);t=c("useMWPAudioWaveformData.react")(b,t);e=d("MWPAudioPlayerUtils").useControlCenter(e(b),s!=null?e(s):void 0,q,!1,r);s=e[0];var u=e[1],v=e[2],w=e[3],x=e[4];e=e[5];c("useMWPMarkAudioAttachmentAsConsumed.react")(v,b);var y=s===d("MWPAudioPlayerUtils").State.NONE,z=s===d("MWPAudioPlayerUtils").State.PLAYING,A=s===d("MWPAudioPlayerUtils").State.PAUSED,B=s===d("MWPAudioPlayerUtils").State.LOADING;s=s===d("MWPAudioPlayerUtils").State.ENDED;var C=z||A,D=g&&l.length>1,E=m(),F=p(g);l=c("useMWInlineStylesForReply")(i,l,g);var G=l.backgroundAttachment,H=l.backgroundColor;l=l.backgroundImage;G={backgroundAttachment:f?G:void 0,backgroundColor:f?H:g?D?"transparent":d("MWPColorUtils").int64ToHex(i.fallbackColor):"var(--chat-incoming-message-bubble-background-color)",backgroundImage:f?l:void 0,borderRadius:D?void 0:"18px",width:a!=null?a:n!=null?n==="Inbox"?"218px":n==="ChatTab"&&o?"168px":"180px":"180px"};i=C?Math.max(r-u,0):0;return k.jsx(c("MWPAudioPlayerKeyCommands.react"),{audioEl:v,children:k.jsx(c("MWPAudioPlayerContainer.react"),{audioEl:v,hasScrubber:C,scrubberRef:E,style:G,testid:void 0,useCase:d("MWPAudioPlayerUtils").UseCase.PLAYER,children:k.jsxs("div",{className:(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.common,D?d("MWPAudioPlayerSharedStyles").styles.transparent:!1),children:[k.jsx(d("MWPAudioPlayerHighlight.react").MWPAudioPlayerHighlightV2,{audioEl:v,currentTime:u,duration:r,hasEnded:s,hasScrubber:C,isListened:b.isAttachmentConsumed===!0,isPlaying:z,onUpdateScrubber:e,outgoing:g,progressHighlightRef:x,scrubberRef:E,waveformData:t,xstyle:F,children:k.jsx(c("MWPAudioPlaybackButton.react"),{backgroundColor:H,disabled:y,hasEnded:s,isLoading:B,isPaused:A,isPlaying:z,onPress:w,outgoing:g,scrubberRef:E})}),k.jsx("div",{children:z?k.jsxs(k.Fragment,{children:[k.jsx(c("MWPAudioPlayerTimer.react"),{outgoing:g,time:i}),k.jsx(d("MWPAudioPlayerButtons.react").PlaybackRateButton,{outgoing:g})]}):k.jsx(c("MWPAudioPlayerTimer.react"),{outgoing:g,time:i})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g.useHighlightStyles=p;g.MWAudioPlayer=a}),98); __d("CtmMultiPhotoCarouselMsgrMultiPhotoCarouselClickFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1746398");b=d("FalcoLoggerInternal").create("ctm_multi_photo_carousel_msgr_multi_photo_carousel_click",a);e=b;g["default"]=e}),98); __d("CustomerInformationTemplateFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("5813");b=d("FalcoLoggerInternal").create("customer_information_template",a);e=b;g["default"]=e}),98); __d("useMWChatShowPIIForm",["CometRelay","JSResourceForInteraction","MWChatPIIFormNuxQuery","MWChatPIIFormScreenQuery","MWChatPIIFormStateQuery","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback,j=c("JSResourceForInteraction")("MWChatPIIFormDialog.react").__setRef("useMWChatShowPIIForm");function a(){var a=c("useMWXLazyDialog")(j),b=a[0],e=d("CometRelay").useRelayEnvironment();return i(function(a){var c=a.pageId,f=a.color,g=a.numScreens,h=a.currentIndex,i=a.formId,j=a.firstScreen;d("MWChatPIIFormStateQuery").fetch(i,e,function(a){d("MWChatPIIFormNuxQuery").fetch(e,i,c,function(k){if(g>1){d("MWChatPIIFormScreenQuery").fetch(i,c,1,e,function(d){return b({color:f,ctaType:null,currentIndex:h,firstScreen:j,formId:i,numScreens:g,nuxData:k,pageId:c,secondScreen:(d=d)!=null?d:void 0,state:a})});return}else return b({color:f,ctaType:null,currentIndex:h,firstScreen:j,formId:i,numScreens:g,nuxData:k,pageId:c,secondScreen:void 0,state:a})})})},[e,b])}g["default"]=a}),98); __d("useMakeRoomRingbackCommon",["cr:401"],(function(a,b,c,d,e,f,g){"use strict";function a(){return b("cr:401")()}g["default"]=a}),98); __d("useServicesConfirmAppointmentBookingMutation",["RelayHooks","ServicesApproveAppointmentMutation.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=d("RelayHooks").useMutation(c("ServicesApproveAppointmentMutation.graphql")),b=a[0];a[1];return i(function(a){b({variables:{input:{referrer_ui_component:"BUBBLE",referrer_ui_surface:"MESSAGE",request_id:a}}})},[b])}g["default"]=a}),98); __d("MWChatXmaThirdPartyActionHandler",["fbt","CometMarketplaceCreateDiscountedPriceDialog.entrypoint","CometRelay","CtmMultiPhotoCarouselMsgrMultiPhotoCarouselClickFalcoEvent","CustomerInformationTemplateFalcoEvent","JSResourceForInteraction","MWBuyerShippingAddressRootQuery","MWChatCustomerFeedbackFormDataQuery","MWChatCustomerFeedbackStateQuery","MWChatPIIFormScreenQuery","MWChatPIIFormStateQuery","MWChatReceiptDataQuery","MWP2PPaymentTransactionInformationVerify","MarketplaceCometReviewOffersDialog.entrypoint","MessagingPaymentCTAMutation.graphql","Popup","RelayHooks","cometPushToast","commitWorkplaceChatBotSubmitFeedbackMutation","cr:11076","emptyFunction","promiseDone","react","requireDeferred","useCometDynamicEntryPointDialog","useMWChatShowPIIForm","useMWLSMarketplaceXmaCtaHandler","useMWLSOpenStaticLocationDialog.react","useMWLSShowAttachBankSlip","useMWLSShowCheckout","useMWLSShowMemberRequest","useMWLSShowOffsiteBankTransfer","useMWLSShowOrderDetails","useMWLSShowPaymentDetails","useMWLSShowPendingPost","useMWP2PPaymentRequestCancelDialog","useMWP2PPaymentTransactionDeclineDialog","useMWXLazyDialog","useMakeRoomRingbackCommon","useP2PPaymentMethodAddDialog","useP2PPaymentRequestConfirmDialog","useP2PPaymentRequestDeclineDialog","useServicesConfirmAppointmentBookingMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=(i||d("react")).useCallback,k=c("requireDeferred")("ZenonUserActionLoggerCommon").__setRef("MWChatXmaThirdPartyActionHandler");function l(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatReceiptModal.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(a){var c=a.receiptId;if(c!=null){d("MWChatReceiptDataQuery").fetch(c,a.messageId,function(a){var c=h._("__JHASH__PDJB6VYGeXn__JHASH__");return b({receipt:a,title:c})});return}},[b])}function m(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("PaymentsCometInfomationBottomSheetDialog.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(a){var d;b({contentType:a.contentType.content_type,orderID:(d=a.orderID)!=null?d:"",pageID:a.pageID},c("emptyFunction"))},[b])}function n(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWBuyerShippingAddressRoot.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0],e=d("CometRelay").useRelayEnvironment();return j(function(a){c("CustomerInformationTemplateFalcoEvent").log(function(){return{consumer_id:a.actorId,event_type:"mw_xma_click",form_id:a.eeMessageId,page_id:a.pageId}});var f=d("CometRelay").loadQuery(e,c("MWBuyerShippingAddressRootQuery"),{id:a.pageId});b({actorId:a.actorId,eeMessageId:a.eeMessageId,initialQueryRef:f,messageId:a.messageId,pageId:a.pageId},function(){f.dispose()})},[e,b])}function o(){var a=d("CometRelay").useRelayEnvironment();return j(function(b){var e={environment:a};b=c("commitWorkplaceChatBotSubmitFeedbackMutation")({action_content_blob:b.feedbackActionContentBlob,config:e});e=b.then(function(){d("cometPushToast").cometPushSimpleToast("Feedback submitted!",2e3)},function(){d("cometPushToast").cometPushSimpleToast("Error in submitting feedback!",2e3)});c("promiseDone")(e)},[a])}var p=c("JSResourceForInteraction")("MWChatCustomerFeedbackDialog.react").__setRef("MWChatXmaThirdPartyActionHandler");function q(){var a=c("useMWXLazyDialog")(p),b=a[0],e=d("CometRelay").useRelayEnvironment();return j(function(a){var c=a.feedbackFormId;d("MWChatCustomerFeedbackStateQuery").fetch(c,e,function(a){a!=null&&d("MWChatCustomerFeedbackFormDataQuery").fetch(c,e,function(c){c!=null&&b({firstScreen:c.firstScreen,formId:c.formId,pageId:c.pageId,privacy:c.privacy,state:a})})})},[e,b])}function r(){var a=c("useMWXLazyDialog")(p),b=a[0],e=d("CometRelay").useRelayEnvironment();return j(function(a){var c=a.pageId,f=a.formId,g=a.privacy,h=a.firstScreen;d("MWChatCustomerFeedbackStateQuery").fetch(f,e,function(a){return b({firstScreen:h,formId:f,pageId:c,privacy:g,state:a})})},[e,b])}function s(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatPIIFormDialog.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0],e=d("CometRelay").useRelayEnvironment();return j(function(a){var c=a.ctaType,f=a.nuxData;a=a.piiForm;var g=a.color,h=a.currentIndex,i=a.firstScreen,j=a.formId,k=a.numScreens,l=a.pageId;d("MWChatPIIFormStateQuery").fetch(j,e,function(a){if(k>1){d("MWChatPIIFormScreenQuery").fetch(j,l,1,e,function(d){return b({color:g,ctaType:c,currentIndex:h,firstScreen:i,formId:j,numScreens:k,nuxData:f,pageId:l,secondScreen:d,state:a})});return}else return b({color:g,ctaType:c,currentIndex:h,firstScreen:i,formId:j,numScreens:k,nuxData:f,pageId:l,secondScreen:void 0,state:a})})},[e,b])}function t(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWInboxUrlWebviewDialog.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(){var a=h._("__JHASH__HFLlRGYwWh7__JHASH__").toString();b({htmlBlob:a})},[b])}function u(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MessengerCometBookingDetailsModal.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(a){return b({pageID:a.pageId,requestID:a.requestId})},[b])}function v(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatLiveLocationDialog.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(a){return b({})},[b])}function w(){var a=c("useMWLSOpenStaticLocationDialog.react")();return j(function(b){return a(b.msgId)},[a])}function x(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatBusinessBoardingPassDetail.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(a){return b({boardingPassDetail:a})},[b])}function y(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatBusinessItineraryDetail.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(a){return b({itineraryPayload:a})},[b])}function z(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatBusinessMessengerExtension.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(a){return b({actionLink:a.actionLink,pageID:a.pageID,threadID:a.pageID,userID:a.userID},c("emptyFunction"))},[b])}function A(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatRichWidgetExtension.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(a){return b({actionLink:a.actionLink,pageID:a.pageID},c("emptyFunction"))},[b])}function B(a){return j(function(b){k.onReady(function(a){return a.logClick({component:"start_call_button",surface:"admin_message"})});return a(b.hasVideo,b.threadId,b.trigger)},[a])}function C(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatGuestChatHistoryModal.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(a){return b({guestID:a.guestId,pageID:a.pageId})},[b])}function D(){return j(function(a){if(b("cr:11076")!=null)return b("cr:11076").$$process(a.ctaId,a.messageId)},[])}function E(a){d("Popup").open(a,1024,500)}function F(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("CometJoinRoomFromPortalDialog.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(a){return b({linkUrl:a.linkUrl})},[b])}function G(){var a=d("RelayHooks").useMutation(c("MessagingPaymentCTAMutation.graphql")),b=a[0];a[1];return j(function(a){b({variables:{input:{client_mutation_id:a,cta_params:"{invoice_id: "+a+"}",cta_type:"mcom_mark_as_paid"}}})},[b])}function H(){var a=d("RelayHooks").useMutation(c("MessagingPaymentCTAMutation.graphql")),b=a[0];a[1];return j(function(a){b({variables:{input:{client_mutation_id:a,cta_params:"{\n invoice_id: "+a+",\n mark_as_shipped_cta_dialog: false,\n }",cta_type:"mcom_mark_as_shipped"}}})},[b])}function I(){var a=c("useCometDynamicEntryPointDialog")(c("MarketplaceCometReviewOffersDialog.entrypoint"));return j(function(b){return a({listingId:b},{})},[a])}function J(){var a=c("useCometDynamicEntryPointDialog")(c("CometMarketplaceCreateDiscountedPriceDialog.entrypoint"));return j(function(b){return a({threadId:b},{})},[a])}function K(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWInformationalDialog.react").__setRef("MWChatXmaThirdPartyActionHandler")),b=a[0];return j(function(){return b({body:h._("__JHASH__jTsNVv7n_rW__JHASH__"),title:h._("__JHASH__g-wowo_Mm7M__JHASH__")})},[b])}function a(a,b){var e=l(),f=r(),g=q(),h=D(),i=s(),j=v(),k=w(),p=u(),L=x(),M=C(),N=y(),O=z(),P=A(),Q=c("useMWP2PPaymentRequestCancelDialog")(),R=c("useP2PPaymentRequestConfirmDialog")(),S=c("useP2PPaymentRequestDeclineDialog")(),T=c("useMWP2PPaymentTransactionDeclineDialog")(),U=c("useP2PPaymentMethodAddDialog")(),V=d("MWP2PPaymentTransactionInformationVerify").useP2PPaymentTransactionInformationVerify(),W=B(b),X=c("useMakeRoomRingbackCommon")(),Y=F(),Z=m(),$=o(),aa=c("useMWLSShowMemberRequest")(),ba=c("useMWLSShowPendingPost")(),ca=c("useMWLSShowCheckout")(),da=c("useMWLSShowPaymentDetails")(),ea=c("useMWLSShowOrderDetails")(),fa=G(),ga=H(),ha=c("useMWLSShowAttachBankSlip")(),ia=c("useMWLSShowOffsiteBankTransfer")(),ja=n(),ka=c("useMWLSMarketplaceXmaCtaHandler")(),la=I(),ma=J(),na=c("useMWChatShowPIIForm")(),oa=t(),pa=K(),qa=c("useServicesConfirmAppointmentBookingMutation")();return function(b){if(b.NAME==="P2PPaymentTransactionInformationVerify")return V(b.VAL);if(b.NAME==="P2PPaymentTransactionDecline")return T(b.VAL.id);if(b.NAME==="MakeWorkJoinableCallInvite"||b.NAME==="MakeRoomRingback")return X(b.VAL);if(b.NAME==="P2MCheckout"){var d=b.VAL;return ca(d.orderID,d.pageID)}if(b.NAME==="ShowCustomerFeedback")return f(b.VAL);if(b.NAME==="P2MInformationalMessageBottomSheet")return Z(b.VAL);if(b.NAME==="WorkplaceChatBotSubmitFeedback")return $(b.VAL);if(b.NAME==="P2PPaymentRequestCancel")return Q(b.VAL.id);if(b.NAME==="SendImagePostback"){d=b.VAL;var l=d.loggingDetails;l!=null&&c("CtmMultiPhotoCarouselMsgrMultiPhotoCarouselClickFalcoEvent").log(function(){return{consumer_id:l.consumer_id,event_data:{ad_id:l.ad_id,cta:"button",index:String(l.index)},event_location:"unknown",page_id:l.page_id}});return a(d.message,d.platformToken,d.image)}if(b.NAME==="ShowMessengerExtensions")return O(b.VAL);if(b.NAME==="OpenAccountLink")return h(b.VAL);if(b.NAME==="ShowPIIForm")return na(b.VAL);if(b.NAME==="P2MOffsiteBankTransferCTA")return ia(b.VAL.orderID);if(b.NAME==="P2PPaymentTransactionReceiveMoney")return U(b.VAL.id);if(b.NAME==="ShowBoardingPass")return L(b.VAL);if(b.NAME==="P2MOrderDetails")return ea(b.VAL.orderID);if(b.NAME==="P2MMarkAsPaid")return fa(b.VAL.orderID);if(b.NAME==="P2MMarkAsShipped")return ga(b.VAL.orderID);if(b.NAME==="ShowStaticLocationDetails")return k(b.VAL);if(b.NAME==="P2PPaymentTransactionDetails")return da(b.VAL.id);if(b.NAME==="P2PPaymentRequestDecline")return S(b.VAL.id);if(b.NAME==="ShowBookingDetails")return p(b.VAL);if(b.NAME==="ShowOrderConfirmation")return e(b.VAL);if(b.NAME==="ShowCustomerFeedbackForm")return g(b.VAL);if(b.NAME==="ShowMessengerRichWidgetExtension")return P(b.VAL);if(b.NAME==="ShowItinerary")return N(b.VAL);if(b.NAME==="OpenAccountLinkUrl")return E(b.VAL);if(b.NAME==="MakeJoinRoomFromPortal")return Y(b.VAL);if(b.NAME==="P2MAttachBankSlip")return ha(b.VAL.orderID);if(b.NAME==="BuyerShippingAddress")return ja(b.VAL);if(b.NAME==="AdmodChatsShowPendingPost"){d=b.VAL;return ba(d.targetId,d.groupId,d.authorId,d.postId,d.activityLogItemId)}if(b.NAME==="P2PPaymentRequestConfirm")return R(b.VAL.id);if(b.NAME==="MakeRtcCall")return W(b.VAL);if(b.NAME==="ProcessMarketplaceCallFunction"){d=b.VAL;var m=d.actionType,n=d.attachmentFbid,o=d.messageId;d=d.targetId;return ka(o,n,d,m)}if(b.NAME==="ShowPIIFormForFormBuilder")return i(b.VAL);if(b.NAME==="ShowLiveLocationDetails")return j(b.VAL);if(b.NAME==="AdmodChatsShowMemberRequest"){o=b.VAL;return aa(o.targetId,o.groupId,o.profileId,o.activityLogItemId)}if(b.NAME==="ShowGuestChatHistory")return M(b.VAL);if(b.NAME==="ShowInThreadFormDetails")return oa();if(b.NAME==="ShowPhoneVerificationDialog")return pa();if(b.NAME==="ConfirmAppointmentBooking")return qa(b.VAL.requestID);if(b.NAME==="OpenMarketplaceDialog"){n=b.VAL;d=n.ctaType;m=n.listingId;o=n.threadId;switch(d){case"SHIPPED_DECLINED_OFFER_SEND_ANOTHER_PRICE":case"SHIPPED_EXPIRED_OFFER_SEND_ANOTHER_PRICE":if(o!=null)return ma(o);else return;case"SHIPPED_OFFER_CANCEL":if(m!=null)return la(m);else return;default:return}}}}e=a;g.useHandler=e}),98); __d("MWMessageListMediaPressableContainer.react",["I64","LSIntEnum","LSMediaUrlAttachment","MWPThreadCapabilitiesContext","MWXPressable.react","MessagingAttachmentType","cr:4509","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react");function a(a){var e=a.allowClickEventPropagation,f=a.ariaLabel,g=a.attachment,h=a.children;a.disabled;var l=a.linkProps_,m=a.onHoverIn,n=a.onPress,o=a.overlayDisabled;o=o===void 0?!1:o;var p=a.testid;p=a.xstyle;a=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();a=a.blurMediaEnabled;a=c("gkx")("1581")&&a;var q=(i||(i=d("I64"))).equal(g.attachmentType,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE)),r=i.equal(g.attachmentType,j.ofNumber(c("MessagingAttachmentType").VIDEO)),s=q?"Image":r?"Video":"Media";return b("cr:4509")!=null&&(q||r)&&a?k.jsx(b("cr:4509"),{ariaLabel:f,linkProps:l,mediaType:s,onPress:n,overlayDisabled:o,testid:void 0,type:r?"video":"image",url:d("LSMediaUrlAttachment").previewUrl(g),xstyle:p,children:h}):k.jsx(c("MWXPressable.react"),{allowClickEventPropagation:e,"aria-label":f,linkProps:l,onHoverIn:m,onPress:function(){return n()},overlayDisabled:o,testid:void 0,xstyle:p,children:h})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPStableImage.react",["CometObjectFitContainer.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useMemo,l={constraint:{maxWidth:"x193iq5w",$$css:!0},image:{display:"x1lliihq",height:"xt7dq6l",maxWidth:"x193iq5w",width:"x14atkfc",$$css:!0},imageFill:{height:"x5yr21d",width:"xh8yej3",$$css:!0}};function m(a){var b=a.alt,d=a.aspectRatio,e=a.maxHeight;a=a.src;var f=k(function(){return{display:"block",maxHeight:e.toString()+"px",maxWidth:"100%"}},[e]);b=j.jsx("img",{alt:b,className:(h||(h=c("stylex")))(l.image,d==null?!1:l.imageFill),src:a,style:f});if(d!=null)return j.jsx(c("CometObjectFitContainer.react"),{contentAspectRatio:d,objectFitMode:"CONTAINER_WIDTH_BASED_ASPECT_RATIO",children:b});else return b}function n(a){var b=a.aspectRatio,c=a.children,d=a.className,e=a.height,f=a.maxHeight,g=a.maxWidth;a.width;c=(a=c)!=null?a:null;a=k(function(){if(b!=null&&e!=null)return{maxWidth:"100%",width:(b*Math.min(f,e)).toString()+"px"}},[b,e,f]);var h=k(function(){if(g!=null)return{maxWidth:g.toString()+"px"}},[g]);return j.jsx("div",{className:"x193iq5w",children:j.jsx("div",{style:h,children:j.jsx("div",{className:d,style:a,children:c})})})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.alt,c=a.children,d=a.className,e=a.height,f=a.maxHeight,g=a.maxWidth,h=a.src;a=a.width;var i=a!=null&&e!=null?a/e:void 0;return j.jsxs(n,{aspectRatio:i,className:d,height:e,maxHeight:f,maxWidth:g,width:a,children:[j.jsx(m,{alt:b,aspectRatio:i,maxHeight:f,src:h}),c]})}a.displayName=a.name+" [from "+f.id+"]";g.MWPStableImageContainer=n;g.MWPStableImage=a}),98); __d("MWV2AttachmentProgressBar.react",["MWV2ComposerMediaProgressBar.react","ReQL","ReQLSuspense","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var b=a.attachment.offlineAttachmentId,e=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return b!=null?d("ReQL").fromTableAscending(e.table("media_staging")).getKeyRange(b):d("ReQL").empty()},[b],f.id+":24");return a!=null&&a.isSent?j.jsx(c("MWV2ComposerMediaProgressBar.react"),{height:5,mediaStaging:a}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWMessageListAttachmentDimensions",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useMemo;function a(a,b){return i(function(){var c=b.previewWidthLarge,d=b.previewHeightLarge;return c!=null&&d!=null&&a==="Inbox"?[c,d]:[b.previewWidth,b.previewHeight]},[a,b])}g["default"]=a}),98); __d("useMWV2FocusRowAfterClosingPushView",["MWV2MessageRowIsRowFocusedContext.react","react","useCometRouterState","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useContext,j=b.useLayoutEffect;function a(){var a=i(d("MWV2MessageRowIsRowFocusedContext.react").context),b=a.isDialogOpened,e=a.setIsDialogOpened,f=a.setFocused;a=c("useCometRouterState")();var g;if(a==null)g=0;else{a=a.pushViewStack;g=a==null?0:a.length}var h=c("usePrevious")(g);j(function(){if(h!=null){b===!0&&h>0&&g===0&&(e(function(){return!1}),f(function(){return!0}));return}},[b,h,g]);return e}g["default"]=a}),98); __d("MWV2ChatImage.react",["fbt","I64","LSAuthorityLevel","LSIntEnum","MWChatImageInsetShadow.react","MWInboxInfoSharedContentQPLLogger","MWLSThreadDisplayContext","MWMessageListMediaPressableContainer.react","MWPStableImage.react","MWV2AttachmentProgressBar.react","MWV2LogMessageClick","gkx","react","stylex","useMWMessageListAttachmentDimensions","useMWV2FocusRowAfterClosingPushView","useMWV2MediaViewerShowDialog","useMWV2MediaViewerURL","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=m||d("react"),o={appAttr:{alignItems:"x6s0dn4",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",display:"x78zum5",lineHeight:"x1rfph6h",paddingTop:"x1iorvi4",paddingEnd:"xsyo7zv",paddingBottom:"xjkvuk6",paddingStart:"x16hj40l",$$css:!0},appIcon:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"xlup9mm",marginEnd:"x1w0mnb",marginLeft:null,marginRight:null,objectFit:"x19kjcj4",width:"x1kky2od",$$css:!0},appText:{color:"xzsf02u",fontSize:"x1nxh6w3",wordBreak:"x13faqbe",$$css:!0},container:{display:"x78zum5",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0},content:{display:"x78zum5",flexDirection:"xdt5ytf",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",position:"x1n2onr6",$$css:!0},incomingConnectBottom:{borderBottomStartRadius:"x10y3i5r",$$css:!0},incomingConnectTop:{borderTopStartRadius:"x1lcm9me",$$css:!0},outgoingConnectBottom:{borderBottomEndRadius:"xrt01vj",$$css:!0},outgoingConnectTop:{borderTopEndRadius:"x1yr5g0i",$$css:!0},standalone:{borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",borderTopEndRadius:"x1g8br2z",borderTopStartRadius:"x1tlxs6b",$$css:!0},withAppAttribution:{borderBottomEndRadius:"x5pf9jr",borderBottomStartRadius:"xo71vjh",borderTopEndRadius:"x1g8br2z",borderTopStartRadius:"x1tlxs6b",$$css:!0}};function p(a){a=a.attachment;var b=a.attributionAppName;if(b==null)return null;a=a.attributionAppIcon;return n.jsxs("div",{className:"x6s0dn4 x1gn5b1j x230xth x78zum5 x1rfph6h x1iorvi4 xsyo7zv xjkvuk6 x16hj40l",children:[a!=null?n.jsx("img",{className:"x14yjl9h xudhj91 x18nykt9 xww2gxu xlup9mm x1w0mnb x19kjcj4 x1kky2od",role:"presentation",src:a}):null,n.jsx("span",{className:"xzsf02u x1nxh6w3 x13faqbe",children:b})]})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b,e=a.attachment,f=a.connectBottom,g=a.connectTop;a.getPlayableUrl;var m=a.getPreviewUrl,q=a.message,r=a.navigateToRouteForMediaViewer,s=a.outgoing;a=a.renderUnsupportedAttachment;var t=(i||(i=c("useReStore")))(),u=(b=r)!=null?b:!0;b=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();var v=e.attributionAppName!=null;b=c("useMWMessageListAttachmentDimensions")(b,e);var w=b[0];b=b[1];var x=c("useMWV2MediaViewerURL")(e);g=g?s?o.outgoingConnectTop:o.incomingConnectTop:!1;f=f===!0?s?o.outgoingConnectBottom:o.incomingConnectBottom:!1;s=c("gkx")("1924962");var y=c("useMWV2FocusRowAfterClosingPushView")();r=c("useMWV2MediaViewerShowDialog")((r=r)!=null?r:!0);var z=r[0],A=r[1];r=m(e);if(r==null||r.length===0)return a!=null?a(e):null;m=u&&(k||(k=d("I64"))).gt(q.authorityLevel,(l||(l=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL))?{passthroughProps:{origSrc:r},url:x}:void 0;a=function(){d("MWV2LogMessageClick").log(t,q,28);d("MWInboxInfoSharedContentQPLLogger").logOpenSharedContentFromThread("media");y(function(){return!0});if(!u)return z({attachment:e},function(){})};return n.jsxs(c("MWMessageListMediaPressableContainer.react"),{attachment:e,disabled:(k||(k=d("I64"))).le(q.authorityLevel,(l||(l=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL)),linkProps_:m,onHoverIn:function(){if(!u)return A()},onPress:a,testid:void 0,xstyle:[o.container,o.standalone,g,f],children:[n.jsx(d("MWPStableImage.react").MWPStableImage,{alt:e.titleText!=null&&s?e.titleText:h._("__JHASH__mrw3CpFXi7r__JHASH__"),className:(j||(j=c("stylex")))(o.content,v?o.withAppAttribution:o.standalone,g,f),height:b!=null?(k||(k=d("I64"))).to_float(b):void 0,maxHeight:200,maxWidth:480,src:r,width:w!=null?(k||(k=d("I64"))).to_float(w):void 0,children:n.jsx(p,{attachment:e})}),(k||(k=d("I64"))).le(q.authorityLevel,(l||(l=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL))?n.jsx(c("MWV2AttachmentProgressBar.react"),{attachment:e}):null,n.jsx(c("MWChatImageInsetShadow.react"),{xstyle:[g,f]})]},e.attachmentFbid)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWResponsiveVideo.react",["CometObjectFitContainer.react","CometPlaceholder.react","MWLSThreadDisplayContext","MWPThreadCapabilitiesContext","MWXGlimmer.react","deferredLoadComponent","gkx","justknobx","react","requireDeferredForDisplay","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useMemo,l=c("deferredLoadComponent")(c("requireDeferredForDisplay")("MWChatVideoPlayer.react").__setRef("MWResponsiveVideo.react")),m={container:{maxWidth:"x193iq5w",minHeight:"x11md1zd",minWidth:"x450l9j",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0},fill:{bottom:"x1ey2m1c",end:"xds687c",left:null,right:null,position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",zIndex:"x1vjfegm",$$css:!0},glimmer:{height:"x5yr21d",position:"x10l6tqk",width:"xh8yej3",$$css:!0},glimmerFallback:{borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",borderTopEndRadius:"x1g8br2z",borderTopStartRadius:"x1tlxs6b",display:"x78zum5",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",width:"xh8yej3",$$css:!0}};function n(a){return[a==="Inbox"?240:180,140]}function a(a){var b=a.connectTopStyles,e=a.fbid,f=a.height,g=a.maxHeight,i=a.maxWidth,o=a.src,p=a.width,q=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),r=k(function(){var a=p!=null?f!=null?[p,f]:[500,300]:[500,300];return a[0]/a[1]},[p,f]);a=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();a=a.hasLSThreadBitOffset;var s=c("gkx")("1581")&&a(46);a=k(function(){var a=n(q);if(c("justknobx")._("1704")===!0){var b;b=Math.min((b=p)!=null?b:500,i,g*r).toString()+"px"}else{var d;b=Math.min((d=p)!=null?d:500,i).toString()+"px"}return{maxHeight:g.toString()+"px",minHeight:s?a[1].toString(10)+"px":"",minWidth:s?a[0].toString(10)+"px":"",width:b}},[g,p,i,s,q,r]);return j.jsxs("div",{className:"x193iq5w x11md1zd x450l9j x6ikm8r x10wlt62 x1n2onr6",style:a,children:[j.jsx("div",{className:"x1ey2m1c xds687c x10l6tqk x17qophe x13vifvy x1vjfegm",children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx("div",{className:(h||(h=c("stylex")))(m.glimmerFallback,b),children:j.jsx(c("MWXGlimmer.react"),{index:0,xstyle:m.glimmer})}),children:j.jsx(l,{autoPlaySetting:s?"off":void 0,controls:"mwchat",fbid:e,hideExpandButton:!0,originalHeight:(a=f)!=null?a:300,originalWidth:(b=p)!=null?b:500,sdSrc:o})})}),j.jsx(c("CometObjectFitContainer.react"),{contentAspectRatio:r,objectFitMode:"CONTAINER_WIDTH_BASED_ASPECT_RATIO",children:null})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatVideo.react",["fbt","I64","LSAuthorityLevel","LSIntEnum","MWChatImageInsetShadow.react","MWLSThreadDisplayContext","MWMessageListMediaPressableContainer.react","MWResponsiveVideo.react","MWV2AttachmentProgressBar.react","MWV2LogMessageClick","MWVideoPlayerControllerContext.react","react","recoverableViolation","useCometRouterDispatcher","useMWV2FocusRowAfterClosingPushView","useMWV2MediaViewerShowDialog","useMWV2MediaViewerURL","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react"));b=l;var n=b.useContext,o=b.useMemo,p=b.useRef,q={incoming_connect_top:{borderTopStartRadius:"x1lcm9me",$$css:!0},outgoing_connect_top:{borderTopEndRadius:"x1yr5g0i",$$css:!0},root:{backfaceVisibility:"xlp1x4z",backgroundColor:"xcrg951",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",borderTopEndRadius:"x1g8br2z",borderTopStartRadius:"x1tlxs6b",display:"x1lliihq",maxWidth:"x193iq5w",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0}};function r(a){var b=a.attachment,e=a.connectTop,f=a.getPreviewUrl,g=a.message,l=a.navigateToRouteForMediaViewer,o=l===void 0?!0:l;l=a.outgoing;var p=(i||(i=c("useReStore")))(),r=c("useCometRouterDispatcher")(),s=c("useMWV2MediaViewerURL")(b);a=e?l?q.outgoing_connect_top:q.incoming_connect_top:!1;var t=c("useMWV2FocusRowAfterClosingPushView")();e=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();l=c("useMWV2MediaViewerShowDialog")(o);var u=l[0],v=l[1],w=n(c("MWVideoPlayerControllerContext.react")),x=f(b);if(x==null||x==="")return null;l=b.previewHeight;f=b.previewWidth;return m.jsxs(c("MWMessageListMediaPressableContainer.react"),{ariaLabel:h._("__JHASH__Sk-r4mWi0bD__JHASH__"),attachment:b,disabled:(j||(j=d("I64"))).le(g.authorityLevel,(k||(k=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL)),onHoverIn:function(){if(!o)return v()},onPress:function(){d("MWV2LogMessageClick").log(p,g,27);t(function(){return!0});if(!o)return u({attachment:b},function(){});var a=w.ref.current;if(a){var e=a.getCurrentState();e=e.volume;var f=a.getPlayheadPosition();r==null?void 0:r.go(s,{passthroughProps:{origSrc:x,startTimestamp:f,volumeSetting:e}});a.setMuted(!0,"product_initiated")}else c("recoverableViolation")("Missing controller","messenger_web_product",void 0,{trackOnly:!0})},overlayDisabled:!0,testid:void 0,xstyle:[q.root,a],children:[m.jsx(c("MWResponsiveVideo.react"),{connectTopStyles:a,fbid:b.attachmentFbid,height:l!=null?(j||(j=d("I64"))).to_float(l):void 0,maxHeight:200,maxWidth:e==="Inbox"?500:167,src:x,width:f!=null?(j||(j=d("I64"))).to_float(f):void 0}),(j||(j=d("I64"))).le(g.authorityLevel,(k||(k=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL))?m.jsx(c("MWV2AttachmentProgressBar.react"),{attachment:b}):null,m.jsx(c("MWChatImageInsetShadow.react"),{xstyle:a})]})}r.displayName=r.name+" [from "+f.id+"]";function a(a){var b=p(null),d=o(function(){return{ref:b}},[b]);return m.jsx(c("MWVideoPlayerControllerContext.react").Provider,{value:d,children:m.jsx(r,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2Sticker.react",["I64","MWChatImageSize","MWLSThreadDisplayContext","MWPColorUtils","Sticker.react","react","stylex","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react")),l=i.useMemo;function m(a){var b=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();return l(function(){var c=b!=null?b==="Inbox"?.75:.5:.5;if(a<60)return 1;else return c},[a,b])}function a(a){var b,e=a.attachment,f=a.getPreviewUrl,g=a.scale;a=a.xstyle;f=f(e);var i=e.previewHeight!=null?(j||(j=d("I64"))).to_int32(e.previewHeight):void 0,l=e.previewWidth!=null?(j||(j=d("I64"))).to_int32(e.previewWidth):void 0;b=m((b=i)!=null?b:120);var n=c("useMWPThreadTheme")();n=n.threadTheme;var o=l!=null&&i!=null;o=d("MWChatImageSize").useImageSize(f,o);l=l!=null&&i!=null?[l,i]:o!=null?[o.width,o.height]:[24,24];i=l[0];o=l[1];return k.jsx(c("Sticker.react"),{accessibilityLabel:(l=e.accessibilitySummaryText)!=null?l:"",animationTrigger:"load_and_hover",className:(h||(h=c("stylex")))(a),customColor:d("MWPColorUtils").int64ToHex(n.fallbackColor),enablePopoverIfPassesGK:!0,frameCount:0,frameRate:void 0,framesPerCol:0,framesPerRow:0,packID:void 0,paddedSpriteURI:void 0,scale:(l=g)!=null?l:b,sourceHeight:o,sourceURI:f,sourceWidth:i,spriteURI:void 0,stickerID:e.attachmentFbid,tabIndex:-1,testid:void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWMessageListAttachment.react",["fbt","LSMediaUrlAttachment","MWAudioPlayer.react","MWLSThreadDisplayContext","MWV2ChatImage.react","MWV2ChatVideo.react","MWV2Sticker.react","MWV2TombstonedMessage.react","react","recoverableViolation","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useCallback;function a(a){var b=a.connectBottom,d=a.connectTop;a=a.xstyle;return k.jsx("div",{className:(i||(i=c("stylex")))(a),children:k.jsx(c("MWV2TombstonedMessage.react"),{connectBottom:b,connectTop:d,children:h._("__JHASH__962PS6SI-P2__JHASH__")})})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b=a.attachment,e=a.connectTop,f=a.message,g=a.navigateToRouteForMediaViewer;a=a.outgoing;var h=l(function(a){return d("LSMediaUrlAttachment").playableUrl(a)},[]);return k.jsx(c("MWV2ChatVideo.react"),{attachment:b,connectTop:e,getPreviewUrl:h,message:f,navigateToRouteForMediaViewer:g,outgoing:a})}b.displayName=b.name+" [from "+f.id+"]";function e(a){var b=a.attachment,c=a.isReply;a=a.outgoing;var e=l(function(a){return d("LSMediaUrlAttachment").playableUrl(a)},[]);return k.jsx(d("MWAudioPlayer.react").MWAudioPlayer,{attachment:b,getPlayableUrl:e,isReply:c,outgoing:a})}e.displayName=e.name+" [from "+f.id+"]";function m(a){var b=a.attachment,e=a.connectBottom,f=a.connectTop,g=a.message,h=a.navigateToRouteForMediaViewer,i=a.outgoing;a=a.renderUnsupportedAttachment;var j=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),m=l(function(a){var b=a.previewUrlLarge;return b!=null&&j==="Inbox"?b:d("LSMediaUrlAttachment").previewUrl(a)},[j]),n=function(a){return d("LSMediaUrlAttachment").playableUrl(a)};return k.jsx(c("MWV2ChatImage.react"),{attachment:b,connectBottom:e,connectTop:f,getPlayableUrl:n,getPreviewUrl:m,message:g,navigateToRouteForMediaViewer:h,outgoing:i,renderUnsupportedAttachment:a})}m.displayName=m.name+" [from "+f.id+"]";function n(a){a=a.attachment;var b=l(function(a){var b;b=(b=d("LSMediaUrlAttachment").playableUrl(a))!=null?b:d("LSMediaUrlAttachment").previewUrl(a);if(b!=null)return b;c("recoverableViolation")("Sticker Attachment has no preview_url or playable_url: "+a.attachmentFbid,"messenger_privacy_web")},[]);return k.jsx(c("MWV2Sticker.react"),{attachment:a,getPreviewUrl:b})}n.displayName=n.name+" [from "+f.id+"]";g.MWMessageListAttachmentError=a;g.MWMessageListAttachmentVideo=b;g.MWMessageListAttachmentAudio=e;g.MWMessageListAttachmentImage=m;g.MWMessageListAttachmentSticker=n}),98); __d("EntMessageReplyType",[],(function(a,b,c,d,e,f){a=Object.freeze({REGULAR:0,BUMP:1});f["default"]=a}),66); __d("MWPMessageHasXMA",["I64","LSIntEnum"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){return[(h||(h=d("I64"))).and_((i||(i=d("LSIntEnum"))).ofNumber(1024),a.displayedContentTypes),h.and_(i.ofNumber(2048),a.displayedContentTypes)].some(function(a){return(h||(h=d("I64"))).to_int32(a)!==0})}g["default"]=a}),98); __d("MWPMessageWithAttachmentHasPoll",["I64","LSIntEnum"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){return(h||(h=d("I64"))).to_int32(h.and_((i||(i=d("LSIntEnum"))).ofNumber(32),a.displayedContentTypes))!==0}g["default"]=a}),98); __d("MWPMessageListAttachmentContainer.react",["MWPMessageHasXMA","MWPMessageIsReply","MWPMessageListColumn.react","MWPMessageWithAttachmentHasPoll","react","stylex","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={container:{maxWidth:"x193iq5w",position:"x1n2onr6",zIndex:"x1vjfegm",$$css:!0},container_for_poll:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"xdt5ytf",width:"xh8yej3",$$css:!0},container_for_xma:{width:"xh8yej3",$$css:!0},vr:{backgroundColor:"xcrg951",height:"x36qwtl",width:"xh8yej3",$$css:!0}};function a(a){var b=a.children,e=a.connectTop,f=a.message;a.outgoing;var g=a.paint;g=g===void 0?!0:g;var i=a.renderEmphasisRing;a=a.xmaLayout;var l=c("MWPMessageHasXMA")(f),m=c("MWPMessageIsReply")(f),n=c("MWPMessageWithAttachmentHasPoll")(f);f=f.text;f=f!=null?f!=="":!1;n=j.jsx("div",{className:(h||(h=c("stylex")))(k.container,l?k.container_for_xma:!1,n?k.container_for_poll:!1),"data-testid":void 0,children:b});return j.jsxs(j.Fragment,{children:[e&&(a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT||!l||!f)?j.jsx("div",{className:"xcrg951 x36qwtl xh8yej3"}):null,j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{paint:!m&&g,children:i!=null?i(l,n):n})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWPGetAttachmentCTA",["I64","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=(i||(i=c("useReStore")))();return d("ReQLSuspense").useFirst(function(){var c;return d("ReQL").fromTableAscending(b.table("attachment_ctas")).getKeyRange((c=a)!=null?c:(h||(h=d("I64"))).zero)},[b,a],f.id+":23")}g["default"]=a}),98); __d("useMWPGetAttachments",["I64","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=(i||(i=c("useReStore")))(),e=a.messageId,g=a.threadKey;return d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(b.table("attachments")).getKeyRange(g,e)},[b,e,g],f.id+":26").sort(function(a,b){return(h||(h=d("I64"))).compare(a.attachmentIndex,b.attachmentIndex)})}g["default"]=a}),98); __d("MWPMessageListAttachment.react",["EntMessageReplyType","I64","LSIntEnum","MWPMessageListAttachmentContainer.react","MWPThreadCapabilitiesContext","MWVerticalRhythm","MessagingAttachmentType","gkx","react","useMWPGetAttachmentCTA","useMWPGetAttachments","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react");function l(a){return(i||(i=d("I64"))).equal(a.attachmentType,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))}function a(a){var b=a.connectBottom,e=a.connectTop,f=a.message,g=a.renderAudioAttachment,h=a.renderEmphasisRing,m=a.renderEphemeralMediaAttachment,n=a.renderFileAttachment,o=a.renderImageAttachment,p=a.renderImageGrid,q=a.renderStickerAttachment,r=a.renderUnsupportedAttachment,s=a.renderUnsupportedMultipleAttachments,t=a.renderVideoAttachment,u=a.renderWrapper,v=a.renderXMAAttachment;a=a.xmaLayout;var w=a===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:a,x=c("useMWPGetAttachments")(f);a=c("useMWPGetAttachmentCTA")(x.length>0?x[0].attachmentCta1Id:null);var y=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();y=y.blurMediaEnabled;y=c("gkx")("1581")&&y;if(f.replyType!=null&&(i||(i=d("I64"))).equal(f.replyType,(j||(j=d("LSIntEnum"))).ofNumber(c("EntMessageReplyType").BUMP)))return null;if(x.length!==1)x.length>1&&x.every(l)?y?y=x.map(function(a,b){return k.jsxs(k.Fragment,{children:[b!==0?k.jsx(c("MWVerticalRhythm"),{height:2}):null,k.jsx(c("MWPMessageListAttachmentContainer.react"),{connectTop:e,message:f,renderEmphasisRing:h,xmaLayout:w,children:o(a,b!==0,b!==x.length-1,r)})]},a.attachmentFbid)}):y=k.jsx(c("MWPMessageListAttachmentContainer.react"),{connectTop:e,message:f,renderEmphasisRing:h,xmaLayout:w,children:p(x)}):y=s!=null?s(x):void 0;else{p=x[0];s=p.attachmentType;s=!(i||(i=d("I64"))).equal(s,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO));var z=p.attachmentType;y=k.jsx(c("MWPMessageListAttachmentContainer.react"),{connectTop:e,message:f,paint:s,renderEmphasisRing:h,xmaLayout:w,children:(i||(i=d("I64"))).equal(z,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))||(i||(i=d("I64"))).equal(z,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE))?o(p,e,b,r):(i||(i=d("I64"))).equal(z,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO))?t(p):(i||(i=d("I64"))).equal(z,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO))?g(p):(i||(i=d("I64"))).equal(z,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").STICKER))?q(p):(i||(i=d("I64"))).equal(z,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA))?v(p,a):(i||(i=d("I64"))).equal(z,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").FILE))?n(p):(i||(i=d("I64"))).equal(z,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").EPHEMERAL_IMAGE))||(i||(i=d("I64"))).equal(z,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").EPHEMERAL_VIDEO))?m(p):r(p)})}return y!=null?u!=null?u(y):y:null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatAttachmentParserUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.startsWith("blob:");if(!b)return;b=a.length;return a.substring(5,b)}f.getBlobUrl=a}),66); __d("formatFileSize",["fbt"],(function(a,b,c,d,e,f,g,h){var i=[function(a){return h._("__JHASH__eMlnaQRXRvN__JHASH__",[h._param("value",a,[0])])},function(a){return h._("__JHASH__3UzqYHovNJr__JHASH__",[h._param("value",a,[0])])},function(a){return h._("__JHASH___CyxwP2Ni02__JHASH__",[h._param("value",a,[0])])},function(a){return h._("__JHASH__B5cUSs7YWey__JHASH__",[h._param("value",a,[0])])},function(a){return h._("__JHASH__7EGP9din_0A__JHASH__",[h._param("value",a,[0])])},function(a){return h._("__JHASH__ghfLx6_Ho7n__JHASH__",[h._param("value",a,[0])])},function(a){return h._("__JHASH__osT4Py2kL4R__JHASH__",[h._param("value",a,[0])])}],j=0;function a(a,b){b===void 0&&(b=1024);if(a==null)return null;if(a===0)return i[j](0);var c=Math.floor(Math.log(Math.abs(a))/Math.log(b));a=a/Math.pow(b,c);a=Math.round(a*100)/100;return i[c](a)}g["default"]=a}),98); __d("MWV2ChatFileV2.react",["fbt","ConstUriUtils","I64","LSMediaUrlAttachment","MDSTextPairing.react","MWChatFilePreview.react","MWChatMessageId","MWFilePressable.react","MWInboxInfoSharedContentQPLLogger","MWV2ChatAttachmentParserUtils","formatFileSize","react","recoverableViolation","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||(j=d("react")),m=j.useMemo,n={content:{color:"xzsf02u",flexGrow:"x1iyjqo2",fontWeight:"x1s688f",paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",wordBreak:"x13faqbe",$$css:!0},fileSize:{paddingTop:"x889kno",$$css:!0},root:{alignItems:"x6s0dn4",display:"x78zum5",userSelect:"x87ps6o",$$css:!0}};function a(a){var b=a.attachment,e=a.getPlayableUrlSecure;a=m(function(){var a=b.filename;if(a!=null)return a;else return h._("__JHASH__uiTAWyhPCWI__JHASH__")},[b]);var f=m(function(){var a=b.filesize!=null?(k||(k=d("I64"))).to_int32(b.filesize):void 0;if(a!=null)return c("formatFileSize")(a);else return null},[b]),g=m(function(){if(e!=null){var a;a=(a=e(b))!=null?a:"";return d("ConstUriUtils").getUri(a)}else{a=d("LSMediaUrlAttachment").playableUrl(b);if(a!=null){var f=d("MWV2ChatAttachmentParserUtils").getBlobUrl(a);if(f!=null)return d("ConstUriUtils").getUri(f);else return d("ConstUriUtils").getUri(a)}}c("recoverableViolation")("Attachment has no playable_url "+b.attachmentFbid,"messenger_comet")},[b,e]);return l.jsx(c("MWFilePressable.react"),{attachmentID:b.attachmentFbid,entryPoint:"chat_file_v4",messageID:d("MWChatMessageId").makeSent((k||(k=d("I64"))).to_string(b.threadKey),b.messageId,k.to_string(b.timestampMs)),onPress:function(){return d("MWInboxInfoSharedContentQPLLogger").logOpenSharedContentFromThread("files")},url:g==null?void 0:g.toString(),children:l.jsxs("div",{className:(i||(i=c("stylex")))(n.root,!1),"data-testid":void 0,children:[l.jsx(c("MWChatFilePreview.react"),{attachment:b,withPreview:!1}),l.jsxs("div",{className:"xzsf02u x1iyjqo2 x1s688f xz9dl7a xn6708d xsag5q8 x1ye3gou x13faqbe",children:[l.jsx(c("MDSTextPairing.react"),{headline:a,headlineLineLimit:3,level:4}),l.jsx("div",{className:"x889kno",children:l.jsx(c("MDSTextPairing.react"),{body:f,bodyColor:"secondary",bodyLineLimit:1,level:4})})]})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatImagesGrid.react",["fbt","CometImageCover.react","CometPhotoGrid.react","LSMediaUrlAttachment","MWLSThreadDisplayContext","MWXPressable.react","react","stylex","useMWV2MediaViewerURL"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useMemo,m={large:{width:"x7cdydq",$$css:!0},pressable:{borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",display:"x1lliihq",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"xh8yej3",$$css:!0},root:{maxWidth:"x193iq5w",$$css:!0},small:{width:"x1so1ns2",$$css:!0}};function n(a){var b=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();return l(function(){var c=a.previewUrlLarge;if(c!=null&&b==="Inbox")return c;else return d("LSMediaUrlAttachment").previewUrl(a)},[a,b])}function o(a){a=a.attachment;var b=n(a);a=c("useMWV2MediaViewerURL")(a);if(b==null)return null;var d=h._("__JHASH__mrw3CpFXi7r__JHASH__");return k.jsx(c("MWXPressable.react"),{"aria-label":d,linkProps:{passthroughProps:{origSrc:b},url:a},overlayRadius:"compact",xstyle:function(){return[m.pressable]},children:k.jsx(c("CometImageCover.react"),{alt:d,src:b})})}o.displayName=o.name+" [from "+f.id+"]";function a(a){a=a.attachments;var b=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();return k.jsx("div",{className:(i||(i=c("stylex")))(m.root,b==="Inbox"?m.large:m.small),"data-testid":void 0,children:k.jsx(c("CometPhotoGrid.react"),{children:a.map(function(a){return k.jsx(o,{attachment:a},a.attachmentFbid)})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSCautionTriangleSvgIcon.react",["MDSSvgIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsx(c("MDSSvgIcon.react"),babelHelpers["extends"]({},a,{children:i.jsx("path",{clipRule:"evenodd",d:"M19.747 8.027c-.764-1.367-2.73-1.367-3.494 0L6.757 25.025C6.012 26.358 6.977 28 8.504 28h18.992c1.528 0 2.492-1.642 1.747-2.975L19.747 8.027zm-3.159 5.97a1.414 1.414 0 112.824 0l-.353 6.005a1.06 1.06 0 01-2.118 0l-.353-6.005zm2.662 9.753a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0z",fillRule:"evenodd"})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2UnsupportedAttachment.react",["fbt","MDSCautionTriangleSvgIcon.react","MWXText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){a=a.attachment;a=a.descriptionText;return j.jsxs("div",{className:"x6s0dn4 x78zum5 xjkvuk6 x1iorvi4 x87ps6o",children:[j.jsx("div",{className:"x6s0dn4 xgx9qek x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 xl56j7k xmo9yow x1iorvi4 x150jy0e xjkvuk6 x1e558r4",children:j.jsx(c("MDSCautionTriangleSvgIcon.react"),{color:"primary",size:24})}),j.jsxs("div",{className:"xzsf02u x1iyjqo2 x1s688f x13faqbe",children:[j.jsx(c("MWXText.react"),{type:"headline4",children:h._("__JHASH__Uhh5LwoNOuv__JHASH__")}),a!=null?j.jsx("div",{className:"x889kno",children:j.jsx(c("MWXText.react"),{color:"secondary",type:"body4",children:a})}):null]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSMediaUrlAttachmentItem",["LSMediaUrlUtils","rewriteFallbackUrl"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.previewUrlExpirationTimestampMs;return b!=null&&d("LSMediaUrlUtils").isTimestampExpired(b)?c("rewriteFallbackUrl")(a.previewUrlFallback):a.previewUrl}function b(a){var b=a.previewUrlExpirationTimestampMs;return b!=null&&d("LSMediaUrlUtils").isTimestampExpired(b)?c("rewriteFallbackUrl")(a.previewUrlFallback):a.previewUrlLarge}function e(a){var b=a.playableUrlExpirationTimestampMs;return b!=null&&d("LSMediaUrlUtils").isTimestampExpired(b)?c("rewriteFallbackUrl")(a.playableUrlFallback):a.playableUrl}function f(a){var b=a.faviconUrlExpirationTimestampMs;return b!=null&&d("LSMediaUrlUtils").isTimestampExpired(b)?c("rewriteFallbackUrl")(a.faviconUrlFallback):a.faviconUrl}g.previewUrl=a;g.previewUrlLarge=b;g.playableUrl=e;g.faviconUrl=f}),98); __d("MWPBaseXMAAttachmentItem.react",["BaseImage.react","I64","LSIntEnum","LSMediaUrlAttachment","LSMediaUrlAttachmentItem","MNLSXMALayoutType","MWPThreadCapabilitiesContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||(h=d("react")),l=h,m=l.createContext,n=l.createElement,o=l.useContext,p=new Set(["xma_rtc_video","xma_rtc_missed_video","xma_rtc_missed_group_video","xma_rtc_ended_video","xma_rtc_new_video_default","xma_rtc_new_video_from_fb_share","xma_rtc_new_video_from_fb_video_share","xma_rtc_new_video_from_cowatch_share","xma_rtc_cowatch_start_video"]),q=new Set(["xma_rtc_audio","xma_rtc_missed_audio","xma_rtc_missed_group_audio","xma_rtc_ended_audio","xma_rtc_new_audio_default","xma_rtc_new_audio_from_fb_share","xma_rtc_new_audio_from_fb_video_share","xma_rtc_new_audio_from_cowatch_share"]),r=m({hasAtLeastOneCta:!1,isDisabledRtcXma:!1,renderPressable:function(a){return null}});function a(a){var b=a.attachment,c=a.attachmentItem,e=a.children;a=a.renderPressable;var f=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();f=f.hasLSThreadBitOffset;var g=f(25);f=f(24);b=b.defaultCtaType;c=c.attachmentCta1Id!=null;g=b!=null?q.has(b)&&!g||p.has(b)&&!f:!1;b={hasAtLeastOneCta:c,isDisabledRtcXma:g,renderPressable:a};return n(r.Provider,{children:!c&&!g?a(e):e,value:b})}function b(a){a=a.children;var b=o(r);if(b.hasAtLeastOneCta&&!b.isDisabledRtcXma)return b.renderPressable(a);else return a}var s={container:{display:"x78zum5",position:"x1n2onr6",width:"xh8yej3",$$css:!0},image:{flexGrow:"x1iyjqo2",height:"xt7dq6l",maxWidth:"x193iq5w",objectFit:"xl1xv1r",$$css:!0}};function e(a){var b=a.attachmentItem;a=a.url;var e=b.previewHeight;b=b.previewWidth;return k.jsx("div",{className:"x78zum5 x1n2onr6 xh8yej3",children:k.jsx(c("BaseImage.react"),{height:e!=null?(i||(i=d("I64"))).to_int32(e):void 0,src:a,width:b!=null?(i||(i=d("I64"))).to_int32(b):void 0,xstyle:s.image})})}e.displayName=e.name+" [from "+f.id+"]";function t(a){var b,c=a.attachment,e=a.attachmentItem,f=a.getPreviewUrl;a=a.preferLargePreview;a=a===void 0?!1:a;var g=d("LSMediaUrlAttachmentItem").playableUrl(e),h=d("LSMediaUrlAttachment").previewUrlLarge(c);b=a?(b=d("LSMediaUrlAttachmentItem").previewUrlLarge(e))!=null?b:d("LSMediaUrlAttachmentItem").previewUrl(e):d("LSMediaUrlAttachmentItem").previewUrl(e);f=f==null?d("LSMediaUrlAttachment").previewUrl(c):f(c,e);a=a&&h!=null?h:(c=b)!=null?c:f;h=e.playableUrlMimeType;b=h!=null?h.includes("video")?"video":h.includes("image")?"image":"unsupported":"unsupported";if(b==="video"&&g!=null)return{type:"Video",url:g};if(a!=null)return{type:"Image",url:a};return b==="image"&&g!=null?{type:"Image",url:g}:{type:"Unsupported"}}function u(a,b){var e=a.xmaLayoutType!=null&&!(i||(i=d("I64"))).equal(a.xmaLayoutType,(j||(j=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").HSCROLL)),f=b.titleText;f=f!=null||!e?f:a.titleText;b=b.subtitleText;e=b!=null||!e?b:a.subtitleText;return[f,e]}g.MWPBaseXMAAttachmentItemPressableContext=r;g.MWPBaseXMAAttachmentItemPressable=a;g.MWPBaseXMAAttachmentItemPressableNested=b;g.MWPBaseXMAAttachmentItemImage=e;g.getXMAAttachmentItemPreview=t;g.useTitleAndSubtitle=u}),98); __d("MWXMAAttachmentActionTriggerWithOpenChatTab.react",["I64","Int64Hooks","LSThreadAttributionStore","MWLSThread","useBlockedUserInterstitial","useCometRouterDispatcher","useMWChatOpenTabByThreadKey","useReStore","useShouldShowMessagingEntrypointInCometRoot"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=a.children;a=a.threadKey;return b(j(a))}function j(a){var b=c("useBlockedUserInterstitial")(),e=c("useShouldShowMessagingEntrypointInCometRoot")("CHAT"),f=c("useCometRouterDispatcher")(),g=c("useMWChatOpenTabByThreadKey")(a,"chatInThread"),j=(i||(i=c("useReStore")))();return d("Int64Hooks").useCallbackInt64(function(c,i){if(e){var k=d("MWLSThread").getThreadExn(j,a);return b(a,k,function(){var a=i.metaKey||i.ctrlKey||i.shiftKey;if(!a)return g()},"chatInThread")}else if(f!=null){k=d("MWLSThread").getThreadExn(j,a);return b(a,k,function(){d("LSThreadAttributionStore").setSource((h||(h=d("I64"))).to_string(a),"chatInThread"),f.go(c,{})},"chatInThread")}else return},[j,f,e,b,g,a])}g["default"]=a}),98); __d("XmaEventsFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("5680");b=d("FalcoLoggerInternal").create("xma_events",a);e=b;g["default"]=e}),98); __d("MessengerWebUXLoggerXMAEventLoggingImpl",["CometPassiveGetRouterStateContext","CometProductAttribution","I64","LsThreadType","WebUXLoggingEntryPointContextProvider","XmaEventsFalcoEvent","castToEnum","react","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react"),k=j.useCallback,l=j.useContext,m=j.useInsertionEffect,n=j.useRef;function a(){var a=o("xma_redirect_to_fb");return k(function(b){a(b)},[a])}function b(a){var b=o("xma_impression");return c("useSinglePartialViewImpression")({onImpressionStart:function(){b(a)}})}function e(){var a=o("xma_click");return k(function(b){a(b)},[a])}function f(){var a=o("xma_fb_opened");return k(function(b){a(b)},[a])}function o(a){var b=l(d("WebUXLoggingEntryPointContextProvider").WebUXEntryPointLoggingContext),e=n(b);m(function(){e.current=b});var f=l(c("CometPassiveGetRouterStateContext"));return k(function(b){var g=b.attachment.messageId,h=c("castToEnum")(b.threadType,c("LsThreadType"),null),j=b.attachment.threadKey,k=(i||(i=d("I64"))).to_string(j),l=e.current,m=p(b.attachment);c("XmaEventsFalcoEvent").log(function(){return{attribution_id_v2:d("CometProductAttribution").getMinifiedTopMostRouteProductAttribution(f),click_category:b==null?void 0:b.clickCategory,click_target_type:m,entrypoint:l,event:(b==null?void 0:b.isDirectToExternal)===!0?"xma_redirect_to_external_app":a,is_facebook_installed:null,message_id:g,thread_id:k,thread_type:h}})},[a,f])}function p(a){var b=a.defaultCtaType,c=a.attachmentLoggingType;a=a.cta1Type;var d=35;b==="xma_rtc_missed_audio"?d=37:b==="xma_rtc_missed_video"?d=36:b==="xma_rtc_missed_group_audio"?d=67:b==="xma_rtc_missed_group_video"?d=66:b==="xma_rtc_audio"?d=17:b==="xma_rtc_video"?d=18:b==="xma_rtc_ended_audio"?d=57:b==="xma_rtc_ended_video"?d=56:b==="xma_rtc_new_audio_default"?d=68:b==="xma_live_location_sharing"?(d=38,a==="xma_live_location_sharing"&&(d=39)):b==="xma_shops_pdp"?d=61:b==="xma_open_native"?d=41:b==="xma_web_url"?d=35:c==="xma_open_contact_share"?d=64:b==="xma_customer_information"?d=65:c==="xma_appointment_confirmed"?d=70:b==="xma_montage_share"&&(d=82);return d}g.useXMAEventsRedirectDefaultToFBLogger=a;g.useXMAEventsImpressionLoggerRef=b;g.useXMAEventsClickLogger=e;g.useXMAEventOpenInFBLogger=f}),98); __d("LsDidTapCallToActionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743852");b=d("FalcoLoggerInternal").create("ls_did_tap_call_to_action",a);e=b;g["default"]=e}),98); __d("logXMACtaClicked",["I64","LsDidTapCallToActionFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=a.cta,e=a.loggingDetails,f=a.source;if(e==null)return;a=b.actionContentBlob;var g=a!=null?i(a):"",l=a!=null?k(a):"",m=a!=null?j(a):"",n=e[1],o=e[0];c("LsDidTapCallToActionFalcoEvent").log(function(){return{action:{cta_type_unique_id:l,id:(h||(h=d("I64"))).to_string(b.ctaId),name:"",source:f,type:n},message:{campaign_id:m,id:b.messageId,notification_token:g},page:{id:o},target:{id:o},thread:{id:o}}})}function i(a){try{a=JSON.parse(a);a=a.notification_message_token;return a!=null?a:""}catch(a){return""}}function j(a){try{a=JSON.parse(a);a=a.mbs_mm_campaign_id;return a!=null?a:""}catch(a){return""}}function k(a){try{a=JSON.parse(a);a=a.mm_cta_unique_id;return a!=null?a:""}catch(a){return""}}g.logXMACtaClicked=a}),98); __d("useGetMWXMACtaRegistryHandler",["$InternalEnum","Actor","ConstUriUtils","CurrentEnvironment","CustomerInformationTemplateFalcoEvent","I64","MWChatXmaThirdPartyActionHandler","MWLSImagePostbackCtaHandler","MWLSPostbackCtaHandler","MWLSWebUrlCtaHandler","XCometMessengerControllerRouteBuilder","XCometStoriesControllerRouteBuilder","XMessengerDotComCometMainControllerRouteBuilder","cr:131","cr:236","cr:4538","cr:4539","cr:5751","emptyFunction","gkx","isStringNullOrEmpty","nullthrows","qex","useCometRouterDispatcher","useLSMessagingInitiatingSource","useLSMessagingSource","useMWChatPollXMAActionHandler","useRollcallContributionsXMAActionHandler","useStartRTCCall"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(f=(e=b("cr:4539"))!=null?e:b("cr:131"))!=null?f:c("emptyFunction"),j=(e=b("cr:5751"))!=null?e:c("emptyFunction"),k=(e=(f=b("cr:4538"))!=null?f:b("cr:236"))!=null?e:c("emptyFunction"),l=b("$InternalEnum")({SUBTHREAD_LINK:"fb-messenger://community_subthread/"});function a(){var a=c("useLSMessagingInitiatingSource")(),b=c("useLSMessagingSource")(),e=d("Actor").useActor(),f=e[0];e=d("MWLSImagePostbackCtaHandler").usePostbackCtaHandler(b,a);b=c("useStartRTCCall")();var g=d("MWChatXmaThirdPartyActionHandler").useHandler(e,b),m=d("MWLSPostbackCtaHandler").usePostbackCtaHandler(),n=c("useMWChatPollXMAActionHandler")(),o=d("useRollcallContributionsXMAActionHandler").useRollcallContributionsXMAActionHandler(),p=d("MWLSWebUrlCtaHandler").useShowWebViewDialog(),q=c("useCometRouterDispatcher")();a=k();var r=i({onSuccess:(e=a)!=null?e:c("emptyFunction")}),s=j();return function(a){var b=a.actionUrl,e=a.platformToken,i=a.type_,j=a.title,k=a.messageId,t=a.threadKey,u=a.attachmentFbid,v=["Title: "+j,"Type: "+i,"PlatformTokenPresent: "+(e!=null).toString(),"ActionUrlPresent: "+(b!=null).toString(),"ActionContentBlobPresent: "+(a.actionContentBlob!=null).toString()].join(", ");if(i==="xma_roll_call_open_viewer"||i==="xma_prompt_open_viewer_for_text"||i==="xma_roll_call_add_yours")return a.targetId==null?{actionType:"NOT_SUPPORTED",primaryInfo:void 0}:{actionType:"BUTTON",primaryInfo:function(){o(c("nullthrows")(a.targetId),t,null,i)},secondaryInfo:void 0};if(i==="xma_event_rsvp"&&c("gkx")("3170"))return{actionType:"BUTTON",primaryInfo:function(){},secondaryInfo:void 0};if(i==="xma_rtc_audio"||i==="xma_rtc_missed_audio"||i==="xma_rtc_new_audio_default"||i==="xma_rtc_ended_audio")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"MakeRtcCall",VAL:{hasVideo:!1,threadId:(h||(h=d("I64"))).to_string(t),trigger:i}})},secondaryInfo:void 0};if(i==="xma_rtc_video"||i==="xma_rtc_new_video_default"||i==="xma_rtc_new_video_from_fb_share"||i==="xma_rtc_new_video_from_fb_video_share"||i==="xma_rtc_missed_video"||i==="xma_rtc_ended_video")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"MakeRtcCall",VAL:{hasVideo:!0,threadId:(h||(h=d("I64"))).to_string(t),trigger:i}})},secondaryInfo:void 0};if(i==="xma_postback")return{actionType:"BUTTON",primaryInfo:function(){return m(e,j)},secondaryInfo:[(h||(h=d("I64"))).to_string(t),31]};if(i==="xma_open_dialog"){var w;if(b==null)return{actionType:"CTA_ERROR",primaryInfo:"Expected an open dialog url but didn't get any",secondaryInfo:"messenger_business_core_product"};w=(w=d("ConstUriUtils").getUri(b))==null?void 0:w.getQueryData==null?void 0:w.getQueryData();if(w==null)return{actionType:"CTA_ERROR",primaryInfo:"Expected a valid open dialog url but didn't get any",secondaryInfo:"messenger_business_core_product"};var x=String(w.page_id).toString(),y=String(w.guest_id).toString();return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"ShowGuestChatHistory",VAL:{guestId:y,pageId:x}})},secondaryInfo:void 0}}if(i==="xma_p2p_payment_details"||i==="xma_p2p_request_pay"||i==="xma_p2p_payment_details_receive_money"||i==="xma_p2p_verify_info"){var z=a.targetId;return z==null?{actionType:"CTA_ERROR",primaryInfo:"P2P Transaction encounterd without txn id",secondaryInfo:"messenger_privacy_web"}:{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"P2PPaymentTransactionDetails",VAL:{currentStatus:null,id:(h||(h=d("I64"))).to_string(z)}})},secondaryInfo:void 0}}if(i==="fill_in_thread_form"||i==="filled_in_thread_form_successfully"){var A=a.actionContentBlob;return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"ShowInThreadFormDetails",VAL:JSON.parse(c("nullthrows")(A))})},secondaryInfo:void 0}}if(i==="xma_join_from_portal"&&b!=null)return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"MakeJoinRoomFromPortal",VAL:{linkUrl:b}})},secondaryInfo:void 0};if(i==="xma_live_location_sharing")return{actionType:"BUTTON",primaryInfo:function(){return g(a.nativeUrl!=null?{NAME:"ShowStaticLocationDetails",VAL:{msgId:k}}:{NAME:"ShowLiveLocationDetails",VAL:{messageId:k,titleString:j}})},secondaryInfo:void 0};var B=a.actionContentBlob,C=a.targetId;if(i==="xma_poll_details_button"||i==="xma_poll_details_card")return{actionType:"BUTTON",primaryInfo:function(){return n(C,B)},secondaryInfo:void 0};if(i==="xma_otp_verification")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"ShowPhoneVerificationDialog",VAL:JSON.parse(c("nullthrows")(B))})},secondaryInfo:void 0};if(B!=null&&C!=null)try{var D=JSON.parse(B);if(i==="xma_admod_chat_member_request")return{actionType:"BUTTON",primaryInfo:function(){var a=D.activityLogItemID,b=D.groupID,c=D.profileID;return g({NAME:"AdmodChatsShowMemberRequest",VAL:{activityLogItemId:a!=null?JSON.stringify(a):"",groupId:b!=null?JSON.stringify(b):"",profileId:c!=null?JSON.stringify(c):"",targetId:C!=null?(h||(h=d("I64"))).to_string(C):""}})},secondaryInfo:void 0};else if(i==="xma_admod_chat_pending_post")return{actionType:"BUTTON",primaryInfo:function(){var a=D.activityLogItemID,b=D.authorID,c=D.groupID,e=D.postID;return g({NAME:"AdmodChatsShowPendingPost",VAL:{activityLogItemId:a!=null?JSON.stringify(a):"",authorId:b!=null?JSON.stringify(b):"",groupId:c!=null?JSON.stringify(c):"",postId:e!=null?JSON.stringify(e):"",targetId:C!=null?(h||(h=d("I64"))).to_string(C):""}})},secondaryInfo:void 0}}catch(a){if(i!=="marketplace_xma_call_function"||!c("gkx")("5527"))return{actionType:"NOT_SUPPORTED",primaryInfo:void 0}}var E=a.targetId;if(E!=null){var F={orderID:(h||(h=d("I64"))).to_string(E)};if(i==="xma_p2m_payment_details")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"P2MOrderDetails",VAL:F})},secondaryInfo:void 0};else if(i==="xma_p2m_attach_receipt")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"P2MAttachBankSlip",VAL:F})},secondaryInfo:void 0};else if(i==="xma_p2m_offsite_bank_transfer")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"P2MOffsiteBankTransferCTA",VAL:F})},secondaryInfo:void 0};else if(i==="xma_p2m_mark_as_paid")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"P2MMarkAsPaid",VAL:{orderID:(h||(h=d("I64"))).to_string(E)}})},secondaryInfo:void 0};else if(i==="xma_p2m_mark_as_shipped")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"P2MMarkAsShipped",VAL:{orderID:(h||(h=d("I64"))).to_string(E)}})},secondaryInfo:void 0};if(i==="xma_p2m_checkout"){var G={orderID:(h||(h=d("I64"))).to_string(E),pageID:h.to_string(t)};return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"P2MCheckout",VAL:G})},secondaryInfo:void 0}}if(i==="xma_p2m_informational_message_bottom_sheet"){var H={contentType:JSON.parse(c("nullthrows")(B)),orderID:(h||(h=d("I64"))).to_string(E),pageID:h.to_string(t)};return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"P2MInformationalMessageBottomSheet",VAL:H})},secondaryInfo:void 0}}}if(i==="xma_customer_information"){var I=(h||(h=d("I64"))).to_string(t);c("CustomerInformationTemplateFalcoEvent").log(function(){return{consumer_id:f,event_type:"mw_xma_impression",form_id:a.attachmentFbid,page_id:I}});if(c("qex")._("277")){var J={actorId:f,eeMessageId:a.attachmentFbid,messageId:a.messageId,pageId:I};return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"BuyerShippingAddress",VAL:J})},secondaryInfo:void 0}}}if(B==null&&(i==="xma_direct_send"||i==="xma_biz_inbox_form_send"||i==="xma_feedback_send"))return{actionType:"CTA_ERROR",primaryInfo:"Expected pii_form data but didn't get any",secondaryInfo:"mb_apix"};if(i==="xma_direct_send")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"ShowPIIForm",VAL:JSON.parse(c("nullthrows")(B))})},secondaryInfo:[(h||(h=d("I64"))).to_string(t),45]};if(i==="xma_biz_inbox_form_send")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"ShowPIIFormForFormBuilder",VAL:{ctaType:i,nuxData:{description:"",seen:!0,title:"",url:"",url_text:""},piiForm:JSON.parse(c("nullthrows")(B))}})},secondaryInfo:[(h||(h=d("I64"))).to_string(t),45]};if(i==="xma_feedback_send")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"ShowCustomerFeedbackForm",VAL:{feedbackFormId:c("nullthrows")(B)}})},secondaryInfo:[(h||(h=d("I64"))).to_string(t),69]};if(i==="xma_workplace_chat_bot_submit_feedback"){var K={feedbackActionContentBlob:c("nullthrows")(B)};return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"WorkplaceChatBotSubmitFeedback",VAL:K})},secondaryInfo:void 0}}if(i==="xma_account_link")return b==null?{actionType:"CTA_ERROR",primaryInfo:"Expected an account link url but didn't get any",secondaryInfo:"mb_apix"}:{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"OpenAccountLinkUrl",VAL:b})},secondaryInfo:[(h||(h=d("I64"))).to_string(t),49]};if(i==="xma_open_joinable_call_invite_url")return{actionType:"BUTTON",primaryInfo:function(){var a;return g({NAME:"MakeWorkJoinableCallInvite",VAL:{linkUrl:(a=b)!=null?a:""}})},secondaryInfo:void 0};if(i==="xma_montage_share"){if(a.targetId==null)return{actionType:"NOT_SUPPORTED",primaryInfo:void 0};w=(w=c("XCometStoriesControllerRouteBuilder").buildUri({card_id:window.btoa("S:_ISC:"+(h||(h=d("I64"))).to_string(a.targetId)),view_single:!0}).setDomain("www.facebook.com"))==null?void 0:w.setProtocol("https");return w==null?{actionType:"NOT_SUPPORTED",primaryInfo:void 0}:{actionType:"URL",primaryInfo:c("nullthrows")(w).toString(),secondaryInfo:void 0}}if(i==="marketplace_xma_call_function")return a.actionContentBlob==null||a.targetId==null?{actionType:"NOT_SUPPORTED",primaryInfo:void 0}:{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"ProcessMarketplaceCallFunction",VAL:{actionType:c("nullthrows")(a.actionContentBlob),attachmentFbid:u,messageId:k,targetId:c("nullthrows")(a.targetId)}})},secondaryInfo:void 0};if(i==="marketplace_xma_open_dialog"){if(b==null||a.actionContentBlob==null)return{actionType:"CTA_ERROR",primaryInfo:"Expected an open dialog url and actionContentBlob but didn't get any",secondaryInfo:"messenger_business_core_product"};w=d("ConstUriUtils").getUri(b);if(w==null)return{actionType:"CTA_ERROR",primaryInfo:"Found invalid url when creating CTA",secondaryInfo:"messenger_business_core_product"};var L=String(w.getQueryParam("listingID")).toString();return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"OpenMarketplaceDialog",VAL:{ctaType:c("nullthrows")(a.actionContentBlob),listingId:L,threadId:(h||(h=d("I64"))).to_string(t)}})},secondaryInfo:void 0}}if(i==="xma_ctm_in_thread_multiphoto_reply_image"){if(a.actionContentBlob==null)return{actionType:"NOT_SUPPORTED",primaryInfo:void 0};try{w=JSON.parse(a.actionContentBlob);var M=w.action_prefill,N=w.ad_id,O=w.customer_id,P=w.index,Q=w.page_id,R=w.reply_image_uri;if(M==null||R==null)return{actionType:"NOT_SUPPORTED",primaryInfo:void 0};var S='{"in_thread_multiphoto_xma_reply": true}';return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"SendImagePostback",VAL:{image:R,loggingDetails:{ad_id:N.toString(),consumer_id:O.toString(),index:P,page_id:Q.toString()},message:M,platformToken:c("isStringNullOrEmpty")(e)?S:e}})},secondaryInfo:void 0}}catch(a){return{actionType:"NOT_SUPPORTED",primaryInfo:void 0}}}if(i==="xma_disabled_cta")return{actionType:"DISABLED_BUTTON",primaryInfo:void 0};if(i==="xma_open_native"){w=a.nativeUrl;if(w!=null&&w.startsWith("fb-messenger://user-thread/")){var T=w.substr("fb-messenger://user-thread/".length);return{actionType:"DEEPLINK",primaryInfo:{loggingDetails:[(h||(h=d("I64"))).to_string(t),33],threadKey:h.of_string(T)}}}if(w!=null&&w.startsWith(l.SUBTHREAD_LINK)){try{T=new URL(w),w=T.searchParams.get("subthread_fbid")}catch(a){w=null}if(s!=null&&w!=null){var U=(h||(h=d("I64"))).of_string(w);return{actionType:"BUTTON",primaryInfo:function(){return s(U)},secondaryInfo:void 0}}}var V=a.actionContentBlob;if(V!=null)return{actionType:"BUTTON",primaryInfo:function(){return p(V)},secondaryInfo:void 0};if(b!=null)if(b.includes("://m.me/j/")&&c("gkx")("6970")){if(a.targetId!=null){T=(h||(h=d("I64"))).to_string(a.targetId);var W=c("CurrentEnvironment").messengerdotcom?c("XMessengerDotComCometMainControllerRouteBuilder").buildURL({thread_key:T}):c("XCometMessengerControllerRouteBuilder").buildURL({thread_key:T});return{actionType:"BUTTON",primaryInfo:function(){return q==null?void 0:q.go(W,{})},secondaryInfo:void 0}}return{actionType:"BUTTON",primaryInfo:function(){return r==null?void 0:r(b)},secondaryInfo:void 0}}else return{actionType:"URL",primaryInfo:b,secondaryInfo:[(h||(h=d("I64"))).to_string(t),33]};return{actionType:"CTA_ERROR",primaryInfo:"No Url found while parsing Open Native XMA "+v,secondaryInfo:"messenger_privacy_web"}}var X=a.targetId;if(X!=null&&i==="xma_services_confirm_booking")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"ConfirmAppointmentBooking",VAL:{requestID:(h||(h=d("I64"))).to_string(X)}})},secondaryInfo:void 0};if(B!=null&&B.length>0&&B!=="{}"&&!B.includes("notification_message_token")&&!B.includes("contact_type"))return{actionType:"BUTTON",primaryInfo:function(){return p(B)},secondaryInfo:void 0};if(b!=null){if(a.enableExtensions===!0){var Y={actionLink:b,pageID:(h||(h=d("I64"))).to_string(t),sourceTitle:(w=j)!=null?w:"",userID:h.to_string(t)};if(i==="xma_open_rich_widget")return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"ShowMessengerRichWidgetExtension",VAL:Y})},secondaryInfo:[(h||(h=d("I64"))).to_string(t),33]};else return{actionType:"BUTTON",primaryInfo:function(){return g({NAME:"ShowMessengerExtensions",VAL:Y})},secondaryInfo:[(h||(h=d("I64"))).to_string(t),33]}}return{actionType:"URL",primaryInfo:b,secondaryInfo:[(h||(h=d("I64"))).to_string(t),32]}}return{actionType:"CTA_ERROR",primaryInfo:"Unknown CTA encountered while parsing XMA. "+v,secondaryInfo:"messenger_privacy_web"}}}g["default"]=a}),98); __d("useMWXMAInformedAttachmentLabel",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";function a(a,b){a===void 0&&(a="");a={ALTERED_MEDIA:h._("__JHASH__pK0fcBDpaEV__JHASH__",[h._param("attachment item title",a)]),ALTERED_PHOTO:h._("__JHASH__dJ_qZg1Bnj2__JHASH__",[h._param("attachment item title",a)]),FALSE_NEWS:h._("__JHASH__9UILySlE-wD__JHASH__",[h._param("attachment item title",a)]),MISLEADING_NEWS:h._("__JHASH__7LJaDiii2kF__JHASH__",[h._param("attachment item title",a)]),MISSING_CONTEXT:h._("__JHASH__JiWZCmbD51v__JHASH__",[h._param("attachment item title",a)]),SENSITIVE:h._("__JHASH__gmdVuVfF78Q__JHASH__",[h._param("attachment item title",a)])};return b==null||a[b]==null?h._("__JHASH__jBGVUqdMJ6C__JHASH__"):a[b]}g["default"]=a}),98); __d("MWXMAAttachmentActionTriggerDefault.react",["I64","MWInboxRouteBuilder","MWLSThread","MWXLink.react","MWXMAAttachmentActionTriggerWithOpenChatTab.react","MWXPressable.react","MessengerWebUXLogger","MessengerWebUXLoggerXMAEventLoggingImpl","ReQL","ReQLSuspense","isCometRouterUrl","justknobx","logXMACtaClicked","react","recoverableViolation","useGetMWXMACtaRegistryHandler","useMWXMAInformedAttachmentLabel","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l={link:{":hover_textDecoration":"x1lku1pv",$$css:!0}};function a(a){var b=a.attachment,e=a.attachmentItem,g=a.children,j=(h||(h=c("useReStore")))(),m=e.defaultCtaId,n=e.defaultCtaType,o=e.threadKey;a=c("useMWXMAInformedAttachmentLabel")(e==null?void 0:e.titleText,b==null?void 0:b.gatingTitle);var p=d("ReQLSuspense").useFirst(function(){var a;return d("ReQL").fromTableAscending(j.table("attachment_ctas")).getKeyRange((a=m)!=null?a:(i||(i=d("I64"))).zero)},[j,m],f.id+":60"),q=c("useGetMWXMACtaRegistryHandler")(),r=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger(),s=d("MessengerWebUXLoggerXMAEventLoggingImpl")==null?void 0:d("MessengerWebUXLoggerXMAEventLoggingImpl").useXMAEventsClickLogger(),t=d("MessengerWebUXLoggerXMAEventLoggingImpl")==null?void 0:d("MessengerWebUXLoggerXMAEventLoggingImpl").useXMAEventsRedirectDefaultToFBLogger(),u=d("MessengerWebUXLoggerXMAEventLoggingImpl")==null?void 0:d("MessengerWebUXLoggerXMAEventLoggingImpl").useXMAEventOpenInFBLogger(),v=d("MWLSThread").useThread(o,function(a){return a.threadType}),w=b.defaultCtaType==="xma_prompt_open_viewer_for_text";if(p==null)return g;q=q(p);switch(q.actionType){case"BUTTON":var x,y=q.primaryInfo,z=q.secondaryInfo;return k.jsx(c("MWXPressable.react"),{"aria-label":(x=e.titleText)!=null?x:e.defaultCtaTitle,hideHoverOverlay:w,onPress:function(){r==null?void 0:r({ctaType:n,eventName:"open_xma_attachment_cta",threadKey:o,threadType:v});d("logXMACtaClicked").logXMACtaClicked({cta:p,loggingDetails:z,source:1});s==null?void 0:s({attachment:b,clickCategory:2,threadType:v});t({attachment:b,threadType:v});return y()},children:g});case"DISABLED_BUTTON":return k.jsx(c("MWXPressable.react"),{"aria-label":(x=e.titleText)!=null?x:"",disabled:!0,children:g});case"URL":w=q.primaryInfo;var A=c("isCometRouterUrl")(w);if(!(w.startsWith("http")||w.startsWith("/")))return g;var B=q.secondaryInfo;return k.jsx(c("MWXLink.react"),{href:w,label:a,onClick:function(){d("logXMACtaClicked").logXMACtaClicked({cta:p,loggingDetails:B,source:1}),s==null?void 0:s({attachment:b,clickCategory:2,threadType:v}),t({attachment:b,isDirectToExternal:!A,threadType:v})},onNavigate:function(a){A&&a&&u({attachment:b,threadType:v})},target:c("justknobx")._("1677")?void 0:"_blank",xstyle:l.link,children:g});case"DEEPLINK":var C=function(){d("logXMACtaClicked").logXMACtaClicked({cta:p,loggingDetails:D,source:1}),s==null?void 0:s({attachment:b,clickCategory:2,threadType:v}),t==null?void 0:t({attachment:b,threadType:v})};e=q.primaryInfo;var D=e.loggingDetails;x=e.threadKey;var E=d("MWInboxRouteBuilder").buildURL({thread_key:(i||(i=d("I64"))).to_string(x)});return k.jsx(c("MWXMAAttachmentActionTriggerWithOpenChatTab.react"),{threadKey:x,children:function(a){return k.jsx(c("MWXLink.react"),{href:E,onClick:function(b){a(E,b);return C()},preventLocalNavigation:!0,xstyle:l.link,children:g})}});case"CTA_ERROR":c("recoverableViolation")(q.primaryInfo,q.secondaryInfo,void 0,{trackOnly:!0});return g;case"NOT_SUPPORTED":return g}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentActionTrigger.react",["MWXMAAttachmentActionTriggerDefault.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.attachment,d=a.attachmentItem,e=a.children;a=a.isPressable;if(a)return i.jsx(c("MWXMAAttachmentActionTriggerDefault.react"),{attachment:b,attachmentItem:d,children:e});else return e}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSCTAIconType",[],(function(a,b,c,d,e,f){a=Object.freeze({NONE:0,FB:1,FB_ALWAYS_WHITE:2,DOTS_THREE_HORIZONTAL:3,CHEVRON_DOWN:4});f["default"]=a}),66); __d("MWXMAAttachmentItemCtaButtonBase.react",["ix","I64","ImageIconSource","LSCTAIconType","LSIntEnum","LSMessagingThreadTypeUtil","MWInboxRouteBuilder","MWLSThread","MessengerWebUXLogger","ReQL","ReQLSuspense","gkx","react","recoverableViolation","requireDeferred","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=j||(j=d("react")),n=j.useEffect,o=c("requireDeferred")("ZenonUserActionLoggerCommon").__setRef("MWXMAAttachmentItemCtaButtonBase.react");function p(a){if(a==null)return null;switch((l||(l=d("LSIntEnum"))).toNumber(a)){case c("LSCTAIconType").NONE:return null;case c("LSCTAIconType").FB:return new(c("ImageIconSource"))(h("814640"),16,16);default:return null}}function a(a){var b=a.attachmentId,e=a.ctaIconType,g=a.ctaId,h=a.getCtaRegistryHandler;a.messageId;var j=a.renderButtonActionEventButton,l=a.renderButtonActionNonEventButton,q=a.renderDeeplinkActionButton,r=a.renderDisabledButtonActionButton,s=a.renderUrlActionButton,t=a.threadKey,u=a.title,v=a.type,w=(i||(i=c("useReStore")))();a=d("MWLSThread").useThread(t,function(a){return a.threadType});var x=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useImpressionLoggerRef({ctaType:v,eventName:"xma_attachment_cta",threadKey:t,threadType:a});a=a?d("LSMessagingThreadTypeUtil").isJoinedSocialChannel(a):!1;var y=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(w.table("attachment_ctas")).getKeyRange(g)},[w,g],f.id+":132");n(function(){var a=["xma_rtc_audio","xma_rtc_missed_audio","xma_rtc_ended_audio","xma_rtc_video","xma_rtc_missed_video","xma_rtc_ended_video"].includes(v);a&&o.onReady(function(a){a.logImpression({surface:"admin_message"})})},[v]);if(y==null)return v==="xma_disabled_cta"?m.jsx("div",{className:"x18xmwgd x1iyjqo2 xs83m0k x1iorvi4 x150jy0e xjkvuk6 x1e558r4",ref:x,children:r(u)}):null;h=h(y);e=p(e);var z=null;switch(h.actionType){case"BUTTON":var A=h.secondaryInfo,B=h.primaryInfo,C=v==="xma_event_rsvp"&&c("gkx")("3170");b!=null&&t!=null&&!((a=a)!=null?a:!1)&&C?z=j(b,t,u,e,y,A):C||(z=l(u,e,y,A,B));break;case"URL":a=h.secondaryInfo;z=s(u,e,y,a,h.primaryInfo);break;case"DISABLED_BUTTON":z=r(u);break;case"DEEPLINK":j=h.primaryInfo;b=j.loggingDetails;t=j.threadKey;C=d("MWInboxRouteBuilder").buildURL({thread_key:(k||(k=d("I64"))).to_string(t)});z=q(u,t,y,b,C);break;case"CTA_ERROR":c("recoverableViolation")(h.primaryInfo,h.secondaryInfo,void 0,{trackOnly:!0});z=null;break;case"NOT_SUPPORTED":z=null;break}return m.jsx("div",{className:"x18xmwgd x1iyjqo2 xs83m0k x1iorvi4 x150jy0e xjkvuk6 x1e558r4",ref:x,children:z})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWCMPollsV1Enabled",["LSThreadBitOffset","MWLSThread"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=(a=d("MWLSThread").useThread(a,function(a){return{pollsV1UICapability:d("LSThreadBitOffset").has(158,a)}}))!=null?a:{};a=a.pollsV1UICapability;return a===!0}g["default"]=a}),98); __d("useMWHasPollsVotingEnabled",["LSThreadBitOffset","MWLSThread"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=(a=d("MWLSThread").useThread(a,function(a){return d("LSThreadBitOffset").has(170,a)}))!=null?a:!1;return a}g["default"]=a}),98); __d("MWXMAAttachmentItemCtaButton.react",["I64","JSResourceForInteraction","LSMessagingThreadTypeUtil","MDSButton.react","MWCMIsAnyCMThread","MWLSThread","MWXLazyPopoverTrigger.react","MWXMAAttachmentActionTriggerWithOpenChatTab.react","MWXMAAttachmentItemCtaButtonBase.react","MWXTooltip.react","MessengerWebUXLogger","logXMACtaClicked","react","useGetMWXMACtaRegistryHandler","useMWCMPollsV1Enabled","useMWCMPollsV2Enabled","useMWHasPollsVotingEnabled"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react"),k=c("JSResourceForInteraction")("MWCMEventRSVPXMADropdownMenu.react").__setRef("MWXMAAttachmentItemCtaButton.react");function a(a){var b=a.attachmentId,e=a.ctaIconType,f=a.ctaId,g=a.messageId,h=a.threadKey,l=a.title;a=a.type;var m=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger(),n=d("MWLSThread").useThread(h,function(a){return a.threadType}),o={ctaType:a,eventName:"open_xma_attachment_cta",threadKey:h,threadType:n};n=c("useGetMWXMACtaRegistryHandler")();var p=c("useMWHasPollsVotingEnabled")(h),q=c("useMWCMPollsV1Enabled")(h),r=c("useMWCMPollsV2Enabled")(h),s=d("MWLSThread").useThread(h,function(a){return c("MWCMIsAnyCMThread")(a.threadType)}),t=d("MWLSThread").useThread(h,function(a){return d("LSMessagingThreadTypeUtil").isUnjoinedDiscoverablePublicBroadcastChannel(a.threadType)||d("LSMessagingThreadTypeUtil").isSocialChannelUnjoined(a.threadType)});if(!p&&(a==="xma_poll_details_button"||a==="xma_poll_details_card"))return null;return((p=s)!=null?p:!1)&&!q&&!r&&a==="xma_poll_details_button"?null:j.jsx(c("MWXMAAttachmentItemCtaButtonBase.react"),{attachmentId:b,ctaIconType:e,ctaId:f,getCtaRegistryHandler:n,messageId:g,renderButtonActionEventButton:function(a,b,e,f,g,h){return j.jsx(c("MWXLazyPopoverTrigger.react"),{align:"stretch",popoverProps:{eventId:(i||(i=d("I64"))).of_string(a),threadKey:b},popoverResource:k,popoverType:"menu",position:"above",preloadTrigger:"button",children:function(a,b,i,k,l,n){return j.jsx(c("MWXTooltip.react"),{tooltip:e,children:j.jsx(c("MDSButton.react"),{icon:f,label:e,onHoverIn:k,onHoverOut:l,onPress:function(){m==null?void 0:m(o);d("logXMACtaClicked").logXMACtaClicked({cta:g,loggingDetails:h,source:2});return b()},onPressIn:n,ref:a,type:"secondary"})})}})},renderButtonActionNonEventButton:function(a,b,e,f,g){return j.jsx(c("MWXTooltip.react"),{tooltip:a,children:j.jsx(c("MDSButton.react"),{disabled:t,icon:b,label:a,onPress:function(){m==null?void 0:m(o);d("logXMACtaClicked").logXMACtaClicked({cta:e,loggingDetails:f,source:2});return g()},type:"secondary"})})},renderDeeplinkActionButton:function(a,b,e,f,g){return j.jsx(c("MWXTooltip.react"),{tooltip:a,children:j.jsx(c("MWXMAAttachmentActionTriggerWithOpenChatTab.react"),{threadKey:b,children:function(b){return j.jsx(c("MDSButton.react"),{label:a,linkProps:{preventLocalNavigation:!0,url:g},onPress:function(a){b(g,a);m==null?void 0:m(o);return d("logXMACtaClicked").logXMACtaClicked({cta:e,loggingDetails:f,source:2})},type:"secondary"})}})})},renderDisabledButtonActionButton:function(a){return j.jsx(c("MWXTooltip.react"),{tooltip:a,children:j.jsx(c("MDSButton.react"),{disabled:!0,label:a,type:"secondary"})})},renderUrlActionButton:function(a,b,e,f,g){return j.jsx(c("MWXTooltip.react"),{tooltip:a,children:j.jsx(c("MDSButton.react"),{icon:b,label:l,linkProps:{target:"_blank",url:g},onPress:function(){m==null?void 0:m(o),d("logXMACtaClicked").logXMACtaClicked({cta:e,loggingDetails:f,source:2})},type:"secondary"})})},threadKey:h,title:l,type:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentItemIcon.react",["CometImageCover.react","CometSkittleIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.icon;if(a==null)return null;return typeof a==="string"?i.jsx("div",{className:"x6s0dn4 x78zum5 x5yr21d xq8finb",children:i.jsx(c("CometImageCover.react"),{alt:"Icon for this message",src:a,style:{borderRadius:"50%",height:"36px",width:"36px"}})}):i.jsx("div",{className:"x6s0dn4 x78zum5 x5yr21d xq8finb",children:i.jsx(c("CometSkittleIcon.react"),{color:a.color,icon:a.icon,size:36})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentItemListItemsBase.react",["LSMediaUrlAttachment","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.attachment,c=a.renderDefaultListItem,e=a.renderPercentageListItem;a=[{contactUrlExpirationTimestampList:b.listItemContactUrlExpirationTimestampList1,contactUrlFallbackList:b.listItemContactUrlFallbackList1,contactUrlList:d("LSMediaUrlAttachment").listItemContactUrlList1(b),id:b.listItemId1,progressBarFilledPercentage:b.listItemProgressBarFilledPercentage1,titleText:b.listItemTitleText1,totalCount:b.listItemTotalCount1},{contactUrlExpirationTimestampList:b.listItemContactUrlExpirationTimestampList2,contactUrlFallbackList:b.listItemContactUrlFallbackList2,contactUrlList:d("LSMediaUrlAttachment").listItemContactUrlList2(b),id:b.listItemId2,progressBarFilledPercentage:b.listItemProgressBarFilledPercentage2,titleText:b.listItemTitleText2,totalCount:b.listItemTotalCount2},{contactUrlExpirationTimestampList:b.listItemContactUrlExpirationTimestampList3,contactUrlFallbackList:b.listItemContactUrlFallbackList3,contactUrlList:d("LSMediaUrlAttachment").listItemContactUrlList3(b),id:b.listItemId3,progressBarFilledPercentage:b.listItemProgressBarFilledPercentage3,titleText:b.listItemTitleText3,totalCount:b.listItemTotalCount3}];var f=[];a.forEach(function(a){var b=a.contactUrlExpirationTimestampList,c=a.contactUrlFallbackList,d=a.contactUrlList,e=a.id,g=a.progressBarFilledPercentage,h=a.titleText;a=a.totalCount;if(e!=null){d=d!=null?d.split(","):[];var i=b!=null?b.split(","):[],j=c!=null?c.split(","):[];f.push({contacts:d.map(function(a,b){return{url:a,urlExpirationTimestamp:i[b],urlFallback:j[b]}}),id:e,progressBarFilledPercentage:g,titleText:h,totalCount:a})}});return i.jsx("ul",{children:f.map(function(a){var b=a.progressBarFilledPercentage;return b!=null?e(a,b):c(a)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentItemListItems.react",["I64","MWChatPollFacepile.react","MWLSThreadDisplayContext","MWPColorUtils","MWXMAAttachmentItemListItemsBase.react","MWXText.react","react","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react");function a(a){a=a.attachment;var b=c("useMWPThreadTheme")(),e=b.threadTheme.fallbackColor,f=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();return j.jsx(c("MWXMAAttachmentItemListItemsBase.react"),{attachment:a,renderDefaultListItem:function(a){return j.jsx("li",{className:"xwwskcc x1q0q8m5 xso031l x1l1xfun x13fuv20 x178xt8z x14vqqas xsag5q8 xz9dl7a",children:j.jsxs("div",{children:[j.jsx(c("MWChatPollFacepile.react"),{contactWithBorder:!1,contacts:a.contacts.map(function(a){return{name:void 0,profile_picture_url:a.url}}),countOverride:a.totalCount!=null?(i||(i=d("I64"))).to_int32(a.totalCount):void 0,limit:9,optionId:a.id,overflowStyle:"overlayLastPhoto",size:"large"}),a.titleText!=null?j.jsx("div",{className:"xsgj6o6 x1xmf6yo",children:j.jsx(c("MWXText.react"),{color:"secondary",numberOfLines:2,type:"body4",children:a.titleText})}):null]})},(i||(i=d("I64"))).to_string(a.id))},renderPercentageListItem:function(a,b){return j.jsxs("li",{className:"x14vqqas",children:[j.jsxs("div",{className:"x78zum5 x1qughib",children:[a.titleText!=null?j.jsx(c("MWXText.react"),{numberOfLines:f==="Inbox"?3:1,type:"headline4",children:a.titleText}):null,j.jsx("div",{className:"x1i64zmx",children:j.jsx(c("MWChatPollFacepile.react"),{contacts:a.contacts.map(function(a){return{name:void 0,profile_picture_url:a.url}}),countOverride:a.totalCount!=null?(i||(i=d("I64"))).to_int32(a.totalCount):void 0,direction:"reversed",gap:"negative",optionId:a.id,size:"small"})})]}),j.jsx("div",{className:"x1wpzbip x1lq5wgf xgqcy7u x30kzoy x9jhf4c xdk7pt xod5an3 x1xmf6yo",children:j.jsx("div",{className:"x1lq5wgf xgqcy7u x30kzoy x9jhf4c xdk7pt",style:{backgroundColor:d("MWPColorUtils").int64ToHex(e),width:(i||(i=d("I64"))).to_string(b)+"%"}})})]},i.to_string(a.id))}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MNXMASubtitleDecorationType",[],(function(a,b,c,d,e,f){a=Object.freeze({DEFAULT:0,THREADS_ICON:1,FACEBOOK_ICON:2,EXTERNAL_LINK_ICON:3});f["default"]=a}),66); __d("MWXMAAttachmentSubtitleDecoration.react",["ix","Int64Hooks","LSIntEnum","MNXMASubtitleDecorationType","MWXIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react");function a(a){var b=a.subtitleDecorationType;return d("Int64Hooks").useMemoInt64(function(){switch((j||(j=d("LSIntEnum"))).toNumber(b)){case c("MNXMASubtitleDecorationType").THREADS_ICON:return k.jsx(c("MWXIcon.react"),{color:"secondary",icon:d("fbicon")._(h("380222"),16)});default:return null}},[b])}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPXMAIconParser",["ConstUriUtils","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";function h(a){switch(a){case"clear":case"staticWhite":case"white":case"white70":case"black":case"black50":case"black34":case"black20":case"black12":case"black6":case"black4":case"bluegrey75":case"bluegrey50":case"placeholder-icon":case"blue":case"purple":case"gray":case"background":case"scarlet":case"steel":case"coregreen":case"coral":case"sky":case"coreblue":case"emerald":return"gray";case"red":return"cherry";case"green":return"lime";case"honey":return"lemon";default:c("recoverableViolation")("Unknown Icon color: "+a,"messenger_web_product");return"gray"}}function a(a){if(a==null)return;if(a.startsWith("https")||a.startsWith("blob"))return a;if(!a.startsWith("ls"))return;a=a.replace("ls","http");a=d("ConstUriUtils").getUri(a);if(a==null)return;var b=a.getQueryParam("icon");a=a.getQueryParam("circleColor");if(typeof b==="string"&&typeof a==="string"){a=h(a);return{color:a,icon:b}}return}g.parse=a}),98); __d("MWXMAIconParser.react",["ix","MWPXMAIconParser","fbicon","recoverableViolation"],(function(a,b,c,d,e,f,g,h){"use strict";function i(a){switch(a){case"airplane":return d("fbicon")._(h("571771"),20);case"calendar":return d("fbicon")._(h("481118"),20);case"calendar-add":return d("fbicon")._(h("640913"),20);case"camcorder":return d("fbicon")._(h("493174"),20);case"camcorder-incoming":return d("fbicon")._(h("1096148"),20);case"camcorder-missed":return d("fbicon")._(h("662989"),20);case"camcorder-outgoing":return d("fbicon")._(h("1096150"),20);case"camcorder-plus":return d("fbicon")._(h("662993"),20);case"checkmark-circle":return d("fbicon")._(h("498146"),20);case"cross-circle":return d("fbicon")._(h("1501526"),20);case"currency-peso":return d("fbicon")._(h("1174630"),20);case"currency-pound":return d("fbicon")._(h("1174587"),20);case"currency-taka":return d("fbicon")._(h("182108"),20);case"currency-thai-baht":return d("fbicon")._(h("876716"),20);case"currency-usd":return d("fbicon")._(h("847056"),20);case"document-complete":return d("fbicon")._(h("728245"),20);case"friend-generic":return d("fbicon")._(h("502671"),20);case"friend-generic-checkmark":return d("fbicon")._(h("538342"),20);case"group":return d("fbicon")._(h("485091"),20);case"group-block":return d("fbicon")._(h("714636"),20);case"location":return d("fbicon")._(h("795388"),20);case"pin":return d("fbicon")._(h("481942"),20);case"phone":return d("fbicon")._(h("558161"),20);case"phone-incoming":return d("fbicon")._(h("1096151"),20);case"phone-outgoing":return d("fbicon")._(h("1096154"),20);case"shield":return d("fbicon")._(h("492714"),20);case"phone-missed":return d("fbicon")._(h("847457"),20);case"question-circle":return d("fbicon")._(h("1604445"),20);case"tag":return d("fbicon")._(h("502473"),20);case"watch":return d("fbicon")._(h("607169"),20);case"map":return d("fbicon")._(h("645715"),20);case"house-keyhole":return d("fbicon")._(h("1670302"),20);case"document":return d("fbicon")._(h("728245"),20);case"checkmark":return d("fbicon")._(h("477814"),20);case"shopping-cart":return d("fbicon")._(h("763120"),20);case"cross":return d("fbicon")._(h("478233"),20);default:c("recoverableViolation")("Unknown XMA Icon: "+a,"messenger_web_product");return}}function a(a){a=d("MWPXMAIconParser").parse(a);if(a==null)return;if(typeof a==="string")return a;var b=a.color;a=a.icon;a=i(a);if(a!=null)return{color:b,icon:a}}g.parse=a}),98); __d("MWXMAAttachmentItemMainText.react",["fbt","I64","LSIntEnum","MDSTextPairing.react","MNLSXMALayoutType","MNXMASubtitleDecorationType","MWCMSubthreadXMAIcons","MWXMAAttachmentSubtitleDecoration.react","MWXMAIconParser.react","MWXText.react","gkx","react","stylex","xmaLayouts"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=j||d("react"),n={description:{paddingTop:"x889kno",$$css:!0},hscroll:{paddingEnd:"xsyo7zv",paddingLeft:null,paddingRight:null,paddingStart:"x16hj40l",$$css:!0},root:{maxWidth:"x193iq5w",whiteSpace:"x126k92a",width:"xh8yej3",$$css:!0},subthreadDescription:{marginTop:"x1k70j0n",$$css:!0},subthreadXMADescriptionRow:{justifyContent:"x1nhvcw1",$$css:!0},subthreadXMARow:{alignItems:"x6s0dn4",display:"x78zum5",justifyContent:"x1qughib",$$css:!0},subtitleContainer:{alignItems:"x6s0dn4",display:"x78zum5",$$css:!0},subtitleDecorationIconContainer:{marginEnd:"x1emribx",marginLeft:null,marginRight:null,marginTop:"x1k70j0n",$$css:!0},titleText:{marginBottom:"xahult9",$$css:!0},withIcon:{paddingBottom:"xg8j3zb",paddingTop:"xyqdw3p",$$css:!0}},o=c("gkx")("9072");function a(a){var b,e=a.attachment,f=a.attachmentItem,g=a.bodyLineLimit,j=a.facePileElement,p=a.getFaviconUrlXMA,q=a.headlineLineLimit,r=a.isHscroll;a.isStandalone;var s=a.outgoing;s=s===void 0?!1:s;var t=a.subtitleText,u=a.title;a=a.xmaLayout;b=(k||(k=d("I64"))).equal((b=e.xmaLayoutType)!=null?b:(k||(k=d("I64"))).zero,(l||(l=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").THREAD_SHORTCUT));f=d("MWXMAIconParser.react").parse((p=p(e,f))!=null?p:"");p=h._("__JHASH__SFJQf-uN6yj__JHASH__");var v=h._("__JHASH__-LANapr3SYq__JHASH__");p=u!==""?b&&o?m.jsxs("div",{className:"x6s0dn4 x78zum5 x1qughib",children:[m.jsx(c("MWXText.react"),{color:s?"secondaryOnMedia":"secondary",type:"meta2",children:u}),m.jsx(d("MWCMSubthreadXMAIcons").ChevronRightIcon,{color:s?"white":"secondary"})]}):m.jsx(c("MDSTextPairing.react"),{headline:b?p:u,headlineLineLimit:q,level:4,testid:void 0}):null;j=t!==""?b&&o?m.jsxs("div",{className:(i||(i=c("stylex")))([n.subthreadXMARow,n.subthreadXMADescriptionRow]),children:[j,m.jsx("div",{className:"x1k70j0n",children:m.jsx(c("MWXText.react"),{color:s?"secondaryOnMedia":"secondary",type:"meta2",children:e.replyCount==null||(k||(k=d("I64"))).equal(e.replyCount,(k||(k=d("I64"))).zero)?t:(k||(k=d("I64"))).gt((u=e.replyCount)!=null?u:(k||(k=d("I64"))).zero,(k||(k=d("I64"))).of_int32(20))?h._("__JHASH__Dd3JSX2bl8X__JHASH__"):h._("__JHASH__J-X-Y424pwe__JHASH__",[h._plural((k||(k=d("I64"))).to_int32((q=e.replyCount)!=null?q:(k||(k=d("I64"))).zero),"number")])})})]}):m.jsx("div",{className:"x889kno",children:m.jsx(c("MDSTextPairing.react"),{body:b?v:t,bodyColor:"secondary",bodyLineLimit:g,level:4,testid:void 0})}):null;u=(s=e.subtitleDecorationType)!=null?s:(k||(k=d("I64"))).zero;q=(l||(l=d("LSIntEnum"))).toNumber(u)===c("MNXMASubtitleDecorationType").THREADS_ICON?m.jsx("div",{className:"x1emribx x1k70j0n",children:m.jsx(c("MWXMAAttachmentSubtitleDecoration.react"),{subtitleDecorationType:u})}):null;b=e.captionBodyText!=null?m.jsx(c("MWXText.react"),{color:"primary",type:"meta3",children:e.captionBodyText}):null;return m.jsxs("div",{className:(i||(i=c("stylex")))(n.root,f==null?r?n.hscroll:!1:n.withIcon),children:[a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT&&p!==null?m.jsx("div",{className:"xahult9",children:p}):p,b,m.jsxs("div",{className:"x6s0dn4 x78zum5",children:[q,j]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAEventFacepiles.react",["CometFacepile.react","I64","MWXText.react","ReQL","ReQLSuspense","react","stylex","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=j||d("react"),m={facepile:{display:"x78zum5",flexDirection:"xdt5ytf",maxWidth:"x193iq5w",paddingTop:"x889kno",paddingBottom:"x1a8lsjc",$$css:!0},root_center_aligned:{display:"x78zum5",justifyContent:"xl56j7k",$$css:!0},root_start_aligned:{display:"x78zum5",justifyContent:"x1nhvcw1",$$css:!0}};function a(a){var b=a.avatarText,e=a.count,g=a.ctaId,j=a.size;j=j===void 0?32:j;var n=a.urls;a=a.xstyle;var o=g!=null?(k||(k=d("I64"))).to_string(g):"",p=(h||(h=c("useReStore")))();o=d("ReQLSuspense").useFirst(function(){return g!=null?d("ReQL").fromTableAscending(p.table("attachment_ctas")).getKeyRange(g):d("ReQL").empty()},[p,o],f.id+":51");var q=e!=null?(k||(k=d("I64"))).le(e,(k||(k=d("I64"))).of_int32(9)):!1;o=q?void 0:{target:"_blank",url:o==null?void 0:o.actionUrl};q=q?n.map(function(a){return{source:{uri:a}}}):n.slice(0,9).map(function(a){return{source:{uri:a}}});var r=b==null?m.root_center_aligned:m.root_start_aligned,s=b!=null?l.jsx(c("MWXText.react"),{color:"secondary",type:"body4",children:b}):void 0;return q.length>0?l.jsx("div",{className:(i||(i=c("stylex")))(r),"data-testid":void 0,children:l.jsx("div",{className:(i||(i=c("stylex")))(m.facepile,a),role:"gridcell",children:l.jsx(c("CometFacepile.react"),{count:e!=null?(k||(k=d("I64"))).to_int32(e):n.length,isOverlapping:!0,isTextInline:b!=null,items:q,linkProps:o,size:j,text:s})})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("getLSMediaAttachmentAvatarViewUrlList",["I64","LSMediaUrlUtils","rewriteFallbackUrl"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=a.avatarViewUrlExpirationTimestampList,e=a.avatarViewUrlFallbackList;a=a.avatarViewUrlList;if(a==null)if(b!=null)return[];else if(e!=null)return e.split(", ");else return[];if(b==null)return[];if(e==null)return[];a=a.split(", ");var f=b.split(", "),g=e.split(", ");return a.map(function(a,b){var e;try{e=d("LSMediaUrlUtils").isTimestampExpired((h||(h=d("I64"))).of_string(f[b]))}catch(a){e=!0}if(e){return(e=c("rewriteFallbackUrl")(g[b]))!=null?e:""}else return a})}g["default"]=a}),98); __d("xmaAttachmentUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a){a=a.actionUrl;return(a==null?void 0:a.includes("groupcall"))===!0}f.isMeetingsAttachment=a}),66); __d("MWXMAAttachmentItemBody.react",["I64","LSIntEnum","LSMediaUrlAttachment","LSMediaUrlAttachmentItem","MDSTextPairing.react","MNLSXMALayoutType","MWLSThread","MWXMAAttachmentActionTrigger.react","MWXMAAttachmentItemCtaButton.react","MWXMAAttachmentItemIcon.react","MWXMAAttachmentItemListItems.react","MWXMAAttachmentItemMainText.react","MWXMAEventFacepiles.react","MWXMAIconParser.react","MessengerWebUXLoggerXMAEventLoggingImpl","getLSMediaAttachmentAvatarViewUrlList","react","stylex","xmaAttachmentUtils","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||d("react"),m={buttonsOnly:{marginTop:"xdj266r",$$css:!0},buttonsWrapper:{justifySelf:"x1qab1bc",marginTop:"x14vqqas",$$css:!0},description:{display:"x78zum5",flexDirection:"x1q0g3np",flexGrow:"x1iyjqo2",marginEnd:"xw3qccf",marginLeft:null,marginRight:null,$$css:!0},descriptionSubtitleText:{display:"x78zum5",justifyContent:"xl56j7k",paddingBottom:"xwib8y2",paddingTop:"x889kno",$$css:!0},descriptionText:{display:"x78zum5",flexDirection:"x1q0g3np",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",marginEnd:"xw3qccf",marginLeft:null,marginRight:null,$$css:!0},hasFavicon:{paddingEnd:"x4uap5",paddingLeft:null,paddingRight:null,paddingStart:"xkhd6sd",$$css:!0},root:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",marginTop:"x14vqqas",marginEnd:"xq8finb",marginBottom:"xod5an3",marginStart:"x16n37ib",minHeight:"xisnujt",$$css:!0},rootWithHeaderAndNoMedia:{marginTop:"xdj266r",$$css:!0},secondaryDescriptionText:{marginBottom:"xod5an3",$$css:!0},subthreadFacepiles:{marginEnd:"xmo9yow",marginLeft:null,marginRight:null,paddingTop:"xexx8yu",paddingBottom:"x18d9i69",$$css:!0},xmaUnifiedtyles:{marginTop:"x14vqqas",marginEnd:"xktsk01",marginBottom:"x1yztbdb",marginStart:"x1d52u69",$$css:!0}};function a(a){var b,e,f=a.attachment,g=a.attachmentItem,i=a.bodyLineLimit,q=a.facepiles,r=a.getFaviconUrlXMA;a.getPreviewUrlXMA;var s=a.headlineLineLimit,t=a.isHscroll,u=a.isPressable,v=a.isStandalone,w=a.outgoing;w=w===void 0?!1:w;a=a.xmaLayout;b=d("MWXMAIconParser.react").parse((b=r(f,g))!=null?b:"");e=(j||(j=d("I64"))).equal((e=f.xmaLayoutType)!=null?e:(j||(j=d("I64"))).zero,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").THREAD_SHORTCUT));var x=g.titleText==null&&g.subtitleText==null&&b==null,y=g.titleText!=null||!v?g.titleText:f.titleText,z=g.subtitleText!=null||!v?g.subtitleText:f.subtitleText,A=c("getLSMediaAttachmentAvatarViewUrlList")(f);q=(q=q)!=null?q:A.length!==0&&!e?[l.jsx(c("MWXMAEventFacepiles.react"),{avatarText:f.avatarViewContextText,count:f.avatarCount,ctaId:g.attachmentCta1Id,urls:A})]:[];e=y==null&&z==null?[]:[l.jsx(c("MWXMAAttachmentActionTrigger.react"),{attachment:f,attachmentItem:g,isPressable:u,children:l.jsxs("div",{className:(h||(h=c("stylex")))(m.description,b==null?!1:m.hasFavicon),children:[l.jsx(c("MWXMAAttachmentItemIcon.react"),{icon:b}),l.jsx(c("MWXMAAttachmentItemMainText.react"),{attachment:f,attachmentItem:g,bodyLineLimit:i,facePileElement:(j||(j=d("I64"))).equal((e=f.avatarCount)!=null?e:(j||(j=d("I64"))).zero,(j||(j=d("I64"))).zero)?null:l.jsx(c("MWXMAEventFacepiles.react"),{avatarText:f.avatarViewContextText,count:f.avatarCount,ctaId:g.attachmentCta1Id,size:16,urls:A,xstyle:m.subthreadFacepiles}),getFaviconUrlXMA:r,headlineLineLimit:s,isHscroll:t,isStandalone:v,outgoing:w,subtitleText:(u=z)!=null?u:"",title:(b=y)!=null?b:"",xmaLayout:a})]})})];A=f.listItemsDescriptionText;r=f.listItemsDescriptionSubtitleText;t=f.cta2IconType;v=f.cta3IconType;w=f.listItemId1;z=f.listItemsSecondaryDescriptionText;u=f.messageId;y=f.threadKey;b=g.attachmentCta1Id;var B=g.attachmentCta2Id,C=g.attachmentCta3Id,D=g.cta1IconType,E=g.cta1Title,F=g.cta1Type,G=g.cta2Title,H=g.cta2Type,I=g.cta3Title,J=g.cta3Type;x=F!=null&&E!=null&&b!=null?[l.jsxs("div",{className:(h||(h=c("stylex")))(m.buttonsWrapper,x?m.buttonsOnly:!1),children:[l.jsx(c("MWXMAAttachmentItemCtaButton.react"),{attachmentId:f.attachmentFbid,ctaIconType:D,ctaId:b,messageId:u,threadKey:y,title:E,type:F}),H!=null&&G!=null&&B!=null?l.jsxs(l.Fragment,{children:[l.jsx(c("MWXMAAttachmentItemCtaButton.react"),{attachmentId:f.attachmentFbid,ctaIconType:t,ctaId:B,messageId:u,threadKey:y,title:G,type:H}),J!=null&&I!=null&&C!=null?l.jsx(c("MWXMAAttachmentItemCtaButton.react"),{ctaIconType:v,ctaId:C,messageId:u,threadKey:y,title:I,type:J}):null]}):null]})]:[];D=A!=null?[l.jsx(n,{headlineLineLimit:s,listItemsDescriptionText:A})]:[];b=r!=null?[l.jsx(o,{bodyLineLimit:i,value:r})]:[];E=w!=null&&!d("xmaAttachmentUtils").isMeetingsAttachment(f)?[l.jsx(c("MWXMAAttachmentItemListItems.react"),{attachment:f})]:[];F=z!=null?[l.jsx(p,{bodyLineLimit:i,listItemsSecondaryDescriptionText:z})]:[];t=[e,D,b,q,E,F,x].reduce(function(a,b){return a.concat(b)},[]);B=d("LSMediaUrlAttachment").previewUrl(f)!=null||d("LSMediaUrlAttachmentItem").previewUrl(g)!=null||d("LSMediaUrlAttachmentItem").playableUrl(g)!=null;G=d("MWLSThread").useThread(y,function(a){return a.threadType});H=d("MessengerWebUXLoggerXMAEventLoggingImpl")==null?void 0:d("MessengerWebUXLoggerXMAEventLoggingImpl").useXMAEventsImpressionLoggerRef({attachment:f,clickCategory:1,threadType:G});return t.length===0?null:l.jsx("div",{className:(h||(h=c("stylex")))(m.root,a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT?m.xmaUnifiedtyles:!1,a!==d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT&&!B&&f.headerTitle!=null?m.rootWithHeaderAndNoMedia:!1),ref:H,children:t.map(function(a,b){return l.jsx(l.Fragment,{children:a},String(b))})})}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b=a.headlineLineLimit;a=a.listItemsDescriptionText;return l.jsx("div",{className:"x78zum5 x1q0g3np x1iyjqo2 xl56j7k xw3qccf",children:l.jsx(c("MDSTextPairing.react"),{headline:a,headlineLineLimit:b,level:4,textAlign:"center"})})}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.bodyLineLimit;a=a.value;return l.jsx("div",{className:"x78zum5 xl56j7k xwib8y2 x889kno",children:l.jsx(c("MDSTextPairing.react"),{body:a,bodyColor:"secondary",bodyLineLimit:b,level:4,textAlign:"center"})})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.bodyLineLimit;a=a.listItemsSecondaryDescriptionText;return l.jsx("div",{className:"xod5an3",children:l.jsx(c("MDSTextPairing.react"),{body:a,bodyColor:"secondary",bodyLineLimit:b,level:4})})}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentItemAttribution.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.attachment;a=a;var b=a.attributionAppIcon;a=a.attributionAppName;return b!=null&&a!=null?i.jsxs("div",{className:"x6s0dn4 x1gn5b1j x230xth x78zum5 x1rfph6h x1iorvi4 xsyo7zv xjkvuk6 x16hj40l",children:[i.jsx("img",{className:"x14yjl9h xudhj91 x18nykt9 xww2gxu xlup9mm x1kky2od",src:b}),i.jsx("span",{className:"xzsf02u x1nxh6w3 x1mnrxsn x13faqbe",children:a})]}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAInformedTreatment.react",["fbt","CometBlurredBackgroundImage.react","EyeCrossFilled24.svg.react","InfoCircleFilled20.svg.react","MWXColumn.react","MWXColumnItem.react","MWXIcon.react","MWXImage.react","MWXText.react","MessengerWebUXLogger","SVGIcon","WAArmadilloXMA.pb","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={blurry:{backgroundColor:"x18l40ae",bottom:"x1ey2m1c",end:"xds687c",left:null,right:null,filter:"xtea3wc",pointerEvents:"x47corl",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",$$css:!0},center:{position:"x10l6tqk",start:"xtzzx4i",left:null,right:null,top:"xwa60dl",transform:"x11lhmoz",width:"xh8yej3",$$css:!0},overlay:{paddingTop:"xexx8yu",paddingEnd:"x1iji9kk",paddingBottom:"x18d9i69",paddingStart:"x1sln4lm",$$css:!0},post:{flexGrow:"x1iyjqo2",height:"x5yr21d",objectFit:"xl1xv1r",width:"xh8yej3",$$css:!0},topRight:{alignItems:"x6s0dn4",backgroundColor:"x1gevrdp",borderTopColor:"x1fk37vd",borderEndColor:"xdy0ngz",borderBottomColor:"xqb0rpr",borderStartColor:"x1tp0a3f",borderTopStartRadius:"x107yiy2",borderTopEndRadius:"xv8uw2v",borderBottomEndRadius:"x1tfwpuw",borderBottomStartRadius:"x2g32xy",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",boxShadow:"xe80o0v",display:"x78zum5",end:"x1k3u6ij",left:null,right:null,rowGap:"xpse7mg",columnGap:"x1ihrfj4",height:"x10w6t97",paddingTop:"xyqdw3p",paddingEnd:"x1iji9kk",paddingBottom:"xg8j3zb",paddingStart:"x16hj40l",position:"x10l6tqk",top:"x1tk7jg1",whiteSpace:"xuxw1ft",wordWrap:"x1vvkbs",$$css:!0},warning:{display:"x78zum5",height:"x1m3v4wt",position:"x1n2onr6",width:"xh8yej3",$$css:!0}},l={ALTERED_MEDIA:{icon:d("SVGIcon").svgIcon(c("EyeCrossFilled24.svg.react")),text:h._("__JHASH__5H5N5-Xsncf__JHASH__")},ALTERED_PHOTO:{icon:d("SVGIcon").svgIcon(c("EyeCrossFilled24.svg.react")),text:h._("__JHASH__MMwXoLKk349__JHASH__")},CRUEL:{icon:d("SVGIcon").svgIcon(c("EyeCrossFilled24.svg.react")),text:h._("__JHASH__i1O1Uvt1vZ6__JHASH__")},FALSE_NEWS:{icon:d("SVGIcon").svgIcon(c("InfoCircleFilled20.svg.react")),text:h._("__JHASH__MnSycojlY-Q__JHASH__")},MISLEADING_NEWS:{icon:d("SVGIcon").svgIcon(c("InfoCircleFilled20.svg.react")),text:h._("__JHASH__CYwjewQWzi8__JHASH__")},MISSING_CONTEXT:{icon:d("SVGIcon").svgIcon(c("InfoCircleFilled20.svg.react")),text:h._("__JHASH__RL7VH1G5kZU__JHASH__")},SENSITIVE:{icon:d("SVGIcon").svgIcon(c("EyeCrossFilled24.svg.react")),text:h._("__JHASH__sovQqayBAJd__JHASH__")},VIOLENCE:{icon:d("SVGIcon").svgIcon(c("EyeCrossFilled24.svg.react")),text:h._("__JHASH__sovQqayBAJd__JHASH__")}},m=h._("__JHASH__zDjOAdn9yE8__JHASH__");function a(a){var b=a.dimension,e=a.gatingTitle,f=a.gatingType,g=a.previewUrl,h=g===void 0?"":g,i=a.xstyle,n=c("gkx")("571"),o=function(a){var b;return((b=l[a])==null?void 0:b.icon)==null?d("SVGIcon").svgIcon(c("EyeCrossFilled24.svg.react")):l[a].icon},p=function(a){var b;return((b=l[a])==null?void 0:b.text)==null?null:l[a].text};g=function(a){switch(a){case d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.WARNING_SCREENS:case d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.PRIVATE:return j.jsx("div",{className:"x10l6tqk xtzzx4i xwa60dl x11lhmoz xh8yej3",children:j.jsxs(c("MWXColumn.react"),{spacing:12,verticalAlign:"center",children:[j.jsx(c("MWXColumnItem.react"),{align:"center",children:j.jsx(c("MWXIcon.react"),{color:"white",icon:o(e),size:32})}),j.jsx(c("MWXColumnItem.react"),{children:j.jsx(c("MWXText.react"),{align:"center",color:"white",numberOfLines:1,type:n?"bodyLink3":"bodyLink4",children:p(e)})}),j.jsx(c("MWXColumnItem.react"),{children:j.jsx(c("MWXText.react"),{align:"center",color:"white",type:n?"meta3":"meta4",children:m})})]})});case d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.MEDIA_LABEL:case d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.POST_LABEL:return j.jsxs("div",{className:"x6s0dn4 x1gevrdp x1fk37vd xdy0ngz xqb0rpr x1tp0a3f x107yiy2 xv8uw2v x1tfwpuw x2g32xy x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x178xt8z xm81vs4 xso031l xy80clv xe80o0v x78zum5 x1k3u6ij xpse7mg x1ihrfj4 x10w6t97 xyqdw3p x1iji9kk xg8j3zb x16hj40l x10l6tqk x1tk7jg1 xuxw1ft x1vvkbs",children:[j.jsx(c("MWXIcon.react"),{color:"white",icon:o(e),size:24}),j.jsx(c("MWXText.react"),{align:"center",color:"white",type:n?"bodyLink3":"bodyLink4",children:p(e)})]});default:return null}};a=function(a){switch(a){case d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.MEDIA_LABEL:case d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.POST_LABEL:return j.jsx("div",{style:b,children:j.jsx(c("MWXImage.react"),{alt:"",src:h,xstyle:k.post})});default:return j.jsxs(j.Fragment,{children:[j.jsx(c("CometBlurredBackgroundImage.react"),{alt:"",src:h,xstyle:[k.post,i,k.overlay]}),j.jsx("div",{className:"x18l40ae x1ey2m1c xds687c xtea3wc x47corl x10l6tqk x17qophe x13vifvy"})]})}};var q=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useImpressionLoggerRef({eventName:"inform_treatment_chat_impression"});return j.jsxs("div",{className:"x78zum5 x1m3v4wt x1n2onr6 xh8yej3",ref:q,children:[a(parseInt(f,10)),g(parseInt(f,10))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentItemImage.react",["CometImageCover.react","I64","LSIntEnum","MNLSXMALayoutType","MWXMAInformedTreatment.react","react","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react");function a(a){var b=a.attachment,e=a.attachmentItem,f=a.cardWidth,g=a.isStandalone,h=a.previewUrl;a=a.xmaLayout;var l=e.previewWidth==null?0:(i||(i=d("I64"))).to_int32(e.previewWidth),m=e.previewHeight==null?0:(i||(i=d("I64"))).to_int32(e.previewHeight),n=e.defaultCtaType;n==="xma_montage_share"?n=!0:n=e.imageUrl==null?g:l===m;e=l!==0?m!==0?l/m:0:0;b.xmaLayoutType!=null&&(i||(i=d("I64"))).equal(b.xmaLayoutType,(j||(j=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").STANDARD_DXMA))&&(e===0&&(e=2),n=!0);g=f;f={height:(e===0?106:g/e).toString()+"px",width:g.toString()+"px"};var o={};a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT&&(m>l&&(f.height=g.toString()+"px",f.width=(e===0?106:g*e).toString()+"px"),o=babelHelpers["extends"]({aspectRatio:void 0,flexGrow:"0",margin:"auto"},f));if(h.length===0||h==="")return null;a={height:(e===0?g-106:g/e).toString()+"px",width:g.toString()+"px"};if(b.gatingTitle!=null&&b.gatingType!=null)return k.jsx(c("MWXMAInformedTreatment.react"),{dimension:a,gatingTitle:b.gatingTitle,gatingType:b.gatingType,previewUrl:h});return n?k.jsx("div",{className:"x78zum5 x1n2onr6 xh8yej3",children:k.jsx("img",{alt:"",src:h,style:babelHelpers["extends"]({aspectRatio:e,flexGrow:"1",height:"auto",maxWidth:"100%",objectFit:"cover"},o)})}):k.jsx("div",{className:"x78zum5 x1n2onr6 xh8yej3",style:f,children:k.jsx(c("CometImageCover.react"),{alt:"",src:h,style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentItemDefaultPreview.react",["CometObjectFitContainer.react","CometPlaceholder.react","I64","MDSGlimmer.react","MWLSThreadDisplayContext","MWPBaseXMAAttachmentItem.react","MWXMAAttachmentActionTrigger.react","MWXMAAttachmentItemAttribution.react","MWXMAAttachmentItemImage.react","deferredLoadComponent","react","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react"),k=c("deferredLoadComponent")(c("requireDeferredForDisplay")("MWChatVideoPlayer.react").__setRef("MWXMAAttachmentItemDefaultPreview.react")),l={glimmer:{height:"x5yr21d",position:"x10l6tqk",width:"xh8yej3",$$css:!0},root:{display:"x78zum5",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",width:"xh8yej3",$$css:!0}};function a(a){var b,e=a.attachment,f=a.attachmentItem,g=a.cardWidth,h=a.getPlayableUrl,l=a.getPreviewUrlXMA,m=a.isPressable,o=a.isStandalone;a=a.xmaLayout;b=(b=e.shouldAutoplayVideo)!=null?b:!1;var p=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();p=p==="Inbox";p=d("MWPBaseXMAAttachmentItem.react").getXMAAttachmentItemPreview({attachment:e,attachmentItem:f,getPreviewUrl:l,preferLargePreview:p});l=l(e,f);h=h(e,f);switch(p.type){case"Video":return h==null?null:j.jsxs(c("MWXMAAttachmentActionTrigger.react"),{attachment:e,attachmentItem:f,isPressable:m,children:[j.jsx(n,{attachmentItem:f,children:j.jsx(k,{controls:b?"none":"mwchat",fbid:f.attachmentFbid,hideExpandButton:!1,originalHeight:f.previewHeight!=null?(i||(i=d("I64"))).to_int32(f.previewHeight):0,originalWidth:f.previewWidth!=null?(i||(i=d("I64"))).to_int32(f.previewWidth):0,sdSrc:h})}),b?j.jsx(c("MWXMAAttachmentItemAttribution.react"),{attachment:e}):null]});case"Image":return l==null?null:j.jsx(c("MWXMAAttachmentActionTrigger.react"),{attachment:e,attachmentItem:f,isPressable:m,children:j.jsx(c("MWXMAAttachmentItemImage.react"),{attachment:e,attachmentItem:f,cardWidth:g,isStandalone:o,previewUrl:l,xmaLayout:a})});case"Unsupported":return null}}a.displayName=a.name+" [from "+f.id+"]";function m(){return j.jsx("div",{className:"x78zum5 x5yr21d x6ikm8r x10wlt62 x10l6tqk xh8yej3",children:j.jsx(c("MDSGlimmer.react"),{index:0,xstyle:l.glimmer})})}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b,e=a.attachmentItem;a=a.children;b=(i||(i=d("I64"))).to_int32((b=e.previewWidth)!=null?b:(i||(i=d("I64"))).zero);e=i.to_int32((e=e.previewHeight)!=null?e:(i||(i=d("I64"))).zero);b=b!==0?e!==0?b/e:0:0;e=e>250&&b<.8;return j.jsx(c("CometObjectFitContainer.react"),{contentAspectRatio:e?.8:b,children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(m,{}),children:a})})}n.displayName=n.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSVerifiedType",[],(function(a,b,c,d,e,f){a=Object.freeze({NOT_VERIFIED:0,DEFAULT:1,VERIFIED_FOOTER:2});f["default"]=a}),66); __d("MWXMAAttachmentItemHeaderIcon.react",["CometImageCover.react","CometSkittleIcon.react","react","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.icon;a=a.xmaLayout;a=a===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:a;if(typeof b==="string"){a=a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT?"40px":"32px";return i.jsx("div",{className:"x6s0dn4 x78zum5 x5yr21d xq8finb",children:i.jsx(c("CometImageCover.react"),{alt:"Icon for this message's header",src:b,style:{borderRadius:"50%",height:a,width:a}})})}return i.jsx("div",{className:"x6s0dn4 x78zum5 x5yr21d xq8finb",children:i.jsx(c("CometSkittleIcon.react"),{color:b.color,icon:b.icon,size:36})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentItemHeader.react",["ix","I64","LSIntEnum","LSVerifiedType","MWXIcon.react","MWXMAAttachmentItemHeaderIcon.react","MWXMAIconParser.react","MWXText.react","MWXTextPairing.react","fbicon","react","stylex","xmaLayouts"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=j||d("react"),n={root:{alignItems:"x6s0dn4",display:"x78zum5",marginTop:"x14vqqas",marginEnd:"xq8finb",marginBottom:"xod5an3",marginStart:"x16n37ib",$$css:!0},verifiedIconContainer:{display:"x78zum5",marginStart:"xsgj6o6",marginLeft:null,marginRight:null,$$css:!0},withBorder:{borderBottomColor:"x1nb4dca",borderBottomStyle:"x1q0q8m5",borderBottomWidth:"xso031l",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingStart:"x1swvt13",paddingLeft:null,paddingRight:null,paddingEnd:"x1pi30zi",paddingTop:"xz9dl7a",paddingBottom:"xsag5q8",$$css:!0}};function a(a){var b=a.attachment,e=a.getHeaderUrlXMA;a=a.xmaLayout;a=a===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:a;var f=b.headerTitle;if(f==null)return null;var g=b.headerSubtitleText;e=e(b);e=e==null?void 0:d("MWXMAIconParser.react").parse(e);var j=a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT;b=b.verifiedType!=null?(k||(k=d("I64"))).equal(b.verifiedType,(l||(l=d("LSIntEnum"))).ofNumber(c("LSVerifiedType").DEFAULT)):!1;return m.jsxs("div",{className:(i||(i=c("stylex")))(n.root,j?n.withBorder:!1),children:[e!=null&&m.jsx(c("MWXMAAttachmentItemHeaderIcon.react"),{icon:e,xmaLayout:a}),j&&g!==null&&g!=null&&g!==""?m.jsx(c("MWXTextPairing.react"),{headline:f,level:4,meta:g}):m.jsx(c("MWXText.react"),{type:"bodyLink3",children:f}),b?m.jsx("div",{className:"x78zum5 xsgj6o6",children:m.jsx(c("MWXIcon.react"),{color:"highlight",icon:d("fbicon")._(h("494936"),12)})}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentItemDefaultXMAContent.react",["LSIntEnum","MNLSXMALayoutType","MWRollCallXMAAttachmentItem.react","MWXMAAttachmentItemBody.react","MWXMAAttachmentItemDefaultPreview.react","MWXMAAttachmentItemHeader.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react");function a(a){var b=a.attachment,e=a.attachmentItem,f=a.bodyLineLimit,g=a.cardWidth,h=a.facepiles,k=a.getFaviconUrlXMA,l=a.getHeaderUrlXMA,m=a.getPlayableUrl,n=a.getPreviewUrlXMA,o=a.headlineLineLimit,p=a.isHscroll,q=a.isPressable,r=a.isStandalone,s=a.outgoing;s=s===void 0?!1:s;a=a.xmaLayout;var t=b.defaultCtaType,u=b.xmaLayoutType!==void 0&&(i||(i=d("LSIntEnum"))).toNumber(b.xmaLayoutType)===c("MNLSXMALayoutType").SHARED_STACK;if(u)return j.jsx(c("MWRollCallXMAAttachmentItem.react"),{attachmentItem:e});return t==="xma_montage_share"?j.jsx(c("MWXMAAttachmentItemDefaultPreview.react"),{attachment:b,attachmentItem:e,cardWidth:g,getPlayableUrl:m,getPreviewUrlXMA:n,isPressable:q,isStandalone:r,xmaLayout:a}):j.jsxs(j.Fragment,{children:[j.jsx(c("MWXMAAttachmentItemHeader.react"),{attachment:b,getHeaderUrlXMA:l,xmaLayout:a}),j.jsx(c("MWXMAAttachmentItemDefaultPreview.react"),{attachment:b,attachmentItem:e,cardWidth:g,getPlayableUrl:m,getPreviewUrlXMA:n,isPressable:q,isStandalone:r,xmaLayout:a}),j.jsx(c("MWXMAAttachmentItemBody.react"),{attachment:b,attachmentItem:e,bodyLineLimit:f,facepiles:h,getFaviconUrlXMA:k,getPreviewUrlXMA:n,headlineLineLimit:o,isHscroll:p,isPressable:q,isStandalone:r,outgoing:s,xmaLayout:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAPrivateAttachment.react",["fbt","ix","IconSource","MWXIcon.react","MWXMAAttachmentActionTrigger.react","MWXMAInformedTreatment.react","MWXText.react","emptyFunction","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l={FBIcon:{marginTop:"x14vqqas",marginEnd:"xq8finb",marginBottom:"xod5an3",marginStart:"x16n37ib",$$css:!0},description:{display:"x78zum5",flexDirection:"x1q0g3np",flexGrow:"x1iyjqo2",marginEnd:"xw3qccf",marginLeft:null,marginRight:null,$$css:!0},privateBackground:{alignItems:"x6s0dn4",backdropFilter:"x1qb2erx",background:"xjw5052",display:"x78zum5",flexDirection:"xdt5ytf",height:"x1dr9wh",justifyContent:"xl56j7k",textAlign:"x2b8uid",width:"xni59qk",$$css:!0},publicBackground:{alignItems:"x6s0dn4",backdropFilter:"x99fzhk",background:"xzudefj",display:"x78zum5",flexDirection:"xdt5ytf",height:"x1iu8u7t",justifyContent:"xl56j7k",textAlign:"x2b8uid",width:"xh8yej3",$$css:!0},root:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",marginTop:"x14vqqas",marginEnd:"xq8finb",marginBottom:"xod5an3",marginStart:"x16n37ib",maxWidth:"x193iq5w",minHeight:"xisnujt",minWidth:"x1jzhcrs",width:"xh8yej3",$$css:!0},sensitiveContent:{alignItems:"x6s0dn4",backdropFilter:"x1qb2erx",backgroundColor:"x1av1boa",display:"x78zum5",flexDirection:"xdt5ytf",height:"x5yr21d",justifyContent:"xl56j7k",textAlign:"x2b8uid",width:"xni59qk",$$css:!0}};function a(a){var b=a.attachment,d=a.attachmentItem,e=a.getPreviewUrlXMA;e=e===void 0?c("emptyFunction"):e;a=a.isPressable;var f=b.defaultCtaType;e=e(b,d);if(b.gatingTitle!=null&&b.gatingType!=null)return k.jsxs(k.Fragment,{children:[k.jsx(c("MWXMAInformedTreatment.react"),{gatingTitle:b.gatingTitle,gatingType:b.gatingType,previewUrl:e,xstyle:l.sensitiveContent}),k.jsx(n,{attachment:b,attachmentItem:d,isPressable:a})]});return f==="xma_montage_share"?k.jsx(m,{attachment:b}):k.jsxs(k.Fragment,{children:[k.jsx(m,{attachment:b}),k.jsx(n,{attachment:b,attachmentItem:d,isPressable:a})]})}a.displayName=a.name+" [from "+f.id+"]";function m(a){a=a.attachment;var b=new(c("IconSource"))("FB",i("1423125"),32);a=a.defaultCtaType;if(a==="xma_montage_share")return k.jsx("div",{className:"x6s0dn4 x1qb2erx xjw5052 x78zum5 xdt5ytf x1dr9wh xl56j7k x2b8uid xni59qk",children:k.jsx("div",{className:"x14vqqas xq8finb xod5an3 x16n37ib",children:k.jsx(c("MWXIcon.react"),{icon:b})})});a=h._("__JHASH__EXLuTpYr-at__JHASH__");return k.jsxs("div",{className:"x6s0dn4 x99fzhk xzudefj x78zum5 xdt5ytf x1iu8u7t xl56j7k x2b8uid xh8yej3",children:[k.jsx("div",{className:"x14vqqas xq8finb xod5an3 x16n37ib",children:k.jsx(c("MWXIcon.react"),{icon:b})}),k.jsx(c("MWXText.react"),{color:"white",type:"bodyLink4",children:a})]})}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b=a.attachment,d=a.attachmentItem;a=a.isPressable;return k.jsx(c("MWXMAAttachmentActionTrigger.react"),{attachment:b,attachmentItem:d,isPressable:a,children:k.jsx("div",{className:"x78zum5 x1q0g3np x1iyjqo2 xw3qccf",children:k.jsx("div",{className:"x78zum5 xdt5ytf x1iyjqo2 xl56j7k x14vqqas xq8finb xod5an3 x16n37ib x193iq5w xisnujt x1jzhcrs xh8yej3",children:k.jsx(c("MWXText.react"),{type:"meta4",children:h._("__JHASH__N1DOsSnTIti__JHASH__")})})})})}n.displayName=n.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentItem.react",["I64","LSIntEnum","LSMediaUrlAttachment","LSMediaUrlAttachmentItem","MNLSXMALayoutType","MWCMThreadTypes.react","MWLSThreadDisplayContext","MWPBaseXMAAttachmentItem.react","MWPThreadCapabilitiesContext","MWXMAAttachmentActionTrigger.react","MWXMAAttachmentItemDefaultXMAContent.react","MWXMAPrivateAttachment.react","ReQL","ReQLSuspense","WAArmadilloXMA.pb","react","stylex","useReStore","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react")),n=l.useCallback,o={root:{display:"x78zum5",flexDirection:"xdt5ytf",height:"x5yr21d",$$css:!0},withBorder:{borderTopColor:"x1exxf4d",borderEndColor:"x1y71gwh",borderBottomColor:"x1nb4dca",borderStartColor:"xu1343h",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",$$css:!0}},p=new Set(["xma_rtc_video","xma_rtc_missed_video","xma_rtc_missed_group_video","xma_rtc_ended_video","xma_rtc_new_video_default","xma_rtc_new_video_from_fb_share","xma_rtc_new_video_from_fb_video_share","xma_rtc_new_video_from_cowatch_share","xma_rtc_cowatch_start_video"]),q=new Set(["xma_rtc_audio","xma_rtc_missed_audio","xma_rtc_missed_group_audio","xma_rtc_ended_audio","xma_rtc_new_audio_default","xma_rtc_new_audio_from_fb_share","xma_rtc_new_audio_from_fb_video_share","xma_rtc_new_audio_from_cowatch_share"]);function a(a){var b,e=a.attachment,g=a.attachmentItem,l=a.bodyLineLimit;l=l===void 0?3:l;var r=a.cardWidth;r=r===void 0?300:r;var s=a.facepiles,t=a.getFaviconUrlXMA,u=a.getHeaderUrlXMA;u=u===void 0?d("LSMediaUrlAttachment").headerImageUrl:u;var v=a.getPlayableUrl,w=a.getPreviewUrlXMA,x=a.headlineLineLimit;x=x===void 0?3:x;var y=a.isHscroll,z=a.isStandalone,A=a.outgoing;A=A===void 0?!1:A;a=a.xmaLayout;a=a===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:a;var B=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext(),C=B.rtcVideoCallEnabled;B=B.rtcVoiceCallEnabled;var D=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext()==="Inbox",E=n(function(a,b){a=d("MWPBaseXMAAttachmentItem.react").getXMAAttachmentItemPreview({attachment:a,attachmentItem:b,preferLargePreview:D});switch(a.type){case"Video":case"Image":return a.url;case"Unsupported":return}},[D]),F=(h||(h=c("useReStore")))(),G=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(F.table("threads"),["threadType"]).getKeyRange(e.threadKey)},[F,e.threadKey],f.id+":113"),H=e.defaultCtaType;B=H!=null?q.has(H)&&!B||p.has(H)&&!C:!1;C=(H=e.shouldAutoplayVideo)!=null?H:!1;H=C&&e.attributionAppIcon!=null&&e.attributionAppName!=null;C=(k||(k=c("stylex")))(o.root,H?o.withBorder:!1);H=g.attachmentCta1Id!=null;var I=e.gatingType===d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.PRIVATE.toString();G=G?d("MWCMThreadTypes.react").isUnjoinedCMThread(G.threadType):!1;b=(i||(i=d("I64"))).equal((b=e.xmaLayoutType)!=null?b:(i||(i=d("I64"))).zero,(j||(j=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").THREAD_SHORTCUT));G=G&&b||B;return m.jsx(c("MWXMAAttachmentActionTrigger.react"),{attachment:e,attachmentItem:g,isPressable:!H&&!G,children:m.jsx("div",{className:C,"data-testid":void 0,children:I?m.jsx(c("MWXMAPrivateAttachment.react"),{attachment:e,attachmentItem:g,getPreviewUrlXMA:(b=w)!=null?b:E,isPressable:H&&!G}):m.jsx(c("MWXMAAttachmentItemDefaultXMAContent.react"),{attachment:e,attachmentItem:g,bodyLineLimit:l,cardWidth:r,facepiles:s,getFaviconUrlXMA:(B=t)!=null?B:function(a,b){return(a=(a=d("LSMediaUrlAttachment").faviconUrl(a))!=null?a:d("LSMediaUrlAttachmentItem").faviconUrl(b))!=null?a:""},getHeaderUrlXMA:u,getPlayableUrl:(C=v)!=null?C:E,getPreviewUrlXMA:(I=w)!=null?I:E,headlineLineLimit:x,isHscroll:y,isPressable:H&&!G,isStandalone:z,outgoing:A,xmaLayout:a})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentHorizontalItems.react",["fbt","CometHScroll.react","I64","MWXMAAttachmentItem.react","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m=284,n={cardWrapper:{backgroundColor:"x2bj2ny",height:"x5yr21d",width:"xh8yej3",$$css:!0},flexibleContainer:{"@media (max-width: 1439px)_maxWidth":"x1bu0bv6","@media (min-width: 1440px)_maxWidth":"x6vbh5p",$$css:!0},spacer:{marginTop:"xvijh9v",$$css:!0},topElement:{borderTopEndRadius:"x13lgxp2",borderTopStartRadius:"x168nmei",$$css:!0}};function a(a){var b=a.attachmentItems,e=a.fullWidthContainer;e=e===void 0?!1:e;var f=a.hasText,g=f===void 0?!1:f,k=a.xstyle,o=a.cardWidth,p=babelHelpers.objectWithoutPropertiesLoose(a,["attachmentItems","fullWidthContainer","hasText","xstyle","cardWidth"]);return l.jsx("div",{className:(i||(i=c("stylex")))(!e&&n.flexibleContainer),children:l.jsx(d("CometHScroll.react").Container,{accessibilityLabel:h._("__JHASH__grvWiY5ySlo__JHASH__"),cardWidth:o!=null?{type:"fixed",width:o}:{minWidth:m,type:"responsive"},gap:8,children:b.map(function(a,b){return l.jsx(d("CometHScroll.react").Child,{expanding:!0,children:l.jsx("div",{className:"x2bj2ny x5yr21d xh8yej3",children:l.jsx("div",{className:(i||(i=c("stylex")))(k,b===0&&g&&n.topElement,g&&n.spacer),children:l.jsx(c("MWXMAAttachmentItem.react"),babelHelpers["extends"]({},p,{attachmentItem:a,cardWidth:o,isStandalone:!1}))})})},(j||(j=d("I64"))).to_string(a.attachmentIndex))})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentItemIgProfile.react",["LSMediaUrlAttachment","MWPXMAIgProfile.react","MWXMAAttachmentActionTrigger.react","MWXMAAttachmentItemHeader.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var b=a.attachment,e=a.attachmentItems,f=a.getHeaderUrlXMA;f=f===void 0?d("LSMediaUrlAttachment").headerImageUrl:f;a=a.xstyle;var g=e[0];return j.jsx(c("MWXMAAttachmentActionTrigger.react"),{attachment:b,attachmentItem:g,isPressable:!0,children:j.jsxs("div",{className:(h||(h=c("stylex")))(a),"data-testid":void 0,children:[j.jsx(c("MWXMAAttachmentItemHeader.react"),{attachment:b,getHeaderUrlXMA:f}),j.jsx(c("MWPXMAIgProfile.react"),{attachmentItems:e})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentSharedStackFrontCard.react",["I64","LSAuthorityLevel","LSIntEnum","MWChatPollFacepile.react","MWLSThread","MWRollCallTimerPill.react","MWXMAAttachmentItemCtaButton.react","MWXSpinner.react","MWXText.react","MessengerWebUXLoggerXMAEventLoggingImpl","getLSMediaAttachmentAvatarViewUrlList","react","stylex","useCurrentDisplayMode"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||d("react"),m={ctaContainer:{marginTop:"x1xmf6yo",$$css:!0},facepileContainer:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",$$css:!0},frontCard:{backgroundColor:"x9bbmet",borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",boxShadow:"x28gwc1",boxSizing:"x9f619",display:"x78zum5",flexDirection:"xdt5ytf",height:"x5yr21d",overflowX:"xw2csxc",overflowY:"x1odjw0f",paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",width:"xh8yej3",$$css:!0},frontCardDarkMode:{boxShadow:"xdxoyvu",$$css:!0},titleContainer:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",marginTop:"x1xmf6yo",$$css:!0}};function a(a){var b=a.attachment;a=a.xstyle;var e=c("getLSMediaAttachmentAvatarViewUrlList")(b),f=b.countdownTimestampMs;f=f!=null&&!(j||(j=d("I64"))).equal(f,(j||(j=d("I64"))).zero)?l.jsx(c("MWRollCallTimerPill.react"),{attachment:b}):null;var g=d("MWLSThread").useThread(b.threadKey,function(a){return a.threadType});g=d("MessengerWebUXLoggerXMAEventLoggingImpl")==null?void 0:d("MessengerWebUXLoggerXMAEventLoggingImpl").useXMAEventsImpressionLoggerRef({attachment:b,clickCategory:1,threadType:g});var i=(k||(k=d("LSIntEnum"))).toNumber(b.authorityLevel)===c("LSAuthorityLevel").OPTIMISTIC,n=c("useCurrentDisplayMode")()==="dark";return l.jsxs("div",{className:(h||(h=c("stylex")))(m.frontCard,n&&m.frontCardDarkMode,a),ref:g,children:[f,l.jsx("div",{className:"x78zum5 xdt5ytf x1iyjqo2 x1xmf6yo",children:l.jsx(c("MWXText.react"),{align:"center",numberOfLines:3,type:"headlineEmphasized4",children:b.titleText})}),l.jsx("div",{className:"xr1yuqi xkrivgy x4ii5y1 x1gryazu",children:i?l.jsx(c("MWXSpinner.react"),{color:"disabled",size:24}):l.jsx(c("MWChatPollFacepile.react"),{contacts:e.map(function(a){return{name:void 0,profile_picture_url:a}}),direction:"reversed",gap:"negative",size:"large"})}),l.jsx("div",{className:"x1xmf6yo",children:b.attachmentCta1Id!=null&&b.cta1Title!=null&&b.cta1Type!=null?l.jsx(c("MWXMAAttachmentItemCtaButton.react"),{attachmentId:b.attachmentFbid,ctaId:b.attachmentCta1Id,messageId:b.messageId,threadKey:b.threadKey,title:b.cta1Title,type:b.cta1Type}):null})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentSharedStackItem.react",["MWXMAAttachmentItem.react","MWXMAAttachmentSharedStackConstants","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={stackItem:{borderTopStartRadius:"x107yiy2",borderTopEndRadius:"xv8uw2v",borderBottomEndRadius:"x1tfwpuw",borderBottomStartRadius:"x2g32xy",bottom:"x1ey2m1c",boxShadow:"x28gwc1",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",left:null,right:null,$$css:!0}};function a(a){var b=a.attachment,e=a.attachmentItem,f=a.index,g=a.totalItems;a=a.xstyle;var i=f%2===0?-4:4,l=0,m=0;switch(f){case 0:l=0;m=-12;break;case 1:l=58;m=-20;break;case 2:l=34;m=-28;break}return(b.defaultCtaType==="xma_prompt_open_viewer_for_text"||b.defaultCtaType==="xma_roll_call_open_viewer")&&e.previewUrl===void 0&&e.titleText===void 0?null:j.jsx("div",{className:(h||(h=c("stylex")))(k.stackItem,a),style:{height:d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_HEIGHT,transform:"rotate("+i+"deg) translateX("+l+"px) translateY("+m+"px)",width:d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_WIDTH,zIndex:g-f},children:j.jsx(c("MWXMAAttachmentItem.react"),{attachment:b,attachmentItem:e,cardWidth:d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_WIDTH,isHscroll:!1,isStandalone:!1})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentSharedStackLayout.react",["MWXMAAttachmentSharedStackConstants","MWXMAAttachmentSharedStackItem.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={centered:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",$$css:!0},stackContainer:{position:"x1n2onr6",$$css:!0},stackItem:{bottom:"x1ey2m1c",position:"x10l6tqk",start:"x17qophe",left:null,right:null,$$css:!0},stackItemFront:{start:"x3f4u1h",left:null,right:null,$$css:!0}};function a(a){var b=a.attachment,e=a.attachmentItems,f=a.centered;f=f===void 0?!1:f;var g=a.children;a=a.xstyle;var i=e.slice(0,3);e=d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_HEIGHT+32;var l=d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_WIDTH+64;return j.jsxs("div",{className:(h||(h=c("stylex")))(k.stackContainer,a,f&&k.centered),style:{height:e,width:l},children:[i.map(function(a,d){return j.jsx(c("MWXMAAttachmentSharedStackItem.react"),{attachment:b,attachmentItem:a,index:d,totalItems:i.length},d)}),j.jsx("div",{className:"x1ey2m1c x10l6tqk x3f4u1h",style:{height:d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_HEIGHT,width:d("MWXMAAttachmentSharedStackConstants").STACK_ITEM_WIDTH,zIndex:i.length+1},children:g})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentSubthreadShortcutLayout.react",["MWPColorUtils","gkx","react","stylex","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={centered:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",$$css:!0},incoming:{backgroundColor:"x1vtvx1t",$$css:!0}};function a(a){a.centered;var b=a.children,e=a.outgoing;a=a.xstyle;var f=c("useMWPThreadTheme")(),g=c("gkx")("9072");e=e?{backgroundColor:d("MWPColorUtils").int64ToHex(f.threadTheme.fallbackColor),color:"white"}:void 0;return j.jsx("div",{className:(h||(h=c("stylex")))(a,k.centered,k.incoming),style:g?e:null,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachmentVerticalLayout.react",["react","stylex","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={centered:{marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",$$css:!0},connectBottomIncoming:{borderBottomStartRadius:"x10y3i5r",$$css:!0},connectBottomOutgoing:{borderBottomEndRadius:"xrt01vj",$$css:!0},connectTop:{borderTopEndRadius:"x13lgxp2",borderTopStartRadius:"x168nmei",$$css:!0},connectTopIncoming:{borderTopStartRadius:"x1lcm9me",$$css:!0},connectTopOutgoing:{borderTopEndRadius:"x1yr5g0i",$$css:!0}};function a(a){var b=a.centered;b=b===void 0?!1:b;var e=a.children,f=a.connectBottom,g=a.connectTop,i=a.outgoing,l=a.xmaLayout;a=a.xstyle;return j.jsx("div",{className:(h||(h=c("stylex")))(a,g&&l!==d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT&&k.connectTop,g&&i&&k.connectTopOutgoing,g&&!i&&k.connectTopIncoming,f&&i&&k.connectBottomOutgoing,f&&!i&&k.connectBottomIncoming,b&&k.centered),children:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXMAAttachment.react",["I64","Int64Hooks","LSIntEnum","LSXmaContentType","MNLSXMALayoutType","MWChatTypingIndicator.react","MWLSThreadDisplayContext","MWXMAAttachmentHorizontalItems.react","MWXMAAttachmentItem.react","MWXMAAttachmentItemIgProfile.react","MWXMAAttachmentSharedStackFrontCard.react","MWXMAAttachmentSharedStackLayout.react","MWXMAAttachmentSubthreadShortcutLayout.react","MWXMAAttachmentVerticalLayout.react","MWXSolidMessageBubble.react","ReQL","ReQLSuspense","gkx","react","recoverableViolation","stylex","useReStore","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||d("react");function n(a){return{attachmentCta1Id:a.attachmentCta1Id,attachmentCta2Id:a.attachmentCta2Id,attachmentCta3Id:a.attachmentCta3Id,attachmentFbid:a.attachmentFbid,attachmentIndex:a.attachmentIndex,cta1Title:a.cta1Title,cta1Type:a.cta1Type,cta2Title:a.cta2Title,cta2Type:a.cta2Type,cta3Title:a.cta3Title,cta3Type:a.cta3Type,dashManifest:a.dashManifest,defaultActionEnableExtensions:!1,defaultActionUrl:void 0,defaultButtonType:void 0,defaultCtaId:a.defaultCtaId,defaultCtaTitle:a.defaultCtaTitle,defaultCtaType:a.defaultCtaType,defaultWebviewHeightRatio:void 0,faviconUrl:a.faviconUrl,faviconUrlExpirationTimestampMs:a.faviconUrlExpirationTimestampMs,faviconUrlFallback:a.faviconUrlFallback,imageUrl:a.imageUrl,messageId:a.messageId,originalPageSenderId:a.originalPageSenderId,playableUrl:a.playableUrl,playableUrlExpirationTimestampMs:a.playableUrlExpirationTimestampMs,playableUrlFallback:a.playableUrlFallback,playableUrlMimeType:a.playableUrlMimeType,previewHeight:a.previewHeight,previewUrl:a.previewUrl,previewUrlExpirationTimestampMs:a.previewUrlExpirationTimestampMs,previewUrlFallback:a.previewUrlFallback,previewUrlLarge:a.previewUrlLarge,previewUrlMimeType:a.previewUrlMimeType,previewWidth:a.previewWidth,subtitleText:a.subtitleText,threadKey:a.threadKey,titleText:a.titleText}}var o={cardWidth:{maxWidth:"xw5ewwj",width:"xh8yej3",$$css:!0},cardWidthChatTab:{maxWidth:"x1i5r0r9",width:"xh8yej3",$$css:!0},outgoing_xma:{marginStart:"x1gryazu",marginLeft:null,marginRight:null,$$css:!0}},p={card:{borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",verticalAlign:"xxymvpz",$$css:!0},opaqueCard:{backgroundColor:"x1xr0vuk",$$css:!0},rootForHScrollInChatTab:{maxWidth:"xaka53j",$$css:!0}};function a(a){var b=a.attachment,e=a.bodyLineLimit,g=a.cardWidth,l=a.connectBottom,q=a.connectTop,r=a.facepiles,s=a.fullWidthContainer;s=s===void 0?!1:s;var t=a.getFaviconUrlXMA,u=a.getHeaderUrlXMA,v=a.getPlayableUrl,w=a.getPreviewUrlXMA,x=a.hasText;x=x===void 0?!1:x;var y=a.headlineLineLimit,z=a.outgoing,A=a.xmaLayout;A=A===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:A;a=a.xstyle;var B=(h||(h=c("useReStore")))(),C=b.attachmentFbid,D=b.attachmentType,E=b.cta1Type,F=b.defaultCtaType,G=b.isBorderless,H=b.xmaContentType,I=b.xmaLayoutType,J=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(B.table("attachment_items")).getKeyRange(C)},[C,B],f.id+":150"),K=d("Int64Hooks").useMemoInt64(function(){return I!=null?[(j||(j=d("I64"))).equal(I,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").HSCROLL)),(j||(j=d("I64"))).equal(I,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").XCENTER)),(j||(j=d("I64"))).equal(I,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").SINGLE)),(j||(j=d("I64"))).equal(I,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").SHARED_STACK)),(j||(j=d("I64"))).equal(I,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").THREAD_SHORTCUT)),(j||(j=d("I64"))).equal(I,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").STANDARD_DXMA))]:[!1,!1,!1]},[I]),L=K[0],M=K[1],N=K[2],O=K[3],P=K[4];K=K[5];var Q=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),R=null;H!=null&&(j||(j=d("I64"))).equal(H,(k||(k=d("LSIntEnum"))).ofNumber(c("LSXmaContentType").MSG_RECEIVER_FETCH))&&c("gkx")("10279")?R=m.jsx(c("MWXSolidMessageBubble.react"),{connectBottom:!1,connectTop:!1,outgoing:!1,precedesXMA:!1,style:{backgroundColor:"var(--wash)"},children:m.jsx(c("MWChatTypingIndicator.react"),{})}):O?R=m.jsx(c("MWXMAAttachmentSharedStackLayout.react"),{attachment:b,attachmentItems:J,children:m.jsx(c("MWXMAAttachmentSharedStackFrontCard.react"),{attachment:b})}):P?R=m.jsx(c("MWXMAAttachmentSubthreadShortcutLayout.react"),{outgoing:z,xstyle:p.card,children:m.jsx(c("MWXMAAttachmentItem.react"),{attachment:b,attachmentItem:J[0],bodyLineLimit:e,cardWidth:g,facepiles:r,getFaviconUrlXMA:t,getHeaderUrlXMA:u,getPlayableUrl:v,getPreviewUrlXMA:w,headlineLineLimit:y,isHscroll:L,isStandalone:!0,outgoing:z,xmaLayout:A})}):L?R=m.jsx(c("MWXMAAttachmentHorizontalItems.react"),{attachment:b,attachmentItems:J,bodyLineLimit:e,cardWidth:g,facepiles:r,fullWidthContainer:s,getFaviconUrlXMA:t,getHeaderUrlXMA:u,getPlayableUrl:v,getPreviewUrlXMA:w,hasText:x,headlineLineLimit:y,isHscroll:L,xmaLayout:A,xstyle:[p.card,p.opaqueCard]}):N&&J.length===6?R=m.jsx(c("MWXMAAttachmentVerticalLayout.react"),{centered:!0,connectBottom:l,connectTop:q,outgoing:z,xmaLayout:A,xstyle:[p.card,p.opaqueCard],children:m.jsx(c("MWXMAAttachmentItemIgProfile.react"),{attachment:b,attachmentItems:J,getHeaderUrlXMA:u})}):M&&J.length===1?R=m.jsx(c("MWXMAAttachmentVerticalLayout.react"),{centered:!0,connectBottom:l,connectTop:q,outgoing:z,xmaLayout:A,xstyle:[p.card,p.opaqueCard],children:m.jsx(c("MWXMAAttachmentItem.react"),{attachment:b,attachmentItem:J[0],bodyLineLimit:e,cardWidth:g,facepiles:r,getFaviconUrlXMA:t,getHeaderUrlXMA:u,getPlayableUrl:v,getPreviewUrlXMA:w,headlineLineLimit:y,isHscroll:L,isStandalone:!0,xmaLayout:A})}):J.length===0?R=m.jsx(c("MWXMAAttachmentVerticalLayout.react"),{connectBottom:l,connectTop:q,outgoing:z,xmaLayout:A,xstyle:[p.card,G!==!0&&p.opaqueCard],children:m.jsx(c("MWXMAAttachmentItem.react"),{attachment:b,attachmentItem:n(b),bodyLineLimit:e,cardWidth:g,facepiles:r,getFaviconUrlXMA:t,getHeaderUrlXMA:u,getPlayableUrl:v,getPreviewUrlXMA:w,headlineLineLimit:y,isHscroll:L,isStandalone:!0,xmaLayout:A})}):J.length===1?R=m.jsx(c("MWXMAAttachmentVerticalLayout.react"),{connectBottom:l,connectTop:q,outgoing:z,xmaLayout:A,xstyle:[p.card,p.opaqueCard],children:m.jsx(c("MWXMAAttachmentItem.react"),{attachment:b,attachmentItem:J[0],bodyLineLimit:e,cardWidth:g,facepiles:r,getFaviconUrlXMA:t,getHeaderUrlXMA:u,getPlayableUrl:v,getPreviewUrlXMA:w,headlineLineLimit:y,isHscroll:L,isStandalone:!0,outgoing:z,xmaLayout:A})}):c("recoverableViolation")("Unknown combination of XMA items and layout. n Attachment Items: "+String(J.length)+", XMA Layout Type: "+(I==null?"na":(j||(j=d("I64"))).to_string(I))+", Attachment Type: "+(j||(j=d("I64"))).to_string(D)+", XMA content Type: "+(H==null?"na":(j||(j=d("I64"))).to_string(H))+", default CTA type: "+(F==null?"na":F)+", CTA 1 type: "+(E==null?"na":E),"messenger_web_product",void 0,{trackOnly:!0});O=A===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT?[o.cardWidth,z&&o.outgoing_xma]:o.cardWidth;P=Q==="ChatTab";s=K?P?o.cardWidthChatTab:o.cardWidth:a;return m.jsx("div",{className:(i||(i=c("stylex")))(L&&P&&p.rootForHScrollInChatTab,!L&&!M&&O,s),children:R})}a.displayName=a.name+" [from "+f.id+"]";g.xmaCardStyles=o;g.MWXMAAttachment=a}),98); __d("MWMessageListAttachmentContainer.react",["CometErrorBoundary.react","MWChatBubbleEmphasisRing.react","MWLSThreadDisplayContext","MWMessageListAttachment.react","MWPMessageIsReply","MWPMessageListAttachment.react","MWV2ChatFileV2.react","MWV2ChatImagesGrid.react","MWV2UnsupportedAttachment.react","MWXMAAttachment.react","MWXSolidMessageBubble.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.connectBottom,e=a.connectTop,f=a.hasEmphasisRing;f=f===void 0?!1:f;var g=a.hasText,h=g===void 0?!1:g,j=a.message,k=a.navigateToRouteForMediaViewer,l=a.outgoing,m=a.xstyle;g=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();var n=g==="ChatTab"?180:void 0;return i.jsx(c("MWPMessageListAttachment.react"),{connectBottom:b,connectTop:e,message:j,renderAudioAttachment:function(a){return i.jsx(d("MWMessageListAttachment.react").MWMessageListAttachmentAudio,{attachment:a,isReply:c("MWPMessageIsReply")(j),outgoing:l})},renderEmphasisRing:f?function(a,b){return i.jsx(c("MWChatBubbleEmphasisRing.react"),{connectBottom:!1,connectTop:e,hasXMA:a,outgoing:l,precedesXMA:!1,children:b})}:void 0,renderEphemeralMediaAttachment:function(){return null},renderFileAttachment:function(a){return i.jsx(c("MWXSolidMessageBubble.react"),{connectBottom:b,connectTop:e,outgoing:l,style:{backgroundColor:"var(--chat-incoming-message-bubble-background-color)",padding:0},children:i.jsx(c("MWV2ChatFileV2.react"),{attachment:a})})},renderImageAttachment:function(c,b,a,e){return i.jsx(d("MWMessageListAttachment.react").MWMessageListAttachmentImage,{attachment:c,connectBottom:a,connectTop:b,message:j,navigateToRouteForMediaViewer:k,outgoing:l,renderUnsupportedAttachment:e})},renderImageGrid:function(a){return i.jsx(c("MWV2ChatImagesGrid.react"),{attachments:a})},renderStickerAttachment:function(a){return i.jsx(d("MWMessageListAttachment.react").MWMessageListAttachmentSticker,{attachment:a})},renderUnsupportedAttachment:function(a){return i.jsx(c("MWXSolidMessageBubble.react"),{connectBottom:b,connectTop:e,outgoing:l,style:{backgroundColor:"var(--comment-background)"},children:i.jsx(c("MWV2UnsupportedAttachment.react"),{attachment:a})})},renderVideoAttachment:function(a){return i.jsx(d("MWMessageListAttachment.react").MWMessageListAttachmentVideo,{attachment:a,connectTop:e,message:j,navigateToRouteForMediaViewer:k,outgoing:l})},renderXMAAttachment:function(a){return i.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return i.jsx(d("MWMessageListAttachment.react").MWMessageListAttachmentError,{connectBottom:b,connectTop:e,xstyle:m})},children:i.jsx(d("MWXMAAttachment.react").MWXMAAttachment,{attachment:a,cardWidth:n,connectBottom:b,connectTop:e,hasText:h,outgoing:l,xstyle:m})})}})}a.displayName=a.name+" [from "+f.id+"]";b=i.memo(a);g["default"]=b}),98); __d("MWMessageListProtectedMedia.react",["fbt","$InternalEnum","MWLSThreadDisplayContext","MWVerticalRhythm","MWXPressable.react","MWXText.react","emptyFunction","react","setTimeout","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useMemo,m=e.useRef,n=e.useState,o=b("$InternalEnum").Mirrored(["Protected","Blurred","Unprotected"]),p={container:{alignItems:"x6s0dn4",display:"x78zum5",justifyContent:"xl56j7k",minHeight:"x7v6ubd",minWidth:"xfb3i0g",position:"x1n2onr6",$$css:!0},containerForInbox:{minWidth:"xlm99nl",$$css:!0},containerUncoverable:{minWidth:"xfb3i0g",$$css:!0},overlay:{maxWidth:"x193iq5w",":before_content":"x1gftdam",":before_height":"xw22vqi",":before_position":"x1te0kx0",":before_start":"x7r5wyf",":before_left":null,":before_right":null,":before_top":"x1ehtkf2",":before_width":"xy7dqi3",":before_zIndex":"x1wl4osp",$$css:!0},overlayBlurred:{filter:"xj2j9hd",$$css:!0},overlayDisabled:{pointerEvents:"x47corl",$$css:!0},pressable:{alignItems:"x6s0dn4",display:"x78zum5",justifyContent:"xl56j7k",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0},sneezeguard:{backgroundColor:"x11dxs5c",height:"x5yr21d",position:"x10l6tqk",start:"x17qophe",left:null,right:null,top:"x13vifvy",width:"xh8yej3",zIndex:"x1vjfegm",$$css:!0},sneezeguardTransparent:{backgroundColor:"x1cw4mn1",$$css:!0}};function q(a){var b=a.mediaType,d=a.state;a=a.uncoverable;a=a===void 0?!0:a;var e=h._("__JHASH__ffo2a6Rimy8__JHASH__"),f=h._("__JHASH__SmhjEO8LZM7__JHASH__"),g=h._("__JHASH__fSHhveuOoUn__JHASH__"),i=h._("__JHASH__9LbnXUNEOkH__JHASH__"),j=h._("__JHASH__grSMjsZRe9-__JHASH__"),l=h._("__JHASH__4a9auIct2D0__JHASH__"),m=h._("__JHASH___nqNxb75_gn__JHASH__"),n=h._("__JHASH__cegqh2566-V__JHASH__"),p=h._("__JHASH__NU6koyzdQfy__JHASH__");f=k.jsx(c("MWXText.react"),{color:"white",testid:void 0,type:"body3",children:b==="Image"?f:b==="Video"?e:g});return d===o.Unprotected?null:k.jsx("div",{"aria-live":"polite","aria-relevant":"all",className:"x6s0dn4 x9f619 x78zum5 xdt5ytf x5yr21d xl56j7k xyamay9 x1pi30zi x1l90r2v x1swvt13 x10l6tqk x17qophe x13vifvy xh8yej3 xhtitgo",children:k.jsx("div",{className:"x78zum5 xdt5ytf xurgmgr x2b8uid",children:d===o.Protected?k.jsxs(k.Fragment,{children:[f,a?k.jsxs(k.Fragment,{children:[k.jsx(c("MWVerticalRhythm"),{height:25}),k.jsx(c("MWXText.react"),{color:"white",testid:void 0,type:"bodyLink3",children:b==="Image"?j:b==="Video"?i:l})]}):null]}):k.jsxs(k.Fragment,{children:[f,k.jsx(c("MWVerticalRhythm"),{height:25}),k.jsx(c("MWXText.react"),{color:"white",testid:void 0,type:"bodyLink3",children:b==="Image"?n:b==="Video"?m:p})]})})},d)}q.displayName=q.name+" [from "+f.id+"]";function a(a){var b=a.ariaLabel,e=a.children,f=a.linkProps,g=a.mediaType,h=a.onPress,j=h===void 0?c("emptyFunction"):h;h=a.overlayDisabled;h=h===void 0?!1:h;var r=a.testid,s=a.type;r=a.uncoverable;r=r===void 0?!0:r;var t=a.url;a=a.xstyle;var u=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),v=n(o.Protected),w=v[0],x=v[1],y=w===o.Unprotected;v=w===o.Blurred;var z=m(null),A=l(function(){return{url:"#"}},[]),B=l(function(){if(s==="video")return;if(t!=null)return{backgroundImage:"url("+t+")",backgroundSize:"cover",filter:"blur(10px)",height:"100%",left:"0",position:"absolute",right:"0",transform:"scale(1.2)",width:"100%"}},[t,s]);u=k.jsxs("div",{className:(i||(i=c("stylex")))(p.container,u==="Inbox"?p.containerForInbox:!1,r?p.containerUncoverable:!1),children:[k.jsx("div",{style:B}),k.jsx("div",{"aria-hidden":!y,className:i(p.overlay,!y&&p.overlayDisabled,v&&p.overlayBlurred),children:e}),y?null:k.jsx("div",{className:(i||(i=c("stylex")))(p.sneezeguard,v&&p.sneezeguardTransparent)}),k.jsx(q,{mediaType:g,state:w,uncoverable:r})]});return!r?k.jsx("div",{className:(i||(i=c("stylex")))(a,p.pressable),"data-testid":void 0,children:u}):k.jsx(c("MWXPressable.react"),{"aria-label":y?b:void 0,linkProps:y?f:A,onPress:function(){y?j():x(function(a){switch(a){case o.Protected:return o.Blurred;case o.Blurred:c("setTimeout")(function(){var a=z.current;if(a!=null)return a.focus()},0);return o.Unprotected;case o.Unprotected:return a}})},overlayDisabled:h,ref:z,testid:void 0,xstyle:[a,p.pressable],children:u})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatEmoji.react",["CometTextWithEntities.react","I64","LSHotEmojiSize","LSIntEnum","MWChatBubbleEmphasisRing.react","MWChatTextTransform","cr:2472","cr:6931","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||(h=d("react")),l=h.useMemo;function a(a){var e=a.hasEmphasisRing;e=e===void 0?!1:e;var f=a.isSecureMessage;f=f===void 0?!1:f;a=a.message;var g=l(function(){return d("MWChatTextTransform").epdTextTransformsWithOptions({size:32})},[]),h=a.text;if(h==null)return null;h=b("cr:2472")==null?h:b("cr:2472").unvault(h);a=a.hotEmojiSize;a=a!=null&&((i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").SMALL))||(i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").MEDIUM))||(i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").LARGE)));if(f&&a&&h==="\ud83d\udc4d")return b("cr:6931")==null?null:k.jsx(b("cr:6931"),{});f=k.jsx(c("CometTextWithEntities.react"),{text:h,transforms:g,withParagraphs:!0});return e?k.jsx(c("MWChatBubbleEmphasisRing.react"),{connectBottom:!1,connectTop:!1,hasXMA:!1,outgoing:!1,precedesXMA:!1,children:f}):f}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatBlockQuote.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.children;return i.jsx("blockquote",{className:"xzrp4sq x26u7qi x7g060r x1gslohp x11i5rnm x12nagc x1mh8g0r x1pi30zi x1swvt13 x126k92a",children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MessageMarkdownCodeblockLanguages",[],(function(a,b,c,d,e,f){a=Object.freeze({ASP:"asp",ASPX:"aspx",BASH:"bash",C:"c",CLJ:"clj",CLJC:"cljc",CLJX:"cljx",CLOJURE:"clojure",COFFEESCRIPT:"coffeescript",CPLUSPLUS:"cplusplus",CPP:"cpp",CPP2:"c++",CQL:"cql",CS:"cs",CSHARP:"csharp",CSS:"css",CURL:"curl",D:"d",DART:"dart",DIFF:"diff",DOCKERFILE:"dockerfile",ECMASCRIPT:"ecmascript",ERL:"erl",ERLANG:"erlang",GO:"go",GQL:"gql",GRADLE:"gradle",GRAPHQL:"graphql",GROOVY:"groovy",HANDLEBARS:"handlebars",HBS:"hbs",HTML:"html",HTTP:"http",JAVA:"java",JAVASCRIPT:"javascript",JL:"jl",JRUBY:"jruby",JS:"js",JSON:"json",JSX:"jsx",JULIA:"julia",KOTLIN:"kotlin",KT:"kt",LESS:"less",LIQUID:"liquid",LUA:"lua",MACRUBY:"macruby",MARKDOWN:"markdown",ML:"ml",MSSQL:"mssql",MYSQL:"mysql",NODE:"node",OBJC:"objc",OBJCPP:"objcpp",OBJCPP2:"objc++",OBJECTIVEC:"objectivec",OBJECTIVECPLUSPLUS:"objectivecplusplus",OBJECTIVECPP:"objectivecpp",OCAML:"ocaml",PERL:"perl",PGSQL:"pgsql",PHP:"php",PL:"pl",PLSQL:"plsql",POSTGRES:"postgres",POSTGRESQL:"postgresql",POWERSHELL:"powershell",PS1:"ps1",PY:"py",PYTHON:"python",R:"r",RAKE:"rake",RB:"rb",RBX:"rbx",RS:"rs",RUBY:"ruby",RUST:"rust",SASS:"sass",SCALA:"scala",SCSS:"scss",SH:"sh",SHELL:"shell",SOL:"sol",SOLIDITY:"solidity",SQL:"sql",SQLITE:"sqlite",STYL:"styl",STYLUS:"stylus",SWIFT:"swift",TS:"ts",TYPESCRIPT:"typescript",XHTML:"xhtml",XML:"xml",YAML:"yaml",YML:"yml",ZSH:"zsh"});f["default"]=a}),66); __d("MessengerFormattingConfig",[],(function(a,b,c,d,e,f){a=Object.freeze({boldConfig:{pattern:"([\\s_~'\"(]|^)\\*(\\S(?:.*?\\S)??)\\*(?=[\\s_~,.;:!?'\")]|$)",nonCapturingPattern:"(?:[\\s_~'\"(]|^)\\*(?:\\S(?:.*?\\S)??)\\*(?=[\\s_~,.;:!?'\")]|$)"},italicConfig:{pattern:"([\\s*~'\"(]|^)_(\\S(?:.*?\\S)??)_(?=[\\s*~,.;:!?'\")]|$)",nonCapturingPattern:"(?:[\\s*~'\"(]|^)_(?:\\S(?:.*?\\S)??)_(?=[\\s*~,.;:!?'\")]|$)"},strikethroughConfig:{pattern:"([\\s*_'\"(]|^)~(\\S(?:.*?\\S)??)~(?=[\\s*_,.;:!?'\")]|$)",nonCapturingPattern:"(?:[\\s*_'\"(]|^)~(?:\\S(?:.*?\\S)??)~(?=[\\s*_,.;:!?'\")]|$)"},codeConfig:{pattern:"([\\s*_~'\"(]|^)`([^`\\r\\n](?:.*?[^`\\r\\n])??)`(?=[\\s\\w*_~,.;:!?'\")]|$)",nonCapturingPattern:"(?:[\\s*_~'\"(]|^)`(?:[^`\\r\\n](?:.*?[^`\\r\\n])??)`(?=[\\s\\w*_~,.;:!?'\")]|$)"},codeBlockConfig:{pattern:"(```)([\\s\\S]+?)```",nonCapturingPattern:"(```)([\\s\\S]+?)```"},codeBlockV2Config:{pattern:"(`{3,})(?:(?:((.*?)(?:\\r\\n?|\\n|\\u2028))([\\s\\S]*?))|(.+?))\\1\\s*?(?:\\r\\n?|\\n|\\u2028|$)",nonCapturingPattern:"(`{3,})([\\s\\S]+?)\\1\\s*((\\r\\n)|\\r|\\n|\\u2028|$)"},blockQuoteConfig:{pattern:"(^>>> ?)((.|(\\r\\n)|\\r|\\n)*?\\S(.|(\\r\\n)|\\r|\\n)*?)^<<<\\s*?((\\r\\n)|\\r|\\n|$)",nonCapturingPattern:"(^>>> ?)((.|(\\r\\n)|\\r|\\n)*?\\S(.|(\\r\\n)|\\r|\\n)*?)^<<<\\s*((\\r\\n)|\\r|\\n|$)"},multipleInlineBlockQuoteConfig:{pattern:"((^> )(.*\\S.*)((\\r\\n)|\\r|\\n)?)(^> ?(.*)((\\r\\n)|\\r|\\n)?)*",nonCapturingPattern:"(^> (.*\\S.*)((\\r\\n)|\\r|\\n)?)(^> ?(.*)((\\r\\n)|\\r|\\n)?)*"},singleInlineBlockQuoteConfig:{pattern:"(^> ?)(.*?$)",nonCapturingPattern:"^> ?(.*?$)"}});f["default"]=a}),66); __d("MWChatTextFormatting",["$InternalEnum","MWChatBlockQuote.react","MWXText.react","MessageMarkdownCodeblockLanguages","MessengerFormattingConfig","UnicodeUtils","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react"),k=b("$InternalEnum").Mirrored(["CodeBlock","InlineCode","BlockQuote","InlineQuote","Bold","Italics","StrikeThrough"]),l=new Set(Object.values(c("MessageMarkdownCodeblockLanguages")));function m(a){var b,d=function(a){return a[2]},e=1,f=!0,g=function(a){return!0};switch(a){case k.Bold:b=c("MessengerFormattingConfig").boldConfig.pattern;break;case k.Italics:b=c("MessengerFormattingConfig").italicConfig.pattern;break;case k.StrikeThrough:b=c("MessengerFormattingConfig").strikethroughConfig.pattern;break;case k.InlineCode:b=c("MessengerFormattingConfig").codeConfig.pattern;break;case k.BlockQuote:b=c("MessengerFormattingConfig").blockQuoteConfig.pattern;f=!1;break;case k.InlineQuote:g=function(a){return a.trim()!==">"};b=c("MessengerFormattingConfig").singleInlineBlockQuoteConfig.pattern;f=!1;break;case k.CodeBlock:d=function(a){var b,c;b=((b=a[3])!=null?b:"").trim().toLowerCase();c=(c=a[4])!=null?c:a[5];a=(a=a[2])!=null?a:"";return b===""||l.has(b)?c:a+c};b=c("MessengerFormattingConfig").codeBlockV2Config.pattern;f=!1;break}if(b==null)throw c("unrecoverableViolation")("No formatting config found for given format","messenger_comet");return{getCleanText:d,hasClosingTag:f,regExp:new RegExp(b,"gm"),tagIndex:e,validator:g}}var n=[k.CodeBlock,k.BlockQuote,k.InlineQuote,k.InlineCode,k.Bold,k.Italics,k.StrikeThrough];function a(a,b){switch(b.format){case k.Bold:return j.jsx("b",{children:b.text});case k.Italics:return j.jsx("i",{children:b.text});case k.StrikeThrough:return j.jsx("strike",{children:b.text});case k.CodeBlock:return j.jsx("div",{className:"xmjcpbm x1lq5wgf xgqcy7u x30kzoy x9jhf4c x1iorvi4 x150jy0e xjkvuk6 x1e558r4 x126k92a",children:j.jsx(c("MWXText.react"),{type:"body4",children:j.jsx("code",{children:b.text})})});case k.InlineCode:return j.jsx("code",{className:"",children:b.text});case k.BlockQuote:case k.InlineQuote:return j.jsx(c("MWChatBlockQuote.react"),{children:b.text})}}a.displayName=a.name+" [from "+f.id+"]";function e(a,b){switch(b.format){case k.Bold:return j.jsx("b",{children:b.text});case k.Italics:return j.jsx("i",{children:b.text});case k.StrikeThrough:return j.jsx("strike",{children:b.text});case k.CodeBlock:return j.jsx("div",{className:"xmjcpbm x1lq5wgf xgqcy7u x30kzoy x9jhf4c x1iorvi4 x150jy0e xjkvuk6 x1e558r4 x126k92a",children:j.jsx(c("MWXText.react"),{type:"body4",children:j.jsx("code",{children:b.text})})});case k.InlineCode:return j.jsx("code",{className:"",children:b.text});case k.BlockQuote:case k.InlineQuote:return j.jsx(c("MWChatBlockQuote.react"),{children:b.text})}}e.displayName=e.name+" [from "+f.id+"]";function o(a){var b=[];n.forEach(function(c){var e=m(c),f=e.getCleanText,g=e.hasClosingTag,h=e.regExp,j=e.tagIndex;e=e.validator;var k;if(!e(a))return;e=function(){if(k==null)return"break";var e=(i||(i=d("UnicodeUtils"))).substr(a,0,k.index);e=e.length-i.strlen(e);var h=k.index-e,l=i.strlen(k[0]);g&&(h+=k[j].length,l-=k[j].length);e=function(a){var b=h+l,c=a.offset+a.length;return b>a.offset&&h0){e=b[b.length-1];if(e.entity.format===c&&e.offset+e.length+1===h){e.entity.text+="\n"+m;e.length+=l+1;return"continue"}}b.push({entity:{__typename:"MessengerTextFormatting",format:c,text:m},length:l,offset:h})}};_loop:while((k=h.exec(a))!=null){var l=e();switch(l){case"break":break _loop;case"continue":continue}}});return b}g.messageRenderer=a;g.replyRenderer=e;g.getFormattingRanges=o}),98); __d("MessageProfileRangeType",[],(function(a,b,c,d,e,f){a=Object.freeze({NONE:"n",COMMUNITY_CHANNEL:"cc",PROFILE:"p",THREAD:"t",THREAD_ACTIVE:"a",SILENT:"s",THREAD_SHOUT:"ts",POLL:"pl",AI:"ai",AI_IMAGE:"im",CUSTOM:"cu",ADMINS:"ad"});f["default"]=a}),66); __d("MessageProfileRangeType.bs",[],(function(a,b,c,d,e,f){"use strict";function a(a){if(a==="p")return"p";else if(a==="thread"||a==="t")return"t";else if(a==="thread_active"||a==="a")return"a";else if(a==="s")return"s";else if(a==="ai")return"ai";else if(a==="c")return"cc";else if(a==="cu")return"cu";else return"n"}f.ofString=a}),66); __d("MWV2ChatTextParserUtils",["EmojiRenderer","EmoticonRenderer","I64","LSContactTypeExact","LSIntEnum","MWChatTextFormatting","MWLSContactTypeExactUtils","MessageProfileRangeType.bs","ReQL","ReQLSuspense","UnicodeUtils","XCometVanityURLControllerRouteBuilder","getURLRanges","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=new RegExp("/^[ \\r\\n\\s]*$/");function a(a){var b=d("EmojiRenderer").parse(a).map(function(a){return{length:a.length,offset:a.offset}}),e=c("gkx")("1839834")?d("EmoticonRenderer").parse(a).map(function(a){return{length:a.chars.length,offset:a.offset}}):[];b=b.concat(e).sort(function(a,b){return a.offset-b.offset|0});if(b.length===0)return!1;var f={contents:0},g={contents:0};e=b.some(function(b){f.contents===b.offset?(f.contents=f.contents+b.length|0,g.contents=f.contents):g.contents=b.offset;var c=a.substring(f.contents,g.contents);f.contents=b.offset+b.length|0;return k.test(c)===!1});b=f.contents!==a.length&&!k.test(a.substring(g.contents));if(e)return!1;else return!b}function b(a){var b=c("getURLRanges")(a),e=[];a=d("MWChatTextFormatting").getFormattingRanges(a);b.forEach(function(a){a={entity:{__typename:"Link",uri:a.entity.url},length:a.length,offset:a.offset};e.push(a)});return e.concat(a)}function l(a){if(c("gkx")("1968579"))return"/t/"+a;else return"/messages/t/"+a}function m(a,b){try{a=d("ReQLSuspense").first(d("ReQL").fromTableAscending(a.table("contacts")).getKeyRange((h||(h=d("I64"))).of_string(b)),f.id+":116")}catch(b){a=void 0}if(a==null)return l(b);var e=a.contactTypeExact;if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("LSContactTypeExact").FB_USER)))return"https://www.facebook.com"+c("XCometVanityURLControllerRouteBuilder").buildURL({vanity:b});if(!d("MWLSContactTypeExactUtils").isIgContact(e))return l(b);e=a.secondaryName;if(e!=null)return"https://www.instagram.com/"+e+"/";else return l(b)}function e(a,b,c,e,f,g){b=b.split(",");var i=c.split(","),k=e.split(","),n=f.split(",");return b.reduce(function(b,c,e){var f=d("MessageProfileRangeType.bs").ofString(n[e]),o=Number(i[e]);e=Number(k[e]);var p=(j||(j=d("UnicodeUtils"))).strlen(g.slice(0,e));p=e-p;e=e-p;f==="t"||f==="a"?b.push({entity:{__typename:"Profile",id:c,uri:l(c)},length:o,offset:e}):f==="p"?b.push({entity:{__typename:"Profile",id:c,uri:m(a,c)},length:o,offset:e}):f==="cc"?b.push({entity:{__typename:"CommunityChannel",threadKey:(h||(h=d("I64"))).of_string(c)},length:o,offset:e}):f==="s"||f==="cu"?b.push({entity:{__typename:"Command"},length:o,offset:e}):f==="ai"&&b.push({entity:{__typename:"Ai"},length:o,offset:e});return b},[])}g.isEmojiOnlyMessage=a;g.findRanges=b;g.findRangesForMentions=e}),98); __d("MWV2ChatTextUtils",["MWPVisibleMessageContext.react","MWV2ChatTextParserUtils","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useMemo;function k(a,b,c){var e=b.mentionIds,f=b.mentionLengths,g=b.mentionOffsets;b=b.mentionTypes;return e!=null&&f!=null&&g!=null&&b!=null?d("MWV2ChatTextParserUtils").findRangesForMentions(a,e,f,g,b,c):[]}function l(a,b,c){if(a==null)return[];if(a.messageId!==c)return[];var d=b.indexOf(a.contextLine);if(d>-1)return a.highlights.map(function(a){return{entity:{__typename:"Highlight"},length:a.matchLength,offset:a.matchOffset+d}});else return[]}function a(a,b){var e=(h||(h=c("useReStore")))(),f=d("MWPVisibleMessageContext.react").useMWPVisibleMessageContext(),g=f.visibleMessage;return j(function(){return a==null||d("MWV2ChatTextParserUtils").isEmojiOnlyMessage(a)?[]:k(e,{mentionIds:b.mentionIds,mentionLengths:b.mentionLengths,mentionOffsets:b.mentionOffsets,mentionTypes:b.mentionTypes},a).concat(d("MWV2ChatTextParserUtils").findRanges(a)).concat(l(g==null?void 0:g,a,b.messageId))},[a,b.mentionIds,b.mentionLengths,b.mentionOffsets,b.mentionTypes,b.messageId,e,g])}g.useRanges=a}),98); __d("useMWPCombineTextRenderers",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b={};a.forEach(function(a){if(a==null)return;var c=a[0];a=a[1];var d=b[c];b[c]=d!=null?d.concat([a]):[a]});return b}f["default"]=a}),66); __d("useMWPLinkRendererFactory",["MWPThreadCapabilitiesContext","getMAWLinkEntityRenderer.react","gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext(),e=b.disableLinks;return function(b,d,f,g){return c("gkx")("1886144")&&e?void 0:[f,c("getMAWLinkEntityRenderer.react")({encryptedLink:a,target:g,testid:d,xstyle:b})]}}g["default"]=a}),98); __d("useMWTextRenderers",["CometErrorBoundary.react","GroupsCometJoinChatDialog.entrypoint","I64","MWCMThreadTypes.react","MWChatTextFormatting","MWInboxCommunityThreadsRouteBuilder","MWLSThread","MWMessageCellFocusTable.react","MWNavigationContext","MWXLink.react","react","useCommunityFolder","useMWCMShouldGoToFullScreenChatHook","useMWNavigation","useMWPCombineTextRenderers","useMWPLinkRendererFactory","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react"));b=h;var k=b.useCallback,l=b.useMemo,m={bold:{fontWeight:"x1s688f",$$css:!0},colorForLink:{color:"x1heor9g",$$css:!0},highlight:{backgroundColor:"xacajkf",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",paddingTop:"x1nn3v0j",paddingEnd:"x4uap5",paddingBottom:"x1120s5i",paddingStart:"xkhd6sd",$$css:!0},underline:{color:"x1heor9g",textDecoration:"x1bvjpef",$$css:!0}};function n(a){var b=a.folder,e=a.node,f=a.thread;a=c("useMWNavigation")();var g=a.openTabOrInbox;a=(a=f.hasPendingInvitation)!=null?a:!1;var h=c("useMWCMShouldGoToFullScreenChatHook")(),k={invited:a,shouldGoToMessenger:h,surface:"unknown"};a={groupID:(i||(i=d("I64"))).to_string(b.fbGroupId),threadID:i.to_string(f.threadKey)};h=c("useMWXEntryPointDialog")(c("GroupsCometJoinChatDialog.entrypoint"),a);var l=h[0],m=function(){return l(k)};return j.jsx(d("MWMessageCellFocusTable.react").FocusTable[2],{children:j.jsx("span",{className:"x1s688f",role:"gridcell",children:j.jsx(c("MWXLink.react"),{onClick:function(){if(d("MWCMThreadTypes.react").isUnjoinedCMThread(f.threadType))return m();else return g({clientThreadKey:f.clientThreadKey,threadKey:f.threadKey,threadType:f.threadType},"mention")},children:e})})})}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.folder,c=a.thread,e=(i||(i=d("I64"))).to_string(b.folderId),f=i.to_string(c.threadKey);b=k(function(){return d("MWInboxCommunityThreadsRouteBuilder").buildURL({folder_id:e,thread_key:f})},[e,f]);return j.jsx(d("MWNavigationContext").Provider,{children:a.children,value:b})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.communityLinkFallback,e=a.node;a=a.threadKey;a=d("MWLSThread").useThreadExn(a);var f=c("useCommunityFolder")(a);return f!=null?j.jsx(o,{folder:f,thread:a,children:j.jsx(n,{folder:f,node:e,thread:a})}):b}p.displayName=p.name+" [from "+f.id+"]";var q=["Command",function(a){return j.jsx(d("MWMessageCellFocusTable.react").FocusTable[2],{children:j.jsx("span",{className:"x1s688f",role:"gridcell",children:a})})}],r=["Ai",function(a){return j.jsx(d("MWMessageCellFocusTable.react").FocusTable[2],{children:j.jsx("span",{className:"x1s688f",role:"gridcell",children:a})})}],s=["CommunityChannel",function(a,b){var e=j.jsx(d("MWMessageCellFocusTable.react").FocusTable[2],{children:j.jsx("span",{className:"x1s688f",role:"gridcell",children:a})});return j.jsx(c("CometErrorBoundary.react"),{fallback:function(){return e},children:j.jsx(p,{communityLinkFallback:e,node:a,threadKey:b.threadKey})})}];function a(a,b){var e=c("useMWPLinkRendererFactory")(a),f=c("useMWPCombineTextRenderers")(l(function(){return[e([m.underline],"chat_message_regular_link","Link",b),e([m.bold,m.colorForLink],"profile_link","Profile",b),e([m.highlight],"highlight","Highlight",b),q,r,s]},[e,b]));return l(function(){return babelHelpers["extends"]({},f,{MessengerTextFormatting:[d("MWChatTextFormatting").messageRenderer]})},[f])}g["default"]=a}),98); __d("MWV2ChatText.react",["MWV2ChatTextUtils","MWXMessageListText.react","cr:2472","react","useMWTextRenderers"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useMemo;function a(a){var e=a.isSecureMessage,f=a.message;a=a.outgoing;var g=c("useMWTextRenderers")(e),h=f.text,k=j(function(){if(b("cr:2472")==null||h==null)return h;return e?b("cr:2472").unvaultOrThrow(h):b("cr:2472").unvault(h,!0)},[e,h]),l=d("MWV2ChatTextUtils").useRanges(k,f);return i.jsx(c("MWXMessageListText.react"),{message:f,outgoing:a,ranges:l,renderers:g,text:k})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPMessageAuthor.react",["I64","Int64Hooks","LSAuthorityLevel","LSContactBlockedByViewerStatus","LSContactGender","LSContactIdType","LSContactType","LSContactViewerRelationship","LSContactWorkForeignEntityType","LSFactory","LSIntEnum","LSVerifyContactRowExistsStoredProcedure","MWCMIsCMSubthread","MWPContactContext.react","ReQL","ReQLSuspense","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react")),m=k.useMemo;function n(a){var b=a.children,e=a.contactId,g=(h||(h=c("useReStore")))(),j=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("contacts")).getKeyRange(e)},[g,e],f.id+":50");a=m(function(){var a=void 0;return{contact:j,nickname:a}},[j]);d("Int64Hooks").useEffectInt64(function(){c("promiseDone")(g.runInTransaction(function(a){return c("LSVerifyContactRowExistsStoredProcedure")(c("LSFactory")(a),{authorityLevel:(i||(i=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL),blockedByViewerStatus:i.ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED),contactIdType:i.ofNumber(c("LSContactIdType").FBID),contactType:i.ofNumber(c("LSContactType").USER),contactViewerRelationship:i.ofNumber(c("LSContactViewerRelationship").UNKNOWN),gender:i.ofNumber(c("LSContactGender").UNKNOWN),id:e,isBlocked:!1,isMemorialized:!1,isSelf:!1,workForeignEntityType:i.ofNumber(c("LSContactWorkForeignEntityType").UNKNOWN)})},"readwrite"))},[g,e]);return l.jsx(d("MWPContactContext.react").MWPContactContextProvider,{contact:a.contact,nickname:a.nickname,children:b})}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.children,c=a.contact,e=a.nickname;a=m(function(){return{contact:c,nickname:e}},[c,e]);return l.jsx(d("MWPContactContext.react").MWPContactContextProvider,{contact:a.contact,nickname:a.nickname,children:b})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b,e=a.children,g=a.contactId,k=a.threadKey,m=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(m.table("contacts")).getKeyRange(g)},[g,m],f.id+":125");b=(b=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(m.table("participants"),["nickname"]).getKeyRange(k,g)},[g,m,k],f.id+":129"))==null?void 0:b.nickname;var p=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(m.table("threads"),["parentThreadKey","secondaryParentThreadKey","threadType"]).getKeyRange(k).map(function(a){var b=a.parentThreadKey,e=a.secondaryParentThreadKey;a=a.threadType;a=d("ReQLSuspense").first(d("ReQL").fromTableAscending(m.table("contextual_profile_v1"),["profileName"]).getKeyRange(g,c("MWCMIsCMSubthread")(a)&&e!=null?e:b),f.id+":154");return a==null?void 0:a.profileName})},[m,k,g],f.id+":145");p=p!=null?p:b;if(a!=null)if((j||(j=d("I64"))).ge(a.authorityLevel,(i||(i=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE_PENDING_REPLACEMENT)))return l.jsx(o,{contact:a,nickname:p,children:e});else return l.jsx(n,{contactId:g,children:e});else return l.jsx(n,{contactId:g,children:e})}a.displayName=a.name+" [from "+f.id+"]";a=l.memo(a,function(a,b){if(a!=null&&b!=null&&(j||(j=d("I64"))).equal(a.contactId,b.contactId)&&(j||(j=d("I64"))).equal(a.threadKey,b.threadKey))return a.children===b.children;else return!1});function b(){var a=d("MWPContactContext.react").useMWPContactStableContext();a=a.authorName;return[a]}function e(){var a=d("MWPContactContext.react").useMWPContactFullContext();a=a.contact;var b=a!=null?a.name:void 0;return[b,a]}g.MissingContactProvider=n;g.Provider=o;g.MWPMessageAuthor=a;g.useAuthorName=b;g.useAuthorFullName=e}),98); __d("useMAWUnsendContentInSecureThread",["fbt","MWPMessageAuthor.react"],(function(a,b,c,d,e,f,g,h){"use strict";function a(a){a=d("MWPMessageAuthor.react").useAuthorName();a=a[0];return a!=null?h._("__JHASH___lYaXtrKDTe__JHASH__",[h._param("first name",a)]):h._("__JHASH__I-2GRtvMpnJ__JHASH__")}g["default"]=a}),98); __d("MWV2ChatUnsentMessage.react",["fbt","I64","MWCMIsAnyCMThread","MWLSThread","MWV2TombstonedMessage.react","MWXPressable.react","MWXText.react","ReQL","ReQLSuspense","XCometGroupAdminActivitiesControllerRouteBuilder","react","useCommunityFolder","useMAWUnsendContentInSecureThread","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||d("react"),m={linkText:{paddingStart:"x16hj40l",paddingLeft:null,paddingRight:null,paddingEnd:"xsyo7zv",paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0}};function n(a){var b=a.attachment,d=a.isSecureMessage;a=a.message;var e=h._("__JHASH__I-2GRtvMpnJ__JHASH__");a=c("useMAWUnsendContentInSecureThread")(a);if(d)d=a;else if(b!=null){a=b.descriptionText;d=a!=null?a:e}else d=e;return l.jsx(c("MWV2TombstonedMessage.react"),{children:d})}n.displayName=n.name+" [from "+f.id+"]";function o(a){a=a.attachment;if(a!=null){a=a.descriptionText;a=a!=null?a:h._("__JHASH__eGohYC1zonu__JHASH__")}else a=h._("__JHASH__eGohYC1zonu__JHASH__");return l.jsx(c("MWV2TombstonedMessage.react"),{children:a})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.attachment;a=a.thread;a=c("useCommunityFolder")(a);if(b!=null){b=b.cta1Title;b=b!=null?b:h._("__JHASH__8jyfQXNgswL__JHASH__")}else b=h._("__JHASH__8jyfQXNgswL__JHASH__");if(a!=null)return l.jsx(c("MWXPressable.react"),{linkProps:{url:"https://www.facebook.com"+c("XCometGroupAdminActivitiesControllerRouteBuilder").buildURL({idorvanity:(k||(k=d("I64"))).to_string(a.fbGroupId)})},overlayDisabled:!0,xstyle:function(){return[m.linkText]},children:l.jsx(c("MWXText.react"),{color:"blueLink",type:"meta2",children:b})});else return null}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b=a.isSecureMessage,e=a.message;a=a.outgoing;var g=(i||(i=c("useReStore")))(),h=e.messageId,j=e.threadKey,k=d("MWLSThread").useThread(j),m=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("attachments")).getKeyRange(j,h)},[g,h,j],f.id+":134");if(m!=null){var q=m.cta1Type;q=q!=null?q==="xma_view_activity_log":!1}else q=!1;return l.jsxs(l.Fragment,{children:[a?l.jsx(o,{attachment:m}):l.jsx(n,{attachment:m,isSecureMessage:b,message:e}),k!=null&&q&&c("MWCMIsAnyCMThread")(k.threadType)?l.jsx(p,{attachment:m,thread:k}):null]})}a.displayName=a.name+" [from "+f.id+"]";g.MWV2ChatUnsentMessage=a}),98); __d("MWPNewMessageDraftContext.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));c=h;e=c.createContext;var j=c.useContext,k=c.useRef,l=e();function a(a){a=a.children;var b=k("");return i.jsx(l.Provider,{value:b,children:a})}a.displayName=a.name+" [from "+f.id+"]";function b(){return j(l)}g.MWPNewMessageDraftContextProvider=a;g.useNewMessageDraftContext=b}),98); __d("mwpLexicalCreateEditor",["CometLexicalEmojiNode","FBLogger","Lexical","MessengerLexicalActorNode","cometLexicalBaseTheme","cr:3101","cr:6138","gkx","mlcErrorHandler__INTERNAL"],(function(a,b,c,d,e,f,g){"use strict";e=b("cr:3101")||b("cr:6138");var h=[d("MessengerLexicalActorNode").MessengerLexicalActorNode,d("CometLexicalEmojiNode").EmojiNode,e==null?void 0:e.MessengerLexicalCommandNode];function a(){var a=babelHelpers["extends"]({},c("cometLexicalBaseTheme"),{paragraph:"xat24cr xdj266r"});c("gkx")("7606")&&(a.text={strikethrough:"xmqliwb"});var b=d("Lexical").createEditor({namespace:"MWPEditor",nodes:h.filter(Boolean),onError:function(a){return c("mlcErrorHandler__INTERNAL")(a,b,function(b){c("FBLogger")("messenger_web_product").catching(a).mustfix("Lexical Error MWP \u2013 "+b)})},theme:a});return b}g["default"]=a}),98); __d("useMWPCometComposerPrepopulateDraftMessage",["Lexical","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useLayoutEffect,j=b.useMemo;function a(a,b){var c=j(function(){return b.current},[b]);i(function(){var b=c;if(b==null)return;a.update(function(){if(b!=null){var a=d("Lexical").$getRoot(),c=a.getFirstChild();d("Lexical").$isParagraphNode(c)||(c=d("Lexical").$createParagraphNode(),a.append(c));a=d("Lexical").$createTextNode(b);c.clear();c.append(a);a.select()}})},[a,c])}g["default"]=a}),98); __d("useMWPComposerAutoFocus",["MWChatFocusComposerContext","MWPReplyContext.react","MWV2IsTabFocusedContext.react","deepEquals","react","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useContext,k=b.useEffect;function l(a){var b;b=(b=document.activeElement)==null?void 0:(b=b.attributes.getNamedItem("id"))==null?void 0:b.value;if(b==null?void 0:b.includes("prevent-composer-focus-steal"))return;return a.focus(function(){})}function a(a){var b=a.editor,e=a.hasUnsentAttachments,f=e===void 0?!1:e;e=a.isPreviewThread;a=e===void 0?!1:e;e=d("MWChatFocusComposerContext").useMWChatFocusComposer();e=e.setFocusComposer;var g=j(d("MWPReplyContext.react").MWPReplyContext),h=g.reply,m=c("usePrevious")(h);k(function(){(m==null?h!=null:!c("deepEquals")(m,h))&&l(b)},[b,h,m]);g=d("MWV2IsTabFocusedContext.react").useIsTabFocused();var n=g&&!a;k(function(){n&&l(b)},[b,n]);k(function(){f&&l(b)},[b,f]);e(i(function(){l(b)},[b]))}g["default"]=a}),98); __d("useMWPLexicalClearEditor",["Lexical","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useLayoutEffect;function a(a,b){b===void 0&&(b=!1),i(function(){return a.registerCommand(d("Lexical").CLEAR_EDITOR_COMMAND,function(){a.update(function(){var a=d("Lexical").$getRoot(),c=d("Lexical").$getSelection(),e=d("Lexical").$createParagraphNode();a.clear();a.append(e);c!==null&&(e.select(),b===!0&&d("Lexical").$isRangeSelection(c)&&(c.format=0))});return!0},d("Lexical").COMMAND_PRIORITY_EDITOR)},[b,a])}g["default"]=a}),98); __d("useMWPUpdateNewMessageDraftsContext",["LexicalText","MWPNewMessageDraftContext.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useEffect;function a(a){var b=a.editor,c=a.isPreviewThread,e=d("MWPNewMessageDraftContext.react").useNewMessageDraftContext(),f=i(function(a){a=a.read(function(){return d("LexicalText").$rootTextContent()});c&&e!=null&&(e.current=a)},[c,e]);j(function(){f(b.getEditorState());return b.registerUpdateListener(function(a){return f(a.editorState)})},[f,b])}g["default"]=a}),98); __d("useMWPComposerEditor",["I64","Int64Hooks","Lexical","LexicalText","MWChatMessagesOnChatTabLoadTracker","MWPComposerDraftMessages","MWPNewMessageDraftContext.react","MWPreloadedText","MWV2ChatComposerGetViewContent","MWV2ComposerActionsContext.react","MWV2ComposerHasContentContext.react","WALoggerDeferred","cr:7101","emptyFunction","mwpLexicalCreateEditor","promiseDone","react","useLexicalInitializeEditor__DEPRECATED","useMWLSSaveDrafts","useMWPCometComposerPrepopulateDraftMessage","useMWPComposerAutoFocus","useMWPLexicalClearEditor","useMWPLexicalCommitMessageOnEnter","useMWPUpdateNewMessageDraftsContext","useMWXLexicalHasText","useMWXLexicalOnTypingChanged"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=h||d("react");var j=e.useContext,k=e.useEffect,l=e.useMemo,m=e.useRef,n=b("cr:7101")==null?function(a){}:b("cr:7101").useMWComposerKeyCommandFocusRegister,o=[];function p(){c("promiseDone")(d("WALoggerDeferred").logWithTags(["MWPComposerEditor","Composer"],["Calling onSendMessage"],"LOG"))}var q=function(a){return a.read(function(){return d("LexicalText").$rootTextContent()})};function a(a){var b=a.customizedRanges,e=a.getTextFromEditorState,f=e===void 0?q:e;e=a.isPreviewThread;e=e===void 0?!1:e;var g=a.isSendDisabled;g=g===void 0?!1:g;var h=a.mediaStaging;h=h===void 0?o:h;var r=a.onSendMessage,s=a.onTypingStateChanged,t=a.threadKey;a=a.clearFormatAfterSend;var u=m(null),v=l(function(){return c("mwpLexicalCreateEditor")()},[]);h=h.length>0;c("useLexicalInitializeEditor__DEPRECATED")(v);c("useMWPLexicalClearEditor")(v,a);c("useMWPComposerAutoFocus")({editor:v,hasUnsentAttachments:h,isPreviewThread:e});a=d("MWPNewMessageDraftContext.react").useNewMessageDraftContext();var w=j(c("MWPreloadedText"));w=w.text!=null?w.text:a!=null?a.current:d("MWPComposerDraftMessages").getDraftMessage(t);a=m(w);c("useMWLSSaveDrafts")({editor:v,isPreviewThread:e,threadKey:t});c("useMWPCometComposerPrepopulateDraftMessage")(v,a);c("useMWPUpdateNewMessageDraftsContext")({editor:v,isPreviewThread:e});var x=d("useMWXLexicalHasText").useMWXLexicalHasText({editor:v,initialValue:w!=null&&w!==""}).useHasText(),y=x||h;a=d("MWV2ComposerHasContentContext.react").useComposerHasContext();var z=a.hasContentRef;k(function(){if(z==null)return;z.current=x},[x,z]);c("useMWXLexicalOnTypingChanged")({editor:v,onTypingStateChanged:s});e=j(d("MWV2ComposerActionsContext.react").MWV2ComposerActionsContext);var A=e.onMessageSendAttempt;w=d("Int64Hooks").useCallbackInt64(function(){A==null?void 0:A(y);v.dispatchCommand(d("Lexical").CLEAR_EDITOR_COMMAND);if(!y)return;d("MWChatMessagesOnChatTabLoadTracker").trackSendFor(t);p();var a=b!=null?b(v,(i||(i=d("I64"))).to_string(t)):c("MWV2ChatComposerGetViewContent").getRanges(v),e=v.getEditorState();e=f(e);r(e,a);d("MWPComposerDraftMessages").updateDraftMessage(t,"");v.focus()},[y,r,t,b,v,f,A]);h=g?c("emptyFunction"):w;c("useMWPLexicalCommitMessageOnEnter")(v,h);n(u.current);return{editor:v,editorElementRef:u,hasStuffToSend:y,sendMessage:h}}g["default"]=a}),98); __d("MWPAccessibleEyebrowsText.react",["fbt","MWPMessageAuthor.react","StylexHelpers.bs","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var b=a.message;a=a.outgoing;var e=d("MWPMessageAuthor.react").useAuthorName();e=e[0];var f=a?h._("__JHASH__950lIWTelJN__JHASH__"):h._("__JHASH__uufWL2Zp_42__JHASH__");return!b.isAdminMessage&&k.jsx("span",{className:(i||(i=c("stylex")))(d("StylexHelpers.bs").styles.visuallyHidden),children:e!=null&&!a?e:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPMessageHasAttachment",["I64","LSIntEnum"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){if(!(h||(h=d("I64"))).equal(a.displayedContentTypes,(i||(i=d("LSIntEnum"))).ofNumber(1))&&!(h||(h=d("I64"))).equal(a.displayedContentTypes,(h||(h=d("I64"))).add((i||(i=d("LSIntEnum"))).ofNumber(1),(i||(i=d("LSIntEnum"))).ofNumber(8192)))&&!(h||(h=d("I64"))).equal(a.displayedContentTypes,(i||(i=d("LSIntEnum"))).ofNumber(128))&&!(h||(h=d("I64"))).equal(a.displayedContentTypes,(h||(h=d("I64"))).add((i||(i=d("LSIntEnum"))).ofNumber(128),(i||(i=d("LSIntEnum"))).ofNumber(8192))))return!(h||(h=d("I64"))).equal(a.displayedContentTypes,h.add((i||(i=d("LSIntEnum"))).ofNumber(1),i.ofNumber(512)));else return!1}g["default"]=a}),98); __d("MWPMessageParsingUtils",["I64","LSBitFlag","LSIntEnum","LSMessageReplySourceTypeV2","isStringNullOrEmpty"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=280,k=3e5;function l(a){return!c("isStringNullOrEmpty")(a.text)}function m(a){a=a.replySourceTypeV2;return a==null?!1:!(h||(h=d("I64"))).equal(a,(i||(i=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").FORWARD))}function n(a){a=a.replySourceTypeV2;return a==null?!1:(h||(h=d("I64"))).equal(a,(i||(i=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").FORWARD))}function o(a){return((a=a.text)!=null?a:"").length>j}var p=[128,256,4096,4,512];function q(a){return a.isAdminMessage||p.some(function(b){return d("LSBitFlag").has((i||(i=d("LSIntEnum"))).ofNumber(b),a.displayedContentTypes)})||o(a)}function r(a,b){if(b===void 0)return!0;var c=Math.abs((h||(h=d("I64"))).to_float(a.timestampMs)-h.to_float(b.timestampMs))>k,e=n(a),f=h.equal(a.senderId,b.senderId);if(b.isUnsent||a.isUnsent||m(a)||!f||c||e||q(a))return!0;else return q(b)}function s(a,b){return b==null||r(a,b)}function t(a,b){return b==null||r(b,a)}function a(a,b,c){return c==="below"?l(a)?!0:!s(a,b):!1}function b(a,b,c){if(c==="below")return!t(a,b);else if(t(a,b))return!1;else return l(a)}e={shouldConnectBottom:b,shouldConnectTop:a};g.hasText=l;g.isReplyToSomething=m;g.isForwarded=n;g.isLongText=o;g.shouldBeStandalone=q;g.isInDifferentGroup=r;g.isStartOfGroup=s;g.isEndOfGroup=t;g.MessageWithAttachments=e}),98); __d("MWPBaseMessageContent.react",["EntMessageReplyType","I64","LSIntEnum","MWPMessageHasAttachment","MWPMessageHasXMA","MWPMessageIsReply","MWPMessageListColumn.react","MWPMessageParsingUtils","MWPThreadCapabilitiesContext","gkx","react","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react");function a(a){var b=a.attachmentRenderPosition,e=a.isEmojiOnly,f=a.isFirstMessageInGroup,g=a.isLastMessageInGroup,h=a.isMessagePinned,l=a.isNextMessagePinned,m=a.isSearchPluginAttachment,n=a.message,o=a.nextMessage,p=a.outgoing,q=a.prevMessage,r=a.renderAttachment,s=a.renderEmoji,t=a.renderMessageBubble,u=a.shouldHideLinkPreviews,v=a.shouldRenderMessageContent;a=a.xmaLayout;var w=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();w=w.disableLinks;var x=c("MWPMessageIsReply")(n),y=d("MWPMessageParsingUtils").hasText(n),z=c("MWPMessageHasXMA")(n);w=c("gkx")("1886144")&&w&&z&&n.textHasLinks;u=u===!0||w;w=n.replyType!=null&&(i||(i=d("I64"))).equal(n.replyType,(j||(j=d("LSIntEnum"))).ofNumber(c("EntMessageReplyType").BUMP));w=!w&&z&&b==="below"&&!u&&!m;z=b==="below"?!x&&!f&&!h:!1;m=!g&&!l||(a===d("xmaLayouts").XMA_LAYOUTS.UNIFIED_LAYOUT?w:!1);v?f=n.text!=null?e?x?k.jsx("div",{className:"x1n2onr6 x1vjfegm",children:s(n)}):x?null:k.jsxs(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:[z?k.jsx("div",{className:"xcrg951 x36qwtl xh8yej3"}):null,k.jsx("div",{className:"x1n2onr6 x1vjfegm",children:s(n)})]}):n.text!==""?k.jsxs(k.Fragment,{children:[z||b==="above"?k.jsx("div",{className:"xcrg951 x36qwtl xh8yej3"}):null,k.jsxs("div",{className:"x78zum5 xh8yej3",role:"none",children:[p?k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnHorizontalSpacer,{})}):null,t(n,z,m,w,p),p?null:k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnHorizontalSpacer,{})})]})]}):null:null:f=null;var A;c("MWPMessageHasAttachment")(n)&&!u&&(A=r(d("MWPMessageParsingUtils").MessageWithAttachments.shouldConnectTop(n,q,b),d("MWPMessageParsingUtils").MessageWithAttachments.shouldConnectBottom(n,o,b),y));return k.jsxs(k.Fragment,{children:[b==="above"?A:null,f,b==="below"?A:null]})}a.displayName=a.name+" [from "+f.id+"]";g.MWPBaseMessageContent=a}),98); __d("MWPBaseMessageContentWithPinnedMessageSupport.react",["MWPBaseMessageContent.react","react","useMWPIsMessagePinned"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useMemo;function a(a){var b=a.attachmentRenderPosition,e=a.isEmojiOnly,f=a.isFirstMessageInGroup,g=a.isLastMessageInGroup,h=a.isSearchPluginAttachment,k=a.message,l=a.nextMessage,m=a.outgoing,n=a.prevMessage,o=a.renderAttachment,p=a.renderEmoji,q=a.renderMessageBubble,r=a.shouldHideLinkPreviews,s=a.shouldRenderMessageContent,t=a.xmaLayout,u=c("useMWPIsMessagePinned")(k),v=c("useMWPIsMessagePinned")(l);return j(function(){return i.jsx(d("MWPBaseMessageContent.react").MWPBaseMessageContent,{attachmentRenderPosition:b,isEmojiOnly:e,isFirstMessageInGroup:f,isLastMessageInGroup:g,isMessagePinned:u,isNextMessagePinned:v,isSearchPluginAttachment:h,message:k,nextMessage:l,outgoing:m,prevMessage:n,renderAttachment:o,renderEmoji:p,renderMessageBubble:q,shouldHideLinkPreviews:r,shouldRenderMessageContent:s,xmaLayout:t})},[b,e,f,g,u,v,k,l,m,n,o,p,q,r,s,t,h])}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPBaseMessage.react",["LSBitFlag","LSIntEnum","MWPBaseMessageContentWithPinnedMessageSupport.react","MWPMessageListColumn.react","MWV2MessageIsEmojiOnly","MessengerWebUXLogger","react","stylex","xmaLayouts"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||d("react"),l={container:{alignItems:"x1cy8zhl",display:"x78zum5",flexDirection:"xdt5ytf",maxWidth:"x193iq5w",position:"x1n2onr6",userSelect:"x1kxipp6",$$css:!0},outgoing:{alignItems:"xuk3077",$$css:!0},row_container:{display:"x78zum5",width:"xh8yej3",$$css:!0}};function m(a,b){if(d("LSBitFlag").has((j||(j=d("LSIntEnum"))).ofNumber(128),a.displayedContentTypes))return!0;else return c("MWV2MessageIsEmojiOnly")(a.text,b)}function a(a){var b=a.attachmentRenderPosition;b=b===void 0?"below":b;var e=a.checkEmoticon,f=a.isFirstMessageInGroup,g=a.isLastMessageInGroup,i=a.isSearchPluginAttachment;i=i===void 0?!1:i;var j=a.message,n=a.nextMessage,o=a.outgoing,p=a.prevMessage,q=a.reactions;a.reactionsV2;var r=a.renderAttachment,s=a.renderEmoji,t=a.renderMessageBubble,u=a.renderMessageContainer,v=a.renderMessageFooter,w=a.renderUnsentMessage,x=a.shouldHideLinkPreviews,y=a.shouldRenderMessageContent;y=y===void 0?!0:y;a=a.xmaLayout;a=a===void 0?d("xmaLayouts").XMA_LAYOUTS.DEFAULT:a;var z=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useImpressionLoggerRef({eventName:"messagelist_message_impression"});if(j.isUnsent)if(w!=null)return k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:w()});else return null;w=m(j,e);e=k.jsx(c("MWPBaseMessageContentWithPinnedMessageSupport.react"),{attachmentRenderPosition:b,isEmojiOnly:w,isFirstMessageInGroup:f,isLastMessageInGroup:g,isSearchPluginAttachment:i,message:j,nextMessage:n,outgoing:o,prevMessage:p,renderAttachment:r,renderEmoji:s,renderMessageBubble:t,shouldHideLinkPreviews:x,shouldRenderMessageContent:y,xmaLayout:a});return k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"x78zum5 xh8yej3",ref:z,role:"none",children:[o?k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnHorizontalSpacer,{})}):null,u!=null?u(e,[l.container,o?l.outgoing:!1]):k.jsx("div",{className:(h||(h=c("stylex")))(l.container,o?l.outgoing:!1),children:e}),o?null:k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnHorizontalSpacer,{})})]}),k.jsxs(k.Fragment,{children:[w&&q.length>0?k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:5}):null,k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:v()})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPBaseMessageListRowCountdown.react",["MAWEphemeralMessageTimer.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={moveUpToAccountForReactions:{paddingBottom:"x1hhzuzn",$$css:!0},root:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1c4vz4f",justifyContent:"xl56j7k",marginBottom:"x4ii5y1",marginTop:"xr1yuqi",paddingStart:"xurb0ha",paddingLeft:null,paddingRight:null,paddingEnd:"x1sxyh0",zIndex:"x1vjfegm",$$css:!0}};function a(a){var b=a.ariaHidden;b=b===void 0?!1:b;var d=a.ephemeralDurationInSec,e=a.expirationTimestamp;a=a.hasReactions;return j.jsx("div",{"aria-hidden":b,className:(h||(h=c("stylex")))(k.root,a?k.moveUpToAccountForReactions:!1),children:j.jsx(c("MAWEphemeralMessageTimer.react"),{ephemeralDurationInSec:d,expirationTimestamp:e})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPBaseMessageListRow.react",["BaseThemeProvider.react","I64","LSIntEnum","MWCombineThemeConfigs","MWMessageDeliveryStatus","MWPBaseMessageListRowCountdown.react","MWPMessageIsReply","MWPMessageListColumn.react","MWPMessageParsingUtils","MWPThreadThemeGradientUtils","react","stylex","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react")),m=i,n=m.useCallback,o=m.useMemo;function a(a){var b=a.children,c=a.message;a=a.prevMessage;c=d("MWPMessageParsingUtils").isStartOfGroup(c,a);return c?b():null}a.displayName=a.name+" [from "+f.id+"]";function p(a){return(j||(j=d("I64"))).equal(j.and_(a.displayedContentTypes,(k||(k=d("LSIntEnum"))).ofNumber(2048)),j.zero)}var q={container:{display:"x78zum5",$$css:!0},inner:{display:"x78zum5",flexGrow:"x1iyjqo2",flexShrink:"xs83m0k",minWidth:"xeuugli",$$css:!0},innerOutgoing:{flexDirection:"x15zctf7",$$css:!0},multiReact:{zIndex:"x1vjfegm",$$css:!0},multiReactIncoming:{marginStart:"x1liizu2",marginLeft:null,marginRight:null,$$css:!0},multiReactOutgoing:{display:"x78zum5",flexDirection:"x15zctf7",marginEnd:"xw3qccf",marginLeft:null,marginRight:null,marginStart:"x1mh8g0r",$$css:!0},multiReactWrapper:{display:"x78zum5",flexDirection:"xdt5ytf",position:"x1n2onr6",$$css:!0}};function b(a){var b=a.children,e=a.hasReactions,f=a.message,g=a.outgoing,i=a.renderGenAIFeedbackActions,j=a.renderGutterItem,k=a.renderMessageActions,m=a.renderMultiReactions;a=a.renderProfile;var n=c("MWPMessageIsReply")(f),o=f.ephemeralExpirationTs,r=f.ephemeralDurationInSec,s=f.isUnsent,t=d("MWMessageDeliveryStatus").getFromSendStatus(f.sendStatusV2).type==="Sending";m=m&&m();var u=m!=null;a=l.jsxs("div",{className:"x78zum5",role:"none",children:[l.jsxs(d("MWPMessageListColumn.react").MWPMessageListColumnProfile,{children:[g?null:a(),e&&!u?l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:18}):null]}),l.jsxs("div",{className:(h||(h=c("stylex")))(q.inner,g?q.innerOutgoing:!1),"data-testid":void 0,role:"none",children:[l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnBubble,{makeSpaceForActions:p(f),paint:!g||n,children:b}),o!=null&&!s?l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:l.jsx(c("MWPBaseMessageListRowCountdown.react"),{ephemeralDurationInSec:r,expirationTimestamp:o,hasReactions:e})}):null,i!=null?l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:t?null:i()}):null,p(f)?l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:t?null:k()}):null,l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnHorizontalSpacer,{})})]}),l.jsxs(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:[j(),e?l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:18}):null]})]});return u?l.jsxs("div",{className:"x78zum5 xdt5ytf x1n2onr6",role:"none",children:[a,l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:l.jsx("div",{className:(h||(h=c("stylex")))(q.container,q.multiReact,g?q.multiReactOutgoing:q.multiReactIncoming),children:m})})]}):a}b.displayName=b.name+" [from "+f.id+"]";function e(a){var b=a.children,c=a.message,e=a.nextMessage;a=a.showContent;c=d("MWPMessageParsingUtils").isEndOfGroup(c,e);return c||a===!0?b():null}e.displayName=e.name+" [from "+f.id+"]";m={"mwp-reply-background-color":"var(--comment-footer-background)"};var r={"mwp-reply-background-color":"var(--comment-footer-background)"},s={dark:r,light:m,type:"VARIABLES"};function t(a){var b=a.children,e=a.domElementRef;a.message;a.nextMessage;a.prevMessage;var f=a.role,g=a.setHovered,i=a.stopHoveringRef,j=a.theme,k=j===void 0?s:j,m=a.xstyle,p=n(function(){return g(function(){return!1})},[g]);j=c("useMWPThreadTheme")();var q=j.threadTheme;return l.jsx(c("BaseThemeProvider.react"),{config:o(function(){return d("MWCombineThemeConfigs").combine(s,k)},[k]),children:function(a,j){return l.jsx("div",{className:(h||(h=c("stylex")))(a,m),onMouseEnter:function(){i.current&&i.current(),g(function(){return!0}),i.current=p},onMouseLeave:function(){if(i.current===p){p();i.current=function(){};return}},ref:e,role:f,style:babelHelpers["extends"]({},j,d("MWPThreadThemeGradientUtils").getStyleOverridesForThreadTheme(q)),children:b})}})}t.displayName=t.name+" [from "+f.id+"]";g.MWPBaseMessageListRowBeforeContent=a;g.MWPBaseMessageListRowBody=b;g.MWPBaseMessageListRowFooter=e;g.MWPBaseMessageListRow=t}),98); __d("MWPBaseMessageRowHeaderTimestamp.react",["I64","MercuryTimestamp","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function a(a){var b=a.message,e=a.renderText,f=a.renderTimestamp;a=a.xstyle;return k.jsx("div",{className:(h||(h=c("stylex")))(a),children:e(f(c("MercuryTimestamp").getRelativeTimestamp((i||(i=d("I64"))).to_float(b.timestampMs))))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWPIsSenderAdMod",["I64","Int64Hooks","LSFactory","LSIntEnum","LSIssueCommunityAdminModerationActionsFetchStoredProcedure","ReQL","ReQLSuspense","asyncToGeneratorRuntime","pageID","promiseDone","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function a(a,e){var g=(j||(j=c("useReStore")))();d("Int64Hooks").useEffectInt64(function(){var f=function(){var f=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){a!=null&&!(h||(h=d("I64"))).is_zero(a)&&(yield g.runInTransaction(function(b){return c("LSIssueCommunityAdminModerationActionsFetchStoredProcedure")(c("LSFactory")(b),{fbGroupId:a,requestId:c("pageID"),source:(i||(i=d("LSIntEnum"))).ofNumber(14),targetUserId:e})},"readwrite"))});return function(){return f.apply(this,arguments)}}();c("promiseDone")(f())},[g,a,e]);var k=d("ReQLSuspense").useFirst(function(){return a!=null?d("ReQL").fromTableAscending(g.table("community_members").index("communityContact")).getKeyRange(a,e,c("pageID")):d("ReQL").empty()},[g,a,e],f.id+":61"),l=(k==null?void 0:k.isAdmin)==null?!1:k.isAdmin;k=(k==null?void 0:k.isModerator)==null?!1:k.isModerator;return{isAdmin:l,isModerator:k}}g["default"]=a}),98); __d("MWPMessageAdModOrHostText.react",["fbt","CometHovercardTrigger.react","CometMiddot.react","I64","MWCMHostTextHovercard.entrypoint","MWXText.react","react","useMWCMIsSenderChatHost","useMWPIsSenderAdMod"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react");function l(a){var b=a.communityId,d=a.senderId,e=a.shouldRenderSenderName;a=a.threadKey;var f=c("useMWPIsSenderAdMod")(b,d),g=f.isAdmin;f=f.isModerator;b=c("useMWCMIsSenderChatHost")(b,a,d);d=h._("__JHASH__l4xCpI5VHpV__JHASH__");var i=h._("__JHASH__hz8R4t8GDy7__JHASH__");a=k.jsx(c("CometHovercardTrigger.react"),{align:"middle",display:"inline-block",popoverEntryPoint:c("MWCMHostTextHovercard.entrypoint"),popoverOtherProps:{onClose:function(){},threadKey:a},popoverProps:{},position:"above",children:function(a){return k.jsx(c("MWXText.react"),{ref:a,type:"meta4",children:h._("__JHASH__bZRJOb_t9fa__JHASH__")})}});return k.jsx(k.Fragment,{children:e&&(g||f||b)&&k.jsxs(k.Fragment,{children:[k.jsx(c("CometMiddot.react"),{}),k.jsx("span",{"data-testid":void 0,children:g?d:f?i:a})]})})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.communityId,c=a.message;a=a.shouldRenderSenderName;return b==null||(j||(j=d("I64"))).is_zero(b)?null:k.jsx(l,{communityId:b,senderId:c.senderId,shouldRenderSenderName:a,threadKey:c.threadKey})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPMessageEyebrows.react",["fbt","Actor","I64","LSContactBitOffset","LSMessagingThreadTypeUtil","MWCMBotIcons.react","MWEditedEyebrow.react","MWGroupUpdatesVerifiedIcon.react","MWLSThread","MWMessageDisplayContext.react","MWPAccessibleEyebrowsText.react","MWPContactContext.react","MWPEditMessageUtil","MWPMessageAdModOrHostText.react","MWPMessageAuthor.react","MWPMessageListColumn.react","MWPThreadIsPage.react","ReQL","ReQLSuspense","react","stylex","useMWPIsMessagePinned","usePinnedTextAnimation","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||d("react"),n={alignEnd:{justifyContent:"x13a6bvl",$$css:!0},alignStart:{justifyContent:"x1nhvcw1",$$css:!0},botBadge:{bottom:"x1c7jfne",paddingStart:"x1e558r4",paddingLeft:null,paddingRight:null,position:"x1n2onr6",$$css:!0},container:{display:"x78zum5",marginTop:"x1anpbxc",paddingBottom:"x10b6aqq",paddingStart:"x1ye3gou",paddingLeft:null,paddingRight:null,$$css:!0},separator:{paddingEnd:"x19um543",paddingLeft:null,paddingRight:null,paddingStart:"x1m6msm",$$css:!0}};function o(a){var b=a.children;a=a.outgoing;return m.jsx("div",{className:(i||(i=c("stylex")))(n.container,a?n.alignEnd:n.alignStart),children:b})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.message,e=a.outgoing,g=a.renderPaidPartnerShipText,l=a.renderPinnedText,p=a.renderTextWrapper;a=a.shouldRenderSenderName;var q=d("MWPMessageAuthor.react").useAuthorName();q=q[0];var r=d("MWPContactContext.react").useMWPContactStableContext(),s=r.contact;r=r.nickname;var t=d("Actor").useActor();t=t[0];var u=d("MWMessageDisplayContext.react").useMWMessageDisplayContext(),v=(k||(k=c("useReStore")))(),w=d("MWLSThread").useThread(b.threadKey,function(a){return a.parentThreadKey}),x=d("ReQLSuspense").useFirst(function(){return w?d("ReQL").fromTableAscending(v.table("community_folders")).getKeyRange(w).map(function(a){return a.folderId}):d("ReQL").empty()},[v,w],f.id+":99"),y=d("MWPEditMessageUtil").isEditedMessage(b),z=d("MWPThreadIsPage.react").useIsPage(),A=d("MWLSThread").useThread(b.threadKey,function(a){return a.threadType});A=A!=null&&d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(A);z=z&&!(j||(j=d("I64"))).equal(b.senderId,b.threadKey)&&!e;var B=a||z&&!A,C=s?d("LSContactBitOffset").has(77,s):!1,D=s?d("LSContactBitOffset").has(84,s):!1,E=c("useMWPIsMessagePinned")(b);a=c("usePinnedTextAnimation")(E);var F=a.mountAnimation,G=a.unmountAnimation,H=b.isPaidPartnership===!0;z=B||E||y||H;s=(A=r)!=null?A:h._("__JHASH__4LwiFWKMkVy__JHASH__");a=t===(j||(j=d("I64"))).to_string(b.senderId);r=a?s.toString():q==null?void 0:q.toString();A=h._("__JHASH__G4Bi2CYTkJR__JHASH__");if(!z)return m.jsx(c("MWPAccessibleEyebrowsText.react"),{message:b,outgoing:e});t=function(a){a=m.jsx(o,{outgoing:e,children:p(m.jsxs(m.Fragment,{children:[B&&a!=null&&m.jsx("span",{"data-testid":void 0,children:a}),m.jsx(c("MWPMessageAdModOrHostText.react"),{communityId:x,message:b,shouldRenderSenderName:B}),E&&m.jsx("span",{className:(i||(i=c("stylex")))(E?F:G),children:l(b,B)}),y&&m.jsx(c("MWEditedEyebrow.react"),{hasSeparator:B&&a!=null,xstyle:n.separator}),C===!0?m.jsx("span",{className:"x1c7jfne x1e558r4 x1n2onr6",children:m.jsx(d("MWCMBotIcons.react").BadgeIcon,{})}):null,D&&m.jsx("span",{className:"x1c7jfne x1e558r4 x1n2onr6",children:m.jsx(c("MWGroupUpdatesVerifiedIcon.react"),{})}),H&&g!=null&&g(b)]}))});return u==="reportMessages"?m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:a}):m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnWithGutters,{shrinkwrap:!0,children:a})};return b.takedownState!=null?t(A.toString()):t(r)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPBaseMessageRowHeader.react",["BaseHeading.react","BaseRow.react","BaseRowItem.react","LSIntEnum","LSMessageReplySourceTypeV2","MWMessageDisplayContext.react","MWPAccessibleEyebrowsText.react","MWPBaseMessageRowHeaderTimestamp.react","MWPContactContext.react","MWPMessageEyebrows.react","MWPMessageIsReply","MWPMessageListColumn.react","MWPThreadIsPage.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||d("react"),l={alignEnd:{alignItems:"xuk3077",$$css:!0},header:{display:"x78zum5",flexDirection:"xdt5ytf",$$css:!0},timestamp:{marginTop:"x1anpbxc",paddingEnd:"x11eofan",paddingLeft:null,paddingRight:null,$$css:!0},timestampWithSnippet:{marginTop:"x1ok221b",paddingEnd:"x11eofan",paddingLeft:null,paddingRight:null,$$css:!0}};function m(a,b,e,f){var g=a.replySnippet;g=g!=null?g!=="":!1;var h=a.replySourceTypeV2!=null&&(j||(j=d("LSIntEnum"))).toNumber(a.replySourceTypeV2)===c("LSMessageReplySourceTypeV2").FORWARD;if(g)return e(a,f);return!h?null:b(a,f)}function a(a){a._fbGroupId;var b=a.alwaysRenderSenderName;b=b===void 0?!1:b;var e=a.isAnyCMThread;e=e===void 0?!1:e;var f=a.isFirstMessageInGroup,g=a.isGroupThread,i=a.message,j=a.outgoing,n=a.renderForwardSnippet,o=a.renderPaidPartnerShipText,p=a.renderPinnedText,q=a.renderReplySnippet,r=a.renderSenderName,s=a.renderTextWrapper;a=a.renderTimestamp;var t=c("MWPMessageIsReply")(i);n=m(i,n,q,j);q=d("MWPContactContext.react").useMWPContactStableContext();q=q.nickname;var u=d("MWMessageDisplayContext.react").useMWMessageDisplayContext();q=f&&q!=null&&e;e=b||g&&f&&!j&&!t||q;n!=null?b=k.jsx("div",{className:(h||(h=c("stylex")))(l.header,j?l.alignEnd:!1),role:"none",children:u==="reportMessages"?k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:n}):k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnWithGutters,{shrinkwrap:!0,children:n})}):r!=null?b=e?r(i):k.jsx(c("MWPAccessibleEyebrowsText.react"),{message:i,outgoing:j}):b=k.jsx(d("MWPThreadIsPage.react").Provider,{threadKey:i.threadKey,children:k.jsx(c("MWPMessageEyebrows.react"),{message:i,outgoing:j,renderPaidPartnerShipText:o,renderPinnedText:p,renderTextWrapper:s,shouldRenderSenderName:e})});g=n!=null?l.timestampWithSnippet:l.timestamp;t=a!=null?k.jsx(c("MWPBaseMessageRowHeaderTimestamp.react"),{message:i,renderText:s,renderTimestamp:a,xstyle:g}):null;if(f)return k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:k.jsxs(c("BaseRow.react"),{direction:j?"backward":"forward",children:[k.jsx(c("BaseRowItem.react"),{children:k.jsx(c("BaseHeading.react"),{children:b})}),t!=null?k.jsx(c("BaseRowItem.react"),{children:k.jsx(c("BaseHeading.react"),{children:t})}):null]})});else return b}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPMessageListFocusTable.react",["FocusRegion.react","MWMessageTableFocusTable.react","MWV2MessageListIsRowModalContext.react","focusScopeQueries","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useCallback;function k(a,b,c){return b["data-scope"]==="date_break"}function a(a){var b=a.ariaLabel,c=a.children,e=a.modal,f=a.setModal,g=a.wrapX;g=g===void 0?!1:g;a=a.wrapY;a=a===void 0?!1:a;var h=j(function(a){var b=a.type;switch(b){case"PAGE_DOWN":case"PAGE_UP":break;default:return}b=a.type==="PAGE_DOWN";a.preventDefault();var c=a.currentRowIndex+(b?1:-1)|0,d=!1;while(!d){var e=a.getCell(c,a.currentCellIndex);if(e==null){var f=a.getCell(b?c-1|0:0,a.currentCellIndex);f!=null&&a.focusCell(f);d=!0}else{f=e.scopeRef.current;f=f!=null?f.DO_NOT_USE_queryFirstNode(k):null;f==null?c=b?c+1|0:c-1|0:(a.focusCell(e),d=!0)}}},[]);return i.jsx(d("MWV2MessageListIsRowModalContext.react").MWV2MessageListIsRowModalContextProvider,{value:f,children:i.jsx(d("FocusRegion.react").FocusRegion,{recoverFocusQuery:d("MWMessageTableFocusTable.react").scopeQuery,stopOnFocusWithinPropagation:!1,children:i.jsx(d("MWMessageTableFocusTable.react").FocusTable[0],{allowModifiers:!0,disabled:e!=="",onNavigate:h,tabScopeQuery:d("focusScopeQueries").tabbableScopeQuery,wrapX:g,wrapY:a,children:i.jsx("div",{"aria-label":b,className:"xh1n2d4 xu3j5b3 xol2nv x16jkurw x26u7qi x19p7ews x78zum5 xdt5ytf x1iyjqo2 x6ikm8r x10wlt62",role:"grid",children:c})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPMessageListRowWithKeyboardInteractions.react",["fbt","BaseHeadingContextWrapper.react","CometScreenReaderText.react","CometTimestamp.react","FocusInertRegion.react","FocusRegion.react","FocusWithinHandler.react","I64","KeyCommandHandler.react","MDSTextPairing.react","MWMessageCellFocusTable.react","MWMessageCellKeyCommands.react","MWMessageTableFocusTable.react","MWPBaseMessageListRow.react","MWPEditMessageUtil","MWPMessageAuthor.react","MWV2MessageListIsRowModalContext.react","MWV2MessageRowActionsContext.react","MWV2MessageRowIsRowFocusedContext.react","MWXPressable.react","ReactDOMComet","cr:4712","emptyFunction","focusScopeQueries","gkx","react","setTimeout","stylex","useCometTheme","useMWPEditMessageDeemphasizer","useServerTime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||(j=d("react"));e=j;var m=e.forwardRef,n=e.useCallback,o=e.useId,p=e.useMemo,q=e.useRef,r={cell:{display:"x78zum5",flexDirection:"xdt5ytf",position:"x1n2onr6",$$css:!0},cellFocusVisible:{zIndex:"x1vjfegm",$$css:!0},cellModal:{outline:"x1k66dxp",outlineOffset:"x1g40iwv","@media (-webkit-min-device-pixel-ratio: 0)_outline":"x1bkw7pg",$$css:!0},enterModalButton:{backgroundColor:"x1h0vfkc",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxShadow:"x152obne",end:"xlr8s2x",left:null,right:null,paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",position:"x10l6tqk",top:"x1qiirwl",transform:"x105ttfm",zIndex:"x1vjfegm",$$css:!0},enterModalButtonVisible:{opacity:"x1hc1fzr",$$css:!0},row:{position:"x1n2onr6",$$css:!0},visuallyHidden:{clip:"xzpqnlu",clipPath:"x1hyvwdk",height:"xjm9jq1",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",width:"x1i1rx1s",$$css:!0}};function s(a){var b=a.key;(b==="ArrowUp"||b==="ArrowDown"||b==="ArrowLeft"||b==="ArrowRight"||b==="PageUp"||b==="PageDown"||b==="Home"||b==="End")&&a.preventDefault()}var t=h._("__JHASH__U5V4JiyTDSI__JHASH__"),u=h._("__JHASH__GoIrDg5lzef__JHASH__"),v=h._("__JHASH__ctLNxPXr8we__JHASH__"),w=m(function(a,b){var d=a.ariaLabel,e=a.focusable,f=a.onPress,g=a.text;a=a.xstyle;var h=c("useCometTheme")("invert"),i=h[0];h=h[1];return l.jsx(i,{children:l.jsx(c("MWXPressable.react"),{"aria-label":d,focusable:e,onPress:function(){return f()},ref:b,xstyle:[h,r.enterModalButton,a],children:l.jsx(c("MDSTextPairing.react"),{body:g,bodyColor:"primary",level:4})})})});function a(a){var e=a.children,f=a.domElementRef,g=a.isDialogOpened,j=a.isFocused,m=a.isModal,x=a.message,y=a.messageDomID,z=a.nextMessage,A=a.outgoing,B=a.prevMessage,C=a.setFocused,D=a.setHovered,E=a.setIsDialogOpened,F=a.stopHoveringRef;a=a.theme;var G=d("MWV2MessageListIsRowModalContext.react").useMWV2MessageListIsRowModal(),H=q(null),I=o(),J=n(function(){G(function(){return x.messageId}),c("setTimeout")(function(){d("FocusRegion.react").focusRegionById(I,d("focusScopeQueries").tabbableScopeQuery)},0)},[G,x.messageId,I]),K=function(){G(function(){return""});var a=H.current;if(a!=null)return a.focus()},L=c("CometTimestamp.react").getTimestamp(c("useServerTime")(),new Date((k||(k=d("I64"))).to_float(x.timestampMs))),M=d("MWPMessageAuthor.react").useAuthorName();M=M[0];A=A?h._("__JHASH__g90cYI08lR4__JHASH__"):M!=null?M:h._("__JHASH__I4KHPAQ-RAf__JHASH__");var N=o(),O=l.jsx(c("CometScreenReaderText.react"),{id:N,text:h._("__JHASH__BGN2Md9i0L4__JHASH__",[h._param("Stringified timestamp of the incoming message",L),h._param("Name of the author of the incoming message",A)])}),P=o(),Q=q(null),R=c("gkx")("3598"),S=q(c("emptyFunction")),T=q(c("emptyFunction")),U=q(c("emptyFunction")),V=q(c("emptyFunction"));M=p(function(){return{isDialogOpened:g,setFocused:C,setIsDialogOpened:E}},[C,E,g]);L=p(function(){return{forwardMessage:U,openReactionsMenu:S,removeMessage:V,replyToMessage:T}},[S,T]);A=d("MWPEditMessageUtil").useGetEditMessageData()!=null;var W=c("useMWPEditMessageDeemphasizer")(x.messageId),X=function(a){if(j!==a){C(function(){return a});return G(function(){if((a||g)&&m)return x.messageId;else return""})}},Y=function(a){j!==a&&C(function(){return a});var b=Q.current;if(a&&b!=null){c("setTimeout")(function(){try{return b.scrollIntoView({behavior:"smooth",block:"nearest"})}catch(a){return b.scrollIntoView(!1)}},0);return}};return l.jsx(c("BaseHeadingContextWrapper.react"),{children:l.jsx(d("MWV2MessageRowIsRowFocusedContext.react").MWV2MessageRowIsRowFocusedContextProvider,{value:M,children:l.jsx(d("MWV2MessageRowActionsContext.react").MWV2MessageRowActionsContextProvider,{value:L,children:l.jsx(d("MWPBaseMessageListRow.react").MWPBaseMessageListRow,{domElementRef:f,message:x,nextMessage:z,prevMessage:B,role:"row",setHovered:A?c("emptyFunction"):D,stopHoveringRef:F,theme:a,xstyle:[r.row,W],children:l.jsxs(l.Fragment,{children:[l.jsx(d("MWMessageTableFocusTable.react").FocusTable[1],{children:l.jsx(c("FocusWithinHandler.react"),{onFocusChange:A?void 0:X,onFocusVisibleChange:A?void 0:Y,children:function(a,b){a=l.jsx(d("MWMessageTableFocusTable.react").FocusTable[2],{children:l.jsx("div",{className:(i||(i=c("stylex")))(r.cell,m?r.cellModal:!1,b?r.cellFocusVisible:!1),"data-release-focus-from":"CLICK","data-scope":d("MWMessageTableFocusTable.react").scopeID,ref:H,role:"gridcell",tabIndex:0,children:l.jsx(c("FocusInertRegion.react"),{disabled:m,focusQuery:d("focusScopeQueries").tabbableScopeQuery,children:m?l.jsxs(l.Fragment,{children:[l.jsx(d("FocusRegion.react").FocusRegion,{autoFocusQuery:d("focusScopeQueries").tabbableScopeQuery,autoRestoreFocus:!0,containFocusQuery:d("focusScopeQueries").tabbableScopeQuery,id:I,recoverFocusQuery:d("focusScopeQueries").tabbableScopeQuery,children:l.jsx(c("KeyCommandHandler.react"),{onKeyDown:s,children:l.jsxs("div",{"aria-describedby":y,"aria-labelledby":N,id:P,role:"dialog",children:[e,m?O:null,l.jsx(w,{ariaLabel:u,focusable:!0,onPress:K,text:h._("__JHASH__PEyi9JodUw1__JHASH__"),xstyle:r.enterModalButtonVisible})]})})}),d("ReactDOMComet").createPortal(l.jsx("div",{"aria-owns":P}),document.body)]}):e})})});return l.jsxs(l.Fragment,{children:[l.jsx(d("MWMessageCellFocusTable.react").keyCommands,{onEnter:m?void 0:J,onEscape:m?K:void 0,onSpace:m?void 0:J,children:R?l.jsx(d("MWMessageCellKeyCommands.react").keyCommands,{message:x,children:a}):a}),l.jsx("div",{role:"gridcell",children:l.jsx(w,{ariaLabel:m?h._("__JHASH__C-7ahaHTUI7__JHASH__"):t,focusable:m,onPress:J,ref:Q,text:m?h._("__JHASH__C-7ahaHTUI7__JHASH__"):v,xstyle:b&&!m?r.enterModalButtonVisible:r.visuallyHidden})})]})}})}),b("cr:4712")&&l.jsx(b("cr:4712"),{messageId:x.messageId})]})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWPAriaLabelForMessageListGrid",["fbt","Int64Hooks","MWPActor.react","MWPGetThreadTitle","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i;function a(a){var b=d("MWPActor.react").useActor(),e=(i||(i=c("useReStore")))(),g=d("ReQLSuspense").useArray(function(){return a.threadName!=null?d("ReQL").empty():d("ReQL").leftJoin(d("ReQL").fromTableAscending(e.table("participants"),["contactId","nickname"]).getKeyRange(a.threadKey),d("ReQL").fromTableAscending(e.table("contacts"),["name","rank","contactType","firstName","capabilities","capabilities2"])).take(8)},[e,a.threadKey,a.threadName],f.id+":32");return d("Int64Hooks").useMemoInt64(function(){var c;if(a.threadName!=null)return h._("__JHASH__NOo4A_R8oVU__JHASH__",[h._param("name of conversation",a.threadName)]).toString();c=(c=d("MWPGetThreadTitle").computeThreadTitle(void 0,a.threadType,g,b))!=null?c:"";return h._("__JHASH__KCW8qihKWub__JHASH__",[h._param("participant list",c)]).toString()},[b,g,a.threadName,a.threadType])}g["default"]=a}),98); __d("getRingbackUrl",["URI"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){if(a==null)return null;a=new(h||(h=c("URI")))(a);a.addQueryData("users_to_ring",[b]);return a.toString()}g["default"]=a}),98); __d("useMakeRoomRingback",["I64","LSIntEnum","MWThreadKey.react","Promise","RTWebPreCallHooks","ReQL","getRingbackUrl","promiseDone","react","recoverableViolation","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=(l||d("react")).useCallback;function a(){var a=d("RTWebPreCallHooks").useJoinMeetupCallback(),e=(i||(i=c("useReStore")))(),f=d("MWThreadKey.react").useMWThreadKeyMemoizedExn();return m(function(g){var i=g.linkUrl;g=d("ReQL").firstAsync(d("ReQL").fromTableAscending(e.table("threads")).getKeyRange(f)).then(function(e){if(e!=null){e=(j||(j=d("I64"))).equal(e.threadType,(k||(k=d("LSIntEnum"))).ofNumber(1))?c("getRingbackUrl")(i,(j||(j=d("I64"))).to_string(e.threadKey)):(c("recoverableViolation")("Cannot ring a non user thread","rtc_www"),i);return(h||(h=b("Promise"))).resolve(a(e))}c("recoverableViolation")("Cannot find thread when trying to ring a user","rtc_www");return(h||(h=b("Promise"))).resolve()});c("promiseDone")(g,void 0,function(a){c("recoverableViolation")("Error making a ring back","rtc_www",{error:a.Error})})},[a,f,e])}g["default"]=a}),98); __d("PopupWindow",["DOMDimensions","DOMQuery","FlowMigrationUtilsForLegacyFiles","Layer","Popup","getViewportDimensions","isFalsey"],(function(a,b,c,d,e,f,g){var h={allowShrink:!0,strategy:"vector",timeout:100,widthElement:null};function b(a){Object.assign(h,a),window.setInterval(i,h.timeout)}function i(){var a=c("getViewportDimensions")(),b=j(),e=c("Layer").getTopmostLayer();if(e){e=(e=e.getRoot())==null?void 0:e.firstChild;e||d("FlowMigrationUtilsForLegacyFiles").invariantViolation("topMostLayer.getRoot().firstChild is null.");var f=d("DOMDimensions").getElementDimensions(e);f.height+=d("DOMDimensions").measureElementBox(e,"height",!0,!0,!0);f.width+=d("DOMDimensions").measureElementBox(e,"width",!0,!0,!0);b.height=Math.max(b.height,f.height);b.width=Math.max(b.width,f.width)}e=b.height-a.height;f=b.width-a.width;f<0&&c("isFalsey")(h.widthElement)&&(f=0);f=f>1?f:0;c("isFalsey")(h.allowShrink)&&e<0&&(e=0);if(e||f)try{window.console&&window.console.firebug,window.resizeBy(f,e),f&&window.moveBy(f/-2,0)}catch(a){}}function j(){var b=d("DOMDimensions").getDocumentDimensions();if(h.strategy==="offsetHeight"){var e=document.body;if(!e)d("FlowMigrationUtilsForLegacyFiles").invariantViolation("document.body is null.");else{b.height=(e=e.offsetHeight)!=null?e:0}}if(c("isFalsey")(h.widthElement)&&typeof h.widthElement==="string"){e=d("DOMQuery").scry(document.body,h.widthElement)[0];e&&(b.width=d("DOMDimensions").getElementDimensions(e).width)}e=a.Dialog;e&&e.max_bottom&&e.max_bottom>b.height&&(b.height=e.max_bottom);return b}function e(a,b,c,e){return d("Popup").open(a,c,b,e)}g._opts=h;g.init=b;g._resizeCheck=i;g._getDocumentSize=j;g.open=e}),98); __d("XWebGraphQLMutationController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/webgraphql/mutation/",{query_id:{type:"FBID"},variables:{type:"String"},doc_id:{type:"FBID"},legacy_response_format:{type:"Bool",defaultValue:!1}})}),null); __d("base62",[],(function(a,b,c,d,e,f){"use strict";var g="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function a(a){if(!a)return"0";var b="";while(a>0)b=g[a%62]+b,a=Math.floor(a/62);return b}f["default"]=a}),66); __d("WebGraphQLMutationHelper",["CurrentUser","WebGraphQLLegacyHelper","XWebGraphQLMutationController","base62"],(function(a,b,c,d,e,f,g){"use strict";var h=0;function a(a,b){return d("WebGraphQLLegacyHelper").getURI({controller:c("XWebGraphQLMutationController"),docID:a,variables:{input:babelHelpers["extends"]({client_mutation_id:c("base62")(h++),actor_id:c("CurrentUser").getID()},b)}})}g.getMutationURI=a}),98); __d("XMNCommerceCTAPostProcessController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/messages/commerce/cta/postprocess/",{cta_id:{type:"String",required:!0},message_id:{type:"String"}})}),null); __d("MNCommerceCTAProcessor",["AsyncRequest","CurrentUser","GraphQLMessengerPlatformCtaPostHandlingMutation.graphql","MessengerPlatformClientTypedLogger","PopupWindow","WebGraphQLMutationHelper","XMNCommerceCTAPostProcessController","nullthrows"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){}var b=a.prototype;b.process=function(a,b){b===void 0&&(b=null);var e=d("PopupWindow").open("",500,1024);a=c("XMNCommerceCTAPostProcessController").getURIBuilder().setString("cta_id",a).setString("message_id",b).getURI();new(c("AsyncRequest"))().setURI(a).setMethod("POST").setHandler(function(a){return e.location=a.payload}).send()};b.postHandle=function(a,b){a=d("WebGraphQLMutationHelper").getMutationURI(c("nullthrows")(c("GraphQLMessengerPlatformCtaPostHandlingMutation.graphql").params.id),{cta_id:a,message_id:b});new(c("AsyncRequest"))().setURI(a).send()};b.logCTAClick=function(a){var b,d;d=(d=a)!=null?d.logging_token:d;var e=d?JSON.parse(d).click_source:"UNKNOWN";e={action_id:(b=a)!=null?b.id:b,action_type:(b=a)!=null?b.action_type:b,action_url:((b=a)!=null?b.action_url:b)||((b=a)!=null?b.action_link:b),click_source:e,page_id:(b=a)!=null?b.page_id:b};new(c("MessengerPlatformClientTypedLogger"))().setClientUserID(c("CurrentUser").getID()).setName("did_tap_call_to_action").setExtraClientData(JSON.stringify(e)).setLoggingToken(d).log()};return a}();b=new a();g["default"]=b}),98); __d("MNCommerceCTAProcessor.bs",["MNCommerceCTAProcessor"],(function(a,b,c,d,e,f,g){"use strict";function a(a){c("MNCommerceCTAProcessor").logCTAClick(a)}function b(a,b){c("MNCommerceCTAProcessor").process(a,(a=b)!=null?a:void 0)}g.logCTAClick=a;g.$$process=b}),98); __d("LSMessageRenderingType",[],(function(a,b,c,d,e,f){a=Object.freeze({DEFAULT:0,NON_COLLAPSIBLE_ADMIN_MESSAGE:1,HIDDEN:2});f["default"]=a}),66); __d("useMessengerWebThreadSeenLogging",["CometDebounce","Int64Hooks","MessengerWebUXLogger","logMessengerWebFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.entryPoint,e=a.threadKey,f=a.threadType,g=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger(),h=c("CometDebounce")(function(){b!=null&&c("logMessengerWebFalcoEvent")({threadKey:e,threadType:f},"seen_receipt",b),g==null?void 0:g({entryPoint:b,eventName:"read_receipt",threadKey:e,threadType:f})});return d("Int64Hooks").useCallbackInt64(function(){return h()},[h])}g["default"]=a}),98); __d("useMWMarkThreadAsReadWhenNewMessagesArrive",["I64","MWLSThreadDisplayContext","MWV2IsTabFocusedContext.react","ReQL","UserActivity","asyncToGeneratorRuntime","cr:268","emptyFunction","gkx","promiseDone","react","useMWInboxPassiveContext","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;e=i||d("react");var k=e.useCallback,l=e.useEffect,m=(f=b("cr:268"))!=null?f:c("emptyFunction");function n(a,b,c,d,e){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f,g){var h=(yield d("ReQL").firstAsync(d("ReQL").fromTableDescending(a.table("messages")).getKeyRange(b)));if(h==null)return!1;a=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("threads")).getKeyRange(b)));if(a==null)return!1;b=g!==void 0?g==="ChatTab"?e:g==="Inbox"&&c("gkx")("6531")?!f.isPassive:!0:!0;e=(j||(j=d("I64"))).gt(h.timestampMs,a.lastActivityTimestampMs)?h.timestampMs:a.lastActivityTimestampMs;g=(j||(j=d("I64"))).gt(e,a.lastReadWatermarkTimestampMs);return c("UserActivity").isOnTab()&&c("UserActivity").isActive()&&b&&g});return o.apply(this,arguments)}function p(a,e){var f=(h||(h=c("useReStore")))(),g=d("MWV2IsTabFocusedContext.react").useIsTabFocused(),i=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),j=c("useMWInboxPassiveContext")();return k(function(){c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(yield n(f,a,g,j,i))return e()})())},[f,a,g,j,i,e])}function q(a,c,d){l(function(){var e=function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=a();typeof b!=="boolean"&&(b=(yield b));if(b&&!c())return d()});return function(){return e.apply(this,arguments)}}();window.addEventListener("focus",e);document.hasFocus()&&void e();return function(){return window.removeEventListener("focus",e)}},[d,a,c])}function a(a,b,c,d){b=p(a.threadKey,b);m(a);q(c,d,b);return b}g["default"]=a}),98); __d("LSMessagePointQueryStoredProcedure",["LSMessagePointQuery"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;d[1]=b.messageId;d[2]=b.threadType;d[3]=b.numContextMessages;return c("LSMessagePointQuery").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MAWFetchMoreMessagesWhenEnabled",["cr:1501","cr:7005"],(function(a,b,c,d,e,f,g){"use strict";c=(a=b("cr:7005"))!=null?a:b("cr:1501");d=c;g["default"]=d}),98); __d("MWPJumpToMostRecentMessageButtonAnimationWrapper.react",["react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useMemo,m=b.useState,n={animateIn:{animationDuration:"x5hsz1j",animationName:"x1j49z95",transform:"x1dufm33",$$css:!0},animateOut:{animationDuration:"x5hsz1j",animationName:"x1j4bph1",transform:"xk9af5f",$$css:!0},animationWrapper:{bottom:"x1ey2m1c",start:"x14yxtea",left:null,right:null,position:"x10l6tqk",zIndex:"x1vjfegm",$$css:!0},root:{height:"xqtp20y",position:"x1n2onr6",width:"xh8yej3",$$css:!0}};function a(a){var b=a.children,d=a.visible;a=m(d);var e=a[0],f=a[1];k(function(){d&&f(!0)},[d,f]);return l(function(){return e?j.jsx("div",{className:"xqtp20y x1n2onr6 xh8yej3",children:j.jsx("div",{className:(h||(h=c("stylex")))([n.animationWrapper,d?n.animateIn:n.animateOut]),onAnimationEnd:function(a){d||f(!1)},children:b})}):null},[d,e,f,b])}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWScrollUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a){a.scrollIntoView()}f.scrollElementIntoView=a}),66); __d("MWPBaseMessageList.react",["BaseHeadingContextWrapper.react","Box.react","CometHeroHoldTrigger.react","FBLogger","I64","Int64Hooks","LSAuthorityLevel","LSFactory","LSIntEnum","LSIssueMessagesRangeQueryStoredProcedure","LSMailboxMessagesRangeQueryDirection","LSMessagePointQueryStoredProcedure","LSMessageRenderingType","LSMessagingThreadTypeUtil","LSOptimisticMarkThreadReadV2StoredProcedure","MAWFetchMoreMessagesWhenEnabled","MWPJumpToMostRecentMessageButtonAnimationWrapper.react","MWPMessageAuthor.react","MWPVisibleMessageContext.react","MWScrollUtils","PromiseOrValue","ReQL","ReQLPaginatedList.react","ReQLPaginatedList.shared","ReQLSuspense","ReStoreKeyComparer","ServerTime","cr:5053","emptyFunction","gkx","nullthrows","promiseDone","react","requestAnimationFrame","useMAWMarkThreadAsRead","useMWMarkThreadAsReadWhenNewMessagesArrive","useReStore","useShallowEqualState","useUnsafeRef_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n,o=j||(j=d("react"));e=j;var p=e.useCallback,q=e.useEffect,aa=e.useImperativeHandle,ba=e.useRef,ca=e.useState,da=(e=b("cr:5053"))!=null?e:c("emptyFunction"),ea=3,r={list:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",flexShrink:"xs83m0k",isolation:"xc8icb0",overflowX:"x6ikm8r",overflowY:"x10wlt62",zIndex:"x1ja2u2z",$$css:!0},spacer:{backgroundColor:"xcrg951",display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",$$css:!0}},fa=(k||(k=d("I64"))).of_string("9999999999999");function s(a){var b=a.isCollapsed,c=a.messageId,e=a.primarySortKey;a=a.secondarySortKey;return d("ReQL").key(e,a,c,b)}function ga(a,b){if(a==null||b==null)return;return(k||(k=d("I64"))).compare(b,a.maxTimestampMs)<=0?a:null}function ha(a,b,d,e){c("promiseDone")(a.runInTransaction(function(a){return c("LSMessagePointQueryStoredProcedure")(c("LSFactory")(a),{messageId:d,threadKey:b,threadType:e})},"readwrite","ui"))}function ia(a,b,c){var d=a.get(b);d==null&&(d=c(),a.set(b,d));return d}function t(a,b){var c=new WeakMap();function e(a){return a.gt!=null?{gt:a.gt.slice(1)}:{gte:a.gte.slice(1)}}function f(a){return a.lt!=null?{lt:a.lt.slice(1)}:{lte:a.lte.slice(1)}}function g(a){return a==null?void 0:babelHelpers.extends({},a.gte!=null||a.gt!=null?e(a):{},a.lte!=null||a.lt!=null?f(a):{})}return Object.setPrototypeOf({direction:a.direction,iterator:function(e,f){var g={};if(f){if(f.gt!=null){var h=f.gt,i=(l||(l=d("ReStoreKeyComparer"))).compareValue(b,h[0]);if(i===0)if(h.length===1)return{next:function(){return{done:!0}}};else g.gt=h.slice(1);else if(i<0)return{next:function(){return{done:!0}}}}if(f.gte!=null){h=f.gte;i=(l||(l=d("ReStoreKeyComparer"))).compareValue(b,h[0]);if(i===0)g.gte=h.slice(1);else if(i<0)return{next:function(){return{done:!0}}}}if(f.lte!=null){h=f.lte;i=(l||(l=d("ReStoreKeyComparer"))).compareValue(b,h[0]);if(i===0)h.length!==1&&(g.lte=h.slice(1));else if(i>0)return{next:function(){return{done:!0}}}}if(f.lt!=null){h=f.lt;i=(l||(l=d("ReStoreKeyComparer"))).compareValue(b,h[0]);if(i===0)if(h.length===1)return{next:function(){return{done:!0}}};else g.lt=h.slice(1);else if(i>0)return{next:function(){return{done:!0}}}}}var j=a.iterator(e,g);return{next:function(a){return(n||(n=d("PromiseOrValue"))).map(j.next(a==null?void 0:a.slice(1)),function(a){if(a.done)return{done:!0};var d=c.get(a.value[0]);d==null&&(d=[b].concat(a.value[0]),c.set(a.value[0],d));return{done:!1,value:[d,a.value[1]]}})}}},keyLength:a.keyLength+1,subscribe:function(d,e){return a.subscribe(function(a,e,f){var g=c.get(a);g==null&&(g=[b].concat(a),c.set(a,g));return d(g,e,f)},g(e))}},d("ReQL").prototype)}function ja(a){var b=(h||(h=c("useReStore")))();return d("ReQLSuspense").useFirst(function(){return a==null||(k||(k=d("I64"))).equal(a.minTimestampMs,(k||(k=d("I64"))).zero)?d("ReQL").empty():d("ReQL").fromTableAscending(b.table("messages"),["isCollapsed","messageId","primarySortKey","secondarySortKey"]).getKeyRange(a.threadKey).bounds({gte:d("ReQL").key(a.minTimestampMs,a.minMessageId)})},[b,a],f.id+":362")}function ka(a){var b=(h||(h=c("useReStore")))();return d("ReQLSuspense").useFirst(function(){return a==null||(k||(k=d("I64"))).equal(a.maxTimestampMs,fa)?d("ReQL").empty():d("ReQL").fromTableDescending(b.table("messages"),["isCollapsed","messageId","primarySortKey","secondarySortKey","timestampMs"]).getKeyRange(a.threadKey).bounds({lte:d("ReQL").key(a.maxTimestampMs,a.maxMessageId)})},[b,a],f.id+":388")}function la(){return!1}function a(a,b){var e,g=a.entryPoint,j=a.onInitialLoadingCompleted,l=a.logScrollerMetadata,n=a.onUserScroll,ma=a.renderFooter,u=a.renderHeader,na=a.renderHeaderContentSpacer,oa=a.renderJumpToMostRecentMessageButton,v=a.renderLoadingAnimation,pa=a.renderRow,w=a.secondaryThread,x=a.thread,y=a.checkIsThreadManuallySetAsUnread,z=y===void 0?la:y;y=a.pageSize;var A=a.onScrollToBottom,qa=a.isSufficientContentLoadedAbove,B=a.triggerRenderingCompleteOnResize,ra=B===void 0?!1:B;B=a.setScrollTopInResetForBottomAnchor;a=B===void 0?!0:B;function C(a,b,e,f){c("promiseDone")(a.runInTransaction(async function(a){var g,h;g=await (g=a.table("messages_ranges_v2__generated")).get.apply(g,b);if(g==null||(f==="before"?g.isLoadingBefore:g.isLoadingAfter))return;h=e==null?null:await (h=a.table("messages_ranges_v2__generated")).get.apply(h,e);if(e!=null&&(h==null||(f==="before"?h.isLoadingBefore:h.isLoadingAfter)))return;if(f==="before")if(h==null||g.hasMoreBefore){var i=d("LSMessagingThreadTypeUtil").isSecure(E);if(i){if(J!=null)return J(a,g.threadKey,"before")}else return c("LSIssueMessagesRangeQueryStoredProcedure")(c("LSFactory")(a),{direction:(m||(m=d("LSIntEnum"))).ofNumber(c("LSMailboxMessagesRangeQueryDirection").BEFORE),referenceTimestampMs:g.minTimestampMs,threadKey:g.threadKey})}else{i=d("LSMessagingThreadTypeUtil").isSecure(c("nullthrows")(sa));if(i){if(J!=null)return J(a,h.threadKey,"before")}else return c("LSIssueMessagesRangeQueryStoredProcedure")(c("LSFactory")(a),{direction:(m||(m=d("LSIntEnum"))).ofNumber(c("LSMailboxMessagesRangeQueryDirection").BEFORE),referenceTimestampMs:h.minTimestampMs,threadKey:h.threadKey})}else if(h==null||g.hasMoreAfter){i=d("LSMessagingThreadTypeUtil").isSecure(E);if(i)if(c("gkx")("6884")){if(J!=null)return J(a,g.threadKey,"after")}else throw c("FBLogger")("messenger_web_product").mustfix("Not possible to fetch more after for secure messages");else return c("LSIssueMessagesRangeQueryStoredProcedure")(c("LSFactory")(a),{direction:(m||(m=d("LSIntEnum"))).ofNumber(c("LSMailboxMessagesRangeQueryDirection").AFTER),referenceTimestampMs:g.minTimestampMs,threadKey:g.threadKey})}else{i=d("LSMessagingThreadTypeUtil").isSecure(c("nullthrows")(sa));if(i)if(c("gkx")("6884")){if(J!=null)return J(a,h.threadKey,"after")}else throw c("FBLogger")("messenger_web_product").mustfix("Not possible to fetch more after for secure messages");else return c("LSIssueMessagesRangeQueryStoredProcedure")(c("LSFactory")(a),{direction:(m||(m=d("LSIntEnum"))).ofNumber(c("LSMailboxMessagesRangeQueryDirection").AFTER),referenceTimestampMs:h.minTimestampMs,threadKey:h.threadKey})}},"readwrite","ui"))}var D=x.threadKey,E=x.threadType;B=w||{};var F=B.threadKey,sa=B.threadType,G=(h||(h=c("useReStore")))(),H=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableDescending(G.table("messages_ranges_v2__generated")).getKeyRange(D)},[G,D],f.id+":608");B=d("ReQLSuspense").useFirst(function(){return F==null?d("ReQL").empty():d("ReQL").fromTableDescending(G.table("messages_ranges_v2__generated")).getKeyRange(F)},[G,F],f.id+":615");var I=(i||(i=c("useUnsafeRef_DEPRECATED")))(new Map()),J=c("MAWFetchMoreMessagesWhenEnabled")==null?void 0:c("MAWFetchMoreMessagesWhenEnabled").useFetchSecureMessages(E),K=d("MWPVisibleMessageContext.react").useMWPVisibleMessageContext(),ta=K.setVisibleMessage,L=K.visibleMessage;K=(K=L)!=null?K:{};var M=K.messageId,N=K.timestamp,O=d("ReQLSuspense").useFirst(function(){return M!=null&&N!=null?d("ReQL").fromTableAscending(G.table("messages"),["isCollapsed","messageId","primarySortKey","secondarySortKey"]).getKeyRange(D,N,M):d("ReQL").empty()},[G,D,M,N],f.id+":638"),P=ga(d("ReQLSuspense").useFirst(function(){return N!=null?d("ReQL").fromTableDescending(G.table("messages_ranges_v2__generated")).getKeyRange(D).bounds({lte:[N]}):d("ReQL").empty()},[G,N,D],f.id+":651"),N);K=c("useShallowEqualState")({displayMessage:void 0,displayMessagesRange:H});var Q=K[0],ua=K[1];K=Q.displayMessage;var R=Q.displayMessagesRange;d("Int64Hooks").useEffectInt64(function(){M==null||N==null?ua(function(a){return babelHelpers.extends({},a,{displayMessage:void 0,displayMessagesRange:H})}):P==null?ha(G,D,M,E):P.minMessageId===M&&P.hasMoreBefore?C(G,d("ReQL").key(P.threadKey,P.minTimestampMs,P.minMessageId),null,"before"):P.maxMessageId===M&&P.hasMoreAfter?C(G,d("ReQL").key(P.threadKey,P.minTimestampMs,P.minMessageId),null,"after"):O!=null&&ua(function(a){return babelHelpers.extends({},a,{displayMessage:O,displayMessagesRange:P})})},[G,O,M,P,H,D,E,N]);q(function(){var a;a=(a=I.current.get(L==null?void 0:L.messageId))==null?void 0:a.current;a!=null&&d("MWScrollUtils").scrollElementIntoView(a)},[L]);Q=ja(R);var S=ka(R),va=ja(B),T=da({entryPoint:g,threadKey:D,threadType:E});g=ca(!0);var wa=g[0],xa=g[1],U=ba(!1);g=p(function(){if(!ra)return;if(j==null||U.current)return;j(!1);U.current=!0},[j,ra]);var V=ba(null);e=(e=V.current)!=null?e:{};var W=e.doesContentFillScroll,ya=e.onCloseToBottom;q(function(){var a;if(j==null||U.current)return;if(R!=null&&!R.hasMoreBefore){j(!0);U.current=!0;return}l&&l((a=(a=V.current)==null?void 0:a.getScrollerMeasurements())!=null?a:void 0,R===H);if(W==null)return;if(W()){j(!1);U.current=!0;return}},[j,R,l,H,W]);q(function(){var a;a=(a=V.current)==null?void 0:a.onCloseToBottom;if(a!=null)return a(600,function(a){return xa(a)})},[H==null?void 0:H.minMessageId]);q(function(){var a;a=(a=V.current)==null?void 0:a.onCloseToBottom;if(a!=null&&A!=null)return a(36,function(a){return A(a)})},[A]);var za=R!=null?!R.hasMoreAfter:!1;e=p(function(){return new Promise(function(a){var b=V.current;b==null?a(!1):c("requestAnimationFrame")(function(){a(b.isAtBottom()&&za)})})},[za,V]);var Aa=c("useMAWMarkThreadAsRead")(x),Ba=d("LSMessagingThreadTypeUtil").isSecure(E),Ca=c("useMWMarkThreadAsReadWhenNewMessagesArrive")(x,d("Int64Hooks").useCallbackInt64(function(){T==null?void 0:T();if(Ba){Aa();return}c("promiseDone")(G.runInTransaction(function(a){return c("LSOptimisticMarkThreadReadV2StoredProcedure")(c("LSFactory")(a),{readWatermarkTimestampMs:(k||(k=d("I64"))).of_float(d("ServerTime").getMillis()),threadKey:D})},"readwrite","ui"))},[T,D,Aa,Ba,G]),e,z);q(function(){if(ya!=null)return ya(0,function(a){a&&!z()&&Ca()})},[ya,Ca,z]);e=d("Int64Hooks").useMemoInt64(function(){var a=G.table("messages").index("messageDisplayOrder"),b=d("LSMessagingThreadTypeUtil").isCMSubthread(x.threadType),e=G.table("messages").index("messageSubthreadKey");function f(a,b){var e=a.getKeyRange(x.threadKey).filter(function(a){var b=a.isCollapsed;a=a.messageRenderingType;return!b&&!(k||(k=d("I64"))).equal(a,(k||(k=d("I64"))).of_int32(c("LSMessageRenderingType").HIDDEN))});return w==null?b!=null?d("ReQL").union(t(b.getKeyRange(D),0),t(e,1)):t(e,1):d("ReQL").union(t(a.getKeyRange(w.threadKey).filter(function(a){a=a.isCollapsed;return!a}),0),t(e,1))}var g=f(d("ReQL").fromTableAscending(a),b?d("ReQL").fromTableAscending(e):void 0);f=f(d("ReQL").fromTableDescending(a),b?d("ReQL").fromTableDescending(e):void 0);return d("ReQLPaginatedList.shared").fromIterables(g,f)},[G,w==null?void 0:w.threadKey,x.threadKey,x.threadType]);var X=R!=null&&(k||(k=d("I64"))).equal(R.maxTimestampMs,fa),Y=R!=null&&(k||(k=d("I64"))).equal(R.minTimestampMs,(k||(k=d("I64"))).zero),Da=B!=null&&(k||(k=d("I64"))).equal(B.minTimestampMs,(k||(k=d("I64"))).zero);function Ea(){R===H&&(V.current!=null&&V.current.scrollToBottom()),ta(function(){return void 0})}aa(b,function(){return{getScrollAreaElement:function(){var a;return(a=V.current)==null?void 0:a.getScrollAreaElement()},jumpToMostRecentMessage:function(b){function a(){return b.apply(this,arguments)}a.toString=function(){return b.toString()};return a}(function(){Ea()}),restoreScrollPosition:function(){var a;return(a=V.current)==null?void 0:a.restoreScrollPosition()}}});b=p(function(a,b){var c=b.nextItem;b=b.previousItem;return o.jsx(d("MWPMessageAuthor.react").MWPMessageAuthor,{contactId:a.senderId,threadKey:a.threadKey,children:pa({domElementRef:ia(I.current,a.messageId,function(){return{current:null}}),message:a,nextMessage:c,prevMessage:b})},a.offlineThreadingId)},[I,pa]);var Z=(k||(k=d("I64"))).equal(x.authorityLevel,(m||(m=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").OPTIMISTIC))&&d("LSMessagingThreadTypeUtil").isCMSubthread(x.threadType);if((R==null||Q==null&&!Y||S==null&&!X)&&!Z){if((k||(k=d("I64"))).equal(x.authorityLevel,(m||(m=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").OPTIMISTIC)))return o.jsxs(o.Fragment,{children:[o.jsx(c("CometHeroHoldTrigger.react"),{description:"MWChatWaitingForDisplayState-optimisticThread",hold:!0}),u!=null?u():null]});Y=R==null?"displayMessagesRangeNull":Q==null&&!Y?"noMinMessage":S==null&&!X?"noMaxMessage":"other";return o.jsxs(o.Fragment,{children:[o.jsx(c("CometHeroHoldTrigger.react"),{description:"MWChatWaitingForDisplayState-"+Y,hold:!0}),v!=null?v():null]})}var $=!Z&&R!=null?d("ReQL").key(R.threadKey,R.minTimestampMs,R.minMessageId):null,Fa=B==null?null:d("ReQL").key(B.threadKey,B.minTimestampMs,B.minMessageId);X=K==null?"bottom":[1].concat(s(K));Y=Q==null?va==null||Da?null:[0].concat(s(va)):[1].concat(s(Q));K=S==null?null:[1].concat(s(S));return o.jsxs(c("Box.react"),{xstyle:r.list,children:[o.jsx(c("BaseHeadingContextWrapper.react"),{children:o.jsx(c("ReQLPaginatedList.react"),{bounds:{gte:Y,lte:K},data:e,hasReachedBottom:!Z&&R!=null?!R.hasMoreAfter:!0,hasReachedTop:!Z&&R!=null?B==null?!(R.hasMoreBefore||w!=null):!(R.hasMoreBefore||B.hasMoreBefore):!0,holdTriggerElementsCount:ea,initialRenderComplete:g,isSufficientContentLoadedAbove:qa,onReachingBottom:!Z&&$!=null?function(){C(G,$,Fa,"after")}:c("emptyFunction"),onReachingTop:!Z&&$!=null?function(){return C(G,$,Fa,"before")}:c("emptyFunction"),onUserScroll:n,pageSize:y,renderFooter:ma,renderHeader:u,renderHeaderContentSpacer:na!=null?na:function(){return o.jsx(c("Box.react"),{xstyle:r.spacer})},renderItem:b,renderLoadingAnimation:v,setScrollTopInResetForBottomAnchor:a,xstyle:r.list,imperativeRef:V,initialAnchor:X})}),oa&&o.jsx(c("MWPJumpToMostRecentMessageButtonAnimationWrapper.react"),{visible:!Z&&R!=null?!wa||R.hasMoreAfter:!1,children:oa(Ea)})]})}a.displayName=a.name+" [from "+f.id+"]";b=o.forwardRef(a);g.default=b}),98);/*FB_PKG_DELIM*/ __d("CometIXTFacebookProactiveWarningFlowTriggerRootQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6479568078811654"}),null); __d("CometIXTFacebookProactiveWarningFlowTriggerRootQuery$Parameters",["CometIXTFacebookProactiveWarningFlowTriggerRootQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometIXTFacebookProactiveWarningFlowTriggerRootQuery_facebookRelayOperation"),metadata:{},name:"CometIXTFacebookProactiveWarningFlowTriggerRootQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("CometIXTFacebookProactiveWarningFlowTriggerEntryPoint.entrypoint",["CometIXTFacebookProactiveWarningFlowTriggerRootQuery$Parameters","JSResourceForInteraction","WebPixelRatio","react","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h;h||c("react");a={getPreloadProps:function(a){return{queries:{reference:{parameters:c("CometIXTFacebookProactiveWarningFlowTriggerRootQuery$Parameters"),variables:{input:babelHelpers["extends"]({},a,{nt_context:null,trigger_session_id:c("uuidv4")()}),scale:d("WebPixelRatio").get()}}}}},root:c("JSResourceForInteraction")("CometIXTFacebookProactiveWarningFlowTriggerRoot.react").__setRef("CometIXTFacebookProactiveWarningFlowTriggerEntryPoint.entrypoint")};b=a;g["default"]=b}),98); __d("useIXTProactiveWarningFlowTriggerDialog",["cr:2998","cr:3116"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return b("cr:3116")(b("cr:2998"),a)}g["default"]=a}),98); __d("GroupsCometChatEditChatDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6517941274957526"}),null); __d("GroupsCometChatEditChatDialogQuery$Parameters",["GroupsCometChatEditChatDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("GroupsCometChatEditChatDialogQuery_facebookRelayOperation"),metadata:{},name:"GroupsCometChatEditChatDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("MWComposerXacDisclosureRelayQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5305811016137974"}),null); __d("MWComposerXacDisclosureRelayQuery.graphql",["MWComposerXacDisclosureRelayQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"nux_id"}],c=[{kind:"Variable",name:"nux_id",variableName:"nux_id"}],d={kind:"InlineFragment",selections:[{args:null,documentName:"MWComposerXacDisclosureRelayQuery",fragmentName:"MWComposerXacDisclosureView_nux",fragmentPropName:"nux",kind:"ModuleImport"}],type:"DefaultNUX",abstractKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWComposerXacDisclosureRelayQuery",selections:[{alias:"xacThreadDisclosureNux",args:c,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[d],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWComposerXacDisclosureRelayQuery",selections:[{alias:"xacThreadDisclosureNux",args:c,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},d,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("MWComposerXacDisclosureRelayQuery_facebookRelayOperation"),metadata:{},name:"MWComposerXacDisclosureRelayQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWEditChannelDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6707146052634771"}),null); __d("MWEditChannelDialogQuery$Parameters",["MWEditChannelDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("MWEditChannelDialogQuery_facebookRelayOperation"),metadata:{},name:"MWEditChannelDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("MWChatViewerChatVisibilityHookQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6404754876239370"}),null); __d("MWChatViewerChatVisibilityHookQuery.graphql",["MWChatViewerChatVisibilityHookQuery_facebookRelayOperation"],(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:"chat_visibility",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatViewerChatVisibilityHookQuery",selections:a,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatViewerChatVisibilityHookQuery",selections:a},params:{id:b("MWChatViewerChatVisibilityHookQuery_facebookRelayOperation"),metadata:{},name:"MWChatViewerChatVisibilityHookQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWLSGroupMembershipDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6760446204050661"}),null); __d("MWLSGroupMembershipDialogQuery$Parameters",["MWLSGroupMembershipDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("MWLSGroupMembershipDialogQuery_facebookRelayOperation"),metadata:{},name:"MWLSGroupMembershipDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("useMWLSGroupMembershipMenuQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6896312840450416"}),null); __d("useMWLSGroupMembershipMenuQuery$Parameters",["useMWLSGroupMembershipMenuQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("useMWLSGroupMembershipMenuQuery_facebookRelayOperation"),metadata:{},name:"useMWLSGroupMembershipMenuQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("GroupsCometChatEditChatDialog.entrypoint",["GroupsCometChatEditChatDialogQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.threadID;return{queries:{queryReference:{options:{fetchPolicy:"network-only"},parameters:c("GroupsCometChatEditChatDialogQuery$Parameters"),variables:{threadID:a}}}}},root:c("JSResourceForInteraction")("GroupsCometChatEditChatDialog.react").__setRef("GroupsCometChatEditChatDialog.entrypoint")};g["default"]=a}),98); __d("ComponentMountUnmountSubspanLogger.react",["InteractionTracingMetrics","hero-tracing-placeholder","performanceNow","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=i||d("react");var j=b.useContext,k=b.useEffect;function a(a){var b=a.description,e=j(d("hero-tracing-placeholder").HeroInteractionIDContext);k(function(){var a=(h||(h=c("performanceNow")))();return function(){if(e!=null){var d=(h||(h=c("performanceNow")))();c("InteractionTracingMetrics").addSubspan(e,b,"AppTiming",a,d,{})}}},[b,e])}g["default"]=a}),98); __d("MWXCollapsible.react",["MWXColumn.react","MWXColumnItem.react","MWXIconStrict.react","MWXListCellPressable.react","MWXText.react","cr:4055","cr:4100","react","react-strict-dom"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useId,k={root:{alignItems:"x6s0dn4",display:"x78zum5",height:"xxk0z11",$$css:!0}};function a(a){var e=a.children,f=a.isOpen,g=a.label,h=a.onPress,l=a.renderButtonContainer;a=a.testid;a=j();var m=j();g=i.jsx(c("MWXListCellPressable.react"),{addOnEnd:i.jsx(c("MWXIconStrict.react"),{icon:f?b("cr:4100"):b("cr:4055"),size:16}),"aria-controls":m,"aria-expanded":f,"aria-label":g,content:i.jsx(d("react-strict-dom").html.div,{style:k.root,children:i.jsx(c("MWXText.react"),{color:"primary",numberOfLines:1,type:"bodyLink3",children:g})}),id:a,onPress:h,testid:void 0});return i.jsxs(c("MWXColumn.react"),{paddingHorizontal:8,children:[i.jsx(c("MWXColumnItem.react"),{children:l?l(g):g}),i.jsx(c("MWXColumnItem.react"),{children:i.jsx(d("react-strict-dom").html.div,{"aria-labelledby":a,id:m,role:"region",children:f?e:null})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWCreateGroupThread",["fbt","I64","LSFactory","LSIssueNewErrorStoredProcedure","MAWBridgeSendAndReceive","MAWJobDefinitions","MAWTimedJob","WAJobOrchestratorTypes","asyncToGeneratorRuntime","promiseDone","unrecoverableViolation"],(function(a,b,c,d,e,f,g,h){"use strict";var i;function j(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.db,e=a.deduplicationKey,f=a.isDualSend;f=f===void 0?!1:f;var g=a.offlineThreadingId,j=a.participantIds;a=a.threadName;g=g!=null?(i||(i=d("I64"))).to_string(g):void 0;var k="msgr";e=(yield d("MAWTimedJob").TimedUIJobStarters.waitUntilCompleted(d("MAWJobDefinitions").createStartJobInfo("createGroup",{extras:{clientThreadKey:g,deduplicationKey:e,isDualSend:f,platform:k},key:g,scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION},subject:a,uniqKey:g,users:j})));a=e.error;g=e.value;if(a==null&&g!=null&&g.type===k){j=(yield d("MAWBridgeSendAndReceive").sendAndReceive("backend","getThreadIdByChatJid",{chatJid:g.chatJid}));if(j==null)throw c("unrecoverableViolation")("Group was not found in database","messenger_e2ee_web");else return{chatId:j,created:!0,jid:g.chatJid}}if(!f){var l=h._("__JHASH__Q8EKHlLB3en__JHASH__").toString();c("promiseDone")(b.runInTransaction(function(a){return c("LSIssueNewErrorStoredProcedure")(c("LSFactory")(a),{errorBodyText:l,errorTitleText:l})},"readwrite"))}throw c("unrecoverableViolation")("Unable to create group","messenger_e2ee_web")});return k.apply(this,arguments)}function a(a){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.deduplicationKey;if(b==null)return j(a);b=(yield d("MAWBridgeSendAndReceive").sendAndReceive("backend","getThreadIdByDeduplicationKey",{deduplicationKey:b}));return b!=null?{chatId:b.chatId,created:!1,jid:b.jid}:j(a)});return l.apply(this,arguments)}g["default"]=a}),98); __d("MAWMiActMaybeCreateActThread",["FBLogger","I64","LSAuthorityLevel","LSFactory","LSIntEnum","LSMessagingThreadTypeUtil","LSVerifyE2EEMetadataThreadExistsV2StoredProcedure","MAWCreateGroupThread","MAWCreateOneToOneThread","MAWMiActCreateThreadInActWithMiData","MAWMiActGetThreadLifecycleState","MAWMiActThreadLifecycleState","asyncToGeneratorRuntime","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function j(a,b){return a.runInTransaction(function(a){return c("LSVerifyE2EEMetadataThreadExistsV2StoredProcedure")(c("LSFactory")(a),{authorityLevel:(h||(h=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE),threadKey:b,threadType:h.ofNumber(15)}).then(function(){})},"readwrite")}function k(a,b,e){if(e==null)throw c("FBLogger")("messenger_e2ee_web").mustfixThrow("[MiActMapping] Could not create optimistic thread because data was null\n for threadKey: %s",(i||(i=d("I64"))).to_string(b.threadKey));var f=e.actorId;e=e.participantIds;var g=e.filter(function(a){return a!==(i||(i=d("I64"))).to_string(f)});if(d("LSMessagingThreadTypeUtil").isOneToOne(b.threadType)&&(g.length===1||c("gkx")("7935"))){var j=g.length===1?g:e;return d("MAWCreateOneToOneThread").call(a,(i||(i=d("I64"))).of_string(j[0]),i.to_string(b.threadKey))}else if(d("LSMessagingThreadTypeUtil").isGroup(b.threadType)&&g.length>1)return c("MAWCreateGroupThread")({db:a,offlineThreadingId:b.threadKey,participantIds:e});throw c("FBLogger")("messenger_e2ee_web").mustfixThrow("[MiActMapping] Did not know which type of optimistic thread to create for\n threadKey: %s, participantsCount: %s, threadType: %s",(i||(i=d("I64"))).to_string(b.threadKey),e.length,(h||(h=d("LSIntEnum"))).toNumber(b.threadType))}function l(a){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=(yield d("MAWMiActCreateThreadInActWithMiData").miActCreateThreadInActWithMiData(a.serverThreadKey,a.jidInt64,a.thread.lastActivityTimestampMs,a.thread.lastReadWatermarkTimestampMs,d("LSMessagingThreadTypeUtil").isGroup(a.thread.threadType)));return{chatId:a.chatId,created:a.isCreated,jid:a.chatJid}});return m.apply(this,arguments)}var n=new Map();function a(a,b,c){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){var f=(yield d("MAWMiActGetThreadLifecycleState").getThreadLifecycleStateByThreadKey(a,b,"maybeCreateActThread"));switch(f.type){case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.ACT_THREAD_ONLY:case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.THREAD_KEY_ONLY:yield j(a,b);throw c("FBLogger")("messenger_e2ee_web").mustfixThrow("[MiActMapping] We did not call MiActLoadExistingThread for threadKey: %s, threadState: %s",(i||(i=d("I64"))).to_string(b),f.type);case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.AUTHORITATIVE_THREAD_MISSING_MAPPING_ROW:throw c("FBLogger")("messenger_e2ee_web").mustfixThrow("[MiActMapping] MI inserted the thread but the mapping row was not\n written or it was deleted for threadKey: %s",(i||(i=d("I64"))).to_string(b));case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.OPTIMISTIC_THREAD_NO_ACT:var g=(i||(i=d("I64"))).to_string(b),h=n.get(g);if(h!=null)return h;h=k(a,f.thread,e);n.set(g,h);return h;case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.OPTIMISTIC_THREAD_WITH_ACT:return{chatId:f.chatId,created:!1,jid:f.jid};case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.AUTHORITATIVE_THREAD_ONLY:return l(f);case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.MI_AND_ACT_THREAD_COMPLETE:return{chatId:f.chatId,created:!1,jid:f.jid};case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.ACT_THREAD_ONLY_BY_CHAT_ID:case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.ACT_THREAD_ONLY_BY_JID:case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.CLIENT_PARTIAL_MI_THREAD:case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.SERVER_PARTIAL_MI_THREAD:case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.JID_MISSING_MI_THREAD:case d("MAWMiActThreadLifecycleState").MiActThreadStatesEnum.JID_MISSING_MAPPING_ROW:throw c("FBLogger")("messenger_e2ee_web").mustfixThrow("[MiActMapping] Unhandled ACT thread creation state for threadKey:\n %s",(i||(i=d("I64"))).to_string(b));default:f.type;throw c("FBLogger")("messenger_e2ee_web").mustfixThrow("[MiActMapping] Unreachable miActThreadState.type: %s",f.type)}});return o.apply(this,arguments)}g["default"]=a}),98); __d("MAWMiActOnActThreadReadyDeferred",["requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("MAWMiActOnActThreadReady").__setRef("MAWMiActOnActThreadReadyDeferred");function a(a,b,c,d){return h.load().then(function(e){e=e.onActThreadReady;return e(a,b,c,d)})}g["default"]=a}),98); __d("MAWCreateOptimisticSecureMessage",["I64","LSIntEnum","LSReplyMessageAttachmentType","LSReplyMessageStatus","MAWDbMsg","MAWMsgReplySnippet","MessagingAttachmentType","OfflineThreadingId","QPLUserFlow","ReQL","asyncToGeneratorRuntime","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b,c,d){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f){if(e==null)return[void 0,void 0];var g=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("messages")).getKeyRange(b,e.timestampMs,e.messageId)));c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),"get_reply_msg_end",{instanceKey:f});a=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("attachments")).getKeyRange(b,e.messageId)));c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),"get_reply_attachment_end",{instanceKey:f});return[g,a]});return j.apply(this,arguments)}function e(a,b,c){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){a=(yield d("ReQL").firstAsync(d("ReQL").fromTableDescending(a.table("messages")).getKeyRange(b)));c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),"get_offline_threading_id_end",{instanceKey:e});if(a==null)return d("OfflineThreadingId").createOfflineThreadingID();b=d("MAWDbMsg").toMsgId(a.messageId);return b==null?d("OfflineThreadingId").createOfflineThreadingID():d("MAWDbMsg").getNextOptimisticId(b)});return k.apply(this,arguments)}function l(a,b){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("contacts")).getKeyRange(b)));return a==null?void 0:a.firstName});return m.apply(this,arguments)}function f(a,b,c){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){if(b==null)return;a=(yield l(a,b.senderId));return(a=d("MAWMsgReplySnippet").buildLocalizedReplySnippet({isAuthorMe:!0,isDeletedMsg:b.replyStatus===c("LSReplyMessageStatus").DELETED,recipientName:a,replySenderIsMe:(h||(h=d("I64"))).equal(b.senderId,e)}))==null?void 0:a.toString()});return n.apply(this,arguments)}function o(a){if(a==null)return;var b=a.attachmentType;return(h||(h=d("I64"))).equal(b,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))||(h||(h=d("I64"))).equal(b,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").STICKER))?a.previewUrl:void 0}function p(a){if(a!=null){if((h||(h=d("I64"))).equal(a==null?void 0:a.attachmentType,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE)))return(i||(i=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").PHOTO);if((h||(h=d("I64"))).equal(a==null?void 0:a.attachmentType,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").STICKER)))return(i||(i=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").STICKER);if((h||(h=d("I64"))).equal(a==null?void 0:a.attachmentType,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)))return(i||(i=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").VIDEO);return(h||(h=d("I64"))).equal(a==null?void 0:a.attachmentType,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE))?(i||(i=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").GIF):(i||(i=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").OTHER)}}g.getReply=a;g.getOfflineThreadingId=e;g.getOptimisticReplySnippet=f;g.getReplyMediaUrl=o;g.getReplyAttachmentType=p}),98); __d("useMAWCreateOptimisticSecureMessage",["I64","LSAuthorityLevel","LSHotEmojiSize","LSIntEnum","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSMessageSendStatus","LSQuickReplyType","MAWAdminMsg","MAWBridgeBuildMsg","MAWBumpThread","MAWCreateOptimisticSecureMessage","MAWLocalizationType","MWPActor.react","QPLUserFlow","asyncToGeneratorRuntime","cr:2472","gkx","qpl","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function a(){var a=(j||(j=c("useReStore")))(),e=d("MWPActor.react").useActor();return function(f,g,j,k,l,m,n,o){return a.runInTransaction(function(){var p=b("asyncToGeneratorRuntime").asyncToGenerator(function*(p){var q=Date.now(),r=(h||(h=d("I64"))).of_float(q),s=(yield d("MAWCreateOptimisticSecureMessage").getOfflineThreadingId(p,j,l));n(s);var t=(yield d("MAWCreateOptimisticSecureMessage").getReply(p,j,f,l)),u=t[0];t=t[1];var v=(yield d("MAWBridgeBuildMsg").buildOptimisticMessage(a,p,g,s,j,u,r,m));u=(yield d("MAWCreateOptimisticSecureMessage").getOptimisticReplySnippet(a,u,e));yield p.table("messages").add(babelHelpers["extends"]({},v,{authorityLevel:(i||(i=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").OPTIMISTIC),displayedContentTypes:i.ofNumber(1),hasQuickReplies:!1,hotEmojiSize:k,isAdminMessage:!1,isCollapsed:!1,isUnsent:!1,messageId:s,offlineThreadingId:c("gkx")("4648")&&o!=null?o:s,primarySortKey:r,quickReplyType:i.ofNumber(c("LSQuickReplyType").NONE),replyAttachmentType:d("MAWCreateOptimisticSecureMessage").getReplyAttachmentType(t),replyMediaPreviewHeight:t==null?void 0:t.previewHeight,replyMediaPreviewWidth:t==null?void 0:t.previewWidth,replyMediaUrl:d("MAWCreateOptimisticSecureMessage").getReplyMediaUrl(t),replyMediaUrlMimeType:t==null?void 0:t.playableUrlMimeType,replySnippet:u,replySourceId:f==null?void 0:f.messageId,replySourceType:f!=null?(i||(i=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceType").MESSAGE):void 0,replySourceTypeV2:f!=null?(i||(i=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").MESSAGE):void 0,senderId:e,sendStatus:i.ofNumber(c("LSMessageSendStatus").SENDING_TO_SERVER),sendStatusV2:i.ofNumber(1),textHasLinks:!1,threadKey:j,timestampMs:r,viewFlags:i.ofNumber(0)}));c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),"after_create_optimistic_message",{instanceKey:l});v=b("cr:2472")==null?g:b("cr:2472").unvault(g);t=k!=null&&(h||(h=d("I64"))).equal(k,(i||(i=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").SMALL))&&v==="\ud83d\udc4d"?"(Y)":g;yield d("MAWBumpThread").threadMutation(p,j,r,r,d("MAWAdminMsg").buildLocalizedString([t],[],d("MAWLocalizationType").CURRENT_USER_SEND_TEXT),e);return[s,q]});return function(a){return p.apply(this,arguments)}}(),"readwrite","ui")}}g["default"]=a}),98); __d("MAWSecureComposerText",["Lexical","LexicalText","MAWJids","MessengerLexicalEntityTextNode"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return a.read(function(){var a=d("Lexical").$getRoot().getFirstChild();return a instanceof d("Lexical").ElementNode?a.getChildren().reduce(function(a,b){if(d("MessengerLexicalEntityTextNode").isMessengerLexicalEntityTextNode(b)){var c=b.getEntity();return a+("@"+d("MAWJids").toUserJid(c.id))}return a+b.getTextContent()},""):d("LexicalText").$rootTextContent()})}g.getTextFromEditorState=a}),98); __d("MAWSecureThreadNonAddressableContactBannerCloseButton.react",["MWXPressable.react","fbs","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.onPress;return i.jsx("div",{className:"x1923su1 x10l6tqk xfr5jun x1vjfegm",children:i.jsx(c("MWXPressable.react"),{"aria-label":c("fbs")._("__JHASH__cwU_O5_fD5E__JHASH__"),onPress:a,overlayRadius:"50%",children:i.jsxs("svg",{height:"18px",viewBox:"0 0 24 24",width:"18px",children:[i.jsx("title",{children:c("fbs")._("__JHASH__lJTlDYURTnq__JHASH__")}),i.jsx("line",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",x1:"6",x2:"18",y1:"6",y2:"18"}),i.jsx("line",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",x1:"6",x2:"18",y1:"18",y2:"6"})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMAWNonAddressableParticipant",["I64","LSAuthorityLevel","LSIntEnum","LSWhatsAppConnectStatus","MWPActor.react","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function a(a){var b,e,g=(j||(j=c("useReStore")))(),k=d("MWPActor.react").useActor(),l=d("ReQLSuspense").useFirst(function(){return d("ReQL").mergeJoin(d("ReQL").fromTableAscending(g.table("participants"),[]).getKeyRange(a),d("ReQL").fromTableAscending(g.table("contacts"),["waConnectStatus","authorityLevel","id","name","firstName"])).filter(function(a){a[0];a=a[1];if((h||(h=d("I64"))).equal(a.waConnectStatus,(i||(i=d("LSIntEnum"))).ofNumber(c("LSWhatsAppConnectStatus").WHATSAPP_NOT_ADDRESSABLE))&&(h||(h=d("I64"))).ge(a.authorityLevel,(i||(i=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE_PENDING_REPLACEMENT)))return!(h||(h=d("I64"))).equal(a.id,k);else return!1}).map(function(a){a[0];a=a[1];return a})},[g,a,k],f.id+":29");b=((b=l==null?void 0:l.firstName)!=null?b:"")===""?null:l==null?void 0:l.firstName;e=((e=l==null?void 0:l.name)!=null?e:"")===""?null:l==null?void 0:l.name;e=(b=(b=b)!=null?b:e)!=null?b:"recipient";return[l!=null,e]}g["default"]=a}),98); __d("MAWSecureThreadNonAddressableContactBanner.react",["fbt","IntlVariations","LSMessagingThreadTypeUtil","MAWSecureThreadNonAddressableContactBannerCloseButton.react","MWXRow.react","MWXRowItem.react","MWXText.react","fbs","react","useMAWNonAddressableParticipant"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useState;function a(a){var b=a.setHideComposerEditor;a=a.thread;var e=c("useMAWNonAddressableParticipant")(a.threadKey),f=e[0];e=e[1];var g=l(!1),i=g[0],m=g[1];g=k(function(){return m(!0)},[m]);var n=d("LSMessagingThreadTypeUtil").isGroup(a.threadType);i=n?!i:!0;var o=f&&i;b(function(){if(o)return!n;else return!1});f=c("IntlVariations").GENDER_UNKNOWN;i=h._("__JHASH__9vfr7-Uns9r__JHASH__",[h._name("message recipient name",e,f)]);b=h._("__JHASH__J_HXGmiXLis__JHASH__",[h._name("message recipient name",e,f)]);if(o)return j.jsxs("div",{className:"x1exxf4d x13fuv20 x178xt8z x1n2onr6 x1ja2u2z",children:[n?j.jsx(c("MAWSecureThreadNonAddressableContactBannerCloseButton.react"),{onPress:g}):null,j.jsx(c("MWXRow.react"),{align:"center",expanding:!0,paddingVertical:12,spacingVertical:0,testid:void 0,children:j.jsx(c("MWXRowItem.react"),{children:j.jsx(c("MWXText.react"),{color:"primary",type:"headlineEmphasized4",children:d("LSMessagingThreadTypeUtil").isGroup(a.threadType)?c("fbs")._("__JHASH___yUMmqEez-U__JHASH__"):i})})}),j.jsx(c("MWXRow.react"),{align:"center",expanding:!0,paddingVertical:4,spacingVertical:4,testid:void 0,children:j.jsx(c("MWXRowItem.react"),{children:j.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body4",children:d("LSMessagingThreadTypeUtil").isGroup(a.threadType)?c("fbs")._("__JHASH__ixaC9ybh3Q8__JHASH__"):b})})})]});else return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWSecureTypingState",["I64","Int64Hooks","LSAuthorityLevel","LSContactBlockedByViewerStatus","LSIntEnum","LSMessagingThreadTypeUtil","MAWBridgeFireAndForget","MAWJids","MAWMiActOnActThreadReady","MWPActor.react","MessengerWebUXLogger","Promise","ReQL","WAChatState","asyncToGeneratorRuntime","gkx","promiseDone","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;function l(a,b,c,d){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f,g){if(!(j||(j=d("I64"))).equal(f,(k||(k=d("LSIntEnum"))).ofNumber(15)))return(i||(i=b("Promise"))).resolve(!0);f=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("participants"),["contactId"]).getKeyRange(e).filter(function(a){return!(j||(j=d("I64"))).equal(a.contactId,g)})));if(f==null)return!1;e=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("contacts")).getKeyRange(f.contactId)));return e==null?!1:(j||(j=d("I64"))).equal(e.blockedByViewerStatus,(k||(k=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED))});return m.apply(this,arguments)}var n=[];function a(a,e,f){var g=(h||(h=c("useReStore")))(),m=d("MWPActor.react").useActor(),o=(j||(j=d("I64"))).to_string(e),p=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger();return d("Int64Hooks").useCallbackInt64(function(h){(j||(j=d("I64"))).ge(a,(k||(k=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE))&&d("LSMessagingThreadTypeUtil").isSecure(f)&&(c("gkx")("5514")&&d("LSMessagingThreadTypeUtil").isGroup(f)&&!n.includes(o)&&c("promiseDone")(d("MAWMiActOnActThreadReady").onActThreadReady(g,e,"MAWSecureTypingState",function(a,c,e){d("MAWBridgeFireAndForget").fireAndForget("backend","preEstablishSession",{groupJid:d("MAWJids").toGroupJid(e)});n.push(o);return(i||(i=b("Promise"))).resolve()})),c("promiseDone")(l(g,e,f,m).then(function(a){return!a?(i||(i=b("Promise"))).resolve():d("MAWMiActOnActThreadReady").onActThreadReady(g,e,"MAWSecureTypingState",function(a,c,g){p==null?void 0:p({eventName:"send_typing_indicators",threadKey:e,threadType:f});d("MAWBridgeFireAndForget").fireAndForget("backend","sendChatStateFromComposer",{state:h?d("WAChatState").TYPING:d("WAChatState").IDLE,threadId:c});return(i||(i=b("Promise"))).resolve()})})))},[g,a,e,f,m,o,p])}g.useOnTypingStateChanged=a}),98); __d("MAWSupportedFileTypes",["fileInputAcceptValues","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=[".mp4",".mov"].concat(d("fileInputAcceptValues").PHOTO);b=c("gkx")("9045")?["*/*"]:["audio/*"].concat(a);g.supportedFileTypes=b}),98); __d("LsReplyRenderedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743878");b=d("FalcoLoggerInternal").create("ls_reply_rendered",a);e=b;g["default"]=e}),98); __d("MWChatReplyText.react",["fbt","MWChatTextFormatting","MWChatTextTransform","MWXMessageTextWithEntities.react","cr:2472","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var e=a.isHotLike;e=e===void 0?!1:e;var f=a.ranges,g=a.text;a=a.transformEmoticons;a=a===void 0?!0:a;g=b("cr:2472")==null?g:b("cr:2472").unvault(g);var i=h._("__JHASH__fJLp3hO2Ffq__JHASH__").toString();return j.jsx("div",{className:"xi81zsa",dir:"auto",children:j.jsx(c("MWXMessageTextWithEntities.react"),{maxLength:120,maxLines:2,ranges:f,renderers:{MessengerTextFormatting:[d("MWChatTextFormatting").replyRenderer]},text:e?i:g,transforms:a?d("MWChatTextTransform").epdTextTransformsNoVault:[],truncationStyle:"ellipsis-only",withParagraphs:!1})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerReplyView.react",["fbt","ix","CometErrorBoundary.react","CometTriggerAccessibilityAlertContext","I64","LSContactGenderToGenderConst","LSHotEmojiSize","LSIntEnum","LSMessagingThreadTypeUtil","LsFalcoEventEntryPoint","LsReplyRenderedFalcoEvent","MWCMIsAnyCMThread","MWChatReplyText.react","MWPActor.react","MWPReplyContext.react","MWXIcon.react","MWXText.react","MWXTextPairing.react","MessagingAttachmentType","ReQL","ReQLSuspense","cr:2472","cr:6796","fbicon","getFBTSafeGenderFromGenderConst","react","useReStore"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=k||(k=d("react"));e=k;var o=e.useContext,p=e.useEffect;function q(a,e,f){var g=a.text;g=g!=null?b("cr:2472")==null?g:b("cr:2472").unvault(g):"";g=g==="\ud83d\udc4d"&&((l||(l=d("I64"))).equal((g=a.hotEmojiSize)!=null?g:(l||(l=d("I64"))).neg_one,(m||(m=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").SMALL))||(l||(l=d("I64"))).equal((g=a.hotEmojiSize)!=null?g:(l||(l=d("I64"))).neg_one,(m||(m=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").MEDIUM))||(l||(l=d("I64"))).equal((g=a.hotEmojiSize)!=null?g:(l||(l=d("I64"))).neg_one,(m||(m=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").LARGE)))&&e;if(a.isUnsent)return h._("__JHASH__OtyP2J0Nwkd__JHASH__");if(a.text!=null&&a.text!==""){return n.jsx(c("MWChatReplyText.react"),{isHotLike:g,text:(e=a.text)!=null?e:h._("__JHASH__C1Hm6KH3mNE__JHASH__")})}if(f!=null){if((l||(l=d("I64"))).equal(f==null?void 0:f.attachmentType,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE)))return h._("__JHASH__vuq_ksOZBHO__JHASH__");if((l||(l=d("I64"))).equal(f==null?void 0:f.attachmentType,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").STICKER)))return h._("__JHASH__7zoxdliwH6N__JHASH__");if((l||(l=d("I64"))).equal(f==null?void 0:f.attachmentType,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)))return h._("__JHASH__d9ky9I-E6BP__JHASH__");return(l||(l=d("I64"))).equal(f==null?void 0:f.attachmentType,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE))?h._("__JHASH__i96Qg8bFARm__JHASH__"):h._("__JHASH__L554Fq7JwGo__JHASH__")}return h._("__JHASH__C1Hm6KH3mNE__JHASH__")}function r(a,b,d,e){if(a)return h._("__JHASH__iW_IRrZDexS__JHASH__");if(b!=null){return h._("__JHASH__O5URXTVzEEM__JHASH__",[h._param("name",n.jsx(c("MWXText.react"),{type:"headlineEmphasized5",children:e?b.name:(e=(a=d)!=null?a:b.firstName)!=null?e:b.name}),[1,c("getFBTSafeGenderFromGenderConst")(c("LSContactGenderToGenderConst")(b.gender))])])}return h._("__JHASH__Y3usjYXlLYK__JHASH__",[h._param("Placeholder for an unknown user","Facebook User")])}function s(a){var b=a.isSecureThread,e=a.message;a=a.useContactFullname;var g=(j||(j=c("useReStore")))(),h=d("MWPActor.react").useActor(),i=(l||(l=d("I64"))).equal(e.senderId,h),k=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("contacts")).getKeyRange(e.senderId)},[g,e.senderId],f.id+":218");h=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("attachments")).getKeyRange(e.threadKey,e.messageId)},[g,e.messageId,e.threadKey],f.id+":224");var m=d("ReQLSuspense").useFirst(function(){return k!=null&&!i?d("ReQL").fromTableAscending(g.table("threads")).getKeyRange(e.threadKey).map(function(a){var b=a.parentThreadKey;a=a.threadType;if(c("MWCMIsAnyCMThread")(a))return d("ReQLSuspense").first(d("ReQL").fromTableAscending(g.table("community_folders")).getKeyRange(b).map(function(a){a=a.folderId;return d("ReQLSuspense").first(d("ReQL").fromTableAscending(g.table("contextual_profile_v1").index("associatedEntityIdAndOwner")).getKeyRange(a,k.id).map(function(a){return a.profileName}),f.id+":243")}),f.id+":239");else{a=d("ReQLSuspense").first(d("ReQL").fromTableAscending(g.table("participants")).getKeyRange(e.threadKey,k.id),f.id+":257");return(b=a==null?void 0:a.nickname)!=null?b:null}}):d("ReQL").empty()},[g,e.threadKey,k,i],f.id+":233");p(function(){c("LsReplyRenderedFalcoEvent").log(function(){return{funnel:{entry_point:d("LsFalcoEventEntryPoint").messageActions}}})},[]);b=q(e,b,h);h=r(i,k,m,a);return n.jsx("div",{className:"xmo9yow",children:n.jsx(c("MWXTextPairing.react"),{body:b,headline:h,level:4})})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var e=a.isSecureThread;e=e===void 0?!1:e;var f=a.message;a=a.useContactFullname;var g=o(d("MWPReplyContext.react").MWPReplyContext),j=g.clearReply,k=o(c("CometTriggerAccessibilityAlertContext"));g=(g=b("cr:6796")(!0))==null?void 0:g.backgroundColor;return n.jsxs("div",{className:"x1cy8zhl xcrg951 x8cjs6t x13fuv20 x178xt8z x78zum5 x1qughib xg8j3zb x14uny0o xvpee5o x889kno","data-testid":void 0,style:g!=null?{backgroundColor:g}:void 0,children:[n.jsx(c("CometErrorBoundary.react"),{fallback:function(){return n.jsx(c("MWXText.react"),{type:"headlineEmphasized4",children:h._("__JHASH__viMkwR52t0r__JHASH__")})},children:n.jsx(s,{isSecureThread:e,message:f,useContactFullname:a})}),n.jsx(c("MWXIcon.react"),{"aria-label":h._("__JHASH__jHl6Cj_8ioz__JHASH__"),color:"primary",icon:d("fbicon")._(i("478231"),12),onPress:function(){j(f.threadKey,!0),k(h._("__JHASH__I4cDESLQyuo__JHASH__").toString(),{assertive:!1})}})]})}t.displayName=t.name+" [from "+f.id+"]";function a(a){var b=a.messageId,e=a.messageTimestamp,g=a.thread;a=a.useContactFullname;a=a===void 0?!1:a;var h=(j||(j=c("useReStore")))(),i=d("LSMessagingThreadTypeUtil").isSecure(g.threadType),k=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(h.table("messages")).getKeyRange(g.threadKey,e,b)},[h,g.threadKey,b,e],f.id+":357");if(k!=null)return n.jsx(t,{isSecureThread:i,message:k,useContactFullname:a});else return null}a.displayName=a.name+" [from "+f.id+"]";g.MWV2ComposerReplyViewContainer=t;g.MWV2ComposerReplyView=a}),98); __d("MWPUseVoiceRecorder",["AudioContextSingleton","MWChatRecorderUtilsWorkerResource","MWPAudioPlayerIcons.react","MWPAudioPlayerLabels","Promise","WebWorker","clearTimeout","emptyFunction","react","setTimeout","useIsMountedRef","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i,l=k.useCallback,m=k.useEffect,n=k.useReducer,o=k.useRef;function a(a){switch(a.stage){case"Unopen":case"Recording":return!1;case"Recorded":case"Playing":return!0}}function e(a){switch(a.stage){case"Unopen":case"Recording":return!1;case"Recorded":case"Playing":return!0}}function p(a){switch(a.stage){case"Unopen":return 0;case"Recording":return a.duration;case"Recorded":case"Playing":return Math.max(a.duration-a.currentTime,0)}}function q(a){switch(a.stage){case"Unopen":return 0;case"Recording":return a.recordingTimeout;case"Recorded":case"Playing":return a.duration}}function r(a){switch(a.stage){case"Unopen":case"Recording":return;case"Recorded":case"Playing":return a.currentTime}}function s(a){switch(a.stage){case"Unopen":case"Recorded":return!1;case"Recording":case"Playing":return!0}}function t(a){if(a.stage==="Recorded")return a.currentTime===0;else return!1}function u(a){switch(a.stage){case"Recording":return d("MWPAudioPlayerLabels").stopLabel;case"Unopen":case"Recorded":return d("MWPAudioPlayerLabels").playLabel;case"Playing":return d("MWPAudioPlayerLabels").pauseLabel}}function v(a,b){switch(a.stage){case"Recording":return j.jsx(d("MWPAudioPlayerIcons.react").StopIcon,{color:b});case"Unopen":case"Recorded":return j.jsx(d("MWPAudioPlayerIcons.react").PlayIcon,{color:b});case"Playing":return j.jsx(d("MWPAudioPlayerIcons.react").PauseIcon,{color:b})}}v.displayName=v.name+" [from "+f.id+"]";function w(a,b){switch(b.type){case"Start":return{duration:0,mediaStream:b.mediaStream,recordingTimeout:b.recordingTimeout,stage:"Recording"};case"Toggle":switch(a.stage){case"Unopen":return a;case"Recording":return{currentTime:0,duration:a.duration,stage:"Recorded"};case"Recorded":return{currentTime:a.currentTime,duration:a.duration,stage:"Playing"};case"Playing":return{currentTime:a.currentTime,duration:a.duration,stage:"Recorded"}}break;case"UpdateDuration":var c=b.duration;switch(a.stage){case"Unopen":return a;case"Recording":return{duration:c,mediaStream:a.mediaStream,recordingTimeout:a.recordingTimeout,stage:"Recording"};case"Recorded":return{currentTime:a.currentTime,duration:c,stage:"Recorded"};case"Playing":return{currentTime:a.currentTime,duration:c,stage:"Playing"}}break;case"UpdateTime":c=b.currentTime;switch(a.stage){case"Unopen":case"Recording":return a;case"Recorded":var d=a.duration;return c===d?{currentTime:0,duration:d,stage:"Recorded"}:{currentTime:c,duration:d,stage:"Recorded"};case"Playing":d=a.duration;return c===d?{currentTime:0,duration:d,stage:"Recorded"}:{currentTime:c,duration:d,stage:"Playing"}}break;case"RecordingTimeout":return{currentTime:0,duration:b.recordingTimeout,stage:"Recorded"};case"Reset":return{stage:"Unopen"}}}var x={stage:"Unopen"};function y(a,d,e){a===void 0&&(a=60);d===void 0&&(d=c("emptyFunction"));e===void 0&&(e=c("emptyFunction"));var f=n(w,x),g=f[0],i=f[1],j=c("useIsMountedRef")(),k=o(),p=o([]),q=o([]),r=o(),s=o(),t=o(),u=o(),v=o(c("emptyFunction")),y=l(function(a){var b=a[0],c=a[1];if(!j.current)return;a=URL.createObjectURL(b);t.current=a;var d=new Audio(a);d.addEventListener("canplay",function(){s.current=d;var a=d.duration;i({duration:a,type:"UpdateDuration"});a={duration:a,file:b,waveformData:c};u.current=a;v.current(a)});d.addEventListener("timeupdate",function(){var a;a=(a=s.current)==null?void 0:a.currentTime;a!=null&&i({currentTime:a,type:"UpdateTime"})});d.addEventListener("durationchange",function(){var a;a=(a=s.current)==null?void 0:a.duration;a!=null&&!Number.isNaN(a)&&i({duration:a,type:"UpdateDuration"})})},[j]),z=l(function(){if(k.current==null||r.current==null)return;r.current.postMessage({buffersL:p.current,buffersR:q.current,sampleRate:k.current})},[]);m(function(){if(g.stage!=="Recording")return;p.current=[];q.current=[];var a=c("AudioContextSingleton").get(),b=a.destination;k.current=a.sampleRate;var e=g.mediaStream,f=a.createScriptProcessor(4096,2,2);a=a.createMediaStreamSource(e);r.current=new(c("WebWorker"))(c("MWChatRecorderUtilsWorkerResource")).setMessageHandler(y).setAllowCrossPageTransition(!0).execute();var h=function(a){g.stage==="Recording"&&a instanceof AudioProcessingEvent&&(p.current.push(a.inputBuffer.getChannelData(0).slice()),q.current.push(a.inputBuffer.getChannelData(1).slice()))};f.addEventListener("audioprocess",h);a.connect(f);f.connect(b);d();return function(){e.getAudioTracks().forEach(function(a){if(a.readyState!=="ended"){a.stop();return}}),f.removeEventListener("audioprocess",h)}},[y,d,g.stage,g.mediaStream]);var A=c("usePrevious")(g);m(function(){(A==null?void 0:A.stage)==="Recording"&&g.stage==="Recorded"&&z()},[A==null?void 0:A.stage,z,g.stage]);m(function(){if(g.stage!=="Recording")return;var b=Date.now(),d,e=function e(){var f=(Date.now()-b)/1e3;if(f>=a){i({recordingTimeout:a,type:"RecordingTimeout"});return}i({duration:f,type:"UpdateDuration"});d=c("setTimeout")(e,1e3)};d=c("setTimeout")(e,1e3);return function(){d!=null&&c("clearTimeout")(d)}},[a,g.stage]);f=l(function(b){i({mediaStream:b,recordingTimeout:a,type:"Start"})},[a]);var B=l(function(){var a;i({type:"Reset"});(a=s.current)==null?void 0:a.pause();s.current=void 0;u.current=void 0;k.current=void 0;a=t.current;a!=null&&(URL.revokeObjectURL(a),t.current=void 0)},[]),C=l(function(){var a=function(){i({type:"Toggle"})},b=s.current;if(b==null){a();return}switch(g.stage){case"Unopen":case"Recording":a();break;case"Recorded":b.play().then(a)["catch"](e);break;case"Playing":b.pause();a();break}},[e,g.stage]),D=l(function(){return new(h||(h=b("Promise")))(function(a){var b=u.current;if(b!=null)return a(b);v.current=a;if(g.stage==="Recording")return C()})},[g,C]);return{audioEl:s,getVoiceClip:D,reset:B,start:f,state:g,toggle:C}}g.showScreenReaderLabel=a;g.hasScrubber=e;g.getTimerTime=p;g.getDuration=q;g.getCurrentTime=r;g.isProgressing=s;g.isCompleted=t;g.getPlaybackLabel=u;g.getPlaybackIcon=v;g.useVoiceRecorder=y}),98); __d("MWAudioRecorder.react",["MWAudioPlayer.react","MWPAudioPlayerButtons.react","MWPAudioPlayerContainer.react","MWPAudioPlayerHighlight.react","MWPAudioPlayerKeyCommands.react","MWPAudioPlayerSharedStyles","MWPAudioPlayerTimer.react","MWPAudioPlayerUtils","MWPThreadThemeGradientUtils","MWPUseVoiceRecorder","react","requireDeferred","stylex","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useRef,l=c("requireDeferred")("MWChatAudioLog").__setRef("MWAudioRecorder.react");function a(a){var b;a=a.voiceRecorder;var e=a.audioEl,f=a.state,g=a.toggle;a=c("useMWPThreadTheme")();a=d("MWPThreadThemeGradientUtils").getBottomGradientColor(a);var i=k(),m=d("MWPAudioPlayerUtils").useResetHighlightProgress(i),n=(b=d("MWPUseVoiceRecorder")).hasScrubber(f),o=function(){g();switch(f.stage){case"Unopen":return;case"Recording":l.onReady(function(a){return a.logClickStopRecording(0)});return;case"Recorded":var a=f.currentTime,b=f.duration;a===0?l.onReady(function(a){return a.logPlaybackStart(b)}):l.onReady(function(c){return c.logPlaybackResume(b,a)});return;case"Playing":var c=f.currentTime,d=f.duration;l.onReady(function(a){return a.logPlaybackPause(d,c)});return}};b=d("MWPAudioPlayerUtils").useProgressLiveUpdate(b.getDuration(f),e,b.getCurrentTime(f),b.isProgressing(f),!1,b.isCompleted(f));var p=d("MWAudioPlayer.react").useHighlightStyles(!0),q=function(){switch(f.stage){case"Unopen":case"Recording":return null;case"Recorded":case"Playing":return j.jsx(d("MWPAudioPlayerUtils").ScreenReaderLabel,{currentTime:f.currentTime,duration:f.duration})}}();return j.jsx(c("MWPAudioPlayerContainer.react"),{audioEl:e,hasScrubber:n,scrubberRef:i,style:{backgroundColor:a,borderRadius:"18px"},testid:void 0,useCase:d("MWPAudioPlayerUtils").UseCase.RECORDER,children:j.jsxs(c("MWPAudioPlayerKeyCommands.react"),{audioEl:e,children:[j.jsx(d("MWPAudioPlayerHighlight.react").MWPAudioPlayerHighlightV1,{ref:b,xstyle:p}),q,j.jsx(d("MWPAudioPlayerHighlight.react").MWPAudioPlayerHighlightV1,{ref:i,xstyle:p}),j.jsx("div",{className:(h||(h=c("stylex")))(d("MWPAudioPlayerSharedStyles").styles.playbackButtonContainer),onMouseMove:n?m:void 0,children:j.jsx(d("MWPAudioPlayerButtons.react").AudioPlayerPlaybackButton,{icon:d("MWPUseVoiceRecorder").getPlaybackIcon(f,a),label:d("MWPUseVoiceRecorder").getPlaybackLabel(f),onPress:o})}),j.jsx(c("MWPAudioPlayerTimer.react"),{time:d("MWPUseVoiceRecorder").getTimerTime(f)})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatHotlikeButton.react",["fbt","CometEmoji.react","EmojiRenderer","I64","LSHotEmojiSize","LSIntEnum","MWLikeSvgIcon.react","MWXPressable.react","MWXTooltip.react","StickerConstants","gkx","isStringNullOrEmpty","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||d("react"),m={customEmojiButtonFDS:{marginStart:"xsgj6o6",marginLeft:null,marginRight:null,marginEnd:"xw3qccf",paddingStart:"xcu9agk",paddingLeft:null,paddingRight:null,paddingEnd:"x2qib4z",paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0},customEmojiButtonMDS:{marginStart:"x1i64zmx",marginLeft:null,marginRight:null,marginEnd:"x1emribx",paddingStart:"xcu9agk",paddingLeft:null,paddingRight:null,paddingEnd:"x2qib4z",paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0},fillGrey:{fill:"xsrhx6k",$$css:!0},hotlikeButtonFDS:{marginStart:"xsgj6o6",marginLeft:null,marginRight:null,marginEnd:"xw3qccf",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},hotlikeButtonMDS:{marginStart:"x1i64zmx",marginLeft:null,marginRight:null,marginEnd:"x1emribx",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0}},n=h._("__JHASH__OzQk4bc7gK8__JHASH__"),o=(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").SMALL),p=(k||(k=d("I64"))).of_string(c("StickerConstants").HOT_LIKE_SMALL_STICKER_ID);function a(a){var b=a.color,e=a.customEmoji,f=a.disabled;f=f===void 0?!1:f;var g=a.onSendMessage;a=function(){!c("isStringNullOrEmpty")(e)?g(e,void 0,void 0,o,void 0,void 0,void 0,void 0,void 0,void 0):g(void 0,void 0,p,o,void 0,void 0,void 0,void 0,void 0,void 0)};if(!c("isStringNullOrEmpty")(e)){var i=h._("__JHASH__tAqfCk1edp7__JHASH__",[h._param("emoji",e)]),j=function(a){var b=d("EmojiRenderer").parse(e).map(function(a){return a.emoji});if(b.length!==1)return l.jsx("span",{children:e});b=b[0];return l.jsx(c("CometEmoji.react"),{emoji:b,size:a})},k=h._("__JHASH__7OvMJwHRigG__JHASH__");k=l.jsxs(l.Fragment,{children:[l.jsxs("span",{children:[k," "]}),j(16)]});return l.jsx(c("MWXTooltip.react"),{align:"middle",label:n,position:"above",tooltip:k,children:l.jsx(c("MWXPressable.react"),{"aria-label":i,disabled:f,onPress:a,overlayDisabled:f,overlayRadius:"50%",testid:void 0,xstyle:function(){return[c("gkx")("571")?m.customEmojiButtonMDS:m.customEmojiButtonFDS]},children:j(20)})})}return l.jsx(c("MWXTooltip.react"),{align:"middle",position:"above",tooltip:n,children:l.jsx(c("MWXPressable.react"),{"aria-label":n,disabled:f,onPress:a,overlayDisabled:f,overlayRadius:"50%",testid:void 0,xstyle:function(){return[c("gkx")("571")?m.hotlikeButtonMDS:m.hotlikeButtonFDS]},children:l.jsx(c("MWLikeSvgIcon.react"),{className:"xsrhx6k",color:b,size:20})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerMenuButtonTrigger.react",["fbt","MWChatChatButtonColorConstants","MWXPressable.react","MWXTooltip.react","gkx","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=h._("__JHASH__2kGg_y6m8FS__JHASH__"),m={buttonFDS:{flexShrink:"x2lah0s",marginStart:"xsgj6o6",marginLeft:null,marginRight:null,marginEnd:"xw3qccf",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},buttonMDS:{flexShrink:"x2lah0s",marginStart:"x1i64zmx",marginLeft:null,marginRight:null,marginEnd:"x1emribx",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0}};function a(a){var b=a.color,e=a.contextRef,f=a.disabled;a=a.onShow;return k.jsx(c("MWXTooltip.react"),{forceInlineDisplay:!0,position:"above",tooltip:l,children:k.jsx(c("MWXPressable.react"),{disabled:f,label:l,onPress:a,overlayDisabled:f,overlayRadius:"50%",ref:e,xstyle:function(){return[c("gkx")("571")?m.buttonMDS:m.buttonFDS]},children:k.jsx("svg",{"aria-hidden":"true",className:(i||(i=c("stylex")))(d("MWChatChatButtonColorConstants").styles.strokeGrey),height:"20",viewBox:"0 0 24 18",width:"20",children:k.jsxs("g",{stroke:b,strokeLinecap:"round",strokeWidth:"2.5",children:[k.jsx("path",{d:"M1.5,1.5 H22.5"}),k.jsx("path",{d:"M1.5,9 H22.5"}),k.jsx("path",{d:"M1.5,16.5 H22.5"})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerMenuButton.react",["JSResourceForInteraction","MWV2ComposerMenuButtonTrigger.react","MWXLazyPopoverTrigger.react","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.color,d=a.disabled,e=d===void 0?!1:d;d=a.editor;var f=a.hasPersistentMenu,g=a.onSendMessage;a=a.threadKey;return i.jsx(c("MWXLazyPopoverTrigger.react"),{align:"end",popoverProps:{editor:d,hasPersistentMenu:f,onClose:c("emptyFunction"),onSendMessage:g,threadKey:a},popoverResource:c("JSResourceForInteraction")("MWComposerCommandsMenu.react").__setRef("MWV2ComposerMenuButton.react"),children:function(a,d){return i.jsx(c("MWV2ComposerMenuButtonTrigger.react"),{color:b,contextRef:a,disabled:e,onShow:d})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWComposerPersistentMenuItemSelect",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(a){var b=a.onSendMessage;return i(function(a){var c=a.id;a=a.title;return b(a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,c,void 0)},[b])}g["default"]=a}),98); __d("MWV2ComposerPersistentMenuButton.react",["JSResourceForInteraction","MWV2ComposerMenuButtonTrigger.react","MWXLazyPopoverTrigger.react","emptyFunction","react","useMWComposerPersistentMenuItemSelect"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.color,d=a.disabled,e=d===void 0?!1:d;d=a.onSendMessage;a=c("useMWComposerPersistentMenuItemSelect")({onSendMessage:d});return i.jsx(c("MWXLazyPopoverTrigger.react"),{align:"end",popoverProps:{onClose:c("emptyFunction"),onSelect:a},popoverResource:c("JSResourceForInteraction")("LSComposerPersistentMenu.react").__setRef("MWV2ComposerPersistentMenuButton.react"),children:function(a,d){return i.jsx(c("MWV2ComposerMenuButtonTrigger.react"),{color:b,contextRef:a,disabled:e,onShow:d})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWComposerEndButtonsGroup.react",["MWV2ChatHotlikeButton.react","MWV2ComposerMenuButton.react","MWV2ComposerPersistentMenuButton.react","MWV2ComposerSendButton.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.color,d=a.customEmoji,e=a.editor,f=a.hasPersistentMenu,g=a.hasStuffToSend,h=a.isVoiceRecorderOpen,j=a.onSendMessage,k=a.sendMessage,l=a.shouldHideHotLike,m=a.showCommands;a=a.threadKey;return h?null:g?i.jsx(c("MWV2ComposerSendButton.react"),{color:b,onPress:k}):m?i.jsx(c("MWV2ComposerMenuButton.react"),{color:b,editor:e,hasPersistentMenu:f,onSendMessage:j,threadKey:a}):f?i.jsx(c("MWV2ComposerPersistentMenuButton.react"),{color:b,onSendMessage:j}):l?i.jsx("span",{className:"x1e558r4 x150jy0e"}):i.jsx(c("MWV2ChatHotlikeButton.react"),{color:b,customEmoji:d,onSendMessage:j})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWComposerInnerButtonsGroup.react",["MWV2ComposerEmojiButton.react","cr:3891","cr:793","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=(e=b("cr:3891"))!=null?e:b("cr:793"),l={button:{alignItems:"x6s0dn4",bottom:"x1ey2m1c",display:"x78zum5",justifyContent:"xl56j7k",position:"x10l6tqk",zIndex:"x1vjfegm",$$css:!0},buttonFDS:{marginBottom:"x12nagc",marginEnd:"xw3qccf",marginLeft:null,marginRight:null,$$css:!0},buttonMDS:{marginBottom:"xat24cr",$$css:!0},emojiButton:{end:"xds687c",left:null,right:null,$$css:!0},genAIButtonFDS:{end:"xjhd3uw",left:null,right:null,$$css:!0},genAIButtonMDS:{end:"x84fkku",left:null,right:null,$$css:!0},hidden:{display:"x1s85apg",$$css:!0}};function a(a){var b=a.color,d=a.editor,e=a.isVoiceRecorderOpen,f=a.shouldUseMDS;a=a.threadKey;return j.jsxs(j.Fragment,{children:[j.jsx("div",{className:(h||(h=c("stylex")))(e?l.hidden:!1,l.button,f?l.buttonMDS:l.buttonFDS,l.emojiButton),children:j.jsx(c("MWV2ComposerEmojiButton.react"),{color:b,editor:d})}),k!=null&&j.jsx("div",{className:(h||(h=c("stylex")))(e?l.hidden:!1,l.button,f?l.buttonMDS:l.buttonFDS,f?l.genAIButtonMDS:l.genAIButtonFDS),children:j.jsx(k,{editor:d,threadId:a})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerGifButton.react",["fbt","JSResourceForInteraction","MWChatComposerIcons","MWXLazyPopoverTrigger.react","MWXPressable.react","MWXTooltip.react","MessengerWebUXLogger","gkx","react","useMWV2ComposerOnGifSelect"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=c("JSResourceForInteraction")("MWChatAnimatedImageFlyoutWithPopover.react").__setRef("MWV2ComposerGifButton.react"),l={buttonFDS:{paddingTop:"x1iorvi4",paddingEnd:"x150jy0e",paddingBottom:"xjkvuk6",paddingStart:"x1e558r4",$$css:!0},buttonMDS:{paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0}},m=h._("__JHASH__J6q-Bfr0oTE__JHASH__");function a(a){var b=a.color,e=a.disabled,f=a.isSecureThread;a=a.onSendMessage;a=c("useMWV2ComposerOnGifSelect")(a);var g=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger();return j.jsx(c("MWXLazyPopoverTrigger.react"),{align:"middle",disableAutoFlip:!0,popoverProps:{isSecureThread:f,onSelect:a,testid:"mw_gif_picker"},popoverResource:k,position:"above",children:function(a,f,h,i,k,n,o){return j.jsx(c("MWXTooltip.react"),{align:"middle",forceInlineDisplay:!0,position:"above",tooltip:m,children:j.jsx(c("MWXPressable.react"),{"aria-label":m,disabled:e,onHoverIn:i,onHoverOut:k,onPress:function(){f(),g==null?void 0:g({eventName:"composer_open_gif_picker"})},onPressIn:n,overlayRadius:"50%",ref:a,xstyle:function(){return[c("gkx")("571")?l.buttonMDS:l.buttonFDS]},children:j.jsx(d("MWChatComposerIcons").MWChatComposerIconsGif,{fill:e?void 0:b,size:20})})})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerStickerButton.react",["cr:1084","react"],(function(a,b,c,d,e,f,g){"use strict";var h;h||d("react");g["default"]=b("cr:1084")}),98); __d("MWComposerStartButtonsGroup.react",["CometPlaceholder.react","MWV2ComposerFileButton.react","MWV2ComposerGifButton.react","MWV2ComposerStickerButton.react","MWXTooltipGroup.react","react","stylex","useMWEntrypoint","useMWFalcoFeatureEventLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={button:{alignItems:"x6s0dn4",bottom:"x1ey2m1c",display:"x78zum5",justifyContent:"xl56j7k",position:"x10l6tqk",zIndex:"x1vjfegm",$$css:!0},buttonFDS:{marginBottom:"x12nagc",marginEnd:"xw3qccf",marginLeft:null,marginRight:null,$$css:!0},buttonHidden:{transform:"x1f85oc2",transitionDuration:"x1g2r6go",transitionProperty:"x11xpdln",$$css:!0},buttonMDS:{marginBottom:"xat24cr",$$css:!0},buttonShown:{transform:"x3oybdh",transitionDuration:"x1g2r6go",transitionProperty:"x11xpdln",$$css:!0},fileButtonHidden:{transitionDelay:"x1th4bbo",$$css:!0},fileButtonShown:{transitionDelay:"x1th4bbo",$$css:!0},gifButtonHidden:{transitionDelay:"x1ahifba",$$css:!0},gifButtonShown:{transitionDelay:"x5w5eug",$$css:!0},stickerButtonHidden:{transitionDelay:"x5zdck6",$$css:!0},stickerButtonShown:{transitionDelay:"x5h36tt",$$css:!0}};function a(a){var b=a.canSendFileFinal,d=a.canSendGifFinal,e=a.canSendSecureSticker,f=a.canSendStickerFinal,g=a.color,i=a.composerLinkPreview,l=a.gifButtonPosition,m=a.isInputExpanded,n=a.isRTL,o=a.isSecureThread,p=a.localTimezoneInformation,q=a.onAttachmentsAdded,r=a.onSendMessage,s=a.shouldUseMDS,t=a.stickerButtonPosition,u=a.supportedFileTypes,v=a.threadKey;a=a.threadType;var w=c("useMWEntrypoint")(),x=c("useMWFalcoFeatureEventLogger")(v,a);v=function(a,b){var c="select_sticker_book";a?c="sticker_search":b&&(c="recent_stickers");x(w,c)};a=n?{right:"0px"}:{left:"0px"};t=n?{right:t.toString()+"px"}:{left:t.toString()+"px"};n=n?{right:l.toString()+"px"}:{left:l.toString()+"px"};return j.jsxs(j.Fragment,{children:[j.jsxs(c("MWXTooltipGroup.react"),{children:[j.jsx("div",{className:(h||(h=c("stylex")))(k.button,s?k.buttonMDS:k.buttonFDS,m?k.buttonHidden:k.buttonShown,m?k.fileButtonHidden:k.fileButtonShown),style:a,children:j.jsx(c("MWV2ComposerFileButton.react"),{color:g,disabled:!b,onAttachmentsAdded:q,supportedFileTypes:u})}),j.jsx("div",{className:h(k.button,s?k.buttonMDS:k.buttonFDS,m?k.buttonHidden:k.buttonShown,m?k.stickerButtonHidden:k.stickerButtonShown),style:t,children:j.jsx(c("MWV2ComposerStickerButton.react"),{color:g,disabled:!f,onSelectStickerPack:v,onSendMessage:r,useSecureSend:e})}),j.jsx("div",{className:h(k.button,s?k.buttonMDS:k.buttonFDS,m?k.buttonHidden:k.buttonShown,m?k.gifButtonHidden:k.gifButtonShown),style:n,children:j.jsx(c("MWV2ComposerGifButton.react"),{color:g,disabled:!d,isSecureThread:o,onSendMessage:r})})]}),p!=null?j.jsx(c("CometPlaceholder.react"),{fallback:null,children:p}):null,i!=null?j.jsx(c("CometPlaceholder.react"),{fallback:null,children:i}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWV2ComposerOnPressVoiceClip",["$InternalEnum","JSResourceForInteraction","emptyFunction","react","requireDeferred","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useState,j=c("requireDeferred")("MWChatAudioLog").__setRef("useMWV2ComposerOnPressVoiceClip"),k=b("$InternalEnum").Mirrored(["AWAITING","GRANTED","DENIED","FAILED"]);function a(a){var b=i(k.AWAITING),d=b[0],e=b[1];b=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatAudioRecorderPermissionsDialog.react").__setRef("useMWV2ComposerOnPressVoiceClip"));var f=b[0],g=function(){return f({contentType:"accessDenied",onAllow:c("emptyFunction")},c("emptyFunction"))},h=function(){var b;(b=navigator)==null?void 0:(b=b.mediaDevices)==null?void 0:b.getUserMedia({audio:!0,video:!1}).then(function(b){e(k.GRANTED),a.start(b)})["catch"](function(a){a.name==="NotAllowedError"?(e(k.DENIED),g()):e(k.FAILED),j.onReady(function(a){return a.logBrowserDenyAccess()})})},l=function(){return f({contentType:"askForAccess",onAllow:function(){return h()}},c("emptyFunction"))};return function(){var a;switch(d){case k.AWAITING:a=(a=navigator.permissions)==null?void 0:a.query({name:"microphone"});a!=null?a.then(function(a){a=a.state;switch(a){case"denied":e(k.DENIED);g();break;case"granted":h();break;case"prompt":l();break;default:l()}})["catch"](function(){l()}):(h(),j.onReady(function(a){return a.logMicAccessCheckFailed()}));return;case k.DENIED:return g();case k.GRANTED:case k.FAILED:return h()}}}g["default"]=a}),98); __d("MWV2ComposerPlusButton.react",["fbt","JSResourceForInteraction","LSMessagingThreadTypeUtil","MWChatComposerIcons","MWXLazyPopoverTrigger.react","MWXPressable.react","MWXTooltip.react","MessengerWebUXLogger","emptyFunction","gkx","isStickerEnabled","react","requireDeferred","useMWV2ComposerOnPressVoiceClip"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useMemo,l=b.useState,m=c("requireDeferred")("MWChatAudioLog").__setRef("MWV2ComposerPlusButton.react"),n={plusButtonFDS:{marginStart:"xsgj6o6",marginLeft:null,marginRight:null,marginEnd:"xw3qccf",marginTop:"x1gslohp",marginBottom:"x12nagc",paddingTop:"x1iorvi4",paddingEnd:"x150jy0e",paddingBottom:"xjkvuk6",paddingStart:"x1e558r4",$$css:!0},plusButtonMDS:{marginStart:"x1i64zmx",marginLeft:null,marginRight:null,paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0}};function a(a){var b=a.canSendAudioClip,e=a.canSendFile,f=a.canSendPayment,g=a.color,i=a.editor,o=a.hasAudioClipsCapability,p=a.hasGIFCapability,q=a.hasPaymentCapability,r=a.hasPollCreationCapability,s=a.hasRollcallCapability,t=a.hasStickerCapability,u=a.isInputExpanded,v=a.isSecureThread,w=a.onAttachmentsAdded,x=a.onSendMessage,y=a.renderExtraOverflowMenuItems,z=a.supportedFileTypes,A=a.threadKey,B=a.threadType,C=a.voiceRecorder,D=c("emptyFunction");a=l(!1);var E=a[0],F=a[1];a=d("LSMessagingThreadTypeUtil").isJoinedDiscoverablePublicBroadcastChannel(B);B=function(a){return F(a)};v=c("isStickerEnabled")()&&v;q=q&&!c("gkx")("1787591")&&f;f=r&&(!a||c("gkx")("5181"));r=o&&!c("gkx")("1787585")&&b;a=p&&!c("gkx")("1787594")&&u;o=e&&u;b=!c("gkx")("1787596")&&(t||v)&&u;p=c("gkx")("358");e=c("gkx")("4931");t=k(function(){if(y!=null)return y(g,D,w);else return[]},[y,g,D,w]);v=c("useMWV2ComposerOnPressVoiceClip")(C);var G=C.state.stage!=="Unopen",H=G?h._("__JHASH__gaxHiFwvIGk__JHASH__"):E?h._("__JHASH__SFruYEeI3S-__JHASH__"):h._("__JHASH__PUPO-44z1pF__JHASH__"),I=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger();u=q||f||r||a||o||b||p||e||s||t.length>0;var J=!u;return j.jsx(c("MWXLazyPopoverTrigger.react"),{align:"start",onVisibilityChange:B,popoverProps:{color:g,editor:i,extraItems:t,onAttachmentsAdded:w,onClose:D,onPressVoiceClip:v,onSendMessage:x,showCreatePoll:f,showCreatePrompt:s,showFile:o,showGenAICreate:p,showGenAICreateVideo:e,showGif:a,showPayment:q,showSendVoiceClip:r,showSticker:b,supportedFileTypes:z,threadKey:A},popoverResource:c("JSResourceForInteraction")("MWV2ComposerOverflowMenu.react").__setRef("MWV2ComposerPlusButton.react"),position:"above",preloadTrigger:"button",children:function(a,b,e,f,h,i){return j.jsx(c("MWXTooltip.react"),{align:"middle",position:"above",tooltip:H,children:j.jsx(c("MWXPressable.react"),{"aria-label":H,disabled:J,onHoverIn:f,onHoverOut:h,onPress:function(){if(G){C.reset();m.onReady(function(a){return a.logDeleteRecording()});I==null?void 0:I({eventName:"composer_close_audio_recorder"});return}else I==null?void 0:I({eventName:"composer_open_overflow_menu"}),b()},onPressIn:i,overlayDisabled:J,overlayRadius:"50%",ref:a,testid:void 0,xstyle:function(){return[c("gkx")("571")?n.plusButtonMDS:n.plusButtonFDS]},children:j.jsx(d("MWChatComposerIcons").MWChatComposerIconsMoreActions,{fill:J?void 0:g,isRotated:G,size:20})})})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWHasPollsCreationEnabled",["LSThreadBitOffset","MWLSThread"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=(a=d("MWLSThread").useThread(a,function(a){return d("LSThreadBitOffset").has(36,a)}))!=null?a:!1;return a}g["default"]=a}),98); __d("MWReQLComposerPlusButton.react",["LSMessagingThreadTypeUtil","LSThreadBitOffset","MWV2ComposerPlusButton.react","react","useMWHasPollsCreationEnabled"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b,e=a.canSendAudioClip,f=a.canSendFile,g=a.canSendPayment,h=a.color,j=a.editor,k=a.isInputExpanded,l=a.onAttachmentsAdded,m=a.onSendMessage,n=a.renderExtraOverflowMenuItems,o=a.supportedFileTypes,p=a.thread;a=a.voiceRecorder;var q=c("useMWHasPollsCreationEnabled")(p.threadKey);b={hasAudioClipsCapability:(b=d("LSThreadBitOffset")).has(14,p),hasGIFCapability:b.has(4,p),hasPaymentCapability:b.has(0,p),hasPollCreationCapability:q,hasRollcallCapability:b.has(152,p),hasStickerCapability:b.has(3,p)};return i.jsx(c("MWV2ComposerPlusButton.react"),babelHelpers["extends"]({canSendAudioClip:e,canSendFile:f,canSendPayment:g,color:h,editor:j,hasPollCreationCapability:q,isInputExpanded:k,isSecureThread:d("LSMessagingThreadTypeUtil").isSecure(p.threadType),onAttachmentsAdded:l,onSendMessage:m,renderExtraOverflowMenuItems:n,supportedFileTypes:o,threadKey:p.threadKey,threadType:p.threadType,voiceRecorder:a},b))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWWorkForeignEntityTypeUtils",["I64","LSContactWorkForeignEntityType","LSIntEnum"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){if((h||(h=d("I64"))).equal(a,(i||(i=d("LSIntEnum"))).ofNumber(c("LSContactWorkForeignEntityType").NOT_FOREIGN))||(h||(h=d("I64"))).equal(a,(i||(i=d("LSIntEnum"))).ofNumber(c("LSContactWorkForeignEntityType").UNKNOWN)))return"NOT_FOREIGN";else if((h||(h=d("I64"))).equal(a,(i||(i=d("LSIntEnum"))).ofNumber(c("LSContactWorkForeignEntityType").NOT_FOREIGN_LIMITED)))return"LIMITED";else return"FOREIGN"}g.getWorkForeignEntityType=a}),98); __d("useParticipantsExcludingViewer",["I64","MAWSubscribeToContactNames","MWPActor.react","MWWorkForeignEntityTypeUtils","ReQL","ReQLSuspense","getLSMediaContactProfilePictureUrl","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(j||d("react")).useMemo;function a(a){var b=a.threadKey,e=d("MWPActor.react").useActor(),g=(h||(h=c("useReStore")))(),j=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(g.table("participants")).getKeyRange(b).map(function(a){return[d("ReQLSuspense").first(d("ReQL").fromTableAscending(g.table("contacts")).getKeyRange(a.contactId),f.id+":42"),a]})},[g,b],f.id+":36"),l=k(function(){return j.reduce(function(a,b){var c=b[0];b=b[1];if(c!=null&&!(i||(i=d("I64"))).equal(c.id,e)){return a.concat([[babelHelpers["extends"]({},c,{name:(c=c.name)!=null?c:d("MAWSubscribeToContactNames").getUnknownUser()}),b]])}return a},[])},[j,e]);return k(function(){return new Map(l.map(function(a){var b,e=a[1];a=a[0];return[(i||(i=d("I64"))).to_string(a.id),{actualName:a.name,contactId:i.to_string(a.id),isAdmin:(b=e.isAdmin)!=null?b:!1,isContact:!0,jobTitle:a.workJobTitle,name:a.name,nickname:e.nickname,profilePictureUrl:c("getLSMediaContactProfilePictureUrl")(a),secondaryName:a.secondaryName,workForeignEntityInfo:d("MWWorkForeignEntityTypeUtils").getWorkForeignEntityType(a.workForeignEntityType)}]}))},[l])}g["default"]=a}),98); __d("MWV2ComposerView.react",["FBLogger","I64","LSMessagingThreadTypeUtil","LSThreadBitOffset","Locale","MWAudioRecorder.react","MWCMThreadTypes.react","MWComposerEndButtonsGroup.react","MWComposerInnerButtonsGroup.react","MWComposerStartButtonsGroup.react","MWPThreadThemeGradientUtils","MWPUseVoiceRecorder","MWReQLComposerInner.react","MWReQLComposerPlusButton.react","MWV2ComposerMediaStaging.react","MWV2ComposerSendButton.react","MWV2IsTabFocusedContext.react","Promise","ReQL","ReQLSuspense","cr:6794","emptyFunction","gkx","isStickerEnabled","react","requireDeferred","stylex","useCurrentDisplayMode","useDeferredModuleOnReady","useMWComposerAriaDescribedBy","useMWEntrypoint","useMWPThreadTheme","useParticipantsExcludingViewer","usePrevious","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react"));e=l;var n=e.useEffect,o=e.useId,p=e.useRef,q=c("requireDeferred")("MWChatAudioLog").__setRef("MWV2ComposerView.react"),r=c("requireDeferred")("getUpgradedCometEmojiComposerHandler").__setRef("MWV2ComposerView.react"),s=(e=b("cr:6794"))!=null?e:c("emptyFunction"),t={composer:{display:"x78zum5",flexGrow:"x1iyjqo2",transition:"x6q2ic0",$$css:!0},container:{flexGrow:"x1iyjqo2",overflowX:"xw2csxc",position:"x1n2onr6",$$css:!0},hidden:{display:"x1s85apg",$$css:!0},root:{alignItems:"xuk3077",display:"x78zum5",fontSize:"x6prxxf",paddingTop:"xz9dl7a",paddingBottom:"xsag5q8",$$css:!0},visuallyHidden:{clip:"xzpqnlu",clipPath:"x1hyvwdk",height:"xjm9jq1",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",width:"x1i1rx1s",$$css:!0}};function u(a){var b=c("useDeferredModuleOnReady")(r);n(function(){if(b!=null)return b(a,16)},[a,b])}function v(){q.onReady(function(a){return a.logClickStartRecording()})}function w(){q.onReady(function(a){return a.logBrowserDenyAccess()})}function a(a){var e,g=a.canSendAudioClip;g=g===void 0?!0:g;var l=a.canSendFile;l=l===void 0?!0:l;var q=a.canSendGif;q=q===void 0?!0:q;var r=a.canSendPayment;r=r===void 0?!1:r;var x=a.canSendSticker;x=x===void 0?!0:x;var y=a.composerLinkPreview,z=a.editor,aa=a.editorElementRef,A=a.hasStuffToSend,B=a.isAiBotMentionsEnabled,C=a.isMentionsPluginEnabled;C=C===void 0?!0:C;var ba=a.localTimezoneInformation,D=a.maxAudioDuration,ca=a.mediaStaging,da=a.onAttachmentRemoved,E=a.onAttachmentsAdded,F=a.onSendMessage,ea=a.placeholderText,fa=a.policyProduct,ga=a.renderExtraOverflowMenuItems,ha=a.sendMessage,G=a.supportedFileTypes,ia=a.surface,H=a.thread;a=q&&d("LSThreadBitOffset").has(4,H)&&!c("gkx")("1787594");q=d("MWCMThreadTypes.react").isBroadcastThread(H.threadType);var I=d("LSMessagingThreadTypeUtil").isAiBot(H.threadType);l=l&&(q||I?!c("gkx")("1787595")&&d("LSThreadBitOffset").has(56,H):!c("gkx")("1787595"));q=d("LSMessagingThreadTypeUtil").isSecure(H.threadType);I=c("isStickerEnabled")()&&q;x=x&&!c("gkx")("1787596")&&(d("LSThreadBitOffset").has(3,H)||I);var J=d("MWV2IsTabFocusedContext.react").useIsTabFocused(),K=c("useMWEntrypoint")(),L=s(J||K==="inbox"),M=c("useMWPThreadTheme")();M=d("MWPThreadThemeGradientUtils").getBottomGradientColor(M);e=(e=L==null?void 0:L.buttonColor)!=null?e:M;M=c("useCurrentDisplayMode")();M=M==="dark"&&q?"var(--always-white)":e;e=!J&&!c("gkx")("1969")?void 0:M;var N=d("MWPUseVoiceRecorder").useVoiceRecorder(D,v,w),O=N.state.stage!=="Unopen";J=function(){N.getVoiceClip().then(function(a){N.reset();F(void 0,void 0,void 0,void 0,void 0,void 0,void 0,a,void 0,void 0);return(k||(k=b("Promise"))).resolve()})["catch"](function(a){c("FBLogger")("messenger_e2ee_web").catching(a).warn("Failed to send voice clip in messenger composer ");return(k||(k=b("Promise"))).reject(a)})};var P=p(null),Q=c("usePrevious")(O);n(function(){if(O===!0&&Q===!1){var a;(a=P.current)==null?void 0:a.focus()}},[O,P,Q]);M=c("useParticipantsExcludingViewer")({threadKey:H.threadKey});D=d("LSThreadBitOffset").has(43,H);var R=d("Locale").isRTL(),S=c("gkx")("571"),T=S?[36,8]:[32,4],U=T[0];T=T[1];var V=0+U|0,W=d("LSMessagingThreadTypeUtil").isCMSubthread(H.threadType);K=A||W&&K==="inbox";var X=V+U|0;U=R?{marginRight:K?S?8..toString()+"px":"0":((X+U|0)+T|0).toString()+"px"}:{marginLeft:K?S?8..toString()+"px":"0":((X+U|0)+T|0).toString()+"px"};T=c("useMWComposerAriaDescribedBy")(H);var Y=o();u(z);var ja=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(H.threadType),Z=(h||(h=c("useReStore")))(),$=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(Z.table("custom_thread_commands")).getKeyRange(H.threadKey).filter(function(a){return!a.isOpenPersistentMenu})},[Z,H.threadKey],f.id+":289")!=null;$=c("gkx")("10469")&&$;return m.jsxs("div",{className:"xuk3077 x78zum5 x6prxxf xz9dl7a xsag5q8","data-testid":void 0,style:(L==null?void 0:L.backgroundColor)!=null?{backgroundColor:L.backgroundColor}:void 0,children:[m.jsx(c("MWReQLComposerPlusButton.react"),{canSendAudioClip:g,canSendFile:l,canSendPayment:r,color:e,editor:z,isInputExpanded:K,onAttachmentsAdded:E,onSendMessage:F,renderExtraOverflowMenuItems:ga,supportedFileTypes:G,thread:H,voiceRecorder:N}),O?m.jsxs(m.Fragment,{children:[m.jsx(c("MWAudioRecorder.react"),{voiceRecorder:N}),m.jsx(c("MWV2ComposerSendButton.react"),{color:e,onPress:J,ref:P})]}):null,m.jsxs("div",{className:(j||(j=c("stylex")))(O?t.hidden:!1,t.container),children:[m.jsx(c("MWComposerStartButtonsGroup.react"),{canSendFileFinal:l,canSendGifFinal:a,canSendSecureSticker:I,canSendStickerFinal:x,color:e,composerLinkPreview:y,gifButtonPosition:X,isInputExpanded:K,isRTL:R,isSecureThread:q,localTimezoneInformation:ba,onAttachmentsAdded:E,onSendMessage:F,shouldUseMDS:S,stickerButtonPosition:V,supportedFileTypes:G,threadKey:H.threadKey,threadType:H.threadType}),m.jsxs("div",{className:"x78zum5 x1iyjqo2 x6q2ic0",style:U,children:[m.jsx("div",{className:"xzpqnlu x1hyvwdk xjm9jq1 x6ikm8r x10wlt62 x10l6tqk x1i1rx1s",id:Y,children:T}),m.jsx(c("MWReQLComposerInner.react"),{ariaDescribedBy:Y,contentEditableRef:aa,editor:z,handlePastedFiles:l?E:c("emptyFunction"),isAiBotMentionsEnabled:B,isSecureThread:q,participants:M,placeholderText:ea,policyProduct:fa,style:{backgroundColor:L==null?void 0:L.inputBackgroundColor},surface:ia,testId:"chat_input:rich-input",threadID:(i||(i=d("I64"))).to_string(W?H.parentThreadKey:H.threadKey),topContent:m.jsx(c("MWV2ComposerMediaStaging.react"),{mediaStaging:ca,onAttachmentRemoved:da,onAttachmentsAdded:E,supportedFileTypes:G}),useMentionsPlugin:C&&(B===!0?!0:D&&d("LSMessagingThreadTypeUtil").isGroup(H.threadType))})]}),m.jsx(c("MWComposerInnerButtonsGroup.react"),{color:e,editor:z,isVoiceRecorderOpen:O,shouldUseMDS:S,threadKey:H.threadKey})]}),m.jsx(c("MWComposerEndButtonsGroup.react"),{color:e,customEmoji:H.customEmoji,editor:z,hasPersistentMenu:H.hasPersistentMenu,hasStuffToSend:A,isVoiceRecorderOpen:O,onSendMessage:F,sendMessage:ha,shouldHideHotLike:ja,showCommands:$,threadKey:H.threadKey})]})}a.displayName=a.name+" [from "+f.id+"]";g.MWV2ComposerView=a}),98); __d("MAWSendSecureMessageV2Utils",["I64","LSDatabaseSingleton","MAWMiActMaybeCreateActThread","MWPActor.react","ReQL","StickerConstants","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(){var a=d("MWPActor.react").useActor();return function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var e=(yield i||(i=c("LSDatabaseSingleton"))),f=(yield d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(e.table("participants"),["contactId"]).getKeyRange(b).map(function(a){return(h||(h=d("I64"))).to_string(a.contactId)})));return c("MAWMiActMaybeCreateActThread")(e,b,{actorId:a,participantIds:f})});return function(a){return e.apply(this,arguments)}}()}function e(a){return a===c("StickerConstants").LIKE_STICKER_ID||a===c("StickerConstants").HOT_LIKE_SMALL_STICKER_ID||a===c("StickerConstants").HOT_LIKE_MEDIUM_STICKER_ID||a===c("StickerConstants").HOT_LIKE_LARGE_STICKER_ID}g.useMaybeCreateThreadForMAWSendSecurMessageV2=a;g.isLikeStickerId=e}),98); __d("useMAWFetchAndDispatchEphemeralSettings",["I64","MAWGetEphemeralSettings","MAWMiActOnActThreadReady","MAWStateContext.react","Promise","WALoggerDeferred","WATimeUtils","asyncToGeneratorRuntime","gkx","promiseDone","qex","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ephemeral settings in memory]: MAWGetEphemeralSettings for "," returns ",", set it to 0"]);l=function(){return a};return a}e=k||d("react");var m=e.useCallback,n=e.useContext;function o(a,b,c){return p.apply(this,arguments)}function p(){p=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){b=(yield d("MAWGetEphemeralSettings").getEphemeralSetting(a,b));if(b!=null&&b.ephemeralExpirationInSec!=null&&b.ephemeralLastUpdatedOrSetTimestamp!=null)c(a,b);else{void d("WALoggerDeferred").LOG(l(),a,b);var e=d("WATimeUtils").unixTime();c(a,{ephemeralExpirationInSec:b==null?0:(c=b.ephemeralExpirationInSec)!=null?c:0,ephemeralLastUpdatedOrSetTimestamp:e})}});return p.apply(this,arguments)}function a(){var a=(i||(i=c("useReStore")))(),e=n(d("MAWStateContext.react").MAWNonRerenderingStateContext),f=d("MAWStateContext.react").useDispatchEphemeralSettingsUpdatedForUI();return m(function(g){if(!(c("gkx")("9025")||c("qex")._("93")===!0)){var i=e().state.ephemeralSettings;c("promiseDone")(d("MAWMiActOnActThreadReady").onActThreadReady(a,(j||(j=d("I64"))).of_string(g),"fetch-ephemeral-settings",function(a,c,e){return i[e]!=null?(h||(h=b("Promise"))).resolve():o(e,(j||(j=d("I64"))).of_string(g),f)}))}},[a,f,e])}g["default"]=a}),98); __d("MAWSecureComposerUtils",["I64","LSMessagingThreadTypeUtil","MAWBridgeSendAndReceive","MAWDbMsg","MAWExternalId","MAWJobDefinitions","MAWMiActOnActThreadReady","MAWUIJob","MAWUIThreadCache","MessageRequestsLog","Promise","QPLUserFlow","WAJobOrchestratorTypes","asyncToGeneratorRuntime","promiseDone","qpl","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=c("requireDeferred")("MWLogSend").__setRef("MAWSecureComposerUtils");function a(a,b,c,d,e,f,g,h,i,j,l,m){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f,g,h,k,l,m,n,o,p){a=(yield d("MAWUIThreadCache").getThreadJidByChatId({threadId:a}));if(a==null){c("QPLUserFlow").endFailure(c("qpl")._(25313175,"1551"),"no_chat_jid",{instanceKey:n});return}var q=null;if(l!=null){l=d("MAWDbMsg").toMsgId(l.messageId);l!=null&&(q=(yield d("MAWBridgeSendAndReceive").sendAndReceive("backend","getProtocolMsgIdByMsgId",{msgId:l})))}c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),"sending_media_to_wajob",{instanceKey:n});switch(g.type){case"image":var r;l=g.args;yield d("MAWUIJob").UIJobStarters.waitUntilCompleted(d("MAWJobDefinitions").createStartJobInfo("sendMediaMsg",{args:{ephemeralSetting:(r=o)!=null?r:void 0,height:l.imageSpec.height,initiatingSource:p,isFirstMsg:m,isForwarded:!1,jpegThumbnail:l.thumbnailUrlAndSpec.jpegThumbnail,jpegThumbnailHeight:l.thumbnailUrlAndSpec.height,jpegThumbnailWidth:l.thumbnailUrlAndSpec.width,offlineAttachmentId:h,quote:(r=q)!=null?r:void 0,s2sInstanceKey:n,source:k,width:l.imageSpec.width},chatJid:a,externalId:d("MAWExternalId").generateExternalId(),file:g.file,scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}));break;case"video":r=g.args;yield d("MAWUIJob").UIJobStarters.waitUntilCompleted(d("MAWJobDefinitions").createStartJobInfo("sendMediaMsg",{args:{duration:r.thumbnailUrlAndSpec.duration,ephemeralSetting:(l=o)!=null?l:void 0,height:r.thumbnailUrlAndSpec.height,initiatingSource:p,isFirstMsg:m,isForwarded:!1,jpegThumbnail:r.thumbnailUrlAndSpec.jpegThumbnail,jpegThumbnailHeight:r.thumbnailUrlAndSpec.height,jpegThumbnailWidth:r.thumbnailUrlAndSpec.width,offlineAttachmentId:h,quote:(l=q)!=null?l:void 0,s2sInstanceKey:n,source:k,width:r.thumbnailUrlAndSpec.width},chatJid:a,externalId:d("MAWExternalId").generateExternalId(),file:g.file,scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}));break;case"audio":l=g.args;yield d("MAWUIJob").UIJobStarters.waitUntilCompleted(d("MAWJobDefinitions").createStartJobInfo("sendMediaMsg",{args:{duration:Math.round(l.durations),ephemeralSetting:(r=o)!=null?r:void 0,initiatingSource:p,isFirstMsg:m,isForwarded:!1,isPtt:l.isPtt,offlineAttachmentId:h,quote:(r=q)!=null?r:void 0,s2sInstanceKey:n,source:k},chatJid:a,externalId:d("MAWExternalId").generateExternalId(),file:g.file,scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}));break;case"document":l=g.args;yield d("MAWUIJob").UIJobStarters.waitUntilCompleted(d("MAWJobDefinitions").createStartJobInfo("sendMediaMsg",{args:{ephemeralSetting:(r=o)!=null?r:void 0,filename:l.filename,initiatingSource:p,isFirstMsg:m,isForwarded:!1,offlineAttachmentId:h,quote:(o=q)!=null?o:void 0,s2sInstanceKey:n,source:k},chatJid:a,externalId:d("MAWExternalId").generateExternalId(),file:g.file,scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}));break;default:c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),"uknown_file_type_sendMediaMsg_not_fired",{instanceKey:n})}var s;switch(g.type){case"image":s=8;break;case"video":s=10;break;case"audio":s=11;break;case"document":s=34;break}j.onReady(function(a){var c=(i||(i=d("I64"))).to_string(b);return a.log({actor:f,attachmentFbids:[],attachmentType:s,backend:1,hasReply:!1,messagingThreadId:c,offlineThreadingId:h,sendType:0,source:k,threadKey:b,threadType:e})});return a});return k.apply(this,arguments)}function e(a,e,f,g){if(d("LSMessagingThreadTypeUtil").isSecure(e.threadType)){f!=null&&d("MessageRequestsLog").logActionConfirmed(e,8,(i||(i=d("I64"))).to_string(f));c("promiseDone")(d("MAWMiActOnActThreadReady").onActThreadReady(a,e.threadKey,"MAWSecureComposerUtils",function(a,c,e){d("MAWUIJob").UIJobStarters.fireAndForget(d("MAWJobDefinitions").createStartJobInfo("deleteThread",{chatId:c,scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}));return(h||(h=b("Promise"))).resolve()}));return}}g.sendAttachment=a;g.onDeleteThread=e}),98); __d("MAWSendFileMsgIfNecessary",["FBLogger","MAWImagePreProcess","MAWSecureComposerUtils","Promise","QPLUserFlow","asyncToGeneratorRuntime","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var e=a.actorId,f=a.attachmentOfflineId,g=a.attachments,i=a.ephemeralSetting,j=a.externalAttachmentUrl,k=a.initiatingSource,l=a.isFirstMsg,m=a.reply,n=a.s2sInstanceKey,o=a.source,p=a.stickerId,q=a.thread,r=a.threadId;a=a.voiceClip;var s=[];if(a!=null){a={args:{durations:a.duration||0,isPtt:!0},file:a.file,type:"audio"};s.push([a,f])}if(j!=null){a=(yield window.fetch(j,{cache:"no-cache"}));j=(yield a.blob());a=p!=null;p=(yield d("MAWImagePreProcess").imagePreprocess(new File([j],"stickerFromPicker",{type:j.type}),a));s.push([p,f])}s=s.concat(g);c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),"prepare_attachment_promises",{instanceKey:n});j=s.map(function(a){var b=a[0];a=a[1];return d("MAWSecureComposerUtils").sendAttachment(r,q.threadKey,q.threadType,e,b,a,o,m,l,n,i,k)});yield (h||(h=b("Promise"))).all(j)["catch"](function(a){c("QPLUserFlow").endFailure(c("qpl")._(25313175,"1551"),"send_attachment_promise_failed",{error:a,instanceKey:n}),a instanceof Error?c("FBLogger")("messenger_e2ee_web").catching(a).addMetadata("MESSENGER_E2EE_WEB","ERROR_MESSAGE","failed while sending attachment promise").mustfix("Failed while sending message"):c("FBLogger")("messenger_e2ee_web").addMetadata("MESSENGER_E2EE_WEB","ERROR_MESSAGE","failed while sending attachment promise").mustfix("Failed while sending attachment, %s",a.message)})});return i.apply(this,arguments)}g["default"]=a}),98); __d("useLSMessagingInitiatingSourceNumber",["LSMessagingInitiatingSource","MWLSThreadDisplayContext"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();if(a==null)return;else if(a==="Inbox")return c("LSMessagingInitiatingSource").FACEBOOK_INBOX;else if(a==="FullscreenChat")return c("LSMessagingInitiatingSource").FACEBOOK_FULLSCREEN;else if(a==="ChatTab")return c("LSMessagingInitiatingSource").FACEBOOK_CHAT;else return c("LSMessagingInitiatingSource").ROOMS_SIDE_CHAT}g["default"]=a}),98); __d("useMAWSendSecureAttachmentMessage",["Int64Hooks","LSDatabaseSingleton","MAWExternalId","MAWGetEphemeralSettings","MAWMediaManagerUtils","MAWSendFileMsgIfNecessary","MAWSendSecureMessageV2Utils","MAWStateContext.react","MWPActor.react","Promise","QPLUserFlow","WAStanzaUtils","asyncToGeneratorRuntime","gkx","qpl","react","useLSMessagingInitiatingSourceNumber","useMWLSDefaultThreadSource"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(j||d("react")).useContext;function a(a,b,e){var f=b.hasFile,g=b.hasImage;b=b.hasVideo;var h=null;if(b||g||f&&c("gkx")("9045")){b=a[a.length-1];h=d("WAStanzaUtils").toStanzaId(b.offlineAttachmentId)}else h=d("MAWExternalId").generateExternalId();e(h);g=a.reduce(function(a,b){var c=d("MAWMediaManagerUtils").MAWMediaManagerAttachments.get(b.offlineAttachmentId);c!=null&&a.push([c,d("WAStanzaUtils").toStanzaId(b.offlineAttachmentId)]);return a},[]);return{attachmentOfflineId:h,attachments:g}}function e(){var a=d("MWPActor.react").useActor(),e=c("useMWLSDefaultThreadSource")(),f=d("MAWSendSecureMessageV2Utils").useMaybeCreateThreadForMAWSendSecurMessageV2(),g=c("useLSMessagingInitiatingSourceNumber")(),j=k(d("MAWStateContext.react").MAWNonRerenderingStateContext);return d("Int64Hooks").useCallbackInt64(function(){var k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(k){var l=k.externalAttachmentUrl,m=k.messageTypeParams,n=k.preparedAttachments,o=k.reply,p=k.s2sInstanceKey,q=k.stickerId,r=k.thread;k=k.voiceClip;m=m.hasAttachment;if(!m)return;m=n.attachmentOfflineId;n=n.attachments;var s=e(r.threadKey),t=(yield (i||(i=b("Promise"))).all([h||(h=c("LSDatabaseSingleton")),f(r.threadKey)])),u=t[0];t=t[1];var v=j().state.ephemeralSettings[t.jid];v==null&&(v=(yield d("MAWGetEphemeralSettings").getEphemeralSetting(t.jid,r.threadKey)));c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),"fetch_ephemeral_settings",{instanceKey:p});m={actorId:a,attachmentOfflineId:m,attachments:n,db:u,ephemeralSetting:v,externalAttachmentUrl:l,initiatingSource:g,isFirstMsg:t.created,reply:o,s2sInstanceKey:p,source:s,stickerId:q,thread:r,threadId:t.chatId,voiceClip:k};return c("MAWSendFileMsgIfNecessary")(m)});return function(a){return k.apply(this,arguments)}}(),[a,j,e,g,f])}g.prepareAttachmentsFromMediaManager=a;g.useMAWSendSecureAttachmentMessage=e}),98); __d("useMAWSendMessageV2",["I64","LSHotEmojiSize","LSIntEnum","MAWExternalId","MAWJobDefinitions","MAWTimedJob","MWPActor.react","MWPReplyContext.react","MWV2ComposerActionsContext.react","QPLUserFlow","WAJobOrchestratorTypes","asyncToGeneratorRuntime","qpl","react","requireDeferred","useLSMessagingInitiatingSourceNumber"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(h||d("react")).useContext,l=c("requireDeferred")("MWLogSend").__setRef("useMAWSendMessageV2");function m(a){if(a==null)return;if((i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").SMALL)))return 1;if((i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").MEDIUM)))return 2;if((i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").LARGE)))return 3}function a(){var a=d("MWPActor.react").useActor(),e=k(d("MWPReplyContext.react").MWPReplyContext),f=e.reply,g=c("useLSMessagingInitiatingSourceNumber")();e=k(d("MWV2ComposerActionsContext.react").MWV2ComposerActionsContext);var h=e.onMessageSendAttempt;return function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b,e,j,k,n,o,p,q,r,s,t,u,v,w,x,y,z,A){h==null?void 0:h(!0);e=babelHelpers["extends"]({content:n,initiatingSource:g,isFirstMsg:t,isForwarded:!1,openMessageOtid:p,openMessageParticipantCount:u,optimisticMsg:{msgId:q,ts:r},participantCount:v,s2sInstanceKey:z,s2sUserFlowQPLEvent:c("qpl")._(25313175,"1551"),source:o,specialTextSize:m(s)},w!=null&&{quote:w});x!=null&&(e.ephemeralSetting=x);y!=null&&(e.mentionedJids=[].concat(y));c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),"sending_message_to_wajob",{instanceKey:z});yield d("MAWTimedJob").TimedUIJobStarters.waitUntilCompleted(d("MAWJobDefinitions").createStartJobInfo("sendMsg",{args:e,chatJid:k,externalId:A!=null?A:d("MAWExternalId").generateExternalId(),scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}));l.onReady(function(c){var e=(i||(i=d("I64"))).to_string(b),g=s!=null?3:0;return c.log({_mentionedJids:y,actor:a,attachmentFbids:[],attachmentType:g,backend:1,hasReply:f!=null,messagingThreadId:e,msgTtl:x==null?void 0:x.ephemeralExpirationInSec,offlineThreadingId:A,sendType:0,source:o,threadKey:b,threadType:j})})});return function(a,b,c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s){return e.apply(this,arguments)}}()}g["default"]=a}),98); __d("LSOnSendMessageFailure.nop",["Promise"],(function(a,b,c,d,e,f){"use strict";var g;function a(a,c,d,e){return(g||(g=b("Promise"))).resolve()}f["default"]=a}),66); __d("LSMarkOptimisticMessageFailed",["LSOnSendMessageFailure.nop"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[];return c.sequence([function(d){return c.sequence([function(d){return c.nativeOperation(b("LSOnSendMessageFailure.nop"),a[0],a[1])},function(b){return c.forEach(c.filter(c.db.table(12).fetch([[[a[0]]],"optimistic"]),function(b){return b.offlineThreadingId===a[0]&&c.i64.eq(b.authorityLevel,c.i64.cast([0,20]))}),function(a){var b=a.update;a.item;return b({sendStatus:c.i64.cast([0,4]),sendStatusV2:c.i64.cast([0,4])})})}])},function(a){return c.resolve(d)}])}e.exports=a}),null); __d("LSMarkOptimisticMessageFailedStoredProcedure",["LSMarkOptimisticMessageFailed"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.optimisticMid;d[1]=b.errorMessage;return c("LSMarkOptimisticMessageFailed").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("useMarkOptimisticMessageAsFailed",["LSFactory","LSMarkOptimisticMessageFailedStoredProcedure","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useCallback;function a(){var a=(h||(h=c("useReStore")))();return j(function(b,d){return a.runInTransaction(function(a){return c("LSMarkOptimisticMessageFailedStoredProcedure")(c("LSFactory")(a),{errorMessage:d,optimisticMid:b})},"readwrite")},[a])}g["default"]=a}),98); __d("useMAWSendSecureTextMessage",["MAWBridgeSendAndReceive","MAWDbMsg","MAWExternalId","MAWGetEphemeralSettings","MAWInternalLog","MAWSendSecureMessageV2Utils","MAWStateContext.react","MAWVault","Promise","WALoggerDeferred","asyncToGeneratorRuntime","emptyFunction","gkx","react","useMAWCreateOptimisticSecureMessage","useMAWSendMessageV2","useMWLSDefaultThreadSource","useMarkOptimisticMessageAsFailed"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useCallback,k=e.useContext;function a(){var a=c("useMWLSDefaultThreadSource")(),e=d("MAWSendSecureMessageV2Utils").useMaybeCreateThreadForMAWSendSecurMessageV2(),f=k(d("MAWStateContext.react").MAWNonRerenderingStateContext),g=c("useMAWSendMessageV2")(),i=c("useMAWCreateOptimisticSecureMessage")(),l=c("useMarkOptimisticMessageAsFailed")(),m=d("MAWStateContext.react").useDispatchOptimisticSendMessage();return j(function(){var j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(j){var k=j.hotEmojiSize,n=j.lssTraceApi,o=j.mentionedJids,p=j.messageText,q=j.onGenerateOfflineMsgId,r=j.reply,s=j.s2sInstanceKey;j=j.thread;var t=c("gkx")("4648")?d("MAWExternalId").generateExternalId():void 0,u=null;try{var v;n==null?void 0:n.addMarkerPoint("create_optimistic_message_start","AppTiming");v=(yield (h||(h=b("Promise"))).all([e(j.threadKey),i(r,d("MAWVault").vault(p),j.threadKey,k,(v=s)!=null?v:0,o,(v=q)!=null?v:c("emptyFunction"),t)]));var w=v[0];v=v[1];n==null?void 0:n.addMarkerPoint("create_optimistic_message_end","AppTiming");u=v[0];n=v[1];q==null?void 0:q(u);m(u,Date.now());v=f().state.ephemeralSettings[w.jid];v==null&&(v=(yield d("MAWGetEphemeralSettings").getEphemeralSetting(w.jid,j.threadKey)));q=a(j.threadKey);var x=null;if(r!=null){r=d("MAWDbMsg").toMsgId(r.messageId);r!=null&&(x=(yield d("MAWBridgeSendAndReceive").sendAndReceive("backend","getProtocolMsgIdByMsgId",{msgId:r})))}return g(j.threadKey,w.chatId,j.threadType,w.jid,p,q,void 0,u,n,k,w.created,void 0,void 0,x,v,o,s,t)}catch(a){r=a instanceof Error?a.message:"Fail to send secure text message";u!=null&&(yield l(u,r));d("MAWInternalLog").internalLog("useMAWSendSecureTextMessage: send text message failed: "+a);yield d("WALoggerDeferred").logWithTags(["MAWSendSecureMessageV2","Composer","useMAWSendSecureTextMessage"],["Send text message failed:"+JSON.stringify(a)],"ERROR");throw a}});return function(a){return j.apply(this,arguments)}}(),[i,m,f,a,l,e,g])}g["default"]=a}),98); __d("useMAWSendSecureLinkXMAMessage",["FBLogger","Int64Hooks","MAWExternalId","MAWExternalLinkUtil","MAWSendSecureMessageV2Utils","asyncToGeneratorRuntime","useMAWSendSecureTextMessage","useMWLSDefaultThreadSource"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("useMWLSDefaultThreadSource")(),e=d("MAWSendSecureMessageV2Utils").useMaybeCreateThreadForMAWSendSecurMessageV2(),f=c("useMAWSendSecureTextMessage")();return d("Int64Hooks").useCallbackInt64(function(){var g=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var g=b.mentionedJids,h=b.messageText,i=b.onGenerateOfflineMsgId,j=b.reply,k=b.s2sInstanceKey,l=b.thread;b=b.threadKey;var m=d("MAWExternalLinkUtil").findFirstUrl(h);if(m==null||m.length===0)return f({mentionedJids:g,messageText:h,onGenerateOfflineMsgId:i,reply:j,s2sInstanceKey:k,thread:l});try{g=m[0];j=d("MAWExternalLinkUtil").findFirstAvailableOembedUrlAndRequestPair(m);l=g.entity.url;m=null;if(j!=null){l=j.oEmbedUrl;try{m=(yield d("MAWExternalLinkUtil").getOembedResponse(j.oEmbedRequest))}catch(a){c("FBLogger")("messenger_e2ee_web").mustfix("[External link] Failed to send External Link XMA.")}}g=d("MAWExternalId").generateExternalId();i==null?void 0:i(g);j=a(b);i=(yield e(b));return d("MAWExternalLinkUtil").sendExternalLinkXMA(h,m,l,i.jid,k,j,b,g)}catch(a){c("FBLogger")("messenger_e2ee_web").mustfix("[External link] Failed to send external link XMA ");throw a}});return function(a){return g.apply(this,arguments)}}(),[a,e,f])}g["default"]=a}),98); __d("useMAWUpdateThreadCapabilities",["LSMessagingThreadTypeUtil","MAWUpdateLSThreadCapabilities","Promise","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(j||d("react")).useCallback;function a(){var a=(i||(i=c("useReStore")))();return k(function(c){return!d("LSMessagingThreadTypeUtil").isOneToOne(c.threadType)?(h||(h=b("Promise"))).resolve():a.runInTransaction(function(a){return d("MAWUpdateLSThreadCapabilities").updateNonMessageRequestThreadTxn(a,c.threadKey)},"readwrite")},[a])}g["default"]=a}),98); __d("useMAWSendSecureMessageV2Impl",["FBLogger","I64","Int64Hooks","LSDatabaseSingleton","LSIntEnum","LSMessagingThreadTypeUtil","MAWInternalLog","MAWOptimisticUpdateContactRelationship","MWLSLogSend","MWPActor.react","MWPReplyContext.react","MWPreloadableQueries","MWSharedMsgLogUtils","MWVersion","MessageRequestsLog","Promise","ReQL","WALoggerDeferred","asyncToGeneratorRuntime","react","sendToSentQPLLogger","useLSMessagingInitiatingSource","useMAWSendSecureAttachmentMessage","useMAWSendSecureLinkXMAMessage","useMAWSendSecureTextMessage","useMAWUpdateThreadCapabilities","useMWLSUnarchiveThread"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=(l||d("react")).useContext;function a(a){var e=d("MWPActor.react").useActor(),f=m(d("MWPReplyContext.react").MWPReplyContext),g=f.clearReply,l=c("useLSMessagingInitiatingSource")(),n=c("useMAWSendSecureTextMessage")(),o=c("useMAWSendSecureLinkXMAMessage")(),p=d("useMAWSendSecureAttachmentMessage").useMAWSendSecureAttachmentMessage(),q=c("useMWLSUnarchiveThread")(),r=c("useMAWUpdateThreadCapabilities")();return d("Int64Hooks").useCallbackInt64(function(){var f=b("asyncToGeneratorRuntime").asyncToGenerator(function*(f){var m=f.externalAttachmentUrl,s=f.hotEmojiSize,t=f.lssTraceApi,u=f.mentionedJids,v=f.messageText,w=f.reply,x=f.s2sInstanceKey,y=x===void 0?0:x;x=f.stickerId;var z=f.thread;f=f.voiceClip;d("MAWInternalLog").internalLog("start to send message from UI");yield d("WALoggerDeferred").logWithTags(["MAWSendSecureMessageV2","Composer"],["Starting message send"],"LOG");d("sendToSentQPLLogger").markSendToSentPoint(y,"send_secure_message_started");t.addMarkerPoint("send_secure_message_started","AppTiming");var A=(yield i||(i=c("LSDatabaseSingleton"))),B=d("LSMessagingThreadTypeUtil").isMessageRequest(z),C=(j||(j=d("I64"))).equal(z.parentThreadKey,(k||(k=d("LSIntEnum"))).ofNumber(-10)),D=(yield d("ReQL").toArrayAsync(d("MWPreloadableQueries").getMediaStagingQuery(A,z.threadKey))),E=d("MWSharedMsgLogUtils").getMessageTypeParams(v,s,w,x,m,f,D);d("sendToSentQPLLogger").addSendToSentAnnotations(y,yield d("MWSharedMsgLogUtils").getSendToSentAnnotations(z,E,l));d("MWSharedMsgLogUtils").addSendMessageMetadataForInteractionTrace(t,E,z,l);var F=function(a){d("MWLSLogSend").logSentHeroInteraction(t,a,{initiatingSource:l,isMessageRequest:B,mwVersion:d("MWVersion").v2,threadType:z.threadType}),d("sendToSentQPLLogger").markSendToSentPoint(y,"offline_msg_id_generated"),d("MWLSLogSend").setS2sKeyForOfflineMessageId(a,y)},G=[],H=E.hasAttachment,I=E.hasLinks;v!=null&&v!==""&&(I?G.push(o({mentionedJids:u,messageText:v,onGenerateOfflineMsgId:H?void 0:F,reply:w,s2sInstanceKey:y,thread:z,threadKey:z.threadKey})):G.push(n({hotEmojiSize:s,lssTraceApi:t,mentionedJids:u,messageText:v,onGenerateOfflineMsgId:H?void 0:F,reply:w,s2sInstanceKey:y,thread:z})));if(H){s=d("useMAWSendSecureAttachmentMessage").prepareAttachmentsFromMediaManager(D,E,F);G.push(p({externalAttachmentUrl:m,messageTypeParams:E,preparedAttachments:s,reply:w,s2sInstanceKey:y,stickerId:x,thread:z,voiceClip:f}))}a();g(z.threadKey,!1);yield (h||(h=b("Promise"))).all(G)["catch"](function(a){d("sendToSentQPLLogger").markSendToSentFail(y,a);a instanceof Error?c("FBLogger")("messenger_e2ee_web").catching(a).addMetadata("MESSENGER_E2EE_WEB","ERROR_MESSAGE","hasAttachment: "+H.toString()).mustfix("Failed while sending secure message in useMAWSendSecureMessageV2Impl"):c("FBLogger")("messenger_e2ee_web").addMetadata("MESSENGER_E2EE_WEB","ERROR_MESSAGE","hasAttachment: "+H.toString()).mustfix("Failed while sending secure message in useMAWSendSecureMessageV2Impl, %s",a.message);throw a});v!=null&&v!==""&&I&&d("sendToSentQPLLogger").markSendToSentSuccess(y);d("MAWInternalLog").internalLog("send message is done");yield d("WALoggerDeferred").logWithTags(["MAWSendSecureMessageV2","Composer"],["Send message is done"],"LOG");d("MAWOptimisticUpdateContactRelationship").call(z,A,e);yield r(z);B&&d("MessageRequestsLog").logActionConfirmed(z,1);C&&q(z.threadKey)});return function(a){return f.apply(this,arguments)}}(),[e,g,l,a,p,o,n,q,r])}g["default"]=a}),98); __d("useMAWSendSecureMessageV2",["I64","Int64Hooks","MAWJids","MAWSendSecureMessageV2Utils","MWPReplyContext.react","WALoggerDeferred","promiseDone","qpl","react","sendToSentQPLLogger","unrecoverableViolation","useCometInteractionTracing","useMAWFetchAndDispatchEphemeralSettings","useMAWSendSecureMessageV2Impl"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(h||d("react")).useContext;function a(a,b,e){var f=j(d("MWPReplyContext.react").MWPReplyContext),g=f.reply,h=c("useMAWSendSecureMessageV2Impl")(e),k=c("useCometInteractionTracing")(c("qpl")._(30605384,"573"),"fast","INTERACTION",void 0),l=c("useMAWFetchAndDispatchEphemeralSettings")();d("Int64Hooks").useEffectInt64(function(){l((i||(i=d("I64"))).to_string(a.threadKey))},[l,a.threadKey]);return function(e,f,j,l,m,n,o,p,q,r){c("promiseDone")(d("WALoggerDeferred").logWithTags(["Composer"],["Calling useMAWSendSecureMessageV2"],"LOG"));var s=f==null?void 0:f.map(function(a){return d("MAWJids").toUserJid(a.id)}),t=e;j!=null&&d("MAWSendSecureMessageV2Utils").isLikeStickerId((i||(i=d("I64"))).to_string(j))&&(t="\ud83d\udc4d");var u=d("sendToSentQPLLogger").markSendToSentStart();k(function(e){c("promiseDone")(h({externalAttachmentUrl:n,hotEmojiSize:l,lssTraceApi:e,mentionedJids:s,messageText:t,reply:g,s2sInstanceKey:u,stickerId:j,thread:a,voiceClip:p}),b,function(a){d("sendToSentQPLLogger").markSendToSentFail(u,a);e.failTrace(a,!0);throw c("unrecoverableViolation")("Encountered failure during Armadillo Message Send (UI)","messenger_e2ee_web",{error:a})})})}}g["default"]=a}),98); __d("useMWMediaManagerUploadFailedToast",["mwPushToast","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){return i(function(a,b){d("mwPushToast").mwPushErrorToast({body:b,title:a})},[])}g["default"]=a}),98); __d("useMWMediaManager",["LSIntEnum","MWMediaManager","MWPComposerMediaUploadUtil","MessagingAttachmentType","qex","useMWMediaManagerUploadFailedToast"],(function(a,b,c,d,e,f,g){"use strict";var h,i=25;function a(a){var b=a.onUploadFailure;a=a.thread;var e=c("useMWMediaManagerUploadFailedToast")();return d("MWMediaManager").useMediaManager({getMaxAttachmentSizeInMB:j,onUploadFailure:b,showUploadFailureToast:e,thread:a})}function j(a,b){a=d("MWPComposerMediaUploadUtil").getAttachmentType(a);if((h||(h=d("LSIntEnum"))).toNumber(a)===c("MessagingAttachmentType").FILE){return(a=k(b))!=null?a:i}return i}function k(a){if(a)return c("qex")._("245");else return c("qex")._("413")}g["default"]=a}),98); __d("MAWSecureComposer.react",["fbt","MAWSecureComposerText","MAWSecureThreadNonAddressableContactBanner.react","MAWSecureTypingState","MAWSupportedFileTypes","MWBlockedComposerLogging","MWPEditMessageUtil","MWPReplyContext.react","MWV2ComposerReplyView.react","MWV2ComposerView.react","WebUXLoggingSurfaceContextProvider","cr:6241","emptyFunction","gkx","react","useCometAlertDialog","useMAWSendSecureMessageV2","useMWMediaManager","useMWPComposerEditor","useMWV2FileDropzoneRegisterHandler"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useState,n=c("gkx")("9254");function a(a){var e=a.afterSendMessage;e=e===void 0?c("emptyFunction"):e;var f=a.isPreviewThread;a=a.thread;var g=l(d("MWPReplyContext.react").MWPReplyContext);g=g.reply;var i=d("MWPEditMessageUtil").useGetEditMessageData(),o=c("useCometAlertDialog")(),p=k(function(){return o({body:h._("__JHASH__cHTRYg3bfeC__JHASH__"),title:h._("__JHASH__shIDOoHHO5L__JHASH__")})},[o]);p=c("useMWMediaManager")({onUploadFailure:p,thread:a});var q=p.handleFileRemove,r=p.handleFileSelect,s=p.mediaStaging;p=p.resetAttachments;e=c("useMAWSendSecureMessageV2")(a,e,p);p=d("MAWSecureTypingState").useOnTypingStateChanged(a.authorityLevel,a.threadKey,a.threadType);c("useMWV2FileDropzoneRegisterHandler")(r);var t=m(!1),u=t[0];t=t[1];d("MWBlockedComposerLogging").useLogMWBlockedComposerReason(a,u?d("MWBlockedComposerLogging").ComposerBlockingReason.ARMADILLO_RECEIVER_NON_ADDRESSABLE_ON_WA:d("MWBlockedComposerLogging").ComposerBlockingReason.NOT_BLOCKED);f=c("useMWPComposerEditor")({getTextFromEditorState:d("MAWSecureComposerText").getTextFromEditorState,isPreviewThread:f,mediaStaging:s,onSendMessage:e,onTypingStateChanged:p,threadKey:a.threadKey});p=f.editor;var v=f.editorElementRef,w=f.hasStuffToSend;f=f.sendMessage;return j.jsx(d("WebUXLoggingSurfaceContextProvider").WebUXLoggingSurfaceContextProvider,{value:"secure_composer",children:j.jsxs("div",{"data-testid":void 0,children:[g!=null?j.jsx(d("MWV2ComposerReplyView.react").MWV2ComposerReplyView,{messageId:g.messageId,messageTimestamp:g.timestampMs,thread:a}):null,j.jsx(c("MAWSecureThreadNonAddressableContactBanner.react"),{setHideComposerEditor:t,thread:a}),i!=null&&b("cr:6241")&&j.jsx(b("cr:6241"),{editMessageData:i,threadType:a.threadType}),u||i!=null?null:j.jsx(d("MWV2ComposerView.react").MWV2ComposerView,{editor:p,editorElementRef:v,hasStuffToSend:w,isMentionsPluginEnabled:n,mediaStaging:s,onAttachmentRemoved:q,onAttachmentsAdded:r,onSendMessage:e,policyProduct:"messaging_lightswitch",sendMessage:f,supportedFileTypes:d("MAWSupportedFileTypes").supportedFileTypes,surface:"mwp_maw_secure_composer",thread:a})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWGroupLimitConfig",["cr:410"],(function(a,b,c,d,e,f,g){"use strict";g.armadillo=b("cr:410").armadillo,g.gxac=b("cr:410").gxac,g.nonGxac=b("cr:410").nonGxac}),98); __d("MWGroupLimitConfigForProd",["MAWAbPropsClient"],(function(a,b,c,d,e,f,g){"use strict";function a(){return d("MAWAbPropsClient").getAbProps().client_group_participants_limit}b=32;c=256;g.armadillo=a;g.gxac=b;g.nonGxac=c}),98); __d("MWGroupLimitContainer.react",["cr:3409","react"],(function(a,b,c,d,e,f,g){"use strict";var h;h||d("react");function a(a){var c=a.children,d=a.groupLimitReachedContent;a=a.thread;a=(a=b("cr:3409")==null?void 0:b("cr:3409")(a.threadKey))!=null?a:[!1,!1];a=a[0];return a?d:c}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useHasGroupLimitBeenReachedForThread",["I64","Int64Hooks","LSMessagingThreadTypeUtil","MWGroupLimitConfig","MWXacGating","ReQL","ReQLSuspense","isMWXacGroupThread","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b){b===void 0&&(b=[]);var e=(i||(i=c("useReStore")))(),g=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(e.table("threads"),["memberCount","threadType","capabilities","capabilities2","capabilities3","capabilities4"]).getKeyRange(a)},[e,a],f.id+":30"),j=(g==null?void 0:g.memberCount)!=null?(h||(h=d("I64"))).to_int32(g.memberCount):0;j=j+((j=(j=b)==null?void 0:j.length)!=null?j:0);var k=d("Int64Hooks").useMemoInt64(function(){var a;a=((a=b)!=null?a:[]).some(function(a){return a.isInstagramAccount});if(g==null)return!1;return d("MWXacGating").isGroupsEnabled()?c("isMWXacGroupThread")({capabilities:g.capabilities,capabilities2:g.capabilities2,capabilities3:g.capabilities3,capabilities4:g.capabilities4,threadType:g.threadType})||a:!1},[g,b]);if(g==null)return[!1,!1];k=k?j>=d("MWGroupLimitConfig").gxac:d("LSMessagingThreadTypeUtil").isSecure(g.threadType)?j>=d("MWGroupLimitConfig").armadillo():j>=d("MWGroupLimitConfig").nonGxac;j=d("MWXacGating").isGroupsEnabled()&&j>=d("MWGroupLimitConfig").gxac;return[k,j]}g["default"]=a}),98); __d("MWAdmodOnboardingSuggestedActionsContext.react",["$InternalEnum","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));d=h;var j=d.createContext,k=d.useContext,l=d.useMemo,m=d.useState,n=b("$InternalEnum").Mirrored(["UNINITIALIZED","INITIALIZING","INITIALIZED"]),o=j({contextBannerLoadingState:n.UNINITIALIZED,isContextBannerVisible:!1,setContextBannerLoadingState:c("emptyFunction"),setIsContextBannerVisible:c("emptyFunction"),setShowWelcomeMessageSuggestion:c("emptyFunction"),showWelcomeMessageSuggestion:{show:!1}});function a(a){a=a.children;var b=m(n.UNINITIALIZED),c=b[0],d=b[1];b=m(!1);var e=b[0],f=b[1];b=m({show:!1});var g=b[0],h=b[1];b=l(function(){return{contextBannerLoadingState:c,isContextBannerVisible:e,setContextBannerLoadingState:d,setIsContextBannerVisible:f,setShowWelcomeMessageSuggestion:h,showWelcomeMessageSuggestion:g}},[c,e,g]);return i.jsx(o.Provider,{value:b,children:a})}a.displayName=a.name+" [from "+f.id+"]";function e(){return k(o)}g.ContextBannerLoadingStates=n;g.MWAdmodOnboardingSuggestedActionsContextProvider=a;g.useMWAdmodOnboardingSuggestedActionsContext=e}),98); __d("MWChatHeaderDetailsSubtitleMutedIcon.react",["fbt","MWXTooltip.react","cr:4426","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){a=a.forceInlineDisplay;return j.jsx(c("MWXTooltip.react"),{align:"start",forceInlineDisplay:a===!0?!0:void 0,position:"above",tooltip:h._("__JHASH__XpvJmcPfz_-__JHASH__"),children:j.jsx(b("cr:4426"),{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWFDSChatHeaderDetailsSubtitleMutedIcon.react",["ix","CometTintedIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){return j.jsx(c("CometTintedIcon.react"),{color:"secondary",icon:d("fbicon")._(h("636130"),12),testid:void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWComposerDisclosureContainer.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={border:{borderTop:"1px solid var(--media-inner-border)"},inner:{margin:"auto",maxWidth:450},inner_new_layout_for_horizontal_buttons:{margin:"auto",maxWidth:1200},root:{color:"var(--secondary-text)",marginTop:"12px",padding:"14px 13px 5px 13px",textAlign:"center"},root_new_layout_for_horizontal_buttons:{borderTop:"1px solid var(--media-inner-border)",color:"var(--secondary-text)",marginTop:"12px",padding:"28px 13px 13px 13px",textAlign:"center"}};function a(a){var b=a.children;a=a.testid;return i.jsx("div",{"data-testid":void 0,style:j.root,children:i.jsx("div",{style:j.inner,children:b})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatComposerGroupMessageRequestInfoText.react",["fbt","JSResourceForInteraction","MWComposerDisclosureContainer.react","MWVerticalRhythm","MWXPressable.react","MWXText.react","MessageRequestsLog","MessengerMSplitFlag","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useRef,m=c("JSResourceForInteraction")("MWChatDeclineGroupMessageRequestDialog.react").__setRef("MWChatComposerGroupMessageRequestInfoText.react");function a(a){var b=a.folderName,e=a.hasAddXacUsersCapabilitiy,f=a.onDeleteConversation,g=a.onLeaveGroup,i=a.threadKey,n=a.threadType;k(function(){d("MessageRequestsLog").logMessageRequestInfoShown({folderName:b,threadKey:i,threadType:n})},[b,i,n]);a=l(null);var o={onDeleteConversation:f,onLeaveGroup:g};f=c("useMWXLazyDialog")(m);var p=f[0],q=function(){return p(o)};return j.jsxs(c("MWComposerDisclosureContainer.react"),{testid:void 0,children:[e?j.jsxs(j.Fragment,{children:[j.jsx(c("MWXText.react"),{color:"secondary",type:"entityHeaderMeta3",children:h._("__JHASH__Zo8nGcr-Wbu__JHASH__")}),j.jsx(c("MWVerticalRhythm"),{height:8})]}):null,j.jsxs(c("MWXText.react"),{color:"secondary",type:"body4",children:[e?h._("__JHASH__dGW95F1FSGX__JHASH__"):c("MessengerMSplitFlag").is_msplit_account?h._("__JHASH__MWNB1ho8ez7__JHASH__"):h._("__JHASH__8Xn13sU52xi__JHASH__"),j.jsx(c("MWVerticalRhythm"),{height:5}),j.jsx(c("MWXPressable.react"),{onPress:function(){d("MessageRequestsLog").logDenialOptionsTapped({folderName:b,threadKey:i,threadType:n});return q()},overlayDisabled:!0,ref:a,testid:void 0,children:j.jsx(c("MWXText.react"),{color:"primary",type:"bodyLink4",children:h._("__JHASH__3yIVRKHeTer__JHASH__")})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatComposerVoiceIndicator.react",["fbt","CurrentUser","MDSTextPairing.react","MWXText.react","getTopMostRoute","react","useCometRouterState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){a=a.forceShown_TEST_ONLY;a=a===void 0?!1:a;var b=c("useCometRouterState")();b=b!=null?c("getTopMostRoute")(b):null;b=(b=b==null?void 0:b.tracePolicy)!=null?b:null;b=b!==null?b.startsWith("comet.page.admin")||b.startsWith("comet.group.admin"):!1;var d=c("CurrentUser").getName();d=h._("__JHASH__moy48BoqFvP__JHASH__",[h._param("full name",j.jsx(c("MWXText.react"),{type:"meta2",children:d}))]);return b||a?j.jsx("div",{className:"x1exxf4d x13fuv20 x178xt8z xi81zsa x14vqqas xkrivgy xat24cr x1gryazu xyinxu5 xho0xa1 xs9asl8 x1vobaek",children:j.jsx(c("MDSTextPairing.react"),{body:j.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body4",children:d}),level:4,textAlign:"center"})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWComposerXacDisclosureRelay.react",["CometPlaceholder.react","CometRelay","MWComposerXacDisclosureRelayQuery.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=8659;function a(a){var e=a.isThreadInNullState;a=a.size;var f=d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("MWComposerXacDisclosureRelayQuery.graphql"),{nux_id:k}),g=f.xacThreadDisclosureNux;return j.jsx(c("CometPlaceholder.react"),{fallback:null,children:g!=null?j.jsx(d("CometRelay").MatchContainer,{match:g,props:{isThreadInNullState:e,nuxKey:f.xacThreadDisclosureNux,size:a}}):null})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWLSChatComposerUserMessageRequestInfoText.react",["fbt","I64","JSResourceForInteraction","MDSTextPairing.react","MWComposerDisclosureContainer.react","MWMessageRequestSharedTexts.react","MWVerticalRhythm","MWXPressable.react","MWXText.react","MessageRequestsLog","MessengerMSplitFlag","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||(i=d("react"));b=i;var l=b.useEffect,m=b.useRef,n=c("JSResourceForInteraction")("MWChatDeclineUserMessageRequestDialog.react").__setRef("MWLSChatComposerUserMessageRequestInfoText.react");function a(a){var b=a.isIgContact,e=a.isMSplitContact,f=a.name,g=a.onDeleteConversation,i=a.secondaryName,o=a.shortName,p=a.thread;a=b&&i!=null?k.jsx(c("MWXText.react"),{color:"primary",type:"bodyLink4",children:h._("__JHASH__CEpoRXODTMn__JHASH__")}):null;e=b&&i!=null?f!==i?h._("__JHASH__tV1eV-071mI__JHASH__",[h._param("IGDisplayName",f),h._param("IGUserName",i)]):h._("__JHASH__U6KCI1_eCqE__JHASH__",[h._param("IGUserName",i)]):c("MessengerMSplitFlag").is_msplit_account||e?d("MWMessageRequestSharedTexts.react").getFBUserInfoTextMessageForMSplit(f):d("MWMessageRequestSharedTexts.react").getFBUserInfoTextMessage(f);b=b&&i!=null?f!==i?h._("__JHASH__aglenjVPdnH__JHASH__",[h._param("name",f),h._param("username",i)]):h._("__JHASH__OwGh52eXtzq__JHASH__",[h._param("username",i)]):d("MWMessageRequestSharedTexts.react").getDefaultInfoTextFooter(f);var q=m(null);l(function(){d("MessageRequestsLog").logMessageRequestInfoShown(p)},[p]);var r={onDeleteConversation:g,otherUserFbid:(j||(j=d("I64"))).to_string(p.threadKey),otherUserName:f.toString(),otherUserSecondaryName:i,otherUserShortName:o};g=c("useMWXLazyDialog")(n);var s=g[0],t=function(){return s(r)};return k.jsxs(c("MWComposerDisclosureContainer.react"),{testid:void 0,children:[k.jsx(c("MDSTextPairing.react"),{body:k.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body4",children:e}),headline:a,level:4,textAlign:"center"}),k.jsx(c("MWVerticalRhythm"),{height:5}),k.jsx(c("MWXPressable.react"),{onPress:function(){d("MessageRequestsLog").logDenialOptionsTapped(p);return t()},overlayDisabled:!0,ref:q,testid:void 0,children:k.jsx(c("MWXText.react"),{color:"primary",type:"bodyLink4",children:b})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("IXTProactiveWarningFollowUpActionsCell.react",["TetraButton.react","react","useIXTProactiveWarningFlowTriggerDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.context,d=a.label,e=a.onClose,f=a.onPress,g=a.setPWDismissTime;a=c("useIXTProactiveWarningFlowTriggerDialog")({proactive_warning_request_context:b,trigger_event_type:"OPEN_PROACTIVE_WARNING_FLOW"});var h=a[0],j=function(){e()};return i.jsx(c("TetraButton.react"),{label:d,onPress:function(){g(),f(),h({flowCallbacks:{onClose:j}})},reduceEmphasis:!1,type:"secondary"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSSetProactiveWarningDismissTime",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=c.i64.cast([0,1]):(b=a.item,d[8]=b.syncGroup,c.i64.neq(d[8],void 0)?d[7]=d[8]:d[7]=c.i64.cast([0,1]),d[0]=d[7])})},function(e){return d[2]=c.i64.of_float(Date.now()),d[6]=c.i64.div(d[2],c.i64.cast([0,1e3])),d[3]=new c.Map(),d[3].set("thread_key",a[0]),d[3].set("timestamp",d[6]),d[3].set("sync_group",d[0]),d[4]=d[3].get("thread_key"),d[3],d[5]=c.toJSON(d[3]),c.storedProcedure(b("LSIssueNewTask"),c.i64.to_string(d[4]),c.i64.cast([0,438]),d[5],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(b){return c.forEach(c.db.table(9).fetch([[[a[0]]]]),function(a){var b=a.update;a.item;return b({proactiveWarningDismissTime:d[6]})})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSetProactiveWarningDismissTimeStoredProcedure",["LSSetProactiveWarningDismissTime"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;return c("LSSetProactiveWarningDismissTime").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("LsFrxMessengerFeedbackProactiveWarningBannerPrimaryActionTappedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("2898");b=d("FalcoLoggerInternal").create("ls_frx_messenger_feedback_proactive_warning_banner_primary_action_tapped",a);e=b;g["default"]=e}),98); __d("LsFrxMessengerFeedbackProactiveWarningBannerSecondaryActionTappedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("2899");b=d("FalcoLoggerInternal").create("ls_frx_messenger_feedback_proactive_warning_banner_secondary_action_tapped",a);e=b;g["default"]=e}),98); __d("LsFrxMessengerFeedbackProactiveWarningBannerShownFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("2900");b=d("FalcoLoggerInternal").create("ls_frx_messenger_feedback_proactive_warning_banner_shown",a);e=b;g["default"]=e}),98); __d("useMWLSProactiveWarningTables",["MWPreloadableQueries","MWThreadKey.react","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(){var a=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),b=(h||(h=c("useReStore")))(),e=d("ReQLSuspense").useFirst(function(){return d("MWPreloadableQueries").getThreadBannerQuery(b,a)},[b,a],f.id+":31"),g=d("ReQLSuspense").useFirst(function(){return d("MWPreloadableQueries").getProactiveWarningsForThreadQuery(b,a)},[b,a],f.id+":36");return{banner:e,pwSettings:g}}g["default"]=a}),98); __d("useMWProactiveWarningPayloadMemo",["I64","Int64Hooks"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=a.banner,c=a.ignoreDismissTime,e=a.isPWDismissTimeSet,f=a.pwSettings,g=a.threadKey;return d("Int64Hooks").useMemoInt64(function(){if(f==null||b==null)return;var a=f.context,i=f.entryPoint,j=f.storyLocation,k=f.suspectId,l=f.tag,m=b.bannerId,n=b.cta1Title,o=b.cta2Title,p=b.heading,q=b.titleSectionOne;if(!((Boolean(c)||e)&&(h||(h=d("I64"))).equal(m,(h||(h=d("I64"))).of_string("7"))))return;if(k!=null&&a!=null&&j!=null&&i!=null&&l!=null&&p!=null&&o!=null&&n!=null&&q!=null)return{context:a,cta1Title:n,cta2Title:o,description:q,falco_event_data:{data:{entry_point:(h||(h=d("I64"))).to_int32(i),feedback_tags:[l],surface:h.to_int32(j)},impersonatedUser:{id:0},otherUser:{id:h.to_int32(k)},reportedUser:{id:0},thread:{id:h.to_string(g),type:1}},header:p,threadKey:g}},[g,b,f,e,c])}g["default"]=a}),98); __d("useMWProactiveWarningPayload",["I64","MWThreadKey.react","useMWLSProactiveWarningTables","useMWProactiveWarningPayloadMemo"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){var e=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),f=c("useMWLSProactiveWarningTables")(),g=f.banner;f=f.pwSettings;b=b!=null&&(h||(h=d("I64"))).equal((b=b.proactiveWarningDismissTime)!=null?b:(h||(h=d("I64"))).zero,(h||(h=d("I64"))).zero);return c("useMWProactiveWarningPayloadMemo")({banner:g,ignoreDismissTime:a,isPWDismissTimeSet:b,pwSettings:f,threadKey:e})}g["default"]=a}),98); __d("MWPSafetyNoticesChatBlockedComposerDetails.react",["fbt","IXTProactiveWarningFollowUpActionsCell.react","LSFactory","LSSetProactiveWarningDismissTimeStoredProcedure","LsFrxMessengerFeedbackProactiveWarningBannerPrimaryActionTappedFalcoEvent","LsFrxMessengerFeedbackProactiveWarningBannerSecondaryActionTappedFalcoEvent","LsFrxMessengerFeedbackProactiveWarningBannerShownFalcoEvent","MDSTextPairing.react","MWThreadKey.react","MWXText.react","TetraButton.react","promiseDone","react","stylex","useMWProactiveWarningPayload","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useEffect,n={button:{width:"x5sxuk9",$$css:!0},buttonsContainer:{display:"x78zum5",flexDirection:"x1q0g3np",justifyContent:"x1qughib",marginTop:"x14vqqas",width:"xh8yej3",$$css:!0},root:{borderTop:"xzg4506",color:"xi81zsa",marginTop:"x14vqqas",paddingTop:"xyinxu5",paddingEnd:"xho0xa1",paddingBottom:"xxbrewl",paddingStart:"x1vobaek",$$css:!0}};function a(a){var b=a.fallback,e=a.onClose;a=a.thread;var f=c("useMWProactiveWarningPayload")(void 0,a),g=(i||(i=c("useReStore")))(),k=d("MWThreadKey.react").useMWThreadKeyMemoizedExn();m(function(){f!=null&&c("LsFrxMessengerFeedbackProactiveWarningBannerShownFalcoEvent").log(function(){var a;return{data:babelHelpers["extends"]({},f.falco_event_data.data,{mute_duration:(a=f.falco_event_data.data.mute_duration)==null?void 0:a.toString(),selected_messages_count:(a=f.falco_event_data.data.selected_messages_count)==null?void 0:a.toString()}),impersonated_user:f.falco_event_data.impersonatedUser,other_user:f.falco_event_data.otherUser,reported_user:f.falco_event_data.reportedUser,thread:f.falco_event_data.thread}})},[f]);if(f==null)return b;a=h._("__JHASH__I2SwG7QkbS2__JHASH__",[h._param("header value",f.header)]);b=h._("__JHASH__kg4ss1ruH19__JHASH__",[h._param("message value",f.description)]);var o=l.jsx("div",{className:(j||(j=c("stylex")))(n.button,!1),children:l.jsx(c("IXTProactiveWarningFollowUpActionsCell.react"),{context:f.context,label:f.cta1Title,onClose:e,onPress:function(){c("LsFrxMessengerFeedbackProactiveWarningBannerSecondaryActionTappedFalcoEvent").log(function(){var a;return{data:babelHelpers["extends"]({},f.falco_event_data.data,{mute_duration:(a=f.falco_event_data.data.mute_duration)==null?void 0:a.toString(),selected_messages_count:(a=f.falco_event_data.data.selected_messages_count)==null?void 0:a.toString()}),impersonated_user:f.falco_event_data.impersonatedUser,other_user:f.falco_event_data.otherUser,reported_user:f.falco_event_data.reportedUser,thread:f.falco_event_data.thread}})},setPWDismissTime:function(){c("promiseDone")(g.runInTransaction(function(a){return c("LSSetProactiveWarningDismissTimeStoredProcedure")(c("LSFactory")(a),{threadKey:k})},"readwrite"),e,e)}})}),p=l.jsx("div",{className:j(n.button,!1),children:l.jsx(c("TetraButton.react"),{label:h._("__JHASH__lh-XuPg59Gs__JHASH__",[h._param("CTA text value",f.cta2Title)]),onPress:function(){c("LsFrxMessengerFeedbackProactiveWarningBannerPrimaryActionTappedFalcoEvent").log(function(){var a;return{data:babelHelpers["extends"]({},f.falco_event_data.data,{mute_duration:(a=f.falco_event_data.data.mute_duration)==null?void 0:a.toString(),selected_messages_count:(a=f.falco_event_data.data.selected_messages_count)==null?void 0:a.toString()}),impersonated_user:f.falco_event_data.impersonatedUser,other_user:f.falco_event_data.otherUser,reported_user:f.falco_event_data.reportedUser,thread:f.falco_event_data.thread}}),c("promiseDone")(g.runInTransaction(function(a){return c("LSSetProactiveWarningDismissTimeStoredProcedure")(c("LSFactory")(a),{threadKey:f.threadKey})},"readwrite"),e,e)},reduceEmphasis:!1,size:"medium",type:"secondary"})});b=l.jsxs(l.Fragment,{children:[l.jsx(c("MDSTextPairing.react"),{body:l.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body4",children:b}),headline:l.jsx(c("MWXText.react"),{color:"primary",type:"bodyLink4",children:a}),level:4,textAlign:"center"}),l.jsxs("div",{className:"x78zum5 x1q0g3np x1qughib x14vqqas xh8yej3",children:[o,p]})]});return l.jsx("div",{className:"xzg4506 xi81zsa x14vqqas xyinxu5 xho0xa1 xxbrewl x1vobaek",children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPSafetyNoticesChatBlockedComposer.react",["MWPSafetyNoticesChatBlockedComposerDetails.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.fallback,d=a.onClose;a=a.thread;return i.jsx(c("MWPSafetyNoticesChatBlockedComposerDetails.react"),{fallback:b,onClose:d,thread:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWReQLChatComposerGroupMessageRequestInfoText.react",["MWChatComposerGroupMessageRequestInfoText.react","MWLSThread","MWThreadKey.react","isMWXacGroupThread","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.onDeleteConversation;a=a.onLeaveGroup;var e=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),f=d("MWLSThread").useThreadExn(e),g=c("isMWXacGroupThread")(f);return i.jsx(c("MWChatComposerGroupMessageRequestInfoText.react"),{folderName:f.folderName,hasAddXacUsersCapabilitiy:g,onDeleteConversation:b,onLeaveGroup:a,threadKey:e,threadType:f.threadType})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWReQLComposerUserMessageRequestInfoText.react",["fbt","I64","LSContactTypeExact","LSIntEnum","MWContactDetails","MWLSChatComposerUserMessageRequestInfoText.react","MWLSContactTypeExactUtils","MessageRequestsLog","ReQL","ReQLSuspense","isStringNullOrEmpty","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=j||(j=d("react")),n=j.useEffect;function a(a){var b,e,g=a.onDeleteConversation,j=a.thread;a=(l||(l=d("I64"))).to_string(j.threadKey);var o=a,p=(i||(i=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(p.table("contacts")).getKeyRange((l||(l=d("I64"))).of_string(o))},[o,p],f.id+":37");b=(b=d("MWContactDetails").getName(a))!=null?b:h._("__JHASH__AaE4hJExM0x__JHASH__");e=(e=d("MWContactDetails").getShortName(a))!=null?e:h._("__JHASH__AaE4hJExM0x__JHASH__");var q=d("MWContactDetails").getSecondaryName(a);q=c("isStringNullOrEmpty")(q)?void 0:q;var r=a!=null?d("MWLSContactTypeExactUtils").isIgContact(a.contactTypeExact):!1;a=(a==null?void 0:a.contactTypeExact)!=null&&(l||(l=d("I64"))).equal(a.contactTypeExact,(k||(k=d("LSIntEnum"))).ofNumber(c("LSContactTypeExact").MESSENGER_ONLY_NOT_ALLOWED_ON_FB));n(function(){d("MessageRequestsLog").logMessageRequestInfoShown(j)},[j]);return m.jsx(c("MWLSChatComposerUserMessageRequestInfoText.react"),{isIgContact:r,isMSplitContact:a,name:b,onDeleteConversation:g,secondaryName:q,shortName:e,thread:j})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWMarketplaceThreadOtherUser",["I64","LSIntEnum","MWPActor.react","MessagingThreadSubtype","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function a(a){var b=a.thread,e=(j||(j=c("useReStore")))(),g=d("MWPActor.react").useActor();return d("ReQLSuspense").useFirst(function(){return b.threadSubtype!=null&&(h||(h=d("I64"))).equal(b.threadSubtype,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingThreadSubtype").MARKETPLACE_THREAD))?d("ReQL").mergeJoin(d("ReQL").fromTableAscending(e.table("participants")).getKeyRange(b.threadKey),d("ReQL").fromTableAscending(e.table("contacts"))).filter(function(a){a[0];a=a[1];return!(h||(h=d("I64"))).equal(a.id,g)}).map(function(a){a[0];a=a[1];return a}):d("ReQL").empty()},[b.threadKey,e,g,b.threadSubtype],f.id+":31")}g["default"]=a}),98); __d("useMWPFeatureLimitComposerBlockHeaderText",["fbt","I64","useServerTime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=60*60*1e3,k=24*j,l=23*j,m=1e3;function a(a,b){var e=c("useServerTime")().valueOf();a=a!=null?(i||(i=d("I64"))).to_float(a.expirationTimestampSeconds)*1e3:e;a=a-e;if(a<=l){e=Math.ceil(Math.max(a,j)/j);return b?h._("__JHASH__MtDrzd4mllU__JHASH__",[h._plural(e,"number")]):h._("__JHASH__Oh7AJclyvOB__JHASH__",[h._plural(e,"number")])}else{e=Math.ceil(Math.max(a,k)/k);return e>=m?h._("__JHASH__XJkVHKZY5be__JHASH__"):b?h._("__JHASH__DoFdcIuVM_E__JHASH__",[h._plural(e,"number")]):h._("__JHASH__RWH0KbM4haJ__JHASH__",[h._plural(e,"number")])}}g["default"]=a}),98); __d("MWChatUnavailableComposer.react",["fbt","ComponentMountUnmountSubspanLogger.react","MWBlockedComposerLogging","MWXText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.reason;a=a.thread;d("MWBlockedComposerLogging").useLogMWBlockedComposerReason({threadKey:a.threadKey},b);a=h._("__JHASH__FoZB3MxTOU9__JHASH__");return j.jsxs("div",{className:"x1exxf4d x13fuv20 x178xt8z xi81zsa x14vqqas xyinxu5 xho0xa1 xxbrewl x1vobaek",children:[j.jsx(c("ComponentMountUnmountSubspanLogger.react"),{description:"MWChatUnavailableComposer"}),j.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body4",children:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPFeatureLimitLoggingUtils",["I64","Int64Hooks","LSFeatureLimitsType","LSIntEnum","LSMessagingThreadTypeUtil","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=c("requireDeferred")("MwbActorExperienceEventFalcoEvent").__setRef("MWPFeatureLimitLoggingUtils");function a(a,b,c){var e=k(c);return d("Int64Hooks").useCallbackInt64(function(){var c;l({action:1,restriction_type:a,surface:e,thread_id:(h||(h=d("I64"))).to_string((c=b)!=null?c:(h||(h=d("I64"))).zero)})},[b,a,e])}function b(a,b,c){var e=k(c);return d("Int64Hooks").useCallbackInt64(function(){var c;l({action:2,restriction_type:a,surface:e,thread_id:(h||(h=d("I64"))).to_string((c=b)!=null?c:(h||(h=d("I64"))).zero)})},[b,a,e])}function e(a){if(a)if((h||(h=d("I64"))).equal(a.type_,(i||(i=d("LSIntEnum"))).ofNumber(c("LSFeatureLimitsType").MESSAGE_SEND_PRIVATE)))return 40;else if((h||(h=d("I64"))).equal(a.type_,(i||(i=d("LSIntEnum"))).ofNumber(c("LSFeatureLimitsType").MESSAGE_SEND_PUBLIC)))return 39;else return 6;return 0}function k(a){if(a){var b=d("LSMessagingThreadTypeUtil").isSecure(a),c=d("LSMessagingThreadTypeUtil").isOneToOne(a);if(c)return b?"messenger_encrypted_direct_thread":"messenger_direct_thread_details";c=d("LSMessagingThreadTypeUtil").isGroup(a);a=d("LSMessagingThreadTypeUtil").isPublicCMThread(a);if(c)return b?"messenger_encrypted_group_thread":a?"messenger_public_cm_chat":"messenger_group_thread_details"}return"unknown"}function l(a){var b=a.action,c=a.restriction_type,d=a.surface,e=a.thread_id;j.onReady(function(a){return a.log(function(){return{action:b,restriction_type:c,surface:d,thread_id:e}})})}g.useLogFeatureLimitComposerImpression=a;g.useLogViewCommunityStandards=b;g.getRestrictionTypeFromFeatureLimit=e}),98); __d("MWPFeatureLimitsBlockedComposer.react",["fbt","I64","LSFeatureLimitsType","LSIntEnum","MWBlockedComposerLogging","MWPActor.react","MWPFeatureLimitLoggingUtils","MWPFeatureLimitedData","MWXButton.react","MWXText.react","MWXTextPairing.react","react","useMWPFeatureLimitComposerBlockHeaderText","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||d("react");function a(a){a=a.thread;d("MWBlockedComposerLogging").useLogMWBlockedComposerReason(a,d("MWBlockedComposerLogging").ComposerBlockingReason.FEATURE_LIMITED_TO_READONLY);var b=d("MWPFeatureLimitedData").useReadOnlyFeatureLimitDataWithThreadType(a==null?void 0:a.threadType),e=d("MWPActor.react").isAPPlus();e=b!=null&&(j||(j=d("I64"))).equal(b.type_,(k||(k=d("LSIntEnum"))).ofNumber(c("LSFeatureLimitsType").MESSAGE_SEND_PUBLIC))&&e;var f=c("useMWPFeatureLimitComposerBlockHeaderText")(b,e);b=d("MWPFeatureLimitLoggingUtils").getRestrictionTypeFromFeatureLimit(b);var g=d("MWPFeatureLimitLoggingUtils").useLogFeatureLimitComposerImpression(b,a==null?void 0:a.threadKey,a==null?void 0:a.threadType);b=d("MWPFeatureLimitLoggingUtils").useLogViewCommunityStandards(b,a==null?void 0:a.threadKey,a==null?void 0:a.threadType);a=c("useSinglePartialViewImpression")({onImpressionStart:g});g=h._("__JHASH__7_EenTF_FJG__JHASH__");var i=h._("__JHASH__phCVAIUGUlz__JHASH__"),m={target:"_blank",url:"https://www.facebook.com/communitystandards/"},n=e?h._("__JHASH__9oilSt_qVYo__JHASH__"):h._("__JHASH___Q1doHhXtgm__JHASH__");return l.jsxs("div",{className:"x1exxf4d x13fuv20 x178xt8z xi81zsa xk9mzb7 xz9dl7a xqmdsaz xsag5q8 x1xfsgkm",ref:a,children:[l.jsx(c("MWXTextPairing.react"),{body:l.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body4",children:e?i:g}),headline:l.jsx(c("MWXText.react"),{color:"secondary",type:"body4",children:l.jsxs("span",{className:"x117nqv4",children:[" ",f," "]})}),level:4,textAlign:"center"}),l.jsx("div",{className:"x78zum5 xw7yly9",children:l.jsx(c("MWXButton.react"),{label:n,linkProps:m,onPress:b,type:"secondary"})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXACSunsettedComposer.react",["fbt","BaseTheme.react","MWXLink.react","MWXText.react","MWXTextPairing.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={dark:{"primary-text":"#e4e6eb","secondary-text":"#b0b3b8"},light:{"primary-text":"rgba(0, 0, 0, 0.7)","secondary-text":"rgba(0, 0, 0, 0.5)"},type:"VARIABLES"};function a(){var a=h._("__JHASH__E5yAiYeCVHB__JHASH__",[h._param("=Learn more",j.jsx(c("MWXLink.react"),{href:"https://www.facebook.com/help/messenger-app/619453488713104?ref=learn_more",children:j.jsx(c("MWXText.react"),{color:"blueLink",type:"bodyLink4",children:h._("__JHASH__W_KwwnBzw9K__JHASH__")})}))]);return j.jsx("div",{className:"x1exxf4d x13fuv20 x178xt8z xqy66fx xc73u3c xx6bls6 x5ib6vp",children:j.jsx(c("BaseTheme.react"),{config:k,children:j.jsx(c("MWXTextPairing.react"),{body:j.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body4",children:a}),level:4,textAlign:"center"})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWEditChannelDialog.entrypoint",["JSResourceForInteraction","MWEditChannelDialogQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.threadID;return{queries:{queryReference:{options:{fetchPolicy:"network-only"},parameters:c("MWEditChannelDialogQuery$Parameters"),variables:{threadID:a}}}}},root:c("JSResourceForInteraction")("MWEditChannelDialog.react").__setRef("MWEditChannelDialog.entrypoint")};g["default"]=a}),98); __d("MWGroupMembershipListItem",["I64","MessagingSpecialThreadRole","MessagingSpecialThreadRoleBitOffset"],(function(a,b,c,d,e,f,g){"use strict";var h,i={BroadcastChannelParticipant:"broadcastChannelParticipantType",CommunityMember:"communityMemberType",ParticipantAndContact:"participantAndContactType",ServerSearchResult:"serverSearchResultType"};function a(a){if(a.type===i.ParticipantAndContact)return a.participant.isAdmin;if(a.type===i.CommunityMember)return a.communityMember.isAdmin;return a.type===i.BroadcastChannelParticipant?a.participant.isAdmin:!1}function b(a){if(a.type===i.ParticipantAndContact)return a.participant.isModerator;return a.type===i.CommunityMember?a.communityMember.isModerator:!1}function e(a){return a.type===i.CommunityMember?d("MessagingSpecialThreadRoleBitOffset").has(c("MessagingSpecialThreadRole").CHAT_HOST,a.communityMember):!1}function f(a){if(a.type===i.ParticipantAndContact)return a.contact.id;if(a.type===i.CommunityMember)return a.communityMember.contactId;return a.type===i.BroadcastChannelParticipant?a.participant.contactId:(h||(h=d("I64"))).of_string(a.serverSearchResult.resultId)}g.MWGroupMembershipMemberTypes=i;g.isAdmin=a;g.isModerator=b;g.isHost=e;g.contactId=f}),98); __d("MWGroupMembershipListItemWrapper",["MWGroupMembershipListItem"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a.tag){case"ParticipantAndContact":return{contact:a.value[1],participant:a.value[0],type:d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact};case"CommunityMember":return{communityMember:a.value,type:d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.CommunityMember};case"ServerSearchResult":return{serverSearchResult:a.value,type:d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ServerSearchResult};case"BroadcastChannelParticipant":return{participant:a.value,type:d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.BroadcastChannelParticipant}}}g.tToRE=a}),98); __d("MWLSGroupMembershipDialog.entrypoint",["JSResourceForInteraction","MWLSGroupMembershipDialogQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.groupID;return{queries:{queryRef:{parameters:c("MWLSGroupMembershipDialogQuery$Parameters"),variables:{groupID:a}}}}},root:c("JSResourceForInteraction")("MWLSGroupMembershipDialog.react").__setRef("MWLSGroupMembershipDialog.entrypoint")};g["default"]=a}),98); __d("BaseInfiniteScrollList.react",["BaseScrollableAreaContext","CometDialogContext","CometInfiniteScrollTrigger.react","CometScrollableArea.react","FBLogger","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(a){var b=a.items,d=a.loadingIndicator,e=a.onScroll,f=a.onScrollBottom,g=a.onScrollTop,h=a.renderItem,k=a.role,l=a.testid;l=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,["items","loadingIndicator","onScroll","onScrollBottom","onScrollTop","renderItem","role","testid","xstyle"]);var m=j(c("CometDialogContext")),n=j(c("BaseScrollableAreaContext"));m==null&&n.length>0&&c("FBLogger")("comet_ui").blameToPreviousFrame().warn("For XPlat React compatibility, BaseInfiniteScrollList should not be nested inside scrollable containers such as BaseScrollableArea with the same orientation. It may cause unexpected behaviors and break infinite scroll in React Native platforms.");return i.jsxs(c("CometScrollableArea.react"),{horizontal:!1,onScroll:e,onScrollBottom:f,onScrollTop:g,role:k,testid:void 0,xstyle:l,children:[b.map(h),i.jsx(c("CometInfiniteScrollTrigger.react"),babelHelpers["extends"]({},a,{children:d}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSInfiniteScrollList.react",["BaseInfiniteScrollList.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsx(c("BaseInfiniteScrollList.react"),babelHelpers["extends"]({},a))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWLSGroupMembershipMemberCellProfilePhoto.react",["fbt","IntlVariations","MWXProfilePhoto.react","MWXTooltip.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.linkProps,d=a.name,e=a.profilePictureUrl;a=a.showTooltip;b=j.jsx(c("MWXProfilePhoto.react"),{alt:d,"aria-label":h._("__JHASH__5FWHZ8StuMQ__JHASH__",[h._name("name",d,c("IntlVariations").GENDER_UNKNOWN)]),linkProps:b,shape:"circle",size:36,source:{uri:e}});return a?j.jsx(c("MWXTooltip.react"),{position:"above",tooltip:h._("__JHASH__gvt-u-jxLjT__JHASH__",[h._name("name",d,c("IntlVariations").GENDER_UNKNOWN)]),children:b}):b}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWLSGroupMembershipMenu.entrypoint",["JSResourceForInteraction","useMWLSGroupMembershipMenuQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.groupID;a=a.userID;return{queries:{groupMembershipMenuQueryRef:{parameters:c("useMWLSGroupMembershipMenuQuery$Parameters"),variables:{groupID:b,userID:a}}}}},root:c("JSResourceForInteraction")("MWLSGroupMembershipMenu.react").__setRef("MWLSGroupMembershipMenu.entrypoint")};g["default"]=a}),98); __d("MWLSGroupMembershipMemberCell.react",["fbt","CometMiddotSeparator.react","GenderConst","I64","LSContactBlockedByViewerStatus","LSContactGenderToGenderConst","LSGroupParticipantJoinState","LSIntEnum","LSWhatsAppConnectStatus","MAWThreadCutover","MWCMThreadTypes.react","MWGroupMembershipListItem","MWInboxRouteBuilder","MWLSContactTypeExactUtils","MWLSGroupMembershipMemberCellProfilePhoto.react","MWLSGroupMembershipMenu.entrypoint","MWPActor.react","MWXCircleButton.react","MWXEntryPointPopoverTrigger.react","MWXIconDots3Horizontal","MWXListCell.react","MWXText.react","MWXTextPairing.react","getFBTSafeGenderFromGenderConst","getLSMediaContactProfilePictureUrl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||(i=d("react")),m=i.useMemo,n=h._("__JHASH__3WTOYPxVm2l__JHASH__"),o=h._("__JHASH__J1b76x4xKfs__JHASH__"),p=h._("__JHASH__d3jtAkHct5c__JHASH__");function q(a,b){return m(function(){if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ServerSearchResult&&a.serverSearchResult.contextLine!=="")return[l.jsx(l.Fragment,{children:a.serverSearchResult.contextLine})];var e=b.filter(function(a){return a!=null});return e.length>0?l.jsx(c("CometMiddotSeparator.react"),{children:e}):null},[a,b])}function r(a){if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact){var b=a.contact,e=a.participant,f=b.blockedByViewerStatus,g=b.contactTypeExact,h=b.gender,i=b.name,l=b.secondaryName,m=b.waConnectStatus,n=e.groupParticipantJoinState,o=e.isSuperAdmin;e=e.subscribeSource;return{gender:c("LSContactGenderToGenderConst")(h),isBlocked:!(j||(j=d("I64"))).equal(f,(k||(k=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED)),isInvitedByViewer:j.equal(n,k.ofNumber(c("LSGroupParticipantJoinState").INVITED)),isSuperAdmin:o===!0,name:i,nonWaAddressable:j.equal(m,k.ofNumber(c("LSWhatsAppConnectStatus").WHATSAPP_NOT_ADDRESSABLE)),profilePictureUrl:c("getLSMediaContactProfilePictureUrl")(b),secondaryName:l!=null&&d("MWLSContactTypeExactUtils").isIgContact(g)?l:null,subscribeSource:(h=e)!=null?h:null}}if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.CommunityMember){f=a.communityMember;n=f.isBlocked;o=f.name;i=f.nickname;m=f.profilePictureUrl;return{gender:c("GenderConst").NOT_A_PERSON,isBlocked:(b=n)!=null?b:!1,isInvitedByViewer:!1,isSuperAdmin:!1,name:(g=i)!=null?g:o,nonWaAddressable:!1,profilePictureUrl:(l=m)!=null?l:"",secondaryName:i!=null?o:null,subscribeSource:null}}if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.BroadcastChannelParticipant){e=a.participant;h=e.isBlocked;f=e.name;n=e.nickname;b=e.profilePictureUrl;g=e.profilePictureUrlFallback;return{gender:c("GenderConst").NOT_A_PERSON,isBlocked:(m=h)!=null?m:!1,isInvitedByViewer:!1,isSuperAdmin:!1,name:(l=n)!=null?l:f,nonWaAddressable:!1,profilePictureUrl:(o=(i=b)!=null?i:g)!=null?o:"",secondaryName:null,subscribeSource:null}}e=a.serverSearchResult;h=e.displayName;m=e.profilePicUrl;return{gender:c("GenderConst").NOT_A_PERSON,isBlocked:!(j||(j=d("I64"))).equal(e.blockedByViewerStatus,(k||(k=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED)),isInvitedByViewer:!1,isSuperAdmin:!1,name:h,nonWaAddressable:!1,profilePictureUrl:(n=m)!=null?n:"",secondaryName:null,subscribeSource:null}}function s(a,b,c,e,f,g){var i,j,k;i=(i=d("MWGroupMembershipListItem").isAdmin(a))!=null?i:!1;j=(j=d("MWGroupMembershipListItem").isModerator(a))!=null?j:!1;k=(k=d("MWGroupMembershipListItem").isHost(a))!=null?k:!1;a=r(a);var l=a.isInvitedByViewer,m=a.isSuperAdmin,q=a.nonWaAddressable;a=a.subscribeSource;if(b&&q&&!l)return h._("__JHASH__YJ7dDY2F-1___JHASH__").toString();if(b&&!q&&l)return h._("__JHASH__XW-fqo6HqSP__JHASH__").toString();if(a!=null&&m)return c?n:a;if(i&&e)return n;if(j&&g)return o;return k&&f?p:null}function a(a){var b=a.canMessageUser,e=a.folder,f=a.isMAWParticipantSuperAdmin,g=a.isSecure,i=a.membershipListItem,k=a.onClose,m=a.showAdminIndicator,n=a.showHostIndicator;n=n===void 0?!1:n;var o=a.showInvitedByViewerOnly;o=o===void 0?!1:o;var p=a.showModeratorIndicator;a=a.thread;var t=d("MWPActor.react").useActor(),u=(j||(j=d("I64"))).to_string(d("MWGroupMembershipListItem").contactId(i)),v=d("MAWThreadCutover").useGetCutoverSecureThreadKey(u);v=v!=null?d("MWInboxRouteBuilder").buildE2EEThreadURL({thread_key:v}):d("MWInboxRouteBuilder").buildURL({thread_key:u});var w=r(i),x=w.gender,y=w.isBlocked,z=w.isInvitedByViewer,A=w.isSuperAdmin,B=w.name,C=w.profilePictureUrl,D=w.secondaryName;w=w.subscribeSource;var E=d("MWCMThreadTypes.react").isJoinedCMThread(a.threadType);D=q(i,[D,s(i,g,E,m,n,p),y?h._("__JHASH__iywW1hlnypb__JHASH__"):null,w!=null&&!A&&!E?w:null]);m=g&&z&&!o;return l.jsx(c("MWXListCell.react"),{addOnEnd:l.jsx(c("MWXEntryPointPopoverTrigger.react"),{align:"end",entryPointParams:{groupID:j.to_string((n=e==null?void 0:e.fbGroupId)!=null?n:(j||(j=d("I64"))).zero),userID:j.to_string(t)},otherProps:{folder:e,isMAWParticipantSuperAdmin:f,membershipListItem:i,onCloseDialog:k,thread:a},popoverEntryPoint:c("MWLSGroupMembershipMenu.entrypoint"),popoverType:"menu",preloadTrigger:"button",children:function(a,b,d,e,f,g,i){return l.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconDots3Horizontal"),label:h._("__JHASH__-R08aUV4n3s__JHASH__",[h._name("name",B,c("getFBTSafeGenderFromGenderConst")(x))]),onHoverIn:e,onHoverOut:function(){return f==null?void 0:f()},onPress:function(){return b()},onPressIn:g,ref:a,size:36,testid:void 0,type:"deemphasized"})}}),addOnEndVerticalAlign:"center",addOnStart:l.jsx(c("MWLSGroupMembershipMemberCellProfilePhoto.react"),{linkProps:b?{onNavigate:k,url:v}:void 0,name:B,profilePictureUrl:C,showTooltip:b}),content:D!=null?l.jsx(c("MWXTextPairing.react"),{body:l.jsx(c("MWXText.react"),{color:m?"disabled":"secondary",type:"body4",children:D}),headline:l.jsx(c("MWXText.react"),{color:m?"disabled":"primary",type:"headline4",children:B}),level:4}):l.jsx(c("MWXText.react"),{align:"start",numberOfLines:1,type:"headline4",children:B}),size:"medium",testid:void 0},u)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWMemberListGlimmer.react",["MWXGlimmer.react","MWXListCell.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={nameGlimmer:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xlup9mm",width:"x1oux285",$$css:!0},profileGlimmer:{borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",height:"xc9qbxq",width:"x14qfxbe",$$css:!0}};function a(a){a=a.rowCount;a=a===void 0?3:a;return i.jsx(i.Fragment,{children:new Array(a).fill("").map(function(a,b){return i.jsx(c("MWXListCell.react"),{addOnStart:i.jsx(c("MWXGlimmer.react"),{index:0,xstyle:j.profileGlimmer}),content:i.jsx(c("MWXGlimmer.react"),{index:1,xstyle:j.nameGlimmer}),size:"medium"},b)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMAWGetGroupSuperAdmin",["Int64Hooks","MAWMiActOnActThreadReadyDeferred","cr:7003","promiseDone","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,e,f){var g=(h||(h=c("useReStore")))();d("Int64Hooks").useEffectInt64(function(){if(b("cr:7003")!=null&&e){var d=b("cr:7003").sendAndReceive;c("promiseDone")(c("MAWMiActOnActThreadReadyDeferred")(g,a,"MWLSGroupMembershipMemberList.bs",function(a,b,c){return d("backend","getGroupSuperAdmin",{threadId:b}).then(function(a){return f(a)})}))}},[g,e,f,a])}g["default"]=a}),98); __d("MWLSGroupMembershipMemberList.react",["fbt","I64","LSGroupParticipantJoinState","LSIntEnum","LSMessagingThreadTypeUtil","MDSInfiniteScrollList.react","MWDialogTextPairing.react","MWGroupMembershipListItem","MWLSGroupMembershipMemberCell.react","MWMemberListGlimmer.react","MWPActor.react","emptyFunction","react","react-strict-dom","useMAWGetGroupSuperAdmin"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||(i=d("react"));b=i;var m=b.useCallback,n=b.useState,o={noHosts:{alignItems:"x6s0dn4",alignSelf:"xamitd3",display:"x78zum5",flexGrow:"x1iyjqo2",height:"x1egiwwb",justifyContent:"xl56j7k",marginTop:"x1jxqc7s",width:"xdzyupr",$$css:!0}};function a(a){var b=a.disableScroll;b=b===void 0?!1:b;var e=a.doSortParticipants;e=e===void 0?!0:e;var f=a.folder,g=a.hasMore;g=g===void 0?!1:g;var i=a.isLoading;i=i===void 0?!1:i;var p=a.onClose,q=p===void 0?c("emptyFunction"):p;p=a.onLoadMore;p=p===void 0?c("emptyFunction"):p;var r=a.participantsAndContacts,s=a.showAdmodIndicator,t=a.showAdmodsOnly,u=a.showHostsOnly,v=a.showInvitedByViewerOnly,w=a.thread;a=n(c("emptyFunction"));var x=a[0];a=a[1];var y=d("MWPActor.react").isAPPlus();t=t?r.filter(function(a){var b;b=(b=d("MWGroupMembershipListItem").isAdmin(a))!=null?b:!1;a=(a=d("MWGroupMembershipListItem").isModerator(a))!=null?a:!1;return b||a}):v?r.filter(function(a){a=a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact?a.participant.groupParticipantJoinState:(j||(j=d("LSIntEnum"))).ofNumber(c("LSGroupParticipantJoinState").MEMBER);return(k||(k=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSGroupParticipantJoinState").INVITED))}):u?r.filter(function(a){return(a=d("MWGroupMembershipListItem").isHost(a))!=null?a:!1}):r;r=e?t.slice(0).sort(function(a,b){if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact&&b.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact)return a.contact.name.localeCompare(b.contact.name);if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.CommunityMember&&b.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.CommunityMember)return a.communityMember.name.localeCompare(b.communityMember.name);return a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ServerSearchResult&&b.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ServerSearchResult?a.serverSearchResult.displayName.localeCompare(b.serverSearchResult.displayName):0}):t;var z=d("LSMessagingThreadTypeUtil").isSecure(w.threadType);c("useMAWGetGroupSuperAdmin")(w.threadKey,z,a);e=m(function(a){var b=d("MWGroupMembershipListItem").contactId(a);return l.jsx(c("MWLSGroupMembershipMemberCell.react"),{canMessageUser:!y,folder:f,isMAWParticipantSuperAdmin:z&&x!=null?x===(k||(k=d("I64"))).to_string(b):!1,isSecure:z,membershipListItem:a,onClose:q,showAdminIndicator:s,showHostIndicator:s,showInvitedByViewerOnly:v,showModeratorIndicator:s,thread:w},(k||(k=d("I64"))).to_string(b))},[f,y,z,q,s,v,x,w]);return r.length===0&&u&&i===!1&&g===!1?l.jsx(d("react-strict-dom").html.div,{style:o.noHosts,children:l.jsx(c("MWDialogTextPairing.react"),{body:h._("__JHASH__M-jFobtfz3M__JHASH__"),bodyColor:"secondary",headline:h._("__JHASH__7DQH5InZyqq__JHASH__"),textAlign:"center"})}):b?r.map(e):l.jsx(c("MDSInfiniteScrollList.react"),{hasMore:g,isLoading:i,items:r,loadingIndicator:l.jsx(c("MWMemberListGlimmer.react"),{}),onLoadMore:p,renderItem:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSClearDiscoverableChatsParticipantsAndRanges",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[];return b.sequence([function(a){return b.sequence([function(a){return b.forEach(b.db.table(248).fetch(),function(a){return a["delete"]()})},function(a){return b.forEach(b.db.table(249).fetch(),function(a){return a["delete"]()})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSClearDiscoverableChatsParticipantsAndRangesStoredProcedure",["LSClearDiscoverableChatsParticipantsAndRanges"],(function(a,b,c,d,e,f,g){function a(a){return c("LSClearDiscoverableChatsParticipantsAndRanges")(a)}g["default"]=a}),98); __d("LSUpsertDiscoverableChatsParticipantsRanges",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[];return b.sequence([function(c){return b.db.table(249).put({threadId:a[0],minName:"",source:a[4],maxName:a[5],isLoadingBefore:!1,isLoadingAfter:a[2],hasMoreBefore:!1,hasMoreAfter:a[1],nextPageCursor:a[3]})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSFetchDiscoverableChatParticipants",["LSIssueNewTask","LSUpsertDiscoverableChatsParticipantsRanges"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(d){return c.storedProcedure(b("LSUpsertDiscoverableChatsParticipantsRanges"),a[0],!1,!0,"",a[2],a[3])},function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[0].set("cursor",a[1]),d[0].set("source",a[2]),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),"fetch_discoverable_chat_participant_list",c.i64.cast([0,110006]),d[1],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSFetchDiscoverableChatParticipantsStoredProcedure",["LSFetchDiscoverableChatParticipants"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;d[1]=b.cursor;d[2]=b.source;d[3]=b.maxName;return c("LSFetchDiscoverableChatParticipants").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MWParticipantsForBroadcastChannelUtils",["Int64Hooks","LSClearDiscoverableChatsParticipantsAndRangesStoredProcedure","LSFactory","LSFetchDiscoverableChatParticipantsStoredProcedure","LSIntEnum","LSMessagingThreadTypeUtil","ReQL","ReQLSuspense","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(j||d("react")).useCallback;function a(a,b){var e=(h||(h=c("useReStore")))();d("Int64Hooks").useEffectInt64(function(){d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(a.threadType)&&c("promiseDone")(e.runInTransaction(function(e){return c("LSFetchDiscoverableChatParticipantsStoredProcedure")(c("LSFactory")(e),{cursor:"",maxName:"",source:(i||(i=d("LSIntEnum"))).ofNumber(b),threadKey:a.threadKey})},"readwrite"))},[e,b,a.threadKey,a.threadType])}function b(){var a=(h||(h=c("useReStore")))();return k(function(){return a.runInTransaction(function(a){return c("LSClearDiscoverableChatsParticipantsAndRangesStoredProcedure")(c("LSFactory")(a))},"readwrite")},[a])}function e(a){var b=(h||(h=c("useReStore")))();return d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(b.table("discoverable_chat_participants_ranges_v2__generated")).getKeyRange(a)},[b,a],f.id+":75")}g.useFetchBroadcastChannelMembers=a;g.useClearBroadcastChannelParticipantsList=b;g.useMWParticipantsForBroadcastChannelRanges=e}),98); __d("MWCMInboxInfoMemberList.react",["fbt","I64","LSMessagingThreadTypeUtil","MWGroupMembershipListItemWrapper","MWLSGroupMembershipDialog.entrypoint","MWLSGroupMembershipMemberList.react","MWMemberListGlimmer.react","MWPBumpEntityKey","MWParticipantsForBroadcastChannelUtils","MWXIconForListCell.react","MWXIconGroup","MWXListCellPressable.react","MWXText.react","ReQL","ReQLSuspense","pageID","promiseDone","react","useCommunityMembers","useMWXEntryPointDialog","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||(j=d("react")),m=j.useEffect,n="inbox_info_member_list_"+c("pageID"),o=(k||(k=d("I64"))).of_int32(7);function a(a){var b=a.folder,e=a.thread,g=(i||(i=c("useReStore")))(),j=b==null?e.threadKey:b.folderId;d("useCommunityMembers").useFetchCommunityMembers({communityIdOrThreadKey:j,requestId:n,source:o,thread:e});var p=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(g.table("community_members").index("communitySource")).getKeyRange(j,o,n).take(15)},[g,j],f.id+":81");d("MWParticipantsForBroadcastChannelUtils").useFetchBroadcastChannelMembers(e,0);a=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(g.table("discoverable_chat_participants")).getKeyRange(e.threadKey).take(15)},[g,e.threadKey],f.id+":93");var q=d("useCommunityMembers").useClearMemberList(),r=d("MWParticipantsForBroadcastChannelUtils").useClearBroadcastChannelParticipantsList(),s=(k||(k=d("I64"))).to_string(e.threadKey),t=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(e.threadType);t=t?a.map(function(a){return d("MWGroupMembershipListItemWrapper").tToRE({tag:"BroadcastChannelParticipant",value:a})}):p.map(function(a){return d("MWGroupMembershipListItemWrapper").tToRE({tag:"CommunityMember",value:a})});m(function(){c("promiseDone")(q(n));c("promiseDone")(r());return function(){c("promiseDone")(q(n)),c("promiseDone")(r())}},[s,q,r]);m(function(){p.length>0&&d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.cm.member_list","community_members_loaded")},[p.length]);var u={folder:b};s=c("useMWXEntryPointDialog")(c("MWLSGroupMembershipDialog.entrypoint"),{groupID:k.to_string((a=b==null?void 0:b.fbGroupId)!=null?a:(k||(k=d("I64"))).zero)});var v=s[0],w=function(){return v(u)};return t.length===0?l.jsx(c("MWMemberListGlimmer.react"),{}):l.jsxs(l.Fragment,{children:[l.jsx(c("MWLSGroupMembershipMemberList.react"),{disableScroll:!0,doSortParticipants:!1,participantsAndContacts:t,showAdmodIndicator:!0,showAdmodsOnly:!1,showHostsOnly:!1,showInvitedByViewerOnly:!1,thread:e}),l.jsx(c("MWXListCellPressable.react"),{addOnStart:l.jsx("div",{className:"x6s0dn4 xljulmy x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 xc9qbxq xl56j7k x14qfxbe",children:l.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconGroup")})}),content:l.jsx(c("MWXText.react"),{type:"headline4",children:h._("__JHASH__BN54OIlz3MA__JHASH__")}),onPress:function(a){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.cm.member_list","see_all"),w()},size:"medium"})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2HeaderSettingsButtonChevron.react",["react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var b=a.color,d=a.size;d=d===void 0?"10px":d;a=a.xstyle;return j.jsx("svg",{"aria-hidden":"true",className:(h||(h=c("stylex")))(a),height:d,viewBox:"0 0 18 10",width:d,children:j.jsx("path",{clipRule:"evenodd",d:"M1 2.414A1 1 0 012.414 1L8.293 6.88a1 1 0 001.414 0L15.586 1A1 1 0 0117 2.414L9.707 9.707a1 1 0 01-1.414 0L1 2.414z",fill:b,fillRule:"evenodd"})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXIconArrowLeft",["MWXSvgIcon","SVGIcon","cr:7459","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:7459")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98); __d("MWXIconArrowRight",["MWXSvgIcon","SVGIcon","cr:7464","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:7464")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98); __d("MWXIconBell",["MWXSvgIcon","SVGIcon","cr:7517","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:7517")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98); __d("SubthreadMuteStrings.react",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";a=h._("__JHASH__PxnspW7lfSv__JHASH__");b=h._("__JHASH__a4XiPEeVjxj__JHASH__");g.muteLabel=a;g.unmuteLabel=b}),98); __d("MWCMLogMuteDuration.react",["C4gEngagementFalcoEvent","I64","MessengerSurfaceType"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(a){var b;return{"1_hour":(b=a.oneHour)!=null?b:"0","15_min":(b=a.fifteenMin)!=null?b:"0","24_hour":(b=a.twentyFourHour)!=null?b:"0","8_hour":(b=a.eightHour)!=null?b:"0",until_i_turn_it_back_on:(b=a.always)!=null?b:"0"}}function j(a){switch(a){case 9e5:return i({fifteenMin:"1"});case 36e5:return i({oneHour:"1"});case 288e5:return i({eightHour:"1"});case 864e5:return i({twentyFourHour:"1"});case-1:return i({always:"1"});default:return i({})}}function a(a){var b=a.groupId,e=a.threadKey,f=a.communityId,g=a.eventType,i=a.surface,k=i===void 0?String(d("MessengerSurfaceType").messenger):i,l=a.source;i=a.duration;a=a.clientExtras;a=a===void 0?{}:a;var m=i===0||i==null?a:babelHelpers["extends"]({},a,j(i));return c("C4gEngagementFalcoEvent").log(function(){return{action:"tap",client_extras:m,community_id:f==null?null:(h||(h=d("I64"))).to_string(f),event:g,group_id:b==null?null:(h||(h=d("I64"))).to_string(b),source:l,surface:k,thread_id:e==null?null:(h||(h=d("I64"))).to_string(e)}})}g.log=a}),98); __d("LSMuteCallsFromThreadImpl",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=c.i64.cast([0,1]):(b=a.item,d[6]=b.syncGroup,c.i64.neq(d[6],void 0)?d[5]=d[6]:d[5]=c.i64.cast([0,1]),d[0]=d[5])})},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("mailbox_type",a[1]),d[2].set("mute_calls_expire_time_ms",a[2]),d[2].set("request_id",a[3]),d[2].set("sync_group",d[0]),d[3]=d[2].get("thread_key"),d[2],d[4]=c.toJSON(d[2]),c.storedProcedure(b("LSIssueNewTask"),c.i64.to_string(d[3]),c.i64.cast([0,229]),d[4],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSMuteCallsFromThread",["LSMuteCallsFromThreadImpl"],(function(a,b,c,d,e,f,g){g["default"]=c("LSMuteCallsFromThreadImpl")}),98); __d("LSMuteCallsFromThreadStoredProcedure",["LSMuteCallsFromThread"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;d[1]=b.mailboxType;d[2]=b.muteCallsExpireTimeMs;d[3]=b.requestId;return c("LSMuteCallsFromThread").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("LSOptimisticMuteThreadImpl",["LSIssueNewTaskWithExtraOperationsAndGetTaskID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return c.forEach(c.db.table(9).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({muteExpireTimeMs:a[2]})})},function(e){return c.storedProcedure(b("LSIssueNewTaskWithExtraOperationsAndGetTaskID"),c.i64.to_string(a[0]),c.i64.cast([0,144]),"",void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),c.i64.cast([0,1]),void 0,c.i64.cast([0,0]),void 0,c.i64.cast([0,0])).then(function(a){return a=a,d[0]=a[0],a})},function(b){return c.db.table(32).add({taskId:d[0],threadKey:a[0]})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticMuteThread",["LSOptimisticMuteThreadImpl"],(function(a,b,c,d,e,f,g){g["default"]=c("LSOptimisticMuteThreadImpl")}),98); __d("LSOptimisticMuteThreadStoredProcedure",["LSOptimisticMuteThread"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;d[1]=b.mailboxType;d[2]=b.muteExpireTimeMs;return c("LSOptimisticMuteThread").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("useMWChatUnmuteThread",["I64","LSFactory","LSIntEnum","LSMailboxType","LSMuteCallsFromThreadStoredProcedure","LSOptimisticMuteThreadStoredProcedure","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=(k||d("react")).useCallback;function a(){var a=(h||(h=c("useReStore")))(),b=(i||(i=d("I64"))).zero;return l(function(e){(i||(i=d("I64"))).equal(e.muteExpireTimeMs,b)||c("promiseDone")(a.runInTransaction(function(a){return c("LSOptimisticMuteThreadStoredProcedure")(c("LSFactory")(a),{mailboxType:(j||(j=d("LSIntEnum"))).ofNumber(c("LSMailboxType").MESSENGER),muteExpireTimeMs:(i||(i=d("I64"))).zero,threadKey:e.threadKey})},"readwrite"));if(!(i||(i=d("I64"))).equal(e.muteCallsExpireTimeMs,b)){c("promiseDone")(a.runInTransaction(function(a){return c("LSMuteCallsFromThreadStoredProcedure")(c("LSFactory")(a),{mailboxType:(j||(j=d("LSIntEnum"))).ofNumber(c("LSMailboxType").MESSENGER),muteCallsExpireTimeMs:(i||(i=d("I64"))).zero,threadKey:e.threadKey})},"readwrite"));return}},[a,b])}g["default"]=a}),98); __d("useUnmuteSubthread.react",["fbt","I64","MWCMLogMuteDuration.react","cometPushToast","formatDate","react","useMWChatUnmuteThread","useMWXConfirmationDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=(i||d("react")).useCallback;function l(a){var b=new Date();if(!(j||(j=d("I64"))).equal(a,(j||(j=d("I64"))).neg_one))if(new Date((j||(j=d("I64"))).to_float(a)).getDay()===b.getDay())return h._("__JHASH__DRoE6CgofTw__JHASH__",[h._param("time",c("formatDate")((j||(j=d("I64"))).to_float(a)/1e3,"g:ia"))]);else return h._("__JHASH__80cngzK8IXy__JHASH__",[h._param("time",c("formatDate")((j||(j=d("I64"))).to_float(a)/1e3,"g:ia"))]);else return h._("__JHASH__4mwXsVkXMRi__JHASH__")}function a(a,b){var e=c("useMWXConfirmationDialog")(),f=c("useMWChatUnmuteThread")();return k(function(c){c!=null&&e({body:l(c.muteExpireTimeMs),title:h._("__JHASH__t8ncWz3dEdi__JHASH__")},function(){var e;f(c);d("MWCMLogMuteDuration.react").log({clientExtras:{is_subthread:"1"},eventType:"channel_level_unmute_all_notif",source:(e=a)!=null?e:"mute_bell_button",surface:(e=b)!=null?e:"subthread_list",threadKey:c.threadKey});d("cometPushToast").cometPushToast({message:h._("__JHASH__0DUAN4OT62t__JHASH__",[h._param("Name of chat",c.threadName)])})})},[e,f,a,b])}g["default"]=a}),98); __d("MWCMSubthreadHeader.react",["fbt","GroupsCometChatsEngagementLogger","I64","Int64Hooks","JSResourceForInteraction","LSAuthorityLevel","LSIntEnum","Locale","MWChatTextTransform","MWPThreadThemeGradientUtils","MWV2HeaderSettingsButtonChevron.react","MWVerticalRhythm","MWXCircleButton.react","MWXIconArrowLeft","MWXIconArrowRight","MWXIconBell","MWXIconBellCross","MWXIconCross","MWXIconDots3Horizontal","MWXLazyPopoverTrigger.react","MWXMessageTextWithEntities.react","MWXPressable.react","MWXRow.react","MWXRowItem.react","MWXText.react","MWXThreadThemeColor","MWXTooltip.react","SubthreadMuteStrings.react","baseTextTransformAllStrings","emptyFunction","gkx","react","stylex","useMWPThreadTheme","useMWXLazyDialog","useUnmuteSubthread.react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=j||d("react"),n=c("gkx")("571"),o={align:{verticalAlign:"xxymvpz",$$css:!0},chevronIcon:{marginStart:"x1i64zmx",marginLeft:null,marginRight:null,marginTop:"x1xmf6yo",$$css:!0},container:{alignItems:"x1cy8zhl",display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",minHeight:"xj9xw9b",$$css:!0},iconRow:{paddingStart:"xkhd6sd",paddingLeft:null,paddingRight:null,paddingEnd:"x4uap5",$$css:!0},item:{alignItems:"x6s0dn4",display:"x78zum5",maxWidth:"x193iq5w",$$css:!0},rowItem:{alignItems:"x6s0dn4",display:"x78zum5",height:"xn3w4p2",justifyContent:"xl56j7k",$$css:!0},rowItemChatTab:{alignItems:"x6s0dn4",flexDirection:"x1q0g3np",flexGrow:"x1iyjqo2",$$css:!0},settingsButton:{flexShrink:"xs83m0k",marginEnd:"x1emribx",marginLeft:null,marginRight:null,maxWidth:"x1ncir08",$$css:!0}},p=h._("__JHASH__nTUxHa9SlKj__JHASH__"),q=c("gkx")("8818");function r(a){return a.length>30?a.slice(0,27)+"...":a}function s(){return function(a){return c("baseTextTransformAllStrings")(a,function(a,b){return t(a,b)})}}function t(a,b){return[r(a)]}function a(a){var b=a.buttonColor,e=a.closeSidePanelOnBack,f=a.hexTextColor,g=a.isChatTab,j=g===void 0?!1:g;g=a.isThreadMuted;var r=g===void 0?!1:g,t=a.onPressBack;g=a.subtitle;var u=a.textColor,v=a.thread;a=a.title;var w=c("useMWPThreadTheme")(),x=c("useMWXLazyDialog")(c("JSResourceForInteraction")("LSMuteThreadDialog.react").__setRef("MWCMSubthreadHeader.react")),y=x[0];x=d("Int64Hooks").useCallbackInt64(function(){v!=null&&(k||(k=d("I64"))).equal(v.authorityLevel,(l||(l=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").OPTIMISTIC))&&d("GroupsCometChatsEngagementLogger").log({action:"tap",event:"cancel_sidechat",source:"back_button",surface:"subthread_view",thread_id:(k||(k=d("I64"))).to_string(v==null?void 0:v.threadKey)}),t()},[t,v]);var z=c("useUnmuteSubthread.react")("mute_bell_button","subthread_view"),A=d("MWPThreadThemeGradientUtils").getTopGradientColor(w),B=v!=null?(k||(k=d("I64"))).equal(v==null?void 0:v.authorityLevel,(l||(l=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").OPTIMISTIC)):!1;w=e===!0?c("MWXIconCross"):c("Locale").isRTL()?c("MWXIconArrowRight"):c("MWXIconArrowLeft");e=e===!0?h._("__JHASH__gaxHiFwvIGk__JHASH__"):h._("__JHASH__wSyF3E_Fmrl__JHASH__");var C=m.jsx(c("MWXRowItem.react"),{expanding:!0,verticalAlign:"center",children:m.jsxs("div",{className:"x1cy8zhl x78zum5 xdt5ytf x1iyjqo2 xl56j7k xj9xw9b",style:f==null?{}:{"--primary-text":f},children:[m.jsx("div",{className:"x6s0dn4 x78zum5 x193iq5w",children:m.jsx(c("MWXText.react"),{align:"center",color:u,isSemanticHeading:!0,numberOfLines:1,type:j?"headlineEmphasized4":n?"headlineEmphasized5":"headlineEmphasized3",children:m.jsx("span",{className:(i||(i=c("stylex")))(j?o.align:null),children:typeof a==="string"?m.jsx(c("MWXMessageTextWithEntities.react"),{text:a,transforms:[].concat(d("MWChatTextTransform").epdTextTransforms,[s()])}):a})})}),g!=null?m.jsxs(m.Fragment,{children:[m.jsx(c("MWVerticalRhythm"),{height:6}),m.jsx("div",{className:"x6s0dn4 x78zum5 x193iq5w",children:m.jsx(c("MWXText.react"),{align:"center",color:u,numberOfLines:1,type:"meta3",children:g})})]}):null]})});return m.jsxs(c("MWXRow.react"),{paddingHorizontal:j?0:12,paddingVertical:j?0:n?8:16,children:[m.jsx(c("MWXRowItem.react"),{children:m.jsx(c("MWXTooltip.react"),{align:"middle",position:"below",tooltip:e,children:m.jsx(c("MWXCircleButton.react"),{color:d("MWXThreadThemeColor").mwxThreadThemeColor((f=b)!=null?f:A),icon:w,label:e,onPress:x,size:36,type:"deemphasized"})})}),!j||v==null?C:null,v!=null&&m.jsx(c("MWXRowItem.react"),{xstyle:j?o.rowItemChatTab:o.rowItem,children:m.jsx(c("MWXLazyPopoverTrigger.react"),{align:j?"middle":"end",popoverProps:{isChatTab:j,onClose:c("emptyFunction"),onDelete:t,thread:v},popoverResource:c("JSResourceForInteraction")("MWCMSubthreadSettingsMenu.react").__setRef("MWCMSubthreadHeader.react"),position:"below",children:function(a,e,f,g,h,i,k){return j?m.jsx(c("MWXTooltip.react"),{align:"end",position:"above",tooltip:p,children:m.jsxs(c("MWXPressable.react"),{disabled:B,onHoverIn:g,onHoverOut:h,onPress:function(){e()},onPressIn:i,overlayOffset:8,overlayRadius:"normal",ref:a,xstyle:o.settingsButton,children:[C,m.jsx(c("MWV2HeaderSettingsButtonChevron.react"),{color:(f=b)!=null?f:A,xstyle:o.chevronIcon})]})}):m.jsxs(c("MWXRow.react"),{paddingHorizontal:0,paddingVertical:0,verticalAlign:"center",children:[q?m.jsx(c("MWXRowItem.react"),{xstyle:o.iconRow,children:m.jsx(c("MWXTooltip.react"),{align:"middle",position:"below",tooltip:r?d("SubthreadMuteStrings.react").unmuteLabel:d("SubthreadMuteStrings.react").muteLabel,children:m.jsx(c("MWXCircleButton.react"),{color:B?"tertiary":d("MWXThreadThemeColor").mwxThreadThemeColor((k=b)!=null?k:A),disabled:B,icon:r?c("MWXIconBellCross"):c("MWXIconBell"),label:r?d("SubthreadMuteStrings.react").unmuteLabel:d("SubthreadMuteStrings.react").muteLabel,onPress:function(){r?z(v):y({surface:"subthread_view",threadKey:v.threadKey})},size:36,type:"deemphasized"})})}):null,m.jsx(c("MWXRowItem.react"),{xstyle:o.iconRow,children:m.jsx(c("MWXTooltip.react"),{align:"middle",position:"below",tooltip:p,children:m.jsx(c("MWXCircleButton.react"),{color:B?"tertiary":d("MWXThreadThemeColor").mwxThreadThemeColor((f=b)!=null?f:A),disabled:B,icon:c("MWXIconDots3Horizontal"),label:p,onHoverIn:g,onHoverOut:h,onPress:e,onPressIn:i,ref:a,size:36,type:"deemphasized"})})})]})}})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSSetLoadingAfterOnMessageRanges",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[];return b.sequence([function(c){return b.sortBy(b.db.table(13).fetch([[[a[0]]]]),[["maxTimestampMs","DESC"]]).next().then(function(a,c){var d=a.done;a=a.value;return d?0:(c=a.item,b.forEach(b.filter(b.db.table(13).fetch([[[c.threadKey,c.minTimestampMs,c.minMessageId]]]),function(a){return b.i64.eq(a.threadKey,c.threadKey)&&b.i64.eq(b.i64.cast([0,0]),b.i64.cast([0,0]))&&b.i64.eq(a.minTimestampMs,c.minTimestampMs)&&a.minMessageId===c.minMessageId}),function(a){var b=a.update;a.item;return b({isLoadingAfter:!0})}))})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSReportThreadViewOpen",["LSIssueNewTaskWithExtraOperations","LSSetLoadingAfterOnMessageRanges"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?(c=[void 0,void 0],d[0]=c[0],d[1]=c[1],c):(b=a.item,c=[b.syncGroup,b.threadType],d[0]=c[0],d[1]=c[1],c)})},function(a){return c.i64.neq(d[0],void 0)?c.sequence([function(a){return c.db.table(1).fetch([[[d[0]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[12]=void 0:(b=a.item,d[12]=b.syncParams)})},function(a){return d[3]=d[12]}]):c.resolve(d[3]=void 0)},function(b){return c.db.table(294).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?(e=[!1,c.i64.cast([0,0]),void 0],d[4]=e[0],d[5]=e[1],d[6]=e[2],e):(b=a.item,e=[b.isStale,b.threadQueueSequenceId,b.lastSelectiveSyncTimestampMs],d[4]=e[0],d[5]=e[1],d[6]=e[2],e)})},function(a){return d[4]?d[8]=!0:d[8]=!1,c.i64.neq(d[6],void 0)?(c.i64.eq(d[1],c.i64.cast([0,152]))?d[12]=c.i64.cast([0,0]):d[12]=c.i64.cast([0,0]),d[13]=c.i64.of_float(Date.now()),c.resolve()):c.resolve()},function(e){return d[9]=new c.Map(),d[9].set("thread_key",a[0]),d[9].set("is_stale",d[8]),d[9].set("client_seq_id",d[5]),d[9].set("sync_params_encoded",d[3]),d[9].set("client_last_sync_timestamp_ms",d[6]),d[10]=d[9].get("thread_key"),d[9],d[11]=c.toJSON(d[9]),c.storedProcedure(b("LSIssueNewTaskWithExtraOperations"),["report_thread_view_open","_",c.i64.to_string(d[10])].join(""),c.i64.cast([0,605]),d[11],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),void 0,c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSReportThreadViewOpenStoredProcedure",["LSReportThreadViewOpen"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;return c("LSReportThreadViewOpen").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MWCMSubthreadThreadViewContexts.react",["MAWEditMessageContext.react","MWCMIsSubthreadContext.react","MWChatFocusComposerContext","MWPReplyContext.react","MWThreadKey.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.children;a=a.thread;return i.jsx(d("MWPReplyContext.react").MWPReplyContextProvider,{children:i.jsx(d("MWThreadKey.react").MWThreadKeyProvider,{id:a.threadKey,isSubthread:!0,children:i.jsx(d("MWCMIsSubthreadContext.react").MWCMIsSubthreadContextProvider,{isSubthread:!0,children:i.jsx(d("MWChatFocusComposerContext").MWChatFocusComposerContextProvider,{children:i.jsx(d("MAWEditMessageContext.react").MAWEditMessageContext,{children:b})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSCommunityPublicGroupParticipationApprovalStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({CAN_PARTICIPATE:1,PARTICIPATION_REQUEST_REQUIRED:2,PARTICIPATION_REQUEST_PENDING:3});f["default"]=a}),66); __d("MAWLoadingStateOutstandingUIReadyOfflineQueueSelector",["MAWSharedProtocolQueueConst"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){return function(b){var c=b.offlineQueueCount,e=b.offlineQueueSyncState;b=b.offlineQueueThreadStatus;return a!=null&&Object.keys(b).length>0?b[a]!=null&&b[a].chatStatus!==d("MAWSharedProtocolQueueConst").OfflineConsumerStatus.Complete:c>0&&e!==d("MAWSharedProtocolQueueConst").OfflineConsumerStatus.Complete}};g.outstandingUIReadyOfflineQueueSelector=a}),98); __d("MWComposerPlaceholder.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.height;return i.jsx("div",{className:"x1exxf4d x13fuv20 x178xt8z",style:{height:a.toString()+"px"}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPArmadilloLoadingStateMessage.react",["fbt","MWXSpinner.react","cr:6285","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){a=a.threadKey;a=b("cr:6285")(a);return a?null:j.jsxs("div",{id:"armadillo-loading-indicator-banner",children:[j.jsx("div",{className:"x78zum5 xoverlg xl56j7k xr1496l",children:j.jsx(c("MWXSpinner.react"),{color:"disabled",size:20})}),j.jsx("div",{className:"x6s0dn4 x12scifz x1jchvi3 x117nqv4 x1hkbg2g xr1yuqi xkrivgy x4ii5y1 x1gryazu x1qs4qq1 x1n2onr6 x2b8uid x13faqbe",children:h._("__JHASH__7VvIEysTDk2__JHASH__").toString()})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMessageRequestDeleteConversation",["Int64Hooks","LSFactory","LSIntEnum","LSOptimisticRemoveThreadStoredProcedure","LSThreadRemoveType","MWChatStateActions","MWChatStateV2.react","MessageRequestsLog","promiseDone","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=(i||(i=c("useReStore")))(),e=d("MWChatStateV2.react").useDispatch();return d("Int64Hooks").useCallbackInt64(function(){d("MessageRequestsLog").logActionConfirmed(a,8),c("promiseDone")(b.runInTransaction(function(b){return c("LSOptimisticRemoveThreadStoredProcedure")(c("LSFactory")(b),{removeType:(h||(h=d("LSIntEnum"))).ofNumber(c("LSThreadRemoveType").DELETE_THREAD),threadKey:a.threadKey})},"readwrite"),function(){return e(d("MWChatStateActions").closeTabByThreadKey(Date.now(),a.threadKey))})},[b,a,e])}g["default"]=a}),98); __d("useMessageRequestLeaveGroup",["Int64Hooks","LSFactory","LSOptimisticRemoveParticipantsFromGroupThreadStoredProcedure","LSVec","MWPActor.react","promiseDone","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=(h||(h=c("useReStore")))(),e=d("MWPActor.react").useActor();return d("Int64Hooks").useCallbackInt64(function(){c("promiseDone")(b.runInTransaction(function(b){return c("LSOptimisticRemoveParticipantsFromGroupThreadStoredProcedure")(c("LSFactory")(b),{contactIds:c("LSVec").ofArray([e]),threadKey:a.threadKey})},"readwrite"))},[e,b,a.threadKey])}g["default"]=a}),98); __d("MWV2ComposerDisclosure.react",["CometErrorBoundary.react","CometPlaceholder.react","I64","JSResourceForInteraction","LSAuthorityLevel","LSIntEnum","LSMessagingThreadTypeUtil","LSThreadBitOffset","MWChatComposerVoiceIndicator.react","MWComposerXacDisclosureRelay.react","MWLSContactTypeExactUtils","MWLSThreadDisplayContext","MWPActor.react","MWReQLChatComposerGroupMessageRequestInfoText.react","MWReQLComposerUserMessageRequestInfoText.react","MessageRequestsLog","ReQL","ReQLSuspense","cr:3912","cr:4720","cr:4721","gkx","lazyLoadComponent","react","useMessageRequestDeleteConversation","useMessageRequestLeaveGroup","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react")),m=k.useMemo,n=b("cr:3912")==null?function(a,b){return!1}:b("cr:3912").useIsOneOnOneMessageRequestV2,o=c("lazyLoadComponent")(c("JSResourceForInteraction")("MAWComposerUserMessageRequestInfoText.react").__setRef("MWV2ComposerDisclosure.react"));function p(a){var e=a.forceVoiceIndicatorShown_TEST_ONLY,g=a.thread,k=(h||(h=c("useReStore")))();a=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();a=a==="Inbox"?"large":"small";var p=c("useMessageRequestLeaveGroup")(g),q=g.threadType,r=c("useMessageRequestDeleteConversation")(g),s=d("LSMessagingThreadTypeUtil").isSecure(q),t=d("LSThreadBitOffset").has(21,g),u=d("MWPActor.react").useActor(),v=d("ReQLSuspense").useFirst(function(){return d("LSMessagingThreadTypeUtil").isOneToOne(g.threadType)?d("ReQL").mergeJoin(d("ReQL").fromTableAscending(k.table("participants")).getKeyRange(g.threadKey),d("ReQL").fromTableAscending(k.table("contacts"))).filter(function(a){a[0];a=a[1];return!(i||(i=d("I64"))).equal(a.id,u)}):d("ReQL").empty()},[k,g.threadKey,g.threadType,u],f.id+":72"),w=m(function(){return s?n(g,v):!1},[g,v,s]);q=d("LSMessagingThreadTypeUtil").isGroup(q);var x=v!=null?d("MWLSContactTypeExactUtils").isIgContact(v[1].contactTypeExact):!1;return l.jsxs(l.Fragment,{children:[l.jsx(c("MWChatComposerVoiceIndicator.react"),{forceShown_TEST_ONLY:e}),w?l.jsx(o,{size:"large",thread:g}):!s&&t?q?b("cr:4720")==null?l.jsx(c("MWReQLChatComposerGroupMessageRequestInfoText.react"),{onDeleteConversation:r,onLeaveGroup:function(){d("MessageRequestsLog").logActionConfirmed(g,10);return p()}}):l.jsx(b("cr:4720"),{onDeleteConversation:r,onLeaveGroup:function(){d("MessageRequestsLog").logActionConfirmed(g,10);return p()},thread:g}):b("cr:4721")==null?l.jsx(c("MWReQLComposerUserMessageRequestInfoText.react"),{onDeleteConversation:r,thread:g}):l.jsx(b("cr:4721"),{onDeleteConversation:r,thread:g}):!s&&x&&c("gkx")("1839788")?l.jsx(c("MWComposerXacDisclosureRelay.react"),{isThreadInNullState:(i||(i=d("I64"))).lt(g.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE)),size:a}):null]})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b=a.forceVoiceIndicatorShown_TEST_ONLY;a=a.thread;return l.jsx(c("CometErrorBoundary.react"),{fallback:function(){return null},children:l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx(p,{forceVoiceIndicatorShown_TEST_ONLY:(b=b)!=null?b:!1,thread:a})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ErrorComposer.react",["fbt","MDSTextPairing.react","MWXText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){return j.jsx("div",{className:"xcrg951 x8cjs6t x13fuv20 x178xt8z x1a8lsjc xl521sm x9mfa4r x889kno",children:j.jsx(c("MDSTextPairing.react"),{headline:h._("__JHASH__viCgEPmOyD5__JHASH__"),headlineColor:"secondary",level:4,meta:j.jsx(c("MWXText.react"),{numberOfLines:2,type:"meta3",children:h._("__JHASH__FrvKCKsD46D__JHASH__")}),reduceEmphasis:!0,textAlign:"center"})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSFetchProactiveWarningsIfNeeded",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=c.i64.cast([0,1]):(b=a.item,d[5]=b.syncGroup,c.i64.neq(d[5],void 0)?d[4]=d[5]:d[4]=c.i64.cast([0,1]),d[0]=d[4])})},function(e){return c.db.table(183).fetch([[[a[0]]]]).next().then(function(e,f){var g=e.done;e=e.value;return g?c.sequence([function(b){return c.db.table(183).put({threadKey:a[0],suspectId:a[0]})},function(e){return d[4]=new c.Map(),d[4].set("thread_key",a[0]),d[4].set("sync_group",d[0]),d[5]=c.toJSON(d[4]),c.storedProcedure(b("LSIssueNewTask"),"proactive_warnings_fetch_queue",c.i64.cast([0,192]),d[5],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(a){return d[2]=c.i64.cast([0,1])}]):(f=e.item,c.sequence([function(e){return d[5]=f.nextCheckTimestampMs,d[4]=c.i64.of_float(Date.now()),c.i64.neq(d[5],void 0)&&c.i64.ge(d[4],d[5])?c.sequence([function(b){return c.db.table(183).put({threadKey:a[0],suspectId:a[0]})},function(e){return d[7]=new c.Map(),d[7].set("thread_key",a[0]),d[7].set("sync_group",d[0]),d[8]=c.toJSON(d[7]),c.storedProcedure(b("LSIssueNewTask"),"proactive_warnings_fetch_queue",c.i64.cast([0,192]),d[8],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(a){return d[6]=c.i64.cast([0,1])}]):c.resolve((c.i64.neq(d[5],void 0)&&f.tag!==void 0?d[7]=c.i64.cast([0,2]):d[7]=c.i64.cast([0,3]),d[6]=d[7]))},function(a){return d[2]=d[6]}]))})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSFetchProactiveWarningsIfNeededStoredProcedure",["LSFetchProactiveWarningsIfNeeded"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;return c("LSFetchProactiveWarningsIfNeeded").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("useMWLSSprocFetchProactiveWarningIfNeeded",["I64","Int64Hooks","LSFactory","LSFetchProactiveWarningsIfNeededStoredProcedure","MWThreadKey.react","promiseDone","useMWLSProactiveWarningTables","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b,e){var f=(i||(i=c("useReStore")))(),g=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),j=c("useMWLSProactiveWarningTables")(),k=j.banner;j=j.pwSettings;j=k!=null&&j!=null?(h||(h=d("I64"))).equal(k.bannerId,(h||(h=d("I64"))).of_string("7")):!1;a=a&&!j?e?!0:b!=null?(h||(h=d("I64"))).equal((k=b.proactiveWarningDismissTime)!=null?k:(h||(h=d("I64"))).zero,(h||(h=d("I64"))).zero):!1:!1;var l=b!=null&&a;d("Int64Hooks").useEffectInt64(function(){l&&c("promiseDone")(f.runInTransaction(function(a){return c("LSFetchProactiveWarningsIfNeededStoredProcedure")(c("LSFactory")(a),{threadKey:g})},"readwrite"))},[g,a,l,f])}g["default"]=a}),98); __d("useMWPComposerFileDropzoneRegisterHandler",["MWV2FileDropzone.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useContext,j=b.useEffect;function a(a){var b=i(d("MWV2FileDropzone.react").mWV2FileDropzoneContext);j(function(){if(a){b.current.enabled=!1;b.current.handler=null;return function(){b.current.enabled=!0,b.current.handler=null}}},[b,a])}g["default"]=a}),98); __d("MWPComposerGating.react",["CometErrorBoundary.react","CometPlaceholder.react","I64","JSResourceForInteraction","LSAuthorityLevel","LSCommunityPublicGroupParticipationApprovalStatus","LSContactBitOffset","LSIntEnum","LSMessagingThreadTypeUtil","LSThreadBitOffset","MAWLoadingStateOutstandingUIReadyOfflineQueueSelector","MWCMThreadTypes.react","MWComposerPlaceholder.react","MWIsThreadDisabled","MWJoinChannelComposerPlaceholder.react","MWPActor.react","MWPArmadilloLoadingStateMessage.react","MWPSafetyNoticesChatBlockedComposer.react","MWPThreadIsPage.react","MWV2ComposerDisclosure.react","MWV2ErrorComposer.react","MWXACSunsettedComposer.react","ReQL","ReQLSuspense","RecoverableViolation.react","ServerTime","ThreadStatus","lazyLoadComponent","nullthrows","qex","react","useCommunityFolder","useMAWOfflineQueueLoadingIndicator","useMWLSSprocFetchProactiveWarningIfNeeded","useMWMarketplaceThreadOtherUser","useMWPComposerFileDropzoneRegisterHandler","useMWProactiveWarningPayload","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react"));b=i;e=b.memo;var m=b.useMemo,n=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWPLeftGroupComposer.react").__setRef("MWPComposerGating.react")),o=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWPCMGroupMutedComposer.react").__setRef("MWPComposerGating.react")),p=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWPCMGroupBroadcastComposer.react").__setRef("MWPComposerGating.react")),q=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWJoinChannelComposer.react").__setRef("MWPComposerGating.react")),r=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWBroadcastChannelMemberComposer.react").__setRef("MWPComposerGating.react")),s=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWCMPausedChatComposer.react").__setRef("MWPComposerGating.react")),t=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWCMChatPreviewComposer.react").__setRef("MWPComposerGating.react")),u=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWPCMGroupRequestToParticipateComposer.react").__setRef("MWPComposerGating.react")),v=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWPCMGroupPendingRequestToParticipateComposer.react").__setRef("MWPComposerGating.react")),w=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWPTakenDownThreadComposer.react").__setRef("MWPComposerGating.react")),x=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWPCannotReplyFallbackComposer.react").__setRef("MWPComposerGating.react")),y=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWCMComposerNudgeText.react").__setRef("MWPComposerGating.react")),z=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWDisableMarketplaceDMAThreadComposer.react").__setRef("MWPComposerGating.react")),A=e(function(a){var b,e,f=a.renderComposer;a=a.thread;var g=a.cannotReplyReason==="viewer_not_subscribed",h=a.cannotReplyReason==="broadcast_chat_read_only",i=a.threadStatus!=null&&(j||(j=d("I64"))).equal(a.threadStatus,(j||(j=d("I64"))).of_int32(c("ThreadStatus").PAUSED));b=(b=c("qex")._("229"))!=null?b:!1;var m=d("LSThreadBitOffset").has(192,a),A=c("useMWMarketplaceThreadOtherUser")({thread:a});A=!d("LSThreadBitOffset").has(213,a)&&A!=null&&d("LSContactBitOffset").has(88,A);var B=c("useCommunityFolder")(a);e=(j||(j=d("I64"))).to_int32((e=B==null?void 0:B.sendsBlockedUntil)!=null?e:(j||(j=d("I64"))).zero)*1e3;e=e<0||e>d("ServerTime").getMillis();var C=c("MWIsThreadDisabled")(a.takedownState),D=(B==null?void 0:B.fbGroupUserParticipationApprovalStatus)!=null&&(j||(j=d("I64"))).equal(B.fbGroupUserParticipationApprovalStatus,(k||(k=d("LSIntEnum"))).ofNumber(c("LSCommunityPublicGroupParticipationApprovalStatus").PARTICIPATION_REQUEST_REQUIRED)),E=(B==null?void 0:B.fbGroupUserParticipationApprovalStatus)!=null&&(j||(j=d("I64"))).equal(B.fbGroupUserParticipationApprovalStatus,(k||(k=d("LSIntEnum"))).ofNumber(c("LSCommunityPublicGroupParticipationApprovalStatus").PARTICIPATION_REQUEST_PENDING));if(C)return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:35}),children:l.jsx(w,{threadType:a.threadType})});else if(b&&d("MWCMThreadTypes.react").isUnjoinedCMThread(a.threadType)){return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:64}),children:l.jsx(t,{isCommunityMember:(C=B==null?void 0:B.isMember)!=null?C:!1,thread:a})})}else if(d("LSMessagingThreadTypeUtil").isUnjoinedDiscoverablePublicBroadcastChannel(a.threadType))return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(d("MWJoinChannelComposerPlaceholder.react").MWJoinChannelComposerPlaceholder,{channelType:d("MWJoinChannelComposerPlaceholder.react").ChannelType.Broadcast}),children:l.jsx(q,{channelType:d("MWJoinChannelComposerPlaceholder.react").ChannelType.Broadcast})});else if(d("LSMessagingThreadTypeUtil").isSocialChannelUnjoined(a.threadType))return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(d("MWJoinChannelComposerPlaceholder.react").MWJoinChannelComposerPlaceholder,{channelType:d("MWJoinChannelComposerPlaceholder.react").ChannelType.Social}),children:l.jsx(q,{channelType:d("MWJoinChannelComposerPlaceholder.react").ChannelType.Social})});else if(m)return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:99}),children:l.jsx(c("MWXACSunsettedComposer.react"),{})});else if(g)return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:99}),children:l.jsx(n,{groupId:B==null?void 0:B.fbGroupId,thread:a})});else if(i)return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:35}),children:l.jsx(s,{canPauseChat:d("LSThreadBitOffset").has(154,a),shouldUseChannelTerminology:d("LSMessagingThreadTypeUtil").isSocialChannel(a.threadType),threadKey:a.threadKey})});else if(d("MWCMThreadTypes.react").isBroadcastThread(a.threadType)&&h)return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:55}),children:l.jsx(p,{isBroadcastChatsReactionsEnabled:d("LSThreadBitOffset").has(139,a)})});else if(d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(a.threadType)&&h)return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:48}),children:l.jsx(r,{})});else if(e)return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:141}),children:l.jsx(o,{size:"small"})});else if(D)return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:104}),children:l.jsx(u,{communityFolder:c("nullthrows")(B),thread:a})});else if(E)return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:100}),children:l.jsx(v,{groupID:(j||(j=d("I64"))).to_string(c("nullthrows")(B==null?void 0:B.fbGroupId)),thread:a})});else if(a.cannotReplyReason!=null)return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:35}),children:l.jsx(x,{})});else if(A)return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:35}),children:l.jsx(z,{})});else return l.jsxs(l.Fragment,{children:[d("MWCMThreadTypes.react").isBroadcastThread(a.threadType)&&!h?l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx(y,{thread:a})}):null,l.jsx(c("MWV2ComposerDisclosure.react"),{thread:a}),f()]})}),B=e(function(a){var b=a.isMessengerInbox,e=a.renderComposer;a=a.thread;e=l.jsxs(l.Fragment,{children:[l.jsx(c("MWV2ComposerDisclosure.react"),{thread:a}),e()]});var f=a.proactiveWarningDismissTime==null||(j||(j=d("I64"))).is_zero(a.proactiveWarningDismissTime),g=d("LSMessagingThreadTypeUtil").isSecure(a.threadType);b=b?null:f&&!g?l.jsx(c("MWPSafetyNoticesChatBlockedComposer.react"),{fallback:e,onClose:function(){},thread:a}):null;c("useMWLSSprocFetchProactiveWarningIfNeeded")(b!=null,a,!1);f=c("useMWProactiveWarningPayload")(void 0,a);return b!=null&&f!=null?l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWComposerPlaceholder.react"),{height:35}),children:b}):e});function C(a){var b=a.configurations,e=a.isMessengerInbox,g=a.renderComposer,i=a.thread,n=(h||(h=c("useReStore")))(),o=d("MWPActor.react").useActor(),p=(j||(j=d("I64"))).equal(o,i.threadKey),q=d("ReQLSuspense").useArray(function(){return d("LSMessagingThreadTypeUtil").isOneToOne(i.threadType)?d("ReQL").mergeJoin(d("ReQL").fromTableAscending(n.table("participants")).getKeyRange(i.threadKey),d("ReQL").fromTableAscending(n.table("contacts"))).map(function(a){a[0];a=a[1];return a}):d("ReQL").empty()},[n,i.threadKey,i.threadType],f.id+":419");a=m(function(){return q.find(function(a){return p||q.length===1&&(j||(j=d("I64"))).equal(a.id,o)||!(j||(j=d("I64"))).equal(a.id,o)})},[o,p,q]);var r=d("LSMessagingThreadTypeUtil").isSecure(i.threadType),s=c("useMAWOfflineQueueLoadingIndicator")(!1,i,d("MAWLoadingStateOutstandingUIReadyOfflineQueueSelector").outstandingUIReadyOfflineQueueSelector);r=r&&s;s=b.find(function(a){return a!=null});b=s!=null;c("useMWPComposerFileDropzoneRegisterHandler")(b);return l.jsxs(l.Fragment,{children:[r?l.jsx(c("MWPArmadilloLoadingStateMessage.react"),{threadKey:i.threadKey}):null,b?s:d("LSMessagingThreadTypeUtil").isOneToOne(i.threadType)?a!=null?l.jsx(B,{isMessengerInbox:e,otherUser:a,renderComposer:g,thread:i}):(j||(j=d("I64"))).lt(i.authorityLevel,(k||(k=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE))?null:l.jsx(c("RecoverableViolation.react"),{errorMessage:"Missing contact row",projectName:"messenger_comet"}):l.jsx(A,{renderComposer:g,thread:i})]})}C.displayName=C.name+" [from "+f.id+"]";function a(a){var b=a.configurations,e=a.isMessengerInbox,f=a.renderComposer;a=a.thread;return l.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return l.jsx(c("MWV2ErrorComposer.react"),{})},children:l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx(d("MWPThreadIsPage.react").Provider,{threadKey:a.threadKey,children:l.jsx(C,{configurations:b,isMessengerInbox:(b=e)!=null?b:!1,renderComposer:f,thread:a})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerEditView.react",["fbt","ix","CometErrorBoundary.react","MAWEditMessageContext.react","MWXIcon.react","MWXText.react","fbicon","logMAWEditMessage","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useContext;function a(a){var b=a.actorID,e=a.threadKey,f=a.threadType;a=l(d("MAWEditMessageContext.react").Context);var g=a.setEditMessageData,j=h._("__JHASH__36XeYdlCuO8__JHASH__");return k.jsxs("div",{className:"x1cy8zhl xcrg951 x8cjs6t x13fuv20 x178xt8z x78zum5 x1qughib xg8j3zb x14uny0o xvpee5o xqy66fx","data-testid":void 0,children:[k.jsx(c("CometErrorBoundary.react"),{fallback:function(){return k.jsx(c("MWXText.react"),{type:"body4",children:j})},children:k.jsx(c("MWXText.react"),{type:"body4",children:j})}),k.jsx(c("MWXIcon.react"),{"aria-label":h._("__JHASH__NFQuJJERXoJ__JHASH__"),color:"primary",icon:d("fbicon")._(i("478231"),12),onPress:function(){g(null),c("logMAWEditMessage")(f,e,b,92)}})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerEditContainer.react",["fbt","ix","CometComponentWithKeyCommands.react","CometTextArea.react","LSMessagingThreadTypeUtil","MAWEditMessageContext.react","MAWVault","MWPActor.react","MWPEditMessageUtil","MWV2ComposerEditView.react","MWXIcon.react","MWXPressable.react","MWXRow.react","MWXRowItem.react","ReQL","ReQLSuspense","emptyFunction","fbicon","logMAWEditMessage","react","useReStore"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));b=k;var m=b.useContext,n=b.useState;function a(a){var b,e=a.editMessageData,g=a.threadType,k=(j||(j=c("useReStore")))();a=m(d("MAWEditMessageContext.react").Context);var o=a.setEditMessageData,p=d("MWPActor.react").useActor();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(k.table("messages")).getKeyRange(e==null?void 0:e.threadKey,e==null?void 0:e.timestampMs,e==null?void 0:e.messageId)},[k,e==null?void 0:e.messageId,e==null?void 0:e.threadKey,e==null?void 0:e.timestampMs],f.id+":48");b=n(d("MAWVault").unvault((b=a==null?void 0:a.text)!=null?b:""));var q=b[0],r=b[1],s=d("MWPEditMessageUtil").useGetSendEditActionforOpen();a=d("MAWVault").unvault((b=a==null?void 0:a.text)!=null?b:"").trim();var t=q.trim(),u=t.length!==0&&t!==a;b=function(){if(e!=null&&!u)return;d("LSMessagingThreadTypeUtil").isSecure(g)?c("emptyFunction")():s(e.messageId,t);c("logMAWEditMessage")(g,e.threadKey,p,90);o(null)};a=d("MWPEditMessageUtil").useEditMessageButtonKeyCommands(b);var v=h._("__JHASH__645ugDJYeSD__JHASH__");return l.jsxs(c("CometComponentWithKeyCommands.react"),{commandConfigs:a,children:[l.jsx(c("MWV2ComposerEditView.react"),{actorID:p,threadKey:e.threadKey,threadType:g}),l.jsxs(c("MWXRow.react"),{paddingVertical:12,children:[l.jsx(c("MWXRowItem.react"),{expanding:!0,children:l.jsx(c("CometTextArea.react"),{expandable:!0,label:v,labelIsHidden:!0,maxRows:6,onChange:function(a){r(a.target.value)},rows:1,style:{backgroundColor:"var(--comment-background)",backgroundImage:"none",borderRadius:"20px",borderWidth:0,fontWeight:"400"},testid:void 0,value:q})}),l.jsx(c("MWXRowItem.react"),{verticalAlign:"center",children:l.jsx(c("MWXPressable.react"),{disabled:!u,label:v,onPress:b,testid:void 0,children:l.jsx(c("MWXIcon.react"),{color:u?"blueLink":"disabled",icon:d("fbicon")._(i("498145"),16),size:24})})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatViewerChatVisibilityHook",["CometRelay","MWChatViewerChatVisibilityHookQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("MWChatViewerChatVisibilityHookQuery.graphql");function a(){var a=d("CometRelay").useLazyLoadQuery(i,{},{fetchPolicy:"store-or-network"});return(a==null?void 0:(a=a.viewer)==null?void 0:a.chat_visibility)===!0}g.useViewerChatVisibility=a}),98); __d("LSSendTypingIndicator",["LSIssueNewFireAndForgetTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return d[2]=["typing","_",c.i64.to_string(a[0])].join(""),c.forEach(c.filter(c.db.table(5).fetch(),function(a){return d[2]===a.queueName}),function(a){return a["delete"]()})},function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[0].set("is_group_thread",a[1]),d[0].set("is_typing",a[2]),d[0].set("attribution",c.i64.cast([0,0])),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewFireAndForgetTask"),d[2],c.i64.cast([0,3]),d[1])}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSendTypingIndicatorStoredProcedure",["LSSendTypingIndicator"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;d[1]=b.isGroupThread;d[2]=b.isTyping;return c("LSSendTypingIndicator").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("useOnTypingStateChanged",["I64","Int64Hooks","LSAuthorityLevel","LSContactBlockedByViewerStatus","LSFactory","LSIntEnum","LSMessagingThreadTypeUtil","LSSendTypingIndicatorStoredProcedure","MWCMIsAnyCMThread","MWPActor.react","MessengerWebUXLogger","ReQL","asyncToGeneratorRuntime","promiseDone","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function k(a,b,c,d){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f){if((i||(i=d("I64"))).equal(e,(j||(j=d("LSIntEnum"))).ofNumber(1))&&!(i||(i=d("I64"))).equal(b,f)){var g;b=(yield (g=d("ReQL")).firstAsync(g.mergeJoin(g.fromTableAscending(a.table("participants")).getKeyRange(b),g.fromTableAscending(a.table("contacts").index("blockedByViewerStatusId")).getKeyRange((j||(j=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED))).filter(function(a){var b=a[0];a[1];return!(i||(i=d("I64"))).equal(b.contactId,f)})));return b!=null}else return!c("MWCMIsAnyCMThread")(e)});return l.apply(this,arguments)}function a(a){var b=(h||(h=c("useReStore")))(),e=d("MWPActor.react").useActor(),f=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger();return d("Int64Hooks").useCallbackInt64(function(g){if(!(i||(i=d("I64"))).ge(a.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE)))return;var h=k(b,a.threadKey,a.threadType,e).then(function(e){if(e){f==null?void 0:f({eventName:"send_typing_indicators",threadKey:a.threadKey,threadType:a.threadType});return b.runInTransaction(function(b){return c("LSSendTypingIndicatorStoredProcedure")(c("LSFactory")(b),{isGroupThread:d("LSMessagingThreadTypeUtil").isGroup(a.threadType),isTyping:g,threadKey:a.threadKey})},"readwrite")}});c("promiseDone")(h)},[a.authorityLevel,a.threadKey,a.threadType,b,e,f])}g["default"]=a}),98); __d("useMWOnTypingStateChanged",["MWChatViewerChatVisibilityHook","react","useOnTypingStateChanged"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useMemo,j=function(a){return void 0};function a(a){var b=c("useOnTypingStateChanged")(a),e=d("MWChatViewerChatVisibilityHook").useViewerChatVisibility();return i(function(){return e?b:j},[b,e])}g["default"]=a}),98); __d("MWV2OpenComposer.react",["GroupsCometChatsEngagementLogger","I64","Int64Hooks","LSMessagingThreadTypeUtil","MWPEditMessageUtil","MWPReplyContext.react","MWV2ComposerEditContainer.react","MWV2ComposerReplyView.react","MWV2ComposerView.react","MessengerMSplitFlag","Promise","WebUXLoggingSurfaceContextProvider","asyncToGeneratorRuntime","cr:5001","cr:5118","emptyFunction","gkx","promiseDone","react","useAsyncReStore","useMWMediaManager","useMWOnTypingStateChanged","useMWPComposerEditor","useMWV2FileDropzoneRegisterHandler","useMWV2OnSendOpenMessage"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useContext,m=c("gkx")("5404");function a(a){var e,f=a.afterSendMessage,g=f===void 0?c("emptyFunction"):f;f=a.isPreviewThread;var j=a.thread,n=c("useAsyncReStore")();a=l(d("MWPReplyContext.react").MWPReplyContext);a=a.reply;var o=b("cr:5001")==null?void 0:b("cr:5001").useMWAdmodOnboardingSuggestedActionsContext(),p=d("MWPEditMessageUtil").useGetEditMessageData(),q=c("useMWMediaManager")({thread:j}),r=q.handleFileRemove,s=q.handleFileSelect;q=q.mediaStaging;var t=d("Int64Hooks").useCallbackInt64(function(){var a;g();var e=o==null?void 0:(a=o.showWelcomeMessageSuggestion)==null?void 0:a.source,f=o==null?void 0:(a=o.showWelcomeMessageSuggestion)==null?void 0:a.entryPoint;b("cr:5118")&&(o==null?void 0:(a=o.showWelcomeMessageSuggestion)==null?void 0:a.show)&&(o==null?void 0:(a=o.showWelcomeMessageSuggestion)==null?void 0:a.source)!=null&&c("promiseDone")((h||(h=b("Promise"))).resolve().then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a,b=(yield n);a=(a=j==null?void 0:j.parentThreadKey)!=null?a:(i||(i=d("I64"))).zero;b=(yield b.table("community_folders").get(a));b=(b=b==null?void 0:b.fbGroupId)!=null?b:(i||(i=d("I64"))).zero;d("GroupsCometChatsEngagementLogger").log({action:"tap",community_id:(i||(i=d("I64"))).to_string(a),entry_point:f,event:"admin_send_message_visible_when_message_sent",group_id:i.to_string((a=b)!=null?a:(i||(i=d("I64"))).zero),parent_surface:"thread_view",source:e,surface:"admin_send_message_hint_card"})})));o==null?void 0:o.setShowWelcomeMessageSuggestion({show:!1})},[g,n,o,j==null?void 0:j.parentThreadKey]);t=c("useMWV2OnSendOpenMessage")({afterSendMessage:t,skipUrlPreviewGen:!1,thread:j});var u=c("useMWOnTypingStateChanged")(j);c("useMWV2FileDropzoneRegisterHandler")(s);var v=d("LSMessagingThreadTypeUtil").isAiBotSummoning(j);f=c("useMWPComposerEditor")({isPreviewThread:f,mediaStaging:q,onSendMessage:t,onTypingStateChanged:u,threadKey:j.threadKey});u=f.editor;var w=f.editorElementRef,x=f.hasStuffToSend;f=f.sendMessage;return k.jsx(d("WebUXLoggingSurfaceContextProvider").WebUXLoggingSurfaceContextProvider,{value:"open_composer",children:k.jsxs("div",{children:[b("cr:5118")&&(o==null?void 0:(e=o.showWelcomeMessageSuggestion)==null?void 0:e.show)?k.jsx(b("cr:5118"),{threadKey:j.threadKey}):a!=null?k.jsx(d("MWV2ComposerReplyView.react").MWV2ComposerReplyView,{messageId:a.messageId,messageTimestamp:a.timestampMs,thread:j}):null,p!=null&&k.jsx(c("MWV2ComposerEditContainer.react"),{editMessageData:p,threadType:j.threadType}),p!=null?null:k.jsx(d("MWV2ComposerView.react").MWV2ComposerView,{editor:u,editorElementRef:w,hasStuffToSend:x,isAiBotMentionsEnabled:v&&m&&!c("MessengerMSplitFlag").is_msplit_account,mediaStaging:q,onAttachmentRemoved:r,onAttachmentsAdded:s,onSendMessage:t,policyProduct:"messaging_lightswitch",sendMessage:f,supportedFileTypes:void 0,surface:"mwp_mwv2_composer",thread:j})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useIsDefaultE2eeOpenThread",["LSMessagingThreadTypeUtil","cr:8061"],(function(a,b,c,d,e,f,g){"use strict";var h=(c=b("cr:8061"))!=null?c:function(a,b){return[!1,!0,null]};function a(a){var b=h(a.threadKey,a.threadType),c=b[0];b[1];b[2];return d("LSMessagingThreadTypeUtil").isOpenOneToOne(a.threadType)&&c}g["default"]=a}),98); __d("useMWDefaultE2eeComposerConfiguration",["JSResourceForInteraction","lazyLoadComponent","react","useIsDefaultE2eeOpenThread"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWDefaultE2eeThreadBlockedComposer.react").__setRef("useMWDefaultE2eeComposerConfiguration"));function a(a){var b=c("useIsDefaultE2eeOpenThread")(a);if(b)return i.jsx(j,{thread:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSContactReachabilityStatusType",[],(function(a,b,c,d,e,f){a=Object.freeze({REACHABLE:0,UNREACHABLE_USER_TYPE:1,UNREACHABLE_ADULT_TYPE:2});f["default"]=a}),66); __d("MWPComposerPlaceholder.react",["CometPlaceholder.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function j(a){a=a.height;return i.jsx("div",{className:"x1exxf4d x13fuv20 x178xt8z",style:{height:a.toString()+"px"}})}j.displayName=j.name+" [from "+f.id+"]";function a(a){var b=a.children;a=a.height;return i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(j,{height:a}),children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWPAdultMinorRestrictionLogging",["I64","LSContactReachabilityStatusType","LSIntEnum","LSMessagingThreadTypeUtil","MwbActorExperienceEventFalcoEvent","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(h||d("react")).useEffect;function l(a){var b=d("LSMessagingThreadTypeUtil").isSecure(a),c=d("LSMessagingThreadTypeUtil").isOneToOne(a);a=d("LSMessagingThreadTypeUtil").isGroup(a);if(c)return b?"messenger_encrypted_direct_thread":"messenger_direct_thread_details";return a?b?"messenger_encrypted_group_thread":"messenger_group_thread_details":"unknown"}function m(a){switch(a){case c("LSContactReachabilityStatusType").UNREACHABLE_USER_TYPE:return 12;case c("LSContactReachabilityStatusType").UNREACHABLE_ADULT_TYPE:return 21;default:return 0}}var n=function(a){return a?(i||(i=d("LSIntEnum"))).toNumber(a):c("LSContactReachabilityStatusType").REACHABLE};function a(a,b){var e=n(b),f=l(a),g=(j||(j=d("I64"))).to_string(a);k(function(){e!==c("LSContactReachabilityStatusType").REACHABLE&&c("MwbActorExperienceEventFalcoEvent").log(function(){return{action:1,restriction_type:m(e),surface:f,thread_id:g}})},[g,e,f])}g["default"]=a}),98); __d("useMWPBlockedComposerConfiguration",["fbt","I64","JSResourceForInteraction","LSContactBlockedByViewerStatus","LSContactReachabilityStatusType","LSIntEnum","LSMessagingThreadTypeUtil","MWBlockedComposerLogging","MWGetLSThreadReportingTokenFromThread","MWPActor.react","MWPComposerPlaceholder.react","ReQL","ReQLSuspense","lazyLoadComponent","react","useMWPAdultMinorRestrictionLogging","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=j||d("react"),n=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWPReQLBlockedComposer.react").__setRef("useMWPBlockedComposerConfiguration"));function o(a){if(a==null)return c("LSContactReachabilityStatusType").REACHABLE;a=a.contactReachabilityStatusType;return a==null?c("LSContactReachabilityStatusType").REACHABLE:(l||(l=d("LSIntEnum"))).toNumber(a)}function a(a,b){var e=(i||(i=c("useReStore")))(),g=d("MWPActor.react").useActor(),j=(k||(k=d("I64"))).equal(g,a.threadKey),p=d("ReQLSuspense").useFirst(function(){return d("LSMessagingThreadTypeUtil").isOneToOne(a.threadType)?d("ReQL").mergeJoin(d("ReQL").fromTableAscending(e.table("participants")).getKeyRange(a.threadKey),d("ReQL").fromTableAscending(e.table("contacts"))).filter(function(a){a[0];a=a[1];return j||!(k||(k=d("I64"))).equal(a.id,g)}).map(function(a){a[0];a=a[1];return a}):d("ReQL").empty()},[e,a.threadKey,a.threadType,g,j],f.id+":58"),q=o(p);c("useMWPAdultMinorRestrictionLogging")(a.threadKey,p==null?void 0:p.contactReachabilityStatusType);if(d("LSMessagingThreadTypeUtil").isOneToOne(a.threadType)&&p!=null){var r=c("MWGetLSThreadReportingTokenFromThread")(a),s=!(k||(k=d("I64"))).equal(p.blockedByViewerStatus,(l||(l=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED));if(q!==c("LSContactReachabilityStatusType").REACHABLE){q=h._("__JHASH__6xAG31n9hza__JHASH__");return m.jsx(c("MWPComposerPlaceholder.react"),{height:35,children:m.jsx(n,{fbid:(k||(k=d("I64"))).to_string(p.id),isReachable:!1,reason:d("MWBlockedComposerLogging").ComposerBlockingReason.USER_UNREACHABLE,reportingToken:void 0,thread:a,unreachableTitle:q})})}if(s)return m.jsx(c("MWPComposerPlaceholder.react"),{height:189,children:m.jsx(n,{buttonsOverride:b,fbid:(k||(k=d("I64"))).to_string(p.id),reason:d("MWBlockedComposerLogging").ComposerBlockingReason.USER_BLOCKED,reportingToken:r,thread:a})})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXIconDragHandle",["MWXSvgIcon","SVGIcon","cr:72","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:72")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98); __d("useMWV2DisabledPageComposerSendMenuItem",["LSFactory","LSIntEnum","LSMailboxType","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSOptimisticSendMessageV2StoredProcedure","LSShape","LSThreadAttributionTypeUtil","MWPActor.react","MessagePowerUp","promiseDone","react","useLSMessagingSource","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(j||d("react")).useCallback;function a(){var a=(h||(h=c("useReStore")))(),b=d("MWPActor.react").useActor(),e=c("useLSMessagingSource")();return k(function(f,g,h){c("promiseDone")(a.runInTransaction(function(a){var j=d("LSThreadAttributionTypeUtil").getSource(f,e);return c("LSOptimisticSendMessageV2StoredProcedure")(c("LSFactory")(a),{extraSendMessageParams:d("LSShape").ofRecord({calculate_denormalizations:!0,mark_read:!0,platform_token:h,power_up_style:(i||(i=d("LSIntEnum"))).ofNumber(c("MessagePowerUp").NONE),reply_source_type:i.ofNumber(c("LSMessageReplySourceType").MESSAGE),reply_source_type_v2:i.ofNumber(c("LSMessageReplySourceTypeV2").MESSAGE),snippet_has_emoji:!1,source:j}),mailboxType:i.ofNumber(c("LSMailboxType").MESSENGER),senderId:b,snippet:g,text:g,threadKey:f,threadType:i.ofNumber(1)})},"readwrite"))},[a,e,b])}g["default"]=a}),98); __d("MWV2DisabledPageComposer.react",["fbt","JSResourceForInteraction","MWBlockedComposerLogging","MWXButton.react","MWXIconDragHandle","MWXLazyPopoverTrigger.react","react","useMWV2DisabledPageComposerSendMenuItem"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=c("JSResourceForInteraction")("LSComposerPersistentMenu.react").__setRef("MWV2DisabledPageComposer.react");function a(a){a=a.thread;d("MWBlockedComposerLogging").useLogMWBlockedComposerReason(a,d("MWBlockedComposerLogging").ComposerBlockingReason.PAGE_THREAD_DISABLED);var b=c("useMWV2DisabledPageComposerSendMenuItem")(),e=a.threadKey;a=function(a){var c=a.title;a=a.id;if(a!=null)return b(e,c,a)};return j.jsx(c("MWXLazyPopoverTrigger.react"),{align:"middle",popoverProps:{onClose:function(){},onSelect:a},popoverResource:k,children:function(a,b){return j.jsx("div",{className:"x78zum5 xu06os2 xvijh9v xz9dl7a xn6708d xsag5q8 x1ye3gou",ref:a,children:j.jsx(c("MWXButton.react"),{icon:c("MWXIconDragHandle"),label:h._("__JHASH__pzPWkkyVYqg__JHASH__"),onPress:b,reduceEmphasis:!0})})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWPDisablePageComposerConfiguration",["MWV2DisabledPageComposer.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){if(a.disableComposerInput&&a.hasPersistentMenu)return i.jsx(c("MWV2DisabledPageComposer.react"),{thread:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWPFeatureLimitsBlockedComposerConfiguration",["MWPFeatureLimitsBlockedComposer.react","isFeatureLimitEnabled","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a,b,d){b=b&&(!a||c("isFeatureLimitEnabled")());if(b)return i.jsx(c("MWPFeatureLimitsBlockedComposer.react"),{thread:d})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWPReQLFeatureLimitsBlockedComposerConfiguration",["LSMessagingThreadTypeUtil","react","useIsReadOnlyFeatureLimitedWithThreadType","useMWPFeatureLimitsBlockedComposerConfiguration"],(function(a,b,c,d,e,f,g){"use strict";var h;h||d("react");function a(a){var b=d("LSMessagingThreadTypeUtil").isSecure(a.threadType),e=c("useIsReadOnlyFeatureLimitedWithThreadType")(a.threadType);return c("useMWPFeatureLimitsBlockedComposerConfiguration")(b,e,a)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSNullstateCTAType",[],(function(a,b,c,d,e,f){a=Object.freeze({NONE:0,GET_STARTED:1,ICEBREAKER:2,PRIVACY_DISCLOSURE:3,MP_EMPTY_ICEBREAKER:4});f["default"]=a}),66); __d("useMWPNullComposerConfiguration",["I64","LSNullstateCTAType","MWBlockedComposerLogging","MWPreloadedText","justknobx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react")),k=h.useContext;function l(a){var b=a.reason;a=a.threadKey;d("MWBlockedComposerLogging").useLogMWBlockedComposerReason({threadKey:a},b);return null}function a(a,b,e,f){var g=k(c("MWPreloadedText"));f=f!=null&&(i||(i=d("I64"))).equal(f,(i||(i=d("I64"))).of_float(c("LSNullstateCTAType").GET_STARTED))&&!g.text;g=!(i||(i=d("I64"))).equal(b,i.zero);b=c("justknobx")._("926");if(f&&!g||!b&&e)return j.jsx(l,{reason:e?d("MWBlockedComposerLogging").ComposerBlockingReason.GAMING_GAME_BOT:d("MWBlockedComposerLogging").ComposerBlockingReason.GAMING_GET_STARTED_CTA,threadKey:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWPReQLNullComposerConfiguration",["LSThreadBitOffset","ReQL","ReQLSuspense","react","useMWPNullComposerConfiguration","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;i||d("react");function a(a){var b=(h||(h=c("useReStore")))(),e=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(b.table("thread_nullstate")).getKeyRange(a.threadKey)},[b,a.threadKey],f.id+":27"),g=d("LSThreadBitOffset").has(44,a);return c("useMWPNullComposerConfiguration")(a.threadKey,a.lastActivityTimestampMs,g,e==null?void 0:e.ctaType)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("getMWPUnavailableComposerConfiguration",["LSMessagingThreadTypeUtil","MWBlockedComposerLogging","MWChatUnavailableComposer.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a,b,e){if(d("LSMessagingThreadTypeUtil").isOneToOne(b)&&e!=null){b=!e.isPage&&(!e.hasMessageCapability||!e.hasReplyMessageCapability);if(e.blockedSinceTimestampMs==null&&b)return i.jsx(c("MWChatUnavailableComposer.react"),{reason:e.hasMessageCapability?d("MWBlockedComposerLogging").ComposerBlockingReason.USER_BLOCKED_CANNOT_REPLY:d("MWBlockedComposerLogging").ComposerBlockingReason.USER_BLOCKED_CANNOT_MESSAGE,thread:{threadKey:a}})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWPReQLUnavailableComposerConfiguration",["I64","LSContactBitOffset","LSContactType","LSIntEnum","LSMessagingThreadTypeUtil","MWPActor.react","ReQL","ReQLSuspense","getMWPUnavailableComposerConfiguration","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;k||d("react");function a(a){var b=(h||(h=c("useReStore")))(),e=d("MWPActor.react").useActor(),g=(i||(i=d("I64"))).equal(e,a.threadKey),k=d("ReQLSuspense").useFirst(function(){return d("LSMessagingThreadTypeUtil").isOneToOne(a.threadType)?d("ReQL").mergeJoin(d("ReQL").fromTableAscending(b.table("participants")).getKeyRange(a.threadKey),d("ReQL").fromTableAscending(b.table("contacts"))).filter(function(a){a[0];a=a[1];return g||!(i||(i=d("I64"))).equal(a.id,e)}).map(function(a){a[0];a=a[1];return a}):d("ReQL").empty()},[b,a.threadKey,a.threadType,e,g],f.id+":33");if(k==null)return;return c("getMWPUnavailableComposerConfiguration")(a.threadKey,a.threadType,{blockedSinceTimestampMs:k==null?void 0:k.blockedSinceTimestampMs,hasMessageCapability:d("LSContactBitOffset").has(0,k),hasReplyMessageCapability:d("LSContactBitOffset").has(1,k),isPage:i.equal(k.contactType,(j||(j=d("LSIntEnum"))).ofNumber(c("LSContactType").PAGE))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWPShouldShowRestrictedComposer",["LSMessagingThreadTypeUtil","gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){return d("LSMessagingThreadTypeUtil").isOneToOne(a)&&c("gkx")("735")&&b}g["default"]=a}),98); __d("useMWPRestrictedComposerConfiguration",["I64","JSResourceForInteraction","LSContactBitOffset","MWPComposerPlaceholder.react","lazyLoadComponent","react","useMWGetOtherUserContact","useMWIsContactRestricted","useMWPShouldShowRestrictedComposer"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react"),k=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWPReQLRestrictedComposer.react").__setRef("useMWPRestrictedComposerConfiguration"));function a(a){var b=c("useMWGetOtherUserContact")(a.threadKey,a.threadType,["id"].concat(d("LSContactBitOffset").contactCapabilityFields)),e=c("useMWIsContactRestricted")(b);e=c("useMWPShouldShowRestrictedComposer")(a.threadType,e);if(e&&b!=null)return j.jsx(c("MWPComposerPlaceholder.react"),{height:128,children:j.jsx(k,{fbid:(i||(i=d("I64"))).to_string(b.id),threadKey:a.threadKey,threadType:a.threadType})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWCutoverComposerConfiguration",["JSResourceForInteraction","LSMessagingThreadTypeUtil","MWBlockedComposerLogging","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWCutoverComposer.react").__setRef("useMWCutoverComposerConfiguration")),k=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWDualThreadCutoverComposer.react").__setRef("useMWCutoverComposerConfiguration"));function a(a,b,c,e,f){if(f&&(!d("LSMessagingThreadTypeUtil").isOneToOne(b)||c!=null))return e?i.jsx(k,{otherUser:c,thread:{threadKey:a}}):i.jsx(j,{reason:c!=null?d("MWBlockedComposerLogging").ComposerBlockingReason.ARMADILLO_THREAD_ALREADY_CUTOVER:d("MWBlockedComposerLogging").ComposerBlockingReason.ARMADILLO_GROUP_THREAD_CUTOVER,thread:{threadKey:a}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWReQLCutoverComposerConfiguration",["LSMessagingThreadTypeUtil","LSThreadBitOffset","MAWThreadCutover","ReQL","ReQLSuspense","react","useMWCutoverComposerConfiguration","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;i||d("react");function a(a){var b=(h||(h=c("useReStore")))(),e=d("ReQLSuspense").useFirst(function(){return d("LSMessagingThreadTypeUtil").isOneToOne(a.threadType)?d("ReQL").fromTableAscending(b.table("contacts")).getKeyRange(a.threadKey):d("ReQL").empty()},[b,a],f.id+":31"),g=d("MAWThreadCutover").useIsCutoverOpenThread(a.threadKey)||d("LSThreadBitOffset").has(128,a),i=d("MAWThreadCutover").useIsDualThreadCutoverOpenThread(a.threadKey);return c("useMWCutoverComposerConfiguration")(a.threadKey,a.threadType,e,i,g)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWComposerGating.react",["LSMessagingThreadTypeUtil","MWPComposerGating.react","MWV2OpenComposer.react","cr:6984","emptyFunction","react","useMWDefaultE2eeComposerConfiguration","useMWPBlockedComposerConfiguration","useMWPDisablePageComposerConfiguration","useMWPReQLFeatureLimitsBlockedComposerConfiguration","useMWPReQLNullComposerConfiguration","useMWPReQLUnavailableComposerConfiguration","useMWPRestrictedComposerConfiguration","useMWReQLCutoverComposerConfiguration"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.memo;function k(a){return[c("useMWPReQLNullComposerConfiguration")(a),c("useMWPDisablePageComposerConfiguration")(a),c("useMWPReQLFeatureLimitsBlockedComposerConfiguration")(a),c("useMWReQLCutoverComposerConfiguration")(a),c("useMWPBlockedComposerConfiguration")(a),c("useMWPRestrictedComposerConfiguration")(a),c("useMWPReQLUnavailableComposerConfiguration")(a),c("useMWDefaultE2eeComposerConfiguration")(a)]}function a(a){var e=a.afterSendMessage,f=a.isPreviewThread;a=a.thread;var g=d("LSMessagingThreadTypeUtil").isSecure(a.threadType);if(b("cr:6984")!=null&&g)return i.jsx(b("cr:6984"),{afterSendMessage:e,isPreviewThread:f,thread:a});else return i.jsx(c("MWV2OpenComposer.react"),{afterSendMessage:e,isPreviewThread:f,thread:a})}a.displayName=a.name+" [from "+f.id+"]";var l=j(a);function e(a){var b=a.afterSendMessage,d=b===void 0?c("emptyFunction"):b;a.isMessengerInbox;var e=a.isPreviewThread,f=a.thread;b=k(f);return i.jsx(c("MWPComposerGating.react"),{configurations:b,isMessengerInbox:!1,renderComposer:function(){return i.jsx(l,{afterSendMessage:d,isPreviewThread:e,thread:f})},thread:f})}e.displayName=e.name+" [from "+f.id+"]";function m(a){var b=a.afterSendMessage;a.isMessengerInbox;var d=a.isPreviewThread,e=a.thread;a=k(e);return i.jsx(c("MWPComposerGating.react"),{configurations:a,isMessengerInbox:!0,renderComposer:function(){return i.jsx(l,{afterSendMessage:b,isPreviewThread:d,thread:e})},thread:e})}m.displayName=m.name+" [from "+f.id+"]";g.MWChatComposerGating=e;g.MWInboxComposerGating=m}),98); __d("MWChatMessageUnreadIndicator.react",["fbt","MDSRow.react","MDSRowItem.react","MWXText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={line:{backgroundColor:"x1iuwi03",flexGrow:"x1iyjqo2",height:"xjm9jq1",$$css:!0}};function a(){var a=h._("__JHASH__dAK4xN4bf5e__JHASH__");return j.jsxs(c("MDSRow.react"),{"aria-label":a,paddingVertical:12,spacingVertical:0,children:[j.jsx(c("MDSRowItem.react"),{verticalAlign:"center",xstyle:k.line,children:j.jsx(j.Fragment,{})}),j.jsx(c("MDSRowItem.react"),{children:j.jsx(c("MWXText.react"),{color:"secondary",isSemanticHeading:!0,type:"meta4",children:a})}),j.jsx(c("MDSRowItem.react"),{verticalAlign:"center",xstyle:k.line,children:j.jsx(j.Fragment,{})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWExtraPinnedMessagePadding.react",["MWPMessageListColumn.react","react","useMWPIsMessagePinned"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.nextMessage;a=c("useMWPIsMessagePinned")(a);return a&&i.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:6})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSForwardSvgIcon.react",["MDSSvgIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsx(c("MDSSvgIcon.react"),babelHelpers["extends"]({},a,{children:i.jsx("path",{clipRule:"evenodd",d:"M30.22 19.497l-10.5 7.198c-1.163.797-2.722-.06-2.722-1.497v-3.204H8.001A2 2 0 016 19.996v-3.997A2 2 0 018 14h8.998v-3.198c0-1.437 1.559-2.294 2.722-1.497l10.5 7.197c1.04.713 1.04 2.283 0 2.995z",fillRule:"evenodd"})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSForwardStackSvgIcon.react",["MDSSvgIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(c("MDSSvgIcon.react"),babelHelpers["extends"]({},a,{children:[i.jsx("path",{d:"M10.5 14a.5.5 0 0 0 .5-.5v-2.536c0-1.608 1.769-2.532 3.02-1.578l9.21 7.026c1.026.783 1.027 2.37.002 3.154l-9.21 7.046c-1.25.957-3.022.034-3.022-1.576V22.5a.5.5 0 0 0-.5-.5H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h5.5Z"}),i.jsx("path",{d:"M20.38 24.265a.97.97 0 0 0-.38.771c0 1.61 1.771 2.533 3.022 1.576l9.21-7.046c1.025-.784 1.024-2.37-.002-3.154l-9.21-7.026c-1.251-.954-3.02-.03-3.02 1.578 0 .295.138.574.373.753l4.07 3.105c2.074 1.583 2.076 4.747.004 6.332l-4.066 3.111Z"})]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWHighlyForwardedIndicator.react",["fbt","LSMessagingThreadTypeUtil","MDSForwardStackSvgIcon.react","MWXText.react","coerceMessagingThreadTypeToLSThreadType","react","requireDeferred","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=c("requireDeferred")("MwbHighlyForwardedIndicatorImpressionFalcoEvent").__setRef("MWHighlyForwardedIndicator.react");function a(a){var b=a.forwardScore,e=a.mid,f=a.threadType;a=function(){k.onReady(function(a){a.log(function(){return{limit:b,mid:f!=null&&d("LSMessagingThreadTypeUtil").isSecure(f)?void 0:e,thread_type:f!=null?c("coerceMessagingThreadTypeToLSThreadType")(f):void 0}})})};a=c("useSinglePartialViewImpression")({onImpressionStart:a});return j.jsxs(j.Fragment,{children:[j.jsx(c("MDSForwardStackSvgIcon.react"),{color:"tertiary",size:16}),j.jsx("span",{className:"x1h0ha7o",children:j.jsx(c("MWXText.react"),{color:"tertiary",ref:a,type:"meta4",children:h._("__JHASH__hxhFsSrRndH__JHASH__")})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPForwardedContent",["fbt","I64","LSIntEnum","MWPMessageAuthor.react","MWPMessageHasAttachment","MessagingAttachmentType","ReQL","ReQLSuspense","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=(j||d("react")).useMemo;function n(a){if((k||(k=d("I64"))).equal(a.attachmentType,(l||(l=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA)))return a.defaultCtaType==="xma_web_url";else return!1}function o(a){if((k||(k=d("I64"))).equal(a.attachmentType,(l||(l=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE)))return!0;else return(k||(k=d("I64"))).equal(a.attachmentType,(l||(l=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))}function p(a,b,e){var g=(i||(i=c("useReStore")))(),j=a.messageId,p=a.threadKey,q=c("MWPMessageHasAttachment")(a),r=d("ReQLSuspense").useFirst(function(){if(q)return d("ReQL").fromTableAscending(g.table("attachments")).getKeyRange(p,j);else return d("ReQL").empty()},[g,j,p,q],f.id+":63");return m(function(){if(b)if(r!=null)if(n(r))return h._("__JHASH___8ZpqsY3Jrg__JHASH__");else if(o(r))return h._("__JHASH__INRUrq18hhv__JHASH__");else if((k||(k=d("I64"))).equal(r.attachmentType,(l||(l=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)))return h._("__JHASH__Z71bv2q5yoA__JHASH__");else return h._("__JHASH__8h2fNslikTS__JHASH__");else return h._("__JHASH__8h2fNslikTS__JHASH__");else if(r!=null)if(e!=null)if(n(r))return h._("__JHASH__5GN3g82hBzH__JHASH__",[h._param("name",e)]);else if(o(r))return h._("__JHASH__NQwzfDxVOf0__JHASH__",[h._param("name",e)]);else if((k||(k=d("I64"))).equal(r.attachmentType,(l||(l=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)))return h._("__JHASH__QvgCMGMfMHB__JHASH__",[h._param("name",e)]);else return h._("__JHASH__CmZMizVeMX7__JHASH__");else if(n(r))return h._("__JHASH__QhCmPJ-QbeG__JHASH__");else if(o(r))return h._("__JHASH__vFSMWshNg-J__JHASH__");else if((k||(k=d("I64"))).equal(r.attachmentType,(l||(l=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)))return h._("__JHASH__U5_TMTE9DWx__JHASH__");else return h._("__JHASH__CmZMizVeMX7__JHASH__");else if(e!=null)return h._("__JHASH__1jGDZrisR_E__JHASH__",[h._param("name",e)]);else return h._("__JHASH__CmZMizVeMX7__JHASH__")},[b,r,e])}function a(a,b){var c=d("MWPMessageAuthor.react").useAuthorName();c=c[0];return p(a,b,c)}g.useTitle=a}),98); __d("MWForwardedContent.react",["I64","MDSForwardSvgIcon.react","MWHighlyForwardedIndicator.react","MWPForwardedContent","gkx","justknobx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react"),k=c("justknobx")._("1649");function a(a){var b=a.message,e=a.outgoing;a=a.threadType;e=d("MWPForwardedContent").useTitle(b,e);var f=b.forwardScore!=null?(i||(i=d("I64"))).to_int32(b.forwardScore):0;f=c("gkx")("9901")&&k!==0&&f>=k;f=f?j.jsx(c("MWHighlyForwardedIndicator.react"),{forwardScore:(i||(i=d("I64"))).to_string((f=b.forwardScore)!=null?f:(i||(i=d("I64"))).zero),mid:b.messageId,threadType:a}):j.jsxs(j.Fragment,{children:[j.jsx(c("MDSForwardSvgIcon.react"),{color:"tertiary",size:16}),j.jsx("div",{className:"x12scifz x1pg5gke x1h0ha7o",children:e})]});return j.jsx("div",{className:"x6s0dn4 x78zum5 xg8j3zb x1nn3v0j",children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWMessageListLoggingContext",["react","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));d=h;var j=d.createContext,k=d.useContext,l=d.useRef,m=j({current:""});function a(a){var b=a.children;a=a.flowInstanceId;a=l(a);return i.jsx(m.Provider,{value:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";function b(){return k(m)}function e(){var a=k(m);(a.current===null||a.current==="")&&(a.current=c("uuidv4")());return a}g.MWMessageListLoggingContext=a;g.useFlowInstanceIdContext=b;g.useFlowInstanceId=e}),98); __d("MWMessagePromptPopoverTrigger.react",["I64","JSResourceForInteraction","MWPActor.react","MWShowMessagePromptPopoverContext.react","MWXLazyPopoverTrigger.react","emptyFunction","react","useShouldAllowRollCallForMessage"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react")),k=h.useRef,l=c("JSResourceForInteraction")("MWMessagePromptPopover.react").__setRef("MWMessagePromptPopoverTrigger.react");function a(a){var b=a.attachments,e=a.children;a=a.message;b=d("useShouldAllowRollCallForMessage").useShouldAllowRollCallForMessage(a,b);var f=k(!1),g=d("MWPActor.react").useActor(),h=d("MWShowMessagePromptPopoverContext.react").useMWShowMessagePromptPopoverContext();h[0];var m=h[1];return b?j.jsx(c("MWXLazyPopoverTrigger.react"),{align:"middle",popoverProps:{message:a,onClose:c("emptyFunction")},popoverResource:l,position:(i||(i=d("I64"))).equal(g,a.senderId)?"start":"end",children:function(a,b){f.current===!1&&(f.current=!0,m(b));return j.jsx("div",{ref:a,children:e})}}):e}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSClearReactionsV2DetailsAndRange",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[];return b.sequence([function(a){return b.sequence([function(a){return b.forEach(b.db.table(239).fetch(),function(a){return a["delete"]()})},function(a){return b.forEach(b.db.table(243).fetch(),function(a){return a["delete"]()})}])},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSClearReactionsV2DetailsAndRangeStoredProcedure",["LSClearReactionsV2DetailsAndRange"],(function(a,b,c,d,e,f,g){function a(a){return c("LSClearReactionsV2DetailsAndRange")(a)}g["default"]=a}),98); __d("LSIssueReactionsV2DetailsUsersListFetch",["LSIssueNewTaskWithExtraOperations"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return c.filter(c.db.table(243).fetch([[[a[0],a[1]]]]),function(b){return c.i64.eq(a[0],b.threadId)&&a[1]===b.messageId&&c.i64.eq(a[2],b.reactionFbid)}).next().then(function(b,d){var e=b.done;b=b.value;return e?c.db.table(243).add({threadId:a[0],messageId:a[1],reactionFbid:c.i64.cast([0,0]),minTimestampMs:c.i64.cast([2147483647,4294967295]),hasMoreAfter:!1,hasMoreBefore:!1,isLoadingAfter:!1,isLoadingBefore:!0,maxTimestampMs:c.i64.cast([2147483647,4294967295]),nextPageCursor:""}):(d=b.item,c.forEach(c.db.table(243).fetch([[[d.threadId,d.messageId,d.reactionFbid,d.minTimestampMs]]]),function(a){var b=a.update;a.item;return b({isLoadingBefore:!0})}))})},function(e){return d[1]=new c.Map(),d[1].set("thread_id",a[0]),d[1].set("message_id",a[1]),d[1].set("reaction_fbid",a[2]),d[1].set("cursor",a[3]),d[2]=c.toJSON(d[1]),c.storedProcedure(b("LSIssueNewTaskWithExtraOperations"),"fetch_reactions_v2_details_users_list",c.i64.cast([0,577]),d[2],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),void 0,c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueReactionsV2DetailsUsersListFetchStoredProcedure",["LSIssueReactionsV2DetailsUsersListFetch"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadId;d[1]=b.messageId;d[2]=b.reactionFbid;d[3]=b.nextPageCursor;return c("LSIssueReactionsV2DetailsUsersListFetch").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MWV2ChatReactionsTooltip.react",["fbt","FBLogger","I64","LSAuthorityLevel","LSClearReactionsV2DetailsAndRangeStoredProcedure","LSContactBlockedByViewerStatus","LSContactGender","LSContactIdType","LSContactType","LSContactViewerRelationship","LSContactWorkForeignEntityType","LSFactory","LSIntEnum","LSIssueReactionsV2DetailsUsersListFetchStoredProcedure","LSVerifyContactRowExistsStoredProcedure","MWLSThread","MWPActor.react","Promise","ReQL","ReQLSuspense","intlSummarizeNumber","promiseDone","react","useIsReactionsV2Enabled","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=m||(m=d("react"));e=m;var o=e.useEffect,p=e.useMemo,q=9;function r(a){var b=(j||(j=c("useReStore")))(),e=d("ReQLSuspense").useArray(function(){return a==null?d("ReQL").empty():d("ReQL").fromTableAscending(b.table("contextual_profile_v1").index("associatedEntityIdAndOwner")).getKeyRange(a)},[b,a],f.id+":46"),g=p(function(){var a=new Map();for(var b=e,c=Array.isArray(b),f=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(c){if(f>=b.length)break;g=b[f++]}else{f=b.next();if(f.done)break;g=f.value}g=g;var h=g==null?void 0:g.profileName;h!=null&&a.set((l||(l=d("I64"))).to_string(g.ownerId),h)}return a},[e]);return g}function a(a){var b=a.messageId;a.parentThreadKey;var c=a.reactions;a=a.threadKey;var e=d("MWLSThread").useThread(a,function(a){return a.parentThreadKey}),f=d("useIsReactionsV2Enabled").useIsReactionsV2Enabled(a);return f?n.jsx(t,{messageId:b,parentThreadKey:e,reactions:c,threadKey:a}):n.jsx(s,{messageId:b,parentThreadKey:e,reactions:c,threadKey:a})}a.displayName=a.name+" [from "+f.id+"]";function s(a){var e=a.messageId,g=a.parentThreadKey,m=a.reactions,s=a.threadKey,t=(j||(j=c("useReStore")))(),u=d("ReQLSuspense").useArray(function(){return d("ReQL").leftJoin(d("ReQL").fromTableAscending(t.table("reactions")).getKeyRange(s,e),d("ReQL").fromTableAscending(t.table("contacts")))},[t,s,e],f.id+":109"),v=r(g);o(function(){c("promiseDone")(t.runInTransaction(function(a){return(i||(i=b("Promise"))).all(u.map(function(e){e=e[1];if(e!=null)return c("LSVerifyContactRowExistsStoredProcedure")(c("LSFactory")(a),{authorityLevel:(k||(k=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL),blockedByViewerStatus:k.ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED),contactIdType:k.ofNumber(c("LSContactIdType").FBID),contactType:k.ofNumber(c("LSContactType").USER),contactViewerRelationship:k.ofNumber(c("LSContactViewerRelationship").UNKNOWN),gender:k.ofNumber(c("LSContactGender").UNKNOWN),id:e.id,isBlocked:!1,isMemorialized:!1,isSelf:!1,workForeignEntityType:k.ofNumber(c("LSContactWorkForeignEntityType").UNKNOWN)});else return(i||(i=b("Promise"))).resolve()}))},"readwrite"))},[t,u]);a=p(function(){var a=new Map(u.map(function(a){var b=a[1];b==null&&c("FBLogger")("messenger_web_product").debug("missing contact for reaction tooltip");return[(l||(l=d("I64"))).to_string(a[0].actorId),b!=null?b.name:h._("__JHASH__AaE4hJExM0x__JHASH__")]})),b=m.map(function(b){b=(l||(l=d("I64"))).to_string(b.actorId);if(v.has(b))return v.get(b);b=a.get(b);if(b==null)return"";else return b}).filter(function(a){return a!==""}),e=b.length;b=b.slice(0,q);if(e>q){e=e-q;b.push(h._("__JHASH__KVtJcih6CQz__JHASH__",[h._plural(e),h._param("count",String(e))]))}return b},[v,m,u]);g=a.map(function(a,b){return n.jsx("div",{children:a},String(b))});return n.jsx("div",{children:g})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b,e=a.messageId,g=a.parentThreadKey;a.reactions;var i=a.threadKey,k=(j||(j=c("useReStore")))();o(function(){c("promiseDone")(k.runInTransaction(function(a){return c("LSClearReactionsV2DetailsAndRangeStoredProcedure")(c("LSFactory")(a))},"readwrite")),c("promiseDone")(k.runInTransaction(function(a){return c("LSIssueReactionsV2DetailsUsersListFetchStoredProcedure")(c("LSFactory")(a),{messageId:e,threadId:i})},"readwrite"))},[k,i,e]);var m=r(g);a=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(k.table("reactions_v2_details")).getKeyRange(i,e).map(function(a){var b;return(b=m.get((l||(l=d("I64"))).to_string(a.reactorId)))!=null?b:a.fullName})},[k,m,i,e],f.id+":241");g=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(k.table("reactions_v2")).getKeyRange(i,e)},[k,i,e],f.id+":254");var p=g?g.map(function(a){return a.viewerIsReactor}):[];p=p.length>0?p.reduce(function(a,b){return a||b}):!1;var s=d("MWPActor.react").useActor(),t=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(k.table("contacts")).getKeyRange(s)},[k,s],f.id+":273");g=g?g.map(function(a){return(l||(l=d("I64"))).to_int32(a.count)}).filter(function(a){return a>0}):[];b=(b=(t==null?void 0:t.id)!=null?m.get((l||(l=d("I64"))).to_string(t.id)):null)!=null?b:t==null?void 0:t.name;JSON.stringify(g)===JSON.stringify([1])&&p&&b!=null&&a.length===0?a.push(b):p&&a[0]!=null&&t&&b!=null&&((g=a[0])==null?void 0:g.toString())!==b&&a.unshift(b);p=h._("__JHASH__GTBXwO8BaZr__JHASH__");t=a.slice(0,q);if(a.length>q){g=a.length-q;t.push(h._("__JHASH__KVtJcih6CQz__JHASH__",[h._plural(g),h._param("count",String(c("intlSummarizeNumber")(g)))]))}b=t.length===0?p:t.map(function(a,b){return n.jsx("div",{children:a},String(b))});return n.jsx("div",{children:b})}t.displayName=t.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useIsReactionDialogEnabled",["LSMessagingThreadTypeUtil","LSThreadBitOffset","MWLSThread"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return(a=d("MWLSThread").useThread(a,function(a){return d("LSThreadBitOffset").has(184,a)||d("LSMessagingThreadTypeUtil").isSecure(a.threadType)}))!=null?a:!1}g["default"]=a}),98); __d("MWMessageReactionsContainer.react",["fbt","I64","MWChatReactionEmoji","MWChatReactionsUtils","MWV2ChatReactionsTooltip.react","MWXTooltip.react","intlSummarizeNumber","react","stylex","useIsReactionDialogEnabled"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||d("react"),m={emoji:{alignItems:"x6s0dn4",backgroundColor:"x2bj2ny",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",lineHeight:"x14ju556",$$css:!0},emojiMargin:{marginEnd:"xcwd3tp",marginLeft:null,marginRight:null,$$css:!0},emojiNum:{color:"xi81zsa",fontSize:"x1ncwhqj",lineHeight:"x14ju556",minWidth:"xdhweic",paddingEnd:"x150jy0e",paddingLeft:null,paddingRight:null,paddingStart:"x1e558r4",textAlign:"x2b8uid",$$css:!0},emojiRow:{alignItems:"x6s0dn4",backgroundColor:"x2bj2ny",borderTopStartRadius:"x1a2cdl4",borderTopEndRadius:"xnhgr82",borderBottomEndRadius:"x1qt0ttw",borderBottomStartRadius:"xgk8upj",boxShadow:"x10vwrwz",display:"x78zum5",justifyContent:"xl56j7k",paddingTop:"x4p5aij",paddingEnd:"x19um543",paddingBottom:"x1j85h84",paddingStart:"x1m6msm",textAlign:"xp4054r",$$css:!0},emojiWithCursor:{cursor:"x1ypdohk",$$css:!0},scaleHeartEmoji:{transform:"xhqu4j4",$$css:!0}};function a(a){var b=a.count,e=a.emojis,f=a.message,g=a.reactions,j=a.reactionsV2,o=a.renderEmojis;a=a.threadKey;f=f.messageId;j=j!=null?j.map(function(a){return(k||(k=d("I64"))).to_int32(a.count)}).reduce(function(a,b){return a+b},0):0;var p=c("useIsReactionDialogEnabled")(a);j=j>1?j:b;var q=j>1;b=e.map(function(a,b){var f=q||b!==e.length-1,g=d("MWChatReactionsUtils").isHeart(a[0]);return l.jsx("div",{className:(i||(i=c("stylex")))(m.emoji,p?m.emojiWithCursor:!1,f?m.emojiMargin:!1),children:l.jsx("div",{className:i(g?m.scaleHeartEmoji:!1),children:o?o(a,16,"messenger_reaction_emoji_"+a[0]):l.jsx(c("MWChatReactionEmoji"),{emoji:a,size:16,testid:void 0})})},String(b))});b=l.jsxs("div",{className:"x6s0dn4 x2bj2ny x1a2cdl4 xnhgr82 x1qt0ttw xgk8upj x10vwrwz x78zum5 xl56j7k x4p5aij x19um543 x1j85h84 x1m6msm xp4054r",role:"none",children:[b,q?l.jsx(n,{reactionCount:j}):null]});return p?l.jsx(c("MWXTooltip.react"),{align:"middle",label:h._("__JHASH__pugXv5G1XoG__JHASH__"),position:"above",tooltip:l.jsx(c("MWV2ChatReactionsTooltip.react"),{messageId:f,reactions:g,threadKey:a}),children:b}):b}a.displayName=a.name+" [from "+f.id+"]";function n(a){a=a.reactionCount;a=c("intlSummarizeNumber")(a);var b=a.length;return l.jsx("div",{className:"xi81zsa x1ncwhqj x14ju556 xdhweic x150jy0e x1e558r4 x2b8uid",role:"none",style:{width:b+"ch"},children:a})}n.displayName=n.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWSearchPluginUtils",[],(function(a,b,c,d,e,f){"use strict";function a(a){a=(a=a==null?void 0:(a=a.split("?")[1])==null?void 0:a.split("&"))!=null?a:[];if(a.length===0)return null;var b=[],c=[],d=[],e="",f="",g="";a.forEach(function(a){a=a.split("=");var h=a[0];a=a[1];a=decodeURIComponent(a);h.includes("source_titles")&&b.push(a.replaceAll("+"," "));h.includes("source_sub_titles")&&c.push(a.replaceAll("+"," "));h.includes("source_urls")&&d.push(a);h==="source_query"&&(e=a.replaceAll("+"," "));h==="source_query_url"&&(f=a);h==="header"&&(g=a)});return{header:g,source_query:e,source_query_url:f,source_sub_titles:c,source_titles:b,source_urls:d}}function b(a){return a.cta1Type==="xma_gen_ai_search_plugin_response_search_engine_attribution"&&a.cta2Type==="xma_gen_ai_search_plugin_response_sources"}f.useSearchPluginSources=a;f.isSearchPlugin=b}),66); __d("MWMessageSearchPluginMustache.react",["BaseView.react","CurrentUser","IGDWebUtils","MWPMessageListColumn.react","MWSearchPluginUtils","MWXPressable.react","MWXText.react","MessengerWebUXLogger","react","useMWPGetAttachmentCTA","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useMemo,l={mustacheContainer:{display:"x78zum5",flexDirection:"x1q0g3np",$$css:!0},root:{marginStart:"x16n37ib",marginLeft:null,marginRight:null,$$css:!0}};function a(a){var b=a.attachment,e=a.botResponseId,f=a.dialogResource,g=a.flowInstanceId;a=b.attachmentCta1Id;b=b.attachmentCta2Id;a=c("useMWPGetAttachmentCTA")(a);b=c("useMWPGetAttachmentCTA")(b);var h=d("MWSearchPluginUtils").useSearchPluginSources(b==null?void 0:b.nativeUrl),m=d("IGDWebUtils").isInstagramWebSupportedApp(Number(c("CurrentUser").getAppID()));f=c("useMWXLazyDialog")(f);var n=f[0];f=m?"highlight":"blueLink";m=m?"bodyLink4":"body4";var o=k(function(){var a;return{extraData:{botResponseId:(a=e)!=null?a:""},flowInstanceId:g}},[e,g]),p=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useImpressionLoggerRef(babelHelpers["extends"]({eventName:"search_plugin_attachment_rendered"},o)),q=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger(),r=j(function(){q==null?void 0:q(babelHelpers["extends"]({eventName:"search_plugin_see_more"},o))},[q,o]),s=j(function(){h!=null&&(q==null?void 0:q(babelHelpers["extends"]({eventName:"search_plugin_see_sources"},o)),n({botResponseId:e,sources:h}))},[e,o,q,n,h]);return i.jsxs(c("BaseView.react"),{ref:p,xstyle:l.root,children:[i.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:4}),i.jsxs("div",{className:"x78zum5 x1q0g3np",children:[i.jsx(c("MWXPressable.react"),{linkProps:{url:a==null?void 0:a.actionUrl},onPress:r,overlayDisabled:!0,children:i.jsx(c("MWXText.react"),{color:f,type:m,children:a!=null&&a.title})}),i.jsx(c("MWXText.react"),{color:"primary",type:"bodyLink4",children:"\xa0\xb7\xa0"}),i.jsx(c("MWXPressable.react"),{onPress:s,overlayDisabled:!0,children:i.jsx(c("MWXText.react"),{color:f,type:m,children:b!=null&&b.title})})]}),i.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:4})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSMessageTakedownState",[],(function(a,b,c,d,e,f){a=Object.freeze({TAKEN_DOWN_BY_META:1,TAKEN_DOWN_BY_ADMIN:2,GEO_BLOCKED:3});f["default"]=a}),66); __d("MWMustacheText",["fbt","I64","LSIntEnum","LSMessageTakedownState","MWPMessageListColumn.react","MWXLink.react","MWXText.react","react","stylex","useGroupsCometCMDisabledChatEntryPointDialog","useMWPGetAttachments"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||d("react"),n={outgoing:{alignSelf:"xpvyfi4",$$css:!0},row:{marginBottom:"x12nagc",marginTop:"x1gslohp",$$css:!0}};function o(a){var b=a.attachment;a=a.outgoing;b=b.mustacheText;return b==null||b===""?null:m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnWithGutters,{shrinkwrap:!0,children:m.jsx("div",{className:(i||(i=c("stylex")))(n.row,a&&n.outgoing),children:m.jsx(c("MWXText.react"),{color:"tertiary",type:"meta4",children:h._("__JHASH__fTQoFWqjgLD__JHASH__",[h._param("quoted text",b)])})})})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.outgoing,e=a.threadID,f=!0;a=c("useGroupsCometCMDisabledChatEntryPointDialog")({isGeoBlocked:f,threadID:e});var g=a[0];return m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnWithGutters,{shrinkwrap:!0,children:m.jsx("div",{className:(i||(i=c("stylex")))(n.row,b&&n.outgoing),children:m.jsx(c("MWXText.react"),{color:"blueLink",type:"bodyLink4",children:m.jsx(c("MWXLink.react"),{display:"inline",onClick:function(){return g({isGeoBlocked:f,threadID:e})},children:h._("__JHASH__P-dEPoA1cwy__JHASH__")})})})})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b,e=a.message;a=a.outgoing;b=(b=c("useMWPGetAttachments")(e))==null?void 0:b[0];var f=e.takedownState!=null&&(j||(j=d("I64"))).equal(e.takedownState,(k||(k=d("LSIntEnum"))).ofNumber(c("LSMessageTakedownState").GEO_BLOCKED));if(f)return m.jsx(p,{outgoing:a,threadID:(j||(j=d("I64"))).to_string(e.threadKey)});return b!=null?m.jsx(o,{attachment:b,outgoing:a}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPMessageFooter.react",["react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.Children,l={container:{backgroundColor:"xcrg951",display:"x78zum5",height:"xmix8c7",justifyContent:"x13a6bvl",position:"x1n2onr6",width:"xh8yej3",zIndex:"x1vjfegm",$$css:!0},gutter:{flexBasis:"x1ohifd9",flexGrow:"x1c4vz4f",flexShrink:"xs83m0k",$$css:!0},items:{display:"x78zum5",transform:"x11z5cog",$$css:!0}};function a(a){var b=a.children,d=a.itemsXstyle,e=a.outgoing;a=a.xstyle;b=k.toArray(b).filter(Boolean);return b.length===0?null:j.jsxs("div",{className:(h||(h=c("stylex")))(l.container,a),role:"none",children:[b.map(function(a,b){return j.jsx("div",{className:(h||(h=c("stylex")))(l.items,d),role:"none",children:a},""+b)}),e?null:j.jsx("div",{className:"x1ohifd9 x1c4vz4f xs83m0k",role:"none"})]})}a.displayName=a.name+" [from "+f.id+"]";g.MWPMessageFooter=a}),98); __d("MWPMessageLoggingWrapper.react",["CometHeroInteractionWithDiv.react","MWChatInteraction","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var b=a.children,e=a.messageId,f=a.optimisticMessageId;a=a.xstyle;e=d("MWChatInteraction").get(e);f=d("MWChatInteraction").get(f);e=(e=e)!=null?e:f;if(e==null)return j.jsx("div",{className:(h||(h=c("stylex")))(a),children:b});else return j.jsx(c("CometHeroInteractionWithDiv.react"),{interactionDesc:"MESSAGE_RENDER",interactionUUID:e,pageletName:"Message",xstyle:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPMessagePinnedText.react",["fbt","react","useMWPIsMessagePinned"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.divider;a=a.message;a=c("useMWPIsMessagePinned")(a);var d=h._("__JHASH__hknrqEeMk6h__JHASH__");return a&&j.jsxs(j.Fragment,{children:[b!=null&&j.jsx("span",{className:"x1sdyfia",children:b}),j.jsx("span",{"aria-label":d,children:d})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWReactionUtils",["LSMessagingThreadTypeUtil","MWCMThreadTypes.react","ReQL","ReQLSuspense","useIsMultiReactionEnabled","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){var e,g=(h||(h=c("useReStore")))(),i=d("useIsMultiReactionEnabled").useIsMultiReactEnabled(b);e=(e=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("threads"),["threadSubtype","threadType"]).getKeyRange(b)},[g,b],f.id+":30"))!=null?e:{};var j=e.threadSubtype;e=e.threadType;if(!(e!=null&&d("LSMessagingThreadTypeUtil").isDiscoverableChannel(e))&&!(e!=null&&d("MWCMThreadTypes.react").isBroadcastThread(e))&&!(j!=null&&d("MWCMThreadTypes.react").isIGBroadcastChannelThread(j)))return;if(i)return;a.sort(function(a,b){return a.count===b.count&&a.reactionLiteral!=null&&b.reactionLiteral!=null?a.reactionLiteral.localeCompare(b.reactionLiteral):b.count-a.count})}g.useSortReactionsForBroadcastChat=a}),98); __d("MWPMessageReactions.react",["fbt","EmojiRenderer","I64","JSResourceForInteraction","LSFactory","LSIssueReactionsV2DetailsUsersListFetchStoredProcedure","LSPlatformWaitForTaskCompletion","MWChatReactionsUtils","MWReactionUtils","MWV2MessageRowIsRowFocusedContext.react","MWXPressable.react","ReQL","ReQLSuspense","gkx","intlList","promiseDone","react","useIsMultiReactionEnabled","useIsReactionDialogEnabled","useIsReactionsV2Enabled","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k,n=m.useCallback,o=m.useContext,p=m.useDeferredValue,q=m.useMemo,r=m.useRef,s=c("gkx")("1536285")?d("MWChatReactionsUtils").heartType2:d("MWChatReactionsUtils").heartType1;function a(a){var b=(i||(i=c("useReStore")))(),e=a.messageId,g=a.threadKey;a=p(d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(b.table("reactions")).getKeyRange(g,e).map(function(a){return d("MWChatReactionsUtils").isHeart(a.reaction)?{actorId:a.actorId,authorityLevel:a.authorityLevel,messageId:a.messageId,reaction:s,threadKey:a.threadKey,timestampMs:a.timestampMs}:a})},[g,e,b],f.id+":61"));return a}function b(a){var b=(i||(i=c("useReStore")))(),e=a.messageId,g=a.threadKey;a=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(b.table("reactions_v2")).getKeyRange(g,e)},[b,g,e],f.id+":86");return a}function e(a){var b=(i||(i=c("useReStore")))(),e=a.messageId,g=a.threadKey;a=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(b.table("reactions_v2")).getKeyRange(g,e).filter(function(a){return(j||(j=d("I64"))).gt(a.count,j.zero)})},[b,g,e],f.id+":102");return a}function t(a,b){a=a!=null?c("intlList")(a.map(function(a){return a.join("")}),c("intlList").CONJUNCTIONS.AND,c("intlList").DELIMITERS.COMMA):"";return h._("__JHASH__tSgM5wXgT0G__JHASH__",[h._plural(b,"number"),h._param("the comma separated list of emojis used to react on this message",a)])}function u(a){return a.map(function(a,b){b=d("EmojiRenderer").parse(a).map(function(a){return a.emoji});return b.length!==1?[""]:b[0]}).filter(function(a){return a.join("")!==""})}function v(a){var b=a.children,e=a.dialogResource,g=a.message,h=a.onPress;a.outgoing;var k=a.reactions,m=a.reactionsV2;a=a.shouldUseVariant16ForReactionsV2;var p=a===void 0?!1:a,s=g.messageId,v=g.threadKey;a=o(d("MWV2MessageRowIsRowFocusedContext.react").context);var w=a.setFocused,x=a.setIsDialogOpened,y=(i||(i=c("useReStore")))(),z=d("useIsReactionsV2Enabled").useIsReactionsV2Enabled(v);a=d("useIsMultiReactionEnabled").useIsMultiReactEnabled(v);var A=a?d("useIsMultiReactionEnabled").MAX_REACTION_COUNT:3,B=c("useIsReactionDialogEnabled")(v),C=r(new Map()),D=n(function(){z&&c("promiseDone")(c("LSPlatformWaitForTaskCompletion")(y,function(a){return c("LSIssueReactionsV2DetailsUsersListFetchStoredProcedure")(c("LSFactory")(a),{messageId:g.messageId,threadId:v})},"issueReactionsV2DetailsUsersListFetch").then(function(){return C.current.forEach(function(a){return a()})}))},[y,z,g.messageId,v]),E=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(y.table("reactions_v2")).getKeyRange(v,s).filter(function(a){return(j||(j=d("I64"))).gt(a.count,j.zero)}).map(function(a){var b=d("ReQLSuspense").first(d("ReQL").fromTableAscending(y.table("reaction_v2_types")).getKeyRange(a.reactionFbid),f.id+":211");b=p?b==null?void 0:b.reactionLiteralVariant16:b==null?void 0:b.reactionLiteral;return babelHelpers["extends"]({},a,{count:(j||(j=d("I64"))).to_int32(a.count),reactionLiteral:b})})},[y,v,s,p],f.id+":205");d("MWReactionUtils").useSortReactionsForBroadcastChat(E,v);A=m!=null&&z?u(Array.from(new Set(E.map(function(a){return(a=a.reactionLiteral)!=null?a:""}))).slice(0,A)):u(Array.from(new Set(k.map(function(a){a=a.reaction;return a}))).slice(0,A));m=m!=null&&z?(j||(j=d("I64"))).to_int32(E.reduce(function(a,b){return(j||(j=d("I64"))).add(a,j.of_int32(b.count))},(j||(j=d("I64"))).zero)):k.length;E=t(A,m);var F=r(null),G=q(function(){return e!=null?e:z?c("JSResourceForInteraction")("MWBroadcastChatReactionsDialog.react").__setRef("MWPMessageReactions.react"):c("JSResourceForInteraction")("MWV2ChatReactionsDialog.react").__setRef("MWPMessageReactions.react")},[e,z]),H=q(function(){return{message:g,onLoadComplete:function(a){C.current.set(a,a);return function(){C.current["delete"](a)}},thread:{threadKey:v}}},[g,v]),I=n(function(){x(function(){return!1}),w(function(){return!0})},[w,x]);G=c("useMWXLazyDialog")(G);var J=G[0],K=n(function(a){x(function(){return!0}),J(babelHelpers["extends"]({},H,{initialTab:a}),I),h==null?void 0:h(),D()},[H,I,h,x,J,D]);return a||!B?b(A,m,k,g,v,K):l.jsx(c("MWXPressable.react"),{"aria-label":E,onPress:function(){return K()},overlayDisabled:!0,ref:F,children:b(A,m,k,g,v,K)})}v.displayName=v.name+" [from "+f.id+"]";g.useReactions=a;g.useReactionsV2=b;g.useNonZeroCountReactionsV2=e;g.MWPMessageReactions=v}),98); __d("MWPinnedMessageDropdownButton.react",["fbt","ix","JSResourceForInteraction","MWXLazyPopoverTrigger.react","TetraIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=c("JSResourceForInteraction")("MWPinnedMessageItemHoverDropdownMenu.react").__setRef("MWPinnedMessageDropdownButton.react");function a(a){var b=a.hidden;a=a.message;return!b&&k.jsx("div",{className:"x1a87ojn x10l6tqk xwa60dl",children:k.jsx(c("MWXLazyPopoverTrigger.react"),{popoverProps:{message:a},popoverResource:l,children:function(a,b){return k.jsx(c("TetraIcon.react"),{"aria-label":h._("__JHASH__2-Q8CjJAjMD__JHASH__"),color:"secondary",icon:d("fbicon")._(i("484386"),16),onPress:b,ref:a})}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSPinnedMessageIcon.react",["MDSSvgIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useId;function a(a){var b=j(),d=j(),e=j(),f=j();return i.jsxs(c("MDSSvgIcon.react"),babelHelpers["extends"]({},a,{children:[i.jsx("g",{filter:"url(#"+b+")",children:i.jsx("rect",{fill:"url(#"+d+")",height:"2",width:"8",x:"17",y:"26"})}),i.jsx("path",{d:"M23.9989 27.5928L23.9988 27.5383L24.0367 27.585C24.1817 27.7518 24.7409 28.2715 25.8875 27.9427C26.9382 27.6414 26.5281 26.8227 26.371 26.5705C26.3138 26.4819 26.2525 26.3965 26.1873 26.3135L16.8703 14.3899C16.2845 15.045 15.5884 15.6539 14.8084 16.0737L23.9989 27.5928Z",fill:"url(#"+e+")"}),i.jsx("path",{d:"M11.5653 17.1305C15.7434 17.1305 19.1305 13.7434 19.1305 9.56526C19.1305 5.38708 15.7434 2 11.5653 2C7.38708 2 4 5.38708 4 9.56526C4 13.7434 7.38708 17.1305 11.5653 17.1305Z",fill:"#FF0D0D"}),i.jsx("path",{d:"M9.19306 12.5345C6.38338 10.2164 5.72669 6.37369 7.72578 3.95078C9.72486 1.52787 13.6231 1.44245 16.432 3.76062C19.2417 6.07879 19.8984 9.92145 17.8993 12.3444C15.9002 14.7673 12.0019 14.8519 9.19306 12.5345Z",fill:"url(#"+f+")"}),i.jsxs("defs",{children:[i.jsxs("filter",{colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",height:"2.8",id:b,width:"8.8",x:"16.6",y:"25.6",children:[i.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),i.jsx("feBlend",{"in":"SourceGraphic",in2:"BackgroundImageFix",mode:"normal",result:"shape"}),i.jsx("feGaussianBlur",{result:"effect1_foregroundBlur_28_51",stdDeviation:"0.2"})]}),i.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:d,x1:"25",x2:"17.6667",y1:"27",y2:"27",children:[i.jsx("stop",{stopColor:"#969495"}),i.jsx("stop",{offset:"1",stopColor:"#D9D9D9",stopOpacity:"0"})]}),i.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:e,x1:"20.4956",x2:"21.941",y1:"22.4135",y2:"21.2698",children:[i.jsx("stop",{stopColor:"#666666"}),i.jsx("stop",{offset:"1",stopColor:"#CACCCD"})]}),i.jsxs("radialGradient",{cx:"0",cy:"0",gradientTransform:"translate(12.8132 8.1471) rotate(129.523) scale(5.68739 6.59482)",gradientUnits:"userSpaceOnUse",id:f,r:"1",children:[i.jsx("stop",{stopColor:"white",stopOpacity:"0.5"}),i.jsx("stop",{offset:"1",stopColor:"white",stopOpacity:"0"})]})]})]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("usePinnedIconAnimation",["react","useDebouncedValue"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useRef,k=b.useState,l={mountAnimationIncoming:{animationDuration:"x5hsz1j",animationName:"x1ko8byu",animationTimingFunction:"x4hg4is",$$css:!0},mountAnimationOutgoing:{animationDuration:"x5hsz1j",animationName:"x1c78tyx",animationTimingFunction:"x4hg4is",$$css:!0},unmountAnimation:{animationDuration:"x5hsz1j",animationFillMode:"x10e4vud",animationName:"xvma63k",animationTimingFunction:"x4hg4is",$$css:!0}};function a(a,b){var d=k(!1),e=d[0],f=d[1],g=j(a);d=b?l.mountAnimationOutgoing:l.mountAnimationIncoming;i(function(){a!==g.current&&f(!0),g.current=a},[a]);return{mountAnimation:e?d:null,shouldShow:c("useDebouncedValue")(a,200),unmountAnimation:l.unmountAnimation}}g["default"]=a}),98); __d("MWPinnedMessageOverlay.react",["MDSPinnedMessageIcon.react","react","stylex","useMWPIsMessagePinned","usePinnedIconAnimation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={alignEnd:{end:"xds687c",left:null,right:null,transform:"x7b9nwf",$$css:!0},alignStart:{start:"x17qophe",left:null,right:null,transform:"x1op1vkj",$$css:!0},container:{position:"x10l6tqk",top:"x13vifvy",zIndex:"xhtitgo",$$css:!0},relative:{position:"x1n2onr6",$$css:!0}};function a(a){var b=a.alreadyRenderedPin,d=a.children,e=a.message;a=a.outgoing;e=c("useMWPIsMessagePinned")(e);var f=c("usePinnedIconAnimation")(e,a),g=f.mountAnimation,i=f.shouldShow;f=f.unmountAnimation;return!i||b?j.jsx(j.Fragment,{children:d}):d&&j.jsxs("div",{className:"x1n2onr6",children:[j.jsx("div",{className:(h||(h=c("stylex")))([k.container,a?k.alignEnd:k.alignStart,e?g:f]),children:j.jsx(c("MDSPinnedMessageIcon.react"),{color:"tertiary",size:16})}),d]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWIsXMARoom",["ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=(h||(h=c("useReStore")))(),e=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(b.table("attachments")).getKeyRange(a.threadKey,a.messageId)},[b,a],f.id+":27");return(e==null?void 0:e.defaultCtaType)==="xma_web_url"&&(e==null?void 0:e.attachmentLoggingType)==="xma_open_native_rooms_invite"}g["default"]=a}),98); __d("MWPinnedMessageRowFooterNUXWrapperRequireNUX.react",["nux:344","react","useMWIsXMARoom","withCometPlaceholder"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=function(){return b("nux:344")==null?void 0:b("nux:344")("WEB_MSGR_PINNED_MESSAGES_NUX")};function a(a){var b=a.isLastMessage,d=a.isOutgoing,e=a.isPinnedMessageList;a=a.message;var f=a.textHasLinks;a=c("useMWIsXMARoom")(a);d=!d&&(f||a)&&b&&!e;return!d?null:i.jsx(j,{})}a.displayName=a.name+" [from "+f.id+"]";e=d("withCometPlaceholder").withCometPlaceholder(a);g["default"]=e}),98); __d("MWJumpToMessageLogger",["CometHeroLogging","I64","LSIntEnum","LSMessagingInitiatingSource","MWChatInteraction"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b,e,f){var g=c("CometHeroLogging").genHeroInteractionUUIDAndMarkStart(a.getTraceId(),null);d("MWChatInteraction").set(b,g);e!=null&&((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("LSMessagingInitiatingSource").FACEBOOK_CHAT))?a.addMetadata("entrypoint","chat"):(h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("LSMessagingInitiatingSource").FACEBOOK_INBOX))&&a.addMetadata("entrypoint","inbox"));a.addMetadata("mw_version",(h||(h=d("I64"))).to_string(f));return a.onComplete(function(){delete d("MWChatInteraction").interactions[b]})}g.startHeroInteractionTrace=a}),98); __d("useMWJumpToMessage",["MWJumpToMessageLogger","MWPVisibleMessageContext.react","MWVersion","qpl","react","useCometInteractionTracing","useLSMessagingInitiatingSource"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(a){var b=d("MWPVisibleMessageContext.react").useMWPVisibleMessageContext(),e=b.setVisibleMessage,f=c("useLSMessagingInitiatingSource")(),g=c("useCometInteractionTracing")(c("qpl")._(25301087,"7779"),"fast","INTERACTION");return i(function(b,c,h,i){var j=h!=null?h:"",k=i!=null?i:[];return g(function(g){e({contextLine:j,highlights:k,messageId:b,source:a,timestamp:c});return d("MWJumpToMessageLogger").startHeroInteractionTrace(g,b,f,d("MWVersion").v2)})},[a,e,g,f])}g["default"]=a}),98); __d("MWPBaseRepliedMessage.react",["I64","LSIntEnum","LSMessageReplySourceTypeV2","LSReplyMessageAttachmentType","LSReplyMessageStatus","MWXPressable.react","react","recoverableViolation","useIsRollcallEnabled","useMWJumpToMessage","useRollcallContributionsXMAActionHandler"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react"),l={elevate:{maxWidth:"x193iq5w",position:"x1n2onr6",zIndex:"x1vjfegm",$$css:!0},pressable:{display:"x1lliihq",$$css:!0}};function a(a){var b=a.clickToNavigateToReply;b=b===void 0?!0:b;var e=a.earlyCheckForReplyStatus;e=e===void 0?!1:e;var f=a.isSecureMessage,g=a.message,h=a.outgoing,m=a.renderAttachment,n=a.renderExpiredMessage,o=a.renderGIF,p=a.renderMedia,q=a.renderPost,r=a.renderRemovedMessage,s=a.renderRollcallContribution,t=a.renderSticker,u=a.renderStory,v=a.renderTextMessage,w=a.renderUnavailableMessage;a=a.renderVideo;var x=g.replyAttachmentId,y=g.replyAttachmentType,z=g.replyMessageText;y!=null&&(!e||g.replyStatus!=null&&!(i||(i=d("I64"))).equal(g.replyStatus,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageStatus").DELETED)))?((i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").PHOTO))||(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").VIDEO)))&&g.replySourceTypeV2!=null&&(i||(i=d("I64"))).equal(g.replySourceTypeV2,(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").STORY))?e=k.jsx(u,{isSecureMessage:f,message:g,outgoing:h}):x!=null?(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").OTHER))?e=k.jsx(m,{message:g,outgoing:h}):(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").PHOTO))?p!=null?e=k.jsx(p,{isSecureMessage:f,message:g,outgoing:h}):e=k.jsx(m,{message:g,outgoing:h}):(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").ROLL_CALL_PHOTO_CONTRIBUTION))||(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").ROLL_CALL_VIDEO_CONTRIBUTION))||(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").ROLL_CALL_TEXT_CONTRIBUTION))?s!=null?e=k.jsx(s,{message:g,outgoing:h}):e=k.jsx(m,{message:g,outgoing:h}):(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").MULTIPHOTO))?p!=null?e=k.jsx(p,{isSecureMessage:f,message:g,outgoing:h}):e=k.jsx(m,{message:g,outgoing:h}):(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").VIDEO))?a!=null?e=k.jsx(a,{isSecureMessage:f,message:g,outgoing:h}):e=k.jsx(m,{message:g,outgoing:h}):(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").GIF))?o!=null?e=k.jsx(o,{isSecureMessage:f,message:g,outgoing:h}):e=k.jsx(m,{message:g,outgoing:h}):(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").STICKER))?t!=null?e=k.jsx(t,{isSecureMessage:f,message:g,outgoing:h}):e=k.jsx(m,{message:g,outgoing:h}):(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").LINK))||(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").PERMANENT_RAVEN_PHOTO))||(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").PERMANENT_RAVEN_VIDEO))?e=k.jsx(m,{message:g,outgoing:h}):q!=null?e=k.jsx(q,{message:g,outgoing:h}):e=c("recoverableViolation")("Unknown attachment type: "+(i||(i=d("I64"))).to_string(y),"messenger_comet"):(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").STICKER))&&t!=null?e=k.jsx(t,{message:g,outgoing:h}):(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").XMA))&&m!=null?z!=null&&z!==""?e=k.jsx(v,{message:g,outgoing:h,text:z}):e=k.jsx(m,{message:g,outgoing:h}):e=null:x!=null?g.replySourceTypeV2!=null&&(i||(i=d("I64"))).equal(g.replySourceTypeV2,(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").LIGHTWEIGHT_STATUS))&&z!=null&&z!==""?e=k.jsx(v,{message:g,outgoing:h,text:z}):p!=null?e=k.jsx(p,{isSecureMessage:f,message:g,outgoing:h}):e=k.jsx(m,{message:g,outgoing:h}):g.replyStatus!=null&&(i||(i=d("I64"))).equal(g.replyStatus,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageStatus").DELETED))?r!=null?e=k.jsx(r,{outgoing:h}):e=null:g.replyStatus!=null&&(i||(i=d("I64"))).equal(g.replyStatus,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageStatus").EXPIRED))?n!=null?e=k.jsx(n,{outgoing:h}):e=null:g.replyStatus!=null&&(i||(i=d("I64"))).equal(g.replyStatus,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageStatus").TEMPORARY_UNAVAILABLE))?w!=null?e=k.jsx(w,{outgoing:h}):e=null:z!=null&&g.replySourceTypeV2!=null&&(i||(i=d("I64"))).equal(g.replySourceTypeV2,(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").MESSAGE))?z!==""?e=k.jsx(v,{message:g,outgoing:h,text:z}):e=k.jsx(m,{message:g,outgoing:h}):e=null;u=k.jsx("div",{className:"x193iq5w x1n2onr6 x1vjfegm",children:e});var A=g.replySourceTimestampMs,B=g.replySourceId,C=c("useMWJumpToMessage")("Pinned");s=y!=null&&((i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").ROLL_CALL_PHOTO_CONTRIBUTION))||(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").ROLL_CALL_VIDEO_CONTRIBUTION))||(i||(i=d("I64"))).equal(y,(j||(j=d("LSIntEnum"))).ofNumber(c("LSReplyMessageAttachmentType").ROLL_CALL_TEXT_CONTRIBUTION)));var D=d("useRollcallContributionsXMAActionHandler").useRollcallContributionsXMAActionHandler();a=c("useIsRollcallEnabled")(g.threadKey);if(B!=null&&A!=null&&b){o=function(){C(B,A)};if(s&&a){var E=(i||(i=d("I64"))).of_string((q=g.replyAttachmentExtra)!=null?q:"0"),F=g.threadKey,G=(t=g.replySourceId)!=null?t:null;o=function(){D(E,F,G,null)}}return k.jsx(c("MWXPressable.react"),{onPress:o,overlayDisabled:!0,xstyle:function(){return[l.pressable]},children:u})}else return u}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ReplyTo.react",["fbt","CometScreenReaderText.react","MWXSolidMessageBubble.react","MWXText.react","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={content:{overflowWrap:"x1mzt3pk",paddingBottom:"x1l90r2v",$$css:!0}};function a(a){var b=a.children,d=a.outgoing;a=a.xstyle;a=a===void 0?!1:a;return k.jsxs(c("MWXSolidMessageBubble.react"),{connectBottom:!0,connectTop:!1,outgoing:d,precedesXMA:!1,style:{backgroundColor:"var(--chat-replied-message-background-color)"},children:[k.jsx(c("CometScreenReaderText.react"),{text:h._("__JHASH__pLiiclD1jc1__JHASH__")}),k.jsx(c("MWXText.react"),{color:"secondary",type:"body4",children:k.jsx("div",{className:(i||(i=c("stylex")))(l.content,a),"data-testid":void 0,children:b})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRepliesAttachment.react",["fbt","ix","MWV2ReplyTo.react","MWXIcon.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");function a(a){a=a.outgoing;var b=h._("__JHASH__ExfgVu3ZeIV__JHASH__");return k.jsx(c("MWV2ReplyTo.react"),{outgoing:a,children:k.jsxs("div",{className:"x6s0dn4 x78zum5 x1k4tb9n",children:[b,k.jsx("span",{className:"x1lliihq x1i64zmx",children:k.jsx(c("MWXIcon.react"),{color:"secondary",icon:d("fbicon")._(i("537728"),12)})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRepliesExpired.react",["fbt","MWV2ReplyTo.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={root:{fontStyle:"x1k4tb9n",$$css:!0}};function a(a){a=a.outgoing;var b=h._("__JHASH__LRWYiWT4b63__JHASH__");return j.jsx(c("MWV2ReplyTo.react"),{outgoing:a,xstyle:k.root,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRepliesImage.react",["I64","MWLSThreadDisplayContext","MWPStableImage.react","MWPThreadCapabilitiesContext","cr:4509","gkx","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l={incoming:{borderBottomStartRadius:"x10y3i5r",$$css:!0},outgoing:{borderBottomEndRadius:"xrt01vj",$$css:!0},root:{borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",display:"x1lliihq",filter:"xin470k",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",width:"x14atkfc",$$css:!0},rootHasSticker:{borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x5pf9jr",borderBottomStartRadius:"xo71vjh",$$css:!0}};function a(a){var e=a.height,f=a.imageAlt;f=f===void 0?"":f;var g=a.isSticker;g=g===void 0?!1:g;var j=a.outgoing,m=a.src;a=a.width;var n=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();n=n==="ChatTab";var o=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();o=o.blurMediaEnabled;o=c("gkx")("1581")&&o;j=g?!1:j?l.outgoing:l.incoming;f=k.jsx(d("MWPStableImage.react").MWPStableImage,{alt:f,className:(h||(h=c("stylex")))(l.root,g&&l.rootHasSticker,j),height:e!=null?(i||(i=d("I64"))).to_float(e):void 0,maxHeight:100,maxWidth:n?180:300,src:m,width:a!=null?(i||(i=d("I64"))).to_float(a):void 0});return b("cr:4509")!=null&&o&&!g?k.jsx(b("cr:4509"),{mediaType:"Image",overlayDisabled:!0,type:"image",uncoverable:!1,url:m,xstyle:[l.root,j],children:f}):f}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRepliesGIF.react",["fbt","CometPlaceholder.react","I64","LSMediaUrlAttachment","MWRepliesImage.react","MWV2ReplyTo.react","ReQL","ReQLSuspense","cr:6930","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m={italic:{fontStyle:"x1k4tb9n",$$css:!0}};function n(a){var e=a.isSecureMessage;e=e===void 0?!1:e;var g=a.message;a=a.outgoing;var k=(i||(i=c("useReStore")))(),n=d("ReQLSuspense").useFirst(function(){var a,b;a=(a=g.replyAttachmentId)!=null?a:(j||(j=d("I64"))).zero;b=(b=g.replySourceId)!=null?b:"";return d("ReQL").fromTableAscending(k.table("attachments")).getKeyRange(g.threadKey,b,(j||(j=d("I64"))).to_string(a))},[k,g],f.id+":44"),o;n!=null&&(b("cr:6930")==null||!e?o=d("LSMediaUrlAttachment").previewUrl(n):o=b("cr:6930").getAttachmentBlobNonOptional(n.attachmentFbid));if(o!=null&&o!=="")return l.jsx(c("MWRepliesImage.react"),{height:g.replyMediaPreviewHeight,outgoing:a,src:o,width:g.replyMediaPreviewWidth});else return l.jsx(c("MWV2ReplyTo.react"),{outgoing:a,xstyle:m.italic,children:h._("__JHASH__kPmtZiB6viN__JHASH__")})}n.displayName=n.name+" [from "+f.id+"]";function a(a){return l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx(n,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("getLSMediaMessageReplyMediaUrl",["LSMediaUrlUtils","rewriteFallbackUrl"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.replyMediaExpirationTimestampMs;if(b!=null&&d("LSMediaUrlUtils").isTimestampExpired(b))return c("rewriteFallbackUrl")(a.replyMediaUrlFallback);else return a.replyMediaUrl}g["default"]=a}),98); __d("MWRepliesMedia.react",["fbt","ix","CometIcon.react","CometPlaceholder.react","I64","IconSource","MWRepliesImage.react","MWV2ReplyTo.react","ReQL","ReQLSuspense","WAArmadilloXMA.pb","cr:6930","getLSMediaMessageReplyMediaUrl","react","useReStore"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||d("react"),n={FBIcon:{marginTop:"x14vqqas",marginEnd:"xq8finb",marginBottom:"xod5an3",marginStart:"x16n37ib",$$css:!0},italic:{fontStyle:"x1k4tb9n",$$css:!0},postBackground:{alignItems:"x6s0dn4",backdropFilter:"x99fzhk",background:"x18aeczl",borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",display:"x78zum5",flexDirection:"xdt5ytf",height:"xpyat2d",justifyContent:"xl56j7k",textAlign:"x2b8uid",width:"x1exxlbk",$$css:!0},storyBackground:{alignItems:"x6s0dn4",backdropFilter:"x1qb2erx",background:"xjw5052",borderTopStartRadius:"xyi19xy",borderTopEndRadius:"x1ccrb07",borderBottomEndRadius:"xtf3nb5",borderBottomStartRadius:"x1pc53ja",display:"x78zum5",flexDirection:"xdt5ytf",height:"x1wkxgih",justifyContent:"xl56j7k",opacity:"x197sbye",textAlign:"x2b8uid",width:"xni59qk",$$css:!0}};function o(a){var e=a.isSecureMessage,g=a.message;a=a.outgoing;var l=h._("__JHASH__bznTdd53oJN__JHASH__"),o=(j||(j=c("useReStore")))(),p=d("ReQLSuspense").useFirst(function(){var a=g.replyAttachmentId,b=g.replySourceId;return b!=null&&a!=null?d("ReQL").fromTableAscending(o.table("attachments")).getKeyRange(g.threadKey,b,(k||(k=d("I64"))).to_string(a)):d("ReQL").empty()},[o,g],f.id+":84"),q=p!=null&&p.hasXma&&e&&p.gatingType===String(d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.PRIVATE);if(p!=null&&p.hasXma&&e){var r;r=(r=p.defaultCtaType)!=null?r:""}else r="";var s=new(c("IconSource"))("FB",i("1423124"),28);if(q)if(r==="xma_montage_share")return m.jsx("div",{className:"x6s0dn4 x1qb2erx xjw5052 xyi19xy x1ccrb07 xtf3nb5 x1pc53ja x78zum5 xdt5ytf x1wkxgih xl56j7k x197sbye x2b8uid xni59qk",children:m.jsx("div",{className:"x14vqqas xq8finb xod5an3 x16n37ib",children:m.jsx(c("CometIcon.react"),{icon:s})})});else return m.jsx("div",{className:"x6s0dn4 x99fzhk x18aeczl x1tlxs6b x1g8br2z x1gn5b1j x230xth x78zum5 xdt5ytf xpyat2d xl56j7k x2b8uid x1exxlbk",children:m.jsx("div",{className:"x14vqqas xq8finb xod5an3 x16n37ib",children:m.jsx(c("CometIcon.react"),{icon:s})})});q=b("cr:6930")!=null&&e?function(a){return p!=null&&p.hasXma?a.replyAttachmentId!=null?b("cr:6930").getInfoUrlXMA(p,"preview"):void 0:a.replyAttachmentId!=null?b("cr:6930").getAttachmentBlobNonOptional((k||(k=d("I64"))).to_string(a.replyAttachmentId)):void 0}:c("getLSMediaMessageReplyMediaUrl");r=q(g);return r!=null&&r!==""?m.jsx(c("MWRepliesImage.react"),{height:g.replyMediaPreviewHeight,imageAlt:h._("__JHASH__eNDXc9eUfIy__JHASH__"),outgoing:a,src:r,width:g.replyMediaPreviewWidth}):m.jsx(c("MWV2ReplyTo.react"),{outgoing:a,xstyle:n.italic,children:l})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.isSecureMessage;b=b===void 0?!1:b;var d=a.message;a=a.outgoing;return m.jsx(c("CometPlaceholder.react"),{fallback:null,children:m.jsx(o,{isSecureMessage:b,message:d,outgoing:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRepliesRemoved.react",["fbt","MWV2ReplyTo.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={root:{fontStyle:"x1k4tb9n",$$css:!0}};function a(a){a=a.outgoing;var b=h._("__JHASH__uG4wbYWD9QU__JHASH__");return j.jsx(c("MWV2ReplyTo.react"),{outgoing:a,xstyle:k.root,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSIssuePointQueryForRollCallConversion",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("roll_call_id",a[1]),d[0].set("thread_key",a[0]),d[0].set("query_purpose",c.i64.cast([0,2])),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),"roll_call_point_query",c.i64.cast([0,611]),d[1],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssuePointQueryForRollCallConversionStoredProcedure",["LSIssuePointQueryForRollCallConversion"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;d[1]=b.rollCallId;return c("LSIssuePointQueryForRollCallConversion").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MWRepliesRollcallContribution.react",["fbt","CometBlurredBackgroundImage.react","CometImageCover.react","CometPlaceholder.react","I64","Int64Hooks","LSFactory","LSIssuePointQueryForRollCallConversionStoredProcedure","MWV2ReplyTo.react","ReQL","ReQLSuspense","cr:2472","getLSMediaMessageReplyMediaUrl","isStringNullOrEmpty","promiseDone","react","stylex","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||d("react"),n=213,o=213,p={blurredImage:{borderBottomStartRadius:"x230xth",borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",$$css:!0},italic:{fontStyle:"x1k4tb9n",$$css:!0},outgoing:{borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x230xth",$$css:!0},unblurredImageContainer:{borderBottomStartRadius:"x230xth",borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",opacity:"x197sbye",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}};function a(a){return m.jsx(c("CometPlaceholder.react"),{fallback:null,children:m.jsx(q,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";function q(a){var e,g=a.message;a=a.outgoing;var l=c("isStringNullOrEmpty")(g.replyMessageText)?h._("__JHASH__-iobVkYmlUt__JHASH__"):b("cr:2472")==null?g.replyMessageText:b("cr:2472").unvault(g.replyMessageText),q=(i||(i=c("useReStore")))(),r=(k||(k=d("I64"))).of_string((e=g.replyAttachmentExtra)!=null?e:"0"),s=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(q.table("roll_calls")).getKeyRange(r)},[q,r],f.id+":81"),t=g.threadKey;d("Int64Hooks").useEffectInt64(function(){s||c("promiseDone")(q.runInTransaction(function(a){return c("LSIssuePointQueryForRollCallConversionStoredProcedure")(c("LSFactory")(a),{rollCallId:r,threadKey:t})},"readwrite"))},[s,r,t,q]);e=(e=s==null?void 0:s.isBlurred)!=null?e:!1;var u=c("getLSMediaMessageReplyMediaUrl")(g),v=g.replyMediaPreviewHeight!=null?(k||(k=d("I64"))).to_float(g.replyMediaPreviewHeight):0;g=g.replyMediaPreviewWidth!=null?(k||(k=d("I64"))).to_float(g.replyMediaPreviewWidth):0;var w=Math.min(1,n/v),x=Math.min(1,o/g);v=Math.round(v*Math.min(w,x));g=Math.round(g*Math.min(w,x));return!c("isStringNullOrEmpty")(u)?e?m.jsx("div",{style:{height:v,width:g},children:m.jsx(c("CometBlurredBackgroundImage.react"),{src:u,xstyle:[p.blurredImage,a&&p.outgoing]})}):m.jsx("div",{className:(j||(j=c("stylex")))([p.unblurredImageContainer,a&&p.outgoing]),style:{height:v,width:g},children:m.jsx(c("CometImageCover.react"),{alt:"",src:u})}):m.jsx(c("MWV2ReplyTo.react"),{outgoing:a,xstyle:p.italic,children:l})}q.displayName=q.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRepliesSticker.react",["fbt","CometPlaceholder.react","I64","LSMediaUrlAttachment","MWRepliesImage.react","MWV2ReplyTo.react","MWV2Sticker.react","ReQL","ReQLSuspense","cr:2472","cr:6930","cr:6931","getLSMediaMessageReplyMediaUrl","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m={italic:{fontStyle:"x1k4tb9n",$$css:!0},replyHotLikeSticker:{filter:"xin470k",transform:"xst6bnn",$$css:!0},replySticker:{filter:"xin470k",$$css:!0}};function a(a){var e,g=a.isSecureMessage;g=g===void 0?!1:g;var k=a.message;a=a.outgoing;var n=h._("__JHASH__13yhS1gywbZ__JHASH__"),o=(i||(i=c("useReStore")))(),p=d("ReQLSuspense").useFirst(function(){var a=k.replyAttachmentId,b=k.replySourceId;return b!=null&&a!=null?d("ReQL").fromTableAscending(o.table("attachments")).getKeyRange(k.threadKey,b,(j||(j=d("I64"))).to_string(a)):d("ReQL").empty()},[o,k],f.id+":59");e=(e=k.replyMessageText)!=null?e:"";e=(b("cr:2472")!=null?b("cr:2472").unvault(e):e)==="\ud83d\udc4d";if(e)if(b("cr:6931")==null)return null;else return l.jsx(b("cr:6931"),{xstyle:m.replyHotLikeSticker});e=c("getLSMediaMessageReplyMediaUrl")(k);if(e!=null&&p==null)return l.jsx(c("MWRepliesImage.react"),{height:k.replyMediaPreviewHeight,isSticker:!0,outgoing:a,src:e,width:k.replyMediaPreviewWidth});if(p==null)return l.jsx(c("MWV2ReplyTo.react"),{outgoing:a,xstyle:m.italic,children:n});b("cr:6930")==null||!g?e=function(a){return d("LSMediaUrlAttachment").previewUrl(a)}:e=function(a){return b("cr:6930").getAttachmentBlobNonOptional(a.attachmentFbid)};return l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx(c("MWV2Sticker.react"),{attachment:p,getPreviewUrl:e,scale:.6,xstyle:m.replySticker})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRepliesStory.react",["fbt","CometPlaceholder.react","I64","MWRepliesImage.react","MWXPressable.react","XCometStoriesControllerRouteBuilder","cr:6930","getLSMediaMessageReplyMediaUrl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react");function a(a){return k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx(l,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";function l(a){var e=a.isSecureMessage;e=e===void 0?!1:e;var f=a.message;a=a.outgoing;var g=f.replySourceId;g=g!=null?e?g:(g=c("XCometStoriesControllerRouteBuilder").buildUri({card_id:window.btoa("S:_ISC:"+g),view_single:!0}).setDomain("www.facebook.com"))==null?void 0:(g=g.setProtocol("https"))==null?void 0:g.toString():void 0;e=b("cr:6930")!=null&&e?function(a){return a.replyAttachmentId!=null?b("cr:6930").getAttachmentBlobNonOptional((j||(j=d("I64"))).to_string(a.replyAttachmentId)):null}:c("getLSMediaMessageReplyMediaUrl");e=e(f);return e==null?null:k.jsx(c("MWXPressable.react"),{"aria-label":h._("__JHASH__thxINaLEtLl__JHASH__"),linkProps:g!=null?{url:g}:void 0,overlayDisabled:!0,children:k.jsx(c("MWRepliesImage.react"),{outgoing:a,src:e})})}l.displayName=l.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRepliesText.react",["MWChatTextFormatting","MWChatTextTransform","MWV2ReplyTo.react","MWXMessageTextWithEntities.react","cr:2472","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useMemo;function a(a){var e=a.outgoing,f=a.text;a=j(function(){return{MessengerTextFormatting:[d("MWChatTextFormatting").replyRenderer]}},[]);var g=j(function(){return d("MWChatTextFormatting").getFormattingRanges(f)},[f]),h=b("cr:2472")==null?f:b("cr:2472").unvault(f);return i.jsx(c("MWV2ReplyTo.react"),{outgoing:e,children:i.jsx("div",{className:"xi81zsa x126k92a",children:i.jsx(c("MWXMessageTextWithEntities.react"),{maxLength:120,maxLines:3,ranges:g,renderers:a,text:h,transforms:d("MWChatTextTransform").epdTextTransformsNoVault,truncationStyle:"ellipsis-only",withParagraphs:!1})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRepliesUnavailable.react",["fbt","MWV2ReplyTo.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={root:{fontStyle:"x1k4tb9n",$$css:!0}};function a(a){a=a.outgoing;var b=h._("__JHASH__3TzRhHHRgwV__JHASH__");return j.jsx(c("MWV2ReplyTo.react"),{outgoing:a,xstyle:k.root,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRepliesVideo.react",["fbt","ix","CometImage.react","CometPlaceholder.react","I64","LSMediaUrlAttachment","MWLSThreadDisplayContext","MWPStableImage.react","MWV2ReplyTo.react","ReQL","ReQLSuspense","cr:6930","react","useReStore"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||d("react"),n={italic:{fontStyle:"x1k4tb9n",$$css:!0},playButtonContainer:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"xdt5ytf",height:"x5yr21d",justifyContent:"xl56j7k",position:"x10l6tqk",start:"x17qophe",left:null,right:null,top:"x13vifvy",width:"xh8yej3",$$css:!0},thumbnail:{borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",filter:"xin470k",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},thumbnailContainer:{position:"x1n2onr6",$$css:!0}};function o(a){var e=a.isSecureMessage;e=e===void 0?!1:e;var g=a.message;a=a.outgoing;var l=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();l=l==="ChatTab";var o=(j||(j=c("useReStore")))(),p=d("ReQLSuspense").useFirst(function(){var a,b;a=(a=g.replyAttachmentId)!=null?a:(k||(k=d("I64"))).zero;b=(b=g.replySourceId)!=null?b:"";return d("ReQL").fromTableAscending(o.table("attachments")).getKeyRange(g.threadKey,b,(k||(k=d("I64"))).to_string(a))},[o,g],f.id+":69"),q;p!=null&&(b("cr:6930")==null||!e?q=d("LSMediaUrlAttachment").previewUrl(p):q=b("cr:6930").getAttachmentBlobNonOptional(p.attachmentFbid));if(q==null)return m.jsx(c("MWV2ReplyTo.react"),{outgoing:a,xstyle:n.italic,children:h._("__JHASH__7WGJ1daCkBD__JHASH__")});e=g.replyMediaPreviewHeight!=null?(k||(k=d("I64"))).to_float(g.replyMediaPreviewHeight):void 0;a=g.replyMediaPreviewWidth!=null?(k||(k=d("I64"))).to_float(g.replyMediaPreviewWidth):void 0;var r=100;l=l?180:300;(p==null?void 0:p.previewUrlMimeType)!=null?p=m.jsx(d("MWPStableImage.react").MWPStableImage,{alt:"",className:"x1tlxs6b x1g8br2z x1gn5b1j x230xth xin470k x6ikm8r x10wlt62",height:e,maxHeight:r,maxWidth:l,src:q,width:a}):p=m.jsx("video",{alt:"",className:"x1tlxs6b x1g8br2z x1gn5b1j x230xth xin470k x6ikm8r x10wlt62",height:e!=null&&e>r?"100%":e,src:q,style:{maxHeight:r,maxWidth:l},width:a!=null&&a>l?"100%":a});return m.jsxs("div",{className:"x1n2onr6",children:[p,m.jsx("div",{className:"x6s0dn4 x78zum5 xdt5ytf x5yr21d xl56j7k x10l6tqk x17qophe x13vifvy xh8yej3",children:m.jsx(c("CometImage.react"),{src:i("354763")})})]})}o.displayName=o.name+" [from "+f.id+"]";function a(a){return m.jsx(c("CometPlaceholder.react"),{fallback:null,children:m.jsx(o,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWRepliedMessage.react",["MWPBaseRepliedMessage.react","MWRepliesAttachment.react","MWRepliesExpired.react","MWRepliesGIF.react","MWRepliesMedia.react","MWRepliesRemoved.react","MWRepliesRollcallContribution.react","MWRepliesSticker.react","MWRepliesStory.react","MWRepliesText.react","MWRepliesUnavailable.react","MWRepliesVideo.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.isSecureMessage;b=b===void 0?!1:b;var d=a.message;a=a.outgoing;return i.jsx(c("MWPBaseRepliedMessage.react"),{isSecureMessage:b,message:d,outgoing:a,renderAttachment:c("MWRepliesAttachment.react"),renderExpiredMessage:c("MWRepliesExpired.react"),renderGIF:c("MWRepliesGIF.react"),renderMedia:c("MWRepliesMedia.react"),renderRemovedMessage:c("MWRepliesRemoved.react"),renderRollcallContribution:c("MWRepliesRollcallContribution.react"),renderSticker:c("MWRepliesSticker.react"),renderStory:c("MWRepliesStory.react"),renderTextMessage:c("MWRepliesText.react"),renderUnavailableMessage:c("MWRepliesUnavailable.react"),renderVideo:c("MWRepliesVideo.react")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSReplySvgIcon.react",["MDSSvgIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsx(c("MDSSvgIcon.react"),babelHelpers["extends"]({},a,{children:i.jsx("path",{clipRule:"evenodd",d:"M18.005 24.4c0 1.278-1.336 2.04-2.334 1.332l-9.007-6.399c-.891-.633-.89-2.028 0-2.661l9.007-6.398c.998-.71 2.334.053 2.334 1.33l.001 3.397c7.14 0 11.997 3.226 11.998 10.987 0 .594-.411 1.012-1.033 1.012-.46 0-.845-.265-1.115-1.083-1.147-3.464-4.54-4.917-9.85-4.917v3.4z",fillRule:"evenodd"})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWIsReplyToAuthor",["I64","LSIntEnum","LSMessageReplySourceTypeV2"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){return a.replySourceTypeV2!=null&&(h||(h=d("I64"))).equal(a.replySourceTypeV2,(i||(i=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").XMA))}g["default"]=a}),98); __d("useMWReplySnippetContent",["fbt","Actor","I64","MWPMessageAuthor.react","useMWIsReplyToAuthor","useMWPIsMessagePinned"],(function(a,b,c,d,e,f,g,h){"use strict";var i;function a(a,b){var e=c("useMWPIsMessagePinned")(a),f=d("MWPMessageAuthor.react").useAuthorName();f=f[0];var g=d("Actor").useActor();g=g[0];g=g===(i||(i=d("I64"))).to_string(a.senderId);var j=c("useMWIsReplyToAuthor")(a);return!e||g||j?a.replySnippet:b?h._("__JHASH__lpeJtmI6peT__JHASH__").toString():h._("__JHASH__bGQxu-uwmpe__JHASH__",[h._param("name",f)]).toString()}g["default"]=a}),98); __d("MWReplySnippet.react",["I64","LSIntEnum","LSMessageReplySourceTypeV2","MDSForwardSvgIcon.react","MDSReplySvgIcon.react","MWEditedEyebrow.react","MWPEditMessageUtil","react","useMWReplySnippetContent"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react"),l={container:{alignItems:"x6s0dn4",color:"x12scifz",display:"x78zum5",fontSize:"x1pg5gke",paddingBottom:"xg8j3zb",paddingTop:"x1nn3v0j",$$css:!0},separator:{paddingEnd:"x150jy0e",paddingLeft:null,paddingRight:null,paddingStart:"x1e558r4",$$css:!0},text:{paddingStart:"x1h0ha7o",paddingLeft:null,paddingRight:null,$$css:!0}};function m(a){a=a.replySourceType;if(a==null)return null;if((i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").MESSAGE))||(i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").STORY)))return k.jsx(c("MDSReplySvgIcon.react"),{color:"tertiary",size:16});else if((i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").FORWARD))||(i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").IG_STORY_SHARE))||(i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSMessageReplySourceTypeV2").FB_STORY_SHARE)))return k.jsx(c("MDSForwardSvgIcon.react"),{color:"tertiary",size:16});return null}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.message;a=a.outgoing;a=c("useMWReplySnippetContent")(b,a);if(a==null||a.trim().length===0)return null;var e=d("MWPEditMessageUtil").isEditedMessage(b);return k.jsxs("div",{className:"x6s0dn4 x12scifz x78zum5 x1pg5gke xg8j3zb x1nn3v0j","data-testid":void 0,children:[k.jsx(m,{replySourceType:b==null?void 0:b.replySourceTypeV2}),k.jsx("div",{className:"x1h0ha7o",children:a}),e&&k.jsx(c("MWEditedEyebrow.react"),{hasSeparator:!0,xstyle:l.separator})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ReplyError.react",["fbt","MWV2ReplyTo.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={root:{fontStyle:"x1k4tb9n",$$css:!0}};function a(a){a=a.outgoing;return j.jsx(c("MWV2ReplyTo.react"),{outgoing:a,xstyle:k.root,children:h._("__JHASH__962PS6SI-P2__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWMessageRow.react",["BaseView.react","CometErrorBoundary.react","CometMiddot.react","CometPlaceholder.react","GroupsCometChatsEngagementLogger","I64","Int64Hooks","JSResourceForInteraction","LSIntEnum","LSMessagingThreadTypeUtil","MNLSXMALayoutType","MWCMIsAnyCMThread","MWCMThreadTypes.react","MWChatGutterItem.react","MWChatMessageUnreadIndicator.react","MWClickedMessageContext.react","MWExtraPinnedMessagePadding.react","MWForwardedContent.react","MWLSThreadDisplayContext","MWMessageDeliveryStatus","MWMessageDisplayContext.react","MWMessageListAttachmentContainer.react","MWMessageListLoggingContext","MWMessagePromptPopoverTrigger.react","MWMessageReactionsContainer.react","MWMessageRowActions.react","MWMessageSearchPluginMustache.react","MWMustacheText","MWPActor.react","MWPBaseMessage.react","MWPBaseMessageListRow.react","MWPBaseMessageRowHeader.react","MWPMessageFooter.react","MWPMessageIsReply","MWPMessageListColumn.react","MWPMessageListRowWithKeyboardInteractions.react","MWPMessageLoggingWrapper.react","MWPMessageParsingUtils","MWPMessagePinnedText.react","MWPMessageReactions.react","MWPMessageRowCalculateStatus.react","MWPThreadCapabilitiesContext","MWPinnedMessageDropdownButton.react","MWPinnedMessageOverlay.react","MWPinnedMessageRowFooterNUXWrapperRequireNUX.react","MWRepliedMessage.react","MWReplySnippet.react","MWSearchPluginUtils","MWShowMessagePromptPopoverContext.react","MWV2ChatAdminMessage.react","MWV2ChatBubbleContainer.react","MWV2ChatEmoji.react","MWV2ChatErrorBubble.react","MWV2ChatText.react","MWV2ChatUnsentMessage.react","MWV2MessageEndOfGroupContent.react","MWV2MessageProfilePhoto.react","MWV2MessageRowSimple.react","MWV2MessageStartOfGroupContent.react","MWV2MessageTimestampTooltip.react","MWV2ReplyError.react","MWXPressable.react","MWXText.react","QE2Logger","ReQL","asyncToGeneratorRuntime","cr:120","cr:277","cr:3932","cr:7412","cr:801","deferredLoadComponent","gkx","promiseDone","qex","react","requireDeferredForDisplay","stylex","useIsMultiReactionEnabled","useMWIsReplyToAuthor","useMWPEditMessageDeemphasizer","useMWPGetAttachments","useReStore","useShowPersistentGenAIFeedbackButtons"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react"));a=l;e=a.memo;var n=a.startTransition,o=a.useCallback,p=a.useId,q=a.useMemo,r=a.useState,s=c("deferredLoadComponent")(c("requireDeferredForDisplay")("MWMessageReactionsContainerV2.react").__setRef("MWMessageRow.react")),t={adminMessageAttachment:{boxSizing:"x9f619",maxWidth:"x4ndzw7",minWidth:"xwj5yc2",paddingBottom:"xdvlbce",paddingStart:"x5ib6vp",paddingLeft:null,paddingRight:null,paddingEnd:"xc73u3c",paddingTop:"x1nn3v0j",$$css:!0},adminMessageContainer:{maxWidth:"x193iq5w",$$css:!0},alignEnd:{alignItems:"xuk3077",marginEnd:"x1c0yhlu",marginLeft:null,marginRight:null,$$css:!0},emptyGutter:{width:"x51ohtg",$$css:!0},emptyGutterForTextReceipts:{width:"x1xc55vz",$$css:!0},gutter:{overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"xw4jnvo",$$css:!0},multiReactContainer:{display:"x78zum5",flexDirection:"x1q0g3np",$$css:!0},multiReactContainerOutgoing:{alignSelf:"xpvyfi4",$$css:!0},reply:{alignItems:"x1cy8zhl",display:"x78zum5",flexDirection:"xdt5ytf",$$css:!0},replyMargin:{marginBottom:"x1q5jw98",minHeight:"xvnwnnf",$$css:!0}},u=e(function(a){var e=a.hasClickState,f=e===void 0?!1:e,g=a.hasMessageEmphasisRing;e=a.isFirstMessageInGroup;var i=a.isLastMessageInGroup,k=a.isSearchPluginAttachment,l=k===void 0?!1:k,n=a.isSecureMessage,o=a.message,p=a.navigateToRouteForMediaViewer,q=a.nextMessage,r=a.offlineAttachmentId,s=a.outgoing,t=a.prevMessage,u=a.reactions,v=a.reactionsV2,w=a.renderAttachment;k=a.threadType;a=c("MWClickedMessageContext.react").useHook();var x=a.clickedMessageId,y=a.fetchMessageSeenCount,z=a.hasError,A=a.setClickedMessageId,B=(h||(h=c("useReStore")))(),C=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(k),D=d("useIsMultiReactionEnabled").useIsMultiReactEnabled(o.threadKey),E=d("Int64Hooks").useCallbackInt64(function(){if(window.getSelection().toString()!=="")return;c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(B.table("threads")).getKeyRange(o.threadKey))),b=a==null?null:yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(B.table("community_folders")).getKeyRange(a.parentThreadKey));a!=null&&b!=null&&d("GroupsCometChatsEngagementLogger").log({action:"tap",client_extras:{mid:o.messageId},community_id:(j||(j=d("I64"))).to_string(b.folderId),event:"render_seen_count",group_id:j.to_string(b.fbGroupId),source:"message_bubble",surface:"thread_view",thread_id:j.to_string(a.threadKey)});if(x===o.messageId&&!z)return A(null);else return y(o.threadKey,o.messageId,b)})())},[B,x,o.messageId,o.threadKey,z,A,y]);return m.jsx(c("MWPBaseMessage.react"),{checkEmoticon:!0,isFirstMessageInGroup:e,isLastMessageInGroup:i,isSearchPluginAttachment:l,message:o,nextMessage:q,outgoing:s,prevMessage:t,reactions:u,reactionsV2:v,renderAttachment:function(a,b,d){if(l)return null;return w!=null&&n?w(o,t,q,s):m.jsx(c("MWMessageListAttachmentContainer.react"),{connectBottom:b,connectTop:a,hasEmphasisRing:g,hasText:d,message:o,navigateToRouteForMediaViewer:p,outgoing:s})},renderEmoji:function(){return m.jsx(c("MWV2ChatEmoji.react"),{hasEmphasisRing:g,isSecureMessage:n,message:o})},renderMessageBubble:function(a,b,d,e){return m.jsx(c("MWV2ChatBubbleContainer.react"),{connectBottom:d,connectTop:b,hasEmphasisRing:g,message:o,outgoing:s,precedesXMA:e,children:m.jsx(c("MWV2ChatText.react"),{isSecureMessage:n,message:o,outgoing:s})})},renderMessageContainer:function(a,d){var e;e=m.jsx(c("MWPMessageLoggingWrapper.react"),{messageId:o.messageId,optimisticMessageId:(e=r)!=null?e:o.offlineThreadingId,xstyle:d,children:C&&b("cr:120")?m.jsx(b("cr:120"),{message:o,children:a}):m.jsx(c("MWV2MessageTimestampTooltip.react"),{message:o,children:a})});if(f)return m.jsx(c("MWXPressable.react"),{onPress:E,overlayDisabled:!0,xstyle:d,children:e});else return e},renderMessageFooter:function(){if(D)return null;var a=v!=null&&v.length>0;return m.jsx(d("MWPMessageFooter.react").MWPMessageFooter,{outgoing:s,children:!a&&u.length<1?null:m.jsx(d("MWPMessageReactions.react").MWPMessageReactions,{message:o,outgoing:s,reactions:u,reactionsV2:a?v:void 0,children:function(b,d,e,f,g){return m.jsx(c("MWMessageReactionsContainer.react"),{count:d,emojis:b,message:f,reactions:e,reactionsV2:a?v:void 0,threadKey:g})}})})},renderUnsentMessage:function(){return m.jsx(c("MWV2MessageTimestampTooltip.react"),{message:o,children:m.jsx(d("MWV2ChatUnsentMessage.react").MWV2ChatUnsentMessage,{isSecureMessage:n,message:o,outgoing:s})})}})});function v(){var a=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();return q(function(){var b=c("gkx")("571")?"12px":a==="Inbox"?"16px":"8px";return{dark:{"mwp-message-list-profile-start-padding":b},light:{"mwp-message-list-profile-start-padding":b},type:"VARIABLES"}},[a])}var w=m.memo(c("MWPMessageRowCalculateStatus.react"));function x(a){var b=a.message,c=a.nextMessage;a=babelHelpers.objectWithoutPropertiesLoose(a,["message","nextMessage"]);return m.jsx(w,babelHelpers["extends"]({message:d("Int64Hooks").usePickInt64(b,["senderId","isUnsent","threadKey","primarySortKey","timestampMs","messageId","isAdminMessage","sendStatusV2"]),nextMessage:d("Int64Hooks").usePickInt64(c,["senderId","timestampMs","isAdminMessage"])},a))}x.displayName=x.name+" [from "+f.id+"]";a=e(function(a){var e=a.domElementRef,f=a.hasMessageEmphasisRing,g=a.isModal,h=a.isSecureMessage,l=a.lastEbMessageTime,q=a.message,w=a.navigateToRouteForMediaViewer,y=a.nextMessage,z=a.prevMessage,A=a.renderAttachment,B=a.shouldRenderUnreadIndicator,C=a.stopHoveringRef,D=a.threadType;a=a.useReactionsV2;var E=a===void 0?!1:a;a=(a=d("MWMessageDisplayContext.react").useMWMessageDisplayContext())!=null?a:"standard";var F=a==="standard",G=a==="pinnedMessages";a=d("MWPActor.react").useActor();var H=c("MWClickedMessageContext.react").useHook(),aa=H.clickedMessageId,I=G||d("MWPMessageParsingUtils").isStartOfGroup(q,z),J=G||d("MWPMessageParsingUtils").isEndOfGroup(q,y),ba=c("MWCMIsAnyCMThread")(D),K=d("MWCMThreadTypes.react").isBroadcastThread(D);H=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(D);var L=d("LSMessagingThreadTypeUtil").isGroup(D),ca=d("LSMessagingThreadTypeUtil").isSecure(D),M=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();M=M.seenCountV2Enabled;var N=!0;if(ca){var O;N=(O=c("qex")._("891"))!=null?O:!1;d("QE2Logger").logExposureForUser("messenger_armadillo_web_message_states")}var P=d("useIsMultiReactionEnabled").useIsMultiReactEnabled(q.threadKey);O=!q.isUnsent&&M;var Q=O&&!H&&!d("LSMessagingThreadTypeUtil").isCMSubthread(D),R=!G&&(j||(j=d("I64"))).equal(q.senderId,a),S=y==null,T=d("MWPMessageReactions.react").useReactions(q),U=d("MWPMessageReactions.react").useReactionsV2(q),da=P&&U.some(function(a){return(j||(j=d("I64"))).to_int32(a.count)>0});M=r(!1);var V=M[0],ea=M[1];O=r(!1);var fa=O[0],ga=O[1],ha=o(function(a){return n(function(){return ga(a)})},[ga,n]),ia=o(function(a){return n(function(){return ea(a)})},[ea,n]),ja=p();a=r(!1);var W=a[0],ka=a[1],la=!R,ma=la&&L,X=c("MWPMessageIsReply")(q),Y=(T.length>0||U.length>0)&&!P;M=c("useMWIsReplyToAuthor")(q);var na=M||q.replySourceId==null?!1:q.replyMediaExpirationTimestampMs!=null?(j||(j=d("I64"))).gt(q.replyMediaExpirationTimestampMs,(j||(j=d("I64"))).zero):!0,oa=K&&c("gkx")("6159")||G||H||N,pa=function(a){return m.jsx(c("MWXText.react"),{color:"secondary",type:"meta4",children:a})},qa=v();O=B===!0?m.jsx(c("MWV2MessageRowSimple.react"),{children:m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:m.jsx(c("MWChatMessageUnreadIndicator.react"),{})})}):null;a=l!=null&&(j||(j=d("I64"))).gt(l,q.timestampMs)&&(y==null||(j||(j=d("I64"))).lt(l,y.timestampMs));M=a===!0&&b("cr:801")?m.jsx(c("MWV2MessageRowSimple.react"),{children:m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:m.jsx(c("CometErrorBoundary.react"),{fallback:function(){return null},children:m.jsx(b("cr:801"),{})})})}):null;var Z,$=c("useMWPGetAttachments")(q);B=$.length>0;var ra=B&&d("MWSearchPluginUtils").isSearchPlugin($[0]),sa=d("MWMessageListLoggingContext").useFlowInstanceId();l=$.length>0&&$[0].xmaLayoutType!=null&&(j||(j=d("I64"))).equal($[0].xmaLayoutType,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").STANDARD_DXMA));a=$.length>0&&$[0].xmaLayoutType!=null&&(j||(j=d("I64"))).equal($[0].xmaLayoutType,(k||(k=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").SHARED_STACK));B=c("useMWPEditMessageDeemphasizer")();var ta=c("useShowPersistentGenAIFeedbackButtons")(q.threadKey,q.botResponseId),ua=d("LSMessagingThreadTypeUtil").isCMSubthread(D)&&q.subthreadKey!=null;if(q.isAdminMessage){var va=m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{centered:!0,children:m.jsxs(c("BaseView.react"),{xstyle:[B,t.adminMessageContainer],children:[m.jsx(d("MWV2ChatAdminMessage.react").MWV2ChatAdminMessage,{message:q,nextMessage:y,prevMessage:z}),m.jsx(c("MWMessageListAttachmentContainer.react"),{connectBottom:!1,connectTop:!1,message:q,outgoing:R,xstyle:t.adminMessageAttachment})]})});q.adminMsgCtaType==null?Z=m.jsx(c("MWV2MessageRowSimple.react"),{children:va}):Z=m.jsx(c("MWPMessageListRowWithKeyboardInteractions.react"),{domElementRef:I?void 0:e,isDialogOpened:W,isFocused:V,isModal:g,message:q,messageDomID:ja,nextMessage:y,outgoing:R,prevMessage:z,setFocused:ia,setHovered:ha,setIsDialogOpened:ka,stopHoveringRef:C,theme:qa,children:va})}else l||a?Z=m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{centered:!0,children:m.jsx(c("MWV2MessageRowSimple.react"),{children:m.jsx(c("BaseView.react"),{xstyle:B,children:m.jsx(c("MWMessageListAttachmentContainer.react"),{connectBottom:!1,connectTop:!1,message:q,outgoing:R,xstyle:t.adminMessageAttachment})})})}):Z=m.jsx(d("MWShowMessagePromptPopoverContext.react").MWShowMessagePromptPopoverContextProvider,{children:m.jsxs(m.Fragment,{children:[O,I&&F?m.jsx(c("MWV2MessageStartOfGroupContent.react"),{domElementRef:e,message:q,prevMessage:z}):null,m.jsx(x,{isBroadcastChannel:H,isBroadcastThread:K,isLargeGroup:!1,isSecureGroupThread:ca&&L,message:q,nextMessage:y,children:function(a){return m.jsxs(c("MWPMessageListRowWithKeyboardInteractions.react"),{domElementRef:I?void 0:e,isDialogOpened:W,isFocused:V,isModal:g,message:q,messageDomID:ja,nextMessage:y,outgoing:R,prevMessage:z,setFocused:ia,setHovered:ha,setIsDialogOpened:ka,stopHoveringRef:C,theme:qa,children:[m.jsx(c("MWPBaseMessageRowHeader.react"),{alwaysRenderSenderName:G,isAnyCMThread:ba,isFirstMessageInGroup:I,isGroupThread:L,message:q,outgoing:R,renderForwardSnippet:function(){return m.jsx(c("MWForwardedContent.react"),{message:q,outgoing:R,threadType:D})},renderPinnedText:function(a,b){return F?m.jsx(c("MWPMessagePinnedText.react"),{divider:b&&m.jsx(c("CometMiddot.react"),{}),message:q}):null},renderReplySnippet:function(){return m.jsx(c("MWReplySnippet.react"),{message:q,outgoing:R})},renderTextWrapper:function(a){return m.jsx(c("MWXText.react"),{color:"secondary",type:"meta4",children:a})},renderTimestamp:G?pa:void 0}),m.jsxs(m.Fragment,{children:[I&&!ma?m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:2}):null,X&&m.jsx("div",{className:(i||(i=c("stylex")))(t.reply,R?t.alignEnd:!1,na?t.replyMargin:!1),role:"none",children:m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnWithGutters,{grow:!0,children:m.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return m.jsx(c("MWV2ReplyError.react"),{outgoing:R})},children:F?m.jsx(c("MWPinnedMessageOverlay.react"),{alreadyRenderedPin:!1,message:q,outgoing:R,children:m.jsx(c("MWRepliedMessage.react"),{isSecureMessage:h,message:q,outgoing:R})}):m.jsx(c("MWRepliedMessage.react"),{isSecureMessage:h,message:q,outgoing:R})})})}),m.jsx(d("MWPBaseMessageListRow.react").MWPBaseMessageListRowBody,{hasReactions:Y,message:q,outgoing:R,renderGenAIFeedbackActions:ta&&b("cr:277")!=null?function(){return m.jsx(b("cr:277"),{ariaHidden:g===!1,hasReactions:Y,message:q,outgoing:R})}:void 0,renderGutterItem:function(){return oa?m.jsx("div",{className:(i||(i=c("stylex")))(N?t.emptyGutterForTextReceipts:t.emptyGutter),role:"none"}):m.jsx(c("MWChatGutterItem.react"),{errorMessage:q.subscriptErrorMessage!=null&&ba?q.subscriptErrorMessage:void 0,incoming:!1,status:a,xstyle:t.gutter})},renderMessageActions:function(){return F?m.jsx(d("MWMessageRowActions.react").MWMessageRowActions,{ariaHidden:g===!1,focused:V||W||g,hasReactions:Y,hovered:fa,message:q,outgoing:R,shouldHideHoverMenuReact:da,showPersistentGenAiFeedbackActionButtons:ta,threadType:D}):G?m.jsx(c("MWPinnedMessageDropdownButton.react"),{hidden:!fa&&!V,message:q}):null},renderMultiReactions:function(){if(q.isUnsent)return null;var a=U!=null&&U.length>0;return!P||!a?null:m.jsx("div",{className:(i||(i=c("stylex")))(t.multiReactContainer,R?t.multiReactContainerOutgoing:!1),children:m.jsx(d("MWPMessageReactions.react").MWPMessageReactions,{message:q,outgoing:R,reactions:T,reactionsV2:U,children:function(a,b,d,e,f,g){return m.jsx(c("CometPlaceholder.react"),{fallback:null,children:m.jsx(s,{emojis:a,message:e,onOpenDialog:g,outgoing:R,reactionsV2:U})})}})})},renderProfile:function(){return m.jsx(c("MWV2MessageProfilePhoto.react"),{ariaHidden:L?!g:!0,isGroupThread:L,isLastMessageInGroup:J,message:q})},children:m.jsxs(c("CometErrorBoundary.react"),{fallback:function(a){return m.jsx(c("MWV2ChatErrorBubble.react"),{isReply:X})},children:[m.jsx(c("MWMessagePromptPopoverTrigger.react"),{attachments:$,message:q,children:G?m.jsx(u,{hasClickState:Q,hasMessageEmphasisRing:f,isFirstMessageInGroup:I,isLastMessageInGroup:J,isSearchPluginAttachment:ra,isSecureMessage:h,message:q,nextMessage:y,offlineAttachmentId:$&&$.length>0?$[0].offlineAttachmentId:null,outgoing:R,prevMessage:z,reactions:T,reactionsV2:E?U:void 0,renderAttachment:A,threadType:D}):m.jsx(c("MWPinnedMessageOverlay.react"),{alreadyRenderedPin:X,message:q,outgoing:R,children:m.jsx(u,{hasClickState:Q,hasMessageEmphasisRing:f,isFirstMessageInGroup:I,isLastMessageInGroup:J,isSearchPluginAttachment:ra,isSecureMessage:h,message:q,navigateToRouteForMediaViewer:w,nextMessage:y,offlineAttachmentId:$&&$.length>0?$[0].offlineAttachmentId:null,outgoing:R,prevMessage:z,reactions:T,reactionsV2:E?U:void 0,renderAttachment:A,threadType:D})})}),ra&&m.jsx(c("MWMessageSearchPluginMustache.react"),{attachment:$[0],botResponseId:q.botResponseId,dialogResource:c("JSResourceForInteraction")("MWMessageSearchPluginSourcesDialog.react").__setRef("MWMessageRow.react"),flowInstanceId:sa.current})]})}),m.jsx(c("MWPinnedMessageRowFooterNUXWrapperRequireNUX.react"),{isLastMessage:S,isOutgoing:R,isPinnedMessageList:G,message:q}),m.jsx(c("MWMustacheText"),{message:q,outgoing:R}),m.jsx(c("MWExtraPinnedMessagePadding.react"),{nextMessage:y}),Q&&aa===q.messageId?m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:6}):J&&!N?m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:7}):J&&!S?m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:6}):null]}),F?m.jsx(d("MWPBaseMessageListRow.react").MWPBaseMessageListRowFooter,{message:q,nextMessage:y,showContent:Q||d("MWMessageDeliveryStatus").isAlwaysShownStatus(a)&&N,children:function(){return m.jsx(d("MWV2MessageEndOfGroupContent.react").MWV2MessageEndOfGroupContent,{alignLeft:Q&&la,hasTextBasedMessageReceipts:N,isLastMessage:S,isOutgoing:R,isTextOnly:K,message:q,status:a})}}):null]})}}),I&&F&&ua&&q.subthreadKey!=null&&b("cr:7412")!=null?m.jsx(b("cr:7412"),{domElementRef:e,message:q,nextMessage:y,subthreadKey:q.subthreadKey}):null]})});return m.jsxs(m.Fragment,{children:[Z,M,b("cr:3932")==null?null:m.jsx(b("cr:3932"),{})]})});g.MessageComponent=u;g.useTheme=v;g.MWMessageRow=a}),98); __d("MWCollapsibleAdminMessages.react",["fbt","BaseView.react","MWMessageRow.react","MWPMessageListColumn.react","MWV2ChatAdminMessage.react","MWV2MessageActionsVisibility.react","MWXLink.react","MWXText.react","ODS","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||(i=d("react")),l=i.useState,m={collapsed:{paddingTop:"xz9dl7a",paddingBottom:"xsag5q8",$$css:!0},expanded:{paddingBottom:"x1120s5i",paddingTop:"xz9dl7a",position:"x1n2onr6",zIndex:"x1vjfegm",$$css:!0}};function a(a){var b=d("MWV2MessageActionsVisibility.react").useStopHoveringRef(),e=a.messages,f=babelHelpers.objectWithoutPropertiesLoose(a,["messages"]);a=l(!1);var g=a[0],i=a[1];return k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{centered:!0,children:k.jsxs(d("MWV2ChatAdminMessage.react").MWV2ChatAdminMessageContainer,{children:[k.jsx(c("MWXText.react"),{type:"bodyLink4",children:k.jsx(c("MWXLink.react"),{color:"highlight",onClick:function(){(j||(j=d("ODS"))).bumpEntityKey(3303,"collapsible_admin_messages",g?"hide_messages":"show_messages"),i(function(a){return!a})},role:"button",children:k.jsx(c("BaseView.react"),{xstyle:g?m.expanded:m.collapsed,children:g?h._("__JHASH__k2cKnwAsyRP__JHASH__"):h._("__JHASH__ZpmrUMcuTWA__JHASH__",[h._param("number of admin udpates",e.length)])})})}),g?e.map(function(a,c){return k.createElement(d("MWMessageRow.react").MWMessageRow,babelHelpers["extends"]({},f,{key:a.messageId,message:a,nextMessage:e[c+1],prevMessage:e[c-1],stopHoveringRef:b}))}):null]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWJumpToMostRecentMessageButton.react",["fbt","CurrentUser","MWPColorUtils","MWXIcon.react","MWXPressable.react","ODS","react","useMWPThreadTheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react"),l={circleButton:{alignItems:"x6s0dn4",backgroundColor:"x1l31dnx",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",boxShadow:"xurzqwv",display:"x78zum5",height:"x1vqgdyp",justifyContent:"xl56j7k",width:"x100vrsf",$$css:!0}};function m(){var a=c("useMWPThreadTheme")();a=a.threadTheme;a=d("MWPColorUtils").int64ToHex(a.fallbackColor);return k.jsx("svg",{"aria-hidden":!0,fill:"none",height:"18",viewBox:"7 7 22 22",width:"18",children:k.jsx("path",{d:"M24.616 18.366a1.25 1.25 0 011.768 1.768l-7.5 7.5a1.25 1.25 0 01-1.768 0l-7.5-7.5a1.25 1.25 0 011.768-1.768l4.94 4.94a.25.25 0 00.426-.177V9.25a1.25 1.25 0 112.5 0v13.879c0 .222.27.334.427.176l4.94-4.939z",fill:a})})}m.displayName=m.name+" [from "+f.id+"]";m._isSVG=!0;function a(a){var b=a.onPress;return k.jsx(c("MWXPressable.react"),{"aria-label":h._("__JHASH__mZcaI1xn9AA__JHASH__"),onPress:function(){b();var a=c("CurrentUser").getAppID();a=a==null?"unknown":a;(j||(j=d("ODS"))).bumpEntityKey(3185,"mw_jump_to_bottom","app_id."+a)},xstyle:l.circleButton,children:k.jsx(c("MWXIcon.react"),{icon:m})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useFirstUnreadMessage",["I64","MWPActor.react","ReQL","ReQLSuspense","ServerTime","gkx","useReStore","useStable"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=c("gkx")("7262"),e=(i||(i=c("useReStore")))(),g=d("MWPActor.react").useActor(),j=c("useStable")(function(){return(h||(h=d("I64"))).of_float(new Date(d("ServerTime").getMillis()).getTime())}),k=c("useStable")(function(){var b;return(b=(b=d("ReQLSuspense").first(d("ReQL").fromTableAscending(e.table("threads")).getKeyRange(a),f.id+":39"))==null?void 0:b.lastReadWatermarkTimestampMs)!=null?b:(h||(h=d("I64"))).zero});return d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(e.table("threads"),[]).getKeyRange(a).map(function(c){var i;if(!b)return null;c=d("ReQLSuspense").first(d("ReQL").fromTableAscending(e.table("messages"),["senderId"]).getKeyRange(a).bounds({gt:d("ReQL").key(k)}).filter(function(a){a=a.senderId;return(h||(h=d("I64"))).equal(a,g)}),f.id+":54")==null;if(!c)return null;c=d("ReQLSuspense").first(d("ReQL").fromTableDescending(e.table("messages_ranges_v2__generated")).getKeyRange(a),f.id+":64");if(c==null)return null;var l=d("ReQLSuspense").toArray(d("ReQL").fromTableAscending(e.table("messages"),["messageId","timestampMs"]).getKeyRange(a).bounds({gte:d("ReQL").key(c.minTimestampMs,c.minMessageId),lte:d("ReQL").key(j,c.maxMessageId)}).bounds({gt:d("ReQL").key(k)}).take(2),f.id+":74");return l.length<=1?null:((i=l[0])==null?void 0:i.messageId)===c.minMessageId?void 0:l[0]})},[g,e,k,j,a,b],f.id+":43")}g["default"]=a}),98); __d("MWMessageList",["CometPlaceholder.react","I64","Int64Hooks","LSCommunityBitOffset","LSMessageRenderingType","LSMessagingThreadTypeUtil","MWCMIsAnyCMThread","MWClickedMessageContext.react","MWCollapsibleAdminMessages.react","MWInboxThreadMessagesSpinner.react","MWJumpToMostRecentMessageButton.react","MWMessageListLoggingContext","MWMessageRow.react","MWMessageSendingContext.react","MWPBaseMessageList.react","MWPMessageListFocusTable.react","MWPThreadCapabilitiesContext","MWPTypingIndicators.react","MWPVisibleMessageContext.react","MWV2ChatAdminMessage.react","MWV2MessageActionsVisibility.react","WebUXLoggingSurfaceContextProvider","cr:3907","gkx","react","useCommunityFolder","useFirstUnreadMessage","useIsReactionsV2Enabled","useMWPAriaLabelForMessageListGrid","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react"));a=h;e=a.forwardRef;var k=a.useEffect,l=a.useId,m=a.useState;function n(a){return d("MWV2ChatAdminMessage.react").isAdminMessage(a)&&a!=null&&(a.messageRenderingType==null||!(i||(i=d("I64"))).equal(a.messageRenderingType,(i||(i=d("I64"))).of_int32(c("LSMessageRenderingType").NON_COLLAPSIBLE_ADMIN_MESSAGE)))}function o(){return j.jsx(c("MWInboxThreadMessagesSpinner.react"),{})}o.displayName=o.name+" [from "+f.id+"]";function p(a){return j.jsx(c("MWJumpToMostRecentMessageButton.react"),{onPress:a})}p.displayName=p.name+" [from "+f.id+"]";a=e(function(a,e){var f=a.entryPoint,g=a.renderFooter,h=a.renderHeader,q=a.thread,r=d("MWV2MessageActionsVisibility.react").useStopHoveringRef();a=m("");var s=a[0];a=a[1];var t=l(),u=d("LSMessagingThreadTypeUtil").isSecure(q.threadType),v=c("useMWPAriaLabelForMessageListGrid")(q),w=d("MWPVisibleMessageContext.react").useMWPVisibleMessageContext(),x=w.setVisibleMessage,y=w.visibleMessage,z=d("Int64Hooks").useMemoInt64(function(){return q.threadType},[q.threadType]),A=c("useCommunityFolder")(q),B=A!=null?d("LSCommunityBitOffset").has(9,A):!1,C=d("useIsReactionsV2Enabled").useIsReactionsV2Enabled(q.threadKey),D=c("useFirstUnreadMessage")(q.threadKey);w=m(!1);var E=w[0],F=w[1];d("Int64Hooks").useEffectInt64(function(){return x(void 0)},[q.threadKey,x]);k(function(){D&&!E&&x(function(a){return(a=a)!=null?a:{contextLine:"",highlights:[],messageId:D.messageId,source:"LastReadWatermark",timestamp:D.timestampMs}})},[D,x,E]);w=d("Int64Hooks").useCallbackInt64(function(){return j.jsxs(j.Fragment,{children:[j.jsx(d("MWPTypingIndicators.react").MWPTypingIndicators,{threadKey:q.threadKey,threadType:z}),g&&g()]})},[g,q.threadKey,z]);var G=new Map();f=j.jsx(c("MWPBaseMessageList.react"),{entryPoint:f,onUserScroll:function(){return F(!0)},pageSize:c("gkx")("2233")?3:15,ref:e,renderFooter:w,renderHeader:h,renderJumpToMostRecentMessageButton:p,renderLoadingAnimation:o,renderRow:function(a){var b=a.domElementRef,e=a.message,f=a.nextMessage;a=a.prevMessage;var g=u?(i||(i=d("I64"))).equal(q.threadKey,e.threadKey):!1,h=(D==null?void 0:D.messageId)===e.messageId,k=!n(a)&&!n(f);if((c("MWCMIsAnyCMThread")(q.threadType)||d("LSMessagingThreadTypeUtil").isDiscoverableChannel(q.threadType))&&n(e)&&!k){G.set(e.messageId,e);k=n(a)&&!n(f);if(k){k=Array.from(G.values());G.clear();return j.jsx(c("MWCollapsibleAdminMessages.react"),{domElementRef:b,fbGroupId:A==null?void 0:A.fbGroupId,hasMessageEmphasisRing:y==null?!1:y.messageId===e.messageId&&(y.source==="Reply"||y.source==="Pinned"),isCMAdmin:B,isModal:s===e.messageId,isSecureMessage:g,messages:k,shouldRenderUnreadIndicator:h,threadType:z,useReactionsV2:C})}else return null}return j.jsx(d("MWMessageRow.react").MWMessageRow,{domElementRef:b,fbGroupId:A==null?void 0:A.fbGroupId,hasMessageEmphasisRing:y==null?!1:y.messageId===e.messageId&&(y.source==="Reply"||y.source==="Pinned"),isCMAdmin:B,isModal:s===e.messageId,isSecureMessage:g,message:e,nextMessage:f,prevMessage:a,shouldRenderUnreadIndicator:h,stopHoveringRef:r,threadType:z,useReactionsV2:C})},thread:q});return j.jsx(c("MWMessageSendingContext.react").Provider,{children:j.jsx(c("MWClickedMessageContext.react").Provider,{children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("MWInboxThreadMessagesSpinner.react"),{}),name:"MWV2MessageList",children:j.jsx(d("MWPThreadCapabilitiesContext").Provider,{thread:q,children:j.jsx(c("MWPMessageListFocusTable.react"),{ariaLabel:v,modal:s,setModal:a,children:j.jsx(d("WebUXLoggingSurfaceContextProvider").WebUXSurfaceLoggingContext.Provider,{value:"message_list",children:j.jsx(d("MWMessageListLoggingContext").MWMessageListLoggingContext,{flowInstanceId:c("uuidv4")(),children:b("cr:3907")==null?f:j.jsx(b("cr:3907"),{id:t,children:f})})})})})})})})});g["default"]=a}),98); __d("useMWChatPresenceStatus",["I64","PresenceStatusContext","getOrRequestMWChatPresenceStatusForContactId","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useContext,k=b.useEffect,l=b.useState;function a(a){var b=j(c("PresenceStatusContext")),e=(i||(i=d("I64"))).to_string(a);a=l(c("getOrRequestMWChatPresenceStatusForContactId")(b,e));var f=a[0],g=a[1];k(function(){return b.addListener(function(){return g(function(){return c("getOrRequestMWChatPresenceStatusForContactId")(b,e)})})},[b,e]);return f}g["default"]=a}),98); __d("LSPresenceStatusText.react",["fbt","CometRelativeTimestamp.react","I64","LSContactTypeExact","LSIntEnum","MessengerMSplitFlag","ReQL","ReQLSuspense","isArmadillo","react","useMWChatHasActiveContact","useMWChatPresenceStatus","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||d("react"),n=h._("__JHASH__KJ9BpmLEozf__JHASH__"),o=function(){return null},p=function(a){return a};function q(a){var b=a.contactId,e=a.renderNullState;a=a.renderWrapper;var g=c("useMWChatPresenceStatus")(b),l=(i||(i=c("useReStore")))(),o=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(l.table("contacts"),["contactTypeExact"]).getKeyRange(b).map(function(a){return a.contactTypeExact})},[l,b],f.id+":50");o=o!=null&&(j||(j=d("I64"))).equal(o,(k||(k=d("LSIntEnum"))).ofNumber(c("LSContactTypeExact").MESSENGER_ONLY_NOT_ALLOWED_ON_FB));if(c("MessengerMSplitFlag").is_msplit_account||o)return e();o=(g==null?void 0:g.status)===2;g=(g==null?void 0:g.last_active_time)!=null&&g.last_active_time!==0?g.last_active_time*1e3:void 0;if(o)return a(n);return g!=null?a(h._("__JHASH___H_8HkZmS8j__JHASH__",[h._param("time",m.jsx(c("CometRelativeTimestamp.react"),{date:new Date(g),format:"minimized"}))])):e()}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b=a.participantsContactIds,c=a.renderNullState;a=a.renderWrapper;if(b.length!==1)return c();b=b[0];return m.jsx(q,{contactId:b,renderNullState:c,renderWrapper:a})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b=a.participantsContactIds,c=a.renderNullState;a=a.renderWrapper;b=d("useMWChatHasActiveContact").useMWChatHasActiveContact(b);if(b)return a(n);else return c()}s.displayName=s.name+" [from "+f.id+"]";function a(a){var b=a.participantsContactIds,e=a.renderNullState;e=e===void 0?o:e;var f=a.renderWrapper;f=f===void 0?p:f;a=a.threadType;if((j||(j=d("I64"))).equal(a,(k||(k=d("LSIntEnum"))).ofNumber(1))||(j||(j=d("I64"))).equal(a,(k||(k=d("LSIntEnum"))).ofNumber(15))&&c("isArmadillo")())return m.jsx(r,{participantsContactIds:b,renderNullState:e,renderWrapper:f});else if((j||(j=d("I64"))).equal(a,(k||(k=d("LSIntEnum"))).ofNumber(2))||(j||(j=d("I64"))).equal(a,(k||(k=d("LSIntEnum"))).ofNumber(16))&&c("isArmadillo")())return m.jsx(s,{participantsContactIds:b,renderNullState:e,renderWrapper:f});return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSReQLPresenceStatusText.react",["I64","LSPresenceStatusText.react","MWPActor.react","ReQL","ReQLSuspense","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function l(a){var b=(h||(h=c("useReStore")))(),e=d("MWPActor.react").useActor(),g=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(b.table("participants"),["contactId"]).getKeyRange(a).filter(function(a){a=a.contactId;return!(i||(i=d("I64"))).equal(a,e)}).map(function(a){a=a.contactId;return a})},[e,b,a],f.id+":28");return g}var m=function(){return null},n=function(a){return a};function a(a){var b=a.renderNullState;b=b===void 0?m:b;var d=a.renderWrapper;d=d===void 0?n:d;var e=a.threadKey;a=a.threadType;e=l(e);return k.jsx(c("LSPresenceStatusText.react"),{participantsContactIds:e,renderNullState:b,renderWrapper:d,threadType:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSContactVerificationBadge.react",["CometPageVerificationIcon.react","LSContactBitOffset","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.contact,e=a.icon;a=a.size;b=d("LSContactBitOffset").has(23,b);if(!b)return null;if(e!=null)return i.jsx("span",{className:"xurb0ha",children:e});return a!=null?i.jsx("span",{className:"xurb0ha",children:i.jsx(c("CometPageVerificationIcon.react"),{size:a,verificationBadge:"BLUE_VERIFIED"})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSVerificationBadge.react",["I64","LSContactVerificationBadge.react","MWPActor.react","ReQL","ReQLSuspense","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function a(a){var b=a.icon,e=a.size,g=a.threadKey,j=(h||(h=c("useReStore")))(),l=d("MWPActor.react").useActor();a=d("ReQLSuspense").useArray(function(){return d("ReQL").leftJoin(d("ReQL").fromTableAscending(j.table("participants"),["contactId"]).getKeyRange(g).filter(function(a){return!(i||(i=d("I64"))).equal(a.contactId,l)}).take(2),d("ReQL").fromTableAscending(j.table("contacts"),["capabilities","capabilities2"])).map(function(a){a[0];a=a[1];return a})},[j,g,l],f.id+":35");var m=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(j.table("contacts"),["capabilities","capabilities2"]).getKeyRange(l)},[j,l],f.id+":49");if(a.length>1)return null;m=a.length===0?m:a[0];return m==null?null:k.jsx(c("LSContactVerificationBadge.react"),{contact:m,icon:(a=b)!=null?a:void 0,size:(m=e)!=null?m:void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWInboxHeaderDetails.react",["fbt","CometMiddot.react","CometPlaceholder.react","I64","LSIntEnum","LSMessagingThreadTypeUtil","LSReQLPresenceStatusText.react","LSRtcCallState","LSThreadTitle.react","LSVerificationBadge.react","MWCMInboxHeaderCommunityGroupName.react","MWCMThreadTypes.react","MWChatHeaderDetailsSubtitleMutedIcon.react","MWLSContactTypeExactUtils","MWSeparatorContainer.react","MWVerticalRhythm","MWXText.react","MessengerMuteUtils","ReQL","ReQLSuspense","cr:112","cr:4703","react","useMWChatCalculateIsMutedFromExpireTime","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||d("react"),n={align:{verticalAlign:"xxymvpz",$$css:!0},container:{alignItems:"x1cy8zhl",display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",minHeight:"xj9xw9b",$$css:!0},item:{alignItems:"x6s0dn4",display:"x78zum5",maxWidth:"x193iq5w",$$css:!0},middot:{paddingStart:"x1k2j06m",paddingLeft:null,paddingRight:null,paddingEnd:"x10ogl3i",$$css:!0}};function o(a){var b=a.children,e=a.threadKey,g=(i||(i=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("threads"),["memberCount"]).getKeyRange(e).map(function(a){return a.memberCount})},[g,e],f.id+":76");return b(a)}o.displayName=o.name+" [from "+f.id+"]";function a(a){var e=a.colorOverride,g=a.hexColor,l=a.thread;a=a.threadNameSize;var p=(i||(i=c("useReStore")))(),q=l.muteCallsExpireTimeMs,r=l.muteExpireTimeMs,s=l.ongoingCallState,t=l.threadKey,u=l.threadType,v=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(p.table("contacts"),["contactTypeExact","secondaryName"]).getKeyRange(t).filter(function(a){a=a.contactTypeExact;return d("MWLSContactTypeExactUtils").isIgContact(a)})},[p,t],f.id+":118"),w=(v==null?void 0:v.secondaryName)!=null&&(v==null?void 0:v.secondaryName)!==""!==""?v.secondaryName:null;v=d("MWCMThreadTypes.react").isJoinedCMThread(u);var x=d("LSMessagingThreadTypeUtil").isJoinedSocialChannel(u);q=d("MessengerMuteUtils").calcMuteUntilMs({muteCallsExpireTimeMs:q,muteExpireTimeMs:r,threadType:u});var y=c("useMWChatCalculateIsMutedFromExpireTime")(q);r=!(j||(j=d("I64"))).equal(s,(k||(k=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").NO_ONGOING_CALL));q=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(u);s=d("LSMessagingThreadTypeUtil").isDiscoverableChannel(u);var z=m.jsx("div",{className:"x1k2j06m x10ogl3i",children:m.jsx(c("MWXText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:m.jsx(c("CometMiddot.react"),{})})}),A=m.jsx(c("LSThreadTitle.react"),{thread:l});return m.jsxs("div",{className:"x1cy8zhl x78zum5 xdt5ytf x1iyjqo2 xl56j7k xj9xw9b",style:g==null?{}:{"--primary-text":g},children:[m.jsx("div",{className:"x6s0dn4 x78zum5 x193iq5w",children:m.jsx(c("MWXText.react"),{align:"center",color:e,isSemanticHeading:!0,numberOfLines:1,testid:void 0,type:a,children:m.jsxs("span",{className:"xxymvpz",children:[A,m.jsx(c("CometPlaceholder.react"),{fallback:null,children:!s&&!v&&m.jsx(c("LSVerificationBadge.react"),{size:"small",threadKey:t})})]})})}),q&&b("cr:112")?m.jsx(o,{threadKey:t,children:function(a){return m.jsxs(m.Fragment,{children:[m.jsx(c("MWVerticalRhythm"),{height:8}),m.jsx(c("MWXText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:m.jsx(b("cr:112"),{memberCount:a!=null?(j||(j=d("I64"))).to_int32(a):0})})]})}}):x?m.jsx(o,{threadKey:t,children:function(a){return b("cr:4703")!=null&&a!=null?m.jsxs(m.Fragment,{children:[m.jsx(c("MWVerticalRhythm"),{height:8}),m.jsx(c("MWXText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:m.jsx(b("cr:4703"),{count:(j||(j=d("I64"))).to_int32(a)})})]}):null}}):v?m.jsx(c("MWCMInboxHeaderCommunityGroupName.react"),{renderWrapper:function(a){return m.jsxs(m.Fragment,{children:[m.jsx(c("MWVerticalRhythm"),{height:6}),m.jsx("div",{className:"x6s0dn4 x78zum5 x193iq5w","data-testid":void 0,children:m.jsx(c("MWXText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:a})})]})},thread:l}):r?m.jsxs(m.Fragment,{children:[m.jsx(c("MWVerticalRhythm"),{height:6}),m.jsxs(c("MWSeparatorContainer.react"),{separator:z,xstyle:n.item,children:[w!=null?m.jsx(c("MWXText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:w}):null,m.jsx(c("MWXText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:h._("__JHASH__vQgw_4Xpge6__JHASH__")}),y?m.jsx(c("MWChatHeaderDetailsSubtitleMutedIcon.react"),{forceInlineDisplay:!0}):null]})]}):m.jsx(c("LSReQLPresenceStatusText.react"),{renderNullState:function(){return m.jsxs(c("MWSeparatorContainer.react"),{beforeContent:m.jsx(c("MWVerticalRhythm"),{height:6}),separator:z,xstyle:n.item,children:[w!=null?m.jsxs(c("MWXText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:[" ",w," "]}):null,y?m.jsx(c("MWChatHeaderDetailsSubtitleMutedIcon.react"),{forceInlineDisplay:!0}):null]})},renderWrapper:function(a){return m.jsxs(m.Fragment,{children:[m.jsx(c("MWVerticalRhythm"),{height:6}),m.jsxs(c("MWSeparatorContainer.react"),{separator:z,xstyle:n.item,children:[w!==null?m.jsx(c("MWXText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:w}):null,m.jsx(c("MWXText.react"),{align:"center",color:e,numberOfLines:1,type:"meta3",children:a}),y?m.jsx(c("MWChatHeaderDetailsSubtitleMutedIcon.react"),{forceInlineDisplay:!0}):null]})]})},threadKey:t,threadType:u})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("getLSContactHref",["CurrentEnvironment","I64","LSContactBlockedByViewerStatus","LSContactTypeExact","LSIntEnum","MWLSContactTypeExactUtils","XCometVanityURLControllerRouteBuilder"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=a.blockedByViewerStatus,e=a.contactTypeExact,f=a.id;a=a.secondaryName;if((h||(h=d("I64"))).to_int32(b)===c("LSContactBlockedByViewerStatus").FULLY_BLOCKED)return;if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("LSContactTypeExact").MESSENGER_ONLY_NOT_ALLOWED_ON_FB)))return;b=d("MWLSContactTypeExactUtils").isIgContact(e);return a!=null&&b?"https://www.instagram.com/"+a:(c("CurrentEnvironment").facebookdotcom?"":"https://www.facebook.com")+c("XCometVanityURLControllerRouteBuilder").buildUri({vanity:(h||(h=d("I64"))).to_string(f)}).toString()}g["default"]=a}),98); __d("LSContactLink.react",["CurrentEnvironment","MWLSContactTypeExactUtils","MWXLink.react","MWXPressable.react","getLSContactHref","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={expanding:{display:"x78zum5",$$css:!0}};function a(a){var b=a.children,e=a.contact,f=a.isText;f=f===void 0?!0:f;var g=a.label;a=a.testid;a=e.blockedByViewerStatus;var h=e.contactTypeExact,k=e.id;e=e.secondaryName;a=c("getLSContactHref")({blockedByViewerStatus:a,contactTypeExact:h,id:k,secondaryName:e});k=d("MWLSContactTypeExactUtils").isIgContact(h);e=!c("CurrentEnvironment").facebookdotcom||k?"_blank":void 0;return f?i.jsx(c("MWXLink.react"),{href:a,label:g,target:e,testid:void 0,children:b}):i.jsx(c("MWXPressable.react"),{expanding:!0,label:g,linkProps:{target:e,url:a},overlayRadius:"normal",testid:void 0,xstyle:j.expanding,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("queryMWLSOtherParticipantContact",["I64","LSMessagingThreadTypeUtil","ReQL"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b,c,e,f){c=d("LSMessagingThreadTypeUtil").isOneToOne(c);return c?d("ReQL").leftJoin(d("ReQL").fromTableAscending(a.table("participants"),["contactId"]).getKeyRange(b).filter(function(a){return!(h||(h=d("I64"))).equal(a.contactId,e)}).take(1),d("ReQL").fromTableAscending(a.table("contacts"),f)).map(function(a){a[0];a=a[1];return a}):d("ReQL").empty()}g["default"]=a}),98); __d("MWInboxHeaderDetailsPressable.react",["I64","LSContactLink.react","LSMessagingThreadTypeUtil","LSThreadBitOffset","MWLSGroupMembershipDialog.entrypoint","MWPActor.react","MWXPressable.react","ReQLSuspense","queryMWLSOtherParticipantContact","react","useCommunityFolder","useMWAriaLabelForThread","useMWXEntryPointDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react")),l=i.useRef,m={title:{maxWidth:"x193iq5w",$$css:!0}};function n(a){var b=a.children;a=a.thread;var e=a.parentThreadKey,f=a.threadKey,g=a.threadName;a=a.threadType;var h=l(null),i=c("useCommunityFolder")({parentThreadKey:e});e=c("useMWAriaLabelForThread")({threadKey:f,threadName:g,threadType:a});g=c("useMWXEntryPointDialog")(c("MWLSGroupMembershipDialog.entrypoint"),{groupID:(j||(j=d("I64"))).to_string((f=i==null?void 0:i.fbGroupId)!=null?f:(j||(j=d("I64"))).zero)});var n=g[0];return k.jsx(c("MWXPressable.react"),{"aria-label":e,onPress:function(){return n({folder:i})},overlayDisabled:!0,ref:h,xstyle:m.title,children:b})}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.children;a=a.thread;var e=a.threadKey,g=a.threadType,i=(h||(h=c("useReStore")))(),j=d("MWPActor.react").useActor(),l=d("ReQLSuspense").useFirst(function(){return c("queryMWLSOtherParticipantContact")(i,e,g,j,["name","blockedByViewerStatus","contactTypeExact","id","secondaryName"])},[i,j,e,g],f.id+":104");a=d("LSThreadBitOffset").has(8,a);return l!=null&&a?k.jsx(c("LSContactLink.react"),{contact:l,isText:!1,label:l.name,children:b}):b}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.children;a=a.thread;if(d("LSMessagingThreadTypeUtil").isBusinessSupportThread(a.threadSubtype))return b;if(d("LSMessagingThreadTypeUtil").isOneToOne(a.threadType))return k.jsx(o,{thread:a,children:b});var c=d("LSThreadBitOffset").has(26,a);return d("LSMessagingThreadTypeUtil").isGroup(a.threadType)&&c?k.jsx(n,{thread:a,children:b}):b}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWInboxHeaderDetailsContainer.react",["CometPlaceholder.react","Int64Hooks","LSThreadBitOffset","MWInboxHeaderDetails.react","MWInboxHeaderDetailsPressable.react","MWThreadPicture.react","MWXRow.react","MWXRowItem.react","ReQL","ReQLSuspense","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i.memo;var k={detailsContainer:{paddingStart:"x1h0ha7o",paddingLeft:null,paddingRight:null,$$css:!0}};function a(a){var b=a.badgeSize;b=b===void 0?10:b;var e=a.colorOverride,g=a.hexColor,i=a.isContainerPressable;i=i===void 0?!0:i;var l=a.photoSize;l=l===void 0?40:l;var m=a.threadKey;a=a.threadNameSize;a=a===void 0?"headlineEmphasized3":a;var n=(h||(h=c("useReStore")))(),o=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(n.table("threads"),["threadKey","threadType","muteCallsExpireTimeMs","muteExpireTimeMs","ongoingCallState","cannotReplyReason","parentThreadKey","threadName","threadSubtype"].concat(d("LSThreadBitOffset").threadCapabilityFields)).getKeyRange(m)},[n,m],f.id+":51");if(o==null)return null;b=j.jsx(c("MWXRowItem.react"),{children:j.jsx(c("MWThreadPicture.react"),{badgeSize:b,photoSize:l,threadKey:m,withAltText:!1})});l=j.jsx(c("MWXRowItem.react"),{expanding:!0,xstyle:k.detailsContainer,children:j.jsx(c("MWInboxHeaderDetails.react"),{colorOverride:e,hexColor:g,thread:o,threadNameSize:a})});return j.jsx(c("MWXRow.react"),{expanding:!0,paddingHorizontal:0,paddingVertical:0,verticalAlign:"center",children:j.jsx(c("CometPlaceholder.react"),{fallback:null,children:i?j.jsxs(c("MWInboxHeaderDetailsPressable.react"),{thread:o,children:[b,l]}):j.jsxs(j.Fragment,{children:[j.jsx(c("MWInboxHeaderDetailsPressable.react"),{thread:o,children:b}),l]})})})}a.displayName=a.name+" [from "+f.id+"]";e=b(a,d("Int64Hooks").mostlyShallowEqual);g["default"]=e}),98); __d("MWV2HeaderSettingsPopoverTrigger.react",["JSResourceForInteraction","MWXLazyPopoverTrigger.react","MessengerWebUXLogger","WebUXLoggingSurfaceContextProvider","cr:2580","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var e=a.children,f=a.pushPage,g=a.tab;a=a.thread;var h=a.threadKey,j=a.threadType,k=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useImpressionLogger();return i.jsx(d("WebUXLoggingSurfaceContextProvider").WebUXLoggingSurfaceContextProvider,{value:"chat_tab_header_settings_menu",children:i.jsx(c("MWXLazyPopoverTrigger.react"),{onVisibilityChange:function(a){b("cr:2580")&&a&&(b("cr:2580")({threadKey:h,threadType:j},"open_thread_settings_menu","popup_chat_box"),k==null?void 0:k({eventName:"thread_settings_menu_impression",threadKey:h,threadType:j}))},popoverProps:{onClose:c("emptyFunction"),pushPage:f,tab:g,threadKey:h},popoverResource:c("JSResourceForInteraction")("MWV2HeaderSettingsMenu.react").__setRef("MWV2HeaderSettingsPopoverTrigger.react"),position:"start",preloadTrigger:"button",children:e})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWCMIssueCommunityMemberListFetch",["I64","Int64Hooks","LSFactory","LSIntEnum","LSIssueCommunityMemberListFetchStoredProcedure","LSVec","pageID","promiseDone","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function a(a,b){var e=(j||(j=c("useReStore")))();return d("Int64Hooks").useCallbackInt64(function(){c("promiseDone")(e.runInTransaction(function(e){return c("LSIssueCommunityMemberListFetchStoredProcedure")(c("LSFactory")(e),{communityId:a,fetchAdminsOnly:!1,fetchFriendMembersOnly:!1,maxName:"",maxTimestampMs:(h||(h=d("I64"))).zero,nextPageCursor:"",requestId:c("pageID"),roles:c("LSVec").ofArray([(i||(i=d("LSIntEnum"))).ofNumber(0)]),source:i.ofNumber(7),threadKey:b,threadRoles:c("LSVec").ofArray([])})},"readwrite"))},[e,a,b])}g["default"]=a}),98); __d("useMWV2HeaderSettingsPopover",["fbt","LSMessagingThreadTypeUtil","MWCMThreadTypes.react","MessengerWebUXLogger","ODS","useMWCMIssueCommunityMemberListFetch"],(function(a,b,c,d,e,f,g,h){"use strict";var i;function a(a){var b=a.fbGroupId,e=a.threadKey,f=a.threadType,g=c("useMWCMIssueCommunityMemberListFetch")(b,e),j=d("MWCMThreadTypes.react").isJoinedCMThread(f);a=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(f);var k=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger();return{showDialog:function(a){a(),j&&g(),k==null?void 0:k({eventName:"open_thread_settings_menu",threadKey:e,threadType:f}),(i||(i=d("ODS"))).bumpEntityKey(3185,"mwchat_header","settings")},tooltip:a?h._("__JHASH__J1KJGjGSRI0__JHASH__"):h._("__JHASH__FjEOIpwxx5G__JHASH__")}}g["default"]=a}),98); __d("MWV2HeaderSettingsButton.react",["MDSRow.react","MDSRowItem.react","MWV2HeaderSettingsButtonChevron.react","MWV2HeaderSettingsPopoverTrigger.react","MWXPressable.react","MWXTooltip.react","react","useMWV2HeaderSettingsPopover"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={icon:{marginStart:"x1i64zmx",marginLeft:null,marginRight:null,$$css:!0},rowItem:{alignItems:"x6s0dn4",flexDirection:"x1q0g3np",flexGrow:"x1iyjqo2",$$css:!0},settingsButton:{flexShrink:"xs83m0k",marginEnd:"x1emribx",marginLeft:null,marginRight:null,minWidth:"xeuugli",$$css:!0}};function a(a){var b=a.children,d=a.folderFbGroupId,e=a.iconColor,f=a.pushPage,g=a.tab;a=a.thread;var h=a.threadKey,k=a.threadType;d=c("useMWV2HeaderSettingsPopover")({fbGroupId:(d=d)!=null?d:h,threadKey:h,threadType:k});var l=d.showDialog,m=d.tooltip;return i.jsx(c("MWV2HeaderSettingsPopoverTrigger.react"),{pushPage:f,tab:g,thread:a,children:function(a,d,f,g,h,k,n){return i.jsx(c("MWXTooltip.react"),{align:"middle",position:"above",tooltip:m,children:i.jsx(c("MWXPressable.react"),{"aria-label":m,onHoverIn:g,onHoverOut:h,onPress:function(){return l(d)},onPressIn:k,overlayRadius:"compact",ref:a,testid:void 0,xstyle:j.settingsButton,children:i.jsx(c("MDSRow.react"),{align:"center",paddingHorizontal:0,paddingVertical:0,spacingHorizontal:0,verticalAlign:"center",children:i.jsxs(c("MDSRowItem.react"),{expanding:!0,xstyle:j.rowItem,children:[b,i.jsx(c("MWV2HeaderSettingsButtonChevron.react"),{color:e,xstyle:j.icon})]})})})})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWReQLHeaderSettingsButton.react",["MWV2HeaderSettingsButton.react","react","useCommunityFolder"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.children,d=a.iconColor,e=a.pushPage,f=a.tab;a=a.thread;var g=a.parentThreadKey;g=c("useCommunityFolder")({parentThreadKey:g});return i.jsx(c("MWV2HeaderSettingsButton.react"),{children:b,folderFbGroupId:g==null?void 0:g.fbGroupId,iconColor:d,pushPage:e,tab:f,thread:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatRTCButtonsBaseButton.react",["MWXCircleButton.react","MWXTooltip.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.color,d=a.icon,e=a.label,f=a.onPress,g=a.size;a=a.testid;return i.jsx(c("MWXTooltip.react"),{align:"middle",position:c("gkx")("571")?"below":"above",tooltip:e,children:i.jsx(c("MWXCircleButton.react"),{color:b,icon:d,label:e,onPress:f,size:g,testid:void 0,type:"deemphasized"})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatRTCButtonsAudio.react",["fbt","MWV2ChatRTCButtonsBaseButton.react","MWXIconPhone","MWXThreadThemeColor","MessengerWebUXLogger","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.fill,e=a.size,f=a.startAudioCall,g=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger();a=function(a){f(a),g==null?void 0:g({eventName:"start_audio_call"})};return j.jsx(c("MWV2ChatRTCButtonsBaseButton.react"),{color:d("MWXThreadThemeColor").mwxThreadThemeColor(b),icon:c("MWXIconPhone"),label:h._("__JHASH__7OlJstElKZQ__JHASH__"),onPress:a,size:e,testid:void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXIconCamcorder",["MWXSvgIcon","SVGIcon","cr:7563","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:7563")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98); __d("MWV2ChatRTCButtonsJoinExistingChat.react",["fbt","I64","LSIntEnum","LSRtcCallState","MWXCircleButton.react","MWXIconCamcorder","MWXIconPhone","MWXThreadThemeColor","MWXTooltip.react","emptyFunction","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||d("react");function a(a){var b=a.fill,e=a.ongoingCallState,f=a.size,g=a.startAudioCall;a=a.startVideoCall;if((j||(j=d("I64"))).equal(e,(k||(k=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").NO_ONGOING_CALL)))return null;var i=(j||(j=d("I64"))).equal(e,(k||(k=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").AUDIO_GROUP_CALL))?h._("__JHASH__Jezj_QnZwHq__JHASH__"):(j||(j=d("I64"))).equal(e,(k||(k=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").VIDEO_GROUP_CALL))?h._("__JHASH__LWBq4gDrf_a__JHASH__"):"";return l.jsx(c("MWXTooltip.react"),{align:"middle",position:c("gkx")("571")?"below":"above",tooltip:i,children:l.jsx(c("MWXCircleButton.react"),{color:d("MWXThreadThemeColor").mwxThreadThemeColor(b),icon:(j||(j=d("I64"))).equal(e,(k||(k=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").AUDIO_GROUP_CALL))?c("MWXIconPhone"):(j||(j=d("I64"))).equal(e,(k||(k=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").VIDEO_GROUP_CALL))?c("MWXIconCamcorder"):c("MWXIconPhone"),label:i,onPress:(j||(j=d("I64"))).equal(e,(k||(k=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").AUDIO_GROUP_CALL))?g:(j||(j=d("I64"))).equal(e,(k||(k=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").VIDEO_GROUP_CALL))?a:c("emptyFunction"),size:f,testid:void 0})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatRTCButtonsVideo.react",["fbt","BaseBadge.react","BaseView.react","MWV2ChatRTCButtonsBaseButton.react","MWXIconCamcorder","MWXThreadThemeColor","MessengerWebUXLogger","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={activityIndicatorColor:{backgroundColor:"xv9rvxn",height:"xqu0tyb",width:"x51ohtg",$$css:!0},badgeContainer:{alignItems:"x6s0dn4",bottom:"x1ey2m1c",display:"x78zum5",end:"xds687c",left:null,right:null,position:"x10l6tqk",top:"x13vifvy",$$css:!0}};function a(a){var b=a.fill,e=a.isActive,f=a.size,g=a.startVideoCall,i=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger();a=j.jsx(c("MWV2ChatRTCButtonsBaseButton.react"),{color:d("MWXThreadThemeColor").mwxThreadThemeColor(b),icon:c("MWXIconCamcorder"),label:h._("__JHASH__BhmiwbAyMN2__JHASH__"),onPress:function(a){i==null?void 0:i({eventName:"start_video_chat"}),g(a)},size:f,testid:void 0});return e===!0?j.jsxs(c("BaseView.react"),{children:[a,j.jsx(c("BaseView.react"),{xstyle:k.badgeContainer,children:j.jsx(c("BaseBadge.react"),{xstyle:k.activityIndicatorColor})})]}):a}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatRTCButtons.react",["I64","LSIntEnum","LSRtcCallState","MWStartRTCCallUtils","MWV2ChatRTCButtonsAudio.react","MWV2ChatRTCButtonsJoinExistingChat.react","MWV2ChatRTCButtonsVideo.react","react","useShouldTryWithMessengerDesktop"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react");function l(a){return a}function a(a){var b=a.canAudioCall,e=a.canVideoCall,f=a.fill,g=a.isActive,h=a.ongoingCallState,m=a.renderContainer;m=m===void 0?l:m;var n=a.size;n=n===void 0?28:n;var o=a.startWebAudioCall,p=a.startWebVideoCall;a=a.threadKey;var q=c("useShouldTryWithMessengerDesktop")(),r=d("MWStartRTCCallUtils").useStartMessengerDesktopCall(a,"video",p);a=d("MWStartRTCCallUtils").useStartMessengerDesktopCall(a,"audio",o);r=q?r:p;p=q?a:o;if(!(b||e))return null;return!(i||(i=d("I64"))).equal(h,(j||(j=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").NO_ONGOING_CALL))?m(k.jsx(c("MWV2ChatRTCButtonsJoinExistingChat.react"),{fill:f,ongoingCallState:h,size:n,startAudioCall:p,startVideoCall:r})):k.jsxs(k.Fragment,{children:[b?m(k.jsx(c("MWV2ChatRTCButtonsAudio.react"),{fill:f,size:n,startAudioCall:p})):null,e?m(k.jsx(c("MWV2ChatRTCButtonsVideo.react"),{fill:f,isActive:g,size:n,startVideoCall:r})):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWV2StartGroupCall",["I64","Int64Hooks","JSResourceForInteraction","LSIntEnum","LSMessagingThreadTypeUtil","getRTCCallStateOfLSRTCCallState","gkx","useMWXLazyDialog","useRTWebCometStartCallCallback"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b,e,f){var g=a.ongoingCallState,j=a.threadKey,k=a.threadType,l=c("useRTWebCometStartCallCallback")();a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("RestrictedUserInGroupInterstitialDialog.react").__setRef("useMWV2StartGroupCall"));var m=a[0];return d("Int64Hooks").useCallbackInt64(function(a){var n,o=a.jid,p=a.ongoingCallServerInfoData,q=a.otherParticipantId;a=a.restrictedUsers;a=a===void 0?[]:a;b();n=(n=d("LSMessagingThreadTypeUtil").isGroup(k))!=null?n:!1;n=n&&a.length>0&&c("gkx")("735");var r={existingCall:p!=null?{call_state:c("getRTCCallStateOfLSRTCCallState")((h||(h=d("LSIntEnum"))).unwrapIntEnum(g),(h||(h=d("LSIntEnum"))).unwrapIntEnum(k)),initiator_fbid:null,server_info_data:p}:null,isE2eeMandated:d("LSMessagingThreadTypeUtil").isSecure(k),mediaType:e,thread:{e2eeThreadID:o!=null?(i||(i=d("I64"))).to_string(o):void 0,id:(i||(i=d("I64"))).to_string(j),secureOneToOneThreadPeerId:q!=null&&(i||(i=d("I64"))).equal(k,(h||(h=d("LSIntEnum"))).ofNumber(15))?(i||(i=d("I64"))).to_string(q):void 0,type:(h||(h=d("LSIntEnum"))).unwrapIntEnum(k)},trigger:f};return n?m({onContinue:function(){return l(r)},restrictedUsers:a}):l(r)},[b,k,g,e,j,f,l,m])}g["default"]=a}),98); __d("useMWReQLStartGroupCall",["Actor","I64","Int64Hooks","LSContactBitOffset","Promise","ReQL","asyncToGeneratorRuntime","promiseDone","react","useMWV2StartGroupCall","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=(k||d("react")).useCallback;function a(a,e,f,g){var i=a.ongoingCallState,k=a.threadKey;a=a.threadType;var p=(j||(j=c("useReStore")))(),q=d("Actor").useActor();q=q[0];var r=d("ReQL").firstAsync(d("ReQL").fromTableAscending(p.table("mi_act_mapping_table")).getKeyRange(k).map(function(a){return a.jid})),s=d("ReQL").toArrayAsync(m(p,k)),t=d("ReQL").firstAsync(n(p,k,q)),u=d("ReQL").firstAsync(o(p,k)),v=c("useMWV2StartGroupCall")({ongoingCallState:i,threadKey:k,threadType:a},e,f,g),w=d("Int64Hooks").useCallbackInt64(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield (h||(h=b("Promise"))).all([r,t,u,s])),c=a[0],d=a[1],e=a[2];a=a[3];v({jid:c,ongoingCallServerInfoData:e,otherParticipantId:d,restrictedUsers:a})}),[r,t,u,s,v]);return l(function(){return c("promiseDone")(w())},[w])}var m=function(a,b){return d("ReQL").mergeJoin(d("ReQL").fromTableAscending(a.table("participants")).getKeyRange(b).take(20),d("ReQL").fromTableAscending(a.table("contacts"))).filter(function(a){a[0];a=a[1];return(a=d("LSContactBitOffset").has(66,a))!=null?a:!1}).map(function(a){a[0];a=a[1];return a})},n=function(a,b,c){return d("ReQL").fromTableAscending(a.table("participants")).getKeyRange(b).filter(function(a){return!(i||(i=d("I64"))).equal(a.contactId,i.of_string(c))}).map(function(a){return a.contactId})},o=function(a,b){return d("ReQL").fromTableAscending(a.table("rtc_ongoing_calls_on_threads_v2")).getKeyRange(b).map(function(a){return a.ongoingCallServerInfoData})};g["default"]=a}),98); __d("useMWThreadHasActiveParticipants",["I64","MWPActor.react","ReQL","ReQLSuspense","useMWChatHasActiveContact","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=(i||(i=c("useReStore")))(),e=d("MWPActor.react").useActor(),g=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(b.table("participants")).getKeyRange(a).filter(function(a){return!(h||(h=d("I64"))).equal(a.contactId,e)}).take(1)},[e,b,a],f.id+":28");return d("useMWChatHasActiveContact").useMWChatHasActiveContact(g.map(function(a){return a.contactId}))}g["default"]=a}),98); __d("MWReQLChatRTCButtons.react",["MWStartRTCCallUtils","MWV2ChatRTCButtons.react","emptyFunction","react","useMWReQLStartGroupCall","useMWThreadHasActiveParticipants"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function j(a){return a}function a(a){var b=a.audioCallingSurface;a.disableOverlayOnHover;var e=a.fill,f=a.logAudio;f=f===void 0?c("emptyFunction"):f;var g=a.logVideo;g=g===void 0?c("emptyFunction"):g;var h=a.renderContainer;h=h===void 0?j:h;var k=a.size;k=k===void 0?28:k;var l=a.thread;a=a.videoCallingSurface;var m=c("useMWThreadHasActiveParticipants")(l.threadKey),n=d("MWStartRTCCallUtils").useCanCall(l),o=n[0];n=n[1];g=c("useMWReQLStartGroupCall")(l,g,"video",a);a=c("useMWReQLStartGroupCall")(l,f,"audio",b);return i.jsx(c("MWV2ChatRTCButtons.react"),{canAudioCall:o,canVideoCall:n,fill:e,isActive:m,ongoingCallState:l.ongoingCallState,renderContainer:h,size:k,startWebAudioCall:a,startWebVideoCall:g,threadKey:l.threadKey})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatTabHeaderRTCButtons.react",["Int64Hooks","LSThreadBitOffset","MWReQLChatRTCButtons.react","ODS","ReQL","ReQLSuspense","react","requireDeferred","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react"));b=i;e=b.memo;var l=b.useCallback,m=c("requireDeferred")("ZenonUserActionLoggerCommon").__setRef("MWV2ChatTabHeaderRTCButtons.react");function a(a){var b=a.color,e=a.threadKey;a=l(function(){(j||(j=d("ODS"))).bumpEntityKey(3185,"mwchat_header","audio"),m.onReady(function(a){return a.logClick({component:"audio_button",surface:"chat_tab"})})},[]);var g=l(function(){(j||(j=d("ODS"))).bumpEntityKey(3185,"mwchat_header","video"),m.onReady(function(a){return a.logClick({component:"video_button",surface:"chat_tab"})})},[]),i=(h||(h=c("useReStore")))(),n=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(i.table("threads"),["threadKey","threadType","folderName","ongoingCallState"].concat(d("LSThreadBitOffset").threadCapabilityFields)).getKeyRange(e)},[i,e],f.id+":49");if(n==null)return;return k.jsx(c("MWReQLChatRTCButtons.react"),{audioCallingSurface:"comet_chattab_audio_button",fill:b,logAudio:a,logVideo:g,thread:n,videoCallingSurface:"comet_chattab_video_button"})}a.displayName=a.name+" [from "+f.id+"]";b=e(a,d("Int64Hooks").mostlyShallowEqual);g["default"]=b}),98); __d("MWV2HeaderMinimizeButton.react",["fbt","MWXPressable.react","MWXTooltip.react","react","useSetAttributeRef"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.color;a=a.onPress;var d=c("useSetAttributeRef")("data-prevent_chattab_focus","1"),e=h._("__JHASH__Sy-7_lHYMqE__JHASH__");return j.jsx(c("MWXTooltip.react"),{align:"middle",position:"above",tooltip:e,children:j.jsx(c("MWXPressable.react"),{"aria-label":e,onPress:a,overlayRadius:"50%",ref:d,children:j.jsx("svg",{height:"26px",viewBox:"-4 -4 24 24",width:"26px",children:j.jsx("line",{stroke:b,strokeLinecap:"round",strokeWidth:"2",x1:"2",x2:"14",y1:"8",y2:"8"})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWV2ChatTabHeaderColors",["LSMessagingThreadTypeUtil","MWPThreadThemeGradientUtils","MWV2IsTabFocusedContext.react","cr:6795","useCurrentDisplayMode","useMWPThreadTheme"],(function(a,b,c,d,e,f,g){"use strict";function a(a,e){var f=c("useCurrentDisplayMode")(),g=c("useMWPThreadTheme")(),h=d("MWV2IsTabFocusedContext.react").useIsTabFocused();g=d("MWPThreadThemeGradientUtils").getTopGradientColor(g);a=a&&!h;var i=b("cr:6795")==null?void 0:b("cr:6795")();if(i!=null&&!a){var j;return[(j=i.buttonColor)!=null?j:g,void 0,i.backgroundColor,i.textColor]}j=d("LSMessagingThreadTypeUtil").isSecure(e)&&f==="dark"&&h;i=a||j?"var(--always-white)":h?g:"var(--disabled-icon)";e=a?g:void 0;f=a||j?"white":void 0;return[i,f,e,void 0]}g["default"]=a}),98); __d("useMWReQLChatTabHeaderColors",["I64","ReQL","ReQLSuspense","useMWV2ChatTabHeaderColors","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b){var e,g=(i||(i=c("useReStore")))();e=(e=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("threads"),["lastActivityTimestampMs","lastReadWatermarkTimestampMs"]).getKeyRange(a).map(function(a){var b=a.lastActivityTimestampMs;a=a.lastReadWatermarkTimestampMs;return(h||(h=d("I64"))).gt(b,a)})},[g,a],f.id+":26"))!=null?e:!1;return c("useMWV2ChatTabHeaderColors")(e,b)}g["default"]=a}),98); __d("MWV2ChatTabHeader.react",["CometDOMOnlyBoundary.react","CometPlaceholder.react","I64","LSMessagingThreadTypeUtil","MAWThreadCutover","MWChatStateActions","MWChatStateV2.react","MWInboxHeaderDetailsContainer.react","MWReQLHeaderSettingsButton.react","MWV2ChatTabHeaderRTCButtons.react","MWV2HeaderCloseButton.react","MWV2HeaderContainer.react","MWV2HeaderMinimizeButton.react","MWXTooltipGroup.react","cr:7274","react","useMWReQLChatTabHeaderColors","useMWV2CloseTab"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react");function a(a){var e=a.pushPage,f=a.renderThreadDetails,g=a.tab;a=a.thread;var h=d("MWChatStateV2.react").useDispatch(),i=c("useMWV2CloseTab")(a==null?void 0:a.threadKey,g),k=c("useMWReQLChatTabHeaderColors")(a.threadKey,a.threadType),l=k[0],m=k[1],n=k[2];k=k[3];var o=d("MAWThreadCutover").useIsCutoverOpenThread(a.threadKey);m=j.jsx(c("MWInboxHeaderDetailsContainer.react"),{colorOverride:m,hexColor:k,isContainerPressable:!1,photoSize:32,threadKey:a.threadKey,threadNameSize:"headlineEmphasized4"});o||d("LSMessagingThreadTypeUtil").isBusinessSupportThread(a.threadSubtype)?k=m:k=f!=null?f(l):j.jsx(c("CometPlaceholder.react"),{fallback:m,children:j.jsx(c("MWReQLHeaderSettingsButton.react"),{iconColor:l,pushPage:e,tab:g,thread:a,children:m})});return j.jsx(c("MWV2HeaderContainer.react"),{backgroundColor:n,endContent:j.jsx(c("MWXTooltipGroup.react"),{children:j.jsxs("div",{className:"x6s0dn4 x78zum5 xcud41i",children:[j.jsx(c("CometDOMOnlyBoundary.react"),{children:j.jsx(c("MWV2ChatTabHeaderRTCButtons.react"),{color:l,threadKey:a.threadKey})}),j.jsx(c("MWV2HeaderMinimizeButton.react"),{color:l,onPress:function(){return h(d("MWChatStateActions").minimizeTab(Date.now(),g.tabId))}}),b("cr:7274")!=null?j.jsx(c("CometDOMOnlyBoundary.react"),{children:j.jsx(b("cr:7274"),{color:l,thread:a})}):null,j.jsx(c("MWV2HeaderCloseButton.react"),{color:l,onPress:i,testid:void 0})]})}),startContent:k})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useC4GEngagementSurface",["MWLSThreadDisplayContext"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),b="messenger_inbox";switch(a){case"ChatTab":b="chats_tab";break}return b}g["default"]=a}),98); __d("useC4gEngagementImpressionLogging",["GroupsCometChatsEngagementLogger","I64","Int64Hooks","MWCMIsAnyCMThread","MWCMIsCMSubthread","MWV2IsTabFocusedContext.react","useC4GEngagementSurface"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=a.isSubthreadDisplayed,e=b===void 0?!1:b,f=a.threadKey,g=a.threadType,i=d("MWV2IsTabFocusedContext.react").useIsTabFocused(),j=c("useC4GEngagementSurface")();d("Int64Hooks").useEffectInt64(function(){i&&(c("MWCMIsAnyCMThread")(g)||c("MWCMIsCMSubthread")(g)&&e)&&d("GroupsCometChatsEngagementLogger").log({action:"impression",client_extras:c("MWCMIsCMSubthread")(g)?{is_subthread:"1"}:void 0,event:"thread_focus",source:"thread_view",surface:j,thread_id:(h||(h=d("I64"))).to_string(f)})},[f,g,i,j,e])}g["default"]=a}),98); __d("useLogSubthreadSpentTime.react",["I64","Int64Hooks","MWCMLogTimeSpent","MWV2IsTabFocusedContext.react","ServerTime","react","useC4gEngagementImpressionLogging","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useRef,k=b.useState;function a(a){var b=a.loggingSurface,e=a.threadKey;a=a.threadType;var f=k(!1),g=f[0],h=f[1],l=d("MWV2IsTabFocusedContext.react").useIsTabFocused(),m=j(!0);c("useC4gEngagementImpressionLogging")({isSubthreadDisplayed:g,threadKey:e,threadType:a});d("Int64Hooks").useEffectInt64(function(){l&&g&&(c("MWCMLogTimeSpent")("active",(i||(i=d("I64"))).to_string(e),b,d("ServerTime").getMillis()),m.current=!1);return function(){m.current||(c("MWCMLogTimeSpent")("inactive",(i||(i=d("I64"))).to_string(e),b,d("ServerTime").getMillis()),m.current=!0)}},[e,l,g,b]);f=c("useVisibilityObserver")({onHidden:function(){h(!1)},onVisible:function(){h(!0)}});return f}g["default"]=a}),98); __d("MWCMSubthreadThreadViewChatTab.react",["CometErrorBoundary.react","I64","Int64Hooks","LSAuthorityLevel","LSFactory","LSIntEnum","LSReportThreadViewOpenStoredProcedure","LSResult","LSThreadBitOffset","LSVerifyThreadRowExistsStoredProcedure","MWCMSubthreadHeader.react","MWCMSubthreadThreadViewContexts.react","MWComposerGating.react","MWInboxThreadMessagesSpinner.react","MWLSThread","MWLSThreadDisplayContext","MWMessageList","MWPThreadGradientBackground.react","MWV2ChatTabHeader.react","MWV2ErrorComposer.react","MWV2FileDropzone.react","MWV2OnAuthoritativeThreadInsert","MWV2TabContainer","MWXColumn.react","MWXColumnItem.react","emptyFunction","promiseDone","react","useLogSubthreadSpentTime.react","useMWReQLChatTabHeaderColors","useReStore","xplatToDOMRef"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));b=k;var m=b.useRef,n=b.useState,o={chatTabHeader:{maxHeight:"x1egxudb",$$css:!0},messageListContainer:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",$$css:!0}};function p(a){var b=a.onReturn,e=a.setActualThreadKey,f=a.tab,g=a.thread,k=(h||(h=c("useReStore")))(),n=d("MWLSThread").useThread(g.parentThreadKey);a=c("useMWReQLChatTabHeaderColors")(g.threadKey,g.threadType);var p=a[0],q=a[1];a[2];var r=a[3];a=d("Int64Hooks").useCallbackInt64(function(){var a;(a=s.current)==null?void 0:a.jumpToMostRecentMessage();(i||(i=d("I64"))).equal(g.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").OPTIMISTIC))&&d("MWV2OnAuthoritativeThreadInsert").onAuthoritativeThreadInsert(c("LSResult")(g.threadKey),k,function(a){return e(a.threadKey)})},[g.authorityLevel,g.threadKey,k,e]);var s=m({getScrollAreaElement:c("emptyFunction"),jumpToMostRecentMessage:c("emptyFunction"),restoreScrollPosition:c("emptyFunction")}),t=c("useLogSubthreadSpentTime.react")({loggingSurface:"chat_nub",threadKey:g.threadKey,threadType:g.threadType});d("Int64Hooks").useEffectInt64(function(){c("promiseDone")(k.runInTransaction(function(a){return c("LSReportThreadViewOpenStoredProcedure")(c("LSFactory")(a),{threadKey:g.threadKey})},"readwrite"))},[k,g.threadKey]);return l.jsx(d("MWLSThreadDisplayContext").MWLSThreadDisplayContextProvider,{value:"ChatTab",children:l.jsx(c("MWCMSubthreadThreadViewContexts.react"),{thread:g,children:l.jsxs(c("MWV2TabContainer"),{style:{boxShadow:"none",margin:0},tab:f,threadKey:g.parentThreadKey,children:[l.jsx(c("MWXColumn.react"),{expanding:!0,xstyle:o.chatTabHeader,children:l.jsx(c("MWXColumnItem.react"),{expanding:!0,ref:d("xplatToDOMRef").xplatToDOMRef(t),children:l.jsx(c("MWV2ChatTabHeader.react"),{renderThreadDetails:function(a){return l.jsx(c("MWCMSubthreadHeader.react"),{buttonColor:p,closeSidePanelOnBack:!1,hexTextColor:r,isChatTab:!0,onPressBack:function(){b()},subtitle:n==null?void 0:n.threadName,textColor:q,thread:g,title:g.threadName})},tab:f,thread:g})})}),l.jsxs(d("MWV2FileDropzone.react").MWV2FileDropzone,{isMediaOnly:!d("LSThreadBitOffset").has(56,g),thread:g,children:[l.jsx("div",{className:"x78zum5 xdt5ytf x1iyjqo2",children:l.jsx(d("MWPThreadGradientBackground.react").MWPThreadGradientBackground,{children:l.jsx(c("MWMessageList"),{entryPoint:"popup_chat_box",ref:s,thread:g})})}),l.jsx(c("CometErrorBoundary.react"),{fallback:function(){return l.jsx(c("MWV2ErrorComposer.react"),{})},children:l.jsx(d("MWComposerGating.react").MWChatComposerGating,{afterSendMessage:a,isPreviewThread:!1,thread:g})})]})]})})})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b=a.onReturn,e=a.tab,f=a.threadKey,g=(h||(h=c("useReStore")))();a=n(f);var k=a[0];a=a[1];var m=d("MWLSThread").useThread(k);d("Int64Hooks").useEffectInt64(function(){(m==null||!(i||(i=d("I64"))).equal(m==null?void 0:m.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").OPTIMISTIC)))&&c("promiseDone")(g.runInTransaction(function(a){return c("LSVerifyThreadRowExistsStoredProcedure")(c("LSFactory")(a),{syncGroup:(j||(j=d("LSIntEnum"))).ofNumber(1),threadKey:f})},"readwrite"))},[g,m,f]);return m==null?l.jsx(c("MWInboxThreadMessagesSpinner.react"),{}):l.jsx(p,{onReturn:b,setActualThreadKey:a,tab:e,thread:m})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWCMEditChatInfoDialogEntrypoint",["GroupsCometChatEditChatDialog.entrypoint","I64","MWXCardedDialogLoadingState.react","react","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react");function a(a,b){a=c("useMWXEntryPointDialog")(c("GroupsCometChatEditChatDialog.entrypoint"),{threadID:(i||(i=d("I64"))).to_string(a)},void 0,function(){return j.jsx(c("MWXCardedDialogLoadingState.react"),{})});var e=a[0];return function(){return e({enableEditNameOrDescription:!0,entryPoint:b})}}g["default"]=a}),98); __d("MWInboxHeaderBroadcastChannelSubText.react",["fbt","CometMiddot.react","CometTextWithEntities.react","intlSummarizeNumber","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){a=a.memberCount;return j.jsxs(j.Fragment,{children:[j.jsx(c("CometTextWithEntities.react"),{text:h._("__JHASH__SvUIYrDirw-__JHASH__").toString()}),a>0?j.jsxs(j.Fragment,{children:[j.jsx(c("CometMiddot.react"),{}),c("intlSummarizeNumber")(a),j.jsx(j.Fragment,{children:" "}),h._("__JHASH__YqlBHec3EKS__JHASH__",[h._plural(a)])]}):j.jsx(j.Fragment,{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWInboxHeaderPublicChatSubText.react",["fbt","CometMiddot.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){a=a.count;return j.jsxs(j.Fragment,{children:[h._("__JHASH__e_CSXZOMSHT__JHASH__"),j.jsx(c("CometMiddot.react"),{}),h._("__JHASH__auWIPhKvwTb__JHASH__",[h._plural(a,"number")])]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWEditChannelDialogTrigger.react",["I64","MWEditChannelDialog.entrypoint","promiseDone","react","useMWXEntryPointDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;j||d("react");function a(a){var b=a.children,e=a.threadKey,f=(h||(h=c("useReStore")))();a={threadID:(i||(i=d("I64"))).to_string(e)};a=c("useMWXEntryPointDialog")(c("MWEditChannelDialog.entrypoint"),a);var g=a[0];a=function(){c("promiseDone")(f.table("threads").get(e),function(a){if(a==null)return;g({thread:a})})};return b(a)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("FDSMembersSectionIcons.react",["ix","fbicon"],(function(a,b,c,d,e,f,g,h){"use strict";a=d("fbicon")._(h("483769"),20);g["default"]=a}),98); __d("MWMembersSectionIcons",["cr:3859"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:3859")}),98); __d("useMWAddParticipantDialog",["JSResourceForInteraction","LSIntEnum","LSMessagingThreadTypeUtil","MWLSDatabaseLazySync","promiseDone","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){var e=d("MWLSDatabaseLazySync").useSync((h||(h=d("LSIntEnum"))).ofNumber(7)),f=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWAddParticipantOpenDialog.react").__setRef("useMWAddParticipantDialog")),g=f[0];f=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MAWAddParticipantSecureDialog.react").__setRef("useMWAddParticipantDialog"));var i=f[0];return function(){c("promiseDone")(e());var f=d("LSMessagingThreadTypeUtil").isSecure(b);f?i({threadKey:a}):g({threadKey:a})}}g["default"]=a}),98); __d("MWAddMemberToGroupListCell.react",["fbt","MWMembersSectionIcons","MWXIcon.react","MWXListCellPressable.react","MWXText.react","react","useMWAddParticipantDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.testid;b=a.thread;var d=c("useMWAddParticipantDialog")(b.threadKey,b.threadType);return j.jsx(c("MWXListCellPressable.react"),{addOnStart:j.jsx("div",{className:"x6s0dn4 xljulmy x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 xc9qbxq xl56j7k x14qfxbe",children:j.jsx(c("MWXIcon.react"),{icon:c("MWMembersSectionIcons")})}),content:j.jsx(c("MWXText.react"),{type:"headline4",children:h._("__JHASH__P1CnLTqi4fK__JHASH__")}),onPress:function(){return d()},size:"medium",testid:void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPParticipantsAndContactsForThread_DO_NOT_USE_THIS_WILL_KILL_PERFORMANCE",["ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=(h||(h=c("useReStore")))();return d("ReQLSuspense").useArray(function(){return d("ReQL").mergeJoin(d("ReQL").fromTableAscending(b.table("participants")).getKeyRange(a.threadKey),d("ReQL").fromTableAscending(b.table("contacts")))},[b,a.threadKey],f.id+":28")}g.useValue=a}),98); __d("MWInboxInfoMemberList.react",["fbt","LSMessagingThreadTypeUtil","LSThreadBitOffset","MWAddMemberToGroupListCell.react","MWCMIsAnyCMThread","MWGroupLimitContainer.react","MWGroupMembershipListItem","MWLSGroupMembershipMemberList.react","MWPParticipantsAndContactsForThread_DO_NOT_USE_THIS_WILL_KILL_PERFORMANCE","MWXListCell.react","MWXText.react","isFeatureLimitEnabled","react","useIsReadOnlyFeatureLimitedWithThreadType","withCometPlaceholder"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function k(a){a=a.thread;return j.jsx(c("MWGroupLimitContainer.react"),{groupLimitReachedContent:j.jsx(c("MWXListCell.react"),{content:j.jsx(c("MWXText.react"),{color:"secondary",testid:void 0,type:"body4",children:h._("__JHASH____m4bWP_4pT__JHASH__")}),size:"medium"}),thread:a,children:j.jsx(c("MWAddMemberToGroupListCell.react"),{thread:a})})}k.displayName=k.name+" [from "+f.id+"]";function a(a){a=a.thread;var b=d("LSMessagingThreadTypeUtil").isSecure(a.threadType);b=c("useIsReadOnlyFeatureLimitedWithThreadType")(a.threadType)&&(!b||c("isFeatureLimitEnabled")());var e=d("LSThreadBitOffset").has(27,a),f=d("MWPParticipantsAndContactsForThread_DO_NOT_USE_THIS_WILL_KILL_PERFORMANCE").useValue(a),g=!c("MWCMIsAnyCMThread")(a.threadType);return j.jsxs(j.Fragment,{children:[j.jsx(c("MWLSGroupMembershipMemberList.react"),{participantsAndContacts:f.map(function(a){var b=a[0];a=a[1];return{contact:a,participant:b,type:d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact}}),showAdmodIndicator:g,showAdmodsOnly:!1,showHostsOnly:!1,showInvitedByViewerOnly:!1,thread:a}),!b&&e?j.jsx(k,{thread:a}):null]})}a.displayName=a.name+" [from "+f.id+"]";b=d("withCometPlaceholder").withCometPlaceholder(a);g["default"]=b}),98); __d("MWInboxInfoMembersSection.react",["fbt","I64","LSMessagingThreadTypeUtil","MWCMIsAnyCMThread","MWCMThreadTypes.react","MWInboxInfoMemberList.react","MWInboxPersistedUIState","MWPBumpEntityKey","MWXCollapsible.react","ReQL","ReQLSuspense","cr:4705","intlSummarizeNumber","react","useCommunityFolder","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m="__MWInboxInfoMembersSection.isOpen__";function a(a){var e,g=a.thread;a=d("MWInboxPersistedUIState").usePersistedUIState(!1,m);var k=a[0],n=a[1];a=c("useCommunityFolder")(g);var o=g.threadType,p=c("MWCMIsAnyCMThread")(o);o=d("MWCMThreadTypes.react").isBroadcastThread(o);var q=(i||(i=c("useReStore")))();e=(e=(e=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(q.table("threads"),["memberCount"]).getKeyRange(g.threadKey)},[q,g.threadKey],f.id+":59"))==null?void 0:e.memberCount)!=null?e:(j||(j=d("I64"))).zero;e=e!=null?"("+c("intlSummarizeNumber")((j||(j=d("I64"))).to_int32(e))+")":"";var r=d("LSMessagingThreadTypeUtil").isJoinedSocialChannel(g.threadType),s=d("LSMessagingThreadTypeUtil").isJoinedSocialChannelV2(g.threadType),t=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(g.threadType);o=a!=null&&o?h._("__JHASH__DSNu3nmbdz0__JHASH__"):a!=null&&p?h._("__JHASH__vIXzo8z-i9s__JHASH__",[h._param("member_count",e)]):r||t?h._("__JHASH__1uZ4DO16hPR__JHASH__"):h._("__JHASH__4d9xLPGdRx4__JHASH__");return l.jsx(c("MWXCollapsible.react"),{isOpen:k,label:o,onPress:function(){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.infobar","chat_members_section."+(k?"close":"open"));return n(function(a){return!a})},children:b("cr:4705")==null||!(a!=null&&p)&&!s&&!t?l.jsx(c("MWInboxInfoMemberList.react"),{thread:g}):l.jsx(b("cr:4705"),{folder:a,thread:g})})}a.displayName=a.name+" [from "+f.id+"]";g.storageKey=m;g.MWInboxInfoMembersSection=a}),98); __d("MWChatMultiReactionsTooltip.react",["fbt","I64","LSClearReactionsV2DetailsAndRangeStoredProcedure","LSFactory","LSIssueReactionsV2DetailsUsersListFetchStoredProcedure","LSPlatformWaitForTaskCompletion","MWPActor.react","MWXPressable.react","MWXText.react","ReQL","ReQLSuspense","intlSummarizeNumber","promiseDone","react","usePrevious","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));b=k;var m=b.useEffect,n=b.useRef,o=b.useState,p=9;function a(a){var b=a.messageId,e=a.onTooltipCTAPress,g=a.reactionFbid,k=a.threadKey,q=(i||(i=c("useReStore")))();a=o(!0);var r=a[0],s=a[1];m(function(){s(!0),c("promiseDone")(c("LSPlatformWaitForTaskCompletion")(q,function(a){return c("LSIssueReactionsV2DetailsUsersListFetchStoredProcedure")(c("LSFactory")(a),{messageId:b,reactionFbid:g,threadId:k})},"issueReactionsV2DetailsUsersListFetch").then(function(){s(!1)}))},[q,k,b,g,s]);var t=d("MWPActor.react").useActor();a=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(q.table("reactions_v2_details")).getKeyRange(k,b).filter(function(a){return(j||(j=d("I64"))).equal(a.reactionFbid,g)})},[q,k,b,g],f.id+":70");var u=new Map();a.forEach(function(a){return u.set((j||(j=d("I64"))).to_string(a.reactorId),a.fullName)});var v=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(q.table("threads")).getKeyRange(k).map(function(a){var b=a.parentThreadKey;return d("ReQLSuspense").toArray(d("ReQL").fromTableAscending(q.table("contextual_profile_v1")).filter(function(a){return(j||(j=d("I64"))).equal(a.associatedEntityId,b)}),f.id+":88")})},[q,k],f.id+":83"),w=null;v!=null&&v.forEach(function(a){var b=(j||(j=d("I64"))).to_string(a.ownerId),c=a.profileName;if(c==null)return;u.has(b)&&u.set(b,c);(j||(j=d("I64"))).equal(a.ownerId,t)&&(w=c)});var x=a.map(function(a){return u.get((j||(j=d("I64"))).to_string(a.reactorId))}).filter(Boolean);v=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(q.table("reactions_v2")).getKeyRange(k,b,g)},[q,k,b,g],f.id+":117");a=(a=v==null?void 0:v.viewerIsReactor)!=null?a:!1;var y=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(q.table("contacts")).getKeyRange(t).map(function(a){return a.name})},[q,t],f.id+":129");y=w!=null?w:y;var z=v!=null?(j||(j=d("I64"))).to_int32(v.count):0;z===1&&a&&x.length===0&&y!=null?x.push(y):a&&x[0]!=null&&y!=null&&((v=x[0])==null?void 0:v.toString())!==y&&x.unshift(y);var A=h._("__JHASH__GTBXwO8BaZr__JHASH__");a=function(){var a=[].concat(x.slice(0,p)),b=!1;if(x.length>p){var d=z-p;if(d<0)return[A,!0];a.push(l.jsx(c("MWXText.react"),{color:"highlight",type:"body4",children:h._("__JHASH__KVtJcih6CQz__JHASH__",[h._plural(d),h._param("count",String(c("intlSummarizeNumber")(d)))]).toString()}))}else b=!r&&x.length!==z;return a.length===0?[A,b]:[a.map(function(a,b){return l.jsx("div",{children:a},String(b))}),b]}();v=a[0];var B=a[1],C=c("usePrevious")(B),D=n(null);m(function(){return function(){D.current!=null&&window.clearTimeout(D.current)}},[]);m(function(){if(C===B)return;if(!B)D.current!=null&&(window.clearTimeout(D.current),D.current=null);else{if(D.current!=null)return;D.current=window.setTimeout(function(){D.current=null,c("promiseDone")(q.runInTransaction(function(a){return c("LSClearReactionsV2DetailsAndRangeStoredProcedure")(c("LSFactory")(a))},"readwrite")),c("promiseDone")(q.runInTransaction(function(a){return c("LSIssueReactionsV2DetailsUsersListFetchStoredProcedure")(c("LSFactory")(a),{messageId:b,threadId:k})},"readwrite"))},700)}},[q,B,C,b,g,k]);return l.jsx(c("MWXPressable.react"),{"aria-label":h._("__JHASH__g_e4jdcSB-i__JHASH__"),onPress:e,overlayDisabled:!0,children:l.jsx("div",{children:v})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useGetMultiReactOrderedItems",["I64","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useMemo,k=b.useRef;function l(a,b){var c={};a.forEach(function(a){c[a]=!0});var d=a;b.forEach(function(a){a=a.emoji.join("");if(c[a])return;d.push(a)});return d}function m(a,b){b=((b=b)!=null?b:[]).filter(function(a){return(i||(i=d("I64"))).gt(a.count,i.zero)});return b.map(function(b,c){return{emoji:a[c],reaction:b}}).filter(function(a){return a.emoji!=null})}function a(a,b){var c=k(!0),e=k([]),f=j(function(){return m(a,b)},[a,b]),g=j(function(){var a={};f.forEach(function(b){a[b.emoji.join("")]=b});return a},[f]);return j(function(){if(c.current)c.current=!1,e.current=f.sort(function(a,b){return(i||(i=d("I64"))).compare(b.reaction.count,a.reaction.count)}).map(function(a){return a.emoji.join("")});else{var a=e.current.filter(function(a){a=g[a];return a==null?!1:(i||(i=d("I64"))).to_int32(a.reaction.count)>0});e.current=l(a,f)}return e.current.map(function(a){return g[a]}).filter(Boolean)},[g,f])}g["default"]=a}),98); __d("MWMessageReactionsContainerV2.react",["fbt","BaseContextualLayer.react","I64","LSAuthorityLevel","LSIntEnum","LSMessagingThreadTypeUtil","MAWPSendOrRemoveReaction.react","MWCMThreadTypes.react","MWChatMessageId","MWChatMultiReactionsTooltip.react","MWChatReactionEmoji","MWChatReactionsActionContainer.react","MWChatReactionsUtils","MWLSThread","MWMessageReactionIcon.react","MWPColorUtils","MWV2MessageReactionHooks","MWXPopover.react","MWXPressable.react","MWXText.react","MWXTooltip.react","ODS","emptyFunction","gkx","react","stylex","unrecoverableViolation","useCometTheme","useFadeEffect","useGetMultiReactOrderedItems","useIsMultiReactionEnabled","useIsReactionsV2Enabled","useMWPThreadTheme","usePrevious","useThrottled"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=j||(j=d("react"));b=j;e=b.forwardRef;var o=b.useCallback,p=b.useEffect,q=b.useMemo,r=b.useRef,s=b.useState,t={additionalInlineButton:{display:"x78zum5",flexDirection:"xdt5ytf",height:"xlup9mm",justifyContent:"xl56j7k",width:"x1npj6m0",$$css:!0},animatedEmoji:{animationDuration:"xdz8niu",animationIterationCount:"x1v7wizp",animationName:"x1erype6",animationTimingFunction:"xjmqbfh",opacity:"x1hc1fzr",transform:"xvvkyix",transformOrigin:"x1jpgh95",$$css:!0},emoji:{alignItems:"x6s0dn4",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",cursor:"x1ypdohk",lineHeight:"x14ju556",marginEnd:"x11i5rnm",marginLeft:null,marginRight:null,$$css:!0},emojiNum:{color:"xi81zsa",fontSize:"x1nxh6w3",fontWeight:"x1s688f",paddingStart:"x1k2j06m",paddingLeft:null,paddingRight:null,paddingEnd:"x10ogl3i",textAlign:"x2b8uid",$$css:!0},emojiRow:{alignItems:"x6s0dn4",backgroundColor:"x1vtvx1t",borderTopStartRadius:"xdxvlk3",borderTopEndRadius:"x1fglp",borderBottomEndRadius:"x1rp6h8o",borderBottomStartRadius:"xg6i1s1",display:"x78zum5",justifyContent:"xl56j7k",paddingBottom:"x10b6aqq",paddingEnd:"xsyo7zv",paddingLeft:null,paddingRight:null,paddingStart:"xurb0ha",paddingTop:"x1yrsyyn",position:"x1n2onr6",textAlign:"xp4054r",$$css:!0},emojiRowContainer:{borderTopStartRadius:"xdxvlk3",borderTopEndRadius:"x1fglp",borderBottomEndRadius:"x1rp6h8o",borderBottomStartRadius:"xg6i1s1",marginBottom:"x12nagc",marginEnd:"xw3qccf",marginLeft:null,marginRight:null,$$css:!0},scaleHeartEmoji:{transform:"xhqu4j4",$$css:!0},tooltipContainer:{backgroundColor:"xj5tmjb",borderTopStartRadius:"x1r9drvm",borderTopEndRadius:"x16aqbuh",borderBottomEndRadius:"x9rzwcf",borderBottomStartRadius:"xjkqk3g",boxShadow:"xms15q0",display:"x1lliihq",marginBottom:"xjpr12u",marginTop:"xr9ek0c",maxWidth:"x86nfjv",opacity:"xg01cxk",paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",position:"x1n2onr6",transitionDuration:"x1ebt8du",transitionProperty:"x19991ni",transitionTimingFunction:"x1dhq9h",$$css:!0},tooltipContainerVisible:{opacity:"x1hc1fzr",transitionDuration:"xhb22t3",transitionTimingFunction:"xls3em1",$$css:!0},wrapper:{alignItems:"x1cy8zhl",display:"x78zum5",flexDirection:"x1q0g3np",flexWrap:"x1a02dak",marginTop:"x1gslohp",$$css:!0},wrapperOutgoing:{alignItems:"xuk3077",justifyContent:"x13a6bvl",$$css:!0}},u=e(function(a,b){var e=a.messageID,f=a.onHoverInPrerenderer,g=a.onHoverOutPrerenderer,i=a.onPressInPrerenderer,j=a.showPopover;a=h._("__JHASH__czR8vxcW0mN__JHASH__");e=o(function(){j(),(k||(k=d("ODS"))).bumpEntityKey(3185,"mwchat_actions","reaction")},[e,j]);return n.jsx(c("MWXTooltip.react"),{align:"middle",position:"above",tooltip:a,children:n.jsx(c("MWXPressable.react"),{"aria-label":a,expanding:!0,onHoverIn:f,onHoverOut:g,onPress:e,onPressIn:i,overlayRadius:"inherit",ref:b,role:"button",testid:void 0,xstyle:t.emojiRowContainer,children:n.jsx("div",{className:"x6s0dn4 x1vtvx1t xdxvlk3 x1fglp x1rp6h8o xg6i1s1 x78zum5 xl56j7k x10b6aqq xsyo7zv xurb0ha x1yrsyyn x1n2onr6 xp4054r",role:"none",children:n.jsx("div",{className:"x6s0dn4 x14yjl9h xudhj91 x18nykt9 xww2gxu x1ypdohk x14ju556 x11i5rnm x78zum5 xdt5ytf xlup9mm xl56j7k x1npj6m0",children:n.jsx(c("MWMessageReactionIcon.react"),{})})})})})});function v(a){var b=a.isSecure,e=a.message,f=a.sendReaction,g=a.threadKey;a=a.threadType;var h=(l||(l=d("I64"))).to_string(g),i=l.to_string(e.timestampMs),j=q(function(){return d("MWChatMessageId").makeSent(h,e.messageId,i)},[h,e.messageId,i]);a=d("MWCMThreadTypes.react").isBroadcastThread(a);g=d("useIsReactionsV2Enabled").useIsReactionsV2Enabled(g);var k=d("MWV2MessageReactionHooks").MWV2MessageReactionHooks.useSelectedReactionsV2(e);return n.jsx(c("MWChatReactionsActionContainer.react"),{alwaysShowEmojiPicker:!0,closeActionsMenu:c("emptyFunction"),disableCustomReactions:g&&a,hasReactionsV2:g,isBroadcastThread:a,isSecure:b,messageID:j,onVisibilityChange:c("emptyFunction"),selectedReactions:(g=k)!=null?g:void 0,sendReaction:f,children:function(a,b,c,d,e,f){return n.jsx(u,{messageID:j,onHoverInPrerenderer:d,onHoverOutPrerenderer:e,onPressInPrerenderer:f,ref:a,showPopover:b})}})}v.displayName=v.name+" [from "+f.id+"]";function a(a){var b=a.emojis,e=a.message,f=a.onOpenDialog,g=a.outgoing;a=a.reactionsV2;var h=null,j=s(-1),k=j[0],p=j[1],q=e.threadKey;j=d("MWLSThread").useThread(q,function(a){return a.threadType});if(j==null)throw c("unrecoverableViolation")("thread cannot be null when reacting to message","messenger_web_product");var u=d("LSMessagingThreadTypeUtil").isSecure(j),w=d("MAWPSendOrRemoveReaction.react").useSendOrRemoveReaction(e,u,"instant_react"),y=o(function(a,b){return w(e.messageId,a,b?"remove_reaction":"reaction")},[w,e.messageId]),z=c("useThrottled")(function(a,b){y(a,b)},750),A=r(null),B=o(function(a,b){f({reactionFbid:a,reactionType:b}),p(-1)},[f,p]),C=o(function(a){A.current!=null&&window.clearTimeout(A.current),p(a)},[]),D=o(function(a){if(k===a)return;A.current!=null&&window.clearTimeout(A.current);p(-1);A.current=window.setTimeout(function(){p(a)},300)},[k]),E=o(function(){A.current!=null&&window.clearTimeout(A.current),A.current=window.setTimeout(function(){return p(-1)},300)},[]),F=c("useGetMultiReactOrderedItems")(b,a),G=F.length||0,H=c("usePrevious")(F);if(G<1)return null;var I=d("useIsReactionsV2Enabled").isReactionsV2ReadOnly(j);G=!I&&G>0&&Gk||j.has(g))&&(l=c("uuidv4")());m=b;a.log(function(){return{action:e,action_name:e,event:g,event_name:g,extra:f,parent_surface:n,parent_surface_name:n,recipient_id:r,session_id:l,source:o,source_name:o,surface:p,surface_name:p,thread_id:q!=null?(h||(h=d("I64"))).to_string(q):void 0}})})}g.useLogBroadcastChannelFalcoEventWithRef=a;g.logBroadcastChannelFalcoEvent=n}),98); __d("MWV2ComposerSuggestionView.react",["fbt","ix","GroupsCometChatsEngagementLogger","I64","Int64Hooks","MWAdmodOnboardingSuggestedActionsContext.react","MWXIcon.react","MWXTextPairing.react","Promise","asyncToGeneratorRuntime","cr:6796","fbicon","promiseDone","react","useAsyncReStore","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=k||d("react");function n(a,b){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=(yield b.table("threads").get(a));a=(a=a==null?void 0:a.parentThreadKey)!=null?a:(l||(l=d("I64"))).zero;b=(yield b.table("community_folders").get(a));b=(b=b==null?void 0:b.fbGroupId)!=null?b:(l||(l=d("I64"))).zero;return{communityID:a,fbGroupId:b}});return o.apply(this,arguments)}function a(a){var e,f=a.threadKey,g=c("useAsyncReStore")();a=d("MWAdmodOnboardingSuggestedActionsContext.react").useMWAdmodOnboardingSuggestedActionsContext();var k=a.setShowWelcomeMessageSuggestion,o=a.showWelcomeMessageSuggestion;a=c("useSinglePartialViewImpression")({onImpressionEnd:d("Int64Hooks").useCallbackInt64(function(){return c("promiseDone")((j||(j=b("Promise"))).resolve().then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield g);a=(yield n(f,a));var b=a.communityID;a=a.fbGroupId;var c=o.entryPoint,e=o.source;d("GroupsCometChatsEngagementLogger").log({action:"impression",community_id:(l||(l=d("I64"))).to_string(b),entry_point:c,event:"admin_send_message_hint_card_rendered",group_id:l.to_string((b=a)!=null?b:(l||(l=d("I64"))).zero),parent_surface:"thread_view",source:e,surface:"admin_send_message_hint_card"})})))},[g,o,f])});var p=d("Int64Hooks").useCallbackInt64(function(){var a=o.entryPoint,e=o.source;k({show:!1});c("promiseDone")((j||(j=b("Promise"))).resolve().then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=(yield g);b=(yield n(f,b));var c=b.communityID;b=b.fbGroupId;d("GroupsCometChatsEngagementLogger").log({action:"dismiss",community_id:(l||(l=d("I64"))).to_string(c),entry_point:a,event:"admin_send_message_hint_card_dismissed",group_id:l.to_string((c=b)!=null?c:(l||(l=d("I64"))).zero),parent_surface:"thread_view",source:e,surface:"admin_send_message_hint_card"})})))},[g,k,o,f]);e=(e=b("cr:6796")(!0))==null?void 0:e.backgroundColor;return m.jsxs("div",{className:"x1cy8zhl xcrg951 x8cjs6t x13fuv20 x178xt8z x78zum5 x1qughib xg8j3zb x14uny0o xvpee5o x889kno",ref:a,style:e!=null?{backgroundColor:e}:void 0,children:[m.jsx("div",{className:"xmo9yow",children:m.jsx(c("MWXTextPairing.react"),{body:h._("__JHASH__OnLaish4EIY__JHASH__"),bodyColor:"secondary",headline:h._("__JHASH__ZKh890JQ4An__JHASH__"),headlineColor:"primary",level:4})}),m.jsx(c("MWXIcon.react"),{"aria-label":h._("__JHASH__gaxHiFwvIGk__JHASH__"),color:"primary",icon:d("fbicon")._(i("478231"),12),onPress:p})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ComposerStickerButtonLegacy.react",["JSResourceForInteraction","MWChatComposerIcons","MWV2ComposerStickerCommon","MWXLazyPopoverTrigger.react","MWXPressable.react","MWXTooltip.react","MessengerWebUXLogger","gkx","react","useMWV2ComposerOnStickerSelect"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("JSResourceForInteraction")("MWChatStickersFlyout.react").__setRef("MWV2ComposerStickerButtonLegacy.react"),k={buttonFDS:{paddingTop:"x1iorvi4",paddingEnd:"x150jy0e",paddingBottom:"xjkvuk6",paddingStart:"x1e558r4",$$css:!0},buttonMDS:{paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},flyoutRoot:{width:"x1fepime",$$css:!0}};function a(a){var b=a.color,e=a.disabled,f=a.onSelectStickerPack,g=a.onSendMessage;a=a.useSecureSend;g=c("useMWV2ComposerOnStickerSelect")(g,a);var h=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useInteractionLogger();return i.jsx(c("MWXLazyPopoverTrigger.react"),{align:"middle",disableAutoFlip:!0,popoverProps:{className:"x1fepime",onSelectStickerPack:f,onStickerSelect:g,shouldAlwaysShowAvatarPack:a,shouldHideDefaultPacks:a},popoverResource:j,position:"above",children:function(a,f,g,j,l,m,n){return i.jsx(c("MWXTooltip.react"),{align:"middle",forceInlineDisplay:!0,position:"above",tooltip:d("MWV2ComposerStickerCommon").LABEL,children:i.jsx(c("MWXPressable.react"),{"aria-label":d("MWV2ComposerStickerCommon").LABEL,disabled:e,onHoverIn:j,onHoverOut:l,onPress:function(){f(),h==null?void 0:h({eventName:"composer_open_sticker_picker"})},onPressIn:m,overlayRadius:"50%",ref:a,testid:void 0,xstyle:function(){return[c("gkx")("571")?k.buttonMDS:k.buttonFDS]},children:i.jsx(d("MWChatComposerIcons").MWChatComposerIconsSticker,{fill:e?void 0:b,size:20})})})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MDSPinMessageIcon.react",["MDSSvgIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsx(c("MDSSvgIcon.react"),babelHelpers["extends"]({},a,{children:i.jsx("path",{clipRule:"evenodd",d:"M21.3905 21.9975C21.1611 21.9975 20.9611 22.1536 20.9054 22.3762L19.2424 29.0265C18.9197 30.319 17.0805 30.3185 16.7577 29.0265L15.0947 22.3762C15.039 22.1536 14.839 21.9975 14.6096 21.9975H10.1675C9.21767 21.9975 8.68955 20.933 9.19619 20.1815C9.61488 19.5605 10.7291 18.1525 12.7846 17.1415C13.0959 16.9885 13.2942 16.6755 13.3207 16.33C13.4196 15.046 13.6545 12.991 13.7564 11.669C13.7849 11.3 13.606 10.945 13.2912 10.751C12.1855 10.0695 11.526 9.2765 11.2157 8.837C10.6741 8.07 11.2122 7 12.163 7H23.8376C24.7879 7 25.3255 8.0705 24.7844 8.837C24.4741 9.2765 23.8141 10.0695 22.7089 10.751C22.3941 10.945 22.2158 11.3 22.2437 11.669C22.3457 12.991 22.5805 15.046 22.6794 16.33C22.7059 16.6755 22.9048 16.9885 23.216 17.1415C25.2711 18.1525 26.3853 19.5605 26.8039 20.1815C27.3101 20.933 26.783 21.9975 25.8327 21.9975H21.3905Z",fillRule:"evenodd"})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPinnedMessageRowFooterNUX.react",["fbt","MDSPinMessageIcon.react","MWLSThreadCapabilities","MWPMessageListColumn.react","MWXText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=h._("__JHASH__UnoAJjMNsJN__JHASH__");function a(){var a=d("MWLSThreadCapabilities").useCapabilities();a=d("MWLSThreadCapabilities").canPinMessage(a);return a&&j.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnWithGutters,{shrinkwrap:!0,children:j.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np xr9ek0c",children:[j.jsx(c("MDSPinMessageIcon.react"),{color:"tertiary",size:16}),j.jsx("div",{className:"x12mruv9",children:j.jsx(c("MWXText.react"),{color:"tertiary",type:"meta4",children:k})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWSimpleNuxViewsCounter.react",["MWInboxPersistedUIState","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect,j=3,k=24*60*60*1e3,l=function(a,b){return+new Date()=j},o=function(a){return!!a&&!m(a)&&!n(a)},p=function(a){return{lastViewDate:+new Date(),views:a.views+1}},q={lastViewDate:0,views:0};function a(a,b,c){a=d("MWInboxPersistedUIState").usePersistedUIState(q,"__MWSimpleNux."+a+"__");var e=a[0],f=a[1];i(function(){if(!b)return;if(m(e))return;return function(){var a=p(e);n(a)?(f(void 0),c()):f(a)}},[b,c,e,f]);return o(e)}g["default"]=a}),98); __d("MWPinnedMessageRowFooterNUXWrapper.react",["MWPinnedMessageRowFooterNUX.react","declareNUXRequireable","react","useMWSimpleNuxViewsCounter.react","useSharedNUX"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=c("useSharedNUX")(a),d=b[0];b=b[1].onDismiss;a=c("useMWSimpleNuxViewsCounter.react")(a,d,b);return d&&a?i.jsx(c("MWPinnedMessageRowFooterNUX.react"),{}):null}a.displayName=a.name+" [from "+f.id+"]";b=c("declareNUXRequireable")(a);g["default"]=b}),98); __d("ArrowLeftFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{transform:"translate(-450 -1073)",children:i.jsxs("g",{children:[i.jsx("path",{d:"M100.655 923.405a.75.75 0 0 0-1.06-1.06l-3.125 3.125a.75.75 0 0 0 0 1.06l3.125 3.125a.75.75 0 0 0 1.06-1.06L98.061 926l2.594-2.595z",transform:"translate(355 153.5)"}),i.jsx("path",{d:"M105 925.25h-7.688a.75.75 0 1 0 0 1.5H105a.75.75 0 1 0 0-1.5z",transform:"translate(355 153.5)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("ArrowRightFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs("g",{fillRule:"nonzero",children:[i.jsx("path",{d:"M101.345 928.595a.75.75 0 0 0 1.06 1.06l3.125-3.125a.75.75 0 0 0 0-1.06l-3.125-3.125a.75.75 0 0 0-1.06 1.06l2.594 2.595-2.594 2.595z",transform:"translate(355 153.5)"}),i.jsx("path",{d:"M97 926.75h7.688a.75.75 0 1 0 0-1.5H97a.75.75 0 1 0 0 1.5z",transform:"translate(355 153.5)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("BellNullFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs("g",{children:[i.jsx("path",{d:"M106.97 927.5c1.023 0 1.03-1 1.03-1 .011-1.229-1.33-1.98-1.33-2.92l-.038-.884c-.145-1.81-1.497-3.196-3.132-3.196s-2.987 1.386-3.132 3.197l-.039.884c0 .938-1.34 1.69-1.329 2.919 0 0 .007 1 1.03 1h6.94z",transform:"translate(352.5 155.5)"}),i.jsx("path",{fillRule:"nonzero",d:"M106.97 928c.64 0 1.097-.296 1.342-.77.14-.27.187-.53.188-.726.006-.618-.196-1.076-.663-1.737l-.356-.492-.057-.083-.067-.108c-.113-.185-.171-.328-.184-.452l-.042-.958c-.166-2.08-1.726-3.674-3.63-3.674-1.906 0-3.466 1.595-3.631 3.657l-.04.901c0 .138-.044.276-.142.45l-.084.14-.058.088-.286.395c-.536.737-.766 1.214-.76 1.874.002.195.048.455.188.725.245.474.702.77 1.342.77h6.94zm0-1h-6.94c-.255 0-.376-.079-.455-.23a.688.688 0 0 1-.075-.274c-.003-.356.132-.66.489-1.165l.296-.408.114-.166c.035-.052.067-.102.097-.151.193-.315.306-.605.329-.91l.043-.977c.124-1.546 1.272-2.719 2.632-2.719s2.508 1.173 2.633 2.736l.038.867c0 .327.116.649.333 1.003.045.074.094.149.151.232l.169.235.107.147c.418.574.573.895.57 1.276-.001.053-.022.169-.076.274-.079.151-.2.23-.455.23z",transform:"translate(352.5 155.5)"}),i.jsx("path",{d:"M101.95 929a.203.203 0 0 0-.137.352c.434.4 1.03.648 1.687.648s1.253-.247 1.688-.648a.203.203 0 0 0-.138-.352h-3.1zm2.55-10a1 1 0 1 1-2 0 1 1 0 0 1 2 0",transform:"translate(352.5 155.5)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("CamcorderFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx("path",{d:"M461.583 1076.078a.732.732 0 0 0-.774.073l-.612.466a.498.498 0 0 0-.197.398v4.97c0 .157.072.304.197.398l.612.466a.736.736 0 0 0 .774.073.749.749 0 0 0 .417-.677v-5.49a.75.75 0 0 0-.417-.677m-4.562-1.557h-5.043A1.98 1.98 0 0 0 450 1076.5v6.021a1.98 1.98 0 0 0 1.978 1.979h5.043a1.98 1.98 0 0 0 1.979-1.979v-6.021a1.98 1.98 0 0 0-1.978-1.979"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("ChevronDownFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx("path",{fillRule:"nonzero",d:"M453.03 1077.72a.75.75 0 0 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 0 0-1.06-1.06l-2.97 2.97-2.97-2.97z"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("ChevronUpFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx("path",{fillRule:"nonzero",d:"M458.97 1081.28a.75.75 0 0 0 1.06-1.06l-3.5-3.5a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 1 0 1.06 1.06l2.97-2.97 2.97 2.97z"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("LinkFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs("g",{children:[i.jsx("path",{d:"m101.888 922.704-.336.336-.058.42a3.218 3.218 0 0 0 2.745 1.527 3.22 3.22 0 0 0 2.284-.943l1.952-1.952c1.16-1.16 1.363-3.026.361-4.325a3.233 3.233 0 0 0-4.848-.321l-1.842 1.843c.204-.032.41-.052.62-.052.46 0 .904.081 1.324.228l.923-.923c.584-.584 1.51-.72 2.198-.266a1.731 1.731 0 0 1 .283 2.676l-1.997 1.997c-.416.415-1.012.636-1.587.516a1.765 1.765 0 0 1-1.172-.846.956.956 0 0 0-.85.085",transform:"translate(352.5 157)"}),i.jsx("path",{d:"m105.09 922.294.346-.346.058-.433a3.257 3.257 0 0 0-.45-.56 3.23 3.23 0 0 0-2.59-.939c-.792.07-1.522.462-2.084 1.024l-1.82 1.819c-1.293 1.292-1.367 3.482-.044 4.744a3.235 3.235 0 0 0 2.24.895c.831 0 1.662-.316 2.295-.949l1.848-1.848c-.223.038-.448.06-.673.06a4 4 0 0 1-1.29-.218l-.91.91c-.589.589-1.523.727-2.218.269a1.75 1.75 0 0 1-.287-2.703l2.002-2.002a1.754 1.754 0 0 1 2.466-.007c.12.12.17.18.25.323.245.146.57.147.862-.039",transform:"translate(352.5 157)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("NaviconFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx("path",{fillRule:"nonzero",d:"M452.75 1077.5h6.5a.75.75 0 1 0 0-1.5h-6.5a.75.75 0 1 0 0 1.5zm0 3h6.5a.75.75 0 1 0 0-1.5h-6.5a.75.75 0 1 0 0 1.5zm0 3h6.5a.75.75 0 1 0 0-1.5h-6.5a.75.75 0 1 0 0 1.5z"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("LSFetchAdditionalThreadData",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[1]=d[0].get("thread_key"),d[0],d[2]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),["fetch_additional_thread_data","_",c.i64.to_string(d[1])].join(""),c.i64.cast([0,733]),d[2],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSFetchAdditionalThreadDataStoredProcedure",["LSFetchAdditionalThreadData"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;return c("LSFetchAdditionalThreadData").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MWXIconChevronDown",["MWXSvgIcon","SVGIcon","cr:7591","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:7591")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98); __d("MWXIconChevronUp",["MWXSvgIcon","SVGIcon","cr:7603","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:7603")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98); __d("MWXIconLink",["MWXSvgIcon","SVGIcon","cr:7797","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:7797")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98);/*FB_PKG_DELIM*/ __d("CometGenericCommentDisableNotice_commentDisableNotice$normalization.graphql",["CometTextWithEntitiesRelay_textWithEntities$normalization.graphql"],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"CometGenericCommentDisableNotice_commentDisableNotice$normalization",selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"notice_message",plural:!1,selections:[{args:null,fragment:b("CometTextWithEntitiesRelay_textWithEntities$normalization.graphql"),kind:"FragmentSpread"}],storageKey:null}]};e.exports=a}),null); __d("CometGenericCommentDisableNotice_commentDisableNotice.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometGenericCommentDisableNotice_commentDisableNotice",selections:[{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"notice_message",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CometTextWithEntitiesRelay_textWithEntities"}],storageKey:null}],type:"GeneralCommentDisableNotice",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerAssociateReplyWithParentPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerAssociateReplyWithParentPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerAssociateReplyWithParentPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerAssociateReplyWithParentPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerAssociateReplyWithParentPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerAvatarPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerAvatarPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerAvatarPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerAvatarPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerAvatarPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerAvatarPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerAvatarPlugin_pluginData"};e.exports=a}),null); __d("cometUFIComposerCommentCharacterLimitPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerCommentCharacterLimitPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerCommentCharacterLimitPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerCommentCharacterLimitPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerCommentCharacterLimitPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerEmojiPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerEmojiPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerEmojiPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerEmojiPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerEmojiPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerEmojiPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerEmojiPlugin_pluginData"};e.exports=a}),null); __d("cometUFIComposerEmoticonPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerEmoticonPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerEmoticonPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerEmoticonPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerEmoticonPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerEmoticonPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerEmoticonPlugin_pluginData"};e.exports=a}),null); __d("cometUFIComposerGIFPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerGIFPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerGIFPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerGIFPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerGIFPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerGIFPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerGIFPlugin_pluginData"};e.exports=a}),null); __d("cometUFIComposerHashtagPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerHashtagPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerHashtagPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerHashtagPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerHashtagPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerMediaUploadPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerMediaUploadPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerMediaUploadPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerMediaUploadPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerMediaUploadPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerMediaUploadPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerMediaUploadPlugin_pluginData"};e.exports=a}),null); __d("cometUFIComposerMentionsPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerMentionsPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerMentionsPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerMentionsPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerMentionsPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerMentionsPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerMentionsPlugin_pluginData"};e.exports=a}),null); __d("cometUFIComposerPrefillMentionPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerPrefillMentionPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerPrefillMentionPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerPrefillMentionPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerPrefillMentionPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerSetReplyClickedPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerSetReplyClickedPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerSetReplyClickedPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerSetReplyClickedPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerSetReplyClickedPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerStateSnapshotPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerStateSnapshotPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerStateSnapshotPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerStateSnapshotPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerStateSnapshotPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerStickersPlugin_next_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerStickersPlugin_next_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerStickersPlugin_next_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerStickersPlugin_next_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CometComposerCometizedStickersPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerStickersPlugin_next_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerStickersPlugin_next_pluginData"};e.exports=a}),null); __d("cometUFIComposerLiveTypingBroadcastPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerLiveTypingBroadcastPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerLiveTypingBroadcastPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerLiveTypingBroadcastPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerLiveTypingBroadcastPlugin",abstractKey:null};e.exports=a}),null); __d("cometUFIComposerLiveTypingBroadcastPlugin_pluginData.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"cometUFIComposerLiveTypingBroadcastPlugin_pluginData"};e.exports=a}),null); __d("cometUFIComposerWriteToComposerPlugin_plugin$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"SplitOperation",metadata:{},name:"cometUFIComposerWriteToComposerPlugin_plugin$normalization",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}]};e.exports=a}),null); __d("cometUFIComposerWriteToComposerPlugin_plugin.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"cometUFIComposerWriteToComposerPlugin_plugin",selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],type:"CommentComposerWriteToComposerPlugin",abstractKey:null};e.exports=a}),null); __d("mlcEditableSubscription",[],(function(a,b,c,d,e,f){"use strict";function a(a){return{initialValueFn:function(){return a.isEditable()},subscribe:function(b){return a.registerEditableListener(b)}}}f["default"]=a}),66); __d("useCometLexicalSubscription",["react","useUnsafeRef_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=i||d("react");var j=b.useLayoutEffect,k=b.useState;function a(a){var b=(h||(h=c("useUnsafeRef_DEPRECATED")))(a.initialValueFn()),d=k(b.current),e=d[0],f=d[1];j(function(){var c=a.initialValueFn,d=a.subscribe;c=c();b.current!==c&&(b.current=c,f(c));return d(function(a){b.current=a,f(a)})},[a]);return e}g["default"]=a}),98); __d("CometLexicalContentEditable.react",["CometLexicalContentEditableCommands","Lexical","mlcEditableSubscription","react","stylex","useCometLexicalSubscription"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useLayoutEffect,m=b.useMemo,n=b.useState,o={editor:{color:"xzsf02u",outline:"x1a2a7pz",position:"x1n2onr6",textAlign:"x14wi4xw",$$css:!0}};function a(a){var b=a.ariaAutoComplete,e=a.ariaDescribedBy,f=a.ariaExpanded,g=a.ariaLabel,i=a.ariaLabelledBy,p=a.ariaMultiline,q=a.ariaOwneeID,r=a.ariaRequired,s=a.autoCapitalize,t=a.autoComplete,u=a.autoCorrect,v=a.contentEditableRef,w=a.editor,x=a.isInitiallyFocused,y=x===void 0?!1:x;x=a.role;x=x===void 0?"textbox":x;var z=a.spellCheck;z=z===void 0?!1:z;var A=a.tabIndex,B=a.webDriverTestID;B=a.xstyle;a=n(void 0);var C=a[0],D=a[1];a=n(void 0);var E=a[0],F=a[1];a=c("useCometLexicalSubscription")(m(function(){return c("mlcEditableSubscription")(w)},[w]));l(function(){return w.registerCommand(d("CometLexicalContentEditableCommands").COMET_LEXICAL_ARIA_COMMAND,function(a){Object.prototype.hasOwnProperty.call(a,"activeDescendantID")&&D(a.activeDescendantID);Object.prototype.hasOwnProperty.call(a,"controlsID")&&F(a.controlsID);return!1},d("Lexical").COMMAND_PRIORITY_EDITOR)},[w]);k(function(){y&&w.focus(function(){var a=document.activeElement,b=w.getRootElement();(!(b==null?void 0:b.contains(a))||b!=null||a==null)&&(b==null?void 0:b.focus({preventScroll:!0}))})},[w,y]);return j.jsx("div",{"aria-activedescendant":a?C:null,"aria-autocomplete":a?b:null,"aria-controls":a?E:null,"aria-describedby":e,"aria-expanded":a?x==="combobox"?!!f:null:null,"aria-label":g,"aria-labelledby":i,"aria-multiline":p,"aria-owns":a?q:null,"aria-required":r,autoCapitalize:s,autoComplete:t,autoCorrect:u,className:(h||(h=c("stylex")))(o.editor,B)+" "+(a?"notranslate":""),contentEditable:a,"data-testid":void 0,ref:v,role:a?x:null,spellCheck:z,suppressContentEditableWarning:!0,tabIndex:A})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("cometLexicalBaseTheme",[],(function(a,b,c,d,e,f,g){"use strict";a={ltr:"xdpxx8g",rtl:"x1hr2gdg"};b=a;g["default"]=b}),98); __d("CometLexicalDelightNode",["CometLexicalEntityTextNode"],(function(a,b,c,d,e,f,g){"use strict";var h=function(b){babelHelpers.inheritsLoose(a,b);a.getType=function(){return"delight"};a.clone=function(b){return new a(b.__text,b.__styles,b.__campaignID,b.__delightAsset,b.__key)};a.importJSON=function(a){return i(a.text,a.styles,a.campaignID,a.delightAsset)};var c=a.prototype;c.exportJSON=function(){return babelHelpers["extends"]({},b.prototype.exportJSON.call(this),{campaignID:this.__campaignID,delightAsset:this.__delightAsset,styles:this.__styles,type:"delight",version:1})};function a(a,c,d,e,f){a=b.call(this,a,f)||this;a.__entityType="TextDelightCampaign";a.__styles=c;a.__campaignID=d;a.__delightAsset=e;return a}c.createDOM=function(a){a=b.prototype.createDOM.call(this,a);var c=this.__delightAsset.id,d=this.__styles,e=d.color;d=d["font-weight"];c!=null&&a.setAttribute("data-delight-asset",c);a.setAttribute("data-delight","true");e!=null&&d!=null&&(a.style.color=e,a.style.fontWeight=d);return a};c.getEntity=function(){return{__UFI__:!0,id:this.__campaignID,isWeak:!1,type:this.__entityType}};c.canInsertTextBefore=function(){return!1};c.canInsertTextAfter=function(){return!1};return a}(d("CometLexicalEntityTextNode").CometLexicalEntityTextNode);function i(a,b,c,d){return new h(a,b,c,d)}function a(a){return a instanceof h}g.CometLexicalDelightNode=h;g.$createLexicalDelightNode=i;g.$isLexicalDelightNode=a}),98); __d("CometStickerPickerStickerSearchCard.entrypoint",["CometStickerPickerFlyoutTagSelectorRoot.entrypoint","JSResourceForInteraction","NestedRelayEntryPointBuilderUtils"],(function(a,b,c,d,e,f,g){"use strict";a=c("JSResourceForInteraction")("CometStickerPickerStickerSearchCard.react").__setRef("CometStickerPickerStickerSearchCard.entrypoint");b={getPreloadProps:function(a){var b=a.flyoutTagsCount,e=a.flyoutTagsCursor;a=a.stickerInterface;b={count:b,cursor:e};return{entryPoints:{flyoutTagSelectorEntrypointReference:d("NestedRelayEntryPointBuilderUtils").NestedRelayEntryPoint({entryPoint:c("CometStickerPickerFlyoutTagSelectorRoot.entrypoint"),entryPointParams:b})},extraProps:{stickerInterface:a}}},root:a};g["default"]=b}),98); __d("CometStickerPickerCard.entrypoint",["CometStickerPickerCardQuery$Parameters","CometStickerPickerStickerSearchCard.entrypoint","JSResourceForInteraction","NestedRelayEntryPointBuilderUtils","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a=c("JSResourceForInteraction")("CometStickerPickerCard.react").__setRef("CometStickerPickerCard.entrypoint");b={getPreloadProps:function(a){var b=a.feedbackID,e=a.stickerInterface;a=babelHelpers.objectWithoutPropertiesLoose(a,["feedbackID","stickerInterface"]);a=babelHelpers["extends"]({},a,{stickerInterface:e});a;return{entryPoints:{stickerSearchEntrypointReference:d("NestedRelayEntryPointBuilderUtils").NestedRelayEntryPoint({entryPoint:c("CometStickerPickerStickerSearchCard.entrypoint"),entryPointParams:a})},extraProps:{feedbackTargetID:b,stickerInterface:e},queries:{stickerPickerQueryReference:{parameters:c("CometStickerPickerCardQuery$Parameters"),variables:{feedbackID:b,scale:d("WebPixelRatio").get(),stickerInterface:e}}}}},root:a};g["default"]=b}),98); __d("CometStickerPickerPopoverRoot.entrypoint",["CometStickerPickerCard.entrypoint","JSResourceForInteraction","NestedRelayEntryPointBuilderUtils"],(function(a,b,c,d,e,f,g){"use strict";a=c("JSResourceForInteraction")("CometStickerPickerPopoverRoot.react").__setRef("CometStickerPickerPopoverRoot.entrypoint");b={getPreloadProps:function(a){a=babelHelpers["extends"]({},a);a;return{entryPoints:{stickerPickerCardEntrypointReference:d("NestedRelayEntryPointBuilderUtils").NestedRelayEntryPoint({entryPoint:c("CometStickerPickerCard.entrypoint"),entryPointParams:a})}}},root:a};g["default"]=b}),98); __d("CometStickerPickerCardPopoverRootWithPresetProps",["CometStickerPickerPopoverRoot.entrypoint","JSResourceForInteraction","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=c("JSResourceForInteraction")("logStickersFlyoutHasOpened").__setRef("CometStickerPickerCardPopoverRootWithPresetProps");a={props:{onVisibilityChange:function(a){a===!0&&c("promiseDone")(h.load().then(function(a){a()}))}},resource:c("CometStickerPickerPopoverRoot.entrypoint")};g["default"]=a}),98); __d("CometGenericCommentDisableNotice.react",["CometGenericCommentDisableNotice_commentDisableNotice.graphql","CometRelay","CometTextWithEntitiesRelay.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e=a.commentDisableNotice,f=a.renderers;a=a.transforms;e=d("CometRelay").useFragment(h!==void 0?h:h=b("CometGenericCommentDisableNotice_commentDisableNotice.graphql"),e);e=e.notice_message;return e==null?null:j.jsx(c("CometTextWithEntitiesRelay.react"),{renderers:f,textWithEntities:e,transforms:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometUFIComposerActionButton.react",["CometTooltip.react","TetraIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a,b){var d=a.color;d=d===void 0?"secondary":d;var e=a.disabled;e=e===void 0?!1:e;var f=a.icon,g=a.label;a=babelHelpers.objectWithoutPropertiesLoose(a,["color","disabled","icon","label"]);return i.jsx(c("CometTooltip.react"),{position:"above",tooltip:g,children:i.jsx(c("TetraIcon.react"),babelHelpers["extends"]({},a,{"aria-label":g,color:d,disabled:e,icon:f,ref:b}))})}a.displayName=a.name+" [from "+f.id+"]";b=i.forwardRef(a);g["default"]=b}),98); __d("CometUFIComposerPluginsContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b=a.createContext({isComposerFocused:!1,openPopoverCount:0,openPopoverCountChange:function(){},setComposerFocusState:function(){}});g["default"]=b}),98); __d("CometUFIEntryPointPopoverComposerAction.react",["CometEntryPointPopoverTrigger.react","CometUFIComposerActionButton.react","CometUFIComposerPluginsContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useContext,l=b.useState;function a(a){var b=a.entryPointParams,d=a.fallback,e=a.highlightIcon,f=e===void 0?!1:e,g=a.icon;e=a.imperativeRef;var h=a.label,m=a.onVisibilityChange,n=a.otherProps,o=a.popoverEntryPoint;a=a.tracePolicy;var p=l(!1),q=p[0],r=p[1];p=k(c("CometUFIComposerPluginsContext"));var s=p.openPopoverCountChange;p=j(function(a){s(a),r(a),m&&m(a)},[m,s]);return i.jsx(c("CometEntryPointPopoverTrigger.react"),{align:"end",entryPointParams:b,fallback:d,imperativeRef:e,onVisibilityChange:p,otherProps:n,popoverEntryPoint:o,position:"above",preloadTrigger:"button",tracePolicy:a,children:function(a,b,d,e,j,k){return i.jsx(c("CometUFIComposerActionButton.react"),{color:q?"highlight":f?"highlight":void 0,icon:g,label:h,onHoverIn:e,onHoverOut:j,onPress:b,onPressIn:k,ref:a})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometUFILazyPopoverComposerAction.react",["CometLazyPopoverTrigger.react","CometUFIComposerActionButton.react","CometUFIComposerPluginsContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useContext,l=b.useState;function a(a){var b=a.fallback,d=a.icon,e=a.label,f=a.popoverProps,g=a.popoverResource,h=a.position;h=h===void 0?"above":h;a=a.tracePolicy;var m=l(!1),n=m[0],o=m[1];m=k(c("CometUFIComposerPluginsContext"));var p=m.openPopoverCountChange;m=j(function(a){o(a),p(a)},[p]);return i.jsx(c("CometLazyPopoverTrigger.react"),{align:"end",fallback:b,onVisibilityChange:m,popoverProps:f,popoverResource:g,position:h,preloadTrigger:"button",tracePolicy:a,children:function(a,b,f,g,h,j){return i.jsx(c("CometUFIComposerActionButton.react"),{color:n?"highlight":void 0,icon:d,label:e,onHoverIn:g,onHoverOut:h,onPress:b,onPressIn:j,ref:a})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("cometUFIComposerAssociateReplyWithParentPlugin",["cometUFIComposerAssociateReplyWithParentPlugin_plugin.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useLayoutEffect;h!==void 0?h:h=b("cometUFIComposerAssociateReplyWithParentPlugin_plugin.graphql");function k(a){a=a.pluginProps;var b=a.addCommandListener,c=a.setComposerState;j(function(){b(function(a){if(a.__type==="SetReplyAssociation"){var b=a.commentAssociatedWithReply;c(function(){return{commentAssociatedWithReply:b}});return"handled"}return"not-handled"})},[b,c]);return null}function a(a){return{above:null,action:null,below:k,id:"associate_reply",inside:null,props:{}}}g["default"]=a}),98); __d("CometUFIInsertAvatarStickerComposerActionForLexical.react",["fbt","ix","CometPopoverLoadingState.react","CometUFILazyPopoverComposerAction.react","JSResourceForInteraction","fbicon","gkx","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useMemo,m=c("JSResourceForInteraction")("CometUFIAvatarPopoverForLexical.react").__setRef("CometUFIInsertAvatarStickerComposerActionForLexical.react"),n={popoverFallback:{minHeight:"xmaeki8",$$css:!0}},o=h._("__JHASH__7qcLMMiNzAP__JHASH__");function a(a){var b=a.hasAvatar,e=a.pluginProps,f=a.postID;a=l(function(){return{hasAvatar:b,label:o,pluginProps:e,postID:f}},[b,e,f]);return k.jsx(c("CometUFILazyPopoverComposerAction.react"),{fallback:k.jsx(c("CometPopoverLoadingState.react"),{withArrow:!0,xstyle:n.popoverFallback}),icon:d("fbicon")._(i("1704745"),16),label:o,popoverProps:a,popoverResource:m,tracePolicy:c("gkx")("1217157")?"gemini.avatarpicker":"comet.avatarpicker"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("cometUFIComposerAvatarPlugin",["fbt","CometProgressIndicator.react","CometRelay","CometUFIComposerPreviewArea.react","CometUFIInsertAvatarStickerComposerActionForLexical.react","FBLogger","cometUFIComposerAvatarPlugin_plugin.graphql","cometUFIComposerAvatarPlugin_pluginData.graphql","react","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useEffect,o=c("requireDeferred")("CometUFIStickersComposerUpgradedPreviewContent.react").__setRef("cometUFIComposerAvatarPlugin");function p(a){return a.attachment&&a.attachment.__type==="AvatarSticker"?a.attachment.id:null}i!==void 0?i:i=b("cometUFIComposerAvatarPlugin_plugin.graphql");function q(a){a=a.pluginProps;var b=a.addAttachmentMapper,d=a.composerState,e=a.setComposerState;a=p(d);d=m(function(){e(function(){return{attachment:null}})},[e]);var f=m(function(a){e(function(){return{attachment:null}}),c("FBLogger")("UFIOutlinePlugin").catching(a).mustfix("Encountered an error while rendering a sticker.")},[e]),g=c("useDeferredModuleOnReady")(o);n(function(){return b(function(a){return a.__type==="AvatarSticker"?{media:{id:a.id}}:null})},[b]);var i=l.jsx(c("CometProgressIndicator.react"),{size:"small"});return l.jsx("div",{className:"x1iyjqo2",children:a!=null?l.jsx(c("CometUFIComposerPreviewArea.react"),{label:h._("__JHASH__jXDc8myLwdK__JHASH__"),onRemove:d,removeAnnouncement:h._("__JHASH__uFeYqds_zv-__JHASH__"),children:g==null?i:l.jsx(g,{loadingIndicatorElement:i,onError:f,stickerId:a})}):null})}q.displayName=q.name+" [from "+f.id+"]";function r(a){a=a.pluginProps;a=a.composerState;return!a||!a.attachment?c("CometUFIInsertAvatarStickerComposerActionForLexical.react"):null}function a(a){var c;a=a.fragmentKey;a=d("CometRelay").readInlineData(j!==void 0?j:j=b("cometUFIComposerAvatarPlugin_pluginData.graphql"),a);return{above:null,action:r,below:q,id:"avatars",inside:null,props:{hasAvatar:(c=a.has_avatar)!=null?c:!1,postID:a.feedback_id}}}g["default"]=a}),98); __d("CometWallConstants",[],(function(a,b,c,d,e,f){a=Object.freeze({COMMENT_MAX_LENGTH:8e3});f["default"]=a}),66); __d("cometUFIComposerCommentCharacterLimitPlugin",["errorCode","errorDesc","CometWallConstants","MLCCharacterLimitCountPlugin.react","TetraText.react","cometUFIComposerCommentCharacterLimitPlugin_plugin.graphql","errorSummary","lengthInUTF8Bytes","react","useCometAlertDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useEffect,o=e.useRef,p=e.useState;j!==void 0?j:j=b("cometUFIComposerCommentCharacterLimitPlugin_plugin.graphql");function q(a){a=a.pluginProps;var b=a.addCommitListener;a=a.editor;var d=c("useCometAlertDialog")(),e=o(0),f=p(0),g=f[0],h=f[1];f=m(function(a){a<=0?(e.current=-a,h(-a)):(e.current=0,h(0))},[]);n(function(){return b(function(){if(e.current>0){var a=1446011,b=c("errorSummary")._(function(a){return a._("__JHASH__-9OUlbx_liT__JHASH__")}),f=i._(function(a,b){return a._("__JHASH__4q0AqGCyxkY__JHASH__")},{});a!=null&&b!=null&&f!=null&&d({body:f,title:b});return"block-commit"}return"continue-commit"})},[b,d]);return l.jsxs(l.Fragment,{children:[l.jsx(c("MLCCharacterLimitCountPlugin.react"),{editor__DEPRECATED:a,limit:c("CometWallConstants").COMMENT_MAX_LENGTH,onChange:f,strlen:c("lengthInUTF8Bytes")}),g>0&&l.jsx(c("TetraText.react"),{color:"negative",testid:void 0,type:"body3",children:-g})]})}function a(){return{above:null,action:null,below:null,id:"comment_COMMENT_MAX_LENGTH",inside:q,props:{}}}g["default"]=a}),98); __d("CometUFIComposerEmojiPluginInner.react",["CometLexicalEmojiNode","react","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect,j=c("requireDeferred")("getUpgradedCometEmojiComposerHandler").__setRef("CometUFIComposerEmojiPluginInner.react");function a(a){var b=a.pluginProps.editor,e=c("useDeferredModuleOnReady")(j);i(function(){if(e!=null)return e(b,d("CometLexicalEmojiNode").UFI_EMOJI_SIZE)},[b,e]);return null}g["default"]=a}),98); __d("CometUFIInsertEmojiComposerActionForLexical.react",["fbt","ix","CometPopoverLoadingState.react","CometUFILazyPopoverComposerAction.react","JSResourceForInteraction","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useMemo,m=c("JSResourceForInteraction")("CometUFIEmojiPickerPopoverForLexical.react").__setRef("CometUFIInsertEmojiComposerActionForLexical.react"),n={popoverFallback:{minHeight:"x1or5b8i",$$css:!0}};function a(a){var b=a.pluginProps;a=l(function(){return{pluginProps:b}},[b]);return k.jsx(c("CometUFILazyPopoverComposerAction.react"),{fallback:k.jsx(c("CometPopoverLoadingState.react"),{withArrow:!0,xstyle:n.popoverFallback}),icon:d("fbicon")._(i("642536"),16),label:h._("__JHASH__LfwC8ZO2FKZ__JHASH__"),popoverProps:a,popoverResource:m})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("cometUFIComposerEmojiPlugin",["CometRelay","CometUFIComposerEmojiPluginInner.react","CometUFIInsertEmojiComposerActionForLexical.react","cometUFIComposerEmojiPlugin_plugin.graphql","cometUFIComposerEmojiPlugin_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerEmojiPlugin_plugin.graphql");function a(a){a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerEmojiPlugin_pluginData.graphql"),a);a={size:(a=a.emoji_size)!=null?a:16};return{above:null,action:function(){return c("CometUFIInsertEmojiComposerActionForLexical.react")},below:c("CometUFIComposerEmojiPluginInner.react"),id:"emoji",inside:null,props:a}}g["default"]=a}),98); __d("CometUFIEmoticonsComposerPluginInner.react",["react","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect,j=c("requireDeferred")("getUpgradedCometUFIEmoticonsComposerHandler").__setRef("CometUFIEmoticonsComposerPluginInner.react");function a(a){var b=a.pluginProps.editor,d=c("useDeferredModuleOnReady")(j);i(function(){if(d!=null)return d(b)},[b,d]);return null}g["default"]=a}),98); __d("cometUFIComposerEmoticonPlugin",["CometRelay","CometUFIEmoticonsComposerPluginInner.react","cometUFIComposerEmoticonPlugin_plugin.graphql","cometUFIComposerEmoticonPlugin_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerEmoticonPlugin_plugin.graphql");function a(a){a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerEmoticonPlugin_pluginData.graphql"),a);return{above:null,action:null,below:c("CometUFIEmoticonsComposerPluginInner.react"),id:"emoticons",inside:null,props:{size:(a=a.emoji_size)!=null?a:16}}}g["default"]=a}),98); __d("CometUFIGIFComposerPreviewArea.react",["fbt","CometImage.react","CometUFIComposerPreviewArea.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useCallback,l={previewImage:{borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",display:"x1lliihq",height:"xt7dq6l",maxWidth:"x193iq5w",$$css:!0}},m=80;function n(a){return a.attachment&&a.attachment.__type==="GIF"?a.attachment.data:null}function a(a){var b=a.composerState,d=a.removeAttachment;a=n(b);b=k(function(){d()},[d]);if(a==null)return null;var e=a.media.preview,f=e.height;e=e.width;f>m&&(e*=m/f,f=m);return j.jsx(c("CometUFIComposerPreviewArea.react"),{label:h._("__JHASH__13djPeJ1ib___JHASH__"),onRemove:b,removeAnnouncement:h._("__JHASH__4txhVGGxooX__JHASH__"),children:j.jsx(c("CometImage.react"),{height:f,src:a.media.preview.url,width:e,xstyle:l.previewImage})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useCometUFIGIFAttachmentMapper",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect;function a(a){i(function(){return a(function(a){return a.__type==="GIF"?{link:{external:{url:a.data.source.url}}}:null})},[a])}g["default"]=a}),98); __d("CometUFIGIFComposerPluginInner.react",["CometUFIGIFComposerPreviewArea.react","react","useCometUFIGIFAttachmentMapper"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.pluginProps;var b=a.addAttachmentMapper,d=a.composerState;a=a.removeAttachment;c("useCometUFIGIFAttachmentMapper")(b);return i.jsx("div",{className:"x1iyjqo2",children:i.jsx(c("CometUFIGIFComposerPreviewArea.react"),{composerState:d,removeAttachment:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometUFIInsertGIFComposerActionForLexical.react",["fbt","ix","CometPopoverLoadingState.react","CometUFILazyPopoverComposerAction.react","JSResourceForInteraction","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useMemo,m=c("JSResourceForInteraction")("CometUFIGIFPickerPopoverForLexical.react").__setRef("CometUFIInsertGIFComposerActionForLexical.react"),n={popoverFallback:{minHeight:"x1qq0ucp",$$css:!0}};function a(a){var b=a.pluginProps;a=l(function(){return{pluginProps:b}},[b]);return k.jsx(c("CometUFILazyPopoverComposerAction.react"),{fallback:k.jsx(c("CometPopoverLoadingState.react"),{withArrow:!0,xstyle:n.popoverFallback}),icon:d("fbicon")._(i("687980"),16),label:h._("__JHASH__0y5M5k0_laI__JHASH__"),popoverProps:a,popoverResource:m})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("cometUFIComposerGIFPlugin",["CometRelay","CometUFIGIFComposerPluginInner.react","CometUFIInsertGIFComposerActionForLexical.react","cometUFIComposerGIFPlugin_plugin.graphql","cometUFIComposerGIFPlugin_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerGIFPlugin_plugin.graphql");function j(a){a=a.pluginProps;a=a.composerState;return!a||!a.attachment?c("CometUFIInsertGIFComposerActionForLexical.react"):null}function a(a){a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerGIFPlugin_pluginData.graphql"),a);return{above:null,action:j,below:c("CometUFIGIFComposerPluginInner.react"),id:"gifs",inside:null,props:{ftentidentifier:a.feedback_id}}}g["default"]=a}),98); __d("CometUFIHashtagComposerPluginInner.react",["react","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect,j=c("requireDeferred")("getUpgradedCometHashtagComposerHandler").__setRef("CometUFIHashtagComposerPluginInner.react");function a(a){var b=a.pluginProps.editor,d=c("useDeferredModuleOnReady")(j);i(function(){if(d!=null)return d(b)},[b,d]);return null}g["default"]=a}),98); __d("cometUFIComposerHashtagPlugin",["CometUFIHashtagComposerPluginInner.react","cometUFIComposerHashtagPlugin_plugin.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;h!==void 0?h:h=b("cometUFIComposerHashtagPlugin_plugin.graphql");function a(a){return{above:null,action:null,below:c("CometUFIHashtagComposerPluginInner.react"),id:"hashtag",inside:null,props:{}}}g["default"]=a}),98); __d("CometUFIMediaUploadComposerActionForLexical.react",["fbt","ix","CometUFIActionsContext","CometUFIComposerActionButton.react","UFICommentFileInputAcceptValues","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;var l=b.useCallback,m=b.useContext,n=b.useEffect,o=b.useRef,p=b.useState;function a(a){var b=a.pluginProps,e=b.composerState.feedbackID;a=b.fileIsHoveringOverDropTarget;var f=b.mediaUploadError!==null,g=m(d("CometUFIActionsContext").CometUFIActionsContext),j=g.registerUFIActions,q=o(null);g=p(!1);var r=g[0],s=g[1],t=l(function(){var a;s(!0);(a=q.current)==null?void 0:a.click()},[s]);n(function(){if(e==null)return;var a=j(e,{uploadMedia:t});return function(){a&&a.dispose()}},[j,t,e]);return k.jsxs(k.Fragment,{children:[k.jsx(c("CometUFIComposerActionButton.react"),{color:r?"highlight":f&&!a?"negative":"secondary",icon:a?d("fbicon")._(i("568448"),16):d("fbicon")._(i("550098"),16),label:f?h._("__JHASH__CeSJQ_Q7OSE__JHASH__"):h._("__JHASH__acZ_gpYQ5VM__JHASH__"),onFocusIn:function(){return s(!1)},onPress:t}),k.jsx("input",{accept:c("UFICommentFileInputAcceptValues").both,className:"x1s85apg",onChange:function(a){var c=a.target.files.item(0);a=b.setComposerState;a(function(){return{attachment:{__type:"Media",reference:{__type:"File",file:c}}}});s(!1)},ref:q,type:"file"})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometUFIMediaUploadProgressBar.react",["CometProgressStepper.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a.className;var b=a.label;a=a.value;return i.jsx("div",{className:"x1iyjqo2 x1emribx x1xmf6yo x1e56ztr",children:i.jsx(c("CometProgressStepper.react"),{label:b,step:a,totalSteps:100})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometUFIMediaUploadPlaceholder.react",["fbt","CometUFIComposerPreviewArea.react","CometUFIMediaUploadProgressBar.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useCallback;function a(a){var b=a.setComposerState;a=k(function(){b(function(){return{attachment:null}})},[b]);return j.jsx("div",{className:"x1iyjqo2",children:j.jsx(c("CometUFIComposerPreviewArea.react"),{label:h._("__JHASH__M0Eks8PkfAq__JHASH__"),onRemove:a,removeAnnouncement:h._("__JHASH__81fyxam2HzN__JHASH__"),children:j.jsx(c("CometUFIMediaUploadProgressBar.react"),{label:h._("__JHASH__AoQAbcMN3Ju__JHASH__",[h._param("value","0")]),value:0})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("checkIfCometUFIComposerStateHasMediaAttachment",[],(function(a,b,c,d,e,f){"use strict";function a(a){return((a=a.attachment)==null?void 0:a.__type)==="Media"}f["default"]=a}),66); __d("useCometUFIMediaUploadDragAndDrop",["react","useCometLexicalFileDragAndDrop"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function j(a,b){a(function(){return{attachment:{__type:"Media",reference:{__type:"File",file:b}}}})}function a(a){var b=a.editor,d=a.isMimeTypeAcceptable,e=a.setComposerState,f=a.setFileIsHoveringOverDropTarget;a=i(function(a,b){f(b)},[f]);var g=i(function(a){a.length>0&&j(e,a[0])},[e]);c("useCometLexicalFileDragAndDrop")({editor:b,isMimeTypeAcceptable:d,onHover:a,onSubmit:g})}g["default"]=a}),98); __d("useCometUFIPreventCommitWhenUploadingFile",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect;function a(a){var b=a.addCommitListener,c=a.composerState;i(function(){return b(function(){var a=c.attachment;return(a==null?void 0:a.__type)==="Media"&&(a==null?void 0:a.reference.__type)!=="UploadedFile"?"block-commit":"continue-commit"})},[b,c.attachment])}g["default"]=a}),98); __d("cometUFIMediaUploadComposerPluginSupportedTypes",[],(function(a,b,c,d,e,f){"use strict";a=["photo","video"];b=a;f["default"]=b}),66); __d("useIsMimeTypeAcceptable",["cometIsMimeTypeForMedia","cometUFIMediaUploadComposerPluginSupportedTypes","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){return i(function(a){if(a.kind!=="file")return!1;for(var b=c("cometUFIMediaUploadComposerPluginSupportedTypes"),e=Array.isArray(b),f=0,b=e?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=b.length)break;g=b[f++]}else{f=b.next();if(f.done)break;g=f.value}g=g;switch(g){case"photo":if(d("cometIsMimeTypeForMedia").isMimeTypeForPhoto(a.type))return!0;break;case"video":if(d("cometIsMimeTypeForMedia").isMimeTypeForVideo(a.type))return!0;break;default:g}}return!1},[])}g["default"]=a}),98); __d("CometUFIMediaUploadComposerPluginInner.react",["CometPlaceholder.react","CometUFIMediaUploadPlaceholder.react","JSResourceForInteraction","checkIfCometUFIComposerStateHasMediaAttachment","lazyLoadComponent","react","useCometUFIMediaUploadDragAndDrop","useCometUFIPreventCommitWhenUploadingFile","useIsMimeTypeAcceptable"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("lazyLoadComponent")(c("JSResourceForInteraction")("CometUFIMediaUploadUpgradedPlugin.experimental.react").__setRef("CometUFIMediaUploadComposerPluginInner.react"));function a(a){var b=a.feedback,d=a.pluginProps;a=a.shouldCondenseVideoPreview;var e=d.addCommitListener,f=d.composerState,g=d.editor,h=d.setComposerState,k=d.setFileIsHoveringOverDropTarget,l=c("useIsMimeTypeAcceptable")(),m=c("checkIfCometUFIComposerStateHasMediaAttachment")(f);c("useCometUFIMediaUploadDragAndDrop")({editor:g,isMimeTypeAcceptable:l,setComposerState:h,setFileIsHoveringOverDropTarget:k});c("useCometUFIPreventCommitWhenUploadingFile")({addCommitListener:e,composerState:f});if(m)return i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("CometUFIMediaUploadPlaceholder.react"),{setComposerState:h}),children:i.jsx(j,{feedback:b,pluginProps:d,shouldCondenseVideoPreview:a})});else return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("cometUFIComposerMediaUploadPlugin",["CometRelay","CometUFIMediaUploadComposerActionForLexical.react","CometUFIMediaUploadComposerPluginInner.react","cometUFIComposerMediaUploadPlugin_plugin.graphql","cometUFIComposerMediaUploadPlugin_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerMediaUploadPlugin_plugin.graphql");function j(a){a=a.pluginProps;a=a.composerState;return a.attachment!=null?null:c("CometUFIMediaUploadComposerActionForLexical.react")}function a(a){a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerMediaUploadPlugin_pluginData.graphql"),a);var e={viewer_actor:a.viewer_actor};a=(a=a.should_condense_video_preview)!=null?a:!1;return{above:null,action:j,below:c("CometUFIMediaUploadComposerPluginInner.react"),id:"media_upload",inside:null,props:{feedback:e,shouldCondenseVideoPreview:a}}}g["default"]=a}),98); __d("cometUFIComposerMentionsPlugin",["CometRelay","cometUFIComposerMentionsPlugin_plugin.graphql","cometUFIComposerMentionsPlugin_pluginData.graphql","react","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react"),l=c("requireDeferred")("createUpgradedUFI2MentionsComposerPluginForLexical").__setRef("cometUFIComposerMentionsPlugin");h!==void 0?h:h=b("cometUFIComposerMentionsPlugin_plugin.graphql");function m(a){var b=a.config,d=a.pluginProps;a=a.upgradedPluginDeferred_FOR_DRAFTJS_AND_OUTLINE;a=c("useDeferredModuleOnReady")(a);if(a==null)return null;else return k.jsx(a,{config:b,pluginProps:d})}m.displayName=m.name+" [from "+f.id+"]";function a(a){a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerMentionsPlugin_pluginData.graphql"),a);var c=a.context_id;a=a.post_id;return{above:null,action:null,below:m,id:"mentions",inside:null,props:{config:{contextID:c,groupID:null,postID:a},upgradedPluginDeferred_FOR_DRAFTJS_AND_OUTLINE:l}}}g["default"]=a}),98); __d("cometUFIComposerPrefillMentionPlugin",["CometLexicalGenericEntityNode","FBLogger","Lexical","LexicalText","cometUFIComposerPrefillMentionPlugin_plugin.graphql","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useLayoutEffect,k=c("requireDeferred")("UFIODSLogger").__setRef("cometUFIComposerPrefillMentionPlugin");h!==void 0?h:h=b("cometUFIComposerPrefillMentionPlugin_plugin.graphql");function l(a){a=a.pluginProps;var b=a.addCommandListener,e=a.editor;a=a.setComposerState;j(function(){b(function(a){if(a.__type==="PrefillMention"){k.onReady(function(a){a.bump("prefill_mention_plugin.prefill_requested.with_implementation","relay")});e.update(function(){var b=a.mentionableEntity,f=d("LexicalText").$rootTextContent(),g=d("LexicalText").$isRootTextContentEmpty(e.isComposing()),h=!1;d("Lexical").$getRoot().getAllTextNodes().forEach(function(a){d("CometLexicalGenericEntityNode").$isCometLexicalGenericEntityNode(a)&&a.getTextContent()===f.trim()&&(h=!0)});if(!g&&!h)return;g=d("Lexical").$getRoot();var i=g.getFirstChild();if(d("Lexical").$isElementNode(i))i.clear();else if(i===null)i=d("Lexical").$createParagraphNode(),g.append(i);else{c("FBLogger")("UFILexicalComposer").mustfix("Prefill mentions plugin found a non-block first node. This should not happen.");return}g=m(b.getType());g=d("CometLexicalGenericEntityNode").$createCometLexicalGenericEntityNode({id:b.getUniqueID(),text:b.getTitle(),type:g,uri:b.getURI()});i.append(g);b=new(d("Lexical").TextNode)(" ");g.insertAfter(b);b.select()});return"handled"}return"not-handled"})},[b,e,a]);return null}function m(a){switch(a){case"Actor":case"Application":case"CMSObject":case"Doc":case"Event":case"FundraiserPersonForPerson":case"FundraiserPersonToCharity":case"GeneralGroupContextualProfile":case"Group":case"GroupAnonAuthorProfile":case"GroupCommerceProductItem":case"GroupRule":case"InstantArticle":case"KnowledgeNote":case"Menu":case"Note":case"Page":case"Photo":case"ProductItem":case"ReducedMessagingActor":case"Story":case"User":case"Video":case"VideoList":case"WorkKnowledgeCollection":return a;default:c("FBLogger")("UFILexicalPlugin").mustfix("PrefillMention unexpected command entity type "+a);return"Actor"}}function a(a){return{above:null,action:null,below:l,id:"prefill_mentions",inside:null,props:Object.freeze({})}}g["default"]=a}),98); __d("cometUFIComposerSetReplyClickedPlugin",["cometUFIComposerSetReplyClickedPlugin_plugin.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useLayoutEffect;h!==void 0?h:h=b("cometUFIComposerSetReplyClickedPlugin_plugin.graphql");function k(a){a=a.pluginProps;var b=a.addCommandListener,c=a.setComposerState;j(function(){b(function(a){if(a.__type==="SetReplyClicked"){c(function(){return{replyTargetClicked:!0}});return"handled"}return"not-handled"})},[b,c]);return null}function a(a){return{above:null,action:null,below:k,id:"set_reply_clicked",inside:null,props:{}}}g["default"]=a}),98); __d("getComposerStateSnapshotterForLexical",["CometLruCache","memoizeWithArgsWeak"],(function(a,b,c,d,e,f,g){"use strict";var h=d("CometLruCache").create(20);function i(a,b){return JSON.stringify({commentID:(b=b)!=null?b:"",feedbackID:a})}function a(a,b){var c=i(a,b);return{clear:function(){h["delete"](c)},get:function(){return h.get(c)},set:function(a){h.set(c,a)}}}b=c("memoizeWithArgsWeak")(a);g["default"]=b}),98); __d("cometUFIComposerStateSnapshotPlugin",["FBLogger","cometUFIComposerStateSnapshotPlugin_plugin.graphql","getComposerStateSnapshotterForLexical","react","useFocusedStoryDialogLaunchHandlers"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useCallback,k=e.useEffect,l=e.useRef;h!==void 0?h:h=b("cometUFIComposerStateSnapshotPlugin_plugin.graphql");function m(a){a=a.pluginProps;var b=a.addCommandListener,d=a.addCommitListener,e=a.composerState,f=a.editor,g=a.setComposerState;a=e.commentID;var h=e.feedbackID,i=c("getComposerStateSnapshotterForLexical")(h,(h=a)!=null?h:null),m=l(!1),n=l(!1),o=l(null);a=f.getEditorState();var p=l(a.isEmpty()?null:a);h=c("useFocusedStoryDialogLaunchHandlers")();var q=h[0],r=h[1],s=j(function(){var a=i.get();if(a!=null){var b=a.state;b.editor;var d=babelHelpers.objectWithoutPropertiesLoose(b,["editor"]);b=a.editorState;if(b.isEmpty()){c("FBLogger")("UFILexicalComposer").mustfix("Snapshot plugin attempted to restore an empty Outline EditorState");return}g(function(){return d});f.setEditorState(a.editorState)}},[f,g,i]),t=j(function(a){a===void 0&&(a=!1);var b=p.current;b!==null&&(f.getRootElement()==null||a)&&!n.current&&i.set({editorState:b,state:e})},[e,f,i]),u=j(function(){n.current=!0,window.clearTimeout(o.current),o.current=window.setTimeout(function(){n.current=!1},0)},[]);k(function(){m.current||(s(),m.current=!0);var a=q(function(){return t(!0)}),b=r(s);return function(){t(),a==null?void 0:a.dispose(),b==null?void 0:b.dispose()}},[s,t,r,q]);k(function(){return f.registerUpdateListener(function(a){a=a.editorState;f.getRootElement()!==null&&!a.isEmpty()&&(p.current=a)})},[f]);k(function(){return d(function(){u();i.clear();return"continue-commit"})},[i,d,u]);k(function(){return b(function(a){if(a.__type==="BeforeFinishEdit"){u();i.clear();return"handled"}return"not-handled"})},[b,u,i]);return null}function a(a){return{above:null,action:null,below:m,id:"statesnapshot",inside:null,props:Object.freeze({})}}g["default"]=a}),98); __d("CometUFIInsertStickerComposerActionForLexical.react",["fbt","ix","CometPopoverLoadingState.react","CometStickerPickerCardPopoverRootWithPresetProps","CometUFIEntryPointPopoverComposerAction.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useCallback;b=274;var m=Math.floor(b/4),n={popover:{height:"x1hie0zf",width:"xlro9se",$$css:!0},popoverFallback:{minHeight:"xny7s23",$$css:!0}},o=10;function a(a){var b=a.feedbackID;a=a.pluginProps;var e=a.setComposerState,f=a.editor;a=l(function(a){var b=a.stickerID;a=function(a){return babelHelpers["extends"]({},a,{attachment:{__type:"Sticker",id:b},updateSource:"InsertStickerButton"})};e(a);f.focus()},[e,f]);return k.jsx(c("CometUFIEntryPointPopoverComposerAction.react"),babelHelpers["extends"]({},c("CometStickerPickerCardPopoverRootWithPresetProps").props,{entryPointParams:{feedbackID:b,flyoutTagsCount:o,stickerInterface:"COMMENTS"},fallback:k.jsx(c("CometPopoverLoadingState.react"),{withArrow:!0,xstyle:n.popoverFallback}),icon:d("fbicon")._(i("687986"),16),label:h._("__JHASH__OBILv6wtRcM__JHASH__"),otherProps:{onSelect:a,stickerHeight:m,stickerWidth:m,xstyle:n.popover},popoverEntryPoint:c("CometStickerPickerCardPopoverRootWithPresetProps").resource}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometUFIStickersComposerPreviewArea.react",["fbt","CometProgressIndicator.react","CometUFIComposerPreviewArea.react","FBLogger","react","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useCallback,l=c("requireDeferred")("CometUFIStickersComposerUpgradedPreviewContent.react").__setRef("CometUFIStickersComposerPreviewArea.react");function m(a){return a.attachment&&a.attachment.__type==="Sticker"?a.attachment.id:null}function a(a){var b=a.composerState,d=a.removeAttachment;a=m(b);b=c("useDeferredModuleOnReady")(l);var e=k(function(){d()},[d]),f=k(function(a){d(),c("FBLogger")("ufi2").catching(a).mustfix("Encountered an error while rendering a sticker.")},[d]),g=j.jsx(c("CometProgressIndicator.react"),{size:"small"});return a==null?null:j.jsx(c("CometUFIComposerPreviewArea.react"),{label:h._("__JHASH__erNszf5-rZl__JHASH__"),onRemove:e,removeAnnouncement:h._("__JHASH__F2-tZW9Afnl__JHASH__"),testid:void 0,children:b==null?g:j.jsx(b,{loadingIndicatorElement:g,onError:f,stickerId:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useCometUFIStickersAttachmentMapper",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect;function a(a){i(function(){return a(function(a){return a.__type==="Sticker"?{media:{id:a.id}}:null})},[a])}g["default"]=a}),98); __d("CometUFIStickersComposerPluginInner.react",["CometUFIStickersComposerPreviewArea.react","react","useCometUFIStickersAttachmentMapper"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.pluginProps;var b=a.addAttachmentMapper,d=a.composerState;a=a.removeAttachment;c("useCometUFIStickersAttachmentMapper")(b);return i.jsx("div",{className:"x1iyjqo2",children:i.jsx(c("CometUFIStickersComposerPreviewArea.react"),{composerState:d,removeAttachment:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("cometUFIComposerStickersPlugin.next",["CometRelay","CometUFIInsertStickerComposerActionForLexical.react","CometUFIStickersComposerPluginInner.react","cometUFIComposerStickersPlugin_next_plugin.graphql","cometUFIComposerStickersPlugin_next_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerStickersPlugin_next_plugin.graphql");function j(a){a=a.pluginProps;a=a.composerState;return!a||!a.attachment?c("CometUFIInsertStickerComposerActionForLexical.react"):null}function a(a){var e=a.environment;a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerStickersPlugin_next_pluginData.graphql"),a);return a.feedback_id==null?null:{above:null,action:j,below:c("CometUFIStickersComposerPluginInner.react"),id:"stickers",inside:null,props:{environment:e,feedbackID:a.feedback_id,targetID:a.owning_profile_id}}}g["default"]=a}),98); __d("CometUFILiveTypingBroadcastComposerPluginInner.react",["react","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("requireDeferred")("CometUFILiveTypingBroadcastComposerUpgradedPlugin.react").__setRef("CometUFILiveTypingBroadcastComposerPluginInner.react");function a(a){var b=a.feedback,d=a.groupID,e=a.pluginProps;a=a.relayEnvironment;var f=c("useDeferredModuleOnReady")(j);return f!=null?i.jsx(f,{feedback:b,groupID:d,pluginProps:e,relayEnvironment:a}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometUFIWriteToComposerPluginInner",["CometUFIConversationGuideContext","Lexical","react","useCometUFILexicalEmptyListeners"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useContext,k=b.useLayoutEffect;function a(a){a=a.pluginProps;var b=a.addEmptyListener,e=a.editor,f=a.setComposerState;a=j(c("CometUFIConversationGuideContext"));var g=a.onComposerEmptyStateChange,h=a.setAddGiphyStickerToComposer,l=a.setAddStickerToComposer,m=a.setGetIsComposerEmpty,n=a.setWriteToComposer,o=a.unsetAddGiphyStickerToComposer,p=a.unsetAddStickerToComposer,q=a.unsetWriteToComposer,r=d("useCometUFILexicalEmptyListeners").useCometUFILexicalIsEmpty(b);k(function(){g(r)},[r,g]);var s=i(function(){return r},[r]);k(function(){m(function(){return s})},[s,m]);var t=i(function(a){e.focus(function(){e.update(function(){var b=d("Lexical").$getSelection();d("Lexical").$isRangeSelection(b)&&b.insertText(a)})})},[e]),u=i(function(a){var b=function(b){return babelHelpers["extends"]({},b,{attachment:{__type:"Sticker",id:a},updateSource:"ConversationGuide"})};f(b);e.focus()},[f,e]),v=i(function(a){var b={cursor:"",media:{preview:{durationMs:0,height:40,label:"",sizeBytes:0,url:a,width:40}},platformFBID:"",resultID:"",source:{durationMs:0,gifSource:"GIPHY",height:40,mimeType:"",sizeBytes:0,tags:[],title:"",url:a,width:40},type:0};a=function(a){return babelHelpers["extends"]({},a,{attachment:{__type:"GIF",data:b},updateSource:"ConversationGuide"})};f(a);e.focus()},[e,f]);k(function(){n(t);l(u);h(v);return function(){q(),p(),o()}},[n,q,t,l,u,p,h,o,v]);return null}g["default"]=a}),98); __d("cometUFIComposerLiveTypingBroadcastPlugin",["CometRelay","CometUFILiveTypingBroadcastComposerPluginInner.react","cometUFIComposerLiveTypingBroadcastPlugin_plugin.graphql","cometUFIComposerLiveTypingBroadcastPlugin_pluginData.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;h!==void 0?h:h=b("cometUFIComposerLiveTypingBroadcastPlugin_plugin.graphql");function a(a){var e=a.environment;a=a.fragmentKey;a=d("CometRelay").readInlineData(i!==void 0?i:i=b("cometUFIComposerLiveTypingBroadcastPlugin_pluginData.graphql"),a);a={id:a.feedback_id,viewer_actor:a.viewer_actor};return{above:null,action:null,below:c("CometUFILiveTypingBroadcastComposerPluginInner.react"),id:"typing_broadcast",inside:null,props:{feedback:a,relayEnvironment:e}}}g["default"]=a}),98); __d("cometUFIComposerWriteToComposerPlugin",["CometUFIWriteToComposerPluginInner","cometUFIComposerWriteToComposerPlugin_plugin.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;h!==void 0?h:h=b("cometUFIComposerWriteToComposerPlugin_plugin.graphql");function a(a){return{above:null,action:null,below:null,id:"write_to_composer",inside:c("CometUFIWriteToComposerPluginInner"),props:{}}}g["default"]=a}),98); __d("MLCInstrumentationPluginDeferred__INTERNAL.react",["react","requireDeferred","useDeferredModuleOnReady"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("requireDeferred")("MLCInstrumentationPlugin__INTERNAL.react").__setRef("MLCInstrumentationPluginDeferred__INTERNAL.react");function a(a){var b=c("useDeferredModuleOnReady")(j);return b==null?null:i.jsx(b,babelHelpers["extends"]({},a))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("mlcErrorHandler__INTERNAL",["Lexical"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,c){var d=document.activeElement,e=null;d!=null&&(e={activeElement:d.nodeName,rootSelected:d===b.getRootElement()});d=window.event;var f=null;d!=null&&(f={altKey:d.altKey,ctrlKey:d.ctrlKey,data:d.data,inputType:d.inputType,isComposing:d.isComposing,keyCode:d.keyCode,metaKey:d.metaKey,shiftKey:d.shiftKey,type:d.type});d=null;try{d=h(b.getEditorState())}catch(a){}c(JSON.stringify({activeElement:e,editorState:d,error:a,event:f}))}function h(a){return{nodes:i(a),selection:k(a)}}function i(a){var b=[],c=["key","type","detail","format","mode","children","parent","first","last","size","next","prev"];for(var a=a._nodeMap,d=Array.isArray(a),e=0,a=d?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;f[0];f=f[1];var g={};for(var h=0;h=_iterator.length)break;_ref2=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref2=_i.value;}var _ref3=_ref2;var Va=_ref3[0];var ka=_ref3[1];if(E(ka))for(f=ka.getChildrenKeys(),g=Va.firstChild,h=0;h=_iterator2.length)break;_ref5=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref5=_i2.value;}var _ref6=_ref5;var d=_ref6[1];d.markDirty();}}},null===a._pendingEditorState?{tag:"history-merge"}:void 0);}function J(){return ac()._nodeMap.get("root");}function Ab(a){G();var b=ac();null!==a&&(a.dirty=!0,a.setCachedNodes(null));b._selection=a;} function ic(a){var b=F(),c;a:{for(c=a;null!=c;){var d=c["__lexicalKey_"+b._key];if(void 0!==d){c=d;break a;}c=Vb(c);}c=null;}return null===c?(b=b.getRootElement(),a===b?I("root"):null):I(c);}function jc(a){return /[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(a);}function kc(a){var b=[];for(;null!==a;){b.push(a),a=a._parentEditor;}return b;}function lc(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);} function mc(a,b,c){b=xb(b._window);if(null!==b){var d=b.anchorNode,_b=b,e=_b.anchorOffset,f=_b.focusOffset;if(null!==d&&(b=3===d.nodeType?d.nodeValue:null,d=wb(d),null!==b&&B(d))){if(b===db&&c){var g=c.length;b=c;f=e=g;}null!==b&&yb(d,b,e,f,a);}}} function yb(a,b,c,d,e){var f=a;if(f.isAttached()&&(e||!f.isDirty())){var m=f.isComposing(),n=b;(m||e)&&b[b.length-1]===db&&(n=b.slice(0,-1));b=f.getTextContent();if(e||n!==b)if(""===n){if(H(null),Za||$a||cb)f.remove();else{var p=F();setTimeout(function(){p.update(function(){f.isAttached()&&f.remove();});},20);}}else{e=f.getParent();b=nc();var g=f.getTextContentSize(),h=dc(),k=f.getKey();f.isToken()||null!==h&&k===h&&!m||C(b)&&(null!==e&&!e.canInsertTextBefore()&&0===b.anchor.offset||b.anchor.key===a.__key&&0===b.anchor.offset&& !f.canInsertTextBefore()||b.focus.key===a.__key&&b.focus.offset===g&&!f.canInsertTextAfter())?f.markDirty():(a=v(),C(a)&&null!==c&&null!==d&&(a.setTextNodeRange(f,c,f,d),f.isSegmented()&&(c=f.getTextContent(),c=K(c),f.replace(c),f=c)),f.setTextContent(n));}}} function oc(a,b){if(b.isSegmented())return!0;if(!a.isCollapsed())return!1;a=a.anchor.offset;var c=b.getParentOrThrow(),d=b.isToken();return 0===a?((a=!b.canInsertTextBefore()||!c.canInsertTextBefore()||d)||(b=b.getPreviousSibling(),a=(B(b)||E(b)&&b.isInline())&&!b.canInsertTextAfter()),a):a===b.getTextContentSize()?!b.canInsertTextAfter()||!c.canInsertTextAfter()||d:!1;} function pc(a,b){void 0===a.__lexicalClassNameCache&&(a.__lexicalClassNameCache={});var c=a.__lexicalClassNameCache,d=c[b];if(void 0!==d)return d;a=a[b];return"string"===typeof a?(a=a.split(" "),c[b]=a):a;}function qc(a,b,c,d,e){0!==c.size&&(c=d.__type,d=d.__key,b=b.get(c),void 0===b&&r(33,c),c=b.klass,b=a.get(c),void 0===b&&(b=new Map(),a.set(c,b)),a=b.get(d),c="destroyed"===a&&"created"===e,(void 0===a||c)&&b.set(d,c?"updated":e));} function rc(a,b,c){var d=a.getParent(),e=c;null!==d&&(b&&0===c?(e=a.getIndexWithinParent(),a=d):b||c!==a.getChildrenSize()||(e=a.getIndexWithinParent()+1,a=d));return a.getChildAtIndex(b?e-1:e);}function sc(a,b){var c=a.offset;if("element"===a.type)return a=a.getNode(),rc(a,b,c);a=a.getNode();return b&&0===c||!b&&c===a.getTextContentSize()?(c=b?a.getPreviousSibling():a.getNextSibling(),null===c?rc(a.getParentOrThrow(),b,a.getIndexWithinParent()+(b?0:1)):c):null;} function Bb(a){a=(a=Eb(a).event)&&a.inputType;return"insertFromPaste"===a||"insertFromPasteAsQuotation"===a;}function tc(a){return!L(a)&&!a.isLastChild()&&!a.isInline();}function uc(a,b){a=a._keyToDOMMap.get(b);void 0===a&&r(75,b);return a;}function Vb(a){a=a.assignedSlot||a.parentElement;return null!==a&&11===a.nodeType?a.host:a;}function vc(a,b){for(a=a.getParent();null!==a;){if(a.is(b))return!0;a=a.getParent();}return!1;}function Eb(a){a=a._window;null===a&&r(78);return a;} function wc(a){for(a=a.getParentOrThrow();null!==a&&!xc(a);){a=a.getParentOrThrow();}return a;}function xc(a){return L(a)||E(a)&&a.isShadowRoot();}function yc(a){a=a.constructor.clone(a);Zb(a,null);return a;}function zc(a){var b=F();var c=a.constructor.getType();b=b._nodes.get(c);void 0===b&&r(97);b=b.replace;return null!==b?(b=b(a),b instanceof a.constructor||r(98),b):a;}function Ac(a,b){a=a.getParent();!L(a)||E(b)||z(b)||r(99);}function Bc(a){return(z(a)||E(a)&&!a.canBeEmpty())&&!a.isInline();} function Cc(a,b,c){c.style.removeProperty("caret-color");b._blockCursorElement=null;b=a.parentElement;null!==b&&b.removeChild(a);}function xb(a){return Ua?(a||window).getSelection():null;}function Dc(a,b){for(;a!==J()&&null!=a;){if(b(a))return a;a=a.getParent();}return null;}function Ec(a){var b=[],c=[a];for(;0=_iterator3.length)break;_ref8=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref8=_i3.value;}var _ref10=_ref8;var f=_ref10[0];var g=b.get(f);void 0===g||g.isAttached()||(E(g)&&Jc(g,f,a,b,e,d),a.has(f)||d["delete"](f),e.push(f));}for(var _i4=0;_i4=_iterator4.length)break;_ref9=_iterator4[_i5++];}else{_i5=_iterator4.next();if(_i5.done)break;_ref9=_i5.value;}var _f2=_ref9;d=b.get(_f2),void 0===d||d.isAttached()||(a.has(_f2)||c["delete"](_f2),b["delete"](_f2));}}var M="",N="",Lc="",Mc,O,Nc,Oc=!1,Pc=!1,Qc,Rc=null,Sc,Tc,Uc,Vc,Wc,Xc; function Yc(a,b){var c=Uc.get(a);if(null!==b){var d=Zc(a);d.parentNode===b&&b.removeChild(d);}Vc.has(a)||O._keyToDOMMap["delete"](a);E(c)&&(a=id(c,Uc),jd(a,0,a.length-1,null));void 0!==c&&qc(Xc,Nc,Qc,c,"destroyed");}function jd(a,b,c,d){for(;b<=c;++b){var e=a[b];void 0!==e&&Yc(e,d);}}function kd(a,b){a.setProperty("text-align",b);} function ld(a,b){var c=Mc.theme.indent;if("string"===typeof c){var d=a.classList.contains(c);0b&&d&&a.classList.remove(c);}c=getComputedStyle(a).getPropertyValue("--lexical-indent-base-value")||"40px";a.style.setProperty("padding-inline-start",0===b?"":"calc("+b+" * "+c+")");}function md(a,b){a=a.style;0===b?kd(a,""):1===b?kd(a,"left"):2===b?kd(a,"center"):3===b?kd(a,"right"):4===b?kd(a,"justify"):5===b?kd(a,"start"):6===b&&kd(a,"end");} function nd(a,b,c){var d=Vc.get(a);void 0===d&&r(60);var e=d.createDOM(Mc,O);var f=O._keyToDOMMap;e["__lexicalKey_"+O._key]=a;f.set(a,e);B(d)?e.setAttribute("data-lexical-text","true"):z(d)&&e.setAttribute("data-lexical-decorator","true");if(E(d)){a=d.__indent;f=d.__size;0!==a&&ld(e,a);if(0!==f){--f;a=id(d,Vc);var g=N;N="";od(a,d,0,f,e,null);pd(d,e);N=g;}a=d.__format;0!==a&&md(e,a);d.isInline()||qd(null,d,e);tc(d)&&(M+="\n\n",Lc+="\n\n");}else f=d.getTextContent(),z(d)?(g=d.decorate(O,Mc),null!==g&& rd(a,g),e.contentEditable="false"):B(d)&&(d.isDirectionless()||(N+=f)),M+=f,Lc+=f;null!==b&&(null!=c?b.insertBefore(e,c):(c=b.__lexicalLineBreak,null!=c?b.insertBefore(e,c):b.appendChild(e)));qc(Xc,Nc,Qc,d,"created");return e;}function od(a,b,c,d,e,f){var g=M;for(M="";c<=d;++c){nd(a[c],e,f);}tc(b)&&(M+="\n\n");e.__lexicalTextContent=M;M=g+M;}function sd(a,b){a=b.get(a);return Hc(a)||z(a)&&a.isInline();} function qd(a,b,c){a=null!==a&&(0===a.__size||sd(a.__last,Uc));b=0===b.__size||sd(b.__last,Vc);a?b||(b=c.__lexicalLineBreak,null!=b&&c.removeChild(b),c.__lexicalLineBreak=null):b&&(b=document.createElement("br"),c.__lexicalLineBreak=b,c.appendChild(b));} function pd(a,b){var c=b.__lexicalDir;if(b.__lexicalDirTextContent!==N||c!==Rc){var f=""===N;if(f)var d=Rc;else d=N,d=fb.test(d)?"rtl":gb.test(d)?"ltr":null;if(d!==c){var g=b.classList,h=Mc.theme;var e=null!==c?h[c]:void 0;var k=null!==d?h[d]:void 0;void 0!==e&&("string"===typeof e&&(e=e.split(" "),e=h[c]=e),g.remove.apply(g,e));null===d||f&&"ltr"===d?b.removeAttribute("dir"):(void 0!==k&&("string"===typeof k&&(c=k.split(" "),k=h[d]=c),void 0!==k&&g.add.apply(g,k)),b.dir=d);Pc||(a.getWritable().__dir=d);}Rc= d;b.__lexicalDirTextContent=N;b.__lexicalDir=d;}}function id(a,b){var c=[];for(a=a.__first;null!==a;){var d=b.get(a);void 0===d&&r(101);c.push(a);a=d.__next;}return c;} function td(a,b){var c=Uc.get(a),d=Vc.get(a);void 0!==c&&void 0!==d||r(61);var e=Oc||Tc.has(a)||Sc.has(a);var f=uc(O,a);if(c===d&&!e)return E(c)?(d=f.__lexicalTextContent,void 0!==d&&(M+=d,Lc+=d),d=f.__lexicalDirTextContent,void 0!==d&&(N+=d)):(d=c.getTextContent(),B(c)&&!c.isDirectionless()&&(N+=d),Lc+=d,M+=d),f;c!==d&&e&&qc(Xc,Nc,Qc,d,"updated");if(d.updateDOM(c,f,Mc))return d=nd(a,null,null),null===b&&r(62),b.replaceChild(d,f),Yc(a,null),d;if(E(c)&&E(d)){a=d.__indent;a!==c.__indent&&ld(f,a);a= d.__format;a!==c.__format&&md(f,a);if(e){a=N;N="";e=M;var g=c.__size,h=d.__size;M="";if(1===g&&1===h){var k=c.__first;b=d.__first;if(k===b)td(k,f);else{var m=Zc(k);b=nd(b,null,null);f.replaceChild(b,m);Yc(k,null);}}else{b=id(c,Uc);var n=id(d,Vc);if(0===g)0!==h&&od(n,d,0,h-1,f,null);else if(0===h)0!==g&&(k=null==f.__lexicalLineBreak,jd(b,0,g-1,k?null:f),k&&(f.textContent=""));else{var p=b;b=n;n=g-1;g=h-1;var q=f.firstChild,u=0;for(h=0;u<=n&&h<=g;){var l=p[u];var x=b[h];if(l===x)q=ud(td(x,f)),u++,h++;else {void 0===k&&(k=new Set(p));void 0===m&&(m=new Set(b));var y=m.has(l),A=k.has(x);y?(A?(l=uc(O,x),l===q?q=ud(td(x,f)):(null!=q?f.insertBefore(l,q):f.appendChild(l),td(x,f)),u++):nd(x,f,q),h++):(q=ud(Zc(l)),Yc(l,f),u++);}}k=u>n;m=h>g;k&&!m?(k=b[g+1],k=void 0===k?null:O.getElementByKey(k),od(b,d,h,g,f,k)):m&&!k&&jd(p,u,n,f);}}tc(d)&&(M+="\n\n");f.__lexicalTextContent=M;M=e+M;pd(d,f);N=a;L(d)||d.isInline()||qd(c,d,f);}tc(d)&&(M+="\n\n",Lc+="\n\n");}else c=d.getTextContent(),z(d)?(e=d.decorate(O,Mc),null!== e&&rd(a,e)):B(d)&&!d.isDirectionless()&&(N+=c),M+=c,Lc+=c;!Pc&&L(d)&&d.__cachedText!==Lc&&(d.getWritable().__cachedText=Lc);return f;}function rd(a,b){var c=O._pendingDecorators,d=O._decorators;if(null===c){if(d[a]===b)return;c=fc(O);}c[a]=b;}function ud(a){a=a.nextSibling;null!==a&&a===O._blockCursorElement&&(a=a.nextSibling);return a;}function Zc(a){var b=Wc.get(a);void 0===b&&r(75,a);return b;} var vd=Object.freeze({}),Cd=[["keydown",wd],["pointerdown",xd],["compositionstart",yd],["compositionend",zd],["input",Ad],["click",Bd],["cut",vd],["copy",vd],["dragstart",vd],["dragover",vd],["dragend",vd],["paste",vd],["focus",vd],["blur",vd],["drop",vd]];Ya&&Cd.push(["beforeinput",function(a,b){return Dd(a,b);}]);var Ed=0,Fd=0,Gd=0,Hd=null,Id=0,Jd=!1,Kd=!1,Ld=!1,Md=!1,Nd=[0,"",0,"root",0]; function Od(a,b,c,d,e){var f=a.anchor,g=a.focus,h=f.getNode();var k=F();var m=xb(k._window),n=null!==m?m.anchorNode:null,p=f.key;k=k.getElementByKey(p);var l=c.length;return p!==g.key||!B(h)||(!e&&(!Ya||Gdl||jc(c))&&f.offset!==g.offset&&!h.isComposing()||Wb(h)||h.isDirty()&&1=e.anchor.getNode().getTextContent().length&&(a.preventDefault(),R(b,da,!0));}else a.preventDefault(),R(b,da,!0);return;}}if(C(e)){f=a.data;null!==Hd&&mc(!1,b,Hd);e.dirty&&null===Hd||!e.isCollapsed()||L(e.anchor.getNode())||null===d||e.applyDOMRange(d);Hd=null;var g=e.focus,h=e.anchor.getNode();g=g.getNode();if("insertText"===c||"insertTranspose"===c)"\n"===f?(a.preventDefault(),R(b,ea,!1)):"\n\n"===f?(a.preventDefault(),R(b,fa,void 0)):null==f&&a.dataTransfer?(f=a.dataTransfer.getData("text/plain"), a.preventDefault(),e.insertRawText(f)):null!=f&&Od(e,d,f,a.timeStamp,!0)?(a.preventDefault(),R(b,la,f)):Hd=f,Gd=a.timeStamp;else switch(a.preventDefault(),c){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":R(b,la,a);break;case"insertFromComposition":H(null);R(b,la,a);break;case"insertLineBreak":H(null);R(b,ea,!1);break;case"insertParagraph":H(null);Ld&&!$a?(Ld=!1,R(b,ea,!1)):R(b,fa,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":R(b,ma,a);break;case"deleteByComposition":Td(h, g)&&R(b,na,a);break;case"deleteByDrag":case"deleteByCut":R(b,na,a);break;case"deleteContent":R(b,da,!1);break;case"deleteWordBackward":R(b,pa,!0);break;case"deleteWordForward":R(b,pa,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":R(b,qa,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":R(b,qa,!1);break;case"formatStrikeThrough":R(b,ra,"strikethrough");break;case"formatBold":R(b,ra,"bold");break;case"formatItalic":R(b,ra, "italic");break;case"formatUnderline":R(b,ra,"underline");break;case"historyUndo":R(b,sa,void 0);break;case"historyRedo":R(b,ta,void 0);}}});} function Ad(a,b){a.stopPropagation();w(b,function(){var c=v(),d=a.data,e=Sd(a);if(null!=d&&C(c)&&Od(c,e,d,a.timeStamp,!1)){Md&&(Ud(b,d),Md=!1);var f=c.anchor,g=f.getNode();e=xb(b._window);if(null===e)return;var h=f.offset;if(f=Ya&&!c.isCollapsed()&&B(g)&&null!==e.anchorNode)g=g.getTextContent().slice(0,h)+d+g.getTextContent().slice(h+c.focus.offset),e=e.anchorNode,f=g===(3===e.nodeType?e.nodeValue:null);f||R(b,la,d);d=d.length;Xa&&1=_iterator5.length)break;_ref11=_iterator5[_i6++];}else{_i6=_iterator5.next();if(_i6.done)break;_ref11=_i6.value;}var e=_ref11;a=a.insertAfter(e);}}var he=function(_ce){babelHelpers.inheritsLoose(he,_ce);he.getType=function getType(){return"linebreak";};he.clone=function clone(a){return new he(a.__key);};function he(a){return _ce.call(this,a)||this;}var _proto2=he.prototype;_proto2.getTextContent=function getTextContent(){return"\n";};_proto2.createDOM=function createDOM(){return document.createElement("br");};_proto2.updateDOM=function updateDOM(){return!1;};he.importDOM=function importDOM(){return{br:function br(a){var b=a.parentElement,c,d;return null!==b&&((c=b.firstChild)===a||c.nextSibling===a&&3===c.nodeType&&null!==(c.textContent||"").match(/^( |\t|\r?\n)+$/))&&((d=b.lastChild)===a||d.previousSibling===a&&3===d.nodeType&&null!==(d.textContent||"").match(/^( |\t|\r?\n)+$/))? null:{conversion:ie,priority:0};}};};he.importJSON=function importJSON(){return je();};_proto2.exportJSON=function exportJSON(){return{type:"linebreak",version:1};};return he;}(ce);function ie(){return{node:je()};}function je(){return zc(new he());}function Hc(a){return a instanceof he;}function ke(a,b){return b&16?"code":b&128?"mark":b&32?"sub":b&64?"sup":null;}function le(a,b){return b&1?"strong":b&2?"em":"span";} function me(a,b,c,d,e){var _a,_a2,_a3;a=d.classList;d=pc(e,"base");void 0!==d&&(_a=a).add.apply(_a,d);d=pc(e,"underlineStrikethrough");var f=!1,g=b&8&&b&4;var h=c&8&&c&4;void 0!==d&&(h?(f=!0,g||(_a2=a).add.apply(_a2,d)):g&&(_a3=a).remove.apply(_a3,d));for(var k in hb){var _a4,_a5,_a6;h=hb[k],d=pc(e,k),void 0!==d&&(c&h?!f||"underline"!==k&&"strikethrough"!==k?(0===(b&h)||g&&"underline"===k||"strikethrough"===k)&&(_a4=a).add.apply(_a4,d):b&h&&(_a5=a).remove.apply(_a5,d):b&h&&(_a6=a).remove.apply(_a6,d));}} function ne(a,b,c){var d=b.firstChild;c=c.isComposing();a+=c?db:"";if(null==d)b.textContent=a;else if(b=d.nodeValue,b!==a)if(c||Xa){c=b.length;var e=a.length,f=0,g=0;for(;fh&&(h=g+h,0>h&&(h=0));var k=v();d&&C(k)&&(a+=g,k.setTextNodeRange(e,a,e,a));b=f.slice(0,h)+c+f.slice(h+b);e.__text=b;return e;};_proto3.canInsertTextBefore=function canInsertTextBefore(){return!0;};_proto3.canInsertTextAfter=function canInsertTextAfter(){return!0;};_proto3.splitText=function splitText(){for(var _len=arguments.length,a=new Array(_len),_key=0;_key<_len;_key++){a[_key]=arguments[_key];}G();var b=this.getLatest(),c=b.getTextContent(),d=b.__key,e=dc(),f=new Set(a); a=[];var g=c.length,h="";for(var k=0;km&&y.offset<=q&&(y.key=x,y.offset-=m,b.dirty=!0);A.key===d&&"text"===A.type&&A.offset>m&&A.offset<=q&&(A.key=x,A.offset-=m,b.dirty=!0);}e===d&&H(x);m=q;h.push(l);}d=this.getPreviousSibling();e=this.getNextSibling();null!==d&&cc(d);null!==e&&cc(e);d=c.getWritable();e=this.getIndexWithinParent();g?(d.splice(e,0,h),this.remove()):d.splice(e,1,h);C(b)&&be(b,c,e,f-1);return h;};_proto3.mergeWithSibling=function mergeWithSibling(a){var b=a===this.getPreviousSibling();b||a===this.getNextSibling()|| r(50);var c=this.__key;var d=a.__key,e=this.__text,f=e.length;dc()===d&&H(c);var g=v();if(C(g)){var h=g.anchor,k=g.focus;null!==h&&h.key===d&&(ve(h,b,c,a,f),g.dirty=!0);null!==k&&k.key===d&&(ve(k,b,c,a,f),g.dirty=!0);}c=a.__text;this.setTextContent(b?c+e:e+c);b=this.getWritable();a.remove();return b;};_proto3.isTextEntity=function isTextEntity(){return!1;};return pe;}(ce); function te(a){var b="700"===a.style.fontWeight,c="line-through"===a.style.textDecoration,d="italic"===a.style.fontStyle,e="underline"===a.style.textDecoration,f=a.style.verticalAlign;return{forChild:function forChild(g){if(!B(g))return g;b&&g.toggleFormat("bold");c&&g.toggleFormat("strikethrough");d&&g.toggleFormat("italic");e&&g.toggleFormat("underline");"sub"===f&&g.toggleFormat("subscript");"super"===f&&g.toggleFormat("superscript");return g;},node:null};} function re(a){var b="normal"===a.style.fontWeight;return{forChild:function forChild(c){B(c)&&!b&&c.toggleFormat("bold");return c;},node:null};}var we=new WeakMap(); function qe(a){null===a.parentElement&&r(129);for(var b=a.textContent||"",c,d=a.parentNode,e=[a];null!==d&&void 0===(c=we.get(d))&&!("PRE"===d.nodeName||1===d.nodeType&&void 0!==d.style&&void 0!==d.style.whiteSpace&&d.style.whiteSpace.startsWith("pre"));){e.push(d),d=d.parentNode;}c=void 0===c?d:c;for(d=0;db&&(d=b);else if(!E(b)){var f=b.getNextSibling();if(B(f))c=f.__key,d=0,e="text";else if(f=b.getParent())c=f.__key,d=b.getIndexWithinParent()+1;}a.set(c,d,e);}function ee(a,b){if(E(b)){var c=b.getLastDescendant();E(c)||B(c)?Ee(a,c):Ee(a,b);}else Ee(a,b);} function Fe(a,b,c,d){var e=a.getNode(),f=e.getChildAtIndex(a.offset),g=K(),h=L(e)?fe().append(g):g;g.setFormat(c);g.setStyle(d);null===f?e.append(h):f.insertBefore(h);a.is(b)&&b.set(g.__key,0,"text");a.set(g.__key,0,"text");}function Ge(a,b,c,d){a.key=b;a.offset=c;a.type=d;}var Qe=function(){function Qe(a,b){this.anchor=a;this.focus=b;a._selection=this;b._selection=this;this._cachedNodes=null;this.dirty=!1;}var _proto6=Qe.prototype;_proto6.getCachedNodes=function getCachedNodes(){return this._cachedNodes;};_proto6.setCachedNodes=function setCachedNodes(a){this._cachedNodes=a;};_proto6.is=function is(a){return de(a)?this.anchor.is(a.anchor)&&this.focus.is(a.focus):!1;};_proto6.isCollapsed=function isCollapsed(){return!1;};_proto6.extract=function extract(){return this.getNodes();};_proto6.isBackward=function isBackward(){return this.focus.isBefore(this.anchor);};_proto6.getCharacterOffsets=function getCharacterOffsets(){return Re(this);};return Qe;}();var Se=function(){function Se(a){this.dirty=!1;this._nodes=a;this._cachedNodes=null;}var _proto7=Se.prototype;_proto7.getCachedNodes=function getCachedNodes(){return this._cachedNodes;};_proto7.setCachedNodes=function setCachedNodes(a){this._cachedNodes=a;};_proto7.is=function is(a){if(!Vd(a))return!1;var b=this._nodes,c=a._nodes;return b.size===c.size&&Array.from(b).every(function(d){return c.has(d);});};_proto7.add=function add(a){this.dirty=!0;this._nodes.add(a);this._cachedNodes=null;};_proto7["delete"]=function _delete(a){this.dirty=!0;this._nodes["delete"](a);this._cachedNodes=null;};_proto7.clear=function clear(){this.dirty=!0;this._nodes.clear();this._cachedNodes=null;};_proto7.has=function has(a){return this._nodes.has(a);};_proto7.clone=function clone(){return new Se(new Set(this._nodes));};_proto7.extract=function extract(){return this.getNodes();};_proto7.insertRawText=function insertRawText(){};_proto7.insertText=function insertText(){};_proto7.insertNodes=function insertNodes(a){var b= this.getNodes(),c=b.length;var d=b[c-1];if(B(d))d=d.select();else{var e=d.getIndexWithinParent()+1;d=d.getParentOrThrow().select(e,e);}d.insertNodes(a);for(a=0;a=_iterator6.length)break;_ref12=_iterator6[_i7++];}else{_i7=_iterator6.next();if(_i7.done)break;_ref12=_i7.value;}var c=_ref12;b=I(c),null!==b&&a.push(b);}ec()||(this._cachedNodes=a);return a;};_proto7.getTextContent=function getTextContent(){var a=this.getNodes(),b="";for(var c=0;ce||p>l;){if(ke)for(q=l-d,e+=1,u=0;u<=q;u++){a(f[d+u][e]);}if(p>l)for(q=e-c,l+=1,u=0;u<=q;u++){a(f[l][c+u]);}}b=[b];c=null;for(d=m;d<=p;d++){for(e=k;e<=n;e++){var _f$d$e,_b2;(_f$d$e=f[d][e],l=_f$d$e.cell,_f$d$e),q=l.getParent(),Ye(q)||r(107),q!==c&&b.push(q),(_b2=b).push.apply(_b2,[l].concat(Ec(l))),c=q;}}ec()||(this._cachedNodes=b);return b;};_proto8.getTextContent=function getTextContent(){var a=this.getNodes(),b="";for(var c=0;c=_iterator7.length)break;_ref13=_iterator7[_i8++];}else{_i8=_iterator7.next();if(_i8.done)break;_ref13=_i8.value;}var d=_ref13;B(d)&&c.push(d);}var e=c.length;if(0===e)this.toggleFormat(a),H(null);else{d=this.anchor;var f=this.focus,g=this.isBackward();b=g?f:d;d=g?d:f;var h=0,k=c[0]; f="element"===b.type?0:b.offset;"text"===b.type&&f===k.getTextContentSize()&&(h=1,k=c[1],f=0);if(null!=k){g=k.getFormatFlags(a,null);var m=e-1,n=c[m];e="text"===d.type?d.offset:n.getTextContentSize();if(k.is(n))f!==e&&(0===f&&e===k.getTextContentSize()?k.setFormat(g):(a=k.splitText(f,e),a=0===f?a[0]:a[1],a.setFormat(g),"text"===b.type&&b.set(a.__key,0,"text"),"text"===d.type&&d.set(a.__key,e-f,"text")),this.format=g);else{var _k$splitText,_n$splitText;0!==f&&((_k$splitText=k.splitText(f),k=_k$splitText[1],_k$splitText),f=0);k.setFormat(g);var p=n.getFormatFlags(a,g); 0k?k:h,c=f.splitText(a,h>k?h:k),a=0===a?c[0]:c[1],null!=a?[a]:[]): [f];b=d.isBefore(e);B(f)&&(d=b?h:k,d===f.getTextContentSize()?a.shift():0!==d&&((_f$splitText=f.splitText(d),f=_f$splitText[1],_f$splitText),a[0]=f));B(g)&&(f=g.getTextContent().length,b=b?k:h,0===b?a.pop():b!==f&&((_g$splitText=g.splitText(b),g=_g$splitText[0],_g$splitText),a[c]=g));return a;};_proto9.modify=function modify(a,b,c){var d=this.focus,e=this.anchor,f="move"===a,g=sc(d,b);if(z(g)&&!g.isIsolated())f&&g.isKeyboardSelectable()?(b=ef(),b.add(g.__key),Ab(b)):(a=b?g.getPreviousSibling():g.getNextSibling(),B(a)?(g=a.__key,b=b?a.getTextContent().length:0,d.set(g,b,"text"),f&&e.set(g,b,"text")):(c=g.getParentOrThrow(), E(a)?(c=a.__key,g=b?a.getChildrenSize():0):(g=g.getIndexWithinParent(),c=c.__key,b||g++),d.set(c,g,"element"),f&&e.set(c,g,"element")));else if(e=F(),d=xb(e._window)){var h=e._blockCursorElement,k=e._rootElement;null===k||null===h||!E(g)||g.isInline()||g.canBeEmpty()||Cc(h,e,k);d.modify(a,b?"backward":"forward",c);if(0c||m){d.splice(h,1);m&&(g=void 0);break;}}b=d.join("").trim();""===b?a.remove():(a.setTextContent(b),a.select(g,g));} function hf(a,b,c,d){var e=b;if(1===a.nodeType){var h=!1;var f=a.childNodes,g=f.length;e===g&&(h=!0,e=g-1);var k=f[e];g=!1;k===d._blockCursorElement?(k=f[e+1],g=!0):null!==d._blockCursorElement&&e--;d=ic(k);if(B(d))e=h?d.getTextContentSize():0;else{f=ic(a);if(null===f)return null;if(E(f)){a=f.getChildAtIndex(e);if(b=E(a))b=a.getParent(),b=null===c||null===b||!b.canBeEmpty()||b!==c.getNode();b&&(c=h?a.getLastDescendant():a.getFirstDescendant(),null===c?(f=a,e=0):(a=c,f=E(a)?a:a.getParentOrThrow())); B(a)?(d=a,f=null,e=h?a.getTextContentSize():0):a!==f&&h&&!g&&e++;}else e=f.getIndexWithinParent(),e=0===b&&z(f)&&ic(a)===f?e:e+1,f=f.getParentOrThrow();if(E(f))return new De(f.__key,e,"element");}}else d=ic(a);return B(d)?new De(d.__key,e,"text"):null;} function jf(a,b,c){var d=a.offset,e=a.getNode();0===d?(d=e.getPreviousSibling(),e=e.getParent(),b)?(c||!b)&&null===d&&E(e)&&e.isInline()&&(b=e.getPreviousSibling(),B(b)&&(a.key=b.__key,a.offset=b.getTextContent().length)):E(d)&&!c&&d.isInline()?(a.key=d.__key,a.offset=d.getChildrenSize(),a.type="element"):B(d)&&(a.key=d.__key,a.offset=d.getTextContent().length):d===e.getTextContent().length&&(d=e.getNextSibling(),e=e.getParent(),b&&E(d)&&d.isInline()?(a.key=d.__key,a.offset=0,a.type="element"):(c|| b)&&null===d&&E(e)&&e.isInline()&&!e.canInsertTextAfter()&&(b=e.getNextSibling(),B(b)&&(a.key=b.__key,a.offset=0)));}function bf(a,b,c){if("text"===a.type&&"text"===b.type){var d=a.isBefore(b);var e=a.is(b);jf(a,d,e);jf(b,!d,e);e&&(b.key=a.key,b.offset=a.offset,b.type=a.type);d=F();d.isComposing()&&d._compositionKey!==a.key&&C(c)&&(d=c.anchor,c=c.focus,Ge(a,d.key,d.offset,d.type),Ge(b,c.key,c.offset,c.type));}} function af(a,b,c,d,e,f){if(null===a||null===c||!Nb(e,a,c))return null;b=hf(a,b,C(f)?f.anchor:null,e);if(null===b)return null;d=hf(c,d,C(f)?f.focus:null,e);if(null===d||"element"===b.type&&"element"===d.type&&(a=ic(a),c=ic(c),z(a)&&z(c)))return null;bf(b,d,f);return[b,d];}function ue(a,b,c,d,e,f){var g=ac();a=new Te(new De(a,b,e),new De(c,d,f),0,"");a.dirty=!0;return g._selection=a;}function ef(){return new Se(new Set());} function kf(a){var b=a.getEditorState()._selection,c=xb(a._window);return C(b)||null==b?Rd(b,c,a):b.clone();} function Rd(a,b,c){var d=c._window;if(null===d)return null;var e=d.event,f=e?e.type:void 0;d="selectionchange"===f;e=!qb&&(d||"beforeinput"===f||"compositionstart"===f||"compositionend"===f||"click"===f&&e&&3===e.detail||"drop"===f||void 0===f);var g;if(!C(a)||e){if(null===b)return null;e=b.anchorNode;f=b.focusNode;g=b.anchorOffset;b=b.focusOffset;if(d&&C(a)&&!Nb(c,e,f))return a.clone();}else return a.clone();c=af(e,g,f,b,c,a);if(null===c)return null;var _c=c,h=_c[0],k=_c[1];return new Te(h,k,C(a)?a.format:0,C(a)? a.style:"");}function v(){return ac()._selection;}function nc(){return F()._editorState._selection;} function be(a,b,c,d){if(d===void 0){d=1;}var e=a.anchor,f=a.focus,g=e.getNode(),h=f.getNode();if(b.is(g)||b.is(h)){g=b.__key;if(a.isCollapsed()){if(b=e.offset,c<=b&&0d)c=Math.max(0,b+d),e.set(g,c,"element"),f.set(g,c,"element"),lf(a);}else{var m=a.isBackward();h=m?f:e;var k=h.getNode();e=m?e:f;f=e.getNode();b.is(k)&&(k=h.offset,(c<=k&&0d)&&h.set(g,Math.max(0,k+d),"element"));b.is(f)&&(b=e.offset,(c<=b&&0d)&&e.set(g,Math.max(0,b+d),"element"));}lf(a);}} function lf(a){var b=a.anchor,c=b.offset;var d=a.focus;var e=d.offset,f=b.getNode(),g=d.getNode();if(a.isCollapsed())E(f)&&(g=f.getChildrenSize(),g=(e=c>=g)?f.getChildAtIndex(g-1):f.getChildAtIndex(c),B(g)&&(c=0,e&&(c=g.getTextContentSize()),b.set(g.__key,c,"text"),d.set(g.__key,c,"text")));else{if(E(f)){var h=f.getChildrenSize();c=(a=c>=h)?f.getChildAtIndex(h-1):f.getChildAtIndex(c);B(c)&&(f=0,a&&(f=c.getTextContentSize()),b.set(c.__key,f,"text"));}E(g)&&(c=g.getChildrenSize(),e=(b=e>=c)?g.getChildAtIndex(c- 1):g.getChildAtIndex(e),B(e)&&(g=0,b&&(g=e.getTextContentSize()),d.set(e.__key,g,"text")));}}function mf(a,b){b=b.getEditorState()._selection;a=a._selection;if(C(a)){var c=a.anchor;var d=a.focus,e;"text"===c.type&&(e=c.getNode(),e.selectionTransform(b,a));"text"===d.type&&(c=d.getNode(),e!==c&&c.selectionTransform(b,a));}} function ae(a,b,c,d,e){var f=null,g=0,h=null;null!==d?(f=d.__key,B(d)?(g=d.getTextContentSize(),h="text"):E(d)&&(g=d.getChildrenSize(),h="element")):null!==e&&(f=e.__key,B(e)?h="text":E(e)&&(h="element"));null!==f&&null!==h?a.set(f,g,h):(g=b.getIndexWithinParent(),-1===g&&(g=c.getChildrenSize()),a.set(c.__key,g,"element"));}function ve(a,b,c,d,e){"text"===a.type?(a.key=c,b||(a.offset+=e)):a.offset>d.getIndexWithinParent()&&--a.offset;} function $e(a,b,c){var d=[],e=null,f=null;a=a.getChildren();for(var n=0;n=_iterator8.length)break;_ref14=_iterator8[_i9++];}else{_i9=_iterator8.next();if(_i9.done)break;_ref14=_i9.value;}var p=_ref14;for(S(p)||r(109);void 0!==d[n]&&void 0!==d[n][g];){g++;}h=n;var k=g,m=p;var l={cell:m,startColumn:k,startRow:h},q=m.__rowSpan,u=m.__colSpan;for(var x=0;x=_iterator9.length)break;_ref15=_iterator9[_i10++];}else{_i10=_iterator9.next();if(_i10.done)break;_ref15=_i10.value;}var c=_ref15;b=a.get(c),B(b)&&b.isAttached()&&b.isSimpleText()&&!b.isUnmergeable()&&Hb(b);}} function sf(a,b){var c=b._dirtyLeaves,d=b._dirtyElements;a=a._nodeMap;var e=dc(),f=new Map();var g=c;var h=g.size;for(var k=d,m=k.size;0=_iterator10.length)break;_ref16=_iterator10[_i11++];}else{_i11=_iterator10.next();if(_i11.done)break;_ref16=_i11.value;}var n=_ref16;g=a.get(n),B(g)&&g.isAttached()&&g.isSimpleText()&&!g.isUnmergeable()&&Hb(g),void 0!==g&&void 0!==g&&g.__key!==e&&g.isAttached()&&qf(b,g,f),c.add(n);}g=b._dirtyLeaves;h=g.size;if(0=_iterator11.length)break;_ref17=_iterator11[_i12++];}else{_i12=_iterator11.next();if(_i12.done)break;_ref17=_i12.value;}var _n=_ref17;if(k=_n[0],m=_n[1],"root"===k||m)g=a.get(k),void 0!== g&&void 0!==g&&g.__key!==e&&g.isAttached()&&qf(b,g,f),d.set(k,m);}g=b._dirtyLeaves;h=g.size;k=b._dirtyElements;m=k.size;$b++;}b._dirtyLeaves=c;b._dirtyElements=d;}function tf(a,b){var c=a.type,d=b.get(c);void 0===d&&r(17,c);c=d.klass;a.type!==c.getType()&&r(18,c.name);c=c.importJSON(a);a=a.children;if(E(c)&&Array.isArray(a))for(d=0;dTb&&(Fa=gd-Tb);if(0!==Fa)if(_V)Ea.scrollBy(0,Fa);else{var _Ub=oa.scrollTop;oa.scrollTop+=Fa;var Ne=oa.scrollTop-_Ub;fd-=Ne;gd-=Ne;}if(_V)break;oa=Vb(oa);}}}Jd=!0;}}else null!==g&&Nb(a,_P,_Q)&&ia.removeAllRanges();}}a:{var _D2=a._blockCursorElement;if(C(h)&&h.isCollapsed()&& "element"===h.anchor.type&&d.contains(document.activeElement)){var _P2=h.anchor,_Q2=_P2.getNode(),_ha2=_P2.offset,_mb=_Q2.getChildrenSize(),_X=!1,_Y2=null;if(_ha2===_mb){var _Z2=_Q2.getChildAtIndex(_ha2-1);Bc(_Z2)&&(_X=!0);}else{var _Z3=_Q2.getChildAtIndex(_ha2);if(Bc(_Z3)){var _ya=_Z3.getPreviousSibling();if(null===_ya||Bc(_ya))_X=!0,_Y2=a.getElementByKey(_Z3.__key);}}if(_X){var _Z4=a.getElementByKey(_Q2.__key);if(null===_D2){var _ya2=a._config.theme,_Ea=document.createElement("div");_Ea.contentEditable="false";_Ea.setAttribute("data-lexical-cursor","true"); var _V2=_ya2.blockCursor;if(void 0!==_V2){var _Ea$classList;if("string"===typeof _V2){var _Fa=_V2.split(" ");_V2=_ya2.blockCursor=_Fa;}void 0!==_V2&&(_Ea$classList=_Ea.classList).add.apply(_Ea$classList,_V2);}a._blockCursorElement=_D2=_Ea;}d.style.caretColor="transparent";null===_Y2?_Z4.appendChild(_D2):_Z4.insertBefore(_D2,_Y2);break a;}}null!==_D2&&Cc(_D2,a,d);}null!==q&&q.observe(d,pf);}finally{U=p,T=m;}}if(null!==u){var Nf=u;var _D3=Array.from(a._listeners.mutation),_P3=_D3.length;for(var _Q3=0;_Q3<_P3;_Q3++){var _D3$_Q=_D3[_Q3],_ha3=_D3$_Q[0],_mb2=_D3$_Q[1],_X2=Nf.get(_mb2);void 0!==_X2&&_ha3(_X2,{dirtyLeaves:ja,prevEditorState:f,updateTags:ka});}}C(h)|| null===h||null!==g&&g.is(h)||a.dispatchCommand(aa,void 0);var hd=a._pendingDecorators;null!==hd&&(a._decorators=hd,a._pendingDecorators=null,xf("decorator",a,!0,hd));var Of=gc(b||f),Oe=gc(c);Of!==Oe&&xf("textcontent",a,!0,Oe);xf("update",a,!0,{dirtyElements:ca,dirtyLeaves:ja,editorState:c,normalizedNodes:Va,prevEditorState:b||f,tags:ka});a._deferred=[];if(0!==$c.length){var _D4=a._updating;a._updating=!0;try{for(var _P4=0;_P4<$c.length;_P4++){$c[_P4]();}}finally{a._updating=_D4;}}var Pe=a._updates;if(0!==Pe.length){var _D5= Pe.shift();if(_D5){var _P5=_D5[0],_Q4=_D5[1];yf(a,_P5,_Q4);}}}}function xf(a,b,c){var e=b._updating;b._updating=c;try{var f=Array.from(b._listeners[a]);for(var _len2=arguments.length,d=new Array(_len2>3?_len2-3:0),_key2=3;_key2<_len2;_key2++){d[_key2-3]=arguments[_key2];}for(a=0;a=c)return a=b[c-1],E(a)&&a.getLastDescendant()||a||null;a=b[a];return E(a)&&a.getFirstDescendant()||a||null;};_proto11.getFirstChild=function getFirstChild(){var a=this.getLatest().__first;return null===a?null:I(a);};_proto11.getFirstChildOrThrow=function getFirstChildOrThrow(){var a=this.getFirstChild();null===a&&r(45,this.__key);return a;};_proto11.getLastChild=function getLastChild(){var a=this.getLatest().__last;return null=== a?null:I(a);};_proto11.getLastChildOrThrow=function getLastChildOrThrow(){var a=this.getLastChild();null===a&&r(96,this.__key);return a;};_proto11.getChildAtIndex=function getChildAtIndex(a){var b=this.getChildrenSize();var c;if(a=a;){if(b===a)return c;c=c.getPreviousSibling();b--;}return null;};_proto11.getTextContent=function getTextContent(){var a="",b=this.getChildren(),c=b.length;for(var d=0;d=_iterator12.length)break;_ref19=_iterator12[_i13++];}else{_i13=_iterator12.next();if(_i13.done)break;_ref19=_i13.value;}var _ref20=_ref19;var f=_ref20[1];f instanceof a&&f.__type===d&&(c||f.isAttached())&&e.push(f);}return e;};exports.$normalizeSelection__EXPERIMENTAL=Ib;exports.$parseSerializedNode=function(a){return tf(a,F()._nodes);};exports.$selectAll=function(){var a=J();a=a.select(0,a.getChildrenSize());Ab(Ib(a));};exports.$setCompositionKey=H;exports.$setSelection=Ab; exports.$splitNode=function(a,b){var c=a.getChildAtIndex(b);null==c&&(c=a);xc(a)&&r(102);var d=function d(g){var h=g.getParentOrThrow(),k=xc(h),m=g!==c||k?yc(g):g;if(k){if(!E(g)||!E(m))throw Error("Children of a root must be ElementNode");g.insertAfter(m);return[g,m,m];}var _d3=d(h),n=_d3[0],p=_d3[1],l=_d3[2];g=g.getNextSiblings();l.append.apply(l,[m].concat(g));return[n,p,m];},_d2=d(c),e=_d2[0],f=_d2[1];return[e,f];};exports.BLUR_COMMAND=Sa;exports.CAN_REDO_COMMAND={};exports.CAN_UNDO_COMMAND={};exports.CLEAR_EDITOR_COMMAND={}; exports.CLEAR_HISTORY_COMMAND={};exports.CLICK_COMMAND=ba;exports.COMMAND_PRIORITY_CRITICAL=4;exports.COMMAND_PRIORITY_EDITOR=0;exports.COMMAND_PRIORITY_HIGH=3;exports.COMMAND_PRIORITY_LOW=1;exports.COMMAND_PRIORITY_NORMAL=2;exports.CONTROLLED_TEXT_INSERTION_COMMAND=la;exports.COPY_COMMAND=Oa;exports.CUT_COMMAND=Pa;exports.DELETE_CHARACTER_COMMAND=da;exports.DELETE_LINE_COMMAND=qa;exports.DELETE_WORD_COMMAND=pa;exports.DEPRECATED_$computeGridMap=$e; exports.DEPRECATED_$createGridSelection=function(){var a=new De("root",0,"element"),b=new De("root",0,"element");return new We("root",a,b);};exports.DEPRECATED_$getGridCellNodeRect=Ue;exports.DEPRECATED_$getNodeTriplet=Ve;exports.DEPRECATED_$isGridCellNode=S;exports.DEPRECATED_$isGridNode=Ze;exports.DEPRECATED_$isGridRowNode=Ye;exports.DEPRECATED_$isGridSelection=Xe;exports.DEPRECATED_GridCellNode=nf;exports.DEPRECATED_GridNode=Rf;exports.DEPRECATED_GridRowNode=Sf;exports.DRAGEND_COMMAND=Na; exports.DRAGOVER_COMMAND=Ma;exports.DRAGSTART_COMMAND=La;exports.DROP_COMMAND=Ka;exports.DecoratorNode=Cf;exports.ElementNode=Df;exports.FOCUS_COMMAND=Ra;exports.FORMAT_ELEMENT_COMMAND={};exports.FORMAT_TEXT_COMMAND=ra;exports.INDENT_CONTENT_COMMAND={};exports.INSERT_LINE_BREAK_COMMAND=ea;exports.INSERT_PARAGRAPH_COMMAND=fa;exports.INSERT_TAB_COMMAND={};exports.KEY_ARROW_DOWN_COMMAND=Ba;exports.KEY_ARROW_LEFT_COMMAND=xa;exports.KEY_ARROW_RIGHT_COMMAND=va;exports.KEY_ARROW_UP_COMMAND=Aa; exports.KEY_BACKSPACE_COMMAND=Ga;exports.KEY_DELETE_COMMAND=Ia;exports.KEY_DOWN_COMMAND=ua;exports.KEY_ENTER_COMMAND=Ca;exports.KEY_ESCAPE_COMMAND=Ha;exports.KEY_MODIFIER_COMMAND=Ta;exports.KEY_SPACE_COMMAND=Da;exports.KEY_TAB_COMMAND=Ja;exports.LineBreakNode=he;exports.MOVE_TO_END=wa;exports.MOVE_TO_START=za;exports.OUTDENT_CONTENT_COMMAND={};exports.PASTE_COMMAND=ma;exports.ParagraphNode=If;exports.REDO_COMMAND=ta;exports.REMOVE_TEXT_COMMAND=na;exports.RootNode=Ff; exports.SELECTION_CHANGE_COMMAND=aa;exports.SELECT_ALL_COMMAND=Qa;exports.TabNode=Be;exports.TextNode=pe;exports.UNDO_COMMAND=sa;exports.createCommand=function(){return{};}; exports.createEditor=function(a){var b=a||{},c=U,d=b.theme||{};var e=void 0===a?c:b.parentEditor||null,f=b.disableEvents||!1,g=Gf(),h=b.namespace||(null!==e?e._config.namespace:lc()),k=b.editorState,m=[Ff,pe,he,Be,If].concat(b.nodes||[]),_b3=b,n=_b3.onError,p=_b3.html;b=void 0!==b.editable?b.editable:!0;if(void 0===a&&null!==c)a=c._nodes;else for(a=new Map(),c=0;ce?e:c,d=d>e?e:d,f.setTextNodeRange(b,c,b,d));l.stopImmediatePropagation();}});}}}};window.addEventListener("message",r,!0);return function(){window.removeEventListener("message",r,!0);};};}),null); __d("LexicalErrorBoundary",["cr:2260"],(function(a,b,c,d,e,f){e.exports=b("cr:2260")}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @fullSyntaxTransform * @generated * @noflow * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalErrorBoundary.prod",["react"],(function $module_LexicalErrorBoundary_prod(global,require,requireDynamic,requireLazy,module,exports){ 'use strict';var _require_closure_react;var h=_require_closure_react||(_require_closure_react=require("react"));function m(b,c){m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,a){g.__proto__=a;return g;};return m(b,c);}function n(b,c){b.prototype=Object.create(c.prototype);b.prototype.constructor=b;m(b,c);}function r(b,c){void 0===b&&(b=[]);void 0===c&&(c=[]);return b.length!==c.length||b.some(function(g,a){return!Object.is(g,c[a]);});} var t={error:null},u=function(b){function c(){for(var a,d=arguments.length,f=Array(d),e=0;e=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var m=_ref;l=n.get(m),void 0!==l&&e.push(l);}for(var _iterator2=h,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref3;if(_isArray2){if(_i2>=_iterator2.length)break;_ref3=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref3=_i2.value;}var _ref4=_ref3;var _m=_ref4[0];var p=_ref4[1];p&&(h=n.get(_m),void 0===h||require("Lexical").$isRootNode(h)||e.push(h));}if(0===e.length)return 0;if(1=_iterator.length)break;d=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;d=_i.value;}b=d(c),null!==b&&(null===g||(g.priority||0)<(b.priority||0))&&(g=b);}}g=(d=null!==g?g.conversion:null)?d(c):null;d=null;if(null!==g){d=g.after;b=g.node;k=Array.isArray(b)?b[b.length-1]:b;if(null!==k){var _f;for(var _iterator2=h,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var _ref=_ref2;var l=_ref[1];if(k=l(k,a),!k)break;}k&&(_f=f).push.apply(_f,Array.isArray(b)?b:[k]);}null!=g.forChild&&h.set(c.nodeName,g.forChild);}c=c.childNodes; a=[];for(l=0;l=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var d=_ref;if(""!==d){var _d$split=d.split(/:([^]+)/),e=_d$split[0],c=_d$split[1];e&&c&&(b[e.trim()]=c.trim());}}return b;}function z(a){var b=u.get(a);void 0===b&&(b=y(a),u.set(a,b));return b;} function A(a){var b="";for(var d in a){d&&(b+=d+": "+a[d]+";");}return b;}function B(a,b){var d=z("getStyle"in a?a.getStyle():a.style);b=Object.entries(b).reduce(function(e,_ref2){var c=_ref2[0],f=_ref2[1];null===f?delete e[c]:e[c]=f;return e;},babelHelpers["extends"]({},d));d=A(b);a.setStyle(d);u.set(d,b);} function C(a,b){var d=a.getNodes(),e=d.length;if(require("Lexical").$isRangeSelection(a)){--e;var c=d[0],f=d[e];if(a.isCollapsed()&&require("Lexical").$isRangeSelection(a))B(a,b);else{var h=a.anchor,g=a.focus,l=c.getTextContent().length,n=g.offset,q=h.offset,p=h.isBefore(g),m=p?q:n;a=p?n:q;var r=p?h.type:g.type,t=p?g.type:h.type;g=p?g.key:h.key;require("Lexical").$isTextNode(c)&&m===l&&(p=c.getNextSibling(),require("Lexical").$isTextNode(p)&&(m=q=0,c=p));if(1===d.length)require("Lexical").$isTextNode(c)&&(m="element"===r?0:q>n?n:q,a="element"===t?l:q>n?q:n,m!==a&&(0===m&&a===l?(B(c, b),c.select(m,a)):(d=c.splitText(m,a),d=0===m?d[0]:d[1],B(d,b),d.select(0,a-m))));else for(require("Lexical").$isTextNode(c)&&mg?g:h,l=h>g?h:g):f?(d=c?g:h,l=void 0):e&&(c=c?h:g,d=0,l=c);b.__text=b.__text.slice(d,l);}}return b;}; exports.$wrapNodes=function(a,b,d){if(d===void 0){d=null;}var e=a.getNodes();var c=e.length;var f=a.anchor;if(0===c||1===c&&"element"===f.type&&0===f.getNode().getChildrenSize()){a="text"===f.type?f.getNode().getParentOrThrow():f.getNode();e=a.getChildren();var g=b();g.setFormat(a.getFormatType());g.setIndent(a.getIndent());e.forEach(function(l){return g.append(l);});d&&(g=d.append(g));a.replace(g);}else{f=null;var h=[];for(var _g=0;_g=Math.abs(g)?f.left-h.left:g;});var c;for(var f=0;fh.top&&c.left+c.width>h.left||g?(b.splice(f--,1),e--):c=h;}return b;}; exports.getStyleObjectFromCSS=z; exports.trimTextContentFromAnchor=function(a,b,d){var e=b.getNode();if(require("Lexical").$isElementNode(e)){var c=e.getDescendantByIndex(b.offset);null!==c&&(e=c);}for(;0=c)g=e.getParent(),e.remove(),null==g||0!==g.getChildrenSize()||require("Lexical").$isRootNode(g)||g.remove(),d-=c+h,e=f;else{(function(){var _e$splitText,_e$splitText2;var l=e.getKey();h=a.getEditorState().read(function(){var q=require("Lexical").$getNodeByKey(l);return require("Lexical").$isTextNode(q)&&q.isSimpleText()?q.getTextContent():null;});f=c-d;var n=g.slice(0,f);null!==h&&h!==g?(d=require("Lexical").$getPreviousSelection(),c=e,e.isSimpleText()?e.setTextContent(h):(c=require("Lexical").$createTextNode(h),e.replace(c)),require("Lexical").$isRangeSelection(d)&&d.isCollapsed()&&(d=d.anchor.offset, c.select(d,d))):e.isSimpleText()?(h=b.key===l,g=b.offset,gh)return{node:b,offset:h-c};c+=e;}e=b.getNextSibling();if(null!==e)b=e;else{for(b=b.getParent();null!==b;){e=b.getNextSibling();if(null!==e){b=e;continue a;}b=b.getParent();}break;}}return null;}; exports.$isRootTextContentEmpty=r;exports.$isRootTextContentEmptyCurry=function(c,h){return function(){return r(c,h);};};exports.$rootTextContent=t; exports.registerLexicalTextEntity=function(c,h,b,e){var n=function n(a){var d=require("Lexical").$createTextNode(a.getTextContent());d.setFormat(a.getFormat());a.replace(d);},q=c.registerNodeTransform(require("Lexical").TextNode,function(a){if(a.isSimpleText()){var d=a.getPreviousSibling(),l=a.getTextContent(),m=a;if(require("Lexical").$isTextNode(d)){var k=d.getTextContent(),f=h(k+l);if(d instanceof b){if(null===f||0!==d.getLatest().__mode){n(d);return;}f=f.end-k.length;if(0l.end?a.splitText(l.end):(d=a.getPreviousSibling(),require("Lexical").$isTextNode(d)&&d.isTextEntity()&&(n(d),n(a)),d=a.getNextSibling(),require("Lexical").$isTextNode(d)&&d.isTextEntity()&&(n(d),a instanceof b&&n(a)));});return[q,c];};}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @fullSyntaxTransform * @generated * @noflow * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("LexicalUtils.prod",["Lexical","LexicalSelection","Promise"],(function $module_LexicalUtils_prod(global,require,requireDynamic,requireLazy,module,exports){ 'use strict';var _require_closure_Promise;function C(a){var b=new URLSearchParams();b.append("code",a);for(var c=1;cr.length;){k.pop();}q&&c(k);}function d(){g=n=null;null!==m&&m.disconnect();m=null;t.remove();for(var _iterator=k,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var p=_ref;p.remove();}k=[];}function f(){var p=a.getRootElement();if(null===p)return d();var z=p.parentElement;if(!(z instanceof HTMLElement))return d();d();g=p;n=z;m=new MutationObserver(function(q){var r=a.getRootElement(),w=r&&r.parentElement; if(r!==g||w!==n)return f();for(var _iterator2=q,_isArray2=Array.isArray(_iterator2),_i2=0,_iterator2=_isArray2?_iterator2:_iterator2[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref2;if(_isArray2){if(_i2>=_iterator2.length)break;_ref2=_iterator2[_i2++];}else{_i2=_iterator2.next();if(_i2.done)break;_ref2=_i2.value;}var l=_ref2;if(!t.contains(l.target))return e();}});m.observe(z,E);e();}var g=null,n=null,m=null,k=[],t=document.createElement("div"),A=a.registerRootListener(f);return function(){A();d();};}function G(a,b){for(var _iterator3=b,_isArray3=Array.isArray(_iterator3),_i3=0,_iterator3=_isArray3?_iterator3:_iterator3[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref3;if(_isArray3){if(_i3>=_iterator3.length)break;_ref3=_iterator3[_i3++];}else{_i3=_iterator3.next();if(_i3.done)break;_ref3=_i3.value;}var c=_ref3;if(a.type.startsWith(c))return!0;}return!1;}var H=function H(a,b){for(;a!==require("Lexical").$getRoot()&&null!=a;){if(b(a))return a;a=a.getParent();}return null;};exports.$splitNode=require("Lexical").$splitNode;exports.isHTMLAnchorElement=require("Lexical").isHTMLAnchorElement;exports.isHTMLElement=require("Lexical").isHTMLElement; exports.$dfs=function(a,b){var c=[];a=(a||require("Lexical").$getRoot()).getLatest();b=b||(require("Lexical").$isElementNode(a)?a.getLastDescendant():a);for(var e=a,d=0;null!==(e=e.getParent());){d++;}for(e=d;null!==a&&!a.is(b);){if(c.push({depth:e,node:a}),require("Lexical").$isElementNode(a)&&0=_iterator4.length)break;_ref5=_iterator4[_i4++];}else{_i4=_iterator4.next();if(_i4.done)break;_ref5=_i4.value;}var _ref6=_ref5;var d=_ref6[0];var f=_ref6[1];var g=require("LexicalSelection").$cloneWithProperties(f);if(require("Lexical").$isTextNode(g)){if(!require("Lexical").$isTextNode(f))throw Error("Expected node be a TextNode");g.__text=f.__text;}c.set(d,g);}e&&(e._nodeMap=c);a._dirtyType=2;a=b._selection;require("Lexical").$setSelection(null===a?null:a.clone());}; exports.$wrapNodeInElement=function(a,b){b=b();a.replace(b);b.append(a);return b;};exports.addClassNamesToElement=function(a){for(var _len2=arguments.length,b=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){b[_key2-1]=arguments[_key2];}b.forEach(function(c){var _a$classList;"string"===typeof c&&(c=c.split(" ").filter(function(e){return""!==e;}),(_a$classList=a.classList).add.apply(_a$classList,c));});};exports.isMimeType=G; exports.markSelection=function(a,b){function c(m){m.read(function(){var k=require("Lexical").$getSelection();if(require("Lexical").$isRangeSelection(k)){var _k=k,t=_k.anchor,A=_k.focus;k=t.getNode();var p=k.getKey(),z=t.offset,q=A.getNode(),r=q.getKey(),w=A.offset,l=a.getElementByKey(p),x=a.getElementByKey(r);p=null===e||null===l||z!==d||p!==e.getKey()||k!==e&&(!(e instanceof require("Lexical").TextNode)||k.updateDOM(e,l,a._config));r=null===f||null===x||w!==g||r!==f.getKey()||q!==f&&(!(f instanceof require("Lexical").TextNode)||q.updateDOM(f,x,a._config));if(p||r){l=a.getElementByKey(t.getNode().getKey()); var u=a.getElementByKey(A.getNode().getKey());if(null!==l&&null!==u&&"SPAN"===l.tagName&&"SPAN"===u.tagName){r=document.createRange();A.isBefore(t)?(p=u,x=A.offset,u=l,l=t.offset):(p=l,x=t.offset,l=A.offset);p=p.firstChild;if(null===p)throw Error("Expected text node to be first child of span");u=u.firstChild;if(null===u)throw Error("Expected text node to be first child of span");r.setStart(p,x);r.setEnd(u,l);n();n=F(a,r,function(y){for(var _iterator5=y,_isArray5=Array.isArray(_iterator5),_i5=0,_iterator5=_isArray5?_iterator5:_iterator5[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref7;if(_isArray5){if(_i5>=_iterator5.length)break;_ref7=_iterator5[_i5++];}else{_i5=_iterator5.next();if(_i5.done)break;_ref7=_i5.value;}var I=_ref7;var v=I.style;"Highlight"!==v.background&&(v.background="Highlight"); "HighlightText"!==v.color&&(v.color="HighlightText");"-1"!==v.zIndex&&(v.zIndex="-1");"none"!==v.pointerEvents&&(v.pointerEvents="none");"-1.5px"!==v.marginTop&&(v.marginTop="-1.5px");"4px"!==v.paddingTop&&(v.paddingTop="4px");"0px"!==v.paddingBottom&&(v.paddingBottom="0px");}void 0!==b&&b(y);});}}e=k;d=z;f=q;g=w;}else g=f=d=e=null,n(),n=function n(){};});}var e=null,d=null,f=null,g=null,n=function n(){};c(a.getEditorState());return D(a.registerUpdateListener(function(_ref8){var m=_ref8.editorState;return c(m);}),n,function(){n();});}; exports.mediaFileReader=function(a,b){var c=a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();return new(_require_closure_Promise||(_require_closure_Promise=require("Promise")))(function(e,d){var f=[],g=function g(){var _c$next=c.next(),n=_c$next.done,m=_c$next.value;if(n)return e(f);var k=new FileReader();k.addEventListener("error",d);k.addEventListener("load",function(){var t=k.result;"string"===typeof t&&f.push({file:m,result:t});g();});G(m,b)?k.readAsDataURL(m):g();};g();});};exports.mergeRegister=D;exports.objectKlassEquals=function(a,b){return null!==a?Object.getPrototypeOf(a).constructor.name===b.name:!1;}; exports.positionNodeOnRange=F; exports.registerNestedElementResolver=function(a,b,c,e){return a.registerNodeTransform(b,function(d){a:{var f=d.getChildren();for(var g=0;g1?_len3-1:0),_key3=1;_key3<_len3;_key3++){b[_key3-1]=arguments[_key3];}b.forEach(function(c){var _a$classList2;"string"===typeof c&&(_a$classList2=a.classList).remove.apply(_a$classList2,c.split(" "));});};}),null); /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @fullSyntaxTransform * @generated * @noflow * @nolint * @oncall lexical_web_text_editor * @preserve-invariant-messages * @preserve-whitespace * @preventMunge */__d("useLexicalEditable.prod",["LexicalComposerContext","react"],(function $module_useLexicalEditable_prod(global,require,requireDynamic,requireLazy,module,exports){ 'use strict';var _require_closure_react;var k=_require_closure_react||(_require_closure_react=require("react")),l="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?k.useLayoutEffect:k.useEffect;function m(a){var _b$useLexicalComposer=require("LexicalComposerContext").useLexicalComposerContext(),c=_b$useLexicalComposer[0],e=k.useMemo(function(){return a(c);},[c,a]),d=k.useRef(e.initialValueFn()),_k$useState=k.useState(d.current),n=_k$useState[0],g=_k$useState[1];l(function(){var p=e.initialValueFn,q=e.subscribe,f=p();d.current!==f&&(d.current=f,g(f));return q(function(h){d.current=h;g(h);});},[e,a]);return n;} function r(a){return{initialValueFn:function initialValueFn(){return a.isEditable();},subscribe:function subscribe(c){return a.registerEditableListener(c);}};}module.exports=function(){return m(r);};}),null);/*FB_PKG_DELIM*/ __d("CometMarketplaceConfirmMarkAsPaidDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5436864742990701"}),null); __d("CometMarketplaceConfirmMarkAsPaidDialogQuery$Parameters",["CometMarketplaceConfirmMarkAsPaidDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometMarketplaceConfirmMarkAsPaidDialogQuery_facebookRelayOperation"),metadata:{},name:"CometMarketplaceConfirmMarkAsPaidDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("CometMarketplaceInboxLabelChatDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5046975135324826"}),null); __d("CometMarketplaceInboxLabelChatDialogQuery$Parameters",["CometMarketplaceInboxLabelChatDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometMarketplaceInboxLabelChatDialogQuery_facebookRelayOperation"),metadata:{},name:"CometMarketplaceInboxLabelChatDialogQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("MWCommunityMessagingAdmodOnboardingBannerQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7080292905315407"}),null); __d("MWCommunityMessagingAdmodOnboardingBannerQuery.graphql",["MWCommunityMessagingAdmodOnboardingBannerQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"threadKey"}],c=[{kind:"Literal",name:"surface_nux_id",value:10706},{kind:"Literal",name:"trigger",value:"COMMUNITY_MESSAGING_THREAD_OPEN"}],d=[{kind:"Literal",name:"supported",value:"4g3Lgk"}],e={kind:"InlineFragment",selections:[{args:null,documentName:"MWCommunityMessagingAdmodOnboardingBannerQuery",fragmentName:"CometQuickPromotionMessengerWebAdmodOnboardingBannerRendererStrategy_quickPromotionRef",fragmentPropName:"quickPromotionRef",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerWebAdmodOnboardingBannerRendererStrategy",abstractKey:null},f=[{kind:"Variable",name:"id",variableName:"threadKey"}],g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},h={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWCommunityMessagingAdmodOnboardingBannerQuery",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:c,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[e],storageKey:'renderer_strategy(supported:"4g3Lgk")'},action:"NONE",path:"viewer.eligible_promotions.nodes.comet_qp_sections.renderer_strategy"}],storageKey:null},action:"NONE",path:"viewer.eligible_promotions.nodes.comet_qp_sections"}],storageKey:null},action:"NONE",path:"viewer.eligible_promotions.nodes"}],storageKey:'eligible_promotions(surface_nux_id:10706,trigger:"COMMUNITY_MESSAGING_THREAD_OPEN")'},action:"NONE",path:"viewer.eligible_promotions"}],storageKey:null},action:"NONE",path:"viewer"},{kind:"RequiredField",field:{alias:null,args:f,concreteType:null,kind:"LinkedField",name:"c4g_thread",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"useMWIsAnyToDoTaskRemaining_fragment"}],storageKey:null},action:"NONE",path:"c4g_thread"},{args:null,kind:"FragmentSpread",name:"MWAdmodOnboardingSuggestedActions_onboardingTasksRef"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWCommunityMessagingAdmodOnboardingBannerQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:c,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:d,concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[g,e],storageKey:'renderer_strategy(supported:"4g3Lgk")'}],storageKey:null},h],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:10706,trigger:"COMMUNITY_MESSAGING_THREAD_OPEN")'}],storageKey:null},{alias:null,args:f,concreteType:null,kind:"LinkedField",name:"c4g_thread",plural:!1,selections:[g,{kind:"TypeDiscriminator",abstractKey:"__isMessengerFBGroupChat"},{alias:null,args:null,concreteType:"CommunityChatsThreadToDo",kind:"LinkedField",name:"thread_to_do",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"onboarding_tasks",plural:!0,selections:[g,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_done",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"header",storageKey:null}],storageKey:null}],storageKey:null},h],storageKey:null}]},params:{id:b("MWCommunityMessagingAdmodOnboardingBannerQuery_facebookRelayOperation"),metadata:{live:{config_id:"chat_thread_todo_query"}},name:"MWCommunityMessagingAdmodOnboardingBannerQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWPublicChatsNUXQuickPromotionQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6098288313524910"}),null); __d("MWPublicChatsNUXQuickPromotionQuery$Parameters",["MWPublicChatsNUXQuickPromotionQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("MWPublicChatsNUXQuickPromotionQuery_facebookRelayOperation"),metadata:{},name:"MWPublicChatsNUXQuickPromotionQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("MWAdmodOnboardingSuggestedActions_onboardingTasksRef.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"threadKey"}],kind:"Fragment",metadata:null,name:"MWAdmodOnboardingSuggestedActions_onboardingTasksRef",selections:[{kind:"RequiredField",field:{alias:null,args:[{kind:"Variable",name:"id",variableName:"threadKey"}],concreteType:null,kind:"LinkedField",name:"c4g_thread",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"CommunityChatsThreadToDo",kind:"LinkedField",name:"thread_to_do",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"onboarding_tasks",plural:!0,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"header",storageKey:null},action:"NONE",path:"c4g_thread.thread_to_do.onboarding_tasks.header"},{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},action:"NONE",path:"c4g_thread.thread_to_do.onboarding_tasks.type"},{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"is_done",storageKey:null},action:"NONE",path:"c4g_thread.thread_to_do.onboarding_tasks.is_done"}],storageKey:null},action:"NONE",path:"c4g_thread.thread_to_do.onboarding_tasks"}],storageKey:null},action:"NONE",path:"c4g_thread.thread_to_do"}],storageKey:null},action:"NONE",path:"c4g_thread"}],type:"Query",abstractKey:null};e.exports=a}),null); __d("useMWIsAnyToDoTaskRemaining_fragment.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useMWIsAnyToDoTaskRemaining_fragment",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"CommunityChatsThreadToDo",kind:"LinkedField",name:"thread_to_do",plural:!1,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"onboarding_tasks",plural:!0,selections:[{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},action:"NONE",path:"thread_to_do.onboarding_tasks.type"},{kind:"RequiredField",field:{alias:null,args:null,kind:"ScalarField",name:"is_done",storageKey:null},action:"NONE",path:"thread_to_do.onboarding_tasks.is_done"}],storageKey:null},action:"NONE",path:"thread_to_do.onboarding_tasks"}],storageKey:null},action:"NONE",path:"thread_to_do"}],type:"MessengerFBGroupChat",abstractKey:"__isMessengerFBGroupChat"};e.exports=a}),null); __d("MWQuickPromotionThreadViewBannerContainerQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6578447052222731"}),null); __d("MWQuickPromotionThreadViewBannerContainerQuery.graphql",["MWQuickPromotionThreadViewBannerContainerQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"community_id"},{defaultValue:null,kind:"LocalArgument",name:"fb_group_id"},{defaultValue:null,kind:"LocalArgument",name:"thread_id"},{defaultValue:null,kind:"LocalArgument",name:"trigger"}],c=[{kind:"Literal",name:"surface_nux_id",value:10999},{kind:"Variable",name:"trigger",variableName:"trigger"},{fields:[{fields:[{kind:"Variable",name:"community_id",variableName:"community_id"},{kind:"Variable",name:"fb_group_id",variableName:"fb_group_id"},{kind:"Variable",name:"thread_id",variableName:"thread_id"}],kind:"ObjectValue",name:"community_messaging_context"}],kind:"ObjectValue",name:"trigger_context_v2"}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWQuickPromotionThreadViewBannerContainerQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:c,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"MWQuickPromotionThreadViewBanner_eligiblePromotions"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWQuickPromotionThreadViewBannerContainerQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:c,concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"supported",value:"3XEtNp"}],concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MWQuickPromotionThreadViewBanner_eligiblePromotions",fragmentName:"CometQuickPromotionInboxThreadViewBannerRendererStrategy_promotion",fragmentPropName:"promotion",kind:"ModuleImport"}],type:"CometQuickPromotionInboxThreadViewBannerRendererStrategy",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MWQuickPromotionThreadViewBanner_eligiblePromotions",fragmentName:"CometQuickPromotionChatTabNotificationSettingsBannerRendererStrategy_promotion",fragmentPropName:"promotion",kind:"ModuleImport"}],type:"CometQuickPromotionChatTabNotificationSettingsBannerRendererStrategy",abstractKey:null}],storageKey:'renderer_strategy(supported:"3XEtNp")'}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("MWQuickPromotionThreadViewBannerContainerQuery_facebookRelayOperation"),metadata:{},name:"MWQuickPromotionThreadViewBannerContainerQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWQuickPromotionThreadViewBanner_eligiblePromotions.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWQuickPromotionThreadViewBanner_eligiblePromotions",selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"supported",value:"3XEtNp"}],concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[{kind:"InlineFragment",selections:[{args:null,documentName:"MWQuickPromotionThreadViewBanner_eligiblePromotions",fragmentName:"CometQuickPromotionInboxThreadViewBannerRendererStrategy_promotion",fragmentPropName:"promotion",kind:"ModuleImport"}],type:"CometQuickPromotionInboxThreadViewBannerRendererStrategy",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"MWQuickPromotionThreadViewBanner_eligiblePromotions",fragmentName:"CometQuickPromotionChatTabNotificationSettingsBannerRendererStrategy_promotion",fragmentPropName:"promotion",kind:"ModuleImport"}],type:"CometQuickPromotionChatTabNotificationSettingsBannerRendererStrategy",abstractKey:null}],storageKey:'renderer_strategy(supported:"3XEtNp")'}],storageKey:null}],storageKey:null}],type:"ViewerEligibleQuickPromotionsConnection",abstractKey:null};e.exports=a}),null); __d("useMessengerUnsendNUXQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4823686477743600"}),null); __d("useMessengerUnsendNUXQuery.graphql",["useMessengerUnsendNUXQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"id"}],c=[{kind:"Variable",name:"nux_id",variableName:"id"}],d={alias:null,args:null,kind:"ScalarField",name:"should_show",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"useMessengerUnsendNUXQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"nux",plural:!1,selections:[d],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"useMessengerUnsendNUXQuery",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,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("useMessengerUnsendNUXQuery_facebookRelayOperation"),metadata:{},name:"useMessengerUnsendNUXQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWContextBannerAdmodOnboardingActionsQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24300319002915746"}),null); __d("MWContextBannerAdmodOnboardingActionsQuery.graphql",["MWContextBannerAdmodOnboardingActionsQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"threadKey"}],c=[{kind:"Variable",name:"id",variableName:"threadKey"}],d={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MWContextBannerAdmodOnboardingActionsQuery",selections:[{kind:"RequiredField",field:{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"c4g_thread",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"useMWIsAnyToDoTaskRemaining_fragment"}],storageKey:null},action:"NONE",path:"c4g_thread"},{args:null,kind:"FragmentSpread",name:"MWAdmodOnboardingSuggestedActions_onboardingTasksRef"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MWContextBannerAdmodOnboardingActionsQuery",selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"c4g_thread",plural:!1,selections:[d,{kind:"TypeDiscriminator",abstractKey:"__isMessengerFBGroupChat"},{alias:null,args:null,concreteType:"CommunityChatsThreadToDo",kind:"LinkedField",name:"thread_to_do",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"onboarding_tasks",plural:!0,selections:[d,{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_done",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"header",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:b("MWContextBannerAdmodOnboardingActionsQuery_facebookRelayOperation"),metadata:{live:{config_id:"chat_thread_todo_query"}},name:"MWContextBannerAdmodOnboardingActionsQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("CometAccessibilityAnnouncementForDynamicContent.react",["CometAccessibilityAnnouncement.react","DocumentTranslationStatusProvider.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("DocumentTranslationStatusProvider.react").useTranslationKeyForTextParent();return i.createElement(c("CometAccessibilityAnnouncement.react"),babelHelpers["extends"]({},a,{key:b}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometMarketplaceConfirmMarkAsPaidDialog.entrypoint",["CometMarketplaceConfirmMarkAsPaidDialogQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{cometMarketplaceConfirmMarkAsPaidDialogQueryReference:{parameters:c("CometMarketplaceConfirmMarkAsPaidDialogQuery$Parameters"),variables:{thread_id:a.threadId}}}}},root:c("JSResourceForInteraction")("CometMarketplaceConfirmMarkAsPaidDialog.react").__setRef("CometMarketplaceConfirmMarkAsPaidDialog.entrypoint")};g["default"]=a}),98); __d("CometMarketplaceInboxLabelChatDialog.entrypoint",["CometMarketplaceInboxLabelChatDialogQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{queries:{cometMarketplaceInboxLabelChatDialogQueryReference:{parameters:c("CometMarketplaceInboxLabelChatDialogQuery$Parameters"),variables:{id:a.thread_id}}}}},root:c("JSResourceForInteraction")("CometMarketplaceInboxLabelChatDialog.react").__setRef("CometMarketplaceInboxLabelChatDialog.entrypoint")};g["default"]=a}),98); __d("useMWIsAnyToDoTaskRemaining.react",["CometRelay","useMWIsAnyToDoTaskRemaining_fragment.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){a=d("CometRelay").useFragment(h!==void 0?h:h=b("useMWIsAnyToDoTaskRemaining_fragment.graphql"),a);if(!a)return!1;for(var a=a.thread_to_do.onboarding_tasks,c=Array.isArray(a),e=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(c){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;if(f==null)continue;switch(f.type){case"SEND_WELCOME_MESSAGE":case"INVITE_MEMBERS":case"CUSTOMIZE_CHAT":if(!f.is_done)return!0}}return!1}g["default"]=a}),98); __d("MWCommunityMessagingAdmodOnboardingBanner.react",["CometQuickPromotionLoggerContext.react","CometRelay","I64","MWAdmodOnboardingSuggestedActionsContext.react","MWCommunityMessagingAdmodOnboardingBannerQuery.graphql","react","setTimeout","useMWIsAnyToDoTaskRemaining.react","useQuickPromotionFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react"));e=i;var l=e.useEffect,m=e.useState;function a(a){a=a.threadKey;var e=m(!1),f=e[0],g=e[1];l(function(){f||c("setTimeout")(function(){g(!0)},500)},[f]);e=d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("MWCommunityMessagingAdmodOnboardingBannerQuery.graphql"),{threadKey:(j||(j=d("I64"))).to_string(a)});var i=c("useQuickPromotionFalcoEvent")({context_surface_id:10706,context_trigger:"community_messaging_thread_open"}),n=d("MWAdmodOnboardingSuggestedActionsContext.react").useMWAdmodOnboardingSuggestedActionsContext(),o=n.contextBannerLoadingState;n=n.isContextBannerVisible;var p=e&&e.viewer.eligible_promotions.nodes.filter(Boolean)[0];p=p&&p.comet_qp_sections.renderer_strategy;var q=c("useMWIsAnyToDoTaskRemaining.react")(e==null?void 0:e.c4g_thread);return e==null||f===!1||o===d("MWAdmodOnboardingSuggestedActionsContext.react").ContextBannerLoadingStates.INITIALIZING||n||p==null||!q?null:k.jsx(c("CometQuickPromotionLoggerContext.react").Provider,{value:i,children:k.jsx(d("CometRelay").MatchContainer,{match:p,props:{onboardingTasksRef:e,threadKey:a}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPublicChatsNUXQuickPromotionContainer.entrypoint",["JSResourceForInteraction","MWPublicChatsNUXQuickPromotionQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{queries:{queryRef:{parameters:c("MWPublicChatsNUXQuickPromotionQuery$Parameters"),variables:{}}}}},root:c("JSResourceForInteraction")("MWPublicChatsNUXQuickPromotion.react").__setRef("MWPublicChatsNUXQuickPromotionContainer.entrypoint")};g["default"]=a}),98); __d("usePageType",["I64","ReQL","ReQLSuspense","gkx","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=(i||(i=c("useReStore")))(),e=d("ReQLSuspense").useFirst(function(){var c;return d("ReQL").fromTableAscending(b.table("contacts"),["pageType"]).getKeyRange((c=a)!=null?c:(h||(h=d("I64"))).zero)},[b,a],f.id+":24");return!c("gkx")("10469")?void 0:(e==null?void 0:e.pageType)!=null?e.pageType:void 0}g["default"]=a}),98); __d("useMWLSAdContextCtaParser",["JSResourceForInteraction","useMWXLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWCTMAdContextDialog.react").__setRef("useMWLSAdContextCtaParser")),b=a[0];return function(a,c){return c.ctaType!=="ads_context"?{type:"unimplemented"}:{onPress:function(){return b({adId:c.ctaId,threadKey:a.banner.threadKey})},type:"action"}}}g["default"]=a}),98); __d("LSRequestAdContextFromThreadKey",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),"ctm_ad_context",c.i64.cast([0,235]),d[1],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSRequestAdContextFromThreadKeyStoredProcedure",["LSRequestAdContextFromThreadKey"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;return c("LSRequestAdContextFromThreadKey").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("useMWLSEnsureAdContextExists",["LSFactory","LSRequestAdContextFromThreadKeyStoredProcedure","MWThreadKey.react","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useEffect;function a(){var a=(h||(h=c("useReStore")))(),b=d("MWThreadKey.react").useMWThreadKeyMemoizedExn();j(function(){var d=a.runInTransaction(function(a){return c("LSRequestAdContextFromThreadKeyStoredProcedure")(c("LSFactory")(a),{threadKey:b})},"readwrite");c("promiseDone")(d)},[b,a])}g["default"]=a}),98); __d("MWAdmodSuggestedActionButton.react",["ix","BaseTheme.react","MWXIcon.react","MWXImage.react","MWXPressable.react","MWXRow.react","MWXRowItem.react","MWXText.react","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");b=1300;var k={dark:{"icon-background":"rgba(255, 255, 255, 0.4)","secondary-button-background":"rgba(255, 255, 255, 0.19)"},light:{"icon-background":"rgba(0, 0, 0, 0.1)","secondary-button-background":"rgba(0, 0, 0, 0.04)"},type:"VARIABLES"},l={button:{backgroundColor:"x1qhmfi1",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",display:"x3nfvp2",flexDirection:"xdt5ytf",position:"x1n2onr6",width:"xh8yej3",$$css:!0},checkmark:{animationDuration:"x1g3bjam",animationFillMode:"x10e4vud",animationName:"xfit9kf",animationTimingFunction:"x4hg4is",height:"xlup9mm",width:"x1kky2od",$$css:!0},hiding:{animationDuration:"x1g3bjam",animationName:"x2cqq96",animationTimingFunction:"x4hg4is",$$css:!0},icon:{alignItems:"x6s0dn4",backgroundColor:"x1cm23x1",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",borderTopWidth:"x972fbf",borderEndWidth:"xcfux6l",borderBottomWidth:"x1qhh985",borderStartWidth:"xm0m39n",boxSizing:"x9f619",display:"x78zum5",justifyContent:"xl56j7k",position:"x1n2onr6",$$css:!0},slidingUp:{animationDuration:"x1g3bjam",animationName:"x1jfcwzl",animationTimingFunction:"x4hg4is",$$css:!0},text:{paddingStart:"xurb0ha",paddingLeft:null,paddingRight:null,$$css:!0}};function a(a){var b=a.checked;b=b===void 0?!1:b;var e=a.fillContainer,f=a.hiding;f=f===void 0?!1:f;var g=a.icon,i=a.label,m=a.onPress;a=a.slidingUp;a=a===void 0?!1:a;var n={width:"100%"};e||(n.maxWidth="400px");return j.jsx(c("BaseTheme.react"),{config:k,style:n,children:j.jsx(c("MWXPressable.react"),{focusable:!0,onPress:function(){m()},role:"button",xstyle:[l.button,f?l.hiding:a?l.slidingUp:null],children:j.jsxs(c("MWXRow.react"),{paddingHorizontal:16,paddingVertical:16,verticalAlign:"center",children:[j.jsx(c("MWXRowItem.react"),{xstyle:l.icon,children:j.jsx(c("MWXImage.react"),{src:g})}),j.jsx(c("MWXRowItem.react"),{expanding:!0,xstyle:l.text,children:j.jsx(c("MWXText.react"),{align:"start",color:"primary",type:"bodyLink3",children:i})}),j.jsx(c("MWXRowItem.react"),{children:b?j.jsx(c("MWXImage.react"),{src:h("396381"),xstyle:l.checkmark}):j.jsx(c("MWXIcon.react"),{icon:d("fbicon")._(h("492533"),16)})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g.ANIMATION_DURATION_MS=b;g.MWAdmodSuggestedActionButton=a}),98); __d("MWAdmodOnboardingSuggestedActions.react",["fbt","ix","CometRelay","GroupsCometChatsEngagementLogger","I64","Int64Hooks","MWAdmodOnboardingSuggestedActionsContext.react","MWAdmodOnboardingSuggestedActions_onboardingTasksRef.graphql","MWAdmodSuggestedActionButton.react","MWCMBulkInviteDialog.entrypoint","MWChatFocusComposerContext","MWXColumn.react","MWXColumnItem.react","MWXLink.react","MWXText.react","Promise","asyncToGeneratorRuntime","cometPushToast","promiseDone","react","setTimeout","useAsyncReStore","useCurrentDisplayMode","useMWCMEditChatInfoDialogEntrypoint","useMWXEntryPointDialog","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=m||(m=d("react"));e=m;var o=e.useRef,p=e.useState,q=d("MWAdmodSuggestedActionButton.react").ANIMATION_DURATION_MS*.95;function r(a){return new(k||(k=b("Promise")))(function(b){return c("setTimeout")(b,a)})}function s(a,b){return t.apply(this,arguments)}function t(){t=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=(yield b.table("threads").get(a));a=(a=a==null?void 0:a.parentThreadKey)!=null?a:(l||(l=d("I64"))).zero;b=(yield b.table("community_folders").get(a));b=(b=b==null?void 0:b.fbGroupId)!=null?b:(l||(l=d("I64"))).zero;return{communityID:a,fbGroupId:b}});return t.apply(this,arguments)}function a(a){var e=a.entryPoint,f=a.fillContainer;f=f===void 0?!1:f;var g=a.impressionEvent,m=a.onboardingTasksRef,t=a.onClose,u=a.source,v=a.surface,w=a.threadKey;a=d("MWChatFocusComposerContext").useMWChatFocusComposer();var x=a.focusComposer;a=d("MWAdmodOnboardingSuggestedActionsContext.react").useMWAdmodOnboardingSuggestedActionsContext();var y=a.setShowWelcomeMessageSuggestion;a=c("useCurrentDisplayMode")();a=a==="dark";var z=c("useAsyncReStore")();m=d("CometRelay").useFragment(j!==void 0?j:j=b("MWAdmodOnboardingSuggestedActions_onboardingTasksRef.graphql"),m);var A=c("useMWXEntryPointDialog")(c("MWCMBulkInviteDialog.entrypoint"),{}),B=A[0],C=c("useMWCMEditChatInfoDialogEntrypoint")(w,e),D={};for(A of(m==null?void 0:(A=m.c4g_thread)==null?void 0:(m=A.thread_to_do)==null?void 0:m.onboarding_tasks)||[]){if(A==null)continue;m=A.header;var E=A.is_done,F=A.type;D[F]={isDone:E,label:m}}A=c("useSinglePartialViewImpression")({onImpressionEnd:d("Int64Hooks").useCallbackInt64(function(){return c("promiseDone")((k||(k=b("Promise"))).resolve().then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a,b=(yield z);b=(yield s(w,b));var c=b.communityID;b=b.fbGroupId;a={add_image_description:((a=D.CUSTOMIZE_CHAT)==null?void 0:a.isDone)===!1?"1":"0",invite_members:((a=D.INVITE_MEMBERS)==null?void 0:a.isDone)===!1?"1":"0",send_first_message:((a=D.SEND_WELCOME_MESSAGE)==null?void 0:a.isDone)===!1?"1":"0"};d("GroupsCometChatsEngagementLogger").log({action:"impression",client_extras:a,community_id:(l||(l=d("I64"))).to_string(c),entry_point:e,event:g,group_id:l.to_string((a=b)!=null?a:(l||(l=d("I64"))).zero),parent_surface:"thread_view",source:u,surface:v})})))},[(F=D.CUSTOMIZE_CHAT)==null?void 0:F.isDone,(E=D.INVITE_MEMBERS)==null?void 0:E.isDone,(m=D.SEND_WELCOME_MESSAGE)==null?void 0:m.isDone,z,e,g,u,v,w])});F=p({CUSTOMIZE_CHAT:{checked:!1,fallbackLabel:(E=(F=D.CUSTOMIZE_CHAT)==null?void 0:F.label)!=null?E:"",hiding:!1,slidingUp:!1,stillShowing:((m=D.CUSTOMIZE_CHAT)==null?void 0:m.isDone)===!1},INVITE_MEMBERS:{checked:!1,fallbackLabel:(E=(F=D.INVITE_MEMBERS)==null?void 0:F.label)!=null?E:"",hiding:!1,slidingUp:!1,stillShowing:((m=D.INVITE_MEMBERS)==null?void 0:m.isDone)===!1},SEND_WELCOME_MESSAGE:{checked:!1,fallbackLabel:(E=(F=D.SEND_WELCOME_MESSAGE)==null?void 0:F.label)!=null?E:"",hiding:!1,slidingUp:!1,stillShowing:((m=D.SEND_WELCOME_MESSAGE)==null?void 0:m.isDone)===!1}});var G=F[0],H=F[1];E=((E=D.CUSTOMIZE_CHAT)==null?void 0:E.label)!=null&&D.CUSTOMIZE_CHAT.label!==G.CUSTOMIZE_CHAT.fallbackLabel||((m=D.INVITE_MEMBERS)==null?void 0:m.label)!=null&&D.INVITE_MEMBERS.label!==G.INVITE_MEMBERS.fallbackLabel||((F=D.SEND_WELCOME_MESSAGE)==null?void 0:F.label)!=null&&D.SEND_WELCOME_MESSAGE.label!==G.SEND_WELCOME_MESSAGE.fallbackLabel;E&&H(function(a){var b;return babelHelpers["extends"]({},a,{CUSTOMIZE_CHAT:babelHelpers["extends"]({},a.CUSTOMIZE_CHAT,{fallbackLabel:(b=(b=D.CUSTOMIZE_CHAT)==null?void 0:b.label)!=null?b:a.CUSTOMIZE_CHAT.fallbackLabel}),INVITE_MEMBERS:babelHelpers["extends"]({},a.INVITE_MEMBERS,{fallbackLabel:(b=(b=D.INVITE_MEMBERS)==null?void 0:b.label)!=null?b:a.INVITE_MEMBERS.fallbackLabel}),SEND_WELCOME_MESSAGE:babelHelpers["extends"]({},a.SEND_WELCOME_MESSAGE,{fallbackLabel:(b=(b=D.SEND_WELCOME_MESSAGE)==null?void 0:b.label)!=null?b:a.SEND_WELCOME_MESSAGE.fallbackLabel})})});m=o({CUSTOMIZE_CHAT:((m=D.CUSTOMIZE_CHAT)==null?void 0:m.isDone)===!1,INVITE_MEMBERS:((F=D.INVITE_MEMBERS)==null?void 0:F.isDone)===!1,SEND_WELCOME_MESSAGE:((E=D.SEND_WELCOME_MESSAGE)==null?void 0:E.isDone)===!1});(D.SEND_WELCOME_MESSAGE==null||D.SEND_WELCOME_MESSAGE.isDone)&&m.current.SEND_WELCOME_MESSAGE&&(m.current.SEND_WELCOME_MESSAGE=!1,c("promiseDone")((k||(k=b("Promise"))).resolve().then(function(){H(function(a){return babelHelpers["extends"]({},a,{CUSTOMIZE_CHAT:babelHelpers["extends"]({},a.CUSTOMIZE_CHAT,{slidingUp:!0}),INVITE_MEMBERS:babelHelpers["extends"]({},a.INVITE_MEMBERS,{slidingUp:!0}),SEND_WELCOME_MESSAGE:babelHelpers["extends"]({},a.SEND_WELCOME_MESSAGE,{checked:!0,hiding:!0})})})}).then(function(){return r(q)}).then(function(){H(function(a){return babelHelpers["extends"]({},a,{CUSTOMIZE_CHAT:babelHelpers["extends"]({},a.CUSTOMIZE_CHAT,{slidingUp:!1}),INVITE_MEMBERS:babelHelpers["extends"]({},a.INVITE_MEMBERS,{slidingUp:!1}),SEND_WELCOME_MESSAGE:babelHelpers["extends"]({},a.SEND_WELCOME_MESSAGE,{stillShowing:!1})})})})));(D.INVITE_MEMBERS==null||D.INVITE_MEMBERS.isDone)&&m.current.INVITE_MEMBERS&&(m.current.INVITE_MEMBERS=!1,c("promiseDone")((k||(k=b("Promise"))).resolve().then(function(){H(function(a){return babelHelpers["extends"]({},a,{CUSTOMIZE_CHAT:babelHelpers["extends"]({},a.CUSTOMIZE_CHAT,{slidingUp:!0}),INVITE_MEMBERS:babelHelpers["extends"]({},a.INVITE_MEMBERS,{checked:!0,hiding:!0})})})}).then(function(){return r(q)}).then(function(){H(function(a){return babelHelpers["extends"]({},a,{CUSTOMIZE_CHAT:babelHelpers["extends"]({},a.CUSTOMIZE_CHAT,{slidingUp:!1}),INVITE_MEMBERS:babelHelpers["extends"]({},a.INVITE_MEMBERS,{stillShowing:!1})})})})));(D.CUSTOMIZE_CHAT==null||D.CUSTOMIZE_CHAT.isDone)&&m.current.CUSTOMIZE_CHAT&&(m.current.CUSTOMIZE_CHAT=!1,c("promiseDone")((k||(k=b("Promise"))).resolve().then(function(){H(function(a){return babelHelpers["extends"]({},a,{CUSTOMIZE_CHAT:babelHelpers["extends"]({},a.CUSTOMIZE_CHAT,{checked:!0,hiding:!0})})})}).then(function(){return r(q)}).then(function(){H(function(a){return babelHelpers["extends"]({},a,{CUSTOMIZE_CHAT:babelHelpers["extends"]({},a.CUSTOMIZE_CHAT,{stillShowing:!1})})})})));F=d("Int64Hooks").useCallbackInt64(function(){y({entryPoint:e,show:!0,source:u}),x==null?void 0:x(),c("promiseDone")((k||(k=b("Promise"))).resolve().then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield z);a=(yield s(w,a));var b=a.communityID;a=a.fbGroupId;d("GroupsCometChatsEngagementLogger").log({action:"tap",community_id:(l||(l=d("I64"))).to_string(b),entry_point:e,event:"admin_prompted_to_send_first_message",group_id:l.to_string((b=a)!=null?b:(l||(l=d("I64"))).zero),parent_surface:"thread_view",source:u,surface:v})})))},[z,e,x,y,u,v,w]);E=d("Int64Hooks").useCallbackInt64(function(){B({entryPoint:e,fbThreadId:(l||(l=d("I64"))).to_string(w),parentSurface:"thread_view",source:u,surface:v}),c("promiseDone")((k||(k=b("Promise"))).resolve().then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield z);a=(yield s(w,a));var b=a.communityID;a=a.fbGroupId;d("GroupsCometChatsEngagementLogger").log({action:"tap",community_id:(l||(l=d("I64"))).to_string(b),entry_point:e,event:"admin_prompted_to_invite_members",group_id:l.to_string((b=a)!=null?b:(l||(l=d("I64"))).zero),parent_surface:"thread_view",source:u,surface:v})})))},[z,e,B,u,v,w]);m=d("Int64Hooks").useCallbackInt64(function(){C(),c("promiseDone")((k||(k=b("Promise"))).resolve().then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield z);a=(yield s(w,a));var b=a.communityID;a=a.fbGroupId;d("GroupsCometChatsEngagementLogger").log({action:"tap",community_id:(l||(l=d("I64"))).to_string(b),entry_point:e,event:"admin_prompted_to_add_image_description",group_id:l.to_string((b=a)!=null?b:(l||(l=d("I64"))).zero),parent_surface:"thread_view",source:u,surface:v})})))},[z,e,C,u,v,w]);var I=d("Int64Hooks").useCallbackInt64(function(){c("promiseDone")((k||(k=b("Promise"))).resolve().then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield z);a=(yield s(w,a));var b=a.communityID;a=a.fbGroupId;d("GroupsCometChatsEngagementLogger").log({action:"tap",community_id:(l||(l=d("I64"))).to_string(b),entry_point:e,event:"learn_more",group_id:l.to_string((b=a)!=null?b:(l||(l=d("I64"))).zero),parent_surface:"thread_view",source:u,surface:v})})))},[z,e,u,v,w]),J=o(!1);if(["SEND_WELCOME_MESSAGE","INVITE_MEMBERS","CUSTOMIZE_CHAT"].every(function(a){return((a=G[a])==null?void 0:a.stillShowing)===!1})){J.current||(d("cometPushToast").cometPushSimpleToast(h._("__JHASH__f2-5wWTFPuQ__JHASH__")),J.current=!0);t();return null}return n.jsx("div",{ref:A,children:n.jsxs(c("MWXColumn.react"),{align:"center",spacing:8,children:[n.jsx(c("MWXColumnItem.react"),{children:n.jsx("div",{className:"xsag5q8",children:h._("__JHASH__0kUfGdYkHC8__JHASH__",[h._implicitParam("=m0",n.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body4",children:h._("__JHASH__riPn8bnEaXE__JHASH__",[h._implicitParam("=m1",n.jsx(c("MWXLink.react"),{color:"primary",href:"/help/3397387057158160/",onClick:I,children:h._("__JHASH__Ryxy068qkb0__JHASH__")}))])}))])})}),G.SEND_WELCOME_MESSAGE.stillShowing?n.jsx(c("MWXColumnItem.react"),{children:n.jsx(d("MWAdmodSuggestedActionButton.react").MWAdmodSuggestedActionButton,{checked:G.SEND_WELCOME_MESSAGE.checked,fillContainer:f,hiding:G.SEND_WELCOME_MESSAGE.hiding,icon:a?i("110396"):i("110394"),label:(t=D==null?void 0:(J=D.SEND_WELCOME_MESSAGE)==null?void 0:J.label)!=null?t:G.SEND_WELCOME_MESSAGE.fallbackLabel,onPress:F,slidingUp:G.SEND_WELCOME_MESSAGE.slidingUp})}):null,G.INVITE_MEMBERS.stillShowing?n.jsx(c("MWXColumnItem.react"),{children:n.jsx(d("MWAdmodSuggestedActionButton.react").MWAdmodSuggestedActionButton,{checked:G.INVITE_MEMBERS.checked,fillContainer:f,hiding:G.INVITE_MEMBERS.hiding,icon:a?i("110262"):i("110260"),label:(I=D==null?void 0:(A=D.INVITE_MEMBERS)==null?void 0:A.label)!=null?I:G.INVITE_MEMBERS.fallbackLabel,onPress:E,slidingUp:G.INVITE_MEMBERS.slidingUp})}):null,G.CUSTOMIZE_CHAT.stillShowing?n.jsx(c("MWXColumnItem.react"),{children:n.jsx(d("MWAdmodSuggestedActionButton.react").MWAdmodSuggestedActionButton,{checked:G.CUSTOMIZE_CHAT.checked,fillContainer:f,hiding:G.CUSTOMIZE_CHAT.hiding,icon:a?i("110412"):i("110411"),label:(t=D==null?void 0:(J=D.CUSTOMIZE_CHAT)==null?void 0:J.label)!=null?t:G.CUSTOMIZE_CHAT.fallbackLabel,onPress:m,slidingUp:G.CUSTOMIZE_CHAT.slidingUp})}):null]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useIsAdmodOnboardingEnabledForThread.react",["LSThreadBitOffset","MWLSThread","gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=d("MWLSThread").useThread(a,function(a){return d("LSThreadBitOffset").has(199,a)});return c("gkx")("10765")&&Boolean(a)}g.useIsAdmodOnboardingEnabledForThread=a}),98); __d("MAWFilePressable.react",["fbt","CometErrorBoundary.react","FBLogger","I64","MAWAttachmentBlob.react","MWChatMessageId","MWFileViewerLogger","MWXPressable.react","formatFileSize","goUriOnNewWindow","react","useMWFileOnPress"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||(i=d("react")),l=i.useCallback,m={filePressable:{overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}},n=h._("__JHASH__uiTAWyhPCWI__JHASH__");function o(a){return a.filesize==null?null:c("formatFileSize")((j||(j=d("I64"))).to_int32(a.filesize))}function p(a){var b=a.children,d=a.linkProps,e=a.onPress;a=a.testid;return k.jsx(c("MWXPressable.react"),{display:"inline",linkProps:d,onPress:e,overlayDisabled:!0,testid:void 0,xstyle:m.filePressable,children:b})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.attachmentID,e=a.children,f=a.entrypoint,g=a.linkProps,h=a.messageID,i=a.onPress;a=a.testid;a=c("useMWFileOnPress")(h,b,i,f,d("MWFileViewerLogger").generateSessionId());return k.jsx(p,{linkProps:g,onPress:a,testid:void 0,children:e})}q.displayName=q.name+" [from "+f.id+"]";function a(a){var b=a.children,e=a.entrypoint,f=a.file,g=a.onPress;a=a.testid;a=((a=f.filename)!=null?a:n).toString();var h=d("MAWAttachmentBlob.react").getAttachmentBlob(f),i=d("MWChatMessageId").makeSent((j||(j=d("I64"))).to_string(f.threadKey),f.messageId,j.to_string(f.timestampMs)),m={download:a,target:"_blank",url:h},r=o(f),s=l(function(a,b){c("FBLogger")("rpp_file_viewer","cannot_load_entry_point").mustfix(a.message||"Cannot open file viewer in "+b),c("goUriOnNewWindow")(h)},[h]);return i.type==="sent"?k.jsx(c("CometErrorBoundary.react"),{onError:s,children:k.jsx(q,{attachmentID:f.attachmentFbid,entrypoint:e,linkProps:m,messageID:i.value,onPress:g,testid:void 0,children:b({filename:a,messageID:i,size:r})})}):k.jsx(p,{linkProps:m,onPress:g,testid:void 0,children:b({filename:a,messageID:i,size:r})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWChatFile.react",["MAWFilePressable.react","MDSTextPairing.react","MWChatFilePreview.react","MWInboxInfoSharedContentQPLLogger","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={content:{color:"xzsf02u",flexGrow:"x1iyjqo2",fontWeight:"x1s688f",paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",wordBreak:"x13faqbe",$$css:!0},fileSize:{paddingTop:"x889kno",$$css:!0},root:{alignItems:"x6s0dn4",display:"x78zum5",userSelect:"x87ps6o",$$css:!0}};function l(){d("MWInboxInfoSharedContentQPLLogger").logOpenSharedContentFromThread("files")}function a(a){var b=a.file;return j.jsx(c("MAWFilePressable.react"),{entrypoint:"chat_file_v4",file:b,onPress:l,testid:void 0,children:function(a){var d=a.filename;a=a.size;return j.jsxs("div",{className:(h||(h=c("stylex")))(k.root,!1),children:[j.jsx(c("MWChatFilePreview.react"),{attachment:b,withPreview:!1}),j.jsxs("div",{className:"xzsf02u x1iyjqo2 x1s688f xz9dl7a xn6708d xsag5q8 x1ye3gou x13faqbe",children:[j.jsx(c("MDSTextPairing.react"),{headline:d,headlineLineLimit:3,level:4}),j.jsx("div",{className:"x889kno",children:j.jsx(c("MDSTextPairing.react"),{body:a,bodyColor:"secondary",bodyLineLimit:1,level:4})})]})]})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWChatStateUpdateThreadKeyDescriptorIfAuthoritative",["Int64Hooks","LSAuthorityLevel","LSIntEnum","MWChatStateActions","MWChatStateV2.react"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b,e){e===void 0&&(e={shouldClearOldHiddenTab:!1,shouldUpdateThreadType:!1});var f=d("MWChatStateV2.react").useDispatch(),g=a==null?void 0:a.threadKey,i=a==null?void 0:a.clientThreadKey,j=a==null?void 0:a.threadType,k=a==null?void 0:a.authorityLevel;d("Int64Hooks").useEffectInt64(function(){g!=null&&k!=null&&(h||(h=d("LSIntEnum"))).toNumber(k)>=c("LSAuthorityLevel").AUTHORITATIVE&&f(d("MWChatStateActions").updateThreadKeyDescriptor(b.tabId,g,i,e.shouldUpdateThreadType?j:void 0,{shouldClearOldHiddenTab:e.shouldClearOldHiddenTab}))},[b.tabId,g,i,f,k,j,e.shouldUpdateThreadType,e.shouldClearOldHiddenTab])}g["default"]=a}),98); __d("MWPChatConnectionStatusCard.react",["fbt","I64","LSIntEnum","LSInternetConnectionState","ReQL","ReQLSuspense","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||d("react");function n(a){var b=a.connectionStatus;a=a.renderWrapper;if(b==="Connected")return null;else if(b==="Disconnected")return a(h._("__JHASH__vs4VWaH-KyB__JHASH__"));else if(b==="Connecting")return a(h._("__JHASH__t43xAFuvvRz__JHASH__"));else return null}n.displayName=n.name+" [from "+f.id+"]";function a(a){a=a.renderWrapper;var b=(i||(i=c("useReStore")))(),e=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableDescending(b.table("connectivity_status")).map(function(a){return(j||(j=d("I64"))).equal(a.internetConnectionState,(k||(k=d("LSIntEnum"))).ofNumber(c("LSInternetConnectionState").CONNECTED))?"Connected":"Disconnected"})},[b],f.id+":59");return m.jsx(n,{connectionStatus:(e=e)!=null?e:"Connected",renderWrapper:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatConnectionStatusCard.react",["MWPChatConnectionStatusCard.react","MWXText.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function j(a){return i.jsx("div",{className:"xwwskcc x1q0q8m5 xso031l x1lliihq xz9dl7a xsag5q8 x2b8uid",children:i.jsx(c("MWXText.react"),{type:"meta4",children:a})})}j.displayName=j.name+" [from "+f.id+"]";function a(){return i.jsx(c("MWPChatConnectionStatusCard.react"),{renderWrapper:j})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWMDotMeReferrerContext.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));c=h;e=c.createContext;var j=c.useContext,k=e();function a(a){var b=a.children;a=a.referrer;return i.jsx(k.Provider,{value:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";function b(){return j(k)}g.MWMDotMeReferrerContextProvider=a;g.useMDotMeReferrer=b}),98); __d("MWCMAutoJoinNotifNUX.react",["fbt","CometContextualMessage.react","CometErrorBoundary.react","CometPlaceholder.react","JSResourceForInteraction","LSCommunityBitOffset","MWInboxPersistedUIState","MWXButtonGroup.react","ReQL","ReQLSuspense","react","useMWXLazyDialog","useReStore","useVisibilityObserver"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));b=j;var l=b.useRef,m=b.useState,n=c("JSResourceForInteraction")("LSMuteThreadDialog.react").__setRef("MWCMAutoJoinNotifNUX.react");function o(a){var b=a.thread;a=c("useMWXLazyDialog")(n);var e=a[0];a=m(!1);var f=a[0],g=a[1];a=d("MWInboxPersistedUIState").usePersistedUIState(0,"__MWCMAutoJoinNotifNuxBanner.showBanner__");var i=a[0],j=a[1];a=l(i);var o=l(!1);i=c("useVisibilityObserver")({onVisible:function(){o.current||(o.current=!0,j(function(a){return a+1}))}});return a.current<3&&!f?k.jsx("div",{className:"xcrg951 x7m3og9 x1vjfegm",ref:i,children:k.jsx(c("CometContextualMessage.react"),{addOnPrimary:k.jsx(c("MWXButtonGroup.react"),{primary:{label:h._("__JHASH__7NhHq3FFyid__JHASH__"),onPress:function(){e({threadKey:b.threadKey},function(){})},padding:"wide",type:"secondary"}}),body:h._("__JHASH__y4SjVH1sWqP__JHASH__"),headline:h._("__JHASH__Y1eNmRtGK12__JHASH__",[h._param("param",b.threadName)]),level:4,onClose:function(){g(!0)}})}):null}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.thread,e=(i||(i=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(e.table("community_folders")).getKeyRange(b.parentThreadKey)},[e,b.parentThreadKey],f.id+":121");if(a){a=d("LSCommunityBitOffset").has(39,a);return a?k.jsx(o,{thread:b}):null}else return null}p.displayName=p.name+" [from "+f.id+"]";function a(a){a=a.thread;return k.jsx(c("CometErrorBoundary.react"),{children:k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx(p,{thread:a})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWCMSubThreadChatTabWithSubthread.react",["BaseMultiStepContainer.react","CometPlaceholder.react","MWCMSubthreadChatTabContext.react","MWV2ChatTabHeader.react","MWV2ChatTabLoadingWithGlimmers.react","MWV2TabContainer","deferredLoadComponent","react","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useCallback,k=c("deferredLoadComponent")(c("requireDeferredForDisplay")("MWCMSubthreadThreadViewChatTab.react").__setRef("MWCMSubThreadChatTabWithSubthread.react"));function l(a,b){return j(function(d){a(function(a){var e=a.onReturn;return i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("MWV2ChatTabLoadingWithGlimmers.react"),{tab:b}),children:i.jsx(k,{onReturn:function(){e()},tab:b,threadKey:d})})})},[a,b])}function m(a){var b=a.children,c=a.pushPage;a=a.tab;c=l(c,a);return i.jsx(d("MWCMSubthreadChatTabContext.react").MWCMSubthreadChatTabContextProvider,{pushSubthreadViewPage:c,children:b})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.children,d=a.tab,e=a.thread;return i.jsx("div",{className:"xgqcy7u x1lq5wgf x2c8kfy x17adc0v xhvchuf x1jx94hy x1rgmuzj xbbk1sx",children:i.jsx(c("BaseMultiStepContainer.react"),{disableFocusContainment:!1,disableInitialAutoFocus:!1,fallback:i.jsx(c("MWV2ChatTabLoadingWithGlimmers.react"),{tab:d}),fitContentWidth:!0,children:function(a){return i.jsx(m,{pushPage:a,tab:d,children:i.jsxs(c("MWV2TabContainer"),{style:{boxShadow:"none",margin:0},tab:d,threadKey:e.threadKey,children:[i.jsx(c("MWV2ChatTabHeader.react"),{pushPage:a,tab:d,thread:e}),b]})})}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWEditThreadNameDialogTrigger.react",["JSResourceForInteraction","promiseDone","react","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;i||(i=d("react"));var j=i.useRef,k=c("JSResourceForInteraction")("MWV2ThreadNameDialog.react").__setRef("MWEditThreadNameDialogTrigger.react");function a(a){var b=a.children,d=a.threadKey;a=j(null);var e=(h||(h=c("useReStore")))(),f=c("useMWXLazyDialog")(k),g=f[0];f=function(){c("promiseDone")(e.table("threads").get(d),function(a){if(a==null)return;g({thread:a})})};return b(f,a)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXIconFriendGenericAdd",["MWXSvgIcon","SVGIcon","cr:7717","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:7717")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98); __d("MWAddMemberToGroupCircleButton.react",["MWXCircleButton.react","MWXIconFriendGenericAdd","react","useMWAddParticipantDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.label,d=a.testid;d=a.threadKey;a=a.threadType;var e=c("useMWAddParticipantDialog")(d,a);return i.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconFriendGenericAdd"),label:b,onPress:function(){return e()},size:36,testid:void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatInThreadBanner.react",["CometProfilePhoto.react","MWXPressable.react","MWXRow.react","MWXRowItem.react","MWXText.react","MWXTextPairing.react","TetraButton.react","react","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={container:{backgroundColor:"xcrg951",position:"x1n2onr6",$$css:!0},grow:{flexGrow:"x1iyjqo2",$$css:!0},image:{marginEnd:"x11i5rnm",marginLeft:null,marginRight:null,$$css:!0},infoLabel:{backgroundColor:"x1qhmfi1",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x4p5aij",paddingEnd:"x150jy0e",paddingBottom:"x1j85h84",paddingStart:"x1e558r4",textOverflow:"xlyipyv",whiteSpace:"xuxw1ft",$$css:!0},linkBanner:{width:"xh8yej3",$$css:!0},sheet:{borderBottom:"xdppsyt",$$css:!0},sheetInner:{paddingBottom:"x1a8lsjc",width:"xh8yej3",$$css:!0}};function k(a){var b=a.action;a=a.button;var d=a.ctaTitle;switch(b.type){case"link":return i.jsx(c("MWXRowItem.react"),{xstyle:j.grow,children:i.jsx(c("TetraButton.react"),{label:d,linkProps:{url:b.url},type:"secondary"})});case"action":return i.jsx(c("MWXRowItem.react"),{xstyle:j.grow,children:i.jsx(c("TetraButton.react"),{label:d,onPress:b.onPress,ref:b.contextRef,type:"secondary"})});case"popover":return i.jsx(c("MWXRowItem.react"),{xstyle:j.grow,children:b.popoverTrigger(function(a,b){return i.jsx(c("TetraButton.react"),{label:d,onPress:function(){return b()},ref:a,type:"secondary"})})});case"unimplemented":c("recoverableViolation")("In thread banner cta not implemented, CTA type: "+a.ctaType+" CTA Title: "+a.ctaTitle,"messenger_web_product");return null}}k.displayName=k.name+" [from "+f.id+"]";function a(a){var b,d=a.banner;a=a.ctaParser;var e=d.banner.iconUrl;e=e!=null?i.jsx(c("MWXRowItem.react"),{expanding:!1,children:i.jsx("div",{className:"x11i5rnm",children:i.jsx(c("CometProfilePhoto.react"),{shape:"circle",size:24,source:{uri:e}})})}):null;b=i.jsx(c("MWXRowItem.react"),{expanding:!0,children:i.jsx(c("MWXTextPairing.react"),{body:((b=d.banner.titleSectionOne)!=null?b:"")+((b=d.banner.titleSectionTwo)!=null?b:""),bodyLineLimit:1,level:4,meta:d.banner.heading,metaLineLimit:1,metaLocation:"above"})});var f=d.banner.infoLabel!=null?i.jsx(c("MWXRowItem.react"),{children:i.jsx(c("MWXText.react"),{type:"meta1",children:i.jsx("span",{className:"x1qhmfi1 x1lcm9me x1yr5g0i xrt01vj x10y3i5r x6ikm8r x10wlt62 x4p5aij x150jy0e x1j85h84 x1e558r4 xlyipyv xuxw1ft",children:d.banner.infoLabel})})}):null,g=d.leftButton,h=d.rightButton,l;if(g!=null&&h!=null)l=i.jsxs(c("MWXRow.react"),{paddingTop:8,spacing:4,wrap:"forward",children:[i.jsx(k,{action:a(d,g),button:g}),i.jsx(k,{action:a(d,h),button:h})]});else{g=(g=g)!=null?g:h;g!=null&&(l=i.jsx(c("MWXRow.react"),{paddingTop:8,children:i.jsx(k,{action:a(d,g),button:g})}))}var m=i.jsxs("div",{className:"x1a8lsjc xh8yej3",children:[i.jsxs(c("MWXRow.react"),{children:[e,b,f]}),l]});h=d.bannerAction!=null?a(d,d.bannerAction):void 0;var n;if(h!=null)switch(h.type){case"link":n=i.jsx(c("MWXPressable.react"),{expanding:!0,linkProps:{target:"_blank",url:h.url},xstyle:function(){return[j.linkBanner]},children:m});break;case"action":n=i.jsx(c("MWXPressable.react"),{expanding:!0,onPress:h.onPress,ref:h.contextRef,children:m});break;case"popover":n=h.popoverTrigger(function(a,b){return i.jsx(c("MWXPressable.react"),{expanding:!0,onPress:function(){return b()},ref:a,children:m})});break;case"unimplemented":b=(e=(g=d.bannerAction)==null?void 0:g.ctaType)!=null?e:"";b!=="member_requests_view"&&c("recoverableViolation")("In thread banner cta not implemented: "+b,"messenger_web_product");n=m;break}else n=m;return i.jsx("div",{className:"xcrg951 x1n2onr6",children:i.jsx("div",{className:"xdppsyt",children:n})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useInThreadBannerWithCta",["I64","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=function(a,b){return b!=null?a.get((i||(i=d("I64"))).to_string(b)):null};function k(a,b,c){return{banner:a,bannerAction:j(b,a.bannerCtaId),leftButton:j(b,a.cta1Id),overflowMenuActions:(c!=null?[c.cta1Id,c.cta2Id,c.cta3Id,c.cta4Id,c.cta5Id]:[]).map(function(a){return j(b,a)}).filter(Boolean),rightButton:j(b,a.cta2Id)}}function a(a,b){var e=(h||(h=c("useReStore")))(),g=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(e.table("in_thread_banner_overflow_menu")).getKeyRange(b,a.bannerId)},[e,b,a.bannerId],f.id+":67"),j=new Map(d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(e.table("in_thread_banner_ctas")).getKeyRange(a.bannerId).map(function(a){return[(i||(i=d("I64"))).to_string(a.ctaId),a]})},[e,a.bannerId],f.id+":74"));return k(a,j,g)}g.createBanner=k;g.useInThreadBannerWithCta=a}),98); __d("LSFetchBannersStoredProcedure",["LSFetchBanners"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;return c("LSFetchBanners").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("useMWLSEnsureInThreadBannerExists",["LSFactory","LSFetchBannersStoredProcedure","MWThreadKey.react","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useEffect;function a(){var a=(h||(h=c("useReStore")))(),b=d("MWThreadKey.react").useMWThreadKeyMemoizedExn();j(function(){var d=a.runInTransaction(function(a){return c("LSFetchBannersStoredProcedure")(c("LSFactory")(a),{threadKey:b})},"readwrite");c("promiseDone")(d)},[b,a])}g["default"]=a}),98); __d("LSExecuteCTA",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.filter(c.db.table(119).fetch(),function(b){return c.i64.eq(b.ctaId,a[0])}).next().then(function(a,e){var f=a.done;a=a.value;return f?0:(e=a.item,d[0]=new c.Map(),d[0].set("banner_id",e.bannerId),d[0].set("cta_type",e.ctaType),d[0].set("context_id",e.contextId),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),"in_thread_banner_execute_cta_queue",c.i64.cast([0,73]),d[1],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0])))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSExecuteCTAStoredProcedure",["LSExecuteCTA"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.ctaId;return c("LSExecuteCTA").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("useMWLSExecuteInThreadBannerCta",["LSExecuteCTAStoredProcedure","LSFactory","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useCallback;function a(){var a=(h||(h=c("useReStore")))();return j(function(b){c("promiseDone")(a.runInTransaction(function(a){return c("LSExecuteCTAStoredProcedure")(c("LSFactory")(a),{ctaId:b})},"readwrite"))},[a])}g["default"]=a}),98); __d("LSServerMutationCta",["LSIssueNewError","LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(a){return c.sortBy(c.db.table(115).fetch(),[["timestampMs","DESC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[0]=!1:(b=a.item,d[0]=b.errorShouldBeShown)})},function(a){return d[0]===!0?c.sequence([function(a){return c.localizeV2Async(c.i64.cast([0,2285622730]),void 0).then(function(a){return d[4]=a})},function(a){return c.localizeV2Async(c.i64.cast([0,1919524925]),void 0).then(function(a){return d[5]=a})},function(a){return c.storedProcedure(b("LSIssueNewError"),void 0,c.i64.cast([0,1545093]),d[4],d[5],void 0,void 0)}]):c.resolve()},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("marketplace_cta_type",a[1]),d[3]=c.toJSON(d[2]),c.storedProcedure(b("LSIssueNewTask"),"marketplace_server_mutation_cta",c.i64.cast([0,279]),d[3],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSServerMutationCtaStoredProcedure",["LSServerMutationCta"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;d[1]=b.marketplaceCtaType;return c("LSServerMutationCta").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("useMWLSMarketplaceServerMutationCta",["LSFactory","LSServerMutationCtaStoredProcedure","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useCallback;function a(){var a=(h||(h=c("useReStore")))();return j(function(b,d){c("promiseDone")(a.runInTransaction(function(a){return c("LSServerMutationCtaStoredProcedure")(c("LSFactory")(a),{marketplaceCtaType:d,threadKey:b})},"readwrite"))},[a])}g["default"]=a}),98); __d("useMWLSMarketplaceCtaParser",["CometMarketplaceConfirmMarkAsPaidDialog.entrypoint","CometMarketplaceCreateDiscountedPriceDialog.entrypoint","CometMarketplaceInboxLabelChatDialog.entrypoint","CometMarketplaceLogger","FBLogger","I64","JSResourceForInteraction","MWPActor.react","MWThreadKey.react","MWXLazyPopoverTrigger.react","ReQL","ReQLSuspense","react","recoverableViolation","useMWLSExecuteInThreadBannerCta","useMWLSMarketplaceServerMutationCta","useMWXEntryPointDialog","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useMemo;b=["marketplace_mark_as_available","marketplace_mark_as_pending","marketplace_mark_as_sold","marketplace_mark_as_sold_scaled","marketplace_mark_as_sold_with_txn_survey","marketplace_mark_as_sold_with_txn_survey_scaled","marketplace_mark_as_sold_with_select_buyer","marketplace_mark_as_sold_with_select_buyer_scaled"];var m=new Set(b);e=new Set(b.concat(["marketplace_rate_buyer","marketplace_scaled_rate_buyer","marketplace_rate_seller","marketplace_scaled_rate_seller","marketplace_report_buyer","marketplace_report_seller","marketplace_see_details","marketplace_request_payment","marketplace_send_payment","marketplace_find_similar","marketplace_more_options","marketplace_p2m_request_payment","marketplace_xma_call_function","marketplace_label_chat","marketplace_mark_as_paid","marketplace_view_profile","marketplace_create_discount","marketplace_server_mutation","marketplace_banner_open_native"]));function n(a){var b=(h||(h=c("useReStore")))(),e=d("MWPActor.react").useActor();return d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(b.table("participants"),["contactId"]).getKeyRange(a).filter(function(a){return!(i||(i=d("I64"))).equal(a.contactId,e)}).map(function(a){return(i||(i=d("I64"))).to_string(a.contactId)})},[e,a,b],f.id+":81")}function a(){var a=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),b=c("useMWLSMarketplaceServerMutationCta")(),e=c("useMWLSExecuteInThreadBannerCta")(),f=n(a),g=c("useMWXLazyDialog")(c("JSResourceForInteraction")("CometFRX_DEPRECATED.react").__setRef("useMWLSMarketplaceCtaParser")),h=g[0],j=(i||(i=d("I64"))).to_string(a);g=c("useMWXEntryPointDialog")(c("CometMarketplaceInboxLabelChatDialog.entrypoint"),{thread_id:j});var o=g[0];a=c("useMWXEntryPointDialog")(c("CometMarketplaceConfirmMarkAsPaidDialog.entrypoint"),{threadId:j});var p=a[0];g=c("useMWXEntryPointDialog")(c("CometMarketplaceCreateDiscountedPriceDialog.entrypoint"),{threadId:j});var q=g[0];return l(function(){var a=function a(g,l){var n=l.ctaId,r=l.ctaType,s=l.deeplinkUrl,t=l.webviewUrl;if(r==="marketplace_see_details"||r==="marketplace_banner_open_native"){var u;u=(u=t)!=null?u:s;if(u!=null)return{type:"link",url:u};c("recoverableViolation")("Marketplace see details cta without url","messenger_web_product")}if(r==="marketplace_view_profile"){u=(u=t)!=null?u:s;if(u!=null)return{type:"link",url:u};c("recoverableViolation")("Marketplace view profile cta without url","messenger_web_product")}if(r==="marketplace_scaled_rate_seller"&&t!=null)return{type:"link",url:t};if(r==="marketplace_more_options"&&g.overflowMenuActions.length>0)return{popoverTrigger:function(b){return k.jsx(c("MWXLazyPopoverTrigger.react"),{align:"end",popoverProps:{ctaParser:function(b){return a(g,b)},menu:g.overflowMenuActions},popoverResource:c("JSResourceForInteraction")("MWLSMarketplacePopoverMenu.react").__setRef("useMWLSMarketplaceCtaParser"),children:b})},type:"popover"};if(r==="marketplace_report_buyer"||r==="marketplace_report_seller"){if(f!=null)return{onPress:function(){return h({entryPoint:"REPORT_BUTTON",id:f,location:r==="marketplace_report_buyer"?"marketplace_messenger_report_buyer":"marketplace_messenger_report_seller"},function(){})},type:"action"};c("recoverableViolation")("Haven't implemented report buyer/seller for threads with more than 1 person","messenger_web_product")}if(m.has(r))return{onPress:function(){return e(n)},type:"action"};if(r==="marketplace_label_chat")return{onPress:function(){return o({threadID:j},function(){return e(n)})},type:"action"};if(r==="marketplace_mark_as_paid")return{onPress:function(){return p({threadID:j},function(){return e(n)})},type:"action"};if(r==="marketplace_create_discount")return{onPress:function(){d("CometMarketplaceLogger").logClick("create_discount","messenger_thread_view");return q({},function(){return e(n)})},type:"action"};if(r==="marketplace_server_mutation"){s=l.actionContentBlob;var v="";if(s!=null){t=((u=JSON.parse(s))!=null?u:{}).marketplace_cta_type;typeof t==="string"?v=t:c("FBLogger")("messenger_web_product").mustfix("blob marketplace_cta_type is not a valid string type")}return{onPress:function(){return b((i||(i=d("I64"))).of_string(j),v)},type:"action"}}return{type:"unimplemented"}};return a},[e,b,f,h,q,o,p,j])}g.marketplaceCta=e;g.useMWLSMarketplaceCtaParser=a}),98); __d("useMWLSInThreadBannerCtaParser",["useMWLSAdContextCtaParser","useMWLSMarketplaceCtaParser"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=d("useMWLSMarketplaceCtaParser").useMWLSMarketplaceCtaParser(),b=c("useMWLSAdContextCtaParser")();return function(c,e){var f=e.ctaType;if(d("useMWLSMarketplaceCtaParser").marketplaceCta.has(f))return a(c,e);else if(f==="ads_context")return b(c,e);return{type:"unimplemented"}}}g["default"]=a}),98); __d("MWLSInThreadBannerComponent.react",["MWChatInThreadBanner.react","ReQL","ReQLSuspense","react","useInThreadBannerWithCta","useMWLSEnsureAdContextExists","useMWLSEnsureInThreadBannerExists","useMWLSInThreadBannerCtaParser","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function k(a){var b=a.banner;a=a.threadKey;b=d("useInThreadBannerWithCta").useInThreadBannerWithCta(b,a);a=c("useMWLSInThreadBannerCtaParser")();return j.jsx(c("MWChatInThreadBanner.react"),{banner:b,ctaParser:a})}k.displayName=k.name+" [from "+f.id+"]";function a(a){var b=a.threadKey;c("useMWLSEnsureInThreadBannerExists")();c("useMWLSEnsureAdContextExists")();var e=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(e.table("in_thread_banner")).getKeyRange(b)},[e,b],f.id+":40");var g=a==null?void 0:a.cta1Type,i=a==null?void 0:a.cta2Type;return a==null||g==="proactive_warning_affirmative"||g==="proactive_warning_negative"||i==="proactive_warning_affirmative"||i==="proactive_warning_negative"?null:j.jsx(k,{banner:a,threadKey:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWFailChatTabOpenQPLEvent",["MWGetChatTabOpenQPLEventTrace"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){c("MWGetChatTabOpenQPLEventTrace")(a,function(a){a.failTrace(b,!0)})}g["default"]=a}),98); __d("useMAWThreadLastMessageConsistencyLoggingPerformLog",["CometDebounce","I64","Int64Hooks","MAWBridgeSendAndReceive","Promise","WATimeUtils","asyncToGeneratorRuntime","logMessengerWebFalcoEvent","promiseDone","useMWEntrypoint"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=c("CometDebounce")(c("logMessengerWebFalcoEvent")),k=5;function a(){var a=c("useMWEntrypoint")();return d("Int64Hooks").useCallbackInt64(function(e){var f=e.threadKey,g=e.threadLastActivityTimeMs,p=e.threadLastMessageTimeMs,q=e.threadType;c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var c=(i||(i=d("I64"))).compare(p,g)>-1;c={hasMissingMessage:!c,threadLastActivityTimeMs:i.to_string(g),threadLastMessageTimeMs:i.to_string(p)};try{var e=(yield (h||(h=b("Promise"))).all([d("MAWBridgeSendAndReceive").sendAndReceive("backend","getThreadLastNumMessagesByServerTs",{numMsgs:k,threadKey:(i||(i=d("I64"))).to_string(f)}),d("MAWBridgeSendAndReceive").sendAndReceive("backend","getThreadLastNumMessagesBySortOrder",{numMsgs:k,threadKey:i.to_string(f)})])),r=e[0];e=e[1];j({threadKey:f,threadType:q},"thread_and_message_list_last_activity_mismatch",a,babelHelpers["extends"]({},c,{armadilloThreadLastMsgAuthoritativeTs:l(r),armadilloThreadLastMsgTs:m(e),isLastMsgsSetConsistent:n(r,e).toString(),lastNumMsgsByServerTs:o(r),lastNumMsgsBySortOrder:o(e)}))}catch(b){j({threadKey:f,threadType:q},"thread_and_message_list_last_activity_mismatch",a,c)}})())},[a])}function l(a){var b;return((b=a[0])==null?void 0:b.serverTs)!=null?d("WATimeUtils").castUnixTimeToMillisTime(a[0].serverTs).toString():""}function m(a){return(a=(a=a[0])==null?void 0:(a=a.sortOrderMs)==null?void 0:a.toString())!=null?a:""}function n(a,b){b=b.filter(function(a){return a.serverTs!=null});return b.every(function(b,c){return b.msgId===a[c].msgId})}function o(a){a=a.map(function(a){return{msgId:a.msgId,serverTsInMillis:a.serverTs!=null?d("WATimeUtils").castUnixTimeToMillisTime(a.serverTs):"",sortOrderMs:a.sortOrderMs,type:a.type}});return JSON.stringify(a)}g["default"]=a}),98); __d("useMAWThreadLastMessageConsistencyLogging",["I64","Int64Hooks","MAWLoadingStateOutstandingOfflineQueueSelector","MAWStateContext.react","Promise","ReQL","asyncToGeneratorRuntime","promiseDone","react","useMAWThreadLastMessageConsistencyLoggingPerformLog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=(k||d("react")).useRef;function a(a){var e=(j||(j=c("useReStore")))(),f=d("MAWStateContext.react").useMAWSelector(d("MAWLoadingStateOutstandingOfflineQueueSelector").outstandingOfflineQueueSelector()),g=c("useMAWThreadLastMessageConsistencyLoggingPerformLog")(),k=l(null);d("Int64Hooks").useEffectInt64(function(){c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var c=(yield (h||(h=b("Promise"))).all([d("ReQL").firstAsync(d("ReQL").fromTableDescending(e.table("threads")).getKeyRange(a)),d("ReQL").firstAsync(d("ReQL").fromTableDescending(e.table("messages")).getKeyRange(a)),d("ReQL").toArrayAsync(d("ReQL").fromTableDescending(e.table("reactions")).getKeyRange(a).take(20))])),j=c[0],l=c[1];c=c[2];if(l==null||j==null)return;if(f)return;if(k.current===a)return;k.current=a;c=c.reduce(function(a,b){return(i||(i=d("I64"))).max(a,(a=b.reactionCreationTimestampMs)!=null?a:(i||(i=d("I64"))).zero)},(i||(i=d("I64"))).zero);g({threadKey:j.threadKey,threadLastActivityTimeMs:j.lastActivityTimestampMs,threadLastMessageTimeMs:i.max(l.timestampMs,c),threadType:j.threadType})})())},[e,f,g,a])}g["default"]=a}),98); __d("MDCAction",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum")({IMPRESSION:1,TAP:2,FOCUS:3,UNFOCUS:4,SCROLL:5});c=a;f["default"]=c}),66); __d("MDCClientEvent",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum")({ADD_AS_ADMIN_INITATION:1,BLOCK_FROM_CHAT:2,BLOCK_MESSAGES_AND_CALLS:3,BLOCK_MESSAGES_AND_CALLS_FAILURE:4,BLOCK_MESSAGES_AND_CALLS_SUCCESS:5,BLOCK_ON_FACEBOOK:6,BLOCK_ON_FB_FAILURE:7,BLOCK_ON_FB_SUCCESS:8,BLOCK_USER_INITIATION:9,CHAT_SETUP_SELECT_LINK_RECIPIENT:10,CHAT_SETUP_SHEET_RENDERED:11,CHAT_SETUP_UNSELECT_LINK_RECIPIENT:12,CHAT_SHARE_LINK_SHEET_RENDERED:13,CONFIRM_PUBLIC_CHAT_ACKNOWLEDGEMENT:14,CREATOR_NUX_SHEET_RENDERED:15,DISCOVER_GROUP_CHAT:16,EDIT_CHAT:17,EDIT_CHAT_DESCRIPTION:18,EDIT_CHAT_FAILURE:19,EDIT_CHAT_NAME:20,EDIT_CHAT_SUCCESS:21,EDIT_MEMBER_REQUESTS:22,EVENT_COPY_LINK:23,EVENT_REMINDER_QP_CLICK:24,EVENT_REMINDER_QP_IMPRESSION:25,EVENT_REMINDER_XMA_IMPRESSION:26,EVENT_REMINDER_XMA_TAP:27,EVENT_SHARE_LINK:28,GROUP_CHAT_BUTTON_IMPRESSION:29,INVITE_LINK_IMPRESSION:30,INVITE_LINK_TAPPED:31,JOIN_CHAT_CLOSED:32,JOIN_CHAT_CONFIRM:33,JOIN_CHAT_CONSENT_CONFIRM:34,JOIN_CHAT_INITIATION:35,JOIN_CHAT_SHEET_RENDERED:36,MEMBER_REQUEST_JOIN_APPROVED:37,MEMBER_REQUEST_JOIN_DENIED:38,REMOVE_FROM_CHAT:39,REMOVE_FROM_CHAT_FAILURE:40,REMOVE_FROM_CHAT_INITIATION:41,REMOVE_FROM_CHAT_SUCCESS:42,REPORT_CHAT_TO_ADMIN_FAILURE:43,REPORT_CHAT_TO_ADMIN_INITIATION:44,REPORT_CHAT_TO_ADMIN_SUCCESS:45,REPORT_MESSAGE_TO_ADMINS:46,REPORT_MESSAGE_TO_ADMINS_FAILURE:47,REPORT_MESSAGE_TO_ADMINS_INITIATION:48,REPORT_MESSAGE_TO_ADMINS_SUCCESS:49,REQUEST_JOIN_CHAT_ERROR:50,REQUEST_JOIN_CHAT_SUCCESS:51,REQUEST_JOIN_GROUP_CHAT:52,REQUIRE_APPROVAL_TO_JOIN_DISABLED:53,REQUIRE_APPROVAL_TO_JOIN_ENABLED:54,SET_CHAT_CREATION_PHOTO:55,SET_CHAT_PHOTO:56,SET_GROUP_TYPE:57,THREAD_CREATE_ATTEMPT:58,THREAD_CREATE_ERROR:59,THREAD_CREATE_SUCCESS:60,THREAD_SETTINGS_RENDERED:61,UNBLOCK_FROM_CHAT:62,UNDO_APPROVE_MEMBER_REQUESTS:63,UNDO_DENY_MEMBER_REQUESTS:64,VIEW_ADMIN_MEMBERS:65,VIEW_ALL_MEMBERS:66,VIEW_EVENT:67,VIEW_MEMBER_REQUESTS:68,VIEW_USER_FB_PROFILE:69,VIEW_USER_PROFILE:70,BAN_FROM_CHAT_INITIATION:71,BAN_FROM_CHAT_SUCCESS:72,BAN_FROM_CHAT_FAILURE:73,UNBAN_FROM_CHAT_INITIATION:74,UNBAN_FROM_CHAT_SUCCESS:75,UNBAN_FROM_CHAT_FAILURE:76,COPY_LINK:77,SHARE_LINK_TO_FB_INITIATION:78,SHARE_LINK_TO_FB_CONFIRM:79,SUBMIT_FEEDBACK_INITATION:80,SUBMIT_FEEDBACK:81,SUBMIT_FEEDBACK_FAILURE:82,SUBMIT_FEEDBACK_SUCCESS:83,BAN_FROM_CHAT:84,ADD_THREAD_PHOTO:85,CHANGE_THREAD_PHOTO:86,SHARE_LINK_SENT:87,REMOVE_THREAD_PHOTO:88,INSTALL_MESSENGER_UPSELL_VIEWED:89,DOWNLOAD_MESSENGER_BUTTON_CLICKED:90,POST_XMA_VIEWED:91,THREAD_JOIN:92,SHARE_TO_FACEBOOK_BUTTON_CLICKED:93,SHARE_TO_FACEBOOK_BOTTOMSHEET_VIEWED:94,CHAT_SHARED_TO_FACEBOOK:95,THREAD_OPEN:96,CHAT_RENDERED_IN_MIB_INBOX:97,REPORT_MESSAGE_TO_META:98,ADMIN_REMOVE_MESSAGE:99,REMOVE_MESSAGE:100,MESSAGE_SEND:101,DELETE_CHAT:102,LEAVE_CHAT:103,MUTE_CHAT:104,UNMUTE_CHAT:105,PUBLIC_CHAT_LINK_ATTACHMENT_RENDERED:106,PUBLIC_CHAT_LINK_ATTACHMENT_TAPPED:107,NOTIF_IMPRESSION:108,NOTIF_CLICKED:109,REPORT_CHAT_TO_FACEBOOK:110,REPORTED_CONTENTS_RENDERED:111,NOTIFICATION_CONTROL_RENDERED:112,NOTIFICATION_CONTROL_HIGHLIGHTS_SELECTED:113,NOTIFICATION_CONTROL_ALL_SELECTED:114,NOTIFICATION_CONTROL_MENTIONS_AND_REPLIES_SELECTED:115,NOTIFICATION_CONTROL_NONE_SELECTED:116,NOTIFICATION_CONTROL_MUTE_SELECTED:117,NOTIFICATION_CONTROL_UNMUTE_SELECTED:118,USER_PROFILE_BOTTOMSHEET:119,MESSAGE_USER:120,BLOCKED_USER_WARNING_RENDERED:121,BLOCKED_USER_WARNING_CONFIRM:122,BLOCKED_USER_WARNING_LEAVE:123,PUSH_NOTIFICATION_MESSAGE_RECEIVED_RENDERED:124,PUSH_NOTIFICATION_MESSAGE_RECEIVED_TAPPED:125,NOTIF_SENT:126,NOTIF_CONVERTED:127,OPEN_INVITE_LINK_VIEW:128,INVITE_SCREEN_RENDERED:129,INVITE_BUTTON_TAPPED:130,SEND_BUTTON_TAPPED:131,VIEW_CHAT_BUTTON_TAPPED:132,PROMOTE_ADMIN_BUTTON_TAPPED:133,DEMOTE_ADMIN_BUTTON_TAPPED:134,ADMIN_LIMIT_REACHED_IMPRESSION:135,PROMOTE_ADMIN_FAIL_IMPRESSION:136,DEMOTE_ADMIN_FAIL_IMPRESSION:137,FIRST_CREATE_BOTTOMSHEET_RENDERED:138,CREATE_CHANNEL_SCREEN_RENDERED:139,SHOW_ON_PROFILE_TOGGLE:140,JOIN_APPROVAL_TOGGLE:141,NAME_TEXT_INPUT:142,CHANGE_IMAGE_TAPPED:143,THREAD_CREATE:144,DISMISS_BUTTON_TAPPED:145,SHARE_TO_FEED_SCREEN_RENDERED:146,SHARE_TO_FEED_SKIPPED:147,SHARE_TO_FEED_BUTTON_TAPPED:148,POST_TEXT_INPUT:149,INVITE_TO_CHAT_SCREEN_RENDERED:150,COPY_LINK_TAPPED:151,DONE_BUTTON_TAPPED:152,INVITE_SENT_SUCCESS:153,SEARCH_BAR_INPUT_FOCUS:154,SEARCH_BAR_INPUT_UNFOCUS:155,SHOW_ON_PROFILE_RENDERED:156,SHOW_ON_PROFILE_TAPPED:157,PRIMARY_PROFILE_QP_RENDERED:158,CREATE_CHANNEL_TAPPED:159,NOT_NOW_TAPPED:160,PROFILE_ABOUT_CHANNEL_SECTION_RENDERED:161,VIEW_PINNED_CHANNELS:162,UNDO_BUTTON_TAPPED:163,INVITE_SENT_FAILED:164,INVITE_ACCEPT:165,INVITE_DECLINE:166,DIRECT_INVITE_NOTIFICATION_RENDERED:167,DIRECT_INVITE_SHEET_RENDERED:168,DIRECT_INVITE_BULK_SENT_SUCCESS:169,DIRECT_INVITE_BULK_SENT_FAIL:170,CHAT_INVITE_SHEET_RENDERED:171,DIRECT_INVITE_SENT_SUCCESS:172,DIRECT_INVITE_SENT_FAIL:173,PAUSE_CHANNEL:174,RESUME_CHANNEL:175,FEATURED_UNIT_PROFILE_QP_RENDERED:176,PIN_CARD_TAPPED:177,PIN_FEATURED_CARD_SUCCESS:178,PIN_FEATURED_CARD_FAILURE:179,CHANNELS_FEATURED_UNIT_RENDERED:180,CHANNELS_FEATURED_UNIT_SEE_ALL_TAPPED:181,RENDER_CHAT_INVITE_SHEET:182,RENDER_INVITE_PRESET_LIST:183,INVITE_PRESET_LIST_RENDERED:184,CREATE_POST_BUTTON_TAPPED:185,PUBLIC_CHAT_BUTTON_IMPRESSION:186,RENDER_CHANNEL_PAUSE_CONFIRMATION_DIALOG:187,RENDER_CHANNEL_RESUME_CONFIRMATION_DIALOG:188,DISMISS_PAUSE_CHANNEL_DIALOG:189,DISMISS_RESUME_CHANNEL_DIALOG:190,CANCEL_RESUME_CHANNEL:191,CANCEL_PAUSE_CHANNEL:192,DEEPLINK_LANDING_PAGE_RENDERED:193,DIRECT_INVITE_SHEET_SKIPPED:194,CREATE_POST_BUTTON:195,CYSC_QP_CARD_IMPRESSION:196,CONVO_PROMPT_REMOVED:197,CONVO_PROMPT_RENDERED:198,CONVO_PROMPT_SCROLLED:199,CONVO_PROMPT_SENT:200,THREAD_PREVIEW_OPEN:201,NON_MEMBER_COMPOSER_SHOWN:202,PIN_FEATURED_CARD_TOGGLE:203,CHANNELS_TAB_ITEM_RENDERED:204,CHANNELS_TAB_ITEM_TAPPED:205,PROFILE_CHANNELS_TAB_RENDERED:206,PIN_TO_INBOX_SUCCESS:207,PIN_TO_INBOX_FAILURE:208,UNPIN_FROM_INBOX_SUCCESS:209,UNPIN_FROM_INBOX_FAILURE:210,PINNED_THREAD_RENDERED:211,CREATE_CHANNEL_OPTION_RENDERED:212,KEEP_EDITING_BUTTON_TAPPED:213,DIRECTORY_FEED_QP_IMPRESSION:214,DIRECTORY_RECOMMENDATION_LIST_IMPRESSION:215,DIRECTORY_FEED_SEE_ALL_TAPPED:216,DIRECTORY_FEED_QP_PREVIEW_TAPPED:217,INVITED_AND_DIRECTORY_SCREEN_IMPRESSION:218,INVITED_CHANNELS_SCREEN_IMPRESSION:219,INVITED_AND_DIRECTORY_SCREEN_TAP_SEE_ALL:220,DIRECTORY_FEED_QP_DISMISS_BUTTON_TAPPED:221});c=a;f["default"]=c}),66); __d("MDCParentSurface",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum")({MESSENGER:1,FACEBOOK:2,FACEBOOK_NEWSFEED:3,NOTIF_JEWEL:4,CHAT_SETUP:5,THREAD_VIEW:6,THREAD_DETAILS:7,CHAT_INVITE_SHEET:8,DM_CREATION_OMNIPICKER:9,CREATE_PUBLIC_CHAT_DIALOG:10,CHAT_SHARE_LINK:11,MESSENGER_INBOX:12,LONG_PRESS_MENU:13,SWIPE_LEFT_MENU:14,CHANNEL_DELETE_SHEET:15,EDIT_PUBLIC_CHAT_DIALOG:16});c=a;f["default"]=c}),66); __d("MWLogSocialChannelFalcoEvent",["requireDeferred","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("MessengerDiscoverableChatClientEventsFalcoEvent").__setRef("MWLogSocialChannelFalcoEvent"),i=new Set([186,180]),j=5*60*1e3,k=null,l=null;function a(a){var b=a.action,d=b===void 0?2:b,e=a.clientExtras,f=a.event;b=a.parentSurface;var g=b===void 0?1:b,m=a.source,n=a.surface,o=a.targetFbids,p=a.threadFbid,q=a.userId;h.onReady(function(a){var b=Date.now();(k==null||l!=null&&b-l>j||i.has(f))&&(k=c("uuidv4")());l=b;a.log(function(){return{action:d,event:f,extra:e,parent_surface:g,session_id:k,source:m,surface:n,target_fbids:o,thread_fbid:p,user_id:q}})})}g.logSocialChannelFalcoEvent=a}),98); __d("useMessengerWebThreadImpressionLogging",["CometDebounce","I64","Int64Hooks","LSMessagingThreadTypeUtil","MAWThreadCutover","MWEncryptedBackupsFirstRestoreUpsellTime","MWLogBroadcastChannelFalcoEvent","MWLogSocialChannelFalcoEvent","MWPActor.react","MWV2IsTabFocusedContext.react","gkx","logMessengerWebFalcoEvent","requireDeferred","useC4GEngagementSurface","useMWEntrypoint"],(function(a,b,c,d,e,f,g){"use strict";var h,i=c("requireDeferred")("MessageThreadEventsFalcoEvent").__setRef("useMessengerWebThreadImpressionLogging"),j=c("gkx")("571")?3:11,k=c("gkx")("571")?1:2,l=c("CometDebounce")(c("logMessengerWebFalcoEvent"));function a(a){var b=a.groupThreadSubtype,e=a.threadKey,f=a.threadType,g=d("MWV2IsTabFocusedContext.react").useIsTabFocused(),m=c("useMWEntrypoint")();a=c("useC4GEngagementSurface")();var n=d("MWPActor.react").useActor(),o=d("MAWThreadCutover").useIsCutoverOpenThread(e),p=d("MAWThreadCutover").useGetHasUserRestoredBefore();d("Int64Hooks").useEffectInt64(function(){if(g){l({threadKey:e,threadType:f},"thread_impression",m,{eb_has_user_restored_before:p.toString(),eb_session_identifier:d("MWEncryptedBackupsFirstRestoreUpsellTime").getFirstRestoreUpsellTime()});var a=d("LSMessagingThreadTypeUtil").isSecure(f);i.onReady(function(c){return c.log(function(){return{entry_point:m,event_type:"thread_impression_event",group_thread_subtype:b==null?void 0:(h||(h=d("I64"))).to_string(b),is_cutover:o,thread_id:(h||(h=d("I64"))).to_string(e),thread_type:h.to_string(f),transport_type:a?"ACT":"MI"}})});d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(f)&&d("MWLogBroadcastChannelFalcoEvent").logBroadcastChannelFalcoEvent({action:2,event:d("LSMessagingThreadTypeUtil").isUnjoinedDiscoverablePublicBroadcastChannel(f)?136:1,parentSurface:j,source:62,surface:7,threadFbid:e});(d("LSMessagingThreadTypeUtil").isSocialChannelUnjoined(f)||d("LSMessagingThreadTypeUtil").isSocialChannel(f))&&d("MWLogSocialChannelFalcoEvent").logSocialChannelFalcoEvent({action:1,event:d("LSMessagingThreadTypeUtil").isSocialChannelUnjoined(f)?201:96,parentSurface:k,source:46,surface:13,threadFbid:(h||(h=d("I64"))).to_string(e),userId:h.to_string(n)})}},[e,m,f,g,n,b,o,a,p])}g["default"]=a}),98); __d("useThreadLastMessageTimeMs",["ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=(h||(h=c("useReStore")))();return d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableDescending(b.table("messages")).getKeyRange(a).map(function(a){return a.timestampMs})},[b,a],f.id+":26")}g["default"]=a}),98); __d("MWMessageElementRefList",[],(function(a,b,c,d,e,f){"use strict";function a(){var a=new Map(),b=new Map(),c={contents:void 0};return{get:function(b,d){var e=a.get(b);if(e==null){c.contents=[b,d];return}return d(e)},set:function(d){var e=b.get(d);if(e!=null)return e;e=function(b){if(b==null){a["delete"](d);return}a.set(d,b);if(c.contents!=null&&c.contents[0]===d){var e=c.contents;e[0];e=e[1];e(b);c.contents=void 0;return}};b.set(d,e);return e}}}f["default"]=a}),66); __d("isEventSupported",["fbjs/lib/ExecutionEnvironment"],(function(a,b,c,d,e,f,g){"use strict";var h;c("fbjs/lib/ExecutionEnvironment").canUseDOM&&(h=document.implementation&&document.implementation.hasFeature("","")!==!0);function a(a,b){if(!c("fbjs/lib/ExecutionEnvironment").canUseDOM||b===!0&&!("addEventListener"in document))return!1;b="on"+a;var d=b in document;if(!d){var e=document.createElement("div");e.setAttribute(b,"return;");d=typeof e.getAttribute(b)==="function"}!d&&h&&a==="wheel"&&(d=document.implementation.hasFeature("Events.wheel","3.0"));return d}g["default"]=a}),98); __d("MWChatConversationScroller.react",["BaseScrollableAreaContext","CometThrottle","ExecutionEnvironment","isEventSupported","react","useLayoutEffect_SAFE_FOR_SSR"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;e=b.forwardRef;var k=b.useCallback,l=b.useContext,m=b.useEffect,n=b.useImperativeHandle,o=b.useLayoutEffect,p=b.useMemo,q=b.useRef;function r(a,b){a=a!=null?a:20;if(b==null)return!1;else return b.scrollTop+b.clientHeight>=b.scrollHeight-a}function s(a,b){a=a!=null?a:20;if(b==null)return!1;else return b.scrollTop<=a}var t=(h||(h=c("ExecutionEnvironment"))).canUseDOM?document.body.style.overscrollBehavior==null&&((d=document.body)==null?void 0:d.style.scrollBoundaryBehavior)==null:!1;function a(a,b){var d=a.boundingClientRectRef,e=a.children,f=a.dispatch,g=a.hasMoreAfter,h=a.scrollPositionRef;a=a.onScroll;var i=a!=null?a:function(a){},u=q(f),v=q(null),w=k(function(a){v.current=a;if(d!=null){d.current=a!=null?a.getBoundingClientRect():void 0;return}},[d]);m(function(){u.current=f});var x=function(a,b){b=v.current;if(b!=null){b.scrollTop=a;return}},y=function(a){a===void 0&&(a=!1);var b=v.current;if(b!=null)return x(b.scrollHeight,a)},z=function(a,b){var c=v.current;if(c!=null)return x(c.scrollHeight-(a+c.clientHeight),b)},A=q(!1);A.current=g;var B=function(){var a=h.current,b=v.current;b=b!=null?b.scrollHeight-(b.scrollTop+b.clientHeight):void 0;var c=r(void 0,v.current),d=s(void 0,v.current);h.current=c?A.current?{type:"Island"}:{type:"Bottom"}:b!=null?d?{type:"Top",value:b}:{type:"Between",value:b}:{type:"Bottom"};c=h.current;d=0;var e=0;switch(a.type){case"Bottom":d=1;break;case"Top":case"Between":e=2;break;case"Island":break}if(e===2)switch(c.type){case"Top":d=1;break;case"Between":break;case"Bottom":case"Island":u.current("ScrollToBottom");break}if(d===1){e=0;switch(a.type){case"Top":break;case"Bottom":case"Between":e=2;break}e===2&&c.type==="Top"&&u.current("ScrollToTop")}return i(b)},C=function(a){if(t){var b=a.deltaY>0,c=a.deltaY<0;(b&&r(0,v.current)||c&&s(0,v.current))&&a.preventDefault()}return B()},D=function(a){var b=c("isEventSupported")("mousewheel")?"mousewheel":c("isEventSupported")("wheel")?"wheel":"DOMMouseScroll",d=function(b,c){a.addEventListener(b,c,{passive:!0});return function(){return a.removeEventListener(b,c,{passive:!0})}},e=function(){return a.addEventListener(b,C,{passive:!t})},f=function(){return a.removeEventListener(b,C,{passive:!t})},g=d("mouseenter",e),h=d("mouseleave",f);e=c("CometThrottle")(B,50,{trailing:!0});var i=d("scroll",e),j=d("mouseup",B),k=d("mousedown",B);return function(){f();i();g();h();k();return j()}};m(function(){var a=v.current;if(a==null)return;var b=D(a);return function(){return b()}},[]);o(function(){var a=v.current;!(a==null)&&a.clientHeight>0&&Math.abs(a.clientHeight-a.scrollHeight)<20&&u.current("ContentDoesNotFillContainer")});c("useLayoutEffect_SAFE_FOR_SSR")(function(){var a=h.current;switch(a.type){case"Bottom":y();break;case"Top":z(a.value,!1);break;case"Between":case"Island":break}});c("useLayoutEffect_SAFE_FOR_SSR")(function(){var a=h.current;switch(a.type){case"Bottom":y();break;case"Top":case"Between":z(a.value,!1);break;case"Island":break}},[]);var E=l(c("BaseScrollableAreaContext")),F=p(function(){return{getDOMNode:function(){return v.current}}},[]);a=p(function(){return E.concat([F])},[F,E]);n(b,function(){return{getScroller:function(){return w},isContainerFilled:function(){var a=v.current;if(a==null)return!0;else return!(a.clientHeight>0&&Math.abs(a.clientHeight-a.scrollHeight)<20)},scrollElementIntoViewIfNeeded:function(a){var b=v.current;if(b==null)return;var c=a.getBoundingClientRect();b=b.getBoundingClientRect();c=c.top;b=b.top;if(c<=b){a.scrollIntoView();return}},scrollToBottom:function(){h.current={type:"Bottom"};return y()},scrollToElement:function(a,b){var c=v.current;if(c==null)return;a.scrollIntoView();a=a.getBoundingClientRect();var d=c.getBoundingClientRect();a=a.top;d=d.top;if(a<=d){c.scrollBy(0,-b|0);return B()}},scrollToPosition:z}},[]);return j.jsx(c("BaseScrollableAreaContext").Provider,{children:j.jsx("div",{className:"x78zum5 xdt5ytf x1iyjqo2 x6ikm8r x1odjw0f xish69e x16qrkmw","data-release-focus-from":"CLICK",ref:w,tabIndex:-1,children:e}),value:a})}a.displayName=a.name+" [from "+f.id+"]";b=e(a);g["default"]=b}),98); __d("MWV2MessageScroller.react",["LSIntEnum","LSMailboxMessagesRangeQueryDirection","MWChatConversationScroller.react","react","useMWMarkThreadAsReadWhenNewMessagesArrive"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react")),k=h.useCallback;function a(a){var b=a.markThreadAsRead,e=a.children,f=a.fetchMore,g=a.hasMoreAfter,h=a.hasMoreBefore,l=a.scrollerRefs,m=a.thread;a=a.onScroll;a=a!=null?a:function(){};var n=k(function(){var a;return((a=l.scrollPositionRef.current)==null?void 0:a.type)==="Bottom"},[l]),o=k(function(){return!1}),p=c("useMWMarkThreadAsReadWhenNewMessagesArrive")(m,b,n,o);return j.jsx(c("MWChatConversationScroller.react"),{dispatch:function(a){switch(a){case"ContentDoesNotFillContainer":if(h)return f((i||(i=d("LSIntEnum"))).ofNumber(c("LSMailboxMessagesRangeQueryDirection").BEFORE));else return;case"ScrollToBottom":if(g)return f((i||(i=d("LSIntEnum"))).ofNumber(c("LSMailboxMessagesRangeQueryDirection").AFTER));else return p();case"ScrollToTop":return f((i||(i=d("LSIntEnum"))).ofNumber(c("LSMailboxMessagesRangeQueryDirection").BEFORE))}},hasMoreAfter:g,onScroll:a,ref:l.scrollerRef,scrollPositionRef:l.scrollPositionRef,children:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWV2ConversationScrollerRefs",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useMemo,j=b.useRef;function a(){var a=j(null),b=j({type:"Bottom"});return i(function(){return{scrollerRef:a,scrollPositionRef:b}},[])}g["default"]=a}),98); __d("useMWChatLoadMoreItemsIncrementally",["I64","LSIntEnum","LSMailboxMessagesRangeQueryDirection","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;b=h||d("react");var k=b.useCallback,l=b.useMemo,m=b.useRef,n=b.useState,o={contents:void 0};function p(){var a;o.contents==null&&(o.contents=window.document.documentElement.style.overflowAnchor!=null);return(a=o.contents)!=null?a:!1}function a(a,b,e,f,g,h){a=a!=null?a:!1;var o=b!=null?b:!0;b=e!=null?e:{type:"Bottom"};e=a||!p();var q=f.length,r;switch(b.type){case"Top":case"Between":r=b.value>=200;break;case"Bottom":case"Island":r=!1;break}a=n(function(){if(r)return q;return o?window.screen.availHeight<1200?20:40:10});var s=a[0],t=a[1];b=l(function(){return f.slice(-s)},[f,s]);var u=m(s);a=k(function(a){if(!(i||(i=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSMailboxMessagesRangeQueryDirection").BEFORE)))throw c("unrecoverableViolation")("Message fetch direction must be 'before'","messenger_web_product");if(u.current+15<=q){u.current+=15;return t(function(){return u.current})}else{g((j||(j=d("LSIntEnum"))).ofNumber(c("LSMailboxMessagesRangeQueryDirection").BEFORE));if(u.current1)return a.every(u)?h._("__JHASH__mLcLGv6kQjM__JHASH__",[h._param("count of images, greater than or equal to 2",String(a.length))]):null;a=a[0];var i=a.accessibilitySummaryText,k=a.attachmentType,o=a.filename;a=a.titleText;if((l||(l=d("I64"))).equal(k,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))||(l||(l=d("I64"))).equal(k,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE)))return n.jsxs(n.Fragment,{children:[h._("__JHASH__CsGZwNmXaIO__JHASH__"),a!=null?h._("__JHASH__tk2ipgOtBcG__JHASH__",[h._param("title of image",a)]):null]});else if((l||(l=d("I64"))).equal(k,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)))return h._("__JHASH__0rNBSLJGEDI__JHASH__");else if((l||(l=d("I64"))).equal(k,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO)))return h._("__JHASH__456qLg2FzOf__JHASH__");else if((l||(l=d("I64"))).equal(k,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").STICKER)))return n.jsxs(n.Fragment,{children:[h._("__JHASH__0TMOPValyqo__JHASH__"),i!=null&&i!==""?h._("__JHASH__z9hWNeIESIs__JHASH__",[h._param("title of sticker",i)]):null]});else if((l||(l=d("I64"))).equal(k,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA)))return h._("__JHASH__sBZdmUKngae__JHASH__");else if((l||(l=d("I64"))).equal(k,(m||(m=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").FILE)))return n.jsxs(n.Fragment,{children:[h._("__JHASH__3lrC4KV5Ban__JHASH__"),o!=null?h._("__JHASH__120leC-bvKi__JHASH__",[h._param("name of file",o)]):null]});else return h._("__JHASH__PpAv-1cm1Lu__JHASH__")}v.displayName=v.name+" [from "+f.id+"]";function w(a){var e=a.message,f=a.participant,g=a.sender;a=a.threadType;var h=r(!1),i=h[0],j=h[1];p(function(){var a=c("setTimeout")(function(){return j(!0)},100);return function(){c("clearTimeout")(a)}},[]);if(!i)return null;h=d("LSMessagingThreadTypeUtil").isSecure(a);i=e.text!=null&&b("cr:2472")!=null?b("cr:2472").unvault(e.text):e.text;return n.jsxs(c("CometAccessibilityAnnouncementForDynamicContent.react"),{children:[n.jsx(t,{message:e,participant:f,sender:g}),i!=null?i:null,c("MWPMessageHasAttachment")(e)&&!h?n.jsx(v,{message:e}):null]})}w.displayName=w.name+" [from "+f.id+"]";function x(a,e){var f=(j||(j=c("useReStore")))(),g=d("MWPActor.react").useActor(),h=q(d("ServerTime").getMillis()),k=e.threadKey;d("Int64Hooks").useEffectInt64(function(){return d("ReQL").fromTableAscending(f.table("messages")).getKeyRange(k).subscribe(function(e,g){if(g.operation!=="add")return;var j=g.value;(l||(l=d("I64"))).to_float(j.timestampMs)>h.current&&(h.current=(l||(l=d("I64"))).to_float(j.timestampMs),c("promiseDone")((i||(i=b("Promise"))).all([d("ReQL").firstAsync(d("ReQL").fromTableAscending(f.table("contacts")).getKeyRange(j.senderId)),d("ReQL").firstAsync(d("ReQL").fromTableAscending(f.table("participants")).getKeyRange(j.threadKey,j.senderId))]),function(b){var c=b[0];b=b[1];if(c!=null)return a(j,c,b)}))})},[f,g,a,k])}function a(a){a=a.thread;var b=a.threadType,e=r(null),f=e[0],g=e[1];e=o(function(a,e,f){if((l||(l=d("I64"))).equal(a.authorityLevel,(m||(m=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE)))return g(function(){return n.jsx(w,{message:a,participant:f,sender:e,threadType:b})})},[b]);x(e,a);return f}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LsBotComposerQuickReplyDisplayedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743836");b=d("FalcoLoggerInternal").create("ls_bot_composer_quick_reply_displayed",a);e=b;g["default"]=e}),98); __d("MWV2ThreadNullstatePill.react",["MWXPressable.react","react","useCurrentDisplayMode"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={dark_mode_legible_text_pill:{alignItems:"x6s0dn4",backgroundColor:"xmd5bsh",borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",boxShadow:"x1vnslfi",boxSizing:"x9f619",color:"xi81zsa",display:"x3nfvp2",fontSize:"x6prxxf",fontWeight:"xo1l8bm",justifyContent:"xl56j7k",marginTop:"xr9ek0c",marginEnd:"x1emribx",marginBottom:"xjpr12u",marginStart:"x1i64zmx",overflowWrap:"x1mzt3pk",paddingStart:"x1ye3gou",paddingLeft:null,paddingRight:null,paddingEnd:"xn6708d",paddingTop:"x123j3cw",paddingBottom:"xs9asl8",wordBreak:"x13faqbe",$$css:!0},pill:{alignItems:"x6s0dn4",backgroundColor:"xcrg951",borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",boxShadow:"x1vnslfi",boxSizing:"x9f619",color:"xxq4lyh",display:"x3nfvp2",fontSize:"x6prxxf",fontWeight:"xo1l8bm",justifyContent:"xl56j7k",marginTop:"xr9ek0c",marginEnd:"x1emribx",marginBottom:"xjpr12u",marginStart:"x1i64zmx",overflowWrap:"x1mzt3pk",paddingStart:"x1ye3gou",paddingLeft:null,paddingRight:null,paddingEnd:"xn6708d",paddingTop:"x123j3cw",paddingBottom:"xs9asl8",wordBreak:"x13faqbe",$$css:!0}};function a(a){var b=a.children;a=a.onClick;var d=c("useCurrentDisplayMode")()==="dark";return i.jsx(c("MWXPressable.react"),{onPress:a,overlayDisabled:!0,xstyle:function(){return[d?j.dark_mode_legible_text_pill:j.pill]},children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LsBotComposerQuickReplyTappedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743837");b=d("FalcoLoggerInternal").create("ls_bot_composer_quick_reply_tapped",a);e=b;g["default"]=e}),98); __d("LsBusinessWelcomePageGetStartedButtonTappedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743846");b=d("FalcoLoggerInternal").create("ls_business_welcome_page_get_started_button_tapped",a);e=b;g["default"]=e}),98); __d("useMWV2SendIcebreakerMessage",["I64","Int64Hooks","LSFactory","LSIntEnum","LSMailboxType","LSNullstateCTAType","LSOptimisticSendMessageV2StoredProcedure","LSShape","LSThreadAttributionTypeUtil","LsBotComposerQuickReplyTappedFalcoEvent","LsBusinessWelcomePageGetStartedButtonTappedFalcoEvent","LsFalcoEventEntryPoint","MWMDotMeReferrerContext.react","MWPActor.react","MessagePowerUp","MessageSendClickFalcoEvent","promiseDone","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function a(a,b,e,f){var g=(j||(j=c("useReStore")))(),k=d("MWPActor.react").useActor(),l=d("MWMDotMeReferrerContext.react").useMDotMeReferrer();return d("Int64Hooks").useCallbackInt64(function(j,m){var n=d("LSThreadAttributionTypeUtil").getSource(a,e);j=j!=null?(h||(h=d("I64"))).equal(j.ctaType,(i||(i=d("LSIntEnum"))).ofNumber(c("LSNullstateCTAType").GET_STARTED))&&j.ctaId===m.ctaId:!1;var o=j?l:void 0;c("promiseDone")(g.runInTransaction(function(e){return c("LSOptimisticSendMessageV2StoredProcedure")(c("LSFactory")(e),{extraSendMessageParams:d("LSShape").ofRecord({calculate_denormalizations:!0,initiating_source:(e=f)!=null?e:void 0,mark_read:!0,platform_ref:o,platform_token:m.platformToken,power_up_style:(i||(i=d("LSIntEnum"))).ofNumber(c("MessagePowerUp").NONE),source:n}),mailboxType:i.ofNumber(c("LSMailboxType").MESSENGER),senderId:k,text:m.title,threadKey:a,threadType:b})},"readwrite"));var p=(h||(h=d("I64"))).to_string(a);if(j)c("LsBusinessWelcomePageGetStartedButtonTappedFalcoEvent").log(function(){return{page:{id:p}}});else{var q=(j=m.ctaIdentifier)!=null?j:"";c("LsBotComposerQuickReplyTappedFalcoEvent").log(function(){return{display:void 0,page:{id:p},quick_reply:{id:q,type:64}}})}c("MessageSendClickFalcoEvent").log(function(){return{message_send_source:{entry_point:d("LsFalcoEventEntryPoint").icebreaker}}})},[a,e,l,g,k,b,f])}g["default"]=a}),98); __d("MWPersistentIcebreakers",["I64","Int64Hooks","LsBotComposerQuickReplyDisplayedFalcoEvent","MWPThreadThemeGradientUtils","MWV2ThreadNullstatePill.react","ReQL","ReQLSuspense","ServerTime","react","stylex","useMWPThreadTheme","useMWV2SendIcebreakerMessage","useReStore","useStable","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=j||(j=d("react")),m=j.useState,n={container:{position:"x1n2onr6",width:"xh8yej3",$$css:!0},list_item:{alignSelf:"xamitd3",paddingBottom:"xsag5q8",paddingEnd:"xn6708d",paddingLeft:null,paddingRight:null,paddingStart:"x1ye3gou",textAlign:"x2b8uid",$$css:!0},mask:{backgroundColor:"xcrg951",$$css:!0},pillContainerVertical:{alignItems:"xuk3077",backgroundColor:"xcrg951",display:"x78zum5",flexDirection:"xdt5ytf",paddingTop:"xm7lytj",$$css:!0}};function o(a){var b=a.initiatingSource,e=a.lsSource;e=e===void 0?"unknown":e;var f=a.nullstateCtas,g=a.threadKey;a=a.threadType;var i=c("useMWV2SendIcebreakerMessage")(g,a,e,b);a=c("useMWPThreadTheme")();var j=f.map(function(a){return a.ctaIdentifier});e=m(!1);var o=e[0],p=e[1];b=c("useVisibilityObserver")({onVisible:d("Int64Hooks").useCallbackInt64(function(){if(!o&&j.length>0){p(!0);var a=(k||(k=d("I64"))).to_string(g);c("LsBotComposerQuickReplyDisplayedFalcoEvent").log(function(){return{displayed_quick_reply:{item_ids:j,num_items:j.length,type:60},page:{id:a}}})}},[o,j,g])});return l.jsx("div",{className:(h||(h=c("stylex")))(n.container,d("MWPThreadThemeGradientUtils").isGradient(a)&&n.mask),ref:b,children:l.jsx("ul",{className:"xuk3077 xcrg951 x78zum5 xdt5ytf xm7lytj",children:f.map(function(a){if(a.ctaType==="nullstate_icebreaker")return l.jsx("li",{className:"xamitd3 xsag5q8 xn6708d x1ye3gou x2b8uid",children:l.jsx(c("MWV2ThreadNullstatePill.react"),{onClick:function(){return i(void 0,a)},children:a.title})},(k||(k=d("I64"))).to_string(a.ctaId));else return null})})})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=c("useStable")(function(){return d("ServerTime").getMillis()}),e=(i||(i=c("useReStore")))(),g=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(e.table("threads"),["lastActivityTimestampMs"]).getKeyRange(a.threadKey)},[e,a.threadKey],f.id+":137");if(g==null)return null;return a.nullstateCtas.length===0||b-(k||(k=d("I64"))).to_int32(g.lastActivityTimestampMs)<216e5?null:l.jsx(o,babelHelpers["extends"]({},a))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWCMSelectiveSyncTTRCQPLLoggingUtils",["I64","QPLUserFlow","ReQL","ReQLSuspense","qpl","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=c("qpl")._(25310806,"1365");function a(a){var b,e=(i||(i=c("useReStore")))();b=(b=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(e.table("messages").index("messageDisplayOrder")).getKeyRange(a).take(20)},[e,a],f.id+":35"))!=null?b:[];return b}function b(a){var b=(i||(i=c("useReStore")))(),e=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(b.table("thread_point_query_ttrc")).getKeyRange(a)},[b,a],f.id+":48");if(e!=null)return e}function e(a,b,d){c("QPLUserFlow").endSuccess(j,{annotations:{string:{hasMessageDataChanged:b,status:"completed"}},instanceKey:a,timestamp:(b=d)!=null?b:void 0})}function k(a,b,e,f){c("QPLUserFlow").start(j,{annotations:{string:{thread_id:(h||(h=d("I64"))).to_string(b),thread_subtype:f?(h||(h=d("I64"))).to_string(f):null,thread_type:h.to_string(e)}},instanceKey:a})}function l(a,b){c("QPLUserFlow").addPoint(j,b,{instanceKey:a})}function m(a){c("QPLUserFlow").addPoint(j,"selective_sync_remediation_end",{instanceKey:a}),c("QPLUserFlow").endSuccess(j,{annotations:{string:{status:"skipped"}},instanceKey:a})}function n(a,b){return a.length!==b.length?!1:!a.some(function(a,c){c=b[c];c.text;c=babelHelpers.objectWithoutPropertiesLoose(c,["text"]);a.text;a=babelHelpers.objectWithoutPropertiesLoose(a,["text"]);if(JSON.stringify(c)!==JSON.stringify(a))return!0})}g.useLast20Messages=a;g.useTPQEntry=b;g.logCompleteEndSuccess=e;g.logEventStreamStart=k;g.logPoint=l;g.logSkippedEndSuccess=m;g.isMessageDataUnchanged=n}),98); __d("LSThreadPointQueryTTRCStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({COMPLETED:1,SKIPPED:2});f["default"]=a}),66); __d("SelectiveSyncTTRCLogger.react",["CometPlaceholder.react","I64","Int64Hooks","LSIntEnum","LSThreadPointQueryTTRCStatus","MWCMSelectiveSyncTTRCQPLLoggingUtils","Random","ReQL","ReQLSuspense","areEqual","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react")),n=l.useRef,o=function(a){var b=a.instanceKey,e=a.isReportThreadViewOpenSprocCalled,g=a.reportThreadViewOpenCalledTimestamp,l=a.setInstanceKey,m=a.threadKey,o=a.threadSubtype,p=a.threadType,q=n(!1);a=(h||(h=c("useReStore")))();var r=d("ReQLSuspense").toArray(d("ReQL").fromTableDescending(a.table("messages").index("messageDisplayOrder")).getKeyRange(m).take(20),f.id+":64"),s=d("ReQLSuspense").toArray(d("ReQL").fromTableDescending(a.table("reactions")).getKeyRange(m).take(20),f.id+":69"),t=d("ReQLSuspense").toArray(d("ReQL").fromTableDescending(a.table("reactions_v2")).getKeyRange(m).take(20),f.id+":72");d("Int64Hooks").useEffectInt64(function(){e===!1&&(q.current=!0,d("MWCMSelectiveSyncTTRCQPLLoggingUtils").logEventStreamStart(b,m,p,o))},[b,e,g,m,o,p]);var u=n(r),v=n(s),w=n(t),x=d("MWCMSelectiveSyncTTRCQPLLoggingUtils").useTPQEntry(m);d("Int64Hooks").useEffectInt64(function(){var a=x==null?void 0:x.status,e=x==null?void 0:x.deltaInsertionTimestampMs,f=x==null?void 0:x.dasmExecutionTimestampMs;if(q.current===!0&&g!==0)if(a&&(j||(j=d("I64"))).equal(a,(k||(k=d("LSIntEnum"))).ofNumber(c("LSThreadPointQueryTTRCStatus").SKIPPED)))d("MWCMSelectiveSyncTTRCQPLLoggingUtils").logSkippedEndSuccess(b),q.current=!1,l(c("Random").uint32());else if(a!=null&&(j||(j=d("I64"))).equal(a,(k||(k=d("LSIntEnum"))).ofNumber(c("LSThreadPointQueryTTRCStatus").COMPLETED))&&e!=null&&(j||(j=d("I64"))).to_float(e)>g){d("MWCMSelectiveSyncTTRCQPLLoggingUtils").logPoint(b,"selective_sync_remediation_end");a=!d("MWCMSelectiveSyncTTRCQPLLoggingUtils").isMessageDataUnchanged(u.current,r);var h=!(i||(i=c("areEqual")))(v.current,s),m=!i(w.current,t);a||h||m?d("MWCMSelectiveSyncTTRCQPLLoggingUtils").logCompleteEndSuccess(b,"true",f!=null?(j||(j=d("I64"))).to_float(f):void 0):d("MWCMSelectiveSyncTTRCQPLLoggingUtils").logCompleteEndSuccess(b,"false",e!=null?(j||(j=d("I64"))).to_float(e):void 0);u.current=r;v.current=s;w.current=t;q.current=!1;l(c("Random").uint32())}},[b,r,s,t,g,l,x]);return null};function a(a){return m.jsx(c("CometPlaceholder.react"),{fallback:null,children:m.jsx(o,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useReportThreadViewOpenDebounced",["LSFactory","LSReportThreadViewOpenStoredProcedure","promiseDone","useDebouncedComet","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){var d=(h||(h=c("useReStore")))();return c("useDebouncedComet")(function(){c("promiseDone")(d.runInTransaction(function(b){return c("LSReportThreadViewOpenStoredProcedure")(c("LSFactory")(b),{threadKey:a})},"readwrite"))},{leading:!0,wait:b})}g["default"]=a}),98); __d("MWQuickPromotionThreadViewBanner.react",["CometQuickPromotionLoggerContext.react","CometRelay","MWQuickPromotionThreadViewBanner_eligiblePromotions.graphql","react","useQuickPromotionFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){a=a.eligiblePromotions;a=d("CometRelay").useFragment(h!==void 0?h:h=b("MWQuickPromotionThreadViewBanner_eligiblePromotions.graphql"),a);a=a==null?void 0:(a=a.nodes[0])==null?void 0:(a=a.comet_qp_sections)==null?void 0:a.renderer_strategy;var e=c("useQuickPromotionFalcoEvent")({context_surface_id:8783,context_trigger:"messenger_thread_open"});return a==null?null:j.jsx(c("CometQuickPromotionLoggerContext.react").Provider,{value:e,children:j.jsx(d("CometRelay").MatchContainer,{match:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWQuickPromotionThreadViewBannerContainer.react",["CometErrorBoundary.react","CometPlaceholder.react","CometRelay","I64","MWLSThreadDisplayContext","MWQuickPromotionThreadViewBanner.react","MWQuickPromotionThreadViewBannerContainerQuery.graphql","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||d("react"),l="CHAT_TAB_OPEN",m="MESSENGER_THREAD_OPEN";function n(a){switch(a){case"ChatTab":return l;default:return m}}function o(a){var e=a.communityId,f=a.fbGroupId;a=a.threadId;var g=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();g=n(g);e=d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("MWQuickPromotionThreadViewBannerContainerQuery.graphql"),{community_id:e!=null?(j||(j=d("I64"))).to_string(e):null,fb_group_id:f!=null&&!(j||(j=d("I64"))).is_zero(f)?(j||(j=d("I64"))).to_string(f):null,thread_id:(j||(j=d("I64"))).to_string(a),trigger:g});a=e==null?void 0:(f=e.viewer)==null?void 0:f.eligible_promotions;return a==null?null:k.jsx(c("MWQuickPromotionThreadViewBanner.react"),{eligiblePromotions:a})}o.displayName=o.name+" [from "+f.id+"]";function a(a){return k.jsx(c("CometErrorBoundary.react"),{fallback:c("emptyFunction"),children:k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx(o,babelHelpers["extends"]({},a))})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatUnsendNUX.react",["cr:2884","cr:4186","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.senderUnsendNUXEnabled;return i.jsxs(i.Fragment,{children:[b("cr:2884")==null?null:i.jsx(b("cr:2884"),{}),b("cr:4186")!=null&&a?i.jsx(b("cr:4186"),{}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatUnsendNUXReceiverBanner.react",["fbt","ix","CometSkittleIcon.react","JSResourceForInteraction","MDSRow.react","MDSRowItem.react","MWXText.react","TetraButton.react","fbicon","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=c("JSResourceForInteraction")("MWChatUnsendNUXInterstitialDialog.react").__setRef("MWChatUnsendNUXReceiverBanner.react"),m={button:{flexBasis:"x1r8uery",flexGrow:"x1iyjqo2",$$css:!0},card:{backgroundColor:"xcrg951",boxShadow:"x7m3og9",position:"x10l6tqk",width:"xh8yej3",zIndex:"x1vjfegm",$$css:!0},imageRow:{paddingTop:"x1nn3v0j",$$css:!0}};function a(a){var b,e=a.onDismiss,f=a.onView;a=h._("__JHASH__7PesNdiLm6N__JHASH__");var g=h._("__JHASH__jjSY-Fh1rGw__JHASH__"),j={},n=c("useMWXLazyDialog")(l),o=n[0],p=function(){return o(j,function(){})};return k.jsxs("div",{className:"xcrg951 x7m3og9 x10l6tqk xh8yej3 x1vjfegm",children:[k.jsxs(n=c("MDSRow.react"),{paddingHorizontal:12,paddingTop:12,children:[k.jsx(b=c("MDSRowItem.react"),{xstyle:m.imageRow,children:k.jsx(c("CometSkittleIcon.react"),{color:"gray",icon:d("fbicon")._(i("685851"),16),size:36})}),k.jsxs(b,{expanding:!0,children:[k.jsx(n,{paddingHorizontal:0,paddingTop:0,children:k.jsx(b,{children:k.jsx(c("MWXText.react"),{color:"primary",type:"headline4",children:a})})}),k.jsx(n,{paddingHorizontal:0,paddingTop:8,children:k.jsx(b,{children:k.jsx(c("MWXText.react"),{color:"secondary",type:"body4",children:g})})})]})]}),k.jsxs(n,{paddingHorizontal:12,paddingTop:8,paddingVertical:12,wrap:"forward",children:[k.jsx(b,{xstyle:m.button,children:k.jsx(c("TetraButton.react"),{label:h._("__JHASH__W_KwwnBzw9K__JHASH__"),onPress:function(){p();return f()},type:"secondary"})}),k.jsx(b,{xstyle:m.button,children:k.jsx(c("TetraButton.react"),{label:h._("__JHASH__CqytfJoYvSJ__JHASH__"),onPress:e,type:"secondary"})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("isMessageUnsentInLastTenSeconds",["I64"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){return Date.now()-(h||(h=d("I64"))).to_float((a=a.unsentTimestampMs)!=null?a:(h||(h=d("I64"))).zero)<=1e4}g["default"]=a}),98); __d("useMessengerUnsendNUX",["CometDismissFBNuxMutation","CometLogImpressionFBNuxMutation","CometRelay","RelayHooks","promiseDone","react","useMessengerUnsendNUXQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useCallback,k=h!==void 0?h:h=b("useMessengerUnsendNUXQuery.graphql");function a(a){var b=d("RelayHooks").useRelayEnvironment(),e=j(function(e){c("promiseDone")(d("CometRelay").fetchQuery(b,k,{id:a}).toPromise(),function(a){a=(a=a==null?void 0:(a=a.nux)==null?void 0:a.should_show)!=null?a:!1;e(a)},null)},[b,a]),f=j(function(){d("CometDismissFBNuxMutation").commit(b,a)},[b,a]),g=j(function(){d("CometLogImpressionFBNuxMutation").commit(b,a)},[b,a]);return[e,f,g]}g["default"]=a}),98); __d("MWChatUnsendNUXReceiver.react",["I64","Int64Hooks","LSMessagingThreadTypeUtil","MWChatUnsendNUXReceiverBanner.react","MWLSThread","MWPActor.react","MWThreadKey.react","ReQL","isMessageUnsentInLastTenSeconds","react","useMessengerUnsendNUX","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));b=j;var l=b.useCallback,m=b.useRef,n=b.useState;function a(){var a=d("MWPActor.react").useActor(),b=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),e=d("MWLSThread").useThread(b,function(a){return a.threadType});e=e!=null&&d("LSMessagingThreadTypeUtil").isDiscoverableChannel(e);var f=(h||(h=c("useReStore")))(),g=n(!1),j=g[0],o=g[1],p=m(!1),q=m(!1),r=m();g=c("useMessengerUnsendNUX")(8568);var s=g[0],t=g[1],u=g[2],v=l(function(){var a=r.current;if(a!=null){a();r.current=void 0;return}},[]);g=l(function(){q.current=!0;t();v();return o(!1)},[t,v]);var w=l(function(a){var b=!j&&!p.current;if(b&&c("isMessageUnsentInLastTenSeconds")(a)){p.current=!0;return s(function(a){p.current=!1;if(a)return o(!0);else{v();q.current=!0;return}})}},[j,s,v]);d("Int64Hooks").useEffectInt64(function(){if(q.current)return;r.current=d("ReQL").fromTableAscending(f.table("messages")).getKeyRange(b).filter(function(b){if(b.isUnsent)return!(i||(i=d("I64"))).equal(b.senderId,a);else return!1}).subscribe(function(a,b){b.operation!=="delete"&&w(b.value)});return function(){v();if(j&&!q.current)return u()}},[f,a,j,u,w,b,v]);if(j&&!e)return k.jsx(c("MWChatUnsendNUXReceiverBanner.react"),{onDismiss:g,onView:g});else return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatUnsendNUXSender.react",["I64","JSResourceForInteraction","MWPActor.react","MWThreadKey.react","ReQL","isMessageUnsentInLastTenSeconds","react","useMWXLazyDialog","useMessengerUnsendNUX","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;j||(j=d("react"));b=j;var k=b.useCallback,l=b.useEffect,m=b.useRef;function a(){var a=d("MWPActor.react").useActor(),b=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),e=(h||(h=c("useReStore")))(),f=m(!1),g=m(!1),j=m(!1),n=m(),o=c("useMessengerUnsendNUX")(8598),p=o[0],q=o[1],r=k(function(){var a=n.current;if(a!=null){a();n.current=void 0;return}},[]),s=k(function(){if(!j.current){j.current=!0;r();return q()}},[]);o=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWChatUnsendNUXSenderDialog.react").__setRef("MWChatUnsendNUXSender.react"));var t=o[0],u=k(function(a){var b=!f.current&&!g.current;if(b&&c("isMessageUnsentInLastTenSeconds")(a)){f.current=!0;return p(function(a){f.current=!1,a?(t({onView:s},function(){}),g.current=!0):(r(),j.current=!0)})}},[a,r]);l(function(){n.current=d("ReQL").fromTableAscending(e.table("messages")).getKeyRange(b).filter(function(b){return b.isUnsent&&(i||(i=d("I64"))).equal(b.senderId,a)}).subscribe(function(a,b){b.operation!=="delete"&&u(b.value)});return r},[b,u,r]);return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatXACSunsettingBanner.react",["fbt","ix","MWXButton.react","MWXImage.react","MWXRow.react","MWXRowItem.react","MWXText.react","goURIOnWindow","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l="https://www.facebook.com/help/messenger-app/619453488713104?ref=learn_more",m={button:{flexBasis:"x1r8uery",flexGrow:"x1iyjqo2",$$css:!0},card:{backgroundColor:"xcrg951",boxShadow:"x7m3og9",position:"x10l6tqk",width:"xh8yej3",zIndex:"x1vjfegm",$$css:!0},imageRow:{paddingTop:"x1nn3v0j",$$css:!0}};function a(){var a,b,d=h._("__JHASH__TDoMKgQOS58__JHASH__"),e=h._("__JHASH__9PUf24O7tfB__JHASH__");return k.jsxs("div",{className:"xcrg951 x7m3og9 x10l6tqk xh8yej3 x1vjfegm",children:[k.jsxs(a=c("MWXRow.react"),{paddingHorizontal:12,paddingTop:12,children:[k.jsx(b=c("MWXRowItem.react"),{xstyle:m.imageRow,children:k.jsx(c("MWXImage.react"),{src:i("331359")})}),k.jsxs(b,{expanding:!0,children:[k.jsx(a,{paddingHorizontal:0,paddingTop:0,children:k.jsx(b,{children:k.jsx(c("MWXText.react"),{color:"primary",type:"headline4",children:d})})}),k.jsx(a,{paddingHorizontal:0,paddingTop:8,children:k.jsx(b,{children:k.jsx(c("MWXText.react"),{color:"secondary",type:"body4",children:e})})})]})]}),k.jsx(a,{paddingHorizontal:12,paddingTop:8,paddingVertical:12,wrap:"forward",children:k.jsx(b,{xstyle:m.button,children:k.jsx(c("MWXButton.react"),{label:h._("__JHASH__W_KwwnBzw9K__JHASH__"),onPress:function(){c("goURIOnWindow")(window.open("","_blank"),l)},type:"primary"})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChannelInviteDialog.entrypoint",["JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{}},root:c("JSResourceForInteraction")("MWChannelInviteDialog.react").__setRef("MWChannelInviteDialog.entrypoint")};g["default"]=a}),98); __d("MWInChatTabContextProvider.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));c=h;e=c.createContext;var j=c.useContext,k=e(!1);function a(){return j(k)}function b(a){a=a.children;return i.jsx(k.Provider,{value:!0,children:a})}b.displayName=b.name+" [from "+f.id+"]";g.useInChatTab=a;g.InChatTabContextProvider=b}),98); __d("LSThreadPointQueryAndRestoreMessagesWithJID",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("wa_jid",a[0]),d[0].set("tam_thread_subtype",c.i64.cast([0,0])),d[1]=d[0].get("wa_jid"),d[0],d[2]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),c.i64.to_string(d[1]),c.i64.cast([0,556]),d[2],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSThreadPointQueryAndRestoreMessagesWithJIDStoredProcedure",["LSThreadPointQueryAndRestoreMessagesWithJID"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.waJid;return c("LSThreadPointQueryAndRestoreMessagesWithJID").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MAWInThreadBannerNuxReqCondWrapper.react",["CometErrorBoundary.react","cr:4958","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.threadKey;return b("cr:4958")&&i.jsx(c("CometErrorBoundary.react"),{fallback:function(){return null},children:i.jsx(b("cr:4958"),{threadKey:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatTabInThreadBanner.react",["CometErrorBoundary.react","CometPlaceholder.react","LSMessagingThreadTypeUtil","MWLSInThreadBannerComponent.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.thread;if(d("LSMessagingThreadTypeUtil").isSecure(a.threadType)||d("LSMessagingThreadTypeUtil").isJoinedSocialChannel(a.threadType))return null;else return i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(c("CometErrorBoundary.react"),{fallback:function(){return null},children:i.jsx(c("MWLSInThreadBannerComponent.react"),{threadKey:a.threadKey})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSPageType",[],(function(a,b,c,d,e,f){a=Object.freeze({DEFAULT:0,AI:1});f["default"]=a}),66); __d("MWContextBannerChannelActivationPrompt.react",["fbt","ix","MWXImage.react","MWXTextPairing.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");function a(){return k.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf xl56j7k x1pdq3kb xkrivgy x4ii5y1 x1gryazu x2b8uid x3p9ev8",children:[k.jsx(c("MWXImage.react"),{src:i("196163"),xstyle:l.image}),k.jsx(c("MWXTextPairing.react"),{body:h._("__JHASH__0beiJBlEXW1__JHASH__"),headline:h._("__JHASH__c0b5-Kz1eAl__JHASH__"),level:4,textAlign:"center"})]})}a.displayName=a.name+" [from "+f.id+"]";var l={banner:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"xdt5ytf",justifyContent:"xl56j7k",marginTop:"x1pdq3kb",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",textAlign:"x2b8uid",width:"x3p9ev8",$$css:!0},image:{marginBottom:"x1hq5gj4",$$css:!0}};g["default"]=a}),98); __d("MWContextBannerEndToEndEncryptedBanner.react",["fbt","ix","CometColumn.react","CometColumnItem.react","CometIcon.react","CometRow.react","CometRowItem.react","CometTextWithIcon.react","MWXLink.react","MWXText.react","XMessengerHelpCenterContentControllerRouteBuilder","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l={banner:{backgroundColor:"xlhe6ec",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingStart:"x1swvt13",paddingLeft:null,paddingRight:null,paddingEnd:"x1pi30zi",paddingTop:"xz9dl7a",paddingBottom:"xsag5q8",$$css:!0}};function a(){var a;a=(a=c("XMessengerHelpCenterContentControllerRouteBuilder").buildUri({cms_id:"786613221989782"}))==null?void 0:a.toString();return k.jsx(c("CometRow.react"),{align:"center",paddingHorizontal:0,paddingTop:12,children:k.jsx(c("CometRowItem.react"),{children:k.jsxs(c("CometColumn.react"),{spacing:8,verticalAlign:"center",xstyle:l.banner,children:[k.jsx(c("CometColumnItem.react"),{expanding:!0,children:k.jsx(c("MWXText.react"),{align:"center",type:"bodyLink4",children:k.jsx(c("CometTextWithIcon.react"),{iconBefore:k.jsx(c("CometIcon.react"),{icon:d("fbicon")._(i("1596805"),10),size:10}),children:h._("__JHASH__Kow3rs5K3HC__JHASH__")})})}),k.jsx(c("CometColumnItem.react"),{children:k.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body4",children:h._("__JHASH__yxX1nJvmnv5__JHASH__",[h._implicitParam("=m1",k.jsx(c("MWXText.react"),{color:"blueLink",type:"bodyLink4",children:h._("__JHASH__bPYVQTNBjFa__JHASH__",[h._implicitParam("=m1",k.jsx(c("MWXLink.react"),{href:a,target:"_blank",children:h._("__JHASH__vo_wtcDrjQ6__JHASH__")}))])}))])})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSNullstateDescriptionType",[],(function(a,b,c,d,e,f){a=Object.freeze({DEFAULT:0,SUBTEXT:1,TITLE_SMALL_DEFAULT:2,TITLE_SMALL_SUBTEXT:3});f["default"]=a}),66); __d("MWContextBannerNullstateDescription.react",["I64","LSIntEnum","LSNullstateDescriptionType","MWXText.react","RecoverableViolation.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react");function a(a){var b=a.kind;a=a.text;if((i||(i=d("I64"))).equal(b,(i||(i=d("I64"))).zero)||(i||(i=d("I64"))).equal(b,(j||(j=d("LSIntEnum"))).ofNumber(c("LSNullstateDescriptionType").SUBTEXT))||(i||(i=d("I64"))).equal(b,(j||(j=d("LSIntEnum"))).ofNumber(c("LSNullstateDescriptionType").TITLE_SMALL_DEFAULT))||(i||(i=d("I64"))).equal(b,(j||(j=d("LSIntEnum"))).ofNumber(c("LSNullstateDescriptionType").TITLE_SMALL_SUBTEXT)))return k.jsx("div",{className:"xsag5q8",children:k.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body4",children:a})});else return k.jsx(c("RecoverableViolation.react"),{errorMessage:"Unhandled nullstate description",projectName:"messenger_comet"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPWebWorkerDisconnectedBanner.react",["ix","CometContextualMessage.react","CometImageFromIXValue.react","MAWIssueNewUserVisibleErrors","MWXButtonGroup.react","fbs","promiseDone","react","useMAWGetUserVisibleErrors"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useState;function a(){var a=c("useMAWGetUserVisibleErrors")(),b=a[0],e=a[1];a=l(!1);var f=a[0],g=a[1];a=k(function(){c("promiseDone")(e(),function(){window.location.reload(!0)})},[e]);var i=k(function(){c("promiseDone")(e(),function(){g(!0)})},[g,e]),m=d("MAWIssueNewUserVisibleErrors").errorMsgBodyToFbtMap.get(b==null?void 0:b.errorBodyText),n=d("MAWIssueNewUserVisibleErrors").errorMsgTitleToFbtMap.get(b==null?void 0:b.errorTitleText);return b&&m!=null&&n!=null&&c("CometContextualMessage.react")&&!f?j.jsx("div",{className:"xjf5wm9 xdj266r x11i5rnm xat24cr x1mh8g0r x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx(c("CometContextualMessage.react"),{addOnPrimary:j.jsx(c("MWXButtonGroup.react"),{align:"justify",paddingHorizontal:12,primary:{label:c("fbs")._("__JHASH__PnVpnKg9Gg___JHASH__"),onPress:a,testid:"mw-encrypted-backups-in-thread-web-worker-failure-reset"}}),body:m,headline:j.jsx(j.Fragment,{children:n}),headlineAriaLabel:n,icon:j.jsx(c("CometImageFromIXValue.react"),{alt:n,source:h("1351648")}),level:4,onClose:i})}):void 0}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWCurrentVisibleMessage",["I64","Int64Hooks","LSFactory","LSMessagePointQueryStoredProcedure","MWMessageElementRefList","MWPVisibleMessageContext.react","ReQL","ReQLSuspense","promiseDone","react","setTimeout","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;b=j||d("react");var k=b.useCallback,l=b.useEffect,m=b.useRef,n=b.useState;function a(a,b){var e=d("MWPVisibleMessageContext.react").useMWPVisibleMessageContext(),g=e.visibleMessage,j=m(c("MWMessageElementRefList")()),o=a==null?void 0:a.threadKey;e=a==null?void 0:a.threadType;var p=m(),q=(h||(h=c("useReStore")))(),r=d("ReQLSuspense").useFirst(function(){if(o==null)return d("ReQL").empty();if(g==null)return d("ReQL").fromTableDescending(q.table("messages_ranges_v2__generated")).getKeyRange(o);var a=g.timestamp;return d("ReQL").fromTableDescending(q.table("messages_ranges_v2__generated")).getKeyRange(o).bounds({lte:[a]}).filter(function(b){var c=b.maxTimestampMs;b=b.minTimestampMs;return(i||(i=d("I64"))).ge(a,b)&&(i||(i=d("I64"))).le(a,c)})},[o,g,q],f.id+":56"),s=n(function(){return r}),t=s[0],u=s[1];l(function(){p.current=void 0,g==null&&b.current!=null&&b.current.scrollToBottom()},[b,g]);var v=k(function(a){var d=b.current;if(d!=null){c("setTimeout")(function(){return d.scrollElementIntoViewIfNeeded(a)},0);return}},[b]),w=k(function(a){if(a!==p.current)return j.current.get(a,function(b){v(b),p.current=a})},[v]);l(function(){r!=null?u(r):g==null&&u(function(){})},[g,r,u]);l(function(){g!=null&&t!=null&&w(g.messageId)},[q,g,t,w]);d("Int64Hooks").useEffectInt64(function(){if(a!=null&&r==null&&g!=null){var b=g.messageId;c("promiseDone")(q.runInTransaction(function(d){return c("LSMessagePointQueryStoredProcedure")(c("LSFactory")(d),{messageId:b,threadKey:a.threadKey,threadType:a.threadType})},"readwrite"))}},[q,g,r,o,e,a]);return{messageElementRefs:j,messageRange:t,visibleMessage:(s=g)!=null?s:void 0}}g["default"]=a}),98); __d("useMWLSIsBroadcastChannelWithZeroMessage",["ReQL","ReQLSuspense","useMWCurrentVisibleMessage","useMWV2ConversationScrollerRefs","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=c("useMWV2ConversationScrollerRefs")();b=c("useMWCurrentVisibleMessage")(a,b.scrollerRef);b=b.messageRange;b=(b=b==null?void 0:b.isLoadingBefore)!=null?b:!1;var e=a.threadKey,g=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableDescending(g.table("messages")).getKeyRange(e).filter(function(a){return!a.isAdminMessage})},[g,e],f.id+":32");var i=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableDescending(g.table("attachments")).getKeyRange(e)},[g,e],f.id+":41");a=a!=null||i!=null;return!(a||b)}g["default"]=a}),98); __d("MWContextBanner.react",["fbt","BaseView.react","CometPlaceholder.react","I64","LSAuthorityLevel","LSIntEnum","LSMessagingThreadTypeUtil","LSPageType","LSThreadBitOffset","LSThreadTitle.react","LSVerificationBadge.react","MAWThreadCutover","MWCMThreadTypes.react","MWContextBannerChannelActivationPrompt.react","MWContextBannerEndToEndEncryptedBanner.react","MWContextBannerNullstateDescription.react","MWEditMessageOverlay.react","MWPWebWorkerDisconnectedBanner.react","MWThreadPicture.react","MWXText.react","ReQL","ReQLSuspense","cr:1607","cr:5777","cr:7232","gkx","isFeatureLimitEnabled","react","stylex","useIsAdmodOnboardingEnabledForThread.react","useIsReadOnlyFeatureLimitedWithThreadType","useMWLSIsBroadcastChannelWithZeroMessage","useMWPEditMessageDeemphasizer","usePageType","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=k||d("react"),o={align:{verticalAlign:"xxymvpz",$$css:!0},container:{paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",paddingLeft:null,paddingRight:null,paddingEnd:"xn6708d",paddingTop:"x1cnzs8",$$css:!0},image:{display:"x78zum5",justifyContent:"xl56j7k",marginBottom:"xod5an3",$$css:!0},title:{marginBottom:"xod5an3",$$css:!0}};function p(a){var e=a.isBusinessSupport,f=a.isReadOnlyFeatureLimited;a=a.thread;var g=d("useIsAdmodOnboardingEnabledForThread.react").useIsAdmodOnboardingEnabledForThread(a.threadKey),h=c("useMWLSIsBroadcastChannelWithZeroMessage")(a);if(f||e)return null;if(g&&b("cr:7232")!=null)return n.jsx(b("cr:7232"),{thread:a});if(d("LSMessagingThreadTypeUtil").isGroup(a.threadType)&&(l||(l=d("I64"))).gt(a.authorityLevel,(m||(m=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").SERVER_PARTIAL))&&b("cr:5777")!=null)if(h&&c("gkx")("3199"))return n.jsx(c("MWContextBannerChannelActivationPrompt.react"),{});else return n.jsx(b("cr:5777"),{thread:a});return null}p.displayName=p.name+" [from "+f.id+"]";function a(a){var e=a.threadKey;a=a.threadType;var g=c("useIsReadOnlyFeatureLimitedWithThreadType")(a),k=d("MAWThreadCutover").useIsCutoverSecureThread(e),q=d("LSMessagingThreadTypeUtil").isDiscoverableChannel(a);a=d("MWCMThreadTypes.react").isJoinedCMThread(a);var r=c("useMWPEditMessageDeemphasizer")(),s=(i||(i=c("useReStore")))(),t=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(s.table("threads"),["authorityLevel","isCustomThreadPicture","needsAdminApprovalForNewParticipant","nullstateDescriptionText1","nullstateDescriptionText2","nullstateDescriptionText3","nullstateDescriptionType1","nullstateDescriptionType2","nullstateDescriptionType3","parentThreadKey","threadDescription","threadInviteLink","threadInvitesEnabledV2","threadKey","threadName","threadPictureUrl","threadPictureUrlExpirationTimestampMs","threadPictureUrlFallback","threadType","capabilities","capabilities2","capabilities3","capabilities4"]).getKeyRange(e)},[s,e],f.id+":132"),u=c("usePageType")(t==null?void 0:t.threadKey);if(t==null)return null;var v=d("LSThreadBitOffset").has(47,t);if(v)return null;v=t.nullstateDescriptionText1;var w=t.nullstateDescriptionText2,x=t.nullstateDescriptionText3,y=t.nullstateDescriptionType1,z=t.nullstateDescriptionType2,A=t.nullstateDescriptionType3,B=(l||(l=d("I64"))).equal(t.parentThreadKey,(m||(m=d("LSIntEnum"))).ofNumber(-18)),C=d("LSMessagingThreadTypeUtil").isSecure(t.threadType);g=g&&(!C||c("isFeatureLimitEnabled")());var D=n.jsx("span",{className:"xxymvpz",children:n.jsx(c("CometPlaceholder.react"),{fallback:null,children:n.jsx(c("LSVerificationBadge.react"),{size:"large",threadKey:t.threadKey})})}),E=n.jsx(c("LSThreadTitle.react"),{thread:t,wrapOutput:function(a,b){return b}});return n.jsxs(c("BaseView.react"),{children:[n.jsxs("div",{className:(j||(j=c("stylex")))(o.container,r),"data-testid":void 0,children:[n.jsx("div",{className:"x78zum5 xl56j7k xod5an3",children:n.jsx(c("MWThreadPicture.react"),{badgeSize:14,photoSize:60,threadKey:t.threadKey})}),n.jsx("div",{className:"xod5an3",children:n.jsxs(c("MWXText.react"),{align:"center",numberOfLines:1,type:"headlineEmphasized3",children:[E,!q&&!a&&!c("gkx")("8726")&&D]})}),u!=null&&(l||(l=d("I64"))).equal(u,(m||(m=d("LSIntEnum"))).ofNumber(c("LSPageType").AI))?n.jsx("div",{className:"xod5an3",children:n.jsx(c("MWXText.react"),{align:"center",color:"primary",type:"body4",children:h._("__JHASH__5MDaoXA0f1Z__JHASH__")})}):null,v!=null&&y!=null?n.jsx(c("MWContextBannerNullstateDescription.react"),{kind:y,text:v}):null,w!=null&&z!=null?n.jsx(c("MWContextBannerNullstateDescription.react"),{kind:z,text:w}):null,x!=null&&A!=null?n.jsx(c("MWContextBannerNullstateDescription.react"),{kind:A,text:x}):null,b("cr:1607")!=null&&n.jsx(b("cr:1607"),{threadKey:e}),n.jsx(p,{isBusinessSupport:B,isReadOnlyFeatureLimited:g,thread:t}),C&&!k?n.jsx(c("MWContextBannerEndToEndEncryptedBanner.react"),{}):null,C&&c("MWPWebWorkerDisconnectedBanner.react")?n.jsx(c("MWPWebWorkerDisconnectedBanner.react"),{}):null]}),n.jsx(c("MWEditMessageOverlay.react"),{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWThreadNullstateGreetingAndInstruction.react",["fbt","MWPreloadedText","MWXText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useContext;function a(a){var b=a.nullstate;a=a.nullstateCtas;b=b.welcomeText;var d=k(c("MWPreloadedText")),e=h._("__JHASH__zLWQrS74qZX__JHASH__");a=b!==e.toString()&&a.length>0;return d.text!=null||!a&&b==null?null:j.jsxs("div",{className:"xurb0ha x1sxyh0",children:[b!=null&&j.jsx("div",{className:"x1hhzuzn",children:j.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"headline4",children:b})}),a&&j.jsx("div",{className:"x1hhzuzn",children:j.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"headline4",children:e})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWThreadNullstatePrivacyText.react",["fbt","I64","JSResourceForInteraction","LSIntEnum","LSNullstateCTAType","MWPreloadedText","MWXLink.react","MWXText.react","P2bDifferentiationPrivacyDisclosureOpenClickWebFalcoEvent","gkx","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||(i=d("react")),m=i.useContext;function a(a){var b=a.nullstate,e=a.threadKey;a=a.threadTitle;var f=m(c("MWPreloadedText")),g=b.privacyText,i=b.privacyTextCtaTitle,n=b.privacyTextNonWelcomeScreen;a=h._("__JHASH__pMA_7iE0GY1__JHASH__",[h._param("name",a),h._param("= public info link",l.jsx(c("MWXLink.react"),{color:"primary",href:"https://www.facebook.com/help/messenger-app/719578818758231",role:"link",target:"_blank",children:l.jsx(c("MWXText.react"),{type:"body4",children:h._("__JHASH__WAqQCKR95Tr__JHASH__")})}))]);var o=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWPrivacyDisclosureDialog.react").__setRef("MWThreadNullstatePrivacyText.react")),p=o[0];o=l.jsx(c("MWXLink.react"),{color:"primary",onClick:function(){p({entryPoint:"NULL_STATE",threadKey:e},function(){}),c("P2bDifferentiationPrivacyDisclosureOpenClickWebFalcoEvent").log(function(){return{consumer_id:"0",entry_point:"NULL_STATE",page_id:(j||(j=d("I64"))).to_string(e)}})},role:"link",target:"_blank",children:i!=null?l.jsx(c("MWXText.react"),{color:"blueLink",type:"body4",children:i}):null});i=f.text!=null&&!!n;f=i||g!=null?l.jsx(c("MWXText.react"),{color:"secondary",type:"body4",children:i?n:g}):null;return l.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body4",children:c("gkx")("2386")&&(j||(j=d("I64"))).equal(b.privacyTextCtaType,(k||(k=d("LSIntEnum"))).ofNumber(c("LSNullstateCTAType").PRIVACY_DISCLOSURE))?l.jsxs(l.Fragment,{children:[f," ",o]}):a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ThreadNullstateCTAs.react",["I64","Int64Hooks","LSIntEnum","LSNullstateCTAType","LsBotComposerQuickReplyDisplayedFalcoEvent","MWV2ThreadNullstatePill.react","react","stylex","useMWV2SendIcebreakerMessage","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react")),m=i.useState,n={cta_list:{alignItems:"xuk3077",display:"x78zum5",flexDirection:"xdt5ytf",justifyContent:"xl56j7k",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",$$css:!0},cta_list_item:{alignSelf:"xamitd3",paddingBottom:"xsag5q8",paddingEnd:"xn6708d",paddingLeft:null,paddingRight:null,paddingStart:"x1ye3gou",textAlign:"x2b8uid",$$css:!0},cta_list_item_center:{alignSelf:"xamitd3",paddingStart:"x1ye3gou",paddingLeft:null,paddingRight:null,paddingEnd:"xn6708d",$$css:!0}};function a(a){var b=a.initiatingSource,e=a.lsSource,f=a.nullstate,g=a.nullstateCtas,i=a.threadKey;a=a.threadType;var o=c("useMWV2SendIcebreakerMessage")(i,a,e,b),p=g.map(function(a){return a.ctaIdentifier}).filter(Boolean);a=m(!1);var q=a[0],r=a[1];e=c("useVisibilityObserver")({onVisible:d("Int64Hooks").useCallbackInt64(function(){if(!q&&p.length>0){r(!0);var a=(j||(j=d("I64"))).to_string(i);c("LsBotComposerQuickReplyDisplayedFalcoEvent").log(function(){return{displayed_quick_reply:{item_ids:p,num_items:String(p.length),type:60},page:{id:a}}})}},[q,p,i])});return l.jsx("ul",{className:"xuk3077 x78zum5 xdt5ytf xl56j7k xdj266r x11i5rnm xat24cr x1mh8g0r",ref:e,children:g.map(function(a){var b=(j||(j=d("I64"))).equal(f.ctaType,(k||(k=d("LSIntEnum"))).ofNumber(c("LSNullstateCTAType").GET_STARTED))&&f.ctaId!=null&&(j||(j=d("I64"))).equal(f.ctaId,a.ctaId);return l.jsx("li",{className:(h||(h=c("stylex")))(n.cta_list_item,b?n.cta_list_item_center:!1),children:l.jsx(c("MWV2ThreadNullstatePill.react"),{onClick:function(){return o(f,a)},children:a.title})},(j||(j=d("I64"))).to_string(a.ctaId))})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ThreadNullstate.react",["CometScrollableArea.react","Int64Hooks","LSThreadTitle.react","MWPreloadedText","MWThreadNullstateGreetingAndInstruction.react","MWThreadNullstatePrivacyText.react","MWV2ThreadNullstateCTAs.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext,k={privacy_text:{paddingBottom:"xx6bls6",paddingStart:"xurb0ha",paddingLeft:null,paddingRight:null,paddingEnd:"x1sxyh0",$$css:!0},privacy_text_offset:{paddingBottom:"xg8j3zb",paddingTop:"x1iorvi4",$$css:!0}};a=i.memo(function(a){var b=a.initiatingSource,d=a.lsSource;d=d===void 0?"unknown":d;var e=a.nullstate,f=a.nullstateCtas,g=a.threadKey,h=a.threadName;a=a.threadType;var l=j(c("MWPreloadedText")),m=e.privacyText;l=i.jsxs("div",{children:[i.jsx(c("MWThreadNullstateGreetingAndInstruction.react"),{nullstate:e,nullstateCtas:f}),l.text!=null?null:i.jsx(c("MWV2ThreadNullstateCTAs.react"),{initiatingSource:b,lsSource:d,nullstate:e,nullstateCtas:f,threadKey:g,threadType:a}),m!=null?i.jsx("div",{className:"xx6bls6 xurb0ha x1sxyh0",children:i.jsx(c("MWThreadNullstatePrivacyText.react"),{nullstate:e,threadKey:g,threadTitle:i.jsx(c("LSThreadTitle.react"),{thread:{threadKey:g,threadName:h,threadType:a},wrapOutput:function(a,b){return b}})})}):null]});return i.jsx(c("CometScrollableArea.react"),{xstyle:k.privacy_text_offset,children:l})},d("Int64Hooks").mostlyShallowEqual);g["default"]=a}),98); __d("MWOpenThreadDetail.react",["CometDebounce","CometErrorBoundary.react","CometPlaceholder.react","GroupsCometChatsEngagementLogger","I64","Int64Hooks","LSFactory","LSFetchAdditionalThreadDataStoredProcedure","LSIntEnum","LSMessagingThreadTypeUtil","LSThreadBitOffset","MWCMAutoJoinNotifNUX.react","MWCMIsAnyCMThread","MWCMSelectiveSyncTTRCQPLLoggingUtils","MWCMThreadTypes.react","MWChatUnsendNUX.react","MWChatXACSunsettingBanner.react","MWContextBanner.react","MWLSThreadDisplayContext","MWMessageList","MWPActor.react","MWPMessageListColumn.react","MWPQuickReplies.react","MWPersistentIcebreakers","MWPreloadableQueries","MWQuickPromotionThreadViewBannerContainer.react","MWV2ThreadNullstate.react","Promise","Random","ReQL","ReQLSuspense","SelectiveSyncTTRCLogger.react","ServerTime","asyncToGeneratorRuntime","cr:1598","cr:1600","cr:1690","cr:4723","cr:488","cr:5483","cr:7100","cr:7233","emptyFunction","gkx","justknobx","logMessengerWebFalcoEvent","promiseDone","react","useCommunityFolder","useIsAdmodOnboardingEnabledForThread.react","useLSMessagingInitiatingSource","usePageletMetadata","useReStore","useReportThreadViewOpenDebounced"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react"));e=l;var n=e.useRef,o=e.useState,p=c("CometDebounce")(c("logMessengerWebFalcoEvent"));function q(a){var b=(k||(k=c("useReStore")))(),e=d("ReQLSuspense").useFirst(function(){return d("MWPreloadableQueries").threadNullStateQuery(b,a)},[b,a],f.id+":109"),g=d("ReQLSuspense").useArray(function(){return d("MWPreloadableQueries").threadNullStateCtaQuery(b,a)},[b,a],f.id+":116");return[e,g]}function r(a,e){var f=(k||(k=c("useReStore")))();d("Int64Hooks").useEffectInt64(function(){c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var c=(yield (h||(h=b("Promise"))).all([d("ReQL").firstAsync(d("ReQL").fromTableDescending(f.table("threads")).getKeyRange(a)),d("ReQL").firstAsync(d("ReQL").fromTableDescending(f.table("messages")).getKeyRange(a)),d("ReQL").toArrayAsync(d("ReQL").fromTableDescending(f.table("reactions")).getKeyRange(a).take(20))])),g=c[0],j=c[1];c=c[2];if(j==null||g==null)return;c=c.reduce(function(a,b){return(i||(i=d("I64"))).max(a,(a=b.reactionCreationTimestampMs)!=null?a:(i||(i=d("I64"))).zero)},(i||(i=d("I64"))).zero);j=i.max(j.timestampMs,c);c=i.compare(j,g.lastActivityTimestampMs)>-1;p({threadKey:g.threadKey,threadType:g.threadType},"thread_and_message_list_last_activity_mismatch",e,{hasMissingMessage:!c,threadLastActivityTimeMs:i.to_string(g.lastActivityTimestampMs),threadLastMessageTimeMs:i.to_string(j)})})())},[f,e,a])}function a(a){var e,g=a.entryPoint,h=a.messageListRef,l=a.thread,p=(k||(k=c("useReStore")))();a=o(0);var s=a[0],t=a[1];a=o(c("Random").uint32());var u=a[0];a=a[1];var v=q(l.threadKey),w=v[0],x=v[1];v=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(p.table("cm_channel_list").index("threadIdCommunityId"),["channelPrivacy"]).getKeyRange(l.threadKey)},[p,l.threadKey],f.id+":212");e=(e=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(p.table("threads"),["lastActivityTimestampMs"]).getKeyRange(l.threadKey).map(function(a){a=a.lastActivityTimestampMs;return!(i||(i=d("I64"))).equal(a,i.zero)})},[p,l.threadKey],f.id+":221"))!=null?e:!1;c("usePageletMetadata")("threadType",(i||(i=d("I64"))).to_string(l.threadType));var y=d("MWPActor.react").isAPPlus(),z=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(l.threadType),A=c("useLSMessagingInitiatingSource")(),B=b("cr:7100")!=null?m.jsx(b("cr:7100"),{thread:l}):null,C=c("MWCMIsAnyCMThread")(l.threadType),D=d("MWCMThreadTypes.react").isJoinedCMThread(l.threadType),E=n(!1),F=C||c("justknobx")._("1225")&&(d("LSMessagingThreadTypeUtil").isSocialChannelV2(l.threadType)||d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(l.threadType)),G=d("LSThreadBitOffset").has(167,l)&&D,H=d("LSThreadBitOffset").has(193,l),I=c("justknobx")._("1596"),J=c("useReportThreadViewOpenDebounced")(l.threadKey,I);d("Int64Hooks").useEffectInt64(function(){F&&(window.addEventListener("focus",J),C&&d("GroupsCometChatsEngagementLogger").log({action:"background_effect",community_id:(i||(i=d("I64"))).to_string(l.parentThreadKey),event:"report_thread_view_open",source:"blended_threadlist_community_tab",surface:"thread_view",thread_id:(i||(i=d("I64"))).to_string(l.threadKey)}),E.current===!1&&(t(d("ServerTime").getMillis()),E.current=!0,d("MWCMSelectiveSyncTTRCQPLLoggingUtils").logPoint(u,"selective_sync_remediation_start"),J()));G&&c("promiseDone")(p.runInTransaction(function(a){return c("LSFetchAdditionalThreadDataStoredProcedure")(c("LSFactory")(a),{threadKey:l.threadKey})},"readwrite"));return function(){window.removeEventListener("focus",J)}},[p,l.parentThreadKey,l.threadKey,l.threadType,G,C,u,F,J]);I=d("Int64Hooks").useCallbackInt64(function(){return m.jsxs(m.Fragment,{children:[m.jsx(c("MWPQuickReplies.react"),{threadKey:l.threadKey}),m.jsx(c("MWPersistentIcebreakers"),{initiatingSource:A,lsSource:"inboxInThread",nullstateCtas:x,threadKey:l.threadKey,threadType:l.threadType})]})},[l.threadKey,l.threadType,x,A]);var K=d("Int64Hooks").useCallbackInt64(function(){return m.jsxs(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:[m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:20}),m.jsx(c("MWContextBanner.react"),{threadKey:l.threadKey,threadType:l.threadType}),m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:10})]})},[l.threadKey,l.threadType]);r(l.threadKey,g);var L=c("useCommunityFolder")(l),M=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),N=d("useIsAdmodOnboardingEnabledForThread.react").useIsAdmodOnboardingEnabledForThread(l.threadKey);M=M!=null&&M==="ChatTab";v=(v==null?void 0:v.channelPrivacy)!=null&&(i||(i=d("I64"))).equal(v==null?void 0:v.channelPrivacy,(j||(j=d("LSIntEnum"))).ofNumber(2));var O=c("gkx")("1968579"),P=c("gkx")("7561"),Q=(i||(i=d("I64"))).gt(l.parentThreadKey,(i||(i=d("I64"))).zero)&&(i||(i=d("I64"))).gt(l.threadKey,(i||(i=d("I64"))).zero);M=b("cr:4723")!=null&&!M?m.jsx(b("cr:4723"),{thread:l}):null;var R=b("cr:1690")!=null?m.jsx(b("cr:1690"),{thread:l}):null;H=c("MWChatXACSunsettingBanner.react")!=null&&H?m.jsx(c("MWChatXACSunsettingBanner.react"),{}):null;var S=b("cr:5483")!=null&&D&&!v?m.jsx(c("CometPlaceholder.react"),{fallback:null,children:m.jsx(b("cr:5483"),{folderId:l.parentThreadKey})}):null;O=b("cr:1598")!=null&&D&&v&&O?m.jsx(b("cr:1598"),{groupId:l.parentThreadKey,threadId:l.threadKey}):null;D=b("cr:488")!=null&&D&&v&&P?m.jsx(b("cr:488"),{groupId:l.parentThreadKey,threadId:l.threadKey}):null;v=Q?m.jsx(c("MWQuickPromotionThreadViewBannerContainer.react"),{communityId:L==null?void 0:L.folderId,fbGroupId:L==null?void 0:L.fbGroupId,threadId:l.threadKey}):null;P=b("cr:7233")!=null&&N?m.jsx(c("CometErrorBoundary.react"),{fallback:c("emptyFunction"),children:m.jsx(c("CometPlaceholder.react"),{fallback:null,children:m.jsx(b("cr:7233"),{threadKey:l.threadKey})})}):null;Q=F?m.jsx(c("SelectiveSyncTTRCLogger.react"),{instanceKey:u,isReportThreadViewOpenSprocCalled:E.current,reportThreadViewOpenCalledTimestamp:s,setInstanceKey:a,threadKey:l.threadKey,threadSubtype:l.threadSubtype,threadType:l.threadType}):null;return w!=null&&!e?m.jsxs(m.Fragment,{children:[Q,v,P,B,m.jsx(c("MWCMAutoJoinNotifNUX.react"),{thread:l}),R,S,O,D,H,M,m.jsx(c("MWContextBanner.react"),{threadKey:l.threadKey,threadType:l.threadType}),m.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:null}),m.jsx(c("MWV2ThreadNullstate.react"),{initiatingSource:A,lsSource:"inboxInThread",nullstate:w,nullstateCtas:x,threadKey:l.threadKey,threadName:l.threadName,threadType:l.threadType})]}):m.jsxs(m.Fragment,{children:[Q,v,P,B,m.jsx(c("MWCMAutoJoinNotifNUX.react"),{thread:l}),R,H,S,O,D,m.jsx(c("MWChatUnsendNUX.react"),{senderUnsendNUXEnabled:!0}),M,m.jsx(c("MWMessageList"),{entryPoint:g,ref:h,renderFooter:I,renderHeader:K,thread:l}),y&&z&&b("cr:1600")!=null?m.jsx(b("cr:1600"),{thread:l}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWOpenAndSecureThreadView.react",["I64","LSIntEnum","LSMessagingThreadTypeUtil","MWCMThreadTypes.react","MWLSDatabaseLazySync","MWOpenThreadDetail.react","MWPAudioPlaybackThreadContext.react","MWPThreadGradientBackground.react","MessengerWebUXLogger","cr:6982","cr:8912","promiseDone","react","useIsReactionsV2Enabled","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));a=k;e=a.memo;var m=a.useEffect;f=e(function(a){var e=a.entryPoint,f=a.messageListRef;a=a.thread;var g=(h||(h=c("useReStore")))(),k=d("useIsReactionsV2Enabled").useIsReactionsV2Enabled(a.threadKey),n=c("MessengerWebUXLogger")==null?void 0:c("MessengerWebUXLogger").useImpressionLoggerRef({eventName:"thread_view_impression"}),o=b("cr:8912")==null?void 0:b("cr:8912")({client_extras:e?{entry_point:e}:void 0,community_id:(i||(i=d("I64"))).to_string(a.parentThreadKey),event:"chat_preview_open",surface:"chat_preview",thread_id:(i||(i=d("I64"))).to_string(a.threadKey)});m(function(){k&&c("promiseDone")(d("MWLSDatabaseLazySync").sync(g,(j||(j=d("LSIntEnum"))).ofNumber(118)))},[g,k]);var p=d("LSMessagingThreadTypeUtil").isSecure(a.threadType),q=o!=null&&d("MWCMThreadTypes.react").isUnjoinedCMThread(a.threadType);return l.jsx("div",{className:"x78zum5 xdt5ytf x1iyjqo2",ref:q?o:n,children:l.jsx(d("MWPThreadGradientBackground.react").MWPThreadGradientBackground,{children:l.jsx(d("MWPAudioPlaybackThreadContext.react").MWPAudioPlaybackThreadContextProvider,{threadKey:a.threadKey,children:b("cr:6982")==null||!p?l.jsx(c("MWOpenThreadDetail.react"),{entryPoint:e,messageListRef:f,thread:a}):l.jsx(b("cr:6982"),{entryPoint:e,messageListRef:f,thread:a})})})})});g["default"]=f}),98); __d("XPlatWebAudioPlaybackContextProvider.react",["cr:6234","react"],(function(a,b,c,d,e,f,g){"use strict";var h;h||d("react");function a(a){a=a.children;return a}a.displayName=a.name+" [from "+f.id+"]";e=(c=b("cr:6234")==null?void 0:b("cr:6234").MWPAudioPlaybackContextProvider)!=null?c:a;d=e;g["default"]=d}),98); __d("MWV2ChatTab.react",["CometErrorBoundary.react","CometPlaceholder.react","CometTransientDialogProvider.react","I64","Int64Hooks","InteractionTracingMetrics","LSFactory","LSMessagingThreadTypeUtil","LSPlatformWaitForTaskCompletion","LSThreadBitOffset","LSThreadPointQueryAndRestoreMessagesWithJIDStoredProcedure","MAWInThreadBannerNuxReqCondWrapper.react","MAWThreadCutover","MWChatConnectionStatusCard.react","MWChatInteraction","MWChatStateContext","MWChatTabInThreadBanner.react","MWComposerGating.react","MWInChatTabContextProvider.react","MWInboxThreadMessagesSpinner.react","MWJewelEntrypoint","MWOpenAndSecureThreadView.react","MWPNewMessageAnnouncementForScreenReaders.react","MWPThreadIsPage.react","MWPThreadThemeProvider.react","MWPVisibleMessageContext.react","MWThreadKey.react","MWV2ChatTabHeader.react","MWV2ChatTabLoadingWithGlimmers.react","MWV2ComposerHasContentContext.react","MWV2ErrorComposer.react","MWV2FileDropzone.react","MWV2TabContainer","ReQL","ReQLSuspense","XPlatWebAudioPlaybackContextProvider.react","cr:1113","cr:1730","cr:392","cr:5001","cr:6111","cr:7652","cr:7654","cr:8060","cr:8061","cr:8529","cr:965","emptyFunction","gkx","promiseDone","react","stylex","useC4gEngagementImpressionLogging","useMWChatStateUpdateThreadKeyDescriptorIfAuthoritative","useMWV2EnsureThatChatTabExists","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));e=k;var m=e.memo,n=e.useLayoutEffect,o=e.useRef,p=(e=(e=b("cr:7652"))!=null?e:b("cr:7654"))!=null?e:l.Fragment,q=(e=b("cr:1730"))!=null?e:c("emptyFunction"),r=(e=b("cr:8061"))!=null?e:function(a,b){return[!1,!0,null]},s=(e=b("cr:1113"))!=null?e:c("emptyFunction");function t(a){var b=a.children,e=a.threadKey,g=(h||(h=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("threads")).getKeyRange(e)},[g,e],f.id+":115");if(a==null)return;return b(a)}t.displayName=t.name+" [from "+f.id+"]";function u(a){var e=a.otherContactIdForDefaultE2eeThread,f=a.shouldUseDefaultE2eeOneToOne,g=a.tab;a=a.thread;var h=a.themeFbid,i=a.threadKey,j=a.threadSubtype,k=a.threadType;s({groupThreadSubtype:j,threadKey:i,threadType:k});c("useC4gEngagementImpressionLogging")({threadKey:i,threadType:k});j=d("LSThreadBitOffset").has(167,a);var m=!d("LSThreadBitOffset").has(56,a),q=d("LSMessagingThreadTypeUtil").isSecure(k),r=o({getScrollAreaElement:c("emptyFunction"),jumpToMostRecentMessage:c("emptyFunction"),restoreScrollPosition:c("emptyFunction")}),u=d("MWChatStateContext").useChatState(function(a){return a.focusedTabId});n(function(){if(u!==g.tabId&&c("gkx")("1368")){var a;(a=r.current)==null?void 0:a.restoreScrollPosition()}},[u,g.tabId]);q=l.jsxs(l.Fragment,{children:[g.tabId!==u?null:l.jsx(c("MWPNewMessageAnnouncementForScreenReaders.react"),{thread:a}),q?l.jsx(c("MAWInThreadBannerNuxReqCondWrapper.react"),{threadKey:i}):null,l.jsx(c("MWChatConnectionStatusCard.react"),{}),l.jsx(c("MWChatTabInThreadBanner.react"),{thread:a}),l.jsxs(d("MWV2FileDropzone.react").MWV2FileDropzone,{isMediaOnly:m,thread:a,children:[l.jsx(c("MWOpenAndSecureThreadView.react"),{entryPoint:"popup_chat_box",messageListRef:r,thread:a}),l.jsx(c("CometErrorBoundary.react"),{fallback:function(){return l.jsx(c("MWV2ErrorComposer.react"),{})},children:b("cr:392")!=null?l.jsx(b("cr:392"),{afterSendMessage:function(){var a;(a=r.current)==null?void 0:a.jumpToMostRecentMessage()},isPreviewThread:!1,threadKey:i,threadType:k}):b("cr:8529")!=null?l.jsx(b("cr:8529"),{afterSendMessage:function(){var a;(a=r.current)==null?void 0:a.jumpToMostRecentMessage()},isPreviewThread:!1,threadKey:i,threadType:k}):l.jsx(t,{threadKey:i,children:function(a){return l.jsx(d("MWComposerGating.react").MWChatComposerGating,{afterSendMessage:function(){var a;(a=r.current)==null?void 0:a.jumpToMostRecentMessage()},isPreviewThread:!1,thread:a})}})})]})]});m=b("cr:6111")!=null&&j?l.jsx(b("cr:6111"),{tab:g,thread:a,children:q}):null;j=function(a){return f?l.jsx(l.Fragment,{children:a}):l.jsx(d("MWThreadKey.react").MWThreadKeyProvider,{id:i,children:a})};var v=b("cr:5001")==null?void 0:b("cr:5001").MWAdmodOnboardingSuggestedActionsContextProvider,w=c("MWJewelEntrypoint").entrypoint==="ONBOARDING_SOFTBLOCK";m=m!=null?m:f&&b("cr:8060")!=null?l.jsx(b("cr:8060"),{otherContactIdForDefaultE2eeThread:e,tab:g}):l.jsxs(c("MWV2TabContainer"),{tab:g,threadKey:i,children:[b("cr:965")!=null?l.jsx(b("cr:965"),{tab:g,threadKey:i,threadType:k}):l.jsx(c("MWV2ChatTabHeader.react"),{tab:g,thread:a}),l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWInboxThreadMessagesSpinner.react"),{}),children:g.doNotBlockWithEBUpsell!==!0&&w?l.jsx(p,{children:q}):q})]});return l.jsx(c("MWPThreadThemeProvider.react"),{themeFbid:h,children:l.jsx(d("MWPThreadIsPage.react").Provider,{threadKey:i,children:j(l.jsx(c("XPlatWebAudioPlaybackContextProvider.react"),{children:l.jsx(d("MWPVisibleMessageContext.react").MWPVisibleMessageContextProvider,{children:l.jsx(c("CometTransientDialogProvider.react"),{children:l.jsx(d("MWV2ComposerHasContentContext.react").MWV2ComposerHasContentContextProvider,{children:l.jsx(d("MWInChatTabContextProvider.react").InChatTabContextProvider,{children:v!=null?l.jsx(v,{children:m}):m})})})})}))})})}u.displayName=u.name+" [from "+f.id+"]";var v=function(a,b){var e=d("MAWThreadCutover").useIsDualThreadCutoverOpenThread(a),g=(d("MAWThreadCutover").useIsCutoverOpenThread(a)||b!=null&&d("LSThreadBitOffset").has(128,b))&&!e&&(c("gkx")("7595")||c("gkx")("3532"));b=d("MAWThreadCutover").useGetCutoverSecureThreadKey((j||(j=d("I64"))).to_string(a));var i=c("gkx")("7595")||c("gkx")("3532")?b:null,k=(h||(h=c("useReStore")))();d("Int64Hooks").useEffectInt64(function(){if(!g)return;if(i==null)c("promiseDone")(c("LSPlatformWaitForTaskCompletion")(k,function(b){return c("LSThreadPointQueryAndRestoreMessagesWithJIDStoredProcedure")(c("LSFactory")(b),{waJid:a})},"readwrite"));else{var b=d("MWChatInteraction").get((j||(j=d("I64"))).to_string(a));if(b!=null){var e;d("MWChatInteraction").set(i,b);(e=c("InteractionTracingMetrics")).addMetadata(b,"thread_id",i);e.addMetadata(b,"thread_type",15..toString());e.addMetadata(b,"isSecure","true");e.addMetadata(b,"redirectedFromPreCutover",1)}}},[i,k,g,a]);b=d("ReQLSuspense").useFirst(function(){return i!=null?d("ReQL").fromTableAscending(k.table("threads")).getKeyRange((j||(j=d("I64"))).of_string(i)):d("ReQL").empty()},[k,i],f.id+":402");e=e?void 0:b;return e},w={hidden:{display:"x1s85apg",$$css:!0}};function a(a){var b,e=a.isMinimized;e=e===void 0?!1:e;var g=a.tab;a=a.threadKeyDescriptor;var j=(h||(h=c("useReStore")))(),k=a.threadKey,m=a.clientThreadKey;c("useMWV2EnsureThatChatTabExists")(k,a.threadType,m);a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(j.table("threads"),["themeFbid","threadKey","threadType","parentThreadKey","threadSubtype","threadName","authorityLevel","cannotUnsendReason","threadStatus","cannotReplyReason","clientThreadKey"].concat(d("LSThreadBitOffset").threadCapabilityFields)).getKeyRange(k)},[j,k],f.id+":439");var n=d("ReQLSuspense").useFirst(function(){return m!=null?d("ReQL").fromTableAscending(j.table("threads").index("clientThreadKey")).getKeyRange(m):d("ReQL").empty()},[j,m],f.id+":456"),o=v(k,a);a=(o=(o=o)!=null?o:a)!=null?o:n;c("useMWChatStateUpdateThreadKeyDescriptorIfAuthoritative")(a,g,{shouldClearOldHiddenTab:!0,shouldUpdateThreadType:!0});n=r((o=a==null?void 0:a.threadKey)!=null?o:k,a==null?void 0:a.threadType);o=n[0];var p=n[1];n=n[2];b=(b=q({threadKey:(b=a==null?void 0:a.threadKey)!=null?b:k,triggerSource:"chatTab"}))!=null?b:!1;if(a!=null&&d("LSMessagingThreadTypeUtil").isOpenOneToOne(a.threadType)&&!p||b)return e?null:l.jsx(c("MWV2ChatTabLoadingWithGlimmers.react"),{tab:g});return a!=null?l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWV2ChatTabLoadingWithGlimmers.react"),{tab:g}),children:l.jsx("div",{className:(i||(i=c("stylex")))(e?w.hidden:void 0),children:l.jsx(u,{otherContactIdForDefaultE2eeThread:n,shouldUseDefaultE2eeOneToOne:a!=null&&d("LSMessagingThreadTypeUtil").isOpenOneToOne(a.threadType)&&o,tab:g,thread:a})})}):null}a.displayName=a.name+" [from "+f.id+"]";e=m(a);g["default"]=e}),98); __d("MWContextBannerAdmodOnboardingActions.react",["CometErrorBoundary.react","CometPlaceholder.react","CometRelay","I64","LSAuthorityLevel","LSIntEnum","LSMessagingThreadTypeUtil","MWAdmodOnboardingSuggestedActions.react","MWAdmodOnboardingSuggestedActionsContext.react","MWContextBannerAdmodOnboardingActionsQuery.graphql","cr:5777","emptyFunction","react","useMWIsAnyToDoTaskRemaining.react","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react"));e=i;var m=e.useCallback,n=e.useRef,o=e.useState;function p(a){a=a.thread;var e=d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("MWContextBannerAdmodOnboardingActionsQuery.graphql"),{threadKey:(j||(j=d("I64"))).to_string(a.threadKey)}),f=d("MWAdmodOnboardingSuggestedActionsContext.react").useMWAdmodOnboardingSuggestedActionsContext();f=f.setContextBannerLoadingState;var g=n(!1);g.current===!1&&(f(d("MWAdmodOnboardingSuggestedActionsContext.react").ContextBannerLoadingStates.INITIALIZED),g.current=!0);f=c("useMWIsAnyToDoTaskRemaining.react")(e==null?void 0:e.c4g_thread);g=o(f);f=g[0];var i=g[1];if((e==null?void 0:e.c4g_thread)!=null&&f)return l.jsx(c("MWAdmodOnboardingSuggestedActions.react"),{entryPoint:"fb_groups:admin_onboarding_context_banner",impressionEvent:"admin_onboarding_context_banner_rendered",onClose:function(){i(!1)},onboardingTasksRef:e,source:"admod_onboarding_context_banner",surface:"admod_onboarding_context_banner",threadKey:a.threadKey});else if(d("LSMessagingThreadTypeUtil").isGroup(a.threadType)&&(j||(j=d("I64"))).gt(a.authorityLevel,(k||(k=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").SERVER_PARTIAL))&&b("cr:5777")!=null)return l.jsx(b("cr:5777"),{thread:a});return null}p.displayName=p.name+" [from "+f.id+"]";function a(a){a=a.thread;var b=d("MWAdmodOnboardingSuggestedActionsContext.react").useMWAdmodOnboardingSuggestedActionsContext(),e=b.setContextBannerLoadingState,f=b.setIsContextBannerVisible;b=n(!1);b.current===!1&&(e(d("MWAdmodOnboardingSuggestedActionsContext.react").ContextBannerLoadingStates.INITIALIZING),b.current=!0);e=c("useVisibilityObserver")({onHidden:m(function(a){a=a.hiddenReason;a==="NOT_IN_VIEWPORT"&&f(!1)},[f]),onVisible:m(function(){f(!0)},[f])});return l.jsx(c("CometErrorBoundary.react"),{fallback:c("emptyFunction"),children:l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx("div",{ref:e,children:l.jsx(p,{thread:a})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWContextBannerQuickActionsEditChatInfo.react",["MWXCircleButton.react","react","useMWCMEditChatInfoDialogEntrypoint"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.icon,d=a.label;a=a.threadKey;var e=c("useMWCMEditChatInfoDialogEntrypoint")(a);return i.jsx(c("MWXCircleButton.react"),{icon:b,label:d,onPress:function(){return e()},size:36})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWCopyLinkPublicChatQuickAction.react",["fbt","MWPBumpEntityKey","MWVerticalRhythm","MWXCircleButton.react","MWXIconLink","MWXText.react","cometPushToast","react","useCopyText"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useCallback,l=h._("__JHASH__6ygymPD56Yw__JHASH__"),m=h._("__JHASH__NNt0oNKP6tq__JHASH__");function a(a){a=a.threadInviteLink;a=c("useCopyText")({value:a});a[0];a[1];var b=a[2];a=k(function(){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.infobar","copy_link"),b(),d("cometPushToast").cometPushSimpleToast(m)},[b]);return j.jsxs("li",{className:"x6s0dn4 x78zum5 xdt5ytf x187xtus",children:[j.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconLink"),label:l,onPress:a,size:36}),j.jsx(c("MWVerticalRhythm"),{height:8}),j.jsx(c("MWXText.react"),{align:"center",color:"primary",numberOfLines:1,type:"body4",children:l})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWXIconShare",["MWXSvgIcon","SVGIcon","cr:7953","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:7953")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98); __d("MWShareThreadQuickActionButton.react",["fbt","MWXCircleButton.react","MWXColumnItem.react","MWXIconShare","MWXText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=h._("__JHASH__zzzD0_ypABg__JHASH__");function a(a){a=a.onPress;return j.jsxs(j.Fragment,{children:[j.jsx(c("MWXColumnItem.react"),{children:j.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconShare"),label:k,onPress:a,size:36})}),j.jsx(c("MWXColumnItem.react"),{paddingTop:8,children:j.jsx(c("MWXText.react"),{align:"center",color:"primary",numberOfLines:1,type:"body4",children:k})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWSharePublicChatQuickAction.react",["MWChannelInviteDialog.entrypoint","MWShareThreadQuickActionButton.react","react","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.thread;a=c("useMWXEntryPointDialog")(c("MWChannelInviteDialog.entrypoint"),{});var d=a[0];return i.jsx("li",{className:"x6s0dn4 x78zum5 xdt5ytf x187xtus",children:i.jsx(c("MWShareThreadQuickActionButton.react"),{onPress:function(){d({channelThread:b})}})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWContextBannerQuickActions.react",["fbt","CommunityMessagingEnableState","I64","LSCommunityBitOffset","LSIntEnum","LSMessagingThreadTypeUtil","LSThreadBitOffset","MWAddMemberToGroupCircleButton.react","MWCMBulkInviteDialog.entrypoint","MWCMIsAnyCMThread","MWCMShortLinkShare.react","MWCMThreadTypes.react","MWCMisStandAloneCommunity","MWContextBannerQuickActionsEditChatInfo.react","MWCopyLinkPublicChatQuickAction.react","MWEditChannelDialogTrigger.react","MWEditThreadNameDialogTrigger.react","MWGroupLimitContainer.react","MWInboxInfoMembersSection.react","MWInboxPersistedUIState","MWLSGroupMembershipDialog.entrypoint","MWPBumpEntityKey","MWSharePublicChatQuickAction.react","MWVerticalRhythm","MWXCircleButton.react","MWXIconFriendGenericAdd","MWXIconGroup","MWXIconLink","MWXIconPencil","MWXText.react","emptyFunction","justknobx","promiseDone","react","useCommunityFolder","useCommunityMembers","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||(i=d("react"));b=i;var m=b.useMemo,n=b.useRef,o=h._("__JHASH__4Z6iwQf0KqP__JHASH__"),p=h._("__JHASH__a3y4zGfm_2Z__JHASH__");function a(a){var b=a.thread;a=n(null);var e=c("useCommunityFolder")(b),f=c("MWCMIsAnyCMThread")(b.threadType),g=c("MWCMisStandAloneCommunity")(e==null?void 0:e.communityType),i=d("MWCMThreadTypes.react").isBroadcastThread(b.threadType),q=d("LSMessagingThreadTypeUtil").isDiscoverableChannel(b.threadType),r=d("useCommunityMembers").useClearMemberList(),s=m(function(){if(e!=null&&f)return[e.enableState,d("LSThreadBitOffset").has(120,b),d("LSCommunityBitOffset").has(17,e),e.fbGroupId];else return[void 0,!1,!1,(j||(j=d("I64"))).zero]},[f,e,b]),t=s[0],u=s[1];s=s[2];t=f&&(j||(j=d("I64"))).equal((t=t)!=null?t:(k||(k=d("LSIntEnum"))).ofNumber(c("CommunityMessagingEnableState").ENABLED),(k||(k=d("LSIntEnum"))).ofNumber(c("CommunityMessagingEnableState").DISABLE_REQUESTED));var v=d("MWInboxPersistedUIState").usePersistedUIState(!1,d("MWInboxInfoMembersSection.react").storageKey),w=v[0];v=c("useMWXEntryPointDialog")(c("MWCMBulkInviteDialog.entrypoint"),{});var x=v[0];v=c("useMWXEntryPointDialog")(c("MWLSGroupMembershipDialog.entrypoint"),{groupID:(j||(j=d("I64"))).to_string((v=e==null?void 0:e.fbGroupId)!=null?v:(j||(j=d("I64"))).zero)});var y=v[0];v=m(function(){return[f?h._("__JHASH__6ygymPD56Yw__JHASH__"):h._("__JHASH__5q5wieIjbh7__JHASH__"),f?h._("__JHASH__um66LGyp2bC__JHASH__"):h._("__JHASH___jI2RJo8mJV__JHASH__"),e!=null&&i?h._("__JHASH__1cAdDa3Rt1T__JHASH__"):h._("__JHASH__1Av2Yy1o2_Y__JHASH__")]},[i,f,e]);var z=v[0],A=v[1];v=v[2];var B=d("LSThreadBitOffset").has(60,b),C=d("LSThreadBitOffset").has(81,b),D=d("LSThreadBitOffset").has(27,b),E=d("LSThreadBitOffset").has(26,b),F=d("LSThreadBitOffset").has(108,b),G=B&&C;return l.jsxs("ul",{className:"x6s0dn4 x78zum5 xl56j7k xsag5q8 x1y1aw1k",children:[f&&!t?u?l.jsxs("li",{className:"x6s0dn4 x78zum5 xdt5ytf x187xtus",children:[l.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconFriendGenericAdd"),label:o,onPress:function(){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.infobar","quick_actions_direct_invite");return x({fbThreadId:(j||(j=d("I64"))).to_string(b.threadKey),parentSurface:"thread_view",source:"invite_button",surface:"thread_view"},c("emptyFunction"))},size:36}),l.jsx(c("MWVerticalRhythm"),{height:8}),l.jsx(c("MWXText.react"),{align:"center",color:"primary",numberOfLines:1,type:"body4",children:o})]}):l.jsx(c("MWCMShortLinkShare.react"),{thread:b,children:function(a,b){return l.jsxs("li",{className:"x6s0dn4 x78zum5 xdt5ytf x187xtus",children:[l.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconLink"),label:z,onPress:b,size:36}),l.jsx(c("MWVerticalRhythm"),{height:8}),l.jsx(c("MWXText.react"),{align:"center",color:"primary",numberOfLines:1,type:"body4",children:z})]})}}):null,!f&&q&&F&&(j||(j=d("I64"))).equal(b.threadInvitesEnabledV2,(k||(k=d("LSIntEnum"))).ofNumber(1))?l.jsxs(l.Fragment,{children:[b.threadInviteLink!=null&&l.jsx(c("MWSharePublicChatQuickAction.react"),{thread:b}),b.threadInviteLink!=null&&l.jsx(c("MWCopyLinkPublicChatQuickAction.react"),{threadInviteLink:b.threadInviteLink})]}):null,!f&&D?l.jsx(c("MWGroupLimitContainer.react"),{groupLimitReachedContent:null,thread:b,children:l.jsxs("li",{className:"x6s0dn4 x78zum5 xdt5ytf x187xtus",children:[l.jsx(c("MWAddMemberToGroupCircleButton.react"),{label:z,threadKey:b.threadKey,threadType:b.threadType}),l.jsx(c("MWVerticalRhythm"),{height:8}),l.jsx(c("MWXText.react"),{align:"center",color:"primary",numberOfLines:1,type:"body4",children:z})]})}):null,q&&G?l.jsxs("li",{className:"x6s0dn4 x78zum5 xdt5ytf x187xtus",children:[l.jsx(c("MWEditChannelDialogTrigger.react"),{threadKey:b.threadKey,children:function(a,b){return l.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconPencil"),label:p,onPress:function(){return a()},ref:b,size:36})}}),l.jsx(c("MWVerticalRhythm"),{height:8}),l.jsx(c("MWXText.react"),{align:"center",color:"primary",numberOfLines:1,type:"body4",children:p})]}):null,!f&&B&&!G?l.jsxs("li",{className:"x6s0dn4 x78zum5 xdt5ytf x187xtus",children:[l.jsx(c("MWEditThreadNameDialogTrigger.react"),{threadKey:b.threadKey,children:function(a,b){return l.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconPencil"),label:A,onPress:function(){return a()},ref:b,size:36})}}),l.jsx(c("MWVerticalRhythm"),{height:8}),l.jsx(c("MWXText.react"),{align:"center",color:"primary",numberOfLines:1,type:"body4",children:A})]}):null,f&&C&&!t&&s&&!g?l.jsxs("li",{className:"x6s0dn4 x78zum5 xdt5ytf x187xtus",children:[l.jsx(c("MWContextBannerQuickActionsEditChatInfo.react"),{icon:c("MWXIconPencil"),label:p,threadKey:b.threadKey}),l.jsx(c("MWVerticalRhythm"),{height:8}),l.jsx(c("MWXText.react"),{align:"center",color:"primary",numberOfLines:1,type:"body4",children:p})]}):c("justknobx")._("1116")?null:E?l.jsxs("li",{className:"x6s0dn4 x78zum5 xdt5ytf x187xtus",children:[l.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconGroup"),label:v,onPress:function(){return y({folder:e},function(){f&&!w&&c("promiseDone")(r())})},ref:a,size:36}),l.jsx(c("MWVerticalRhythm"),{height:8}),l.jsx(c("MWXText.react"),{align:"center",color:"primary",numberOfLines:1,type:"body4",children:v})]}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPublicChatMemberRequestsBanner.react",["fbt","ix","CometContextualMessage.react","CometErrorBoundary.react","CometPlaceholder.react","CometSkittleIcon.react","FBLogger","LSAuthorityLevel","LSContactBlockedByViewerStatus","LSContactGender","LSContactIdType","LSContactType","LSContactViewerRelationship","LSContactWorkForeignEntityType","LSFactory","LSIntEnum","LSMessagingThreadTypeUtil","LSThreadBitOffset","LSVerifyContactRowExistsStoredProcedure","MWInboxInfoPanelContext.react","Promise","ReQL","ReQLSuspense","TetraButtonGroup.react","cr:4923","fbicon","promiseDone","react","usePrevious","useReStore"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=m||(m=d("react"));e=m;var o=e.useEffect,p=e.useState;function q(a){if(a.length===0){c("FBLogger")("messenger_comet").mustfix("No member requests?");return void 0}else if(a.length===1){var b;return h._("__JHASH__bWQyKZ80V0d__JHASH__",[h._param("name",((b=a[0][1])==null?void 0:b.name)||"")])}else{b=a.length-1;return h._("__JHASH__ZU2Oj6CpDJW__JHASH__",[h._plural(b,"number"),h._param("name",((b=a[0][1])==null?void 0:b.name)||"")])}}function r(a){var e=a.memberRequests,f=a.setWasClosed;a=d("MWInboxInfoPanelContext.react").useMWInboxInfoPanelContext();var g=a.isExpanded,j=a.isOnMemberRequestsPageRef,k=a.pushMemberRequestsPage,l=a.setIsExpanded,m=a.setShouldNavToMemberRequests;return n.jsx("div",{className:"xcrg951 x7m3og9 x1vjfegm",children:n.jsx(c("CometContextualMessage.react"),{addOnPrimary:n.jsx(c("TetraButtonGroup.react"),{primary:{label:h._("__JHASH__N4aWocdoeuZ__JHASH__",[h._plural(e.length)]),onPress:function(){j.current!==!0&&(g===!0?k():(m(!0),l(!0))),f(!0)},padding:"wide",type:"secondary"}}),body:q(e),headline:h._("__JHASH__wwx2l6C4JXf__JHASH__",[h._plural(e.length,"number")]),icon:n.jsx(c("CometSkittleIcon.react"),{color:"gray",icon:b("cr:4923")!=null?b("cr:4923"):d("fbicon")._(i("497883"),16),size:36}),level:4,onClose:function(){f(!0)}})})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var e=a.threadKey;a=p(!1);var g=a[0],h=a[1],i=(l||(l=c("useReStore")))(),m=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(i.table("group_membership_approval_requests")).getKeyRange(e).map(function(a){var b=d("ReQLSuspense").first(d("ReQL").fromTableAscending(i.table("contacts")).getKeyRange(a.contactId),f.id+":174");return[a,b]})},[i,e],f.id+":169"),q=m.length,s=c("usePrevious")(q);a=d("MWInboxInfoPanelContext.react").useMWInboxInfoPanelContext();var t=a.isOnMemberRequestsPageRef;o(function(){t.current!==!0&&s!==null&&q>s&&h(!1)},[q,s,h,t]);o(function(){var a=m.map(function(a){return a[0].contactId});c("promiseDone")(i.runInTransaction(function(e){return(j||(j=b("Promise"))).all(a.map(function(a){return c("LSVerifyContactRowExistsStoredProcedure")(c("LSFactory")(e),{authorityLevel:(k||(k=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").CLIENT_PARTIAL),blockedByViewerStatus:k.ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED),contactIdType:k.ofNumber(c("LSContactIdType").FBID),contactType:k.ofNumber(c("LSContactType").USER),contactViewerRelationship:k.ofNumber(c("LSContactViewerRelationship").UNKNOWN),gender:k.ofNumber(c("LSContactGender").UNKNOWN),id:a,isBlocked:!1,isMemorialized:!1,isSelf:!1,workForeignEntityType:k.ofNumber(c("LSContactWorkForeignEntityType").UNKNOWN)})}))},"readwrite"))},[i,m]);return!g&&m.length>0?n.jsx(r,{memberRequests:m,setWasClosed:h}):null}s.displayName=s.name+" [from "+f.id+"]";function t(a){a=a.thread;var b=d("LSMessagingThreadTypeUtil").isJoinedSocialChannel(a.threadType),c=d("LSThreadBitOffset").has(66,a);return c&&b?n.jsx(s,{threadKey:a.threadKey}):null}t.displayName=t.name+" [from "+f.id+"]";function a(a){a=a.thread;return n.jsx(c("CometErrorBoundary.react"),{children:n.jsx(c("CometPlaceholder.react"),{fallback:null,children:n.jsx(t,{thread:a})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPublicChatNUXDialog.react",["CometErrorBoundary.react","CometPlaceholder.react","CometRelay","LSMessagingThreadTypeUtil","MWPublicChatsNUXQuickPromotionContainer.entrypoint","react","useCometRelayEntrypointContextualEnvironmentProvider"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){a=a.thread;var b=k(),e=b[0],f=b[1],g=c("useCometRelayEntrypointContextualEnvironmentProvider")(),h=d("LSMessagingThreadTypeUtil").isJoinedSocialChannel(a.threadType);j(function(){e==null&&h&&f(function(){return d("CometRelay").loadEntryPoint(g,c("MWPublicChatsNUXQuickPromotionContainer.entrypoint"),{})});return function(){e==null?void 0:e.dispose()}},[e,g,h]);if(e!=null)return i.jsx(c("CometErrorBoundary.react"),{children:i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:e,props:{}})})});else return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ChatImagePlaceholder.react",["CometObjectFitContainer.react","MDSGlimmer.react","MWPStableImage.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={glimmer:{display:"x1lliihq",height:"x5yr21d",width:"xh8yej3",$$css:!0}};function a(a){var b=a.height;a=a.width;if(a==null)return null;if(b==null)return null;var e=a/b;return j.jsx(d("MWPStableImage.react").MWPStableImageContainer,{aspectRatio:e,className:(h||(h=c("stylex")))(!1),height:b,maxHeight:200,maxWidth:480,width:a,children:j.jsx(c("CometObjectFitContainer.react"),{contentAspectRatio:e,objectFitMode:"CONTAINER_WIDTH_BASED_ASPECT_RATIO",children:j.jsx(c("MDSGlimmer.react"),{index:1,xstyle:k.glimmer})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWAttachmentWithPreview",["I64","ReQL","ReQLSuspense","err","react","recoverableViolation","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(j||d("react")).useMemo;function a(a,b,e){var g=(h||(h=c("useReStore")))(),j=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(g.table("attachments")).getKeyRange(a,b)},[g,b,a,e],f.id+":39");e=k(function(){return j.sort(function(a,b){if(a.filesize==null)return b.filesize==null?0:-1;return b.filesize==null?a.filesize==null?0:1:(i||(i=d("I64"))).compare(a.filesize,b.filesize)}).reverse()},[j]);switch(e.length){case 0:return[];case 1:case 2:return e;default:c("recoverableViolation")("Message has more than 2 attachments","messenger_e2ee_web",{error:c("err")("[messenger_e2ee_web] Message has more than 2 attachments")});return[e[0],e[1]]}}g["default"]=a}),98); __d("MAWSecureAttachment.react",["CometPlaceholder.react","I64","LSAuthorityLevel","LSIntEnum","MAWAttachmentBlob.react","MAWChatFile.react","MAWGetAttachmentThumbnailBlob","MWAudioPlayer.react","MWPMessageIsReply","MWPMessageListAttachmentContainer.react","MWV2ChatImage.react","MWV2ChatImagePlaceholder.react","MWV2ChatVideo.react","MWV2Sticker.react","MWXMAAttachment.react","MWXSolidMessageBubble.react","MessagingAttachmentType","react","useMWAttachmentWithPreview"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react");function l(a){var b=a.dbAttachment,e=a.connectBottom,f=a.connectTop,g=a.message;a=a.outgoing;var h=b.attachmentFbid,l=b.attachmentType,m=b.authorityLevel;switch(!0){case h===(i||(i=d("I64"))).to_string((i||(i=d("I64"))).max_int)&&(i||(i=d("I64"))).equal(m,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").OPTIMISTIC)):return k.jsx(c("MWV2ChatImagePlaceholder.react"),{height:b.previewHeight!=null?(i||(i=d("I64"))).to_float(b.previewHeight):b.previewHeightLarge!=null?(i||(i=d("I64"))).to_float(b.previewHeightLarge):void 0,width:b.previewWidth!=null?(i||(i=d("I64"))).to_float(b.previewWidth):b.previewWidthLarge!=null?(i||(i=d("I64"))).to_float(b.previewWidthLarge):void 0});case(i||(i=d("I64"))).equal(l,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE)):return k.jsx(c("CometPlaceholder.react"),{fallback:k.jsx(c("MWV2ChatImagePlaceholder.react"),{height:b.previewHeight!=null?(i||(i=d("I64"))).to_float(b.previewHeight):b.previewHeightLarge!=null?(i||(i=d("I64"))).to_float(b.previewHeightLarge):void 0,width:b.previewWidth!=null?(i||(i=d("I64"))).to_float(b.previewWidth):b.previewWidthLarge!=null?(i||(i=d("I64"))).to_float(b.previewWidthLarge):void 0}),children:k.jsx(c("MWV2ChatImage.react"),{attachment:b,connectTop:f,getPlayableUrl:d("MAWAttachmentBlob.react").getAttachmentBlob,getPreviewUrl:c("MAWGetAttachmentThumbnailBlob"),message:g,navigateToRouteForMediaViewer:!1,outgoing:a})});case(i||(i=d("I64"))).equal(l,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)):return k.jsx(c("CometPlaceholder.react"),{fallback:k.jsx(c("MWV2ChatImagePlaceholder.react"),{height:b.previewHeight!=null?(i||(i=d("I64"))).to_float(b.previewHeight):b.previewHeightLarge!=null?(i||(i=d("I64"))).to_float(b.previewHeightLarge):void 0,width:b.previewWidth!=null?(i||(i=d("I64"))).to_float(b.previewWidth):b.previewWidthLarge!=null?(i||(i=d("I64"))).to_float(b.previewWidthLarge):void 0}),children:k.jsx(c("MWV2ChatVideo.react"),{attachment:b,connectTop:f,getPreviewUrl:d("MAWAttachmentBlob.react").getAttachmentBlob,message:g,navigateToRouteForMediaViewer:!1,outgoing:a})});case(i||(i=d("I64"))).equal(l,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO)):return k.jsx(d("MWAudioPlayer.react").MWAudioPlayer,{attachment:b,getPlayableUrl:d("MAWAttachmentBlob.react").getAttachmentBlob,isReply:c("MWPMessageIsReply")(g),outgoing:a});case(i||(i=d("I64"))).equal(l,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE)):return k.jsx(c("CometPlaceholder.react"),{fallback:k.jsx(c("MWV2ChatImagePlaceholder.react"),{height:b.previewHeight!=null?(i||(i=d("I64"))).to_float(b.previewHeight):b.previewHeightLarge!=null?(i||(i=d("I64"))).to_float(b.previewHeightLarge):void 0,width:b.previewWidth!=null?(i||(i=d("I64"))).to_float(b.previewWidth):b.previewWidthLarge!=null?(i||(i=d("I64"))).to_float(b.previewWidthLarge):void 0}),children:k.jsx(c("MWV2ChatImage.react"),{attachment:b,connectTop:f,getPlayableUrl:d("MAWAttachmentBlob.react").getAttachmentBlob,getPreviewUrl:d("MAWAttachmentBlob.react").getAttachmentBlob,message:g,navigateToRouteForMediaViewer:!1,outgoing:a})});case(i||(i=d("I64"))).equal(l,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").STICKER)):return k.jsx(c("MWV2Sticker.react"),{attachment:b,getPreviewUrl:d("MAWAttachmentBlob.react").getAttachmentBlob});case(i||(i=d("I64"))).equal(l,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA)):return k.jsx(d("MWXMAAttachment.react").MWXMAAttachment,{attachment:b,connectBottom:e,connectTop:f,getFaviconUrlXMA:function(a,b){return d("MAWAttachmentBlob.react").getInfoUrlXMA(a,"favicon")},getHeaderUrlXMA:function(a){return d("MAWAttachmentBlob.react").getInfoUrlXMA(a,"header")},getPlayableUrl:function(a,b){return d("MAWAttachmentBlob.react").getInfoUrlXMA(a,"preview")},getPreviewUrlXMA:function(a,b){return d("MAWAttachmentBlob.react").getInfoUrlXMA(a,"preview")},outgoing:a});case(i||(i=d("I64"))).equal(l,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").FILE)):return k.jsx(c("MWXSolidMessageBubble.react"),{connectBottom:e,connectTop:f,outgoing:a,style:{backgroundColor:"var(--chat-incoming-message-bubble-background-color)",padding:0},children:k.jsx(c("MAWChatFile.react"),{file:b})});default:return"Unsupported attachment type"}}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.connectBottom,e=a.connectTop,f=a.message;a=a.outgoing;var g=f.authorityLevel,h=f.messageId,m=f.threadKey;m=c("useMWAttachmentWithPreview")(m,h,g);h=m[0];return h==null?null:k.jsx(c("MWPMessageListAttachmentContainer.react"),{connectTop:e,message:f,paint:(i||(i=d("I64"))).equal(h.attachmentType,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO))?!1:void 0,children:k.jsx(l,{connectBottom:b,connectTop:e,dbAttachment:h,message:f,outgoing:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWEncryptionPlaceholder.react",["fbt","MWV2TombstonedMessage.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){return j.jsx(c("MWV2TombstonedMessage.react"),{children:h._("__JHASH__C8O2a78lb6C__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWFutureproofPlaceholder.react",["fbt","MWV2TombstonedMessage.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){return j.jsx(c("MWV2TombstonedMessage.react"),{children:h._("__JHASH__4rmC_sX93Dk__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWUnavailablePlaceholder.react",["fbt","MWV2TombstonedMessage.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){return j.jsx(c("MWV2TombstonedMessage.react"),{children:h._("__JHASH__M9fzIhDqITQ__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWUnavailableStoryPlaceholder.react",["fbt","MWV2TombstonedMessage.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){return j.jsx(c("MWV2TombstonedMessage.react"),{children:h._("__JHASH__pGZ-I0iz-G0__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWSecurePlaceholder.react",["CometPlaceholder.react","I64","LSIntEnum","MAWEncryptionPlaceholder.react","MAWFutureproofPlaceholder.react","MAWUnavailablePlaceholder.react","MAWUnavailableStoryPlaceholder.react","MWPMessageListColumn.react","ReQL","ReQLSuspense","react","recoverableViolation","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||d("react");function m(a){var b=(h||(h=c("useReStore")))();return d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(b.table("attachments")).getKeyRange(a.threadKey,a.messageId)},[b,a.threadKey,a.messageId],f.id+":30")}function n(a){a=a.message;a=a;a=m(a);if(a==null)return null;a=a.defaultCtaType;if(a==="xma_montage_share")return l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx(c("MAWUnavailableStoryPlaceholder.react"),{})});c("recoverableViolation")("Unexpected case where message is tombstone type but the attachment is not xma montage share","messenger_e2ee_web");return l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx(c("MAWUnavailablePlaceholder.react"),{})})}n.displayName=n.name+" [from "+f.id+"]";function a(a){a=a.message;var b=a.displayedContentTypes,e=null;(i||(i=d("I64"))).equal(b,(j||(j=d("LSIntEnum"))).ofNumber(65536))?e=l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx(c("MAWEncryptionPlaceholder.react"),{})}):(i||(i=d("I64"))).equal(b,(j||(j=d("LSIntEnum"))).ofNumber(131072))?e=l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx(c("MAWFutureproofPlaceholder.react"),{})}):(i||(i=d("I64"))).equal(b,(j||(j=d("LSIntEnum"))).ofNumber(262144))?e=l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx(c("MAWUnavailablePlaceholder.react"),{})}):(i||(i=d("I64"))).equal(b,(j||(j=d("LSIntEnum"))).ofNumber(256))&&(e=l.jsx(n,{message:a}));return l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWSecureAttachmentRenderer.react",["CometPlaceholder.react","MAWMsg","MAWSecureAttachment.react","MAWSecurePlaceholder.react","MWPMessageParsingUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a,b,e,f){b=d("MWPMessageParsingUtils").MessageWithAttachments.shouldConnectTop(a,b,"below");e=d("MWPMessageParsingUtils").MessageWithAttachments.shouldConnectBottom(a,e,"below");return i.jsx(c("CometPlaceholder.react"),{fallback:null,children:d("MAWMsg").isMediaMsg(a)||d("MAWMsg").isXMAMsg(a)?i.jsx(c("MAWSecureAttachment.react"),{connectBottom:e,connectTop:b,message:a,outgoing:f}):i.jsx(c("MAWSecurePlaceholder.react"),{message:a})})}a.displayName=a.name+" [from "+f.id+"]";g.render=a}),98); __d("MAWMessageListRow.react",["I64","Int64Hooks","LSMessagingThreadTypeUtil","MWMessageRow.react","MWPVisibleMessageContext.react","MWV2MessageActionsVisibility.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||d("react");function a(a){var b=a.domElementRef,c=a.lastEbMessageTime,e=a.modal,f=a.renderAttachment,g=a.row,h=a.thread;a=d("MWV2MessageActionsVisibility.react").useStopHoveringRef();var k=d("LSMessagingThreadTypeUtil").isSecure(h.threadType),l=d("MWPVisibleMessageContext.react").useMWPVisibleMessageContext();l=l.visibleMessage;var m=g.message;k=k?(i||(i=d("I64"))).equal(h.threadKey,m.threadKey):!1;var n=!1;if(l!=null){var o=l.messageId;switch(l.source){case"Reply":case"Pinned":n=o===m.messageId;break;default:n=!1}}l={domElementRef:b,hasMessageEmphasisRing:n,isModal:e===m.messageId,isSecureMessage:k,lastEbMessageTime:c,message:m,nextMessage:g.nextMessage,prevMessage:g.prevMessage,renderAttachment:f,stopHoveringRef:a,threadType:d("Int64Hooks").useMemoInt64(function(){return h.threadType},[h.threadType])};return j.jsx(d("MWMessageRow.react").MWMessageRow,babelHelpers["extends"]({},l))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWMessageList.react",["BaseTheme.react","CometErrorBoundary.react","CometPagelet.react","CometScreenReaderText.react","I64","MAWMessageListRow.react","MAWSecureAttachmentRenderer.react","MWBaseTheme","MWContextBanner.react","MWInboxThreadMessagesSpinner.react","MWMessageRow.react","MWPBaseMessageList.react","MWPMessageListColumn.react","MWPMessageListFocusTable.react","MWPThreadCapabilitiesContext","MWPTypingIndicators.react","MWV2MessageRowSimple.react","ReQL","ReQLSuspense","cr:3907","cr:6046","cr:844","gkx","qex","react","useMAWOfflineQueueLoadingIndicator","useMWPAriaLabelForMessageListGrid","useReStore","useThreadLastMessageTimeMs","withCometPlaceholder"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j,m=l.forwardRef,n=l.useId,o=l.useState;function a(a){var b=a.theme;b=b===void 0?d("MWBaseTheme").empty:b;var e=a.threadKey;a=a.threadType;var f=d("MWPTypingIndicators.react").useTypingParticipants(e),g=d("MWPTypingIndicators.react").useAccessibilityText(f);if(f.length>0)return k.jsx(c("BaseTheme.react"),{config:b,children:k.jsx(c("MWV2MessageRowSimple.react"),{children:k.jsxs(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:[k.jsx("div",{"aria-live":"polite",children:k.jsx(c("CometScreenReaderText.react"),{text:g})}),k.jsx(d("MWPTypingIndicators.react").MWPTypingIndicators,{threadKey:e,threadType:a})]})})});else return null}a.displayName=a.name+" [from "+f.id+"]";var p=d("withCometPlaceholder").withCometPlaceholder(a);function e(a,e){var g=a.cutoverOpenThread,j=a.entryPoint,l=a.onScrollToBottom,m=a.thread,q=(h||(h=c("useReStore")))(),r=c("useThreadLastMessageTimeMs")(m.threadKey);a=(a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(q.table("threads"),["lastActivityTimestampMs"]).getKeyRange(m.threadKey).map(function(a){a=a.lastActivityTimestampMs;return r!=null?(i||(i=d("I64"))).lt(r,a):!0})},[q,r,m.threadKey],f.id+":132"))!=null?a:!1;var s=c("useMWPAriaLabelForMessageListGrid")(m),t=d("MWMessageRow.react").useTheme(),u=o(""),v=u[0];u=u[1];var w=n(),x=c("useMAWOfflineQueueLoadingIndicator")(!1,m),y=!x&&a&&!((x=c("qex")._("97"))!=null?x:!1),z=b("cr:844")==null?void 0:b("cr:844")(m.threadKey);a=k.jsx(c("MWPBaseMessageList.react"),{entryPoint:j,onScrollToBottom:l,pageSize:c("gkx")("2233")?3:15,ref:e,renderFooter:function(){return k.jsxs(k.Fragment,{children:[k.jsx(p,{theme:t,threadKey:m.threadKey,threadType:m.threadType}),y&&b("cr:6046")?k.jsx(c("CometErrorBoundary.react"),{fallback:function(){return null},children:k.jsx(b("cr:6046"),{})}):null]})},renderHeader:function(){return k.jsxs(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:[k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:20}),k.jsx(c("MWContextBanner.react"),{threadKey:m.threadKey,threadType:m.threadType}),k.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:10})]})},renderLoadingAnimation:function(){return k.jsx(c("MWInboxThreadMessagesSpinner.react"),{})},renderRow:function(a){var b=a.domElementRef,e=a.message,f=a.nextMessage;a=a.prevMessage;return k.jsx(c("MAWMessageListRow.react"),{domElementRef:b,lastEbMessageTime:z,modal:v,renderAttachment:d("MAWSecureAttachmentRenderer.react").render,row:{message:e,nextMessage:f,prevMessage:a},thread:m})},secondaryThread:g,thread:m});return k.jsx("div",{className:"x78zum5 xdt5ytf x1iyjqo2 x5yr21d","data-testid":void 0,id:w,children:k.jsx(d("CometPagelet.react").Placeholder,{className:"x78zum5 xdt5ytf x1iyjqo2 x5yr21d",fallback:null,name:"MWV2MessageList",children:k.jsx(d("MWPThreadCapabilitiesContext").Provider,{thread:m,children:k.jsx(c("MWPMessageListFocusTable.react"),{ariaLabel:s,modal:v,setModal:u,children:b("cr:3907")==null?a:k.jsx(b("cr:3907"),{id:w,children:a})})})})})}e.displayName=e.name+" [from "+f.id+"]";l=m(e);g["default"]=l}),98); __d("MAWMessageList_DEPRECATED.react",["BaseTheme.react","CometErrorBoundary.react","CometPagelet.react","CometScreenReaderText.react","I64","Int64Hooks","MAWLoadingStateOutstandingOfflineQueueSelector","MAWMessageListRow.react","MAWStateContext.react","MWBaseTheme","MWMessageRow.react","MWPBaseMessageList_DEPRECATED","MWPMessageListColumn.react","MWPMessageListFocusTable.react","MWPThreadCapabilitiesContext","MWPTypingIndicators.react","MWV2MessageRowSimple.react","ReQL","ReQLSuspense","cr:3907","cr:6046","cr:844","qex","react","useMWPAriaLabelForMessageListGrid","useReStore","useThreadLastMessageTimeMs","withCometPlaceholder"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react")),l=i,m=l.useEffect,n=l.useId,o=l.useState;function p(a,b){return new Map(d("ReQLSuspense").useArray(function(){return d("ReQL").mergeJoin(d("ReQL").fromTableAscending(b.table("participants")).getKeyRange(a.threadKey),d("ReQL").fromTableAscending(b.table("contacts"))).map(function(a){var b=a[0];a=a[1];return[(j||(j=d("I64"))).to_string(a.id),[b,a]]})},[b,a.threadKey],f.id+":83"))}function q(a,b){m(function(){var c;if((a==null?void 0:(c=a.scrollPositionRef.current)==null?void 0:c.type)==="Bottom"&&b.length>0){c=a.scrollerRef.current;c==null?void 0:c.scrollToBottom()}},[b,a])}function a(a){var b=a.scrollerRefs,e=a.theme;e=e===void 0?d("MWBaseTheme").empty:e;var f=a.threadKey;a=a.threadType;var g=d("MWPTypingIndicators.react").useTypingParticipants(f),h=d("MWPTypingIndicators.react").useAccessibilityText(g);q(b,g);if(g.length>0)return k.jsx(c("BaseTheme.react"),{config:e,children:k.jsx(c("MWV2MessageRowSimple.react"),{children:k.jsxs(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:[k.jsx("div",{"aria-live":"polite",children:k.jsx(c("CometScreenReaderText.react"),{text:h})}),k.jsx(d("MWPTypingIndicators.react").MWPTypingIndicators,{threadKey:f,threadType:a})]})})});else return null}a.displayName=a.name+" [from "+f.id+"]";var r=d("withCometPlaceholder").withCometPlaceholder(a);function e(a){var e=a.messageElementRefs,g=a.messages,i=a.renderAttachment,l=a.scrollerRefs,m=a.thread,q=(h||(h=c("useReStore")))();a=p(m,q);var s=c("useMWPAriaLabelForMessageListGrid")(m),t=d("MWMessageRow.react").useTheme(),u=o(""),v=u[0],w=u[1],x=n(),y=d("Int64Hooks").useMemoInt64(function(){return m.threadType},[m.threadType]),z=c("useThreadLastMessageTimeMs")(m.threadKey);u=(u=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(q.table("threads"),["lastActivityTimestampMs"]).getKeyRange(m.threadKey).map(function(a){a=a.lastActivityTimestampMs;return z!=null?(j||(j=d("I64"))).lt(z,a):!0})},[q,z,m.threadKey],f.id+":180"))!=null?u:!1;var A=d("MAWStateContext.react").useMAWSelector(d("MAWLoadingStateOutstandingOfflineQueueSelector").outstandingOfflineQueueSelector()),B=b("cr:844")==null?void 0:b("cr:844")(m.threadKey);u=!A&&u&&!((A=c("qex")._("97"))!=null?A:!1);return k.jsxs(k.Fragment,{children:[k.jsx(c("MWPBaseMessageList_DEPRECATED"),{messages:g,participants:a,renderRow:function(a){var b=a.message,d=a.nextMessage;a=a.prevMessage;return k.jsx(c("MAWMessageListRow.react"),{domElementRef:e.set(b.messageId),lastEbMessageTime:B,modal:v,renderAttachment:i,row:{message:b,nextMessage:d,prevMessage:a},thread:m})},thread:m,children:function(a){a=k.jsxs(k.Fragment,{children:[a,k.jsx(r,{scrollerRefs:l,theme:t,threadKey:m.threadKey,threadType:y})]});return k.jsx("div",{"data-testid":void 0,id:x,children:k.jsx(d("CometPagelet.react").Placeholder,{fallback:null,name:"MWV2MessageList",children:k.jsx(d("MWPThreadCapabilitiesContext").Provider,{thread:m,children:k.jsx(c("MWPMessageListFocusTable.react"),{ariaLabel:s,modal:v,setModal:w,children:b("cr:3907")==null?a:k.jsx(b("cr:3907"),{id:x,children:a})})})})})}}),u&&b("cr:6046")?k.jsx(c("CometErrorBoundary.react"),{fallback:function(){return null},children:k.jsx(b("cr:6046"),{})}):null]})}e.displayName=e.name+" [from "+f.id+"]";g["default"]=e}),98); __d("useSecureThreadDetailGetDevices",["I64","MAWJids","MAWJobDefinitions","MAWTimedJob","ReQL","ReQLSuspense","WAJobOrchestratorTypes","promiseDone","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useEffect,k=b.useRef;function a(a,b){var e=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(b.table("participants"),["contactId"]).getKeyRange(a.threadKey).filter(function(b){return!(i||(i=d("I64"))).equal(b.contactId,a.threadKey)}).map(function(a){return d("MAWJids").toUserJid((i||(i=d("I64"))).to_string(a.contactId))})},[b,a.threadKey],f.id+":30"),g=k(new Set());j(function(){var a=g.current.size!==e.length||!e.every(function(a){return g.current.has(a)});if(!a&&e.length>2)return;a=new Set(e);g.current=a;c("promiseDone")(d("MAWTimedJob").TimedUIJobStarters.fireAndForget(d("MAWJobDefinitions").createStartJobInfo("getDevices",{ignoreDhash:!1,reason:"details-participants-changed",scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.LOW},users:a})))},[e])}g["default"]=a}),98); __d("MAWSecureThreadDetail.react",["CometPlaceholder.react","ComponentMountUnmountSubspanLogger.react","I64","LSAuthorityLevel","LSIntEnum","MAWArmadilloLinkContext.react","MAWMessageList.react","cr:5983","react","useReStore","useSecureThreadDetailGetDevices"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react")),m=k.useState;function a(a){var e=a.cutoverOpenThread,f=a.entryPoint,g=a.messageListRef;a=a.thread;var k=(h||(h=c("useReStore")))();c("useSecureThreadDetailGetDevices")(a,k);k=m(!0);var n=k[0],o=k[1];k=e!=null&&(i||(i=d("I64"))).equal(e.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE));return l.jsxs(l.Fragment,{children:[l.jsx(c("CometPlaceholder.react"),{fallback:null,name:"MAWCutoverEncryptedBackupsBanner",children:b("cr:5983")!=null&&k&&l.jsx(b("cr:5983"),{isShown:!n})}),l.jsxs(d("MAWArmadilloLinkContext.react").MAWArmadilloLinkProvider,{children:[l.jsx(c("ComponentMountUnmountSubspanLogger.react"),{description:"MAWSecureThreadDetail"}),l.jsx(c("MAWMessageList.react"),{cutoverOpenThread:e,entryPoint:f,onScrollToBottom:function(a){return o(a)},ref:g,thread:a})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSInitiateThreadMigration",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return a[3]!==void 0?(d[0]=new c.Map(),d[0].set("open_message_thread_key",a[0]),d[0].set("armadillo_thread_key",a[1]),d[0].set("trace_id",a[3]),d[0].set("should_copy_messages",a[2]),d[1]=d[0].get("open_message_thread_key"),d[0],d[2]=d[0].get("armadillo_thread_key"),d[0],d[3]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),[c.i64.to_string(d[1]),"_",c.i64.to_string(d[2])].join(""),c.i64.cast([0,436]),d[3],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))):(d[0]=new c.Map(),d[0].set("open_message_thread_key",a[0]),d[0].set("armadillo_thread_key",a[1]),d[0].set("should_copy_messages",a[2]),d[1]=d[0].get("open_message_thread_key"),d[0],d[2]=d[0].get("armadillo_thread_key"),d[0],d[3]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),[c.i64.to_string(d[1]),"_",c.i64.to_string(d[2])].join(""),c.i64.cast([0,436]),d[3],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0])))},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSInitiateThreadMigrationStoredProcedure",["LSInitiateThreadMigration"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.openMessageThreadKey;d[1]=b.armadilloThreadKey;d[2]=b.shouldCopyMessages;d[3]=b.traceId;return c("LSInitiateThreadMigration").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MAWSecureThreadDetail_DEPRECATED.react",["CometHeroHoldTrigger.react","CometPagelet.react","CometPlaceholder.react","ComponentMountUnmountSubspanLogger.react","I64","Int64Hooks","LSAuthorityLevel","LSIntEnum","LSMessagingThreadTypeUtil","MAWArmadilloLinkContext.react","MAWFetchMoreMessages","MAWMessageList_DEPRECATED.react","MAWSecureAttachmentRenderer.react","MWContextBanner.react","MWInboxThreadMessagesSpinner.react","MWPMessageListColumn.react","MWV2MessageScroller.react","ReQL","ReQLSuspense","cr:5983","emptyFunction","logMessengerWebFalcoEvent","react","useMAWMarkThreadAsRead","useMWChatLoadMoreItemsIncrementally","useMWCurrentVisibleMessage","useMWV2ConversationScrollerRefs","useReStore","useSecureThreadDetailGetDevices"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react"));e=i;var m=e.useCallback,n=e.useImperativeHandle,o=e.useMemo,p=e.useState,q=3;function r(a,b){var c=(k||(k=d("I64"))).compare(a.primarySortKey,b.primarySortKey);if(c!==0)return c;c=k.compare((c=a.secondarySortKey)!=null?c:(k||(k=d("I64"))).zero,(c=b.secondarySortKey)!=null?c:(k||(k=d("I64"))).zero);return c!==0?c:k.compare(a.timestampMs,b.timestampMs)}function s(a,b){var e=(h||(h=c("useReStore")))();return d("ReQLSuspense").useArray(function(){var f=d("ReQL").fromTableAscending(e.table("messages").index("messageDisplayOrder")).getKeyRange(b.threadKey);if(a!=null)return f.bounds({gte:d("ReQL").key(a.minTimestampMs),lte:d("ReQL").key(a.maxTimestampMs)});else if((k||(k=d("I64"))).lt(b.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE))||d("LSMessagingThreadTypeUtil").isSecure(b.threadType))return f;return d("ReQL").empty()},[e,a,b.authorityLevel,b.threadKey,b.threadType],f.id+":92")}function t(a,b){var e=(h||(h=c("useReStore")))();return d("ReQLSuspense").useArray(function(){if(b==null)return d("ReQL").empty();var f=d("ReQL").fromTableAscending(e.table("messages")).getKeyRange(b.threadKey);if(a!=null)return d("ReQL").fromTableAscending(e.table("messages")).getKeyRange(b.threadKey).bounds({gte:d("ReQL").key(a.minTimestampMs),lte:d("ReQL").key(a.maxTimestampMs)});else if((k||(k=d("I64"))).lt(b.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE))||d("LSMessagingThreadTypeUtil").isSecure(b.threadType))return f;return d("ReQL").empty()},[e,b,a],f.id+":126")}function u(a,b){var c=(k||(k=d("I64"))).compare(a.primarySortKey,b.primarySortKey);if(c!==0)return c;c=a.secondarySortKey;var e=b.secondarySortKey;if(c==null)if(e!=null)return-1;else return(k||(k=d("I64"))).compare(a.timestampMs,b.timestampMs);if(e==null)return 1;c=k.compare(c,e);return c!==0?c:k.compare(a.timestampMs,b.timestampMs)}function v(a,b,e,f,g){var h=s(a,e),i=t(b,f);d("Int64Hooks").useEffectInt64(function(){if(f!=null&&i.length===0){var a=f.threadKey,b=f.threadType;c("logMessengerWebFalcoEvent")({threadKey:a,threadType:b},"no_open_messages_in_cutover_thread",g,{cutoverThreadKey:(k||(k=d("I64"))).to_string(e.threadKey),reason:"no_messages_fetched_for_open"})}},[g,i.length,f,e.threadKey]);return o(function(){if(a!=null&&!a.hasMoreBefore)return i.sort(u).concat(h.sort(r));else return h.sort(r)},[a,h,i])}function a(a){var e,f=a.cutoverOpenThread,g=a.entryPoint,i=a.messageListRef;a=a.thread;var j=c("useMWV2ConversationScrollerRefs")(),k=(h||(h=c("useReStore")))(),o=m(function(){var a;return((a=j.scrollPositionRef.current)==null?void 0:a.value)===void 0&&((a=j.scrollPositionRef.current)==null?void 0:a.type)==="Bottom"},[j]),r=c("MAWFetchMoreMessages").useFetchCutoverMessages(a.threadKey,f==null?void 0:f.threadKey,a.threadType),s=c("useMWCurrentVisibleMessage")(a,j.scrollerRef),t=s.messageRange,u=c("useMWCurrentVisibleMessage")(f,j.scrollerRef);u=u.messageRange;e=(e=t==null?void 0:t.hasMoreAfter)!=null?e:!1;var w=p(!1),x=w[0],y=w[1];r=c("useMWChatLoadMoreItemsIncrementally")(e,void 0,void 0,v(t,u,a,f,g),r,(w=t==null?void 0:t.hasMoreBefore)!=null?w:!1);w=r[0];var z=r[1];r=r[2];c("useSecureThreadDetailGetDevices")(a,k);n(i,function(){return{getScrollAreaElement:c("emptyFunction"),jumpToMostRecentMessage:c("emptyFunction"),restoreScrollPosition:function(){var a=j.scrollerRef.current,b=j.scrollPositionRef.current;if(a!=null&&b!=null)switch(b.type){case"Bottom":a.scrollToBottom();break;case"Top":case"Between":a.scrollToPosition(b.value,!1);break;case"Island":break}}}},[j.scrollPositionRef,j.scrollerRef]);k=t==null||t.isLoadingBefore;i=f!=null&&(u==null||u.isLoadingBefore);t=w.length>=q;return l.jsxs(l.Fragment,{children:[l.jsx(c("CometPlaceholder.react"),{fallback:null,name:"MAWCutoverEncryptedBackupsBanner",children:b("cr:5983")!=null&&f&&l.jsxs(l.Fragment,{children:[l.jsx(b("cr:5983"),{isShown:x}),l.jsx(c("CometHeroHoldTrigger.react"),{description:"MAWCutoverLoadingMessages",hold:i&&!t})]})}),l.jsxs(d("MAWArmadilloLinkContext.react").MAWArmadilloLinkProvider,{children:[l.jsx(c("ComponentMountUnmountSubspanLogger.react"),{description:"MAWSecureThreadDetail"}),l.jsxs(c("MWV2MessageScroller.react"),{fetchMore:z,hasMoreAfter:e,hasMoreBefore:r,lastMessageToCalculateIfThreadIsRead:w.length!==0?w[w.length-1]:void 0,markThreadAsRead:c("useMAWMarkThreadAsRead")(a,g),onScroll:function(){y(!o())},scrollerRefs:j,thread:a,children:[l.jsxs(d("MWPMessageListColumn.react").MWPMessageListColumnShrinkwrap,{children:[l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:20}),l.jsx(c("CometHeroHoldTrigger.react"),{description:"MAWLoadingMessages",hold:k&&!t}),r?l.jsx(c("MWInboxThreadMessagesSpinner.react"),{}):l.jsx(c("MWContextBanner.react"),{threadKey:a.threadKey,threadType:a.threadType}),l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnVerticalRhythm,{height:10})]}),l.jsx(d("MWPMessageListColumn.react").MWPMessageListColumnGrow,{children:null}),l.jsx(d("CometPagelet.react").Placeholder,{fallback:null,name:"MAWMessageList",children:l.jsx(c("MAWMessageList_DEPRECATED.react"),{messageElementRefs:s.messageElementRefs.current,messages:w,renderAttachment:d("MAWSecureAttachmentRenderer.react").render,scrollerRefs:j,thread:a})}),e?l.jsx(c("MWInboxThreadMessagesSpinner.react"),{}):null]})]})]})}a.displayName=a.name+" [from "+f.id+"]";e=l.memo(a);g.messageSortOrder=r;g.useMessagesUnsorted=s;g.useMessagesWithMaybeCutover=v;g.MAWSecureThreadDetail_DEPRECATED=e}),98); __d("updateEphemeralDuration",["JSResourceForInteraction","MAWBridgeSendAndReceive","Promise","WATimeUtils","gkx","qex"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,e,f,g,i){var j=d("WATimeUtils").millisTime();if(c("gkx")("9025")||c("qex")._("93")===!0)return c("JSResourceForInteraction")("MAWEphemeralSettingsUpdate").__setRef("updateEphemeralDuration").load().then(function(a){return a.updateEphemeralSettings(e,j,i)}).then(function(a){f();return!0});else if(a!=null)return d("MAWBridgeSendAndReceive").sendAndReceive("backend","setEphemeralSettingsFromFrontend",{ephemeralExpirationInSec:e,ephemeralLastUpdatedOrSetTimestamp:d("WATimeUtils").castMilliSecondsToUnixTime(j),threadId:a}).then(function(a){a.success?f():g();return a.success});g();return(h||(h=b("Promise"))).resolve(!1)}g["default"]=a}),98); __d("useMAWMaybeResetEphemeralSettings",["Int64Hooks","MAWEphemeralGatingUtil","MAWGetEphemeralSettings","MAWMiActOnActThreadReady","Promise","WALoggerDeferred","promiseDone","react","updateEphemeralDuration","useAsyncReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[reset ephemeral settings]: fail to reset settings for chatJid ",", previous settings was ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[reset ephemeral settings]: success to reset settings for chatJid ",", previous settings was ",""]);k=function(){return a};return a}var l=(i||d("react")).useRef,m=0;function a(a){var b=c("useAsyncReStore")(),e=l(null);d("Int64Hooks").useEffectInt64(function(){(e.current==null||e.current!==a)&&(e.current=a,d("MAWEphemeralGatingUtil").isResetEphemeralSettingsEnabled()&&c("promiseDone")(b,function(b){return c("promiseDone")(d("MAWMiActOnActThreadReady").onActThreadReady(b,a,"useMAWResetEphemeralSettings",function(b,c,d){return n(a,d)}))}))},[a,b])}function n(a,e){var f=d("MAWEphemeralGatingUtil").getExpirationOptions();return e!=null?d("MAWGetEphemeralSettings").getEphemeralSetting(e,a).then(function(b){b&&b.ephemeralExpirationInSec>0&&!f.includes(b.ephemeralExpirationInSec)&&c("promiseDone")(c("updateEphemeralDuration")(e,m,function(){void d("WALoggerDeferred").LOG(k(),e,b.ephemeralExpirationInSec)},function(){void d("WALoggerDeferred").LOG(j(),e,b.ephemeralExpirationInSec)},a))}):(h||(h=b("Promise"))).resolve()}g["default"]=a}),98); __d("MAWSecureThreadDetailWrapper.react",["CometErrorBoundary.react","CometHeroHoldTrigger.react","FBLogger","I64","Int64Hooks","LSAuthorityLevel","LSFactory","LSInitiateThreadMigrationStoredProcedure","LSIntEnum","MAWSecureThreadDetail_DEPRECATED.react","MAWThreadCutover","MWFailChatTabOpenQPLEvent","QPLUserFlow","WAHex","cr:1957","cr:3200","cr:4646","emptyFunction","logMessengerWebFalcoEvent","qpl","react","useAsyncReStore","useMAWMaybeResetEphemeralSettings"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||(h=d("react"));e=h;var l=e.useCallback,m=e.useEffect,n=e.useRef,o=e.useState,p=(e=b("cr:3200"))!=null?e:c("emptyFunction"),q=(e=b("cr:4646"))!=null?e:c("emptyFunction");function r(a,b){var e=(i||(i=d("I64"))).to_int32(a);d("Int64Hooks").useEffectInt64(function(){c("QPLUserFlow").start(c("qpl")._(25306607,"1883"),{annotations:{string:{entryPoint:b,thread_id:(i||(i=d("I64"))).to_string(a)}},instanceKey:e})},[b,e,a]);var f=l(function(a){c("QPLUserFlow").addPoint(c("qpl")._(25306607,"1883"),a,{instanceKey:e})},[e]),g=l(function(a){c("QPLUserFlow").endSuccess(c("qpl")._(25306607,"1883"),{annotations:{string:{isCutover:String(a)}},instanceKey:e})},[e]),h=l(function(a){c("QPLUserFlow").addAnnotations(c("qpl")._(25306607,"1883"),{string:a},{instanceKey:e})},[e]),j=l(function(a,b){c("QPLUserFlow").endFailure(c("qpl")._(25306607,"1883"),a,{annotations:{string:{isCutover:String(b)}},instanceKey:e})},[e]);return{addQplAnnotations:h,addQplPoint:f,qplEndFailure:j,qplEndSuccess:g}}function s(a,b){if(a==null)return"not_cutover_thread";return b!=null?a.showOpenMessageHistory===!1?"dual_thread_cutover":"show":"loading"}function a(a){var e=a.entryPoint,f=a.messageListRef,g=a.thread;a=r(g.threadKey,e);var h=a.addQplAnnotations,u=a.addQplPoint,v=a.qplEndFailure,w=a.qplEndSuccess;c("useMAWMaybeResetEphemeralSettings")(g.threadKey);p(g.threadKey);var x=n(""),y=l(function(a){switch(a){case"loading":return;case"show":h({showOpenHistory:"show"});w(!0);return;case"hide":h({showOpenHistory:"hide"});w(!0);return;case"not_cutover_thread":w(!1);return;case"dual_thread_cutover":w(!1);return;case"error":v(x.current,!0);return;default:a;throw c("FBLogger")("messenger_e2ee_web").mustfixThrow("[MiActMapping] Unreachable showOpenMsgHistoryState: %s",a)}},[h,v,w]),z=c("useAsyncReStore")(),A=l(function(a,b){return z.then(function(e){return e.runInTransaction(function(e){return c("LSInitiateThreadMigrationStoredProcedure")(c("LSFactory")(e),{armadilloThreadKey:b,openMessageThreadKey:a,shouldCopyMessages:!1,traceId:d("WAHex").randomHex(8)})},"readwrite")})},[z]),B=d("MAWThreadCutover").useGetCutoverMapping(g.threadKey),C=d("MAWThreadCutover").useCutoverOpenThread(g.threadKey);q(g.threadKey);a=o(s(B,C));var D=a[0],E=a[1];d("Int64Hooks").useEffectInt64(function(){y(D);if(D==="show"||D==="hide")return;if(B==null)return;if(C!=null&&B.showOpenMessageHistory!==!1)return E("show")},[B,C,y,D]);m(function(){B!=null&&(u("thread_migration_initiating_start"),A(B.openThreadId,B.armadilloThreadId).then(function(){u("thread_migration_initiating_end"),w(!0)})["catch"](function(a){x.current="fail_to_init_thread_migration",E("error"),c("FBLogger")("messenger_e2ee_web").catching(a).mustfix("fail_to_init_thread_migration"),v(x.current,!0)}))},[u,B,C,A,v,w]);var F=C!=null;d("Int64Hooks").useEffectInt64(function(){if(x.current==="")return;if(D!=="hide"){var a;c("logMessengerWebFalcoEvent")({threadKey:g.threadKey,threadType:g.threadType},"no_open_messages_in_cutover_thread",e,{cutoverThreadKey:(i||(i=d("I64"))).to_string((a=B==null?void 0:B.openThreadId)!=null?a:(i||(i=d("I64"))).neg_one),hasCutoverOpenThread:F.toString(),reason:x.current,showOpenMsgHistoryState:D})}y(D)},[B,e,D,F,g.threadKey,g.threadType,y]);a=C!=null&&(i||(i=d("I64"))).equal(C.authorityLevel,(j||(j=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE));var G=(D==="show"||B!=null)&&(C==null||!a),H="";D==="loading"?H="openMsgHistory":G&&(C==null?H="cutoverOpenThread":a||(H="authorityLevel"));return k.jsx(t,{message:"Error while loading secure thread messages",threadKey:g.threadKey,children:k.jsxs(k.Fragment,{children:[k.jsx(c("CometHeroHoldTrigger.react"),{description:"MAWCutoverShowHistoryDetermination-"+H,hold:D==="loading"||G}),b("cr:1957")!=null?k.jsx(b("cr:1957"),{cutoverOpenThread:D==="show"?C:void 0,entryPoint:e,messageListRef:f,thread:g}):k.jsx(d("MAWSecureThreadDetail_DEPRECATED.react").MAWSecureThreadDetail_DEPRECATED,{cutoverOpenThread:D==="show"?C:void 0,entryPoint:e,messageListRef:f,thread:g})]})})}a.displayName=a.name+" [from "+f.id+"]";function t(a){var b=a.children,d=a.message,e=a.threadKey;return k.jsx(c("CometErrorBoundary.react"),{fallback:function(){return null},onError:function(a){c("MWFailChatTabOpenQPLEvent")(e,a.toString()),c("FBLogger")("messenger_web_product").catching(a).mustfix(d+": %s",a.toString())},children:b})}t.displayName=t.name+" [from "+f.id+"]";g["default"]=a}),98); __d("FriendAddFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs("g",{children:[i.jsx("path",{d:"M105 920.25c0 1.242-.895 2.25-2 2.25s-2-1.008-2-2.25.572-2.25 2-2.25 2 1.008 2 2.25",transform:"translate(351.5 156) translate(.5)"}),i.jsx("path",{fillRule:"nonzero",d:"M105.5 920.25c0 1.506-1.105 2.75-2.5 2.75s-2.5-1.244-2.5-2.75c0-1.638.878-2.75 2.5-2.75 1.622 0 2.5 1.112 2.5 2.75zm-1 0c0-1.13-.489-1.75-1.5-1.75-1.011 0-1.5.62-1.5 1.75 0 .979.686 1.75 1.5 1.75s1.5-.771 1.5-1.75z",transform:"translate(351.5 156) translate(.5)"}),i.jsx("path",{d:"M106.564 929h-7.129a.938.938 0 0 1-.935-.936v-.515a3.058 3.058 0 0 1 3.049-3.049h2.902a3.058 3.058 0 0 1 3.049 3.049v.515a.938.938 0 0 1-.936.936",transform:"translate(351.5 156) translate(.5)"}),i.jsx("path",{fillRule:"nonzero",d:"M106.564 929.5h-7.129c-.79 0-1.435-.645-1.435-1.436v-.515a3.558 3.558 0 0 1 3.549-3.549h2.902a3.558 3.558 0 0 1 3.549 3.549v.515c0 .791-.645 1.436-1.436 1.436zm0-1a.438.438 0 0 0 .436-.436v-.515c0-1.4-1.148-2.549-2.549-2.549h-2.902a2.558 2.558 0 0 0-2.55 2.549l.001.515c0 .239.197.436.435.436h7.13z",transform:"translate(351.5 156) translate(.5)"}),i.jsx("path",{fillRule:"nonzero",d:"M107 922h3a.5.5 0 0 0 0-1h-3a.5.5 0 0 0 0 1z",transform:"translate(351.5 156)"}),i.jsx("path",{fillRule:"nonzero",d:"M108 920v3a.5.5 0 0 0 1 0v-3a.5.5 0 0 0-1 0z",transform:"translate(351.5 156)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("ShareIosFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs("g",{fillRule:"nonzero",children:[i.jsx("path",{d:"M100.5 535h.475c.29 0 .525.235.525.524v4.952c0 .29-.235.524-.525.524h-4.95a.524.524 0 0 1-.525-.524v-4.952c0-.29.235-.524.525-.524h.475a.5.5 0 0 0 0-1h-.475c-.843 0-1.525.682-1.525 1.524v4.952c0 .842.682 1.524 1.525 1.524h4.95c.843 0 1.525-.682 1.525-1.524v-4.952c0-.842-.682-1.524-1.525-1.524h-.475a.5.5 0 0 0 0 1zm-.354-2.146a.5.5 0 1 0 .708-.708l-2-2a.5.5 0 0 0-.708 0l-2 2a.5.5 0 1 0 .708.708l1.646-1.647 1.646 1.647z",transform:"translate(357.5 543.5)"}),i.jsx("path",{d:"M99 537.5v-6.875a.5.5 0 0 0-1 0v6.875a.5.5 0 0 0 1 0z",transform:"translate(357.5 543.5)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);/*FB_PKG_DELIM*/ __d("createReStoreIndexedDbPersistenceWithoutLocks",["ClientConsistency","CurrentMessengerUser","Deferred","ExecutionEnvironment","FBLogger","LSPlatformErrorChannel","LSPlatformLsInitLog","MAWCryptoConsts","MAWKeychainNaClCrypto","MWEARKeychainV3","MWLSIndexedDBConfigStore","MessengerLogHistory","ReStoreBinaryEncoding","ReStoreDbClosedError","ReStoreDbVersionChange","ReStoreDecryptionFailure","ReStoreErrorAction","ReStorePersistence","deepEquals","err","pageID","promiseDone","tweetnacl","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("CurrentMessengerUser").getIDorEIMU(),j=d("MessengerLogHistory").getInstance("db_init"),k=new Set(["_db_config"]),l=new(d("ReStoreBinaryEncoding").Encoder)(),m=new(d("ReStoreBinaryEncoding").Decoder)();function n(a,b){if(a==null)return null;var e=new Uint8Array(a);try{e=e[1];var f=d("MWEARKeychainV3").getDbEncryptionKey(e);f=f.key;var g=3;a=d("tweetnacl").secretbox.open(new Uint8Array(a,g+d("tweetnacl").secretbox.nonceLength),new Uint8Array(a,g,d("tweetnacl").secretbox.nonceLength),new Uint8Array(f));if(a==null){throw new(d("MAWKeychainNaClCrypto").EARDecryptionError)("Encrypted dexie was unable to decrypt an entity. Attempting to use key version : "+((g=e)!=null?g:"non-provided")+".")}return m.decode(a)}catch(a){c("LSPlatformErrorChannel").emit(new(d("ReStoreDecryptionFailure").ReStoreDecryptionFailure)(a.message,b));throw new(d("ReStoreDecryptionFailure").ReStoreDecryptionFailure)(a.message,b)}}function o(a,b){if(a==null)return a;try{var e=d("MWEARKeychainV3").getDbEncryptionKey(),f=e.key;e=e.version;e=new Uint8Array([0,e,d("MAWCryptoConsts").CIPHER_ID]);var g=d("tweetnacl").randomBytes(d("tweetnacl").secretbox.nonceLength);a=d("tweetnacl").secretbox(l.encode(a),g,new Uint8Array(f));f=new Uint8Array(e.length+g.length+a.length);f.set(e);f.set(g,e.length);f.set(a,e.length+g.length);return f.buffer}catch(a){throw c("err")(a.message+" - Encrypted LSDB was unable to encrypt an entity for table "+b)}}function p(a){return new self.Promise(function(b,c){a.onsuccess=function(a){b(a.target.result)},a.onerror=function(a){c(a)}})}function q(a){for(a of a.values())if(a.size!==0)return!1;return!0}function r(a,b){var c=[];a=new Set(a);for(var d of a)b.objectStoreNames.contains(d)||c.push(d);d=[];for(var e=0;e0;m&&(c("FBLogger")("mpf_web_foundations").info("[pdb] opening corrupted db failures=%s inWorker=%s",String(k),String((h||(h=c("ExecutionEnvironment"))).isInWorker)),j.debug("DB corrupted, deleting db"));k=!c("deepEquals")(babelHelpers.extends({},d("MWLSIndexedDBConfigStore").currentConfig,e),l);k&&j.debug("DB config mismatch, deleting db");d("LSPlatformLsInitLog").addAnnotations({bool:{configMismatch:k,dbCorruptionOccured:m}});if(k||m){i.close();(l=d("LSPlatformLsInitLog")).addPoint("delete_db_start");await p(indexedDB.deleteDatabase(a));l.addPoint("delete_db_end");l.addPoint("re_open_db_start");i=await t(a,g,f);l.addPoint("re_open_db_end")}else{var n=r(b,i);n!=null&&(j.debug("Schema mismatch, bumping db version"),i.close(),d("LSPlatformLsInitLog").addPoint("schema_mismatch_bump_version_start"),i=await t(a,function(a){return s(a,n)},f,i.version+1),d("LSPlatformLsInitLog").addPoint("schema_mismatch_bump_version_end"))}return i}function a(a,b){var e=i+"-"+a,f=!0,g,h=[],k=!1,l=Promise.resolve();j.debug("PDB is ON");d("LSPlatformLsInitLog").addPoint("init_idb_start");var m=new Map(),r=new Promise(function(d,e){c("promiseDone")(l=l.then(async function(){try{var c=await v(a,b,{worker3:!0},s);d(c)}catch(a){e(a)}}),function(a){},function(a){return c("FBLogger")("mpf_web_foundations").catching(a).warn("[pdb] dbLock idbPromise issue")})});c("promiseDone")(r.then(function(){d("LSPlatformLsInitLog").addPoint("init_idb_end")}));function s(a){a.close(),f=!1}function w(a,b,c){return a.transaction(c!=null&&c.length>0?c:a.objectStoreNames,b,{durability:"relaxed"})}function x(a){var b=m.get(a);b==null&&(b=new Map(),m.set(a,b));return b}function y(a){function b(a){var b=w(a,"readonly");b.onabort=function(){g===b&&(g=null)};g=b}return new Promise(async function(c,d){h.push(function(b){return a(b).then(c)});var e=await r;if(g==null)try{b(e)}catch(a){return d(a)}if(!k){k=!0;while(h.length){e=h;h=[];await Promise.all(e.map(function(a){return a(g)}))}k=!1;(d=g)==null?void 0:d.commit==null?void 0:d.commit();g=null}})}async function z(){var a;if(!f)return;var b=(a=(a=await y(function(a){return u(a)}))==null?void 0:a.value)!=null?a:0;c("promiseDone")(r,async function(a){a=w(a,"readwrite");a=a.objectStore("_db_config");await p(a.put({name:d("MWLSIndexedDBConfigStore").dbCorruptionFailuresKey,value:b+1}))})}function A(){c("promiseDone")(r,function(a){s(a)})}function B(){if(!f)throw new(c("ReStoreDbClosedError"))()}async function C(a){await r;B();var b=c("ClientConsistency").getAdditionalRevisions();b.size>0&&(c("FBLogger")("mpf_web_foundations").info("[pdb] js mismatch detected"),d("ReStoreErrorAction").softRefresh());return new Promise(function(b,d){c("promiseDone")(l=l.then(async function(){try{var c=await a();b(c)}catch(a){d(a)}}),function(a){},function(a){return c("FBLogger")("mpf_web_foundations").catching(a).warn("[pdb] dbLock runExclusively issue")})})}return{clearCache:function(){m.clear()},close:A,flush:async function(b,e){e=e.upgrade;if(!f)return;async function h(a){var c=new Promise(function(b,c){a.oncomplete=function(a){b(a.target.result)},a.onerror=a.onabort=function(a){m.clear(),c(a)}}),e=!1;for(var f of b){var g=f[0],h=f[1],i=a.objectStore(g);for(h of h){var j=h[0],k=h[1],l;if(k===d("ReStorePersistence").sentinelDeleted)l=i.delete(j);else{k=o(k,g);l=i.put(k,j)}l.onerror=function(){return e=!0}}}e?a.abort():a.commit!=null&&a.commit();await c}function i(){Array.from(b).forEach(function(a){var b=a[0];a=a[1];var c=x(b);Array.from(a).forEach(function(a){var b=a[0];a=a[1];a===d("ReStorePersistence").sentinelDeleted?c.delete(b):c.set(b,a)})})}if(q(b))return;var j=await r;if(e===!0){c("FBLogger")("mpf_web_foundations").info("[pdb] Updating IDB version, fromVersion: %s, non-empty tables: %s",j.version,Array.from(b.entries()).filter(function(a){a[0];a=a[1];return a.size>0}).map(function(a){a=a[0];return a}).sort().toString());(e=g)==null?void 0:e.abort();j.close();m.clear();r=async function(){var b=new(c("Deferred"))(),d=await t(a,function(a,d){i(),c("promiseDone")(h(d),function(){b.resolve()},function(){b.reject()})},s,j.version+1);await b.getPromise();return d}();await r;return}if(b.size===0)return;i();e=Array.from(b.keys());e.push("_db_config");await h(w(j,"readwrite",e))},get:function(a,b,c){var d=x(b);if(d.has(c))return d.get(c);else{if(!f)return new Promise(function(){});var e=y(function(a){return p(a.objectStore(b).get(c))}).then(function(a){var f=d.get(c);if(f!==e)return f;f=n(a,b);d.set(c,f);return f});d.set(c,e);return e}},isClosed:function(){return!f},logError:function(a,b,d,e){if(d==="dbCorruption"){b==="readwrite"&&c("promiseDone")(z());throw c("FBLogger")("mpf_web_foundations").mustfixThrow("Got unexpected undefined in pdb, mode: %s, table: %s, id: %s, deletedInThisTxn: %s",b,a,(d=e==null?void 0:e.id)!=null?d:"",(b=e==null?void 0:e.deletedInThisTxn)!=null?b:"")}},queueCommitWork:function(a){return a()},runExclusively:C,shouldApplySync:function(){return!1},shouldSync:function(a,b){return!1},types:["indexeddb"],uniqueId:e}}a.schemaDiff=r;a.applyChanges=s;g.default=a}),98); __d("MAWRestoreSchemaIndexedDB",["MAWCurrentUser","MAWIndexedDbMetadata","MAWReStoreDbSchema","ReStore","ReStoreMetadata","createReStoreIndexedDbPersistenceWithoutLocks"],(function(a,b,c,d,e,f,g){"use strict";var h,i={};function a(){if(h==null){var a=d("ReStoreMetadata").getBuildTableData(i)([d("MAWReStoreDbSchema").clientSchema.map(function(a,b){return babelHelpers["extends"]({},a,{id:(b+1).toString()})})]);h=c("ReStore")(c("createReStoreIndexedDbPersistenceWithoutLocks")(d("MAWIndexedDbMetadata").restoreDbName2(d("MAWCurrentUser").getID()),Object.keys(a.tableNames)),a)}return h}g.createDB=a}),98); __d("MAWCommonWorkerDbBackwardMigrationUtils",["Deferred","I64","MAWCurrentUser","MAWIndexedDbMetadata","MAWReStoreDbSchema","MAWRestoreSchemaIndexedDB","MAWTransactionMode","Promise","ReQL","WATagsLogger","asyncToGeneratorRuntime","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["Armadillo DB to ReStore migration error: ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["Migration complete, deleting old database."]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["Starting backwards migration to dexie"]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["Couldn't cleanup V2 database due to dexie not being open"]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["Checking if we need to migrate the database"]);n=function(){return a};return a}var o=d("WATagsLogger").TAGS(["DBInit","Migration"]);function p(a){return new(i||(i=b("Promise")))(function(b,c){var d=indexedDB.open(a);d.onupgradeneeded=function(a){a.target.transaction.abort(),b(null)};d.onerror=function(a){c("Error opening database: "+a.target.error)};d.onsuccess=function(a){a=a.target.result;b(a)}})}function a(){return q.apply(this,arguments)}function q(){q=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(c("gkx")("1519")||!c("gkx")("10846"))return(i||(i=b("Promise"))).resolve(!1);var a=(yield p(d("MAWIndexedDbMetadata").restoreDbName2(d("MAWCurrentUser").getID())));o.LOG(n());return a!=null});return q.apply(this,arguments)}function r(){return(i||(i=b("Promise"))).resolve(d("MAWRestoreSchemaIndexedDB").createDB())}function s(a,b){return t.apply(this,arguments)}function t(){t=babelHelpers.wrapAsyncGenerator(function*(a,b){a=a.iterator(new WeakMap());var c=[],d=(yield babelHelpers.awaitAsyncGenerator(a.next()));while(!d.done){var e=d.value;e[0];e=e[1];c.push(e);c.length===b&&(yield c,c=[]);d=(yield babelHelpers.awaitAsyncGenerator(a.next()))}c.length&&(yield c)});return t.apply(this,arguments)}function e(a){return u.apply(this,arguments)}function u(){u=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var e=d("MAWCurrentUser").getID();e=d("MAWIndexedDbMetadata").restoreDbName2(e);var f=new(c("Deferred"))();try{if(a==null){o.WARN(m());return(i||(i=b("Promise"))).resolve()}o.LOG(l());var g=(yield r()),n=new Set(a.tables.map(function(a){return a.name})),p=d("MAWReStoreDbSchema").clientSchema.map(function(a){return a.name}).filter(function(a){return n.has(a.replace(/e2ee_/,""))}),q=new Map(d("MAWReStoreDbSchema").clientSchema.map(function(a){return[a.name,a]}));yield (i||(i=b("Promise"))).all(p.map(function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var c,e=b.replace("e2ee_",""),f=q.get(b);c=(c=f==null?void 0:f.primary_key)!=null?c:[];var i=c[0];c=!0;var j=!1,k;try{var l=function*(){var b=n,c=b.map(function(a){var b=babelHelpers["extends"]({},a);i!=null&&(f==null?void 0:f.auto_increment)===!0&&(b[i]=(h||(h=d("I64"))).to_int32(a[i]));return b}),j=a.stores[e];yield a.transact(d("MAWTransactionMode").READWRITE,[e],function(){return j.bulkPut(c).then(function(){})});g.clearCacheIfSupported==null?void 0:g.clearCacheIfSupported()};for(var m=babelHelpers.asyncIterator(s(d("ReQL").fromTableAscending(g.table(b)),100)),b,n;b=(yield m.next()),c=b.done,n=(yield b.value),!c;c=!0)yield* l()}catch(a){j=!0,k=a}finally{try{!c&&m["return"]!=null&&(yield m["return"]())}finally{if(j)throw k}}});return function(a){return c.apply(this,arguments)}}()));o.LOG(k());g.closeDb==null?void 0:g.closeDb();void indexedDB.deleteDatabase(e);f.resolve()}catch(a){o.ERROR(j(),a),f.resolve()}return f.getPromise()});return u.apply(this,arguments)}g.shouldMigrateToDexie=a;g.migrateToDexieFromRestore=e}),98); __d("MAWDbThread",["MAWHexUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){return d("MAWHexUtils").orderPreservingHex(a)+"_"+b}g.craftThreadOrder=a}),98); __d("MAWDexieTable",["Promise","dexie_maw"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(a){return(h||(h=b("Promise"))).resolve(a)}function a(a){return a.reduce(function(a,b,c){return a.then(function(a){return b(c).then(function(b){a.push(b);return a})})},m([]))}function e(a){return c("dexie_maw").Promise.all(a)}function f(a){return c("dexie_maw").Promise.PSD[a]}function j(a,b){c("dexie_maw").Promise.PSD[a]=b}function k(a){c("dexie_maw").Promise.PSD[a]=void 0}var l=function(){function a(a,b,d,e){d===void 0&&(d=!0);e=new(c("dexie_maw"))(a,babelHelpers["extends"]({chromeTransactionDurability:"relaxed"},e));b(e);this.name=a;this.stores=e;d&&this.open()}var b=a.prototype;b.open=function(){this.stores.open()};b.close=function(){this.stores.close()};b.transact=function(a,b,c){var d=this;return i(this.stores.transaction(a,b.map(function(a){return d.stores[a]}),function(){return c()}))};babelHelpers.createClass(a,[{key:"tables",get:function(){return this.stores.tables}}]);return a}();function m(a){return c("dexie_maw").Promise.resolve(a)}function n(a){return c("dexie_maw").waitFor(a)}g.DEXIE_MIN_KEY=d("dexie_maw").Dexie.minKey;g.DEXIE_MAX_KEY=d("dexie_maw").Dexie.maxKey;g.dexieSequentialAll=a;g.dexieAll=e;g.getDexiePSDItem=f;g.setDexiePSDItem=j;g.clearDexiePSDItem=k;g.DexieTable=l;g.dexieResolve=m;g.dexieExpensiveAwait=n}),98); __d("SignalDbTypes",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){return a+"_"+b+"_"+c}b={abProps:"abProps",authKeyPair:"authKeyPair",cat:"cat",certificateChain:"certificateChain",clockSkew:"clockSkew",deviceId:"deviceId",deviceUUID:"deviceUUID",edgeInfo:"edgeInfo",fbid:"fbid",identityKeyPair:"identityKeyPair",lastPrekeyGenerationId:"lastPrekeyGenerationId",lastPrekeyId:"lastPrekeyId",lastSessionDeviceWasLinkedTo:"lastSessionDeviceWasLinkedTo",lastSignedPrekeyId:"lastSignedPrekeyId",regId:"regId",registrationVersion:"registrationVersion",restoreMigrationAttempts:"restoreMigrationAttempts"};({msgrDeviceId:"msgrDeviceId"});f.buildSenderKeySessionId=a;f.MetaKeysEnum=b}),66); __d("MAWDbSchema",["MAWDbMsg","MAWDbThread","MAWDexieTable","MAWFolderTypes","MAWLocalizationType","MAWMsgType","MAWODSProxy","MAWTimeUtils","MAWWaitForBackendSetup","SignalDbTypes","WAJids","WAOdsEnums","WAStanzaUtils","WATimeUtils","dexie_maw","gkx","promiseDone","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";a={appData:"++appDataId,&externalId",appMeta:"key",browserEncryptionMeta:"++id, &version",chunk:"++chunkId, &hashedPlaintextHash",contacts:"contactJid",existingUsers:"id",ftsBackloggedMessages:"rowId",ftsEncryptionMeta:"key",ftsIndexV3:"++ftsRowId,id,chatId,*prefixes",groupInfo:"groupJid,threadId",identity:"deviceJid",jobs:"++jobId,&uniqKey",media:"++mediaId, &hashedPlaintextHash, *msgIds",messages:"++rowId,externalId,thread,msgId,altIndex,messageExpirationTs,messageDeleteTs,quoteExternalId",meta:"key",participants:"id,threadId,userJid",pendingReceipts:"id",pendingStanzas:"++rowId,externalIdWithType",personalSenderKeyStatuses:"groupJid",prekey:"keyId",prekeyGeneration:"generationId",reactions:"++rowId,reactionId,externalId,reactToMsgId,threadJid,reactToExternalId",receipts:"msgId",senderKeySessions:"id,groupJid,userJid",session:"id",signedPrekey:"keyId",tasks:"taskName",threads:"++chatId,&jid,threadOrder",unrenderedMessages:"++rowId,externalId,thread,msgId"};b={messages:"++rowId,externalId,thread,msgId,altIndex,messageExpirationTs,messageDeleteTs,quoteExternalId,unsendMsgContentDeleteTs"};e={messages:"++rowId,externalId,thread,msgId,altIndex,messageExpirationTs,messageDeleteTs,quoteExternalId,unsendMsgContentDeleteTs,revokedExternalId"};f={isDualSend:"++rowId"};var h={historySyncQRCodeSecretKey:"key"},i={unrenderedMessages:"++rowId,externalId,thread,msgId,messageDeleteForMeTs"},j={messages:"++rowId,externalId,thread,msgId,altIndex,messageExpirationTs,messageDeleteTs,quoteExternalId,unsendMsgContentDeleteTs,revokedExternalId,threadJid",unrenderedMessages:"++rowId,externalId,thread,msgId,messageDeleteForMeTs,threadJid"},k={groupInvites:"invitedParticipantId, inviterJid"},l={pendingStanzas:"++rowId,externalIdWithType, deleteTs"},m={media:"++mediaId, &hashedPlaintextHash, *msgIds, &objectId, &fbid"},n={dualSendMedia:"++id"},o={xma:"++xmaId, associatedMessageId, faviconMediaId, headerMediaId, targetExpiringAtSec, defaultPreviewMediaId"},p={historySyncQRCodeData:"rowId"},q={xma:"++xmaId, externalId, associatedMessageId, faviconMediaId, headerMediaId, targetExpiringAtSec, defaultPreviewMediaId"},r={dyiBatch:"++batchId"},s={groupInfo:"groupJid,threadId,correspondingOpenThreadKey"},t=null;t={groupInvites:t};var u={groupInvites:"[invitedParticipantId+inviterJid], inviterJid"},v={messages:"++rowId,externalId,thread,msgId,altIndex,messageExpirationTs,messageDeleteTs,quoteExternalId,unsendMsgContentDeleteTs,revokedExternalId,threadJid,[thread+sortOrderMs]",unrenderedMessages:"++rowId,externalId,thread,msgId,messageDeleteForMeTs,threadJid,[thread+sortOrderMs]"},w={syncActions:"index,collection,actionState,indexMac,action,[modelId+modelType+actionState]"},x={missingKeys:"keyHex"},y={pendingMutations:"++id,action,index,collection"},z={collectionVersions:"++id,&collection"},A={syncKeys:"++id,&keyId,keyEpoch"},B={identity:"deviceJid,userJid"},C={uploadRetryStatus:"[externalId+lastRetryTs], lastRetryTs, traceId"},D={stanzaQueue:"++stanzaQueueId,stanzaId,jid,type"},E={deviceChangeAlerts:"++deviceChangeAlertsId"},F={retroactiveBackupsState:"threadId"},G={threads:"++chatId,&jid,threadOrder,&deduplicationKey"},H={mediaBackup:"++mediaBackupId,&objectId,mediaId,msgId"},I={threads:"++chatId,&jid,threadOrder,&deduplicationKey,&authoritativeThreadKey"},J={stanzaQueue:"++stanzaQueueId,stanzaId,jid,type,[jid+type]"},K={editMsgHistory:"++editMsgHistoryId,originalMsgExternalId,threadJid"},L={ftsBackloggedMessages:null,ftsEncryptionMeta:null,ftsIndexV3:null},M={media:"++mediaId, &hashedPlaintextHash, *msgIds, objectId, fbid"},N={ebRestoreQueue:"++queueId",ebUploadQueue:"++queueId"},O={ebRestoreQueue:"++queueId, uploadStatus, uploadTsSec, [uploadStatus+uploadTsSec]",ebUploadQueue:"++queueId, uploadStatus, uploadTsSec, [uploadStatus+uploadTsSec]"},P={messages:"++rowId,externalId,thread,msgId,altIndex,messageExpirationTs,messageDeleteTs,quoteExternalId,unsendMsgContentDeleteTs,revokedExternalId,threadJid,[thread+sortOrderMs],[thread+serverTs]"},Q={jobs:null},R={danglingQueue:"++queueId"},S={staleQueue:"++staleQueueId,dbVersion"},T={ebUploadQueue:"++queueId, uploadStatus, uploadTsSec, msgIdKey, offlineThreadingId, backupActionType, [uploadStatus+uploadTsSec], [msgIdKey], [offlineThreadingId+backupActionType]"},U={ftsBackloggedMessages:"rowId",ftsEncryptionMeta:"key",ftsIndexV3:"++ftsRowId,id,chatId,*prefixes"},V=function(a){var b=function(a){var b;b=(b=a.quote)==null?void 0:b.content;return a.quoteExternalId!=null&&(b==null?void 0:b.media)!=null};return a.messages.where("quoteExternalId").between(d("WAStanzaUtils").toStanzaId("0"),d("WAStanzaUtils").toStanzaId("["),!0,!0).filter(b).toArray()["catch"](function(){return a.messages.filter(b).toArray()}).then(function(b){var c=new Set(b.map(function(a){a=(a=a.quote)==null?void 0:a.content;return a==null?void 0:(a=a.media)==null?void 0:a.plaintextHash}).filter(Boolean)),d=b.map(function(a){a=a.msgId;return a});return a.media.filter(function(a){a=a.plaintextHash;return c.has(a)}).toArray().then(function(b){var c=new Map(b.map(function(a){var b=a.mediaId;a=a.plaintextHash;return[a,b]}));return a.messages.where("msgId").anyOf(d).modify(function(a){var b;b=(b=a.quote)==null?void 0:b.content;a.quote.content.mediaId=c.get(b.media.plaintextHash);delete a.quote.content.media})})})},W=function(a){return a.groupInfo.toCollection().modify(function(a){typeof a.inviter==="number"&&delete a.inviter})},X=function(a){return a.meta.get(d("SignalDbTypes").MetaKeysEnum.deviceId).then(function(b){var c;if((b==null?void 0:(c=b.value)==null?void 0:c.deviceId)!=null&&typeof b.value.deviceId!=="number")return a.meta.clear()})},Y=function(a){return a.threads.filter(function(a){return d("WAJids").switchOnMsgrChatJidType(a.jid,{group:function(){return!1},user:function(){return a.oldestMsg!=null}})}).toArray().then(function(b){var c=[];b.forEach(function(a){c.push(a.oldestMsg),c.push(a.newestMsg)});return a.messages.where("msgId").anyOf(c.filter(Boolean)).toArray().then(function(c){var e=new Map(),f=[],g=[];c.forEach(function(a){e.set(a.msgId,a)});b.forEach(function(b){var c=e.get(b.oldestMsg),h=e.get(b.newestMsg);(c==null?void 0:c.type)==="Admin"&&(h==null?void 0:h.type)==="Admin"&&(c.msgId===h.msgId?g.push(b.chatId):f.push(b));return d("MAWDexieTable").dexieAll(f.map(function(b){return a.messages.where("thread").equals(b.chatId).toArray()})).then(function(b){b.forEach(function(a){if(a.length===0)return;var b=a[0].thread;a=a.filter(function(a){return a.type!=="Admin"});if(a.length>0)return;g.push(b)});return d("MAWDexieTable").dexieAll([a.threads.bulkDelete(g),a.messages.where("thread").anyOf(g)["delete"]()])})})})})},Z=function(a){return a.unrenderedMessages.toCollection().modify(function(a){if(a.type===d("MAWMsgType").MSG_TYPE.DELETE_FOR_ME){var b=a.messageDeleteForMeTs;a.messageDeleteForMeTs=b}})},$=function(a){var b=0,e=0,f=c("dexie_maw").currentTransaction;if(f==null)throw c("unrecoverableViolation")("transaction does not exist","messenger_e2ee_web");f.on("complete",function(){c("promiseDone")(d("MAWWaitForBackendSetup").waitForBackendSetup("DB upgrade to V31").then(function(){b>0&&d("MAWODSProxy").odsBumpEntityKey({amount:b,entity:d("WAOdsEnums").Entity.MESSAGE_MISSING_THREAD_JID,key:"fail"}),e>0&&d("MAWODSProxy").odsBumpEntityKey({amount:e,entity:d("WAOdsEnums").Entity.MESSAGE_MISSING,key:"fail"})}))});f.on("complete",function(){b>0&&d("MAWODSProxy").odsBumpEntityKey({amount:b,entity:d("WAOdsEnums").Entity.MESSAGE_MISSING_THREAD_JID,key:"fail"}),e>0&&d("MAWODSProxy").odsBumpEntityKey({amount:e,entity:d("WAOdsEnums").Entity.MESSAGE_MISSING,key:"fail"})});return a.threads.toArray().then(function(c){var f=c.reduce(function(a,b){b!=null&&a.set(b.chatId,b);return a},new Map());return d("MAWDexieTable").dexieAll([a.messages.toCollection().modify(function(a){if(a!=null){var c=f.get(a.thread);c!=null?a.threadJid=c.jid:(a.threadJid=null,b+=1)}else e+=1}),a.unrenderedMessages.toCollection().modify(function(a){if(a!=null){var c=f.get(a.thread);c!=null?a.threadJid=c.jid:(a.threadJid=null,b+=1)}else e+=1})])})},aa=function(a){return a.isDualSend.toCollection().modify(function(a){a.version==null&&(a.version=1)})},ba=function(a){return a.messages.toCollection().modify(function(a){a.type===d("MAWMsgType").MSG_TYPE.ADMIN&&a.msgContent.adminType===d("MAWLocalizationType").LOCALIZATION_TYPE.E2EE_THREAD_DESCRIPTION&&(a.altIndex=d("MAWDbMsg").craftE2eeAdminMsgAltIndex(a.thread))})},ca=function(a){return a.messages.toCollection().modify(function(a){a.sortOrderMs=d("MAWDbMsg").getSortOrderWithFallback(a)})},da=function(a){return a.threads.toCollection().modify(function(a){a.folder==null&&(a.folder=d("MAWFolderTypes").FOLDER_ID.INBOX)})},ea=function(a){return a.messages.toCollection().modify(function(a){a.sortOrderMs=d("MAWDbMsg").getSortOrderWithFallback(a)})},fa=function(a){return a.personalSenderKeyStatuses.toCollection().modify(function(a){a.rotateSenderKey=!0,a.hasSenderKey=new Set()})},ga=function(a){return a.messages.toCollection().modify(function(a){a.type===d("MAWMsgType").MSG_TYPE.ADMIN&&a.msgContent.adminType===d("MAWLocalizationType").LOCALIZATION_TYPE.CUTOVER_THREAD_ADMIN_MESSAGE&&a.sortOrderMs!=null&&a.sortOrderMs>0&&(a.sortOrderMs=0)})},ha=function(a){return a.messages.toCollection().modify(function(a){!(a.type===d("MAWMsgType").MSG_TYPE.ADMIN&&(a.msgContent.adminType===d("MAWLocalizationType").LOCALIZATION_TYPE.CUTOVER_THREAD_ADMIN_MESSAGE||a.msgContent.adminType===d("MAWLocalizationType").LOCALIZATION_TYPE.E2EE_THREAD_DESCRIPTION))&&a.sortOrderMs!=null&&a.sortOrderMs<1661204086&&(a.sortOrderMs=d("MAWDbMsg").getCanonicalTsFromMsg(a)*1e3)})},ia=function(a){return a.threads.filter(function(a){return a.isMigratedLocally===!0&&a.newestMsg!=null}).toArray().then(function(b){var c=b.map(function(a){return a.chatId}),e=new Map();return d("MAWDexieTable").dexieAll(b.map(function(b){return a.messages.where(["thread","sortOrderMs"]).between([b.chatId,0],[b.chatId,Number.MAX_VALUE]).last().then(function(a){a!=null&&e.set(a.thread,a.msgId)})})).then(function(){return a.threads.where("chatId").anyOf(c).modify(function(a){var b=e.get(a.chatId);b!=null&&(a.newestMsg=b)})})})},ja=function(a){return a.identity.toCollection().modify(function(a){a.userJid=d("WAJids").extractUserJid(a.deviceJid)})},ka=function(a){return a.threads.toCollection().modify(function(a){a.lastReadMsgTs!=null&&a.lastReadMsgTs0?f:Infinity));function m(a,b){var c=b.schema,d=b.upgrade;b=b.version;c!=null&&d!=null?a.version(b).stores(c).upgrade(d):c!=null?a.version(b).stores(c):d!=null?a.version(b).upgrade(d):a.version(b);return b}function a(a,c){return d("MAWRestoreRewriteUtils").isOneDBEnabled()||c?(h||(h=b("Promise"))).resolve(null):new(h||(h=b("Promise")))(function(b){if(!indexedDB){b();return}var c=indexedDB.open(a);c.onsuccess=function(a){a=a.target.result;var c=a==null?void 0:a.version;a==null?void 0:a.close();c!=null?b(c/10):b()};c.onerror=function(){b()}})}function n(a,b){if(b.upgrade!=null)return!0;a=Object.keys((a==null?void 0:a.schema)||{});b=Object.keys((b==null?void 0:b.schema)||{});a=[].concat(a,b);b=new Set(a);return b.size!==a.length}function o(a){return a.reduce(function(a,b,c){if(c===0)return[babelHelpers["extends"]({},b,{schema:l(b.version)})];c=a[a.length-1];if(n(c,b)){a.push(b);return a}a.splice(a.length-1,1,babelHelpers["extends"]({},b,{schema:babelHelpers["extends"]({},c==null?void 0:c.schema,b.schema)}));return a},[])}function e(a,b,c){var e=null,f=c!=null?c:k==null?void 0:k();d("WALogger").DEV(j(),f);f==null&&d("WALogger").WARN(i());c=d("MAWDbSchema").MAW_DB_VERSION_CHANGES.filter(function(a){a=a.version;return b==null||a>b}).filter(function(a){a=a.version;return f==null||f>=a});var g=d("MAWDbSchema").MAW_DB_VERSION_CHANGES.filter(function(a){a=a.version;return f==null||f>=a});if(c.length===0||c.length===g.length){g=d("MAWDbSchema").MAW_DB_VERSION_CHANGES[d("MAWDbSchema").MAW_DB_VERSION_CHANGES.length-1].version;g=Math.min(f!=null&&f>0?f:g,g);a.version(g).stores(l(g));return}g=o(c);g.forEach(function(b){e=Math.max((b=m(a,b))!=null?b:0,(b=e)!=null?b:0)});return e}g.CURRENT_MAW_STORES=f;g.getDexieDbVersion=a;g.updateDB=e}),98); __d("MAWDexieError",[],(function(a,b,c,d,e,f){"use strict";a="ModifyError";b="BulkError";c="OpenFailedError";d="VersionChangeError";e="SchemaError";var g="UpgradeError",h="InvalidTableError",i="MissingAPIError",j="NoSuchDatabaseError",k="InvalidArgumentError",l="SubTransactionError",m="UnsupportedError",n="InternalError",o="DatabaseClosedError",p="PrematureCommitError",q="ForeignAwaitError",r="UnknownError",s="ConstraintError",t="DataError",u="TransactionInactiveError",v="ReadOnlyError",w="VersionError",x="NotFoundError",y="InvalidStateError",z="InvalidAccessError",A="AbortError",B="TimeoutError",C="QuotaExceededError",D="SyntaxError",E="DataCloneError";A={AbortError:A,BulkError:b,ConstraintError:s,DatabaseClosedError:o,DataCloneError:E,DataError:t,ForeignAwaitError:q,InternalError:n,InvalidAccessError:z,InvalidArgumentError:k,InvalidStateError:y,InvalidTableError:h,MissingAPIError:i,ModifyError:a,NoSuchDatabaseError:j,NotFoundError:x,OpenFailedError:c,PrematureCommitError:p,QuotaExceededError:C,ReadOnlyError:v,SchemaError:e,SubTransactionError:l,SyntaxError:D,TimeoutError:B,TransactionInactiveError:u,UnknownError:r,UnsupportedError:m,UpgradeError:g,VersionChangeError:d,VersionError:w};f.DEXIE_ERROR=A}),66); __d("MAWIDbSetupQpl",["MAWQplProxy","qpl"],(function(a,b,c,d,e,f,g){"use strict";a=d("MAWQplProxy").startQplUserFlow(c("qpl")._(1056836116,"905"));b=a;g["default"]=b}),98); __d("MAWIDbSetupQplEventListener",["MAWDexieError"],(function(a,b,c,d,e,f,g){"use strict";var h,i=null;function j(a){var b=new Set(Object.keys(d("MAWDexieError").DEXIE_ERROR));b.has(a.reason)&&h!=null&&(h.endFail(a.reason),i!=null&&(i(),i=null))}b=function(b,c){h=b,i=c,a.addEventListener("unhandledrejection",j)};g.trackDbSetupFailure=b}),98); __d("MAWDataSyncQueue",["MAWQplProxy","Promise","WALogger","asyncToGeneratorRuntime","qex","qpl","throttle"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["Unhandled exception caught in middleware "," sync: ",""]);i=function(){return a};return a}var j=c("qex")._("853")||1e3;a=c("qex")._("855")||1e3;e=function(){m=!1;return r({isUnloading:!0})};var k=[],l=[],m=!1,n=[],o=function(){var a,b=k.splice(0,k.length);(a=l).push.apply(a,b)},p=function(){return l.splice(0,j)},q=function a(c,e){var f=p();if(f.length===0)return;c.addPoint("processing_batch");return(h||(h=b("Promise"))).all(n.map(function(a,b){return a(f,e)["catch"](function(a){d("WALogger").ERROR(i(),b,a)})})).then(function(){return a(c,e)})},r=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(m)return;m=!0;var b=d("MAWQplProxy").startQplUserFlow(c("qpl")._(1056849784,"272"));b.addPoint("processing_queue",{"int":{queueSize:k.length}});o();try{yield q(b,a),b.endSuccess()}catch(a){b.endFail("handler_failed_execution");throw a}finally{m=!1,k.length>0&&s()}});return function(b){return a.apply(this,arguments)}}(),s=c("throttle")(r,a);f=function(a,b){k.push({type:a,value:b}),s()};a=function(a){n.some(function(b){return b===a})||n.push(a)};var t=function(){n=[]},u=function(){k=[],l=[]},v=function(){return k};g.forceFlushDataSyncQueue=e;g.addSyncItem=f;g.registerDataSyncCallback=a;g.clearDataSyncCallbacks=t;g.clearDataSyncQueue_FOR_TESTING_ONLY=u;g.getDataSyncQueue_FOR_TESTING_ONLY=v}),98); __d("MAWDataSyncMiddleware",["FBLogger","MAWDataSyncQueue"],(function(a,b,c,d,e,f,g){"use strict";var h=new Set(["contacts","groupInfo","messages","participants","threads","reactions","dyiBatch","xma","pendingStanzas"]);function i(a,b){var c=a.table(b);return!h.has(b)?c:babelHelpers["extends"]({},c,{mutate:function(a){return c.mutate(a).then(function(c){if(a.type==="delete"){a.keys.forEach(function(c){d("MAWDataSyncQueue").addSyncItem(a.type,{key:c,tableName:b})});return c}else c.results!=null?c.results.forEach(function(c){d("MAWDataSyncQueue").addSyncItem(a.type,{key:c,tableName:b,values:a.values})}):c.lastResult!=null&&d("MAWDataSyncQueue").addSyncItem(a.type,{key:c.lastResult,tableName:b,values:a.values});return c})}})}function a(){return{create:function(a){try{return babelHelpers["extends"]({},a,{table:function(b){return i(a,b)}})}catch(b){c("FBLogger")("mpf_web_foundations").catching(b).mustfix("Error applying DataSync Middleware, messages made during this session will not be properly synced to registered consumers");return a}},name:"MAWDataSyncMiddleware",stack:"dbcore"}}g.getDataSyncMiddleware=a}),98); __d("MAWIndexedDb",["Deferred","FBLogger","MAWBridge","MAWCommonWorkerDbBackwardMigrationUtils","MAWCurrentUser","MAWDataSyncMiddleware","MAWDbMutationMiddleware","MAWDbSchema","MAWDbVersion","MAWDexieTable","MAWIDbSetupQpl","MAWIDbSetupQplEventListener","MAWIndexedDBDeletion","MAWIndexedDbMetadata","MAWTransactor","Promise","WALogger","WATagsLogger","WAWorkerGlobalScope","asyncToGeneratorRuntime","cr:6746","dexie_maw","err","promiseDone","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["Migration cleanup failed. Marking as ready for query"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["Migration cleanup done. Marking as ready for query"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["DB setup complete, marking as ready"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["DB Open blocked"]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["[DB] actual version: ",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["Starting DB Setup"]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["[afterTransaction] afterTransactionForThreadEvent called outside of dexie transaction"]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["[afterTransaction] called outside of dexie transaction"]);p=function(){return a};return a}function q(){var a=babelHelpers.taggedTemplateLiteralLoose(["[afterTransactionEffect] called outside of dexie transaction"]);q=function(){return a};return a}var r=null,s=null,t=new(c("Deferred"))(),u=!1,v=d("WATagsLogger").TAGS(["DBInit","DbSetup"]);function w(){t=null,u=!1}function a(a,b,c){return x.apply(this,arguments)}function x(){x=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f){e=e===void 0?{enableDataSyncMiddleware:!0}:e;var g=e.enableDataSyncMiddleware,h=e.shimEnabled,o=h===void 0?!1:h;h=babelHelpers.objectWithoutPropertiesLoose(e,["enableDataSyncMiddleware","shimEnabled"]);e=d("MAWCurrentUser").getID();if(r!=null)return;if(u){var p;return(p=t)==null?void 0:p.getPromise()}v.LOG(n());u=!0;t=(p=t)!=null?p:new(c("Deferred"))();d("MAWIDbSetupQplEventListener").trackDbSetupFailure(c("MAWIDbSetupQpl"),function(){var a;(a=t)==null?void 0:a.reject();w()});s=d("MAWIndexedDbMetadata").dbName(e);var q=(yield d("MAWDbVersion").getDexieDbVersion(s,o));r=new(d("MAWDexieTable").DexieTable)(s,function(e){g&&e.use(d("MAWDataSyncMiddleware").getDataSyncMiddleware());!o&&a!=null&&e.use(d("MAWDbMutationMiddleware").getMAWDbMutationMiddleware(a));o&&e.use(d("MAWDbMutationMiddleware").getMAWVaultMiddleware());var h=d("MAWDbVersion").updateDB(e,q,f);d("WALogger").DEV(m(),h);c("MAWIDbSetupQpl").addPoint("database_version_upgraded ",{"int":{dbVersion:h}});e.on("blocked",function(){v.ERROR(l())});e.on("ready",function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){v.LOG(k());c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=(yield d("MAWCommonWorkerDbBackwardMigrationUtils").shouldMigrateToDexie());b&&a!=null&&(yield d("MAWCommonWorkerDbBackwardMigrationUtils").migrateToDexieFromRestore(r),v.LOG(j()))})(),function(){var a;(a=t)==null?void 0:a.resolve();w()},function(){var a;v.LOG(i());(a=t)==null?void 0:a.resolve();w()});if(a==null){d("WALogger").ERROR(["DB is null"]);return}c("MAWIDbSetupQpl").endSuccess({"int":{dbVersion:h}})});return function(b){return a.apply(this,arguments)}}());e.on("versionchange",function(){var a=h!=null?h-1:0;c("MAWIDbSetupQpl").addPoint("database_version_upgraded ",{"int":{prev_db_version:a}});d("WAWorkerGlobalScope").workerGlobalScope.location.reload==null?void 0:d("WAWorkerGlobalScope").workerGlobalScope.location.reload()})},void 0,h)});return x.apply(this,arguments)}function y(a){if(r==null){throw c("err")('IndexDB has not been initialized before executing "'+((a=a)!=null?a:"unnamed")+'"')}return r}function z(a){if(r!=null&&!u)return(h||(h=b("Promise"))).resolve(r);t=t||new(c("Deferred"))();return t.getPromise().then(function(){return y(a)})}function e(){return A.apply(this,arguments)}function A(){A=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield z());a!=null&&(a.close(),r=null)});return A.apply(this,arguments)}function f(a){r=a,w()}var B=new WeakMap(),C=new WeakMap();function D(a){var b=c("dexie_maw").currentTransaction;if(b==null){d("WALogger").ERROR(q());throw c("unrecoverableViolation")("afterTransactionEffect called outside of dexie transaction","messenger_e2ee_web")}if(typeof a!=="function")return;var e=B.get(b)||[];e.push(a);B.set(b,e);e.length===1&&b.on("complete",function(){var a=B.get(b)||[];a.forEach(function(a){a()});B["delete"](b)})}function E(a){if(c("dexie_maw").currentTransaction==null)throw c("FBLogger")("messenger_e2ee_web").mustfixThrow("Cannot use afterTransactionRestore outside of a MAW transaction");b("cr:6746")!=null&&b("cr:6746").handleEventWithRestore(c("dexie_maw").currentTransaction.idbtrans,a)}function F(a){var b=c("dexie_maw").currentTransaction;if(b==null){d("WALogger").ERROR(p());throw c("unrecoverableViolation")("afterTransaction called outside of dexie transaction","messenger_e2ee_web")}var e=C.get(b);if(e!=null)e.push(a);else{var f=[a];C.set(b,f);b.on("complete",function(){C["delete"](b),d("MAWBridge").getBridge().fireAndForget("event","uiUpdate",{events:f})})}}function G(a){b("cr:6746")!=null?E(a):F(a)}function H(a,b){var e=c("dexie_maw").currentTransaction;if(e==null){d("WALogger").ERROR(o());throw c("unrecoverableViolation")("afterTransactionForThreadEvent called outside of dexie transaction","messenger_e2ee_web")}e.on("complete",function(){d("MAWBridge").getBridge().fireAndForget("threadEvent",b,a)})}function I(){r!=null&&(r.close(),r=null)}function J(a){I();var b=s;b===null&&a!=null&&(b=d("MAWIndexedDbMetadata").dbName(a));c("promiseDone")(d("MAWIndexedDBDeletion").deleteDB(b,"maw"))}g.TABLES_TO_ENCRYPT=d("MAWDbSchema").TABLES_TO_ENCRYPT;g.makeMsgrTransactor=d("MAWTransactor").makeMsgrTransactor;g.makeSignalTransactor=d("MAWTransactor").makeSignalTransactor;g.makeMsgrAndSignalTransactor=d("MAWTransactor").makeMsgrAndSignalTransactor;g.makeDB=a;g.getDBExn=y;g.getDB=z;g.closeDB_INTERNAL_USE_ONLY=e;g.setDB_INTERNAL_USE_ONLY=f;g.afterTransactionEffect=D;g.afterTransaction=G;g.afterTransactionThreadEvent=H;g.closeDb=I;g.deleteDb=J}),98); __d("MAWDexieCastToPromise",["Promise"],(function(a,b,c,d,e,f){"use strict";var g;function a(a){return(g||(g=b("Promise"))).resolve(a)}function c(a){return a}f.dexieCastToPromise=a;f.promiseCastToDexiePromise_I_KNOW_WHAT_I_AM_DOING=c}),66); __d("MAWLLAMigrationUtils",["MAWRestoreDbState","gkx","justknobx","qpl"],(function(a,b,c,d,e,f,g){"use strict";b=c("justknobx")._("652");var h=1/Math.max(b,10);e=1/(b/10);f=1/(5*b);b=1/(10*b);var i=new Map([["setClockSkew",b],["getRoutingInfo",f],["unknown",b],["writeOutgoingMsg",e],["processFutureProofMsgs",e],["markThreadAsReadUpTo",e],["handleMediaDownload",e],["getMsgForREquestReuploadMedia",e],["createGroup",e],["createGroups",e],["BulkProcessFutureProofMsgs",e],["getAllMessageIdsAndRangesForThread",e]]),j=new Set(["uploadMsgBackupGetMsgs","updateBackupEntFbid","saveXMAMediaAndMetadata","saveRTCXMAMediaAndMetadata","writeRetroactiveBackupsState","getBackupThreads","uploadMessagesForThread","constructEchoMessage","updateBackupEntFbidInMediaBackup","restoreUpdateThread","restoreUpdateMessages","restoreUpdateNextInChatMsgId","handleEncryptedBackupsSecret","restoreInsertMsgsToDb","getMsgsByProtocolMsgIds","restoreGetMsg","restoreMaybeGetOldestNonAdminMessage","restoreGetMediaForXMAByObjectIds","restoreWriteXMAsToDb","restoreWriteReactionsToDb","restoreGetThread","restoreDeleteMessages","getChunkOfTheDownloadedFile","updateMediaWithDownloadedChunkBlob","invokeRestoreAccessCheckSprocToDownloadAttachment","restoreLinkMedias","getChunksByHash","bulkGetRetroactiveMedia","updateRetroactiveBackupsStore","getRetryItems","housekeepUploadRetryTable","getMsgsEB"]);function a(a,b,e){b===void 0&&(b=!1);e===void 0&&(e={});var f=i.get(a)||h;return a==="debug"||a==="test"?[]:c("gkx")("6226")&&Math.random()=0)return new(g||(g=b("Promise")))(function(b){var d=function(){return void b()};a.then(d,d);setTimeout(d,c)});else return a.then(i,i)}function i(){}f.PromiseQueue=a;f.PromiseQueueMap=c}),66); __d("MAWTransactor",["Deferred","FBLogger","MAWDexieCastToPromise","MAWDexieTable","MAWErrorObject","MAWIndexedDb","MAWLLAMigrationUtils","MAWQplProxy","MAWTransactionMode","WAPromiseQueue","asyncToGeneratorRuntime","dexie_maw","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h=["MWPTransactor"],i=c("FBLogger")("messenger_e2ee_web"),j=1,k=new(d("WAPromiseQueue").PromiseQueue)(),l=new Map();function m(a,b,e,f,g){e!=null&&c("dexie_maw").currentTransaction!=null&&e.endFail("invoked_in_nested_transaction");if(c("dexie_maw").currentTransaction!=null)throw i.mustfixThrow("makeMsgrTransactor %s cannot be called within another transaction",f);return d("MAWIndexedDb").getDB().then(function(c){return c.transact(a,b,g)})}function n(a,b,e,f,g){e=d("MAWDexieTable").getDexiePSDItem("transactionId");if(e==null)throw i.mustfixThrow("BulkTransactor cannot be called without a transaction id with transaction: %s",f);var h=l.get(e)||[],j=new(c("Deferred"))();h.push({fn:g,mode:a,promise:j,stores:b,transactorName:f});l.set(e,h);return j.getPromise()}function o(a,b,c,e,f){var g=d("MAWDexieTable").getDexiePSDItem("transactor");return g==="bulk"?n(a,b,c,e,f):m(a,b,c,e,f)}function p(a,b,c){return c.length===0?d("MAWDexieTable").dexieResolve():d("MAWDexieCastToPromise").promiseCastToDexiePromise_I_KNOW_WHAT_I_AM_DOING(a.transact(d("MAWTransactionMode").READONLY,b,function(){return d("MAWDexieTable").dexieAll(c.map(function(a){var b=a.fn,c=a.promise,e=a.transactorName;return b().then(function(a){return c.resolve(a)})["catch"](function(a){c.reject(a);throw y(d("MAWErrorObject").getErrorObject(a)).mustfixThrow("Error completing bulk read operation %s",e)})}))}).then(function(){i.debug("Finished bulk read transaction")}))}function q(a,b,c){return c.length===0?d("MAWDexieTable").dexieResolve():d("MAWDexieCastToPromise").promiseCastToDexiePromise_I_KNOW_WHAT_I_AM_DOING(a.transact(d("MAWTransactionMode").READWRITE,b,function(){return c.reduce(function(a,b){var c=b.fn,e=b.promise,f=b.transactorName;return a.then(function(){return c()}).then(function(a){return e.resolve(a)})["catch"](function(a){e.reject(a);throw y(d("MAWErrorObject").getErrorObject(a)).mustfixThrow("Error completing bulk read/write operation %s",f)})},d("MAWDexieTable").dexieResolve())}).then(function(){d("MAWDexieTable").clearDexiePSDItem("transactionId"),i.debug("Finished bulk read/write transaction")}))}function r(a){var b=[].concat(l.get(a)||[]);l["delete"](a);if(b.length===0)return d("MAWDexieTable").dexieResolve();i.debug("Bulking %s db operations together",b.length);a=b.some(function(a){a=a.mode;return a===d("MAWTransactionMode").READWRITE})?d("MAWTransactionMode").READWRITE:d("MAWTransactionMode").READONLY;var c=Array.from(new Set(b.flatMap(function(a){a=a.stores;return a}))),e=d("MAWIndexedDb").getDBExn("BulkTransaction");return d("MAWDexieCastToPromise").promiseCastToDexiePromise_I_KNOW_WHAT_I_AM_DOING(e.transact(a,c,function(){return b.reduce(function(a,b){var c=b.fn,e=b.promise,f=b.transactorName;return a.then(function(){return c()}).then(function(a){return e.resolve(a)})["catch"](function(a){e.reject(a);throw y(d("MAWErrorObject").getErrorObject(a)).mustfixThrow("Error completing bulk operation %s",f)})},d("MAWDexieTable").dexieResolve())}).then(function(){d("MAWDexieTable").clearDexiePSDItem("transactionId"),i.debug("Finished bulk transaction")}))}function s(a){var b=[].concat(l.get(a)||[]);l["delete"](a);if(b.length===0)return d("MAWDexieTable").dexieResolve();i.debug("Bulking %s db operations together",b.length);a=b.filter(function(a){a=a.mode;return a===d("MAWTransactionMode").READONLY});var c=b.filter(function(a){a=a.mode;return a===d("MAWTransactionMode").READWRITE});b=Array.from(new Set(a.flatMap(function(a){a=a.stores;return a})));var e=Array.from(new Set(c.flatMap(function(a){a=a.stores;return a}))),f=d("MAWIndexedDb").getDBExn("BulkTransaction");return p(f,b,a).then(function(){return q(f,e,c)}).then(function(){return d("MAWDexieTable").dexieResolve()})}function a(a){var b=c("gkx")("5994")?s:r;return k.enqueue(function(){if(c("dexie_maw").currentTransaction!=null)throw i.mustfixThrow("runInBulkTransaction cannot be called within another transaction");if(d("MAWDexieTable").getDexiePSDItem("transactionId")!=null)throw i.mustfixThrow("Several transactions are trying to be executed at the same time: %s",d("MAWDexieTable").getDexiePSDItem("transactionId"));i.debug("Running in bulk transaction");return d("MAWDexieCastToPromise").dexieCastToPromise(d("MAWDexieTable").dexieResolve().then(function(){var c=j++;d("MAWDexieTable").setDexiePSDItem("transactor","bulk");d("MAWDexieTable").setDexiePSDItem("transactionId",c);var e=a();d("MAWDexieTable").clearDexiePSDItem("transactor");return b(c).then(function(){return d("MAWDexieCastToPromise").promiseCastToDexiePromise_I_KNOW_WHAT_I_AM_DOING(e)})["finally"](function(){d("MAWDexieTable").clearDexiePSDItem("transactionId")})}))})["catch"](function(a){throw y(d("MAWErrorObject").getErrorObject(a)).mustfixThrow("Uncaught exception in runInBulkTransactor")})}function t(a){a=d("MAWLLAMigrationUtils").getTransactorQPLParam(a);a=a.length===2?a:[null,void 0];var b=a[0];a=a[1];return b!=null?d("MAWQplProxy").startQplUserFlow(b,a):null}function e(a,b,c){return v(a,b,c)}function f(a,b,c){return v(a,b,c)}function u(a,b,c){return v(a,b,c)}function v(a,b,c){var e=Object.keys(a),f=e.some(function(b){return a[b]===d("MAWTransactionMode").READWRITE})?d("MAWTransactionMode").READWRITE:d("MAWTransactionMode").READONLY;return function(){for(var a=arguments.length,g=new Array(a),i=0;i0&&(e=0,g=f);return-1};b.readString=function(a){return q(this,a,C)};b.ensureCapacity=function(a){this.$13(this.$3+a)};b.ensureAdditionalCapacity=function(a){this.$13(this.$4+a)};b.writeToView=function(a,b,c,d){var e=this.$14(a);return b(this.$12(),e,a,c,d)};b.writeToBytes=function(a,b,c,d){var e=this.$14(a);return b(this.$1,e,a,c,d)};b.writeUint8=function(a){S(a,0,256,"uint8"),E(this,1,F,a,!1)};b.writeInt8=function(a){S(a,-128,128,"signed int8"),E(this,1,F,a,!0)};b.writeUint16=function(a,b){b===void 0&&(b=this.$8),S(a,0,65536,"uint16"),D(this,2,G,a,b)};b.writeInt16=function(a,b){b===void 0&&(b=this.$8),S(a,-32768,32768,"signed int16"),D(this,2,H,a,b)};b.writeUint32=function(a,b){b===void 0&&(b=this.$8),S(a,0,4294967296,"uint32"),D(this,4,I,a,b)};b.writeInt32=function(a,b){b===void 0&&(b=this.$8),S(a,-2147483648,2147483648,"signed int32"),D(this,4,J,a,b)};b.writeUint64=function(a,b){b===void 0&&(b=this.$8),S(a,0,18446744073709552e3,"uint64"),D(this,8,K,a,b)};b.writeInt64=function(a,b){b===void 0&&(b=this.$8),S(a,-9223372036854776e3,9223372036854776e3,"signed int64"),D(this,8,K,a,b)};b.writeFloat32=function(a,b){b===void 0&&(b=this.$8),D(this,4,L,a,b)};b.writeFloat64=function(a,b){b===void 0&&(b=this.$8),D(this,8,M,a,b)};b.writeVarInt=function(a){S(a,-9223372036854776e3,9223372036854776e3,"varint (signed int64)");var b=a<0;a=b?-a:a;var c=Math.floor(a/4294967296);a=a-c*4294967296;b&&(c=~c,a===0?c++:a=-a);b=R(c,a);E(this,b,N,c,a)};b.writeVarIntFromHexLong=function(a){var b=d("WAHex").hexLongIsNegative(a);a=b?d("WAHex").negateHexLong(a):a;a=d("WAHex").hexLongToHex(a);var c=0,e=0;for(var f=0;f>>28,e=e<<4|d("WAHex").hexAt(a,f);b&&(c=~c,e===0?c++:e=-e);a=R(c,e);E(this,a,N,c,e)};b.writeBinary=function(a){a=a.peek(function(a){return a.readByteArray()});if(a.length){var b=this.$14(a.length);this.$1.set(a,b)}};b.writeBuffer=function(a){this.writeByteArray(new Uint8Array(a))};b.writeByteArray=function(a){var b=this.$14(a.length);this.$1.set(a,b)};b.writeBufferView=function(a){this.writeByteArray(new Uint8Array(a.buffer,a.byteOffset,a.byteLength))};b.writeString=function(a){E(this,n(a),O,a)};b.writeHexLong=function(a,b){b===void 0&&(b=this.$8),D(this,8,P,a,b)};b.writeBytes=function(){for(var a=arguments.length,b=new Array(a),c=0;c=c;f--)e[f+d]=e[f];for(b=0;bthis.$2)throw c("WAErr")(b===this.$2?"ReadError: tried to read from depleted binary":"ReadError: tried to read beyond end of binary");this.$3=a;this.$9||(this.$6=a);return b};b.$13=function(a){var b=this.$1;if(a<=b.length)return a;else{var c=this.$6;a=a-c;var d=Math.max(a,2*(b.length-c),64);d=new Uint8Array(d);c?(d.set(b.subarray(c)),this.$5+=c,this.$3-=c,this.$2-=c,this.$4-=c,this.$6=0):d.set(b);this.$1=d;this.$7=null;return a}};b.$14=function(a){a=this.$13(this.$4+a);var b=this.$4;this.$4=a;this.$10||(this.$2=a);return b};return a}();var l="",m=0;function n(a){if(a===l)return m;var b=a.length,c=0;for(var d=0;d>21;if(!a)return d===0;else{a=b&2097151;b=Boolean(a||c);return d===0||d===-1&&b}}function p(a,b,c,d,e){return a.readWithViewParser(b,c,d,e)}function q(a,b,c,d,e){return a.readWithBytesParser(b,c,d,e)}function r(a,b,c,d){return d?a.getInt8(b):a.getUint8(b)}function s(a,b,c,d){return a.getUint16(b,d)}function t(a,b,c,d){return a.getInt32(b,d)}function u(a,b,c,d){return a.getUint32(b,d)}function v(a,b,c,d,e){c=a.getInt32(e?b+4:b,e);a=a.getInt32(e?b:b+4,e);return d(c,a)}function w(a,b,c,d){return a.getFloat32(b,d)}function x(a,b,c,d){return a.getFloat64(b,d)}function y(a,b,d,e){d=Math.min(e,i);e=0;var f=128;while(e1)throw c("WAErr")("ParseError: varint exceeds 64 bits");else if(f&128)return e+1;return e}function z(b,c,d,a){var e=0,f=0,g=d;d===i&&(g--,f=b[c+g]&1);for(d=g-1;d>=0;d--)e=e<<7|f>>>25,f=f<<7|b[c+d]&127;return a(e,f)}function A(a,b,c){b=b+a.byteOffset;a=a.buffer;return b===0&&c===a.byteLength?a:a.slice(b,b+c)}function B(a,b,c){return a.subarray(b,b+c)}function C(a,b,c){c=b+c;var d=[],e=null;for(b=b;b5e3&&(e||(e=[]),e.push(String.fromCharCode.apply(String,d)),d=[]);var f=a[b]|0;if((f&128)===0)d.push(f);else if((f&224)===192){var g=W(a,b+1,c);if(g){b++;g=(f&31)<<6|g&63;g>=128?d.push(g):d.push(h)}else d.push(h)}else if((f&240)===224){g=W(a,b+1,c);var i=W(a,b+2,c);if(g&&i){b+=2;i=(f&15)<<12|(g&63)<<6|i&63;i>=2048&&!(55296<=i&&i<57344)?d.push(i):d.push(h)}else g?(b++,d.push(h)):d.push(h)}else if((f&248)===240){i=W(a,b+1,c);g=W(a,b+2,c);var j=W(a,b+3,c);if(i&&g&&j){b+=3;f=(f&7)<<18|(i&63)<<12|(g&63)<<6|j&63;if(f>=65536&&f<=1114111){j=f-65536;d.push(55296|j>>10,56320|j&1023)}else d.push(h)}else i&&g?(b+=2,d.push(h)):i?(b++,d.push(h)):d.push(h)}else d.push(h)}f=String.fromCharCode.apply(String,d);if(e){e.push(f);return e.join("")}else return f}function D(a,b,c,d,e){return a.writeToView(b,c,d,e)}function E(a,b,c,d,e){return a.writeToBytes(b,c,d,e)}function F(a,b,c,d){a[b]=d}function G(a,b,c,d,e){a.setUint16(b,d,e)}function H(a,b,c,d,e){a.setInt16(b,d,e)}function I(a,b,c,d,e){a.setUint32(b,d,e)}function J(a,b,c,d,e){a.setInt32(b,d,e)}function K(a,b,c,d,e){c=d<0;d=c?-d:d;var f=Math.floor(d/4294967296);d=d-f*4294967296;c&&(f=~f,d===0?f++:d=-d);a.setUint32(e?b+4:b,f,e);a.setUint32(e?b:b+4,d,e)}function L(a,b,c,d,e){a.setFloat32(b,d,e)}function M(a,b,c,d,e){a.setFloat64(b,d,e)}function N(a,b,c,d,e){d=d;e=e;c=b+c-1;for(b=b;b>>7,d>>>=7;a[c]=e}function O(a,b,c,d){c=b;b=d.length;for(var e=0;e>6,a[c++]=128|f&63;else if(f<55296||57344<=f)a[c++]=224|f>>12,a[c++]=128|f>>6&63,a[c++]=128|f&63;else if(55296<=f&&f<56320&&e+1!==b){var g=d.charCodeAt(e+1);if(56320<=g&&g<57344){e++;f=65536+((f&1023)<<10|g&1023);a[c++]=240|f>>18;a[c++]=128|f>>12&63;a[c++]=128|f>>6&63;a[c++]=128|f&63}else a[c++]=239,a[c++]=191,a[c++]=189}else a[c++]=239,a[c++]=191,a[c++]=189}}function P(a,b,c,e,f){c=d("WAHex").hexLongIsNegative(e);e=d("WAHex").hexLongToHex(e);var g=0,h=0;for(var i=0;i<16;i++)g=g<<4|h>>>28,h=h<<4|d("WAHex").hexAt(e,i);c&&(g=~g,h===0?g++:h=-h);a.setUint32(f?b+4:b,g,f);a.setUint32(f?b:b+4,h,f)}function Q(a,b,c,d){for(var e=0;e>>3):(c=1,a=b>>>7);while(a)c++,a>>>=7;return c}function S(a,b,d,e){if(typeof a!=="number"||a!==a||Math.floor(a)!==a||a=d)throw c("WAErr")(typeof a==="string"?'TyperError WriteError: string "'+a+'" is not a valid '+e:"TypeError WriteError: "+String(a)+" is not a valid "+e)}function T(a,b,d){var e=o(a,b,d),f;b>=0?f=b:f=a?b:4294967296+b;a=d>=0?d:4294967296+d;b=f*4294967296+a;if(!e)throw c("WAErr")("ReadError: integer exceeded 53 bits ("+b+")");return b}function U(a,b){return T(!0,a,b)}function V(a,b){return T(!1,a,b)}function W(a,b,c){if(b>=c)return 0;c=a[b]|0;return(c&192)===128?c:0}g.Binary=a;g.numUtf8Bytes=n;g.longFitsInDouble=o;g.parseInt64OrThrow=U;g.parseUint64OrThrow=V}),98); __d("WAHasProperty",[],(function(a,b,c,d,e,f){function a(a,b){return Object.prototype.hasOwnProperty.call(a,b)}f["default"]=a}),66); __d("WAProtoCompile",["WAProtoConst"],(function(a,b,c,d,e,f,g){var h=function(a,b,c,d,e,f,g,h,i){this.names=a,this.fields=b,this.types=c,this.defaults=d,this.meta=e,this.oneofToFields=f,this.fieldToOneof=g,this.reservedTags=h?h.reduce(function(a,b){a[b]=!0;return a},{}):{},this.reservedFields=i?i.reduce(function(a,b){a[b]=!0;return a},{}):{}};function a(a){if(a.internalCompiledSpec)return a.internalCompiledSpec;var b=a.internalSpec;if(!b)throw new Error("Message Class "+String(a)+" does not have internalSpec");var c=a.internalDefaults||{},e=Object.keys(b).filter(function(a){return a!==d("WAProtoConst").KEYS.ONEOF}),f=new Array(e.length),g=[],j=[],k=new Array(e.length),l=b[d("WAProtoConst").KEYS.ONEOF]||{};e.sort(function(a,c){a=i(b,a);c=i(b,c);return a[0]-c[0]});for(var m=0;m=c){d("WALogger").LOG(j(),s(a)).color("red");return{path:[],error:"value is out of range"}}else return!1}function r(a,b,c){if(a)return void 0;else{d("WALogger").LOG(i(),s(c),b).color("red");return{path:[],error:"value is invalid"}}}function s(a){if(typeof a==="string")return'"'+a+'"';else if(Array.isArray(a))return"["+a.join(", ")+"]";else return""+a}var t=[void 0,function(a){return q(a,-2147483648,2147483648)},function(a){return p(a,-m,m+1)},function(a){return q(a,0,4294967296)},function(a){return p(a,0,m+1)},function(a){return q(a,-2147483648,2147483648)},function(a){return p(a,-m,m+1)},function(a){return r(typeof a==="boolean","boolean",a)},function(a,b){return r(typeof a==="number"&&(b[a]||b.cast(a)!==void 0),"in enum",a)},function(a){return p(a,0,m+1)},function(a){return p(a,-m,m+1)},function(a){return r(typeof a==="number","number",a)},function(a){return r(typeof a==="string","string",a)},function(a){return r(a instanceof ArrayBuffer||a instanceof Uint8Array,"ArrayBuffer or Uint8Array",a)},u,function(a){return q(a,0,4294967296)},function(a){return q(a,-2147483648,2147483648)},function(a){return r(typeof a==="number","number",a)}];function u(a,b){b=d("WAProtoCompile").compileSpec(b);var c=b.names,e=b.fields,f=b.types,g=b.meta,i=b.oneofToFields,j=b.fieldToOneof,k=b.reservedTags,l=b.reservedFields,m=void 0;b=function(b){var n=c[b],o=f[b],p=a[n],q=o&d("WAProtoConst").TYPE_MASK,r=t[q];if(r===void 0)throw new Error("Can not find the validator for type "+q);if(o&(d("WAProtoConst").FLAGS.PACKED|d("WAProtoConst").FLAGS.REPEATED)&&p!=null)if(!Array.isArray(p))d("WALogger").LOG(h(),s(p)).color("red"),m={path:[n],error:"repeated field must be array"};else{q=g[b];for(o=0;o>>1):b>>>1;case d("WAProtoConst").TYPES.SINT64:return c.readVarInt(m);case d("WAProtoConst").TYPES.BOOL:return!!j(c,0,2,a,d("WABinary").parseUint64OrThrow);case d("WAProtoConst").TYPES.ENUM:return c.readVarInt(d("WABinary").parseInt64OrThrow);case d("WAProtoConst").TYPES.FIXED64:return c.readLong(l,!0);case d("WAProtoConst").TYPES.SFIXED64:return c.readLong(k,!0);case d("WAProtoConst").TYPES.DOUBLE:return c.readFloat64(!0);case d("WAProtoConst").TYPES.STRING:return c.readString(c.readVarInt(d("WABinary").parseUint64OrThrow));case d("WAProtoConst").TYPES.BYTES:return c.readBuffer(c.readVarInt(d("WABinary").parseUint64OrThrow));case d("WAProtoConst").TYPES.FIXED32:return c.readUint32(!0);case d("WAProtoConst").TYPES.SFIXED32:return c.readInt32(!0);case d("WAProtoConst").TYPES.FLOAT:return c.readFloat32(!0)}}function j(a,b,c,d,e){a=a.readVarInt(e);if(a=c)throw new Error("FormatError: "+d+" encoded with out-of-range value "+a);return a}function k(a,b){var c=d("WABinary").longFitsInDouble(!0,a,b);if(c){c=o(b);return a*4294967296+c}else{c=a<0;var e;c?e=b===0?-a:~a:e=a;a=c?-b:b;return d("WAHex").createHexLongFrom32Bits(e,a,c)}}function l(a,b){var c=d("WABinary").longFitsInDouble(!1,a,b);if(c){c=o(a);var e=o(b);return c*4294967296+e}else return d("WAHex").createHexLongFrom32Bits(a,b)}function m(a,b){var c=a>>>1;a=a<<31|b>>>1;b&1&&(c=~c,a=~a);return k(c,a)}function n(a,b,c,e){var f=d("WAProtoCompile").compileSpec(a),g=f.names,k=f.fields,l=f.types,m=f.meta,o=f.oneofToFields,p=f.fieldToOneof,q=f.reservedTags,r=f.reservedFields;f=a.internalDefaults;var s=c||babelHelpers["extends"]({},f)||{};s.$$unknownFieldCount=(a=c==null?void 0:c.$$unknownFieldCount)!=null?a:0;for(f=0;f0;a=k[0];while(b.size()){f=j(b,0,4294967296,"field and enc type",d("WABinary").parseInt64OrThrow);var u=f&7,v=f>>>3;if(c&&v!==a){f=t;do++t===k.length&&(t=0),a=k[t];while(v!==a&&t!==f)}if(c&&v===a)(function(){var a=g[t],c=l[t];h(u,c,a);var f=c&d("WAProtoConst").TYPE_MASK,j=m[t];if(c&d("WAProtoConst").FLAGS.PACKED){var k=b.readVarInt(d("WABinary").parseUint64OrThrow);k=b.readBinary(k);while(k.size()){var w=i(a,f,k);(f!==d("WAProtoConst").TYPES.ENUM||j[w]||(j.cast==null?void 0:j.cast(w))!==void 0)&&s[a].push(w)}}else if(f===d("WAProtoConst").TYPES.MESSAGE){w=b.readVarInt(d("WABinary").parseUint64OrThrow);k=b.readBinary(w);if(c&d("WAProtoConst").FLAGS.REPEATED)s[a].push(n(j,k,void 0,e));else{w=s[a];s[a]=n(j,k,w,e)}}else{k=i(a,f,b);(f!==d("WAProtoConst").TYPES.ENUM||j[k]||(j.cast==null?void 0:j.cast(k))!==void 0)&&(c&d("WAProtoConst").FLAGS.REPEATED?s[a].push(k):s[a]=k)}w=p[a];w&&typeof s[a]!=="undefined"&&w.forEach(function(b){b=o[b].filter(function(b){return b!==a});b.forEach(function(a){delete s[a]})});(q[v]||r[a])&&delete s[a]})();else{s.$$unknownFieldCount++;if(e){s.$$unsafeUnknownFields||(s.$$unsafeUnknownFields={});f=void 0;switch(u){case d("WAProtoConst").ENC.VARINT:f=b.readVarInt(d("WABinary").parseInt64OrThrow);break;case d("WAProtoConst").ENC.BIT64:f=b.readBinary(8);break;case d("WAProtoConst").ENC.BINARY:f=b.readBinary(b.readVarInt(d("WABinary").parseUint64OrThrow));break;case d("WAProtoConst").ENC.BIT32:f=b.readBinary(4);break}s.$$unsafeUnknownFields[v]=f}else u===d("WAProtoConst").ENC.VARINT?b.readVarInt(d("WABinary").parseInt64OrThrow):u===d("WAProtoConst").ENC.BIT64?b.advance(8):u===d("WAProtoConst").ENC.BINARY?b.advance(b.readVarInt(d("WABinary").parseUint64OrThrow)):u===d("WAProtoConst").ENC.BIT32&&b.advance(4)}}return s}function o(a){return a>=0?a:4294967296+a}g.decodeProtobuf=a;g.decodeProtobufWithUnknowns=b;g.getUnknownFields=e}),98); __d("MAWDbObjDecode",["MAWArmadilloAppDataTableSchema.pb","MAWArmadilloAppMetaTableSchema.pb","MAWArmadilloCollectionVersionsTableSchema.pb","MAWArmadilloContactsTableSchema.pb","MAWArmadilloDeviceChangeAlertsTableSchema.pb","MAWArmadilloDyiBatchTableSchema.pb","MAWArmadilloEditMsgHistoryTableSchema.pb","MAWArmadilloGroupInfoTableSchema.pb","MAWArmadilloGroupInvitesTableSchema.pb","MAWArmadilloMediaTablesSchema.pb","MAWArmadilloMessagesTableSchema.pb","MAWArmadilloMetaRowTableSchema.pb","MAWArmadilloMissingKeysTableSchema.pb","MAWArmadilloParticipantsTableSchema.pb","MAWArmadilloPendingMutationsTableSchema.pb","MAWArmadilloPersonalSenderKeyStatusTableSchema.pb","MAWArmadilloReactionsTableSchema.pb","MAWArmadilloReceiptTablesSchema.pb","MAWArmadilloRetroactiveBackupsStateTableSchema.pb","MAWArmadilloSignalTablesSchema.pb","MAWArmadilloSyncActionsTableSchema.pb","MAWArmadilloSyncKeysTableSchema.pb","MAWArmadilloTasksTableSchema.pb","MAWArmadilloThreadsTableSchema.pb","MAWArmadilloUnrenderedMessagesTableSchema.pb","MAWArmadilloXMATableSchema.pb","MAWMsgType","MAWXMACTAUtil","WAServerSync.pb","decodeProtobuf","err"],(function(a,b,c,d,e,f,g){var h={appData:function(a){return I(a)},appMeta:function(a){return J(a)},browserEncryptionMeta:function(a){throw c("err")("unexpected table for decryption")},chunk:function(a){return K(a)},collectionVersions:function(a){return T(a)},contacts:function(a){return D(a)},danglingQueue:function(a){throw c("err")("unexpected table for decryption")},deviceChangeAlerts:function(a){return i(a)},dualSendMedia:function(a){throw c("err")("unexpected table for decryption")},dyiBatch:function(a){return O(a)},ebRestoreQueue:function(a){throw c("err")("unexpected table for decryption")},ebUploadQueue:function(a){throw c("err")("unexpected table for decryption")},editMsgHistory:function(a){return W(a)},existingUsers:function(a){throw c("err")("unexpected table for decryption")},ftsBackloggedMessages:function(a){throw c("err")("unexpected table for decryption")},ftsEncryptionMeta:function(a){throw c("err")("unexpected table for decryption")},ftsIndexV3:function(a){throw c("err")("unexpected table for decryption")},groupInfo:function(a){return p(a)},groupInvites:function(a){return F(a)},historySyncQRCodeData:function(a){throw c("err")("unexpected table for decryption")},historySyncQRCodeSecretKey:function(a){throw c("err")("unexpected table for decryption")},identity:function(a){return s(a)},isDualSend:function(a){throw c("err")("unexpected table for decryption")},jobs:function(a){throw c("err")("unexpected table for decryption")},media:function(a){return M(a)},mediaBackup:function(a){return L(a)},messages:function(a){return m(a)},meta:function(a){return r(a)},missingKeys:function(a){return R(a)},participants:function(a){return E(a)},pendingMutations:function(a){return S(a)},pendingReceipts:function(a){return B(a)},pendingStanzas:function(a){throw c("err")("unexpected table for decryption")},personalSenderKeyStatuses:function(a){return H(a)},prekey:function(a){return t(a)},prekeyGeneration:function(a){return u(a)},reactions:function(a){return N(a)},receipts:function(a){return A(a)},retroactiveBackupsState:function(a){return P(a)},senderKeySessions:function(a){return x(a)},session:function(a){return v(a)},signedPrekey:function(a){return w(a)},staleQueue:function(a){throw c("err")("unexpected table for decryption")},stanzaQueue:function(a){throw c("err")("unexpected table for decryption")},syncActions:function(a){return Q(a)},syncKeys:function(a){return U(a)},tasks:function(a){return G(a)},threads:function(a){return C(a)},unrenderedMessages:function(a){return n(a)},uploadRetryStatus:function(a){throw c("err")("unexpected table for decryption")},xma:function(a){return V(a)}};function a(a,b){if(Object.prototype.hasOwnProperty.call(h,b))b=h[b](a);else throw c("err")("not a valid table name");return b}function i(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloDeviceChangeAlertsTableSchema.pb").DeviceChangeAlertsTableSchemaProtoSpec,a);return{action:a.action,deviceJid:a.deviceJid,identity:a.identity,isArchived:a.isArchived,latitude:a.latitude,location:a.location,loggedOut:a.loggedOut,longitude:a.longitude,model:a.model,platform:a.platform,ts:a.ts}}function j(a){a=a.quote;var b;if(a!=null){if(a.content==null)throw c("err")("QuotedMsgContent missing upon decoding");var d=a.content,e=d.author,f=d.externalId,g=d.mediaId,h=d.msgContent,i=d.msgId,j=d.sourceId,k=d.specialTextSize,l=d.ts,m=d.type;d=d.xmaMessageType;b={content:babelHelpers["extends"]({},a.content,{author:e,externalId:f,mediaId:g,msgContent:h,msgId:i,sourceId:j,specialTextSize:k,ts:l,type:m,xmaMessageType:d}),remoteJid:a.remoteJid}}return b}function k(a){if(a==null)return a;else return new Uint8Array(a)}function l(a){if(a==null||a.length===0)return new Set();else return new Set(a)}function m(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloMessagesTableSchema.pb").MessagesTableSchemaProtoSpec,a);var b=a.msgContent;if(a.type===d("MAWMsgType").MSG_TYPE.FUTUREPROOF){if(b==null)throw c("err")("MsgContent missing upon decoding futureproof message");b.subtype=b.subtype}var e=j(a),f=o(a.reportingMeta);return babelHelpers["extends"]({},a,{msgContent:b,quote:e,reportingMeta:f})}function n(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloUnrenderedMessagesTableSchema.pb").UnrenderedMessagesTableSchemaProtoSpec,a);var b=j(a),c=o(a.reportingMeta);return babelHelpers["extends"]({},a,{quote:b,reportingMeta:c})}function o(a){if(a==null)return;return{frankingKey:a.frankingKey!=null?new Uint8Array(a.frankingKey):a.frankingKey,frankingTag:a.frankingTag!=null?new Uint8Array(a.frankingTag):a.frankingTag,frankingVersion:a.frankingVersion,reportingContent:a.reportingContent,reportingTag:a.reportingTag!=null?new Uint8Array(a.reportingTag):a.reportingTag}}function p(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloGroupInfoTableSchema.pb").GroupInfoSchemaProtoSpec,a);return{creationTs:a.creationTs,creator:a.creator,inviter:a.inviter,msgExpiration:a.msgExpiration,name:a.name,nameOwner:a.nameOwner,nameTs:a.nameTs,participantVersion:a.participantVersion}}function q(a,b){var d;a=a;if(a==null)d=a;else{var e=a.privateKey;a=a.publicKey;if(e==null||a==null)throw c("err")("Decoding "+b+" private or public key missing");d={privateKey:new Uint8Array(e),publicKey:new Uint8Array(a)}}return d}function r(a){var b,c,e,f;a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloMetaRowTableSchema.pb").MetaRowTableSchemaProtoSpec,a);b=(b=a.value)==null?void 0:b.cat;if(b==null)b=b;else{var g;b={encrypted_serialized_cat:(g=a.value)==null?void 0:(g=g.cat)==null?void 0:g.encryptedSerializedCat,expiration_time_in_seconds:(g=a.value)==null?void 0:(g=g.cat)==null?void 0:g.expirationTimeInSeconds}}g=(g=a.value)==null?void 0:g.edgeInfo;g=k(g);c=q((c=a.value)==null?void 0:c.identityKeyPair,"identityKeyPair");e=q((e=a.value)==null?void 0:e.authKeyPair,"authKeyPair");return{value:{abProps:(f=a.value)==null?void 0:f.abProps,authKeyPair:e,cat:b,certificateChain:(f=a.value)==null?void 0:f.certificateChain,clockSkew:(e=a.value)==null?void 0:e.clockSkew,deviceId:(b=a.value)==null?void 0:b.deviceId,deviceUUID:(f=a.value)==null?void 0:f.deviceUUID,edgeInfo:g,fbid:(e=a.value)==null?void 0:e.fbid,identityKeyPair:c,lastPrekeyGenerationId:(b=a.value)==null?void 0:b.lastPrekeyGenerationId,lastPrekeyId:(f=a.value)==null?void 0:f.lastPrekeyId,lastSessionDeviceWasLinkedTo:(g=a.value)==null?void 0:g.lastSessionDeviceWasLinkedTo,lastSignedPrekeyId:(e=a.value)==null?void 0:e.lastSignedPrekeyId,regId:(c=a.value)==null?void 0:c.regId,registrationVersion:(b=a.value)==null?void 0:b.registrationVersion,restoreMigrationAttempts:(f=a.value)==null?void 0:f.restoreMigrationAttempts}}}function s(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloSignalTablesSchema.pb").IdentityTableSchemaProtoSpec,a);var b=a.identity,c=a.firstSeenTs;b=k(b);return{deviceName:a.deviceName,firstSeenTs:c,identity:b,platform:a.platform}}function t(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloSignalTablesSchema.pb").PrekeyTableSchemaProtoSpec,a);var b=a.encoded;b=k(b);return{encoded:b,isDeleted:a.isDeleted}}function u(a){return d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloSignalTablesSchema.pb").PrekeyGenerationTableSchemaProtoSpec,a)}function v(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloSignalTablesSchema.pb").SessionTableSchemaProtoSpec,a);a=a.session;a=k(a);return{session:a}}function w(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloSignalTablesSchema.pb").SignedPrekeyTableSchemaProtoSpec,a);a=a.encoded;a=k(a);return{encoded:a}}function x(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloSignalTablesSchema.pb").SenderKeySessionsTableSchemaProtoSpec,a);var b=a.record;b=k(b);return{deviceId:a.deviceId,record:b}}function y(a){if(a.length===0)return null;else return new Map(a.map(function(a){var b=a.deviceJid;if(b==null||a.serializedPubKey==null)throw c("err")("Expected deviceJid or serializedPubKey are missing ");var d=new Uint8Array(a.serializedPubKey);a=k(a.baseKey);a={baseKey:a,pubKey:d};return[b,a]}))}function z(a){if(a==null)return null;else return new Map(a.map(function(a){if(a.deviceJid==null)throw c("err")("Expected deviceJID is missing ");return[a.deviceJid,(a=a.count)!=null?a:0]}))}function A(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloReceiptTablesSchema.pb").ReceiptsTableSchemaProtoSpec,a);var b,e=a.statusTsPerUser;e==null?b=new Map():b=new Map(e.map(function(a){if(a.userJid==null||a.dbUserStatusTs==null)throw c("err")("Expected userJid or dbUserStatus are missing ");return[a.userJid,a.dbUserStatusTs]}));e=a.recipientDevices;e=l(e);return{permittedIdentitiesPerDevice:y(a.permittedIdentitiesPerDevice),recipientDevices:e,retryCountsPerDevice:z(a.retryCountsPerDevice),statusTsPerUser:b}}function B(a){return d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloReceiptTablesSchema.pb").PendingReceiptsTableSchemaProtoSpec,a)}function C(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloThreadsTableSchema.pb").ThreadsTableSchemaProtoSpec,a);return{archived:a.archived,cannotReplyReason:a.cannotReplyReason,didInsertDualThreadCutoverAdminMsg:a.didInsertDualThreadCutoverAdminMsg,folder:a.folder,isMigratedLocally:a.isMigratedLocally,lastReadMsg:a.lastReadMsg,lastReadMsgReceiptSent:a.lastReadMsgReceiptSent,lastReadMsgTs:a.lastReadMsgTs,muteCallsExpireTimeMs:a.muteCallsExpireTimeMs,muteExpireTimeMs:a.muteExpireTimeMs,newestMsg:a.newestMsg,newestMsgTs:a.newestMsgTs,nextInChatMsgId:a.nextInChatMsgId,oldestMsg:a.oldestMsg,optimisticThreadKey:a.optimisticThreadKey,snippetMsg:a.snippetMsg,snippetMsgTs:a.snippetMsgTs}}function D(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloContactsTableSchema.pb").ContactsTableSchemaProtoSpec,a);var b=a.icdcInfo,c;b!=null&&(c={devices:b.devices.map(function(a){return new Uint8Array(a)}),dirty:b.dirty,sequence:b.sequence,signingDeviceIndex:b.signingDeviceIndex,timestamp:b.timestamp});return{dhash:a.dhash,ephemeralSetting:a.ephemeralSetting,ephemeralSyncResponseBackoffInfo:a.ephemeralSyncResponseBackoffInfo,icdcFails:a.icdcFails,icdcInfo:c,isBlocked:a.isBlocked,isRestricted:a.isRestricted,lastSyncTs:a.lastSyncTs,nameForSearch:a.nameForSearch,relationship:a.relationship}}function E(a){return d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloParticipantsTableSchema.pb").ParticipantsTableSchemaProtoSpec,a)}function F(a){return d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloGroupInvitesTableSchema.pb").GroupInvitesTableSchemaProtoSpec,a)}function G(a){return d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloTasksTableSchema.pb").TasksTableSchemaProtoSpec,a)}function H(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloPersonalSenderKeyStatusTableSchema.pb").PersonalSenderKeyStatusTableSchemaProtoSpec,a);var b=a.hasSenderKey;b=l(b);return{hasSenderKey:b,rotateSenderKey:a.rotateSenderKey,senderKeyId:a.senderKeyId,senderKeyTs:a.senderKeyTs}}function I(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloAppDataTableSchema.pb").AppDataTableSchemaProtoSpec,a);return{ack:a.ack,contents:a.contents,permittedIdentitiesPerDevice:y(a.permittedIdentitiesPerDevice),recipientDevices:new Set(a.recipientDevices),sendPartial:a.sendPartial,ts:a.ts}}function J(a){return d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloAppMetaTableSchema.pb").AppMetaTableSchemaProtoSpec,a)}function K(a){return d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloMediaTablesSchema.pb").ChunkTableSchemaProtoSpec,a)}function L(a){return d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloMediaTablesSchema.pb").MediaBackupSchemaProtoSpec,a)}function M(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloMediaTablesSchema.pb").MediaTableSchemaProtoSpec,a);var b,e=a.mediaEntries;e==null?b=new Map():b=new Map(e.map(function(a){if(a.msgId==null||a.mediaEntryData==null)throw c("err")("Expected msgId or mediaEntryData are missing ");return[a.msgId,new Uint8Array(a.mediaEntryData)]}));return{mediaEntries:b,mediaType:a.mediaType,plaintextHash:a.plaintextHash,size:a.size,ts:a.ts,validatedAudioInfo:a.validatedAudioInfo,validatedDocumentFileInfo:a.validatedDocumentFileInfo,validatedImageInfo:a.validatedImageInfo,validatedVideoInfo:a.validatedVideoInfo}}function N(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloReactionsTableSchema.pb").ReactionsTableSchemaProtoSpec,a);return{ack:a.ack,author:a.author,groupingKey:a.groupingKey,reaction:a.reaction,reactToAuthor:a.reactToAuthor,ts:a.ts}}function O(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloDyiBatchTableSchema.pb").DyiBatchTableSchemaProtoSpec,a);return{isThread:a.isThread,numMessages:a.numMessages,numMessagesRestored:a.numMessagesRestored,numThreadsRestored:a.numThreadsRestored,oldestTs:a.oldestTs,qplFlowDescriptor:a.qplFlowDescriptor,qplInstanceKeyE2E:a.qplInstanceKeyE2E,qplInstanceKeyForThread:a.qplInstanceKeyForThread,threadId:a.threadId}}function P(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloRetroactiveBackupsStateTableSchema.pb").RetroactiveBackupsStateTableSchemaProtoSpec,a);return{msgId:a.msgId}}function Q(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloSyncActionsTableSchema.pb").SyncActionsTableSchemaProtoSpec,a);return{binarySyncData:a.binarySyncData,keyId:a.keyId,timestamp:a.timestamp,valueMac:a.valueMac,version:a.version}}function R(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloMissingKeysTableSchema.pb").MissingKeysTableSchemaProtoSpec,a);var b;a.deviceResponses==null?b=new Map():b=new Map(a.deviceResponses.map(function(a){if(a.deviceId==null)throw c("err")("Expected deviceId is missing");else return[a.deviceId,a.deviceResponse]}));return{deviceResponses:b,keyId:a.keyId,timestamp:a.timestamp}}function S(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloPendingMutationsTableSchema.pb").PendingMutationsTableSchemaProtoSpec,a);var b;switch(a.operation){case d("MAWArmadilloPendingMutationsTableSchema.pb").SYNCD_MUTATION_SYNCD_OPERATION.SET:b=d("WAServerSync.pb").SyncdMutation$SyncdOperation.SET;break;case d("MAWArmadilloPendingMutationsTableSchema.pb").SYNCD_MUTATION_SYNCD_OPERATION.REMOVE:b=d("WAServerSync.pb").SyncdMutation$SyncdOperation.REMOVE;break;default:throw c("err")("operation missing when decoding PendingMutation")}return{binarySyncAction:a.binarySyncAction,operation:b,timestamp:a.timestamp,version:a.version}}function T(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloCollectionVersionsTableSchema.pb").CollectionVersionsTableSchemaProtoSpec,a);return{finiteFailureStartTime:a.finiteFailureStartTime,isCollectionInMacMismatchFatal:a.isCollectionInMacMismatchFatal,ltHash:a.ltHash,state:a.state,version:a.version}}function U(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloSyncKeysTableSchema.pb").SyncKeysTableSchemaProtoSpec,a);return{fingerprint:a.fingerprint,keyData:a.keyData,timestamp:a.timestamp}}function V(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloXMATableSchema.pb").XMATableSchemaProtoSpec,a);return{author:a.author,ctas:a.ctas.map(function(a){return d("MAWXMACTAUtil").fromMAWCTAEncode(a)}),defaultCTA:a.defaultCTA==null?a.defaultCTA:d("MAWXMACTAUtil").fromMAWCTAEncode(a.defaultCTA),headerTitle:a.headerTitle,isTombstoned:a.isTombstoned,maxSubtitleNumOfLines:a.maxSubtitleNumOfLines,maxTitleNumOfLines:a.maxTitleNumOfLines,msgId:a.msgId,overlayDescription:a.overlayDescription,overlayIconGlyph:a.overlayIconGlyph,overlayTitle:a.overlayTitle,previewMediaIds:a.previewMediaIds,subtitleText:a.subtitleText,targetId:a.targetId,targetType:a.targetType,targetUsername:a.targetUsername,threadJid:a.threadJid,titleText:a.titleText,xmaLayoutType:a.xmaLayoutType}}function W(a){a=d("decodeProtobuf").decodeProtobuf(d("MAWArmadilloEditMsgHistoryTableSchema.pb").EditMsgHistoryTableSchemaProtoSpec,a);return{author:a.author,editExternalId:a.editExternalId,editTs:a.editTs,msgContent:a.msgContent,specialTextSize:a.specialTextSize}}g.decodeDbObj=a}),98); __d("WASyncdConst",["$InternalEnum","WATimeUtils"],(function(a,b,c,d,e,f,g){a=1e3;c=1e3*60*60;e=2;f=d("WATimeUtils").DAY_MILLISECONDS*2;d=100;var h=2e3,i=10,j=100,k=0,l=3,m=7,n=(b=b("$InternalEnum"))({Star:"star",Contact:"contact",Mute:"mute",PinDEPRECATED:"pin",Pin:"pin_v1",SettingPushName:"setting_pushName",LabelEdit:"label_edit",LabelMessage:"label_message",LabelJid:"label_jid",QuickReply:"quick_reply",LocaleSetting:"setting_locale",Archive:"archive",MarkChatAsRead:"markChatAsRead",ClearChat:"clearChat",DeleteMessageForMe:"deleteMessageForMe",Sentinel:"sentinel",UnarchiveChatsSetting:"setting_unarchiveChats",DeleteChat:"deleteChat",AndroidUnsupportedActions:"android_unsupported_actions",PrimaryFeature:"primary_feature",Subscription:"subscription",Nux:"nux",Agent:"deviceAgent",TimeFormat:"time_format",UserStatusMute:"userStatusMute",PrimaryVersion:"primary_version",RemoveRecentSticker:"removeRecentSticker",ChatAssignment:"agentChatAssignment",ChatAssignmentOpenedStatus:"agentChatAssignmentOpenedStatus",FavoriteSticker:"favoriteSticker",PnForLidChat:"pnForLidChat",ShareOwnPn:"shareOwnPn",ExternalWebBeta:"external_web_beta",MarketingMessage:"marketingMessage",MarketingMessageBroadcast:"marketingMessageBroadcast",StatusPrivacy:"status_privacy",BotWelcomeRequest:"bot_welcome_request",LabelReordering:"label_reordering",PaymentInfo:"payment_info",CustomPaymentMethods:"custom_payment_methods"}),o=b({Regular:"regular",RegularLow:"regular_low",RegularHigh:"regular_high",CriticalBlock:"critical_block",CriticalUnblockLow:"critical_unblock_low"}),p=b.Mirrored(["Success","SuccessHasMore","Conflict","ConflictHasMore","ErrorRetry","ErrorFatal","Blocked"]),q=b.Mirrored(["UpToDate","Dirty","FailingFiniteRetry","Fatal","Blocked"]),r=b.Mirrored(["Success","Malformed","Orphan","Unsupported","Skipped","Failed"]),s=b.Mirrored(["Msg","Chat","Agent","ChatAssignment","UserStatusMute"]),t=b.Mirrored(["ApplyRemoteAndDropLocal","SkipRemote","SkipRemoteAndDropLocal"]);b=b.Mirrored(["Patch","Snapshot","Local"]);g.BACKOFF_MIN_TIMEOUT=a;g.BACKOFF_MAX_TIMEOUT=c;g.BACKOFF_BASE=e;g.FINITE_FAILURE_EXPIRY_DURATION=f;g.MIN_INLINE_MUTATIONS=d;g.MAX_INLINE_MUTATIONS=h;g.MIN_PATCH_SIZE=i;g.MAX_PATCH_SIZE=j;g.DEFAULT_COLLECTION_VERSION=k;g.LABEL_ASSOCIATION_SYNC_VERSION=l;g.CHAT_ASSIGNMENT_SYNC_VERSION=m;g.Actions=n;g.CollectionName=o;g.CollectionState=p;g.CollectionSyncState=q;g.SyncActionState=r;g.SyncModelType=s;g.ConflictResolutionState=t;g.SyncDataType=b}),98); __d("WASyncdKeyTypes",[],(function(a,b,c,d,e,f){function a(a){return a}function b(a){return a}function c(a){return a}function d(a){return a}f.toSyncKeyId=a;f.fromSyncKeyId=b;f.toSyncKeyData=c;f.fromSyncKeyData=d}),66); __d("encodeProtobuf",["WABinary","WAHex","WAProtoCompile","WAProtoConst","WAProtoUtils","WAProtoValidate"],(function(a,b,c,d,e,f,g){var h=void 0,i=128;function a(a,b,c){c===void 0&&(c=new(d("WABinary").Binary)());d("WAProtoValidate").checkValid(a,b);o(c,b,a);h=void 0;return c}function b(){return h!==void 0?"Last encoded value for "+h:"No information known"}function c(a,b){a.writeVarInt(b)}function e(a,b){if(typeof b==="number"&&b<4503599627370496&&b>=-4503599627370496)a.writeVarInt(b>=0?2*b:2*-b-1);else{var c=new(d("WABinary").Binary)(),e;typeof b==="number"?(e=b<0,c.writeVarInt(e?-b:b)):(e=d("WAHex").hexLongIsNegative(b),c.writeVarIntFromHexLong(e?d("WAHex").negateHexLong(b):b));b=c.peek(function(){return c.readByteArray()});var f=b.byteLength;if(e){var g=0,h;do h=b[g],b[g]=h&i|(h&127)-1&127,g++;while(b[g-1]===255)}h=e?1:0;for(g=0;g>6;b[g]=j}h===1&&(b[f-1]|=i,c.writeInt8(1));a.writeBinary(c)}}function f(a,b){typeof b==="number"?a.writeVarInt(b):a.writeVarIntFromHexLong(b)}function j(a,b){a.writeVarInt(d("WABinary").numUtf8Bytes(b)),a.writeString(b)}function k(a,b){a.writeVarInt(b.byteLength),a.writeBuffer(b)}function l(a,b,c){a.writeWithVarIntLength(function(a,b){return o(a,b,c)},b)}var m=[void 0,c,f,c,f,e,e,function(a,b){a.writeVarInt(b?1:0)},c,function(a,b){typeof b==="number"?a.writeUint64(b,!0):a.writeHexLong(b,!0)},function(a,b){typeof b==="number"?a.writeInt64(b,!0):a.writeHexLong(b,!0)},function(a,b){a.writeFloat64(b,!0)},j,k,l,function(a,b){a.writeUint32(b,!0)},function(a,b){a.writeInt32(b,!0)},function(a,b){a.writeFloat32(b,!0)}];f=function(a){if(a==null)return void 0;var b=a;function c(a,c){for(var d=0;d0){a.writeVarInt(k);var r=n[p];r(a,l,q)}}else if(o&d("WAProtoConst").FLAGS.REPEATED)for(r=0;r=f.length)break;i=f[h++]}else{h=f.next();if(h.done)break;i=h.value}i=i;i.chatAction?e.push({chatAction:i.chatAction}):i.messageAction&&e.push({messageAction:i.messageAction})}b={actions:e,type:"meta_sync"};break;case"backups_secrets":b={encryptedBackupsSecrets:a.contents.encryptedBackupsSecrets,type:"backups_secrets"};break;case"sync_key_share":b={syncKeyShare:{keys:a.contents.syncKeyShare.keys,orphanKeys:(i=a.contents.syncKeyShare)==null?void 0:(h=i.orphanKeys)==null?void 0:h.map(d("WASyncdKeyTypes").fromSyncKeyId)},type:"sync_key_share"};break;case"sync_key_request":b={syncKeyRequest:{keyIds:a.contents.syncKeyRequest.keyIds.map(d("WASyncdKeyTypes").fromSyncKeyId)},type:"sync_key_request"};break;default:a.contents.type;throw c("err")("Unknown appdata type: "+a.contents.type)}g={ack:a.ack,contents:b,permittedIdentitiesPerDevice:r(a.permittedIdentitiesPerDevice),recipientDevices:Array.from(a.recipientDevices),sendPartial:a.sendPartial,ts:a.ts};return{encodedFields:g,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloAppDataTableSchema.pb").AppDataTableSchemaProtoSpec,g).readByteArray()}}function C(a){a={value:a.value};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloAppMetaTableSchema.pb").AppMetaTableSchemaProtoSpec,a).readByteArray()}}function D(a){a={blobData:a.blobData,mimetype:a.mimetype,plaintextHash:a.plaintextHash};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloMediaTablesSchema.pb").ChunkTableSchemaProtoSpec,a).readByteArray()}}function E(a){a={fbid:a.fbid};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloMediaTablesSchema.pb").MediaBackupSchemaProtoSpec,a).readByteArray()}}function F(a){var b=Array.from(a.mediaEntries,function(a){var b=a[0];a=a[1];return{mediaEntryData:a,msgId:b}});b={mediaEntries:b,mediaType:a.mediaType,plaintextHash:a.plaintextHash,size:a.size,ts:a.ts,validatedAudioInfo:a.validatedAudioInfo,validatedDocumentFileInfo:a.validatedDocumentFileInfo,validatedImageInfo:a.validatedImageInfo,validatedVideoInfo:a.validatedVideoInfo};return{encodedFields:b,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloMediaTablesSchema.pb").MediaTableSchemaProtoSpec,b).readByteArray()}}function G(a){a={ack:a.ack,author:a.author,groupingKey:a.groupingKey,reaction:a.reaction,reactToAuthor:a.reactToAuthor,ts:a.ts};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloReactionsTableSchema.pb").ReactionsTableSchemaProtoSpec,a).readByteArray()}}function H(a){a={isThread:a.isThread,numMessages:a.numMessages,numMessagesRestored:a.numMessagesRestored,numThreadsRestored:a.numThreadsRestored,oldestTs:a.oldestTs,qplFlowDescriptor:a.qplFlowDescriptor,qplInstanceKeyE2E:a.qplInstanceKeyE2E,qplInstanceKeyForThread:a.qplInstanceKeyForThread,threadId:a.threadId};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloDyiBatchTableSchema.pb").DyiBatchTableSchemaProtoSpec,a).readByteArray()}}function I(a){a={msgId:a.msgId};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloRetroactiveBackupsStateTableSchema.pb").RetroactiveBackupsStateTableSchemaProtoSpec,a).readByteArray()}}function J(a){a={binarySyncData:a.binarySyncData,keyId:d("WASyncdKeyTypes").fromSyncKeyId(a.keyId),timestamp:a.timestamp,valueMac:a.valueMac,version:a.version};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloSyncActionsTableSchema.pb").SyncActionsTableSchemaProtoSpec,a).readByteArray()}}function K(a){return Array.from(a,function(a){var b=a[0];a=a[1];return{deviceId:b,deviceResponse:a}})}function L(a){a={deviceResponses:K(a.deviceResponses),keyId:d("WASyncdKeyTypes").fromSyncKeyId(a.keyId),timestamp:a.timestamp};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloMissingKeysTableSchema.pb").MissingKeysTableSchemaProtoSpec,a).readByteArray()}}function M(a){switch(a){case d("WAServerSync.pb").SyncdMutation$SyncdOperation.SET:return d("MAWArmadilloPendingMutationsTableSchema.pb").SYNCD_MUTATION_SYNCD_OPERATION.SET;case d("WAServerSync.pb").SyncdMutation$SyncdOperation.REMOVE:return d("MAWArmadilloPendingMutationsTableSchema.pb").SYNCD_MUTATION_SYNCD_OPERATION.REMOVE}}function N(a){a={binarySyncAction:a.binarySyncAction,operation:M(a.operation),timestamp:a.timestamp,version:a.version};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloPendingMutationsTableSchema.pb").PendingMutationsTableSchemaProtoSpec,a).readByteArray()}}function O(a){switch(a){case d("WASyncdConst").CollectionSyncState.UpToDate:return"UpToDate";case d("WASyncdConst").CollectionSyncState.Dirty:return"Dirty";case d("WASyncdConst").CollectionSyncState.FailingFiniteRetry:return"FailingFiniteRetry";case d("WASyncdConst").CollectionSyncState.Fatal:return"Fatal";case d("WASyncdConst").CollectionSyncState.Blocked:return"Blocked"}}function P(a){a={finiteFailureStartTime:a.finiteFailureStartTime,isCollectionInMacMismatchFatal:a.isCollectionInMacMismatchFatal,ltHash:a.ltHash,state:O(a.state),version:a.version};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloCollectionVersionsTableSchema.pb").CollectionVersionsTableSchemaProtoSpec,a).readByteArray()}}function Q(a){a={fingerprint:a.fingerprint,keyData:d("WASyncdKeyTypes").fromSyncKeyData(a.keyData),timestamp:a.timestamp};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloSyncKeysTableSchema.pb").SyncKeysTableSchemaProtoSpec,a).readByteArray()}}function R(a){var b=a.ctas==null?[]:a.ctas.map(function(a){return d("MAWXMACTAUtil").toMAWCTAEncode(a)});b={author:a.author,ctas:b,defaultCTA:a.defaultCTA==null?a.defaultCTA:d("MAWXMACTAUtil").toMAWCTAEncode(a.defaultCTA),headerTitle:a.headerTitle,isTombstoned:a.isTombstoned,maxSubtitleNumOfLines:a.maxSubtitleNumOfLines,maxTitleNumOfLines:a.maxTitleNumOfLines,msgId:a.msgId,overlayDescription:a.overlayDescription,overlayIconGlyph:a.overlayIconGlyph,overlayTitle:a.overlayTitle,previewMediaIds:a.previewMediaIds,subtitleText:a.subtitleText,targetId:a.targetId,targetType:a.targetType,targetUsername:a.targetUsername,threadJid:a.threadJid,titleText:a.titleText,xmaLayoutType:a.xmaLayoutType};return{encodedFields:b,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloXMATableSchema.pb").XMATableSchemaProtoSpec,b).readByteArray()}}function S(a){a={author:a.author,editExternalId:a.editExternalId,editTs:a.editTs,msgContent:a.msgContent,specialTextSize:a.specialTextSize};return{encodedFields:a,proto:d("encodeProtobuf").encodeProtobuf(d("MAWArmadilloEditMsgHistoryTableSchema.pb").EditMsgHistoryTableSchemaProtoSpec,a).readByteArray()}}g.encodeDbObj=e}),98); __d("MAWDbObjEncryption",["MAWBridge","MAWCryptoConsts","MAWDbObjDecode","MAWDbObjEncode","MAWIndexedDb","MAWKeychainCrypto","MAWKeychainNaClCrypto","MAWKeychainUtil","MAWQplProxy","MWEARKeychainV3Errors","err","gkx","isEncryptionAtRestEnabled","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h=1/1e3,i="_encryptedContent";function a(a,b,e){if(!(c("isEncryptionAtRestEnabled")()||c("gkx")("9017")===!0)||!d("MAWIndexedDb").TABLES_TO_ENCRYPT.includes(b))return a;var f=Math.random()b;a=typeof a==="number"?d("WAHex").hexLongFromNumber(a):a;b=typeof b==="number"?d("WAHex").hexLongFromNumber(b):b;return d("WAHex").isBiggerHexLong(a,b)}function b(a){if(typeof a==="number")return a.toString(10);var b=d("WAHex").hexLongToHex(a),c=[0],e=0;for(var f=0;f0)c.push(e%10),e=e/10|0}g=c.reverse().join("");return d("WAHex").hexLongIsNegative(a)?"-"+g:g}function c(a){if(!/^-?\d+$/.test(a)){d("WALogger").LOG(i(),a).color("red");throw new Error("decimalStringToLongInt is given an invalid decimal string")}var b=a[0]==="-",c=a.replace(/^-?0*/,""),e=c.length;if(e<16||e===16&&c<="9007199254740991")return b?-Number(c):Number(c);if(e>20||e===20&&c>"18446744073709551615"||b&&(e>19||e===19&&c>"9223372036854775807")){d("WALogger").LOG(h(),a).color("red");throw new Error("decimalStringToHexLong is given value over 64 bits")}a=0;var f=0;for(var g=0;g=d("WAProgressiveJpegMarkers").MARKERS.RST0&&a<=d("WAProgressiveJpegMarkers").MARKERS.RST7?!1:a!==d("WAProgressiveJpegMarkers").MARKERS.EOI&&a!==d("WAProgressiveJpegMarkers").MARKERS.SOI}g.getProgressiveJpegScanOffsets=a}),98); __d("WAProgressiveJpegGetScanLengths",["WAProgressiveJpegGetScanOffsets"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=d("WAProgressiveJpegGetScanOffsets").getProgressiveJpegScanOffsets(a);return h(a)}function b(a){return a}function h(a){var b=[],c=0;for(var d=0;d=0;a--)c[a]=b&255,b>>>=8;return c}function b(a){return a.buffer.slice(a.byteOffset,a.byteLength+a.byteOffset)}function c(a,b){if(!a||!b)return!1;a=new Uint8Array(a);b=new Uint8Array(b);var c=a.length,d=b.length;if(c!==d)return!1;for(d=0;d=d.length)break;j=d[i++]}else{i=d.next();if(i.done)break;j=i.value}j=j;var k="",l="";j=j.split(" ");for(var j=j,m=Array.isArray(j),n=0,j=m?j:j[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var o;if(m){if(n>=j.length)break;o=j[n++]}else{n=j.next();if(n.done)break;o=n.value}o=o;l+=o;var p=a.measureText(l).width,q=a.measureText(o).width;if(q>e){k.length>0&&(a.fillText(k,h,c+f*g),g++);q="";var r="";for(var s=o,t=Array.isArray(s),u=0,s=t?s:s[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var v;if(t){if(u>=s.length)break;v=s[u++]}else{u=s.next();if(u.done)break;v=u.value}v=v;r+=v;var w=a.measureText(r).width;w>e?(a.fillText(q,h,c+f*g),q=v,r=v,g++):q=r}k=q+" ";l=q+" "}else p>e?(a.fillText(k,h,c+f*g),k=o+" ",l=o+" ",g++):(l+=" ",k=l)}a.fillText(k,h,c+f*g);g++}return a};return a}();e.exports=a}),null); __d("CanvasToBlobImpl",["BlobFactory"],(function(a,b,c,d,e,f){function a(a,c){a=atob(a.substr(a.indexOf(",")+1));var d=new Uint8Array(a.length);for(var e=0;ef?d=e*f:gx.getURL().length)&&(x=b);G()},F=function(){if(a.readyState>=c("HTMLMediaElementReadyStates").HAVE_CURRENT_DATA)E();else if(b("cr:909281")!==null)var d=b("cr:909281").listen(a,"loadeddata",function(){d.remove(),E()});else a.addEventListener("loadeddata",E,{once:!0})},G=function(){u===0&&(b("cr:909281")!==null?y=b("cr:909281").listen(a,"seeked",F):a.addEventListener("seeked",F)),u0&&u[0]||void 0;a=e||x;e=j(function(a){var b=z!=null&&n!==!0&&z===a;v(a,b);return g()},[z,n,v,g]);x=j(function(a){a||y(!1),s(a),w.setFocused(a)},[w,s]);return i.jsx(c("MWXLazyPopoverTrigger.react"),{align:b==="end_"?"end":b,fallback:i.jsx(c("MWXPopoverLoadingState.react"),{withArrow:!1,xstyle:m.popoverLoading}),onVisibilityChange:x,popoverProps:{closeActionsMenu:g,disableCustomReactions:h,isBroadcastChannel:o,isBroadcastThread:p,isSecure:q,messageID:r,onClose:c("emptyFunction"),onSelect:e,selectedReactions:u,setShowEmojiPicker:y,showEmojiPicker:a},popoverResource:t,popoverType:a?"dialog":"menu",position:a?"below":"above",children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWMessageReactionIcon.react",["fbt","MWChatColors","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var b=a.size;b=b===void 0?16:b;a=a.viewBox;a=a===void 0?"0 0 16 16":a;return k.jsxs("svg",{fill:"none",height:b,viewBox:a,width:b,xmlns:"http://www.w3.org/2000/svg",children:[k.jsx("title",{children:h._("__JHASH__Wo2O5nlXhKT__JHASH__")}),k.jsx("path",{className:(i||(i=c("stylex")))(d("MWChatColors").MessageActions.styles.svgFill),d:"M12.48 0.64C12.48 0.286538 12.7665 0 13.12 0C13.4735 0 13.76 0.286538 13.76 0.64V2.08C13.76 2.16837 13.8316 2.24 13.92 2.24H15.36C15.7135 2.24 16 2.52654 16 2.88C16 3.23346 15.7135 3.52 15.36 3.52H13.92C13.8316 3.52 13.76 3.59163 13.76 3.68V5.12C13.76 5.47346 13.4735 5.76 13.12 5.76C12.7665 5.76 12.48 5.47346 12.48 5.12V3.68C12.48 3.59163 12.4084 3.52 12.32 3.52H10.88C10.5265 3.52 10.24 3.23346 10.24 2.88C10.24 2.52654 10.5265 2.24 10.88 2.24H12.32C12.4084 2.24 12.48 2.16837 12.48 2.08V0.64Z"}),k.jsx("path",{className:i(d("MWChatColors").MessageActions.styles.svgFill),clipRule:"evenodd",d:"M8.96 2.42705C8.96 2.28386 8.86505 2.15735 8.726 2.12317C8.18582 1.99041 7.62113 1.92 7.04 1.92C3.15192 1.92 0 5.07192 0 8.96C0 12.8481 3.15192 16 7.04 16C10.9281 16 14.08 12.8481 14.08 8.96C14.08 8.37887 14.0096 7.81418 13.8768 7.274C13.8427 7.13495 13.7161 7.04 13.573 7.04H13.12C12.0596 7.04 11.2 6.18039 11.2 5.12C11.2 4.94327 11.0567 4.8 10.88 4.8C9.81961 4.8 8.96 3.94039 8.96 2.88V2.42705ZM4.63999 6.4C4.03999 6.4 3.67999 6.88 3.67999 7.68C3.67999 8.48 4.03999 8.96 4.63999 8.96C5.23999 8.96 5.59999 8.48 5.59999 7.68C5.59999 6.88 5.23999 6.4 4.63999 6.4ZM9.43999 6.4C8.83999 6.4 8.47999 6.88 8.47999 7.68C8.47999 8.48 8.83999 8.96 9.43999 8.96C10.04 8.96 10.4 8.48 10.4 7.68C10.4 6.88 10.04 6.4 9.43999 6.4ZM10.56 11.2C10.56 12.48 8.96 13.76 7.04 13.76C5.12 13.76 3.52 12.48 3.52 11.2C3.52 11.0233 3.66327 10.88 3.84 10.88H10.24C10.4167 10.88 10.56 11.0233 10.56 11.2Z",fillRule:"evenodd"})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2MessageRowActionsContext.react",["emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));e=h;d=e.createContext;var j=e.useContext;e={current:c("emptyFunction")};var k={current:c("emptyFunction")},l={current:c("emptyFunction")};c={current:c("emptyFunction")};e={forwardMessage:e,openReactionsMenu:k,removeMessage:l,replyToMessage:c};var m=d(e);function a(){return j(m)}function b(a){var b=a.children;a=a.value;return i.jsx(m.Provider,{value:a,children:b})}b.displayName=b.name+" [from "+f.id+"]";g.useMessageRowActionsContext=a;g.MWV2MessageRowActionsContextProvider=b}),98); __d("MWChatReactionsAction.react",["fbt","MWChatColors","MWChatMessageId","MWChatReactionsActionContainer.react","MWMessageReactionIcon.react","MWV2MessageRowActionsContext.react","MWXPressable.react","MWXTooltip.react","ODS","emptyFunction","react","stylex","useIsMultiReactionEnabled"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));b=k;var m=b.useCallback,n=b.useEffect,o=l.jsxs("svg",{height:"22px",viewBox:"0 0 22 22",width:"22px",children:[l.jsx("circle",{className:(i||(i=c("stylex")))(d("MWChatColors").MessageActions.styles.svgStroke),cx:"11",cy:"11",r:"7",strokeWidth:"1.5px"}),l.jsx("path",{className:i(d("MWChatColors").MessageActions.styles.svgStroke),d:"M8,13Q11,16,14,13",strokeWidth:"1.5px"}),l.jsx("circle",{className:i(d("MWChatColors").MessageActions.styles.svgFill),cx:"9",cy:"10",r:"1.2"}),l.jsx("circle",{className:i(d("MWChatColors").MessageActions.styles.svgFill),cx:"13",cy:"10",r:"1.2"})]});function a(a){var b=h._("__JHASH__czR8vxcW0mN__JHASH__"),e=d("MWV2MessageRowActionsContext.react").useMessageRowActionsContext(),f=e.openReactionsMenu,g=m(function(){f.current=c("emptyFunction");return},[f]);n(function(){return g},[g]);e=a.messageID;e=d("MWChatMessageId").getThreadId(e);var k=d("useIsMultiReactionEnabled").useIsMultiReactEnabled(e);return l.jsx(c("MWChatReactionsActionContainer.react"),babelHelpers["extends"]({},a,{children:function(a,e,g,h,m,n){g=function(){e(),(j||(j=d("ODS"))).bumpEntityKey(3185,"mwchat_actions","reaction")};f.current=g;return l.jsx(c("MWXTooltip.react"),{align:"middle",position:"above",tooltip:b,children:l.jsx(c("MWXPressable.react"),{"aria-label":b,expanding:!0,onHoverIn:h,onHoverOut:m,onPress:g,onPressIn:n,overlayDisabled:!0,ref:a,role:"button",testid:void 0,children:l.jsx("div",{className:(i||(i=c("stylex")))(d("MWChatColors").MessageActions.styles.action),children:l.jsx("div",{className:i(d("MWChatColors").MessageActions.styles.icon),children:k?l.jsx(c("MWMessageReactionIcon.react"),{size:22,viewBox:"-4 -2 22 22"}):o})})})})}}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSDeleteReaction",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[];return b.sequence([function(c){return b.forEach(b.filter(b.db.table(8).fetch([[[a[0],a[1],a[2]]]]),function(c){return b.i64.eq(c.threadKey,a[0])&&c.messageId===a[1]&&b.i64.eq(c.actorId,a[2])&&b.i64.eq(b.i64.cast([0,0]),b.i64.cast([0,0]))}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSOptimisticUpsertReaction",["LSCancelTaskByQueueName","LSDeleteReaction","LSIssueNewTask","LSUpsertReaction"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=c.i64.cast([0,1]):(b=a.item,d[19]=b.syncGroup,c.i64.neq(d[19],void 0)?d[18]=d[19]:d[18]=c.i64.cast([0,1]),d[0]=d[18])})},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("timestamp_ms",a[1]),d[2].set("message_id",a[2]),d[2].set("actor_id",a[3]),d[2].set("reaction",a[4]),d[2].set("reaction_style",void 0),d[2].set("sync_group",d[0]),d[3]=c.createArray(),d[4]=(d[3].push("reaction"),d[3]),d[5]=d[2].get("message_id"),d[2],d[6]=(d[3].push(d[5]),d[3]),d[7]=c.toJSON(d[3]),c.storedProcedure(b("LSCancelTaskByQueueName"),d[7],c.i64.cast([0,29]))},function(e){return a[4]===""?c.sequence([function(d){return c.storedProcedure(b("LSDeleteReaction"),a[0],a[2],a[3])},function(a){return d[8]=void 0}]):c.sequence([function(e){return a[4]==="\u2764\ufe0f"||a[4]==="\u2764\ufe0f"?d[18]="\u2764":d[18]=a[4],c.storedProcedure(b("LSUpsertReaction"),a[0],a[1],a[2],a[3],d[18],c.i64.cast([0,20]),void 0)},function(a){return d[8]=void 0}])},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[9]=c.i64.cast([0,1]):(b=a.item,d[19]=b.syncGroup,c.i64.neq(d[19],void 0)?d[18]=d[19]:d[18]=c.i64.cast([0,1]),d[9]=d[18])})},function(e){return d[11]=new c.Map(),d[11].set("thread_key",a[0]),d[11].set("timestamp_ms",a[1]),d[11].set("message_id",a[2]),d[11].set("actor_id",a[3]),d[11].set("reaction",a[4]),d[11].set("reaction_style",void 0),d[11].set("sync_group",d[9]),d[11].set("send_attribution",a[5]),d[12]=c.createArray(),d[13]=(d[12].push("reaction"),d[12]),d[14]=d[11].get("message_id"),d[11],d[15]=(d[12].push(d[14]),d[12]),d[16]=c.toJSON(d[12]),d[17]=c.toJSON(d[11]),c.storedProcedure(b("LSIssueNewTask"),d[16],c.i64.cast([0,29]),d[17],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticUpsertReactionStoredProcedure",["LSOptimisticUpsertReaction"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;d[1]=b.timestampMs;d[2]=b.messageId;d[3]=b.actorId;d[4]=b.reaction;d[5]=b.sendAttribution;return c("LSOptimisticUpsertReaction").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("LSOptimisticUpsertReactionV2",["LSCancelTaskByQueueName","LSDeleteReaction","LSIssueNewTaskWithExtraOperations","LSUpdateOrInsertReactionV2","LSUpsertReaction"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(e){return c.i64.eq(a[8],c.i64.cast([0,2]))?(d[12]=new c.Map(),d[12].set("thread_id",a[1]),d[12].set("message_id",a[2]),d[12].set("message_timestamp",a[3]),d[12].set("actor_id",a[0]),d[12].set("reaction_fbid",a[4]),d[12].set("reaction_style",a[7]),d[12].set("operation",a[8]),d[12].set("viewer_is_reactor",a[6]),d[12].set("current_count",a[5]),d[12].set("reaction_literal",a[9]),d[13]=c.createArray(),d[14]=(d[13].push("reaction_v2"),d[13]),d[15]=d[12].get("message_id"),d[12],d[16]=(d[13].push(d[15]),d[13]),d[17]=c.toJSON(d[13]),c.storedProcedure(b("LSCancelTaskByQueueName"),d[17],c.i64.cast([0,604]))):c.resolve()},function(e){return[c.i64.cast([0,2]),c.i64.cast([0,3])].some(function(b){return c.i64.eq(a[8],b)})?d[0]=c.i64.add(a[5],c.i64.cast([-1,4294967295])):d[0]=c.i64.add(a[5],c.i64.cast([0,1])),[c.i64.cast([0,2]),c.i64.cast([0,3])].some(function(b){return c.i64.eq(a[8],b)})?d[1]=!1:d[1]=!0,d[2]=c.i64.of_float(Date.now()),c.storedProcedure(b("LSUpdateOrInsertReactionV2"),a[1],a[2],a[4],a[9],d[0],c.i64.cast([0,20]),d[1],c.i64.cast([0,0]),d[2])},function(b){return c.db.table(9).fetch([[[a[1]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[3]=void 0:(b=a.item,d[3]=b.threadType)})},function(e){return c.i64.neq(d[3],c.i64.cast([0,23]))?[c.i64.cast([0,2]),c.i64.cast([0,3])].some(function(b){return c.i64.eq(a[8],b)})?c.i64.eq(a[8],c.i64.cast([0,2]))?c.storedProcedure(b("LSDeleteReaction"),a[1],a[2],a[0]):c.sequence([function(b){return c.filter(c.db.table(8).fetch([[[a[1],a[2],a[0]]]]),function(b){return c.i64.eq(b.threadKey,a[1])&&b.messageId===a[2]&&c.i64.eq(b.actorId,a[0])&&c.i64.eq(c.i64.cast([0,0]),c.i64.cast([0,0]))}).next().then(function(a,b){var c=a.done;a=a.value;return c?d[12]=void 0:(b=a.item,d[12]=b.reaction)})},function(e){return a[9]!==void 0?(a[9]==="\u2764\ufe0f"||a[9]==="\u2764\ufe0f"?d[14]="\u2764":d[14]=a[9],d[14]===d[12]?c.storedProcedure(b("LSDeleteReaction"),a[1],a[2],a[0]):c.resolve()):c.resolve()}]):a[9]!==void 0?(a[9]==="\u2764\ufe0f"||a[9]==="\u2764\ufe0f"?d[12]="\u2764":d[12]=a[9],d[13]=c.i64.of_float(Date.now()),c.storedProcedure(b("LSUpsertReaction"),a[1],a[3],a[2],a[0],d[12],c.i64.cast([0,20]),d[13])):c.resolve():c.resolve()},function(e){return d[5]=new c.Map(),d[5].set("thread_id",a[1]),d[5].set("message_id",a[2]),d[5].set("message_timestamp",a[3]),d[5].set("actor_id",a[0]),d[5].set("reaction_fbid",a[4]),d[5].set("reaction_style",a[7]),d[5].set("current_count",a[5]),d[5].set("viewer_is_reactor",a[6]),d[5].set("operation",a[8]),d[5].set("reaction_literal",a[9]),d[5].set("entry_point",void 0),d[6]=c.createArray(),d[7]=(d[6].push("reaction_v2"),d[6]),d[8]=d[5].get("message_id"),d[5],d[9]=(d[6].push(d[8]),d[6]),d[10]=c.toJSON(d[6]),d[11]=c.toJSON(d[5]),c.storedProcedure(b("LSIssueNewTaskWithExtraOperations"),d[10],c.i64.cast([0,604]),d[11],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),void 0,c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticUpsertReactionV2StoredProcedure",["LSOptimisticUpsertReactionV2"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.actorId;d[1]=b.threadId;d[2]=b.messageId;d[3]=b.messageTimestamp;d[4]=b.reactionFbid;d[5]=b.currentCount;d[6]=b.viewerIsReactor;d[7]=b.reactionStyle;d[8]=b.operation;d[9]=b.reactionLiteral;return c("LSOptimisticUpsertReactionV2").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MessageReactionOperation",[],(function(a,b,c,d,e,f){a=Object.freeze({ADD:1,REMOVE:2,REMOVE_MULTI_REACT:3});f["default"]=a}),66); __d("MessageReactionStyle",[],(function(a,b,c,d,e,f){a=Object.freeze({BASIC_SUPER_REACT_ANIMATION:1});f["default"]=a}),66); __d("useIsReactionsV2Enabled",["LSThreadBitOffset","MWLSThread","isUnjoinedCMThread","qex"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return(a=d("MWLSThread").useThread(a,function(a){return h(a)}))!=null?a:!1}function h(a){var b;if(d("LSThreadBitOffset").has(139,a))return!0;b=(b=c("qex")._("231"))!=null?b:!1;return b&&d("isUnjoinedCMThread").isUnjoinedCMThread(a.threadType)?!0:!1}function b(a){var b;b=(b=c("qex")._("231"))!=null?b:!1;return b&&d("isUnjoinedCMThread").isUnjoinedCMThread(a)}g.useIsReactionsV2Enabled=a;g.isReactionsV2Enabled=h;g.isReactionsV2ReadOnly=b}),98); __d("useMWLSDefaultThreadSource",["LSThreadAttributionTypeUtil","react","useLSMessagingSource"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(){var a=c("useLSMessagingSource")();return i(function(b){return d("LSThreadAttributionTypeUtil").getSource(b,a)},[a])}g["default"]=a}),98); __d("useMWPSendOrUnsendReaction",["FBLogger","I64","Int64Hooks","LSFactory","LSIntEnum","LSOptimisticUpsertReactionStoredProcedure","LSOptimisticUpsertReactionV2StoredProcedure","MWPActor.react","MessageReactionOperation","MessageReactionStyle","ReQL","asyncToGeneratorRuntime","promiseDone","useIsMultiReactionEnabled","useIsReactionsV2Enabled","useMWLSDefaultThreadSource","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function k(a,b,e,f,g,h){c("promiseDone")(a.runInTransaction(function(a){return c("LSOptimisticUpsertReactionV2StoredProcedure")(c("LSFactory")(a),{actorId:b,currentCount:g,messageId:e.messageId,messageTimestamp:e.timestampMs,operation:(i||(i=d("LSIntEnum"))).ofNumber(c("MessageReactionOperation").ADD),reactionFbid:f,reactionLiteral:h,reactionStyle:i.ofNumber(c("MessageReactionStyle").BASIC_SUPER_REACT_ANIMATION),threadId:e.threadKey,viewerIsReactor:!0})},"readwrite"))}function l(a,b,c,d,e,f,g){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f,g,h,j){yield a.runInTransaction(function(a){return c("LSOptimisticUpsertReactionV2StoredProcedure")(c("LSFactory")(a),{actorId:b,currentCount:f,messageId:e.messageId,messageTimestamp:e.timestampMs,operation:(i||(i=d("LSIntEnum"))).ofNumber(j?c("MessageReactionOperation").REMOVE_MULTI_REACT:c("MessageReactionOperation").REMOVE),reactionFbid:g,reactionLiteral:h,reactionStyle:i.ofNumber(c("MessageReactionStyle").BASIC_SUPER_REACT_ANIMATION),threadId:e.threadKey,viewerIsReactor:!1})},"readwrite")});return m.apply(this,arguments)}function n(a,b,e,f,g){c("promiseDone")(d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("reactions_v2")).getKeyRange(e.threadKey,e.messageId,f)).then(function(c){c!=null?k(a,b,e,f,c.count,g):k(a,b,e,f,(j||(j=d("I64"))).zero,g)}))}function a(a){var e=(h||(h=c("useReStore")))(),f=d("MWPActor.react").useActor(),g=c("useMWLSDefaultThreadSource")(),i=d("useIsMultiReactionEnabled").useIsMultiReactEnabled(a.threadKey);return d("Int64Hooks").useCallbackInt64(function(h){c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(e.table("threads")).getKeyRange(a.threadKey)));b=b?d("useIsReactionsV2Enabled").isReactionsV2Enabled(b):!1;if(b){var k=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(e.table("reaction_v2_types")).filter(function(a){return a.reactionLiteral===h||a.reactionLiteralVariant16===h})));if(k!=null){b=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(e.table("reactions_v2")).getKeyRange(a.threadKey,a.messageId).filter(function(a){return(!i||(j||(j=d("I64"))).equal(a.reactionFbid,k.reactionFbid))&&a.viewerIsReactor})));if(b==null)return n(e,f,a,k.reactionFbid,h);var m=(j||(j=d("I64"))).equal(b.reactionFbid,k.reactionFbid);(!i||m)&&(yield l(e,f,a,b.count,b.reactionFbid,h,i));m||(yield n(e,f,a,k.reactionFbid,h))}else c("FBLogger")("messenger_web_product").warn("Reactions v2: trying to send reaction that is not in reaction_v2_types table");return}return e.runInTransaction(function(b){return c("LSOptimisticUpsertReactionStoredProcedure")(c("LSFactory")(b),{actorId:f,messageId:a.messageId,reaction:h,sendAttribution:g(a.threadKey),threadKey:a.threadKey,timestampMs:(j||(j=d("I64"))).of_float(Date.now())})},"readwrite")})())},[e,a,f,i])}g["default"]=a}),98); __d("MAWPSendOrRemoveReaction.react",["I64","Int64Hooks","MWPActor.react","cr:3461","promiseDone","requireDeferred","useIsSecureMessage","useMWPSendOrUnsendReaction","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=c("requireDeferred")("MWLogMessageAction").__setRef("MAWPSendOrRemoveReaction.react");function a(a,e,f){var g,k=(i||(i=c("useReStore")))(),l=d("MWPActor.react").useActor(),m=(g=b("cr:3461")==null?void 0:b("cr:3461").useSendOrRemoveReaction(a.threadKey,(h||(h=d("I64"))).to_string(a.senderId)))!=null?g:null,n=c("useIsSecureMessage")(k,a,{fallbackIsSecure:e}),o=c("useMWPSendOrUnsendReaction")(a);return d("Int64Hooks").useMemoInt64(function(){return function(b,d,e){if(n&&m!==null)m(b,d);else{o((b=d)!=null?b:"")}j.onReady(function(b){return c("promiseDone")(b.log(k,a.messageId,a.threadKey,f,e,void 0,void 0,void 0,a.senderId,void 0,l))})}},[n,m,o,k,a.messageId,a.threadKey,a.senderId,f,l])}g.useSendOrRemoveReaction=a}),98); __d("MWV2MessageReactionHooks",["EmojiRenderer","I64","MWPActor.react","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function j(a){return a.map(function(a,b){b=d("EmojiRenderer").parse(a).map(function(a){return a.emoji});return b.length!==1?"":b[0].join("")}).filter(function(a){return a!==""})}a={useSelectedReaction:function(a){var b=(i||(i=c("useReStore")))(),e=d("MWPActor.react").useActor(),g=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(b.table("reactions")).getKeyRange(a.threadKey,a.messageId,e)},[e,b,a.messageId,a.threadKey],f.id+":34");if(g!=null)return g.reaction},useSelectedReactionsV2:function(a){var b=(i||(i=c("useReStore")))(),e=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(b.table("reactions_v2")).getKeyRange(a.threadKey,a.messageId).filter(function(a){return a.viewerIsReactor&&(h||(h=d("I64"))).gt(a.count,(h||(h=d("I64"))).zero)}).map(function(a){a=d("ReQLSuspense").first(d("ReQL").fromTableAscending(b.table("reaction_v2_types")).getKeyRange(a.reactionFbid),f.id+":59");return[a==null?void 0:a.reactionLiteral,a==null?void 0:a.reactionLiteralVariant16].filter(Boolean)})},[b,a.threadKey,a.messageId],f.id+":50").flat();e=j(e);return e},useSelectedReactionV2:function(a){var b=(i||(i=c("useReStore")))(),e=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(b.table("reactions_v2")).getKeyRange(a.threadKey,a.messageId).filter(function(a){return a.viewerIsReactor})},[b,a.messageId,a.threadKey],f.id+":78");return d("ReQLSuspense").useFirst(function(){return e?d("ReQL").fromTableAscending(b.table("reaction_v2_types")).getKeyRange(e.reactionFbid).map(function(a){return a.reactionLiteral}):d("ReQL").empty()},[b,e],f.id+":86")}};g.MWV2MessageReactionHooks=a}),98); __d("useMWChatReactionsActionContainerProps.react",["I64","LSMessagingThreadTypeUtil","MAWPSendOrRemoveReaction.react","MWCMThreadTypes.react","MWChatMessageId","MWV2MessageReactionHooks","react","useIsReactionsV2Enabled"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=h||d("react");var j=b.useCallback,k=b.useMemo;function a(a,b,c,e,f,g){var h=d("MWV2MessageReactionHooks").MWV2MessageReactionHooks.useSelectedReaction(a),l=d("MWV2MessageReactionHooks").MWV2MessageReactionHooks.useSelectedReactionsV2(a),m=d("LSMessagingThreadTypeUtil").isSecure(c),n=d("MAWPSendOrRemoveReaction.react").useSendOrRemoveReaction(a,m,"reaction_tray"),o=d("MWCMThreadTypes.react").isBroadcastThread(c);c=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(c);var p=d("useIsReactionsV2Enabled").useIsReactionsV2Enabled(a.threadKey),q=(i||(i=d("I64"))).to_string(a.threadKey),r=i.to_string(a.timestampMs),s=k(function(){return d("MWChatMessageId").makeSent(q,a.messageId,r)},[q,a.messageId,r]),t=j(function(b,c){e&&e();return n(a.messageId,c?void 0:b,c?"remove_reaction":"reaction")},[e,n,a.messageId]),u=p&&o;return{closeActionsMenu:b,disableCustomReactions:u,hasReactionsV2:p,isBroadcastChannel:c,isBroadcastThread:o,isSecure:m,messageID:s,onVisibilityChange:f,reactionsPopoverResource:g,selectedReactions:p?(b=l)!=null?b:void 0:h!=null?[h]:void 0,sendReaction:t}}g["default"]=a}),98); __d("MWPBaseMessageListRowActions.react",["react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={incoming:{flexDirection:"x1q0g3np",$$css:!0},outgoing:{flexDirection:"x15zctf7",$$css:!0},root:{alignItems:"x6s0dn4",display:"x78zum5",width:"x1ll7btr",$$css:!0}};function l(a){var b=a.children;a=a.outgoing;return j.jsx("div",{className:(h||(h=c("stylex")))(k.root,a?k.outgoing:k.incoming),role:"none",children:b})}l.displayName=l.name+" [from "+f.id+"]";function a(a){a=a.children;return j.jsx("div",{children:a})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b=a.ariaHidden,d=a.children,e=a.hasReactions,f=a.outgoing;a=a.xstyle;return j.jsx("div",{"aria-hidden":(b=b)!=null?b:!1,className:(h||(h=c("stylex")))(m.root,e?m.moveUpToAccountForReactions:!1,f?m.outgoing:m.incoming,a!=null?a:!1),children:j.jsx(l,{outgoing:f,children:d})})}b.displayName=b.name+" [from "+f.id+"]";var m={incoming:{paddingStart:"x1t2a60a",paddingLeft:null,paddingRight:null,$$css:!0},moveUpToAccountForReactions:{paddingBottom:"x1hhzuzn",$$css:!0},outgoing:{paddingEnd:"x1mpkggp",paddingLeft:null,paddingRight:null,$$css:!0},root:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",flexShrink:"x2lah0s",justifyContent:"xl56j7k",position:"x1n2onr6",width:"x1ll7btr",zIndex:"x1n327nk",$$css:!0}};g.MWPBaseMessageListRowActionsList=l;g.MWPBaseMessageListRowActionsListItem=a;g.MWPBaseMessageListRowActionsContainer=b}),98); __d("MDSContextualMenuIcon.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(){return i.jsxs("svg",{height:"22px",viewBox:"0 0 22 22",width:"22px",children:[i.jsx("circle",{cx:"11",cy:"6",fill:"var(--placeholder-icon)",r:"2",strokeWidth:"1px"}),i.jsx("circle",{cx:"11",cy:"11",fill:"var(--placeholder-icon)",r:"2",strokeWidth:"1px"}),i.jsx("circle",{cx:"11",cy:"16",fill:"var(--placeholder-icon)",r:"2",strokeWidth:"1px"})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2LogMessageClick",["I64","LSMessagingThreadTypeUtil","Promise","ReQL","UserAgentData","promiseDone","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=c("requireDeferred")("LsMessageClickFalcoEvent").__setRef("MWV2LogMessageClick");function a(a,e,f,g){var k=e.threadKey;c("promiseDone")(d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("threads")).getKeyRange(k)).then(function(a){a!=null&&!d("LSMessagingThreadTypeUtil").isSecure(a.threadType)&&j.onReady(function(a){a.log(function(){var a;return{click:{category:2},click_target:{type:f},extra:JSON.stringify({action:(a=g)!=null?a:void 0,browserName:c("UserAgentData").browserName}),message:{id:e.messageId,sender_id:void 0,sent_time:(i||(i=d("I64"))).to_float(e.timestampMs)},thread:{id:i.to_string(e.threadKey),key:void 0,type:void 0},xma:void 0}})});return(h||(h=b("Promise"))).resolve()}))}g.log=a}),98); __d("MWV2OnlyGlobalRemoveMessageDialog.entrypoint",["JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{}},root:c("JSResourceForInteraction")("MWV2OnlyGlobalRemoveMessageDialog.react").__setRef("MWV2OnlyGlobalRemoveMessageDialog.entrypoint")};g["default"]=a}),98); __d("isFeatureLimitEnabled",["qex"],(function(a,b,c,d,e,f,g){"use strict";function a(){return c("qex")._("588")===!0}g["default"]=a}),98); __d("useMWPCanRemoveMessageGlobally",["I64","LSIntEnum","LSMessageThreadUnsendabilityStatus","MWPThreadCapabilitiesContext"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext(),e=b.canUnsendMessage;b=b.isPaused;a=a.cannotUnsendReason!=null?(h||(h=d("I64"))).equal(a.cannotUnsendReason,(i||(i=d("LSIntEnum"))).ofNumber(c("LSMessageThreadUnsendabilityStatus").CAN_UNSEND)):!0;return e&&a&&!b}g["default"]=a}),98); __d("useIsRollcallEnabled",["LSThreadBitOffset","MWLSThread"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=Boolean(d("MWLSThread").useThread(a,function(a){return d("LSThreadBitOffset").has(152,a)}));return a}g["default"]=a}),98); __d("useShouldAllowRollCallForMessage",["I64","LSIntEnum","MessagingAttachmentType","gkx","isStringNullOrEmpty","useIsRollcallEnabled"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=[c("MessagingAttachmentType").IMAGE,c("MessagingAttachmentType").VIDEO];function a(a,b){var e=c("useIsRollcallEnabled")(a.threadKey);if(!e)return!1;return c("gkx")("9992")&&!c("isStringNullOrEmpty")(a.text)?!0:b.some(function(a){var b=(a=a.attachmentType)!=null?a:(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").NONE);return j.some(function(a){return(i||(i=d("I64"))).equal(b,(h||(h=d("LSIntEnum"))).ofNumber(a))})})}g.ATTACHMENT_TYPES_THAT_ALLOW_PROMPTS=j;g.useShouldAllowRollCallForMessage=a}),98); __d("MWV2ContextualActionsButton.react",["fbt","I64","Int64Hooks","JSResourceForInteraction","LSContactBitOffset","LSMessagingThreadTypeUtil","MDSContextualMenuIcon.react","MWCMThreadTypes.react","MWPActor.react","MWPThreadCapabilitiesContext","MWV2LogMessageClick","MWV2MessageRowActionsContext.react","MWV2MessageRowIsRowFocusedContext.react","MWV2OnlyGlobalRemoveMessageDialog.entrypoint","MWXDeferredPopoverTrigger.react","MWXPressable.react","MWXTooltip.react","ReQL","ReQLSuspense","emptyFunction","gkx","isFeatureLimitEnabled","react","requireDeferred","useIsReadOnlyFeatureLimitedWithThreadType","useMWPCanRemoveMessageGlobally","useMWXEntryPointDialog","useMWXLazyDialog","useReStore","useShouldAllowRollCallForMessage"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));b=k;var m=b.useCallback,n=b.useContext,o=b.useEffect,p=c("requireDeferred")("MWV2ContextualActionsMenu.react").__setRef("MWV2ContextualActionsButton.react");function a(a){var b=a.attachment,e=a.canRemoveMessageGlobally,g=a.closeActionsMenu,k=a.extraActions,q=a.isSubthreadParentMessage;q=q===void 0?!1:q;var r=a.learnMoreDialogType,s=a.learnMoreOnMessageRemove,t=a.message,u=a.onRemoveMessageLogger,v=a.removeMessageDialogTitle,w=a.setMoreMenuOpen,x=a.showCreateSubthread;x=x===void 0?!1:x;var y=a.showFeedbackOptionsInContextualMenu,z=a.showForwardActionInContextualMenu,A=a.showLearnMoreInContextualMenu,B=a.showReactionInContextualMenu,C=a.showReplyActionInContextualMenu,D=a.threadType,E=(i||(i=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(E.table("threads"),["parentThreadKey","threadKey","threadType","cannotUnsendReason","threadSubtype"]).getKeyRange(t.threadKey)},[E,t.threadKey],f.id+":114");var F=a==null?void 0:a.parentThreadKey,G=h._("__JHASH__I1DdCdLzOkz__JHASH__"),H=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext(),I=H.localDeleteMessageEnabled,J=H.modifyPinnedMessageV2Enabled;H=H.reportMessageToAdminEnabled;var K=c("useMWPCanRemoveMessageGlobally")(t),L=d("LSMessagingThreadTypeUtil").isSecure(D),M=d("MWCMThreadTypes.react").isJoinedCMThread(D),N=c("useIsReadOnlyFeatureLimitedWithThreadType")(D),O=d("ReQLSuspense").useFirst(function(){if(d("LSMessagingThreadTypeUtil").isCMSubthread(D))if(F==null)return d("ReQL").empty();else return d("ReQL").fromTableAscending(E.table("participants")).getKeyRange(F,t.senderId);else if(M)return d("ReQL").fromTableAscending(E.table("participants")).getKeyRange(t.threadKey,t.senderId);return d("ReQL").empty()},[M,D,F,E,t.senderId,t.threadKey],f.id+":144"),P=d("ReQLSuspense").useFirst(function(){return M?d("ReQL").fromTableAscending(E.table("contacts"),["capabilities","capabilities2"]).getKeyRange(t.senderId):d("ReQL").empty()},[E,M,t.senderId],f.id+":171");N=(!L||c("isFeatureLimitEnabled")())&&N;var Q=!N,R=d("MWPActor.react").useActor();P=P!=null&&((P=d("LSContactBitOffset").has(77,P))!=null?P:!1);J=J&&!t.isUnsent&&!q&&!d("LSMessagingThreadTypeUtil").isCMSubthread(D);q=t.isUnsent;var S=!1;M||d("LSMessagingThreadTypeUtil").isDiscoverableChannel(D)||d("LSMessagingThreadTypeUtil").isCMSubthread(D)?S=!q&&K:L?S=!N:S=I&&Q;q=c("useMWXEntryPointDialog")(c("MWV2OnlyGlobalRemoveMessageDialog.entrypoint"),{});var T=q[0];L=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWV2RemoveMessageDialog.react").__setRef("MWV2ContextualActionsButton.react"));var U=L[0];N=(O==null?void 0:O.isAdmin)===!0;I=t.unsentTimestampMs!=null;Q=(d("MWCMThreadTypes.react").isJoinedCMThread(D)||d("LSMessagingThreadTypeUtil").isCMSubthread(D))&&H&&!N&&!(j||(j=d("I64"))).equal(R,t.senderId)&&!I&&!P;q=(d("MWCMThreadTypes.react").isJoinedCMThread(D)||d("LSMessagingThreadTypeUtil").isCMSubthread(D))&&!(j||(j=d("I64"))).equal(R,t.senderId)&&!I;L=d("useShouldAllowRollCallForMessage").useShouldAllowRollCallForMessage(t,[b].filter(Boolean));O=d("Int64Hooks").useCallbackInt64(function(){var a={canRemoveMessageGlobally:K,message:t,removeLogger:u,threadType:D},b={learnMoreOnMessageRemove:s,message:t},e=(j||(j=d("I64"))).equal(t.senderId,R);if(d("MWCMThreadTypes.react").isJoinedCMThread(D)||d("LSMessagingThreadTypeUtil").isDiscoverableChannel(D)||e&&!c("gkx")("9197")&&!t.isUnsent)return T(b);else return U(a,c("emptyFunction"))},[R,s,t,u,U,T,D,K]);H=d("MWV2MessageRowActionsContext.react").useMessageRowActionsContext();var V=H.removeMessage;S?V.current=O:V.current=c("emptyFunction");var W=m(function(){if(c("gkx")("3417")){V.current=c("emptyFunction");return}},[V]);o(function(){return W},[W]);var X=n(d("MWV2MessageRowIsRowFocusedContext.react").context);if(a==null||!(z||C||B||J||y||S||q||L||A||k!=null))return null;N=function(a){w(function(){return a});return X.setFocused(function(){return a})};return l.jsx(c("MWXDeferredPopoverTrigger.react"),{align:"middle",onVisibilityChange:N,popoverProps:{canRemoveMessageGlobally:e&&K,closeActionsMenu:g,extraActions:k,learnMoreDialogType:r,learnMoreOnMessageRemove:s,message:t,onRemoveMessageLogger:u,removeMessageDialogTitle:v,showCreatePrompt:L,showCreateSubthread:x,showFeedbackOptionsInContextualMenu:y,showForwardActionInContextualMenu:z,showLearnMoreInContextualMenu:A,showPinMessageActionInContextualMenu:J,showReactionInContextualMenu:B,showReplyActionInContextualMenu:C,showReportCommunityMessageToAdmin:Q,showReportCommunityMessageToFacebook:q,showUnsendInContextualMenu:S,thread:a},popoverResource:p,popoverType:"menu",position:"above",children:function(a,b){var e=function(){b();return d("MWV2LogMessageClick").log(E,t,48)};return l.jsx(c("MWXTooltip.react"),{align:"middle",position:"above",tooltip:G,children:l.jsx(c("MWXPressable.react"),{"aria-label":G,expanding:!0,onPress:e,overlayDisabled:!0,ref:a,testid:void 0,children:l.jsx("div",{className:"xc26acl x6s0dn4 x14yjl9h xudhj91 x18nykt9 xww2gxu x1ypdohk x78zum5 x2lah0s xxk0z11 xl56j7k x11i5rnm x1mh8g0r x1n2onr6 x2b8uid xvy4d1p x15vn3sj",children:l.jsx("div",{className:"x17rw0jw x197sbye x17z2i9w x4gyw5p x1o7uuvo",children:l.jsx(c("MDSContextualMenuIcon.react"),{})})})})})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2ForwardMessageButton.react",["fbt","I64","LSBitFlag","LSIntEnum","LSMessagingThreadTypeUtil","MWChatForwardAction.react","MWChatMessageId","promiseDone","qex","react","useMWV2ForwardMessage"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||d("react");function a(a){var b=a.message,e=a.threadType,f=d("LSMessagingThreadTypeUtil").isSecure(e),g=c("qex")._("205")===!0;g=f?g?"cross_transport":"secure":g?"cross_transport":"open_";var i=d("MWChatMessageId").makeSent((j||(j=d("I64"))).to_string(b.threadKey),b.messageId,j.to_string(b.timestampMs)),m=b.stickerId,n=c("useMWV2ForwardMessage")(b,e);e=!d("LSMessagingThreadTypeUtil").isSecure(e);b=d("LSBitFlag").has((k||(k=d("LSIntEnum"))).ofNumber(1),b.displayedContentTypes)&&!b.textHasLinks||d("LSBitFlag").has((k||(k=d("LSIntEnum"))).ofNumber(16384),b.displayedContentTypes)||d("LSBitFlag").has((k||(k=d("LSIntEnum"))).ofNumber(2),b.displayedContentTypes)||d("LSBitFlag").has((k||(k=d("LSIntEnum"))).ofNumber(4),b.displayedContentTypes)||d("LSBitFlag").has((k||(k=d("LSIntEnum"))).ofNumber(512),b.displayedContentTypes)||m!=null&&(j||(j=d("I64"))).equal(m,(j||(j=d("I64"))).of_string("369239263222822"))||m!=null&&(j||(j=d("I64"))).equal(m,(j||(j=d("I64"))).of_string("369239343222814"))||m!=null&&(j||(j=d("I64"))).equal(m,(j||(j=d("I64"))).of_string("369239383222810"));m=e&&!b||a.dropForwardE2eeToggle===!0;return l.jsx(c("MWChatForwardAction.react"),{dropToggle:m,forwardDialogType:g,fromSecureThread:f,label:h._("__JHASH__GvPr2MwluxY__JHASH__").toString(),messageID:i,onForward:function(a){return c("promiseDone")(n(a))}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useMWV2ShouldDisableReactions.react",["LSMessagingThreadTypeUtil","ReQL","ReQLSuspense","isFeatureLimitEnabled","useIsReactionsV2Enabled","useIsReadOnlyFeatureLimitedWithThreadType","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){var e=d("LSMessagingThreadTypeUtil").isSecure(a);a=c("useIsReadOnlyFeatureLimitedWithThreadType")(a);e=(!e||c("isFeatureLimitEnabled")())&&a;a=d("useIsReactionsV2Enabled").useIsReactionsV2Enabled(b);var g=(h||(h=c("useReStore")))();b=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("reaction_v2_types"))},[g],f.id+":38")!=null;return e||a&&!b}g["default"]=a}),98); __d("MWV2MessageReactionButton.react",["MWChatReactionsAction.react","react","useMWChatReactionsActionContainerProps.react","useMWV2ShouldDisableReactions.react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.closeActionsMenu,d=a.message,e=a.onReactionsSendLogger,f=a.reactionsPopoverResource,g=a.setReactionsMenuOpen;a=a.threadType;var h=c("useMWV2ShouldDisableReactions.react")(a,d.threadKey);d=c("useMWChatReactionsActionContainerProps.react")(d,b,a,e,g,f);return h?null:i.jsx(c("MWChatReactionsAction.react"),babelHelpers["extends"]({},d))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2OneToOneThreadBlockedContext.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;h||(h=d("react"));c=h;e=c.createContext;var i=c.createElement,j=c.useContext,k=e(!1);function a(){return j(k)}function b(a){var b=a.blocked;a=a.children;return i(k.Provider,{children:a,value:b})}b.displayName=b.name+" [from "+f.id+"]";g.useIsBlocked=a;g.MWV2OneToOneThreadBlockedContext=b}),98); __d("MDSReplyActionSvgIcon.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(){return i.jsx("svg",{height:"22px",viewBox:"1 1 21 21",width:"22px",children:i.jsx("g",{className:"x148u3ch",fillRule:"evenodd",strokeWidth:"1",children:i.jsx("path",{d:"M10.8932368,14.7625445 C10.8932368,15.535432 10.0849567,15.996442 9.48116675,15.5677995 L4.03193175,11.696707 C3.49257425,11.313742 3.49287675,10.4694645 4.03193175,10.0864995 L9.48116675,6.2157095 C10.0849567,5.7867645 10.8932368,6.248077 10.8932368,7.020662 L10.8938418,9.0755445 C15.2129368,9.0755445 18.1517243,11.027577 18.1523293,15.7226795 C18.1523293,16.0820495 17.9036743,16.3349395 17.5273643,16.3349395 C17.2487618,16.3349395 17.0164418,16.1746145 16.8527893,15.680027 C16.1588543,13.584307 14.1063918,12.7049395 10.8938418,12.7049395 L10.8932368,14.7625445 Z"})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWV2MessageListIsRowModalContext.react",["emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));e=h;d=e.createContext;var j=e.useContext,k=d(c("emptyFunction"));function a(a){var b=a.children;a=a.value;return i.jsx(k.Provider,{value:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";function b(){return j(k)}g.MWV2MessageListIsRowModalContext=k;g.MWV2MessageListIsRowModalContextProvider=a;g.useMWV2MessageListIsRowModal=b}),98); __d("MWV2ReplyButton.react",["fbt","MAWEditMessageContext.react","MDSReplyActionSvgIcon.react","MWPReplyContext.react","MWV2MessageListIsRowModalContext.react","MWV2MessageRowActionsContext.react","MWXPressable.react","MWXTooltip.react","emptyFunction","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useContext,m=b.useEffect;function a(a){var b=a.message;a=h._("__JHASH__xFCj85w6vra__JHASH__");var e=l(d("MWPReplyContext.react").MWPReplyContext),f=e.setReply;e=l(d("MAWEditMessageContext.react").Context);var g=e.editMessageData,i=e.setEditMessageData,n=d("MWV2MessageListIsRowModalContext.react").useMWV2MessageListIsRowModal(),o=function(){g!=null&&i(null),f({messageId:b.messageId,offlineThreadingId:b.offlineThreadingId,sendStatusV2:b.sendStatusV2,timestampMs:b.timestampMs},b.threadKey),n("")};e=d("MWV2MessageRowActionsContext.react").useMessageRowActionsContext();var p=e.replyToMessage;p.current=o;var q=k(function(){if(c("gkx")("3417")){p.current=c("emptyFunction");return}},[p]);m(function(){return q},[q]);return j.jsx(c("MWXTooltip.react"),{align:"middle",position:"above",tooltip:a,children:j.jsx("div",{className:"xc26acl x6s0dn4 x14yjl9h xudhj91 x18nykt9 xww2gxu x1ypdohk x78zum5 x2lah0s xxk0z11 xl56j7k x11i5rnm x1mh8g0r x1n2onr6 x2b8uid xvy4d1p x15vn3sj",children:j.jsx(c("MWXPressable.react"),{"aria-label":a,expanding:!0,onPress:function(){return o()},overlayDisabled:!0,testid:void 0,children:j.jsx("div",{className:"x17rw0jw x197sbye x17z2i9w x4gyw5p x1o7uuvo",children:j.jsx(c("MDSReplyActionSvgIcon.react"),{})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSMailboxAIBotFeedbackSubmissionStatus",[],(function(a,b,c,d,e,f){a=Object.freeze({NONE:0,SUBMITTED:1});f["default"]=a}),66); __d("useGenAIFeedbackSubmissionStatus",["I64","LSIntEnum","LSMailboxAIBotFeedbackSubmissionStatus","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function a(a){var b=(j||(j=c("useReStore")))(),e=d("ReQLSuspense").useFirst(function(){var e;return d("ReQL").fromTableDescending(b.table("ai_bot_feedback_submission_status")).getKeyRange((e=a)!=null?e:"").filter(function(a){return(h||(h=d("I64"))).equal(a.feedbackSubmissionStatus,(i||(i=d("LSIntEnum"))).ofNumber(c("LSMailboxAIBotFeedbackSubmissionStatus").SUBMITTED))}).map(function(a){return a.feedbackSubmissionStatus})},[b,a],f.id+":25");return e}g["default"]=a}),98); __d("MWPContactContext.react",["react","shallowEqualI64"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));e=h;var j=e.useContext,k=e.useMemo,l=e.useRef,m=i.createContext({authorName:void 0,contact:void 0,nickname:void 0}),n=i.createContext({authorName:void 0,contact:void 0,nickname:void 0});function a(){return j(m)}function b(){return j(n)}function c(a){var b=a.children,c=a.contact,d=a.nickname,e=function(){var a;if(d!=null)a=d;else if(c!=null){var b=c.firstName;a=b!=null?b:c.name}else a=void 0;return a}();a=k(function(){return{authorName:e,contact:c,nickname:d}},[d,e,c]);var f=o(c),g=k(function(){return{authorName:e,contact:f,nickname:d}},[d,e,f]);return i.jsx(m.Provider,{value:a,children:i.jsx(n.Provider,{value:g,children:b})})}c.displayName=c.name+" [from "+f.id+"]";function o(a){var b=l();a=a?{capabilities:a.capabilities,capabilities2:a.capabilities2,contactTypeExact:a.contactTypeExact,name:a.name,profilePictureFallbackUrl:a.profilePictureFallbackUrl,profilePictureUrl:a.profilePictureUrl,profilePictureUrlExpirationTimestampMs:a.profilePictureUrlExpirationTimestampMs,secondaryName:a.secondaryName}:void 0;d("shallowEqualI64").shallowEqualI64(b.current,a)||(b.current=a);return b.current}g.useMWPContactFullContext=a;g.useMWPContactStableContext=b;g.MWPContactContextProvider=c}),98); __d("useIsGenAiFeedbackEnabled",["I64","LSContactTypeExact","LSIntEnum","MWPContactContext.react","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=d("MWPContactContext.react").useMWPContactStableContext();b=b.contact;if(a==null)return!1;a=c("gkx")("10831");return!a?!1:b!=null&&(h||(h=d("I64"))).equal(b.contactTypeExact,(i||(i=d("LSIntEnum"))).ofNumber(c("LSContactTypeExact").GENERATIVE_AI_BOT))}g["default"]=a}),98); __d("useMWGetOtherUserContact",["I64","LSMessagingThreadTypeUtil","MWPActor.react","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b,e){var g=(i||(i=c("useReStore")))(),j=d("MWPActor.react").useActor(),k=(h||(h=d("I64"))).equal(j,a);return d("ReQLSuspense").useFirst(function(){return!d("LSMessagingThreadTypeUtil").isOneToOne(b)?d("ReQL").empty():d("ReQL").mergeJoin(d("ReQL").fromTableAscending(g.table("participants"),["contactId"]).getKeyRange(a),d("ReQL").fromTableAscending(g.table("contacts"),e)).filter(function(a){var b=a[0];a[1];return k||!(h||(h=d("I64"))).equal(b.contactId,j)}).map(function(a){a[0];a=a[1];return a})},[b,g,a,e,k,j],f.id+":32")}g["default"]=a}),98); __d("useMWIsContactRestricted",["LSContactBitOffset"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=a!=null&&d("LSContactBitOffset").has(66,a);return a}g["default"]=a}),98); __d("useMWHasForwardAction",["I64","LSAuthorityLevel","LSBitFlag","LSContactBitOffset","LSIntEnum","LSMessagingThreadTypeUtil","MAWMsg","MWCMIsAnyCMThread","MWCMIsSubthreadContext.react","MWPThreadCapabilitiesContext","MWV2OneToOneThreadBlockedContext.react","MessagingAttachmentType","gkx","isFeatureLimitEnabled","useIsReadOnlyFeatureLimitedWithThreadType","useMWGetOtherUserContact","useMWIsContactRestricted"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b,e,f){f===void 0&&(f=!1);var g=d("MWCMIsSubthreadContext.react").useIsSubthreadContext();g=g.isSubthread;g=g&&!d("LSMessagingThreadTypeUtil").isCMSubthread(a);var j=d("LSMessagingThreadTypeUtil").isSecure(a),k=b.ephemeralDurationInSec;k=k!=null?(h||(h=d("I64"))).gt(k,(h||(h=d("I64"))).zero):!1;var l=c("useIsReadOnlyFeatureLimitedWithThreadType")(a)&&(!j||c("isFeatureLimitEnabled")()),m=(h||(h=d("I64"))).equal(b.displayedContentTypes,(i||(i=d("LSIntEnum"))).ofNumber(4096)),n=h.equal(b.displayedContentTypes,i.ofNumber(64)),o=d("MWV2OneToOneThreadBlockedContext.react").useIsBlocked(),p=c("useMWGetOtherUserContact")(b.threadKey,a,d("LSContactBitOffset").contactCapabilityFields);p=c("useMWIsContactRestricted")(p);a=c("MWCMIsAnyCMThread")(a)&&(h||(h=d("I64"))).equal(b.sendStatusV2,(i||(i=d("LSIntEnum"))).ofNumber(4));var q=d("LSBitFlag").has(i.ofNumber(2),b.displayedContentTypes),r=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext();r=r.messageForwardEnabled;j=(j?!k&&!m&&!(n&&!c("gkx")("9045")):!0)&&c("gkx")("1844772")&&!g&&!o&&!p&&!l&&!b.isUnsent&&!a&&!d("MAWMsg").isPlaceholder(b)&&r&&!f&&(h||(h=d("I64"))).gt(b.authorityLevel,(i||(i=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").OPTIMISTIC))&&(e!=null&&(h||(h=d("I64"))).equal(e.attachmentType,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA))&&(e.attachmentCta1Id!=null||e.attachmentCta2Id!=null||e.attachmentCta3Id!=null||e.defaultCtaId!=null)?e.isSharable:!0);k=q&&j;return{hasForwardAction:j,shouldShowForwardAction:k}}g["default"]=a}),98); __d("useMWV2MessageForwardAction",["I64","LSBitFlag","LSIntEnum","MWChatMessageId","MWV2LogMessageClick","MWV2MessageRowIsRowFocusedContext.react","gkx","promiseDone","qex","react","useMWChatForward","useMWV2ForwardMessage","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;b=k||d("react");var l=b.useCallback,m=b.useContext;function a(a,b,e){var f=(h||(h=c("useReStore")))(),g=c("gkx")("1224637"),k=!g&&a;g=!g&&c("qex")._("205")===!0;g=k?g?"cross_transport":"secure":g?"cross_transport":"open_";var n=d("MWChatMessageId").makeSent((i||(i=d("I64"))).to_string(b.threadKey),b.messageId,i.to_string(b.timestampMs)),o=c("useMWV2ForwardMessage")(b,e);e=m(d("MWV2MessageRowIsRowFocusedContext.react").context);var p=e.setFocused,q=e.setIsDialogOpened;e=b.stickerId;a=!a;e=d("LSBitFlag").has((j||(j=d("LSIntEnum"))).ofNumber(1),b.displayedContentTypes)&&!b.textHasLinks||d("LSBitFlag").has((j||(j=d("LSIntEnum"))).ofNumber(16384),b.displayedContentTypes)||d("LSBitFlag").has((j||(j=d("LSIntEnum"))).ofNumber(2),b.displayedContentTypes)||d("LSBitFlag").has((j||(j=d("LSIntEnum"))).ofNumber(4),b.displayedContentTypes)||d("LSBitFlag").has((j||(j=d("LSIntEnum"))).ofNumber(512),b.displayedContentTypes)||d("LSBitFlag").has((j||(j=d("LSIntEnum"))).ofNumber(1024),b.displayedContentTypes)||e!=null&&(i||(i=d("I64"))).equal(e,(i||(i=d("I64"))).of_string("369239263222822"))||e!=null&&(i||(i=d("I64"))).equal(e,(i||(i=d("I64"))).of_string("369239343222814"))||e!=null&&(i||(i=d("I64"))).equal(e,(i||(i=d("I64"))).of_string("369239383222810"));var r=c("useMWChatForward")({dropToggle:a&&!e,forwardDialogType:g,fromSecureThread:k,messageID:n,onClose:l(function(){q(function(){return!1}),p(function(){return!0})},[p,q]),onSend:l(function(a){return c("promiseDone")(o(a))},[o])});return function(){d("MWV2LogMessageClick").log(f,b,44),r!=null&&(q(function(){return!0}),r.onClick())}}g["default"]=a}),98); __d("useShowPersistentGenAIFeedbackButtons",["ReQL","ReQLSuspense","useGenAIFeedbackSubmissionStatus","useIsGenAiFeedbackEnabled","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){var e=(h||(h=c("useReStore")))(),g=c("useIsGenAiFeedbackEnabled")(b),i=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableDescending(e.table("messages")).getKeyRange(a).filter(function(a){return a.botResponseId!=null})},[e,a],f.id+":40"),j=c("useGenAIFeedbackSubmissionStatus")(b);return g&&(i==null?void 0:i.botResponseId)===b&&j==null}g["default"]=a}),98); __d("MWMessageRowActions.react",["$InternalEnum","CometErrorBoundary.react","I64","LSBitFlag","LSContactBitOffset","LSIntEnum","LSMessagingThreadTypeUtil","MNLSXMALayoutType","MWCMIsAnyCMThread","MWCMIsSubthreadContext.react","MWCMThreadTypes.react","MWLSThreadDisplayContext","MWPBaseMessageListRowActions.react","MWPThreadCapabilitiesContext","MWV2ContextualActionsButton.react","MWV2ForwardMessageButton.react","MWV2MessageReactionButton.react","MWV2MessageRowActionsContext.react","MWV2OneToOneThreadBlockedContext.react","MWV2ReplyButton.react","MWXTooltipGroup.react","ReQL","ReQLSuspense","cr:1669","cr:1670","cr:6325","cr:7122","emptyFunction","gkx","isFeatureLimitEnabled","qex","react","useGenAIFeedbackSubmissionStatus","useIsGenAiFeedbackEnabled","useIsReadOnlyFeatureLimitedWithThreadType","useIsSecureMessage","useMWGetOtherUserContact","useMWHasForwardAction","useMWIsContactRestricted","useMWV2MessageForwardAction","useReStore","useShowPersistentGenAIFeedbackButtons"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useEffect,o=e.useState,p={shrinkSpaceForFeedbackActions:{maxWidth:"x17jmlyi",$$css:!0}},q=b("$InternalEnum").Mirrored(["AI_STICKERS"]);function r(a){var e,g=a.canRemoveMessageGlobally,k=a.closeActionsMenu,o=a.dropForwardE2eeToggle,p=a.extraActions,r=a.interactedWith,s=a.learnMoreOnMessageRemove,t=a.message,u=a.onReactionsSendLogger,v=a.onRemoveMessageLogger,w=a.outgoing,x=a.reactionsPopoverResource,y=a.removeMessageDialogTitle,z=a.setMoreMenuOpen,A=a.setReactionsMenuOpen,B=a.shouldHideForwardOption,C=a.shouldHideHoverMenuReact;a=a.threadType;var D=d("MWCMIsSubthreadContext.react").useIsSubthreadContext();D=D.isSubthread;var E=d("MWV2OneToOneThreadBlockedContext.react").useIsBlocked(),F=(h||(h=c("useReStore")))();D=D&&t.subthreadKey!=null;var G=c("useMWGetOtherUserContact")(t.threadKey,a,d("LSContactBitOffset").contactCapabilityFields);G=c("useMWIsContactRestricted")(G);var H=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),I=d("LSMessagingThreadTypeUtil").isSecure(a),J=c("useIsSecureMessage")(F,t,{fallbackThreadType:a});J=I&&!J;var K=!(i||(i=d("I64"))).equal(t.displayedContentTypes,(j||(j=d("LSIntEnum"))).ofNumber(1)),L=c("MWCMIsAnyCMThread")(a)&&(i||(i=d("I64"))).equal(t.sendStatusV2,(j||(j=d("LSIntEnum"))).ofNumber(4)),M=d("ReQLSuspense").useFirst(function(){return K?d("ReQL").fromTableAscending(F.table("attachments")).getKeyRange(t.threadKey,t.messageId):d("ReQL").empty()},[F,t.messageId,t.threadKey,K],f.id+":134");e=i.equal((e=t.displayedContentTypes)!=null?e:(i||(i=d("I64"))).zero,j.ofNumber(128));var N=d("MWPThreadCapabilitiesContext").useMWPThreadCapabilitiesContext(),O=N.isPaused,P=N.reactEnabled,Q=N.reactionsV2WriteEnabled,R=N.replyEnabled;N=N.subThreadCreationEnabled;var S=(M==null?void 0:M.xmaLayoutType)!=null&&(i||(i=d("I64"))).equal(M.xmaLayoutType,(j||(j=d("LSIntEnum"))).ofNumber(c("MNLSXMALayoutType").THREAD_SHORTCUT)),T=(M==null?void 0:M.mustacheText)!=null&&t.stickerId!=null;T=T?q.AI_STICKERS:null;S=c("gkx")("8539")&&!S&&!t.isUnsent||!K||e;e=c("useMWHasForwardAction")(a,t,M,B);B=e.hasForwardAction;e=e.shouldShowForwardAction;var U=c("useIsReadOnlyFeatureLimitedWithThreadType")(a)&&(!I||c("isFeatureLimitEnabled")());R=!E&&!G&&!L&&R&&!t.isUnsent&&!D&&!U&&!J;U=!E&&!G&&!t.isUnsent&&!L&&(P||Q)&&(I?c("qex")._("1525")===!0:!0);J=c("useIsGenAiFeedbackEnabled")(t.botResponseId);E=c("useGenAIFeedbackSubmissionStatus")(t.botResponseId);G=J&&E==null;L=c("useShowPersistentGenAIFeedbackButtons")(t.threadKey,t.botResponseId);P=L?!1:G;Q=J&&E!=null;J=R&&!e&&r&&!L&&!P;E=r&&U&&!C;U=E&&!L&&!P;C=E&&G;L=d("MWCMThreadTypes.react").isJoinedCMThread(a)&&!O&&N&&!D&&S;E=r&&L&&H==="Inbox";G=I&&(i||(i=d("I64"))).equal(t.sendStatusV2,(j||(j=d("LSIntEnum"))).ofNumber(5));O=c("useMWV2MessageForwardAction")(I,t,a);N=d("MWV2MessageRowActionsContext.react").useMessageRowActionsContext();var V=N.forwardMessage;B&&(V.current=O);var W=m(function(){if(c("gkx")("3417")){V.current=c("emptyFunction");return}},[V]);n(function(){return W},[W]);return l.jsxs(d("MWPBaseMessageListRowActions.react").MWPBaseMessageListRowActionsList,{outgoing:w,children:[e?l.jsx(d("MWPBaseMessageListRowActions.react").MWPBaseMessageListRowActionsListItem,{children:l.jsx(c("MWV2ForwardMessageButton.react"),{dropForwardE2eeToggle:o,message:t,threadType:a})}):null,U?l.jsx(d("MWPBaseMessageListRowActions.react").MWPBaseMessageListRowActionsListItem,{children:l.jsx(c("MWV2MessageReactionButton.react"),{closeActionsMenu:k,message:t,onReactionsSendLogger:u,reactionsPopoverResource:x,setReactionsMenuOpen:A,threadType:a})}):null,b("cr:7122")!=null&&G?l.jsx(d("MWPBaseMessageListRowActions.react").MWPBaseMessageListRowActionsListItem,{children:l.jsx(b("cr:7122"),{message:t})}):null,J?l.jsx(d("MWPBaseMessageListRowActions.react").MWPBaseMessageListRowActionsListItem,{children:l.jsx(c("MWV2ReplyButton.react"),{message:t})}):null,E&&b("cr:6325")!=null?l.jsx(d("MWPBaseMessageListRowActions.react").MWPBaseMessageListRowActionsListItem,{children:l.jsx(b("cr:6325"),{message:t})}):null,P&&b("cr:1670")?l.jsx(d("MWPBaseMessageListRowActions.react").MWPBaseMessageListRowActionsListItem,{children:l.jsx(b("cr:1670"),{message:t})}):null,P&&b("cr:1669")?l.jsx(d("MWPBaseMessageListRowActions.react").MWPBaseMessageListRowActionsListItem,{children:l.jsx(b("cr:1669"),{message:t})}):null,r?l.jsx(d("MWPBaseMessageListRowActions.react").MWPBaseMessageListRowActionsListItem,{children:l.jsx(c("MWV2ContextualActionsButton.react"),{attachment:M,canRemoveMessageGlobally:g,closeActionsMenu:k,extraActions:p,isSubthreadParentMessage:D,learnMoreDialogType:T,learnMoreOnMessageRemove:s,message:t,onRemoveMessageLogger:v,removeMessageDialogTitle:y,setMoreMenuOpen:z,showCreateSubthread:L&&!E,showFeedbackOptionsInContextualMenu:Q,showForwardActionInContextualMenu:!e&&B,showLearnMoreInContextualMenu:T!==null,showReactionInContextualMenu:C,showReplyActionInContextualMenu:!J&&R,threadType:a})}):null]})}r.displayName=r.name+" [from "+f.id+"]";function a(a){var b=a.ariaHidden,e=a.canRemoveMessageGlobally,f=a.dropForwardE2eeToggle,g=a.extraActions,h=a.focused,i=a.hasReactions,k=a.hovered,m=a.learnMoreOnMessageRemove,n=a.message,q=a.onReactionsSendLogger,s=a.onRemoveMessageLogger,t=a.outgoing,u=a.reactionsPopoverResource,v=a.removeMessageDialogTitle,w=a.shouldHideForwardOption;w=w===void 0?!1:w;var x=a.shouldHideHoverMenuReact;x=x===void 0?!1:x;var y=a.showPersistentGenAiFeedbackActionButtons;y=y===void 0?!1:y;a=a.threadType;var z=o(!1),A=z[0];z=z[1];var B=o(!1),C=B[0];B=B[1];var D=d("LSBitFlag").has((j||(j=d("LSIntEnum"))).ofNumber(2),n.displayedContentTypes);k=k||h||C||A;return l.jsx(c("CometErrorBoundary.react"),{fallback:function(){return null},children:l.jsx(c("MWXTooltipGroup.react"),{children:l.jsx(d("MWPBaseMessageListRowActions.react").MWPBaseMessageListRowActionsContainer,{ariaHidden:(h=b)!=null?h:!1,hasReactions:i,outgoing:t,xstyle:y?p.shrinkSpaceForFeedbackActions:void 0,children:k||D?l.jsx(r,{canRemoveMessageGlobally:(C=e)!=null?C:!0,closeActionsMenu:c("emptyFunction"),dropForwardE2eeToggle:f,extraActions:(A=g)!=null?A:null,interactedWith:k,learnMoreOnMessageRemove:m,message:n,onReactionsSendLogger:q,onRemoveMessageLogger:s,outgoing:t,reactionsPopoverResource:u,removeMessageDialogTitle:v,setMoreMenuOpen:B,setReactionsMenuOpen:z,shouldHideForwardOption:w,shouldHideHoverMenuReact:x,threadType:a}):null})})})}a.displayName=a.name+" [from "+f.id+"]";g.LearnMoreDialogType=q;g.MWMessageRowActions=a}),98); __d("MAWMediaPreprocess",["MAWAudioPreProcess","MAWDocumentPreProcess","MAWImagePreProcess","MAWSupportedDocumentTypes","MAWVideoPreProcess","WATagsLogger","cometIsMimeTypeForMedia","gkx"],(function(a,b,c,d,e,f,g){"use strict";function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["start mediaPreprocess, file name: ",""]);h=function(){return a};return a}var i=d("WATagsLogger").TAGS(["MAWMediaPreprocess"]);function a(a){i.DEV(h(),a.name);if(a.type==="image/gif"||a.type==="image/webp"||d("cometIsMimeTypeForMedia").isMimeTypeForPhoto(a.type))return d("MAWImagePreProcess").imagePreprocess(a,!1);if(d("cometIsMimeTypeForMedia").isMimeTypeForVideo(a.type))return d("MAWVideoPreProcess").videoPreprocess(a);if(a.type.startsWith("audio/"))return d("MAWAudioPreProcess").audioPreprocess(a);return d("MAWSupportedDocumentTypes").isAllowedType(a.name)&&c("gkx")("9045")?d("MAWDocumentPreProcess").documentPreprocess(a):Promise.reject("Unsupported file type")}g.mediaPreprocess=a}),98); __d("MAWMediaManagerUtils",["MAWBridgeFireAndForget","MAWMediaPreprocess","MAWMediaUtils","MAWMiActOnActThreadReady","OfflineThreadingId","Promise","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=new Map();function a(a){return(h||(h=b("Promise"))).all(a.map(d("MAWMediaPreprocess").mediaPreprocess)).then(function(a){a=d("OfflineThreadingId").createForItemsInOrder(a);a.forEach(function(a){i.set(a[1],a[0])});return a.map(function(a){return[a[0].file,a[1]]})})}function e(a){a.forEach(function(a){i["delete"](a)})}function f(a,e,f){c("promiseDone")(d("MAWMiActOnActThreadReady").onActThreadReady(a,e,"MAWMediaManagerUtils",function(a,c,e){a=f.reduce(function(a,b){b=i.get(b[1]);b!=null&&a.push(b);return a},[]);a.forEach(function(a){switch(a.type){case"image":return d("MAWBridgeFireAndForget").fireAndForget("backend","optimisticUploadMedia",{file:a.file,threadId:c,thumbnail:d("MAWMediaUtils").convertJpegThumbnailArrayBufferToFile(a.args.thumbnailUrlAndSpec.jpegThumbnail)});case"video":return d("MAWBridgeFireAndForget").fireAndForget("backend","optimisticUploadMedia",{file:a.file,threadId:c,thumbnail:d("MAWMediaUtils").convertJpegThumbnailArrayBufferToFile(a.args.thumbnailUrlAndSpec.jpegThumbnail)});case"audio":return d("MAWBridgeFireAndForget").fireAndForget("backend","optimisticUploadMedia",{file:a.file,threadId:c,thumbnail:null});case"document":return d("MAWBridgeFireAndForget").fireAndForget("backend","optimisticUploadMedia",{file:a.file,threadId:c,thumbnail:null})}});return(h||(h=b("Promise"))).resolve()}))}g.MAWMediaManagerAttachments=i;g.preprocess=a;g.clearAttachments=e;g.upload=f}),98); __d("logMAWEditMessage",["I64","LSMessagingThreadTypeUtil","LsFalcoEventEntryPoint","LsMessageActionFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b,e,f){if(d("LSMessagingThreadTypeUtil").isSecure(a))return;c("LsMessageActionFalcoEvent").log(function(){return{action:{type:f},error:{message:void 0},extra:{is_community_chats:d("LSMessagingThreadTypeUtil").isPublicCMThread(a)?"1":"0"},message:{attachment_type:"",entry_point:d("LsFalcoEventEntryPoint").messageActions,id:"",recipient_id:(h||(h=d("I64"))).to_string(e)},thread:{group_size:"",id:b!=null?(h||(h=d("I64"))).to_string(b):void 0,type:d("LSMessagingThreadTypeUtil").isGroup(a)?2:1}}})}g["default"]=a}),98); __d("LSRemoveMediaSendJobs",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[];return b.sequence([function(c){return b.forEach(b.filter(b.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),function(a){return a["delete"]()})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSRemoveMediaSendJobsStoredProcedure",["LSRemoveMediaSendJobs"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.offlineThreadingId;return c("LSRemoveMediaSendJobs").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("LSInsertPhase2PendingTask",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[],d=[];return b.sequence([function(e){return b.sequence([function(d){return b.db.table(12).fetch([[[a[0]]],"optimistic"]).next().then(function(a,b){var d=a.done;a=a.value;return d?c[0]=void 0:(b=a.item,c[0]=b.threadKey)})},function(d){return b.i64.neq(c[0],void 0)?b.sequence([function(d){return c[3]=b.i64.of_float(Date.now()),b.db.table(2).add({taskId:void 0,taskValue:a[0],queueName:[b.i64.to_string(c[0]),"_multi_media"].join(""),context:"4",enqueueTimestampMs:c[3],pluginType:a[1]})},function(a){return c[2]=void 0}]):b.resolve(c[2]=b.i64.cast([0,1002]))},function(a){return d[0]=c[2]}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSGetMessageAttributionParams",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[],d=[];return b.sequence([function(e){return b.sequence([function(d){return b.filter(b.db.table(31).fetch(),function(b){return b.offlineThreadingId===a[0]}).next().then(function(a,b){var d=a.done;a=a.value;return d?(d=[void 0,void 0,void 0],c[0]=d[0],c[1]=d[1],c[2]=d[2],d):(b=a.item,d=[b.threadAttributionSource,b.platformRef,b.platformToken],c[0]=d[0],c[1]=d[1],c[2]=d[2],d)})},function(a){return a=[c[0],c[1],c[2]],d[0]=a[0],d[1]=a[1],d[2]=a[2],a}])},function(a){return b.resolve(d)}])}e.exports=a}),null); __d("LSIssueSendAttachmentMessageTask",["LSAppendDataTraceAddon","LSArrayGetObjectAt","LSIssueNewTaskWithExtraOperationsAndGetTaskID","LSPredefineTraceForTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(e){return d[0]=c.i64.of_int32(a[5].length),c.i64.gt(d[0],c.i64.cast([0,0]))?c.loopAsync(d[0],function(e){return d[5]=e,c.sequence([function(e){return c.nativeTypeOperation("Array",b("LSArrayGetObjectAt"),a[5],d[5]).then(function(a){return a=a,d[6]=a[0],d[7]=a[1],a})},function(b){return c.forEach(c.filter(c.db.table(16).fetch([[[a[1],a[3]]]]),function(b){return c.i64.eq(b.threadKey,a[1])&&b.messageId===a[3]&&c.i64.eq(b.attachmentIndex,d[5])&&c.i64.eq(b.authorityLevel,c.i64.cast([0,20]))}),function(a){var b=a.update;a.item;return b({attachmentFbid:c.i64.to_string(d[6])})})}])}):c.resolve()},function(b){return c.i64.eq(void 0,c.i64.cast([0,12]))?d[1]=c.i64.cast([0,10]):(a[9]?d[5]=c.i64.cast([0,9]):d[5]=c.i64.cast([0,3]),d[1]=d[5]),c.db.table(9).fetch([[[a[1]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[2]=c.i64.cast([0,1]):(b=a.item,d[6]=b.syncGroup,c.i64.neq(d[6],void 0)?d[5]=d[6]:d[5]=c.i64.cast([0,1]),d[2]=d[5])})},function(e){return c.storedProcedure(b("LSIssueNewTaskWithExtraOperationsAndGetTaskID"),c.i64.to_string(a[1]),c.i64.cast([0,46]),"",void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),d[2],void 0,c.i64.cast([0,0]),void 0,c.i64.cast([0,0])).then(function(a){return a=a,d[4]=a[0],a})},function(e){return a[12]!==void 0?c.sequence([function(e){return c.storedProcedure(b("LSPredefineTraceForTask"),a[12],d[4],c.i64.to_string(c.i64.cast([0,46])),a[3])},function(d){return c.storedProcedure(b("LSAppendDataTraceAddon"),a[12],c.i64.cast([0,20]),c.i64.cast([0,1]),void 0,void 0)}]):c.resolve()},function(b){return c.db.table(31).add({taskId:d[4],threadKey:a[1],offlineThreadingId:a[3],threadAttributionSource:a[6],platformRef:a[10],platformToken:a[11],replySourceId:a[7],replySourceType:a[8],sendType:d[1],markThreadRead:!1})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSSendPhase1MultiPhotoMessageV2",["LSArrayGetObjectAt","LSGetMessageAttributionParams","LSIssueSendAttachmentMessageTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(f){return c.sequence([function(b){return d[0]=c.createArray(),d[1]=new c.Map(),d[2]=new c.Map(),d[3]=!1,d[4]=c.i64.cast([0,0]),c.forEach(c.sortBy(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),[["inMessageIndex","ASC"]]),function(a){a=a.item;return d[7]=a.fbid,d[4]=c.i64.add(d[4],c.i64.cast([0,1])),c.i64.neq(d[7],void 0)?d[8]=(d[0].push(d[7]),d[0]):0})},function(e){return d[5]=c.i64.of_int32(d[0].length),c.i64.neq(d[5],d[4])||c.i64.eq(d[4],c.i64.cast([0,0]))?c.resolve(d[6]=c.i64.cast([0,10002])):c.sequence([function(b){return c.db.table(12).fetch([[[a[0]]],"optimistic"]).next().then(function(a,b){var c=a.done;a=a.value;return c?(c=[void 0,void 0,void 0,void 0,void 0],d[7]=c[0],d[8]=c[1],d[9]=c[2],d[10]=c[3],d[11]=c[4],c):(b=a.item,c=[b.threadKey,b.senderId,b.text,b.replySourceId,b.replySourceTypeV2],d[7]=c[0],d[8]=c[1],d[9]=c[2],d[10]=c[3],d[11]=c[4],c)})},function(e){return c.i64.eq(d[7],void 0)||c.i64.eq(d[8],void 0)?c.resolve((c.i64.eq(d[7],void 0)?d[14]=c.i64.cast([0,10003]):d[14]=c.i64.cast([0,10004]),d[13]=d[14])):c.sequence([function(a){return c.db.table(9).fetch([[[d[7]]]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[14]=void 0:(b=a.item,d[14]=b.threadType)})},function(b){return c.filter(c.db.table(31).fetch(),function(b){return b.offlineThreadingId===a[0]}).next().then(function(a,b){var c=a.done;a=a.value;return c?(c=[void 0,void 0,void 0,void 0,void 0,void 0],d[16]=c[0],d[17]=c[1],d[18]=c[2],d[19]=c[3],d[20]=c[4],d[21]=c[5],c):(b=a.item,c=[b.platformRef,b.platformToken,b.initiatingSource,void 0,void 0,void 0],d[16]=c[0],d[17]=c[1],d[18]=c[2],d[19]=c[3],d[20]=c[4],d[21]=c[5],c)})},function(e){return c.i64.neq(d[14],void 0)?c.sequence([function(e){return d[24]=d[1].keys(),d[25]=c.i64.of_int32(d[24].length),c.i64.gt(d[25],c.i64.cast([0,0]))?c.loopAsync(d[25],function(e){return d[31]=e,c.sequence([function(a){return c.nativeTypeOperation("Array",b("LSArrayGetObjectAt"),d[24],d[31]).then(function(a){return a=a,d[32]=a[0],d[33]=a[1],a})},function(e){return d[34]=d[2].get(d[32]),d[2],d[35]=c.i64.to_string(d[34]),d[35]!==void 0?c.sequence([function(a){return c.nativeTypeOperation("Array",b("LSArrayGetObjectAt"),d[24],d[31]).then(function(a){return a=a,d[36]=a[0],d[37]=a[1],a})},function(b){return d[38]=d[1].get(d[32]),d[1],c.forEach(c.filter(c.db.table(16).fetch([[[d[7],a[0],d[36]]]]),function(b){return c.i64.eq(b.threadKey,d[7])&&c.i64.eq(c.i64.cast([0,0]),c.i64.cast([0,0]))&&b.messageId===a[0]&&b.attachmentFbid===d[36]}),function(a){var b=a.update;a.item;return b({attachmentFbid:d[35],originalFileHash:d[38]})})}]):c.resolve()}])}):c.resolve()},function(e){return c.storedProcedure(b("LSGetMessageAttributionParams"),a[0]).then(function(a){return a=a,d[26]=a[0],d[27]=a[1],d[28]=a[2],a})},function(e){return c.i64.neq(d[26],void 0)?d[29]=d[26]:d[29]=c.i64.cast([0,0]),c.storedProcedure(b("LSIssueSendAttachmentMessageTask"),d[8],d[7],d[14],a[0],d[9],d[0],d[29],d[10],d[11],d[3],d[16],d[17],a[1])},function(a){return c.i64.ge(c.i64.cast([0,0]),c.i64.cast([0,0]))?d[30]=void 0:d[30]=c.i64.cast([0,10006]),d[23]=d[30]}]):c.resolve(d[23]=c.i64.cast([0,10005]))},function(a){return d[13]=d[23]}])},function(a){return d[6]=d[13]}])},function(a){return e[0]=d[6]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSResumeMediaSendJob",["LSInsertPhase2PendingTask","LSSendPhase1MultiPhotoMessageV2"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(f){return c.sequence([function(b){return d[0]=new c.Map(),d[1]=new c.Map(),d[1].set("main_job_succeeded",!1),d[1].set("resume_failed",!1),d[1].set("error",void 0),d[1].set("running_sub_job_states",d[0]),d[2]=new c.Map(),d[2].set("should_transcode",!1),d[2].set("use_double_phase",!1),d[2].set("send_by_server",!1),d[2].set("is_secure",!1),d[2].set("should_dedupe",!1),c.sortBy(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),[["state","ASC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?0:(b=a.item,d[2].set("should_transcode",b.shouldTranscode),d[2].set("use_double_phase",b.useDoublePhase),d[2].set("send_by_server",b.sendByServer),d[2].set("is_secure",b.isSecure))})},function(b){return d[4]=new c.Map(),c.forEach(c.sortBy(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),[["inMessageIndex","ASC"]]),function(a){a=a.item;return d[13]=a.offlineAttachmentId,d[11]=a.state,d[12]=a.error,c.i64.eq(d[11],c.i64.cast([-1,4294967293]))?d[10]=!0:(c.i64.eq(d[11],c.i64.cast([0,1]))?d[14]=!0:(c.i64.eq(d[11],c.i64.cast([0,3]))?d[15]=!0:(c.i64.eq(d[11],c.i64.cast([0,5]))?d[16]=!0:(c.i64.eq(d[11],c.i64.cast([0,13]))?d[17]=!0:(c.i64.eq(d[11],c.i64.cast([0,7]))?d[18]=!0:(c.i64.eq(d[11],c.i64.cast([0,9]))?d[19]=!0:(c.i64.eq(d[11],c.i64.cast([0,11]))?d[20]=!0:d[20]=!1,d[19]=d[20]),d[18]=d[19]),d[17]=d[18]),d[16]=d[17]),d[15]=d[16]),d[14]=d[15]),d[10]=d[14]),d[10]?c.resolve(c.i64.eq(d[11],c.i64.cast([0,5]))||c.i64.eq(d[11],c.i64.cast([0,11]))?0:d[4].set(d[13],d[11])):c.i64.neq(d[12],void 0)?c.resolve((d[1].set("resume_failed",!0),d[1].set("error",d[12]))):(c.i64.eq(d[11],c.i64.cast([-1,4294967295]))?d[14]=c.i64.cast([0,5]):(c.i64.eq(d[11],c.i64.cast([-1,4294967294]))?(d[16]=d[2].get("should_transcode"),d[2],d[15]=d[16]?c.i64.cast([0,1]):c.i64.cast([0,3])):(c.i64.eq(d[11],c.i64.cast([0,2]))?d[16]=c.i64.cast([0,3]):(c.i64.eq(d[11],c.i64.cast([0,4]))?(d[18]=d[2].get("send_by_server"),d[2],d[19]=d[2].get("use_double_phase"),d[2],d[17]=d[18]?d[19]?c.i64.cast([0,13]):void 0:c.i64.cast([0,5])):(c.i64.eq(d[11],c.i64.cast([0,6]))?(d[19]=d[2].get("use_double_phase"),d[2],d[18]=d[19]?c.i64.cast([0,13]):void 0):(c.i64.eq(d[11],c.i64.cast([0,14]))?(d[20]=d[2].get("use_double_phase"),d[2],d[21]=d[2].get("should_transcode"),d[2],d[19]=d[20]?d[21]?c.i64.cast([0,7]):c.i64.cast([0,9]):void 0):(c.i64.eq(d[11],c.i64.cast([0,8]))?d[20]=c.i64.cast([0,9]):(c.i64.eq(d[11],c.i64.cast([0,10]))?(d[22]=d[2].get("send_by_server"),d[2],d[21]=d[22]?void 0:c.i64.cast([0,11])):(c.i64.eq(d[11],c.i64.cast([0,12]))?d[22]=void 0:d[22]=void 0,d[21]=d[22]),d[20]=d[21]),d[19]=d[20]),d[18]=d[19]),d[17]=d[18]),d[16]=d[17]),d[15]=d[16]),d[14]=d[15]),c.i64.neq(d[14],void 0)?c.sequence([function(a){return c.forEach(c.db.table(51).fetch([[[d[13]]]]),function(a){var b=a.update;a.item;return b({state:d[14]})})},function(a){return c.i64.eq(d[14],c.i64.cast([0,5]))||c.i64.eq(d[14],c.i64.cast([0,11]))?0:d[4].set(d[13],d[14])}]):c.resolve())})},function(b){return c.sortBy(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),[["state","ASC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[5]=void 0:(b=a.item,d[5]=b.state)})},function(e){return c.i64.neq(d[5],void 0)?(d[10]=d[2].get("send_by_server"),d[2],d[11]=d[2].get("use_double_phase"),d[2],d[12]=d[2].get("use_double_phase"),d[2],(d[10]?d[11]?c.i64.eq(d[5],c.i64.cast([0,10])):c.i64.eq(d[5],c.i64.cast([0,4])):d[12]?c.i64.eq(d[5],c.i64.cast([0,12])):c.i64.eq(d[5],c.i64.cast([0,6])))?c.resolve(d[1].set("main_job_succeeded",!0)):c.i64.eq(d[5],c.i64.cast([0,5]))?c.sequence([function(b){return d[13]=void 0,c.forEach(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),function(a){a=a.item;return d[15]=a.error,c.i64.eq(d[15],void 0)?(c.i64.neq(a.fbid,void 0)?d[16]=void 0:d[16]=c.i64.cast([0,9]),d[14]=d[16]):d[14]=d[15],c.i64.neq(d[14],void 0)?d[13]=d[14]:0})},function(e){return c.i64.neq(d[13],void 0)?c.resolve((d[1].set("resume_failed",!0),d[1].set("error",d[13]))):c.sequence([function(e){return d[14]=d[2].get("is_secure"),d[2],d[14]?c.sequence([function(b){return d[16]=c.createArray(),d[17]=new c.Map(),d[18]=new c.Map(),d[19]=!1,d[20]=c.i64.cast([0,0]),c.forEach(c.sortBy(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),[["inMessageIndex","ASC"]]),function(a){a=a.item;return d[25]=a.fbid,d[20]=c.i64.add(d[20],c.i64.cast([0,1])),c.i64.neq(d[25],void 0)?d[26]=(d[16].push(d[25]),d[16]):0})},function(b){return d[21]=c.createArray(),c.forEach(c.sortBy(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),[["inMessageIndex","ASC"]]),function(a){a=a.item;return d[25]=a.metadata,d[25]!==void 0?d[26]=(d[21].push(d[25]),d[21]):0})},function(a){return d[22]=c.i64.of_int32(d[16].length),d[23]=c.i64.of_int32(d[21].length),c.i64.neq(d[22],d[20])||c.i64.neq(d[23],d[20])?d[24]=c.i64.cast([0,11]):(function(a){c.logger(a).debug(a)}("[TincanLS][LSSecureMailboxSendSecureMediaMessageStoredProcedure] Started"),function(a){c.logger(a).debug(a)}("[TincanLS][LSSecureMailboxSendSecureMediaMessageStoredProcedure] Completed"),d[24]=void 0),d[15]=d[24]}]):c.sequence([function(e){return c.storedProcedure(b("LSSendPhase1MultiPhotoMessageV2"),a[0],a[2]).then(function(a){return a=a,d[16]=a[0],a})},function(b){return c.i64.eq(d[16],void 0)?c.forEach(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),function(a){var b=a.update;a.item;return b({state:c.i64.cast([0,6])})}):c.resolve()},function(a){return d[15]=d[16]}])},function(b){return c.i64.eq(d[15],void 0)?(d[16]=d[2].get("send_by_server"),d[2],d[17]=d[2].get("use_double_phase"),d[2],d[18]=d[2].get("use_double_phase"),d[2],(d[16]?d[17]?c.i64.eq(c.i64.cast([0,6]),c.i64.cast([0,10])):c.i64.eq(c.i64.cast([0,6]),c.i64.cast([0,4])):d[18]?c.i64.eq(c.i64.cast([0,6]),c.i64.cast([0,12])):c.i64.eq(c.i64.cast([0,6]),c.i64.cast([0,6])))?c.resolve(d[1].set("main_job_succeeded",!0)):(c.i64.eq(c.i64.cast([0,6]),c.i64.cast([-1,4294967295]))?d[19]=c.i64.cast([0,5]):(c.i64.eq(c.i64.cast([0,6]),c.i64.cast([-1,4294967294]))?(d[21]=d[2].get("should_transcode"),d[2],d[20]=d[21]?c.i64.cast([0,1]):c.i64.cast([0,3])):(c.i64.eq(c.i64.cast([0,6]),c.i64.cast([0,2]))?d[21]=c.i64.cast([0,3]):(c.i64.eq(c.i64.cast([0,6]),c.i64.cast([0,4]))?(d[23]=d[2].get("send_by_server"),d[2],d[24]=d[2].get("use_double_phase"),d[2],d[22]=d[23]?d[24]?c.i64.cast([0,13]):void 0:c.i64.cast([0,5])):(c.i64.eq(c.i64.cast([0,6]),c.i64.cast([0,6]))?(d[24]=d[2].get("use_double_phase"),d[2],d[23]=d[24]?c.i64.cast([0,13]):void 0):(c.i64.eq(c.i64.cast([0,6]),c.i64.cast([0,14]))?(d[25]=d[2].get("use_double_phase"),d[2],d[26]=d[2].get("should_transcode"),d[2],d[24]=d[25]?d[26]?c.i64.cast([0,7]):c.i64.cast([0,9]):void 0):(c.i64.eq(c.i64.cast([0,6]),c.i64.cast([0,8]))?d[25]=c.i64.cast([0,9]):(c.i64.eq(c.i64.cast([0,6]),c.i64.cast([0,10]))?(d[27]=d[2].get("send_by_server"),d[2],d[26]=d[27]?void 0:c.i64.cast([0,11])):(c.i64.eq(c.i64.cast([0,6]),c.i64.cast([0,12]))?d[27]=void 0:d[27]=void 0,d[26]=d[27]),d[25]=d[26]),d[24]=d[25]),d[23]=d[24]),d[22]=d[23]),d[21]=d[22]),d[20]=d[21]),d[19]=d[20]),c.i64.neq(d[19],void 0)?c.sequence([function(b){return c.forEach(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),function(a){var b=a.update;a.item;return b({state:d[19]})})},function(b){return c.forEach(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),function(a){a=a.item;return d[4].set(a.offlineAttachmentId,a.state)})}]):c.resolve())):c.resolve((d[1].set("resume_failed",!0),d[1].set("error",d[15])))}])}]):c.i64.eq(d[5],c.i64.cast([0,11]))?c.sequence([function(b){return d[13]=void 0,c.forEach(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),function(a){a=a.item;return d[14]=a.error,c.i64.neq(d[14],void 0)?d[13]=d[14]:0})},function(a){return c.i64.neq(d[13],void 0)?(d[1].set("resume_failed",!0),d[1].set("error",d[13])):d[1].set("main_job_succeeded",!0)}]):c.i64.eq(d[5],c.i64.cast([0,13]))?c.sequence([function(e){return c.storedProcedure(b("LSInsertPhase2PendingTask"),a[0],a[1]).then(function(a){return a=a,d[13]=a[0],a})},function(b){return c.i64.neq(d[13],void 0)?c.resolve((d[1].set("resume_failed",!0),d[1].set("error",d[13]))):c.sequence([function(b){return c.forEach(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),function(a){var b=a.update;a.item;return b({state:c.i64.cast([0,14])})})},function(b){return d[1].set("main_job_succeeded",!0),c.forEach(c.filter(c.db.table(51).fetch(),function(b){return b.offlineThreadingId===a[0]}),function(a){a=a.item;return d[4].set(a.offlineAttachmentId,a.state)})}])}]):c.resolve(0)):c.resolve((d[1].set("resume_failed",!0),d[1].set("error",c.i64.cast([0,11]))))},function(a){return d[7]=d[1].get("main_job_succeeded"),d[1],d[8]=d[1].get("resume_failed"),d[1],d[9]=d[1].get("error"),d[1],a=[d[7],d[8],d[9],d[4]],e[0]=a[0],e[1]=a[1],e[2]=a[2],e[3]=a[3],a}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSResumeMediaSendJobStoredProcedure",["LSResumeMediaSendJob"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.jobId;d[1]=b.pluginType;d[2]=b.dataTraceId;return c("LSResumeMediaSendJob").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MWPOpenComposerUtils",["I64","LSRemoveMediaSendJobsStoredProcedure","LSResumeMediaSendJobStoredProcedure","MWConsole","Promise"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,c){return a.table("media_staging").get(c).then(function(d){if(d!=null)return a.table("media_staging")["delete"](c);else return(i||(i=b("Promise"))).resolve()})}function e(a,c,d){return a.table("media_staging").get(c).then(function(c){if(c!=null)return a.table("media_staging").put(d(c));else return(i||(i=b("Promise"))).resolve()})}function f(a,c,d,e,f){return a.table("attachments").get(c,d,e).then(function(g){if(g!=null)return a.table("attachments").upsert([c,d,e],f(g));else return(i||(i=b("Promise"))).resolve()})}function j(a,e,f){return c("LSResumeMediaSendJobStoredProcedure")(a,{dataTraceId:(f=f)!=null?f:void 0,jobId:e,pluginType:(h||(h=d("I64"))).zero}).then(function(d){d=d[0];if(d)return c("LSRemoveMediaSendJobsStoredProcedure")(a,{offlineThreadingId:e});else return(i||(i=b("Promise"))).resolve()})}g.deleteMediaStaging=a;g.updateMediaStaging=e;g.updateAttachment=f;g.resumeSendJob=j}),98); __d("MWPComposerMediaUploadUtil",["FBLogger","I64","LSIntEnum","MessagingAttachmentType","ResumableUploadServiceState.enum","URI","XComposerPhotoUploader","cometIsMimeTypeForMedia","cr:7187","emptyFunction","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k="messenger_file",l="messenger_audio",m="messenger_image",n="messenger_video",o="file_type",p="image_type",q="video_type",r="audio_type",s="FILE_ATTACHMENT",t="VOICE_MESSAGE",u="target_id";function v(a,b,d,e,f,g,h,i,j,k,l){b===void 0&&(b=c("emptyFunction"));e===void 0&&(e=c("emptyFunction"));f===void 0&&(f=!1);var m="/ajax/mercury/upload.php";i===!0&&(m="/ajax/mercury/chatsupportuser/upload.php");e=new(c("XComposerPhotoUploader"))({concurrentLimit:3,onUploadFailure:e,onUploadProgress:b,onUploadStart:function(b,c){a&&a(b,c.upload._file.size,c.upload._file.type)},onUploadSuccess:function(a,b){b=b.response.payload.metadata;var e;if(b==null)c("FBLogger")("messenger_browser_clients").warn("Empty payload"),e={};else{b=b[0];b!=null?e=b:(c("FBLogger")("messenger_browser_clients").warn("Empty metadata isChatSupportUser: %s",i),e={})}b=e.fbid;var f=e.video_id,g=e.audio_id,h=e.gif_id;e=e.file_id;g=(b=(f=(b=(b=b)!=null?b:f)!=null?b:g)!=null?f:h)!=null?b:e;d(a,g);if(g==null)throw c("unrecoverableViolation")("Unrecognized file upload success payload","messenger_comet")},retryLimit:1,uploadEndpoint:m});b={};b.data={chat_support_user_id:i===!0&&j!=null?j:void 0,nonce:i===!0&&l!=null?l:void 0,voice_clip:f?!0:void 0,voice_clip_waveform_data:f?JSON.stringify(k):void 0};e.getAsyncFileUploadRequest(g,h,b).send()}function w(a,e,f,g,i,v){f===void 0&&(f=c("emptyFunction"));if(!b("cr:7187"))return;var w=(j||(j=c("URI"))).getRequestURI().getDomain(),y=/workplace.com/i.test(w)?"workplace.com":"facebook.com";g.forEach(function(g,j){var w=x(g),z=k,A=o,B=s;switch(w){case(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE):z=m;A=p;break;case(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO):z=l;A=r;B=t;break;case(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO):z=n;A=q;break;default:break}w=b("cr:7187").create({consumer:z,customHttpHeaders:new Map([[u,v],[A,B]]),serviceDomain:y});w.addListener((z=c("ResumableUploadServiceState.enum")).START,function(){a&&a(i[j],g.size,g.type)});w.addListener(z.SUCCESS,function(a){e(i[j],a.media_id)});w.addListener(z.FAIL,function(a){f(i[j],{response:a})});w.addListener(z.TRANSPORT_FAILURE,function(a){f(i[j],{response:a})});void w.resume(g)})}function a(a,e,f,g,j,k,l,m,n,o,p,q){e===void 0&&(e=c("emptyFunction"));g===void 0&&(g=c("emptyFunction"));j===void 0&&(j=!1);if(b("cr:7187")&&q!=null&&m!==!0){var r=[],s=[],t=[],u=[];k.forEach(function(a,b){var e=x(a);(i||(i=d("I64"))).equal(e,(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO))?(r.push(a),s.push(l[b])):(t.push(a),u.push(l[b]))});r.length>0&&w(a,f,g,r,s,q);t.length>0&&v(a,e,f,g,j,t,u,m,n,o,p)}else v(a,e,f,g,j,k,l,m,n,o,p)}function x(a){a=a.type;if(d("cometIsMimeTypeForMedia").isMimeTypeForPhoto(a))return(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE);else if(a==="audio/wav")return(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO);else if(a==="image/gif")return(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE);else if(d("cometIsMimeTypeForMedia").isMimeTypeForVideo(a))return(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO);else return(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").FILE)}function e(a,b,e,f){return{action_url:void 0,attachment_fbid:a,attachment_index:(i||(i=d("I64"))).zero,attachment_type:(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO),cta1_title:void 0,cta2_title:void 0,cta3_title:void 0,description_text:void 0,filename:void 0,filesize:void 0,has_media:!0,has_xma:!1,image_url:void 0,mini_preview:void 0,offline_attachment_id:a,original_file_hash:void 0,playable_duration_ms:i.of_float(e*1e3),playable_url:URL.createObjectURL(b),playable_url_mime_type:b.type,preview_height:void 0,preview_url:void 0,preview_url_mime_type:void 0,preview_width:void 0,sampling_frequency_hz:f==null?void 0:f.sampling_freq,source_text:void 0,subtitle_text:void 0,title_text:void 0,waveform_data:f==null?void 0:(a=f.amplitudes)==null?void 0:a.join(","),xma_layout_type:void 0,xmas_template_type:void 0}}function f(a,b){a=a.map(function(a){return{action_url:void 0,attachment_fbid:a.offlineAttachmentId,attachment_index:(i||(i=d("I64"))).zero,attachment_type:a.attachmentType,cta1_title:void 0,cta2_title:void 0,cta3_title:void 0,description_text:void 0,filename:a.filename,filesize:void 0,has_media:!0,has_xma:!1,image_url:void 0,mini_preview:void 0,offline_attachment_id:a.offlineAttachmentId,original_file_hash:void 0,playable_duration_ms:void 0,playable_url:a.previewUrl,playable_url_mime_type:a.mimeType,preview_height:a.previewHeight,preview_url:a.previewUrl,preview_url_mime_type:void 0,preview_width:a.previewWidth,source_text:void 0,subtitle_text:void 0,title_text:void 0,xma_layout_type:void 0,xmas_template_type:void 0}});var e=[],f=[];a.forEach(function(a){(i||(i=d("I64"))).equal(a.attachment_type,(h||(h=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))&&!b?f.push(a):e.push([a])});f.length>0&&e.unshift(f);return e.map(function(a){return a.map(function(a,b){return babelHelpers["extends"]({},a,{attachment_index:(i||(i=d("I64"))).of_int32(b)})})})}g.startUpload=a;g.getAttachmentType=x;g.getAudioAttachment=e;g.createPartitionedAttachments=f}),98); __d("MWFalcoFeatureEventLogger",["I64","LSMessagingThreadTypeUtil","MessengerWebEventsFalcoEvent","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b,e,f,g){c("gkx")("1471")&&c("MessengerWebEventsFalcoEvent").log(function(){return{entry_point:a,event_name:b,is_secured:d("LSMessagingThreadTypeUtil").isSecure(g),other_user_fbid:e!=null?(h||(h=d("I64"))).to_string(e):null,thread_fbid:(h||(h=d("I64"))).to_string(f)}})}g.logEvent=a}),98); __d("getMWOtherUserFBID",["I64","LSMessagingThreadTypeUtil","ReQL","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b,c,d){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c,e){var f=d("LSMessagingThreadTypeUtil").isOneToOne(e);if(!f)return null;f=d("LSMessagingThreadTypeUtil").isSecure(e);if(!f)return c;e=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("participants"),["contactId"]).getKeyRange(c).filter(function(a){a=a.contactId;return!(h||(h=d("I64"))).equal(a,b)}).take(1)));return e==null?void 0:e.contactId});return i.apply(this,arguments)}g.getMWOtherUserFBID=a}),98); __d("useMWFalcoFeatureEventLogger",["MWFalcoFeatureEventLogger","MWPActor.react","getMWOtherUserFBID","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useCallback;function a(a,b){var e=(h||(h=c("useReStore")))(),f=d("MWPActor.react").useActor();return j(function(c,g){d("getMWOtherUserFBID").getMWOtherUserFBID(e,f,a,b).then(function(e){d("MWFalcoFeatureEventLogger").logEvent(c,g,e,a,b)})["catch"](function(){})},[e,f,a,b])}g["default"]=a}),98); __d("MwbActorExperienceEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("3231");b=d("FalcoLoggerInternal").create("mwb_actor_experience_event",a);e=b;g["default"]=e}),98); __d("WebUserFlowLoggingDataContextProvider.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;c=b.createContext;var j=b.useMemo,k=b.useRef,l=c({loggingDataRef:{current:{}},setLoggingData:function(){}});function a(a){a=a.children;var b=k({}),c=function(a){b.current=a},d=j(function(){return{loggingDataRef:b,setLoggingData:c}},[]);return i.jsx(l.Provider,{value:d,children:a})}a.displayName=a.name+" [from "+f.id+"]";g.WebUserFlowLoggingDataContext=l;g.WebUserFlowLoggingDataContextProvider=a}),98); __d("LSMarkSubJobCompletedV2",["LSArrayGetObjectAt"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return d[0]=c.createArray(),c.db.table(51).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?0:(b=a.item,d[3]=new c.Map(),d[3].set("offline_attachment_id",b.offlineAttachmentId),d[3].set("offline_threading_id",b.offlineThreadingId),d[3].set("in_message_index",b.inMessageIndex),d[3].set("attachment_type",b.attachmentType),d[3].set("should_transcode",b.shouldTranscode),d[3].set("use_double_phase",b.useDoublePhase),d[3].set("send_by_server",b.sendByServer),d[3].set("is_secure",b.isSecure),d[3].set("state",b.state),d[3].set("fbid",b.fbid),d[3].set("metadata",b.metadata),d[3].set("error",b.error),d[3].set("message_id",b.messageId),d[4]=(d[0].push(d[3]),d[0]))})},function(e){return d[2]=c.i64.of_int32(d[0].length),c.i64.neq(d[2],c.i64.cast([0,0]))?c.sequence([function(a){return c.nativeTypeOperation("Array",b("LSArrayGetObjectAt"),d[0],c.i64.cast([0,0])).then(function(a){return a=a,d[3]=a[0],d[4]=a[1],a})},function(b){return d[5]=d[3].get("state"),d[3],c.i64.neq(a[1],void 0)?a[2]!==void 0?(c.i64.eq(d[5],c.i64.cast([-1,4294967293]))?(d[7]=c.i64.cast([-1,4294967295]),d[6]=d[7]):(c.i64.eq(d[5],c.i64.cast([0,1]))?d[7]=c.i64.cast([0,2]):(c.i64.eq(d[5],c.i64.cast([0,3]))?d[8]=c.i64.cast([0,4]):(c.i64.eq(d[5],c.i64.cast([0,5]))?d[9]=c.i64.cast([0,6]):(c.i64.eq(d[5],c.i64.cast([0,13]))?d[10]=c.i64.cast([0,14]):(c.i64.eq(d[5],c.i64.cast([0,7]))?d[11]=c.i64.cast([0,8]):(c.i64.eq(d[5],c.i64.cast([0,9]))?d[12]=c.i64.cast([0,10]):(c.i64.eq(d[5],c.i64.cast([0,11]))?d[13]=c.i64.cast([0,12]):d[13]=d[5],d[12]=d[13]),d[11]=d[12]),d[10]=d[11]),d[9]=d[10]),d[8]=d[9]),d[7]=d[8]),d[6]=d[7]),c.forEach(c.db.table(51).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({state:d[6],fbid:a[1],messageId:a[2],metadata:a[3]})})):(c.i64.eq(d[5],c.i64.cast([-1,4294967293]))?(d[7]=c.i64.cast([-1,4294967295]),d[6]=d[7]):(c.i64.eq(d[5],c.i64.cast([0,1]))?d[7]=c.i64.cast([0,2]):(c.i64.eq(d[5],c.i64.cast([0,3]))?d[8]=c.i64.cast([0,4]):(c.i64.eq(d[5],c.i64.cast([0,5]))?d[9]=c.i64.cast([0,6]):(c.i64.eq(d[5],c.i64.cast([0,13]))?d[10]=c.i64.cast([0,14]):(c.i64.eq(d[5],c.i64.cast([0,7]))?d[11]=c.i64.cast([0,8]):(c.i64.eq(d[5],c.i64.cast([0,9]))?d[12]=c.i64.cast([0,10]):(c.i64.eq(d[5],c.i64.cast([0,11]))?d[13]=c.i64.cast([0,12]):d[13]=d[5],d[12]=d[13]),d[11]=d[12]),d[10]=d[11]),d[9]=d[10]),d[8]=d[9]),d[7]=d[8]),d[6]=d[7]),c.forEach(c.db.table(51).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({state:d[6],fbid:a[1],metadata:a[3]})})):c.i64.neq(a[4],void 0)?(c.i64.eq(d[5],c.i64.cast([-1,4294967293]))?(d[7]=c.i64.cast([-1,4294967295]),d[6]=d[7]):(c.i64.eq(d[5],c.i64.cast([0,1]))?d[7]=c.i64.cast([0,2]):(c.i64.eq(d[5],c.i64.cast([0,3]))?d[8]=c.i64.cast([0,4]):(c.i64.eq(d[5],c.i64.cast([0,5]))?d[9]=c.i64.cast([0,6]):(c.i64.eq(d[5],c.i64.cast([0,13]))?d[10]=c.i64.cast([0,14]):(c.i64.eq(d[5],c.i64.cast([0,7]))?d[11]=c.i64.cast([0,8]):(c.i64.eq(d[5],c.i64.cast([0,9]))?d[12]=c.i64.cast([0,10]):(c.i64.eq(d[5],c.i64.cast([0,11]))?d[13]=c.i64.cast([0,12]):d[13]=d[5],d[12]=d[13]),d[11]=d[12]),d[10]=d[11]),d[9]=d[10]),d[8]=d[9]),d[7]=d[8]),d[6]=d[7]),c.forEach(c.db.table(51).fetch([[[a[0]]]]),function(b){var c=b.update;b.item;return c({state:d[6],error:a[4]})})):(c.i64.eq(d[5],c.i64.cast([-1,4294967293]))?(d[7]=c.i64.cast([-1,4294967295]),d[6]=d[7]):(c.i64.eq(d[5],c.i64.cast([0,1]))?d[7]=c.i64.cast([0,2]):(c.i64.eq(d[5],c.i64.cast([0,3]))?d[8]=c.i64.cast([0,4]):(c.i64.eq(d[5],c.i64.cast([0,5]))?d[9]=c.i64.cast([0,6]):(c.i64.eq(d[5],c.i64.cast([0,13]))?d[10]=c.i64.cast([0,14]):(c.i64.eq(d[5],c.i64.cast([0,7]))?d[11]=c.i64.cast([0,8]):(c.i64.eq(d[5],c.i64.cast([0,9]))?d[12]=c.i64.cast([0,10]):(c.i64.eq(d[5],c.i64.cast([0,11]))?d[13]=c.i64.cast([0,12]):d[13]=d[5],d[12]=d[13]),d[11]=d[12]),d[10]=d[11]),d[9]=d[10]),d[8]=d[9]),d[7]=d[8]),d[6]=d[7]),c.forEach(c.db.table(51).fetch([[[a[0]]]]),function(a){var b=a.update;a.item;return b({state:d[6]})}))}]):c.resolve()}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSMarkSubJobCompletedV2StoredProcedure",["LSMarkSubJobCompletedV2"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.offlineAttachmentId;d[1]=b.fbid;d[2]=b.messageId;d[3]=b.metadata;d[4]=b.error;return c("LSMarkSubJobCompletedV2").apply(void 0,d.concat([a]))}g["default"]=a}),98);/*FB_PKG_DELIM*/ __d("GroupsCometAdminActivityLogItemSeeDetailsDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6764675383631166"}),null); __d("GroupsCometAdminActivityLogItemSeeDetailsDialogQuery$Parameters",["CometUFIIsRTAEnabled.relayprovider","CometUFIReactionsEnableShortName.relayprovider","GroupsCometAdminActivityLogItemSeeDetailsDialogQuery_facebookRelayOperation","IsMergQAPolls.relayprovider","IsWorkUser.relayprovider","StoriesArmadilloReplyEnabled.relayprovider","StoriesRing.relayprovider"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("GroupsCometAdminActivityLogItemSeeDetailsDialogQuery_facebookRelayOperation"),metadata:{},name:"GroupsCometAdminActivityLogItemSeeDetailsDialogQuery",operationKind:"query",text:null,providedVariables:{__relay_internal__pv__IsWorkUserrelayprovider:b("IsWorkUser.relayprovider"),__relay_internal__pv__IsMergQAPollsrelayprovider:b("IsMergQAPolls.relayprovider"),__relay_internal__pv__CometUFIReactionsEnableShortNamerelayprovider:b("CometUFIReactionsEnableShortName.relayprovider"),__relay_internal__pv__CometUFIIsRTAEnabledrelayprovider:b("CometUFIIsRTAEnabled.relayprovider"),__relay_internal__pv__StoriesArmadilloReplyEnabledrelayprovider:b("StoriesArmadilloReplyEnabled.relayprovider"),__relay_internal__pv__StoriesRingrelayprovider:b("StoriesRing.relayprovider")}}};e.exports=a}),null); __d("MWCommunityMessagingNUXQuickPromotionQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6236665646364985"}),null); __d("MWCommunityMessagingNUXQuickPromotionQuery$Parameters",["MWCommunityMessagingNUXQuickPromotionQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("MWCommunityMessagingNUXQuickPromotionQuery_facebookRelayOperation"),metadata:{},name:"MWCommunityMessagingNUXQuickPromotionQuery",operationKind:"query",text:null}};e.exports=a}),null); __d("MWChatUserBirthdayQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4679476245513562"}),null); __d("MWChatUserBirthdayQuery.graphql",["MWChatUserBirthdayQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,concreteType:"Date",kind:"LinkedField",name:"birthdate",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"day",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"month",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"year",storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatUserBirthdayQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:"user",args:null,concreteType:"User",kind:"LinkedField",name:"account_user",plural:!1,selections:[a],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatUserBirthdayQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:"user",args:null,concreteType:"User",kind:"LinkedField",name:"account_user",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("MWChatUserBirthdayQuery_facebookRelayOperation"),metadata:{},name:"MWChatUserBirthdayQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWChatUserEmailQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5146654855396537"}),null); __d("MWChatUserEmailQuery.graphql",["MWChatUserEmailQuery_facebookRelayOperation"],(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,concreteType:"Email",kind:"LinkedField",name:"all_emails",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"display_email",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_primary",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatUserEmailQuery",selections:a,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatUserEmailQuery",selections:a},params:{id:b("MWChatUserEmailQuery_facebookRelayOperation"),metadata:{},name:"MWChatUserEmailQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWChatUserPhoneNumberQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5063442323698780"}),null); __d("MWChatUserPhoneNumberQuery.graphql",["MWChatUserPhoneNumberQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,concreteType:"Phone",kind:"LinkedField",name:"all_phones",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"is_preferred",storageKey:null},{alias:null,args:null,concreteType:"PhoneNumber",kind:"LinkedField",name:"phone_number",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"universal_number",storageKey:null}],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatUserPhoneNumberQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:"user",args:null,concreteType:"User",kind:"LinkedField",name:"account_user",plural:!1,selections:[a],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatUserPhoneNumberQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:"user",args:null,concreteType:"User",kind:"LinkedField",name:"account_user",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("MWChatUserPhoneNumberQuery_facebookRelayOperation"),metadata:{},name:"MWChatUserPhoneNumberQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MWChatUserProfileLocationQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7039613476103704"}),null); __d("MWChatUserProfileLocationQuery.graphql",["MWChatUserProfileLocationQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:"StreetAddress",kind:"LinkedField",name:"address",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"region",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"postal_code",storageKey:null}],storageKey:null}],type:"User",abstractKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWChatUserProfileLocationQuery",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:[a],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"MWChatUserProfileLocationQuery",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:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("MWChatUserProfileLocationQuery_facebookRelayOperation"),metadata:{},name:"MWChatUserProfileLocationQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("MAWFetchXMAData_LinkPreviewQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="10005444746164544"}),null); __d("MAWFetchXMAData_LinkPreviewQuery.graphql",["MAWFetchXMAData_LinkPreviewQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"url"}],c=[{alias:null,args:[{fields:[{kind:"Variable",name:"url",variableName:"url"}],kind:"ObjectValue",name:"params"}],kind:"ScalarField",name:"post_reshare_xma",storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"MAWFetchXMAData_LinkPreviewQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"MAWFetchXMAData_LinkPreviewQuery",selections:c},params:{id:b("MAWFetchXMAData_LinkPreviewQuery_facebookRelayOperation"),metadata:{},name:"MAWFetchXMAData_LinkPreviewQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("useCometDynamicEntryPointDialog",["CometDialogContext","CometDialogLoadingState.react","CometRelay","CometSuspendedDialogImpl.react","clearTimeout","react","setTimeout","tracePolicyFromResource","useCometRelayEntrypointContextualEnvironmentProvider"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useContext,l=b.useEffect,m=b.useRef;function n(a){var b=a.entryPoint,e=a.environmentProvider,f=a.onClose,g=a.otherProps,h=a.preloadedEntryPoint,j=a.preloadParams;a=d("CometRelay").useEntryPointLoader(e,b);var k=a[0],n=a[1],o=a[2],p=(e=k)!=null?e:h,q=m(null);l(function(){q.current!=null&&(c("clearTimeout")(q.current),q.current=null);p.isDisposed&&n(j);return function(){q.current=c("setTimeout")(function(){k?o():h.dispose(),q.current=null},6e4)}},[o,p.isDisposed,h,j,n,k]);b=babelHelpers["extends"]({},g,{onClose:f});return i.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:h,props:b})}n.displayName=n.name+" [from "+f.id+"]";var o=function(a){return i.jsx(c("CometDialogLoadingState.react"),{onClose:a})};function a(a,b,e){var f=c("useCometRelayEntrypointContextualEnvironmentProvider")(),g=k(c("CometDialogContext"));return j(function(h,i,j,k){var l=d("CometRelay").loadEntryPoint(f,a,h),m=n,p=function(){j&&j.apply(void 0,arguments);var a=l==null?void 0:l.dispose;a&&a()};g(c("CometSuspendedDialogImpl.react"),{dialog:m,dialogProps:{entryPoint:a,environmentProvider:f,otherProps:i,preloadedEntryPoint:l,preloadParams:h},fallback:(m=e)!=null?m:o},{loadType:"entrypoint",preloadTrigger:b,tracePolicy:(i=k)!=null?i:c("tracePolicyFromResource")("comet.dialog",a.root)},p)},[f,a,g,e,b])}g["default"]=a}),98); __d("CometPhotoGrid.react",["CometAspectRatioContainer.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={item:{boxSizing:"x9f619",flexBasis:"x1yu6fn4",$$css:!0},itemEnlarged:{flexBasis:"x4pfjvb",$$css:!0},itemNarrowSpacing:{paddingTop:"x1nn3v0j",paddingEnd:"xg83lxy",paddingBottom:"x1120s5i",paddingStart:"x1h0ha7o",$$css:!0},itemWideSpacing:{paddingTop:"xyqdw3p",paddingEnd:"x10ogl3i",paddingBottom:"xg8j3zb",paddingStart:"x1k2j06m",$$css:!0},wrapper:{display:"x78zum5",flexDirection:"x1q0g3np",flexWrap:"x1a02dak",$$css:!0},wrapperNarrowSpacing:{marginTop:"x1kgmq87",marginEnd:"xwrv7xz",marginBottom:"xmgb6t1",marginStart:"x8182xy",$$css:!0},wrapperWideSpacing:{marginTop:"x1198e8h",marginEnd:"xj3m2qm",marginBottom:"x1huwwth",marginStart:"x1uirj4r",$$css:!0}};function l(a,b){return a<2&&b%3===2}function a(a){var b=a.spacing,d=b===void 0?"narrow":b;b=a.uniformGrid;var e=b===void 0?!1:b;b=babelHelpers.objectWithoutPropertiesLoose(a,["spacing","uniformGrid"]);a=j.Children.toArray(b.children);var f=a.length;return j.jsx("div",{className:(h||(h=c("stylex")))(k.wrapper,d==="narrow"&&k.wrapperNarrowSpacing,d==="wide"&&k.wrapperWideSpacing),children:j.Children.map(a,function(a,b){return j.jsx("div",{className:(h||(h=c("stylex")))(k.item,d==="wide"&&k.itemWideSpacing,d==="narrow"&&k.itemNarrowSpacing,!e&&l(b,f)&&k.itemEnlarged),children:j.jsx(c("CometAspectRatioContainer.react"),{aspectRatio:1,children:a})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("GroupsCometAdminActivityLogItemSeeDetailsDialog.entrypoint",["GroupsCometAdminActivityLogItemSeeDetailsDialogQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.routeProps;var c=a.adminActivityID,e=a.groupID;a=a.isManagementActivityLogTargetProfilePlus;c={UFI2CommentsProvider_commentsKey:"GroupsCometAdminActivityLogItem",adminActivityID:c,displayCommentsContextEnableComment:null,displayCommentsContextIsAdPreview:null,displayCommentsContextIsAggregatedShare:null,displayCommentsContextIsStorySet:null,displayCommentsFeedbackContext:null,feedbackSource:0,feedLocation:"GROUP_ADMIN_TO_MEMBER_FEEDBACK",focusCommentID:null,groupID:e,isManagementActivityLogTargetProfilePlus:a,privacySelectorRenderLocation:"COMET_STREAM",renderLocation:"group_admin_to_member_feedback",scale:d("WebPixelRatio").get(),useDefaultActor:!1};return{queries:{queryReference:{parameters:b("GroupsCometAdminActivityLogItemSeeDetailsDialogQuery$Parameters"),variables:c}}}},root:c("JSResourceForInteraction")("GroupsCometAdminActivityLogItemSeeDetailsDialog.react").__setRef("GroupsCometAdminActivityLogItemSeeDetailsDialog.entrypoint")};g["default"]=a}),98); __d("MWCommunityMessagingNUXQuickPromotionContainer.entrypoint",["JSResourceForInteraction","MWCommunityMessagingNUXQuickPromotionQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){return{extraProps:{folderId:a.folderId,isFolderRoute:a.isFolderRoute},queries:{queryRef:{parameters:c("MWCommunityMessagingNUXQuickPromotionQuery$Parameters"),variables:{isFolderRoute:a.isFolderRoute}}}}},root:c("JSResourceForInteraction")("MWCommunityMessagingNUXQuickPromotion.react").__setRef("MWCommunityMessagingNUXQuickPromotionContainer.entrypoint")};g["default"]=a}),98); __d("MWChatComposerIcons",["cr:2809"],(function(a,b,c,d,e,f,g){"use strict";g.MWChatComposerIconsGif=(a=b("cr:2809")).Gif;g.MWChatComposerIconsSticker=a.Sticker;g.MWChatComposerIconsPhoto=a.Photo;g.MWChatComposerIconsMoreActions=a.MoreActions;g.MWChatComposerIconsEmoji=a.Emoji}),98); __d("TetraMWChatComposerIcons.react",["react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={fillGrey:{fill:"xsrhx6k",$$css:!0},icon:{display:"x1lliihq",$$css:!0},moreActionsIcon:{transitionDuration:"x1k90msu",transitionProperty:"x11xpdln",transitionTimingFunction:"x1qfuztq",$$css:!0},notRotated:{transform:"x7p49u4",$$css:!0},rotated:{transform:"x1158fpu",$$css:!0},strokeGrey:{stroke:"x1dmfqyo",$$css:!0}};function a(a){var b=a.fill,d=a.size;a=a.xstyle;a=a===void 0?!1:a;return j.jsx("svg",{className:(h||(h=c("stylex")))(k.icon,k.fillGrey,a),height:String(d)+"px",viewBox:"0 0 16 16",width:String(d)+"px",x:"0px",y:"0px",children:j.jsx("path",{d:"M.783 12.705c.4.8 1.017 1.206 1.817 1.606 0 0 1.3.594 2.5.694 1 .1 1.9.1 2.9.1s1.9 0 2.9-.1 1.679-.294 2.479-.694c.8-.4 1.157-.906 1.557-1.706.018 0 .4-1.405.5-2.505.1-1.2.1-3 0-4.3-.1-1.1-.073-1.976-.473-2.676-.4-.8-.863-1.408-1.763-1.808-.6-.3-1.2-.3-2.4-.4-1.8-.1-3.8-.1-5.7 0-1 .1-1.7.1-2.5.5s-1.417 1.1-1.817 1.9c0 0-.4 1.484-.5 2.584-.1 1.2-.1 3 0 4.3.1 1 .2 1.705.5 2.505zm10.498-8.274h2.3c.4 0 .769.196.769.696 0 .5-.247.68-.747.68l-1.793.02.022 1.412 1.252-.02c.4 0 .835.204.835.704s-.442.696-.842.696H11.82l-.045 2.139c0 .4-.194.8-.694.8-.5 0-.7-.3-.7-.8l-.031-5.631c0-.4.43-.696.93-.696zm-3.285.771c0-.5.3-.8.8-.8s.8.3.8.8l-.037 5.579c0 .4-.3.8-.8.8s-.8-.4-.8-.8l.037-5.579zm-3.192-.825c.7 0 1.307.183 1.807.683.3.3.4.7.1 1-.2.4-.7.4-1 .1-.2-.1-.5-.3-.9-.3-1 0-2.011.84-2.011 2.14 0 1.3.795 2.227 1.695 2.227.4 0 .805.073 1.105-.127V8.6c0-.4.3-.8.8-.8s.8.3.8.8v1.8c0 .2.037.071-.063.271-.7.7-1.57.991-2.47.991C2.868 11.662 1.3 10.2 1.3 8s1.704-3.623 3.504-3.623z",fill:b,fillRule:"nonzero"})})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b=a.fill,d=a.size;a=a.xstyle;a=a===void 0?null:a;return j.jsx("svg",{className:(h||(h=c("stylex")))(k.icon,k.fillGrey,a),height:String(d)+"px",viewBox:"0 0 17 16",width:String(d)+"px",x:"0px",y:"0px",children:j.jsxs("g",{fillRule:"evenodd",children:[j.jsx("circle",{cx:"5.5",cy:"5.5",fill:"none",r:"1"}),j.jsx("circle",{cx:"11.5",cy:"4.5",fill:"none",r:"1"}),j.jsx("path",{d:"M5.3 9c-.2.1-.4.4-.3.7.4 1.1 1.2 1.9 2.3 2.3h.2c.2 0 .4-.1.5-.3.1-.3 0-.5-.3-.6-.8-.4-1.4-1-1.7-1.8-.1-.2-.4-.4-.7-.3z",fill:"none"}),j.jsx("path",{d:"M10.4 13.1c0 .9-.4 1.6-.9 2.2 4.1-1.1 6.8-5.1 6.5-9.3-.4.6-1 1.1-1.8 1.5-2 1-3.7 3.6-3.8 5.6z",fill:b}),j.jsx("path",{d:"M2.5 13.4c.1.8.6 1.6 1.3 2 .5.4 1.2.6 1.8.6h.6l.4-.1c1.6-.4 2.6-1.5 2.7-2.9.1-2.4 2.1-5.4 4.5-6.6 1.3-.7 1.9-1.6 1.9-2.8l-.2-.9c-.1-.8-.6-1.6-1.3-2-.7-.5-1.5-.7-2.4-.5L3.6 1.5C1.9 1.8.7 3.4 1 5.2l1.5 8.2zm9-8.9c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zm-3.57 6.662c.3.1.4.4.3.6-.1.3-.3.4-.5.4h-.2c-1-.4-1.9-1.3-2.3-2.3-.1-.3.1-.6.3-.7.3-.1.5 0 .6.3.4.8 1 1.4 1.8 1.7zM5.5 5.5c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1z",fill:b,fillRule:"nonzero"})]})})}b.displayName=b.name+" [from "+f.id+"]";function e(a){var b=a.fill,d=a.size;a=a.xstyle;a=a===void 0?!1:a;var e=b==null?"xsrhx6k":void 0,f=b==null?"x1dmfqyo":void 0;return j.jsx("svg",{className:(h||(h=c("stylex")))(k.icon,a),height:String(d)+"px",viewBox:"0 -1 17 17",width:String(d)+"px",children:j.jsxs("g",{fill:"none",fillRule:"evenodd",children:[j.jsx("path",{className:e,d:"M2.882 13.13C3.476 4.743 3.773.48 3.773.348L2.195.516c-.7.1-1.478.647-1.478 1.647l1.092 11.419c0 .5.2.9.4 1.3.4.2.7.4.9.4h.4c-.6-.6-.727-.951-.627-2.151z",fill:b}),j.jsx("circle",{className:e,cx:"8.5",cy:"4.5",fill:b,r:"1.5"}),j.jsx("path",{className:e,d:"M14 6.2c-.2-.2-.6-.3-.8-.1l-2.8 2.4c-.2.1-.2.4 0 .6l.6.7c.2.2.2.6-.1.8-.1.1-.2.1-.4.1s-.3-.1-.4-.2L8.3 8.3c-.2-.2-.6-.3-.8-.1l-2.6 2-.4 3.1c0 .5.2 1.6.7 1.7l8.8.6c.2 0 .5 0 .7-.2.2-.2.5-.7.6-.9l.6-5.9L14 6.2z",fill:b}),j.jsx("path",{className:f,d:"M13.9 15.5l-8.2-.7c-.7-.1-1.3-.8-1.3-1.6l1-11.4C5.5 1 6.2.5 7 .5l8.2.7c.8.1 1.3.8 1.3 1.6l-1 11.4c-.1.8-.8 1.4-1.6 1.3z",stroke:b,strokeLinecap:"round",strokeLinejoin:"round"})]})})}e.displayName=e.name+" [from "+f.id+"]";function l(a){var b=a.fill,d=a.isRotated;d=d===void 0?!1:d;a=a.size;return j.jsx("svg",{className:(h||(h=c("stylex")))(k.icon,k.moreActionsIcon,k.fillGrey,d?k.rotated:k.notRotated),height:String(a)+"px",viewBox:"0 0 24 24",width:String(a)+"px",children:j.jsxs("g",{fillRule:"evenodd",children:[j.jsx("polygon",{fill:"none",points:"-6,30 30,30 30,-6 -6,-6 "}),j.jsx("path",{d:"m18,11l-5,0l0,-5c0,-0.552 -0.448,-1 -1,-1c-0.5525,0 -1,0.448 -1,1l0,5l-5,0c-0.5525,0 -1,0.448 -1,1c0,0.552 0.4475,1 1,1l5,0l0,5c0,0.552 0.4475,1 1,1c0.552,0 1,-0.448 1,-1l0,-5l5,0c0.552,0 1,-0.448 1,-1c0,-0.552 -0.448,-1 -1,-1m-6,13c-6.6275,0 -12,-5.3725 -12,-12c0,-6.6275 5.3725,-12 12,-12c6.627,0 12,5.3725 12,12c0,6.6275 -5.373,12 -12,12",fill:b})]})})}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b=a.fill,d=a.size;a=a.xstyle;a=a===void 0?!1:a;var e=b==null?"xsrhx6k":void 0;return j.jsx("svg",{className:(h||(h=c("stylex")))(k.icon,a),height:String(d)+"px",viewBox:"0 0 38 38",width:String(d)+"px",children:j.jsx("g",{fill:"none",fillRule:"evenodd",children:j.jsx("g",{transform:"translate(-893.000000, -701.000000)",children:j.jsx("g",{transform:"translate(709.000000, 314.000000)",children:j.jsx("g",{children:j.jsx("path",{className:e,d:"M210.5,405 C209.121,405 208,403.879 208,402.5 C208,401.121 209.121,400 210.5,400 C211.879,400 213,401.121 213,402.5 C213,403.879 211.879,405 210.5,405 M212.572,411.549 C210.428,413.742 206.938,415 203,415 C199.062,415 195.572,413.742 193.428,411.549 C192.849,410.956 192.859,410.007 193.451,409.428 C194.045,408.85 194.993,408.859 195.572,409.451 C197.133,411.047 199.909,412 203,412 C206.091,412 208.867,411.047 210.428,409.451 C211.007,408.859 211.956,408.85 212.549,409.428 C213.141,410.007 213.151,410.956 212.572,411.549 M195.5,400 C196.879,400 198,401.121 198,402.5 C198,403.879 196.879,405 195.5,405 C194.121,405 193,403.879 193,402.5 C193,401.121 194.121,400 195.5,400 M203,387 C192.523,387 184,395.523 184,406 C184,416.477 192.523,425 203,425 C213.477,425 222,416.477 222,406 C222,395.523 213.477,387 203,387",fill:b})})})})})})}m.displayName=m.name+" [from "+f.id+"]";g.Gif=a;g.Sticker=b;g.Photo=e;g.MoreActions=l;g.Emoji=m}),98); __d("WorkXMAContentContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;c=h||d("react");e=c.createContext;var i=c.useContext,j=e();function a(){return j.Provider}function b(){return i(j)}g.getProvider=a;g.useWorkXMAContentContext=b}),98); __d("MWChatPollFacepile.react",["fbt","ix","CometImage.react","CometTintedIcon.react","JSResourceForInteraction","MWV2MessageRowIsRowFocusedContext.react","MWXPressable.react","MWXTooltip.react","MWXTooltipGroup.react","WorkXMAContentContext","fbicon","intlList","intlSummarizeNumber","react","stylex","useMWXLazyDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react")),m=k.useContext,n={contact:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",$$css:!0},contactGapNegative:{marginStart:"xrzrlj5",marginLeft:null,marginRight:null,$$css:!0},contactGapNormal:{marginStart:"xsgj6o6",marginLeft:null,marginRight:null,$$css:!0},contactLarge:{height:"x10w6t97",width:"x1td3qas",$$css:!0},contactMedium:{height:"x1qx5ct2",width:"xw4jnvo",$$css:!0},contactMediumLarge:{height:"xxk0z11",width:"xvy4d1p",$$css:!0},contactSmall:{height:"x1v9usgg",width:"x6jxa94",$$css:!0},contactWithBorder:{borderTopColor:"x1exxf4d",borderEndColor:"x1y71gwh",borderBottomColor:"x1nb4dca",borderStartColor:"xu1343h",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",marginTop:"x1y332i5",$$css:!0},overflow:{backgroundColor:"x1vtvx1t",borderTopStartRadius:"x1a2cdl4",borderTopEndRadius:"xnhgr82",borderBottomEndRadius:"x1qt0ttw",borderBottomStartRadius:"xgk8upj",boxSizing:"x9f619",color:"xi81zsa",fontSize:"x1nxh6w3",fontWeight:"xk50ysn",height:"x1qx5ct2",lineHeight:"x1u7k74",marginBottom:"x4ii5y1",marginStart:"xrzrlj5",marginLeft:null,marginRight:null,marginTop:"xr1yuqi",paddingTop:"x1nn3v0j",paddingEnd:"x1sxyh0",paddingBottom:"x1120s5i",paddingStart:"xurb0ha",$$css:!0},overflowOverlay:{alignItems:"x6s0dn4",backgroundColor:"xdit8p8",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",bottom:"x1ey2m1c",display:"x78zum5",end:"xds687c",left:null,right:null,justifyContent:"xl56j7k",opacity:"x1us6l5c",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",zIndex:"x1vjfegm",$$css:!0},photoWrap:{display:"x1rg5ohu",marginBottom:"x4ii5y1",marginTop:"xr1yuqi",position:"x1n2onr6",$$css:!0},root:{display:"x78zum5",$$css:!0},rootReversed:{flexDirection:"x15zctf7",$$css:!0}};function o(a){switch(a){case"small":return n.contactSmall;case"medium":return n.contactMedium;case"mediumLarge":return n.contactMediumLarge;case"large":return n.contactLarge;default:a}}function p(a){var b=a.children;a=a.tooltip;return a!=null?l.jsx(c("MWXTooltip.react"),{align:"middle",label:h._("__JHASH__kWn4paD6Vaw__JHASH__"),position:"above",tooltip:a,children:b}):b}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b=a.contacts,e=a.contactWithBorder,f=e===void 0?!0:e;e=a.countOverride;var g=a.direction;g=g===void 0?"normal":g;var k=a.gap,q=k===void 0?"normal":k;k=a.limit;var r=k===void 0?2:k;k=a.onPress;var s=a.optionId,t=a.overflowStyle,u=t===void 0?"showTotalCount":t,v=a.size;t=c("useMWXLazyDialog")(c("JSResourceForInteraction")("ChatLSGeminiChatPollFacepileDialog.react").__setRef("MWChatPollFacepile.react"));var w=t[0],x=b.length>r;a=e!=null?e:b.length;t=b.slice(0,-r).reverse().filter(function(a){return a.name!=null}).map(function(a){a=a.name;if(a!=null)return a;else return""});e=a-r-t.length;e>0&&t.push(h._("__JHASH__KVtJcih6CQz__JHASH__",[h._plural(e),h._param("count",c("intlSummarizeNumber")(e))]));e=t.length===0?void 0:l.jsx("ul",{children:t.map(function(a,b){return l.jsx("li",{children:a},String(b))})});t=b.slice(-(x?r:1e3)).reverse();t=t.map(function(a){return(a=a.name)!=null?a:""});t=b.length>0?h._("__JHASH__txKVTNOBaVY__JHASH__",[h._plural(a,"number"),h._plural(a),h._param("=names",c("intlList")(t))]):h._("__JHASH__S_P0VuqDnbo__JHASH__");e=l.jsxs(c("MWXTooltipGroup.react"),{children:[x&&u==="showTotalCount"&&l.jsx(p,{tooltip:e,children:l.jsx("div",{className:"x1vtvx1t x1a2cdl4 xnhgr82 x1qt0ttw xgk8upj x9f619 xi81zsa x1nxh6w3 xk50ysn x1qx5ct2 x1u7k74 x4ii5y1 xrzrlj5 xr1yuqi x1nn3v0j x1sxyh0 x1120s5i xurb0ha",children:"+"+c("intlSummarizeNumber")(a-r)})}),b.slice(-(x?r:1e3)).reverse().map(function(a,b){return l.jsxs("div",{className:(j||(j=c("stylex")))(n.photoWrap,q==="normal"?n.contactGapNormal:n.contactGapNegative,o(v)),children:[l.jsx(p,{tooltip:a.name,children:l.jsx(c("CometImage.react"),{src:a.profile_picture_url,xstyle:[n.contact,o(v),f?n.contactWithBorder:!1]})}),x&&u==="overlayLastPhoto"&&b===r-1?l.jsx("div",{className:"x6s0dn4 xdit8p8 x14yjl9h xudhj91 x18nykt9 xww2gxu x1ey2m1c x78zum5 xds687c xl56j7k x1us6l5c x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy x1vjfegm",children:l.jsx(c("CometTintedIcon.react"),{color:"white",icon:d("fbicon")._(i("484386"),16)})}):null]},String(b))})]});var y=d("WorkXMAContentContext").useWorkXMAContentContext();a=m(d("MWV2MessageRowIsRowFocusedContext.react").context);var z=a.setFocused,A=a.setIsDialogOpened;return s!=null&&y!=null?l.jsx(c("MWXPressable.react"),{"aria-label":h._("__JHASH__wyyTJ9i_gta__JHASH__").toString(),onPress:function(){A(function(){return!0});return w({optionId:s,pollId:y},function(){A(function(){return!1});return z(function(){return!0})})},overlayDisabled:!0,xstyle:[n.root,g==="reversed"?n.rootReversed:!1],children:e}):k?l.jsx(c("MWXPressable.react"),{label:t,onPress:k,overlayDisabled:!0,xstyle:[n.root,g==="reversed"?n.rootReversed:!1],children:e}):l.jsx("div",{"aria-label":t,className:(j||(j=c("stylex")))(n.root,g==="reversed"?n.rootReversed:!1),children:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWForwardMessage",["MAWBridgeSendAndReceive","MAWCreateOneToOneThread","MAWGetEphemeralSettings","MAWJobDefinitions","MAWMiActOnActThreadReady","MAWThreadId","MAWTimedJob","WAJobOrchestratorTypes","asyncToGeneratorRuntime","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b,c){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){var e=(yield d("MAWThreadId").isSecureThreadId(a,b)),f=!1;e||(yield d("MAWCreateOneToOneThread").call(a,b),f=!0);return d("MAWMiActOnActThreadReady").onActThreadReady(a,b,"MAWForwardMessage",function(a,b,d){return c(b,d,f)})});return i.apply(this,arguments)}function a(a,b,e,f,g){c("promiseDone")(h(a,b,function(a,c,h){return d("MAWBridgeSendAndReceive").sendAndReceive("backend","getProtocolMsgIdByMsgId",{msgId:e}).then(function(a){if(a!=null)return d("MAWGetEphemeralSettings").getEphemeralSetting(c,b).then(function(b){return d("MAWTimedJob").TimedUIJobStarters.waitUntilPersisted(d("MAWJobDefinitions").jobSerializers.forwardMsg(c,a,(b=b)!=null?b:void 0,void 0,h,{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION},{s2sInstanceKey:g,source:f}))})})}))}g.maybeCreateNewThreadAndCallback=h;g.forwardMessage=a}),98); __d("LSInsertNewMediaSend",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[];return b.sequence([function(c){return b.db.table(51).add({offlineAttachmentId:a[0],offlineThreadingId:a[1],inMessageIndex:a[2],attachmentType:a[3],shouldTranscode:a[4],useDoublePhase:a[5],sendByServer:a[6],isSecure:a[7],state:a[4]?b.i64.cast([0,1]):b.i64.cast([0,3])})},function(a){return b.resolve(c)}])}e.exports=a}),null); __d("LSInsertNewMediaSendStoredProcedure",["LSInsertNewMediaSend"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.offlineAttachmentId;d[1]=b.offlineThreadingId;d[2]=b.inMessageIndex;d[3]=b.attachmentType;d[4]=b.shouldTranscode;d[5]=b.useDoublePhase;d[6]=b.sendByServer;d[7]=b.isSecure;return c("LSInsertNewMediaSend").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("LSLocalApplyOptimisticMessageWithAttachments",["LSArrayGetObjectAt","LSLocalApplyOptimisticMessage","LSSetMessageDisplayedContentTypes"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(f){return c.sequence([function(e){return c.storedProcedure(b("LSLocalApplyOptimisticMessage"),a[0],a[1],a[2],a[3],a[4],a[5],a[6],void 0,a[7],a[8],a[9],a[10],void 0,a[12],!0).then(function(a){return a=a,d[0]=a[0],d[1]=a[1],a})},function(e){return d[2]=c.i64.of_int32(a[11].length),c.i64.gt(d[2],c.i64.cast([0,0]))?c.loopAsync(d[2],function(e){return d[3]=e,c.sequence([function(e){return c.nativeTypeOperation("Array",b("LSArrayGetObjectAt"),a[11],d[3]).then(function(a){return a=a,d[4]=a[0],d[5]=a[1],a})},function(b){return d[6]=d[4].get("attachment_fbid"),d[4],d[7]=d[4].get("offline_attachment_id"),d[4],d[8]=d[4].get("attachment_type"),d[4],d[9]=d[4].get("filename"),d[4],d[10]=d[4].get("filesize"),d[4],d[11]=d[4].get("attachment_index"),d[4],d[12]=d[4].get("has_media"),d[4],d[13]=d[4].get("has_xma"),d[4],d[14]=d[4].get("playable_url"),d[4],d[15]=d[4].get("playable_url_mime_type"),d[4],d[16]=d[4].get("playable_duration_ms"),d[4],d[17]=d[4].get("preview_url"),d[4],d[18]=d[4].get("preview_url_mime_type"),d[4],d[19]=d[4].get("mini_preview"),d[4],d[20]=d[4].get("preview_width"),d[4],d[21]=d[4].get("preview_height"),d[4],d[22]=d[4].get("xma_layout_type"),d[4],d[23]=d[4].get("xmas_template_type"),d[4],d[24]=d[4].get("cta1_title"),d[4],d[25]=d[4].get("cta2_title"),d[4],d[26]=d[4].get("cta3_title"),d[4],d[27]=d[4].get("image_url"),d[4],d[28]=d[4].get("action_url"),d[4],d[29]=d[4].get("title_text"),d[4],d[30]=d[4].get("subtitle_text"),d[4],d[31]=d[4].get("description_text"),d[4],d[32]=d[4].get("source_text"),d[4],d[33]=d[4].get("original_file_hash"),d[4],d[34]=d[4].get("sound_bite_client_sound_key"),d[4],d[35]=d[4].get("sound_bite_visual"),d[4],d[36]=d[4].get("ephemeral_media_state"),d[4],c.filter(c.db.table(16).fetch([[[a[1],d[0],d[6]]]]),function(b){return c.i64.eq(b.threadKey,a[1])&&c.i64.eq(c.i64.cast([0,0]),c.i64.cast([0,0]))&&b.messageId===d[0]&&b.attachmentFbid===d[6]&&c.i64.gt(b.authorityLevel,c.i64.cast([0,20]))}).next().then(function(b){var e=b.done;b.value;return e?c.db.table(16).put({threadKey:a[1],messageId:d[0],attachmentFbid:d[6],timestampMs:d[1],offlineAttachmentId:d[7],attachmentType:d[8],filename:d[9],filesize:d[10],attachmentIndex:d[11],hasMedia:d[12],hasXma:d[13],isSharable:!1,playableUrl:d[14],playableUrlMimeType:d[15],playableDurationMs:d[16],previewUrl:d[17],previewUrlMimeType:d[18],miniPreview:d[19],previewWidth:d[20],previewHeight:d[21],xmaLayoutType:d[22],xmasTemplateType:d[23],cta1Title:d[24],cta2Title:d[25],cta3Title:d[26],imageUrl:d[27],actionUrl:d[28],titleText:d[29],subtitleText:d[30],descriptionText:d[31],sourceText:d[32],ephemeralMediaState:d[36],originalFileHash:d[33],authorityLevel:c.i64.cast([0,20])}):0})}])}):c.resolve()},function(e){return d[2]=c.i64.of_int32(a[11].length),c.i64.gt(d[2],c.i64.cast([0,0]))?c.storedProcedure(b("LSSetMessageDisplayedContentTypes"),a[1],d[0],d[1],a[3],!1,c.i64.neq(a[6],void 0)):c.resolve()},function(a){return a=[d[0],d[1]],e[0]=a[0],e[1]=a[1],a}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSLocalApplyOptimisticMessageWithAttachmentsStoredProcedure",["LSLocalApplyOptimisticMessageWithAttachments"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.senderId;d[1]=b.threadKey;d[2]=b.threadType;d[3]=b.text;d[4]=b.snippet;d[5]=b.snippetHasEmoji;d[6]=b.stickerId;d[7]=b.replySourceId;d[8]=b.replySourceType;d[9]=b.replySourceTypeV2;d[10]=b.isForwarded;d[11]=b.attachments;d[12]=b.mentionData;return c("LSLocalApplyOptimisticMessageWithAttachments").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("LSOptimisticSendXMAMessageForwardFromSecureThread",["LSArrayGetObjectAt","LSIssueNewTaskWithExtraOperationsAndGetTaskID","LSLocalApplyOptimisticMessage","LSSetMessageDisplayedContentTypes","LSUpdateOptimisticAttachmentPreview"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(f){return c.sequence([function(e){return c.storedProcedure(b("LSLocalApplyOptimisticMessage"),a[0],a[1],a[2],a[3],void 0,void 0,void 0,void 0,void 0,void 0,c.i64.cast([0,3]),a[4],void 0,void 0,!0).then(function(a){return a=a,d[0]=a[0],d[1]=a[1],a})},function(e){return d[3]=c.i64.of_int32(a[6].length),c.i64.gt(d[3],c.i64.cast([0,0]))?c.loopAsync(d[3],function(e){return d[4]=e,c.sequence([function(e){return c.nativeTypeOperation("Array",b("LSArrayGetObjectAt"),a[6],d[4]).then(function(a){return a=a,d[5]=a[0],d[6]=a[1],a})},function(e){return d[7]=d[5].get("attachment_fbid"),d[5],d[8]=d[5].get("offline_attachment_id"),d[5],d[9]=d[5].get("attachment_type"),d[5],d[10]=d[5].get("filename"),d[5],d[11]=d[5].get("filesize"),d[5],d[12]=d[5].get("attachment_index"),d[5],d[13]=d[5].get("has_media"),d[5],d[14]=d[5].get("has_xma"),d[5],d[15]=d[5].get("playable_url"),d[5],d[16]=d[5].get("playable_url_mime_type"),d[5],d[17]=d[5].get("playable_duration_ms"),d[5],d[18]=d[5].get("preview_url"),d[5],d[19]=d[5].get("preview_url_mime_type"),d[5],d[20]=d[5].get("mini_preview"),d[5],d[21]=d[5].get("preview_width"),d[5],d[22]=d[5].get("preview_height"),d[5],d[23]=d[5].get("xma_layout_type"),d[5],d[24]=d[5].get("xmas_template_type"),d[5],d[25]=d[5].get("cta1_title"),d[5],d[26]=d[5].get("cta2_title"),d[5],d[27]=d[5].get("cta3_title"),d[5],d[28]=d[5].get("image_url"),d[5],d[29]=d[5].get("action_url"),d[5],d[30]=d[5].get("title_text"),d[5],d[31]=d[5].get("subtitle_text"),d[5],d[32]=d[5].get("description_text"),d[5],d[33]=d[5].get("source_text"),d[5],d[34]=d[5].get("original_file_hash"),d[5],d[35]=d[5].get("sound_bite_client_sound_key"),d[5],d[36]=d[5].get("sound_bite_visual"),d[5],d[37]=d[5].get("ephemeral_media_state"),d[5],c.sequence([function(b){return c.forEach(c.filter(c.db.table(16).fetch([[[a[1],d[0],d[7]]]]),function(b){return c.i64.eq(b.threadKey,a[1])&&c.i64.eq(c.i64.cast([0,0]),c.i64.cast([0,0]))&&b.messageId===d[0]&&b.attachmentFbid===d[7]&&c.i64.lt(b.authorityLevel,c.i64.cast([0,20]))}),function(a){return a["delete"]()})},function(b){return c.db.table(16).add({threadKey:a[1],messageId:d[0],attachmentFbid:d[7],timestampMs:d[1],offlineAttachmentId:d[8],attachmentType:d[9],filename:d[10],filesize:d[11],attachmentIndex:d[12],hasMedia:d[13],hasXma:d[14],isSharable:!1,playableUrl:d[15],playableUrlMimeType:d[16],playableDurationMs:d[17],previewUrl:d[18],previewUrlMimeType:d[19],miniPreview:d[20],previewWidth:d[21],previewHeight:d[22],xmaLayoutType:d[23],xmasTemplateType:d[24],cta1Title:d[25],cta2Title:d[26],cta3Title:d[27],imageUrl:d[28],actionUrl:d[29],titleText:d[30],subtitleText:d[31],descriptionText:d[32],sourceText:d[33],ephemeralMediaState:d[37],originalFileHash:d[34],authorityLevel:c.i64.cast([0,20])})},function(e){return c.storedProcedure(b("LSSetMessageDisplayedContentTypes"),a[1],d[0],d[1],a[3],!1,!1)},function(e){return c.storedProcedure(b("LSUpdateOptimisticAttachmentPreview"),a[1],d[0],d[7],d[15],void 0,void 0,d[16],d[18],void 0,void 0,d[19],d[21],d[22])}])}])}):c.resolve()},function(e){return c.storedProcedure(b("LSIssueNewTaskWithExtraOperationsAndGetTaskID"),c.i64.to_string(a[1]),c.i64.cast([0,46]),"",void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),c.i64.cast([0,1]),void 0,c.i64.cast([0,0]),void 0,c.i64.cast([0,0])).then(function(a){return a=a,d[2]=a[0],a})},function(b){return c.db.table(31).add({taskId:d[2],threadKey:a[1],offlineThreadingId:d[0],threadAttributionSource:a[5],sendType:c.i64.cast([0,11]),markThreadRead:!1})},function(a){return e[0]=d[0]}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticSendXMAMessageForwardFromSecureThreadStoredProcedure",["LSOptimisticSendXMAMessageForwardFromSecureThread"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.senderId;d[1]=b.threadKey;d[2]=b.threadType;d[3]=b.text;d[4]=b.isForwarded;d[5]=b.source;d[6]=b.attachments;return c("LSOptimisticSendXMAMessageForwardFromSecureThread").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MAWForwardMessageFromSecureThread.react",["I64","LSFactory","LSHotEmojiSize","LSInsertNewMediaSendStoredProcedure","LSIntEnum","LSLocalApplyOptimisticMessageWithAttachmentsStoredProcedure","LSMailboxType","LSMarkSubJobCompletedV2StoredProcedure","LSOptimisticSendMessageV2StoredProcedure","LSOptimisticSendXMAMessageForwardFromSecureThreadStoredProcedure","LSShape","LSVec","MAWBridgeSendAndReceive","MAWDbMedia","MAWDbXMA","MWPComposerMediaUploadUtil","MWPOpenComposerUtils","MessagePowerUp","MessagingAttachmentType","OfflineThreadingId","Promise","ReQL","asyncToGeneratorRuntime","cr:2472","promiseDone","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function k(a,b,c){return{action_url:void 0,attachment_fbid:b,attachment_index:(j||(j=d("I64"))).zero,attachment_type:a.attachmentType,cta1_title:void 0,cta2_title:void 0,cta3_title:void 0,description_text:void 0,filename:a.filename,filesize:void 0,has_media:!0,has_xma:!1,image_url:void 0,mini_preview:void 0,offline_attachment_id:b,original_file_hash:void 0,playable_duration_ms:a.playableDurationMs,playable_url:URL.createObjectURL(c),playable_url_mime_type:c.type,preview_height:void 0,preview_url:void 0,preview_url_mime_type:void 0,preview_width:void 0,source_text:void 0,subtitle_text:void 0,title_text:void 0,xma_layout_type:void 0,xmas_template_type:void 0}}function l(a,b,c,e){var f;return{action_url:(f=b==null?void 0:b.actionUrl)!=null?f:b==null?void 0:b.nativeUrl,attachment_fbid:c,attachment_index:(j||(j=d("I64"))).zero,attachment_type:a.attachmentType,cta1_title:a.cta1Title,cta2_title:a.cta2Title,cta3_title:a.cta3Title,description_text:a.descriptionText,filename:a.filename,filesize:a.filesize,has_media:!1,has_xma:!0,image_url:void 0,mini_preview:void 0,offline_attachment_id:c,original_file_hash:void 0,playable_duration_ms:void 0,playable_url:URL.createObjectURL(e),playable_url_mime_type:e.type,preview_height:void 0,preview_url:URL.createObjectURL(e),preview_url_mime_type:e.type,preview_width:void 0,source_text:a.sourceText,subtitle_text:a.subtitleText,title_text:a.titleText,xma_layout_type:a.xmaLayoutType,xmas_template_type:a.xmasTemplateType}}function m(a,e,f,g,i,j,k,l){l=c("LSFactory")(l);return c("LSOptimisticSendXMAMessageForwardFromSecureThreadStoredProcedure")(l,{attachments:c("LSVec").ofArray([d("LSShape").ofRecord(j)]),isForwarded:i,senderId:a,source:k,text:(l=g)!=null?l:void 0,threadKey:e,threadType:f}).then(function(){return(h||(h=b("Promise"))).resolve()})}function n(a,b){return a==null||b==null?void 0:{amplitudes:b.split(",").map(parseFloat),sampling_freq:a}}function o(a,e,f,g,k,l,m,o,p){var q=c("LSFactory")(o);return c("LSLocalApplyOptimisticMessageWithAttachmentsStoredProcedure")(q,{attachments:c("LSVec").ofArray([d("LSShape").ofRecord(e)]),isForwarded:l,senderId:m,threadKey:k,threadType:g}).then(function(a){var c=a[0];a[1];return o.table("messages_optimistic_context").add({externalAttachmentUrl:void 0,initiatingSource:void 0,markThreadRead:!1,messageId:void 0,offlineThreadingId:c,platformRef:void 0,platformToken:void 0,replySourceId:void 0,replySourceType:void 0,sendType:void 0,skipUrlPreviewGen:void 0,taskId:(j||(j=d("I64"))).of_string(c),threadAttributionSource:p,threadKey:k}).then(function(){return(h||(h=b("Promise"))).resolve(c)})}).then(function(a){var f=e.attachment_fbid;return c("LSInsertNewMediaSendStoredProcedure")(q,{attachmentType:e.attachment_type,inMessageIndex:(j||(j=d("I64"))).zero,isSecure:!1,offlineAttachmentId:f,offlineThreadingId:a,sendByServer:!1,shouldTranscode:!1,useDoublePhase:!1}).then(function(){return(h||(h=b("Promise"))).resolve([a,f])})}).then(function(g){var k=g[0],l=g[1];g=function(b,e){if(e==null)return;c("promiseDone")(a.runInTransaction(function(a){var b=c("LSFactory")(a);return c("LSMarkSubJobCompletedV2StoredProcedure")(b,{fbid:(j||(j=d("I64"))).of_float(e),offlineAttachmentId:l}).then(function(){return d("MWPOpenComposerUtils").resumeSendJob(b,k)})},"readwrite"))};d("MWPComposerMediaUploadUtil").startUpload(void 0,void 0,g,void 0,(j||(j=d("I64"))).equal(e.attachment_type,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO)),[f],[l],void 0,void 0,n(e.sampling_frequency_hz,e.waveform_data),void 0,void 0);return(h||(h=b("Promise"))).resolve()})}function a(a,b,c,d,e,f,g,h){return p.apply(this,arguments)}function p(){p=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f,g,p,q,r,s){if(q!=null){var t=q.attachmentType;if(!((j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO))||(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))||(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO))||(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE))||(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").FILE))||(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA))))throw c("unrecoverableViolation")("We do not support forwarding this type","messenger_web_product");var u=null;if(!(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA))){u=(yield d("MAWBridgeSendAndReceive").sendAndReceive("backend","getBlobDataUrlByMediaId",{mediaId:d("MAWDbMedia").convertNumberToMediaId(Number.parseInt(q.attachmentFbid,10))}));if(u==null)return}yield a.runInTransaction(function(v){switch(!0){case(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO)):if(u==null)throw c("unrecoverableViolation")("Blob can not be null for MessagingAttachmentType.AUDIO","messenger_web_product");var w=new File([u],"mediaForwardedFromSecureThread",{type:u.type}),x=d("OfflineThreadingId").createOfflineThreadingID();x=d("MWPComposerMediaUploadUtil").getAudioAttachment(x,w,(j||(j=d("I64"))).to_int32((x=q.playableDurationMs)!=null?x:(j||(j=d("I64"))).zero)/1e3,n(q.samplingFrequencyHz!=null?(j||(j=d("I64"))).to_int32(q.samplingFrequencyHz):void 0,q.waveformData));return o(a,x,w,f,e,p,r,v,s);case(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA)):return d("ReQL").firstAsync(d("ReQL").fromTableDescending(v.table("attachment_ctas")).getKeyRange((x=q.defaultCtaId)!=null?x:(j||(j=d("I64"))).zero)).then(function(a){return d("MAWBridgeSendAndReceive").sendAndReceive("backend","getBlobDataUrlByXMAId",{infoType:"preview",xmaId:d("MAWDbXMA").convertNumberToXMAId(Number.parseInt(q.attachmentFbid,10))}).then(function(c){return(h||(h=b("Promise"))).resolve([a,c])})}).then(function(c){var h=c[0];c=c[1];if(c==null)return;c=new File([c],"xmaForwardedFromSecureThread",{type:c.type});var a=d("OfflineThreadingId").createOfflineThreadingID();h=l(q,h,a,c);a=g.text;c=b("cr:2472")==null||a==null?a:b("cr:2472").unvault(a);return m(r,e,f,c,p,h,s,v)});case(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").FILE)):case(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE)):case(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)):case(j||(j=d("I64"))).equal(t,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE)):if(u==null)throw c("unrecoverableViolation")("Blob can not be null for MessagingAttachmentType.AUDIO","messenger_web_product");x=new File([u],(w=q.filename)!=null?w:"mediaForwardedFromSecureThread",{type:u.type});w=d("OfflineThreadingId").createOfflineThreadingID();w=k(q,w,x);return o(a,w,x,f,e,p,r,v,s);default:throw c("unrecoverableViolation")("We do not support forwarding this type","messenger_web_product")}},"readwrite")}else{var v=g.text;if(v==null)throw c("unrecoverableViolation")("We do not support forwarding this type","messenger_web_product");var w=b("cr:2472")==null?v:b("cr:2472").unvault(v),x=w==="\ud83d\udc4d"&&g.hotEmojiSize!=null&&(j||(j=d("I64"))).equal(g.hotEmojiSize,(i||(i=d("LSIntEnum"))).ofNumber(c("LSHotEmojiSize").SMALL)),y=x?(j||(j=d("I64"))).of_string("369239263222822"):void 0;yield a.runInTransaction(function(a){return c("LSOptimisticSendMessageV2StoredProcedure")(c("LSFactory")(a),{extraSendMessageParams:d("LSShape").ofRecord({calculate_denormalizations:!1,is_forwarded:p,mark_read:!1,power_up_style:(i||(i=d("LSIntEnum"))).ofNumber(c("MessagePowerUp").NONE),source:s,sticker_id:y}),mailboxType:i.ofNumber(c("LSMailboxType").MESSENGER),senderId:r,text:x?void 0:w,threadKey:e,threadType:f})},"readwrite")}});return p.apply(this,arguments)}g.forwardMessage=a}),98); __d("MAWFetchXMABlob",["FBLogger","Promise"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){return a==null||a===""?(h||(h=b("Promise"))).resolve():window.fetch(a).then(function(a){return a.blob()})["catch"](function(){c("FBLogger")("messenger_e2ee_web").mustfix("Error fetching url in xma share");return(h||(h=b("Promise"))).resolve()})}g.fetchBlob=a}),98); __d("MAWUnshimUrl",["CometLinkShimUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){if(a==null)return void 0;var b=d("CometLinkShimUtils").getLinkShimInfo(a,void 0,void 0,void 0,void 0,!0);return!b.shimmed?a:b.unshimmedHref}g.unshimUrl=a}),98); __d("MAWFetchXMAData",["fbt","CometRelay","ConstUriUtils","FBLogger","LSXmaContentType","MAWFetchXMABlob","MAWFetchXMAData_LinkPreviewQuery.graphql","MAWImagePreProcess","MAWParseXMAFBConfig","MAWUnshimUrl","MWQPLMarkers","Promise","WAArmadilloXMA.pb","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j;function k(a){var b=new Blob([],{type:"image/jpeg"});return{defaultCTA:{actionUrl:d("MAWUnshimUrl").unshimUrl(a),buttonType:d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_CTA_BUTTON_TYPE.OPEN_NATIVE,nativeUrl:d("MAWUnshimUrl").unshimUrl(a),title:h._("__JHASH__Xv8OyXI6-mU__JHASH__").toString()},linkType:"internal",overlayIconGlyph:d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.PRIVATE,preview_blob:b,title_text:h._("__JHASH__2usVu04y012__JHASH__").toString()}}function l(a){var b=Object.entries(c("LSXmaContentType")).find(function(b){var c=b[0];b=b[1];return a===b&&d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_EXTENDED_CONTENT_TYPE[c]!=null});b=b!=null?d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_EXTENDED_CONTENT_TYPE[b[0]]:void 0;if(b===void 0)return void 0;if(!d("MAWParseXMAFBConfig").FB_SUPPORTED_TARGET_TYPES.has(b)){c("FBLogger")("messenger_e2ee_web").mustfix("Unsupported XMA Target Type in sending path: "+b);return d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_EXTENDED_CONTENT_TYPE.FB_FEED_SHARE}return b}function m(a,b,c,d){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f,g){var h;try{h=JSON.parse(e)}catch(a){g(d("MWQPLMarkers").MESSAGE_SEND_TO_SENT.FAILED_TO_PARSE_JSON_FOR_XMA_SHARE,{});throw c("FBLogger")("messenger_e2ee_web").mustfixThrow("Failed to fetch blob xma data for MAWShareAttachent")}e=h;g=e.action_url;var i=e.ctas,k=e.default_cta_title,m=e.favicon_url,n=e.image_url,o=e.preview_url,p=e.subtitle_text,q=e.title_text;e=e.xma_content_type;m=(yield (j||(j=b("Promise"))).all([m,n,o].map(function(a){return d("MAWFetchXMABlob").fetchBlob(a)}))["catch"](function(a){f(d("MWQPLMarkers").MESSAGE_SEND_TO_SENT.FAILED_TO_FETCH_BLOB_FOR_XMA_SHARE);c("FBLogger")("messenger_e2ee_web").mustfix("Failed to fetch blob xma data for MAWShareAttachent");return[void 0,void 0,void 0]}));n=m[0];o=m[1];m=m[2];i=i;e=e;e=l(e);var r=i==null?void 0:i[0];g=d("MAWUnshimUrl").unshimUrl((g=(g=g)!=null?g:r==null?void 0:r.action_url)!=null?g:a);r=d("MAWUnshimUrl").unshimUrl((a=r==null?void 0:r.native_url)!=null?a:g);g={actionUrl:g,buttonType:d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_CTA_BUTTON_TYPE.OPEN_NATIVE,nativeUrl:r,title:(a=k)!=null?a:void 0};f(d("MWQPLMarkers").MESSAGE_SEND_TO_SENT.RETURN_PUBLIC_XMA_DATA);return{ctas:i==null?void 0:i.map(function(a){var b;return{actionUrl:d("MAWUnshimUrl").unshimUrl((b=a.action_url)!=null?b:void 0),buttonType:d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_CTA_BUTTON_TYPE.OPEN_NATIVE,nativeUrl:d("MAWUnshimUrl").unshimUrl((b=a.native_url)!=null?b:void 0),title:(b=a.title)!=null?b:void 0}}),defaultCTA:g,favicon_blob:(r=n)!=null?r:void 0,image_blob:(k=o)!=null?k:void 0,linkType:"internal",preview_blob:(a=m)!=null?a:void 0,subtitle_text:(i=p)!=null?i:void 0,title_text:(g=q)!=null?g:void 0,xma_message_type:e}});return n.apply(this,arguments)}function o(a,c){return d("CometRelay").fetchQuery(a,i!==void 0?i:i=b("MAWFetchXMAData_LinkPreviewQuery.graphql"),{url:c}).toPromise()}function a(a,b,c,d){return p.apply(this,arguments)}function p(){p=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f){e(d("MWQPLMarkers").MESSAGE_SEND_TO_SENT.XMA_DATA_FETCH_BEGIN);b=d("ConstUriUtils").getUri(b);b=b==null?void 0:(b=b.setSubDomain("www"))==null?void 0:b.toString();if(b==null)return{linkType:"unknown"};e(d("MWQPLMarkers").MESSAGE_SEND_TO_SENT.XMA_DATA_QUERY_BEGIN);a=(yield o(a,b)["catch"](function(a){f(d("MWQPLMarkers").MESSAGE_SEND_TO_SENT.FAILED_TO_FETCH_QUERY_DATA_FOR_XMA_SHARE,{}),c("FBLogger")("messenger_e2ee_web").mustfix("Failed execute MAWShareAttachment_LinkPreviewQuery for MAWShareAttachent")}));e(d("MWQPLMarkers").MESSAGE_SEND_TO_SENT.XMA_DATA_QUERY_COMPLETE);if(a==null){e(d("MWQPLMarkers").MESSAGE_SEND_TO_SENT.MISSING_XMA_DATA);return{linkType:"unknown"}}a=a.post_reshare_xma;if(a==null){e(d("MWQPLMarkers").MESSAGE_SEND_TO_SENT.MISSING_XMA_DATA);return{linkType:"external"}}if(a==="private"){e(d("MWQPLMarkers").MESSAGE_SEND_TO_SENT.RETURN_PRIVATE_XMA_DATA);return k(b)}return m(b,a,e,f)});return p.apply(this,arguments)}function e(a,b){return q.apply(this,arguments)}function q(){q=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c){var e=a.favicon_blob,f=a.overlayIconGlyph;a=a.preview_blob;a=a==null?void 0:new File([a],"preview",{type:a.type});e=e==null?void 0:new File([e],"favicon",{type:e.type});f=f===d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.PRIVATE?(j||(j=b("Promise"))).resolve({height:2,width:2}):a!=null?d("MAWImagePreProcess").getImageSpec(a):(j||(j=b("Promise"))).resolve();var g=e!=null?d("MAWImagePreProcess").getImageSpec(e):(j||(j=b("Promise"))).resolve();f=(yield (j||(j=b("Promise"))).all([f,g]));g=f[0];f=f[1];c(d("MWQPLMarkers").MESSAGE_SEND_TO_SENT.PREVIEW_FAVICON_SPEC_READY);c=a==null||g==null?void 0:{file:a,height:g.height,width:g.width};a=e==null||f==null?void 0:{file:e,height:f.height,width:f.width};return{faviconFileArgs:a,previewFileArgs:c}});return q.apply(this,arguments)}g.fetchXMAData=a;g.makeXMAFileArgs=e}),98); __d("MAWShareAttachmentQPLFunctions",["QPLUserFlow","qpl"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=function(b){c("QPLUserFlow").addPoint(c("qpl")._(25313175,"1551"),b,{instanceKey:a})},d=function(b,d){d===void 0&&(d={}),c("QPLUserFlow").endFailure(c("qpl")._(25313175,"1551"),b,{annotations:d,instanceKey:a})};return{addQplPoint:b,failS2S:d}}g.getQPLFunctions=a}),98); __d("MAWFowardMessageFromOpenThread",["I64","LSIntEnum","MAWDocumentPreProcess","MAWExternalId","MAWFetchXMABlob","MAWFetchXMAData","MAWForwardMessage","MAWGetEphemeralSettings","MAWImagePreProcess","MAWJobDefinitions","MAWShareAttachmentQPLFunctions","MAWUIJob","MAWUnshimUrl","MAWVideoUtils","MessagingAttachmentType","Promise","ReQL","WAArmadilloXMA.pb","WAJobOrchestratorTypes","asyncToGeneratorRuntime","gkx","promiseDone","qpl","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function k(a,c){return(j||(j=b("Promise"))).all([d("MAWImagePreProcess").getImageSpec(a),j.resolve(a),c.arrayBuffer(),d("MAWImagePreProcess").getImageSpec(c)]).then(function(a){var c=a[0],d=a[1],e=a[2];a=a[3];return(j||(j=b("Promise"))).resolve({args:{imageSpec:c,thumbnailUrlAndSpec:{duration:void 0,height:a.height,jpegThumbnail:e,width:a.width}},file:d,type:"image"})})}function l(a){return d("MAWVideoUtils").getVideoThumbnailUrlAndSpec(a).then(function(c){return(j||(j=b("Promise"))).resolve({args:{thumbnailUrlAndSpec:c},file:a,type:"video"})})}function m(a,b){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=(yield d("MAWFetchXMABlob").fetchBlob(a));b=a==null?void 0:new File([a],b,{type:a.type});a=b!=null?yield d("MAWImagePreProcess").getImageSpec(b):null;return b!=null&&a!=null?{file:b,height:a.height,width:a.width}:void 0});return n.apply(this,arguments)}function o(a,b,c){return p.apply(this,arguments)}function p(){p=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){c=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(c.table("attachment_ctas")).getKeyRange(a)));return c==null||b==null&&c.actionUrl==null?null:{actionUrl:(a=c==null?void 0:c.actionUrl)!=null?a:void 0,buttonType:d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_CTA_BUTTON_TYPE.OPEN_NATIVE,nativeUrl:(a=c==null?void 0:c.actionUrl)!=null?a:void 0,title:(c=b)!=null?c:void 0}});return p.apply(this,arguments)}function q(a,b,c,d){return r.apply(this,arguments)}function r(){r=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f){f=d("MAWShareAttachmentQPLFunctions").getQPLFunctions(f);var g=f.addQplPoint;f=f.failS2S;var h=(yield s(b,e));if((h==null?void 0:h.actionUrl)==null)throw c("unrecoverableViolation")("Cannot forward XMA to secure threads without a defaultCTA and actionUrl","messenger_web_product");a=(yield d("MAWFetchXMAData").fetchXMAData(a,h.actionUrl,g,f));if(a.linkType==="unknown")throw c("unrecoverableViolation")("Cannot forward XMA to secure threads with an unknown link type","messenger_web_product");if(a.linkType==="external")return w(b,h,e,a);else return u(a,g)});return r.apply(this,arguments)}function s(a,b){return t.apply(this,arguments)}function t(){t=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var c=a.actionUrl,e=a.defaultCtaId;a=a.defaultCtaTitle;if(e==null)return null;e=(yield o(e,a,b));return(b=e)!=null?b:{actionUrl:(e=c)!=null?e:void 0,buttonType:d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_CTA_BUTTON_TYPE.OPEN_NATIVE,nativeUrl:(b=c)!=null?b:void 0,title:(e=a)!=null?e:void 0}});return t.apply(this,arguments)}function u(a,b){return v.apply(this,arguments)}function v(){v=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){b=(yield d("MAWFetchXMAData").makeXMAFileArgs(a,b));var c=a.ctas,e=a.defaultCTA,f=a.overlayIconGlyph,g=a.subtitle_text,h=a.title_text;a=a.xma_message_type;c={ctas:c,defaultCTA:e,overlayIconGlyph:f,subtitleText:g,titleText:h};return babelHelpers["extends"]({},b,{xmaArgs:c,xmaMessageType:(e=a)!=null?e:d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_EXTENDED_CONTENT_TYPE.FB_FEED_SHARE})});return v.apply(this,arguments)}function w(a,b,c,d){return x.apply(this,arguments)}function x(){x=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,e,f){var g=a.attachmentCta1Id,i=a.attachmentCta2Id,k=a.attachmentCta3Id,l=a.cta1Title,n=a.cta2Title,p=a.cta3Title,q=a.faviconUrl,r=a.headerImageUrl,s=a.headerTitle,t=a.maxSubtitleNumOfLines,u=a.maxTitleNumOfLines,v=a.previewUrl,w=a.subtitleText;a=a.titleText;q=(yield (j||(j=b("Promise"))).all([[q,"favicon"],[r,"headerImage"],[v,"preview"]].map(function(a){return m(a[0],a[1])})));r=q[0];v=q[1];q=q[2];var x=[];if(g!=null){g=(yield o(g,l,e));g!=null&&x.push(g)}if(i!=null){l=(yield o(i,n,e));l!=null&&x.push(l)}if(k!=null){g=(yield o(k,p,e));g!=null&&x.push(g)}l={ctas:x.map(function(a){return babelHelpers["extends"]({},a,{actionUrl:d("MAWUnshimUrl").unshimUrl(a.actionUrl),nativeUrl:d("MAWUnshimUrl").unshimUrl(a.nativeUrl)})}),defaultCTA:babelHelpers["extends"]({},c,{actionUrl:d("MAWUnshimUrl").unshimUrl(c.actionUrl),nativeUrl:d("MAWUnshimUrl").unshimUrl(c.nativeUrl)}),headerTitle:s,maxSubtitleNumOfLines:(h||(h=d("I64"))).to_int32((i=t)!=null?i:(h||(h=d("I64"))).zero),maxTitleNumOfLines:h.to_int32((n=u)!=null?n:(h||(h=d("I64"))).zero),overlayIconGlyph:d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_OVERLAY_ICON_GLYPH.NONE,subtitleText:w,titleText:a};return{faviconFileArgs:r,headerFileArgs:v,previewFileArgs:q,xmaArgs:l,xmaMessageType:f.xma_message_type}});return x.apply(this,arguments)}function y(a){var e=a.attachmentType,f=a.filename,g=a.playableDurationMs,m=a.playableUrl,n=a.playableUrlMimeType,o=a.previewUrl,p=a.previewUrlMimeType;if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE))||(h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO))||(h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE))||(h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").FILE))){if(m==null)throw c("unrecoverableViolation")("If you see this error, there is no playableUrl for this attachment","messenger_web_product");var q=(h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE));if(o!=null){a=q?o+"&":m;var r=q?o+"&":o;return(j||(j=b("Promise"))).all([window.fetch(a).then(function(a){return a.blob()}),window.fetch(r).then(function(a){return a.blob()})]).then(function(a){var b=a[0];a=a[1];b=new File([b],"mediaForwardedFromOpenThread",{type:q?p:n});a=new File([a],"previewForwardedFromOpenThread",{type:p});if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE)))return k(b,a);if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)))return l(b);if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE)))return k(b,a);throw c("unrecoverableViolation")("shouldn't have this error in forward message from open thread","messenger_web_product")})}a=q?m+"&":m;return window.fetch(a).then(function(a){return a.blob()}).then(function(a){if(q&&n==="video/mp4")throw c("unrecoverableViolation")("If you see this error, there is only mp4 url for gif","messenger_web_product");a=new File([a],(a=f)!=null?a:"mediaForwardedFromOpenThread",{type:n});if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").IMAGE)))return d("MAWImagePreProcess").imagePreprocess(a,!1);if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO)))return l(a);if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").FILE)))return d("MAWDocumentPreProcess").documentPreprocess(a);if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").ANIMATED_IMAGE)))return(j||(j=b("Promise"))).all([d("MAWImagePreProcess").getJpegThumbnailInfo(a,400),d("MAWImagePreProcess").getImageSpec(a),j.resolve(a)]).then(function(a){var c=a[0],d=a[1];a=a[2];return(j||(j=b("Promise"))).resolve({args:{imageSpec:d,thumbnailUrlAndSpec:c},file:a,type:"image"})});throw c("unrecoverableViolation")("shouldn't have this error in forward message from open thread","messenger_web_product")})}if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").AUDIO))){if(m!=null)return window.fetch(m+"&").then(function(a){return a.blob()}).then(function(a){var c;a=new File([a],"mediaForwardedFromOpenThread",{type:n});return(j||(j=b("Promise"))).resolve({args:{durations:(h||(h=d("I64"))).to_int32((c=g)!=null?c:(h||(h=d("I64"))).zero)/1e3,isPtt:!0},file:a,type:"audio"})});throw c("unrecoverableViolation")("If you see this error, there is no playableUrl for this audio attachment","messenger_web_product")}if((h||(h=d("I64"))).equal(e,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").STICKER))){if(m==null&&o==null)throw c("unrecoverableViolation")("If you see this error, there is no url for this sticker","messenger_web_product");return m!=null?o!=null?(j||(j=b("Promise"))).all([window.fetch(m).then(function(a){return a.blob()}),window.fetch(o).then(function(a){return a.blob()})]).then(function(a){var b=a[0];a=a[1];b=new File([b],"mediaForwardedFromOpenThread",{type:n});a=new File([a],"previewForwardedFromOpenThread",{type:p});return k(b,a)}):window.fetch(m).then(function(a){return a.blob()}).then(function(a){a=new File([a],"mediaForwardedFromOpenThread",{type:n});return k(a,a)}):window.fetch(o).then(function(a){return a.blob()}).then(function(a){return d("MAWImagePreProcess").imagePreprocess(new File([a],"previewForwardedFromOpenThread",{type:p}),!0)})}throw c("unrecoverableViolation")("We do not support forwarding other media types","messenger_web_product")}function a(a,e,f,g,k,l,m,n){c("promiseDone")(d("MAWForwardMessage").maybeCreateNewThreadAndCallback(e,f,function(o,p,r){o=d("MAWGetEphemeralSettings").getEphemeralSetting(p,f);var s=r;return o.then(function(f){if(l!=null){if(l.attachmentFbid==="369239263222822"||l.attachmentFbid==="369239343222814"||l.attachmentFbid==="369239383222810"){var o;return d("MAWUIJob").UIJobStarters.waitUntilPersisted(d("MAWJobDefinitions").createStartJobInfo("sendMsg",{args:{content:"\ud83d\udc4d",ephemeralSetting:(o=f)!=null?o:void 0,isFirstMsg:s,isForwarded:k,s2sInstanceKey:n,source:m,specialTextSize:1},chatJid:p,externalId:d("MAWExternalId").generateExternalId(),scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}))}return(h||(h=d("I64"))).equal(l.attachmentType,(i||(i=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").XMA))?q(a,l,e,n).then(function(a){var b,e=a.faviconFileArgs,g=a.headerFileArgs,h=a.previewFileArgs,i=a.xmaArgs;a=a.xmaMessageType;return d("MAWUIJob").UIJobStarters.waitUntilCompleted(d("MAWJobDefinitions").createStartJobInfo("sendXMAShareMsg",{args:{ephemeralSetting:(b=f)!=null?b:void 0,isFirstMsg:s,isForwarded:!0,s2sInstanceKey:n,s2sUserFlowQPLEvent:c("qpl")._(25313175,"1551"),xmaMessageType:(b=a)!=null?b:d("WAArmadilloXMA.pb").EXTENDED_CONTENT_MESSAGE_EXTENDED_CONTENT_TYPE.FB_FEED_SHARE},chatJid:p,faviconFile:e,headerFile:g,previewFile:h,scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION},xmaArgs:i,xmaMsgExternalId:d("MAWExternalId").generateExternalId()}))}):y(l).then(function(a){switch(a.type){case"image":var e,g=a.args;d("MAWUIJob").UIJobStarters.fireAndForget(d("MAWJobDefinitions").createStartJobInfo("sendMediaMsg",{args:{ephemeralSetting:(e=f)!=null?e:void 0,height:g.imageSpec.height,isFirstMsg:s,isForwarded:k,jpegThumbnail:g.thumbnailUrlAndSpec.jpegThumbnail,jpegThumbnailHeight:g.thumbnailUrlAndSpec.height,jpegThumbnailWidth:g.thumbnailUrlAndSpec.width,s2sInstanceKey:n,source:m,width:g.imageSpec.width},chatJid:p,externalId:d("MAWExternalId").generateExternalId(),file:a.file,scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}));break;case"video":e=a.args;d("MAWUIJob").UIJobStarters.fireAndForget(d("MAWJobDefinitions").createStartJobInfo("sendMediaMsg",{args:{duration:e.thumbnailUrlAndSpec.duration,ephemeralSetting:(g=f)!=null?g:void 0,height:e.thumbnailUrlAndSpec.height,isFirstMsg:s,isForwarded:k,jpegThumbnail:e.thumbnailUrlAndSpec.jpegThumbnail,jpegThumbnailHeight:e.thumbnailUrlAndSpec.height,jpegThumbnailWidth:e.thumbnailUrlAndSpec.width,s2sInstanceKey:n,source:m,width:e.thumbnailUrlAndSpec.width},chatJid:p,externalId:d("MAWExternalId").generateExternalId(),file:a.file,scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}));break;case"audio":g=a.args;d("MAWUIJob").UIJobStarters.fireAndForget(d("MAWJobDefinitions").createStartJobInfo("sendMediaMsg",{args:{duration:Math.round(g.durations),ephemeralSetting:(e=f)!=null?e:void 0,isFirstMsg:s,isForwarded:k,isPtt:g.isPtt,s2sInstanceKey:n,source:m},chatJid:p,externalId:d("MAWExternalId").generateExternalId(),file:a.file,scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}));break;case"document":if(c("gkx")("9045")){d("MAWUIJob").UIJobStarters.fireAndForget(d("MAWJobDefinitions").createStartJobInfo("sendMediaMsg",{args:{ephemeralSetting:(e=f)!=null?e:void 0,filename:a.args.filename,isFirstMsg:s,isForwarded:k,s2sInstanceKey:n,source:m},chatJid:p,externalId:d("MAWExternalId").generateExternalId(),file:a.file,scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}))}else throw c("unrecoverableViolation")("Forwarding secure doc messages is not supported on web yet","messenger_web_product");break}return(j||(j=b("Promise"))).resolve()})}o=g.text;if(o!=null){return d("MAWUIJob").UIJobStarters.fireAndForget(d("MAWJobDefinitions").createStartJobInfo("sendMsg",{args:{content:g.text,ephemeralSetting:(o=f)!=null?o:void 0,isFirstMsg:s,isForwarded:k,s2sInstanceKey:n,source:m},chatJid:p,externalId:d("MAWExternalId").generateExternalId(),scheduleConfig:{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}}))}throw c("unrecoverableViolation")("We do not support forwarding this types","messenger_web_product")})}))}g.forwardMessage=a}),98); __d("MWUseGlobalMuteUntil",["I64","ReQL","ReQLSuspense","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(){var a=(i||(i=c("useReStore")))(),b=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(a.table("notification_settings"))},[a],f.id+":26");return b!=null?b.globalMuteUntil:(h||(h=d("I64"))).zero}g.useGlobalMuteUntil=a}),98); __d("MAWOptimisticCreateOrDeleteReaction",["I64","LSAuthorityLevel","MAWTimeUtils","QPLUserFlow","WATimeUtils","asyncToGeneratorRuntime","err","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(h||d("react")).useCallback;function a(){return j(function(a,e,f,g,h,j){return h.runInTransaction(function(){var h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){try{if(f==null){var h=(yield b.table("reactions").get(a,e,j));yield b.table("reactions")["delete"](a,e,j);return h}else{yield b.table("reactions").upsert([a,e,j],{actorId:j,authorityLevel:(i||(i=d("I64"))).of_int32(c("LSAuthorityLevel").OPTIMISTIC),messageId:e,reaction:(h=f)!=null?h:"",threadKey:a,timestampMs:d("MAWTimeUtils").toTimestamp(d("WATimeUtils").unixTime())})}}catch(a){c("QPLUserFlow").addPoint(c("qpl")._(1056843664,"1465"),"fail_create_optimistic_reaction",{instanceKey:g});throw c("err")("Failed to send or unsend optimistic reaction: "+a+" ")}finally{c("QPLUserFlow").addPoint(c("qpl")._(1056843664,"1465"),"create_optimistic_reaction_end",{instanceKey:g})}});return function(a){return h.apply(this,arguments)}}(),"readwrite")},[])}g["default"]=a}),98); __d("MAWSendOrRemoveReaction.react",["FBLogger","I64","Int64Hooks","LSAuthorityLevel","MAWBridgeSendAndReceive","MAWBridgeUIEventQPLLogger","MAWDbMsg","MAWJobDefinitions","MAWMiActOnActThreadReady","MAWOptimisticCreateOrDeleteReaction","MAWTimedJob","MWPActor.react","QPLUserFlow","ReQL","WAJobOrchestratorTypes","err","promiseDone","qpl","useMWLSDefaultThreadSource","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,b){var e=d("MAWBridgeUIEventQPLLogger").getInstanceKey(),f=d("MWPActor.react").useActor(),g=(i||(i=c("useReStore")))(),h=c("MAWOptimisticCreateOrDeleteReaction")(),k=c("useMWLSDefaultThreadSource")();return d("Int64Hooks").useCallbackInt64(function(i,l){var m=d("MAWDbMsg").toMsgId(i);if(b==null||m==null)return;c("QPLUserFlow").start(c("qpl")._(1056843664,"1465"),{instanceKey:e});c("QPLUserFlow").addPoint(c("qpl")._(1056843664,"1465"),"create_optimistic_reaction_start",{instanceKey:e});var n=k(a),o=h(a,m,l,e,g,f);c("promiseDone")(o);c("promiseDone")(d("MAWMiActOnActThreadReady").onActThreadReady(g,a,"MAWSendOrRemoveReaction.react",function(h,i,k){return d("MAWBridgeSendAndReceive").sendAndReceive("backend","getProtocolMsgIdByMsgId",{msgId:m}).then(function(a){if(a!=null)return d("MAWTimedJob").TimedUIJobStarters.waitUntilCompleted(d("MAWJobDefinitions").jobSerializers.sendReactionMsg(k,a,b,l,void 0,{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION},n))}).then(function(a){c("QPLUserFlow").endSuccess(c("qpl")._(1056843664,"1465"),{instanceKey:e})})["catch"](function(b){c("promiseDone")(j(g,a,m,l,f,o));c("FBLogger")("messenger_e2ee_web").catching(b).mustfix("Failed to send or unsend optimistic reaction: %s.",b);c("QPLUserFlow").endFailure(c("qpl")._(1056843664,"1465"),"failure",{instanceKey:e});throw c("err")("Failed to send or unsend optimistic reaction: "+b+" ")})}))},[b,e,k,a,h,g,f])}function j(a,b,e,f,g,i){return a.runInTransaction(function(j){if(f==null)return i.then(function(a){if(a==null)throw c("err")("User tries to remove a reaction that does not exist in LSDB. ");c("promiseDone")(j.table("reactions").upsert([a.threadKey,a.messageId,a.actorId],babelHelpers["extends"]({},a)))});var k=d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("reactions")).getKeyRange(b,e,g).filter(function(a){return(h||(h=d("I64"))).equal(a.authorityLevel,h.of_int32(c("LSAuthorityLevel").OPTIMISTIC))}));return k.then(function(a){if(a==null)return;return j.table("reactions")["delete"](a.threadKey,a.messageId,a.actorId)})},"readwrite")}g.useSendOrRemoveReaction=a}),98); __d("MWChatIsMessageRequest",["CurrentUser"],(function(a,b,c,d,e,f,g){"use strict";function a(a){if(a!=null)if(a==="pending")return!0;else if(a==="other")return!c("CurrentUser").isWorkUser();else return!1;else return!1}g.fn=a}),98); __d("MWChatChatButtonColorConstants",[],(function(a,b,c,d,e,f,g){"use strict";a={fillGrey:{fill:"xsrhx6k",$$css:!0},strokeGrey:{stroke:"x1dmfqyo",$$css:!0}};g.styles=a}),98); __d("MWChatBusinessQuickReply.react",["CometImage.react","MDSTextPairing.react","gkx","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={image:{borderTopStartRadius:"x1z11no5",borderTopEndRadius:"xjy5m1g",borderBottomEndRadius:"x1mnwbp6",borderBottomStartRadius:"x4pb5v6","float":"xrbpyxo",height:"x158ke7r",marginTop:"x16ldp7u",marginEnd:"x1t4t16n",marginBottom:"xz62fqu",marginStart:"xbmpl8g",width:"x1kl0l3y",$$css:!0},root:{alignItems:"x6s0dn4",backgroundColor:"xcrg951",borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",borderTopStyle:"x143s1ad",borderEndStyle:"xp3zfi1",borderBottomStyle:"x137oirg",borderStartStyle:"xojro6o",boxShadow:"x1vnslfi",boxSizing:"x9f619",cursor:"x1ypdohk",fontFamily:"xjb2p0i",fontWeight:"xk50ysn",justifyContent:"xl56j7k",marginTop:"xr9ek0c",marginEnd:"x1emribx",marginBottom:"xjpr12u",marginStart:"x1i64zmx",overflowWrap:"x1mzt3pk",paddingBottom:"x1a8lsjc",paddingEnd:"xn6708d",paddingLeft:null,paddingRight:null,paddingStart:"x1ye3gou",paddingTop:"x889kno",textAlign:"x1yc453h",wordBreak:"x13faqbe",$$css:!0},vertical:{paddingBottom:"xsag5q8",paddingEnd:"xn6708d",paddingLeft:null,paddingRight:null,paddingStart:"xr9oo41",$$css:!0}};function a(a){var b=a.bodyLineLimit;b=b===void 0?1:b;var d=a.imageUrl,e=a.onClick,f=a.quickReplyVertical;f=f===void 0?!1:f;a=a.text;var g=c("gkx")("7695");return j.jsx("div",{className:(h||(h=c("stylex")))(f?k.vertical:!1),children:j.jsxs("button",{className:"x6s0dn4 xcrg951 xfh8nwu xoqspk4 x12v9rci x138vmkv x143s1ad xp3zfi1 x137oirg xojro6o x1vnslfi x9f619 x1ypdohk xjb2p0i xk50ysn xl56j7k xr9ek0c x1emribx xjpr12u x1i64zmx x1mzt3pk x1a8lsjc xn6708d x1ye3gou x889kno x1yc453h x13faqbe",onClick:e,children:[d!=null?j.jsx(c("CometImage.react"),{src:d,xstyle:k.image}):null,j.jsx(c("MDSTextPairing.react"),{body:a,bodyColor:g?"blueLink":"primary",bodyLineLimit:b,level:3})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatBusinessQuickReplyText.react",["MWChatBusinessQuickReply.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.onSend,d=a.quickReply;a=a.quickReplyVertical;var e=a?3:1,f=function(){return b(d)},g=d.image_url;return i.jsx(c("MWChatBusinessQuickReply.react"),{bodyLineLimit:e,imageUrl:(e=g)!=null?e:void 0,onClick:f,quickReplyVertical:a,text:d.title})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatUserBirthdayQuery",["CometRelay","MWChatUserBirthdayQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i="en-US";function j(a,b,c,d){c=new Date(c,b-1,a);return c.toLocaleDateString(d,{day:"numeric",month:"numeric",year:"numeric"})}a=function(){var a=d("CometRelay").useRelayEnvironment();return function(b){var e=d("CometRelay").fetchQuery(a,k,{}).toPromise().then(function(a){a=a==null?void 0:(a=a.viewer)==null?void 0:(a=a.user)==null?void 0:a.birthdate;if(a){var c=a==null?void 0:a.day,d=a==null?void 0:a.month;a=a==null?void 0:a.year;c!=null&&d!=null&&a!=null&&b(j(c,d,a,i))}});c("promiseDone")(e)}};var k=h!==void 0?h:h=b("MWChatUserBirthdayQuery.graphql");g.useUserBirthdayDataQuery=a}),98); __d("MWChatBusinessQuickReplyUserBirthday.react",["MWChatBusinessQuickReply.react","MWChatUserBirthdayQuery","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){var b=a.onSend,e=a.quickReply,f=a.quickReplyVertical;a=a.userID;var g=d("MWChatUserBirthdayQuery").useUserBirthdayDataQuery(),h=k(),l=h[0],m=h[1];j(function(){g(function(a){return m(a)})},[a,g,m]);if(l==null)return null;h=e.content_type;a=e.data;var n=e.image_url;e=e.payload;var o={content_type:h,data:a,image_url:n,payload:e,title:l};h=function(){return b(o)};return i.jsx(c("MWChatBusinessQuickReply.react"),{onClick:h,quickReplyVertical:f,text:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatUserEmailQuery",["CometRelay","MWChatUserEmailQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(){var a=d("CometRelay").useRelayEnvironment();return function(b){var e=d("CometRelay").fetchQuery(a,i,{}).toPromise().then(function(a){a=a==null?void 0:a.viewer.all_emails;if(a&&a.length>0){var c=a.find(function(a){return a.is_primary});c!=null?b(c.display_email):b(a[0].display_email)}});c("promiseDone")(e)}};var i=h!==void 0?h:h=b("MWChatUserEmailQuery.graphql");g.useUserEmailDataQuery=a}),98); __d("MWChatBusinessQuickReplyUserEmail.react",["MWChatBusinessQuickReply.react","MWChatUserEmailQuery","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){var b=a.onSend,e=a.quickReply,f=a.quickReplyVertical;a=a.userID;var g=d("MWChatUserEmailQuery").useUserEmailDataQuery(),h=k(),l=h[0],m=h[1];j(function(){g(m)},[a,g,m]);return l==null?null:i.jsx(c("MWChatBusinessQuickReply.react"),{onClick:function(){return b({content_type:e.content_type,data:e.data,image_url:e.image_url,payload:e.payload,title:l})},quickReplyVertical:f,text:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatUserPhoneNumberQuery",["CometRelay","MWChatUserPhoneNumberQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(){var a=d("CometRelay").useRelayEnvironment();return function(b){var e=d("CometRelay").fetchQuery(a,i,{}).toPromise().then(function(a){a=a==null?void 0:a.viewer.user.all_phones;if(a&&a.length>0){var c=a.find(function(a){return a.is_preferred});if(c!=null){b((c=c.phone_number)==null?void 0:c.universal_number)}else{b((c=a[0].phone_number)==null?void 0:c.universal_number)}}});c("promiseDone")(e)}};var i=h!==void 0?h:h=b("MWChatUserPhoneNumberQuery.graphql");g.useUserPhoneNumberDataQuery=a}),98); __d("MWChatBusinessQuickReplyUserPhoneNumber.react",["MWChatBusinessQuickReply.react","MWChatUserPhoneNumberQuery","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){var b=a.onSend,e=a.quickReply,f=a.quickReplyVertical;a=a.userID;var g=d("MWChatUserPhoneNumberQuery").useUserPhoneNumberDataQuery(),h=k(function(){}),l=h[0],m=h[1];j(function(){g(function(a){return m(function(){return a})})},[a,g,m]);if(l==null)return null;h=e.content_type;a=e.data;var n=e.image_url;e=e.payload;var o={content_type:h,data:a,image_url:n,payload:e,title:l};h=function(){return b(o)};return i.jsx(c("MWChatBusinessQuickReply.react"),{onClick:h,quickReplyVertical:f,text:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatUserProfileLocationQuery",["CometRelay","MWChatUserProfileLocationQuery.graphql","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(){var a=d("CometRelay").useRelayEnvironment();return function(b){var e=d("CometRelay").fetchQuery(a,i,{}).toPromise().then(function(a){a=a==null?void 0:(a=a.viewer)==null?void 0:(a=a.actor)==null?void 0:(a=a.address)==null?void 0:a.region;a!=null&&a!==""&&b(a)});c("promiseDone")(e)}};e=function(){var a=d("CometRelay").useRelayEnvironment();return function(b){var e=d("CometRelay").fetchQuery(a,i,{}).toPromise().then(function(a){a=a==null?void 0:(a=a.viewer)==null?void 0:(a=a.actor)==null?void 0:a.address;a=a==null?void 0:a.postal_code;a!=null&&b(a)});c("promiseDone")(e)}};var i=h!==void 0?h:h=b("MWChatUserProfileLocationQuery.graphql");g.useUserProfileStateDataQuery=a;g.useUserProfileZipCodeDataQuery=e}),98); __d("MWChatBusinessQuickReplyUserState.react",["MWChatBusinessQuickReply.react","MWChatUserProfileLocationQuery","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){var b=a.onSend,e=a.quickReply,f=a.quickReplyVertical;a=a.userID;var g=d("MWChatUserProfileLocationQuery").useUserProfileStateDataQuery(),h=k(),l=h[0],m=h[1];j(function(){g(function(a){return m(a)})},[a,g,m]);if(l==null)return null;h=e.content_type;a=e.data;var n=e.image_url;e=e.payload;var o={content_type:h,data:a,image_url:n,payload:e,title:l};h=function(){return b(o)};return i.jsx(c("MWChatBusinessQuickReply.react"),{onClick:h,quickReplyVertical:f,text:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatBusinessQuickReplyUserZipCode.react",["MWChatBusinessQuickReply.react","MWChatUserProfileLocationQuery","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){var b=a.onSend,e=a.quickReply,f=a.quickReplyVertical;a=a.userID;var g=d("MWChatUserProfileLocationQuery").useUserProfileZipCodeDataQuery(),h=k(),l=h[0],m=h[1];j(function(){g(function(a){return m(a)})},[a,g,m]);if(l==null)return null;h=e.content_type;a=e.data;var n=e.image_url;e=e.payload;var o={content_type:h,data:a,image_url:n,payload:e,title:l};h=function(){return b(o)};return i.jsx(c("MWChatBusinessQuickReply.react"),{onClick:h,quickReplyVertical:f,text:l})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWChatBusinessQuickReplyList.react",["Actor","CometScrollableArea.react","I64","LSIntEnum","LSQuickReplyType","MWChatBusinessQuickReplyText.react","MWChatBusinessQuickReplyUserBirthday.react","MWChatBusinessQuickReplyUserEmail.react","MWChatBusinessQuickReplyUserPhoneNumber.react","MWChatBusinessQuickReplyUserState.react","MWChatBusinessQuickReplyUserZipCode.react","MessengerWebEventsFalcoEvent","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react")),m=i.useEffect,n={container:{position:"x1n2onr6",width:"xh8yej3",$$css:!0},mask:{backgroundColor:"xcrg951",$$css:!0},pillContainer:{backgroundColor:"xcrg951",display:"x78zum5",flexDirection:"x1q0g3np",flexWrap:"xozqiw3",paddingTop:"x1nn3v0j",paddingEnd:"x1sxyh0",paddingBottom:"x1a8lsjc",paddingStart:"xurb0ha",$$css:!0},pillContainerVertical:{alignItems:"xuk3077",backgroundColor:"xcrg951",display:"x78zum5",flexDirection:"xdt5ytf",paddingTop:"xm7lytj",$$css:!0}};function a(a){var b=a.arrayQR,e=a.id,f=a.onSend;a=a.quickReplyType;a=a!=null?a:(j||(j=d("LSIntEnum"))).ofNumber(c("LSQuickReplyType").NONE);var g=(k||(k=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSQuickReplyType").VERTICAL));a=d("Actor").useActor();var i=a[0];m(function(){c("MessengerWebEventsFalcoEvent").log(function(){return{event_name:"render_quick_replies",other_user_fbid:e}})},[e]);return l.jsx("div",{className:"x1n2onr6 xh8yej3 xcrg951",children:l.jsx(c("CometScrollableArea.react"),{horizontal:!0,children:l.jsx("div",{className:(h||(h=c("stylex")))(g?n.pillContainerVertical:n.pillContainer),children:b.map(function(a,b){switch(a.content_type){case"text":return l.jsx(c("MWChatBusinessQuickReplyText.react"),{onSend:f,quickReply:a,quickReplyVertical:g},String(b));case"user_birthday":return l.jsx(c("MWChatBusinessQuickReplyUserBirthday.react"),{onSend:f,quickReply:a,quickReplyVertical:g,userID:i},String(b));case"user_email":return l.jsx(c("MWChatBusinessQuickReplyUserEmail.react"),{onSend:f,quickReply:a,quickReplyVertical:g,userID:i},String(b));case"user_phone_number":return l.jsx(c("MWChatBusinessQuickReplyUserPhoneNumber.react"),{onSend:f,quickReply:a,quickReplyVertical:g,userID:i},String(b));case"user_state":return l.jsx(c("MWChatBusinessQuickReplyUserState.react"),{onSend:f,quickReply:a,quickReplyVertical:g,userID:i},String(b));case"user_zip_code":return l.jsx(c("MWChatBusinessQuickReplyUserZipCode.react"),{onSend:f,quickReply:a,quickReplyVertical:g,userID:i},String(b));default:return null}})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPQuickReplies.react",["FBLogger","I64","LSFactory","LSIntEnum","LSMailboxType","LSMessageReplySourceType","LSMessageReplySourceTypeV2","LSOptimisticSendMessageV2StoredProcedure","LSShape","LSThreadAttributionTypeUtil","MWChatBusinessQuickReplyList.react","MWPActor.react","MessagePowerUp","Promise","ReQL","ReQLSuspense","promiseDone","react","useLSMessagingSource","useReStore","withCometPlaceholder"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||d("react");function n(a){var e=a.lastMessageId,g=a.quickReplyType,l=a.threadKey,n=c("useLSMessagingSource")(),o=(i||(i=c("useReStore")))(),p=d("MWPActor.react").useActor();a=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(o.table("quick_reply_ctas")).getKeyRange(l,e).map(function(a){var b=a.type_,d=b==="quick_reply_text"||b==="quick_reply_ad"?"text":b==="quick_reply_phone"?"user_phone_number":b==="quick_reply_email"?"user_email":"";d===""&&c("FBLogger")("messenger_web_product").mustfix("Unexpected quick-reply type: %s, title: %s",b,a.title);return{content_type:d,data:void 0,image_url:a.imageUrl,payload:a.platformToken,title:a.title}}).filter(function(a){return a.content_type!==""})},[o,e,l],f.id+":50");if(a.length>0)return m.jsx(c("MWChatBusinessQuickReplyList.react"),{arrayQR:a,id:(j||(j=d("I64"))).to_string(p),onSend:function(a){var e=d("LSThreadAttributionTypeUtil").getSource(l,n),f=o.runInTransaction(function(f){var g;g=(g=a.payload)!=null?g:void 0;return c("LSOptimisticSendMessageV2StoredProcedure")(c("LSFactory")(f),{extraSendMessageParams:d("LSShape").ofRecord({calculate_denormalizations:!0,mark_read:!0,platform_token:g,power_up_style:(k||(k=d("LSIntEnum"))).ofNumber(c("MessagePowerUp").NONE),reply_source_type:k.ofNumber(c("LSMessageReplySourceType").NONE),reply_source_type_v2:k.ofNumber(c("LSMessageReplySourceTypeV2").NONE),snippet_has_emoji:!1,source:e}),mailboxType:k.ofNumber(c("LSMailboxType").MESSENGER),senderId:p,text:a.title,threadKey:l,threadType:k.ofNumber(1)}).then(function(a){return(h||(h=b("Promise"))).resolve(a)})},"readwrite");c("promiseDone")(f)},quickReplyType:g});else return null}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.threadKey,e=(i||(i=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableDescending(e.table("messages")).getKeyRange(b)},[e,b],f.id+":135");if(a!=null)return m.jsx(n,{lastMessageId:a.messageId,quickReplyType:a.quickReplyType,threadKey:b});else return null}a.displayName=a.name+" [from "+f.id+"]";e=d("withCometPlaceholder").withCometPlaceholder(a);g["default"]=e}),98); __d("getMWLSOngoingCallServerInfoData",["ReQL"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){return d("ReQL").fromTableAscending(a.table("rtc_ongoing_calls_on_threads_v2")).getKeyRange(b).map(function(a){return a.ongoingCallServerInfoData})}g["default"]=a}),98); __d("getRTCCallStateOfLSRTCCallState",["FBLogger","LSRtcCallState"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return a===2?!0:a===8}function a(a,b){switch(a){case c("LSRtcCallState").AUDIO_1TO1_CALL:return"AUDIO_1TO1_CALL";case c("LSRtcCallState").VIDEO_1TO1_CALL:return"VIDEO_1TO1_CALL";case c("LSRtcCallState").NO_ONGOING_CALL:return"NO_ONGOING_CALL";case c("LSRtcCallState").AUDIO_GROUP_CALL:return h(b)?"AUDIO_GROUP_CALL":"AUDIO_1TO1_CALL";case c("LSRtcCallState").VIDEO_GROUP_CALL:return h(b)?"VIDEO_GROUP_CALL":"VIDEO_1TO1_CALL";default:c("FBLogger")("messenger_web_product").mustfix("Unknown RTCCallState: %sL and threadType %sL",a,b);return"NO_ONGOING_CALL"}}g["default"]=a}),98); __d("useMWLSGetOngoingCallState",["MWLSThread","MWThreadKey.react"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=d("MWThreadKey.react").useMWThreadKeyMemoizedExn();return d("MWLSThread").useThread(a,function(a){return a.ongoingCallState})}g["default"]=a}),98); __d("useRTWebOutgoingGroupCallDialog",["JSResourceForInteraction","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useRef,k=c("JSResourceForInteraction")("RTWebCometOutgoingGroupCallContentLS.react").__setRef("useRTWebOutgoingGroupCallDialog");function a(){var a=j(!1),b=c("useCometLazyDialog")(k),d=b[0];return i(function(b){a.current||(a.current=!0,d(b,function(){a.current=!1}))},[a,d])}g["default"]=a}),98); __d("useRTWebOutgoingUnsupportedBrowserDialog",["JSResourceForInteraction","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback,j=c("JSResourceForInteraction")("RTWebOutgoingUnsupportedBrowserDialogWrapper.react").__setRef("useRTWebOutgoingUnsupportedBrowserDialog");function a(){var a=c("useCometLazyDialog")(j),b=a[0];return i(function(a){b(a)},[b])}g["default"]=a}),98); __d("useRTWebCometStartCallCallback",["Actor","RTWebPreCallHooks","react","useRTWebOutgoingGroupCallDialog","useRTWebOutgoingUnsupportedBrowserDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;e=d("RTWebPreCallHooks").createInviteAndStartCallCallbackHook(a,b);function a(){var a=d("Actor").useActor(),b=a[0],e=c("useRTWebOutgoingGroupCallDialog")();return i(function(a,c){var d=a.thread.id;a=a.trigger;e({onCall:c,threadID:d,trigger:a,viewer:b})},[e,b])}function b(){var a=d("Actor").useActor(),b=a[0],e=c("useRTWebOutgoingUnsupportedBrowserDialog")();return i(function(a){a=a.thread;var c=a.id;a=a.type;e({actorID:b,threadID:c,threadType:a})},[b,e])}g["default"]=e}),98); __d("MWLSStartPhoneCall",["$InternalEnum","I64","Int64Hooks","LSIntEnum","LSMessagingThreadTypeUtil","LSRtcCallState","MWPActor.react","MWThreadKey.react","Promise","ReQL","getMWLSOngoingCallServerInfoData","getRTCCallStateOfLSRTCCallState","promiseDone","recoverableViolation","useMWLSGetOngoingCallState","useRTWebCometStartCallCallback","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=b("$InternalEnum").Mirrored(["OngoingVideoCall","OngoingAudioCall"]);function a(){var a=(k||(k=c("useReStore")))(),e=c("useRTWebCometStartCallCallback")(),f=d("MWThreadKey.react").useMWThreadKeyMemoizedExn(),g=c("useMWLSGetOngoingCallState")(),m=d("MWPActor.react").useActor(),n=d("Int64Hooks").useCallbackInt64(function(k,l,n){var o=k?"video":"audio";c("promiseDone")((j||(j=b("Promise"))).all([d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("threads")).getKeyRange(f)),d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("participants"),["contactId"]).getKeyRange(f).filter(function(a){return!(h||(h=d("I64"))).equal(a.contactId,m)}).map(function(a){return(h||(h=d("I64"))).to_string(a.contactId)})),d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.table("mi_act_mapping_table")).getKeyRange(f).map(function(a){return a.jid}))]).then(function(k){var m=k[0],p=k[1],q=k[2];if(m==null){c("recoverableViolation")("Cannot find thread when trying to call someone","messenger_web_product");return}return d("ReQL").firstAsync(c("getMWLSOngoingCallServerInfoData")(a,f)).then(function(a){return(j||(j=b("Promise"))).resolve(e({existingCall:g!=null&&a!=null?{call_state:c("getRTCCallStateOfLSRTCCallState")((i||(i=d("LSIntEnum"))).unwrapIntEnum(g),(i||(i=d("LSIntEnum"))).unwrapIntEnum(m.threadType)),initiator_fbid:null,server_info_data:a}:null,isE2eeMandated:d("LSMessagingThreadTypeUtil").isSecure(m.threadType),mediaType:o,thread:{e2eeThreadID:q==null?void 0:(h||(h=d("I64"))).to_string(q),id:l,secureOneToOneThreadPeerId:p!=null&&(h||(h=d("I64"))).equal(m.threadType,(i||(i=d("LSIntEnum"))).ofNumber(15))?p:void 0,type:(i||(i=d("LSIntEnum"))).unwrapIntEnum(m.threadType)},trigger:n}))})}),void 0,function(a){c("recoverableViolation")("Error making a phone call","rtc_www",{error:a.Error})})},[m,e,f,a,g]),o=void 0;g!=null&&(h||(h=d("I64"))).equal(g,(i||(i=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").AUDIO_GROUP_CALL))?o=l.OngoingAudioCall:g!=null&&(h||(h=d("I64"))).equal(g,(i||(i=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").VIDEO_GROUP_CALL))&&(o=l.OngoingVideoCall);return[n,o]}g.useMakeRTCCall=a}),98); __d("MWV2ComposerStickerCommon",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";a=h._("__JHASH__430IPCMJAf3__JHASH__");b=["LAST_SELECTED_TAB","CUSTOM_PACK","AVATAR_PACK","STICKER_PACK"];g.LABEL=a;g.TABLIST_FOR_SECURE_THREADS=b}),98); __d("useMWV2ComposerOnFilesSelected",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useCallback;function a(a){return i(function(b){b=Array.from(b);if(b.length>0)return a(b)},[a])}g["default"]=a}),98); __d("useMWV2ComposerOnGifSelect",["I64","LSShape","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(h||d("react")).useCallback;function k(a,b,c){return d("LSShape").ofRecord({preview_height:b,preview_url:a,preview_width:c})}function a(a){return j(function(b){var c=b.platformFBID;b=b.source;var e=b.height,f=b.url;b=b.width;c=(i||(i=d("I64"))).of_string(c);f=f;return a(void 0,void 0,void 0,void 0,c,f,k(f,i.of_int32(e),i.of_int32(b)),void 0,void 0,void 0)},[a])}g["default"]=a}),98); __d("useMWV2ComposerOnStickerSelect",["I64","LSShape","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(h||d("react")).useCallback,k=(i||(i=d("I64"))).of_string("128");function l(a){return d("LSShape").ofRecord({preview_height:k,preview_url:a,preview_width:k})}function a(a,b){return j(function(e,f){var g;g=(g=f.animated_uri)!=null?g:f.uri;f=(i||(i=d("I64"))).of_string(e);return a(void 0,void 0,f,void 0,void 0,b?c("nullthrows")(g):void 0,b?void 0:l(g))},[a,b])}g["default"]=a}),98); __d("MWV2MediaViewerContainer.react",["MessengerBlurpleLogoSvg.react","XMessengerDotComCometRootControllerRouteBuilder","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.actions,d=a.children;a=a.shouldShowMessengerLogo;return i.jsxs("div",{className:"x1qjc9v5 xal61yo x9f619 x78zum5 xdt5ytf x1iyjqo2 x5yr21d x6ikm8r x10wlt62 x1n2onr6 x87ps6o x1uvtmcs",children:[d,i.jsx("div",{className:"x10l6tqk x16q8cke x1tk7jg1",children:((d=a)!=null?d:!1)?i.jsx("a",{"aria-label":"Messenger",href:c("XMessengerDotComCometRootControllerRouteBuilder").buildURL({}),children:i.jsx(c("MessengerBlurpleLogoSvg.react"),{height:"40",width:"40"})}):null}),i.jsx("div",{className:"x92rtbv x10l6tqk x1tk7jg1",children:b})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSAddMessengerContact",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("contact_id",a[0]),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),"add_messenger_contact",c.i64.cast([0,308]),d[1],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSAddMessengerContactStoredProcedure",["LSAddMessengerContact"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.contactId;return c("LSAddMessengerContact").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("LSOptimisticAcceptMessageRequest",["LSIssueNewTaskWithExtraOperations"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(e,f){f=e.done;e=e.value;return f?0:(e.item,c.sequence([function(b){return c.forEach(c.db.table(9).fetch([[[a[0]]]]),function(b){var d=b.update;b.item;return d({folderName:"inbox",parentThreadKey:c.i64.cast([0,0]),igFolder:a[1]})})},function(b){return c.db.table(173).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?0:(b=a.item,d[4]=b.clientThreadPk,c.db.table(276).fetch([[[d[4]]]]).next().then(function(a,b){b=a.done;a=a.value;return b?0:(a.item,c.forEach(c.db.table(276).fetch([[[d[4]]]]),function(a){var b=a.update;a.item;return b({folderType:c.i64.cast([0,0])})}))}))})},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=c.i64.cast([0,1]):(b=a.item,d[5]=b.syncGroup,c.i64.neq(d[5],void 0)?d[4]=d[5]:d[4]=c.i64.cast([0,1]),d[0]=d[4])})},function(e){return d[2]=new c.Map(),d[2].set("thread_key",a[0]),d[2].set("sync_group",d[0]),d[2].set("ig_folder",a[1]),d[3]=c.toJSON(d[2]),c.storedProcedure(b("LSIssueNewTaskWithExtraOperations"),"message_request",c.i64.cast([0,66]),d[3],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),void 0,c.i64.cast([0,0]))}]))})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSOptimisticAcceptMessageRequestStoredProcedure",["LSOptimisticAcceptMessageRequest"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;d[1]=b.igFolder;return c("LSOptimisticAcceptMessageRequest").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("acceptMAWMessageRequest",["I64","LSAddMessengerContactStoredProcedure","LSFactory","LSOptimisticAcceptMessageRequestStoredProcedure","MAWUpdateLSThreadCapabilities","Promise","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,e,f,g){if(!g||f==null)return;var j=f[1],k=babelHelpers["extends"]({},j,{contactViewerRelationship:(i||(i=d("I64"))).of_string("2")});c("promiseDone")(a.runInTransaction(function(a){return(h||(h=b("Promise"))).all([a.table("contacts").upsert([j.id],k),c("LSAddMessengerContactStoredProcedure")(c("LSFactory")(a),{contactId:j.id}),d("MAWUpdateLSThreadCapabilities").updateNonMessageRequestThreadTxn(a,e.threadKey),c("LSOptimisticAcceptMessageRequestStoredProcedure")(c("LSFactory")(a),{threadKey:e.threadKey})])},"readwrite"))}g["default"]=a}),98); __d("MWCommunityMessagingNUXDialog.react",["MWCommunityMessagingNUXQuickPromotionContainer.entrypoint","react","react-relay/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var d=a.folderId;a=a.isFolderRoute;return i.jsx(c("react-relay/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react"),{entryPoint:b("MWCommunityMessagingNUXQuickPromotionContainer.entrypoint"),entryPointParams:{folderId:d,isFolderRoute:a||!1},props:{}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MAWGetAttachmentThumbnailBlob",["MAWBridgeSendAndReceive","MAWDbMedia","Promise","nullthrows","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=new Map();function a(a){if(a==null||a.hasMedia===!1)return"";var e=i.get(a.attachmentFbid);if(e!=null){if(e.TAG==="loading")throw e.urlPromise;return e.url}e=d("MAWBridgeSendAndReceive").sendAndReceive("backend","getThumbnailBlobDataUrlByMediaId",{mediaId:d("MAWDbMedia").convertNumberToMediaId(Number.parseInt(a.attachmentFbid,10))}).then(function(d){i.set(a.attachmentFbid,{TAG:"done",url:c("nullthrows")(d)});return(h||(h=b("Promise"))).resolve()})["catch"](function(d){i.set(a.attachmentFbid,{TAG:"done",url:""});c("recoverableViolation")("Unable to getThumbnailBlobDataUrlByMediaId","messenger_e2ee_web",{error:d});return(h||(h=b("Promise"))).resolve()});i.set(a.attachmentFbid,{TAG:"loading",urlPromise:e});throw e}g["default"]=a}),98); __d("MWV2SeenHead.react",["GenderConst","I64","LSIntEnum","MWMessageDeliveryStatus","getLSMediaContactProfilePictureUrl"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function j(a){var b,e=a[1];a=a[0];return{gender:c("GenderConst").NOT_A_PERSON,id:(h||(h=d("I64"))).to_string(e.id),imageSrc:c("getLSMediaContactProfilePictureUrl")(e),name:(b=a.nickname)!=null?b:e.name,timestamp:h.to_float(a.readActionTimestampMs)}}function a(a,b){var c={contents:(h||(h=d("I64"))).zero};a.forEach(function(a,e,f){e=a[0];if(!(h||(h=d("I64"))).equal(e.contactId,b)&&(h||(h=d("I64"))).gt(e.deliveredWatermarkTimestampMs,c.contents)){c.contents=e.deliveredWatermarkTimestampMs;return}});return c.contents}function b(a){return new Set([(h||(h=d("I64"))).to_string(a)])}function e(a,b,c,e,f,g){var k=[];b.forEach(function(b,e,f){if(c.has(e)||a.isAdminMessage)return;if(!(h||(h=d("I64"))).equal(a.sendStatusV2,(i||(i=d("LSIntEnum"))).ofNumber(2)))return;f=b[0];var l=(h||(h=d("I64"))).equal(a.senderId,f.contactId);f=h.le(a.timestampMs,f.readWatermarkTimestampMs);if(l||f){k.push(j(b));if(!g){c.add(e);return}else return}});var l=k.length===0&&c.size===1;if(k.length<=0)if((h||(h=d("I64"))).equal(a.senderId,f))return d("MWMessageDeliveryStatus").getDeliveryStatusForMessageSentByYou(a,e,l);else return{type:"NoneStatus"};if(!g)if(k.length>1)return{heads:k,type:"MultipleSeenHeads"};else return{head:k[0],type:"SingleSeenHead"};f=k.length===b.size-1;return{delivered:f,heads:k,type:"DeliveredAndRead"}}g.calculateMaxDeliveredTimestamp=a;g.makeExistingSeenHeads=b;g.deliveryStatusForMessage=e}),98); __d("useMWCMPollsV2Enabled",["LSThreadBitOffset","MWLSThread"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=(a=d("MWLSThread").useThread(a,function(a){return d("LSThreadBitOffset").has(159,a)}))!=null?a:!1;return a}g["default"]=a}),98); __d("MWXMAAttachmentSharedStackConstants",[],(function(a,b,c,d,e,f){"use strict";a=213;b=160;f.STACK_ITEM_HEIGHT=a;f.STACK_ITEM_WIDTH=b}),66); __d("FBLikeSvgIcon.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useId;function a(a){var b=a.alt,c=a.className,d=a.color;a=a.size;a=a===void 0?20:a;var e=b!=null,f=j();return i.jsxs("svg",{"aria-hidden":e?void 0:!0,"aria-labelledby":e?f:void 0,className:c,height:a,viewBox:"0 0 16 16",width:a,children:[e&&i.jsx("title",{id:f,children:b}),i.jsx("path",{d:"M16,9.1c0-0.8-0.3-1.1-0.6-1.3c0.2-0.3,0.3-0.7,0.3-1.2c0-1-0.8-1.7-2.1-1.7h-3.1c0.1-0.5,0.2-1.3,0.2-1.8 c0-1.1-0.3-2.4-1.2-3C9.3,0.1,9,0,8.7,0C8.1,0,7.7,0.2,7.6,0.4C7.5,0.5,7.5,0.6,7.5,0.7L7.6,3c0,0.2,0,0.4-0.1,0.5L5.7,6.6 c0,0-0.1,0.1-0.1,0.1l0,0l0,0L5.3,6.8C5.1,7,5,7.2,5,7.4v6.1c0,0.2,0.1,0.4,0.2,0.5c0.1,0.1,1,1,2,1h5.2c0.9,0,1.4-0.3,1.8-0.9 c0.3-0.5,0.2-1,0.1-1.4c0.5-0.2,0.9-0.5,1.1-1.2c0.1-0.4,0-0.8-0.2-1C15.6,10.3,16,9.9,16,9.1z",fill:d}),i.jsx("path",{d:"M3.3,6H0.7C0.3,6,0,6.3,0,6.7v8.5C0,15.7,0.3,16,0.7,16h2.5C3.7,16,4,15.7,4,15.3V6.7C4,6.3,3.7,6,3.3,6z",fill:d})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWLikeSvgIcon.react",["cr:1798"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:1798")}),98); __d("MWPOneToOneThreadBlockedContext.react",["I64","Int64Hooks","LSContactBlockedByViewerStatus","LSIntEnum","MWV2OneToOneThreadBlockedContext.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react");function a(a){var b=a.children,e=a.participants,f=a.thread;a=d("Int64Hooks").useMemoInt64(function(){if(!((i||(i=d("I64"))).equal(f.threadType,(j||(j=d("LSIntEnum"))).ofNumber(1))||(i||(i=d("I64"))).equal(f.threadType,(j||(j=d("LSIntEnum"))).ofNumber(15))))return!1;var a={contents:!1};e.forEach(function(b,e,f){if(!(i||(i=d("I64"))).equal(b[1].blockedByViewerStatus,(j||(j=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED))){a.contents=!0;return}});return a.contents},[f.threadType,e]);return k.jsx(d("MWV2OneToOneThreadBlockedContext.react").MWV2OneToOneThreadBlockedContext,{blocked:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MWPBaseMessageList_DEPRECATED",["BaseHeadingContextWrapper.react","LSMessagingThreadTypeUtil","MWPActor.react","MWPMessageAuthor.react","MWPOneToOneThreadBlockedContext.react","MWV2SeenHead.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.children,e=a.messages,f=a.participants,g=a.renderRow;a=a.thread;var h=d("MWPActor.react").useActor(),j=d("MWV2SeenHead.react").calculateMaxDeliveredTimestamp(f,h),k=d("MWV2SeenHead.react").makeExistingSeenHeads(h),l=d("LSMessagingThreadTypeUtil").isGroup(a.threadType)&&d("LSMessagingThreadTypeUtil").isSecure(a.threadType),m=[];for(var n=e.length-1|0;n>=0;--n){var o=n===0?void 0:e[n-1|0],p=n>=(e.length-1|0)?void 0:e[n+1|0],q=e[n],r=d("MWV2SeenHead.react").deliveryStatusForMessage(q,f,k,j,h,l);m.push(i.jsx(d("MWPMessageAuthor.react").MWPMessageAuthor,{contactId:q.senderId,threadKey:q.threadKey,children:g({message:q,nextMessage:p,prevMessage:o,status:r})},q.messageId))}if(m.length===0)return null;else return i.jsx(c("BaseHeadingContextWrapper.react"),{children:i.jsx("div",{className:"x1ja2u2z",children:i.jsx(c("MWPOneToOneThreadBlockedContext.react"),{participants:f,thread:a,children:b(m.reverse())})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MessengerThreadThemeGradientType",[],(function(a,b,c,d,e,f){a=Object.freeze({MESSAGE_BUBBLE_OUTBOUND:0,MESSAGE_BUBBLE_INBOUND:1,THREADVIEW_BACKGROUND:2,DELIVERY_RECEIPT:3,COMPOSER_CIRCLE_BUTTON:4,COMPOSER_SEND_BUTTON:5,EMPHASIS:6});f["default"]=a}),66); __d("MWPThreadThemeProvider.react",["I64","Int64Hooks","LSIntEnum","MWPThreadThemeContext","MessengerThreadThemeGradientType","ReQL","ReQLSuspense","cr:6797","defaultMWPThreadTheme","react","useCurrentDisplayMode","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));e=k;var m=e.useMemo,n=e.useState;function o(a,e){var g=(h||(h=c("useReStore")))(),k=c("useCurrentDisplayMode")(),l=d("ReQLSuspense").useFirst(function(){return a==null?d("ReQL").empty():d("ReQL").fromTableAscending(g.table("thread_themes")).getKeyRange(a)},[g,a],f.id+":40"),n=b("cr:6797")==null?void 0:b("cr:6797")(g,a),o=k==="dark"&&n!=null?n:l,p=d("ReQLSuspense").useArray(function(){return(o==null?void 0:o.fbid)==null?d("ReQL").empty():d("ReQL").fromTableAscending(g.table("gradient_colors")).getKeyRange(o==null?void 0:o.fbid)},[g,o==null?void 0:o.fbid],f.id+":54");return m(function(){return o!=null?{incomingGradientColors:p.filter(function(a){return(i||(i=d("I64"))).equal(a.type_,(j||(j=d("LSIntEnum"))).ofNumber(c("MessengerThreadThemeGradientType").MESSAGE_BUBBLE_INBOUND))}),outgoingGradientColors:p.filter(function(a){return(i||(i=d("I64"))).equal(a.type_,(j||(j=d("LSIntEnum"))).ofNumber(c("MessengerThreadThemeGradientType").MESSAGE_BUBBLE_OUTBOUND))}),threadTheme:o}:e},[o,p,e])}var p={incomingGradientColors:[],outgoingGradientColors:[],threadTheme:c("defaultMWPThreadTheme")};function a(a){var b=a.children,c=a.defaultTheme;c=c===void 0?p:c;var e=a.themeFbid;a=n();var f=a[0],g=a[1];a=d("Int64Hooks").useMemoInt64(function(){var a;return(a=f)!=null?a:e},[e,f]);var h=o(a,c);a=d("Int64Hooks").useMemoInt64(function(){return{incomingGradientColors:h.incomingGradientColors,outgoingGradientColors:h.outgoingGradientColors,previewId:f,setPreviewId:g,threadTheme:h.threadTheme}},[h,f]);return l.jsx(d("MWPThreadThemeContext").MWPThreadThemeContext.Provider,{value:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MinusCircleFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx("path",{d:"M459 1080.25h-6a.752.752 0 0 1-.75-.75c0-.412.337-.75.75-.75h6c.413 0 .75.338.75.75s-.337.75-.75.75m-3-6.75c-3.308 0-6 2.691-6 6s2.692 6 6 6 6-2.691 6-6-2.692-6-6-6"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("PencilFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx("path",{d:"M461.985 1075.58a.938.938 0 0 0-.272-.492l-1.325-1.325a.902.902 0 0 0-1.272 0l-1.003 1.003a.385.385 0 0 0 0 .545l2.075 2.076c.15.15.395.15.545 0l1.003-1.003a.9.9 0 0 0 .249-.805m-11.142 6.423a1.164 1.164 0 0 0-.343.828v1.78c0 .215.175.39.391.39h1.778c.313 0 .608-.122.83-.343l5.887-5.889a.39.39 0 0 0 0-.551l-2.103-2.103a.391.391 0 0 0-.553 0l-5.887 5.888z"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98); __d("MessengerColors",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){b===void 0&&(b=!1);var c=100/(a.length-1);b=b?a.slice():a.slice().reverse();a=b.map(function(a,b){return a+" "+b*c+"%"}).join(",");return"radial-gradient(circle at center 75%, "+a+")"}function b(a,b,c){var d={};if(a){b!=null&&b!==""?d.backgroundColor=b:d.backgroundColor=c;if(a.length&&a.length>0)if(a.length===1)d.backgroundColor=a[0];else if(a.length===2)d.backgroundImage="linear-gradient("+a[0]+", "+a[1]+")";else{var e=a.length,f=100/(e-1);e=a.map(function(a,b){return a+" "+b*f+"%"}).join(", ");d.backgroundImage="linear-gradient("+e+")"}}else b!=null&&b!==""?d.backgroundColor=b:d.backgroundColor=c;return d}f.makeRadialGradient=a;f.makeLinearGradient=b}),66); __d("MessengerCustomColorUtils.bs",["cssVar","CurrentUser"],(function(a,b,c,d,e,f,g,h){"use strict";function i(a){if(c("CurrentUser").isWorkUser())return"#373e4c";else return"#0099ff"}function a(a){a=a.solid_color;if(a==null)return i();else return a}g.defaultColor=i;g.customColorOrBlue=a}),98); __d("MessengerHotLikeIconSVGM4React.bs",["cx","CurrentUser","MessengerColors","MessengerCustomColorUtils.bs","MessengerEnvironment","gkx","react","uniqueID"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function k(a){return j.jsx("path",{d:"M10,30 L7.75,30 C6.625,30 6,27.7515306 6,23.3673469 C6,18.9831633 6.625,16.7346939 7.75,16.7346939 L10,16.7346939 C10.552,16.7346939 11,17.1918367 11,17.755102 L11,28.9795918 C11,29.5428571 10.552,30 10,30 M17,6.02040816 C17,5.44540816 17.4195,5.00255102 18,5 C19.2035,5 22,5.79081633 22,10.6122449 C22,12.2443878 21.8015,13.130102 21.7195,13.7163265 C21.719,13.7183673 21.719,13.7204082 21.7185,13.722449 C21.6865,13.9566327 21.872,14.1647959 22.113,14.1647959 C26.908,14.1647959 29.469,15.4336735 29.469,16.7290816 C29.469,17.3612245 29.211,17.9321429 28.7975,18.3535714 C29.513,18.7591837 30,19.5091837 30,20.3780612 C30,21.3642857 29.4255,22.2045918 28.5475,22.5515306 C28.821,22.9326531 28.9845,23.3954082 28.9845,23.8969388 C28.9845,24.9704082 28.3395,25.8653061 27.3365,26.1438776 C27.4285,26.377551 27.4845,26.6290816 27.4845,26.8943878 C27.4845,28.0459184 25.5485,28.9795918 21,28.9795918 C17.675,28.9795918 15.3815,28.3857143 14.5,27.9591837 C13.851,27.6454082 13,27.0770408 13,25.4081633 L13,18.7755102 C13,15.0403061 17.25,13.7760204 17.25,10.1020408 C17.25,7.78826531 17,6.81326531 17,6.02040816",fill:a})}k.displayName=k.name+" [from "+f.id+"]";function a(a){a=a.color;a=a;a=k(a);if(c("MessengerEnvironment").messengerui&&!c("CurrentUser").isWorkUser()||c("gkx")("1072568"))return j.jsx("svg",{className:"_7oal",width:"36px",height:"36px",viewBox:"0 1 36 36",children:a});else return j.jsx("svg",{width:"32px",height:"32px",viewBox:"0 0 36 36",children:a})}a.displayName=a.name+" [from "+f.id+"]";function b(a){a=a.thread;a=a;var b=j.useState(function(){return c("uniqueID")()});b=b[0];var e=k("black");return j.jsxs(j.Fragment,{children:[j.jsxs("svg",{viewBox:"0 0 36 36",style:{height:"100%",position:"absolute",width:"100%"},children:[j.jsxs("mask",{id:b,children:[j.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),e]}),j.jsx("rect",{className:"_8rsr",width:"100%",height:"100%",mask:"url(#"+b+")",fill:"white"})]}),j.jsx("div",{style:babelHelpers["extends"]({},d("MessengerColors").makeLinearGradient(a.gradient_colors,a.solid_color,d("MessengerCustomColorUtils.bs").defaultColor()),{backgroundAttachment:"fixed",height:"95%",margin:"auto",width:"95%"})})]})}b.displayName=b.name+" [from "+f.id+"]";e=a;h=b;g.pathHotLike=k;g.make=e;g.makeWithGradient=h}),98); __d("MessengerHotLikeSVGReact.bs",["cssVar","cx","fbt","CurrentUser","MWLikeSvgIcon.react","MessengerEnvironment","bs_belt_Option","joinClasses","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l=k||d("react"),m=j._("__JHASH__fqLNX_G5Htn__JHASH__");function a(a){var b=a.className;a=a.color;b=b;a=a;var d,e=0;a==null||a===""?e=1:d=a;e===1&&(d=c("CurrentUser").isWorkUser()?"#373e4c":c("MessengerEnvironment").messengerui?"#0084ff":"#4080ff");return l.jsx("div",{className:c("joinClasses")(c("bs_belt_Option").getWithDefault(b,""),"_1i1j"),"data-testid":void 0,children:l.jsx(c("MWLikeSvgIcon.react"),{alt:m,color:d,size:"100%"})})}a.displayName=a.name+" [from "+f.id+"]";b="transparent";g.MessengerHotLikeSVGReact=a;g.cTRANSPARENT=b}),98); __d("StickerConstants",[],(function(a,b,c,d,e,f){a=Object.freeze({MOBILE_LIKE_STICKER_PACK_ID:"227877430692340",GRAVEYARD_PACK_ID:"604597256247273",LIKE_STICKER_ID:"227878347358915",HOT_LIKE_SMALL_STICKER_ID:"369239263222822",HOT_LIKE_MEDIUM_STICKER_ID:"369239343222814",HOT_LIKE_LARGE_STICKER_ID:"369239383222810",MRU_STICKER_PACK:"599061016853145",SEARCH_PACK_ID:"680229632032514",FEED_PACK_ID:"2239834712900285",OZ_PACK_ID:"1456625217993235",AVATARS_PACK_ID:"2191329907595522",TRENDING_STICKER_PACK_ID:"924487421216423",SPRITE_PADDING:"24",PayloadSource:{VIEW_ACTION:"view-action"},DEFAULT_FRAME_RATE:83,TRAY_SIZE:64,THREAD_SIZE:120});f["default"]=a}),66); __d("Sticker.react",["cx","fbt","Arbiter","CurrentUser","JSResource","MessengerHotLikeIconSVGM4React.bs","MessengerHotLikeSVGReact.bs","PaddedStickerConfig","StickerConstants","clearInterval","emptyFunction","getElementPosition","gkx","joinClasses","lazyLoadComponent","react","setIntervalAcrossTransitions"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");c("lazyLoadComponent")(c("JSResource")("GeoPopover.react").__setRef("Sticker.react"));var l=83;a=5e3;var m=10,n={CLICK:"click",HOVER:"hover",LOAD_AND_HOVER:"load_and_hover",ANIMATE_FOREVER:"animate_forever"};b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f1&&this.props.spriteURI&&this.startAnimation();if(this.props.subscribedThreadID&&this.props.frameCount&&this.props.frameCount>1){var b=c("Arbiter").subscribe(this.props.subscribedThreadID,function(b,c){a.isScrolledIntoView(c.scrollTop,c.viewHeight,c.top)});this.setState({unsubscribeID:b})}};e.componentWillUnmount=function(){this.$1=!1,this.state.unsubscribeID&&c("Arbiter").unsubscribe(this.state.unsubscribeID),this.isAnimating()&&c("clearInterval")(this.__stopIntervalID)};e.isAnimating=function(){return!!this.__stopIntervalID};e.getWidth=function(){var a;return Math.floor((a=this.props.sourceWidth)!=null?a:0)};e.getHeight=function(){var a;return Math.floor((a=this.props.sourceHeight)!=null?a:0)};e.preloadSprite=function(){var a=this,b=new window.Image();b.onload=function(){a.$1&&!a.state.hasAnimated&&(a.setState({hasAnimated:!0}),a.__stopIntervalID=c("setIntervalAcrossTransitions")(a.incrementFrameIndex,a.props.frameRate))};c("PaddedStickerConfig").ChatPaddedAnimatedStickerGK&&this.props.paddedSpriteURI?b.src=this.props.paddedSpriteURI:b.src=this.props.spriteURI};e.isScrolledIntoView=function(a,b,d){var e=c("getElementPosition")(this.$2.current);d=a+e.y-d;b=a+b;e=d+e.height;this.props.frameCount&&this.props.frameCount>1&&!this.state.hasAnimated&&e-m<=b&&d+m>=a&&this.startAnimation()};e.startAnimation=function(){!this.state.hasAnimated&&this.props.spriteURI?this.preloadSprite():this.isAnimating()||(this.setState({hasAnimated:!0}),this.__stopIntervalID=c("setIntervalAcrossTransitions")(this.incrementFrameIndex,this.props.frameRate))};e.stopAnimation=function(){this.setState({index:0}),c("clearInterval")(this.__stopIntervalID),this.__stopIntervalID=null};e.shouldStopAnimating=function(){var a;if(!this.props.frameCount)return!0;var b=this.state.index%this.props.frameCount;if(this.props.animationTrigger===n.ANIMATE_FOREVER)return!1;a=(a=this.props.frameRate)!=null?a:l;if(!(b===0&&this.state.index*a>this.props.animationTime))return!1;return this.props.animationTrigger===n.CLICK?!0:!this.state.isHovered};e.getStyle=function(){var a,b=0,d=this.props.spriteURI;a=(a=this.props.scale)!=null?a:1;var e=this.getHeight()*a;a=this.getWidth()*a;if(c("PaddedStickerConfig").ChatPaddedAnimatedStickerGK&&this.props.paddedSpriteURI){d=this.props.paddedSpriteURI;var f=240/Math.min(e,a);b=Math.floor(parseInt(c("StickerConstants").SPRITE_PADDING,10)/f)}f=this.props.frameCount?this.state.index%this.props.frameCount:0;var g=this.props.framesPerRow?f%this.props.framesPerRow*(a+b*2)+b:0;f=this.props.framesPerRow?Math.floor(f/this.props.framesPerRow)*(e+b*2)+b:0;var h=this.props.frameCount&&this.props.frameCount>1&&this.props.animationTrigger===n.CLICK||this.$3(this.props.packID);h=this.props.forceCursorPointer||h?"pointer":"default";if(!this.state.hasAnimated||!this.props.spriteURI||!d||!this.props.framesPerRow||!this.props.framesPerCol)return{backgroundImage:this.$4()||!this.props.sourceURI?null:"url("+this.props.sourceURI.toString()+")",backgroundRepeat:"no-repeat",backgroundSize:a+"px "+e+"px",cursor:h,height:e,width:a};else return{backgroundSize:(a+b*2)*this.props.framesPerRow+"px "+(e+b*2)*this.props.framesPerCol+"px",backgroundImage:"url("+d.toString()+")",backgroundPosition:-g+"px "+-f+"px",cursor:h,height:e,width:a,imageRendering:"-webkit-optimize-contrast"}};e.$3=function(a){return a&&a!=c("StickerConstants").MOBILE_LIKE_STICKER_PACK_ID&&a!=c("StickerConstants").GRAVEYARD_PACK_ID};e.getAriaLabel=function(){var a;return i._("__JHASH__XuqBXexse6H__JHASH__",[i._param("pack name",(a=this.props.packName)!=null?a:""),i._param("sticker name",this.props.accessibilityLabel)])};e.render=function(){var a,b;this.props.animationTrigger===n.CLICK&&this.props.frameCount&&this.props.frameCount>1&&this.props.spriteURI?a=!0:(this.props.animationTrigger===n.HOVER||this.props.animationTrigger===n.LOAD_AND_HOVER)&&this.props.frameCount&&this.props.frameCount>1&&this.props.spriteURI&&(b=!0);var e=a?this.toggleAnimation:null;this.props.packID&&(e=this.onStickerClick);var f=this.props.className,g=null;this.$4()&&(f=c("joinClasses")(f,"_576q"),(!c("CurrentUser").isWorkUser()||c("gkx")("1072568"))&&this.props.thread!=null?g=k.jsx(d("MessengerHotLikeIconSVGM4React.bs").makeWithGradient,{thread:this.props.thread}):g=k.jsx(d("MessengerHotLikeSVGReact.bs").MessengerHotLikeSVGReact,{color:this.props.customColor}));return k.jsx("div",{"aria-label":this.getAriaLabel(),className:f,"data-testid":void 0,onBlur:this.tabFocusUnselected,onClick:e,onFocus:this.tabFocusSelected,onMouseEnter:b?this.mouseEntered:null,onMouseLeave:b?this.mouseLeft:null,role:"img",style:this.getStyle(),tabIndex:this.props.tabIndex,ref:this.$2,children:g})};e.$4=function(){return!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect?this.props.stickerID===c("StickerConstants").HOT_LIKE_SMALL_STICKER_ID||this.props.stickerID===c("StickerConstants").HOT_LIKE_MEDIUM_STICKER_ID||this.props.stickerID===c("StickerConstants").HOT_LIKE_LARGE_STICKER_ID:!1};return b}(k.Component);b.defaultProps={animationTime:a,accessibilityLabel:"",forceCursorPointer:!1,frameRate:l,onStickerClick:c("emptyFunction"),packID:null,packName:"",tabIndex:0};g["default"]=b}),98); __d("idx",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){try{return b(a)}catch(a){if(a instanceof TypeError)if(h(a))return null;else if(j(a))return void 0;throw a}}var g;function h(a){a=a.message;g||(g=k("null"));return g.test(a)}var i;function j(a){a=a.message;i||(i=k("undefined"));return i.test(a)}function k(a){return new RegExp("^"+a+" | "+a+"$|^[^\\(]* "+a+" ")}f["default"]=a}),66); __d("MessageSendClickFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1891340");b=d("FalcoLoggerInternal").create("message_send_click",a);e=b;g["default"]=e}),98); __d("MessagingSpecialThreadRole",[],(function(a,b,c,d,e,f){a=Object.freeze({ADMIN:1,THREAD_CREATOR:2,SUPER_ADMIN:3,MODERATOR:4,IG_BROADCAST_CHAT_COLLABORATOR:5,CHAT_HOST:6});f["default"]=a}),66); __d("MessengerSurfaceType",[],(function(a,b,c,d,e,f){"use strict";a="MESSENGER";b="WORK_QUIKCHAT";c="WORK_CHAT";d="WORKROOMS";e="WORKROOMS_IN_CALL";var g="OTHER";f.messenger=a;f.workQuickchat=b;f.workChat=c;f.workrooms=d;f.workroomsInCall=e;f.other=g}),66); __d("MWXSwitch.react",["cr:1925","cr:1926","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var c=a.icon,d=a.size;a=babelHelpers.objectWithoutPropertiesLoose(a,["icon","size"]);if(b("cr:1925"))return i.jsx(b("cr:1925"),babelHelpers["extends"]({},a,{icon:c,size:d}));return b("cr:1926")?i.jsx(b("cr:1926"),babelHelpers["extends"]({},a)):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("LSClearCommunityMembersAndRangeStoredProcedure",["LSClearCommunityMembersAndRange"],(function(a,b,c,d,e,f,g){function a(a,b){b===void 0&&(b={});var d=[];d[0]=b.source;d[1]=b.requestId;d[2]=b.threadId;return c("LSClearCommunityMembersAndRange").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("LSUpsertCommunityMemberRanges",["LSArrayGetObjectAt"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(e){return d[0]=c.createArray(),d[3]=(d[0].push(c.i64.cast([0,0])),d[0]),a[2]===!0?c.resolve(d[1]=!0):c.sequence([function(e){return d[3]=!1,d[4]=c.i64.of_int32(a[1].length),c.i64.gt(d[4],c.i64.cast([0,0]))?c.loopAsync(d[4],function(e){return d[5]=e,c.sequence([function(e){return c.nativeTypeOperation("Array",b("LSArrayGetObjectAt"),a[1],d[5]).then(function(a){return a=a,d[6]=a[0],d[7]=a[1],a})},function(a){return d[3]=d[3]||c.i64.eq(c.i64.cast([0,1]),d[6])}])}):c.resolve()},function(a){return d[1]=d[3]}])},function(b){return a[9]!==void 0?d[2]=a[9]:d[2]="",c.db.table(189).put({communityId:a[0],isAdmin:d[1],minName:"",source:a[7],requestId:d[2],maxName:a[6],isLoadingBefore:!1,isLoadingAfter:a[4],hasMoreBefore:!1,hasMoreAfter:a[3],nextPageCursor:a[5]})}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueCommunityMemberListFetchImpl",["LSIssueNewTask","LSUpsertCommunityMemberRanges"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(e){return d[0]=c.createArray(),d[4]=(d[0].push(c.i64.cast([0,0])),d[0]),d[1]=c.createArray(),c.storedProcedure(b("LSUpsertCommunityMemberRanges"),a[0],a[1],a[2],!1,!0,"",a[5],a[6],a[9],a[11])},function(e){return d[2]=new c.Map(),d[2].set("community_id",a[0]),d[2].set("roles",a[1]),d[2].set("fetch_admins_only",a[2]),d[2].set("cursor",a[4]),d[2].set("source",a[6]),d[2].set("thread_key",a[7]),d[2].set("search_text",a[8]),d[2].set("thread_roles",a[9]),d[2].set("group_thread_id",a[10]),d[2].set("request_id",a[11]),d[3]=c.toJSON(d[2]),c.storedProcedure(b("LSIssueNewTask"),"fetch_community_member_list",c.i64.cast([0,355]),d[3],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueCommunityMemberListFetch",["LSIssueCommunityMemberListFetchImpl"],(function(a,b,c,d,e,f,g){g["default"]=c("LSIssueCommunityMemberListFetchImpl")}),98); __d("LSIssueCommunityMemberListFetchStoredProcedure",["LSIssueCommunityMemberListFetch"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.communityId;d[1]=b.roles;d[2]=b.fetchAdminsOnly;d[3]=b.fetchFriendMembersOnly;d[4]=b.nextPageCursor;d[5]=b.maxName;d[6]=b.source;d[7]=b.threadKey;d[8]=b.searchText;d[9]=b.threadRoles;d[10]=b.groupThreadId;d[11]=b.requestId;d[12]=b.maxTimestampMs;return c("LSIssueCommunityMemberListFetch").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("useCommunityMembers",["I64","Int64Hooks","LSClearCommunityMembersAndRangeStoredProcedure","LSFactory","LSIntEnum","LSIssueCommunityMemberListFetchStoredProcedure","LSVec","MWCMThreadTypes.react","ReQL","ReQLSuspense","asyncToGeneratorRuntime","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=(k||d("react")).useCallback;function a(a,e,f){var g=(h||(h=c("useReStore")))();d("Int64Hooks").useEffectInt64(function(){var h=function(){var h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield g.runInTransaction(function(b){return c("LSIssueCommunityMemberListFetchStoredProcedure")(c("LSFactory")(b),{communityId:a,fetchAdminsOnly:!1,fetchFriendMembersOnly:!1,maxName:"",maxTimestampMs:(i||(i=d("I64"))).zero,nextPageCursor:"",requestId:e,roles:c("LSVec").ofArray([(j||(j=d("LSIntEnum"))).ofNumber(0)]),source:j.ofNumber(13),threadKey:(b=f)!=null?b:void 0,threadRoles:c("LSVec").ofArray([])})},"readwrite")});return function(){return h.apply(this,arguments)}}();c("promiseDone")(h())},[a,g,e,f])}function e(a,b,e){var g=(h||(h=c("useReStore")))();return d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.table("community_members_ranges_v2__generated")).getKeyRange(a).filter(function(a){if(a.requestId!==b)return!1;return e!=null?a.isAdmin===e:!0})},[g,a,e,b],f.id+":76")}function m(a){a===void 0&&(a=7);var b=(h||(h=c("useReStore")))();return l(function(e){return b.runInTransaction(function(b){return c("LSClearCommunityMembersAndRangeStoredProcedure")(c("LSFactory")(b),{requestId:e,source:(j||(j=d("LSIntEnum"))).ofNumber(a)})},"readwrite")},[b,a])}function n(a){var e=a.communityIdOrThreadKey,f=a.thread,g=a.showAdmodsOnly,k=g===void 0?!1:g;g=a.showHostsOnly;var l=g===void 0?!1:g;g=a.source;var m=g===void 0?(i||(i=d("I64"))).of_int32(7):g,n=a.requestId,o=(h||(h=c("useReStore")))(),p=f.threadKey,q=f.threadType;d("Int64Hooks").useEffectInt64(function(){var a=c("LSVec").ofArray(k?[(j||(j=d("LSIntEnum"))).ofNumber(1),(j||(j=d("LSIntEnum"))).ofNumber(2)]:l?[(j||(j=d("LSIntEnum"))).ofNumber(3)]:[(j||(j=d("LSIntEnum"))).ofNumber(0)]),f=d("MWCMThreadTypes.react").isBroadcastThread(q)?[(j||(j=d("LSIntEnum"))).ofNumber(0)]:[],g=function(){var g=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o.runInTransaction(function(b){return c("LSIssueCommunityMemberListFetchStoredProcedure")(c("LSFactory")(b),{communityId:e,fetchAdminsOnly:!1,fetchFriendMembersOnly:!1,maxName:"",maxTimestampMs:(i||(i=d("I64"))).zero,nextPageCursor:"",requestId:n,roles:a,source:m,threadKey:(i||(i=d("I64"))).equal(m,(i||(i=d("I64"))).of_int32(0))?void 0:p,threadRoles:c("LSVec").ofArray(f)})},"readwrite")});return function(){return g.apply(this,arguments)}}();c("promiseDone")(g())},[o,e,p,q,k,m,n,l])}g.useFetchBannedMemberList=a;g.useCommunityMembersRanges=e;g.useClearMemberList=m;g.useFetchCommunityMembers=n}),98); __d("useMAWMarkThreadAsRead",["I64","Int64Hooks","LSAuthorityLevel","LSIntEnum","MAWJobDefinitions","MAWMiActOnActThreadReady","MAWTimedJob","WAJobOrchestratorTypes","promiseDone","useMWIsReadReceiptsDisabledForThread","useMWLSMarkThreadAsRead","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function a(a,b){var e=(j||(j=c("useReStore")))(),f=c("useMWLSMarkThreadAsRead")(b,a.threadKey),g=c("useMWIsReadReceiptsDisabledForThread")(a.threadKey);return d("Int64Hooks").useCallbackInt64(function(){if((h||(h=d("I64"))).ge(a.authorityLevel,(i||(i=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE))){f();c("promiseDone")(d("MAWMiActOnActThreadReady").onActThreadReady(e,a.threadKey,"useMAWMarkThreadAsRead",function(a,b,c){return d("MAWTimedJob").TimedUIJobStarters.fireAndForget(d("MAWJobDefinitions").jobSerializers.markThreadAsRead(c,void 0,g,{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.HIGH}))}));return}},[a.authorityLevel,a.threadKey,f,e,g])}g["default"]=a}),98); __d("LSIssueCommunityAdminModerationActionsFetchImpl",["LSIssueNewTaskAndGetTaskID"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("fb_group_id",a[0]),d[0].set("target_user_id",a[1]),d[0].set("source",a[2]),d[0].set("thread_id",a[3]),d[0].set("request_id",a[4]),c.i64.gt(c.i64.cast([0,0]),c.i64.cast([0,0]))?(d[5]=c.i64.of_float(Date.now()),d[1]=c.i64.add(d[5],c.i64.cast([0,0]))):d[1]=c.i64.cast([0,0]),d[2]=d[0].get("fb_group_id"),d[0],d[3]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTaskAndGetTaskID"),c.i64.to_string(d[2]),c.i64.cast([0,428]),d[3],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,d[1],c.i64.cast([0,0])).then(function(a){return a=a,d[4]=a[0],a})},function(a){return c.resolve(e)}])}e.exports=a}),null); __d("LSIssueCommunityAdminModerationActionsFetch",["LSIssueCommunityAdminModerationActionsFetchImpl"],(function(a,b,c,d,e,f,g){g["default"]=c("LSIssueCommunityAdminModerationActionsFetchImpl")}),98); __d("LSIssueCommunityAdminModerationActionsFetchStoredProcedure",["LSIssueCommunityAdminModerationActionsFetch"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.fbGroupId;d[1]=b.targetUserId;d[2]=b.source;d[3]=b.threadId;d[4]=b.requestId;return c("LSIssueCommunityAdminModerationActionsFetch").apply(void 0,d.concat([a]))}g["default"]=a}),98); __d("MWXIconPencil",["MWXSvgIcon","SVGIcon","cr:7855","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:7855")),c("gkx")("571")||c("gkx")("386"));g["default"]=a}),98); __d("MessagingSpecialThreadRoleBitOffset",["I64","LSBitFlag"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){return b==null?!1:d("LSBitFlag").has((h||(h=d("I64"))).lsl_(h.one,a),b.threadRoles)}g.has=a}),98);/*FB_PKG_DELIM*/ /** * License: https://www.facebook.com/legal/license/yKsQCAUqcFZ/ */ __d("dexie-4.0.1-alpha.22",[],(function(a,b,c,d,e,f){"use strict";var g={},h={exports:g};function i(){(function(b,c){typeof g==="object"&&typeof h!=="undefined"?h.exports=c():(b=typeof globalThis!=="undefined"?globalThis:b||self,b.Dexie=c())})(this,function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return b(a,c)};function c(a,c){if(typeof c!=="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");b(a,c);function d(){this.constructor=a}a.prototype=c===null?Object.create(c):(d.prototype=c.prototype,new d())}var d=function(){d=Object.assign||function(a){for(var b,c=1,d=arguments.length;c=0&&a.splice(b,1);return b>=0}var ra={};function A(a){var b,c,d,e;if(arguments.length===1){if(h(a))return a.slice();if(this===ra&&typeof a==="string")return[a];if(e=pa(a)){c=[];while(d=e.next(),!d.done)c.push(d.value);return c}if(a==null)return[a];b=a.length;if(typeof b==="number"){c=new Array(b);while(b--)c[b]=a[b];return c}return[a]}b=arguments.length;c=new Array(b);while(b--)c[b]=arguments[b];return c}var sa=typeof Symbol!=="undefined"?function(a){return a[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},B=typeof location!=="undefined"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function ta(a,b){B=a,ua=b}var ua=function(){return!0},va=!new Error("").stack;function C(){if(va)try{C.arguments;throw new Error()}catch(a){return a}return new Error()}function wa(a,b){var c=a.stack;if(!c)return"";b=b||0;c.indexOf(a.name)===0&&(b+=(a.name+a.message).split("\n").length);return c.split("\n").slice(b).filter(ua).map(function(a){return"\n"+a}).join("")}y=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"];var D=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"];y=y.concat(D);var xa={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ya(a,b){this._e=C(),this.name=a,this.message=b}p(ya).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+wa(this._e,2))}},toString:function(){return this.name+": "+this.message}});function za(a,b){return a+". Errors: "+Object.keys(b).map(function(a){return b[a].toString()}).filter(function(a,b,c){return c.indexOf(a)===b}).join("\n")}function Aa(a,b,c,d){this._e=C(),this.failures=b,this.failedKeys=d,this.successCount=c,this.message=za(a,b)}p(Aa).from(ya);function Ba(a,b){this._e=C(),this.name="BulkError",this.failures=Object.keys(b).map(function(a){return b[a]}),this.failuresByPos=b,this.message=za(a,this.failures)}p(Ba).from(ya);var Ca=y.reduce(function(a,b){return a[b]=b+"Error",a},{}),Da=ya,E=y.reduce(function(b,c){var d=c+"Error";function a(a,b){this._e=C(),this.name=d,!a?(this.message=xa[c]||d,this.inner=null):typeof a==="string"?(this.message="".concat(a).concat(b?"\n "+b:""),this.inner=b||null):typeof a==="object"&&(this.message="".concat(a.name," ").concat(a.message),this.inner=a)}p(a).from(Da);b[c]=a;return b},{});E.Syntax=SyntaxError;E.Type=TypeError;E.Range=RangeError;var Ea=D.reduce(function(a,b){a[b+"Error"]=E[b];return a},{});function Fa(a,b){if(!a||a instanceof ya||a instanceof TypeError||a instanceof SyntaxError||!a.name||!Ea[a.name])return a;b=new Ea[a.name](b||a.message,a);"stack"in a&&o(b,"stack",{get:function(){return this.inner.stack}});return b}D=y.reduce(function(a,b){["Syntax","Type","Range"].indexOf(b)===-1&&(a[b+"Error"]=E[b]);return a},{});D.ModifyError=Aa;D.DexieError=ya;D.BulkError=Ba;function F(){}function Ga(a){return a}function Ha(a,b){return a==null||a===Ga?b:function(c){return b(a(c))}}function G(a,b){return function(){a.apply(this,arguments),b.apply(this,arguments)}}function Ia(a,b){return a===F?b:function(){var c=a.apply(this,arguments);c!==void 0&&(arguments[0]=c);var d=this.onsuccess,e=this.onerror;this.onsuccess=null;this.onerror=null;var f=b.apply(this,arguments);d&&(this.onsuccess=this.onsuccess?G(d,this.onsuccess):d);e&&(this.onerror=this.onerror?G(e,this.onerror):e);return f!==void 0?f:c}}function Ja(a,b){return a===F?b:function(){a.apply(this,arguments);var c=this.onsuccess,d=this.onerror;this.onsuccess=this.onerror=null;b.apply(this,arguments);c&&(this.onsuccess=this.onsuccess?G(c,this.onsuccess):c);d&&(this.onerror=this.onerror?G(d,this.onerror):d)}}function Ka(a,b){return a===F?b:function(c){var d=a.apply(this,arguments);i(c,d);var e=this.onsuccess,f=this.onerror;this.onsuccess=null;this.onerror=null;var g=b.apply(this,arguments);e&&(this.onsuccess=this.onsuccess?G(e,this.onsuccess):e);f&&(this.onerror=this.onerror?G(f,this.onerror):f);return d===void 0?g===void 0?void 0:g:i(d,g)}}function La(a,b){return a===F?b:function(){return b.apply(this,arguments)===!1?!1:a.apply(this,arguments)}}function Ma(a,b){return a===F?b:function(){var c=a.apply(this,arguments);if(c&&typeof c.then==="function"){var d=this,e=arguments.length,f=new Array(e);while(e--)f[e]=arguments[e];return c.then(function(){return b.apply(d,f)})}return b.apply(this,arguments)}}var Na={},Oa=100,Pa=20,Qa=100;y=typeof Promise==="undefined"?[]:function(){var a=Promise.resolve();if(typeof crypto==="undefined"||!crypto.subtle)return[a,j(a),a];var b=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[b,j(b),a]}();var Ra=y[0],Sa=y[1],Ta=y[2],Ua=Sa&&Sa.then,Va=Ra&&Ra.constructor,Wa=!!Ta,Xa=!1,Ya=Ta?function(){Ta.then(pb)}:f.setImmediate?setImmediate.bind(null,pb):f.MutationObserver?function(){var a=document.createElement("div");new MutationObserver(function(){pb(),a=null}).observe(a,{attributes:!0});a.setAttribute("i","1")}:function(){setTimeout(pb,0)},Za=function(a,b){eb.push([a,b]),ab&&(Ya(),ab=!1)},$a=!0,ab=!0,H=[],bb=[],cb=null,db=Ga,I={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:F,pgp:!1,env:{},finalize:F},J=I,eb=[],K=0,fb=[];function L(a){if(typeof this!=="object")throw new TypeError("Promises must be constructed via new");this._listeners=[];this._lib=!1;var b=this._PSD=J;B&&(this._stackHolder=C(),this._prev=null,this._numPrev=0);if(typeof a!=="function"){if(a!==Na)throw new TypeError("Not a function");this._state=arguments[1];this._value=arguments[2];this._state===!1&&jb(this,this._value);return}this._state=null;this._value=null;++b.ref;ib(this,a)}var gb={get:function(){var a=J,b=Ab;function c(c,d){var e=this,f=!a.global&&(a!==J||b!==Ab),g=f&&!P(),h=new L(function(b,h){lb(e,new hb(Jb(c,a,f,g),Jb(d,a,f,g),b,h,a))});B&&ob(h,this);return h}c.prototype=Na;return c},set:function(a){o(this,"then",a&&a.prototype===Na?gb:{get:function(){return a},set:gb.set})}};m(L.prototype,{then:gb,_then:function(a,b){lb(this,new hb(null,null,a,b,J))},"catch":function(b){if(arguments.length===1)return this.then(null,b);var a=arguments[0],c=arguments[1];return typeof a==="function"?this.then(null,function(b){return b instanceof a?c(b):wb(b)}):this.then(null,function(b){return b&&b.name===a?c(b):wb(b)})},"finally":function(a){return this.then(function(b){a();return b},function(b){a();return wb(b)})},stack:{get:function(){if(this._stack)return this._stack;try{Xa=!0;var a=nb(this,[],Pa);a=a.join("\nFrom previous: ");this._state!==null&&(this._stack=a);return a}finally{Xa=!1}}},timeout:function(a,b){var c=this;return a0){a=eb;eb=[];c=a.length;for(b=0;b0);$a=!0;ab=!0}function sb(){var a=H;H=[];a.forEach(function(a){a._PSD.onunhandled.call(null,a._value,a)});a=fb.slice(0);var b=a.length;while(b)a[--b]()}function tb(a){function b(){a(),fb.splice(fb.indexOf(b),1)}fb.push(b);++K;Za(function(){--K===0&&sb()},[])}function ub(a){H.some(function(b){return b._value===a._value})||H.push(a)}function vb(a){var b=H.length;while(b)if(H[--b]._value===a._value){H.splice(b,1);return}}function wb(a){return new L(Na,!1,a)}function M(a,b){var c=J;return function(){var d=qb(),e=J;try{Q(c,!0);return a.apply(this,arguments)}catch(a){b&&b(a)}finally{Q(e,!1),d&&rb()}}}var N={awaits:0,echoes:0,id:0},xb=0,yb=[],zb=0,Ab=0,Bb=0;function O(b,a,c,d){var e=J,f=Object.create(e);f.parent=e;f.ref=0;f.global=!1;f.id=++Bb;var g=I.env;f.env=Wa?{Promise:L,PromiseProp:{value:L,configurable:!0,writable:!0},all:L.all,race:L.race,allSettled:L.allSettled,any:L.any,resolve:L.resolve,reject:L.reject,nthen:Kb(g.nthen,f),gthen:Kb(g.gthen,f)}:{};a&&i(f,a);++e.ref;f.finalize=function(){--this.parent.ref||this.parent.finalize()};g=Hb(f,b,c,d);f.ref===0&&f.finalize();return g}function Cb(){N.id||(N.id=++xb);++N.awaits;N.echoes+=Qa;return N.id}function P(){if(!N.awaits)return!1;--N.awaits===0&&(N.id=0);N.echoes=N.awaits*Qa;return!0}(""+Ua).indexOf("[native code]")===-1&&(Cb=P=F);function Db(a){if(N.echoes&&a&&a.constructor===Va){Cb();return a.then(function(a){P();return a},function(a){P();return R(a)})}return a}function Eb(a){++Ab,(!N.echoes||--N.echoes===0)&&(N.echoes=N.id=0),yb.push(J),Q(a,!0)}function Fb(){var a=yb[yb.length-1];yb.pop();Q(a,!1)}function Q(a,b){var c=J;(b?N.echoes&&(!zb++||a!==J):zb&&(!--zb||a!==J))&&Ib(b?Eb.bind(null,a):Fb);if(a===J)return;J=a;c===I&&(I.env=Gb());if(Wa){b=I.env.Promise;var d=a.env;Sa.then=d.nthen;b.prototype.then=d.gthen;(c.global||a.global)&&(Object.defineProperty(f,"Promise",d.PromiseProp),b.all=d.all,b.race=d.race,b.resolve=d.resolve,b.reject=d.reject,d.allSettled&&(b.allSettled=d.allSettled),d.any&&(b.any=d.any))}}function Gb(){var a=f.Promise;return Wa?{Promise:a,PromiseProp:Object.getOwnPropertyDescriptor(f,"Promise"),all:a.all,race:a.race,allSettled:a.allSettled,any:a.any,resolve:a.resolve,reject:a.reject,nthen:Sa.then,gthen:a.prototype.then}:{}}function Hb(a,b,c,d,e){var f=J;try{Q(a,!0);return b(c,d,e)}finally{Q(f,!1)}}function Ib(a){Ua.call(Ra,a)}function Jb(a,b,c,d){return typeof a!=="function"?a:function(){var e=J;c&&Cb();Q(b,!0);try{return a.apply(this,arguments)}finally{Q(e,!1),d&&Ib(P)}}}function Kb(a,b){return function(c,d){return a.call(this,Jb(c,b),Jb(d,b))}}var R=L.reject;function Lb(a,b,c,d){if(!a.idbdb||!a._state.openComplete&&!J.letThrough&&!a._vip){if(a._state.openComplete)return R(new E.DatabaseClosed(a._state.dbOpenError));if(!a._state.isBeingOpened){if(!a._options.autoOpen)return R(new E.DatabaseClosed());a.open()["catch"](F)}return a._state.dbReadyPromise.then(function(){return Lb(a,b,c,d)})}else{var e=a._createTransaction(b,c,a._dbSchema);try{e.create(),a._state.PR1398_maxLoop=3}catch(e){if(e.name===Ca.InvalidState&&a.isOpen()&&--a._state.PR1398_maxLoop>0){a._close();return a.open().then(function(){return Lb(a,b,c,d)})}return R(e)}return e._promise(b,function(a,b){return O(function(){J.trans=e;return d(a,b,e)})}).then(function(a){if(b==="readwrite")try{e.idbtrans.commit()}catch(a){}return b==="readonly"?a:e._completion.then(function(){return a})})}}y="4.0.1-alpha.22";var Mb=String.fromCharCode(65535),Nb=-Infinity,S="Invalid key provided. Keys must be of type string, number, Date or Array.",Ob="String expected.",Pb=[],Qb=typeof navigator!=="undefined"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Rb=Qb,Sb=Qb,Tb=function(a){return!/(dexie\.js|dexie\.min\.js)/.test(a)},Ub="__dbnames",Vb="readonly",Wb="readwrite";function Xb(a,b){return a?b?function(){return a.apply(this,arguments)&&b.apply(this,arguments)}:a:b}var Yb={type:3,lower:-Infinity,lowerOpen:!1,upper:[[]],upperOpen:!1};function Zb(a){return typeof a==="string"&&!/\./.test(a)?function(b){b[a]===void 0&&a in b&&(b=z(b),delete b[a]);return b}:function(a){return a}}function $b(){throw E.Type()}function T(a,b){try{var c=cc(a),d=cc(b);if(c!==d){if(c==="Array")return 1;if(d==="Array")return-1;if(c==="binary")return 1;if(d==="binary")return-1;if(c==="string")return 1;if(d==="string")return-1;if(c==="Date")return 1;return d!=="Date"?NaN:-1}switch(c){case"number":case"Date":case"string":return a>b?1:a=0})){for(var c=0;cb?g:0}return this.toArray(function(a){return a.sort(h)}).then(b)};a.prototype.toArray=function(a){var b=this;return this._read(function(a){var c=b._ctx;if(c.dir==="next"&&ic(c,!0)&&c.limit>0){var d=c.valueMapper,e=mc(c,c.table.core.schema);return c.table.core.query({trans:a,limit:c.limit,values:!0,query:{index:e,range:c.range}}).then(function(a){a=a.result;return d?a.map(d):a})}else{var f=[];return oc(c,function(a){return f.push(a)},a,c.table.core).then(function(){return f})}},a)};a.prototype.offset=function(a){var b=this._ctx;if(a<=0)return this;b.offset+=a;ic(b)?kc(b,function(){var b=a;return function(a,c){if(b===0)return!0;if(b===1){--b;return!1}c(function(){a.advance(b),b=0});return!1}}):kc(b,function(){var b=a;return function(){return--b<0}});return this};a.prototype.limit=function(a){this._ctx.limit=Math.min(this._ctx.limit,a);kc(this._ctx,function(){var b=a;return function(a,c,d){--b<=0&&c(d);return b>=0}},!0);return this};a.prototype.until=function(a,b){jc(this._ctx,function(c,d,e){if(a(c.value)){d(e);return b}else return!0});return this};a.prototype.first=function(a){return this.limit(1).toArray(function(a){return a[0]}).then(a)};a.prototype.last=function(a){return this.reverse().first(a)};a.prototype.filter=function(a){jc(this._ctx,function(b){return a(b.value)});lc(this._ctx,a);return this};a.prototype.and=function(a){return this.filter(a)};a.prototype.or=function(a){return new this.db.WhereClause(this._ctx.table,a,this)};a.prototype.reverse=function(){this._ctx.dir=this._ctx.dir==="prev"?"next":"prev";this._ondirectionchange&&this._ondirectionchange(this._ctx.dir);return this};a.prototype.desc=function(){return this.reverse()};a.prototype.eachKey=function(a){var b=this._ctx;b.keysOnly=!b.isMatch;return this.each(function(b,c){a(c.key,c)})};a.prototype.eachUniqueKey=function(a){this._ctx.unique="unique";return this.eachKey(a)};a.prototype.eachPrimaryKey=function(a){var b=this._ctx;b.keysOnly=!b.isMatch;return this.each(function(b,c){a(c.primaryKey,c)})};a.prototype.keys=function(a){var b=this._ctx;b.keysOnly=!b.isMatch;var c=[];return this.each(function(a,b){c.push(b.key)}).then(function(){return c}).then(a)};a.prototype.primaryKeys=function(a){var b=this._ctx;if(b.dir==="next"&&ic(b,!0)&&b.limit>0)return this._read(function(a){var c=mc(b,b.table.core.schema);return b.table.core.query({trans:a,values:!1,limit:b.limit,query:{index:c,range:b.range}})}).then(function(a){a=a.result;return a}).then(a);b.keysOnly=!b.isMatch;var c=[];return this.each(function(a,b){c.push(b.primaryKey)}).then(function(){return c}).then(a)};a.prototype.uniqueKeys=function(a){this._ctx.unique="unique";return this.keys(a)};a.prototype.firstKey=function(a){return this.limit(1).keys(function(a){return a[0]}).then(a)};a.prototype.lastKey=function(a){return this.reverse().firstKey(a)};a.prototype.distinct=function(){var a=this._ctx;a=a.index&&a.table.schema.idxByName[a.index];if(!a||!a.multi)return this;var b={};jc(this._ctx,function(a){a=a.primaryKey.toString();var c=l(b,a);b[a]=!0;return!c});return this};a.prototype.modify=function(a){var b=this,c=this._ctx;return this._write(function(d){var e;if(typeof a==="function")e=a;else{var f=g(a),h=f.length;e=function(b){var c=!1;for(var d=0;d0&&i.mutate({trans:d,type:"add",values:n}).then(function(a){for(var b in a.failures)r.splice(parseInt(b),1);q(n.length,a)})).then(function(){return(o.length>0||v&&typeof a==="object")&&i.mutate({trans:d,type:"put",keys:p,values:o,criteria:v,changeSpec:typeof a!=="function"&&a}).then(function(a){return q(o.length,a)})}).then(function(){return(r.length>0||v&&a===rc)&&i.mutate({trans:d,type:"delete",keys:r,criteria:v}).then(function(a){return q(r.length,a)})}).then(function(){return b.length>g+h&&f(g+m)})})};return f(0).then(function(){if(n.length>0)throw new Aa("Error modifying one or more objects",n,o,p);return b.length})})})};a.prototype["delete"]=function(){var a=this._ctx,b=a.range;return ic(a)&&(a.isPrimKey&&!Sb||b.type===3)?this._write(function(c){var d=a.table.core.schema.primaryKey,e=b;return a.table.core.count({trans:c,query:{index:d,range:e}}).then(function(b){return a.table.core.mutate({trans:c,type:"deleteRange",range:e}).then(function(a){var c=a.failures;a.lastResult;a.results;a=a.numFailures;if(a)throw new Aa("Could not delete some values",Object.keys(c).map(function(a){return c[a]}),b-a);return b-a})})}):this.modify(rc)};return a}(),rc=function(a,b){return b.value=null};function sc(a){return gc(qc.prototype,function(b,c){this.db=a;var d=Yb,e=null;if(c)try{d=c()}catch(a){e=a}c=b._ctx;b=c.table;var f=b.hook.reading.fire;this._ctx={table:b,index:c.index,isPrimKey:!c.index||b.schema.primKey.keyPath&&c.index===b.schema.primKey.name,range:d,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:Infinity,error:e,or:c.or,valueMapper:f!==Ga?f:null}})}function tc(a,b){return ab?-1:a===b?0:1}function U(a,b,c){a=a instanceof Bc?new a.Collection(a):a;a._ctx.error=c?new c(b):new TypeError(b);return a}function vc(a){return new a.Collection(a,function(){return Ac("")}).limit(0)}function wc(a){return a==="next"?function(a){return a.toUpperCase()}:function(a){return a.toLowerCase()}}function xc(a){return a==="next"?function(a){return a.toLowerCase()}:function(a){return a.toUpperCase()}}function yc(b,c,d,e,a,f){var g=Math.min(b.length,e.length),h=-1;for(var i=0;i=0?b.substr(0,h)+c[h]+d.substr(h+1):null}a(b[i],j)<0&&(h=i)}if(g0)&&(o=q)}o!==null?c(function(){a["continue"](o+k)}):c(d);return!1}});return a}function V(a,b,c,d){return{type:2,lower:a,upper:b,lowerOpen:c,upperOpen:d}}function Ac(a){return{type:1,lower:a,upper:a}}var Bc=function(){function a(){}Object.defineProperty(a.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0});a.prototype.between=function(a,b,c,d){c=c!==!1;d=d===!0;try{return this._cmp(a,b)>0||this._cmp(a,b)===0&&(c||d)&&!(c&&d)?vc(this):new this.Collection(this,function(){return V(a,b,!c,!d)})}catch(a){return U(this,S)}};a.prototype.equals=function(a){return a==null?U(this,S):new this.Collection(this,function(){return Ac(a)})};a.prototype.above=function(a){return a==null?U(this,S):new this.Collection(this,function(){return V(a,void 0,!0)})};a.prototype.aboveOrEqual=function(a){return a==null?U(this,S):new this.Collection(this,function(){return V(a,void 0,!1)})};a.prototype.below=function(a){return a==null?U(this,S):new this.Collection(this,function(){return V(void 0,a,!1,!0)})};a.prototype.belowOrEqual=function(a){return a==null?U(this,S):new this.Collection(this,function(){return V(void 0,a)})};a.prototype.startsWith=function(a){return typeof a!=="string"?U(this,Ob):this.between(a,a+Mb,!0,!0)};a.prototype.startsWithIgnoreCase=function(a){return a===""?this.startsWith(a):zc(this,function(a,b){return a.indexOf(b[0])===0},[a],Mb)};a.prototype.equalsIgnoreCase=function(a){return zc(this,function(a,b){return a===b[0]},[a],"")};a.prototype.anyOfIgnoreCase=function(){var a=A.apply(ra,arguments);return a.length===0?vc(this):zc(this,function(a,b){return b.indexOf(a)!==-1},a,"")};a.prototype.startsWithAnyOfIgnoreCase=function(){var a=A.apply(ra,arguments);return a.length===0?vc(this):zc(this,function(a,b){return b.some(function(b){return a.indexOf(b)===0})},a,Mb)};a.prototype.anyOf=function(){var a=this,b=A.apply(ra,arguments),c=this._cmp;try{b.sort(c)}catch(a){return U(this,S)}if(b.length===0)return vc(this);var d=new this.Collection(this,function(){return V(b[0],b[b.length-1])});d._ondirectionchange=function(d){c=d==="next"?a._ascending:a._descending,b.sort(c)};var e=0;d._addAlgorithm(function(a,d,f){var g=a.key;while(c(g,b[e])>0){++e;if(e===b.length){d(f);return!1}}if(c(g,b[e])===0)return!0;else{d(function(){a["continue"](b[e])});return!1}});return d};a.prototype.notEqual=function(a){return this.inAnyRange([[Nb,a],[a,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})};a.prototype.noneOf=function(){var a=A.apply(ra,arguments);if(a.length===0)return new this.Collection(this);try{a.sort(this._ascending)}catch(a){return U(this,S)}var b=a.reduce(function(a,b){return a?a.concat([[a[a.length-1][1],b]]):[[Nb,b]]},null);b.push([a[a.length-1],this.db._maxKey]);return this.inAnyRange(b,{includeLowers:!1,includeUppers:!1})};a.prototype.inAnyRange=function(c,d){var e=this,a=this._cmp,f=this._ascending,g=this._descending,h=this._min,i=this._max;if(c.length===0)return vc(this);if(!c.every(function(a){return a[0]!==void 0&&a[1]!==void 0&&f(a[0],a[1])<=0}))return U(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",E.InvalidArgument);var j=!d||d.includeLowers!==!1,k=d&&d.includeUppers===!0;function b(b,c){var d=0,e=b.length;for(;d0){f[0]=h(f[0],c[0]);f[1]=i(f[1],c[1]);break}}d===e&&b.push(c);return b}var l=f;function m(a,b){return l(a[0],b[0])}var n;try{n=c.reduce(b,[]),n.sort(m)}catch(a){return U(this,S)}var o=0,p=k?function(a){return f(a,n[o][1])>0}:function(a){return f(a,n[o][1])>=0},q=j?function(a){return g(a,n[o][0])>0}:function(a){return g(a,n[o][0])>=0};function r(a){return!p(a)&&!q(a)}var s=p;d=new this.Collection(this,function(){return V(n[0][0],n[n.length-1][1],!j,!k)});d._ondirectionchange=function(a){a==="next"?(s=p,l=f):(s=q,l=g),n.sort(m)};d._addAlgorithm(function(a,b,c){var d=a.key;while(s(d)){++o;if(o===n.length){b(c);return!1}}if(r(d))return!0;else if(e._cmp(d,n[o][1])===0||e._cmp(d,n[o][0])===0)return!1;else{b(function(){l===f?a["continue"](n[o][0]):a["continue"](n[o][1])});return!1}});return d};a.prototype.startsWithAnyOf=function(){var a=A.apply(ra,arguments);if(!a.every(function(a){return typeof a==="string"}))return U(this,"startsWithAnyOf() only works with strings");return a.length===0?vc(this):this.inAnyRange(a.map(function(a){return[a,a+Mb]}))};return a}();function Cc(a){return gc(Bc.prototype,function(b,c,d){this.db=a;this._ctx={table:b,index:c===":id"?null:c,or:d};this._cmp=this._ascending=T;this._descending=function(a,b){return T(b,a)};this._max=function(a,b){return T(a,b)>0?a:b};this._min=function(a,b){return T(a,b)<0?a:b};this._IDBKeyRange=a._deps.IDBKeyRange;if(!this._IDBKeyRange)throw new E.MissingAPI()})}function W(a){return M(function(b){Dc(b);a(b.target.error);return!1})}function Dc(a){a.stopPropagation&&a.stopPropagation(),a.preventDefault&&a.preventDefault()}var Ec="storagemutated",X="x-storagemutated-1",Y=fc(null,Ec),Fc=function(){function a(){}a.prototype._lock=function(){v(!J.global);++this._reculock;this._reculock===1&&!J.global&&(J.lockOwnerFor=this);return this};a.prototype._unlock=function(){v(!J.global);if(--this._reculock===0){J.global||(J.lockOwnerFor=null);while(this._blockedFuncs.length>0&&!this._locked()){var a=this._blockedFuncs.shift();try{Hb(a[1],a[0])}catch(a){}}}return this};a.prototype._locked=function(){return this._reculock&&J.lockOwnerFor!==this};a.prototype.create=function(a){var b=this;if(!this.mode)return this;var c=this.db.idbdb,d=this.db._state.dbOpenError;v(!this.idbtrans);if(!a&&!c)switch(d&&d.name){case"DatabaseClosedError":throw new E.DatabaseClosed(d);case"MissingAPIError":throw new E.MissingAPI(d.message,d);default:throw new E.OpenFailed(d)}if(!this.active)throw new E.TransactionInactive();v(this._completion._state===null);a=this.idbtrans=a||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):c.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}));a.onerror=M(function(c){Dc(c),b._reject(a.error)});a.onabort=M(function(c){Dc(c),b.active&&b._reject(new E.Abort(a.error)),b.active=!1,b.on("abort").fire(c)});a.oncomplete=M(function(){b.active=!1,b._resolve(),"mutatedParts"in a&&Y.storagemutated.fire(a.mutatedParts)});return this};a.prototype._promise=function(a,b,c){var d=this;if(a==="readwrite"&&this.mode!=="readwrite")return R(new E.ReadOnly("Transaction is readonly"));if(!this.active)return R(new E.TransactionInactive());if(this._locked())return new L(function(e,f){d._blockedFuncs.push([function(){d._promise(a,b,c).then(e,f)},J])});else if(c)return O(function(){var a=new L(function(a,c){d._lock();var e=b(a,c,d);e&&e.then&&e.then(a,c)});a["finally"](function(){return d._unlock()});a._lib=!0;return a});else{var e=new L(function(a,c){var e=b(a,c,d);e&&e.then&&e.then(a,c)});e._lib=!0;return e}};a.prototype._root=function(){return this.parent?this.parent._root():this};a.prototype.waitFor=function(a){var b=this._root(),c=L.resolve(a);if(b._waitingFor)b._waitingFor=b._waitingFor.then(function(){return c});else{b._waitingFor=c;b._waitingQueue=[];var d=b.idbtrans.objectStore(b.storeNames[0]);(function a(){++b._spinCount;while(b._waitingQueue.length)b._waitingQueue.shift()();b._waitingFor&&(d.get(-Infinity).onsuccess=a)})()}var e=b._waitingFor;return new L(function(a,d){c.then(function(c){return b._waitingQueue.push(M(a.bind(null,c)))},function(a){return b._waitingQueue.push(M(d.bind(null,a)))})["finally"](function(){b._waitingFor===e&&(b._waitingFor=null)})})};a.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new E.Abort()))};a.prototype.table=function(a){var b=this._memoizedTables||(this._memoizedTables={});if(l(b,a))return b[a];var c=this.schema[a];if(!c)throw new E.NotFound("Table "+a+" not part of transaction");c=new this.db.Table(a,c,this);c.core=this.db.core.table(a);b[a]=c;return c};return a}();function Gc(a){return gc(Fc.prototype,function(b,c,d,e,f){var g=this;this.db=a;this.mode=b;this.storeNames=c;this.schema=d;this.chromeTransactionDurability=e;this.idbtrans=null;this.on=fc(this,"complete","error","abort");this.parent=f||null;this.active=!0;this._reculock=0;this._blockedFuncs=[];this._resolve=null;this._reject=null;this._waitingFor=null;this._waitingQueue=null;this._spinCount=0;this._completion=new L(function(a,b){g._resolve=a,g._reject=b});this._completion.then(function(){g.active=!1,g.on.complete.fire()},function(a){var b=g.active;g.active=!1;g.on.error.fire(a);g.parent?g.parent._reject(a):b&&g.idbtrans&&g.idbtrans.abort();return R(a)})})}function Hc(a,b,c,d,e,f,g){return{name:a,keyPath:b,unique:c,multi:d,auto:e,compound:f,src:(c&&!g?"&":"")+(d?"*":"")+(e?"++":"")+Ic(b)}}function Ic(a){return typeof a==="string"?a:a?"["+[].join.call(a,"+")+"]":""}function Jc(a,b,c){return{name:a,primKey:b,indexes:c,mappedClass:null,idxByName:ba(c,function(a){return[a.name,a]})}}function Kc(a){return a.length===1?a[0]:a}var Lc=function(a){try{a.only([[]]);Lc=function(){return[[]]};return[[]]}catch(a){Lc=function(){return Mb};return Mb}};function Mc(a){if(a==null)return function(){return void 0};else if(typeof a==="string")return Nc(a);else return function(b){return w(b,a)}}function Nc(a){var b=a.split(".");if(b.length===1)return function(b){return b[a]};else return function(b){return w(b,a)}}function Oc(a){return[].slice.call(a)}var Pc=0;function Qc(a){return a==null?":id":typeof a==="string"?a:"[".concat(a.join("+"),"]")}function Rc(a,b,c){function d(a,b){var c=Oc(a.objectStoreNames);return{schema:{name:a.name,tables:c.map(function(a){return b.objectStore(a)}).map(function(a){var b=a.keyPath,c=a.autoIncrement,d=h(b),e=b==null,f={};e={name:a.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:e,compound:d,keyPath:b,autoIncrement:c,unique:!0,extractKey:Mc(b)},indexes:Oc(a.indexNames).map(function(b){return a.index(b)}).map(function(b){var c=b.name,d=b.unique,e=b.multiEntry;b=b.keyPath;var a=h(b);c={name:c,compound:a,keyPath:b,unique:d,multiEntry:e,extractKey:Mc(b)};f[Qc(b)]=c;return c}),getIndexByKeyPath:function(a){return f[Qc(a)]}};f[":id"]=e.primaryKey;b!=null&&(f[Qc(b)]=e.primaryKey);return e})},hasGetAll:c.length>0&&"getAll"in b.objectStore(c[0])&&!(typeof navigator!=="undefined"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function e(a){if(a.type===3)return null;if(a.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var c=a.lower,d=a.upper,e=a.lowerOpen;a=a.upperOpen;c=c===void 0?d===void 0?null:b.upperBound(d,!!a):d===void 0?b.lowerBound(c,!!e):b.bound(c,d,!!e,!!a);return c}function f(b){var c=b.name;function d(d){var f=d.trans,b=d.type,a=d.keys,g=d.values,h=d.range;return new Promise(function(d,i){d=M(d);i=f.objectStore(c);var j=i.keyPath==null,k=b==="put"||b==="add";if(!k&&b!=="delete"&&b!=="deleteRange")throw new Error("Invalid operation type: "+b);var l=(a||g||{length:1}).length;if(a&&g&&a.length!==g.length)throw new Error("Given keys array must have same length as given values array.");if(l===0)return d({numFailures:0,failures:{},results:[],lastResult:void 0});var m,n=[],o=[],p=0,q=function(a){++p,Dc(a)};if(b==="deleteRange"){if(h.type===4)return d({numFailures:p,failures:o,results:[],lastResult:void 0});h.type===3?n.push(m=i.clear()):n.push(m=i["delete"](e(h)))}else{j=k?j?[g,a]:[g,null]:[a,null];var r=j[0];j=j[1];if(k)for(k=0;k=b});a.forEach(function(a){f.push(function(){var f=h,j=a._cfg.dbschema;hd(e,f,d);hd(e,j,d);h=e._dbSchema=j;var k=$c(f,j);k.add.forEach(function(a){ad(d,a[0],a[1].primKey,a[1].indexes)});k.change.forEach(function(a){if(a.recreate)throw new E.Upgrade("Not yet support for changing primary key");else{var b=d.objectStore(a.name);a.add.forEach(function(a){return dd(b,a)});a.change.forEach(function(a){b.deleteIndex(a.name),dd(b,a)});a.del.forEach(function(a){return b.deleteIndex(a)})}});var l=a._cfg.contentUpgrade;if(l&&a._cfg.version>b){Uc(e,d);c._memoizedTables={};i=!0;var m=ea(j);k.del.forEach(function(a){m[a]=f[a]});Wc(e,[e.Transaction.prototype]);Vc(e,[e.Transaction.prototype],g(m),m);c.schema=m;var n=sa(l);n&&Cb();var o;j=L.follow(function(){o=l(c);if(o&&n){var a=P.bind(null,null);o.then(a,a)}});return o&&typeof o.then==="function"?L.resolve(o):j.then(function(){return o})}}),f.push(function(b){if(!i||!Rb){var d=a._cfg.dbschema;cd(d,b)}Wc(e,[e.Transaction.prototype]);Vc(e,[e.Transaction.prototype],e._storeNames,e._dbSchema);c.schema=e._dbSchema})});function j(){return f.length?L.resolve(f.shift()(c.idbtrans)).then(j):L.resolve()}return j().then(function(){bd(h,d)})}function $c(a,b){var c={del:[],add:[],change:[]},d;for(d in a)b[d]||c.del.push(d);for(d in b){var e=a[d],f=b[d];if(!e)c.add.push([d,f]);else{var g={name:d,def:f,recreate:!1,del:[],add:[],change:[]};if(""+(e.primKey.keyPath||"")!==""+(f.primKey.keyPath||"")||e.primKey.auto!==f.primKey.auto&&!Qb)g.recreate=!0,c.change.push(g);else{e=e.idxByName;f=f.idxByName;var h;for(h in e)f[h]||g.del.push(h);for(h in f){var i=e[h],j=f[h];!i?g.add.push(j):i.src!==j.src&&g.change.push(j)}(g.del.length>0||g.add.length>0||g.change.length>0)&&c.change.push(g)}}}return c}function ad(a,b,c,d){var e=a.db.createObjectStore(b,c.keyPath?{keyPath:c.keyPath,autoIncrement:c.auto}:{autoIncrement:c.auto});d.forEach(function(a){return dd(e,a)});return e}function bd(a,b){g(a).forEach(function(c){b.db.objectStoreNames.contains(c)||ad(b,c,a[c].primKey,a[c].indexes)})}function cd(a,b){[].slice.call(b.db.objectStoreNames).forEach(function(c){return a[c]==null&&b.db.deleteObjectStore(c)})}function dd(a,b){a.createIndex(b.name,b.keyPath,{unique:b.unique,multiEntry:b.multi})}function ed(a,b,c){var d={};a=t(b.objectStoreNames,0);a.forEach(function(a){var b=c.objectStore(a),e=b.keyPath,f=Hc(Ic(e),e||"",!1,!1,!!b.autoIncrement,e&&typeof e!=="string",!0),g=[];for(var h=0;hMath.pow(2,62)?0:d.oldVersion;h=e<1;a._novip.idbdb=j.result;Yc(a,e/10,g,f)}},f);j.onsuccess=M(function(){g=null;var c=a._novip.idbdb=j.result,e=t(c.objectStoreNames);if(e.length>0)try{e=c.transaction(Kc(e),"readonly");b.autoSchema?fd(a,c,e):(hd(a,a._dbSchema,e),!gd(a,e));Uc(a,e)}catch(a){}Pb.push(a);c.onversionchange=M(function(c){b.vcFired=!0,a.on("versionchange").fire(c)});c.onclose=M(function(b){a.on("close").fire(b)});h&&od(a._deps,i);d()},f)})})]).then(function(){e();b.onReadyBeingFired=[];return L.resolve(qd(function(){return a.on.ready.fire(a.vip)})).then(function c(){if(b.onReadyBeingFired.length>0){var d=b.onReadyBeingFired.reduce(Ma,F);b.onReadyBeingFired=[];return L.resolve(qd(function(){return d(a.vip)})).then(c)}})})["finally"](function(){b.onReadyBeingFired=null,b.isBeingOpened=!1}).then(function(){return a})["catch"](function(c){b.dbOpenError=c;try{g&&g.abort()}catch(a){}d===b.openCanceller&&a._close();return R(c)})["finally"](function(){b.openComplete=!0,f()})}function td(a){var b=function(b){return a.next(b)},c=function(b){return a["throw"](b)},d=f(b),e=f(c);function f(a){return function(b){b=a(b);var c=b.value;return b.done?c:!c||typeof c.then!=="function"?h(c)?Promise.all(c).then(d,e):d(c):c.then(d,e)}}return f(b)()}function ud(a,b,c){var d=arguments.length;if(d<2)throw new E.InvalidArgument("Too few arguments");var e=new Array(d-1);while(--d)e[d-1]=arguments[d];c=e.pop();var f=ga(e);return[a,f,c]}function vd(a,b,c,d,e){return L.resolve().then(function(){var f=J.transless||J,g=a._createTransaction(b,c,a._dbSchema,d);g.explicit=!0;f={trans:g,transless:f};if(d)g.idbtrans=d.idbtrans;else try{g.create(),a._state.PR1398_maxLoop=3}catch(d){if(d.name===Ca.InvalidState&&a.isOpen()&&--a._state.PR1398_maxLoop>0){a._close();return a.open().then(function(){return vd(a,b,c,null,e)})}return R(d)}var h=sa(e);h&&Cb();var i;f=L.follow(function(){i=e.call(g,g);if(i)if(h){var a=P.bind(null,null);i.then(a,a)}else typeof i.next==="function"&&typeof i["throw"]==="function"&&(i=td(i))},f);return(i&&typeof i.then==="function"?L.resolve(i).then(function(a){return g.active?a:R(new E.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):f.then(function(){return i})).then(function(a){d&&g._resolve();return g._completion.then(function(){return a})})["catch"](function(a){g._reject(a);return R(a)})})}function wd(a,b,c){a=h(a)?a.slice():[a];for(var d=0;d0;h=d(d({},c),{name:k?"".concat(h,"(virtual-from:").concat(c.name,")"):c.name,lowLevelIndex:c,isVirtual:k,keyTail:b,keyLength:j,extractKey:Mc(a),unique:!k&&c.unique});i.push(h);h.isPrimaryKey||f.push(h);if(j>1){k=j===2?a[0]:a.slice(0,j-1);g(k,b+1,c)}i.sort(function(a,b){return a.keyTail-b.keyTail});return h}var h=g(b.primaryKey.keyPath,0,b.primaryKey);e[":id"]=[h];for(var i=0,j=b.indexes;i0)return Promise.reject(c.failures[0]);if(f.length1?b:a}:{d:0});else{var c=new Z();a&&"d"in a&&i(c,a);return c}};m(Z.prototype,(xd={add:function(a){Hd(this,a);return this},addKey:function(a){Gd(this,a,a);return this},addKeys:function(a){var b=this;a.forEach(function(a){return Gd(b,a,a)});return this}},xd[oa]=function(){return Jd(this)},xd));function Gd(a,b,c){var d=T(b,c);if(isNaN(d))return;if(d>0)throw RangeError();if(Fd(a))return i(a,{from:b,to:c,d:1});d=a.l;var e=a.r;if(T(c,a.from)<0){d?Gd(d,b,c):a.l={from:b,to:c,d:1,l:null,r:null};return Kd(a)}if(T(b,a.to)>0){e?Gd(e,b,c):a.r={from:b,to:c,d:1,l:null,r:null};return Kd(a)}T(b,a.from)<0&&(a.from=b,a.l=null,a.d=e?e.d+1:1);T(c,a.to)>0&&(a.to=c,a.r=null,a.d=a.l?a.l.d+1:1);b=!a.r;d&&!a.l&&Hd(a,d);e&&b&&Hd(a,e)}function Hd(a,b){function c(a,b){var d=b.from,e=b.to,f=b.l;b=b.r;Gd(a,d,e);f&&c(a,f);b&&c(a,b)}Fd(b)||c(a,b)}function Id(a,b){b=Jd(b);var c=b.next();if(c.done)return!1;var d=c.value;a=Jd(a);var e=a.next(d.from),f=e.value;while(!c.done&&!e.done){if(T(f.from,d.to)<=0&&T(f.to,d.from)>=0)return!0;T(d.from,f.from)<0?d=(c=b.next(f.from)).value:f=(e=a.next(d.from)).value}return!1}function Jd(a){var b=Fd(a)?null:{s:0,n:a};return{next:function(a){var c=arguments.length>0;while(b)switch(b.s){case 0:b.s=1;if(c)while(b.n.l&&T(a,b.n.from)<0)b={up:b,n:b.n.l,s:1};else while(b.n.l)b={up:b,n:b.n.l,s:1};case 1:b.s=2;if(!c||T(a,b.n.to)<=0)return{value:b.n,done:!1};case 2:if(b.n.r){b.s=3;b={up:b,n:b.n.r,s:0};continue}case 3:b=b.up}return{done:!0}}}}function Kd(a){var b;b=(((b=a.r)===null||b===void 0?void 0:b.d)||0)-(((b=a.l)===null||b===void 0?void 0:b.d)||0);b=b>1?"r":b<-1?"l":"";if(b){var c=b==="r"?"l":"r",e=d({},a),f=a[b];a.from=f.from;a.to=f.to;a[b]=f[b];e[b]=f[c];a[c]=e;e.d=Ld(e)}a.d=Ld(a)}function Ld(a){var b=a.r;a=a.l;return(b?a?Math.max(b.d,a.d):b.d:a?a.d:0)+1}function Md(a,b){return a.trans.mode==="readonly"&&!!a.subscr&&!a.trans.explicit&&a.trans.db._options.cache!=="disabled"&&!b.schema.primaryKey.outbound}function Nd(a,b){switch(a){case"query":return b.values&&!b.unique;case"get":return!1;case"getMany":return!1;case"count":return!1;case"openCursor":return!1}}function Od(a,b){g(b).forEach(function(c){a[c]?Hd(a[c],b[c]):a[c]=ia(b[c])});return a}var Pd={stack:"dbcore",level:0,name:"Observability",create:function(a){var b=a.schema.name,c=new Z(a.MIN_KEY,a.MAX_KEY);return d(d({},a),{transaction:function(b,c,d){if(!J.subscr)return a.transaction(b,c,d);if(c!=="readonly")throw new E.ReadOnly("write transaction not allowed within liveQueries");return a.transaction(b,c,d)},table:function(e){var f=a.table(e),i=f.schema,j=i.primaryKey,k=j.extractKey,l=j.outbound,m=d(d({},f),{mutate:function(g){var k=g.trans,l=g.mutatedParts||(g.mutatedParts={}),m=function(a){a="idb://".concat(b,"/").concat(e,"/").concat(a);return l[a]||(l[a]=new Z())},n=m(""),o=m(":dels"),d=g.type,p=g.type==="deleteRange"?[g.range]:g.type==="delete"?[g.keys]:g.values.length<50?[Ad(j,g).filter(function(a){return a}),g.values]:[],a=p[0];p=p[1];var q=g.trans._cache;if(h(a)){n.addKeys(a);q=d==="delete"||a.length===p.length?Dd(a,q):null;!q&&d!=="add"&&o.addKeys(a);(q||p)&&Qd(m,i,q,p)}else if(a){d={from:a.lower,to:a.upper};o.add(d);n.add(d)}else n.add(c),o.add(c),i.indexes.forEach(function(a){return m(a.name).add(c)});return f.mutate(g).then(function(b){a&&(g.type==="add"||g.type==="put")&&n.addKeys(b.results);k.mutatedParts=Od(k.mutatedParts||{},l);return b})}}),n=function(b){b=b.query;var c=b.index;b=b.range;return[c,new Z((c=b.lower)!==null&&c!==void 0?c:a.MIN_KEY,(c=b.upper)!==null&&c!==void 0?c:a.MAX_KEY)]},o={get:function(a){return[j,new Z(a.key)]},getMany:function(a){return[j,new Z().addKeys(a.keys)]},count:n,query:n,openCursor:n};g(o).forEach(function(a){m[a]=function(g){var h=J.subscr,i=!!h,j=Md(J,f)&&Nd(a,g),m=j?g.obsSet={}:h;if(i){var n=function(a){a="idb://".concat(b,"/").concat(e,"/").concat(a);return m[a]||(m[a]=new Z())},p=n(""),q=n(":dels"),r=o[a](g),s=r[0],t=r[1];n(s.name||"").add(t);if(!s.isPrimaryKey)if(a==="count")q.add(c);else{var u=a==="query"&&l&&g.values&&f.query(d(d({},g),{values:!1}));return f[a].apply(this,arguments).then(function(b){if(a==="query"){if(l&&g.values)return u.then(function(a){a=a.result;p.addKeys(a);return b});var c=g.values?b.result.map(k):b.result;g.values?p.addKeys(c):q.addKeys(c)}else if(a==="openCursor"){var d=b,e=g.values;return d&&Object.create(d,{key:{get:function(){q.addKey(d.primaryKey);return d.key}},primaryKey:{get:function(){var a=d.primaryKey;q.addKey(a);return a}},value:{get:function(){e&&p.addKey(d.primaryKey);return d.value}}})}return b})}}return f[a].apply(this,arguments)}});return m}})}};function Qd(a,b,c,d){function e(b){var e=a(b.name||"");function f(a){return a!=null?b.extractKey(a):null}var g=function(a){return b.multiEntry&&h(a)?a.forEach(function(a){return e.addKey(a)}):e.addKey(a)};(c||d).forEach(function(a,b){a=c&&f(c[b]);b=d&&f(d[b]);T(a,b)!==0&&(a!=null&&g(a),b!=null&&g(b))})}b.indexes.forEach(e)}function Rd(a,b){return b.lower===void 0?!0:b.lowerOpen?T(a,b.lower)>0:T(a,b.lower)>=0}function Sd(a,b){return b.upper===void 0?!0:b.upperOpen?T(a,b.upper)<0:T(a,b.upper)<=0}function Td(a,b){return Rd(a,b)&&Sd(a,b)}function Ud(a,b,c,d,e,f){if(!c||c.length===0)return a;var g=b.query.index;d=d.schema.primaryKey;var h=d.extractKey,i=g.extractKey,j=(g.lowLevelIndex||g).extractKey;d=c.reduce(function(a,c){var d=a,e=c.type==="add"||c.type==="put"?c.values.filter(function(a){return Td(i(a),b.query.range)}).map(function(a){a=z(a);f&&Object.freeze(a);return a}):[];switch(c.type){case"add":d=a.concat(b.values?e:e.map(function(a){return h(a)}));break;case"put":var g=new Z().addKeys(c.values.map(function(a){return h(a)}));d=a.filter(function(a){a=b.values?h(a):a;return!Id(new Z(a),g)}).concat(b.values?e:e.map(function(a){return h(a)}));break;case"delete":var j=new Z().addKeys(c.keys);d=a.filter(function(a){a=b.values?h(a):a;return!Id(new Z(a),j)});break;case"deleteRange":var k=c.range;d=a.filter(function(a){return!Td(h(a),k)});break}return d},a);if(d===a)return a;d.sort(function(a,b){return T(j(a),j(b))||T(h(a),h(b))});b.limit&&b.limitb.limit?d.length=b.limit:a.length===b.limit&&d.length=0}function $d(b,c,a,d){b=Vd["idb://".concat(b,"/").concat(c)];if(!b)return[];c=b.queries[a];if(!c)return[null,!1,b,null];var e=d.query?d.query.index.name:null;c=c[e||""];if(!c)return[null,!1,b,null];switch(a){case"query":e=c.find(function(a){return a.req.limit===d.limit&&a.req.values===d.values&&Wd(a.req.query.range,d.query.range)});if(e)return[e,!0,b,c];a=c.find(function(a){var b="limit"in a.req?a.req.limit:Infinity;return b>=d.limit&&(d.values?a.req.values:!0)&&Zd(a.req.query.range,d.query.range)});return[a,!1,b,c];case"count":e=c.find(function(a){return Wd(a.req.query.range,d.query.range)});return[e,!!e,b,c]}}function ae(a,b){return Object.keys(a).some(function(c){return b[c]&&Id(b[c],a[c])})}var be={},ce=!1;function de(a){Od(be,a),ce||(ce=!0,queueMicrotask(function(){ce=!1;var a=be;be={};ee(a)}))}function ee(a,b){b===void 0&&(b=!1);var c=new Set();for(var d in a){var e=/^idb\:\/\/(.*)\/(.*)\//.exec(d);if(e){var f=e[1];e=e[2];f=Vd["idb://".concat(f,"/").concat(e)];f&&fe(f,a,c,b)}}c.forEach(function(a){return a()})}function fe(a,b,c,d){var e=d&&[];for(var f=0,g=Object.entries(a.queries.query);f0){l.optimisticOps=l.optimisticOps.filter(function(a){return a.trans!==f});for(var n=0,l=Object.values(l.queries.query);n=50||Ad(f,a).some(function(a){return a==null}))?h.then(function(b){var c=d(d({},a),{values:a.values.map(function(a,c){a=f.keyPath.includes(".")?z(a):d({},a);x(a,f.keyPath,b.results[c]);return a})});g.optimisticOps.push(c);queueMicrotask(function(){return de(a.mutatedParts)})}):(g.optimisticOps.push(a),de(a.mutatedParts),h["catch"](function(){qa(g.optimisticOps,a),de(a.mutatedParts)}));return h},query:function(a){if(!Md(J,e)||!Nd("query",a))return e.query(a);var d=J.trans.db._options.cache==="immutable",f=J,g=f.requery;f=f.signal;var h=$d(b,c,"query",a),i=h[0],j=h[1],k=h[2],l=h[3];if(i&&j)i.obsSet=a.obsSet;else{h=e.query(a).then(function(a){var b=a.result;i.res=b;if(d){for(var c=0,e=b.length;c0?!1:!1,e.close()});this.on("blocked",function(a){!a.newVersion||a.newVersion=0&&Pb.splice(b,1);if(this.idbdb){try{this.idbdb.close()}catch(a){}this._novip.idbdb=null}a.dbReadyPromise=new L(function(b){a.dbReadyResolve=b});a.openCanceller=new L(function(b,c){a.cancelOpen=c})};a.prototype.close=function(){this._close();var a=this._state;this._options.autoOpen=!1;a.dbOpenError=new E.DatabaseClosed();a.isBeingOpened&&a.cancelOpen(a.dbOpenError)};a.prototype["delete"]=function(){var a=this,b=arguments.length>0,c=this._state;return new L(function(d,e){var f=function(){a.close();var b=a._deps.indexedDB.deleteDatabase(a.name);b.onsuccess=M(function(){pd(a._deps,a.name),d()});b.onerror=W(e);b.onblocked=a._fireOnBlocked};if(b)throw new E.InvalidArgument("Arguments not allowed in db.delete()");c.isBeingOpened?c.dbReadyPromise.then(f):f()})};a.prototype.backendDB=function(){return this.idbdb};a.prototype.isOpen=function(){return this.idbdb!==null};a.prototype.hasBeenClosed=function(){var a=this._state.dbOpenError;return a&&a.name==="DatabaseClosed"};a.prototype.hasFailed=function(){return this._state.dbOpenError!==null};a.prototype.dynamicallyOpened=function(){return this._state.autoSchema};Object.defineProperty(a.prototype,"tables",{get:function(){var a=this;return g(this._allTables).map(function(b){return a._allTables[b]})},enumerable:!1,configurable:!0});a.prototype.transaction=function(){var a=ud.apply(this,arguments);return this._transaction.apply(this,a)};a.prototype._transaction=function(a,b,c){var d=this,e=J.trans;(!e||e.db!==this||a.indexOf("!")!==-1)&&(e=null);var f=a.indexOf("?")!==-1;a=a.replace("!","").replace("?","");var g,h;try{h=b.map(function(a){a=a instanceof d.Table?a.name:a;if(typeof a!=="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return a});if(a=="r"||a===Vb)g=Vb;else if(a=="rw"||a==Wb)g=Wb;else throw new E.InvalidArgument("Invalid transaction mode: "+a);if(e){if(e.mode===Vb&&g===Wb)if(f)e=null;else throw new E.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");e&&h.forEach(function(a){if(e&&e.storeNames.indexOf(a)===-1)if(f)e=null;else throw new E.SubTransaction("Table "+a+" not included in parent transaction.")});f&&e&&!e.active&&(e=null)}}catch(a){return e?e._promise(null,function(b,c){c(a)}):R(a)}var i=vd.bind(null,this,g,h,e,c);return e?e._promise(g,i,"lock"):J.trans?Hb(J.transless,function(){return d._whenReady(i)}):this._whenReady(i)};a.prototype.table=function(a){if(!l(this._allTables,a))throw new E.InvalidTable("Table ".concat(a," does not exist"));return this._allTables[a]};return a}(),ke=typeof Symbol!=="undefined"&&"observable"in Symbol?Symbol.observable:"@@observable",le=function(){function a(a){this._subscribe=a}a.prototype.subscribe=function(a,b,c){return this._subscribe(!a||typeof a==="function"?{next:a,error:b,complete:c}:a)};a.prototype[ke]=function(){return this};return a}(),me;try{me={indexedDB:f.indexedDB||f.mozIndexedDB||f.webkitIndexedDB||f.msIndexedDB,IDBKeyRange:f.IDBKeyRange||f.webkitIDBKeyRange}}catch(a){me={indexedDB:null,IDBKeyRange:null}}function ne(a){var b=!1,c,d=new le(function(d){var e=sa(a);function f(b){e&&Cb();b=O(a,b);e&&b["finally"](P);return b}var g=!1,h,i={},j={},k={get closed(){return g},unsubscribe:function(){if(g)return;g=!0;h&&h.abort();l&&Y.storagemutated.unsubscribe(n)}};d.start&&d.start(k);var l=!1;function m(){return ae(j,i)}var n=function(a){Od(i,a),m()&&o()},o=function(){if(g||!me.indexedDB)return;i={};var a={};h&&h.abort();h=new AbortController();var e={subscr:a,signal:h.signal,requery:o,trans:null},k=f(e);Promise.resolve(k).then(function(f){b=!0;c=f;if(g||e.signal.aborted)return;i={};j=a;!ja(j)&&!l&&(Y(Ec,n),l=!0);d.next&&d.next(f)},function(a){b=!1;if(!["DatabaseClosedError","AbortError"].includes(a===null||a===void 0?void 0:a.name)){if(g)return;d.error&&d.error(a)}})};o();return k});d.hasValue=function(){return b};d.getValue=function(){return c};return d}var oe=je;m(oe,d(d({},D),{"delete":function(a){a=new oe(a,{addons:[]});return a["delete"]()},exists:function(a){return new oe(a,{addons:[]}).open().then(function(a){a.close();return!0})["catch"]("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(a){try{return nd(oe.dependencies).then(a)}catch(a){return R(new E.MissingAPI())}},defineClass:function(){function a(a){i(this,a)}return a},ignoreTransaction:function(a){return J.trans?Hb(J.transless,a):a()},vip:qd,async:function(a){return function(){try{var b=td(a.apply(this,arguments));return!b||typeof b.then!=="function"?L.resolve(b):b}catch(a){return R(a)}}},spawn:function(a,b,c){try{a=td(a.apply(c,b||[]));return!a||typeof a.then!=="function"?L.resolve(a):a}catch(a){return R(a)}},currentTransaction:{get:function(){return J.trans||null}},waitFor:function(a,b){a=L.resolve(typeof a==="function"?oe.ignoreTransaction(a):a).timeout(b||6e4);return J.trans?J.trans.waitFor(a):a},Promise:L,debug:{get:function(){return B},set:function(a){ta(a,a==="dexie"?function(){return!0}:Tb)}},derive:p,extend:i,props:m,override:u,Events:fc,on:Y,liveQuery:ne,extendObservabilitySet:Od,getByKeyPath:w,setByKeyPath:x,delByKeyPath:da,shallowClone:ea,deepClone:z,getObjectDiff:zd,cmp:T,asap:aa,minKey:Nb,addons:[],connections:Pb,errnames:Ca,dependencies:me,cache:Vd,semVer:y,version:y.split(".").map(function(a){return parseInt(a)}).reduce(function(a,b,c){return a+b/Math.pow(10,c*2)})}));oe.maxKey=Lc(oe.dependencies.IDBKeyRange);typeof dispatchEvent!=="undefined"&&typeof addEventListener!=="undefined"&&(Y(Ec,function(a){if(!$){var b;Qb?(b=document.createEvent("CustomEvent"),b.initCustomEvent(X,!0,!0,a)):b=new CustomEvent(X,{detail:a});$=!0;dispatchEvent(b);$=!1}}),addEventListener(X,function(a){a=a.detail;$||pe(a)}));function pe(a){var b=$;try{$=!0,Y.storagemutated.fire(a),ee(a,!0)}finally{$=b}}var $=!1;if(typeof BroadcastChannel!=="undefined"){var qe=new BroadcastChannel(X);typeof qe.unref==="function"&&qe.unref();Y(Ec,function(a){$||qe.postMessage(a)});qe.onmessage=function(a){a.data&&pe(a.data)}}else if(typeof self!=="undefined"&&typeof navigator!=="undefined"){Y(Ec,function(a){try{$||(typeof localStorage!=="undefined"&&localStorage.setItem(X,JSON.stringify({trig:Math.random(),changedParts:a})),typeof self.clients==="object"&&e([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach(function(b){return b.postMessage({type:X,changedParts:a})}))}catch(a){}});typeof addEventListener!=="undefined"&&addEventListener("storage",function(a){if(a.key===X){a=JSON.parse(a.newValue);a&&pe(a.changedParts)}});xd=self.document&&navigator.serviceWorker;xd&&xd.addEventListener("message",re)}function re(a){a=a.data;a&&a.type===X&&pe(a.changedParts)}L.rejectionMapper=Fa;ta(B,Tb);D=Object.freeze({__proto__:null,Dexie:je,liveQuery:ne,Entity:$b,cmp:T,"default":je,RangeSet:Z,mergeRanges:Hd,rangesOverlap:Id});d(je,D,{"default":je});return je})}var j=!1;function k(){j||(j=!0,i());return h.exports}function b(a){switch(a){case void 0:return k()}}e.exports=b}),null); __d("dexie_maw",["dexie-4.0.1-alpha.22"],(function(a,b,c,d,e,f){e.exports=b("dexie-4.0.1-alpha.22")()}),null); /** * License: https://www.facebook.com/legal/license/CCT5pM3qiNk/ */ __d("tweetnacl-auth-1.0.1",["tweetnacl-1.0.3"],(function(a,b,c,d,e,f){"use strict";var g=b("tweetnacl-1.0.3");c={};var h={exports:c};function i(){(function(a,b){typeof h!=="undefined"&&h.exports?h.exports=b(g()):a.nacl.auth=b(a.nacl)})(this,function(a){if(!a)throw new Error("tweetnacl not loaded");var b=128,c=64;function d(d,e){var f=new Uint8Array(b+Math.max(c,d.length)),g;e.length>b&&(e=a.hash(e));for(g=0;g_:;";var g="\\b[A-Z][^\\s"+b+"]",h="\\b[a-z][^\\s"+b+"]";function a(a){var b=a.commonWordsBlocklist,c=a.minMatchLength;a=a.nameCase;var d=a==="capitalized"?g:h,e=new RegExp("(^|[^#])((?:"+d+"{"+1+",})$)");return{findMentionableString:function(a){a=e.exec(a);if(a===null)return null;var d=a[1],f=a[2];if(b.includes(f))return null;return f!=null&&f.length>=c?{leadOffset:a.index+d.length,matchingString:f,replaceableString:f}:null},name:"NameMentionStrategy("+c.toString()+", "+a+")"}}f["default"]=a}),66); __d("DocumentMentionsRegex",[],(function(a,b,c,d,e,f){"use strict";a="\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;";b="\\b[A-Z][^\\s"+a+"]";c={PUNCTUATION:a,NAME:b};d=c;f["default"]=d}),66); __d("createCometMentionMatchStrategy",["DocumentMentionsRegex"],(function(a,b,c,d,e,f,g){"use strict";var h="(?:\\.[ |$]| |["+c("DocumentMentionsRegex").PUNCTUATION+"]|)",i=75;function j(a,b){b="[^"+a+b+"\\s]";var c=new RegExp("(^|\\s|\\()(["+a+"]((?:"+b+h+"){0,"+i+"}))$"),d=50;a=new RegExp("(^|\\s|\\()(["+a+"]((?:"+b+"){0,"+d+"}))$");return{regex:c,regexAlias:a}}function a(a){var b=a.minMatchLength,d=a.name,e=a.triggers,f=a.disallowedChars;f=f===void 0?c("DocumentMentionsRegex").PUNCTUATION:f;var g=a.disallowedTerms;a=j(e,f);var h=a.regex,i=a.regexAlias;return{findMentionableString:function(a){var c=h.exec(a);c===null&&(c=i.exec(a));if(c!==null){a=c[1];var d=c[3];if(g==null?void 0:g.includes(d.toLowerCase()))return null;if(d.length>=b)return{leadOffset:c.index+a.length,matchingString:d,replaceableString:c[2]}}return null},name:d}}g["default"]=a}),98); __d("createCometAtSignComposerMentionsMatchStrategy",["createCometMentionMatchStrategy"],(function(a,b,c,d,e,f,g){"use strict";var h=["@","\\uff20"].join("");function a(a){a=a.minMatchLength;return c("createCometMentionMatchStrategy")({minMatchLength:a,name:"AtSignComposerMentionStrategy("+a.toString()+")",triggers:h})}g["default"]=a}),98); __d("cometFeedComposerCometMentionsTypeSelectionPayloadDecorator",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.entries,c=b.filter(function(a){return g(a)});b=b.filter(function(a){return!g(a)});return babelHelpers["extends"]({},a,{entries:c.concat(b)})}function g(a){return a.type==="entry"&&(a.rawData.type==="MENTION_TYPE_SELECTION"||a.rawData.type==="MENTION_TYPE_RESET")}f["default"]=a}),66); __d("createFeedCometMentionsDataEntry",["createFeedCometMentionsDataEntryWithTagSuggestion_data.graphql","createFeedCometMentionsDataEntryWithTag_data.graphql","createFeedCometMentionsDataEntry_data.graphql","createFeedCometMentionsDataEntry_profile.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;h!==void 0?h:h=b("createFeedCometMentionsDataEntry_data.graphql");i!==void 0?i:i=b("createFeedCometMentionsDataEntryWithTag_data.graphql");j!==void 0?j:j=b("createFeedCometMentionsDataEntryWithTagSuggestion_data.graphql");k!==void 0?k:k=b("createFeedCometMentionsDataEntry_profile.graphql");function a(a){var b;b=a.data.node;if(b==null)return null;b=b;var c=b.id,d=b.name;b=b.photo;b=b==null?void 0:b.uri;var e;switch(a.data.icon_shape){case"square":e="square";break;case"roundedRect":e="roundedRect";break;default:e="circle";break}if(b==null&&a.type==="MENTION_SEARCH_RESULT"){var f;b=(f=a.data.node)==null?void 0:f.thumbnail_link;e="roundedRect"}if(d==null||c==null||b==null)return null;if(a.type==="MENTION_SEARCH_RESULT"){var g,h;f=a.data.score;if(f==null)return null;g=Boolean((g=a.data.node)==null?void 0:g.is_verified);return{key:c,label:d,rawData:{docTitle:(h=a.data.node)==null?void 0:h.doc_title,docUrl:(h=a.data.node)==null?void 0:h.doc_url,iconShape:e,isExternal:!1,isVerified:g,photoURI:b,resultType:(h=a.data.node)==null?void 0:h.__typename,score:f,subtext:(g=a.data.node)==null?void 0:g.mentions_subtext,type:"MENTION_SEARCH_RESULT"},type:"entry"}}return{key:c,label:d,rawData:{photoURI:b,type:a.type},type:"entry"}}g["default"]=a}),98); __d("BaseTypeaheadLocalStorageDataProviderStorageKey",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a="_SearchBootstrapCache_";c=b("$InternalEnum").Mirrored(["FeedComposerMentionsIntentfulMentionsBootstrap","FeedComposerMentionsNonIntentfulMentionsBootstrap","FeedComposerMentionsWithTagBootstrap","GlobalTypeaheadBootstrapEntities","GlobalTypeaheadBootstrapKeywords"]);f.StorageKeyPrefix=a;f.StorageKey=c}),66); __d("BaseTypeaheadLocalStorageDataProvider",["BaseTypeaheadDataProvider","BaseTypeaheadLocalStorageDataProviderStorageKey","Promise","WebStorage","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=1e3*60*60*24;a=function(){function a(a){var b=a.storageKey,e=a.storageTimespan;e=e===void 0?j:e;a=babelHelpers.objectWithoutPropertiesLoose(a,["storageKey","storageTimespan"]);this.$1=new(c("BaseTypeaheadDataProvider"))(a);this.$3=b!=null?d("BaseTypeaheadLocalStorageDataProviderStorageKey").StorageKeyPrefix+b:null;this.$4=e;b=a.queryVariablesBuilder;this.$2=b}var e=a.prototype;e.fetch=function(a){var c=this,d=this.$3!=null?this.$5(a):null;if(d!=null){var e=this.$2.build();e=e(a);return(i||(i=b("Promise"))).resolve({requestQueryVariables:e,response:d})}return this.$1.fetch(a).then(function(b){var d=b.response;d!=null&&c.$3!=null&&c.$6(a,d);return b})};e.clearLocalStorage=function(){var a=this.$3,b=(h||(h=c("WebStorage"))).getLocalStorage();if(b==null||a==null)return;b.removeItem(a)};e.$5=function(a){var b=this.$3,d=(h||(h=c("WebStorage"))).getLocalStorage();if(d==null||b==null)return null;var e=d.getItem(b);if(e==null)return null;var f;try{f=JSON.parse(e)}catch(a){c("recoverableViolation")("Cannot deserialize bootstrap response from local storage due to error: "+a,"search")}if(f==null)return null;e=f;var g=e.queryVariables,i=e.response;e=e.timestamp;var j=this.$2.build();j=j(a);if(JSON.stringify(g)!==JSON.stringify(j)){d.removeItem(b);return null}a=Date.now();if(e+Number(this.$4)>=a)return i;d.removeItem(b);return null};e.$6=function(a,b){var d=this.$3,e=(h||(h=c("WebStorage"))).getLocalStorage();if(e==null||d==null)return;var f=this.$2.build();f=f(a);try{a=Date.now();f=JSON.stringify({queryVariables:f,response:b,timestamp:a});e.setItem(d,f)}catch(a){c("recoverableViolation")("Cannot save bootstrap response to local storage due to error: "+a,"search")}};return a}();g["default"]=a}),98); __d("useCometTypeaheadCompositeBootstrapWithLocalStorageDataSource",["BaseTypeaheadDataProviderQueryVariablesBuilder","BaseTypeaheadLocalStorageDataProvider","BaseTypeaheadPayloadDecoratorAddLimit","CometRelay","CometTypeaheadGraphQLBootstrapDataSource","react","useDeepEqualMemo"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useMemo;function a(a){var b=a.fetchPolicy,e=a.gqlQuery,f=a.limit,g=a.matchStrategy,h=a.normalize,j=a.queryVariables,k=a.storageKey,l=i(function(){return c("BaseTypeaheadPayloadDecoratorAddLimit")(f)},[f]),m=d("CometRelay").useRelayEnvironment();a=c("useDeepEqualMemo")(j);var n=i(function(){var a=new(c("BaseTypeaheadDataProviderQueryVariablesBuilder"))(function(){return function(){return j}});a=new(c("BaseTypeaheadLocalStorageDataProvider"))({options:{fetchPolicy:b},query:e,queryVariablesBuilder:a,relayEnvironment:m,storageKey:k});return new(c("CometTypeaheadGraphQLBootstrapDataSource"))({bootstrapDataProvider:a,matchStrategy:g,normalize:h})},[a,m]);return i(function(){return{bootstrap:function(){return n.bootstrap()},fetchCache:function(a){return l(n.fetchCache(a))}}},[n,l])}g["default"]=a}),98); __d("useFeedComposerCometMentionsBootloadDataSource",["WebPixelRatio","createFeedCometMentionsDataEntry","filterNulls","useCometTypeaheadCompositeBootstrapWithLocalStorageDataSource","useFeedComposerCometMentionsBootloadDataSourceQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useFeedComposerCometMentionsBootloadDataSourceQuery.graphql");function a(a){var b=a.canUseSections,e=a.firstDegreeFinderOptions,f=a.includeViewer,g=a.limit,h=a.matchStrategy;h=h===void 0?"prefix":h;var k=a.storageKey,l=a.typeaheadContext;a=a.typeaheadFirstDegreeFilters;return c("useCometTypeaheadCompositeBootstrapWithLocalStorageDataSource")({gqlQuery:i,limit:g,matchStrategy:h,normalize:j,queryVariables:{canUseSections:b,include_viewer:f,options:e,scale:d("WebPixelRatio").get(),typeahead_context:l,typeaheadFirstDegreeFilters:a},storageKey:k})}function j(a){return c("filterNulls")(((a=a==null?void 0:a.comet_composer_typeahead_bootload)!=null?a:[]).map(function(a){if((a==null?void 0:a.__typename)==="CometComposerTypeaheadResultEntry")return c("createFeedCometMentionsDataEntry")({data:a,type:"MENTION_SEARCH_RESULT"});else if((a==null?void 0:a.__typename)==="XFBMentionsSectionEntry"){var b=a.cache_id,d=a.label;return b==null||d==null?null:{entries:c("filterNulls")(a.entries.map(function(a){return c("createFeedCometMentionsDataEntry")({data:a,type:"MENTION_SEARCH_RESULT"})})),key:b,label:d,type:"section"}}return null}))}g["default"]=a}),98); __d("useFeedComposerCometMentionsNetworkDataSource",["WebPixelRatio","createFeedCometMentionsDataEntry","filterNulls","useCometTypeaheadGraphQLDataSource","useFeedComposerCometMentionsNetworkDataSourceQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useFeedComposerCometMentionsNetworkDataSourceQuery.graphql");function a(a){var b=a.canUseSections,e=a.contextID,f=a.enableTypeSelection,g=f===void 0?!1:f,h=a.includeViewer,k=a.limit,l=a.mentionTypes,m=a.postID,n=a.typeaheadContext;return c("useCometTypeaheadGraphQLDataSource")({gqlQuery:i,limit:k,normalize:j,queryVariablesBuilderFunction:function(a){a=a.query;return{canUseSections:b,context_id:e,count:k,enable_type_selection:g,include_viewer:h,mentionTypes:l,post_fbid:m,query:a,scale:d("WebPixelRatio").get(),typeahead_context:n}}})}function j(a){return c("filterNulls")(((a=a==null?void 0:a.comet_composer_typeahead_search)!=null?a:[]).map(function(a){if((a==null?void 0:a.__typename)==="CometComposerTypeaheadResultEntry")return c("createFeedCometMentionsDataEntry")({data:a,type:"MENTION_SEARCH_RESULT"});if((a==null?void 0:a.__typename)==="XFBMentionsTypeSelectionEntry"||(a==null?void 0:a.__typename)==="XFBMentionsTypeResetEntry"||(a==null?void 0:a.__typename)==="XFBMentionsSectionEntry"){a.__typename;var b=a.cache_id,d=a.label;if(b==null||d==null)return null;if((a==null?void 0:a.__typename)==="XFBMentionsTypeSelectionEntry"){var e;return{key:b,label:d,rawData:{iconName:(e=a.icon_name)!=null?e:"",type:"MENTION_TYPE_SELECTION",typesToShow:a.types_to_show.map(function(a){return a})},type:"entry"}}else if((a==null?void 0:a.__typename)==="XFBMentionsTypeResetEntry")return{key:b,label:d,rawData:{type:"MENTION_TYPE_RESET"},type:"entry"};else if((a==null?void 0:a.__typename)==="XFBMentionsSectionEntry")return{entries:c("filterNulls")(a.entries.map(function(a){return c("createFeedCometMentionsDataEntry")({data:a,type:"MENTION_SEARCH_RESULT"})})),key:b,label:d,type:"section"}}return null}))}g["default"]=a}),98); __d("useFeedComposerCometMentionsNullstateDataSource",["WebPixelRatio","createFeedCometMentionsDataEntry","filterNulls","useCometTypeaheadGraphQLDataSource","useFeedComposerCometMentionsNullstateDataSourceQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("useFeedComposerCometMentionsNullstateDataSourceQuery.graphql");function a(a){var b=a.limit,e=a.mentionTypes,f=a.postID,g=a.useSections;return c("useCometTypeaheadGraphQLDataSource")({gqlQuery:i,limit:b,normalize:j,queryVariablesBuilderFunction:function(){return{count:b,mentionTypes:e,post_fbid:f,scale:d("WebPixelRatio").get(),useSections:g}}})}function j(a){return c("filterNulls")(((a=a==null?void 0:a.comet_composer_typeahead_search)!=null?a:[]).map(function(a){if((a==null?void 0:a.__typename)==="CometComposerTypeaheadResultEntry")return c("createFeedCometMentionsDataEntry")({data:a,type:"MENTION_SEARCH_RESULT"});else if((a==null?void 0:a.__typename)==="XFBMentionsSectionEntry"){var b=a.cache_id,d=a.label;return b==null||d==null?null:{entries:c("filterNulls")(a.entries.map(function(a){return c("createFeedCometMentionsDataEntry")({data:a,type:"MENTION_SEARCH_RESULT"})})),key:b,label:d,type:"section"}}return null}))}g["default"]=a}),98); __d("useCometMentionsDataSourceResolverConfig",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useLayoutEffect,k=b.useMemo;function a(a,b){var c=i(function(){a.forEach(function(a){a=a.dataSource;a.bootstrap()})},[a]);j(function(){if(!b)return;c()},[b,c]);return k(function(){var b=new Map();return{bootstrap:c,resolver:function(c){var d={dataSource:null,searchResult:null};if(c==null)return d;var e=b.get(c);if(e!=null)return e;for(e=0;e0)},[J,r])});var K=z[0].isLoading,L=z[1],M=F&&(D.length>0||K);k(function(){M?p.startSession(I.current):p.isSessionActive()&&p.maybeEndSession(I.current,c("baseTypeaheadFlattenEntries")(C.current));u(M);return function(){p.isSessionActive()&&p.maybeEndSession(I.current,c("baseTypeaheadFlattenEntries")(C.current))}},[u,p,M]);k(function(){G(!0),L({query:w})},[L,w,f]);l(b,function(){return{getViewRef:function(){return H},hasSelection:function(){return o(c("baseTypeaheadFlattenEntries")(C.current),A)},moveDown:function(){d("cometTypeaheadKeyboardNavigationUtils").moveDown(c("baseTypeaheadFlattenEntries")(C.current),A!=null?A.key:null,J)},moveUp:function(){d("cometTypeaheadKeyboardNavigationUtils").moveUp(c("baseTypeaheadFlattenEntries")(C.current),A!=null?A.key:null,J)},select:function(){var a=c("baseTypeaheadFlattenEntries")(C.current);t&&A!=null&&o(a,A)&&(p.isSessionActive()&&p.maybeEndSession(w,a,A),t(A))}}},[A,J,t,p,w]);z=j(function(a){var b=c("baseTypeaheadFlattenEntries")(C.current);t&&o(b,a)&&(p.isSessionActive()&&p.maybeEndSession(w,b,a),t(a))},[t,p,w]);k(function(){if(M===!1)return;function a(a,b){a=a.parentElement;while(a!=null&&a!==b)a=a.parentElement;return a===b}var b=function(b){b=b.target;if(!(b instanceof HTMLElement))return;var c=H.current;c=c!==null&&(b===c||a(b,c));b=g!==null&&(b===g||a(b,g));G(c||b)};document.addEventListener("click",b);return function(){return document.removeEventListener("click",b)}},[g,M]);return!M?null:i.jsx(h,{ariaProps:{role:"listbox"},context:e,entries:D,highlightedEntry:A,isLoading:K,onAriaChange:q,onBlur:a.onBlur,onHighlightEntry:J,onPressEntry:z,onPressEntryIn:z,position:v,queryString:w,viewRef:H,viewStrategyRenderer:x})}a.displayName=a.name+" [from "+f.id+"]";function o(a,b){if(b==null)return!1;var c=b.key;return a.find(function(a){return a.key===c})!=null}e=i.forwardRef(a);g["default"]=e}),98); __d("useCometMentionsBootstrapForLexical",["Lexical","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useRef;function a(a,b){var c=j(!1);i(function(){if(c.current)return;var e=a.getRootElement()===document.activeElement;if(e){b();c.current=!0;return}var f=a.registerCommand(d("Lexical").FOCUS_COMMAND,function(){b();c.current=!0;f();return!1},d("Lexical").COMMAND_PRIORITY_LOW);return f},[b,a,c])}g["default"]=a}),98); __d("MentionsSessionEndWithoutClickFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("445");b=d("FalcoLoggerInternal").create("mentions_session_end_without_click",a);e=b;g["default"]=e}),98); __d("MentionsSessionStartFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("446");b=d("FalcoLoggerInternal").create("mentions_session_start",a);e=b;g["default"]=e}),98); __d("MentionsSuggestionClickedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("447");b=d("FalcoLoggerInternal").create("mentions_suggestion_clicked",a);e=b;g["default"]=e}),98); __d("CometMentionsLoggingProvider",["MentionsSessionEndWithoutClickFalcoEvent","MentionsSessionStartFalcoEvent","MentionsSuggestionClickedFalcoEvent","guid","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.$2=!1,this.$3=null,this.$1=a}var b=a.prototype;b.getSessionID=function(){this.$3==null&&c("recoverableViolation")("Mentions logging sessionID does not exist.","search");return this.$3};b.isSessionActive=function(){return this.$2};b.startSession=function(a){var b=this;if(a==null)return;var d=c("guid")();this.$3=d;this.$2=!0;c("MentionsSessionStartFalcoEvent").log(function(){return babelHelpers["extends"]({},b.$1,{session_id:d,typed_query:a})})};b.maybeEndSession=function(a,b,d){if(a==null)return;var e=b!=null?JSON.stringify(b.map(function(a){return{id:a.key}})):null,f=babelHelpers["extends"]({},this.$1,{serialized_candidate_suggestions:e,session_id:this.getSessionID(),typed_query:a});if(d!=null){var g=d.key,h=(e=b==null?void 0:b.findIndex(function(a){return a.key===g}))!=null?e:null,i=isNaN(parseInt(d.key,10))?"0":d.key;c("MentionsSuggestionClickedFalcoEvent").log(function(){return babelHelpers["extends"]({},f,{selected_position:String(h),selected_result_display_text:d.label,selected_result_id:i,selected_result_id_string:d.key})})}else c("MentionsSessionEndWithoutClickFalcoEvent").log(function(){return f});this.$3=null;this.$2=!1};return a}();g["default"]=a}),98); __d("useCometMentionsLoggingProvider",["CometMentionsLoggingProvider","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useMemo,j={context_id:null,context_type:"unknown",surface:null,typeahead_type:null};function a(a){a===void 0&&(a=j);return i(function(){return new(c("CometMentionsLoggingProvider"))(a)},[a])}g["default"]=a}),98); __d("useCometMentionsResolutionForLexical",["getCometComposerMentionsSearchForLexical","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.startTransition,j=b.useEffect,k=b.useState;function l(a,b){var c=window.getSelection();if(c===null||!c.isCollapsed||a===null)return!1;var d=c.anchorNode;a=a.leadOffset;c=c.anchorOffset;try{b.setStart(d,a),b.setEnd(d,c)}catch(a){return!1}return!0}function a(a,b,d){var e=k(null),f=e[0],g=e[1];j(function(){var e=document.createRange(),f=null,h=null,j=null,k=function(){var k=e,m=c("getCometComposerMentionsSearchForLexical")(a,d);if(m===f||k===null)return;f=m;m=b(m);var n=m.dataSource,o=m.searchResult;if(n===h&&o===j)return;m=l(o,k);h=n;j=o;!m||n===null||o===null?i(function(){return g(null)}):i(function(){g({dataSource:n,range:k,searchResult:o})})},m=a.registerUpdateListener(k);k();return function(){e=null,m()}},[b,a]);return f}g["default"]=a}),98); __d("CometMentionsForLexical.react",["CometLexicalContentEditableCommands","CometMentions.react","FBLogger","Lexical","LexicalText","LexicalUtils","emptyFunction","getCometComposerMentionsSearchForLexical","react","recoverableViolation","useCometMentionsBootstrapForLexical","useCometMentionsLoggingProvider","useCometMentionsResolutionForLexical"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useEffect,l=b.useMemo,m=b.useRef,n=b.useState;function a(a){var b=a.createNodeStrategy,e=a.dataSourceResolverConfig,f=e.bootstrap,g=e.resolver,h=a.editor;e=a.layoutStrategyRenderer;var l=a.mentionsHandlerForSelectedEntry,n=a.mentionsLoggerContext,p=a.position;p=p===void 0?"below":p;var s=a.searchableNodes;a=a.viewStrategyRenderer;var t=c("useCometMentionsResolutionForLexical")(h,g,s),u=m(!1),v=o(h),w=v[0],x=v[1],y=m(null),z=r(h);c("useCometMentionsBootstrapForLexical")(h,f);k(function(){return h.registerCommand(d("Lexical").BLUR_COMMAND,function(){z();return!1},d("Lexical").COMMAND_PRIORITY_LOW)},[h,z]);v=j(function(){z()},[z]);k(function(){var a;a=[{handler:function(a){if(a.hasSelection()){a.select();return!0}return!1},type:(a=d("Lexical")).KEY_ENTER_COMMAND},{handler:function(a){if(a.hasSelection()){a.select();return!0}return!1},type:a.KEY_TAB_COMMAND},{handler:function(a){a.moveUp();return!0},type:a.KEY_ARROW_UP_COMMAND},{handler:function(a){a.moveDown();return!0},type:a.KEY_ARROW_DOWN_COMMAND},{handler:function(){z();x();return!0},type:a.KEY_ESCAPE_COMMAND}];return d("LexicalUtils").mergeRegister.apply(void 0,a.map(function(a){var b=a.handler;a=a.type;return h.registerCommand(a,function(a){var c=y.current,d=u.current;if(c===null||!d||w)return!1;if(b(c)){d=a;d.preventDefault();d.stopPropagation();return!0}return!1},d("Lexical").COMMAND_PRIORITY_CRITICAL)}))},[x,h,z,w]);f=j(function(a){u.current=a},[]);var A=j(function(a){if(a)return;z()},[z]),B=j(function(a){var d=c("getCometComposerMentionsSearchForLexical")(h,s);if(d==null){c("FBLogger")("search").warn("Race condition where the user selected a mention but theres no text in the editor");return}var e=g(d);e=e.searchResult;if(e==null){c("recoverableViolation")("onPressEntry was called and no search result was found for the query "+d,"CometComposer");return}z();d=l==null?void 0:l(a);if(d!=null&&!d.shouldMentionSelectedEntry)return;q(h,b,a,e,s);x()},[b,g,x,h,z,l,s]);n=c("useCometMentionsLoggingProvider")(n);if(t===null||w){z();u.current=!1;return null}return i.jsx(c("CometMentions.react"),{context:t.range,dataSource:t.dataSource,inputElement:h.getRootElement(),layoutStrategyRenderer:e,loggingProvider:n,onAriaChange:z,onBlur:v,onEntriesUpdated:A,onFocus:c("emptyFunction"),onSelectedEntry:B,onVisibilityChange:f,position:p,queryString:t.searchResult.matchingString,ref:y,viewStrategyRenderer:a})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b=n(!1),c=b[0],e=b[1];k(function(){if(c){var b=a.getEditorState().read(d("LexicalText").$rootTextContent);return a.registerTextContentListener(function(a){b!==null&&a!==b&&e(!1),b=a})}},[a,c]);return l(function(){return[c,function(){return e(!0)}]},[c])}function p(a,b,c){c=c;for(var d=c;d<=b.length;d++)a.substr(-d)===b.substr(0,d)&&(c=d);return c}function q(a,b,c,e,f){a.update(function(){var a=d("Lexical").$getSelection();if(!d("Lexical").$isRangeSelection(a)||!a.isCollapsed())return;a=a.anchor;if(a.type!=="text")return;var g=a.getNode();if(f!=null&&!f.some(function(a){return g instanceof a})||f==null&&!g.isSimpleText())return;a=a.offset;var h=g.getTextContent().slice(0,a),i=c.label,j=e.replaceableString.length;h=p(h,i,j);i=a-h;if(i<0)return;b({anchorNode:g,endOffset:a,selectedEntry:c,startOffset:i})})}function r(a){var b=m(void 0),c=m(void 0);return j(function(e,f){var g=b.current,h=c.current;(g!==e||h!==f)&&(b.current=e,c.current=f,a.dispatchCommand(d("CometLexicalContentEditableCommands").COMET_LEXICAL_ARIA_COMMAND,{activeDescendantID:e,controlsID:f}))},[a])}g["default"]=a}),98); __d("cometMentionsDataEntryText",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b;return(b=a.handle)!=null?b:a.label}f["default"]=a}),66); __d("CometMentionsViewListStrategy.react",["CometCompositeStructureContext","TetraText.react","getItemRoleFromCompositeRole","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useMemo;function a(a){var b=a.ariaProps,d=a.entries;a.extraViewProps;var e=a.highlightedEntry;a.isLoading;a.onAbandonTypeahead_DO_NOT_USE;var f=a.viewItemStrategyRenderer,g=babelHelpers.objectWithoutPropertiesLoose(a,["ariaProps","entries","extraViewProps","highlightedEntry","isLoading","onAbandonTypeahead_DO_NOT_USE","viewItemStrategyRenderer"]),h=b.role;a=j(function(){if(h!=null)return{role:h};else return{}},[h]);var k=c("getItemRoleFromCompositeRole")(h);return i.jsx("ul",babelHelpers["extends"]({},b,{className:"x78zum5 xdt5ytf x1iyjqo2","data-testid":void 0,children:i.jsx(c("CometCompositeStructureContext").Provider,{value:a,children:d.map(function(a){if(a.type==="section"){var b=a.entries,d=a.key,h=a.label;return b.length===0?null:i.jsxs("li",{"aria-selected":"false",role:"option",children:[i.jsx("div",{className:"x889kno x1iji9kk x1a8lsjc x1sln4lm",children:i.jsx("label",{htmlFor:d,children:i.jsx(c("TetraText.react"),{color:"primary",type:"entityHeaderMeta2",children:h})})}),i.jsx("ul",{id:d,role:"listbox",children:b.map(function(a){return i.createElement(f,babelHelpers["extends"]({},g,{entry:a,isActive:a.key===(e==null?void 0:e.key),key:a.key,role:k}))})})]},"section-"+d)}else return i.createElement(f,babelHelpers["extends"]({},g,{entry:a,isActive:a.key===(e==null?void 0:e.key),key:a.key,role:k}))})})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useCometMentionsViewListStrategy",["CometMentionsViewListStrategy.react","CometTypeaheadProgressGlimmer.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useCallback;function a(a){var b=a.viewItemStrategyRenderer;return j(function(a){var d=a.isLoading;a=babelHelpers.objectWithoutPropertiesLoose(a,["isLoading"]);return i.jsxs(i.Fragment,{children:[i.jsx(c("CometMentionsViewListStrategy.react"),babelHelpers["extends"]({},a,{isLoading:!1,viewItemStrategyRenderer:b})),d&&i.jsx(c("CometTypeaheadProgressGlimmer.react"),{})]})},[b])}g["default"]=a}),98); __d("cometBaseMentionsLexicalCreateNodeStrategy",["FBLogger"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return function(b){var d=b.anchorNode,e=b.endOffset,f=b.selectedEntry;b=b.startOffset;if(b===0){var g=d.splitText(e);g=g[0]}else{d=d.splitText(b,e);g=d[1]}if(g==null){c("FBLogger")("search").mustfix("createMentionNodeFromSearchResult failed to find correct offsets. Found offsets: "+b+", "+e+".");return}d=a(f);g.replace(d);d.selectNext(0,0)}}g["default"]=a}),98); __d("cometMentionsLexicalCreateNodeStrategy",["CometLexicalGenericEntityNode","cometBaseMentionsLexicalCreateNodeStrategy","cometMentionsDataEntryText"],(function(a,b,c,d,e,f,g){"use strict";a=c("cometBaseMentionsLexicalCreateNodeStrategy")(function(a){return d("CometLexicalGenericEntityNode").$createCometLexicalGenericEntityNode({id:a.key,text:c("cometMentionsDataEntryText")(a),type:"Actor"})});b=a;g["default"]=b}),98); __d("CometMediaViewerMentionsTypeaheadEmptyState.react",["TetraText.react","getPeopleTypeaheadNullStateText","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(){return i.jsx("div",{className:"x6s0dn4 x78zum5 xc9qbxq xl56j7k",children:i.jsx(c("TetraText.react"),{align:"center",color:"secondary",type:"body2",children:c("getPeopleTypeaheadNullStateText")()})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useBaseMentionsLayoutStrategyARIAProps.react",["baseTypeaheadFlattenEntries","react","useCometTypeaheadLayoutContextualStrategyARIAProps"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect;function a(a){var b=a.entries,d=a.highlightedEntry,e=a.onAriaChange;a=c("useCometTypeaheadLayoutContextualStrategyARIAProps")({activeEntries:c("baseTypeaheadFlattenEntries")(b),helperText:"",highlightedEntry:d,inputLabel:"",isOpened:!0,viewRole:"listbox"});var f=a.ariaInputProps;b=a.ariaViewProps;i(function(){return e(f["aria-activedescendant"],f["aria-controls"])},[f,e]);return b}g["default"]=a}),98); __d("CometSearchTypeaheadBaseLayoutMentionsStrategy.react",["CometMediaViewerMentionsTypeaheadEmptyState.react","react","useBaseMentionsLayoutStrategyARIAProps.react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.isLoading,d=a.onAriaChange,e=a.viewStrategyRenderer;a=babelHelpers.objectWithoutPropertiesLoose(a,["isLoading","onAriaChange","viewStrategyRenderer"]);d=c("useBaseMentionsLayoutStrategyARIAProps.react")({entries:a.entries,highlightedEntry:a.highlightedEntry,onAriaChange:d});return i.jsxs("div",{children:[i.jsx(e,babelHelpers["extends"]({},a,{ariaProps:d,isLoading:!1})),!b&&a.entries.length===0?i.jsx(c("CometMediaViewerMentionsTypeaheadEmptyState.react"),{}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("CometMentionsLayoutStrategy.react",["CometContextualLayer.react","CometPopover.react","CometSearchTypeaheadBaseLayoutMentionsStrategy.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.ariaProps,d=a.context,e=a.entries,f=a.onBlur,g=a.position,h=a.viewRef;a=babelHelpers.objectWithoutPropertiesLoose(a,["ariaProps","context","entries","onBlur","position","viewRef"]);if(e.length===0)return null;var j=c("CometSearchTypeaheadBaseLayoutMentionsStrategy.react");return i.jsx(c("CometContextualLayer.react"),{align:"start",context_DEPRECATED:d,position:g,children:i.jsx(c("CometPopover.react"),{onBlur:f,ref:h,role:"listbox",children:i.jsx(j,babelHelpers["extends"]({ariaProps:b,entries:e,isLoading:!1},a))})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useCometTypeaheadCompositeBootstrapDataSource",["BaseTypeaheadDataProvider","BaseTypeaheadDataProviderQueryVariablesBuilder","BaseTypeaheadPayloadDecoratorAddLimit","CometRelay","CometTypeaheadGraphQLBootstrapDataSource","react","useDeepEqualMemo"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useMemo;function a(a){var b=a.fetchPolicy,e=a.gqlQuery,f=a.limit,g=a.matchStrategy,h=a.normalize,j=a.queryVariables,k=i(function(){return c("BaseTypeaheadPayloadDecoratorAddLimit")(f)},[f]),l=d("CometRelay").useRelayEnvironment();a=c("useDeepEqualMemo")(j);var m=i(function(){var a=new(c("BaseTypeaheadDataProviderQueryVariablesBuilder"))(function(){return function(){return j}});a=new(c("BaseTypeaheadDataProvider"))({options:{fetchPolicy:b},query:e,queryVariablesBuilder:a,relayEnvironment:l});return new(c("CometTypeaheadGraphQLBootstrapDataSource"))({bootstrapDataProvider:a,matchStrategy:g,normalize:h})},[a,l]);return i(function(){return{bootstrap:function(){return m.bootstrap()},fetchCache:function(a){return k(m.fetchCache(a))}}},[m,k])}g["default"]=a}),98); __d("getUpgradedCometEmojiComposerHandler",["CometLexicalEmojiNode","EmojiRenderer","FBEmojiResource","Lexical"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var e=a.registerNodeTransform(d("Lexical").TextNode,function(a){if(!a.isSimpleText())return;var e=a.getTextContent(),f=a,g=0;d("EmojiRenderer").parse(e).forEach(function(e){var h=e.emoji,i=e.length;e=e.offset;var j=h.join("");h=c("FBEmojiResource").fromCodepoints(h);if(h==null)return;h=h.getImageURL(b);if(h==null)return;var k=j;j=d("CometLexicalEmojiNode").$createEmojiNode(j,k,h,b);k=e-g;h=k+i;if(k===0){e=f.splitText(h);a=e[0];f=e[1]}else{i=f.splitText(k,h);a=i[1];f=i[2]}g+=h;a.replace(j);j})});return function(){e()}}g["default"]=a}),98); __d("getHashtagRegexStringChars",[],(function(a,b,c,d,e,f){"use strict";function a(){var a="\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u024f\u0253-\u0254\u0256-\u0257\u0259\u025b\u0263\u0268\u026f\u0272\u0289\u028b\u02bb\u0300-\u036f\u1e00-\u1eff",b="\u0400-\u04ff\u0500-\u0527\u2de0-\u2dff\ua640-\ua69f\u0591-\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05f0-\u05f4\ufb12-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4f\u0610-\u061a\u0620-\u065f\u066e-\u06d3\u06d5-\u06dc\u06de-\u06e8\u06ea-\u06ef\u06fa-\u06fc\u06ff\u0750-\u077f\u08a0\u08a2-\u08ac\u08e4-\u08fe\ufb50-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\u200c-\u200c\u0e01-\u0e3a\u0e40-\u0e4e\u1100-\u11ff\u3130-\u3185\ua960-\ua97f\uac00-\ud7af\ud7b0-\ud7ff\uffa1-\uffdc",c=String.fromCharCode;c="\u30a1-\u30fa\u30fc-\u30fe\uff66-\uff9f\uff10-\uff19\uff21-\uff3a\uff41-\uff5a\u3041-\u3096\u3099-\u309e\u3400-\u4dbf\u4e00-\u9fff"+c(173824)+"-"+c(177983)+c(177984)+"-"+c(178207)+c(194560)+"-"+c(195103)+"\u3003\u3005\u303b";a=a+b+c;b="A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u0241\u0250-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ee\u037a\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03ce\u03d0-\u03f5\u03f7-\u0481\u048a-\u04ce\u04d0-\u04f9\u0500-\u050f\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0621-\u063a\u0640-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u076d\u0780-\u07a5\u07b1\u0904-\u0939\u093d\u0950\u0958-\u0961\u097d\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c60-\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d28\u0d2a-\u0d39\u0d60-\u0d61\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e87-\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa-\u0eab\u0ead-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edd\u0f00\u0f40-\u0f47\u0f49-\u0f6a\u0f88-\u0f8b\u1000-\u1021\u1023-\u1027\u1029-\u102a\u1050-\u1055\u10a0-\u10c5\u10d0-\u10fa\u10fc\u1100-\u1159\u115f-\u11a2\u11a8-\u11f9\u1200-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u1676\u1681-\u169a\u16a0-\u16ea\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19a9\u19c1-\u19c7\u1a00-\u1a16\u1d00-\u1dbf\u1e00-\u1e9b\u1ea0-\u1ef9\u1f00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u2094\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2131\u2133-\u2139\u213c-\u213f\u2145-\u2149\u2c00-\u2c2e\u2c30-\u2c5e\u2c80-\u2ce4\u2d00-\u2d25\u2d30-\u2d65\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3006\u3031-\u3035\u303b-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312c\u3131-\u318e\u31a0-\u31b7\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fbb\ua000-\ua48c\ua800-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\uac00-\ud7a3\uf900-\ufa2d\ufa30-\ufa6a\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";c="\u0300-\u036f\u0483-\u0486\u0591-\u05b9\u05bb-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u0610-\u0615\u064b-\u065e\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7-\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u0901-\u0903\u093c\u093e-\u094d\u0951-\u0954\u0962-\u0963\u0981-\u0983\u09bc\u09be-\u09c4\u09c7-\u09c8\u09cb-\u09cd\u09d7\u09e2-\u09e3\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a70-\u0a71\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2-\u0ae3\u0b01-\u0b03\u0b3c\u0b3e-\u0b43\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0c01-\u0c03\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c82-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0d02-\u0d03\u0d3e-\u0d43\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d82-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2-\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb-\u0ebc\u0ec8-\u0ecd\u0f18-\u0f19\u0f35\u0f37\u0f39\u0f3e-\u0f3f\u0f71-\u0f84\u0f86-\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102c-\u1032\u1036-\u1039\u1056-\u1059\u135f\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17b6-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u192b\u1930-\u193b\u19b0-\u19c0\u19c8-\u19c9\u1a17-\u1a1b\u1dc0-\u1dc3\u20d0-\u20dc\u20e1\u20e5-\u20eb\u302a-\u302f\u3099-\u309a\ua802\ua806\ua80b\ua823-\ua827\ufb1e\ufe00-\ufe0f\ufe20-\ufe23";var d="0-9\u0660-\u0669\u06f0-\u06f9\u0966-\u096f\u09e6-\u09ef\u0a66-\u0a6f\u0ae6-\u0aef\u0b66-\u0b6f\u0be6-\u0bef\u0c66-\u0c6f\u0ce6-\u0cef\u0d66-\u0d6f\u0e50-\u0e59\u0ed0-\u0ed9\u0f20-\u0f29\u1040-\u1049\u17e0-\u17e9\u1810-\u1819\u1946-\u194f\u19d0-\u19d9\uff10-\uff19";b=b+c+a;c=d+"_";a=b+c;d="#\\uFF03";return{alpha:b,alphanumeric:a,hashChars:d}}f["default"]=a}),66); __d("getHashtagRegexString",["getHashtagRegexStringChars"],(function(a,b,c,d,e,f){function a(){var a=b("getHashtagRegexStringChars")(),c=a.alpha,d=a.alphanumeric;a=a.hashChars;c="["+c+"]";var e="["+d+"]";d="^|$|[^&/"+d+"]";a="["+a+"]";d="("+d+")("+a+")("+e+"*"+c+e+"*)";return d}f["default"]=a}),66); __d("getUpgradedCometHashtagComposerHandler",["FBLogger","LexicalHashtag","LexicalText","LexicalUtils","getHashtagRegexString"],(function(a,b,c,d,e,f,g){"use strict";var h=new RegExp(c("getHashtagRegexString")(),"i");function a(a){if(!a.hasNodes([d("LexicalHashtag").HashtagNode]))throw c("FBLogger")("outline_ufi").mustfixThrow("HashtagPlugin: HashtagNode not registered on editor");var b=function(a){return d("LexicalHashtag").$createHashtagNode(a.getTextContent())},e=function(a){a=h.exec(a);if(a===null)return null;var b=a[3].length+1;a=a.index+a[1].length;b=a+b;return{end:b,start:a}};return d("LexicalUtils").mergeRegister.apply(void 0,d("LexicalText").registerLexicalTextEntity(a,e,d("LexicalHashtag").HashtagNode,b))}g["default"]=a}),98); __d("MLCHealthLoggerEvent",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum")({DAILY_INTERACTION_WITH_SURFACE:"daily_interaction_with_surface",COMMIT_CREATE:"commit_create",COMMIT_EDIT:"commit_edit"});c=a;f["default"]=c}),66); __d("MlcHealthBizappEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("2646");b=d("FalcoLoggerInternal").create("mlc_health_bizapp_event",a);e=b;g["default"]=e}),98); __d("MlcHealthFacebookAndWorkplaceEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("2647");b=d("FalcoLoggerInternal").create("mlc_health_facebook_and_workplace_event",a);e=b;g["default"]=e}),98); __d("MlcHealthFacebookEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("2648");b=d("FalcoLoggerInternal").create("mlc_health_facebook_event",a);e=b;g["default"]=e}),98); __d("MlcHealthInstagramEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("3766");b=d("FalcoLoggerInternal").create("mlc_health_instagram_event",a);e=b;g["default"]=e}),98); __d("MlcHealthInternalToolsEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("2649");b=d("FalcoLoggerInternal").create("mlc_health_internal_tools_event",a);e=b;g["default"]=e}),98); __d("MlcHealthMessagingLightswitchEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("2650");b=d("FalcoLoggerInternal").create("mlc_health_messaging_lightswitch_event",a);e=b;g["default"]=e}),98); __d("MlcHealthWorkplaceEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("2651");b=d("FalcoLoggerInternal").create("mlc_health_workplace_event",a);e=b;g["default"]=e}),98); __d("MLCHealthInstrumentationPlugin__INTERNAL.react",["Lexical","LexicalComposerContext","LexicalUtils","MLCInstrumentationCommands","MlcHealthBizappEventFalcoEvent","MlcHealthFacebookAndWorkplaceEventFalcoEvent","MlcHealthFacebookEventFalcoEvent","MlcHealthInstagramEventFalcoEvent","MlcHealthInternalToolsEventFalcoEvent","MlcHealthMessagingLightswitchEventFalcoEvent","MlcHealthWorkplaceEventFalcoEvent","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useLayoutEffect,j=new Set();function k(a){switch(a){case"facebook":return c("MlcHealthFacebookEventFalcoEvent");case"workplace":return c("MlcHealthWorkplaceEventFalcoEvent");case"facebook_and_workplace":return c("MlcHealthFacebookAndWorkplaceEventFalcoEvent");case"internal_tools":return c("MlcHealthInternalToolsEventFalcoEvent");case"messaging_lightswitch":return c("MlcHealthMessagingLightswitchEventFalcoEvent");case"bizapp":return c("MlcHealthBizappEventFalcoEvent");case"instagram":return c("MlcHealthInstagramEventFalcoEvent");default:return null}}function l(a,b,c){(a=k(a))==null?void 0:a.log(function(){return{event:c,surface:b}})}function a(a){var b=a.editor__DEPRECATED,c=a.policyProduct,e=a.surface,f;if(b)f=b;else{a=d("LexicalComposerContext").useLexicalComposerContext();f=a[0]}i(function(){var a=function(){};j.has(e)||(a=f.registerUpdateListener(function(b){var d=b.dirtyLeaves;b=b.tags;if(j.has(e)){a();return}if(d.size===0||b.has("history-merge")||!f.isEditable())return;j.add(e);l(c,e,"daily_interaction_with_surface");a()}));return d("LexicalUtils").mergeRegister(a,f.registerCommand(d("MLCInstrumentationCommands").COMMIT_COMMAND,function(a){a==="create"?l(c,e,"commit_create"):l(c,e,"commit_edit");return!1},d("Lexical").COMMAND_PRIORITY_CRITICAL))},[f,c,e]);return null}g["default"]=a}),98); __d("MLCInteractionInstrumentationPlugin__INTERNAL.react",["cr:3286","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return b("cr:3286")&&i.jsx(b("cr:3286"),babelHelpers["extends"]({},a))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("MLCTypingPerformancePlugin__INTERNAL.react",["LexicalComposerContext","LexicalText","cr:2012305","cr:308","cr:3287","cr:5452","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useLayoutEffect,k=b("cr:2012305")||b("cr:308");e=(c=b("cr:5452"))!=null?c:{};var l=e.getTextLengthBucket;function a(a){if(k===null)return null;b("cr:3287")&&b("cr:3287")();return i.jsx(m,babelHelpers["extends"]({},a))}a.displayName=a.name+" [from "+f.id+"]";function m(a){var b=a.editor__DEPRECATED,c=a.format__DEPRECATED,e=a.surface;a=a.typingPerformanceID;var f=a===void 0?"":a,g;if(b)g=b;else{a=d("LexicalComposerContext").useLexicalComposerContext();g=a[0]}j(function(){var a=babelHelpers["extends"]({},l==null?null:{textLengthBucket:l(g.getEditorState().read(d("LexicalText").$rootTextContent).length)}),b;h();function h(){b==null?void 0:b();if(k===null)return;var d=null,h=g.registerRootListener(function(b){if(b===d)return;d!==null&&k.unregisterTypingPerf(d);if(b!==null){var g;k.trackTypingPerf(b,e,d,babelHelpers["extends"]({},a,{editor:"LexicalEditor",format:(g=c)!=null?g:"",typingPerformanceID:f}))}d=b});b=function(){h(),d!==null&&k.unregisterTypingPerf(d)}}var i=l==null?null:g.registerTextContentListener(function(b){b=l(b.length);if(b===a.textLengthBucket)return;a.textLengthBucket=b;h()});return function(){b==null?void 0:b(),i==null?void 0:i()}},[f,g,c,e]);return null}g["default"]=a}),98); __d("MLCInstrumentationPlugin__INTERNAL.react",["MLCHealthInstrumentationPlugin__INTERNAL.react","MLCInteractionInstrumentationPlugin__INTERNAL.react","MLCTypingPerformancePlugin__INTERNAL.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");b="facebook";b;function a(a){return i.jsxs(i.Fragment,{children:[i.jsx(c("MLCTypingPerformancePlugin__INTERNAL.react"),babelHelpers["extends"]({},a)),i.jsx(c("MLCHealthInstrumentationPlugin__INTERNAL.react"),babelHelpers["extends"]({},a)),i.jsx(c("MLCInteractionInstrumentationPlugin__INTERNAL.react"),babelHelpers["extends"]({},a))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("upgradedUFI2MentionsComposerPluginCreatorWithTypeaheadViewForLexical",["CometMentionsForLexical.react","CometMentionsLayoutStrategy.react","FeedComposerCometMentionsViewItemResolver.react","cometMentionsLexicalCreateNodeStrategy","cr:5410","gkx","react","useCometMentionsViewListStrategy"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");e=c("gkx")("7372");var j=c("gkx")("7672");f=["USER","EVENT","GROUP","PAGE"];var k=e?[].concat(f,["WORKROOMS_USER"]):f;d=["user","event","group","page"];f=e?[].concat(d,["workrooms_user"]):d;var l=j?[].concat(f,["knowledge_hub_document"]):f;function a(){return function(a){var d=a.config,e=d.contextID;d=d.postID;a=a.pluginProps.editor;e=b("cr:5410")({canUseSections:j,contextID:e,firstDegreeTypesForBootstrap:k,mentionTypesForNetwork:l,postID:d,shouldBootstrapOnLayoutEffect:!1});d=c("useCometMentionsViewListStrategy")({viewItemStrategyRenderer:c("FeedComposerCometMentionsViewItemResolver.react")});return i.jsx(c("CometMentionsForLexical.react"),{createNodeStrategy:c("cometMentionsLexicalCreateNodeStrategy"),dataSourceResolverConfig:e,editor:a,layoutStrategyRenderer:c("CometMentionsLayoutStrategy.react"),viewStrategyRenderer:d})}}g["default"]=a}),98); __d("createUpgradedUFI2MentionsComposerPluginForLexical",["upgradedUFI2MentionsComposerPluginCreatorWithTypeaheadViewForLexical"],(function(a,b,c,d,e,f,g){"use strict";a=c("upgradedUFI2MentionsComposerPluginCreatorWithTypeaheadViewForLexical")();g["default"]=a}),98);/*FB_PKG_DELIM*/ __d("useSharedNUX",["CometNUXManagerContext","react","recoverableViolation","useNUXLoggers","useStable"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useContext,j=b.useEffect,k=b.useState;function a(a){var b=c("useStable")(function(){return a});if(b!==a){var d;c("recoverableViolation")("Error nux changed at runtime from "+((d=b)!=null?d:"null")+" to "+((d=a)!=null?d:"null")+", this is not supported and will lead to erratic behavior, we have continued to use your initially supplied nux","comet_ui")}d=k(!1);var e=d[0],f=d[1];d=i(c("CometNUXManagerContext"));var g=d.registerNUX;d=d.removeNUX;j(function(){if(b==null)return;return g(b,f,!0)},[b,g]);d=c("useNUXLoggers")(b,d);return[e,d]}g["default"]=a}),98); __d("BrowserSupportCore",["getVendorPrefixedName"],(function(a,b,c,d,e,f){"use strict";a={hasCSSAnimations:function(){return!!b("getVendorPrefixedName")("animationName")},hasCSSTransforms:function(){return!!b("getVendorPrefixedName")("transform")},hasCSS3DTransforms:function(){return!!b("getVendorPrefixedName")("perspective")},hasCSSTransitions:function(){return!!b("getVendorPrefixedName")("transition")}};c=a;f["default"]=c}),66); __d("BrowserSupport",["BrowserSupportCore","ExecutionEnvironment","UserAgent_DEPRECATED","getVendorPrefixedName","memoize"],(function(a,b,c,d,e,f,g){var h,i,j,k=null;function l(){if((j||(j=c("ExecutionEnvironment"))).canUseDOM){k||(k=document.createElement("div"));return k}return null}b=function(a){return c("memoize")(function(){var b=l();return!b?!1:a(b)})};e=b(function(a){a.style.cssText="position:-moz-sticky;position:-webkit-sticky;position:-o-sticky;position:-ms-sticky;position:sticky;";return/sticky/.test(a.style.position)});f=b(function(a){return"scrollSnapType"in a.style||"webkitScrollSnapType"in a.style||"msScrollSnapType"in a.style});var m=b(function(a){return"scrollBehavior"in a.style});b=b(function(a){if(!("pointerEvents"in a.style))return!1;a.style.cssText="pointer-events:auto";return a.style.pointerEvents==="auto"});var n=(h=c("memoize"))(function(){return!(d("UserAgent_DEPRECATED").webkit()&&!d("UserAgent_DEPRECATED").chrome()&&d("UserAgent_DEPRECATED").windows())&&"FileList"in window&&"FormData"in window}),o=h(function(){return!!a.blob}),p=h(function(){return(j||(j=c("ExecutionEnvironment"))).canUseDOM&&document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","foreignObject").toString().includes("SVGForeignObject")}),q=h(function(){return!!window.MutationObserver});h=h(function(){var a={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd"},b=c("getVendorPrefixedName")("transition");return a[b]||null});var r=function(){return!!window.CanvasRenderingContext2D};g.hasCSSAnimations=(i=c("BrowserSupportCore")).hasCSSAnimations;g.hasCSSTransforms=i.hasCSSTransforms;g.hasCSS3DTransforms=i.hasCSS3DTransforms;g.hasCSSTransitions=i.hasCSSTransitions;g.hasPositionSticky=e;g.hasScrollSnapPoints=f;g.hasScrollBehavior=m;g.hasPointerEvents=b;g.hasFileAPI=n;g.hasBlobFactory=o;g.hasSVGForeignObject=p;g.hasMutationObserver=q;g.getTransitionEndEvent=h;g.hasCanvasRenderingContext2D=r}),98); __d("DOMControl",["$","DataStore"],(function(a,b,c,d,e,f){a=function(){"use strict";function a(a){this.root=b("$").fromIDOrElement(a),this.updating=!1,b("DataStore").set(a,"DOMControl",this)}var c=a.prototype;c.getRoot=function(){return this.root};c.beginUpdate=function(){if(this.updating)return!1;this.updating=!0;return!0};c.endUpdate=function(){this.updating=!1};c.update=function(a){if(!this.beginUpdate())return this;this.onupdate(a);this.endUpdate()};c.onupdate=function(a){};a.getInstance=function(a){return b("DataStore").get(a,"DOMControl")};return a}();e.exports=a}),null); __d("Input",["CSS","DOMControl","DOMQuery"],(function(a,b,c,d,e,f,g){function h(a){return!/\S/.test(a||"")}function i(a){return h(a.value)}function a(a){return i(a)?"":a.value}function b(a){return a.value}function e(a,b){a.value=b||"";b=c("DOMControl").getInstance(a);b&&b.resetHeight&&b.resetHeight()}function f(a,b){b||(b=""),a.setAttribute("aria-label",b),a.setAttribute("placeholder",b)}function j(a){a.value="",a.style.height=""}function k(a,b){d("CSS").conditionClass(a,"enter_submit",b)}function l(a){return d("CSS").hasClass(a,"enter_submit")}function m(a,b){b>0?a.setAttribute("maxlength",b.toString()):a.removeAttribute("maxlength")}g.isWhiteSpaceOnly=h;g.isEmpty=i;g.getValue=a;g.getValueRaw=b;g.setValue=e;g.setPlaceholder=f;g.reset=j;g.setSubmitOnEnter=k;g.getSubmitOnEnter=l;g.setMaxLength=m}),98); __d("Form",["DOM","DOMQuery","DTSG","DTSGUtils","DataStore","FBLogger","Input","LSD","PHPQuerySerializer","Random","SprinkleConfig","URI","getElementPosition","isFacebookURI","isNode"],(function(a,b,c,d,e,f,g){var h,i,j="FileList"in window,k="FormData"in window;function l(a){var b={};(h||(h=c("PHPQuerySerializer"))).serialize(a).split("&").forEach(function(a){if(a){a=/^([^=]*)(?:=(.*))?$/.exec(a);var d=(i||(i=c("URI"))).decodeComponent(a[1]),e=a[2]!==void 0;e=e?(i||(i=c("URI"))).decodeComponent(a[2]):null;b[d]=e}});return b}var m={getInputs:function(a){a===void 0&&(a=document);return[].concat(d("DOMQuery").scry(a,"input"),d("DOMQuery").scry(a,"select"),d("DOMQuery").scry(a,"textarea"),d("DOMQuery").scry(a,"button"))},getInputsByName:function(a){var b={};m.getInputs(a).forEach(function(a){var c=b[a.name];b[a.name]=c===void 0?a:[a].concat(c)});return b},getSelectValue:function(a){return a.options[a.selectedIndex].value},setSelectValue:function(a,b){for(var c=0;c0&&i.x>0)return h}catch(a){}}}return null},focusFirst:function(a){a=m.getFirstElement(a);if(a){a.focus();return!0}return!1}};f.exports=m}),34); __d("AsyncUploadBase",["ArbiterMixin","AsyncRequest","AsyncResponse","BrowserSupport","Form","forEachObject","mixin","removeFromArray"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);b.parseFiles=function(a){var b={};c("forEachObject")(a,function(a,c){if(Array.isArray(a))b[c]=a;else{b[c]=[];if(a instanceof window.FileList)for(var d=0;d2?c-2:0),e=2;ea}function b(a){return h(a).length>0}function d(a){return j(a).length>0}function h(a){return k(a,c("VideoUploadConfig").videoExtensions)}function i(a){var b={gif:!0};return k(a,b)}function j(a){return k(a,c("ComposerXNativeAudioUploadsConfig").audioExtensions)}function k(a,b){return a.filter(function(a){a=a.indexOf(".")!==-1?a.split(".").pop().toLowerCase():"";return b[a]})}g.hasEditableVideos=a;g.hasVideos=b;g.hasAudioFiles=d;g.filterVideos=h;g.filterNonEditableVideos=i;g.filterAudioFiles=j;g.filterFileOfSupportedType=k}),98); __d("ImageExif",["exif-js"],(function(a,b,c,d,e,f){b("exif-js").enableXmp();function g(a){var b=function(b){return a.charCodeAt(b)&255};this.getByteAt=b;this.getShortAt=function(a,b){a=this.getSShortAt(a,b);return a>0?a:a+65536};this.getSShortAt=function(a,c){var d=b(a);a=b(a+1);return c?(d<<8)+a:(a<<8)+d};this.getLongAt=function(a,b){a=this.getSLongAt(a,b);return a>0?a:a+4294967296};this.getSLongAt=function(a,c){var d=b(a),e=b(a+1),f=b(a+2);a=b(a+3);return c?(((d<<8)+e<<8)+f<<8)+a:(((a<<8)+f<<8)+e<<8)+d};this.getStringAt=function(b,c){return a.substr(b,c)};this.getLength=function(){return a.length}}a={readFromFile:function(a,b){var c=this,d=new FileReader();d.addEventListener("load",function(a){a=a.target.result;a=a instanceof ArrayBuffer?c.readFromArrayBuffer(a):c.readFromBinaryString(a);b(a)},!1);window.DataView?d.readAsArrayBuffer(a):d.readAsBinaryString(a)},readFromBinaryString:function(a){return b("exif-js").readFromBinaryFile(new g(a))},readFromArrayBuffer:function(a){return b("exif-js").readFromBinaryFile(a)}};e.exports=a}),null); __d("StringEncoding",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){a=new Uint8Array(a);var c=0,d=[];while(c>7===0)f=1;else if(e>>5===6)e&=31,f=2;else if(e>>4===14)e&=15,f=3;else if(e>>3===30)e&=7,f=4;else if(e>>2===62)e&=3,f=5;else if(e>>1===126)e&=1,f=6;else throw new Error("Cannot decode as UTF-8 - unrecognised codepoint header");if(c+f>a.length)throw new Error("Cannot decode as UTF-8 - incomplete codepoint");for(var g=1;g>6!==2)throw new Error("Cannot decode as UTF-8 - unrecognised codepoint subsequent byte");h&=63;e<<=6;e|=h}if(e>1114111)throw new Error("Cannot decode as UTF-8 - JavaScript doesn't support codepoints over 0x10FFFF");if(!e)switch(b){case"error":throw new Error("Cannot decode as UTF-8 - contains a null and we're not allowing them");case"ignore":continue;case"truncate":return String.fromCodePoint.apply(String,d);case"include":break}d.push(e);c+=f}return String.fromCodePoint.apply(String,d)}function g(a){return(a&255)<<8|a>>8}function b(a,b){if(a.byteLength%2!==0)throw new Error("Cannot decode as UTF-16 - data length mod 2 != 0");a=new Uint16Array(a);var c=0,d=[],e=!1;a[0]===65279?++c:a[0]==65534&&(++c,e=!0);while(c55295&&f<57344){if((f&64512)!==55296)throw new Error("Cannot decode as UTF-16 - incorrect signature for high surrogate");if(c+1>=a.length)throw new Error("Cannot decode as UTF-16 - incomplete codepoint");++c;var i=a[c];e&&(i=g(i));if((i&64512)!==56320)throw new Error("Cannot decode as UTF-16 - incorrect signature for low surrogate");h=((f&1023)<<10|i&1023)+65536}if(!h)switch(b){case"error":throw new Error("Cannot decode as UTF-16 - contains a null and we're not allowing them");case"ignore":continue;case"truncate":return String.fromCodePoint.apply(String,d);case"include":break}d.push(h);++c}return String.fromCodePoint.apply(String,d)}function h(a){return(a&255)<<24|(a&255<<8)<<8|(a&255<<16)>>8|a>>>24}function c(a,b){if(a.byteLength%4!==0)throw new Error("Cannot decode as UTF-32 - data length mod 4 != 0");a=new Uint32Array(a);var c=0,d=[],e=!1;a[0]===65279?++c:a[0]==4294836224&&(++c,e=!0);while(c1114111)throw new Error("Cannot decode as UTF-32 - JavaScript doesn't support codepoints over 0x10FFFF");if(!f)switch(b){case"error":throw new Error("Cannot decode as UTF-32 - contains a null and we're not allowing them");case"ignore":continue;case"truncate":return String.fromCodePoint.apply(String,d);case"include":break}d.push(f);++c}return String.fromCodePoint.apply(String,d)}var i={"utf-8":a,"utf-16":b,"utf-32":c};d=function(){function a(a,b){a?this.$1=a:this.$1=["utf-8","utf-16","utf-32"];b||(b="error");this.$2=b;for(var a=this.$1,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;this.$3(d)}}var b=a.prototype;b.getPrecedence=function(){return this.$1};b.decode=function(a){var b=[];for(var c=this.$1,d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;f=this.$3(f);try{return f(a,this.$2)}catch(a){b.push(a)}}throw new Error(b.join(", "))};b.$3=function(a){var b=i[a];if(!b)throw new Error("Unknown encoding "+a);return b};return a}();f.Decoder=d}),66); __d("ImageMetadata",["ImageExif","Promise","StringEncoding","emptyFunction","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h;e=function(){function e(a){this.$4="",this.$6=a,this.$7=new Uint8Array(a),this.$8()}var f=e.prototype;f.$8=function(){var a=0;while(a0&&a>0&&(this.$5={x:b,y:a})};f.$12=function(a,b){a=emptyFunction;try{emptyFunction=c("emptyFunction");var e=d("ImageExif").readFromArrayBuffer(this.$6)||{}}finally{emptyFunction=a}b={};for(a in e){var f=e[a];typeof f==="string"&&(f=f.trim());b[a.trim()]=f}this.$3=b};f.$13=function(a,b){var c=new(d("StringEncoding").Decoder)(null,"truncate");try{c=c.decode(this.$6.slice(a,a+b));this.$4=c}catch(a){return}};f.$14=function(a){};f.$11=function(a,b){var c=this;return b.split("").every(function(b){return c.$7[a++]===b.charCodeAt(0)})};f.$9=function(a){for(a=a;a+1-1};return d}();g["default"]=d}),98); __d("SphericalImage",["SphericalImageUtils","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h="ProjectionType";a=function(){function a(a){this.props=a}a.createFromBlob=function(a){var d;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:e.next=2;return b("regeneratorRuntime").awrap(c("SphericalImageUtils").genPhotosphereMetadata(a));case 2:d=e.sent;return e.abrupt("return",new this(d));case 4:case"end":return e.stop()}},null,this)};var d=a.prototype;d.isSpherical=function(){return Boolean(this.props.photoSphereMetadata)};d.getImageMetadata=function(){return this.props.imageMetadata};d.getPhotoSphereMetadata=function(){return this.props.photoSphereMetadata};d.getSize=function(){return this.props.imageMetadata?this.props.imageMetadata.getSize():null};d.getBufferLength=function(){return this.props.imageMetadata?this.props.imageMetadata.getBufferLength():null};d.getProjectionType=function(){var a="";this.props.photoSphereMetadata&&this.props.photoSphereMetadata[h]&&(a=this.props.photoSphereMetadata[h]);return a};return a}();g["default"]=a}),98); __d("SphericalPhotoUploadHelper",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){return b&&Math.max(b.x,b.y)<=c||a==="cubestrip"?!1:!0}function b(a,b,c){return b==null||b<=c||a==="cubestrip"?!1:!0}f.shouldResize360=a;f.shouldRecompress360=b}),66); __d("loadImageFromBlob",["Promise"],(function(a,b,c,d,e,f){var g;function a(a){return new(g||(g=b("Promise")))(function(b,c){var d=new Image();d.onload=function(){URL.revokeObjectURL(d.src),b(d)};d.onerror=function(a){URL.revokeObjectURL(d.src),c(a)};d.src=URL.createObjectURL(a)})}f["default"]=a}),66); __d("XComposerPhotoUploader",["AsyncUploadRequest","FileInputUploader","PhotosMimeType","PhotosUploadID","Promise","ReactComposerMediaFilterUtils","SphericalImage","SphericalPhotoTypedConfig","SphericalPhotoUploadHelper","asyncToGeneratorRuntime","curry","emptyFunction","loadImageFromBlob","performanceNow","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=a.URL||a.webkitURL||{};e=function(){function a(a){this.$20={},this.$2=a.uploadData||{},this.$1=a.uploadEndpoint,this.$3=a.retryLimit,this.$4=a.concurrentLimit,this.$5=a.resizer,this.$6=a.onUploadEnqueued||c("emptyFunction"),this.$7=a.onUploadsEnqueued||c("emptyFunction"),this.$8=a.onResizeStart||c("emptyFunction"),this.$11=a.onResizeProgress||c("emptyFunction"),this.$9=a.onResizeSuccess||c("emptyFunction"),this.$10=a.onResizeFailure||c("emptyFunction"),this.$12=a.onSphericalCheckFailure||c("emptyFunction"),this.$13=a.onSphericalCheckSuccess||c("emptyFunction"),this.$14=a.onUploadIsSpherical||c("emptyFunction"),this.$15=a.onUploadSent||c("emptyFunction"),this.$16=a.onUploadStart||c("emptyFunction"),this.$17=a.onUploadProgress||c("emptyFunction"),this.$18=a.onUploadSuccess||c("emptyFunction"),this.$19=a.onUploadFailure||c("emptyFunction")}var e=a.prototype;e.setUploadEndpoint=function(a){this.$1=a};e.setOption=function(a,b){this.$20[a]=b;return this};e.getUploadData=function(){return this.$2};e.setUploadData=function(a){this.$2=a};e.upload=function(a,b){var e=this;b||0;b=babelHelpers["extends"]({},this.$2);var f=null;if(!this.$21(a)){var g=d("PhotosUploadID").getNewID();a.uploadID=g;b.upload_id=g;this.$6({uploadID:g,fileName:a.value.split("/").pop().split("\\").pop(),fileURL:j.createObjectURL?j.createObjectURL(a):null})}else{f=Array.from(a.files);f=f.filter(function(a){return!d("ReactComposerMediaFilterUtils").hasVideos([a.name])});if(f.length===0)return;f.forEach(function(a){a.uploadID||(a.uploadID=d("PhotosUploadID").getNewID()),e.$6({uploadID:a.uploadID,fileName:a.name,isSpherical:!1,fileURL:j.createObjectURL?j.createObjectURL(a):null})})}this.$7();g=new(c("FileInputUploader"))(a).setURI(this.$1).setData(b).setAllowCrossOrigin(!0).setNetworkErrorRetryLimit(this.$3).setUploadInParallel(!0);f&&f.length>0&&(g.setFiles({farr:f}),this.$5?g.setPreprocessHandler(this.$22.bind(this)):g.setPreprocessHandler(this.$23.bind(this)),this.$4&&g.setConcurrentLimit(this.$4));g.subscribe("progress",function(b,c){return e.$17(e.$24(c,a),c)});g.subscribe("failure",function(b,c){return e.$19(e.$24(c,a),c,f)});g.subscribe("start",function(b,c){return e.$16(e.$24(c,a),c)});g.subscribe("success",function(b,c){return e.$18(e.$24(c,a),c)});try{g.send(),this.$15(a)}catch(a){throw a}};e.uploadFiles=function(a){var b=this;a=Array.from(a);var c=[];a.forEach(function(a){var e=d("PhotosUploadID").getNewID();a.uploadID||(a.uploadID=e);b.$6({fileName:a.name,fileURL:j.createObjectURL?j.createObjectURL(a):null,isSpherical:!1,uploadID:e});c.push(e)});a=this.getAsyncFileUploadRequest(a,c);a.send()};e.getAsyncFileUploadRequest=function(a,b,c){var d=this;c=this.$25(a,c);c.subscribe("start",function(c,e){c=(c=d.$24({upload:e},{}))!=null?c:d.$26(a,b,e);d.$16(c,{upload:e})});c.subscribe("progress",function(c,e){c=(c=d.$24({upload:e},{}))!=null?c:d.$26(a,b,e);d.$17(c,{upload:e,event:e.getProgressEvent()})});c.subscribe("success",function(c,e){c=(c=d.$24({upload:e},{}))!=null?c:d.$26(a,b,e);d.$18(c,{upload:e,response:e.getResponse()})});c.subscribe("failure",function(c,e){c=(c=d.$24({upload:e},{}))!=null?c:d.$26(a,b,e);return d.$19(c,{upload:e,response:e.getResponse()},a)});return c};e.getAsyncUploadRequest=function(a,b){var c=this;b=this.$25(a,b);b.subscribe("start",function(a,b){return c.$16(b.getFile().uploadID,{upload:b})});b.subscribe("progress",function(a,b){return c.$17(b.getFile().uploadID,{upload:b,event:b.getProgressEvent()})});b.subscribe("success",function(a,b){return c.$18(b.getFile().uploadID,{upload:b,response:b.getResponse()})});b.subscribe("failure",function(b,d){return c.$19(d.getFile().uploadID,{upload:d,response:d.getResponse()},a)});return b};e.$25=function(a,b){a=new(c("AsyncUploadRequest"))().setData(babelHelpers["extends"]({},b&&b.data,this.$2)).setFiles({farr:a}).setAllowCrossOrigin(!0).setURI(this.$1);(b==null?void 0:b.preventDefaultErrorHandler)&&a.setPreventDefaultErrorHandler(!0);this.$4&&a.setLimit(this.$4);this.$5?a.setPreprocessHandler(this.$22.bind(this)):a.setPreprocessHandler(this.$23.bind(this));for(b in this.$20)a.setOption(b,this.$20[b]);return a};e.$26=function(a,b,c){c=c.getFile();a=a.indexOf(c);return b[a]};e.$24=function(a,b){if(a.upload)return a.upload.getFile().uploadID;else return b.uploadID};e.$23=function(a,d){var e=this;c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){return yield e.$27(a,d)})())};e.$27=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var c=a.getFile();c=(yield this.$28(c));var d=a.getFile().uploadID;c&&c.isSpherical()?this.$14(c.isSpherical(),c,d):this.$14(!1,null,"");b(a)});function c(b,c){return a.apply(this,arguments)}return c}();e.$22=function(a,d){var e=this;c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){return yield e.$29(a,d)})())};e.$28=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=(i||(i=c("performanceNow")))();try{var d=(yield c("SphericalImage").createFromBlob(a));this.$13(a,(i||(i=c("performanceNow")))()-b,d);return d}catch(d){this.$12(a,(i||(i=c("performanceNow")))()-b);return null}});function d(b){return a.apply(this,arguments)}return d}();e.$30=function(a){return this.$31(this.$5.resizeBlob.bind(this.$5),a)};e.$32=function(a,b){b===void 0&&(b=c("SphericalPhotoTypedConfig").upload_size_limit);return this.$31(this.$5.resize360Blob.bind(this.$5),a,b)};e.$33=function(a){return c("loadImageFromBlob")(a).then(function(a){return{width:a.width,height:a.height}})};e.$31=function(a,d,e){var f=this,g=c("curry")(this.$11,d.uploadID),i=c("curry")(this.$8,d),j=function(){return f.$33(d).then(i)};return new(h||(h=b("Promise")))(function(b,c){j(),a(d,function(a,d,e,f,g,h,i){a?c(a):e?b({originalWidth:f,originalHeight:g}):b({blob:d,originalWidth:f,originalHeight:g,outputWidth:h,outputHeight:i})},g,e)})};e.$29=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var e=a.getFile(),f=this.$5.isEligible(e==null?void 0:e.size,e==null?void 0:e.type);if(!e||!d("PhotosMimeType").isJpeg(e.type)||!f){this.$14(!1,null,"");e&&c("promiseDone")(this.$33(e).then(function(b){a.getAdditionalData().set("js_resized",!1).set("original_file_size",e.size).set("original_width",b==null?void 0:b.width).set("original_height",b==null?void 0:b.height).set("upload_width",b==null?void 0:b.width).set("upload_height",b==null?void 0:b.height)},c("emptyFunction")));b(a);return}f=(i||(i=c("performanceNow")))();var g,h;try{var j=null;j=(yield this.$28(e));if(j&&j.isSpherical()){this.$14(!0,j,e.uploadID);var k=j.getSize(),l=c("SphericalPhotoTypedConfig").upload_size_limit,m=j.getProjectionType(),n=!1;n=d("SphericalPhotoUploadHelper").shouldRecompress360(m,j.getBufferLength(),c("SphericalPhotoTypedConfig").upload_bytes_limit);j=d("SphericalPhotoUploadHelper").shouldResize360(m,k,l);k&&(j||n)&&(!j?g=(yield this.$32(e,Math.max(k.x,k.y)-1)):g=(yield this.$32(e)))}else this.$14(!1,null,""),g=(yield this.$30(e));g&&(g.blob!=null&&(h=g.blob,h.uploadID=e.uploadID,h.name=e.name,a.setFile(h)),a.getAdditionalData().set("js_resized",!0).set("original_file_size",e.size).set("original_width",g.originalWidth).set("original_height",g.originalHeight).set("upload_width",g.outputWidth).set("upload_height",g.outputHeight));m=h===null;a.getFile().filename=e.name;this.$9(e,h||e,m,(i||(i=c("performanceNow")))()-f,a.getAdditionalData().get("original_width"),a.getAdditionalData().get("original_height"),a.getAdditionalData().get("upload_width"),a.getAdditionalData().get("upload_height"))}catch(a){l=(i||(i=c("performanceNow")))()-f;this.$10(e,h||e,a,l)}b(a)});function e(b,c){return a.apply(this,arguments)}return e}();e.$21=function(a){return!!a.files&&c("AsyncUploadRequest").isSupported()};return a}();g["default"]=e}),98); __d("ResumableUploadServiceState.enum",[],(function(a,b,c,d,e,f){"use strict";a=Object.freeze({CANCEL:"upload-cancel",FAIL:"upload-fail",FILE_TOO_LARGE:"upload-too-large",NOT_STARTED:"upload-not-started",PROGRESS:"upload-progress",START:"upload-start",SUCCESS:"upload-success",TRANSPORT_FAILURE:"upload-transport-fail"});f["default"]=a}),66); __d("declareNUXRequireable",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a}f["default"]=a}),66); __d("WebWorker",["invariant","BlobFactory","Bootloader","EventListener","FBLogger","SubscriptionsHandler","TrustedTypesWebWorkerScriptURLPolicy","URI","WebWorkerConfig","XCometFBMultiSiteWebWorkerInitScriptControllerRouteBuilder","XHRRequest","cr:951783","emptyFunction","err","filterObject","getCrossOriginTransport","getWorkerInitScriptSPINParams","gkx","isSameOrigin","justknobx","memoize","nullthrows","performanceNow","recoverableViolation"],(function(a,b,c,d,e,f,g){var h,i,j=a.URL||a.webkitURL,k={remove:b("emptyFunction")},l=function(){"use strict";function c(a){var c=this;this.$2=!1;this.$3=null;this.$4=a;this.__worker=null;this.$5=b("emptyFunction");this.$6=b("emptyFunction");this.$7=[];this.$8=[];this.$9=!1;this.$10=new(b("SubscriptionsHandler"))();this.$1=b("cr:951783")!==null?b("cr:951783")(function(){c.$9||c.terminate()}):k;b("gkx")("708253")&&setTimeout(function(){!c.$9&&!c.isCurrentState("terminated")&&b("recoverableViolation")("WebWorker (resource: "+a.name+") allowCrossPageTransitions must be true on Comet, or you must handle cleaning up your worker.","comet_infra")},1e3);this.$11("constructed")}var d=c.prototype;d.setMessageHandler=function(a){this.$5=a||b("emptyFunction");return this};d.setErrorHandler=function(a){this.$6=a||b("emptyFunction");return this};d.postMessage=function(a,b){this.isCurrentState("constructed")&&g(0,5977);this.isCurrentState("terminated")&&g(0,5978);if(this.isCurrentState("preparing")){this.$7.push(this.postMessage.bind(this,a,b));return this}a={type:"message",message:a};b?this.getInterfaceableWorker().postMessage(a,b):this.getInterfaceableWorker().postMessage(a);return this};d.$12=function(){this.isCurrentState("terminated")||(this.$11("terminated"),this.__worker=null,this.$13(),this.$7=[],this.$8=[],this.$1&&this.$1.remove&&this.$1.remove())};d.terminate=function(){this.isCurrentState("executing")&&this.__worker!=null&&this.__worker.terminate(),this.$12()};d.execute=function(){this.isCurrentState("terminated")&&g(0,5979);if(["preparing","executing"].some(this.isCurrentState,this))return this;this.$11("preparing");c.prepareResource(this.$4,this.$14.bind(this));return this};d.setAllowCrossPageTransition=function(a){b("gkx")("708253")&&!a&&b("recoverableViolation")("allowAcrossPageTransitions must be true because we dont kill these in Comet.","comet_infra");this.$9=a;return this};d.isCurrentState=function(a){c.states.includes(a)||g(0,5980,a);return a===this.$3};d.$14=function(){this.isCurrentState("executing")&&g(0,5981);if(this.isCurrentState("terminated"))return;this.$4.useInitScript&&b("gkx")("5552")||this.$4.sameOriginURL||this.$4.source||g(0,19837,this.$4.name);if(this.$4.useInitScript&&b("gkx")("5552")){var a;a=b("nullthrows")((a=b("XCometFBMultiSiteWebWorkerInitScriptControllerRouteBuilder").buildUri({}).addQueryParams(b("getWorkerInitScriptSPINParams")()))==null?void 0:a.toString());var d=new window.URL(this.$4.url,window.location.href).href;if(d==null)throw b("err")("Can't start up worker without a resource url.");this.__worker=this.constructWorker(a,this.$4.name);this.__worker.postMessage({bundleUrl:d,doNotStartBundle:!0,isDev:!1,resource:this.$4,type:"sr-init"})}else this.$4.sameOriginURL?this.__worker=this.constructWorker(this.$4.sameOriginURL):(this.__worker=this.constructWorker(c.evalWorkerURL),this.getInterfaceableWorker().postMessage(this.$4.source));this.$15("ping",Date.now());if(this.$4.dynamicModules)try{this.$15("defineModules",this.$4.dynamicModules)}catch(a){this.terminate();this.$16("define_error",{message:a.message});throw a}this.$17();this.$11("executing");this.$7.forEach(function(a){return a()});this.$7=[];this.$8.forEach(function(a){return a()});this.$8=[]};d.$13=function(){this.$10.release()};d.$15=function(a){for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d