InstantGamesCreateGamingSquadContainer.react",["fbt","ix","CometImage.react","CometTheme.react","GamesQuicksilverError","GamingSquadFalcoEventFalcoEvent","Image.react","InstantGamesBottomSheet.react","InstantGamesButton.react","InstantGamesCreateGamingSquadContainerMutation.graphql","InstantGamesCreateGamingSquadScreen","InstantGamesGamingSquadAddFriendsScreen.react","RelayHooks","ServicesUIFacepileRounded.react","ShimButton.react","react"],(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.useState,p=j!==void 0?j:j=b("InstantGamesCreateGamingSquadContainerMutation.graphql");function a(a){var b,e,f,g=a.params;a=g.appIcon;var j=g.appID,k=g.appName,q=g.onClose,r=g.switchContext,s=g.dialogRequest.data.image,t=g.dialogRequest.data.name;b=(b=g.dialogRequest.data.squadTerm)!=null?b:h._("__JHASH__EQ777vRp6py__JHASH__");var u=m(function(a){q({data:a,type:"REJECT"})},[q]),v=m(function(a){q({data:a,type:"RESOLVE"})},[q]);n(function(){c("GamingSquadFalcoEventFalcoEvent").log(function(){return{developer_squad_name_prefill:t,dialog_type:"create_squad",event:"impression",game_id:j,squad_term:g.dialogRequest.data.squadTerm}})},[j,t,g.dialogRequest.data.squadTerm]);var w=d("RelayHooks").useMutation(p),x=w[0];w=w[1];var y=m(function(){u(new(c("GamesQuicksilverError"))("Failed to create a gaming squad").setCode("NETWORK_FAILURE"))},[u]);e=(e=t)!=null?e:h._("__JHASH__LizW_6MPlJp__JHASH__");var z=(f=t)!=null?f:h._("__JHASH__Ckw3fx_9Pkw__JHASH__",[h._param("name of the game",k)]);f=o(z);var A=f[0],B=f[1];f=o(c("InstantGamesCreateGamingSquadScreen").Main);var C=f[0],D=f[1],E=m(function(a){D(a)},[]);f=o(new Map());var F=f[0],G=f[1];f=m(function(a){return G(a)},[G]);var H=m(function(){u(new(c("GamesQuicksilverError"))("User input").setCode("USER_INPUT"))},[u]),I=m(function(){c("GamingSquadFalcoEventFalcoEvent").log(function(){return{developer_squad_name_prefill:t,dialog_type:"create_squad",event:"click",game_id:j,squad_term:g.dialogRequest.data.squadTerm}}),x({onCompleted:function(a){v({context_id:a.createGamingSquad.gaming_squad.context_token.id,context_size:a.createGamingSquad.gaming_squad.context_token.context_size,context_type:a.createGamingSquad.gaming_squad.context_token.context_type,gaming_squad_id:a.createGamingSquad.gaming_squad.id,gaming_squad_image_uri:a.createGamingSquad.gaming_squad.squad_icon_uri,gaming_squad_name:a.createGamingSquad.gaming_squad.name}),r({id:a.createGamingSquad.gaming_squad.thread.id,type:a.createGamingSquad.gaming_squad.context_token.context_type})},onError:y,variables:{input:{app_id:j,image:s,name:A,participants:Array.from(F.keys())}}})},[x,j,y,v,A,r,s,t,F,g.dialogRequest.data.squadTerm]);I=l.jsx("div",{className:"xhk9q7s x1otrzb0 x1i1ezom x1o6z2jb x6prxxf x117nqv4 xod5an3 x16n37ib xq8finb",children:l.jsx(c("InstantGamesButton.react"),{isDisabled:w,onClick:I,title:w?h._("__JHASH__4ZoJ0C9D_wg__JHASH__"):h._("__JHASH__utbEv-2Oti1__JHASH__")})});w=null;if(C===c("InstantGamesCreateGamingSquadScreen").Main){var J;w=l.jsxs("div",{children:[l.jsxs("div",{className:"x78zum5 xdt5ytf x5yr21d xl56j7k x5ib6vp xc73u3c x1cnzs8",children:[l.jsx(c("Image.react"),{className:"xamitd3 x14yjl9h xudhj91 x18nykt9 xww2gxu xng8ra x1yztbdb xqui205 x1247r65",src:(J=s)!=null?J:a}),l.jsxs("div",{className:"xfi1oeo",children:[l.jsx("div",{className:"xzsf02u x1603h9y x117nqv4 x2b8uid",children:h._("__JHASH__X5evFuI6KRH__JHASH__",[h._param("Group term",b)])}),l.jsx("div",{className:"xzsf02u x1nxh6w3 xm7lytj x2b8uid",children:h._("__JHASH__gQvoRUrpFyj__JHASH__",[h._param("Group term",b),h._param("name of the game",k)])})]}),l.jsx("div",{className:"x14nfmen xjm9jq1 x1t2a60a x1mpkggp"}),l.jsx("div",{className:"x1ejq31n xd10rxx x1sy0etr x17r0tee xzsf02u x1jchvi3 x109j2v6 x1yc453h",children:h._("__JHASH__vpN5_TKBHg7__JHASH__",[h._param("Group term",b)])}),l.jsx("input",{className:"x8cjs6t x1ch86jh x80vd3b xckqwgs xhk9q7s x1otrzb0 x1i1ezom x1o6z2jb x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x1xmu9ic xi28a7 x1qdctgf x1rsy3fd xzsf02u x6prxxf x1xmf6yo xr1496l xurb0ha x1sxyh0 xqy66fx",maxLength:"40",onChange:function(a){a.target.value===""?B(z):B(a.target.value)},placeholder:e}),l.jsx(c("ShimButton.react"),{className:"x1ypdohk",onClick:function(){E(c("InstantGamesCreateGamingSquadScreen").AddFriends)},role:"button",children:l.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np x1qughib x12nagc xk9mzb7 x1ceqetc",children:[l.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np",children:[F.size===0?l.jsx("div",{className:"x6s0dn4 xiwuv7k x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 x10wjd1d xl56j7k x1pju0fl",children:l.jsx(c("CometImage.react"),{src:i("861523")})}):l.jsx(c("ServicesUIFacepileRounded.react"),{numProfilesToDisplay:1,profiles:Array.from(F.values()).map(function(a){return{image_src:a.profilePictureURI,name:a.name}})}),l.jsxs("div",{className:"x78zum5 xdt5ytf x1ye3gou",children:[l.jsx("div",{className:"x1ejq31n xd10rxx x1sy0etr x17r0tee xzsf02u x1nxh6w3 x1yc453h",children:h._("__JHASH__UVbGQgTc32O__JHASH__")}),l.jsx("div",{className:"x1ejq31n xd10rxx x1sy0etr x17r0tee xi81zsa x1pg5gke x1yc453h",children:h._("__JHASH__xzdo8Dw-7mW__JHASH__",[h._param("Developer provided group term to use, eg: Squad, Clan, etc",b)])})]})]}),l.jsx(c("CometImage.react"),{src:i("492537")})]})}),l.jsx("div",{className:"x14nfmen xjm9jq1 xcxhlts x1t2a60a x1mpkggp"}),l.jsx("div",{className:"x12scifz x1pg5gke xyamay9 x1l90r2v x2b8uid",children:h._("__JHASH__vID-TnhAugF__JHASH__",[h._param("Group term",b),h._param("name of the game",k)])})]}),I," "]})}else C===c("InstantGamesCreateGamingSquadScreen").AddFriends&&(w=l.jsx(c("InstantGamesGamingSquadAddFriendsScreen.react"),{alreadySelectedFriends:F,onAddSelectedFriends:f,onBack:function(){E(c("InstantGamesCreateGamingSquadScreen").Main)}}));return l.jsx(c("CometTheme.react"),{theme:"light",children:l.jsx(c("InstantGamesBottomSheet.react"),{onDismiss:H,children:w})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
InstantGamesInAppPurchaseECPDialogRendererWithCSM.react",["ECPGamesUPLLogger","ECPQPLUtils","FBPayECPCSMUtils","FBPayECPConstantsUtils","FBPayECPDesignTheme","FBPayECPIncentivesUtils","FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint","GamesQuicksilverError","InstantGamesIAP","InstantGamesIAPOperations","InstantGamesInAppPurchaseECPDialogRendererWithCSM_ecpConfigFragment.graphql","InstantGamesPreloadedECPDialogContext","RelayHooks","justknobx","react","useCometDynamicEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useContext,k=e.useEffect,l=e.useMemo,m=e.useRef,n=h!==void 0?h:h=b("InstantGamesInAppPurchaseECPDialogRendererWithCSM_ecpConfigFragment.graphql");function a(a){var b=m(!1),e=a.appID,f=a.ecpConfigFragmentKey,g=a.reject,h=a.resolve,i=a.uplSessionID,o=d("RelayHooks").useFragment(n,f),p=m(!1),q=l(function(){return new(c("ECPGamesUPLLogger"))({client_suppression_policy:[],logging_policy_product:""},d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,"ecp","comet",i)},[i]);k(function(){var a=function(){c("justknobx")._("525")&&!p.current&&g(new(c("GamesQuicksilverError"))("User refreshed the page").setCode("USER_INPUT"))};window.addEventListener("beforeunload",a);return function(){return window.removeEventListener("beforeunload",a)}});var r=c("useCometDynamicEntryPointDialog")(c("FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint")),s=j(c("InstantGamesPreloadedECPDialogContext")),t=l(function(){return{product_data:[].concat(d("FBPayECPCSMUtils").getCheckoutSetupKeyValue("PRODUCT_ITEM_ID",a.productID),d("FBPayECPCSMUtils").getCheckoutSetupKeyValue("DEVELOPER_PAYLOAD",a==null?void 0:a.developerPayload)),product_id:d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,receiver_id:e,session_id:i}},[e,a==null?void 0:a.developerPayload,a.productID,i]);f=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").ProcessPurchaseMutation);var u=f[0];k(function(){var a;if(b.current)return;b.current=!0;a=(a=o.ecpConfig)!=null?a:{};var f=a.countryCode,j=a.currency,k=a.designSystemTheme,l=a.isRedesignAvailable,m=a.optionalFields;a=a.paymentContainerMode;a={country_code:(f=f)!=null?f:"US",design_system_theme:(f=k)!=null?f:d("FBPayECPDesignTheme").FBPayECPDesignThemes.DEFAULT,is_redesign_available:(k=l)!=null?k:!1,optional_fields:m,order_id:null,payment_container_mode:(f=a)!=null?f:"LIVE",payment_product_id:d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,receiver_description:"",receiver_icon_uri:"",receiver_id:e,receiver_name:(l=o.gameName)!=null?l:"",session_id:i,shouldEnableAsyncLoadHCECall:(m==null?void 0:m.includes(d("FBPayECPConstantsUtils").FBPayComponentTypes.INCENTIVES))&&d("FBPayECPIncentivesUtils").isInMigrateIncentiveToHCEQE(),shouldEnableCSM:!0,total:{currency:(k=j)!=null?k:"USD",value:"0"}};f=function(){p.current||g(new(c("GamesQuicksilverError"))("User cancelled the order").setCode("USER_INPUT"))};l={checkoutSetupInput:t,onReturn:function(a){p.current=!0,u({onCompleted:function(a){a=a.processPurchase;if(a==null){g(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"));return}q.logCheckoutSuccess();h({developerPayload:a.developer_payload,isConsumed:a.is_consumed,paymentActionType:a.payment_action_type,paymentID:a.payment_id,productID:a.product_id,purchasePlatform:a.purchase_platform,purchasePrice:d("InstantGamesIAP").formatCurrencyAmount(a.purchase_currency_amount),purchaseTime:a.purchase_time,purchaseToken:a.purchase_token,signedRequest:a.signed_request})},onError:function(){q.logCheckoutFailure(),g(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"))},variables:{input:{invoice_id:a}}})},routeProps:a};d("ECPQPLUtils").logOpenECPDialogQPLMarker(s.openPreloadedECPDialog!=null);s.openPreloadedECPDialog!=null?s.openPreloadedECPDialog(babelHelpers["extends"]({},l,{routeProps:babelHelpers["extends"]({},l.routeProps,{isPreloaded:!0})}),f):r({routeProps:a},l,f)},[e,r,u,g,h,q,i,s,t,o.gameName,o.ecpConfig]);return}g["default"]=a}),98);
-----
InstantGamesGameShareDialog.react",["fbt","ix","CometComposerHeader.react","CometImage.react","CometProgressRingIndeterminate.react","CometRelay","FDSIcon.react","GamesQuicksilverError","GamesServiceSIDLoggerUtils","GamesUnifiedSharingEvent","GamesUnifiedSharingFalcoEvent","GamesUnifiedSharingLoggerUtils","GamesUnifiedSharingType","InstantGameCloudSharingMediaAssetPreview.react","InstantGameContextType","InstantGamesAdditionalShareOptions.react","InstantGamesGameShareDialogHeader.react","InstantGamesGameShareDialogQuery.graphql","InstantGamesGameShareDialog_ShareMutation.graphql","InstantGamesGamingServiceShareDialog.react","InstantGamesPlayerUtils","InstantGamesSharingEventsFalcoEvent","Promise","TetraButton.react","cometPushToast","fbicon","getJSEnumSafe","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n,o=n||(n=d("react"));e=n;var p=e.useCallback,q=e.useEffect,r=e.useRef,s=e.useState,t=j!==void 0?j:j=b("InstantGamesGameShareDialogQuery.graphql"),u={fullsizeContainer:{backgroundColor:"xatbrnm",display:"x78zum5",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0},fullsizeMobileContainer:{backgroundColor:"x2bj2ny",display:"x78zum5",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"xixxii4",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0},progressRing:{end:"xcdomlo",left:null,right:null,position:"x10l6tqk",top:"xoyzfg9",$$css:!0},shareImage:{borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",display:"x1lliihq",height:"xt7dq6l",width:"xh8yej3",$$css:!0}},v=h._("__JHASH__Lfquxz6X3fp__JHASH__"),w=h._("__JHASH__UNQvCcun9vE__JHASH__");function a(a){var e,f=d("CometRelay").useRelayEnvironment(),g=r(!1);q(function(){g.current||(g.current=!0,U(L.SHARE_SHEET_IMPRESSION),V("impression"))});var j=a.props,k=j.dialogRequest,n=j.onClose,y=j.switchContext,z=k.data;j=s(z.mediaAssetID);var A=j[0];k=j[1];j=s(null);var B=j[0],C=j[1];j=s("");var D=j[0],E=j[1];j=s(null);var F=j[0];j=j[1];var G=s(""),H=G[0],I=G[1];G=d("CometRelay").useMutation(x);var J=G[0],K=G[1],L=b("GamesUnifiedSharingEvent"),M=b("GamesUnifiedSharingType");G=d("CometRelay").usePreloadedQuery(t,a.queries.query);var N=(e=G.game)==null?void 0:e.instantGameInfoForEnvironment;e=G.playerInfo;var O=G.viewer,P=[],Q=z.mediaAssetID!=null,R=!Q;P.push("MESSENGER");P.push("GROUP");P.push("COPY_LINK");var S=d("GamesUnifiedSharingLoggerUtils").getShareFromEntrypointForCustomShare(),T=d("GamesUnifiedSharingLoggerUtils").getShareToDestinationForCustomShare(),U=p(function(a,b){if(z.mediaAssetID==null){var e=b!=null?d("GamesUnifiedSharingLoggerUtils").getShareToDestinationForActionType(b):void 0;c("GamesUnifiedSharingFalcoEvent").log(function(){return{app_id:N==null?void 0:N.gameID,event:a,share_creation_source:R?"custom_share":"share_async",share_from_entrypoint:S,share_to_destination:R?e:T,share_type:M.CUSTOM_SHARE_UNIFIED_GENERIC}});a===L.SHARE_CTA_CLICK&&b==="link"&&c("InstantGamesSharingEventsFalcoEvent").log(function(){return{appid:N==null?void 0:N.gameID,event:"game_shared",ig_share_type:"custom_share",target_ecosystem:"link"}})}},[M.CUSTOM_SHARE_UNIFIED_GENERIC,R,T,S,N==null?void 0:N.gameID,z.mediaAssetID,L.SHARE_CTA_CLICK]),V=p(function(a,b){d("GamesServiceSIDLoggerUtils").logSharingEvent(a,N==null?void 0:N.gameID,(a=b)!=null?a:"share_to_newsfeed_for_cloud",A,z.sharingSource,z.sharingSource==="cloud_screenshot"||z.sharingSource==="cloud_sharing_via_sdk",{privacy_option:(b=D)!=null?b:""})},[A,N==null?void 0:N.gameID,z.sharingSource,D]);q(function(){B!=null&&V("failure")},[V,B]);var W=r(!1);q(function(){W.current||(W.current=!0,U(L.SHARE_DIALOG_IMPRESSION,"facebook_post"))},[L.SHARE_DIALOG_IMPRESSION,U]);if(N==null||e==null||O==null)return null;var X=function(a){U(R?L.SHARE_SHEET_DISMISS:L.SHARE_DIALOG_DISMISS),a!=null?n({data:a,type:"REJECT"}):n({data:null,type:"RESOLVE"})},Y=function(){if(K)return;C(null);U(L.SHARE_CTA_CLICK,"facebook_post");V("click");var a=z.entrypointData;if(z.travelID!=null){var e;e=JSON.parse((e=z.entrypointData)!=null?e:"{}");z.travelID!=="0"&&(e.world_id=z.travelID);e.travelID=void 0;a=JSON.stringify(e)}var f={app_id:(e=N.gameID)!=null?e:"",entrypoint_data:a,funnel_session_key:z.funnelSessionKey,media_asset_id:z.mediaAssetID,photo_base64:z.mediaAssetID==null?z.shareImage:null,privacy_index:D,privacy_row_input:F,require_game_context:z.shouldSwitchContext,sharing_source:z.sharingSource,text:H};new(m||(m=b("Promise")))(function(a,b){J({onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:f}})}).then(function(a){a=a==null?void 0:(a=a.share)==null?void 0:a.context_token;if(a){var b=c("getJSEnumSafe")(c("InstantGameContextType"),a.context_type);y({id:a.context_source_id,promiseID:z.promiseID,type:(a=b)!=null?a:"GENERIC"})}else z.mediaAssetID!=null&&d("cometPushToast").cometPushToast({message:h._("__JHASH__Uq8Uh4IMPEA__JHASH__")});X(null)})["catch"](function(a){C(String(a))})};if(z.mediaAssetID!=null){var Z;return o.jsx(c("InstantGamesGamingServiceShareDialog.react"),{error:B,gameInfo:N,isLoading:K,mediaAssetID:z.mediaAssetID,onClose:function(){X(B!==null?new(c("GamesQuicksilverError"))(B).setCode("UNKNOWN"):null)},onDismissError:function(){return C(null)},onPrivacySelectorChanged:function(a){E(a)},onSubmit:Y,onTextChange:function(a){I(a)},playerInfo:e,sharingSource:(Z=z.sharingSource)!=null?Z:"cloud_screenshot",text:H,viewer:O})}f=o.jsx("div",{className:"x1hq5gj4 x1n2onr6 xh8yej3",children:z.mediaAssetID!=null?o.jsx(d("InstantGameCloudSharingMediaAssetPreview.react").InstantGameCloudSharingMediaAssetPreview,{environment:f,mediaAssetID:z.mediaAssetID,onMediaAssetIDUpdate:k,sharingSource:(Z=z.sharingSource)!=null?Z:"cloud_screenshot",shouldHideBlurBackground:!1,useSmallerSizeImage:!1}):z.shareImage!=null?o.jsx(c("CometImage.react"),{src:(O=z.shareImage)!=null?O:"",testid:void 0,xstyle:u.shareImage}):null});return o.jsx("div",{className:(l||(l=c("stylex")))(d("InstantGamesPlayerUtils").isCometOnMobile()?u.fullsizeMobileContainer:u.fullsizeContainer),children:o.jsxs("div",{className:"x2bj2ny x1lq5wgf xgqcy7u x30kzoy x9jhf4c xqm7egq xr1yuqi xkrivgy x4ii5y1 x1gryazu xmz0i5r x1j9u4d2 xw2csxc x1odjw0f x1n2onr6 x2b8uid",children:[o.jsx(c("CometComposerHeader.react"),{onClose:function(){B!=null?X(new(c("GamesQuicksilverError"))(B).setCode("UNKNOWN")):X(z.shouldSwitchContext===!0?new(c("GamesQuicksilverError"))("The player dismissed the dialog.").setCode("USER_INPUT"):null),V("dismiss")},title:h._("__JHASH__sxkFZpHssl___JHASH__"),withCloseButton:!K}),K&&o.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24,xstyle:u.progressRing}),o.jsxs("div",{className:"xyamay9 x1pi30zi x1l90r2v x1swvt13",children:[o.jsx(c("InstantGamesGameShareDialogHeader.react"),{imgUrl:(Z=e==null?void 0:(k=e.photo)==null?void 0:k.uri)!=null?Z:"",isCgPlayer:Q,onPrivacySelectorChanged:function(a){E(a),V("click","share_flow_privacy_toggle")},playerName:e.shortName,privacySelectorKey:G,renderLocation:"COMET_INSTANT_GAMES_GAME_SHARE_DIALOG",setPrivacyRowInput:j}),o.jsx("input",{className:"x2bj2ny x76ihet xwmqs3e x112ta8 xxxdfa6 x12scifz x1yztbdb xh8yej3",onChange:function(a){return I(a.target.value)},placeholder:h._("__JHASH__HI34KC0U_td__JHASH__"),value:H}),f,o.jsx("div",{className:"xkzkwiv x1e56ztr x1anpbxc",children:o.jsx(c("TetraButton.react"),{addOnPrimary:o.jsx(c("FDSIcon.react"),{color:"white",icon:d("fbicon")._(i("869051"),20),size:20}),disabled:K,label:K?w:v,onPress:function(){return Y()},size:"medium",testid:void 0})}),R&&o.jsx(c("InstantGamesAdditionalShareOptions.react"),{appID:a.props.appID,logGamesUnifiedSharingEvent:U,params:a.props,shareDestination:P}),B!=null&&h._("__JHASH__ZBq3-sm8v3L__JHASH__")]})]})})}a.displayName=a.name+" [from "+f.id+"]";var x=k!==void 0?k:k=b("InstantGamesGameShareDialog_ShareMutation.graphql");g["default"]=a}),226);
-----
InstantGamesGenericMatchMakingDialogContent.react",["GamesQuicksilverError","GamingContextMatchClientEventFalcoEvent","InstantGameContextType","InstantGameGenericMatchMakingDialogBox.react","InstantGamesGenericMatchMakingDialogContentPollMatchQuery.graphql","InstantGamesGenericMatchMakingDialogContentQuitMatchMutation.graphql","InstantGamesGenericMatchMakingDialogContentStartMatchMutation.graphql","Promise","RelayHooks","getJSEnumSafe","promiseDone","react"],(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.useCallback,o=e.useEffect,p=e.useRef,q=h!==void 0?h:h=b("InstantGamesGenericMatchMakingDialogContentStartMatchMutation.graphql"),r=i!==void 0?i:i=b("InstantGamesGenericMatchMakingDialogContentQuitMatchMutation.graphql"),s=j!==void 0?j:j=b("InstantGamesGenericMatchMakingDialogContentPollMatchQuery.graphql");function t(a,e,f,g,h,i){return new(k||(k=b("Promise")))(function(b){a.current=window.setInterval(function(){d("RelayHooks").fetchQuery(e,s,{id:f}).subscribe({next:function(d){var e=(d=d.xfb_poll_gaming_context_match_skip_cache)==null?void 0:d.remaining_seats;c("GamingContextMatchClientEventFalcoEvent").log(function(){return{event:"DIALOG_POLLING",game_id:g,match_id:f,match_tag:h,remaining_seats:e==null?void 0:e.toString(),source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}});e!=null&&e<=0&&(b(!0),window.clearInterval(a.current))}})},3e3)})}function u(a,b,d,e,f){var g;g=(g=d.xfb_instant_game_match_user)==null?void 0:g.context_token;d=(d=d.xfb_instant_game_match_user)==null?void 0:(d=d.match)==null?void 0:d.id;f.current=!0;if(a&&g&&d!=null){f=c("getJSEnumSafe")(c("InstantGameContextType"),g.context_type);f&&b({id:d,type:f})}e({contextID:g==null?void 0:g.id,contextSize:g==null?void 0:g.context_size,contextType:g==null?void 0:g.context_type})}function a(a){var b=a.appIcon,e=a.appID,f=a.onClose,g=a.switchContext;a=a.dialogRequest.data;var h=a.matchTag,i=a.offlineMatch,j=a.switchContextWhenMatched,k=n(function(a){f({data:a,type:"REJECT"})},[f]),l=n(function(a){f({data:a,type:"RESOLVE"})},[f]);a=d("RelayHooks").useMutation(q);var s=a[0];a=d("RelayHooks").useMutation(r);var v=a[0],w=n(function(a){g(a)},[g]),x=d("RelayHooks").useRelayEnvironment(),y=p(null),z=p(null),A=p(!1);o(function(){s({onCompleted:function(a){var b,d=(b=a.xfb_instant_game_match_user)==null?void 0:(b=b.match)==null?void 0:b.id;z.current=d;if(!i&&d!=null){c("promiseDone")(t(y,x,d,e,h,i).then(function(){c("GamingContextMatchClientEventFalcoEvent").log(function(){return{event:"DIALOG_POLLING_SUCCESS",game_id:e,match_id:z.current,match_tag:h,source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}}),z.current=d,u(j,w,a,l,A)}));return}u(j,w,a,l,A)},onError:function(a){c("GamingContextMatchClientEventFalcoEvent").log(function(){return{error_message:a.message,event:"DIALOG_ERROR",game_id:e,match_id:z.current,match_tag:h,source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}}),k(new(c("GamesQuicksilverError"))("Failed to match user.").setCode("NETWORK_FAILURE"))},variables:{input:{app_id:e,is_offline:i,match_tag:h}}})},[e,s,x,h,i,k,l,w,j,A]);o(function(){return function(){c("GamingContextMatchClientEventFalcoEvent").log(function(){return{event:"DIALOG_CLEANUP",game_id:e,match_id:z.current,match_tag:h,source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}}),!i&&A.current===!1&&z.current!=null&&v({variables:{input:{match_id:z.current}}}),y.current!=null&&(window.clearInterval(y.current),y.current=null),z.current=null}},[]);a=n(function(){c("GamingContextMatchClientEventFalcoEvent").log(function(){return{event:"DIALOG_CANCELED",game_id:e,match_id:z.current,match_tag:h,source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}}),k(new(c("GamesQuicksilverError"))("User closed the dialog").setCode("USER_INPUT"))},[e,h,i,k]);o(function(){c("GamingContextMatchClientEventFalcoEvent").log(function(){return{event:"DIALOG_LOADED",game_id:e,match_id:z.current,match_tag:h,source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}})},[e,h,i]);b=m.jsx(c("InstantGameGenericMatchMakingDialogBox.react"),{gameIcon:b,onDismiss:a});return m.jsx("div",{children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesPinShortcutDialog.react",["fbt","AnimatedSlideInFromBottom.react","CometImage.react","CometProgressRingIndeterminate.react","CometRelay","FDSImageContainer.react","FDSUnitHeader.react","FullSizeVerticalScrollView.react","GamesQuicksilverError","InstantGamesPinShortcutDialogLastUpdateTimeMutation.graphql","InstantGamesPinShortcutDialogMutation.graphql","InstantGamesPinShortcutDialogQuery.graphql","InstantGamesWebHubEventsFalcoEvent","TetraButton.react","TetraText.react","TimeUtils","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react"));e=l;var n=e.useEffect,o=e.useRef,p=e.useState,q=i!==void 0?i:i=b("InstantGamesPinShortcutDialogQuery.graphql"),r=j!==void 0?j:j=b("InstantGamesPinShortcutDialogLastUpdateTimeMutation.graphql"),s=k!==void 0?k:k=b("InstantGamesPinShortcutDialogMutation.graphql");function a(a){var b=a.props,e=b.appID,f=b.onClose;b=d("CometRelay").usePreloadedQuery(q,a.queries.query);b=(a=b.game)==null?void 0:a.instantGameInfoForEnvironment;a=p("");var g=a[0],i=a[1];a=p(!1);var j=a[0],k=a[1],l=d("CometRelay").useRelayEnvironment(),u=o(!1);n(function(){if(u.current===!0)return;u.current=!0;c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:e,event:"impression",section:"in_game_add_shortcut_prompt"}});d("CometRelay").commitMutation(l,{mutation:r,variables:{input:{app:e,shortcut_dialog_last_prompted_time:c("TimeUtils").now()}}})},[e,l]);a=function(){c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:e,button_type:"not_now",event:"click",section:"in_game_add_shortcut_prompt"}}),f({data:new(c("GamesQuicksilverError"))("Dialog dismissed").setCode("USER_INPUT"),type:"REJECT"})};if(b==null)return null;var v=b.gameName;b=b.iconUri;var w=function(){k(!0),d("CometRelay").commitMutation(l,{mutation:s,onCompleted:function(){i(""),k(!1),c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:e,button_type:"accept_button",event:"click",section:"in_game_add_shortcut_prompt"}}),f({data:null,type:"RESOLVE"})},onError:function(){i(h._("__JHASH__4acXQJ_pXKB__JHASH__"))},variables:{input:{app_id:e,favorite_state_to_update:!0}}})},x=h._("__JHASH__5__CEFHqilL__JHASH__");v=h._("__JHASH__LaJCsc5HAYG__JHASH__",[h._param("name",v)]);var y=h._("__JHASH__YFdUDDR1zYI__JHASH__");return m.jsx("div",{className:"xatbrnm xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:m.jsx(c("FullSizeVerticalScrollView.react"),{children:m.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"50%",translate:"0px",trigger:!0,children:m.jsxs("div",{className:"x1jx94hy x1tlxs6b x1g8br2z x1gn5b1j x230xth xfsxhmi x1rg5ohu xw7yly9 x1emribx x1yztbdb x1i64zmx x1j9u4d2 x6ikm8r x10wlt62 x889kno x1iji9kk x1a8lsjc x1sln4lm x1n2onr6 x2b8uid x1cb1t30",children:[b!=null&&m.jsx(c("FDSImageContainer.react"),{shape:"circle",size:72,children:m.jsx(c("CometImage.react"),{src:b,xstyle:t.image})}),m.jsx("div",{className:"x1lliihq x6ikm8r xx6bls6",children:m.jsx(c("FDSUnitHeader.react"),{align:"center",headline:x,level:2})}),m.jsxs("div",{className:"x1lliihq xdj266r x1jqylkn xat24cr x13ibhcj x6ikm8r x1iorvi4 xjkvuk6 x1yc453h xlyipyv",children:[m.jsx(c("TetraText.react"),{align:"center",type:"body3",children:v}),m.jsx("div",{className:"xqy66fx x4uap5 xr1496l xkhd6sd",children:m.jsx(c("TetraText.react"),{align:"center",color:"negative",type:"body3",children:g})})]}),j?m.jsx("div",{className:"x78zum5 xl56j7k xw7yly9 x1yztbdb",children:m.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})}):m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"x1rg5ohu x1xmf6yo x1emribx x1e56ztr x1i64zmx xz84dc7",children:m.jsx(c("TetraButton.react"),{disabled:j,label:h._("__JHASH__J3mUDAlZ6gv__JHASH__"),onPress:a,reduceEmphasis:!0,type:"secondary"})}),m.jsx("div",{className:"x1rg5ohu x1xmf6yo x1emribx x1e56ztr x1i64zmx xz84dc7",children:m.jsx(c("TetraButton.react"),{label:y,onPress:w})})]})]})})})})}a.displayName=a.name+" [from "+f.id+"]";var t={image:{display:"x1lliihq",height:"x5yr21d",objectFit:"xl1xv1r",width:"xh8yej3",$$css:!0}};g["default"]=a}),226);
-----
InstantGamesContextCreator.react",["AnimatedSlideInFromBottom.react","CometRelay","FBLogger","FullSizeVerticalScrollView.react","GamesQuicksilverError","InstantGameContextType","InstantGamesConnectedPlayersFetcher","InstantGamesContextCreateDialog.react","InstantGamesContextMutations","InstantGamesSessionManager","getJSEnumSafe","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.useEffect,l=b.useState,m={dialog:{transform:"x1cb1t30",$$css:!0}};function a(a){var b=a.props;a=l(!1);var e=a[0],f=a[1];a=l(null);var g=a[0],h=a[1],n=d("CometRelay").useRelayEnvironment(),o=b.onClose,p=j(function(a){o({data:a,type:"REJECT"})},[o]);k(function(){f(!0)},[]);k(function(){c("InstantGamesConnectedPlayersFetcher").fetchAsync(b.appID,n).then(function(a){h(a)})["catch"](function(a){a=new(c("GamesQuicksilverError"))("Failure while fetching connected players").setCode("NETWORK_FAILURE");p(a)})},[p,b.appID,n]);var q=function(a){a=a==null?void 0:(a=a.instant_games_create_context)==null?void 0:a.contextToken;if(!a){r();return}var d=a.sourceID,e=a.tokenID;a=a.type;if(d==null||!a){r();return}if(b.contextTokenID===e){p(new(c("GamesQuicksilverError"))("Attempted to switch into the current context").setCode("SAME_CONTEXT"));return}e=c("getJSEnumSafe")(c("InstantGameContextType"),a);if(e==null)return;b.switchContext({id:d,promiseID:b.dialogRequest.data.promiseID,type:e})},r=function(){p(new(c("GamesQuicksilverError"))("Failed to create context").setCode("NETWORK_FAILURE"))};a=function(a){var e=s();d("CometRelay").commitMutation(n,{mutation:d("InstantGamesContextMutations").CreateContextMutation,onCompleted:function(a){if(!a){r();return}q(a)},onError:function(a){return r()},variables:{input:{block_messaging:a,game_id:b.appID,participant_ids:e,session_id:c("InstantGamesSessionManager").getSessionID()}}})};var s=function(){var a=[];if(g==null)throw c("FBLogger")("www_context_create").mustfixThrow("Connected Players list should not be null");var d=new Map(),e=Object.entries(g);for(var f=0;f=h.length)break;f=h[e++]}else{e=h.next();if(e.done)break;f=e.value}f=f;if(!d.has(f)){p(new(c("GamesQuicksilverError"))("Player with ID: "+f+" does not appear to be a Connected Player.").setCode("INVALID_PARAM"));break}f=d.get(f);if(f==null)throw c("FBLogger")("www_context_create").mustfixThrow("The connected player cannot be null here.");a.push(f)}return a},t=function(){if(g==null)throw c("FBLogger")("www_context_create").mustfixThrow("Cannot call before Connected Players is populated");var a=s();return a.map(function(a){return g[a]})};return!g?null:i.jsx("div",{className:"xjbqb8w x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:i.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:i.jsx(c("FullSizeVerticalScrollView.react"),{children:i.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"50%",translate:"0px",trigger:e,children:i.jsx(c("InstantGamesContextCreateDialog.react"),{className:"x1cb1t30",gameID:b.appID,gameName:b.appName,onClose:p,onSwitch:a,otherPlayers:t(),playerPhotoURI:b.dialogRequest.data.playerPhotoURI,stylex:m.dialog})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextChangeDialog.react",["cx","fbt","ix","CometProgressRingIndeterminate.react","CometRelay","FDSCheckbox.react","GamesQuicksilverError","InstantGamesButton.react","InstantGamesCloseButton.react","InstantGamesContextChangeDialog_context.graphql","InstantGamesContextImage.react","SplitImage.react","joinClasses","react","useBoolean"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m=l||(l=d("react")),n=l.useState,o=100,p={playWithMessagesStyle:{paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0}},q=k!==void 0?k:k=b("InstantGamesContextChangeDialog_context.graphql");function a(a){var b=a.buttonTitle,e=a.className,f=a.context,g=a.contextName,h=a.contextPhotos,k=a.hideNoMessagingOption,l=a.onClose,r=a.onSwitch,s=a.playerPhotoURI,t=a.shouldEnableStoringConsentPreference,u=a.shouldShowConsentFlow,v=a.shouldShowNoticeFlow,w=a.text;a=a.threadEntrypoint;var x=d("CometRelay").useFragment(q,f),y=n(!1),z=y[0],A=y[1];y=n(!1);var B=y[0],C=y[1];y=c("useBoolean")(!1);var D=y.toggle,E=y.value;if(!f&&!h){l(new(c("GamesQuicksilverError"))("Failed to fetch the necessary context info").setCode("UNKNOWN"));return null}y=function(){A(!0),r(!1,E)};var F=function(){C(!0),r(!0,E)},G=function(){var a=new(c("GamesQuicksilverError"))("Player closed the context dialog").setCode("USER_INPUT");l(a)},H=null;h=h;a=(a=a)!=null?a:!1;t=t;u=u;v=(v=v)!=null?v:!1;f?H=m.jsx(c("InstantGamesContextImage.react"),{badge:!0,className:"_2by_",contextToken:x,size:o}):h!=null&&(H=m.jsx(c("SplitImage.react"),{className:"_2by_",size:o,srcs:h}));return m.jsxs("div",{className:c("joinClasses")(e,"_2bz0"),children:[!a&&m.jsx(c("InstantGamesCloseButton.react"),{onClose:G}),m.jsxs("div",{className:"_2bz3",children:[m.jsx("div",{className:"_2bz5",children:m.jsx(c("SplitImage.react"),{className:"_2by_",size:o,srcs:[s]})}),m.jsx("div",{className:"_2bz5 _2bz6",children:H})]}),m.jsx("div",{className:"_2bz7",children:w}),m.jsx("div",{className:"xkzkwiv xw7yly9 xktsk01 x1yztbdb x1d52u69",children:z?m.jsx("div",{className:"x78zum5 xl56j7k",children:m.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})}):m.jsx(c("InstantGamesButton.react"),{icon:u||v?j("1366830"):null,isDisabled:B,onClick:y,title:(f=b)!=null?f:u?i._("__JHASH__sK3LvkVctPO__JHASH__"):i._("__JHASH__9ecnOBn9Wji__JHASH__"),xstyle:u||v?p.playWithMessagesStyle:null})}),u&&k!==!0?m.jsx("div",{className:"xkzkwiv xw7yly9 xktsk01 x1yztbdb x1d52u69",children:B?m.jsx("div",{className:"x78zum5 xl56j7k",children:m.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})}):m.jsx(c("InstantGamesButton.react"),{isComet:!0,isDisabled:z,isSecondary:!0,onClick:F,title:(x=b)!=null?x:i._("__JHASH__25PuGKY1WlB__JHASH__")})}):null,a&&m.jsx("div",{className:"xkzkwiv xw7yly9 xktsk01 x1yztbdb x1d52u69",children:m.jsx(c("InstantGamesButton.react"),{isComet:!0,isDisabled:z,isSecondary:!0,onClick:G,title:(h=b)!=null?h:i._("__JHASH__r5LKcplu4QD__JHASH__")})}),t&&m.jsxs("div",{children:[m.jsx("hr",{className:"x1d52u69 xktsk01 x7r5mf7 xahult9"}),m.jsx("div",{className:"x78zum5 x1q0g3np x1qughib x1d52u69 xktsk01 x7r5mf7 xahult9",children:m.jsx("div",{className:"x78zum5 x1l7klhg x1q0g3np x1nhvcw1",children:m.jsx(c("FDSCheckbox.react"),{checked:E,label:i._("__JHASH__Nw1x6LZ35eq__JHASH__",[i._param("name",g)]),name:"checkbox123123",onChange:D,value:E})})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
InstantGamesContextSwitchDialogContainer.react",["CometRelay","GamesQuicksilverError","InstantGameContextType","InstantGamesContextSwitchAndJoinDialogContent.react","InstantGamesContextSwitchDialogContainerMutation.graphql","InstantGamesContextSwitchDialogContainer_Fragment.graphql","InstantGamesContextSwitchDialogContent.react","RelayHooks","getJSEnumSafe","react","useNullthrowsViolation","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useCallback,m=h!==void 0?h:h=b("InstantGamesContextSwitchDialogContainer_Fragment.graphql"),n=i!==void 0?i:i=b("InstantGamesContextSwitchDialogContainerMutation.graphql");function a(a){var b=a.dialogRequest,e=a.fragmentKey,f=a.onClose,g=a.switchContext,h=l(function(a){f({data:a,type:"REJECT"})},[f]),i=l(function(a){f({data:a,type:"RESOLVE"})},[f]);a=b.data;b=a.buttonTitle;a=a.dialogTitleRenderer;e=d("CometRelay").useFragment(m,e);(!e||!e.node)&&h(new(c("GamesQuicksilverError"))("Invalid context id for player").setCode("INVALID_PARAM"));var j=e.me,o=e.node;e=(e=j==null?void 0:(e=j.picture)==null?void 0:e.uri)!=null?e:"";var p=l(function(){h(new(c("GamesQuicksilverError"))("User closed the dialog").setCode("USER_INPUT"))},[h]),q=d("RelayHooks").useMutation(n),r=q[0];q=q[1];var s=l(function(){i({context_id:o==null?void 0:o.contextTokenID,context_size:o==null?void 0:o.contextSize,context_type:o==null?void 0:o.contextType});var a=c("getJSEnumSafe")(c("InstantGameContextType"),o==null?void 0:o.contextType);g({id:o==null?void 0:o.contextSourceID,type:(a=a)!=null?a:"GENERIC"})},[i,g,o]),t=l(function(){r({onCompleted:function(){s()},onError:function(){h(new(c("GamesQuicksilverError"))("Failed to add user to the context.").setCode("NETWORK_FAILURE"))},variables:{input:{actor_id:j==null?void 0:j.id,client_mutation_id:c("uuidv4")(),context_id:o==null?void 0:o.contextTokenID,is_context_joined:!0}}})},[r,j,o,s,h]),u=l(function(){r({onCompleted:function(){p()},onError:function(){h(new(c("GamesQuicksilverError"))("A network error has occurred.").setCode("NETWORK_FAILURE"))},variables:{input:{actor_id:j==null?void 0:j.id,client_mutation_id:c("uuidv4")(),context_id:o==null?void 0:o.contextTokenID,is_context_joined:!1}}})},[r,p,j,o,h]),v=c("useNullthrowsViolation")(o);q=(o==null?void 0:o.shouldJoinNewContext)===!0?k.jsx(c("InstantGamesContextSwitchAndJoinDialogContent.react"),{context:v,isInFlight:q,onClose:u,onSwitch:t,playerPhotoURI:e}):k.jsx(c("InstantGamesContextSwitchDialogContent.react"),{buttonTitle:b,context:v,dialogTitleRenderer:a,onClose:p,onSwitch:s,playerPhotoURI:e});return k.jsx("div",{children:q})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AltAppStoreInAppPurchaseCometDialogRenderer.react",["fbt","CometProgressRingIndeterminate.react","CometRelay","FBLogger","GamesQuicksilverError","InstantGamesErrorCode","InstantGamesIAP","InstantGamesIAPOperations","RelayHooks","getJSEnumSafe","promiseDone","react","usePaymentsCometCheckout"],(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=b.useState,n=h._("__JHASH__QYxqFy5ijk8__JHASH__").toString(),o=h._("__JHASH__bytE5u6AJET__JHASH__").toString();function a(a){var b=d("CometRelay").useRelayEnvironment(),e=a.appID,f=a.developerPayload,g=a.paymentType,h=a.productID,i=a.reject,p=a.resolve;a=m();var q=a[0],r=a[1];a=m(!1);var s=a[0],t=a[1],u=l(!1);a=c("usePaymentsCometCheckout")({checkoutProps:{customCheckoutSuccessCallback:function(a,b){var e;e=a==null?void 0:(e=a.transactionOrderDetails)==null?void 0:e.payment_id;a=a==null?void 0:(a=a.transactionOrderDetails)==null?void 0:a.id;if(e==null||a==null){b({error:{error_description:n,error_title:o},state:"ERROR"});i(new(c("GamesQuicksilverError"))("Invalid invoice or payment id").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}x({onCompleted:function(a){a=a.processPurchase;if(a==null){y(b);return}b({customConfirmationConfiguration:{hideConfirmationButton:!0},state:"SUCCESS"});u.current=!0;p({developerPayload:a.developer_payload,isConsumed:a.is_consumed,paymentActionType:a.payment_action_type,paymentID:a.payment_id,productID:a.product_id,purchasePrice:d("InstantGamesIAP").formatCurrencyAmount(a.purchase_currency_amount),purchaseTime:a.purchase_time,purchaseToken:a.purchase_token,signedRequest:a.signed_request})},onError:function(){b({error:{error_description:n,error_title:o},state:"ERROR"}),i(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"))},variables:{input:{invoice_id:a,payment_id:e}}})},orderID:q,paymentType:g,receiverID:e},onClose:function(){u.current||i(new(c("GamesQuicksilverError"))("User cancelled the order").setCode("USER_INPUT"))}});var v=a[0];g=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").CreatePurchaseOrderMutation);var w=g[0];a=g[1];g=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").ProcessPurchaseMutation);var x=g[0];k(function(){q!=null&&s===!1&&(v(),t(!0))},[q,v,s]);k(function(){q==null&&w({onCompleted:function(a){a=a.createPurchaseOrder;if(a==null){i(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}var b=a.error;if(b!=null){var d;i(new(c("GamesQuicksilverError"))((d=b==null?void 0:b.message)!=null?d:"Failed to create purchase order").setCode((d=c("getJSEnumSafe")(c("InstantGamesErrorCode"),b==null?void 0:b.code))!=null?d:"PAYMENTS_PURCHASE_CREATION_FAILED"));return}b=a.order_id;if(b==null){i(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}r(b)},onError:function(){i(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"))},variables:{input:{app_id:e,developer_payload:f,product_id:h}}})},[e,f,w,h,i,q]);function y(a){c("promiseDone")(d("InstantGamesIAP").fetchPurchases(e,b),function(b){b=b.find(function(a){return a.productID===h});b!=null?(c("FBLogger")("instant_games","post_process_purchase").warn("Had to refetch purchase object, on purchase completion."),a({customConfirmationConfiguration:{hideConfirmationButton:!0},state:"SUCCESS"}),p(b)):(a({error:{error_description:n,error_title:o},state:"ERROR"}),i(new(c("GamesQuicksilverError"))("Failed return purchase details.").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED")))},function(b){a({error:{error_description:n,error_title:o},state:"ERROR"}),i(b.setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"))})}return a||q==null?j.jsx("div",{className:"x4n7ey x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x17fpy1y x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"x6s0dn4 x78zum5 x1q0g3np x5yr21d xl56j7k x1n2onr6 xh8yej3",children:j.jsx(c("CometProgressRingIndeterminate.react"),{color:"light",size:24})})})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
CloudPlayerAsyncMessageSender",["GamesQuicksilverError","Promise","Random","isTruthy"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(){function a(a){this.$3=[],this.$2=a,this.$1={}}var e=a.prototype;e.send=function(a,b){if(this.$2==null)return;window.self.postMessage({content:b,destination:this.$2,type:a},"/")};e.sendAsync=function(a,b){return this.$4(a,b).then(function(a){return a})["catch"](function(a){throw a})};e.$5=function(a){return a+"_"+d("Random").uint32()};e.$6=function(a,b,c){this.$1[a]={reject:c,resolve:b}};e.$7=function(a,b){var c=a.promiseID;if(c==null||!this.$1[c])return;var d=this.$1[c];b&&d.resolve?d.resolve(a.data):!b&&d.reject&&d.reject(a.data);delete this.$1[c]};e.$4=function(a,c){var d=this;return new(h||(h=b("Promise")))(function(b,e){var f=d.$5(a);d.$6(f,b,e);b=babelHelpers["extends"]({},c,{promiseID:f});d.send(a,b)})};e.resolveGamePromise=function(a,b){this.$7({data:b,promiseID:a},!0)};e.rejectGamePromise=function(a,b){b=b?b.serialize():new(c("GamesQuicksilverError"))().serialize();this.$7({data:b,promiseID:a},!1)};e.onAsyncMessage=function(a,b){var d=this,e=function(e){if(e instanceof MessageEvent&&e.source===window.self&&c("isTruthy")(e.data)){var f=e.data.type!==void 0?e.data.type:null,g=e.data.content!==void 0?e.data.content:null;e=e.data.destination!==void 0?e.data.destination:null;a===f&&d.$2===e&&b(g)}};window.addEventListener("message",e,!1);this.$3.push(e)};e.removeListener=function(a){window.removeEventListener("message",a),this.$3=this.$3.filter(function(b){return b!==a})};e.clearListeners=function(){for(var a=this.$3,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;window.removeEventListener("message",d)}this.$3=[]};return a}();g["default"]=a}),98);
-----
InstantGamesJoinGamingSquadContainer.react",["CometRelay","GamesQuicksilverError","GamingSquadFalcoEventFalcoEvent","InstantGameContextType","InstantGamesJoinGamingSquadContainerMutation.graphql","InstantGamesJoinGamingSquadContainer_Fragment.graphql","InstantGamesJoinGamingSquadDialogContent.react","RelayHooks","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useCallback,m=h!==void 0?h:h=b("InstantGamesJoinGamingSquadContainer_Fragment.graphql"),n=i!==void 0?i:i=b("InstantGamesJoinGamingSquadContainerMutation.graphql");function a(a){var b,e=a.fragmentKey;a=a.params;var f=a.appID,g=a.appName,h=a.onClose,i=a.switchContext,j=a.dialogRequest.data.squadID,o=a.dialogRequest.data.squadTerm;a=d("CometRelay").useFragment(m,e);var p=(e=a.squad)==null?void 0:(e=e.thread)==null?void 0:e.id;e=((e=a.squad)==null?void 0:e.is_member)===!0;var q=c("getJSEnumSafe")(c("InstantGameContextType"),(b=a.squad)==null?void 0:(b=b.context_token)==null?void 0:b.context_type),r=(b=a.squad)==null?void 0:(b=b.context_token)==null?void 0:b.id,s=(b=a.squad)==null?void 0:(b=b.context_token)==null?void 0:b.context_size,t=l(function(a){h({data:a,type:"REJECT"})},[h]),u=l(function(a){h({data:a,type:"RESOLVE"})},[h]);b=d("RelayHooks").useMutation(n);var v=b[0];b=b[1];var w=l(function(){t(new(c("GamesQuicksilverError"))("Failed to join a gaming squad").setCode("NETWORK_FAILURE"))},[t]),x=l(function(){c("GamingSquadFalcoEventFalcoEvent").log(function(){return{dialog_type:"join_squad",event:"click",game_id:f,squad_id:j,squad_term:o}}),v({onCompleted:function(a){u({context_id:a.joinGamingSquad.gaming_squad.context_token.id,context_size:a.joinGamingSquad.gaming_squad.context_token.context_size,context_type:a.joinGamingSquad.gaming_squad.context_token.context_type,gaming_squad_id:a.joinGamingSquad.gaming_squad.id}),i({id:a.joinGamingSquad.gaming_squad.thread.id,type:a.joinGamingSquad.gaming_squad.context_token.context_type})},onError:w,variables:{input:{squad_id:j}}})},[v,w,j,f,o,u,i]),y=l(function(){var a;c("GamingSquadFalcoEventFalcoEvent").log(function(){return{dialog_type:"switch_into_squad",event:"click",game_id:f,squad_id:j,squad_term:o}});u({context_id:r,context_size:s,context_type:(a=q)!=null?a:"THREAD",gaming_squad_id:j});i({id:p,type:(a=q)!=null?a:"THREAD"})},[u,f,r,s,q,j,i,o,p]),z=l(function(){t(new(c("GamesQuicksilverError"))("User input").setCode("USER_INPUT"))},[t]),A=a==null?void 0:a.squad;a=a==null?void 0:(a=a.viewer)==null?void 0:a.actor;if(A==null||a==null){t(new(c("GamesQuicksilverError"))("Network error when retrieving squad info").setCode("NETWORK_FAILURE"));return null}return k.jsx(c("InstantGamesJoinGamingSquadDialogContent.react"),{appID:f,appName:g,isInFlight:b,isMember:e,onClick:e?y:x,onDismiss:z,squadID:j,squadInfo:A,squadTerm:o,userInfo:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CloudGameRequestsDialog.react",["CloudGameRequestsDialogBody","CloudGameRequestsDialogQuery.graphql","CometErrorBoundary.react","CometPlaceholder.react","CometProgressRingIndeterminate.react","CometRelay","GamesQuicksilverError","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useEffect,l=h!==void 0?h:h=b("CloudGameRequestsDialogQuery.graphql");function m(a){var b,e=a.props;a=d("CometRelay").usePreloadedQuery(l,a.queries.query);var f=e.appID,g=e.onClose;return j.jsx(c("CloudGameRequestsDialogBody"),{actionType:(b=(b=e.dialogRequest)==null?void 0:(b=b.data)==null?void 0:b.actionType)!=null?b:"",coverImageUrl:a.game_requests_data.cover_image_url,cta:(b=(b=e.dialogRequest)==null?void 0:(b=b.data)==null?void 0:b.cta)!=null?b:"",data:(b=(b=e.dialogRequest)==null?void 0:(b=b.data)==null?void 0:b.data)!=null?b:"",dialogSubTitle:(b=(b=e.dialogRequest)==null?void 0:(b=b.data)==null?void 0:b.title)!=null?b:"",dialogTitle:a.game_requests_data.title,gameID:f,items:a.game_requests_data,message:(e=(b=e.dialogRequest)==null?void 0:(f=b.data)==null?void 0:f.message)!=null?e:"",messengerDisclaimerText:a.game_requests_data.messenger_disclaimer_text,onClose:function(a){return g({data:a,type:"RESOLVE"})},promoVideo:a.game_requests_data})}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b=a.onClose;k(function(){b({data:new(c("GamesQuicksilverError"))("Client cannot perform this operation").setCode("INVALID_OPERATION"),type:"REJECT"})},[b]);return null}n.displayName=n.name+" [from "+f.id+"]";function a(a){return j.jsx(c("CometErrorBoundary.react"),{fallback:function(){return j.jsx(n,{onClose:a.props.onClose})},children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx("div",{className:"xrmyhay x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x17fpy1y x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"x6s0dn4 x78zum5 x1egiwwb xl56j7k x1n2onr6",children:j.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})})})}),children:j.jsx(m,babelHelpers["extends"]({},a))})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesLeaveGamingSquadContainer.react",["CometRelay","GamesQuicksilverError","GamingSquadFalcoEventFalcoEvent","InstantGamesLeaveGamingSquadContainerMutation.graphql","InstantGamesLeaveGamingSquadContainer_Fragment.graphql","InstantGamesLeaveGamingSquadDialogContent.react","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useCallback,m=h!==void 0?h:h=b("InstantGamesLeaveGamingSquadContainer_Fragment.graphql"),n=i!==void 0?i:i=b("InstantGamesLeaveGamingSquadContainerMutation.graphql");function a(a){var b=a.fragmentKey;a=a.params;var e=a.appID,f=a.appName,g=a.onClose,h=a.switchContext,i=a.dialogRequest.data.squadID,j=a.dialogRequest.data.squadTerm,o=l(function(a){g({data:a,type:"REJECT"})},[g]),p=l(function(a){g({data:a,type:"RESOLVE"})},[g]);a=d("CometRelay").useFragment(m,b);b=((b=a.squad)==null?void 0:b.is_member)===!0;b||o(new(c("GamesQuicksilverError"))("Invalid squad ID provided in leave squad dialog").setCode("INVALID_PARAM"));b=d("RelayHooks").useMutation(n);var q=b[0];b=b[1];var r=l(function(){o(new(c("GamesQuicksilverError"))("Failed to leave a gaming squad").setCode("NETWORK_FAILURE"))},[o]),s=l(function(){c("GamingSquadFalcoEventFalcoEvent").log(function(){return{dialog_type:"leave_squad",event:"click",game_id:e,squad_id:i,squad_term:j}}),q({onCompleted:function(a){p({context_id:a.leaveGamingSquad.gaming_squad.context_token.id,context_size:a.leaveGamingSquad.gaming_squad.context_token.context_size,context_type:a.leaveGamingSquad.gaming_squad.context_token.context_type,gaming_squad_id:a.leaveGamingSquad.gaming_squad.id}),h()},onError:r,variables:{input:{squad_id:i}}})},[q,r,i,e,j,p,h]),t=l(function(){o(new(c("GamesQuicksilverError"))("User input").setCode("USER_INPUT"))},[o]),u=a==null?void 0:a.squad;a=a==null?void 0:(a=a.viewer)==null?void 0:a.actor;if(u==null||a==null){o(new(c("GamesQuicksilverError"))("Network error when retrieving squad info").setCode("NETWORK_FAILURE"));return null}return k.jsx(c("InstantGamesLeaveGamingSquadDialogContent.react"),{appID:e,appName:f,isInFlight:b,onClick:s,onDismiss:t,squadID:i,squadInfo:u,squadTerm:j,userInfo:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CloudGameFriendFinderInviteDialog.react",["CloudGameFriendFinderInviteDialogQuery.graphql","CloudGameFriendFinderInviteDialogRenderer.react","CometErrorBoundary.react","CometPlaceholder.react","CometProgressRingIndeterminate.react","CometRelay","GamesQuicksilverError","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useEffect,l=h!==void 0?h:h=b("CloudGameFriendFinderInviteDialogQuery.graphql");function m(a){var b=a.props,e=b.appID,f=b.dialogRequest,g=b.onClose;b=d("CometRelay").usePreloadedQuery(l,a.queries.queryReference);a=b.cloud_friend_finder_invite_data;f=f==null?void 0:(b=f.data)==null?void 0:b.source;b=f==="invite_button_at_nav_bar_cloud"?"invite_button_at_nav_bar_cloud":"in_game_from_link_cloud";return j.jsx(c("CloudGameFriendFinderInviteDialogRenderer.react"),{gameID:e,onClose:function(){return g({data:null,type:"RESOLVE"})},sections$key:a,source:b})}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b=a.onClose;k(function(){b({data:new(c("GamesQuicksilverError"))("Client cannot perform this operation").setCode("INVALID_OPERATION"),type:"REJECT"})},[b]);return j.jsx(j.Fragment,{})}n.displayName=n.name+" [from "+f.id+"]";function a(a){return j.jsx(c("CometErrorBoundary.react"),{fallback:function(){return j.jsx(n,{onClose:a.props.onClose})},children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx("div",{className:"xrmyhay x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x17fpy1y x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"x6s0dn4 x78zum5 x1egiwwb xl56j7k x1n2onr6",children:j.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})})})}),children:j.jsx(m,babelHelpers["extends"]({},a))})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesMatchPlayerDialog.react",["fbt","ix","AnimatedSlideInFromBottom.react","CometImage.react","CometProgressRingIndeterminate.react","CometRelay","DeferredCloseButton.react","FullSizeVerticalScrollView.react","GamesQuicksilverError","InstantGameContextType","InstantGamesMatchPlayerOperations","InstantGamesMatchPlayersConfig","InstantGamesMatchPlayersQueueTypedLogger","InstantGsMatchingQueueStatus","MWFacebookUserWithoutMessengerAccess","Promise","TetraButton.react","clearInterval","getJSEnumSafe","react","setInterval"],(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.useEffect,n=e.useRef,o=e.useState,p={image:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"xkdpuxl",paddingTop:"x889kno",paddingEnd:"x1iji9kk",paddingBottom:"x1a8lsjc",paddingStart:"x1sln4lm",width:"x17tiq77",$$css:!0}},q=10;function a(a){a=a.props;var e=a.appIcon,f=a.appID,g=a.dialogRequest,k=a.onClose,r=a.switchContext;a=g.data;g=a.bannerOfflineRetryText;var s=a.bannerRetryText,t=a.bannerUserAlreadyInThreadText,u=a.dialogButtonText,v=a.dialogTextLineOne,w=a.dialogTextLineTwo,x=a.dialogTitle,y=a.matchTag,z=a.offlineMatch,A=a.promiseID,B=d("CometRelay").useRelayEnvironment();a=o(!1);var C=a[0],D=a[1];a=o(!1);var E=a[0],F=a[1];a=o(!1);var G=a[0],H=a[1],I=n(null);a=o(!1);var J=a[0],K=a[1];a=o(!1);var L=a[0],M=a[1],N=n(!1),O=n(0),P=n(null),Q=n(0);m(function(){N.current=E},[E]);m(function(){G===!1&&(new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("dialog_shown").setAppID(f).setMatchTag(y).log(),H(!0));return function(){c("clearInterval")(P.current)}},[]);a=function(){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent(J?"retry_cancel_button_clicked":C?"search_cancelled":"dialog_dismissed").setQueueID(I.current).setAppID(f).setMatchTag(y).setWaitTime(U()).log();c("clearInterval")(P.current);if(I.current==null){var a=new(c("GamesQuicksilverError"))("Player closed the matching dialog").setCode("USER_INPUT");F(!0);k({data:a,type:"REJECT"});return}new(j||(j=b("Promise")))(function(a,b){var c;d("CometRelay").commitMutation(B,{mutation:d("InstantGamesMatchPlayerOperations").LeaveQueueMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:{instant_games_match_players_queue_id:(c=I.current)!=null?c:""}}})}).then(function(a){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("cancel_success").setQueueID(I.current).setWaitTime(U()).setAppID(f).setMatchTag(y).log();a=new(c("GamesQuicksilverError"))("Player closed the matching dialog").setCode("USER_INPUT");k({data:a,type:"REJECT"})})["catch"](function(a){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("cancel_failed").setQueueID(I.current).setWaitTime(U()).setAppID(f).setMatchTag(y).setErrorMessage(a.message).log();a=new(c("GamesQuicksilverError"))("Player closed the matching dialog").setCode("USER_INPUT");k({data:a,type:"REJECT"})})};var R=function(){!J&&!C&&(Q.current=Math.floor(Date.now()/1e3)),new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent(J?"retry_start_button_clicked":"search_button_clicked").setQueueID(I.current).setAppID(f).setMatchTag(y).setWaitTime(U()).log(),z?(D(!0),K(!1),S()):(D(!0),K(!1),T(0))};function S(){if(E)return;new(j||(j=b("Promise")))(function(a,b){d("CometRelay").commitMutation(B,{mutation:d("InstantGamesMatchPlayerOperations").OfflineMatchMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:{app_id:f,match_tag:y}}})}).then(function(a){var b;b=(b=a.offlineMatch)==null?void 0:b.match_status;if(b==="SUCCESS"){var d;c("clearInterval")(P.current);d=(d=a.offlineMatch)==null?void 0:(d=d.context_token)==null?void 0:d.context_source_id;a=c("getJSEnumSafe")(c("InstantGameContextType"),(a=a.offlineMatch)==null?void 0:(a=a.context_token)==null?void 0:a.context_type);if(d==null||a==null)return;F(!0);r({id:d,promiseID:A,type:a})}b==="USER_ALREADY_IN_THREAD"&&(c("clearInterval")(P.current),M(!0));b==="FAILED"&&K(!0)})["catch"](function(a){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("join_failed").setWaitTime(U()).setAppID(f).setErrorMessage(a.message).setMatchTag(y).log()})}function T(a){if(E)return;if(a===q){K(!0);return}new(j||(j=b("Promise")))(function(a,b){d("CometRelay").commitMutation(B,{mutation:d("InstantGamesMatchPlayerOperations").JoinQueueMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:{game:f,matching_key:y}}})}).then(function(b){if(E)return;b=(b=b.joinQueue)==null?void 0:(b=b.instant_games_match_players_queue)==null?void 0:b.id;if(b!=null){I.current=b;new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("join_success").setQueueID(b).setWaitTime(U()).setAppID(f).setMatchTag(y).log();P.current=c("setInterval")(V,3e3);return}T(a+1)})["catch"](function(b){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("join_failed").setWaitTime(U()).setAppID(f).setErrorMessage(b.message).setMatchTag(y).log(),T(a+1)})}function U(){return Math.floor(Date.now()/1e3)-Q.current}function V(){var a=I==null?void 0:I.current;if(a==null){c("clearInterval")(P.current);return}new(j||(j=b("Promise")))(function(b,c){d("CometRelay").commitMutation(B,{mutation:d("InstantGamesMatchPlayerOperations").PollQueueStatusMutation,onCompleted:function(a){return b(a)},onError:function(a){return c(a)},variables:{input:{instant_games_match_players_queue_id:a}}})}).then(function(a){a=(a=a.pollQueue)==null?void 0:a.instant_games_match_players_queue;var b=c("getJSEnumSafe")(c("InstantGsMatchingQueueStatus"),a==null?void 0:a.queueStatus);new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("poll_success").setQueueID(I.current).setWaitTime(U()).setAppID(f).setMatchTag(y).setQueueStatus(b).log();if(b==="failed"){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("queue_failed").setQueueID(I.current).setWaitTime(U()).setAppID(f).setMatchTag(y).log();c("clearInterval")(P.current);if(O.current>=c("InstantGamesMatchPlayersConfig").web_instant_games_match_player_retry_times_limit){O.current=0;I.current=null;K(!0);return}I.current!==null&&(O.current++,I.current=null,T(0))}if(b==="full"){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("queue_full").setQueueID(I.current).setWaitTime(U()).setAppID(f).setMatchTag(y).log();c("clearInterval")(P.current);b=a==null?void 0:a.contextToken;if(b==null){if(O.current>=c("InstantGamesMatchPlayersConfig").web_instant_games_match_player_retry_times_limit){O.current=0;I.current=null;K(!0);return}I.current!==null&&(O.current++,I.current=null,T(0));return}a=c("getJSEnumSafe")(c("InstantGameContextType"),b.contextType);if(a==null)return;new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("match_found").setQueueID(I.current).setWaitTime(U()).setAppID(f).setMatchTag(y).setContextID(b.id).setThreadSize(b.contextSize).log();F(!0);r({id:b.contextSourceID,promiseID:A,type:a})}})["catch"](function(a){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("poll_failed").setQueueID(I.current).setWaitTime(U()).setAppID(f).setMatchTag(y).setErrorMessage(a.message).log()})}(C||J)&&new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent(J?"retry_view_shown":"search_view_shown").setQueueID(I.current).setAppID(f).setMatchTag(y).setWaitTime(U()).log();var W=d("MWFacebookUserWithoutMessengerAccess").useIsFacebookUserWithoutMessengerAccess(),X=h._("__JHASH__E0XoO8D3oqA__JHASH__"),Y=h._("__JHASH__yAhKXomQXfa__JHASH__");X=W?X:Y;Y=i("409920");var Z=i("787567");W=W?Y:Z;return l.jsx("div",{className:"xjbqb8w xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:l.jsx(c("FullSizeVerticalScrollView.react"),{children:l.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"50%",translate:"0px",trigger:G,children:l.jsxs("div",{className:"x14hiurz x1tlxs6b x1g8br2z x1gn5b1j x230xth xqi2hgc x1lliihq x6ikm8r x10wlt62 xyamay9 x1sxyh0 x1l90r2v xurb0ha x1n2onr6 x1cb1t30",children:[e!=null&&l.jsx(c("CometImage.react"),{src:e,xstyle:p.image}),l.jsx(c("DeferredCloseButton.react"),{className:"x1ntpj0o x10l6tqk x1eu8d0j",onClick:a,shade:"dark",size:"huge"}),l.jsxs("div",{className:"x78zum5 x1cnzs8",children:[x!=null&&!J&&!C&&l.jsx("div",{className:"x1gslohp x5ib6vp",children:l.jsx(c("CometImage.react"),{alt:X,src:W})}),l.jsxs("div",{className:"x1lliihq",children:[x!=null&&!J&&!C&&l.jsx("div",{className:"x1p6odiv x1lliihq x1603h9y x117nqv4 x13ibhcj x1jqylkn x6ikm8r x1yc453h xlyipyv",children:x}),L?l.jsx("div",{className:"x1p6odiv x1lliihq x1lkfr7t x13ibhcj x1jqylkn x6ikm8r x1cnzs8 xc73u3c xx6bls6 x5ib6vp xlyipyv",children:t}):J&&!z?l.jsx("div",{className:"x1p6odiv x1lliihq x1lkfr7t x13ibhcj x1jqylkn x6ikm8r x1cnzs8 xc73u3c xx6bls6 x5ib6vp xlyipyv",children:s}):J&&z?l.jsx("div",{className:"x1p6odiv x1lliihq x1lkfr7t x13ibhcj x1jqylkn x6ikm8r x1cnzs8 xc73u3c xx6bls6 x5ib6vp xlyipyv",children:g}):C?l.jsxs("div",{className:"x1p6odiv x1lliihq x1lkfr7t x13ibhcj x1jqylkn x6ikm8r x1cnzs8 xc73u3c xx6bls6 x5ib6vp xlyipyv",children:[h._("__JHASH__nvupoMkXCJa__JHASH__")," "]}):l.jsxs("div",{className:"x1p6odiv x1lliihq x6prxxf x13ibhcj x1jqylkn x6ikm8r x1yc453h xlyipyv",children:[v," "]}),w!=null&&!J&&!C&&l.jsxs("div",{className:"x1p6odiv x1lliihq x6prxxf x13ibhcj x1jqylkn x6ikm8r x1cnzs8 x1yc453h xlyipyv",children:[w," "]})]})]}),!L&&(!C||J)?l.jsx("div",{style:{margin:16},children:l.jsx(c("TetraButton.react"),{label:J?h._("__JHASH__aPWUdSlxPrC__JHASH__"):(Y=u)!=null?Y:h._("__JHASH__AoHMQiheuMT__JHASH__"),onPress:R,size:"large"})}):null,!L&&C&&!J&&l.jsx("div",{className:"x78zum5 xl56j7k xw7yly9 x1yztbdb",children:l.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
InstantGamesInAppPurchaseECPDialogRenderer.react",["CometProgressRingIndeterminate.react","CometRelay","ECPGamesUPLLogger","ECPQPLUtils","FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint","GamesQuicksilverError","InstantGamesErrorCode","InstantGamesIAP","InstantGamesIAPOperations","InstantGamesInAppPurchaseECPDialogRenderer_CreatePurchaseOrderMutation.graphql","InstantGamesPreloadedECPDialogContext","RelayHooks","getJSEnumSafe","justknobx","react","useCometDynamicEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=e.useMemo,n=e.useRef,o=e.useState;function a(a){var e=d("CometRelay").useRelayEnvironment(),f=a.appID,g=a.developerPayload,i=a.optionalFields,p=a.productID,q=a.reject,r=a.resolve,s=a.uplSessionID;a=o(!1);var t=a[0],u=a[1],v=n(!1),w=m(function(){return new(c("ECPGamesUPLLogger"))({client_suppression_policy:[],logging_policy_product:""},d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,"ecp","comet",s)},[s]);a=o();var x=a[0],y=a[1];l(function(){var a=function(){c("justknobx")._("525")&&!v.current&&q(new(c("GamesQuicksilverError"))("User refreshed the page").setCode("USER_INPUT"))};window.addEventListener("beforeunload",a);return function(){return window.removeEventListener("beforeunload",a)}});var z=c("useCometDynamicEntryPointDialog")(c("FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint"));a=d("RelayHooks").useMutation(h!==void 0?h:h=b("InstantGamesInAppPurchaseECPDialogRenderer_CreatePurchaseOrderMutation.graphql"));var A=a[0];a=a[1];var B=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").ProcessPurchaseMutation),C=B[0],D=k(c("InstantGamesPreloadedECPDialogContext"));l(function(){if(x!=null&&t===!1){var a={country_code:x.countryCode,optional_fields:i,order_id:x.orderID,payment_container_mode:x.isTestPurchase?"TEST":"LIVE",payment_product_id:d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,receiver_description:x.product.title,receiver_icon_uri:x.product.imageURL,receiver_id:f,receiver_name:x.appName,session_id:s,total:{currency:x.product.price.currency,value:x.product.price.amount.toFixed(2)}},b={onReturn:function(a){v.current=!0,C({onCompleted:function(a){a=a.processPurchase;if(a==null){q(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"));return}w.logCheckoutSuccess();r({developerPayload:a.developer_payload,isConsumed:a.is_consumed,paymentActionType:a.payment_action_type,paymentID:a.payment_id,productID:a.product_id,purchasePlatform:a.purchase_platform,purchasePrice:d("InstantGamesIAP").formatCurrencyAmount(a.purchase_currency_amount),purchaseTime:a.purchase_time,purchaseToken:a.purchase_token,signedRequest:a.signed_request})},onError:function(){w.logCheckoutFailure(),q(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"))},variables:{input:{invoice_id:a}}})},routeProps:a},e=function(){v.current||q(new(c("GamesQuicksilverError"))("User cancelled the order").setCode("USER_INPUT"))};d("ECPQPLUtils").logOpenECPDialogQPLMarker(D.openPreloadedECPDialog!=null);D.openPreloadedECPDialog!=null?D.openPreloadedECPDialog(babelHelpers["extends"]({},b,{routeProps:babelHelpers["extends"]({},a,{isPreloaded:!0})}),e):z({routeProps:a},b,e);u(!0)}},[z,t,p,f,x,q,C,r,e,s,i,w,D]);l(function(){x==null&&A({onCompleted:function(a){a=a.createPurchaseOrder;if(a==null){q(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}var b=a.error;if(b!=null){var d;q(new(c("GamesQuicksilverError"))((d=b==null?void 0:b.message)!=null?d:"Failed to create purchase order").setCode((d=c("getJSEnumSafe")(c("InstantGamesErrorCode"),b==null?void 0:b.code))!=null?d:"PAYMENTS_PURCHASE_CREATION_FAILED"));return}b=a.appName;d=a.countryCode;var e=a.currencyCode,f=a.imageURL,g=a.isTestPurchase,h=a.orderID,i=a.price;a=a.title;if(b==null||e==null||f==null||h==null||i==null||a==null||g==null){q(new(c("GamesQuicksilverError"))("Failed to create purchase order: invalid product").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}y({appName:b,countryCode:(b=d)!=null?b:"",isTestPurchase:g,orderID:h,product:{imageURL:f,price:{amount:i,currency:e},title:a}})},onError:function(){q(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"))},variables:{input:{app_id:f,developer_payload:g,product_id:p}}})},[f,g,A,p,q,x]);return a||x==null?j.jsx("div",{className:"x4n7ey x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x17fpy1y x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"x6s0dn4 x78zum5 x1q0g3np x5yr21d xl56j7k x1n2onr6 xh8yej3",children:j.jsx(c("CometProgressRingIndeterminate.react"),{color:"light",size:24})})})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextSoloSwitchDialogContainer.react",["fbt","CometRelay","GamesQuicksilverError","InstantGamesContextSoloSwitchDialogContainer_Fragment.graphql","InstantGamesContextSwitchDialogContent.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useCallback,m=i!==void 0?i:i=b("InstantGamesContextSoloSwitchDialogContainer_Fragment.graphql");function a(a){var b=a.fragmentKey,e=a.onClose,f=l(function(a){e({data:a,type:"REJECT"})},[e]),g=l(function(a){e({data:a,type:"RESOLVE"})},[e]);a=d("CometRelay").useFragment(m,b);b=a.me;a=a.node;b=(b=b==null?void 0:(b=b.picture)==null?void 0:b.uri)!=null?b:"";a=(a=a==null?void 0:(a=a.picture)==null?void 0:a.uri)!=null?a:"";var i=l(function(){f(new(c("GamesQuicksilverError"))("User closed the dialog").setCode("USER_INPUT"))},[f]),j=l(function(){g({context_id:null,context_size:1,context_type:"SOLO"})},[g]);i=k.jsx(c("InstantGamesContextSwitchDialogContent.react"),{buttonTitle:h._("__JHASH__7BrPY8Yzm3E__JHASH__"),context:null,dialogTitleRenderer:function(){return h._("__JHASH__LBgSK5g0IS___JHASH__")},onClose:i,onSwitch:j,playerPhotoURI:b,secondPhotoURI:a});return k.jsx("div",{children:i})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
InstantGamesContextSwitcher.react",["CometRelay","GamesQuicksilverError","InstantGamesContextSwitcherQuery.graphql","InstantGamesContextSwitcherRenderer.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("InstantGamesContextSwitcherQuery.graphql");function a(a){var b=a.props;a=a.queries;a=d("CometRelay").usePreloadedQuery(k,a.queryReference);var e=b.onClose,f=function(a){e({data:a,type:"REJECT"})};if(b.dialogRequest.data.oldContext===b.dialogRequest.data.newContext){f(new(c("GamesQuicksilverError"))("New context is the same as the old context.").setCode("SAME_CONTEXT"));return null}if(!a.context||!a.game||!a.profile){f(new(c("GamesQuicksilverError"))("Invalid context id for player").setCode("INVALID_PARAM"));return null}return j.jsx(c("InstantGamesContextSwitcherRenderer.react"),{context:a.context,game:a.game,params:b,profile:a.profile})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextSwitcherRenderer.react",["AnimatedSlideInFromBottom.react","CometRelay","FullSizeVerticalScrollView.react","GamesQuicksilverError","InstantGameContextType","InstantGamesContextSwitchAndJoinDialog.react","InstantGamesContextSwitchDialog.react","InstantGamesContextSwitcherRendererMutation.graphql","InstantGamesContextSwitcherRenderer_SetBlockMessagingMutation.graphql","InstantGamesContextSwitcherRenderer_context.graphql","InstantGamesContextSwitcherRenderer_game.graphql","InstantGamesContextSwitcherRenderer_profile.graphql","getJSEnumSafe","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m,n=m||(m=d("react"));e=m;var o=e.useEffect,p=e.useState,q={dialog:{transform:"x1cb1t30",$$css:!0}},r=h!==void 0?h:h=b("InstantGamesContextSwitcherRendererMutation.graphql"),s=i!==void 0?i:i=b("InstantGamesContextSwitcherRenderer_context.graphql"),t=j!==void 0?j:j=b("InstantGamesContextSwitcherRenderer_SetBlockMessagingMutation.graphql"),u=k!==void 0?k:k=b("InstantGamesContextSwitcherRenderer_game.graphql"),v=l!==void 0?l:l=b("InstantGamesContextSwitcherRenderer_profile.graphql");function a(a){var b,e=a.context,f=a.game,g=a.params;a=a.profile;var h=(b=d("CometRelay")).useRelayEnvironment(),i=b.useFragment(s,e);f=b.useFragment(u,f);var j=b.useFragment(v,a),k=g,l=k.appID,m=k.onClose;b=p(!1);a=b[0];var w=b[1];o(function(){w(!0)},[]);g=function(){if(!e)return!1;if(!i.application||!i.contextType)return!1;var a=i.application.id;if(l!==a)return!1;a=(a=j.picture)==null?void 0:a.uri;return a==null||a===""?!1:!0};var x=function(){var a=new(c("GamesQuicksilverError"))("Player closed the context menu").setCode("USER_INPUT");m({data:a,type:"REJECT"})};b=function(){var a=i.contextTokenID;if(a==null)throw c("unrecoverableViolation")("Must provide a valid, non-solo context","instant_games");x();d("CometRelay").commitMutation(h,{mutation:r,onCompleted:function(){},onError:function(){},variables:{input:{context_id:a,is_context_joined:!1}}})};var y=function(a,b){var e=i.contextSourceID,f=c("getJSEnumSafe")(c("InstantGameContextType"),i.contextType);if(e==null||f==null)throw c("unrecoverableViolation")("Must provide a valid, non-solo context","instant_games");if(a!=null){d("CometRelay").commitMutation(h,{mutation:t,onCompleted:function(){k.dialogRequest.data.changeContext({id:e,promiseID:k.dialogRequest.data.promiseID,type:f})},onError:function(){var a=new(c("GamesQuicksilverError"))("Failed to add the player to the new context.").setCode("NETWORK_FAILURE");m({data:a,type:"REJECT"})},variables:{input:{app_id:l,block_messaging:a,context_source_id:e,store_preference:(a=b)!=null?a:!1}}})}else k.dialogRequest.data.changeContext({id:e,promiseID:k.dialogRequest.data.promiseID,type:f})},z=function(){var a=i.contextTokenID;if(a==null)throw c("unrecoverableViolation")("Must provide a valid, non-solo context","instant_games");d("CometRelay").commitMutation(h,{mutation:r,onCompleted:function(){y()},onError:function(){var a=new(c("GamesQuicksilverError"))("Failed to add the player to the new context.").setCode("NETWORK_FAILURE");m({data:a,type:"REJECT"})},variables:{input:{context_id:a,is_context_joined:!0}}})};g()||m({data:new(c("GamesQuicksilverError"))("Invalid context id for player").setCode("INVALID_PARAM"),type:"REJECT"});g=(g=j.picture)==null?void 0:g.uri;if(g==null||g==="")return null;b=i.shouldJoinNewContext===!0?n.jsx(c("InstantGamesContextSwitchAndJoinDialog.react"),{context:i,onClose:b,onSwitch:z,playerPhotoURI:g}):n.jsx(c("InstantGamesContextSwitchDialog.react"),{buttonTitle:k.dialogRequest.data.buttonTitle,className:"x1cb1t30",context:i,dialogTitleRenderer:k.dialogRequest.data.dialogTitleRenderer,game:f,onClose:x,onSwitch:y,playerPhotoURI:g,stylex:q.dialog});return n.jsx("div",{className:"x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:n.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:n.jsx(c("FullSizeVerticalScrollView.react"),{children:n.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"50%",translate:"0px",trigger:a,children:b})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesGameSwitchDialog.react",["fbt","AnimatedSlideInFromBottom.react","CometImage.react","CometProgressRingIndeterminate.react","CometRelay","DeferredCloseButton.react","FullSizeVerticalScrollView.react","GamesQuicksilverError","GamesQuicksilverFunnelLogger","InstantGamesButton.react","InstantGamesContextImage.react","InstantGamesGameSwitchDialog_context.graphql","InstantGamesGameSwitchDialog_gameInfo.graphql","react","useInstantGamesPlayerTimeSpentLogging"],(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.useEffect,n=e.useRef,o=e.useState,p=75,q=i!==void 0?i:i=b("InstantGamesGameSwitchDialog_context.graphql"),r=j!==void 0?j:j=b("InstantGamesGameSwitchDialog_gameInfo.graphql");function a(a){var b,e=a.context,f=a.entryPointData,g=a.gameInfo,i=a.genericOnClose,j=a.switchGame;a=d("CometRelay").useFragment(q,e);e=d("CometRelay").useFragment(r,g);g=o(!1);var k=g[0],s=g[1],t=e.id||"",u=n(!1);m(function(){if(u.current===!0)return;u.current=!0;d("GamesQuicksilverFunnelLogger").logGameSwitchDialogShown(d("GamesQuicksilverFunnelLogger").getDefaultFunnelName(),t,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS())},[t]);g=function(){d("GamesQuicksilverFunnelLogger").logGameSwitchDialogResult(d("GamesQuicksilverFunnelLogger").getDefaultFunnelName(),t,!1,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS());var a=new(c("GamesQuicksilverError"))("Player closed the game switch dialog").setCode("USER_INPUT");i({data:a,type:"REJECT"})};var v=function(){d("GamesQuicksilverFunnelLogger").logGameSwitchDialogResult(d("GamesQuicksilverFunnelLogger").getDefaultFunnelName(),t,!0,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS()),i({data:null,type:"RESOLVE"}),j(t,f),s(!0)};b=(b=e.instantGameInfo)==null?void 0:b.iconUri;var w=a?l.jsx("div",{className:"xglei2g x169pyod x1xp15n3 x1knutoc x14yjl9h xudhj91 x18nykt9 xww2gxu x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xmxjv0s x1jylsbl x12yxszm xv0i9uw x1a2yejm",children:l.jsx(c("InstantGamesContextImage.react"),{className:"x1txhvsy xx1l10f xustf53 xy7tls4 x17bhg7c x14yjl9h xudhj91 x18nykt9 xww2gxu x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x1xmu9ic xi28a7 x1qdctgf x1rsy3fd xr931m4 x6ikm8r x10wlt62 x9fslfs",contextToken:a,size:p})}):null;b=b!=null?l.jsxs("div",{className:"x78zum5 xl56j7k x1cnzs8 xc73u3c xx6bls6 x5ib6vp",children:[l.jsx("div",{className:"xglei2g x169pyod x1xp15n3 x1knutoc x14yjl9h xudhj91 x18nykt9 xww2gxu x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xmxjv0s x1jylsbl x12yxszm xv0i9uw",children:l.jsx("div",{className:"x1txhvsy xx1l10f xustf53 xy7tls4 x17bhg7c x14yjl9h xudhj91 x18nykt9 xww2gxu x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x1xmu9ic xi28a7 x1qdctgf x1rsy3fd xr931m4 x6ikm8r x10wlt62 x9fslfs",children:l.jsx(c("CometImage.react"),{height:75,src:b,width:75})})}),w]}):null;return l.jsx("div",{className:"x13xa001 x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:l.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:l.jsx(c("FullSizeVerticalScrollView.react"),{children:l.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"25%",translate:"0px",trigger:!0,children:l.jsxs("div",{className:"x1jx94hy x1tlxs6b x1g8br2z x1gn5b1j x230xth x7x8rel x1lliihq xw7yly9 x1emribx x1yztbdb x1i64zmx x6ikm8r x10wlt62 x1n2onr6 x2b8uid",children:[b,l.jsx(c("DeferredCloseButton.react"),{className:"x78zum5 x1ntpj0o x10l6tqk x1eu8d0j",onClick:g,shade:"dark",size:"medium"}),l.jsx("div",{className:"xi81zsa x1lliihq xkzkwiv xdj266r x1jqylkn xat24cr x13ibhcj x6ikm8r xlyipyv",children:a&&a.contextName!=null&&a.contextName!==""?h._("__JHASH__MwLsHi-JPa2__JHASH__",[h._param("game-name",e.name),h._param("context-name",a.contextName)]):h._("__JHASH__zKZNwbcnCUI__JHASH__",[h._param("game-name",e.name)])}),l.jsx("div",{className:"xkzkwiv xw7yly9 xktsk01 x1yztbdb x1d52u69",children:k?l.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24}):l.jsx(c("InstantGamesButton.react"),{onClick:v,title:h._("__JHASH__9ecnOBn9Wji__JHASH__")})})]})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
InstantGamesGameSwitchDialogContainer.react",["CometRelay","GamesQuicksilverError","InstantGamesGameSwitchDialog.react","InstantGamesGameSwitchDialogContainerQuery.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useEffect,l=e.useRef,m=h!==void 0?h:h=b("InstantGamesGameSwitchDialogContainerQuery.graphql");function a(a){var b=a.props,e=b.dialogRequest,f=b.onClose;b=b.switchGame;e=e.data.entryPointData;var g=d("CometRelay").usePreloadedQuery(m,a.queries.query),h=l(!1);k(function(){if(h.current===!0)return;h.current=!0;if(g.gameInfo!=null)return;var a=new(c("GamesQuicksilverError"))("Failure while fetching app info").setCode("NETWORK_FAILURE");f({data:a,type:"REJECT"})},[g.gameInfo,f]);return g.gameInfo!=null?j.jsx(c("InstantGamesGameSwitchDialog.react"),{context:g.context,entryPointData:e,gameInfo:g.gameInfo,genericOnClose:f,switchGame:b}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesInAppPurchaseSubscriptionDialog.react",["CometErrorBoundary.react","CometPlaceholder.react","CometRelay","CometTransientDialogProvider.react","FBLogger","GamesQuicksilverError","InstantGamesIAPLoadingComponent.react","InstantGamesInAppPurchaseSubscriptionDialogQuery.graphql","InstantGamesPlayerUtils","XFBGamesIAPProductTypeUtils.facebook","gkx","react","usePaymentsCometCheckout"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useEffect,l=e.useRef,m=h!==void 0?h:h=b("InstantGamesInAppPurchaseSubscriptionDialogQuery.graphql");function a(a){var b=d("InstantGamesPlayerUtils").isCometOnMobile();k(function(){if(b){d("InstantGamesPlayerUtils").unlockPlayerScrolling();return function(){d("InstantGamesPlayerUtils").lockPlayerScrolling()}}},[b]);return j.jsx(c("CometTransientDialogProvider.react"),{children:j.jsx(c("CometErrorBoundary.react"),{fallback:function(){return j.jsx(c("InstantGamesIAPLoadingComponent.react"),{})},onError:function(b){c("FBLogger")("instant_games","subscription_checkout_flow_load_error").catching(b).warn("Unable to load subscription checkout flow"),a.props.onClose({data:new(c("GamesQuicksilverError"))("Failed to load subscription checkout.").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"),type:"REJECT"})},children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("InstantGamesIAPLoadingComponent.react"),{}),children:j.jsx(n,babelHelpers["extends"]({},a))})})})}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b=d("CometRelay").usePreloadedQuery(m,a.queries.query);b=b.node;if(c("gkx")("2528")){a.props.onClose({data:new(c("GamesQuicksilverError"))("Failed to load subscription checkout.").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"),type:"REJECT"});return null}var e=a.props,f=e.dialogRequest;e=e.onClose;f=f.productID;b=(b=b.productInventory)==null?void 0:b.product;if(b==null||!b.isPurchaseable||d("XFBGamesIAPProductTypeUtils.facebook").toJSEnum(b.productType)!=="subscribable"){e({data:new(c("GamesQuicksilverError"))("Product is not purchaseable: user has an existing, active entitlement to the subscribable product.").setCode("INVALID_PARAM"),type:"REJECT"});return null}return j.jsx(o,{appID:a.props.appID,closeHandler:a.props.onClose,product:b,productID:f})}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.appID,d=a.closeHandler,e=a.product,f=a.productID,g=l(!1);a={extraData:{tierID:e==null?void 0:(a=e.tier)==null?void 0:a.id},paymentType:"MOR_GAMES_SUBSCRIPTION",products:[{product_id:(e==null?void 0:e.subscribableProductID)||"",quantity:1}],receiverID:b};e=c("usePaymentsCometCheckout")({checkoutProps:babelHelpers["extends"]({},a,{customCheckoutSuccessCallback:function(a,b){b({customConfirmationConfiguration:{hideConfirmationButton:!0},state:"SUCCESS"}),g.current=!0,d({data:f,type:"RESOLVE"})}}),onClose:function(){g.current||d({data:new(c("GamesQuicksilverError"))("User cancelled the order").setCode("USER_INPUT"),type:"REJECT"})}});var h=e[0];k(function(){h()},[h]);return j.jsx("div",{})}o.displayName=o.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesTournamentShareDialog.react",["fbt","CometRelay","GamesQuicksilverError","InstantGamesTournamentShareDialogContainer.react","InstantGamesTournamentShareDialogQuery.graphql","InstantGamesTournamentStatusDialogContainer.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e,f=a.queries.query;f=d("CometRelay").usePreloadedQuery(i!==void 0?i:i=b("InstantGamesTournamentShareDialogQuery.graphql"),f);return((e=f.games_tournament_info)==null?void 0:e.tournament_type)==="thread"?k.jsx(c("InstantGamesTournamentStatusDialogContainer.react"),{closeError:new(c("GamesQuicksilverError"))("This tournament cannot be shared.").setCode("TOURNAMENT_NOT_SHAREABLE"),ctaText:h._("__JHASH__gJurGZlOQcl__JHASH__"),customHeaderText:h._("__JHASH__yrc3rSaxLE___JHASH__"),onClose:a.props.onClose,showLegalText:!1,tournamentFragmentKey:f.games_tournament_info,userFragmentKey:f.me}):k.jsx(c("InstantGamesTournamentShareDialogContainer.react"),{data:f,props:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
InstantGamesOpenExternalLinkDialog.react",["CloudGamingSessionEventFalcoEvent","CometFullScreen","CometPlaceholder.react","GamesQuicksilverError","deferredLoadComponent","goURIOnWindow","promiseDone","react","requireDeferredForDisplay"],(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=c("deferredLoadComponent")(c("requireDeferredForDisplay")("InstantGamesOpenExternalLinkDialogRenderer.react").__setRef("InstantGamesOpenExternalLinkDialog.react"));function m(a,b,d,e,f){var g=Date.now().toString();c("CloudGamingSessionEventFalcoEvent").log(function(){return{app_id:b,client_app_id:e,cloud_game_id_override:f,event:a,session_id:d,time_duration_ms:g}})}function a(a){a=a.props;var b=a.appID,e=a.appName,f=a.dialogRequest,g=a.onClose,h=a.sessionID;a=f.data;var n=a.clientAppID,o=a.gameID,p=a.url,q=j(function(a){g({data:a,type:"REJECT"})},[g]),r=j(function(a){g({data:a,type:"RESOLVE"})},[g]);k(function(){d("CometFullScreen").isFullScreen()&&c("promiseDone")(d("CometFullScreen").exitFullScreen())});f=function(){c("goURIOnWindow")(window.open("","_blank"),p),m("EXTERNAL_LINK_OPEN",b,h,n,o),r()};a=function(){m("EXTERNAL_LINK_CANCELED_BY_USER",b,h,n,o),q(new(c("GamesQuicksilverError"))("Canceled by user").setCode("USER_INPUT"))};return i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx("div",{"data-testid":void 0,children:i.jsx(l,{gameName:e,onAccept:f,onCancel:a,url:p})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesFollowPageDialogContentStandard.react",["fbt","CometCard.react","CometColumnItem.react","CometRelay","CometScrollableArea.react","GamesQuicksilverError","InstantGamesFollowPageDialogContentStandard_Fragment.graphql","InstantGamesGenericDialogContainer.react","InstantGamesPagePostWithStoryView.react","InstantGamesPageRow.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l=40,m=i!==void 0?i:i=b("InstantGamesFollowPageDialogContentStandard_Fragment.graphql");function a(a){var b=a.appID,e=a.fragmentKey,f=a.reject,g=a.resolve;a=d("CometRelay").useFragment(m,e);e=a==null?void 0:a.page;var i=e==null?void 0:e.url;if(a==null||e==null||i==null){f(new(c("GamesQuicksilverError"))("Operation cannot be performed due to missing page linked to game").setCode("PAGE_NOT_LINKED"));return null}return k.jsxs(c("InstantGamesGenericDialogContainer.react"),{header:h._("__JHASH__3EMxbFG25eL__JHASH__"),onDismiss:function(){return g()},children:[k.jsx(c("CometColumnItem.react"),{paddingVertical:8,children:k.jsx("div",{className:"xh8yej3",children:k.jsx(c("InstantGamesPageRow.react"),{appID:b,noMargin:!0,page:e,profileImgSize:l})})}),k.jsx(c("CometColumnItem.react"),{paddingVertical:8,children:k.jsx(c("CometScrollableArea.react"),{horizontal:!1,vertical:!0,children:k.jsx(c("CometCard.react"),{background:"card-flat",border:"solid",children:k.jsx(c("InstantGamesPagePostWithStoryView.react"),{appID:b,community:a,profileImgSize:l,source:"community_api_dialog_page"})})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
InstantGamesContextSelector.react",["CometRelay","GamesQuicksilverError","InstantGameContextType","InstantGamesContextChangeDialog.react","InstantGamesContextMutations","InstantGamesContextSelectorCardRenderer.react","InstantGamesContextSelectorQuery.graphql","InstantGamesContextSelector_SetBlockMessagingMutation.graphql","InstantGamesEPDUtils","InstantGamesLinkShareTypedLogger","InstantGamesPlayerUtils","InstantGamesWebDialogsFalcoEventFalcoEvent","goForceFullPageRedirectTo","react","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useState,n=h!==void 0?h:h=b("InstantGamesContextSelector_SetBlockMessagingMutation.graphql"),o=i!==void 0?i:i=b("InstantGamesContextSelectorQuery.graphql");function a(a){var b,e=a.props;a=a.queries;var f=d("CometRelay").useRelayEnvironment();a=d("CometRelay").usePreloadedQuery(o,a.queryReference);var g=m(null),h=g[0],i=g[1];g=m(!1);var j=g[0],p=g[1];g=m(!1);var q=g[0],r=g[1];g=l(function(){return c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{dialog_type:"context_choose_epd_consent_dialog",event:"impression",game_id:e.appID,is_epd_dialog:!0}})},[e.appID]);g=c("useSinglePartialViewImpression")({onImpressionStart:g});var s=l(function(){return c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{dialog_type:"context_choose",event:"impression",game_id:e.appID,is_epd_dialog:j}})},[j,e.appID]),t=(b=a.node)==null?void 0:(b=b.instantGameInfo)==null?void 0:b.gameName;if(t==null)return null;var u=function(a){e.onClose({data:a,type:"REJECT"})};b=function(a,b){h!=null&&A!=null&&d("CometRelay").commitMutation(f,{mutation:n,onCompleted:function(b){if(!b)return;w(A,h.type,"context_choose_epd_consent_dialog",a)},onError:function(a){c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{dialog_type:"context_choose_epd_consent_dialog",event:"error",game_id:e.appID,is_epd_dialog:!0}})},variables:{input:{app_id:e.appID,block_messaging:a,context_source_id:A,store_preference:b}}})};var v=function(a){u(new(c("GamesQuicksilverError"))("Player closed the context menu").setCode("USER_INPUT")),c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{click_action:"dismiss_dialog",dialog_type:a,event:"click",game_id:e.appID,is_epd_dialog:j}})},w=function(a,b,g,h){if(b==="LINK")d("CometRelay").commitMutation(f,{mutation:d("InstantGamesContextMutations").LinkContextCreateMutation,onCompleted:function(a){if(!a){y();return}x(a)},onError:function(a){return y()},variables:{input:{app_id:e.appID}}});else{if(a===e.contextSourceID){u(new(c("GamesQuicksilverError"))("Attempted to switch into the current context").setCode("SAME_CONTEXT"));c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{dialog_type:g,event:"error",game_id:e.appID,is_epd_dialog:j}});return}e.switchContext({id:a,promiseID:e.dialogRequest.data.promiseID,source:"challenge_card",type:b});c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{block_messaging:h,click_action:"accept_dialog",dialog_type:g,event:"click",game_id:e.appID,is_epd_dialog:j}})}},x=function(b){var f;f=b==null?void 0:(f=b.instant_application_context_token_link_create)==null?void 0:f.contextToken;if(!f){y();return}var a=f.contextSourceID,g=f.contextTokenID;f=f.contextType&&c("InstantGameContextType")[f.contextType]?c("InstantGameContextType")[f.contextType]:null;if(a==null||!f){y();return}b=b==null?void 0:(b=b.instant_application_context_token_link_create)==null?void 0:b.shareMessage;new(c("InstantGamesLinkShareTypedLogger"))().setEvent("challenge_list_whatsapp_row_link_created").setIgAppID(e.appID).setSource(e.analyticsInfo.getSource()).setLinkFragment(a).setLinkContextTokenID(g).setShareMessage(b).log();if(b!=null){var h="https://api.whatsapp.com/send?text="+b;new(c("InstantGamesLinkShareTypedLogger"))().setEvent("challenge_list_whatsapp_row_whatsapp_opened").setIgAppID(e.appID).setSource(e.analyticsInfo.getSource()).setLinkFragment(a).setLinkContextTokenID(g).setShareMessage(b).log();d("InstantGamesPlayerUtils").isCometOnMobile()?c("goForceFullPageRedirectTo")(h,!1):window.open(h,"_blank")}e.switchContext({id:a,promiseID:e.dialogRequest.data.promiseID,type:f})},y=function(){u(new(c("GamesQuicksilverError"))("Failed to switch context").setCode("NETWORK_FAILURE")),new(c("InstantGamesLinkShareTypedLogger"))().setEvent("challenge_list_whatsapp_row_link_creation_failed").setIgAppID(e.appID).setSource(e.analyticsInfo.getSource()).log()},z=function(a){return d("InstantGamesEPDUtils").getInstantGamesContextChangeDescriptionForEPD(t,a)},A=h==null?void 0:h.id,B=h==null?void 0:h.image;if(h!=null&&A!=null)return k.jsx("div",{className:"xrmyhay x78zum5 x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:k.jsx("div",{className:"x1ey2m1c xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe xwa60dl xh8yej3",ref:g,children:k.jsx(c("InstantGamesContextChangeDialog.react"),{contextName:h.name,contextPhotos:B!=null?[B]:[],onClose:function(){return v("context_choose_epd_consent_dialog")},onSwitch:b,playerPhotoURI:e.dialogRequest.data.playerPhotoURI,shouldEnableStoringConsentPreference:q,shouldShowConsentFlow:j,text:z(h.name),threadEntrypoint:!1})})});else{g=function(a,b,d,f,g,h){if(g!=null&&g){i({id:a,image:d,name:f,type:b});p(!0);r((g=h)!=null?g:!1);c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{click_action:"accept_dialog",dialog_type:"context_choose",event:"click",game_id:e.appID,is_epd_dialog:j}})}else w(a,b,"context_choose",null)};b=(B=a.recommended_tournament_info)!=null?B:null;return k.jsx(c("InstantGamesContextSelectorCardRenderer.react"),{entryPoint:e.analyticsInfo.getSource(),filters:e.dialogRequest.data.filters,game$ref:a.node,gameID:e.appID,isNative:!1,onClose:function(){return v("context_choose")},onContextChange:g,onImpression:s,tournamentInfo$ref:b})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesTournamentCreateDialog.react",["AnimatedSlideInFromBottom.react","CometColumn.react","CometColumnItem.react","CometRelay","FullSizeVerticalScrollView.react","GamesQuicksilverError","IGPlatformUtils","InstantGamesTournamentCreateDialogComposerContainer.react","InstantGamesTournamentCreateDialogMutation","InstantGamesTournamentCreateDialogQuery.graphql","InstantGamesTournamentDialogHeaderContainer.react","Promise","RelayHooks","qex","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useEffect,n=e.useState;function a(a){var e,f,g=a.props;if(g==null)throw c("unrecoverableViolation")("Dialog props to message tournament create dialog were null","instant_games");var i=c("IGPlatformUtils").getPlayStyle();e=(e=c("qex")._("168"))!=null?e:!1;f=(f=c("qex")._("345"))!=null?f:!1;e=e||f;(i==="TWOPLAYER_TURN"||i==="MULTIPLAYER_SCORE")&&e&&g.onClose({data:new(c("GamesQuicksilverError"))("This dialog is not available for this game session.").setCode("NOT_AUTHORIZED"),type:"REJECT"});f=a.queries.queryReference;i=d("CometRelay").usePreloadedQuery(h!==void 0?h:h=b("InstantGamesTournamentCreateDialogQuery.graphql"),f);e="solo_play";a=n(!1);f=a[0];var j=a[1];m(function(){j(!0)},[]);a=n("");var l=a[0];a=a[1];var p=n(""),q=p[0];p=p[1];var r=n(null),s=r[0];r=r[1];var t=g.dialogRequest.data,u=t.endTime,v=t.forceScoreRangeValidation,w=t.forceScoreValidation,x=t.goal,y=t.image,z=t.initialScore,A=t.maximumScore,B=t.minimumScore,C=t.payload,D=t.scoreFormat,E=t.sortOrder,F=t.title;t=t.tournamentType;var G=g.appID,H=g.sessionID;G=o({appID:G,endTime:u,forceScoreRangeValidation:v,forceScoreValidation:w,goal:x,image:y,initialScore:z,maximumScore:A,message:l,minimumScore:B,payload:C,privacyOption:q,privacyRowInput:s,scoreFormat:D,sessionID:H,sortOrder:E,title:F,tournamentType:t});u=G[0];v=G[1];return k.jsx("div",{className:"xatbrnm x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:k.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x17fpy1y x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:k.jsx(c("FullSizeVerticalScrollView.react"),{children:k.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"20px",translate:"0px",trigger:f,children:k.jsx("div",{className:"x1jx94hy x1tlxs6b x1g8br2z x1gn5b1j x230xth x1ye9mx4 x78zum5 xdt5ytf x5yr21d xl56j7k",children:k.jsxs(c("CometColumn.react"),{paddingVertical:16,children:[k.jsx(c("CometColumnItem.react"),{paddingHorizontal:16,paddingTop:8,paddingVertical:8,children:k.jsx(c("InstantGamesTournamentDialogHeaderContainer.react"),{actionPending:v,onClose:g.onClose,shareType:e})}),k.jsx(c("CometColumnItem.react"),{paddingHorizontal:16,paddingTop:0,paddingVertical:8,children:k.jsx(c("InstantGamesTournamentCreateDialogComposerContainer.react"),{commit:u,isInFlight:v,message:l,params:g,queryKey:i,setMessage:a,setPrivacyOption:p,setPrivacyRowInput:r})})]})})})})})})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var e=d("RelayHooks").useMutation(c("InstantGamesTournamentCreateDialogMutation")),f=e[0];e=e[1];var g=l(function(){return new(i||(i=b("Promise")))(function(b,c){var d={input:{end_time:a.endTime,force_score_range_validation:a.forceScoreRangeValidation,force_score_validation:a.forceScoreValidation,game_id:a.appID,goal:a.goal,initial_score:a.initialScore,maximum_score:a.maximumScore,message:a.message,minimum_score:a.minimumScore,privacy_index:a.privacyOption,privacy_row_input:a.privacyRowInput,score_format:a.scoreFormat,session_id:a.sessionID,sort_order:a.sortOrder,tournament_image_uri:a.image,tournament_payload:a.payload,tournament_title:a.title,tournament_type:a.tournamentType}};f({onCompleted:b,onError:c,variables:d})})},[f,a.appID,a.endTime,a.image,a.initialScore,a.message,a.payload,a.privacyOption,a.privacyRowInput,a.scoreFormat,a.sessionID,a.sortOrder,a.title,a.forceScoreValidation,a.forceScoreRangeValidation,a.minimumScore,a.maximumScore,a.tournamentType,a.goal]);return[g,e]}g["default"]=a}),98);
-----
InstantGamesTournamentDialogHeaderContainer.react",["ix","CometPressable.react","CometProgressRingIndeterminate.react","FDSSkittleIcon.react","GamesQuicksilverError","InstantTournamentStrings","UNTRANSLATED_STRING_FIXME","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useMemo;function a(a){var b=a.actionPending,e=a.onClose,f=a.passedFriendName,g=a.shareType;a=k(function(){return{description:c("InstantTournamentStrings").getDescription(g,f),headerText:c("InstantTournamentStrings").getHeaderText(g)}},[f,g]);var i=function(){e({data:new(c("GamesQuicksilverError"))("The player dismissed the dialog").setCode("USER_INPUT"),type:"REJECT"})};return j.jsxs("div",{children:[j.jsx("div",{className:"x78zum5 xxk0z11 x13a6bvl",children:b===!0?j.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24}):j.jsx(c("CometPressable.react"),{"aria-label":c("UNTRANSLATED_STRING_FIXME")("tournament-dialog-close-button"),onPress:i,overlayDisabled:!0,testid:void 0,children:j.jsx(c("FDSSkittleIcon.react"),{color:"gray",icon:d("fbicon")._(h("478233"),20),size:36})})}),j.jsxs("div",{className:"x1jx94hy x1g2khh7",children:[j.jsx("div",{className:"xzsf02u x1603h9y x2b8uid",children:a.headerText}),j.jsx("div",{className:"xi81zsa xylt984 x2b8uid",children:a.description})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesTournamentCreateDialogComposerContainer.react",["CometPlaceholder.react","CometRelay","FBLogger","GamesLeaderboardSort","GamesQuicksilverError","GamesScoreType","GamesServiceSIDLoggerUtils","InstantGameContextType","InstantGamesErrorCode","InstantGamesTournamentCreateDialogComposerContainerQuery.graphql","InstantGamesTournamentCreateDialogPreview.react","InstantGamesTournamentDialogComposer.react","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useEffect,m=e.useState,n=h!==void 0?h:h=b("InstantGamesTournamentCreateDialogComposerContainerQuery.graphql");function a(a){var b,e,f=d("CometRelay").useFragment(n,a.queryKey);b=(b=f.me)==null?void 0:(b=b.profile_picture)==null?void 0:b.uri;e=(e=f.me)==null?void 0:e.short_name;var g=m(null),h=g[0],i=g[1],o=a.commit;g=a.params.dialogRequest.data;var p=g.formattedScore,q=g.image,r=g.initialScore,s=g.scoreFormat,t=g.sortOrder,u=a.params.appID,v=a.params.sessionID;g=a.params;var w=g.onClose,x=g.switchContext;g=k(function(){d("GamesServiceSIDLoggerUtils").logInstantGamesTournament({creation_surface:"DEEP_CREATION_DIALOG",event:"deep_tournament_creation_dialog_click",override_app_id:u,score:r.toString(),score_type_default:c("GamesScoreType").cast(s),session_token_id:v,sort_order_default:c("GamesLeaderboardSort").cast(t),surface:"CREATION_DIALOG"}),o().then(function(a){a=a.instant_games_tournament_create;var b=a==null?void 0:a.tournament_info,d=b==null?void 0:b.context_id;if(b!=null&&d!=null){w({data:{context_id:d,context_size:b.context_size,context_type:b.context_type,end_time:b.end_time,payload:b.payload,title:b.title,tournament_id:b.tournament_id,tournament_type:b.tournament_type},type:"RESOLVE"});d=c("getJSEnumSafe")(c("InstantGameContextType"),b.context_type);x({id:b.tournament_id,type:(b=d)!=null?b:"GENERIC"})}else{d=c("getJSEnumSafe")(c("InstantGamesErrorCode"),a==null?void 0:a.error_code);w({data:new(c("GamesQuicksilverError"))((b=a==null?void 0:a.error_message)!=null?b:"Invalid response from the server").setCode((a=d)!=null?a:"NETWORK_FAILURE"),type:"REJECT"});i("error")}})["catch"](function(a){c("FBLogger")("instant_games").warn("Tournament create mutation error: %s",a.message),i(a)})},[u,o,r,w,s,v,x,t]);l(function(){return d("GamesServiceSIDLoggerUtils").logInstantGamesTournament({creation_surface:"DEEP_CREATION_DIALOG",event:"deep_tournament_creation_dialog_impression",override_app_id:u,score:r.toString(),score_type_default:c("GamesScoreType").cast(s),session_token_id:v,sort_order_default:c("GamesLeaderboardSort").cast(t),surface:"CREATION_DIALOG"})},[u,r,s,v,t]);return f.viewer==null?null:j.jsx(d("InstantGamesTournamentDialogComposer.react").InstantGamesTournamentDialogComposer,{error:h,isInFlight:a.isInFlight,message:a.message,mutationCallback:g,playerName:e,playerPicture:b,postID:null,setMessage:a.setMessage,setPrivacyOption:a.setPrivacyOption,setPrivacyRowInput:a.setPrivacyRowInput,usageType:d("InstantGamesTournamentDialogComposer.react").UsageType.TournamentCreation,viewer:f.viewer,children:j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(c("InstantGamesTournamentCreateDialogPreview.react"),{appInfo:f.app,formattedScore:p,image:q,initialScore:r,playerName:e,playerPicture:b})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PlayServicesContextChooseRoot.react",["CometRelay","GamesQuicksilverError","GamingCustomUpdateNotifFalcoEvent","InstantGameContextType","InstantGamesContextMutations","InstantGamesContextSelectorCardRenderer.react","PlayServicesContextChooseRootQuery.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useCallback,l=h!==void 0?h:h=b("PlayServicesContextChooseRootQuery.graphql");function a(a){var b=d("CometRelay").useRelayEnvironment(),e="off_platform_context_choose",f=d("CometRelay").usePreloadedQuery(l,a.queries.playServicesContextChooseRootQueryReference),g=k(function(){return c("GamingCustomUpdateNotifFalcoEvent").log(function(){return{app_id:a.props.routeParams.app_id,dialog_type:"context_choose",event:"impression"}})},[a.props.routeParams.app_id]),h=function(b){o(new(c("GamesQuicksilverError"))("Player closed the off-platform context choose menu").setCode("USER_INPUT")),c("GamingCustomUpdateNotifFalcoEvent").log(function(){return{app_id:a.props.routeParams.app_id,dialog_type:"context_choose",event:"click_cancel"}})},i=function(c){c==="LINK"&&d("CometRelay").commitMutation(b,{mutation:d("InstantGamesContextMutations").LinkContextCreateMutation,onCompleted:function(a){if(!a){n();return}m(a)},onError:function(a){return n()},variables:{input:{app_id:a.props.routeParams.app_id}}})},m=function(a){a=a==null?void 0:(a=a.instant_application_context_token_link_create)==null?void 0:a.contextToken;if(!a){n();return}var b=a.contextSourceID;a=a.contextType&&c("InstantGameContextType")[a.contextType]?c("InstantGameContextType")[a.contextType]:null;if(b==null||!a){n();return}i("GENERIC")},n=function(){o(new(c("GamesQuicksilverError"))("Failed to switch context").setCode("NETWORK_FAILURE")),c("GamingCustomUpdateNotifFalcoEvent").log(function(){return{app_id:a.props.routeParams.app_id,dialog_type:"context_choose",error_message:"Context switch is rejected",event:"click_cancel"}})},o=function(b){c("GamingCustomUpdateNotifFalcoEvent").log(function(){return{app_id:a.props.routeParams.app_id,dialog_type:"context_choose",error_message:b.getMessage(),event:"error"}});return},p=function(a,b){return i(b)};return j.jsx(c("InstantGamesContextSelectorCardRenderer.react"),{entryPoint:e,filters:(e=a.props.routeParams.payload)==null?void 0:e.filters,game$ref:f.node,gameID:a.props.routeParams.app_id,isNative:!0,onClose:function(){return h("click_accept")},onContextChange:p,onImpression:g,tournamentInfo$ref:null})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesSubscribeBotAsyncDialog.react",["AnimatedSlideInFromBottom.react","CometImage.react","CometProgressRingIndeterminate.react","CometRelay","FullSizeVerticalScrollView.react","GamesQuicksilverError","InstantGamesSubscribeBotAsyncDialogMutation.graphql","InstantGamesSubscribeBotAsyncDialogQuery.graphql","InstantGamesWebHubEventsFalcoEvent","TetraButton.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useEffect,m=e.useState,n=h!==void 0?h:h=b("InstantGamesSubscribeBotAsyncDialogQuery.graphql"),o=i!==void 0?i:i=b("InstantGamesSubscribeBotAsyncDialogMutation.graphql"),p={image:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",display:"x1lliihq",height:"xkdpuxl",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x889kno",paddingEnd:"x1iji9kk",paddingBottom:"x1a8lsjc",paddingStart:"x1sln4lm",width:"x17tiq77",$$css:!0}};function a(a){var b,e,f,g=a.props,h=g.appID,i=g.onClose;g=m(!1);var j=g[0],q=g[1];g=m(!1);var r=g[0],s=g[1];l(function(){r===!1&&c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:h,event:"impression",section:"game_bot_subscribe_dialog"}}),s(!0)},[h,r]);g=d("CometRelay").usePreloadedQuery(n,a.queries.query);a=(g=(a=g.game)==null?void 0:a.instantGameInfoForEnvironment)!=null?g:{};g=a.botInfo;a=a.iconURI;var t=d("CometRelay").useRelayEnvironment(),u=function(){var a=new(c("GamesQuicksilverError"))("Player closed the subscribe bot async dialog").setCode("USER_INPUT");d("CometRelay").commitMutation(t,{mutation:o,variables:{input:{game_id:h,source:"IN_GAME_POPUP_UP",subscribe:!1}}});q(!0);c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:h,button_type:"close_button",event:"click",section:"game_bot_subscribe_dialog"}});i({data:a,type:"REJECT"})},v=function(){q(!0),d("CometRelay").commitMutation(t,{mutation:o,onCompleted:function(){c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:h,button_type:"accept_button",event:"click",section:"game_bot_subscribe_dialog"}}),i({data:null,type:"RESOLVE"})},onError:function(){var a=new(c("GamesQuicksilverError"))("Experienced an unknown error while subscribing the player").setCode("UNKNOWN");i({data:a,type:"REJECT"})},variables:{input:{game_id:h,source:"IN_GAME_POPUP_UP",subscribe:!0}}})};b=g==null?void 0:(b=g.opt_in_dialog_privacy_text)==null?void 0:b.text;e=(e=g==null?void 0:(e=g.opt_in_dialog_confirm_button_text)==null?void 0:e.text)!=null?e:"Turn On";f=(f=g==null?void 0:(f=g.opt_in_dialog_decline_button_text)==null?void 0:f.text)!=null?f:"Not now";g=g==null?void 0:(g=g.opt_in_dialog_title)==null?void 0:g.text;return k.jsx("div",{className:"xatbrnm x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:k.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:k.jsx(c("FullSizeVerticalScrollView.react"),{children:k.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"50%",translate:"0px",trigger:r,children:k.jsxs("div",{className:"x1jx94hy x1tlxs6b x1g8br2z x1gn5b1j x230xth x1ye9mx4 x1lliihq xw7yly9 x1emribx x1yztbdb x1i64zmx x6ikm8r x10wlt62 x1n2onr6 x2b8uid x1cb1t30",children:[a!=null?k.jsx(c("CometImage.react"),{src:a,xstyle:p.image}):null,k.jsx("div",{className:"xzsf02u x1lliihq xbg4bxt xdj266r x1jqylkn xat24cr x13ibhcj x6ikm8r xx6bls6 x1iji9kk x1sln4lm x1cnzs8 xlyipyv",children:g}),k.jsx("div",{className:"xi81zsa x1lliihq x10siri3 xdj266r x1jqylkn xat24cr x13ibhcj x6ikm8r x1cnzs8 xc73u3c xx6bls6 x5ib6vp x1yc453h xlyipyv",children:b}),j?k.jsx("div",{className:"x78zum5 xl56j7k xw7yly9 x1yztbdb",children:k.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})}):k.jsxs("div",{children:[k.jsx("div",{className:"x1rg5ohu xkzkwiv x1xmf6yo x1emribx x1e56ztr x1i64zmx xz84dc7",children:k.jsx(c("TetraButton.react"),{label:f,onPress:u,reduceEmphasis:!0,type:"secondary"})}),k.jsx("div",{className:"x1rg5ohu xkzkwiv x1xmf6yo x1emribx x1e56ztr x1i64zmx xz84dc7",children:k.jsx(c("TetraButton.react"),{label:e,onPress:v,testid:void 0})})]})]})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesJoinGroupDialogContentStandard.react",["fbt","CometCard.react","CometColumnItem.react","CometImage.react","CometPressable.react","CometRelay","GamesQuicksilverError","GroupsCometJoinGroupButtonRelay.react","InstantGamesGenericDialogContainer.react","InstantGamesGroupDiscovery.react","InstantGamesGroupFacepile.react","InstantGamesJoinGroupDialogContentStandard_Fragment.graphql","InstantGamesWebPlayTypedLogger","TetraText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={groupImage:{marginTop:"x9otpla",$$css:!0}},m=i!==void 0?i:i=b("InstantGamesJoinGroupDialogContentStandard_Fragment.graphql");function a(a){var b=a.appID,e=a.fragmentKey,f=a.reject,g=a.resolve;a=d("CometRelay").useFragment(m,e);e=a==null?void 0:a.viewer;a=(a=a==null?void 0:(a=a.communityData)==null?void 0:(a=a.groups)==null?void 0:a.nodes)!=null?a:[];a=a.length>0?a[0]:null;var i=a==null?void 0:a.url;if(a==null||e==null||i==null){f(new(c("GamesQuicksilverError"))("Operation cannot be performed due to missing group linked to game").setCode("GROUP_NOT_LINKED"));return null}return k.jsx(c("InstantGamesGenericDialogContainer.react"),{header:h._("__JHASH__299ukvpNMtX__JHASH__"),onDismiss:function(){return g()},children:k.jsx(c("CometColumnItem.react"),{paddingVertical:8,children:k.jsx(c("CometPressable.react"),{linkProps:{onNavigate:function(){new(c("InstantGamesWebPlayTypedLogger"))().setEvent("join_group_in_game_dialog_click").setIgAppID(b).log()},target:"_blank",url:i},children:k.jsxs(c("CometCard.react"),{background:"card-flat",border:"solid",children:[((f=a.profile_picture)==null?void 0:f.uri)!=null&&k.jsx(c("CometImage.react"),{src:(i=a.profile_picture)==null?void 0:i.uri,width:"100%",xstyle:l.groupImage}),k.jsxs("div",{className:"x1ye3gou xn6708d",children:[k.jsx("div",{className:"xzueoph xk9mzb7 xh8yej3",children:k.jsx(c("TetraText.react"),{align:"start",color:"primary",type:"headline4",children:a==null?void 0:a.name})}),k.jsx("div",{className:"xod5an3 xr9ek0c xh8yej3",children:k.jsx(c("InstantGamesGroupDiscovery.react"),{group:a})}),k.jsx("div",{className:"x1xmf6yo",children:k.jsx(c("InstantGamesGroupFacepile.react"),{group:a,viewer:e})}),k.jsx("div",{className:"xod5an3 x1xmf6yo",children:k.jsx(c("GroupsCometJoinGroupButtonRelay.react"),{group$key:a,isPrimary:!0,onPressJoined:function(){new(c("InstantGamesWebPlayTypedLogger"))().setEvent("join_group_in_game_dialog_confirm").setIgAppID(b).log()},openInNewTab:!0,reduceEmphasis:!0,source:"INSTANT_GAMES"})})]})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
InstantGamesInAppPurchaseECPDialogRendererWithPerfOptimization.react",["CometRelay","ECPGamesUPLLogger","ECPQPLUtils","FBPayECPConstantsUtils","FBPayECPIncentivesUtils","FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint","GamesQuicksilverError","InstantGamesErrorCode","InstantGamesIAP","InstantGamesIAPOperations","InstantGamesInAppPurchaseECPDialogRendererWithPerfOptimization_data.graphql","InstantGamesInAppPurchaseECPDialogRendererWithPerfOptimization_ecpConfigFragment.graphql","InstantGamesPreloadedECPDialogContext","RelayHooks","getJSEnumSafe","justknobx","react","useCometDynamicEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;e=j||d("react");var k=e.useContext,l=e.useEffect,m=e.useMemo,n=e.useRef,o=h!==void 0?h:h=b("InstantGamesInAppPurchaseECPDialogRendererWithPerfOptimization_data.graphql"),p=i!==void 0?i:i=b("InstantGamesInAppPurchaseECPDialogRendererWithPerfOptimization_ecpConfigFragment.graphql");function a(a){var b=n(!1),e=a.appID,f=a.ecpConfigFragmentKey,g=a.fragmentKey,h=a.reject,i=a.resolve,j=a.uplSessionID,q=d("CometRelay").useFragment(o,g),r=d("CometRelay").useFragment(p,f),s=n(!1),t=m(function(){return new(c("ECPGamesUPLLogger"))({client_suppression_policy:[],logging_policy_product:""},d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,"ecp","comet",j)},[j]);l(function(){var a=function(){c("justknobx")._("525")&&!s.current&&h(new(c("GamesQuicksilverError"))("User refreshed the page").setCode("USER_INPUT"))};window.addEventListener("beforeunload",a);return function(){return window.removeEventListener("beforeunload",a)}});var u=c("useCometDynamicEntryPointDialog")(c("FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint")),v=k(c("InstantGamesPreloadedECPDialogContext"));a=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").ProcessPurchaseMutation);var w=a[0];l(function(){var a;if(b.current)return;b.current=!0;a=(a=q.app)==null?void 0:(a=a.instantGameInfo)==null?void 0:a.purchaseOrder;if(a==null){h(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}var f=a.error;if(f!=null){var g;h(new(c("GamesQuicksilverError"))((g=f==null?void 0:f.message)!=null?g:"Failed to create purchase order").setCode((g=c("getJSEnumSafe")(c("InstantGamesErrorCode"),f==null?void 0:f.code))!=null?g:"PAYMENTS_PURCHASE_CREATION_FAILED"));return}f=a.appName;g=a.countryCode;var k=a.currencyCode,l=a.imageURL,m=a.isTestPurchase,n=a.orderID,o=a.price;a=a.title;if(f==null||k==null||l==null||n==null||o==null||a==null||m==null){h(new(c("GamesQuicksilverError"))("Failed to create purchase order: invalid product").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}g={appName:f,countryCode:(f=g)!=null?f:"",isTestPurchase:m,orderID:n,product:{imageURL:l,price:{amount:o,currency:k},title:a}};l={country_code:g.countryCode,optional_fields:(f=r.ecpConfig)==null?void 0:f.optionalFields,order_id:g.orderID,payment_container_mode:g.isTestPurchase?"TEST":"LIVE",payment_product_id:d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,receiver_description:g.product.title,receiver_icon_uri:g.product.imageURL,receiver_id:e,receiver_name:g.appName,session_id:j,shouldEnableAsyncLoadHCECall:((m=r.ecpConfig)==null?void 0:(n=m.optionalFields)==null?void 0:n.includes(d("FBPayECPConstantsUtils").FBPayComponentTypes.INCENTIVES))&&d("FBPayECPIncentivesUtils").isInMigrateIncentiveToHCEQE(),total:{currency:g.product.price.currency,value:g.product.price.amount.toFixed(2)}};o=function(){s.current||h(new(c("GamesQuicksilverError"))("User cancelled the order").setCode("USER_INPUT"))};k={onReturn:function(a){s.current=!0,w({onCompleted:function(a){a=a.processPurchase;if(a==null){h(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"));return}t.logCheckoutSuccess();i({developerPayload:a.developer_payload,isConsumed:a.is_consumed,paymentActionType:a.payment_action_type,paymentID:a.payment_id,productID:a.product_id,purchasePlatform:a.purchase_platform,purchasePrice:d("InstantGamesIAP").formatCurrencyAmount(a.purchase_currency_amount),purchaseTime:a.purchase_time,purchaseToken:a.purchase_token,signedRequest:a.signed_request})},onError:function(){t.logCheckoutFailure(),h(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"))},variables:{input:{invoice_id:a}}})},routeProps:l};d("ECPQPLUtils").logOpenECPDialogQPLMarker(v.openPreloadedECPDialog!=null);v.openPreloadedECPDialog!=null?v.openPreloadedECPDialog(babelHelpers["extends"]({},k,{routeProps:babelHelpers["extends"]({},k.routeProps,{isPreloaded:!0})}),o):u({routeProps:l},k,o)},[e,(g=q.app)==null?void 0:(f=g.instantGameInfo)==null?void 0:f.purchaseOrder,u,w,h,i,t,j,v,(a=r.ecpConfig)==null?void 0:a.optionalFields])}g["default"]=a}),98);
-----
InstantGamesMessagingConsentDialogContainer.react",["GamesQuicksilverError","InstantGamesContextChangeDialog.react","InstantGamesEPDUtils","InstantGamesMessagingConsentDialogContainer_SetBlockMessagingMutation.graphql","InstantGamesMessagingConsentDialogContainer_token.graphql","InstantGamesMessagingConsentDialogContainer_user.graphql","InstantGamesWebDialogsFalcoEventFalcoEvent","RelayHooks","react","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react")),m=k.useCallback,n=h!==void 0?h:h=b("InstantGamesMessagingConsentDialogContainer_SetBlockMessagingMutation.graphql");function a(a){var e=a.params,f=a.token;a=a.user;f=d("RelayHooks").useFragment(i!==void 0?i:i=b("InstantGamesMessagingConsentDialogContainer_token.graphql"),f);a=d("RelayHooks").useFragment(j!==void 0?j:j=b("InstantGamesMessagingConsentDialogContainer_user.graphql"),a);var g=e.appID,h=e.appName,k=e.onClose;e=d("RelayHooks").useMutation(n);var o=e[0];e=m(function(){c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{click_action:"dismiss_dialog",dialog_type:"recipient_epd_consent_dialog",event:"click",game_id:g,is_epd_dialog:!0}}),k({data:new(c("GamesQuicksilverError"))("User closed the dialog").setCode("USER_INPUT"),type:"REJECT"})},[g,k]);var p=f.contextName,q=f.contextSourceID,r=f.enableStoringConsentPreference;a=(a=a==null?void 0:(a=a.picture)==null?void 0:a.uri)!=null?a:"";h=d("InstantGamesEPDUtils").getInstantGamesContextChangeDescriptionForEPD(h,p);var s=m(function(a,b){o({onCompleted:function(){c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{block_messaging:a,click_action:"accept_dialog",dialog_type:"recipient_epd_consent_dialog",event:"click",game_id:g,is_epd_dialog:!0}}),k({data:null,type:"RESOLVE"})},onError:function(){c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{block_messaging:a,dialog_type:"recipient_epd_consent_dialog",event:"error",game_id:g,is_epd_dialog:!0}}),k({data:new(c("GamesQuicksilverError"))("Failed to set message block for user.").setCode("NETWORK_FAILURE"),type:"REJECT"})},variables:{input:{app_id:g,block_messaging:a,context_source_id:q,store_preference:b}}})},[g,o,q,k]),t=m(function(){return c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{dialog_type:"recipient_epd_consent_dialog",event:"impression",game_id:g,is_epd_dialog:!0}})},[g]);t=c("useSinglePartialViewImpression")({onImpressionStart:t});return l.jsx("div",{className:"xrmyhay x78zum5 x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:l.jsx("div",{className:"x1ey2m1c xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe xwa60dl xh8yej3",ref:t,children:l.jsx(c("InstantGamesContextChangeDialog.react"),{context:f,contextName:p,hideNoMessagingOption:!0,onClose:e,onSwitch:s,playerPhotoURI:a,shouldEnableStoringConsentPreference:(t=r)!=null?t:!1,shouldShowConsentFlow:!0,text:h,threadEntrypoint:!0})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesTournamentStatusDialog.react",["fbt","CometRelay","GamesQuicksilverError","InstantGamesTournamentStatusDialogContainer.react","InstantGamesTournamentStatusDialogQuery.graphql","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var e=a.queries.query;e=d("CometRelay").usePreloadedQuery(i!==void 0?i:i=b("InstantGamesTournamentStatusDialogQuery.graphql"),e);if(e.games_tournament_info!=null)return k.jsx(c("InstantGamesTournamentStatusDialogContainer.react"),{closeError:new(c("GamesQuicksilverError"))("The player dismissed the dialog").setCode("USER_INPUT"),ctaText:h._("__JHASH__MzZLdR9aMXd__JHASH__"),onClose:a.props.onClose,tournamentFragmentKey:e.games_tournament_info,userFragmentKey:e.me});else return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
InstantGamesCustomLinkShareContainer.react",["fbt","CometProgressRingIndeterminate.react","GamesQuicksilverError","InstantGamesBottomSheet.react","InstantGamesButton.react","InstantGamesCustomLinkShareContainerCreateLinkMutation.graphql","InstantGamesCustomLinkShareDialogContent.react","RelayHooks","TetraText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useEffect,n=e.useState,o=i!==void 0?i:i=b("InstantGamesCustomLinkShareContainerCreateLinkMutation.graphql");function a(a){var b=n(null),e=b[0],f=b[1];b=n(null);var g=b[0],i=b[1],j=a.reject;b=l(function(){j(new(c("GamesQuicksilverError"))("Request to fetch the custom link failed.").setCode("NETWORK_FAILURE"))},[j]);var p=a.resolve,q=l(function(){p()},[p]),r=d("RelayHooks").useMutation(o),s=r[0];r=r[1];var t=a.appID,u=a.requestData,v=a.requestImage,w=a.requestText;m(function(){var a=s({onCompleted:function(a){return f(a.createPlayLink)},onError:function(a){return i(a)},variables:{input:{app_id:t,link_params:{payload:u,preview_description:w,preview_image:v}}}});return function(){return a.dispose()}},[s,t,u,w,v]);if(r)return k.jsx("div",{className:"x6s0dn4 xrmyhay x1ey2m1c x78zum5 x5yr21d xl56j7k x10l6tqk xh8yej3",children:k.jsx(c("CometProgressRingIndeterminate.react"),{color:"light",size:24})});if(g)return k.jsx(c("InstantGamesBottomSheet.react"),{onDismiss:q,children:k.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf xl56j7k xz9dl7a xn6708d xsag5q8 x1ye3gou xh8yej3",children:[h._("We ran into a problem while trying to perform this request."),k.jsx("div",{className:"x1anpbxc x1wo2wf3",children:k.jsx(c("TetraText.react"),{numberOfLines:1,type:"body2",children:k.jsx(c("InstantGamesButton.react"),{isDisabled:!1,onClick:b,title:h._("Close")})})})]})});return e!=null?k.jsx(c("InstantGamesCustomLinkShareDialogContent.react"),{appID:t,link:e,reject:a.reject,resolve:a.resolve}):k.jsx("div",{className:"x6s0dn4 xrmyhay x1ey2m1c x78zum5 x5yr21d xl56j7k x10l6tqk xh8yej3",children:k.jsx(c("CometProgressRingIndeterminate.react"),{color:"light",size:24})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
InstantGamesCustomLinkShareDialogComposer.react",["fbt","CometProfilePhoto.react","CometProgressRingIndeterminate.react","CometRelay","Dialog","GamesQuicksilverError","GamesUnifiedSharingFalcoEvent","GamesUnifiedSharingLoggerUtils","GamingPlayLinkPreview.react","InstantGamesButton.react","InstantGamesCustomLinkShareComposerEnum","InstantGamesCustomLinkShareDialogComposer_ShareMutation.graphql","InstantGamesCustomLinkShareDialogComposer_fragment.graphql","InstantGamesPrivacySelector.react","react"],(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.useState,o=h._("Share"),p=i!==void 0?i:i=b("InstantGamesCustomLinkShareDialogComposer_ShareMutation.graphql"),q=j!==void 0?j:j=b("InstantGamesCustomLinkShareDialogComposer_fragment.graphql");function a(a){var b=d("CometRelay").useFragment(q,a.viewer),e=n(a.link),f=e[0],g=e[1];e=n("");var i=e[0],j=e[1];e=n(null);var k=e[0],s=e[1];e=n(!1);var t=e[0],u=e[1],v=a.onClick,w=a.resolve;e=d("CometRelay").useMutation(p);var x=e[0],y=d("GamesUnifiedSharingLoggerUtils").getShareFromEntrypointForLinkShare("custom_link_share"),z=d("GamesUnifiedSharingLoggerUtils").getShareToDestinationForActionType("facebook_post"),A=m(function(b){c("GamesUnifiedSharingFalcoEvent").log(function(){return{app_id:a.appID,event:b,share_creation_source:"share_link_async",share_from_entrypoint:y,share_to_destination:z,share_type:"link_in_game"}})},[z,y,a.appID]),B=function(){if(c("Dialog")===null)return;var a=h._("Shared to timeline");new(c("Dialog"))().setBody(a).setAutohide(2500).setModal(!0).show()},C=a.shareScrapeData;e=function(){u(!0);s(null);A("share_cta_click");var b={attachments:[{link:{share_scrape_data:C}}],audience:{privacy:{base_state:r(i)}},message:{text:f},source:"WWW"};x({onCompleted:function(){B(),v(c("InstantGamesCustomLinkShareComposerEnum").None),w()},onError:function(b){a.reject(new(c("GamesQuicksilverError"))("Client cannot perform this operation")),s(b)},variables:{input:b}})};return l.jsx("div",{children:l.jsxs("div",{className:"xdj266r xmo9yow xyorhqc x17adc0v",children:[l.jsxs("div",{className:"x78zum5 xyorhqc",children:[l.jsx("div",{className:"xmo9yow",children:l.jsx(c("CometProfilePhoto.react"),{size:48,source:{uri:a.playerImage}})}),l.jsxs("div",{children:[l.jsx("div",{className:"x1lliihq x1l97dnv x117nqv4 x1yc453h xh8yej3",children:a.playerName}),l.jsx(c("InstantGamesPrivacySelector.react"),{onValueChanged:function(a){return j(a)},viewer:b})]})]}),l.jsx("textarea",{className:"x18o3ruo x1ejq31n xd10rxx x1sy0etr x17r0tee x1gnnqk1 x17ddzgb x5yr21d xu06os2 x1a2a7pz xh8yej3",onChange:function(a){return g(a.target.value)},placeholder:h._("Say something about this link"),value:f}),l.jsx(c("GamingPlayLinkPreview.react"),{appID:a.appID,link:a.link}),t?l.jsx("div",{className:"x1ok221b",children:l.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})}):l.jsx("div",{className:"xkzkwiv x1anpbxc",children:l.jsx(c("InstantGamesButton.react"),{isDisabled:t,onClick:e,title:o})}),k!=null&&h._("Something went wrong. Please try again.")]})})}a.displayName=a.name+" [from "+f.id+"]";function r(a){return a==="just_me"?"SELF":a}g["default"]=a}),226);
-----
InstantGamesCustomLinkShareMessengerComposer.react",["cx","fbt","BUITextArea.react","ClientIDs","CometProgressButtonIndeterminate.react","CometRow.react","CometRowItem.react","CurrentUser","Dialog","GamesQuicksilverError","GamesUnifiedSharingEvent","GamesUnifiedSharingFalcoEvent","GamesUnifiedSharingLoggerUtils","GamingPlayLinkPreview.react","InstantGamesCustomLinkShareComposerEnum","InstantGamesCustomLinkShareMessengerComposer_ShareMutation.graphql","MessengerComposeViewHeader.react","RelayAPIConfig","RelayHooks","TetraButton.react","emptyFunction","immutable","react"],(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,q=j!==void 0?j:j=b("InstantGamesCustomLinkShareMessengerComposer_ShareMutation.graphql");function a(a){var e=p(c("immutable").List()),f=e[0],g=e[1];e=p(a.link);var h=e[0];e=e[1];var j=p(null),k=j[0],r=j[1];j=d("RelayHooks").useMutation(q);var s=j[0],t=j[1],u=a.onClick,v=a.resolve,w=b("GamesUnifiedSharingEvent"),x=d("GamesUnifiedSharingLoggerUtils").getShareToDestinationForActionType("messenger"),y=m(function(b){c("GamesUnifiedSharingFalcoEvent").log(function(){return{app_id:a.appID,event:b,share_creation_source:"share_link_async",share_to_destination:x,share_type:"link_in_game"}})},[w,x,a.appID]),z=o(!1);n(function(){z.current||(z.current=!0,y(w.SHARE_DIALOG_IMPRESSION))},[w.SHARE_DIALOG_IMPRESSION,y]);j=function(){a.onClick(c("InstantGamesCustomLinkShareComposerEnum").None);a.resolve();y(w.SHARE_DIALOG_DISMISS);return};var A=function(a){g(f.concat(a))},B=function(a){g(f["delete"](f.indexOf(a)))},C=function(){var a=i._("Shared to Messenger");new(c("Dialog"))().setBody(a).setAutohide(2500).setModal(!0).show()},D=function(){g(c("immutable").List())},E=function(){r(null);y(w.SHARE_CTA_CLICK);if(t)return;var b=h,e=f.map(function(a){return a.getUniqueID()}).toArray();b={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),link:a.link,message:b,thread_ids:e};s({onCompleted:function(a){C(),u(c("InstantGamesCustomLinkShareComposerEnum").None),v()},onError:function(b){a.reject(new(c("GamesQuicksilverError"))("Client cannot perform this operation")),r(b)},variables:{input:b}})},F=i._("Share to Messenger"),G=i._("Send to");return l.jsxs("div",{className:"_98rz",children:[l.jsxs("div",{children:[l.jsx(c("MessengerComposeViewHeader.react"),{className:"_1e1o",forceHideClearButton:!1,onAddRecipient:A,onClear:D,onRemoveRecipient:B,onResize:c("emptyFunction"),recipients:f,viewer:c("CurrentUser").getID()}),l.jsx("div",{className:"_98s5",children:l.jsx(c("BUITextArea.react"),{label:F,labelIsHidden:!0,maxHeight:15,onChange:e,placeholder:i._("Write a message..."),value:h})}),l.jsx("div",{className:"_9e0a",children:l.jsx(c("GamingPlayLinkPreview.react"),{appID:a.appID,link:a.link})})]}),l.jsxs(c("CometRow.react"),{children:[l.jsx(c("CometRowItem.react"),{children:l.jsx(c("TetraButton.react"),{label:i._("Cancel"),onPress:j,type:"secondary"})}),l.jsx(c("CometRowItem.react"),{children:t?l.jsx("div",{children:l.jsx(c("CometProgressButtonIndeterminate.react"),{label:G})}):l.jsx("div",{children:l.jsx(c("TetraButton.react"),{disabled:!f.size||t,label:G,onPress:E,type:"primary"})})})]}),k!=null&&i._("Something went wrong. Please try again.")]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
InstantGamesPassThroughAgent",["ClientIDs","CometRelay","GamesQuicksilverError","InstantGamesPassThroughAgent_PassThroughMutation.graphql","InstantGamesSessionManager","Promise","RelayAPIConfig"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=1e3,k=h!==void 0?h:h=b("InstantGamesPassThroughAgent_PassThroughMutation.graphql");function l(a){var b={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),game_id:a.gameID,is_secure_shield_request:a.isSecureShieldRequest,request:a.request,sdk_version:a.sdkVersion,session_id:c("InstantGamesSessionManager").getSessionID()},e=new File([new Blob([a.data],{type:"text/plain"})],a.gameID);if(e.size-----
InstantGamesContextPlayersFetcher",["CometRelay","GamesQuicksilverError","InstantGamesContextPlayersFetcher_Query.graphql","Promise","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("InstantGamesContextPlayersFetcher_Query.graphql");a=function(){function a(){}var e=a.prototype;e.fetchAsync=function(a,e,f){return d("CometRelay").fetchQuery(f,j,{context_id:a,game_id:e}).toPromise().then(function(a){return a==null?void 0:(a=a.node)==null?void 0:a.contextPlayers}).then(function(a){return!Array.isArray(a)?(i||(i=b("Promise"))).reject():a.map(function(a){var b,d=a==null?void 0:a.playerID;b=a==null?void 0:(b=a.user)==null?void 0:b.name;a=a==null?void 0:(a=a.user)==null?void 0:(a=a.redirectProfilePicture)==null?void 0:a.uri;if(d==null)throw c("unrecoverableViolation")("Failed to parse player from value","instant_games");return{id:d,name:b,photo:a}})})["catch"](function(a){return(i||(i=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Failed to fetch requested context players").setCode("NETWORK_FAILURE"))})};return a}();e=new a();g["default"]=e}),98);
-----
InstantGamesMessageHandlerRegistry",["FBLogger","GamesQuicksilverError","InstantGameSDKTypedLogger","InstantGamesGameState","stronglyTypeSDKMessage"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,c,d,e){this.gameID=a,this.messageSender=b,this.apiRestrictor=c,this.supportedAPIs=d,this.preGameStartSupportedAPIs=e,this.alwaysAllowed=new Set(["showgenericdialogasync","initializeasync","onbeginload","onconsole","onprogressload","ongameready","onscore","onscreenshot","onpicture","onendgame","getplayerdataasync","setplayerdataasync","getconnectedplayersasync","getsignedplayerinfoasync","shareasync","contextchooseasync","quit","setsessiondata","inventoryunlockitemasync","contextswitchasync","flushplayerdataasync","contextcreateasync","contextmatchcreateasync","contextmatchfetchasync","contextmatchendasync","contextmatchdatafetchasync","contextmatchdatasaveasync","contextplayersfetchasync","contextmatchdataincasync","sendpassthroughasync","changecontextasync","matchplayerasync","cancreateshortcutasync","createshortcutasync","cloudgamingconnectionerror"]),this.messageHandlers=new Map()}var b=a.prototype;b.setMessageHandlerFor=function(a,b,c){if(!this.alwaysAllowed.has(a)&&!this.supportedAPIs.includes(a))return;if(this.apiRestrictor.shouldRestrictClientMessage(a))return;this.messageHandlers.has(a)||this.messageHandlers.set(a,new Map());(a=this.messageHandlers.get(a))==null?void 0:a.set(b,c)};b.setTypedMessageHandlerFor=function(a,b,d){var e=function(b){if(b.type!==a){c("FBLogger")("instant_games").warn("Message type "+b.type+" does not match handler type "+a+".");return}d(b)};this.setMessageHandlerFor(a,b,e)};b.removeMessageHandlerFor=function(a,b){var c;(c=this.messageHandlers.get(a))==null?void 0:c["delete"](b);((c=this.messageHandlers.get(a))==null?void 0:c.size)===0&&this.messageHandlers["delete"](a)};b.hasMessageHandlerFor=function(a){a=(a=this.messageHandlers.get(a))==null?void 0:a.size;return a!=null&&a>0};b.getSupportedTypes=function(){return Array.from(this.messageHandlers.keys())};b.handleMessage=function(a,b,c,d){var e=this;if(!this.messageHandlers.has(a))return;if(this.apiRestrictor.shouldRestrictPreTosMessage(a,b,d))return;(d=this.messageHandlers.get(a))==null?void 0:d.forEach(function(d){e.$1(d,a,b,c)})};b.$1=function(a,b,e,f){f!==d("InstantGamesGameState").PLAYING&&new(c("InstantGameSDKTypedLogger"))().setEvent("pre_game_start_api_call").setEventName(b).setGameID(this.gameID).setEventType("CLIENT").log();if(!this.$2(b,f)){e&&e.promiseID&&this.messageSender.rejectGamePromise(e.promiseID,new(c("GamesQuicksilverError"))("Cannot perform this operation before game start.").setCode("INVALID_OPERATION"));return}f=c("stronglyTypeSDKMessage")(b,e);if(f==null){c("FBLogger")("instant_games").warn("malformed message "+e+" for type "+b);return}a(f)};b.$2=function(a,b){return b===d("InstantGamesGameState").PLAYING||this.preGameStartSupportedAPIs.includes(a)};return a}();g["default"]=a}),98);
-----
InstantGamesSignedPlayerInfoFetcher",["CometRelay","GamesQuicksilverError","InstantGamesPlayerMutations","Promise","unrecoverableViolation","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(){function a(){}var e=a.prototype;e.fetchAsync=function(a,e,f){return new(h||(h=b("Promise")))(function(b,g){d("CometRelay").commitMutation(f,{mutation:d("InstantGamesPlayerMutations").GetSignedPlayerInfoMutation,onCompleted:function(a){return b(a)},onError:function(a){return g(a)},variables:{input:{client_mutation_id:c("uuidv4")(),game_id:a,request_payload:e}}})}).then(function(a){var b;b=a==null?void 0:(b=a.signedPlayerInfo)==null?void 0:b.playerID;a=a==null?void 0:(a=a.signedPlayerInfo)==null?void 0:a.signedRequest;if(b==null||a==null)throw c("unrecoverableViolation")("Failed to parse player from query result","instant_games");return{playerID:b,signature:a}})["catch"](function(a){a=new(c("GamesQuicksilverError"))().setMessage("Failed to retrieve signed player information."+a).setCode("NETWORK_FAILURE");throw a})};return a}();e=new a();g["default"]=e}),98);
-----
useRejectUnsupportedGenericDialogRequests",["GamesQuicksilverError","InstantGamesGenericDialogContext","react","useRegisterInstantGamesMessageHandler"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useContext;function a(a){var b=a.messageHandlerRegistry,d=a.messageSender;a=j(c("InstantGamesGenericDialogContext"));var e=a.getGenericDialog;a=i(function(a){if(e(a.data.dialogRequest.request)!=null)return;d.rejectGamePromise(a.data.promiseID,new(c("GamesQuicksilverError"))("Client does not support this operation").setCode("CLIENT_UNSUPPORTED_OPERATION"))},[e,d]);c("useRegisterInstantGamesMessageHandler")({handler:a,messageHandlerRegistry:b,type:"showgenericdialogasync"})}g["default"]=a}),98);
-----
InstantGamesContextualPlayerPresentation.react",["CanvasToInstantGamesSilentMigrationNotice.entrypoint","CloudGameFriendFinderInviteDialogSDKMessageHandler.react","CloudGameRequestsDialog.entrypoint","CloudGamesDeprecationUserNoticeDialog.entrypoint","CloudGamingConstants","CloudGamingE2EGenericDialog.entrypoint","CloudGamingMessageHandlerRegistry","CloudGamingMessageHandlingSubscriptions","CloudGamingMultiTouchOverlayTutorialDialogSDKMessageHandler.react","CloudGamingPlayerContext","CometInstantGamesPlayerGlimmer.react","CometPlaceholder.react","CometRelay","CurrentLocale","FBLogger","GamesQuicksilverContextKey","GamesQuicksilverError","GamesQuicksilverFunnelLogger","IGPlatformUtils","InstantGameContextType","InstantGameCrossPlayMigrationDialog.entrypoint","InstantGameGamePlayerContext","InstantGamesAdsManagerSDKMessageHandler","InstantGamesApiRestrictor","InstantGamesAuthorizeDialogSDKMessageHandler.react","InstantGamesChallengeToast.react","InstantGamesContextCreatorSDKMessageHandler.react","InstantGamesContextSelectorSDKMessageHandler.react","InstantGamesContextStorageSDKMessageHandler.react","InstantGamesContextSwitcherSDKMessageHandler.react","InstantGamesContextualPlayerPresentation_contextToken.graphql","InstantGamesContextualPlayerPresentation_gameInfo.graphql","InstantGamesContextualPlayerPresentation_userScope.graphql","InstantGamesCreateGamingSquadDialog.entrypoint","InstantGamesCustomInviteGenericDialog.entrypoint","InstantGamesCustomLinkShareDialog.entrypoint","InstantGamesEventHandler.react","InstantGamesFollowPageDialog.entrypoint","InstantGamesGameShareDialogSDKMessageHandler.react","InstantGamesGameState","InstantGamesGameSwitchDialogSDKMessageHandler.react","InstantGamesGenericContextSoloSwitchDialog.entrypoint","InstantGamesGenericContextSwitchDialog.entrypoint","InstantGamesGenericDialogWithEntryPoint.react","InstantGamesGenericMatchMakingDialog.entrypoint","InstantGamesHeartbeatLoggingIntervalConfig","InstantGamesInAppPurchaseSDKMessageHandler.react","InstantGamesInAppPurchaseSubscriptionSDKMessageHandler.react","InstantGamesJoinGamingSquadDialog.entrypoint","InstantGamesJoinGroupDialog.entrypoint","InstantGamesLeaveGamingSquadDialog.entrypoint","InstantGamesMatchPlayerDialogSDKMessageHandler.react","InstantGamesMessageHandlerRegistry","InstantGamesMessageListener","InstantGamesMessagingConsentDialogRoot.entrypoint","InstantGamesMessengerGameUpdatesOptInSDKMessageHandler.react","InstantGamesMessengerGameUpdatesWinbackSDKMessageHandler.react","InstantGamesNTViewType","InstantGamesOBANotice.entrypoint","InstantGamesOpenExternalLinkDialog.entrypoint","InstantGamesPassThroughRequestType","InstantGamesPaymentsSDKMessageHandler.react","InstantGamesPinShortcutDialogSDKMessageHandler.react","InstantGamesPlayerStateSDKMessageHandler.react","InstantGamesPlayerUtils","InstantGamesPostUserAchievementDialog.entrypoint","InstantGamesPreloadedECPDialogContext","InstantGamesSBXConsentNotice.react","InstantGamesSBXOnboardingTosedPlayerDialog.entrypoint","InstantGamesSDKMessages","InstantGamesSendPassThroughSDKMessageHandler.react","InstantGamesSessionManager","InstantGamesSubscribeBotAsyncDialogSDKMessageHandler.react","InstantGamesTournamentCreateDialog.entrypoint","InstantGamesTournamentShareDialog.entrypoint","InstantGamesTournamentStatusDialog.entrypoint","InstantGamesViewStreamersDialog.entrypoint","InstantGamesWebPlayTypedLogger","InteractivePluginContext","UserAgent","Visibility","WebPixelRatio","castToEnum","deferredLoadComponent","getJSEnumSafe","gkx","justknobx","promiseDone","react","requireDeferred","useContextKey","useHandleVisibilityChange","useInstantGamesMaybePreloadECP","useInstantGamesPlayerTimeSpentLogging","useInteractivePluginSDKMessageHandler.react","useManageGameSession","useManagePlayerNameAndPhoto","useMarkInstantGamePlayed","usePayloadHandlerRef","usePlayerCleanup","useRejectUnsupportedGenericDialogRequests","useStable"],(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.useContext,n=e.useState,o=c("deferredLoadComponent")(c("requireDeferred")("InstantGamesLoadingScreen.react").__setRef("InstantGamesContextualPlayerPresentation.react")),p=function(b){babelHelpers.inheritsLoose(a,b);function a(a){var e;e=b.call(this,a)||this;e.$23=function(){var a=e.props.contextKey.getSDKContextInfo();d("GamesQuicksilverFunnelLogger").logAction(e.props.analyticsInfo.getFunnelName(),"game_loading_view_completed",null,null,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS());var b=e.props.isTosed||e.props.gameInfo.isPreviouslyTosed===!0;e.props.messageSender.sendMessage("gamestart",!b&&e.props.gameInfo.canDeferTos===!0?{}:babelHelpers["extends"]({},a,{customUpdateID:e.props.customUpdateID,entryPoint:e.props.entryPoint,entryPointData:e.props.entryPointData,locale:c("CurrentLocale").get(),playerName:e.props.playerName,playerPhoto:e.props.playerPhoto}));e.props.onGameStateChange(d("InstantGamesGameState").PLAYING);e.props.markInstantGamePlayed();d("GamesQuicksilverFunnelLogger").logGamePlayStart(e.props.analyticsInfo.getFunnelName(),"start_screen",e.props.gameInfo.gameID||"",e.props.contextType,e.props.contextSourceID,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS());d("GamesQuicksilverFunnelLogger").logGameActive(e.props.analyticsInfo.getFunnelName(),e.props.gameInfo.gameID||"",e.props.contextType,e.props.contextSourceID,(b=e.props.contextToken)==null?void 0:b.contextID,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS());new(c("InstantGamesWebPlayTypedLogger"))().setEvent("game_active").setIgAppID(e.props.gameInfo.gameID).setRawContextSourceID(e.props.contextSourceID).setContextTokenID(e.props.contextToken?e.props.contextToken.contextID:null).setContextType(e.props.contextType).setSource(e.props.entryPoint).setIsMobile(d("InstantGamesPlayerUtils").isCometOnMobile()).log();e.$16(!0);e.props.analyticsInfo.getFunnelTimeout()>0&&d("GamesQuicksilverFunnelLogger").setFunnelTimeout(e.props.analyticsInfo.getFunnelName(),e.props.analyticsInfo.getFunnelTimeout());(a=e.props.interactivePluginLogger)==null?void 0:a.log("plugin_instance_started",e.props.gameInfo.gameID)};e.state=e.$8(a);e.$4=((a=e.props.userScope)==null?void 0:a.privacyNotice)==null;e.$5=c("InstantGamesHeartbeatLoggingIntervalConfig").heartbeat_interval;e.$9();e.$7=!c("gkx")("1172");return e}var e=a.prototype;e.componentDidMount=function(){var a=this;this.$7||this.props.startNewSession();this.$3=this.$10(this.props);!this.props.isTosed&&!this.props.gameInfo.isCloudGame&&this.$3.lock();this.props.bufferedMessageDelegate(function(b){return a.$11(b)});this.props.browserUnloadListener.registerCallback(function(){a.$12()});this.props.contextChangePromiseID?this.$13(this.props.contextChangePromiseID):this.$14()&&this.$15();this.props.gameHasStarted&&this.$16(!1)};e.componentDidUpdate=function(a){var b,d=this;a.focusIframe();if((a==null?void 0:(b=a.contextToken)==null?void 0:b.contextID)===((b=this.props)==null?void 0:(b=b.contextToken)==null?void 0:b.contextID))return;c("promiseDone")(this.props.playerState.savePlayerStateAsync());this.setState(this.$8(a),function(){d.props.source!==a.source&&(d.$3.close(),d.$3=d.$10(a)),d.props.endCurrentSession(),d.props.startNewSession(),d.props.contextChangePromiseID?d.$13(d.props.contextChangePromiseID):a.gameHasStarted&&d.$15()})};e.componentWillUnmount=function(){this.$12()};e.$12=function(){this.$7||this.props.endCurrentSession(),this.$3.close(),window.clearInterval(this.$6)};e.$8=function(a){return{}};e.$17=function(a,b){var e=c("castToEnum")(a,c("InstantGamesSDKMessages"),null),f=c("castToEnum")(a,d("CloudGamingConstants").CloudGamingMessageTypes,null);if(this.props.igMessageHandlerRegistry!=null&&e!=null&&this.props.igMessageHandlerRegistry.hasMessageHandlerFor(e)){this.props.igMessageHandlerRegistry.handleMessage(e,b,this.props.gameState,this.props.isTosed||((e=this.props.gameInfo)==null?void 0:e.isPreviouslyTosed)===!0)}else this.props.cloudMessageHandlerRegistry!=null&&f!=null&&this.props.cloudMessageHandlerRegistry.hasMessageHandlerFor(f)?this.props.cloudMessageHandlerRegistry.handleMessage(f,this.props.gameState):c("FBLogger")("instant_games").warn("will not handle API call:"+a)};e.$10=function(a){var b=this,d=function(a,c){b.$17(a,c)};a=new(c("InstantGamesMessageListener"))(a.source,a.overrideGameURL||a.gameInfo.gameURI,d);a.init();return a};e.$9=function(){var a=this,b=function(b){a.$18(b)};this.props.igMessageHandlerRegistry.setMessageHandlerFor("onbeginload","on-begin-load",b);b=function(b){a.$19(b)};this.props.igMessageHandlerRegistry.setMessageHandlerFor("onprogressload","on-progress-load",b);b=function(b){a.$20()};this.props.igMessageHandlerRegistry.setMessageHandlerFor("ongameready","on-game-ready",b);b=function(b){return a.$21(b)};this.props.igMessageHandlerRegistry.setMessageHandlerFor("onendgame","on-end-game",b);b=function(){a.props.onIframeNotAllowedToLaunch(),d("InstantGamesEventHandler.react").inform("instant_games_quit")};this.props.igMessageHandlerRegistry.setMessageHandlerFor("quit","quit",b);b=function(a){c("InstantGamesSessionManager").setData(a)};this.props.igMessageHandlerRegistry.setMessageHandlerFor("setsessiondata","set-session-data",b);b=function(b){var d=b.contextSourceID,e=b.promiseID;b=c("getJSEnumSafe")(c("InstantGameContextType"),b.contextType);if(!e)return;if(!b||b!=="SOLO"&&!d){a.props.messageSender.rejectGamePromise(e,new(c("GamesQuicksilverError"))("Missing required parameter").setCode("INVALID_PARAM"));return}return a.props.onSwitchContext({id:d,promiseID:e,type:(d=b)!=null?d:"GENERIC"})};this.props.igMessageHandlerRegistry.setMessageHandlerFor("changecontextasync","change-context-async",b);b=function(){a.context.setIsScreenshotProviderRegistered(!0),d("GamesQuicksilverFunnelLogger").logAction(a.props.analyticsInfo.getFunnelName(),"register_screenshot_provider")};this.props.igMessageHandlerRegistry.setMessageHandlerFor("registerscreenshotprovider","register-screenshot-provider",b);this.props.cloudMessageSubscriptions.registerCloudMessageHandlers();this.props.adsMessageHandler.registerSDKMessageHandlers()};e.$11=function(a){for(var a=a,b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;var e=d.content;d=d.type;this.$17(d,e)}};e.$18=function(a){var b=window.performance;this.$1=b.now();this.$2=a;this.props.onGameStateChange(d("InstantGamesGameState").LOADING);this.props.onProgressChange(0);d("GamesQuicksilverFunnelLogger").logAction(this.props.analyticsInfo.getFunnelName(),"loading_started",null,null,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS())};e.$19=function(a){this.$2!=null&&this.props.onProgressChange(Math.round(a/this.$2*100))};e.$22=function(){c("UserAgent").isPlatform("iOS")&&c("IGPlatformUtils").getEnvironmentIsCoplay()&&(c("IGPlatformUtils").getSupportedScriptMessages().includes("ongameready")&&(window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.quicksilver_static_ongameready&&window.webkit.messageHandlers.quicksilver_static_ongameready.postMessage({})))};e.$20=function(){d("GamesQuicksilverFunnelLogger").logAction(this.props.analyticsInfo.getFunnelName(),"game_ready",null,null,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS()),this.props.onGameStateChange(d("InstantGamesGameState").READY),this.props.onProgressChange(100),this.$22()};e.$21=function(a){var b=this;if(!this.props.gameHasStarted){this.props.messageSender.sendMessage("restart",{error:{code:"INVALID_OPERATION",message:"Cannot post an update before the game has even started."}});return}this.props.payloadHandlerRef.current.handle(a).then(function(){return b.$24()})["catch"](function(a){return b.$25(a)})};e.$24=function(){c("promiseDone")(this.props.playerState.savePlayerStateAsync()),d("GamesQuicksilverFunnelLogger").logGamePlayEnd(this.props.analyticsInfo.getFunnelName(),this.props.gameInfo.gameID||"",this.props.contextType,this.props.contextSourceID,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS()),this.$15()};e.$25=function(a){this.props.messageSender.sendMessage("restart",{error:{message:a.message||"Failure while processing end game payload"}})};e.$15=function(){this.props.messageSender.sendMessage("restart",babelHelpers["extends"]({},this.props.contextKey.getSDKContextInfo(),{updatePayload:null})),this.props.gameHasStarted&&this.props.onGameStateChange(d("InstantGamesGameState").PLAYING),this.props.focusIframe(),d("GamesQuicksilverFunnelLogger").logGamePlayStart(this.props.analyticsInfo.getFunnelName(),"replay",this.props.gameInfo.gameID||"",this.props.contextType,this.props.contextSourceID,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS())};e.$13=function(a){this.props.onGameStateChange(d("InstantGamesGameState").PLAYING),this.props.messageSender.resolveGamePromise(a,babelHelpers["extends"]({},this.props.contextKey.getSDKContextInfo())),this.props.onContextChangePromiseIDChange(null)};e.$14=function(){return this.props.gameHasStarted};e.$16=function(a){var b=this;a&&d("GamesQuicksilverFunnelLogger").logHeartbeat(this.props.analyticsInfo.getFunnelName(),this.props.gameInfo.gameID||"",this.$5||0,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS());this.$5>0&&(window.clearInterval(this.$6),this.$6=window.setInterval(function(){c("Visibility").isHidden()||d("GamesQuicksilverFunnelLogger").logHeartbeat(b.props.analyticsInfo.getFunnelName(),b.props.gameInfo.gameID||"",b.$5||0,d("useInstantGamesPlayerTimeSpentLogging").getTimespentMS())},this.$5*1e3))};e.render=function(){var a=this,b=this.props.gameInfo.gameID||"";return l.jsx("div",{children:l.jsxs(c("CometPlaceholder.react"),{fallback:l.jsx(c("CometInstantGamesPlayerGlimmer.react"),{}),children:[l.jsx(o,{contextKey:this.props.contextKey,entryPoint:this.props.entryPoint,funnelName:this.props.analyticsInfo.getFunnelName(),gameInfo:this.props.gameInfo,gameState:this.props.gameState,onDeferTos:function(){a.$3.unlock()},onPlayerNameChanged:this.props.setPlayerName,onPlayerPhotoChanged:this.props.setPlayerPhoto,onRefreshGamePlayer:this.props.onReloadGamePlayer,onStart:this.$23,onTos:function(){a.$3.unlock(),a.props.onTos()},privacyUrl:this.props.privacyUrl,progress:this.props.progress,userScope:this.props.userScope}),l.jsx(c("InstantGamesAuthorizeDialogSDKMessageHandler.react"),{cloudMessageHandlerRegistry:this.props.cloudMessageHandlerRegistry,contextKey:this.props.contextKey,entryPoint:this.props.entryPoint,entryPointData:this.props.entryPointData,funnelName:this.props.analyticsInfo.getFunnelName(),gameID:b,gameInfo:this.props.gameInfo,gameState:this.props.gameState,isTosed:this.props.isTosed||this.props.gameInfo.isPreviouslyTosed===!0,messageHandlerRegistry:this.props.igMessageHandlerRegistry,messageSender:this.props.messageSender,onPlayerNameChanged:this.props.setPlayerName,onPlayerPhotoChanged:this.props.setPlayerPhoto,onStart:this.$23,onTos:function(){a.$3.unlock(),a.props.onTos()},playerID:this.props.playerID,playerName:this.props.playerName,playerPhoto:this.props.playerPhoto,privacyUrl:this.props.privacyUrl,progress:this.props.progress,userScope:this.props.userScope}),this.props.gameInfo.gameID!=null?l.jsx(c("InstantGamesContextStorageSDKMessageHandler.react"),{contextKey:this.props.contextKey,contextStorage:this.props.contextStorage,gameID:this.props.gameInfo.gameID,messageHandlerRegistry:this.props.igMessageHandlerRegistry,messageSender:this.props.messageSender}):null]})})};return a}(l.PureComponent);p.contextType=c("InstantGameGamePlayerContext");function a(a){var e,f,g,k,o=a.contextToken,q=a.gameInfo,r=a.userScope,s=babelHelpers.objectWithoutPropertiesLoose(a,["contextToken","gameInfo","userScope"]);a=d("CometRelay").useFragment(h!==void 0?h:h=b("InstantGamesContextualPlayerPresentation_contextToken.graphql"),o);var t=d("CometRelay").useFragment(i!==void 0?i:i=b("InstantGamesContextualPlayerPresentation_gameInfo.graphql"),q);o=d("CometRelay").useFragment(j!==void 0?j:j=b("InstantGamesContextualPlayerPresentation_userScope.graphql"),r);var u=c("useContextKey")({contextID:a==null?void 0:a.contextID,contextSize:a==null?void 0:a.contextSize,contextSourceID:s.contextSourceID,contextType:s.contextType});r=d("usePayloadHandlerRef").usePayloadHandlerRef({contextKey:u,gameIconURI:t.iconURI,gameID:(q=t.gameID)!=null?q:"",gameName:t.name});q=d("CometRelay").useRelayEnvironment();var v=(e=t.environment)==null?void 0:(e=e.apiDenyList)==null?void 0:e.map(function(a){return{clientMessage:c("getJSEnumSafe")(c("InstantGamesSDKMessages"),a.clientMessage),genericDialogType:c("getJSEnumSafe")(c("InstantGamesNTViewType"),a.genericDialogType),passthroughRequestType:c("getJSEnumSafe")(c("InstantGamesPassThroughRequestType"),a.passthroughRequestType)}}),w=c("useStable")(function(){return new(c("InstantGamesApiRestrictor"))(v,t.gameID,t.messageAllowList,t.dialogAllowList,t.passThroughAllowList)}),x=c("useStable")(function(){return new(c("InstantGamesMessageHandlerRegistry"))(t.gameID,s.messageSender,w,t.supportedAPIs,t.preGameStartSupportedAPIs)}),y=c("useStable")(function(){return new(c("CloudGamingMessageHandlerRegistry"))(t.gameID)});e=c("useStable")(function(){var a;return new(c("InstantGamesAdsManagerSDKMessageHandler"))(s.adsManager,(a=t.gameID)!=null?a:"",x,s.messageSender)});var z=m(c("CloudGamingPlayerContext")),A=z.micControlCallback,B=z.startMutedCallback;z=c("useStable")(function(){return new(c("CloudGamingMessageHandlingSubscriptions"))(y,s.onGameStateChange,B,A)});c("useHandleVisibilityChange")({analyticsInfo:s.analyticsInfo,gameID:(f=t.gameID)!=null?f:"",messageSender:s.messageSender});f=c("useManagePlayerNameAndPhoto")({contextTokenID:a==null?void 0:a.contextID,userScope:o});var C=f.playerName,D=f.playerPhoto,E=f.setPlayerName;f=f.setPlayerPhoto;var F=c("usePlayerCleanup")({analyticsInfo:s.analyticsInfo,payloadHandlerRef:r,playerState:s.playerState}),G=function(a,b){var d=u.getType()!=="STORY"?u:new(c("GamesQuicksilverContextKey"))({id:null,size:null,sourceID:null,type:"SOLO"});s.onSwitchGame(a,d,b)},H=c("useInstantGamesMaybePreloadECP")(t);g={analyticsInfo:s.analyticsInfo,appIcon:t.iconURI,appID:(g=t.gameID)!=null?g:"",appName:(g=t.name)!=null?g:"",contextSourceID:s.contextSourceID,contextTokenID:a==null?void 0:a.contextID,contextType:s.contextType,sessionID:s.contextSessionID,switchContext:s.onSwitchContext,switchGame:G};c("useRejectUnsupportedGenericDialogRequests")({messageHandlerRegistry:x,messageSender:s.messageSender});c("useInteractivePluginSDKMessageHandler.react")({appID:(G=t.gameID)!=null?G:"",messageHandlerRegistry:x,messageSender:s.messageSender,pluginURI:t.gameURI});G=m(c("InteractivePluginContext"));k=c("useMarkInstantGamePlayed")((k=t.gameID)!=null?k:"",s.entryPoint);var I=t.consentExperienceType==="SANDBOX_NEW_GAME_NOTICE",J=c("useManageGameSession")(t,u,s.analyticsInfo,s.contextSessionID,s.entryPoint,s.entryPointData),K=J[0];J=J[1];var L=n(!0),M=L[0];L=L[1];return l.jsx("div",{children:l.jsxs(c("CometPlaceholder.react"),{fallback:l.jsx(c("CometInstantGamesPlayerGlimmer.react"),{}),children:[I?l.jsx(c("InstantGamesSBXConsentNotice.react"),{gameSettings$key:o,sbxData$key:t}):null,a!=null?l.jsx(c("InstantGamesChallengeToast.react"),{contextKey:a,gameKey:t,gameState:s.gameState},"challenge-toast-"+((I=a.contextID)!=null?I:"")):null,l.jsx(c("InstantGamesPinShortcutDialogSDKMessageHandler.react"),{fragmentKey:t,messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"create-shortcut-dialog-"+((I=a==null?void 0:a.contextID)!=null?I:"")),t.gameID!=null?l.jsx(c("InstantGamesPlayerStateSDKMessageHandler.react"),{gameID:t.gameID,messageHandlerRegistry:x,messageSender:s.messageSender,playerState:s.playerState}):null,t.gameID!=null?l.jsx(c("InstantGamesSendPassThroughSDKMessageHandler.react"),{apiRestrictor:w,gameID:t.gameID,messageHandlerRegistry:x,messageSender:s.messageSender}):null,t.gameID!=null?l.jsx(c("InstantGamesPaymentsSDKMessageHandler.react"),{gameID:t.gameID,messageHandlerRegistry:x,messageSender:s.messageSender}):null,l.jsx(c("InstantGamesPreloadedECPDialogContext").Provider,{value:H,children:l.jsx(c("InstantGamesInAppPurchaseSDKMessageHandler.react"),{ecpConfigFragmentKey:t,ecpConfigWithCSMFragmentKey:t,gameState:s.gameState,isGameInitialLoad:M,messageHandlerRegistry:x,messageSender:s.messageSender,paymentEnvFragmentKey:t,platformParams:g,setIsGameInitialLoad:L},"in-app-purchase-generic-dialog-"+((I=a==null?void 0:a.contextID)!=null?I:""))}),l.jsx(c("InstantGamesInAppPurchaseSubscriptionSDKMessageHandler.react"),{gameState:s.gameState,messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"in-app-purchase-subscription-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),l.jsx(c("InstantGamesContextSwitcherSDKMessageHandler.react"),{gameID:g.appID,messageHandlerRegistry:x,messageSender:s.messageSender,oldContext:u.getID(),platformParams:g},"context-switcher-"+((M=a==null?void 0:a.contextID)!=null?M:"")),l.jsx(c("InstantGamesMessengerGameUpdatesOptInSDKMessageHandler.react"),{gameID:g.appID,gameName:g.appName,messageHandlerRegistry:x,messageSender:s.messageSender},"messenger-game-update-opt-in"),l.jsx(c("InstantGamesMessengerGameUpdatesWinbackSDKMessageHandler.react"),{gameID:g.appID,gameName:g.appName,messageHandlerRegistry:x,messageSender:s.messageSender},"messenger-game-update-winback"),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"custom_update_messaging_consent",entryPoint:c("InstantGamesMessagingConsentDialogRoot.entrypoint"),entryPointParams:{contextID:(L=g.contextTokenID)!=null?L:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"custom-update-messaging-consent-generic-dialog-"+((I=a==null?void 0:a.contextID)!=null?I:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.data.dialogRequest.request!=="tournament_status"?a:babelHelpers["extends"]({},a,{appID:b.data.dialogRequest.data.app_id,score:(a=b.data.dialogRequest.data.score)!=null?a:null,shareType:b.data.dialogRequest.data.type,tournamentID:b.data.dialogRequest.data.tournament_id})},dialogType:"tournament_status",entryPoint:c("InstantGamesTournamentStatusDialog.entrypoint"),entryPointParams:{appID:"",score:null,shareType:"",tournamentID:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"tournament-status-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="share_tournament"?a:babelHelpers["extends"]({},a,{appID:b.data.dialogRequest.data.app_id,score:(a=b.data.dialogRequest.data.score)!=null?a:null,shareType:b.data.dialogRequest.data.type,tournamentID:b.data.dialogRequest.data.tournament_id})},dialogType:"share_tournament",entryPoint:c("InstantGamesTournamentShareDialog.entrypoint"),entryPointParams:{appID:"",score:null,shareType:"",tournamentID:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"share-tournament-generic-dialog-"+((M=a==null?void 0:a.contextID)!=null?M:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"tournament_create",entryPoint:c("InstantGamesTournamentCreateDialog.entrypoint"),entryPointParams:{appID:g.appID,scale:d("WebPixelRatio").get()},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"tournament-create-generic-dialog-"+((L=a==null?void 0:a.contextID)!=null?L:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"custom_link_share",entryPoint:c("InstantGamesCustomLinkShareDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"custom-link-share-generic-dialog-"+((I=a==null?void 0:a.contextID)!=null?I:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"cross_play_migration_dialog",entryPoint:c("InstantGameCrossPlayMigrationDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"cross-play-migration-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"create_gaming_squad",entryPoint:c("InstantGamesCreateGamingSquadDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"create-gaming-squad-generic-dialog-"+((M=a==null?void 0:a.contextID)!=null?M:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="join_gaming_squad"?a:babelHelpers["extends"]({},a,{squadID:b.data.dialogRequest.data.squadID})},dialogType:"join_gaming_squad",entryPoint:c("InstantGamesJoinGamingSquadDialog.entrypoint"),entryPointParams:{squadID:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"join-gaming-squad-generic-dialog-"+((L=a==null?void 0:a.contextID)!=null?L:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"post_user_achievement",entryPoint:c("InstantGamesPostUserAchievementDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"post-user-achievement-generic-dialog-"+((I=a==null?void 0:a.contextID)!=null?I:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="leave_gaming_squad"?a:babelHelpers["extends"]({},a,{squadID:b.data.dialogRequest.data.squadID})},dialogType:"leave_gaming_squad",entryPoint:c("InstantGamesLeaveGamingSquadDialog.entrypoint"),entryPointParams:{squadID:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"leave-gaming-squad-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"join_group",entryPoint:c("InstantGamesJoinGroupDialog.entrypoint"),entryPointParams:{appID:g.appID},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"join-group-generic-dialog-"+((M=a==null?void 0:a.contextID)!=null?M:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"open_external_link",entryPoint:c("InstantGamesOpenExternalLinkDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"open-external-link-generic-dialog-"+((L=a==null?void 0:a.contextID)!=null?L:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"follow_page",entryPoint:c("InstantGamesFollowPageDialog.entrypoint"),entryPointParams:{appID:g.appID},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"follow-page-generic-dialog-"+((I=a==null?void 0:a.contextID)!=null?I:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"match_making",entryPoint:c("InstantGamesGenericMatchMakingDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"match-making-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"canvas_to_instant_games_silent_reauth_notice",entryPoint:c("CanvasToInstantGamesSilentMigrationNotice.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"canvas-to-instant-games-silent-reauth-notice"+((M=a==null?void 0:a.contextID)!=null?M:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="context_switch"?a:babelHelpers["extends"]({},a,{contextToken:b.data.dialogRequest.data.newContextTokenID})},dialogType:"context_switch",entryPoint:c("InstantGamesGenericContextSwitchDialog.entrypoint"),entryPointParams:{contextToken:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"context-switch-generic-dialog-"+((L=a==null?void 0:a.contextID)!=null?L:"")),l.jsx(c("InstantGamesGameShareDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"game-share-generic-dialog-"+((I=a==null?void 0:a.contextID)!=null?I:"")),l.jsx(c("InstantGamesGameSwitchDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"game-switch-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),l.jsx(c("InstantGamesMatchPlayerDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"match-player-generic-dialog-"+((M=a==null?void 0:a.contextID)!=null?M:"")),l.jsx(c("CloudGameFriendFinderInviteDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"cloud-game-friend-finder-generic-dialog-"+((L=a==null?void 0:a.contextID)!=null?L:"")),l.jsx(c("CloudGamingMultiTouchOverlayTutorialDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"cloud-gaming-multi-touch-overlay-generic-dialog-"+((I=a==null?void 0:a.contextID)!=null?I:"")),l.jsx(c("InstantGamesSubscribeBotAsyncDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"subscribe-bot-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),l.jsx(c("InstantGamesContextSelectorSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g,playerPhotoURI:D},"context-selector-"+((M=a==null?void 0:a.contextID)!=null?M:"")),l.jsx(c("InstantGamesContextCreatorSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g,playerPhotoURI:D},"context-creator-"+((L=a==null?void 0:a.contextID)!=null?L:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"context_solo_switch",entryPoint:c("InstantGamesGenericContextSoloSwitchDialog.entrypoint"),entryPointParams:{appID:g.appID},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"context-solo-switch-generic-dialog-"+((I=a==null?void 0:a.contextID)!=null?I:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"oba_toast",entryPoint:c("InstantGamesOBANotice.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"oba-notice-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){if(b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="game_requests")return a;b=(b=b.data.dialogRequest)==null?void 0:b.data;return babelHelpers["extends"]({},a,{actionType:b==null?void 0:b.actionType,data:b==null?void 0:b.data,message:b==null?void 0:b.message,to:(a=(b==null?void 0:b.to)!=null?JSON.parse(b==null?void 0:b.to):null)!=null?a:[],userTypeOption:b==null?void 0:b.options})},dialogType:"game_requests",entryPoint:c("CloudGameRequestsDialog.entrypoint"),entryPointParams:{actionType:"",appID:g.appID,data:"",message:"",to:[],userTypeOption:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"cloud-game-requests-dialog-"+((M=a==null?void 0:a.contextID)!=null?M:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"internal_e2e_test_generic_dialog",entryPoint:c("CloudGamingE2EGenericDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"cloud-gaming-e2e-dialog-"+((L=a==null?void 0:a.contextID)!=null?L:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"live_streams",entryPoint:d("InstantGamesViewStreamersDialog.entrypoint").InstantGamesViewStreamersDialogEntrypoint,entryPointParams:{appID:g.appID},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"view-streamers-dialog-"+((I=a==null?void 0:a.contextID)!=null?I:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"custom_invite",entryPoint:c("InstantGamesCustomInviteGenericDialog.entrypoint"),entryPointParams:{appID:g.appID,contextTokenID:(H=g.contextTokenID)!=null?H:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"custom-invite-generic-dialog-"+((M=a==null?void 0:a.contextID)!=null?M:"")),c("justknobx")._("2085")&&l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"cloud_game_deprecation_user_notice",entryPoint:c("CloudGamesDeprecationUserNoticeDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"cloud-game-deprecation-user-notice-dialog-"+((L=a==null?void 0:a.contextID)!=null?L:"")),l.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"sbx_general_onboarding",entryPoint:c("InstantGamesSBXOnboardingTosedPlayerDialog.entrypoint"),entryPointParams:{appID:g.appID},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"sbx-onboarding-generic-dialog-"+((I=a==null?void 0:a.contextID)!=null?I:"")),l.jsx(p,babelHelpers["extends"]({},s,{adsMessageHandler:e,browserUnloadListener:F,cloudMessageHandlerRegistry:y,cloudMessageSubscriptions:z,contextKey:u,contextToken:a,endCurrentSession:J,environment:q,gameInfo:t,igMessageHandlerRegistry:x,interactivePluginLogger:G.logger,markInstantGamePlayed:k,payloadHandlerRef:r,playerName:C,playerPhoto:D,setPlayerName:E,setPlayerPhoto:f,startNewSession:K,userScope:o}))]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesPlayerStateSDKMessageHandler.react",["CometRelay","GamesQuicksilverError","InstantGamesConnectedPlayersFetcher","InstantGamesSignedPlayerInfoFetcher","promiseDone","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.gameID,e=a.messageHandlerRegistry,f=a.messageSender,g=a.playerState,h=d("CometRelay").useRelayEnvironment();a=function(a){c("promiseDone")(g.getPlayerDataAsync(a))};e.setMessageHandlerFor("getplayerdataasync","get-player-data-async",a);a=function(a){c("promiseDone")(g.setPlayerDataAsync(a))};e.setMessageHandlerFor("setplayerdataasync","set-player-data-async",a);var j=function(a){if(!a.promiseID)return;c("InstantGamesConnectedPlayersFetcher").fetchAsync(b,h).then(function(b){b=Object.values(b);f.resolveGamePromise(a.promiseID,b)})["catch"](function(b){f.rejectGamePromise(a.promiseID,b)})};a=function(a){j(a)};e.setMessageHandlerFor("getconnectedplayersasync","get-connected-players-async",a);var k=function(a){if(!a.promiseID)return;c("InstantGamesSignedPlayerInfoFetcher").fetchAsync(b,a.requestPayload,h).then(function(b){f.resolveGamePromise(a.promiseID,b)})["catch"](function(b){f.rejectGamePromise(a.promiseID,b)})};a=function(a){k(a)};e.setMessageHandlerFor("getsignedplayerinfoasync","get-signed-player-info-async",a);a=function(a){g.flushPlayerStateAsync().then(function(){f.resolveGamePromise(a.promiseID)})["catch"](function(b){b=new(c("GamesQuicksilverError"))(b.message).setCode("NETWORK_FAILURE");f.rejectGamePromise(a.promiseID,b)})};e.setMessageHandlerFor("flushplayerdataasync","flush-player-data-async",a);return i.jsx(i.Fragment,{})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesInAppPurchaseSDKMessageHandler.react",["CometRelay","ECPGamesUPLLogger","ECPQPLUtils","FullScreen","GamesQuicksilverError","InstantGamesGameState","InstantGamesGenericDialogContext","InstantGamesGenericDialogWithEntryPoint.react","InstantGamesIAP","InstantGamesInAppPurchaseDialogWithCSM.entrypoint","InstantGamesInAppPurchaseDialogWithPerfOptimization.entrypoint","InstantGamesInAppPurchaseSDKMessageHandler_Fragment.graphql","react","useRegisterInstantGamesMessageHandler"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useLayoutEffect,n=e.useMemo,o=e.useState,p=h!==void 0?h:h=b("InstantGamesInAppPurchaseSDKMessageHandler_Fragment.graphql");function a(a){var b=a.ecpConfigFragmentKey,e=a.ecpConfigWithCSMFragmentKey,f=a.gameState,g=a.isGameInitialLoad,h=a.messageHandlerRegistry,i=a.messageSender,q=a.paymentEnvFragmentKey,r=a.platformParams,s=a.setIsGameInitialLoad;a=l(c("InstantGamesGenericDialogContext"));var t=a.getGenericDialog;a=o("");var u=a[0],v=a[1];m(function(){u===""&&v(["upl",Date.now(),r.sessionID].join("_"))},[u,r.sessionID]);var w=n(function(){return new(c("ECPGamesUPLLogger"))({client_suppression_policy:[],logging_policy_product:""},d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,"ecp","comet",u)},[u]);a=k(function(a){var b;if(f!==d("InstantGamesGameState").PLAYING){i.rejectGamePromise(a.data.promiseID,new(c("GamesQuicksilverError"))("Cannot call purchaseAsync before startGameAsync resolves").setCode("INVALID_OPERATION"));return}c("FullScreen").isFullScreen()&&c("FullScreen").disableFullScreen();d("ECPQPLUtils").logECPEntryClickQPLMarker();w.logCheckoutInit((b=x.ecpConfig)==null?void 0:b.hasGiftCardBalance);w.logUserClickEcpentryAtomic();g&&s(!1);(b=t("in_app_purchase"))==null?void 0:b.open({data:{dialogRequest:{data:{developerPayload:a.data.data.developerPayload,productID:a.data.data.productID,uplSessionID:u},request:"in_app_purchase",sdkVersion:""},promiseID:a.data.promiseID},type:"showgenericdialogasync"});v("")},[t,f,i,w,u]);c("useRegisterInstantGamesMessageHandler")({handler:a,messageHandlerRegistry:h,type:"paymentspurchaseasync"});var x=d("CometRelay").useFragment(p,q);q=((a=x.ecpConfig)==null?void 0:a.hasGiftCardBalance)!==!0;a=function(){return j.jsx("span",{})};return q?j.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="in_app_purchase"?a:babelHelpers["extends"]({},a,{developerPayload:b.data.dialogRequest.data.developerPayload,ecpConfigFragmentKey:e,productID:b.data.dialogRequest.data.productID})},dialogType:"in_app_purchase",entryPoint:c("InstantGamesInAppPurchaseDialogWithCSM.entrypoint"),entryPointParams:{appID:r.appID,developerPayload:"",ecpConfigFragmentKey:e,productID:""},fallback:a,messageHandlerRegistry:h,messageSender:i,platformParams:r}):j.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,c){return c.type!=="showgenericdialogasync"||c.data.dialogRequest.request!=="in_app_purchase"?a:babelHelpers["extends"]({},a,{developerPayload:c.data.dialogRequest.data.developerPayload,ecpConfigFragmentKey:b,productID:c.data.dialogRequest.data.productID})},dialogType:"in_app_purchase",entryPoint:c("InstantGamesInAppPurchaseDialogWithPerfOptimization.entrypoint"),entryPointParams:{appID:r.appID,developerPayload:"",ecpConfigFragmentKey:b,productID:""},fallback:a,messageHandlerRegistry:h,messageSender:i,platformParams:r})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextStorageSDKMessageHandler.react",["CometRelay","GamesQuicksilverError","InstantGamesContextPlayersFetcher","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.contextKey,e=a.contextStorage,f=a.gameID,g=a.messageHandlerRegistry,h=a.messageSender,j=d("CometRelay").useRelayEnvironment();a=function(a){if(!a.promiseID)return;var d=b.getID();if(d==null){h.rejectGamePromise(a.promiseID,new(c("GamesQuicksilverError"))("Cannot create a match in a solo context").setCode("INVALID_PARAM"));return}e.createMatch(d,a.name).then(function(b){h.resolveGamePromise(a.promiseID,b)})["catch"](function(b){h.rejectGamePromise(a.promiseID,b)})};g.setMessageHandlerFor("contextmatchcreateasync","context-match-create-async",a);a=function(a){if(!a.promiseID)return;e.fetchMatches(a).then(function(b){h.resolveGamePromise(a.promiseID,b)})["catch"](function(b){h.rejectGamePromise(a.promiseID,b)})};g.setMessageHandlerFor("contextmatchfetchasync","context-match-fetch-async",a);a=function(a){if(!a.promiseID)return;e.endMatch(a.contextID,a.matchID).then(function(b){h.resolveGamePromise(a.promiseID,b)})["catch"](function(b){h.rejectGamePromise(a.promiseID,b)})};g.setMessageHandlerFor("contextmatchendasync","context-match-end-async",a);a=function(a){if(!a.promiseID)return;e.fetchData(a.contextID,a.matchID,a.keys).then(function(b){h.resolveGamePromise(a.promiseID,b)})["catch"](function(b){h.rejectGamePromise(a.promiseID,b)})};g.setMessageHandlerFor("contextmatchdatafetchasync","context-match-data-fetch-async",a);a=function(a){if(!a.promiseID)return;e.saveData(a.contextID,a.matchID,a.data).then(function(b){h.resolveGamePromise(a.promiseID,b)})["catch"](function(b){h.rejectGamePromise(a.promiseID,b)})};g.setMessageHandlerFor("contextmatchdatasaveasync","context-match-data-save-async",a);a=function(a){if(!a.promiseID)return;var d=b.getID();if(d==null){h.rejectGamePromise(a.promiseID,new(c("GamesQuicksilverError"))("Cannot get context players without a context").setCode("INVALID_OPERATION"));return}c("InstantGamesContextPlayersFetcher").fetchAsync(d,f,j).then(function(b){h.resolveGamePromise(a.promiseID,b)})["catch"](function(b){h.rejectGamePromise(a.promiseID,b)})};g.setMessageHandlerFor("contextplayersfetchasync","context-players-fetch-async",a);a=function(a){if(!a.promiseID)return;e.incrementData(a.contextID,a.matchID,a.data,a.keys).then(function(b){h.resolveGamePromise(a.promiseID,b)})["catch"](function(b){h.rejectGamePromise(a.promiseID,b)})};g.setMessageHandlerFor("contextmatchdataincasync","context-match-data-inc-async",a);return i.jsx(i.Fragment,{})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesSendPassThroughSDKMessageHandler.react",["CometRelay","GamesQuicksilverError","InstantGamesPassThroughAgent","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.apiRestrictor,e=a.gameID,f=a.messageHandlerRegistry,g=a.messageSender,h=d("CometRelay").useRelayEnvironment();a=function(a){var d=!1;a.isSecureShieldRequest!=null&&(d=a.isSecureShieldRequest);if(!d&&!a.promiseID)return;var f=a.data,i=a.request,j=a.sdkVersion;if(!f||!i||!j){g.rejectGamePromise(a.promiseID,new(c("GamesQuicksilverError"))("Missing required parameter").setCode("INVALID_PARAM"));return}if(b.shouldRestrictPassthroughRequestType(i)){g.rejectGamePromise(a.promiseID,new(c("GamesQuicksilverError"))("The environment does not support this operation").setCode("INVALID_OPERATION"));return}c("InstantGamesPassThroughAgent").sendRequest({data:f,gameID:e,isSecureShieldRequest:d,request:i,sdkVersion:j},h).then(function(b){g.resolveGamePromise(a.promiseID,b)})["catch"](function(b){g.rejectGamePromise(a.promiseID,b)})};f.setMessageHandlerFor("sendpassthroughasync","send-pass-through-async",a);return i.jsx(i.Fragment,{})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesInAppPurchaseSubscriptionSDKMessageHandler.react",["FullScreen","GamesQuicksilverError","InstantGamesGameState","InstantGamesGenericDialogContext","InstantGamesGenericDialogWithEntryPoint.react","InstantGamesInAppPurchaseSubscriptionDialog.entrypoint","InstantGamesSubscriptionsUtils","react","useRegisterInstantGamesMessageHandler"],(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;function a(a){var b=a.gameState,e=a.messageHandlerRegistry,f=a.messageSender;a=a.platformParams;var g=k(c("InstantGamesGenericDialogContext")),h=g.getGenericDialog;g=j(function(a){var e=a.data,g=e.productID;e=e.promiseID;if(!d("InstantGamesSubscriptionsUtils").isSubscriptionsAvailable()){f.rejectGamePromise(e,new(c("GamesQuicksilverError"))("Client does not support this operation").setCode("CLIENT_UNSUPPORTED_OPERATION"));return}if(b!==d("InstantGamesGameState").PLAYING){f.rejectGamePromise(e,new(c("GamesQuicksilverError"))("Cannot call purchaseAsync before startGameAsync resolves").setCode("INVALID_OPERATION"));return}c("FullScreen").isFullScreen()&&c("FullScreen").disableFullScreen();(e=h("in_app_purchase_subscription"))==null?void 0:e.open({data:{dialogRequest:{productID:g,request:"in_app_purchase_subscription",sdkVersion:""},promiseID:a.data.promiseID},type:"showgenericdialogasync"})},[h,b,f]);c("useRegisterInstantGamesMessageHandler")({handler:g,messageHandlerRegistry:e,type:"paymentspurchasesubscriptionasync"});g=function(){return i.jsx("span",{})};return i.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="in_app_purchase_subscription"?a:babelHelpers["extends"]({},a,{productID:b.data.dialogRequest.productID})},dialogType:"in_app_purchase_subscription",entryPoint:c("InstantGamesInAppPurchaseSubscriptionDialog.entrypoint"),entryPointParams:{appID:a.appID,productID:""},fallback:g,messageHandlerRegistry:e,messageSender:f,platformParams:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesAdsManager",["GamesQuicksilverError","InstantGamesAdUtils","InstantGamesFunnelLogger","InstantGamesMobileEndpointAdInstance","Promise"],(function(a,b,c,d,e,f,g){"use strict";var h,i=3;a=function(){function a(a,b,c,d){this.$7=new Map(),this.$3=a,this.$4=b,this.$1=[],this.$2=null,this.instantGamesFunnelLogger=null,this.$5=c,this.$6=d}var d=a.prototype;d.createAdInstance=function(a,d,e,f){var g=this.$1.filter(function(b){return b.placementType===a});if(g.length>=i)return(h||(h=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Too many ad instances").setCode("ADS_TOO_MANY_INSTANCES"));g=new(c("InstantGamesMobileEndpointAdInstance"))(a,d,e,f);g.placementType==="banner_desktop"?this.$8(g):this.$1.push(g);return(h||(h=b("Promise"))).resolve(g.instanceID)};d.hideBannerAdInstance=function(){var a=this.$2;a&&(a.onAdClosed(),this.$8(null),this.$6(!1));this.$3();return(h||(h=b("Promise"))).resolve()};d.loadAdInstance=function(a){var d=this,e=this.$9(a);if(!e)return(h||(h=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Invalid ad instance").setCode("INVALID_PARAM"));a=this.$7.get(e.format);if(a!=null&&a>Date.now())return(h||(h=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Ad requests have been rate limited for this session").setCode("ADS_FREQUENT_LOAD"));this.instantGamesFunnelLogger=new(c("InstantGamesFunnelLogger"))(c("InstantGamesAdUtils").getHostName(),{},"",e);return new(h||(h=b("Promise")))(function(a,b){e.load(a,b,function(a){d.$7.set(e.format,a)});(a=d.instantGamesFunnelLogger)==null?void 0:a.sendDebugFunnelLog(101);d.$3()})["catch"](function(a){var b;d.$3();(b=d.instantGamesFunnelLogger)==null?void 0:b.sendDebugFunnelLoadErrorLog("Code: "+a.getCode()+". Failed to load ad. Message: "+((b=a.getMessage())!=null?b:"Message not provided"));throw a})};d.showAdInstance=function(a){var d,e=this,f=this.$9(a);(d=this.instantGamesFunnelLogger)==null?void 0:d.sendDebugFunnelLog(106);if(!f){(d=this.instantGamesFunnelLogger)==null?void 0:d.sendDebugFunnelShowFinishedLog(!1,"Code: INVALID_PARAM. Failed to load ad. Message: Invalid ad instance");return(h||(h=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Invalid ad instance").setCode("INVALID_PARAM"))}if(!f.isLoaded()){(d=this.instantGamesFunnelLogger)==null?void 0:d.sendDebugFunnelShowFinishedLog(!1,"Code: ADS_NOT_LOADED. Failed to load ad. Message: Ad instance not loaded");return(h||(h=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Ad instance not loaded").setCode("ADS_NOT_LOADED"))}return new(h||(h=b("Promise")))(function(b,c){f.show(b),f.placementType==="banner_desktop"?e.$6(!0):e.$4(a)}).then(function(){if(f.placementType==="banner_desktop")return;e.$4(null);e.$10(f.instanceID);e.$3();if(f.placementType==="rewarded_video_desktop"&&!f.isRewardCompleted())throw new(c("GamesQuicksilverError"))("Ad not completed").setCode("USER_INPUT")})};d.getOutstandingAdInstances=function(){return this.$1.filter(function(a){return a.isLoadRequested()})};d.$9=function(a){var b=this.$1.filter(function(b){return b.instanceID===a});return b.length>0?b[0]:a===((b=this.$2)==null?void 0:b.instanceID)?this.$2:null};d.$10=function(a){this.$1=this.$1.filter(function(b){return b.instanceID!==a})};d.$8=function(a){this.$5(a),this.$2=a};return a}();g["default"]=a}),98);
-----
InstantGamesContextStorage",["ClientIDs","CometRelay","GamesQuicksilverError","InstantGamesContextStorageOperations","InstantGamesSessionManager","Promise","RelayAPIConfig"],(function(a,b,c,d,e,f,g){"use strict";var h,i=2197001,j=2197002,k=2197003;a=function(){function a(a,b){this.$1=a,this.$2=b}var e=a.prototype;e.createMatch=function(a,e){var f=this,g={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),context_id:a,session_id:c("InstantGamesSessionManager").getSessionID()};e&&(g.match_name=e);return new(h||(h=b("Promise")))(function(a,b){d("CometRelay").commitMutation(f.$2,{mutation:d("InstantGamesContextStorageOperations").CreateMatchMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:g}})}).then(function(c){c=c==null?void 0:(c=c.createMatch)==null?void 0:c.match;return(h||(h=b("Promise"))).resolve(f.$3(a,c))})["catch"](function(a){return(h||(h=b("Promise"))).reject(f.$4(a,"Failed to create a new context match"))})};e.fetchMatches=function(a){var c=this,e=a.contextID,f=a.matches;a=a.status;return d("CometRelay").fetchQuery(this.$2,d("InstantGamesContextStorageOperations").FetchMatchesQuery,{context_id:e,matches:f,status:a}).toPromise().then(function(a){return a==null?void 0:(a=a.node)==null?void 0:(a=a.store)==null?void 0:a.matches}).then(function(a){return!Array.isArray(a)?(h||(h=b("Promise"))).reject():a.map(function(a){return c.$3(e,a)})})["catch"](function(a){return(h||(h=b("Promise"))).reject(c.$4(a,"Failed to fetch requested matches"))})};e.endMatch=function(a,e){var f=this,g={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),context_id:a,match_id:e,session_id:c("InstantGamesSessionManager").getSessionID()};return new(h||(h=b("Promise")))(function(a,b){d("CometRelay").commitMutation(f.$2,{mutation:d("InstantGamesContextStorageOperations").EndMatchMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:g}})}).then(function(c){c=c==null?void 0:(c=c.endMatch)==null?void 0:c.match;return(h||(h=b("Promise"))).resolve(f.$3(a,c))})["catch"](function(a){return(h||(h=b("Promise"))).reject(f.$4(a,"Failed to end the match"))})};e.fetchData=function(a,c,e){var f=this;return d("CometRelay").fetchQuery(this.$2,d("InstantGamesContextStorageOperations").FetchMatchDataQuery,{context_id:a,keys:e,match_id:c}).toPromise().then(function(a){a=a==null?void 0:(a=a.node)==null?void 0:(a=a.store)==null?void 0:a.matches;if(!Array.isArray(a)||a.length!==1)throw new Error("Failed to parse match data");return f.$5(a[0])})["catch"](function(a){return(h||(h=b("Promise"))).reject(f.$4(a,"Failed to fetch requested storage data"))})};e.saveData=function(a,e,f){var g=this,i={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),context_id:a,match_id:e,session_id:c("InstantGamesSessionManager").getSessionID()},j=new Blob([f],{type:"text/plain"});return new(h||(h=b("Promise")))(function(a,b){d("CometRelay").commitMutation(g.$2,{mutation:d("InstantGamesContextStorageOperations").SaveMatchDataMutation,onCompleted:function(b){return a()},onError:function(a){return b(a)},uploadables:{fields_file:j},variables:{input:i}})})["catch"](function(a){return(h||(h=b("Promise"))).reject(g.$4(a,"Failed to persist the match data"))})};e.incrementData=function(a,e,f,g){var i=this,j={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),context_id:a,match_id:e,session_id:c("InstantGamesSessionManager").getSessionID()},k=new Blob([f],{type:"text/plain"});return new(h||(h=b("Promise")))(function(a,b){d("CometRelay").commitMutation(i.$2,{mutation:d("InstantGamesContextStorageOperations").IncrementMatchDataMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},uploadables:{fields_file:k},variables:{input:j,keys:g}})}).then(function(a){a=a==null?void 0:(a=a.incrementFields)==null?void 0:a.match;return i.$5(a)})["catch"](function(a){return(h||(h=b("Promise"))).reject(i.$4(a,"Failed to persist the match data"))})};e.$3=function(a,b){var c=b==null?void 0:b.matchID,d=b==null?void 0:b.status;b=b==null?void 0:b.name;if(!c||!d)throw new Error("Failed to parse match from value");return{contextID:a,id:c,name:b,status:d}};e.$5=function(a){a=a.fields;if(!Array.isArray(a))throw new Error("Failed to parse match data");var b={};for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;b[e.key]=e.value}return JSON.stringify(b)};e.$4=function(a,b){var d=new(c("GamesQuicksilverError"))();if(!a){d.setMessage(b).setCode("NETWORK_FAILURE");return d}a.code===j?d.setMessage(a.description).setCode("INVALID_OPERATION"):a.code===i?d.setMessage(a.description).setCode("INVALID_PARAM"):a.code===k?d.setMessage("Match with that name already exists in this context").setCode("INVALID_PARAM"):d.setMessage(b).setCode("NETWORK_FAILURE");return d};return a}();g["default"]=a}),98);
-----
GamesQuicksilverPlayerState",["ClientIDs","CometRelay","GamesQuicksilverError","InstantApplicationUserScopeQuery.graphql","InstantGamesPlayerMutations","Promise","RelayAPIConfig","WebGraphQLQueryHelper","XAsyncRequest","clearInterval","nullthrows","promiseDone","setInterval"],(function(a,b,c,d,e,f,g){"use strict";var h,i=5e3;a=function(){function a(a,b,c,d){this.$4=[],this.$5=!1,this.$6=null,this.$1=a,this.$3=b,this.$8=d?d:i,this.$2=null,this.$7=c,this.$9=!1}var e=a.prototype;e.cleanup=function(){this.$9&&c("promiseDone")(this.savePlayerStateAsync()),this.$2!==null&&(c("clearInterval")(this.$2),this.$2=null),this.$6=null};e.updateGame=function(a){this.$1=a,this.$6=null};e.savePlayerStateAsync=function(){var a=this,c=this.$6;if(!c||!this.$9||this.$5)return(h||(h=b("Promise"))).resolve();this.$5=!0;this.$9=!1;return this.$10(c).then(function(){a.$5=!1,a.$11()})["catch"](function(){a.$9=!0;a.$5=!1;a.$11();throw new Error("An error occurred while saving the player state")})};e.flushPlayerStateAsync=function(){var a=this;return!this.$5?this.savePlayerStateAsync():new(h||(h=b("Promise")))(function(b,c){a.$4.push({reject:c,resolve:b})})};e.getPlayerDataAsync=function(a){var d=this;return!a||!a.promiseID?new(h||(h=b("Promise")))(function(a,b){b(new(c("GamesQuicksilverError"))("Input is null or missing the promiseID property").setCode("INVALID_PARAM"))}):this.$12(a).then(this.$13.bind(this)).then(function(){return d.$14(a.keys)}).then(function(b){d.$3.resolveGamePromise(a.promiseID,b)})["catch"](function(b){d.$3.rejectGamePromise(a.promiseID,b)})};e.setPlayerDataAsync=function(a){var d=this;return!a||!a.promiseID?new(h||(h=b("Promise")))(function(a,b){b(new(c("GamesQuicksilverError"))("Input is null or missing the promiseID property").setCode("INVALID_PARAM"))}):this.$15(a).then(this.$13.bind(this)).then(function(){return d.$16(a.data)}).then(function(){return d.$3.resolveGamePromise(a.promiseID,!0)})["catch"](function(b){return d.$3.rejectGamePromise(a.promiseID,b)})};e.$12=function(a){return new(h||(h=b("Promise")))(function(b,d){!a.keys||!Array.isArray(a.keys)?d(new(c("GamesQuicksilverError"))("Missing required value: keys").setCode("INVALID_PARAM")):b()})};e.$15=function(a){return new(h||(h=b("Promise")))(function(b,d){!a.data||!(a.data instanceof Object)?d(new(c("GamesQuicksilverError"))("Missing required object: data").setCode("INVALID_PARAM")):b()})};e.$14=function(a){if(!this.$6)return{};var b=this.$6,c={};a.forEach(function(a){b[a]!=null&&(c[a]=b[a])});return c};e.$16=function(a){if(!this.$6)return;var b=this.$6;Object.keys(a).forEach(function(c){b[c]=a[c]});this.$9=!0;this.$6=b};e.$13=function(){var a=this;return new(h||(h=b("Promise")))(function(b,c){!a.$6?b(a.$17()):b()})};e.$17=function(){var a=this;return new(h||(h=b("Promise")))(function(b,e){var f=d("WebGraphQLQueryHelper").getLegacyQueryURI(c("nullthrows")(c("InstantApplicationUserScopeQuery.graphql").params.id),{app_id:a.$1}),g=function(d){d=(d=d.viewer)==null?void 0:(d=d.actor)==null?void 0:d.user_scope;if(!d){e(new(c("GamesQuicksilverError"))("Query for player state failed").setCode("NETWORK_FAILURE"));return}d=d.player_state;d=JSON.parse(d)||{};a.$6=d;a.$18();b()};new(c("XAsyncRequest"))(f).setHandler(function(a){g(a.payload)}).setErrorHandler(function(){e(new(c("GamesQuicksilverError"))("An error occurred while fetching the player state").setCode("NETWORK_FAILURE"))}).send()})};e.$11=function(){if(this.$4.length<=0)return;var a=this.$4;this.savePlayerStateAsync().then(function(){for(var b=a,c=Array.isArray(b),d=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=b.length)break;e=b[d++]}else{d=b.next();if(d.done)break;e=d.value}e=e;e.resolve()}})["catch"](function(b){for(var c=a,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.reject(b)}});this.$4=[]};e.$10=function(a){var e=this,f=JSON.stringify(a);return new(h||(h=b("Promise")))(function(a,b){d("CometRelay").commitMutation(e.$7,{mutation:d("InstantGamesPlayerMutations").ChangePlayerStateMutation,onCompleted:function(){return a()},onError:function(a){return b(a)},uploadables:{player_state_file:e.$19(f)},variables:{input:{actor_id:c("RelayAPIConfig").actorID,app_id:e.$1,client_mutation_id:d("ClientIDs").getNewClientID()}}})})};e.$19=function(a){return new Blob([a],{type:"text/plain"})};e.$18=function(){var a=this;this.$2=c("setInterval")(function(){c("promiseDone")(a.savePlayerStateAsync())},this.$8)};return a}();g["default"]=a}),98);
-----
InstantGamesMobileEndpointAdInstance",["ANWebAdUtils","GamesQuicksilverError","InstantGamesAdTemplate","unrecoverableViolation","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,d,e){this.placementType=a;this.placementID=b;this.adExperienceType=d;this.instanceID=c("uuidv4")();switch(a){case"banner_desktop":this.format="banner";this.template=c("InstantGamesAdTemplate").Banner;this.bannerPosition=e;break;case"interstitial_desktop":this.format="interstitial";this.template=c("InstantGamesAdTemplate").Interstitial;break;case"rewarded_video_desktop":this.format="rewarded_video";this.template=c("InstantGamesAdTemplate").RewardedVideo;break;default:throw c("unrecoverableViolation")(a+" is an unsupported ad placement type","instant_games")}this.$1=!1;this.$2=!1;this.$3=!1;this.$4=!1;this.$5=0}var b=a.prototype;b.isLoadRequested=function(){return this.$1};b.isLoaded=function(){return this.$3};b.isRewardCompleted=function(){return this.$4};b.load=function(a,b,d){if(this.$2){b(new(c("GamesQuicksilverError"))("Load in progress").setCode("INVALID_OPERATION"));return}if(this.$3){a();return}if(this.$5>Date.now()){b(new(c("GamesQuicksilverError"))().setCode("ADS_FREQUENT_LOAD"));return}this.$1=!0;this.$2=!0;this.$3=!1;this.$7=a;this.$8=b;this.$10=d};b.show=function(a){if(!this.$3)return;this.$9=a;this.$6&&this.$6()};b.noFill=function(a,b){this.$1=!1;this.$2=!1;this.$3=!1;var d=this.$8;d&&d(new(c("GamesQuicksilverError"))(a).setCode("ADS_NO_FILL"));if(b!=null){d=parseInt(b,10);a=d>0?d*1e3:0;this.$5=Date.now()+a;d>60&&(this.$10&&this.$10(this.$5))}};b.onAdLoaded=function(){this.$7&&(this.$7(),this.$2=!1,this.$3=!0)};b.setOnAdShown=function(a){this.$6=a};b.onAdClosed=function(){this.$9&&this.$9()};b.setRewardCompleted=function(){this.$4=!0};b.getAdLoggingInfo=function(){return{AD_EXPERIENCE_TYPE:this.adExperienceType,BUNDLE:"com.facebook.Wilde",IDFA_FLAG:"0",NUM_ADS_REQUESTED:"1",OS:d("ANWebAdUtils").getUserOS(this,!0),OSVERS:"12.4",PLACEMENT_ID:this.placementID,PLACEMENT_TYPE:this.format,SDK:"ios",SDK_CAPABILITY:"[1,5,7,8,9,11,15,16,17]",SDK_VERSION:"5.7.0",TEMPLATE_ID:this.template,funnel_id:this.instanceID,funnel_placement_id:this.placementID,funnel_placement_type:this.format}};return a}();g["default"]=a}),98);
-----
InstantGamesGenericDialogErrorBoundary.react",["CometErrorBoundary.react","GamesQuicksilverError","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useRef;function a(a){var b=a.children,d=a.onClose,e=j(!1);return i.jsx(c("CometErrorBoundary.react"),{fallback:function(a){e.current!==!0&&(e.current=!0,d({data:new(c("GamesQuicksilverError"))(a.message).setCode("UNKNOWN"),type:"REJECT"}));return i.jsx(i.Fragment,{})},children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesGenericDialogWithEntryPoint.react",["CometInstantGamesPlayerCustomEscHandlingContext","CometRelay","FBLogger","GamesQuicksilverError","InstantGamesGenericDialogContext","InstantGamesGenericDialogErrorBoundary.react","react","useCometRelayEntrypointContextualEnvironmentProvider","useInstantGamesGenericDialogWithEntryPointLogging","useRegisterInstantGamesMessageHandler"],(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.useLayoutEffect,n=b.useState;function a(a){var b=a.addDynamicEntryPointParams,e=a.dialogType,f=a.entryPoint,g=a.entryPointParams;a.fallback;var h=a.messageHandlerRegistry,o=a.messageSender;a=a.platformParams;var p=n(null),q=p[0],r=p[1];p=k(c("InstantGamesGenericDialogContext"));var s=p.setGenericDialogInternal;p=k(c("CometInstantGamesPlayerCustomEscHandlingContext"));var t=p.setCustomEscHandlerProvider;p=c("useCometRelayEntrypointContextualEnvironmentProvider")();p=d("CometRelay").useEntryPointLoader(p,f);f=p[0];var u=p[1],v=p[2];p=c("useInstantGamesGenericDialogWithEntryPointLogging")({appID:a.appID,dialogType:e});var w=p.logGenericDialogEvent,x=j(function(a){if(a.data.dialogRequest.request==="media_asset")return;if(a.data.dialogRequest.request!==e){r(null);return}r(a.data);a=b!=null?b(g,a):g;u(a);w({event:"load"})},[b,e,g,u,w]);c("useRegisterInstantGamesMessageHandler")({handler:x,messageHandlerRegistry:h,type:"showgenericdialogasync"});m(function(){s(e,{open:x})},[e,s,x]);var y=j(function(a){if(q!=null)if(a.type==="RESOLVE"){var b;b=(b=a.data)!=null?b:{success:!0};o.resolveGamePromise(q.promiseID,b);w({event:"resolve"})}else a.type==="REJECT"?(o.rejectGamePromise(q.promiseID,a.data),w({error_code:a.data.getCode(),error_message:a.data.getMessage(),event:"reject"})):c("FBLogger")("instant-games").warn("unexpected onClose param: "+a.type);r(null);v()},[q,v,w,o]);l(function(){q==null?t(null):t({customEscHandler:function(){y({data:new(c("GamesQuicksilverError"))("Dialog closed").setCode("USER_INPUT"),type:"REJECT"})}})},[q,y,t]);p=j(function(){y({data:new(c("GamesQuicksilverError"))("The cloud game has a connection error.").setCode("INVALID_OPERATION"),type:"REJECT"})},[y]);c("useRegisterInstantGamesMessageHandler")({handler:p,messageHandlerRegistry:h,type:"cloudgamingconnectionerror"});return q==null?null:i.jsx(i.Fragment,{children:f!=null&&q.dialogRequest.request===e&&i.jsx(c("InstantGamesGenericDialogErrorBoundary.react"),{onClose:y,children:i.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:f,props:babelHelpers["extends"]({},a,{dialogRequest:q.dialogRequest,onClose:y})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
GamesQuicksilverMessageSender",["GamesQuicksilverError"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.$1=null}var b=a.prototype;b.setSendMessageDelegate=function(a){this.$1=a};b.sendMessage=function(a,b){if(!this.$1)return;b={content:b,type:a};this.$1(b)};b.resolveGamePromise=function(a,b){this.sendMessage("resolvepromise",{data:b,promiseID:a})};b.rejectGamePromise=function(a,b){b=b?b.serialize():new(c("GamesQuicksilverError"))().serialize();this.sendMessage("rejectpromise",{data:b,promiseID:a})};return a}();g["default"]=a}),98);
-----
HorizonIWPPurchaseDialog.react",["CometPlaceholder.react","CometTransientDialogProvider.react","GamesQuicksilverError","HorizonIWPPurchaseConfirmation.react","InstantGamesIAPLoadingComponent.react","react","useOculusOrderCreationMutation","uuidv4"],(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.useState;function a(a){var b=a.appID,d=a.developerPayload,e=a.onClose,f=a.reject,g=a.resolve,h=a.sku;a=k(!1);var l=a[0],m=a[1];a=k(null);var n=a[0],o=a[1];a=k(!0);var p=a[0],q=a[1];a=c("useOculusOrderCreationMutation")();var r=a[0];a[1];a=j(function(){try{var a={app_id:b,client_mutation_id:c("uuidv4")(),sku:h};if(l)return;m(!0);r({input:a,onCompleted:function(a){o((a=a.xoc_create_order_for_sku)==null?void 0:(a=a.order)==null?void 0:a.id)},onError:function(a){e();q(!1);a=new(c("GamesQuicksilverError"))(a.message);f(a)}})}catch(b){e();q(!1);a=new(c("GamesQuicksilverError"))(b.message);f(a)}},[b,h,l,r,f,e]);if(p===!1)return null;a();return i.jsx(i.Fragment,{children:n==null?i.jsx(c("CometTransientDialogProvider.react"),{children:i.jsx(c("InstantGamesIAPLoadingComponent.react"),{})}):i.jsx(c("CometTransientDialogProvider.react"),{children:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("InstantGamesIAPLoadingComponent.react"),{}),children:i.jsx(c("HorizonIWPPurchaseConfirmation.react"),{developerPayload:d,onCancel:function(){e();q(!1);var a=new(c("GamesQuicksilverError"))("cancelled");f(a)},onError:function(a){e();q(!1);a=new(c("GamesQuicksilverError"))(a);f(a)},onSuccess:function(a){e(),q(!1),g(a)},orderID:n})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesConnectedPlayersFetcher",["CometRelay","GamesQuicksilverError","InstantGamesConnectedPlayersFetcher_Query.graphql","Promise","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h!==void 0?h:h=b("InstantGamesConnectedPlayersFetcher_Query.graphql");a=function(){function a(){this.$1={}}var e=a.prototype;e.fetchAsync=function(a,e){var f=this;return this.$1[a]?(i||(i=b("Promise"))).resolve(this.$1[a]):d("CometRelay").fetchQuery(e,j,{game_id:a}).toPromise().then(function(d){d=d==null?void 0:(d=d.me)==null?void 0:(d=d.userScope)==null?void 0:d.connectedPlayers;if(!Array.isArray(d))return(i||(i=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Unable to fetch connected players").setCode("NETWORK_FAILURE"));var e={};d.map(function(a){var b,d,f,g,h=a==null?void 0:a.playerID;if(h==null)throw c("unrecoverableViolation")("Failed to parse player from query result","instant_games");b=a==null?void 0:(b=a.user)==null?void 0:b.id;d=a==null?void 0:(d=a.user)==null?void 0:d.fullName;f=a==null?void 0:(f=a.user)==null?void 0:(f=f.redirectPhoto)==null?void 0:f.uri;g=(g=a==null?void 0:a.should_show_messaging_consent_dialog)!=null?g:!1;a=(a=a==null?void 0:a.should_show_messaging_notice_dialog)!=null?a:!1;if(b!=null){h={id:h,name:d,photo:f,shouldShowMessagingConsentDialog:g,shouldShowMessagingNoticeDialog:a};e[b]=h}});Object.keys(e).length>0&&(f.$1[a]=e);return e})["catch"](function(a){return(i||(i=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Internal error while fetching connected players").setCode("NETWORK_FAILURE"))})};return a}();e=new a();g["default"]=e}),98);
-----
InstantGamesIAP",["CometRelay","GamesQuicksilverError","InstantGamesIAPOperations","InstantGamesIAP_FetchCatalogQuery.graphql","InstantGamesIAP_FetchPurchasesQuery.graphql","Promise","XFBGamesIAPProductFilterUtils.facebook","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=100,l="424054882412337",m="615185509510995",n=h!==void 0?h:h=b("InstantGamesIAP_FetchCatalogQuery.graphql"),o=i!==void 0?i:i=b("InstantGamesIAP_FetchPurchasesQuery.graphql");function a(a,e,f){return new(j||(j=b("Promise")))(function(b,c){d("CometRelay").commitMutation(f,{mutation:d("InstantGamesIAPOperations").ConsumePurchaseMutation,onCompleted:function(a){return b(a)},onError:function(a){return c(a)},variables:{input:{game_id:a,purchase_token:e}}})}).then(function(a){return a==null?void 0:(a=a.consumedPurchase)==null?void 0:a.purchase}).then(function(a){if(!a)return(j||(j=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Failed to consume purchase"));return})["catch"](function(){return(j||(j=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Request failed to be processed").setCode("NETWORK_FAILURE"))})}function e(a,e){return d("CometRelay").fetchQuery(e,n,{filter:d("XFBGamesIAPProductFilterUtils.facebook").fromJSEnum("one_time_payment"),game_id:a}).toPromise()["catch"](function(){return(j||(j=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Request failed to be processed").setCode("NETWORK_FAILURE"))}).then(function(a){return a==null?void 0:(a=a.node)==null?void 0:(a=a.productInventory)==null?void 0:a.catalog}).then(function(a){return!Array.isArray(a)?(j||(j=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Failed to fetch catalog")):a.map(function(a){var b=a.description,d=a.formattedAmount,e=a.imageURI,f=a.localPrice,g=a.productID;a=a.title;d=d;var h=f==null?void 0:f.amount;f=f==null?void 0:f.currency;if(d==null||f==null||a==null||g==null)throw c("unrecoverableViolation")("Cannot have these catalog fields as null","instant_games");return{description:b,imageURI:(b=e)!=null?b:null,price:d,priceAmount:Number(h),priceCurrencyCode:f,productID:g,title:a}}).filter(Boolean)})["catch"](function(){return(j||(j=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Failed to process catalog").setCode("NETWORK_FAILURE"))})}function f(a,e){return d("CometRelay").fetchQuery(e,n,{filter:d("XFBGamesIAPProductFilterUtils.facebook").fromJSEnum("subscribable"),game_id:a}).toPromise()["catch"](function(){return(j||(j=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Request failed to be processed").setCode("NETWORK_FAILURE"))}).then(function(a){return a==null?void 0:(a=a.node)==null?void 0:(a=a.productInventory)==null?void 0:a.catalog}).then(function(a){return!Array.isArray(a)?(j||(j=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Failed to fetch catalog")):a.map(function(a){var b=a.description,d=a.formattedAmount,e=a.imageURI,f=a.localPrice,g=a.productID,h=a.subscriptionTerm;a=a.title;d=d;var i=f==null?void 0:f.amount;f=f==null?void 0:f.currency;if(d==null||f==null||a==null||g==null||h==null)throw c("unrecoverableViolation")("Cannot have these catalog fields as null","instant_games");return{description:b,imageURI:(b=e)!=null?b:null,price:d,priceAmount:Number(i),priceCurrencyCode:f,productID:g,subscriptionTerm:h,title:a}}).filter(Boolean)})["catch"](function(){return(j||(j=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Failed to process catalog").setCode("NETWORK_FAILURE"))})}function p(a,e){return d("CometRelay").fetchQuery(e,o,{game_id:a}).toPromise()["catch"](function(){return(j||(j=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Request failed to be processed").setCode("NETWORK_FAILURE"))}).then(function(a){return a==null?void 0:(a=a.node)==null?void 0:(a=a.productInventory)==null?void 0:a.purchases}).then(function(a){return!Array.isArray(a)?(j||(j=b("Promise"))).reject(new(c("GamesQuicksilverError"))("Failed to fetch purchases")):a.map(function(a){var b=a.developerPayload,d=a.isConsumed,e=a.paymentActionType,f=a.paymentID,g=a.purchaseCurrencyAmount,h=a.purchasePlatform,i=a.purchaseTime,j=a.signedRequest,k=a.token;a=a==null?void 0:(a=a.product)==null?void 0:a.productID;if(d==null||f==null||h==null||a==null||i==null||k==null||j==null)throw c("unrecoverableViolation")("Cannot have these purchase fields as null","instant_games");return{developerPayload:b,isConsumed:d,paymentActionType:e,paymentID:f,productID:a,purchasePlatform:h,purchasePrice:q(g),purchaseTime:i,purchaseToken:k,signedRequest:j}})})}function q(a){var b=a==null?void 0:a.amount_with_offset;a=a==null?void 0:a.currency;return b==null||a==null?{amount:"",currency:""}:{amount:String(parseInt(b,10)/k),currency:a}}g.INSTANT_GAMES_PAYMENT_PRODUCT_ID=l;g.CANVAS_GAMES_PAYMENT_PRODUCT_ID=m;g.consumePurchase=a;g.fetchCatalog=e;g.fetchSubscribableCatalog=f;g.fetchPurchases=p;g.formatCurrencyAmount=q}),98);
-----
GamesQuicksilverError",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this.$1="UNKNOWN",this.$2=a}var b=a.prototype;b.setCode=function(a){this.$1=a;return this};b.getCode=function(){return this.$1};b.getMessage=function(){return this.$2};b.setMessage=function(a){this.$2=a;return this};b.serialize=function(){return{code:this.$1,message:this.$2||""}};return a}();f["default"]=a}),66);
-----
HorizonIWPPurchaseDialog.react",["CometPlaceholder.react","CometTransientDialogProvider.react","GamesQuicksilverError","HorizonIWPPurchaseConfirmation.react","InstantGamesIAPLoadingComponent.react","react","useOculusOrderCreationMutation","uuidv4"],(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.useState;function a(a){var b=a.appID,d=a.developerPayload,e=a.onClose,f=a.reject,g=a.resolve,h=a.sku;a=k(!1);var l=a[0],m=a[1];a=k(null);var n=a[0],o=a[1];a=k(!0);var p=a[0],q=a[1];a=c("useOculusOrderCreationMutation")();var r=a[0];a[1];a=j(function(){try{var a={app_id:b,client_mutation_id:c("uuidv4")(),sku:h};if(l)return;m(!0);r({input:a,onCompleted:function(a){o((a=a.xoc_create_order_for_sku)==null?void 0:(a=a.order)==null?void 0:a.id)},onError:function(a){e();q(!1);a=new(c("GamesQuicksilverError"))(a.message);f(a)}})}catch(b){e();q(!1);a=new(c("GamesQuicksilverError"))(b.message);f(a)}},[b,h,l,r,f,e]);if(p===!1)return null;a();return i.jsx(i.Fragment,{children:n==null?i.jsx(c("CometTransientDialogProvider.react"),{children:i.jsx(c("InstantGamesIAPLoadingComponent.react"),{})}):i.jsx(c("CometTransientDialogProvider.react"),{children:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("InstantGamesIAPLoadingComponent.react"),{}),children:i.jsx(c("HorizonIWPPurchaseConfirmation.react"),{developerPayload:d,onCancel:function(){e();q(!1);var a=new(c("GamesQuicksilverError"))("cancelled");f(a)},onError:function(a){e();q(!1);a=new(c("GamesQuicksilverError"))(a);f(a)},onSuccess:function(a){e(),q(!1),g(a)},orderID:n})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CloudPlayerAsyncMessageSender",["GamesQuicksilverError","Promise","Random","isTruthy"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(){function a(a){this.$3=[],this.$2=a,this.$1={}}var e=a.prototype;e.send=function(a,b){if(this.$2==null)return;window.self.postMessage({content:b,destination:this.$2,type:a},"/")};e.sendAsync=function(a,b){return this.$4(a,b).then(function(a){return a})["catch"](function(a){throw a})};e.$5=function(a){return a+"_"+d("Random").uint32()};e.$6=function(a,b,c){this.$1[a]={reject:c,resolve:b}};e.$7=function(a,b){var c=a.promiseID;if(c==null||!this.$1[c])return;var d=this.$1[c];b&&d.resolve?d.resolve(a.data):!b&&d.reject&&d.reject(a.data);delete this.$1[c]};e.$4=function(a,c){var d=this;return new(h||(h=b("Promise")))(function(b,e){var f=d.$5(a);d.$6(f,b,e);b=babelHelpers["extends"]({},c,{promiseID:f});d.send(a,b)})};e.resolveGamePromise=function(a,b){this.$7({data:b,promiseID:a},!0)};e.rejectGamePromise=function(a,b){b=b?b.serialize():new(c("GamesQuicksilverError"))().serialize();this.$7({data:b,promiseID:a},!1)};e.onAsyncMessage=function(a,b){var d=this,e=function(e){if(e instanceof MessageEvent&&e.source===window.self&&c("isTruthy")(e.data)){var f=e.data.type!==void 0?e.data.type:null,g=e.data.content!==void 0?e.data.content:null;e=e.data.destination!==void 0?e.data.destination:null;a===f&&d.$2===e&&b(g)}};window.addEventListener("message",e,!1);this.$3.push(e)};e.removeListener=function(a){window.removeEventListener("message",a),this.$3=this.$3.filter(function(b){return b!==a})};e.clearListeners=function(){for(var a=this.$3,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;window.removeEventListener("message",d)}this.$3=[]};return a}();g["default"]=a}),98);
-----
AltAppStoreInAppPurchaseCometDialogRenderer.react",["fbt","CometProgressRingIndeterminate.react","CometRelay","FBLogger","GamesQuicksilverError","InstantGamesErrorCode","InstantGamesIAP","InstantGamesIAPOperations","RelayHooks","getJSEnumSafe","promiseDone","react","usePaymentsCometCheckout"],(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=b.useState,n=h._("__JHASH__QYxqFy5ijk8__JHASH__").toString(),o=h._("__JHASH__bytE5u6AJET__JHASH__").toString();function a(a){var b=d("CometRelay").useRelayEnvironment(),e=a.appID,f=a.developerPayload,g=a.paymentType,h=a.productID,i=a.reject,p=a.resolve;a=m();var q=a[0],r=a[1];a=m(!1);var s=a[0],t=a[1],u=l(!1);a=c("usePaymentsCometCheckout")({checkoutProps:{customCheckoutSuccessCallback:function(a,b){var e;e=a==null?void 0:(e=a.transactionOrderDetails)==null?void 0:e.payment_id;a=a==null?void 0:(a=a.transactionOrderDetails)==null?void 0:a.id;if(e==null||a==null){b({error:{error_description:n,error_title:o},state:"ERROR"});i(new(c("GamesQuicksilverError"))("Invalid invoice or payment id").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}x({onCompleted:function(a){a=a.processPurchase;if(a==null){y(b);return}b({customConfirmationConfiguration:{hideConfirmationButton:!0},state:"SUCCESS"});u.current=!0;p({developerPayload:a.developer_payload,isConsumed:a.is_consumed,paymentActionType:a.payment_action_type,paymentID:a.payment_id,productID:a.product_id,purchasePrice:d("InstantGamesIAP").formatCurrencyAmount(a.purchase_currency_amount),purchaseTime:a.purchase_time,purchaseToken:a.purchase_token,signedRequest:a.signed_request})},onError:function(){b({error:{error_description:n,error_title:o},state:"ERROR"}),i(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"))},variables:{input:{invoice_id:a,payment_id:e}}})},orderID:q,paymentType:g,receiverID:e},onClose:function(){u.current||i(new(c("GamesQuicksilverError"))("User cancelled the order").setCode("USER_INPUT"))}});var v=a[0];g=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").CreatePurchaseOrderMutation);var w=g[0];a=g[1];g=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").ProcessPurchaseMutation);var x=g[0];k(function(){q!=null&&s===!1&&(v(),t(!0))},[q,v,s]);k(function(){q==null&&w({onCompleted:function(a){a=a.createPurchaseOrder;if(a==null){i(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}var b=a.error;if(b!=null){var d;i(new(c("GamesQuicksilverError"))((d=b==null?void 0:b.message)!=null?d:"Failed to create purchase order").setCode((d=c("getJSEnumSafe")(c("InstantGamesErrorCode"),b==null?void 0:b.code))!=null?d:"PAYMENTS_PURCHASE_CREATION_FAILED"));return}b=a.order_id;if(b==null){i(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}r(b)},onError:function(){i(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"))},variables:{input:{app_id:e,developer_payload:f,product_id:h}}})},[e,f,w,h,i,q]);function y(a){c("promiseDone")(d("InstantGamesIAP").fetchPurchases(e,b),function(b){b=b.find(function(a){return a.productID===h});b!=null?(c("FBLogger")("instant_games","post_process_purchase").warn("Had to refetch purchase object, on purchase completion."),a({customConfirmationConfiguration:{hideConfirmationButton:!0},state:"SUCCESS"}),p(b)):(a({error:{error_description:n,error_title:o},state:"ERROR"}),i(new(c("GamesQuicksilverError"))("Failed return purchase details.").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED")))},function(b){a({error:{error_description:n,error_title:o},state:"ERROR"}),i(b.setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"))})}return a||q==null?j.jsx("div",{className:"x4n7ey x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x17fpy1y x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"x6s0dn4 x78zum5 x1q0g3np x5yr21d xl56j7k x1n2onr6 xh8yej3",children:j.jsx(c("CometProgressRingIndeterminate.react"),{color:"light",size:24})})})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PlayServicesContextChooseRoot.react",["CometRelay","GamesQuicksilverError","GamingCustomUpdateNotifFalcoEvent","InstantGameContextType","InstantGamesContextMutations","InstantGamesContextSelectorCardRenderer.react","PlayServicesContextChooseRootQuery.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useCallback,l=h!==void 0?h:h=b("PlayServicesContextChooseRootQuery.graphql");function a(a){var b=d("CometRelay").useRelayEnvironment(),e="off_platform_context_choose",f=d("CometRelay").usePreloadedQuery(l,a.queries.playServicesContextChooseRootQueryReference),g=k(function(){return c("GamingCustomUpdateNotifFalcoEvent").log(function(){return{app_id:a.props.routeParams.app_id,dialog_type:"context_choose",event:"impression"}})},[a.props.routeParams.app_id]),h=function(b){o(new(c("GamesQuicksilverError"))("Player closed the off-platform context choose menu").setCode("USER_INPUT")),c("GamingCustomUpdateNotifFalcoEvent").log(function(){return{app_id:a.props.routeParams.app_id,dialog_type:"context_choose",event:"click_cancel"}})},i=function(c){c==="LINK"&&d("CometRelay").commitMutation(b,{mutation:d("InstantGamesContextMutations").LinkContextCreateMutation,onCompleted:function(a){if(!a){n();return}m(a)},onError:function(a){return n()},variables:{input:{app_id:a.props.routeParams.app_id}}})},m=function(a){a=a==null?void 0:(a=a.instant_application_context_token_link_create)==null?void 0:a.contextToken;if(!a){n();return}var b=a.contextSourceID;a=a.contextType&&c("InstantGameContextType")[a.contextType]?c("InstantGameContextType")[a.contextType]:null;if(b==null||!a){n();return}i("GENERIC")},n=function(){o(new(c("GamesQuicksilverError"))("Failed to switch context").setCode("NETWORK_FAILURE")),c("GamingCustomUpdateNotifFalcoEvent").log(function(){return{app_id:a.props.routeParams.app_id,dialog_type:"context_choose",error_message:"Context switch is rejected",event:"click_cancel"}})},o=function(b){c("GamingCustomUpdateNotifFalcoEvent").log(function(){return{app_id:a.props.routeParams.app_id,dialog_type:"context_choose",error_message:b.getMessage(),event:"error"}});return},p=function(a,b){return i(b)};return j.jsx(c("InstantGamesContextSelectorCardRenderer.react"),{entryPoint:e,filters:(e=a.props.routeParams.payload)==null?void 0:e.filters,game$ref:f.node,gameID:a.props.routeParams.app_id,isNative:!0,onClose:function(){return h("click_accept")},onContextChange:p,onImpression:g,tournamentInfo$ref:null})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesInAppPurchaseECPDialogRendererWithCSM.react",["ECPGamesUPLLogger","FBPayECPCSMUtils","FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint","GamesQuicksilverError","InstantGamesIAP","InstantGamesIAPOperations","InstantGamesInAppPurchaseECPDialogRendererWithCSM_ecpConfigFragment.graphql","InstantGamesPreloadedECPDialogContext","RelayHooks","justknobx","react","useCometDynamicEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useContext,j=e.useEffect,k=e.useMemo,l=e.useRef,m=h!==void 0?h:h=b("InstantGamesInAppPurchaseECPDialogRendererWithCSM_ecpConfigFragment.graphql");function a(a){var b=l(!1),e=a.appID,f=a.ecpConfigFragmentKey,g=a.reject,h=a.resolve,n=a.uplSessionID,o=d("RelayHooks").useFragment(m,f),p=l(!1),q=k(function(){return new(c("ECPGamesUPLLogger"))({client_suppression_policy:[],logging_policy_product:""},d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,"ecp","comet",n)},[n]);j(function(){var a=function(){c("justknobx")._("525")&&!p.current&&g(new(c("GamesQuicksilverError"))("User refreshed the page").setCode("USER_INPUT"))};window.addEventListener("beforeunload",a);return function(){return window.removeEventListener("beforeunload",a)}});var r=c("useCometDynamicEntryPointDialog")(c("FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint")),s=i(c("InstantGamesPreloadedECPDialogContext")),t=k(function(){return{product_data:[].concat(d("FBPayECPCSMUtils").getCheckoutSetupKeyValue("PRODUCT_ITEM_ID",a.productID),d("FBPayECPCSMUtils").getCheckoutSetupKeyValue("DEVELOPER_PAYLOAD",a==null?void 0:a.developerPayload)),product_id:d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,receiver_id:e,session_id:n}},[e,a==null?void 0:a.developerPayload,a.productID,n]);f=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").ProcessPurchaseMutation);var u=f[0];j(function(){var a;if(b.current)return;b.current=!0;a=(a=o.ecpConfig)!=null?a:{};var f=a.countryCode,i=a.currency,j=a.isRedesignAvailable,k=a.optionalFields;a=a.paymentContainerMode;a={country_code:(f=f)!=null?f:"US",is_redesign_available:(f=j)!=null?f:!1,optional_fields:k,order_id:null,payment_container_mode:(j=a)!=null?j:"LIVE",payment_product_id:d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,receiver_description:"",receiver_icon_uri:"",receiver_id:e,receiver_name:(f=o.gameName)!=null?f:"",session_id:n,shouldEnableCSM:!0,total:{currency:(k=i)!=null?k:"USD",value:"0"}};j=function(){p.current||g(new(c("GamesQuicksilverError"))("User cancelled the order").setCode("USER_INPUT"))};f={checkoutSetupInput:t,onReturn:function(a){p.current=!0,u({onCompleted:function(a){a=a.processPurchase;if(a==null){g(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"));return}q.logCheckoutSuccess();h({developerPayload:a.developer_payload,isConsumed:a.is_consumed,paymentActionType:a.payment_action_type,paymentID:a.payment_id,productID:a.product_id,purchasePlatform:a.purchase_platform,purchasePrice:d("InstantGamesIAP").formatCurrencyAmount(a.purchase_currency_amount),purchaseTime:a.purchase_time,purchaseToken:a.purchase_token,signedRequest:a.signed_request})},onError:function(){q.logCheckoutFailure(),g(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"))},variables:{input:{invoice_id:a}}})},routeProps:a};s.openPreloadedECPDialog!=null?s.openPreloadedECPDialog(babelHelpers["extends"]({},f,{routeProps:babelHelpers["extends"]({},f.routeProps,{isPreloaded:!0})}),j):r({routeProps:a},f,j)},[e,r,u,g,h,q,n,s,t,o.gameName,o.ecpConfig])}g["default"]=a}),98);
-----
InstantGamesFollowPageDialogContentStandard.react",["fbt","CometCard.react","CometColumnItem.react","CometRelay","CometScrollableArea.react","GamesQuicksilverError","InstantGamesFollowPageDialogContentStandard_Fragment.graphql","InstantGamesGenericDialogContainer.react","InstantGamesPagePostWithStoryView.react","InstantGamesPageRow.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=40,l=i!==void 0?i:i=b("InstantGamesFollowPageDialogContentStandard_Fragment.graphql");function a(a){var b=d("CometRelay").useFragment(l,a.fragmentKey);b=b==null?void 0:b.page;var e=b==null?void 0:b.url;if(b==null||e==null){a.reject(new(c("GamesQuicksilverError"))("Operation cannot be performed due to missing page linked to game").setCode("PAGE_NOT_LINKED"));return null}return j.jsxs(c("InstantGamesGenericDialogContainer.react"),{header:h._("u6e38u620fu516cu5171u4e3bu9875"),onDismiss:function(){return a.resolve()},children:[j.jsx(c("CometColumnItem.react"),{paddingVertical:8,children:j.jsx("div",{className:"xh8yej3",children:j.jsx(c("InstantGamesPageRow.react"),{appID:a.appID,noMargin:!0,page:b,profileImgSize:k})})}),j.jsx(c("CometColumnItem.react"),{paddingVertical:8,children:j.jsx(c("CometScrollableArea.react"),{horizontal:!1,vertical:!0,children:j.jsx(c("CometCard.react"),{background:"card-flat",border:"solid",children:j.jsx(c("InstantGamesPagePostWithStoryView.react"),{appID:a.appID,page:b,profileImgSize:k})})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesJoinGroupDialogContentStandard.react",["fbt","CometCard.react","CometColumnItem.react","CometImage.react","CometPressable.react","CometRelay","GamesQuicksilverError","GroupsCometJoinGroupButtonRelay.react","InstantGamesGenericDialogContainer.react","InstantGamesGroupDiscovery.react","InstantGamesGroupFacepile.react","InstantGamesJoinGroupDialogContentStandard_Fragment.graphql","InstantGamesWebPlayTypedLogger","TetraText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k={button:{marginBottom:"xod5an3",marginTop:"x1xmf6yo",$$css:!0},facePile:{marginTop:"x1xmf6yo",$$css:!0},groupContentDetails:{paddingStart:"x1ye3gou",paddingEnd:"xn6708d",$$css:!0},groupImage:{marginTop:"x9otpla",$$css:!0},groupName:{marginBottom:"xzueoph",marginTop:"xk9mzb7",width:"xh8yej3",$$css:!0},groupSocialContext:{marginBottom:"xod5an3",marginTop:"xr9ek0c",width:"xh8yej3",$$css:!0}},l=i!==void 0?i:i=b("InstantGamesJoinGroupDialogContentStandard_Fragment.graphql");function a(a){var b=d("CometRelay").useFragment(l,a.fragmentKey),e=b==null?void 0:b.viewer;b=(b=b==null?void 0:(b=b.communityData)==null?void 0:(b=b.groups)==null?void 0:b.nodes)!=null?b:[];b=b.length>0?b[0]:null;var f=b==null?void 0:b.url;if(b==null||e==null||f==null){a.reject(new(c("GamesQuicksilverError"))("Operation cannot be performed due to missing group linked to game").setCode("GROUP_NOT_LINKED"));return null}return j.jsx(c("InstantGamesGenericDialogContainer.react"),{header:h._("u6e38u620fu5c0fu7ec4"),onDismiss:function(){return a.resolve()},children:j.jsx(c("CometColumnItem.react"),{paddingVertical:8,children:j.jsx(c("CometPressable.react"),{linkProps:{onNavigate:function(){new(c("InstantGamesWebPlayTypedLogger"))().setEvent("join_group_in_game_dialog_click").setIgAppID(a.appID).log()},target:"_blank",url:f},children:j.jsxs(c("CometCard.react"),{background:"card-flat",border:"solid",children:[((f=b.profile_picture)==null?void 0:f.uri)!=null&&j.jsx(c("CometImage.react"),{src:(f=b.profile_picture)==null?void 0:f.uri,width:"100%",xstyle:k.groupImage}),j.jsxs("div",{className:"x1ye3gou xn6708d",children:[j.jsx("div",{className:"xzueoph xk9mzb7 xh8yej3",children:j.jsx(c("TetraText.react"),{align:"start",color:"primary",type:"headline4",children:b==null?void 0:b.name})}),j.jsx("div",{className:"xod5an3 xr9ek0c xh8yej3",children:j.jsx(c("InstantGamesGroupDiscovery.react"),{group:b})}),j.jsx("div",{className:"x1xmf6yo",children:j.jsx(c("InstantGamesGroupFacepile.react"),{group:b,viewer:e})}),j.jsx("div",{className:"xod5an3 x1xmf6yo",children:j.jsx(c("GroupsCometJoinGroupButtonRelay.react"),{group$key:b,isPrimary:!0,onPressJoined:function(){new(c("InstantGamesWebPlayTypedLogger"))().setEvent("join_group_in_game_dialog_confirm").setIgAppID(a.appID).log()},openInNewTab:!0,reduceEmphasis:!0,source:"INSTANT_GAMES"})})]})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PlayInCallsCustomUpdateConsentDialog.react",["fbt","ix","CometImage.react","CometRelay","CometTheme.react","GamesQuicksilverError","InstantGamesModal.react","MDSButton.react","MDSText.react","PlayInCallsCustomUpdateConsentDialogQuery.graphql","PlayInCallsCustomUpdateConsentDialogStyles","PlayInCallsCustomUpdateConsentDialog_SetBlockMessagingMutation.graphql","RelayHooks","fbicon","react","stylex"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=d("react"),m=d("react").useCallback,n=j!==void 0?j:j=b("PlayInCallsCustomUpdateConsentDialog_SetBlockMessagingMutation.graphql");function a(a){var e,f=a.queries.queryReference,g=d("CometRelay").usePreloadedQuery(k!==void 0?k:k=b("PlayInCallsCustomUpdateConsentDialogQuery.graphql"),f),j=m(function(b){a.props.onClose({data:b,type:"REJECT"})},[a.props]),o=m(function(b){a.props.onClose({data:b,type:"RESOLVE"})},[a.props]),p=d("RelayHooks").useMutation(n),q=p[0];p=p[1];var r=m(function(b){var d=a.props.contextSourceID;d!=null&&q({onCompleted:function(a){if(!a){j(new(c("GamesQuicksilverError"))("Mutation failed").setCode("NETWORK_FAILURE"));return}o()},onError:function(a){j(new(c("GamesQuicksilverError"))("Mutation failed").setCode("NETWORK_FAILURE"))},variables:{input:{app_id:f.variables.app_id,block_messaging:b,context_source_id:d,store_preference:!1}}})},[q,a.props.contextSourceID,f.variables.app_id,j,o]),s=m(function(){r(!1)},[r]),t=m(function(){r(!0)},[r]);e=l.jsxs("div",{children:[l.jsx(c("CometImage.react"),{src:((e=g.app)==null?void 0:(e=e.instantGameInfo)==null?void 0:e.iconURI)||"",xstyle:d("PlayInCallsCustomUpdateConsentDialogStyles").gameIcon}),l.jsx("div",{className:c("stylex")(d("PlayInCallsCustomUpdateConsentDialogStyles").headerText),children:l.jsx(c("MDSText.react"),{type:"headlineEmphasized1",children:h._("Continue the fun")})}),l.jsx("div",{className:c("stylex")(d("PlayInCallsCustomUpdateConsentDialogStyles").bodyText),children:l.jsx(c("MDSText.react"),{type:"body3",children:h._("u5728u4f60u8fdbu884cu6e38u620fu64cdu4f5cu65f6uff0cu901au8fc7 Messenger u5411u901au8bddu6210u5458u53d1u9001u6e38u620fu65b0u52a8u6001u3002")})}),l.jsx("div",{className:c("stylex")(d("PlayInCallsCustomUpdateConsentDialogStyles").bodyText),children:l.jsx(c("MDSText.react"),{type:"body3",children:h._("{gameName}u53efu4ee5u4ee3u8868u4f60u6233u4e00u6233u5bf9u65b9uff0cu5411u4ed6u4eecu53d1u9001u8f6eu6b21u63d0u9192u6216u6e38u620fu7ed3u679cu7b49u6d88u606fu3002",[h._param("gameName",(e=g.app)==null?void 0:(g=e.instantGameInfo)==null?void 0:g.gameName)])})}),l.jsxs("div",{className:c("stylex")(d("PlayInCallsCustomUpdateConsentDialogStyles").buttonContainer),children:[l.jsx("div",{className:c("stylex")(d("PlayInCallsCustomUpdateConsentDialogStyles").acceptButton),children:l.jsx(c("MDSButton.react"),{disabled:p,icon:d("fbicon")._(i("505616"),16),label:h._("u5141u8bb8u6e38u620fu65b0u52a8u6001"),onPress:s})}),l.jsx("div",{className:c("stylex")(d("PlayInCallsCustomUpdateConsentDialogStyles").rejectButton),children:l.jsx(c("MDSButton.react"),{disabled:p,label:h._("u4e0du5141u8bb8"),onPress:t,reduceEmphasis:!0,type:"secondary"})})]})]});return l.jsx(c("CometTheme.react"),{theme:"dark",children:l.jsx(c("InstantGamesModal.react"),{hideCloseButton:!0,onDismiss:function(){},children:e})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesJoinGamingSquadContainer.react",["CometRelay","GamesQuicksilverError","GamingSquadFalcoEventFalcoEvent","InstantGameContextType","InstantGamesJoinGamingSquadContainerMutation.graphql","InstantGamesJoinGamingSquadContainer_Fragment.graphql","InstantGamesJoinGamingSquadDialogContent.react","RelayHooks","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react"),k=d("react").useCallback,l=h!==void 0?h:h=b("InstantGamesJoinGamingSquadContainer_Fragment.graphql"),m=i!==void 0?i:i=b("InstantGamesJoinGamingSquadContainerMutation.graphql");function a(a){var b,e=a.params,f=e.appID,g=e.appName,h=e.onClose,i=e.switchContext,n=a.params.dialogRequest.data.squadID,o=a.params.dialogRequest.data.squadTerm;e=d("CometRelay").useFragment(l,a.fragmentKey);var p=(a=e.squad)==null?void 0:(a=a.thread)==null?void 0:a.id;a=((a=e.squad)==null?void 0:a.is_member)===!0;var q=c("getJSEnumSafe")(c("InstantGameContextType"),(b=e.squad)==null?void 0:(b=b.context_token)==null?void 0:b.context_type),r=(b=e.squad)==null?void 0:(b=b.context_token)==null?void 0:b.id,s=(b=e.squad)==null?void 0:(b=b.context_token)==null?void 0:b.context_size,t=k(function(a){h({data:a,type:"REJECT"})},[h]),u=k(function(a){h({data:a,type:"RESOLVE"})},[h]);b=d("RelayHooks").useMutation(m);var v=b[0];b=b[1];var w=k(function(){t(new(c("GamesQuicksilverError"))("Failed to join a gaming squad").setCode("NETWORK_FAILURE"))},[t]),x=k(function(){c("GamingSquadFalcoEventFalcoEvent").log(function(){return{dialog_type:"join_squad",event:"click",game_id:f,squad_id:n,squad_term:o}}),v({onCompleted:function(a){u({context_id:a.joinGamingSquad.gaming_squad.context_token.id,context_size:a.joinGamingSquad.gaming_squad.context_token.context_size,context_type:a.joinGamingSquad.gaming_squad.context_token.context_type,gaming_squad_id:a.joinGamingSquad.gaming_squad.id}),i({id:a.joinGamingSquad.gaming_squad.thread.id,type:a.joinGamingSquad.gaming_squad.context_token.context_type})},onError:w,variables:{input:{squad_id:n}}})},[v,w,n,f,o,u,i]),y=k(function(){var a;c("GamingSquadFalcoEventFalcoEvent").log(function(){return{dialog_type:"switch_into_squad",event:"click",game_id:f,squad_id:n,squad_term:o}});u({context_id:r,context_size:s,context_type:(a=q)!=null?a:"THREAD",gaming_squad_id:n});i({id:p,type:(a=q)!=null?a:"THREAD"})},[u,f,r,s,q,n,i,o,p]),z=k(function(){t(new(c("GamesQuicksilverError"))("User input").setCode("USER_INPUT"))},[t]),A=e==null?void 0:e.squad;e=e==null?void 0:(e=e.viewer)==null?void 0:e.actor;if(A==null||e==null){t(new(c("GamesQuicksilverError"))("Network error when retrieving squad info").setCode("NETWORK_FAILURE"));return null}return j.jsx(c("InstantGamesJoinGamingSquadDialogContent.react"),{appID:f,appName:g,isInFlight:b,isMember:a,onClick:a?y:x,onDismiss:z,squadID:n,squadInfo:A,squadTerm:o,userInfo:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesCreateGamingSquadContainer.react",["fbt","ix","CometImage.react","CometTheme.react","GamesQuicksilverError","GamingSquadFalcoEventFalcoEvent","Image.react","InstantGamesBottomSheet.react","InstantGamesButton.react","InstantGamesCreateGamingSquadContainerMutation.graphql","InstantGamesCreateGamingSquadScreen","InstantGamesGamingSquadAddFriendsScreen.react","RelayHooks","ServicesUIFacepileRounded.react","ShimButton.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useCallback,m=e.useEffect,n=e.useState,o=j!==void 0?j:j=b("InstantGamesCreateGamingSquadContainerMutation.graphql");function a(a){var b,e,f=a.params,g=f.appIcon,j=f.appID,p=f.appName,q=f.onClose,r=f.switchContext,s=a.params.dialogRequest.data.image,t=a.params.dialogRequest.data.name;f=(f=a.params.dialogRequest.data.squadTerm)!=null?f:h._("Squad");var u=l(function(a){q({data:a,type:"REJECT"})},[q]),v=l(function(a){q({data:a,type:"RESOLVE"})},[q]);m(function(){c("GamingSquadFalcoEventFalcoEvent").log(function(){return{developer_squad_name_prefill:t,dialog_type:"create_squad",event:"impression",game_id:j,squad_term:a.params.dialogRequest.data.squadTerm}})},[j,t,a.params.dialogRequest.data.squadTerm]);var w=d("RelayHooks").useMutation(o),x=w[0];w=w[1];var y=l(function(){u(new(c("GamesQuicksilverError"))("Failed to create a gaming squad").setCode("NETWORK_FAILURE"))},[u]);b=(b=t)!=null?b:h._("Add a short name");var z=(e=t)!=null?e:h._("{name of the game} Game Group Chat",[h._param("name of the game",p)]);e=n(z);var A=e[0],B=e[1];e=n(c("InstantGamesCreateGamingSquadScreen").Main);var C=e[0],D=e[1],E=l(function(a){D(a)},[]);e=n(new Map());var F=e[0],G=e[1];e=l(function(a){return G(a)},[G]);var H=l(function(){u(new(c("GamesQuicksilverError"))("User input").setCode("USER_INPUT"))},[u]),I=l(function(){c("GamingSquadFalcoEventFalcoEvent").log(function(){return{developer_squad_name_prefill:t,dialog_type:"create_squad",event:"click",game_id:j,squad_term:a.params.dialogRequest.data.squadTerm}}),x({onCompleted:function(a){v({context_id:a.createGamingSquad.gaming_squad.context_token.id,context_size:a.createGamingSquad.gaming_squad.context_token.context_size,context_type:a.createGamingSquad.gaming_squad.context_token.context_type,gaming_squad_id:a.createGamingSquad.gaming_squad.id,gaming_squad_image_uri:a.createGamingSquad.gaming_squad.squad_icon_uri,gaming_squad_name:a.createGamingSquad.gaming_squad.name}),r({id:a.createGamingSquad.gaming_squad.thread.id,type:a.createGamingSquad.gaming_squad.context_token.context_type})},onError:y,variables:{input:{app_id:j,image:s,name:A,participants:Array.from(F.keys())}}})},[x,j,y,v,A,r,s,t,F,a.params.dialogRequest.data.squadTerm]);I=k.jsx("div",{className:"xhk9q7s x1otrzb0 x1i1ezom x1o6z2jb x6prxxf x117nqv4 xod5an3 x16n37ib xq8finb",children:k.jsx(c("InstantGamesButton.react"),{isDisabled:w,onClick:I,title:w?h._("u6b63u5728u521bu5efau2026"):h._("u521bu5efa")})});w=null;if(C===c("InstantGamesCreateGamingSquadScreen").Main){var J;w=k.jsxs("div",{children:[k.jsxs("div",{className:"x78zum5 xdt5ytf x5yr21d xl56j7k x5ib6vp xc73u3c x1cnzs8",children:[k.jsx(c("Image.react"),{className:"xamitd3 x14yjl9h xudhj91 x18nykt9 xww2gxu xng8ra x1yztbdb xqui205 x1247r65",src:(J=s)!=null?J:g}),k.jsxs("div",{className:"xfi1oeo",children:[k.jsx("div",{className:"xzsf02u x1603h9y x117nqv4 x2b8uid",children:h._("Create a New {Group term}",[h._param("Group term",f)])}),k.jsx("div",{className:"xzsf02u x1nxh6w3 xm7lytj x2b8uid",children:h._("Add friends to your {Group term}. Play together and create your own space within {name of the game}",[h._param("Group term",f),h._param("name of the game",p)])})]}),k.jsx("div",{className:"x14nfmen xjm9jq1 x1t2a60a x1mpkggp"}),k.jsx("div",{className:"x76ihet xwmqs3e x112ta8 xxxdfa6 xzsf02u x1jchvi3 x109j2v6 x1yc453h",children:h._("{Group term} name",[h._param("Group term",f)])}),k.jsx("input",{className:"x8cjs6t x1ch86jh x80vd3b xckqwgs xhk9q7s x1otrzb0 x1i1ezom x1o6z2jb x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x1xmu9ic xi28a7 x1qdctgf x1rsy3fd xzsf02u x6prxxf x1xmf6yo xr1496l xurb0ha x1sxyh0 xqy66fx",maxLength:"40",onChange:function(a){a.target.value===""?B(z):B(a.target.value)},placeholder:b}),k.jsx(c("ShimButton.react"),{className:"x1ypdohk",onClick:function(){E(c("InstantGamesCreateGamingSquadScreen").AddFriends)},role:"button",children:k.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np x1qughib x12nagc xk9mzb7 x1ceqetc",children:[k.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np",children:[F.size===0?k.jsx("div",{className:"x6s0dn4 xiwuv7k x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 x10wjd1d xl56j7k x1pju0fl",children:k.jsx(c("CometImage.react"),{src:i("861523")})}):k.jsx(c("ServicesUIFacepileRounded.react"),{numProfilesToDisplay:1,profiles:Array.from(F.values()).map(function(a){return{image_src:a.profilePictureURI,name:a.name}})}),k.jsxs("div",{className:"x78zum5 xdt5ytf x1ye3gou",children:[k.jsx("div",{className:"x76ihet xwmqs3e x112ta8 xxxdfa6 xzsf02u x1nxh6w3 x1yc453h",children:h._("Add friends")}),k.jsx("div",{className:"x76ihet xwmqs3e x112ta8 xxxdfa6 xi81zsa x1pg5gke x1yc453h",children:h._("Add friends to your {Developer provided group term to use, eg: Squad, Clan, etc}",[h._param("Developer provided group term to use, eg: Squad, Clan, etc",f)])})]})]}),k.jsx(c("CometImage.react"),{src:i("492537")})]})}),k.jsx("div",{className:"x14nfmen xjm9jq1 xcxhlts x1t2a60a x1mpkggp"}),k.jsx("div",{className:"x12scifz x1pg5gke xyamay9 x1l90r2v x2b8uid",children:h._("Members of this {Group term} will be added to a Messenger thread for all participants. The activity will be visible to everyone in the squad. Anyone playing {name of the game} can join this {Group term}.",[h._param("Group term",f),h._param("name of the game",p)])})]}),I," "]})}else C===c("InstantGamesCreateGamingSquadScreen").AddFriends&&(w=k.jsx(c("InstantGamesGamingSquadAddFriendsScreen.react"),{alreadySelectedFriends:F,onAddSelectedFriends:e,onBack:function(){E(c("InstantGamesCreateGamingSquadScreen").Main)}}));return k.jsx(c("CometTheme.react"),{theme:"light",children:k.jsx(c("InstantGamesBottomSheet.react"),{onDismiss:H,children:w})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesTournamentDialogHeaderContainer.react",["ix","CometPressable.react","CometProgressRingIndeterminate.react","CometSkittleIcon.react","GamesQuicksilverError","InstantTournamentStrings","fbicon","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useMemo;function a(a){var b=a.actionPending,e=a.onClose,f=a.passedFriendName,g=a.shareType;a=j(function(){return{description:c("InstantTournamentStrings").getDescription(g,f),headerText:c("InstantTournamentStrings").getHeaderText(g)}},[f,g]);var k=function(){e({data:new(c("GamesQuicksilverError"))("The player dismissed the dialog").setCode("USER_INPUT"),type:"REJECT"})};return i.jsxs("div",{children:[i.jsx("div",{className:"x78zum5 xxk0z11 x13a6bvl",children:b===!0?i.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24}):i.jsx(c("CometPressable.react"),{"aria-label":"tournament-dialog-close-button",onPress:k,overlayDisabled:!0,testid:void 0,children:i.jsx(c("CometSkittleIcon.react"),{color:"gray",icon:d("fbicon")._(h("478233"),20),size:36})})}),i.jsxs("div",{className:"x1jx94hy x1g2khh7",children:[i.jsx("div",{className:"xzsf02u x1603h9y x2b8uid",children:a.headerText}),i.jsx("div",{className:"xi81zsa xylt984 x2b8uid",children:a.description})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesTournamentCreateDialogComposerContainer.react",["CometPlaceholder.react","CometRelay","FBLogger","GamesQuicksilverError","GamesServiceSIDLoggerUtils","InstantGameContextType","InstantGamesErrorCode","InstantGamesTournamentCreateDialogComposerContainerQuery.graphql","InstantGamesTournamentCreateDialogPreview.react","InstantGamesTournamentDialogComposer.react","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useEffect,l=e.useState,m=h!==void 0?h:h=b("InstantGamesTournamentCreateDialogComposerContainerQuery.graphql");function a(a){var b,e,f=d("CometRelay").useFragment(m,a.queryKey);b=(b=f.me)==null?void 0:(b=b.profile_picture)==null?void 0:b.uri;e=(e=f.me)==null?void 0:e.short_name;var g=l(null),h=g[0],n=g[1],o=a.commit;g=a.params.dialogRequest.data;var p=g.formattedScore,q=g.image;g=g.initialScore;var r=a.params.appID,s=a.params.sessionID,t=a.params,u=t.onClose,v=t.switchContext;t=j(function(){d("GamesServiceSIDLoggerUtils").logInstantGamesTournament({creation_surface:"DEEP_CREATION_DIALOG",event:"deep_tournament_creation_dialog_click",override_app_id:r,session_token_id:s,surface:"CREATION_DIALOG"}),o().then(function(a){a=a.instant_games_tournament_create;var b=a==null?void 0:a.tournament_info,d=b==null?void 0:b.context_id;if(b!=null&&d!=null){u({data:{context_id:d,context_size:b.context_size,context_type:b.context_type,end_time:b.end_time,payload:b.payload,title:b.title,tournament_id:b.tournament_id},type:"RESOLVE"});d=c("getJSEnumSafe")(c("InstantGameContextType"),b.context_type);v({id:b.tournament_id,type:(b=d)!=null?b:"GENERIC"})}else{d=c("getJSEnumSafe")(c("InstantGamesErrorCode"),a==null?void 0:a.error_code);u({data:new(c("GamesQuicksilverError"))((b=a==null?void 0:a.error_message)!=null?b:"Invalid response from the server").setCode((a=d)!=null?a:"NETWORK_FAILURE"),type:"REJECT"});n("error")}})["catch"](function(a){c("FBLogger")("instant_games").warn("Tournament create mutation error: %s",a.message),n(a)})},[r,o,u,s,v]);k(function(){return d("GamesServiceSIDLoggerUtils").logInstantGamesTournament({creation_surface:"DEEP_CREATION_DIALOG",event:"deep_tournament_creation_dialog_impression",override_app_id:r,session_token_id:s,surface:"CREATION_DIALOG"})},[r,s]);return f.viewer==null?null:i.jsx(d("InstantGamesTournamentDialogComposer.react").InstantGamesTournamentDialogComposer,{error:h,isInFlight:a.isInFlight,message:a.message,mutationCallback:t,playerName:e,playerPicture:b,postID:null,setMessage:a.setMessage,setPrivacyOption:a.setPrivacyOption,setPrivacyRowInput:a.setPrivacyRowInput,usageType:d("InstantGamesTournamentDialogComposer.react").UsageType.TournamentCreation,viewer:f.viewer,children:i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(c("InstantGamesTournamentCreateDialogPreview.react"),{appInfo:f.app,formattedScore:p,image:q,initialScore:g,playerName:e,playerPicture:b})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesPinShortcutDialog.react",["fbt","AnimatedSlideInFromBottom.react","CometImage.react","CometImageContainer.react","CometProgressRingIndeterminate.react","CometRelay","CometUnitHeader.react","FullSizeVerticalScrollView.react","GamesQuicksilverError","InstantGamesPinShortcutDialogLastUpdateTimeMutation.graphql","InstantGamesPinShortcutDialogMutation.graphql","InstantGamesPinShortcutDialogQuery.graphql","InstantGamesWebHubEventsFalcoEvent","TetraButton.react","TetraText.react","TimeUtils","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=d("react");e=d("react");var m=e.useEffect,n=e.useRef,o=e.useState,p=i!==void 0?i:i=b("InstantGamesPinShortcutDialogQuery.graphql"),q=j!==void 0?j:j=b("InstantGamesPinShortcutDialogLastUpdateTimeMutation.graphql"),r=k!==void 0?k:k=b("InstantGamesPinShortcutDialogMutation.graphql");function a(a){var b=a.props,e=b.appID,f=b.onClose;b=d("CometRelay").usePreloadedQuery(p,a.queries.query);b=(a=b.game)==null?void 0:a.info;a=o("");var g=a[0],i=a[1];a=o(!1);var j=a[0],k=a[1],t=d("CometRelay").useRelayEnvironment(),u=n(!1);m(function(){if(u.current===!0)return;u.current=!0;c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:e,event:"impression",section:"in_game_add_shortcut_prompt"}});d("CometRelay").commitMutation(t,{mutation:q,variables:{input:{app:e,shortcut_dialog_last_prompted_time:c("TimeUtils").now()}}})},[e,t]);a=function(){c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:e,button_type:"not_now",event:"click",section:"in_game_add_shortcut_prompt"}}),f({data:new(c("GamesQuicksilverError"))("Dialog dismissed").setCode("USER_INPUT"),type:"REJECT"})};if(b==null)return null;var v=b.gameName;b=b.iconURI;var w=function(){k(!0),d("CometRelay").commitMutation(t,{mutation:r,onCompleted:function(){i(""),k(!1),c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:e,button_type:"accept_button",event:"click",section:"in_game_add_shortcut_prompt"}}),f({data:null,type:"RESOLVE"})},onError:function(){i(h._("u51fau9519u4e86uff0cu8bf7u7a0du540eu91cdu8bd5u3002"))},variables:{input:{app_id:e,favorite_state_to_update:!0}}})},x=h._("u6536u85cfu5230u201cu6211u7684u6e38u620fu201d");v=h._("u628a{name}u6536u85cfu5230u201cu6211u7684u6e38u620fu201duff0cu73a9u6e38u620fu66f4u5febu6377u3002u8fd9u4e2au6e38u620fu4e5fu4f1au52a0u5165u5febu901fu8bbfu95eeu7248u5757u3002",[h._param("name",v)]);var y=h._("u6536u85cfu6e38u620f");return l.jsx("div",{className:"xatbrnm xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:l.jsx(c("FullSizeVerticalScrollView.react"),{children:l.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"50%",translate:"0px",trigger:!0,children:l.jsxs("div",{className:"x1jx94hy x1tlxs6b x1g8br2z x1gn5b1j x230xth xfsxhmi x1rg5ohu xw7yly9 x1emribx x1yztbdb x1i64zmx x1j9u4d2 x6ikm8r x10wlt62 x889kno x1iji9kk x1a8lsjc x1sln4lm x1n2onr6 x2b8uid x1cb1t30",children:[b!=null&&l.jsx(c("CometImageContainer.react"),{shape:"circle",size:72,children:l.jsx(c("CometImage.react"),{src:b,xstyle:s.image})}),l.jsx("div",{className:"x1lliihq x6ikm8r xx6bls6",children:l.jsx(c("CometUnitHeader.react"),{align:"center",headline:x,level:2})}),l.jsxs("div",{className:"x1lliihq xdj266r x1jqylkn xat24cr x13ibhcj x6ikm8r x1iorvi4 xjkvuk6 x1yc453h xlyipyv",children:[l.jsx(c("TetraText.react"),{align:"center",type:"body3",children:v}),l.jsx("div",{className:"xqy66fx x4uap5 xr1496l xkhd6sd",children:l.jsx(c("TetraText.react"),{align:"center",color:"negative",type:"body3",children:g})})]}),j?l.jsx("div",{className:"x78zum5 xl56j7k xw7yly9 x1yztbdb",children:l.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"x1rg5ohu x1xmf6yo x1emribx x1e56ztr x1i64zmx xz84dc7",children:l.jsx(c("TetraButton.react"),{disabled:j,label:h._("u53d6u6d88"),onPress:a,reduceEmphasis:!0,type:"secondary"})}),l.jsx("div",{className:"x1rg5ohu x1xmf6yo x1emribx x1e56ztr x1i64zmx xz84dc7",children:l.jsx(c("TetraButton.react"),{label:y,onPress:w})})]})]})})})})}a.displayName=a.name+" [from "+f.id+"]";var s={button:{display:"x1rg5ohu",marginTop:"x1xmf6yo",marginEnd:"x1emribx",marginBottom:"x1e56ztr",marginStart:"x1i64zmx",width:"xz84dc7",$$css:!0},description:{display:"x1lliihq",marginTop:"xdj266r",marginEnd:"x1jqylkn",marginBottom:"xat24cr",marginStart:"x13ibhcj",overflowX:"x6ikm8r",paddingTop:"x1iorvi4",paddingBottom:"xjkvuk6",textAlign:"x1yc453h",textOverflow:"xlyipyv",$$css:!0},errorMessage:{paddingTop:"xqy66fx",paddingEnd:"x4uap5",paddingBottom:"xr1496l",paddingStart:"xkhd6sd",$$css:!0},fullSizeContainer:{backgroundColor:"xatbrnm",end:"xds687c",height:"x5yr21d",marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0},image:{display:"x1lliihq",height:"x5yr21d",objectFit:"xl1xv1r",width:"xh8yej3",$$css:!0},root:{backgroundColor:"x1jx94hy",borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",boxShadow:"xfsxhmi",display:"x1rg5ohu",marginTop:"xw7yly9",marginEnd:"x1emribx",marginBottom:"x1yztbdb",marginStart:"x1i64zmx",maxWidth:"x1j9u4d2",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x889kno",paddingEnd:"x1iji9kk",paddingBottom:"x1a8lsjc",paddingStart:"x1sln4lm",position:"x1n2onr6",textAlign:"x2b8uid",transform:"x1cb1t30",$$css:!0},spinner:{display:"x78zum5",justifyContent:"xl56j7k",marginTop:"xw7yly9",marginBottom:"x1yztbdb",$$css:!0},title:{display:"x1lliihq",overflowX:"x6ikm8r",paddingBottom:"xx6bls6",$$css:!0}};g["default"]=a}),98);
-----
InstantGamesInAppPurchaseECPDialogRenderer.react",["CometProgressRingIndeterminate.react","CometRelay","ECPGamesUPLLogger","FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint","GamesQuicksilverError","InstantGamesErrorCode","InstantGamesIAP","InstantGamesIAPOperations","InstantGamesInAppPurchaseECPDialogRenderer_CreatePurchaseOrderMutation.graphql","RelayHooks","getJSEnumSafe","justknobx","react","useCometDynamicEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useEffect,k=e.useMemo,l=e.useRef,m=e.useState;function a(a){var e=d("CometRelay").useRelayEnvironment(),f=a.appID,g=a.developerPayload,n=a.optionalFields,o=a.productID,p=a.reject,q=a.resolve,r=a.uplSessionID;a=m(!1);var s=a[0],t=a[1],u=l(!1),v=k(function(){return new(c("ECPGamesUPLLogger"))({client_suppression_policy:[],logging_policy_product:""},d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,"ecp","comet",r)},[r]);a=m();var w=a[0],x=a[1];j(function(){var a=function(){c("justknobx")._("525")&&!u.current&&p(new(c("GamesQuicksilverError"))("User refreshed the page").setCode("USER_INPUT"))};window.addEventListener("beforeunload",a);return function(){return window.removeEventListener("beforeunload",a)}});var y=c("useCometDynamicEntryPointDialog")(c("FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint"));a=d("RelayHooks").useMutation(h!==void 0?h:h=b("InstantGamesInAppPurchaseECPDialogRenderer_CreatePurchaseOrderMutation.graphql"));var z=a[0];a=a[1];var A=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").ProcessPurchaseMutation),B=A[0];j(function(){if(w!=null&&s===!1){var a={country_code:w.countryCode,optional_fields:n,order_id:w.orderID,payment_container_mode:w.isTestPurchase?"TEST":"LIVE",payment_product_id:d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,receiver_description:w.product.title,receiver_icon_uri:w.product.imageURL,receiver_id:f,receiver_name:w.appName,session_id:r,total:{currency:w.product.price.currency,value:w.product.price.amount.toFixed(2)}},b=function(a,b){u.current||p(new(c("GamesQuicksilverError"))("User cancelled the order").setCode("USER_INPUT"))};y({routeProps:a},{onReturn:function(a,b){u.current=!0,B({onCompleted:function(a){a=a.processPurchase;if(a==null){p(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"));return}v.logCheckoutSuccess();q({developerPayload:a.developer_payload,isConsumed:a.is_consumed,paymentActionType:a.payment_action_type,paymentID:a.payment_id,productID:a.product_id,purchasePlatform:a.purchase_platform,purchasePrice:d("InstantGamesIAP").formatCurrencyAmount(a.purchase_currency_amount),purchaseTime:a.purchase_time,purchaseToken:a.purchase_token,signedRequest:a.signed_request})},onError:function(){v.logCheckoutFailure(),p(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"))},variables:{input:{invoice_id:a}}})},routeProps:a},b);t(!0)}},[y,s,o,f,w,p,B,q,e,r,n,v]);j(function(){w==null&&z({onCompleted:function(a){a=a.createPurchaseOrder;if(a==null){p(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}var b=a.error;if(b!=null){var d;p(new(c("GamesQuicksilverError"))((d=b==null?void 0:b.message)!=null?d:"Failed to create purchase order").setCode((d=c("getJSEnumSafe")(c("InstantGamesErrorCode"),b==null?void 0:b.code))!=null?d:"PAYMENTS_PURCHASE_CREATION_FAILED"));return}b=a.appName;d=a.countryCode;var e=a.currencyCode,f=a.imageURL,g=a.isTestPurchase,h=a.orderID,i=a.price;a=a.title;if(b==null||e==null||f==null||h==null||i==null||a==null||g==null){p(new(c("GamesQuicksilverError"))("Failed to create purchase order: invalid product").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}x({appName:b,countryCode:(b=d)!=null?b:"",isTestPurchase:g,orderID:h,product:{imageURL:f,price:{amount:i,currency:e},title:a}})},onError:function(){p(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"))},variables:{input:{app_id:f,developer_payload:g,product_id:o}}})},[f,g,z,o,p,w]);return a||w==null?i.jsx("div",{className:"x4n7ey x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:i.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x17fpy1y x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:i.jsx("div",{className:"x6s0dn4 x78zum5 x1q0g3np x5yr21d xl56j7k x1n2onr6 xh8yej3",children:i.jsx(c("CometProgressRingIndeterminate.react"),{color:"light",size:24})})})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CloudGameFriendFinderInviteDialog.react",["CloudGameFriendFinderInviteDialogQuery.graphql","CloudGameFriendFinderInviteDialogRenderer.react","CometErrorBoundary.react","CometPlaceholder.react","CometProgressRingIndeterminate.react","CometRelay","GamesQuicksilverError","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useEffect,k=h!==void 0?h:h=b("CloudGameFriendFinderInviteDialogQuery.graphql");function l(a){var b=a.props,e=b.appID,f=b.dialogRequest,g=b.onClose;b=d("CometRelay").usePreloadedQuery(k,a.queries.queryReference);a=b.cloud_friend_finder_invite_data;f=f==null?void 0:(b=f.data)==null?void 0:b.source;b=f==="invite_button_at_nav_bar_cloud"?"invite_button_at_nav_bar_cloud":"in_game_from_link_cloud";return i.jsx(c("CloudGameFriendFinderInviteDialogRenderer.react"),{gameID:e,onClose:function(){return g({data:null,type:"RESOLVE"})},sections$key:a,source:b})}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b=a.onClose;j(function(){b({data:new(c("GamesQuicksilverError"))("Client cannot perform this operation").setCode("INVALID_OPERATION"),type:"REJECT"})},[b]);return i.jsx(i.Fragment,{})}m.displayName=m.name+" [from "+f.id+"]";function a(a){return i.jsx(c("CometErrorBoundary.react"),{fallback:function(){return i.jsx(m,{onClose:a.props.onClose})},children:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx("div",{className:"xrmyhay x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:i.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x17fpy1y x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:i.jsx("div",{className:"x6s0dn4 x78zum5 x1egiwwb xl56j7k x1n2onr6",children:i.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})})})}),children:i.jsx(l,babelHelpers["extends"]({},a))})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesCustomLinkShareContainer.react",["fbt","CometProgressRingIndeterminate.react","GamesQuicksilverError","InstantGamesBottomSheet.react","InstantGamesButton.react","InstantGamesCustomLinkShareContainerCreateLinkMutation.graphql","InstantGamesCustomLinkShareDialogContent.react","RelayHooks","TetraText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useEffect,m=e.useState,n=i!==void 0?i:i=b("InstantGamesCustomLinkShareContainerCreateLinkMutation.graphql");function a(a){var b=m(null),e=b[0],f=b[1];b=m(null);var g=b[0],i=b[1],o=a.reject;b=k(function(){o(new(c("GamesQuicksilverError"))("Request to fetch the custom link failed.").setCode("NETWORK_FAILURE"))},[o]);var p=a.resolve,q=k(function(){p()},[p]),r=d("RelayHooks").useMutation(n),s=r[0];r=r[1];var t=a.appID,u=a.requestData,v=a.requestImage,w=a.requestText;l(function(){var a=s({onCompleted:function(a){return f(a.createPlayLink)},onError:function(a){return i(a)},variables:{input:{app_id:t,link_params:{payload:u,preview_description:w,preview_image:v}}}});return function(){return a.dispose()}},[s,t,u,w,v]);if(r)return j.jsx("div",{className:"x6s0dn4 xrmyhay x1ey2m1c x78zum5 x5yr21d xl56j7k x10l6tqk xh8yej3",children:j.jsx(c("CometProgressRingIndeterminate.react"),{color:"light",size:24})});if(g)return j.jsx(c("InstantGamesBottomSheet.react"),{onDismiss:q,children:j.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf xl56j7k xz9dl7a xn6708d xsag5q8 x1ye3gou xh8yej3",children:[h._("u5c1du8bd5u6267u884cu6b64u8bf7u6c42u65f6u9047u5230u95eeu9898u3002"),j.jsx("div",{className:"x1anpbxc x1wo2wf3",children:j.jsx(c("TetraText.react"),{numberOfLines:1,type:"body2",children:j.jsx(c("InstantGamesButton.react"),{isDisabled:!1,onClick:b,title:h._("u5173u95ed")})})})]})});return e!=null?j.jsx(c("InstantGamesCustomLinkShareDialogContent.react"),{appID:t,link:e,reject:a.reject,resolve:a.resolve}):j.jsx("div",{className:"x6s0dn4 xrmyhay x1ey2m1c x78zum5 x5yr21d xl56j7k x10l6tqk xh8yej3",children:j.jsx(c("CometProgressRingIndeterminate.react"),{color:"light",size:24})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesCustomLinkShareDialogComposer.react",["fbt","CometProfilePhoto.react","CometProgressRingIndeterminate.react","CometRelay","Dialog","GamesQuicksilverError","GamesUnifiedSharingFalcoEvent","GamesUnifiedSharingLoggerUtils","GamingPlayLinkPreview.react","InstantGamesButton.react","InstantGamesCustomLinkShareComposerEnum","InstantGamesCustomLinkShareDialogComposer_ShareMutation.graphql","InstantGamesCustomLinkShareDialogComposer_fragment.graphql","InstantGamesPrivacySelector.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.useCallback,m=e.useState,n=h._("u5206u4eab"),o=i!==void 0?i:i=b("InstantGamesCustomLinkShareDialogComposer_ShareMutation.graphql"),p=j!==void 0?j:j=b("InstantGamesCustomLinkShareDialogComposer_fragment.graphql");function a(a){var b=d("CometRelay").useFragment(p,a.viewer),e=m(a.link),f=e[0],g=e[1];e=m("");var i=e[0],j=e[1];e=m(null);var r=e[0],s=e[1];e=m(!1);var t=e[0],u=e[1],v=a.onClick,w=a.resolve;e=d("CometRelay").useMutation(o);var x=e[0],y=d("GamesUnifiedSharingLoggerUtils").getShareFromEntrypointForLinkShare("custom_link_share"),z=d("GamesUnifiedSharingLoggerUtils").getShareToDestinationForActionType("facebook_post"),A=l(function(b){c("GamesUnifiedSharingFalcoEvent").log(function(){return{app_id:a.appID,event:b,share_creation_source:"share_link_async",share_from_entrypoint:y,share_to_destination:z,share_type:"link"}})},[z,y,a.appID]),B=function(){if(c("Dialog")===null)return;var a=h._("u5df2u5206u4eabu5230u65f6u95f4u7ebf");new(c("Dialog"))().setBody(a).setAutohide(2500).setModal(!0).show()},C=a.shareScrapeData;e=function(){u(!0);s(null);A("share_cta_click");var b={attachments:[{link:{share_scrape_data:C}}],audience:{privacy:{base_state:q(i)}},message:{text:f},source:"WWW"};x({onCompleted:function(){B(),v(c("InstantGamesCustomLinkShareComposerEnum").None),w()},onError:function(b){a.reject(new(c("GamesQuicksilverError"))("Client cannot perform this operation")),s(b)},variables:{input:b}})};return k.jsx("div",{children:k.jsxs("div",{className:"xdj266r xmo9yow xyorhqc x17adc0v",children:[k.jsxs("div",{className:"x78zum5 xyorhqc",children:[k.jsx("div",{className:"xmo9yow",children:k.jsx(c("CometProfilePhoto.react"),{size:48,source:{uri:a.playerImage}})}),k.jsxs("div",{children:[k.jsx("div",{className:"x1lliihq x1l97dnv x117nqv4 x1yc453h xh8yej3",children:a.playerName}),k.jsx(c("InstantGamesPrivacySelector.react"),{onValueChanged:function(a){return j(a)},viewer:b})]})]}),k.jsx("textarea",{className:"x18o3ruo x76ihet xwmqs3e x112ta8 xxxdfa6 x1gnnqk1 x17ddzgb x5yr21d xu06os2 x1a2a7pz xh8yej3",onChange:function(a){return g(a.target.value)},placeholder:h._("u8bf4u8bf4u8fd9u6761u94feu63a5u5427..."),value:f}),k.jsx(c("GamingPlayLinkPreview.react"),{appID:a.appID,link:a.link}),t?k.jsx("div",{className:"x1ok221b",children:k.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})}):k.jsx("div",{className:"xkzkwiv x1anpbxc",children:k.jsx(c("InstantGamesButton.react"),{isDisabled:t,onClick:e,title:n})}),r!=null&&h._("u554au54e6uff0cu51fau9519u4e86uff0cu518du8bd5u8bd5u5457uff01")]})})}a.displayName=a.name+" [from "+f.id+"]";function q(a){return a==="just_me"?"SELF":a}g["default"]=a}),98);
-----
InstantGamesCustomLinkShareMessengerComposer.react",["cx","fbt","BUITextArea.react","ClientIDs","CometProgressButtonIndeterminate.react","CometRow.react","CometRowItem.react","CurrentUser","Dialog","GamesQuicksilverError","GamesUnifiedSharingEvent","GamesUnifiedSharingFalcoEvent","GamesUnifiedSharingLoggerUtils","GamingPlayLinkPreview.react","InstantGamesCustomLinkShareComposerEnum","InstantGamesCustomLinkShareMessengerComposer_ShareMutation.graphql","MessengerComposeViewHeader.react","RelayAPIConfig","RelayHooks","TetraButton.react","emptyFunction","immutable","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useCallback,m=e.useEffect,n=e.useRef,o=e.useState,p=j!==void 0?j:j=b("InstantGamesCustomLinkShareMessengerComposer_ShareMutation.graphql");function a(a){var e=o(c("immutable").List()),f=e[0],g=e[1];e=o(a.link);var h=e[0];e=e[1];var j=o(null),q=j[0],r=j[1];j=d("RelayHooks").useMutation(p);var s=j[0],t=j[1],u=a.onClick,v=a.resolve,w=b("GamesUnifiedSharingEvent"),x=d("GamesUnifiedSharingLoggerUtils").getShareToDestinationForActionType("messenger"),y=l(function(b){c("GamesUnifiedSharingFalcoEvent").log(function(){return{app_id:a.appID,event:b,share_creation_source:"share_link_async",share_to_destination:x,share_type:"link"}})},[w,x,a.appID]),z=n(!1);m(function(){z.current||(z.current=!0,y(w.SHARE_DIALOG_IMPRESSION))},[w.SHARE_DIALOG_IMPRESSION,y]);j=function(){a.onClick(c("InstantGamesCustomLinkShareComposerEnum").None);a.resolve();y(w.SHARE_DIALOG_DISMISS);return};var A=function(a){g(f.concat(a))},B=function(a){g(f["delete"](f.indexOf(a)))},C=function(){var a=i._("u5206u4eabu5230 Messenger");new(c("Dialog"))().setBody(a).setAutohide(2500).setModal(!0).show()},D=function(){g(c("immutable").List())},E=function(){r(null);y(w.SHARE_CTA_CLICK);if(t)return;var b=h,e=f.map(function(a){return a.getUniqueID()}).toArray();b={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),link:a.link,message:b,thread_ids:e};s({onCompleted:function(a){C(),u(c("InstantGamesCustomLinkShareComposerEnum").None),v()},onError:function(b){a.reject(new(c("GamesQuicksilverError"))("Client cannot perform this operation")),r(b)},variables:{input:b}})},F=i._("u5206u4eabu5230 Messenger"),G=i._("Send to");return k.jsxs("div",{className:"_98rz",children:[k.jsxs("div",{children:[k.jsx(c("MessengerComposeViewHeader.react"),{className:"_1e1o",forceHideClearButton:!1,onAddRecipient:A,onClear:D,onRemoveRecipient:B,onResize:c("emptyFunction"),recipients:f,viewer:c("CurrentUser").getID()}),k.jsx("div",{className:"_98s5",children:k.jsx(c("BUITextArea.react"),{label:F,labelIsHidden:!0,maxHeight:15,onChange:e,placeholder:i._("u8f93u5165u6d88u606fu2026"),value:h})}),k.jsx("div",{className:"_9e0a",children:k.jsx(c("GamingPlayLinkPreview.react"),{appID:a.appID,link:a.link})})]}),k.jsxs(c("CometRow.react"),{children:[k.jsx(c("CometRowItem.react"),{children:k.jsx(c("TetraButton.react"),{label:i._("u53d6u6d88"),onPress:j,type:"secondary"})}),k.jsx(c("CometRowItem.react"),{children:t?k.jsx("div",{children:k.jsx(c("CometProgressButtonIndeterminate.react"),{label:G})}):k.jsx("div",{children:k.jsx(c("TetraButton.react"),{disabled:!f.size||t,label:G,onPress:E,type:"primary"})})})]}),q!=null&&i._("u554au54e6uff0cu51fau9519u4e86uff0cu518du8bd5u8bd5u5457uff01")]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesGameShareDialog.react",["fbt","ix","CometComposerHeader.react","CometIcon.react","CometImage.react","CometProgressRingIndeterminate.react","CometRelay","GamesQuicksilverError","GamesServiceSIDLoggerUtils","GamesUnifiedSharingEvent","GamesUnifiedSharingFalcoEvent","GamesUnifiedSharingLoggerUtils","GamesUnifiedSharingType","InstantGameCloudSharingMediaAssetPreview.react","InstantGameContextType","InstantGamesAdditionalShareOptions.react","InstantGamesGameShareDialogHeader.react","InstantGamesGameShareDialogQuery.graphql","InstantGamesGameShareDialog_ShareMutation.graphql","InstantGamesGamingServiceShareDialog.react","InstantGamesPlayerUtils","InstantGamesSharingEventsFalcoEvent","Promise","TetraButton.react","cometPushToast","fbicon","getJSEnumSafe","qex","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=d("react");e=d("react");var m=e.useCallback,n=e.useEffect,o=e.useRef,p=e.useState,q=j!==void 0?j:j=b("InstantGamesGameShareDialogQuery.graphql"),r={dialog:{backgroundColor:"x2bj2ny",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxShadow:"xqm7egq",marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",maxHeight:"xmz0i5r",maxWidth:"x1j9u4d2",overflowX:"xw2csxc",overflowY:"x1odjw0f",position:"x1n2onr6",textAlign:"x2b8uid",$$css:!0},dialogContent:{paddingTop:"xyamay9",paddingEnd:"x1pi30zi",paddingBottom:"x1l90r2v",paddingStart:"x1swvt13",$$css:!0},fullsizeContainer:{display:"x78zum5",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0},fullsizeMobileContainer:{backgroundColor:"x2bj2ny",display:"x78zum5",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"xixxii4",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0},progressRing:{end:"xcdomlo",position:"x10l6tqk",top:"xoyzfg9",$$css:!0},shareButton:{fontSize:"xkzkwiv",marginBottom:"x1e56ztr",marginTop:"x1anpbxc",$$css:!0},shareImage:{borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",display:"x1lliihq",height:"xt7dq6l",width:"xh8yej3",$$css:!0},shareMedia:{marginBottom:"x1hq5gj4",position:"x1n2onr6",width:"xh8yej3",$$css:!0},shareText:{backgroundColor:"x2bj2ny",borderTop:"x76ihet",borderEnd:"xwmqs3e",borderBottom:"x112ta8",borderStart:"xxxdfa6",color:"x12scifz",marginBottom:"x1yztbdb",width:"xh8yej3",$$css:!0}},s=h._("u5206u4eabu5230u52a8u6001"),t=h._("u6b63u5728u5206u4eabu5230u52a8u6001u2026");function a(a){var e,f=d("CometRelay").useRelayEnvironment(),g=o(!1);n(function(){g.current||(g.current=!0,V(J.SHARE_SHEET_IMPRESSION),W("impression"))});var j=a.props,k=j.dialogRequest,v=j.onClose,w=j.switchContext,x=k.data;j=p(x.mediaAssetID);var y=j[0];k=j[1];j=p(null);var z=j[0],A=j[1];j=p("");var B=j[0],C=j[1];j=p(null);var D=j[0];j=j[1];var E=p(""),F=E[0],G=E[1];E=d("CometRelay").useMutation(u);var H=E[0],I=E[1],J=b("GamesUnifiedSharingEvent"),K=b("GamesUnifiedSharingType");E=d("CometRelay").usePreloadedQuery(q,a.queries.query);var L=(e=E.game)==null?void 0:e.info;e=E.playerInfo;var M=E.viewer,N=[],O=x.mediaAssetID!=null,P=!0,Q=!0,R=!0;if(O){var S=x.mediaAssetID!=null?d("InstantGameCloudSharingMediaAssetPreview.react").InstantGameCloudSharingMediaAssetPreviewQueryDetail(x.mediaAssetID).photo:null;P=S!=null&&c("qex")._("1006")===!0;Q=c("qex")._("1007")===!0;R=Q||P}P&&N.push("MESSENGER");N.push("GROUP");Q&&N.push("COPY_LINK");var T=d("GamesUnifiedSharingLoggerUtils").getShareFromEntrypointForCustomShare(),U=d("GamesUnifiedSharingLoggerUtils").getShareToDestinationForCustomShare(),V=m(function(a,b){if(x.mediaAssetID==null){var e=b!=null?d("GamesUnifiedSharingLoggerUtils").getShareToDestinationForActionType(b):void 0;c("GamesUnifiedSharingFalcoEvent").log(function(){return{app_id:L==null?void 0:L.gameID,event:a,share_creation_source:R?"custom_share":"share_async",share_from_entrypoint:T,share_to_destination:R?e:U,share_type:K.GENERIC}});a===J.SHARE_CTA_CLICK&&b==="link"&&c("InstantGamesSharingEventsFalcoEvent").log(function(){return{appid:L==null?void 0:L.gameID,event:"game_shared",ig_share_type:"custom_share",target_ecosystem:"link"}})}},[K.GENERIC,R,U,T,L==null?void 0:L.gameID,x.mediaAssetID,J.SHARE_CTA_CLICK]),W=m(function(a,b){d("GamesServiceSIDLoggerUtils").logSharingEvent(a,L==null?void 0:L.gameID,(a=b)!=null?a:"share_to_newsfeed_for_cloud",y,x.sharingSource,x.sharingSource==="cloud_screenshot"||x.sharingSource==="cloud_sharing_via_sdk",{privacy_option:(b=B)!=null?b:""})},[y,L==null?void 0:L.gameID,x.sharingSource,B]);n(function(){z!=null&&W("failure")},[W,z]);var X=o(!1);n(function(){X.current||(X.current=!0,V(J.SHARE_DIALOG_IMPRESSION,"facebook_post"))},[J.SHARE_DIALOG_IMPRESSION,V]);if(L==null||e==null||M==null)return null;var Y=function(a){V(R?J.SHARE_SHEET_DISMISS:J.SHARE_DIALOG_DISMISS),a!=null?v({data:a,type:"REJECT"}):v({data:null,type:"RESOLVE"})},Z=function(){if(I)return;A(null);V(J.SHARE_CTA_CLICK,"facebook_post");W("click");var a=x.entrypointData;if(x.travelID!=null){var e;e=JSON.parse((e=x.entrypointData)!=null?e:"{}");x.travelID!=="0"&&(e.world_id=x.travelID);e.travelID=void 0;a=JSON.stringify(e)}var f={app_id:(e=L.gameID)!=null?e:"",entrypoint_data:a,funnel_session_key:x.funnelSessionKey,media_asset_id:x.mediaAssetID,photo_base64:x.mediaAssetID==null?x.shareImage:null,privacy_index:B,privacy_row_input:D,require_game_context:x.shouldSwitchContext,sharing_source:x.sharingSource,text:F};new(b("Promise"))(function(a,b){H({onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:f}})}).then(function(a){a=a==null?void 0:(a=a.share)==null?void 0:a.context_token;if(a){var b=c("getJSEnumSafe")(c("InstantGameContextType"),a.context_type);w({id:a.context_source_id,promiseID:x.promiseID,type:(a=b)!=null?a:"GENERIC"})}else x.mediaAssetID!=null&&d("cometPushToast").cometPushToast({message:h._("u4f60u5df2u5206u4eabu6e38u620fu753bu9762u3002")});Y(null)})["catch"](function(a){A(String(a))})};if(x.mediaAssetID!=null&&c("qex")._("1009")===!1){return l.jsx(c("InstantGamesGamingServiceShareDialog.react"),{error:z,gameInfo:L,isLoading:I,mediaAssetID:x.mediaAssetID,onClose:function(){Y(z!==null?new(c("GamesQuicksilverError"))(z).setCode("UNKNOWN"):null)},onDismissError:function(){return A(null)},onPrivacySelectorChanged:function(a){C(a)},onSubmit:Z,onTextChange:function(a){G(a)},playerInfo:e,sharingSource:(S=x.sharingSource)!=null?S:"cloud_screenshot",text:F,viewer:M})}S=l.jsx("div",{className:"x1hq5gj4 x1n2onr6 xh8yej3",children:x.mediaAssetID!=null?l.jsx(d("InstantGameCloudSharingMediaAssetPreview.react").InstantGameCloudSharingMediaAssetPreview,{environment:f,mediaAssetID:x.mediaAssetID,onMediaAssetIDUpdate:k,sharingSource:(P=x.sharingSource)!=null?P:"cloud_screenshot",shouldHideBlurBackground:!1,useSmallerSizeImage:!1}):x.shareImage!=null?l.jsx(c("CometImage.react"),{src:(Q=x.shareImage)!=null?Q:"",testid:void 0,xstyle:r.shareImage}):null});return l.jsx("div",{className:d("InstantGamesPlayerUtils").isCometOnMobile()?"x2bj2ny x78zum5 x5yr21d x6ikm8r x10wlt62 xixxii4 x17qophe x13vifvy xh8yej3":"x78zum5 x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:l.jsxs("div",{className:"x2bj2ny x1lq5wgf xgqcy7u x30kzoy x9jhf4c xqm7egq xr1yuqi xkrivgy x4ii5y1 x1gryazu xmz0i5r x1j9u4d2 xw2csxc x1odjw0f x1n2onr6 x2b8uid",children:[l.jsx(c("CometComposerHeader.react"),{onClose:function(){z!=null?Y(new(c("GamesQuicksilverError"))(z).setCode("UNKNOWN")):Y(x.shouldSwitchContext===!0?new(c("GamesQuicksilverError"))("The player dismissed the dialog.").setCode("USER_INPUT"):null),W("dismiss")},title:h._("u6e38u620fu5206u4eab"),withCloseButton:!I}),I&&l.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24,xstyle:r.progressRing}),l.jsxs("div",{className:"xyamay9 x1pi30zi x1l90r2v x1swvt13",children:[l.jsx(c("InstantGamesGameShareDialogHeader.react"),{imgUrl:(f=e==null?void 0:(M=e.photo)==null?void 0:M.uri)!=null?f:"",isCgPlayer:O,onPrivacySelectorChanged:function(a){C(a),W("click","share_flow_privacy_toggle")},playerName:e.shortName,privacySelectorKey:E,renderLocation:"COMET_INSTANT_GAMES_GAME_SHARE_DIALOG",setPrivacyRowInput:j}),l.jsx("input",{className:"x2bj2ny x76ihet xwmqs3e x112ta8 xxxdfa6 x12scifz x1yztbdb xh8yej3",onChange:function(a){return G(a.target.value)},placeholder:h._("u8bf4u8bf4u8fd9u4e2au6e38u620fu5427"),value:F}),S,l.jsx("div",{className:"xkzkwiv x1e56ztr x1anpbxc",children:l.jsx(c("TetraButton.react"),{addOnPrimary:l.jsx(c("CometIcon.react"),{color:"white",icon:d("fbicon")._(i("869051"),20),size:20}),disabled:I,label:I?t:s,onPress:function(){return Z()},size:"medium",testid:void 0})}),R&&l.jsx(c("InstantGamesAdditionalShareOptions.react"),{appID:a.props.appID,logGamesUnifiedSharingEvent:V,params:a.props,shareDestination:N}),z!=null&&h._("u554au54e6uff0cu51fau9519u4e86uff0cu518du8bd5u8bd5u5457uff01")]})]})})}a.displayName=a.name+" [from "+f.id+"]";var u=k!==void 0?k:k=b("InstantGamesGameShareDialog_ShareMutation.graphql");g["default"]=a}),98);
-----
InstantGamesGameSwitchDialog.react",["fbt","AnimatedSlideInFromBottom.react","CometImage.react","CometProgressRingIndeterminate.react","CometRelay","DeferredCloseButton.react","FullSizeVerticalScrollView.react","GamesQuicksilverError","GamesQuicksilverFunnelLogger","InstantGamesButton.react","InstantGamesContextImage.react","InstantGamesGameSwitchDialog_context.graphql","InstantGamesGameSwitchDialog_gameInfo.graphql","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.useEffect,m=e.useRef,n=e.useState,o=75,p=i!==void 0?i:i=b("InstantGamesGameSwitchDialog_context.graphql"),q=j!==void 0?j:j=b("InstantGamesGameSwitchDialog_gameInfo.graphql");function a(a){var b,e=a.context,f=a.entryPointData,g=a.gameInfo,i=a.genericOnClose,j=a.switchGame;a=d("CometRelay").useFragment(p,e);e=d("CometRelay").useFragment(q,g);g=n(!1);var r=g[0],s=g[1],t=e.id||"",u=m(!1);l(function(){if(u.current===!0)return;u.current=!0;d("GamesQuicksilverFunnelLogger").logGameSwitchDialogShown(d("GamesQuicksilverFunnelLogger").getDefaultFunnelName(),t)},[t]);g=function(){d("GamesQuicksilverFunnelLogger").logGameSwitchDialogResult(d("GamesQuicksilverFunnelLogger").getDefaultFunnelName(),t,!1);var a=new(c("GamesQuicksilverError"))("Player closed the game switch dialog").setCode("USER_INPUT");i({data:a,type:"REJECT"})};var v=function(){d("GamesQuicksilverFunnelLogger").logGameSwitchDialogResult(d("GamesQuicksilverFunnelLogger").getDefaultFunnelName(),t,!0),i({data:null,type:"RESOLVE"}),j(t,f),s(!0)};b=(b=e.instant_game_info)==null?void 0:b.icon_uri;var w=a?k.jsx("div",{className:"xglei2g x169pyod x1xp15n3 x1knutoc x14yjl9h xudhj91 x18nykt9 xww2gxu x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xmxjv0s x1jylsbl x12yxszm xv0i9uw x1a2yejm",children:k.jsx(c("InstantGamesContextImage.react"),{className:"x1txhvsy xx1l10f xustf53 xy7tls4 x17bhg7c x14yjl9h xudhj91 x18nykt9 xww2gxu x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x1xmu9ic xi28a7 x1qdctgf x1rsy3fd xr931m4 x6ikm8r x10wlt62 x9fslfs",contextToken:a,size:o})}):null;b=b!=null?k.jsxs("div",{className:"x78zum5 xl56j7k x1cnzs8 xc73u3c xx6bls6 x5ib6vp",children:[k.jsx("div",{className:"xglei2g x169pyod x1xp15n3 x1knutoc x14yjl9h xudhj91 x18nykt9 xww2gxu x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi xmxjv0s x1jylsbl x12yxszm xv0i9uw",children:k.jsx("div",{className:"x1txhvsy xx1l10f xustf53 xy7tls4 x17bhg7c x14yjl9h xudhj91 x18nykt9 xww2gxu x13fuv20 xu3j5b3 x1q0q8m5 x26u7qi x1xmu9ic xi28a7 x1qdctgf x1rsy3fd xr931m4 x6ikm8r x10wlt62 x9fslfs",children:k.jsx(c("CometImage.react"),{height:75,src:b,width:75})})}),w]}):null;return k.jsx("div",{className:"x13xa001 x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:k.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:k.jsx(c("FullSizeVerticalScrollView.react"),{children:k.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"25%",translate:"0px",trigger:!0,children:k.jsxs("div",{className:"x1jx94hy x1tlxs6b x1g8br2z x1gn5b1j x230xth x7x8rel x1lliihq xw7yly9 x1emribx x1yztbdb x1i64zmx x6ikm8r x10wlt62 x1n2onr6 x2b8uid",children:[b,k.jsx(c("DeferredCloseButton.react"),{className:"x78zum5 x1ntpj0o x10l6tqk x1eu8d0j",onClick:g,shade:"dark",size:"medium"}),k.jsx("div",{className:"xi81zsa x1lliihq xkzkwiv xdj266r x1jqylkn xat24cr x13ibhcj x6ikm8r xlyipyv",children:a&&a.contextName!=null&&a.contextName!==""?h._("u548c{context-name}u4e00u8d77u73a9{game-name}",[h._param("game-name",e.name),h._param("context-name",a.contextName)]):h._("u73a9{game-name}",[h._param("game-name",e.name)])}),k.jsx("div",{className:"xkzkwiv xw7yly9 xktsk01 x1yztbdb x1d52u69",children:r?k.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24}):k.jsx(c("InstantGamesButton.react"),{onClick:v,title:h._("u73a9u6e38u620f")})})]})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesSubscribeBotAsyncDialog.react",["AnimatedSlideInFromBottom.react","CometImage.react","CometProgressRingIndeterminate.react","CometRelay","FullSizeVerticalScrollView.react","GamesQuicksilverError","InstantGamesSubscribeBotAsyncDialogMutation.graphql","InstantGamesSubscribeBotAsyncDialogQuery.graphql","InstantGamesWebHubEventsFalcoEvent","TetraButton.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useEffect,l=e.useState,m=h!==void 0?h:h=b("InstantGamesSubscribeBotAsyncDialogQuery.graphql"),n=i!==void 0?i:i=b("InstantGamesSubscribeBotAsyncDialogMutation.graphql"),o={button:{display:"x1rg5ohu",fontSize:"xkzkwiv",marginTop:"x1xmf6yo",marginEnd:"x1emribx",marginBottom:"x1e56ztr",marginStart:"x1i64zmx",width:"xz84dc7",$$css:!0},dialog:{backgroundColor:"x1jx94hy",borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",boxShadow:"x1ye9mx4",display:"x1lliihq",marginTop:"xw7yly9",marginEnd:"x1emribx",marginBottom:"x1yztbdb",marginStart:"x1i64zmx",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",textAlign:"x2b8uid",transform:"x1cb1t30",$$css:!0},fullsizeContainer:{backgroundColor:"xatbrnm",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0},image:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",display:"x1lliihq",height:"xkdpuxl",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x889kno",paddingEnd:"x1iji9kk",paddingBottom:"x1a8lsjc",paddingStart:"x1sln4lm",width:"x17tiq77",$$css:!0},overlayConstraints:{end:"xds687c",height:"x5yr21d",marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",maxWidth:"x1j9u4d2",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0},spinner:{display:"x78zum5",justifyContent:"xl56j7k",marginTop:"xw7yly9",marginBottom:"x1yztbdb",$$css:!0},text:{color:"xi81zsa",display:"x1lliihq",fontSize:"x10siri3",marginTop:"xdj266r",marginEnd:"x1jqylkn",marginBottom:"xat24cr",marginStart:"x13ibhcj",overflowX:"x6ikm8r",paddingTop:"x1cnzs8",paddingEnd:"xc73u3c",paddingBottom:"xx6bls6",paddingStart:"x5ib6vp",textAlign:"x1yc453h",textOverflow:"xlyipyv",$$css:!0},title:{color:"xzsf02u",display:"x1lliihq",fontSize:"xbg4bxt",marginTop:"xdj266r",marginEnd:"x1jqylkn",marginBottom:"xat24cr",marginStart:"x13ibhcj",overflowX:"x6ikm8r",paddingBottom:"xx6bls6",paddingEnd:"x1iji9kk",paddingStart:"x1sln4lm",paddingTop:"x1cnzs8",textOverflow:"xlyipyv",$$css:!0}};function a(a){var b,e,f,g=a.props,h=g.appID,i=g.onClose;g=l(!1);var p=g[0],q=g[1];g=l(!1);var r=g[0],s=g[1];k(function(){r===!1&&c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:h,event:"impression",section:"game_bot_subscribe_dialog"}}),s(!0)},[h,r]);g=d("CometRelay").usePreloadedQuery(m,a.queries.query);a=(g=(a=g.game)==null?void 0:a.info)!=null?g:{};g=a.botInfo;a=a.iconURI;var t=d("CometRelay").useRelayEnvironment(),u=function(){var a=new(c("GamesQuicksilverError"))("Player closed the subscribe bot async dialog").setCode("USER_INPUT");d("CometRelay").commitMutation(t,{mutation:n,variables:{input:{game_id:h,source:"IN_GAME_POPUP_UP",subscribe:!1}}});q(!0);c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:h,button_type:"close_button",event:"click",section:"game_bot_subscribe_dialog"}});i({data:a,type:"REJECT"})},v=function(){q(!0),d("CometRelay").commitMutation(t,{mutation:n,onCompleted:function(){c("InstantGamesWebHubEventsFalcoEvent").log(function(){return{app_id:h,button_type:"accept_button",event:"click",section:"game_bot_subscribe_dialog"}}),i({data:null,type:"RESOLVE"})},onError:function(){var a=new(c("GamesQuicksilverError"))("Experienced an unknown error while subscribing the player").setCode("UNKNOWN");i({data:a,type:"REJECT"})},variables:{input:{game_id:h,source:"IN_GAME_POPUP_UP",subscribe:!0}}})};b=g==null?void 0:(b=g.opt_in_dialog_privacy_text)==null?void 0:b.text;e=(e=g==null?void 0:(e=g.opt_in_dialog_confirm_button_text)==null?void 0:e.text)!=null?e:"Turn On";f=(f=g==null?void 0:(f=g.opt_in_dialog_decline_button_text)==null?void 0:f.text)!=null?f:"Not now";g=g==null?void 0:(g=g.opt_in_dialog_title)==null?void 0:g.text;return j.jsx("div",{className:"xatbrnm x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx(c("FullSizeVerticalScrollView.react"),{children:j.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"50%",translate:"0px",trigger:r,children:j.jsxs("div",{className:"x1jx94hy x1tlxs6b x1g8br2z x1gn5b1j x230xth x1ye9mx4 x1lliihq xw7yly9 x1emribx x1yztbdb x1i64zmx x6ikm8r x10wlt62 x1n2onr6 x2b8uid x1cb1t30",children:[a!=null?j.jsx(c("CometImage.react"),{src:a,xstyle:o.image}):null,j.jsx("div",{className:"xzsf02u x1lliihq xbg4bxt xdj266r x1jqylkn xat24cr x13ibhcj x6ikm8r xx6bls6 x1iji9kk x1sln4lm x1cnzs8 xlyipyv",children:g}),j.jsx("div",{className:"xi81zsa x1lliihq x10siri3 xdj266r x1jqylkn xat24cr x13ibhcj x6ikm8r x1cnzs8 xc73u3c xx6bls6 x5ib6vp x1yc453h xlyipyv",children:b}),p?j.jsx("div",{className:"x78zum5 xl56j7k xw7yly9 x1yztbdb",children:j.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})}):j.jsxs("div",{children:[j.jsx("div",{className:"x1rg5ohu xkzkwiv x1xmf6yo x1emribx x1e56ztr x1i64zmx xz84dc7",children:j.jsx(c("TetraButton.react"),{label:f,onPress:u,reduceEmphasis:!0,type:"secondary"})}),j.jsx("div",{className:"x1rg5ohu xkzkwiv x1xmf6yo x1emribx x1e56ztr x1i64zmx xz84dc7",children:j.jsx(c("TetraButton.react"),{label:e,onPress:v,testid:void 0})})]})]})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesGameSwitchDialogContainer.react",["CometRelay","GamesQuicksilverError","InstantGamesGameSwitchDialog.react","InstantGamesGameSwitchDialogContainerQuery.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useEffect,k=e.useRef,l=h!==void 0?h:h=b("InstantGamesGameSwitchDialogContainerQuery.graphql");function a(a){var b=a.props,e=b.dialogRequest,f=b.onClose;b=b.switchGame;e=e.data.entryPointData;var g=d("CometRelay").usePreloadedQuery(l,a.queries.query),h=k(!1);j(function(){if(h.current===!0)return;h.current=!0;if(g.gameInfo!=null)return;var a=new(c("GamesQuicksilverError"))("Failure while fetching app info").setCode("NETWORK_FAILURE");f({data:a,type:"REJECT"})},[g.gameInfo,f]);return g.gameInfo!=null?i.jsx(c("InstantGamesGameSwitchDialog.react"),{context:g.context,entryPointData:e,gameInfo:g.gameInfo,genericOnClose:f,switchGame:b}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesMatchPlayerDialog.react",["fbt","ix","AnimatedSlideInFromBottom.react","CometImage.react","CometProgressRingIndeterminate.react","CometRelay","DeferredCloseButton.react","FullSizeVerticalScrollView.react","GamesQuicksilverError","InstantGameContextType","InstantGamesMatchPlayerOperations","InstantGamesMatchPlayersConfig","InstantGamesMatchPlayersQueueTypedLogger","InstantGsMatchingQueueStatus","Promise","TetraButton.react","clearInterval","getJSEnumSafe","react","setInterval"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");e=d("react");var k=e.useEffect,l=e.useRef,m=e.useState,n={dialogClose:{end:"x1ntpj0o",position:"x10l6tqk",top:"x1eu8d0j",$$css:!0},dialogContent:{display:"x78zum5",paddingTop:"x1cnzs8",$$css:!0},dialogContentText:{display:"x1lliihq",$$css:!0},dialogRoot:{backgroundColor:"x14hiurz",borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",boxShadow:"xqi2hgc",display:"x1lliihq",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"xyamay9",paddingEnd:"x1sxyh0",paddingBottom:"x1l90r2v",paddingStart:"xurb0ha",position:"x1n2onr6",transform:"x1cb1t30",$$css:!0},dialogTitle:{color:"x1p6odiv",display:"x1lliihq",fontSize:"x1603h9y",fontWeight:"x117nqv4",marginStart:"x13ibhcj",marginEnd:"x1jqylkn",overflowX:"x6ikm8r",textAlign:"x1yc453h",textOverflow:"xlyipyv",$$css:!0},image:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"xkdpuxl",paddingTop:"x889kno",paddingEnd:"x1iji9kk",paddingBottom:"x1a8lsjc",paddingStart:"x1sln4lm",width:"x17tiq77",$$css:!0},largeText:{color:"x1p6odiv",display:"x1lliihq",fontSize:"x1lkfr7t",marginStart:"x13ibhcj",marginEnd:"x1jqylkn",overflowX:"x6ikm8r",paddingTop:"x1cnzs8",paddingEnd:"xc73u3c",paddingBottom:"xx6bls6",paddingStart:"x5ib6vp",textOverflow:"xlyipyv",$$css:!0},messengerIcon:{marginTop:"x1gslohp",paddingStart:"x5ib6vp",$$css:!0},overlayConstraints:{backgroundColor:"xjbqb8w",end:"xds687c",height:"x5yr21d",marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",maxWidth:"x1j9u4d2",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0},secondText:{color:"x1p6odiv",display:"x1lliihq",fontSize:"x6prxxf",marginStart:"x13ibhcj",marginEnd:"x1jqylkn",overflowX:"x6ikm8r",paddingTop:"x1cnzs8",textAlign:"x1yc453h",textOverflow:"xlyipyv",$$css:!0},spinner:{display:"x78zum5",justifyContent:"xl56j7k",marginTop:"xw7yly9",marginBottom:"x1yztbdb",$$css:!0},text:{color:"x1p6odiv",display:"x1lliihq",fontSize:"x6prxxf",marginStart:"x13ibhcj",marginEnd:"x1jqylkn",overflowX:"x6ikm8r",textAlign:"x1yc453h",textOverflow:"xlyipyv",$$css:!0}},o=10;function a(a){a=a.props;var e=a.appIcon,f=a.appID,g=a.dialogRequest,p=a.onClose,q=a.switchContext;a=g.data;g=a.bannerRetryText;var r=a.bannerUserAlreadyInThreadText,s=a.dialogButtonText,t=a.dialogTextLineOne,u=a.dialogTextLineTwo,v=a.dialogTitle,w=a.matchTag,x=a.offlineMatch,y=a.promiseID,z=d("CometRelay").useRelayEnvironment();a=m(!1);var A=a[0],B=a[1];a=m(!1);var C=a[0],D=a[1];a=m(!1);var E=a[0],F=a[1],G=l(null);a=m(!1);var H=a[0],I=a[1];a=m(!1);var J=a[0],K=a[1],L=l(!1),M=l(0),N=l(null),O=l(0);k(function(){L.current=C},[C]);k(function(){E===!1&&(new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("dialog_shown").setAppID(f).setMatchTag(w).log(),F(!0));return function(){c("clearInterval")(N.current),L.current||P()}},[]);var P=function(){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent(H?"retry_cancel_button_clicked":A?"search_cancelled":"dialog_dismissed").setQueueID(G.current).setAppID(f).setMatchTag(w).setWaitTime(S()).log();c("clearInterval")(N.current);if(G.current==null){var a=new(c("GamesQuicksilverError"))("Player closed the matching dialog").setCode("USER_INPUT");D(!0);p({data:a,type:"REJECT"});return}new(b("Promise"))(function(a,b){var c;d("CometRelay").commitMutation(z,{mutation:d("InstantGamesMatchPlayerOperations").LeaveQueueMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:{instant_games_match_players_queue_id:(c=G.current)!=null?c:""}}})}).then(function(a){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("cancel_success").setQueueID(G.current).setWaitTime(S()).setAppID(f).setMatchTag(w).log();a=new(c("GamesQuicksilverError"))("Player closed the matching dialog").setCode("USER_INPUT");p({data:a,type:"REJECT"})})["catch"](function(a){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("cancel_failed").setQueueID(G.current).setWaitTime(S()).setAppID(f).setMatchTag(w).setErrorMessage(a.message).log();a=new(c("GamesQuicksilverError"))("Player closed the matching dialog").setCode("USER_INPUT");p({data:a,type:"REJECT"})})};a=function(){!H&&!A&&(O.current=Math.floor(Date.now()/1e3)),new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent(H?"retry_start_button_clicked":"search_button_clicked").setQueueID(G.current).setAppID(f).setMatchTag(w).setWaitTime(S()).log(),x?(B(!0),I(!1),Q()):(B(!0),I(!1),R(0))};function Q(){if(C)return;new(b("Promise"))(function(a,b){d("CometRelay").commitMutation(z,{mutation:d("InstantGamesMatchPlayerOperations").OfflineMatchMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:{app_id:f,match_tag:w}}})}).then(function(a){var b;b=(b=a.offlineMatch)==null?void 0:b.match_status;if(b==="SUCCESS"){var d;c("clearInterval")(N.current);d=(d=a.offlineMatch)==null?void 0:(d=d.context_token)==null?void 0:d.context_source_id;a=c("getJSEnumSafe")(c("InstantGameContextType"),(a=a.offlineMatch)==null?void 0:(a=a.context_token)==null?void 0:a.context_type);if(d==null||a==null)return;D(!0);q({id:d,promiseID:y,type:a})}b==="USER_ALREADY_IN_THREAD"&&(c("clearInterval")(N.current),K(!0));b==="FAILED"&&I(!0)})["catch"](function(a){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("join_failed").setWaitTime(S()).setAppID(f).setErrorMessage(a.message).setMatchTag(w).log()})}function R(a){if(C)return;if(a===o){I(!0);return}new(b("Promise"))(function(a,b){d("CometRelay").commitMutation(z,{mutation:d("InstantGamesMatchPlayerOperations").JoinQueueMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:{game:f,matching_key:w}}})}).then(function(b){if(C)return;b=(b=b.joinQueue)==null?void 0:(b=b.instant_games_match_players_queue)==null?void 0:b.id;if(b!=null){G.current=b;new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("join_success").setQueueID(b).setWaitTime(S()).setAppID(f).setMatchTag(w).log();N.current=c("setInterval")(T,3e3);return}R(a+1)})["catch"](function(b){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("join_failed").setWaitTime(S()).setAppID(f).setErrorMessage(b.message).setMatchTag(w).log(),R(a+1)})}function S(){return Math.floor(Date.now()/1e3)-O.current}function T(){var a=G==null?void 0:G.current;if(a==null){c("clearInterval")(N.current);return}new(b("Promise"))(function(b,c){d("CometRelay").commitMutation(z,{mutation:d("InstantGamesMatchPlayerOperations").PollQueueStatusMutation,onCompleted:function(a){return b(a)},onError:function(a){return c(a)},variables:{input:{instant_games_match_players_queue_id:a}}})}).then(function(a){a=(a=a.pollQueue)==null?void 0:a.instant_games_match_players_queue;var b=c("getJSEnumSafe")(c("InstantGsMatchingQueueStatus"),a==null?void 0:a.queueStatus);new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("poll_success").setQueueID(G.current).setWaitTime(S()).setAppID(f).setMatchTag(w).setQueueStatus(b).log();if(b==="failed"){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("queue_failed").setQueueID(G.current).setWaitTime(S()).setAppID(f).setMatchTag(w).log();c("clearInterval")(N.current);if(M.current>=c("InstantGamesMatchPlayersConfig").web_instant_games_match_player_retry_times_limit){M.current=0;G.current=null;I(!0);return}G.current!==null&&(M.current++,G.current=null,R(0))}if(b==="full"){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("queue_full").setQueueID(G.current).setWaitTime(S()).setAppID(f).setMatchTag(w).log();c("clearInterval")(N.current);b=a==null?void 0:a.contextToken;if(b==null){if(M.current>=c("InstantGamesMatchPlayersConfig").web_instant_games_match_player_retry_times_limit){M.current=0;G.current=null;I(!0);return}G.current!==null&&(M.current++,G.current=null,R(0));return}a=c("getJSEnumSafe")(c("InstantGameContextType"),b.contextType);if(a==null)return;new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("match_found").setQueueID(G.current).setWaitTime(S()).setAppID(f).setMatchTag(w).setContextID(b.id).setThreadSize(b.contextSize).log();D(!0);q({id:b.contextSourceID,promiseID:y,type:a})}})["catch"](function(a){new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent("poll_failed").setQueueID(G.current).setWaitTime(S()).setAppID(f).setMatchTag(w).setErrorMessage(a.message).log()})}(A||H)&&new(c("InstantGamesMatchPlayersQueueTypedLogger"))().setEvent(H?"retry_view_shown":"search_view_shown").setQueueID(G.current).setAppID(f).setMatchTag(w).setWaitTime(S()).log();return j.jsx("div",{className:"xjbqb8w xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx(c("FullSizeVerticalScrollView.react"),{children:j.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"50%",translate:"0px",trigger:E,children:j.jsxs("div",{className:"x14hiurz x1tlxs6b x1g8br2z x1gn5b1j x230xth xqi2hgc x1lliihq x6ikm8r x10wlt62 xyamay9 x1sxyh0 x1l90r2v xurb0ha x1n2onr6 x1cb1t30",children:[e!=null&&j.jsx(c("CometImage.react"),{src:e,xstyle:n.image}),j.jsx(c("DeferredCloseButton.react"),{className:"x1ntpj0o x10l6tqk x1eu8d0j",onClick:P,shade:"dark",size:"huge"}),j.jsxs("div",{className:"x78zum5 x1cnzs8",children:[v!=null&&!H&&!A&&j.jsx("div",{className:"x1gslohp x5ib6vp",children:j.jsx(c("CometImage.react"),{alt:h._("Messenger"),src:i("787563")})}),j.jsxs("div",{className:"x1lliihq",children:[v!=null&&!H&&!A&&j.jsx("div",{className:"x1p6odiv x1lliihq x1603h9y x117nqv4 x13ibhcj x1jqylkn x6ikm8r x1yc453h xlyipyv",children:v}),J?j.jsx("div",{className:"x1p6odiv x1lliihq x1lkfr7t x13ibhcj x1jqylkn x6ikm8r x1cnzs8 xc73u3c xx6bls6 x5ib6vp xlyipyv",children:r}):H?j.jsx("div",{className:"x1p6odiv x1lliihq x1lkfr7t x13ibhcj x1jqylkn x6ikm8r x1cnzs8 xc73u3c xx6bls6 x5ib6vp xlyipyv",children:g}):A?j.jsxs("div",{className:"x1p6odiv x1lliihq x1lkfr7t x13ibhcj x1jqylkn x6ikm8r x1cnzs8 xc73u3c xx6bls6 x5ib6vp xlyipyv",children:[h._("u6b63u5728u641cu7d22")," "]}):j.jsxs("div",{className:"x1p6odiv x1lliihq x6prxxf x13ibhcj x1jqylkn x6ikm8r x1yc453h xlyipyv",children:[t," "]}),u!=null&&!H&&!A&&j.jsxs("div",{className:"x1p6odiv x1lliihq x6prxxf x13ibhcj x1jqylkn x6ikm8r x1cnzs8 x1yc453h xlyipyv",children:[u," "]})]})]}),!J&&(!A||H)?j.jsx("div",{style:{margin:16},children:j.jsx(c("TetraButton.react"),{label:H?h._("u91cdu8bd5"):(e=s)!=null?e:h._("u641cu7d22"),onPress:a,size:"large"})}):null,!J&&A&&!H&&j.jsx("div",{className:"x78zum5 xl56j7k xw7yly9 x1yztbdb",children:j.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextSoloSwitchDialogContainer.react",["fbt","CometRelay","GamesQuicksilverError","InstantGamesContextSoloSwitchDialogContainer_Fragment.graphql","InstantGamesContextSwitchDialogContent.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useCallback,l=i!==void 0?i:i=b("InstantGamesContextSoloSwitchDialogContainer_Fragment.graphql");function a(a){var b=a.fragmentKey,e=a.onClose,f=k(function(a){e({data:a,type:"REJECT"})},[e]),g=k(function(a){e({data:a,type:"RESOLVE"})},[e]);a=d("CometRelay").useFragment(l,b);b=a.me;a=a.node;b=(b=b==null?void 0:(b=b.picture)==null?void 0:b.uri)!=null?b:"";a=(a=a==null?void 0:(a=a.picture)==null?void 0:a.uri)!=null?a:"";var i=k(function(){f(new(c("GamesQuicksilverError"))("User closed the dialog").setCode("USER_INPUT"))},[f]),m=k(function(){g({context_id:null,context_size:1,context_type:"SOLO"})},[g]);i=j.jsx(c("InstantGamesContextSwitchDialogContent.react"),{buttonTitle:h._("u7ee7u7eed"),context:null,dialogTitleRenderer:function(){return h._("u81eau5df1u73a9")},onClose:i,onSwitch:m,playerPhotoURI:b,secondPhotoURI:a});return j.jsx("div",{children:i})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextCreator.react",["AnimatedSlideInFromBottom.react","CometRelay","FBLogger","FullSizeVerticalScrollView.react","GamesQuicksilverError","InstantGameContextType","InstantGamesConnectedPlayersFetcher","InstantGamesContextCreateDialog.react","InstantGamesContextMutations","InstantGamesSessionManager","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useEffect,k=b.useState,l={dialog:{transform:"x1cb1t30",$$css:!0},fullsizeContainer:{backgroundColor:"xjbqb8w",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0},overlayConstraints:{end:"xds687c",height:"x5yr21d",marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",maxWidth:"x1j9u4d2",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0}};function a(a){var b=a.props;a=k(!1);var e=a[0],f=a[1];a=k(null);var g=a[0],m=a[1],n=d("CometRelay").useRelayEnvironment(),o=b.onClose,p=i(function(a){o({data:a,type:"REJECT"})},[o]);j(function(){f(!0)},[]);j(function(){c("InstantGamesConnectedPlayersFetcher").fetchAsync(b.appID,n).then(function(a){m(a)})["catch"](function(a){a=new(c("GamesQuicksilverError"))("Failure while fetching connected players").setCode("NETWORK_FAILURE");p(a)})},[p,b.appID,n]);var q=function(a){a=a==null?void 0:(a=a.instant_games_create_context)==null?void 0:a.contextToken;if(!a){r();return}var d=a.sourceID,e=a.tokenID;a=a.type;if(d==null||!a){r();return}if(b.contextTokenID===e){p(new(c("GamesQuicksilverError"))("Attempted to switch into the current context").setCode("SAME_CONTEXT"));return}e=c("getJSEnumSafe")(c("InstantGameContextType"),a);if(e==null)return;b.switchContext({id:d,promiseID:b.dialogRequest.data.promiseID,type:e})},r=function(){p(new(c("GamesQuicksilverError"))("Failed to create context").setCode("NETWORK_FAILURE"))};a=function(a){var e=s();d("CometRelay").commitMutation(n,{mutation:d("InstantGamesContextMutations").CreateContextMutation,onCompleted:function(a){if(!a){r();return}q(a)},onError:function(a){return r()},variables:{input:{block_messaging:a,game_id:b.appID,participant_ids:e,session_id:c("InstantGamesSessionManager").getSessionID()}}})};var s=function(){var a=[];if(g==null)throw c("FBLogger")("www_context_create").mustfixThrow("Connected Players list should not be null");var d=new Map(),e=Object.entries(g);for(var f=0;f=h.length)break;f=h[e++]}else{e=h.next();if(e.done)break;f=e.value}f=f;if(!d.has(f)){p(new(c("GamesQuicksilverError"))("Player with ID: "+f+" does not appear to be a Connected Player.").setCode("INVALID_PARAM"));break}f=d.get(f);if(f==null)throw c("FBLogger")("www_context_create").mustfixThrow("The connected player cannot be null here.");a.push(f)}return a},t=function(){if(g==null)throw c("FBLogger")("www_context_create").mustfixThrow("Cannot call before Connected Players is populated");var a=s();return a.map(function(a){return g[a]})};return!g?null:h.jsx("div",{className:"xjbqb8w x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:h.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:h.jsx(c("FullSizeVerticalScrollView.react"),{children:h.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"50%",translate:"0px",trigger:e,children:h.jsx(c("InstantGamesContextCreateDialog.react"),{className:"x1cb1t30",gameID:b.appID,gameName:b.appName,onClose:p,onSwitch:a,otherPlayers:t(),playerPhotoURI:b.dialogRequest.data.playerPhotoURI,stylex:l.dialog})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextSwitcher.react",["CometRelay","GamesQuicksilverError","InstantGamesContextSwitcherQuery.graphql","InstantGamesContextSwitcherRenderer.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("InstantGamesContextSwitcherQuery.graphql");function a(a){var b=a.props;a=a.queries;a=d("CometRelay").usePreloadedQuery(j,a.queryReference);var e=b.onClose,f=function(a){e({data:a,type:"REJECT"})};if(b.dialogRequest.data.oldContext===b.dialogRequest.data.newContext){f(new(c("GamesQuicksilverError"))("New context is the same as the old context.").setCode("SAME_CONTEXT"));return null}if(!a.context||!a.game||!a.profile){f(new(c("GamesQuicksilverError"))("Invalid context id for player").setCode("INVALID_PARAM"));return null}return i.jsx(c("InstantGamesContextSwitcherRenderer.react"),{context:a.context,game:a.game,params:b,profile:a.profile})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextSwitcherRenderer.react",["AnimatedSlideInFromBottom.react","CometRelay","FullSizeVerticalScrollView.react","GamesQuicksilverError","InstantGameContextType","InstantGamesContextSwitchAndJoinDialog.react","InstantGamesContextSwitchDialog.react","InstantGamesContextSwitcherRendererMutation.graphql","InstantGamesContextSwitcherRenderer_SetBlockMessagingMutation.graphql","InstantGamesContextSwitcherRenderer_context.graphql","InstantGamesContextSwitcherRenderer_game.graphql","InstantGamesContextSwitcherRenderer_profile.graphql","getJSEnumSafe","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=d("react");e=d("react");var n=e.useEffect,o=e.useState,p={dialog:{transform:"x1cb1t30",$$css:!0},fullsizeContainer:{height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0},overlayConstraints:{end:"xds687c",height:"x5yr21d",marginTop:"xr1yuqi",marginEnd:"xkrivgy",marginBottom:"x4ii5y1",marginStart:"x1gryazu",maxWidth:"x1j9u4d2",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0}},q=h!==void 0?h:h=b("InstantGamesContextSwitcherRendererMutation.graphql"),r=i!==void 0?i:i=b("InstantGamesContextSwitcherRenderer_context.graphql"),s=j!==void 0?j:j=b("InstantGamesContextSwitcherRenderer_SetBlockMessagingMutation.graphql"),t=k!==void 0?k:k=b("InstantGamesContextSwitcherRenderer_game.graphql"),u=l!==void 0?l:l=b("InstantGamesContextSwitcherRenderer_profile.graphql");function a(a){var b=d("CometRelay").useRelayEnvironment(),e=d("CometRelay").useFragment(r,a.context),f=d("CometRelay").useFragment(t,a.game),g=d("CometRelay").useFragment(u,a.profile),h=a.params,i=h.appID,j=h.onClose,k=o(!1),l=k[0],v=k[1];n(function(){v(!0)},[]);k=function(){if(!a.context)return!1;if(!e.application||!e.contextType)return!1;var b=e.application.id;if(i!==b)return!1;b=(b=g.picture)==null?void 0:b.uri;return b==null||b===""?!1:!0};var w=function(){var a=new(c("GamesQuicksilverError"))("Player closed the context menu").setCode("USER_INPUT");j({data:a,type:"REJECT"})},x=function(){var a=e.contextTokenID;if(a==null)throw c("unrecoverableViolation")("Must provide a valid, non-solo context","instant_games");w();d("CometRelay").commitMutation(b,{mutation:q,onCompleted:function(){},onError:function(){},variables:{input:{context_id:a,is_context_joined:!1}}})},y=function(a,f){var g=e.contextSourceID,k=c("getJSEnumSafe")(c("InstantGameContextType"),e.contextType);if(g==null||k==null)throw c("unrecoverableViolation")("Must provide a valid, non-solo context","instant_games");if(a!=null){d("CometRelay").commitMutation(b,{mutation:s,onCompleted:function(){h.dialogRequest.data.changeContext({id:g,promiseID:h.dialogRequest.data.promiseID,type:k})},onError:function(){var a=new(c("GamesQuicksilverError"))("Failed to add the player to the new context.").setCode("NETWORK_FAILURE");j({data:a,type:"REJECT"})},variables:{input:{app_id:i,block_messaging:a,context_source_id:g,store_preference:(a=f)!=null?a:!1}}})}else h.dialogRequest.data.changeContext({id:g,promiseID:h.dialogRequest.data.promiseID,type:k})},z=function(){var a=e.contextTokenID;if(a==null)throw c("unrecoverableViolation")("Must provide a valid, non-solo context","instant_games");d("CometRelay").commitMutation(b,{mutation:q,onCompleted:function(){y()},onError:function(){var a=new(c("GamesQuicksilverError"))("Failed to add the player to the new context.").setCode("NETWORK_FAILURE");j({data:a,type:"REJECT"})},variables:{input:{context_id:a,is_context_joined:!0}}})};k()||j({data:new(c("GamesQuicksilverError"))("Invalid context id for player").setCode("INVALID_PARAM"),type:"REJECT"});k=(k=g.picture)==null?void 0:k.uri;if(k==null||k==="")return null;x=e.shouldJoinNewContext===!0?m.jsx(c("InstantGamesContextSwitchAndJoinDialog.react"),{context:e,onClose:x,onSwitch:z,playerPhotoURI:k}):m.jsx(c("InstantGamesContextSwitchDialog.react"),{buttonTitle:h.dialogRequest.data.buttonTitle,className:"x1cb1t30",context:e,dialogTitleRenderer:h.dialogRequest.data.dialogTitleRenderer,game:f,onClose:w,onSwitch:y,playerPhotoURI:k,stylex:p.dialog});return m.jsx("div",{className:"x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:m.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:m.jsx(c("FullSizeVerticalScrollView.react"),{children:m.jsx(c("AnimatedSlideInFromBottom.react"),{initialOffset:"100%",targetOffset:"50%",translate:"0px",trigger:l,children:x})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesGenericMatchMakingDialogContent.react",["GamesQuicksilverError","GamingContextMatchClientEventFalcoEvent","InstantGameContextType","InstantGameGenericMatchMakingDialogBox.react","InstantGamesGenericMatchMakingDialogContentPollMatchQuery.graphql","InstantGamesGenericMatchMakingDialogContentQuitMatchMutation.graphql","InstantGamesGenericMatchMakingDialogContentStartMatchMutation.graphql","Promise","RelayHooks","getJSEnumSafe","promiseDone","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=d("react");e=d("react");var l=e.useCallback,m=e.useEffect,n=e.useRef,o=h!==void 0?h:h=b("InstantGamesGenericMatchMakingDialogContentStartMatchMutation.graphql"),p=i!==void 0?i:i=b("InstantGamesGenericMatchMakingDialogContentQuitMatchMutation.graphql"),q=j!==void 0?j:j=b("InstantGamesGenericMatchMakingDialogContentPollMatchQuery.graphql");function r(a,e,f,g,h,i){return new(b("Promise"))(function(b){a.current=window.setInterval(function(){d("RelayHooks").fetchQuery(e,q,{id:f}).subscribe({next:function(d){var e=(d=d.xfb_poll_gaming_context_match_skip_cache)==null?void 0:d.remaining_seats;c("GamingContextMatchClientEventFalcoEvent").log(function(){return{event:"DIALOG_POLLING",game_id:g,match_id:f,match_tag:h,remaining_seats:e==null?void 0:e.toString(),source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}});e!=null&&e<=0&&(b(!0),window.clearInterval(a.current))}})},3e3)})}function s(a,b,d,e,f){var g;g=(g=d.xfb_instant_game_match_user)==null?void 0:g.context_token;d=(d=d.xfb_instant_game_match_user)==null?void 0:(d=d.match)==null?void 0:d.id;f.current=!0;if(a&&g&&d!=null){f=c("getJSEnumSafe")(c("InstantGameContextType"),g.context_type);f&&b({id:d,type:f})}e({contextID:g==null?void 0:g.id,contextSize:g==null?void 0:g.context_size,contextType:g==null?void 0:g.context_type})}function a(a){var b=a.appIcon,e=a.appID,f=a.onClose,g=a.switchContext;a=a.dialogRequest.data;var h=a.matchTag,i=a.offlineMatch,j=a.switchContextWhenMatched,q=l(function(a){f({data:a,type:"REJECT"})},[f]),t=l(function(a){f({data:a,type:"RESOLVE"})},[f]);a=d("RelayHooks").useMutation(o);var u=a[0];a=d("RelayHooks").useMutation(p);var v=a[0],w=l(function(a){g(a)},[g]),x=d("RelayHooks").useRelayEnvironment(),y=n(null),z=n(null),A=n(!1);m(function(){u({onCompleted:function(a){var b,d=(b=a.xfb_instant_game_match_user)==null?void 0:(b=b.match)==null?void 0:b.id;z.current=d;if(!i&&d!=null){c("promiseDone")(r(y,x,d,e,h,i).then(function(){c("GamingContextMatchClientEventFalcoEvent").log(function(){return{event:"DIALOG_POLLING_SUCCESS",game_id:e,match_id:z.current,match_tag:h,source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}}),z.current=d,s(j,w,a,t,A)}));return}s(j,w,a,t,A)},onError:function(a){c("GamingContextMatchClientEventFalcoEvent").log(function(){return{error_message:a.message,event:"DIALOG_ERROR",game_id:e,match_id:z.current,match_tag:h,source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}}),q(new(c("GamesQuicksilverError"))("Failed to match user.").setCode("NETWORK_FAILURE"))},variables:{input:{app_id:e,is_offline:i,match_tag:h}}})},[e,u,x,h,i,q,t,w,j,A]);m(function(){return function(){c("GamingContextMatchClientEventFalcoEvent").log(function(){return{event:"DIALOG_CLEANUP",game_id:e,match_id:z.current,match_tag:h,source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}}),!i&&A.current===!1&&z.current!=null&&v({variables:{input:{match_id:z.current}}}),y.current!=null&&(window.clearInterval(y.current),y.current=null),z.current=null}},[]);a=l(function(){c("GamingContextMatchClientEventFalcoEvent").log(function(){return{event:"DIALOG_CANCELED",game_id:e,match_id:z.current,match_tag:h,source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}}),q(new(c("GamesQuicksilverError"))("User closed the dialog").setCode("USER_INPUT"))},[e,h,i,q]);m(function(){c("GamingContextMatchClientEventFalcoEvent").log(function(){return{event:"DIALOG_LOADED",game_id:e,match_id:z.current,match_tag:h,source:i?"OFFLINE_MATCH_API":"ONLINE_MATCH_API"}})},[e,h,i]);b=k.jsx(c("InstantGameGenericMatchMakingDialogBox.react"),{gameIcon:b,onDismiss:a});return k.jsx("div",{children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesLeaveGamingSquadContainer.react",["CometRelay","GamesQuicksilverError","GamingSquadFalcoEventFalcoEvent","InstantGamesLeaveGamingSquadContainerMutation.graphql","InstantGamesLeaveGamingSquadContainer_Fragment.graphql","InstantGamesLeaveGamingSquadDialogContent.react","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react"),k=d("react").useCallback,l=h!==void 0?h:h=b("InstantGamesLeaveGamingSquadContainer_Fragment.graphql"),m=i!==void 0?i:i=b("InstantGamesLeaveGamingSquadContainerMutation.graphql");function a(a){var b=a.params,e=b.appID,f=b.appName,g=b.onClose,h=b.switchContext,i=a.params.dialogRequest.data.squadID,n=a.params.dialogRequest.data.squadTerm,o=k(function(a){g({data:a,type:"REJECT"})},[g]),p=k(function(a){g({data:a,type:"RESOLVE"})},[g]);b=d("CometRelay").useFragment(l,a.fragmentKey);a=((a=b.squad)==null?void 0:a.is_member)===!0;a||o(new(c("GamesQuicksilverError"))("Invalid squad ID provided in leave squad dialog").setCode("INVALID_PARAM"));a=d("RelayHooks").useMutation(m);var q=a[0];a=a[1];var r=k(function(){o(new(c("GamesQuicksilverError"))("Failed to leave a gaming squad").setCode("NETWORK_FAILURE"))},[o]),s=k(function(){c("GamingSquadFalcoEventFalcoEvent").log(function(){return{dialog_type:"leave_squad",event:"click",game_id:e,squad_id:i,squad_term:n}}),q({onCompleted:function(a){p({context_id:a.leaveGamingSquad.gaming_squad.context_token.id,context_size:a.leaveGamingSquad.gaming_squad.context_token.context_size,context_type:a.leaveGamingSquad.gaming_squad.context_token.context_type,gaming_squad_id:a.leaveGamingSquad.gaming_squad.id}),h()},onError:r,variables:{input:{squad_id:i}}})},[q,r,i,e,n,p,h]),t=k(function(){o(new(c("GamesQuicksilverError"))("User input").setCode("USER_INPUT"))},[o]),u=b==null?void 0:b.squad;b=b==null?void 0:(b=b.viewer)==null?void 0:b.actor;if(u==null||b==null){o(new(c("GamesQuicksilverError"))("Network error when retrieving squad info").setCode("NETWORK_FAILURE"));return null}return j.jsx(c("InstantGamesLeaveGamingSquadDialogContent.react"),{appID:e,appName:f,isInFlight:a,onClick:s,onDismiss:t,squadID:i,squadInfo:u,squadTerm:n,userInfo:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesMessagingConsentDialogContainer.react",["GamesQuicksilverError","InstantGamesContextChangeDialog.react","InstantGamesEPDUtils","InstantGamesMessagingConsentDialogContainer_SetBlockMessagingMutation.graphql","InstantGamesMessagingConsentDialogContainer_token.graphql","InstantGamesMessagingConsentDialogContainer_user.graphql","InstantGamesWebDialogsFalcoEventFalcoEvent","RelayHooks","react","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=d("react"),l=d("react").useCallback,m=h!==void 0?h:h=b("InstantGamesMessagingConsentDialogContainer_SetBlockMessagingMutation.graphql");function a(a){var e=d("RelayHooks").useFragment(i!==void 0?i:i=b("InstantGamesMessagingConsentDialogContainer_token.graphql"),a.token),f=d("RelayHooks").useFragment(j!==void 0?j:j=b("InstantGamesMessagingConsentDialogContainer_user.graphql"),a.user);a=a.params;var g=a.appID,h=a.appName,n=a.onClose;a=d("RelayHooks").useMutation(m);var o=a[0];a=l(function(){c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{click_action:"dismiss_dialog",dialog_type:"recipient_epd_consent_dialog",event:"click",game_id:g,is_epd_dialog:!0}}),n({data:new(c("GamesQuicksilverError"))("User closed the dialog").setCode("USER_INPUT"),type:"REJECT"})},[g,n]);var p=e.contextName,q=e.contextSourceID,r=e.enableStoringConsentPreference;f=(f=f==null?void 0:(f=f.picture)==null?void 0:f.uri)!=null?f:"";h=d("InstantGamesEPDUtils").getInstantGamesContextChangeDescriptionForEPD(h,p);var s=l(function(a,b){o({onCompleted:function(){c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{block_messaging:a,click_action:"accept_dialog",dialog_type:"recipient_epd_consent_dialog",event:"click",game_id:g,is_epd_dialog:!0}}),n({data:null,type:"RESOLVE"})},onError:function(){c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{block_messaging:a,dialog_type:"recipient_epd_consent_dialog",event:"error",game_id:g,is_epd_dialog:!0}}),n({data:new(c("GamesQuicksilverError"))("Failed to set message block for user.").setCode("NETWORK_FAILURE"),type:"REJECT"})},variables:{input:{app_id:g,block_messaging:a,context_source_id:q,store_preference:b}}})},[g,o,q,n]),t=l(function(){return c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{dialog_type:"recipient_epd_consent_dialog",event:"impression",game_id:g,is_epd_dialog:!0}})},[g]);t=c("useSinglePartialViewImpression")({onImpressionStart:t});return k.jsx("div",{className:"xrmyhay x78zum5 x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:k.jsx("div",{className:"x1ey2m1c xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe xwa60dl xh8yej3",ref:t,children:k.jsx(c("InstantGamesContextChangeDialog.react"),{context:e,contextName:p,hideNoMessagingOption:!0,onClose:a,onSwitch:s,playerPhotoURI:f,shouldEnableStoringConsentPreference:(t=r)!=null?t:!1,shouldShowConsentFlow:!0,text:h,threadEntrypoint:!0})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextSwitchDialogContainer.react",["CometRelay","GamesQuicksilverError","InstantGameContextType","InstantGamesContextSwitchAndJoinDialogContent.react","InstantGamesContextSwitchDialogContainerMutation.graphql","InstantGamesContextSwitchDialogContainer_Fragment.graphql","InstantGamesContextSwitchDialogContent.react","RelayHooks","getJSEnumSafe","react","useNullthrowsViolation","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react"),k=d("react").useCallback,l=h!==void 0?h:h=b("InstantGamesContextSwitchDialogContainer_Fragment.graphql"),m=i!==void 0?i:i=b("InstantGamesContextSwitchDialogContainerMutation.graphql");function a(a){var b=a.dialogRequest,e=a.fragmentKey,f=a.onClose,g=a.switchContext,h=k(function(a){f({data:a,type:"REJECT"})},[f]),i=k(function(a){f({data:a,type:"RESOLVE"})},[f]);a=b.data;b=a.buttonTitle;a=a.dialogTitleRenderer;e=d("CometRelay").useFragment(l,e);(!e||!e.node)&&h(new(c("GamesQuicksilverError"))("Invalid context id for player").setCode("INVALID_PARAM"));var n=e.me,o=e.node;e=(e=n==null?void 0:(e=n.picture)==null?void 0:e.uri)!=null?e:"";var p=k(function(){h(new(c("GamesQuicksilverError"))("User closed the dialog").setCode("USER_INPUT"))},[h]),q=d("RelayHooks").useMutation(m),r=q[0];q=q[1];var s=k(function(){i({context_id:o==null?void 0:o.contextTokenID,context_size:o==null?void 0:o.contextSize,context_type:o==null?void 0:o.contextType});var a=c("getJSEnumSafe")(c("InstantGameContextType"),o==null?void 0:o.contextType);g({id:o==null?void 0:o.contextSourceID,type:(a=a)!=null?a:"GENERIC"})},[i,g,o]),t=k(function(){r({onCompleted:function(){s()},onError:function(){h(new(c("GamesQuicksilverError"))("Failed to add user to the context.").setCode("NETWORK_FAILURE"))},variables:{input:{actor_id:n==null?void 0:n.id,client_mutation_id:c("uuid")(),context_id:o==null?void 0:o.contextTokenID,is_context_joined:!0}}})},[r,n,o,s,h]),u=k(function(){r({onCompleted:function(){p()},onError:function(){h(new(c("GamesQuicksilverError"))("A network error has occurred.").setCode("NETWORK_FAILURE"))},variables:{input:{actor_id:n==null?void 0:n.id,client_mutation_id:c("uuid")(),context_id:o==null?void 0:o.contextTokenID,is_context_joined:!1}}})},[r,p,n,o,h]),v=c("useNullthrowsViolation")(o);q=(o==null?void 0:o.shouldJoinNewContext)===!0?j.jsx(c("InstantGamesContextSwitchAndJoinDialogContent.react"),{context:v,isInFlight:q,onClose:u,onSwitch:t,playerPhotoURI:e}):j.jsx(c("InstantGamesContextSwitchDialogContent.react"),{buttonTitle:b,context:v,dialogTitleRenderer:a,onClose:p,onSwitch:s,playerPhotoURI:e});return j.jsx("div",{children:q})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesOpenExternalLinkDialog.react",["CloudGamingSessionEventFalcoEvent","CometFullScreen","CometPlaceholder.react","GamesQuicksilverError","deferredLoadComponent","goURIOnWindow","react","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useEffect,k=c("deferredLoadComponent")(c("requireDeferredForDisplay")("InstantGamesOpenExternalLinkDialogRenderer.react").__setRef("InstantGamesOpenExternalLinkDialog.react"));function l(a,b,d,e,f){var g=Date.now().toString();c("CloudGamingSessionEventFalcoEvent").log(function(){return{app_id:b,client_app_id:e,cloud_game_id_override:f,event:a,session_id:d,time_duration_ms:g}})}function a(a){a=a.props;var b=a.appID,e=a.appName,f=a.dialogRequest,g=a.onClose,m=a.sessionID;a=f.data;var n=a.clientAppID,o=a.gameID,p=a.url,q=i(function(a){g({data:a,type:"REJECT"})},[g]),r=i(function(a){g({data:a,type:"RESOLVE"})},[g]);j(function(){d("CometFullScreen").isFullScreen()&&d("CometFullScreen").exitFullScreen()});f=function(){c("goURIOnWindow")(window.open("","_blank"),p),l("EXTERNAL_LINK_OPEN",b,m,n,o),r()};a=function(){l("EXTERNAL_LINK_CANCELED_BY_USER",b,m,n,o),q(new(c("GamesQuicksilverError"))("Canceled by user").setCode("USER_INPUT"))};return h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx("div",{"data-testid":void 0,children:h.jsx(k,{gameName:e,onAccept:f,onCancel:a,url:p})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesFollowPageDialogContent.react",["fbt","CometCard.react","CometPressable.react","CometRelay","CometTheme.react","GamesQuicksilverError","InstantGamesDarkModeBottomSheet.react","InstantGamesFollowPageDialogContent_Fragment.graphql","InstantGamesPageRecentPostHighlight.react","InstantGamesPageRow.react","InstantGamesWebPlayTypedLogger","TetraText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k={cardSpacing:{marginBottom:"x1e56ztr",marginStart:"x1d52u69",marginEnd:"xktsk01",marginTop:"xw7yly9",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},divider:{backgroundColor:"x1r7zawb",height:"xjm9jq1",marginTop:"xw7yly9",marginEnd:"xktsk01",marginBottom:"x1yztbdb",marginStart:"x1d52u69",$$css:!0},headline:{marginStart:"x1d52u69",marginEnd:"xktsk01",marginTop:"x1sgpng",marginBottom:"x91k8ka",width:"xh8yej3",$$css:!0},scrollableCard:{overflowX:"x14aock7",overflowY:"x1rife3k",$$css:!0}},l=40,m=i!==void 0?i:i=b("InstantGamesFollowPageDialogContent_Fragment.graphql");function a(a){var b=d("CometRelay").useFragment(m,a.fragmentKey);b=b==null?void 0:b.page;var e=b==null?void 0:b.url;if(b==null||e==null){a.reject(new(c("GamesQuicksilverError"))("Operation cannot be performed due to missing page linked to game").setCode("PAGE_NOT_LINKED"));return null}var f=function(){new(c("InstantGamesWebPlayTypedLogger"))().setEvent("follow_page_in_game_dialog_click").setIgAppID(a.appID).log()};return j.jsx(c("CometTheme.react"),{theme:"dark",children:j.jsxs(c("InstantGamesDarkModeBottomSheet.react"),{onDismiss:function(){return a.resolve()},xstyle:k.scrollableCard,children:[j.jsx("div",{className:"x1d52u69 xktsk01 x1sgpng x91k8ka xh8yej3",children:j.jsx(c("TetraText.react"),{align:"start",color:"primary",type:"headlineEmphasized2",children:h._("u6e38u620fu516cu5171u4e3bu9875")})}),j.jsx(c("InstantGamesPageRow.react"),{appID:a.appID,page:b,profileImgSize:l}),j.jsx("div",{className:"x1r7zawb xjm9jq1 xw7yly9 xktsk01 x1yztbdb x1d52u69"}),j.jsx("div",{className:"x1e56ztr x1d52u69 xktsk01 xw7yly9 x6ikm8r x10wlt62",children:j.jsx(c("CometPressable.react"),{linkProps:{onNavigate:f,target:"_blank",url:e},children:j.jsx(c("CometCard.react"),{background:"card-flat",border:"solid",children:j.jsx(c("InstantGamesPageRecentPostHighlight.react"),{page:b,profileImgSize:l})})})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesJoinGroupDialogContent.react",["fbt","CometCard.react","CometPressable.react","CometRelay","CometTheme.react","GamesQuicksilverError","GroupsCometJoinGroupButtonRelay.react","Image.react","InstantGamesDarkModeBottomSheet.react","InstantGamesGroupDiscovery.react","InstantGamesGroupFacepile.react","InstantGamesJoinGroupDialogContent_Fragment.graphql","InstantGamesWebPlayTypedLogger","TetraText.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=i!==void 0?i:i=b("InstantGamesJoinGroupDialogContent_Fragment.graphql");function a(a){var b=d("CometRelay").useFragment(k,a.fragmentKey),e=b==null?void 0:b.viewer;b=(b=b==null?void 0:(b=b.app)==null?void 0:(b=b.groups)==null?void 0:b.nodes)!=null?b:[];b=b.length>0?b[0]:null;var f=b==null?void 0:b.url;if(b==null||e==null||f==null){a.reject(new(c("GamesQuicksilverError"))("Operation cannot be performed due to missing group linked to game").setCode("GROUP_NOT_LINKED"));return null}return j.jsx(c("CometTheme.react"),{theme:"dark",children:j.jsxs(c("InstantGamesDarkModeBottomSheet.react"),{onDismiss:function(){return a.resolve()},children:[j.jsx("div",{className:"x1d52u69 xktsk01 x1sgpng x91k8ka xh8yej3",children:j.jsx(c("TetraText.react"),{align:"start",color:"primary",type:"headlineEmphasized2",children:h._("u6e38u620fu5c0fu7ec4")})}),j.jsx("div",{className:"x1e56ztr x1d52u69 xktsk01 xw7yly9 x6ikm8r x10wlt62",children:j.jsx(c("CometPressable.react"),{linkProps:{onNavigate:function(){new(c("InstantGamesWebPlayTypedLogger"))().setEvent("join_group_in_game_dialog_click").setIgAppID(a.appID).log()},target:"_blank",url:f},children:j.jsxs(c("CometCard.react"),{background:"card-flat",border:"solid",children:[j.jsx(c("Image.react"),{className:"x9otpla",src:(f=b.profile_picture)==null?void 0:f.uri,width:"100%"}),j.jsxs("div",{className:"x1ye3gou xn6708d",children:[j.jsx("div",{className:"xzueoph xk9mzb7 xh8yej3",children:j.jsx(c("TetraText.react"),{align:"start",color:"primary",type:"headline4",children:b==null?void 0:b.name})}),j.jsx("div",{className:"xod5an3 xr9ek0c xh8yej3",children:j.jsx(c("InstantGamesGroupDiscovery.react"),{group:b})}),j.jsx("div",{className:"x1xmf6yo",children:j.jsx(c("InstantGamesGroupFacepile.react"),{group:b,viewer:e})}),j.jsx("div",{className:"xod5an3 x1xmf6yo",children:j.jsx(c("GroupsCometJoinGroupButtonRelay.react"),{group$key:b,isPrimary:!0,onPressJoined:function(){new(c("InstantGamesWebPlayTypedLogger"))().setEvent("join_group_in_game_dialog_confirm").setIgAppID(a.appID).log()},openInNewTab:!0,reduceEmphasis:!0,source:"INSTANT_GAMES"})})]})]})})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesInAppPurchaseSubscriptionDialog.react",["CometErrorBoundary.react","CometPlaceholder.react","CometRelay","CometTransientDialogProvider.react","FBLogger","GamesQuicksilverError","InstantGamesIAPLoadingComponent.react","InstantGamesInAppPurchaseSubscriptionDialogQuery.graphql","InstantGamesPlayerUtils","XFBGamesIAPProductTypeUtils.facebook","react","usePaymentsCometCheckout"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useEffect,k=e.useRef,l=h!==void 0?h:h=b("InstantGamesInAppPurchaseSubscriptionDialogQuery.graphql");function a(a){var b=d("InstantGamesPlayerUtils").isCometOnMobile();j(function(){if(b){d("InstantGamesPlayerUtils").unlockPlayerScrolling();return function(){d("InstantGamesPlayerUtils").lockPlayerScrolling()}}},[b]);return i.jsx(c("CometTransientDialogProvider.react"),{children:i.jsx(c("CometErrorBoundary.react"),{fallback:function(){return i.jsx(c("InstantGamesIAPLoadingComponent.react"),{})},onError:function(b){c("FBLogger")("instant_games","subscription_checkout_flow_load_error").catching(b).warn("Unable to load subscription checkout flow"),a.props.onClose({data:new(c("GamesQuicksilverError"))("Failed to load subscription checkout.").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"),type:"REJECT"})},children:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("InstantGamesIAPLoadingComponent.react"),{}),children:i.jsx(m,babelHelpers["extends"]({},a))})})})}a.displayName=a.name+" [from "+f.id+"]";function m(a){var b=d("CometRelay").usePreloadedQuery(l,a.queries.query);b=b.node;var e=a.props,f=e.dialogRequest;e=e.onClose;f=f.productID;b=(b=b.productInventory)==null?void 0:b.product;if(b==null||!b.isPurchaseable||d("XFBGamesIAPProductTypeUtils.facebook").toJSEnum(b.productType)!=="subscribable"){e({data:new(c("GamesQuicksilverError"))("Product is not purchaseable: user has an existing, active entitlement to the subscribable product.").setCode("INVALID_PARAM"),type:"REJECT"});return null}return i.jsx(n,{appID:a.props.appID,closeHandler:a.props.onClose,product:b,productID:f})}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b=a.appID,d=a.closeHandler,e=a.product,f=a.productID,g=k(!1);a={extraData:{tierID:e==null?void 0:(a=e.tier)==null?void 0:a.id},paymentType:"MOR_GAMES_SUBSCRIPTION",products:[{product_id:(e==null?void 0:e.subscribableProductID)||"",quantity:1}],receiverID:b};e=c("usePaymentsCometCheckout")({checkoutProps:babelHelpers["extends"]({},a,{customCheckoutSuccessCallback:function(a,b){b({customConfirmationConfiguration:{hideConfirmationButton:!0},state:"SUCCESS"}),g.current=!0,d({data:f,type:"RESOLVE"})}}),onClose:function(){g.current||d({data:new(c("GamesQuicksilverError"))("User cancelled the order").setCode("USER_INPUT"),type:"REJECT"})}});var h=e[0];j(function(){h()},[h]);return i.jsx("div",{})}n.displayName=n.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesVideoPlayerDialog.react",["fbt","CometRelay","GamesQuicksilverError","InstantGamesConfirmExitDialog.react","InstantGamesVideoPlayerDialogQuery.graphql","InstantGamesWebPlayTypedLogger","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useEffect,l=i!==void 0?i:i=b("InstantGamesVideoPlayerDialogQuery.graphql");function a(a){var b=a.props,e=b.appID,f=b.onClose;b=d("CometRelay").usePreloadedQuery(l,a.queries.query);a=b.video;var g=a==null?void 0:a.url;k(function(){g!=null?new(c("InstantGamesWebPlayTypedLogger"))().setEvent("video_player_in_game_dialog_open").setIgAppID(e).log():f({data:new(c("GamesQuicksilverError"))("Operation cannot be performed because specified video ID was not found").setCode("VIDEO_NOT_FOUND"),type:"REJECT"})},[e,f,g]);if(g!=null)return j.jsx(c("InstantGamesConfirmExitDialog.react"),{appID:e,cancelEvent:"video_player_in_game_dialog_cancel",confirmEvent:"video_player_in_game_dialog_confirm",label:h._("u52a0u5165u76f4u64ad"),onConfirm:function(){return f({data:null,type:"RESOLVE"})},onDismiss:function(){return f({data:new(c("GamesQuicksilverError"))("User dismissed confirmation dialog").setCode("USER_INPUT"),type:"REJECT"})},text:h._("u9000u51fau6e38u620fu5e76u52a0u5165u76f4u64aduff1f"),uri:g});else return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CloudGameRequestsDialog.react",["CloudGameRequestsDialogBody","CloudGameRequestsDialogQuery.graphql","CometErrorBoundary.react","CometPlaceholder.react","CometProgressRingIndeterminate.react","CometRelay","GamesQuicksilverError","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useEffect,k=h!==void 0?h:h=b("CloudGameRequestsDialogQuery.graphql");function l(a){var b,e=a.props;a=d("CometRelay").usePreloadedQuery(k,a.queries.query);var f=e.appID,g=e.onClose;return i.jsx(c("CloudGameRequestsDialogBody"),{actionType:(b=(b=e.dialogRequest)==null?void 0:(b=b.data)==null?void 0:b.actionType)!=null?b:"",coverImageUrl:a.game_requests_data.cover_image_url,cta:(b=(b=e.dialogRequest)==null?void 0:(b=b.data)==null?void 0:b.cta)!=null?b:"",data:(b=(b=e.dialogRequest)==null?void 0:(b=b.data)==null?void 0:b.data)!=null?b:"",dialogSubTitle:(b=(b=e.dialogRequest)==null?void 0:(b=b.data)==null?void 0:b.title)!=null?b:"",dialogTitle:a.game_requests_data.title,gameID:f,items:a.game_requests_data,message:(e=(b=e.dialogRequest)==null?void 0:(f=b.data)==null?void 0:f.message)!=null?e:"",messengerDisclaimerText:a.game_requests_data.messenger_disclaimer_text,onClose:function(a){return g({data:a,type:"RESOLVE"})},promoVideo:a.game_requests_data})}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b=a.onClose;j(function(){b({data:new(c("GamesQuicksilverError"))("Client cannot perform this operation").setCode("INVALID_OPERATION"),type:"REJECT"})},[b]);return null}function a(a){return i.jsx(c("CometErrorBoundary.react"),{fallback:function(){return i.jsx(m,{onClose:a.props.onClose})},children:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx("div",{className:"xrmyhay x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:i.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x17fpy1y x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:i.jsx("div",{className:"x6s0dn4 x78zum5 x1egiwwb xl56j7k x1n2onr6",children:i.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})})})}),children:i.jsx(l,babelHelpers["extends"]({},a))})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesInAppPurchaseECPDialogRendererWithPerfOptimization.react",["CometRelay","ECPGamesUPLLogger","FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint","GamesQuicksilverError","InstantGamesErrorCode","InstantGamesIAP","InstantGamesIAPOperations","InstantGamesInAppPurchaseECPDialogRendererWithPerfOptimization_data.graphql","RelayHooks","getJSEnumSafe","justknobx","react","useCometDynamicEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useEffect,j=e.useMemo,k=e.useRef,l=h!==void 0?h:h=b("InstantGamesInAppPurchaseECPDialogRendererWithPerfOptimization_data.graphql");function a(a){var b=k(!1),e=a.appID,f=a.fragmentKey,g=a.optionalFields,h=a.reject,m=a.resolve,n=a.uplSessionID,o=d("CometRelay").useFragment(l,f),p=k(!1),q=j(function(){return new(c("ECPGamesUPLLogger"))({client_suppression_policy:[],logging_policy_product:""},d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,"ecp","comet",n)},[n]);i(function(){var a=function(){c("justknobx")._("525")&&!p.current&&h(new(c("GamesQuicksilverError"))("User refreshed the page").setCode("USER_INPUT"))};window.addEventListener("beforeunload",a);return function(){return window.removeEventListener("beforeunload",a)}});var r=c("useCometDynamicEntryPointDialog")(c("FBPayOnsiteECPCheckoutHelperRootDialog.entrypoint"));a=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").ProcessPurchaseMutation);var s=a[0];i(function(){var a;if(b.current)return;b.current=!0;a=(a=o.app)==null?void 0:(a=a.instantGameInfo)==null?void 0:a.purchaseOrder;if(a==null){h(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}var f=a.error;if(f!=null){var i;h(new(c("GamesQuicksilverError"))((i=f==null?void 0:f.message)!=null?i:"Failed to create purchase order").setCode((i=c("getJSEnumSafe")(c("InstantGamesErrorCode"),f==null?void 0:f.code))!=null?i:"PAYMENTS_PURCHASE_CREATION_FAILED"));return}f=a.appName;i=a.countryCode;var j=a.currencyCode,k=a.imageURL,l=a.isTestPurchase,t=a.orderID,u=a.price;a=a.title;if(f==null||j==null||k==null||t==null||u==null||a==null||l==null){h(new(c("GamesQuicksilverError"))("Failed to create purchase order: invalid product").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}i={appName:f,countryCode:(f=i)!=null?f:"",isTestPurchase:l,orderID:t,product:{imageURL:k,price:{amount:u,currency:j},title:a}};f={country_code:i.countryCode,optional_fields:g,order_id:i.orderID,payment_container_mode:i.isTestPurchase?"TEST":"LIVE",payment_product_id:d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,receiver_description:i.product.title,receiver_icon_uri:i.product.imageURL,receiver_id:e,receiver_name:i.appName,session_id:n,total:{currency:i.product.price.currency,value:i.product.price.amount.toFixed(2)}};l=function(a,b){p.current||h(new(c("GamesQuicksilverError"))("User cancelled the order").setCode("USER_INPUT"))};r({routeProps:f},{onReturn:function(a,b){p.current=!0,s({onCompleted:function(a){a=a.processPurchase;if(a==null){h(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"));return}q.logCheckoutSuccess();m({developerPayload:a.developer_payload,isConsumed:a.is_consumed,paymentActionType:a.payment_action_type,paymentID:a.payment_id,productID:a.product_id,purchasePlatform:a.purchase_platform,purchasePrice:d("InstantGamesIAP").formatCurrencyAmount(a.purchase_currency_amount),purchaseTime:a.purchase_time,purchaseToken:a.purchase_token,signedRequest:a.signed_request})},onError:function(){q.logCheckoutFailure(),h(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"))},variables:{input:{invoice_id:a}}})},routeProps:f},l)},[e,(f=o.app)==null?void 0:(a=f.instantGameInfo)==null?void 0:a.purchaseOrder,r,g,s,h,m,q,n])}g["default"]=a}),98);
-----
InstantGamesInAppPurchaseCometDialogRenderer.react",["fbt","CometProgressRingIndeterminate.react","CometRelay","FBLogger","GamesQuicksilverError","InstantGamesErrorCode","InstantGamesIAP","InstantGamesIAPOperations","RelayHooks","getJSEnumSafe","justknobx","promiseDone","react","usePaymentsCometCheckout"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useRef,l=b.useState,m=h._("__JHASH__tR_VH93S0Jg__JHASH__").toString(),n=h._("__JHASH__YE6o5i1602r__JHASH__").toString();function a(a){var b=d("CometRelay").useRelayEnvironment(),e=a.appID,f=a.developerPayload,g=a.productID,h=a.reject,o=a.resolve;a=l();var p=a[0],q=a[1];a=l(!1);var r=a[0],s=a[1],t=k(!1);a=c("usePaymentsCometCheckout")({checkoutProps:{customCheckoutSuccessCallback:function(a,b){var e;e=a==null?void 0:(e=a.transactionOrderDetails)==null?void 0:e.payment_id;a=a==null?void 0:(a=a.transactionOrderDetails)==null?void 0:a.id;if(e==null||a==null){b({error:{error_description:m,error_title:n},state:"ERROR"});h(new(c("GamesQuicksilverError"))("Invalid invoice or payment id").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}x({onCompleted:function(a){a=a.processPurchase;if(a==null){y(b);return}b({customConfirmationConfiguration:{hideConfirmationButton:!0},state:"SUCCESS"});t.current=!0;o({developerPayload:a.developer_payload,isConsumed:a.is_consumed,paymentActionType:a.payment_action_type,paymentID:a.payment_id,productID:a.product_id,purchasePlatform:a.purchase_platform,purchasePrice:d("InstantGamesIAP").formatCurrencyAmount(a.purchase_currency_amount),purchaseTime:a.purchase_time,purchaseToken:a.purchase_token,signedRequest:a.signed_request})},onError:function(){b({error:{error_description:m,error_title:n},state:"ERROR"}),h(new(c("GamesQuicksilverError"))("Failed return purchase details").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"))},variables:{input:{invoice_id:a}}})},orderID:p,paymentType:"MOR_INSTANT_GAMES",receiverID:e},onClose:function(){t.current||h(new(c("GamesQuicksilverError"))("User cancelled the order").setCode("USER_INPUT"))}});var u=a[0];a=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").CreatePurchaseOrderMutation);var v=a[0];a=a[1];var w=d("RelayHooks").useMutation(d("InstantGamesIAPOperations").ProcessPurchaseMutation),x=w[0];j(function(){p!=null&&r===!1&&(u(),s(!0))},[p,u,r]);j(function(){p==null&&v({onCompleted:function(a){a=a.createPurchaseOrder;if(a==null){h(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}var b=a.error;if(b!=null){var d;h(new(c("GamesQuicksilverError"))((d=b==null?void 0:b.message)!=null?d:"Failed to create purchase order").setCode((d=c("getJSEnumSafe")(c("InstantGamesErrorCode"),b==null?void 0:b.code))!=null?d:"PAYMENTS_PURCHASE_CREATION_FAILED"));return}b=a.order_id;if(b==null){h(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"));return}q(b)},onError:function(){h(new(c("GamesQuicksilverError"))("Failed to create purchase order").setCode("PAYMENTS_PURCHASE_CREATION_FAILED"))},variables:{input:{app_id:e,developer_payload:f,product_id:g}}})},[e,f,v,g,h,p]);j(function(){var a=function(){c("justknobx")._("525")&&!t.current&&h(new(c("GamesQuicksilverError"))("User refreshed the page").setCode("USER_INPUT"))};window.addEventListener("beforeunload",a);return function(){return window.removeEventListener("beforeunload",a)}});function y(a){c("promiseDone")(d("InstantGamesIAP").fetchPurchases(e,b),function(b){b=b.find(function(a){return a.productID===g});b!=null?(c("FBLogger")("instant_games","post_process_purchase").warn("Had to refetch purchase object, on purchase completion."),a({customConfirmationConfiguration:{hideConfirmationButton:!0},state:"SUCCESS"}),o(b)):(a({error:{error_description:m,error_title:n},state:"ERROR"}),h(new(c("GamesQuicksilverError"))("Failed return purchase details.").setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED")))},function(b){a({error:{error_description:m,error_title:n},state:"ERROR"}),h(b.setCode("PAYMENTS_PURCHASE_POST_PROCESSING_FAILED"))})}return a||p==null?i.jsx("div",{className:"x4n7ey x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:i.jsx("div",{className:"xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x17fpy1y x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:i.jsx("div",{className:"x6s0dn4 x78zum5 x1q0g3np x5yr21d xl56j7k x1n2onr6 xh8yej3",children:i.jsx(c("CometProgressRingIndeterminate.react"),{color:"light",size:24})})})}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextSelector.react",["CometRelay","GamesQuicksilverError","InstantGameContextType","InstantGamesContextChangeDialog.react","InstantGamesContextMutations","InstantGamesContextSelectorCardRenderer.react","InstantGamesContextSelectorQuery.graphql","InstantGamesContextSelector_SetBlockMessagingMutation.graphql","InstantGamesEPDUtils","InstantGamesLinkShareTypedLogger","InstantGamesPlayerUtils","InstantGamesWebDialogsFalcoEventFalcoEvent","goForceFullPageRedirectTo","react","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useCallback,l=e.useState,m=h!==void 0?h:h=b("InstantGamesContextSelector_SetBlockMessagingMutation.graphql"),n=i!==void 0?i:i=b("InstantGamesContextSelectorQuery.graphql");function a(a){var b,e=a.props;a=a.queries;var f=d("CometRelay").useRelayEnvironment();a=d("CometRelay").usePreloadedQuery(n,a.queryReference);var g=l(null),h=g[0],i=g[1];g=l(!1);var o=g[0],p=g[1];g=l(!1);var q=g[0],r=g[1];g=k(function(){return c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{dialog_type:"context_choose_epd_consent_dialog",event:"impression",game_id:e.appID,is_epd_dialog:!0}})},[e.appID]);g=c("useSinglePartialViewImpression")({onImpressionStart:g});var s=k(function(){return c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{dialog_type:"context_choose",event:"impression",game_id:e.appID,is_epd_dialog:o}})},[o,e.appID]),t=(b=a.node)==null?void 0:(b=b.instantGameInfo)==null?void 0:b.gameName;if(t==null)return null;var u=function(a){e.onClose({data:a,type:"REJECT"})};b=function(a,b){h!=null&&A!=null&&d("CometRelay").commitMutation(f,{mutation:m,onCompleted:function(b){if(!b)return;w(A,h.type,"context_choose_epd_consent_dialog",a)},onError:function(a){c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{dialog_type:"context_choose_epd_consent_dialog",event:"error",game_id:e.appID,is_epd_dialog:!0}})},variables:{input:{app_id:e.appID,block_messaging:a,context_source_id:A,store_preference:b}}})};var v=function(a){u(new(c("GamesQuicksilverError"))("Player closed the context menu").setCode("USER_INPUT")),c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{click_action:"dismiss_dialog",dialog_type:a,event:"click",game_id:e.appID,is_epd_dialog:o}})},w=function(a,b,g,h){if(b==="LINK")d("CometRelay").commitMutation(f,{mutation:d("InstantGamesContextMutations").LinkContextCreateMutation,onCompleted:function(a){if(!a){y();return}x(a)},onError:function(a){return y()},variables:{input:{app_id:e.appID}}});else{if(a===e.contextSourceID){u(new(c("GamesQuicksilverError"))("Attempted to switch into the current context").setCode("SAME_CONTEXT"));c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{dialog_type:g,event:"error",game_id:e.appID,is_epd_dialog:o}});return}e.switchContext({id:a,promiseID:e.dialogRequest.data.promiseID,source:"challenge_card",type:b});c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{block_messaging:h,click_action:"accept_dialog",dialog_type:g,event:"click",game_id:e.appID,is_epd_dialog:o}})}},x=function(b){var f;f=b==null?void 0:(f=b.instant_application_context_token_link_create)==null?void 0:f.contextToken;if(!f){y();return}var a=f.contextSourceID,g=f.contextTokenID;f=f.contextType&&c("InstantGameContextType")[f.contextType]?c("InstantGameContextType")[f.contextType]:null;if(a==null||!f){y();return}b=b==null?void 0:(b=b.instant_application_context_token_link_create)==null?void 0:b.shareMessage;new(c("InstantGamesLinkShareTypedLogger"))().setEvent("challenge_list_whatsapp_row_link_created").setIgAppID(e.appID).setSource(e.analyticsInfo.getSource()).setLinkFragment(a).setLinkContextTokenID(g).setShareMessage(b).log();if(b!=null){var h="https://api.whatsapp.com/send?text="+b;new(c("InstantGamesLinkShareTypedLogger"))().setEvent("challenge_list_whatsapp_row_whatsapp_opened").setIgAppID(e.appID).setSource(e.analyticsInfo.getSource()).setLinkFragment(a).setLinkContextTokenID(g).setShareMessage(b).log();d("InstantGamesPlayerUtils").isCometOnMobile()?c("goForceFullPageRedirectTo")(h,!1):window.open(h,"_blank")}e.switchContext({id:a,promiseID:e.dialogRequest.data.promiseID,type:f})},y=function(){u(new(c("GamesQuicksilverError"))("Failed to switch context").setCode("NETWORK_FAILURE")),new(c("InstantGamesLinkShareTypedLogger"))().setEvent("challenge_list_whatsapp_row_link_creation_failed").setIgAppID(e.appID).setSource(e.analyticsInfo.getSource()).log()},z=function(a){return d("InstantGamesEPDUtils").getInstantGamesContextChangeDescriptionForEPD(t,a)},A=h==null?void 0:h.id,B=h==null?void 0:h.image;if(h!=null&&A!=null)return j.jsx("div",{className:"xrmyhay x78zum5 x5yr21d x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy xh8yej3",children:j.jsx("div",{className:"x1ey2m1c xds687c x5yr21d xr1yuqi xkrivgy x4ii5y1 x1gryazu x1j9u4d2 x6ikm8r x10wlt62 x10l6tqk x17qophe xwa60dl xh8yej3",ref:g,children:j.jsx(c("InstantGamesContextChangeDialog.react"),{contextName:h.name,contextPhotos:B!=null?[B]:[],onClose:function(){return v("context_choose_epd_consent_dialog")},onSwitch:b,playerPhotoURI:e.dialogRequest.data.playerPhotoURI,shouldEnableStoringConsentPreference:q,shouldShowConsentFlow:o,text:z(h.name),threadEntrypoint:!1})})});else{g=function(a,b,d,f,g,h){if(g!=null&&g){i({id:a,image:d,name:f,type:b});p(!0);r((g=h)!=null?g:!1);c("InstantGamesWebDialogsFalcoEventFalcoEvent").log(function(){return{click_action:"accept_dialog",dialog_type:"context_choose",event:"click",game_id:e.appID,is_epd_dialog:o}})}else w(a,b,"context_choose",null)};b=(B=a.recommended_tournament_info)!=null?B:null;return j.jsx(c("InstantGamesContextSelectorCardRenderer.react"),{entryPoint:e.analyticsInfo.getSource(),filters:e.dialogRequest.data.filters,game$ref:a.node,gameID:e.appID,isNative:!1,onClose:function(){return v("context_choose")},onContextChange:g,onImpression:s,tournamentInfo$ref:b})}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);/*FB_PKG_DELIM*/
-----
InstantGamesContextChangeDialog.react",["cx","fbt","ix","CometCheckbox.react","CometProgressRingIndeterminate.react","CometRelay","GamesQuicksilverError","InstantGamesButton.react","InstantGamesCloseButton.react","InstantGamesContextChangeDialog_context.graphql","InstantGamesContextImage.react","SplitImage.react","joinClasses","react","useBoolean"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l=d("react"),m=d("react").useState,n=100,o={checkboxContainer:{display:"x78zum5",flexBasis:"x1l7klhg",flexDirection:"x1q0g3np",justifyContent:"x1nhvcw1",$$css:!0},cta:{fontSize:"xkzkwiv",marginTop:"xw7yly9",marginEnd:"xktsk01",marginBottom:"x1yztbdb",marginStart:"x1d52u69",$$css:!0},ctaLine:{marginStart:"x1d52u69",marginEnd:"xktsk01",marginTop:"x7r5mf7",marginBottom:"xahult9",$$css:!0},ctaRow:{display:"x78zum5",flexDirection:"x1q0g3np",justifyContent:"x1qughib",$$css:!0},playWithMessagesStyle:{paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0},progressBar:{display:"x78zum5",justifyContent:"xl56j7k",$$css:!0}},p=k!==void 0?k:k=b("InstantGamesContextChangeDialog_context.graphql");function a(a){var b,e=d("CometRelay").useFragment(p,a.context),f=m(!1),g=f[0],h=f[1];f=m(!1);var k=f[0],q=f[1];f=c("useBoolean")(!1);var r=f.toggle,s=f.value;if(!a.context&&!a.contextPhotos){a.onClose(new(c("GamesQuicksilverError"))("Failed to fetch the necessary context info").setCode("UNKNOWN"));return null}f=function(){h(!0),a.onSwitch(!1,s)};var t=function(){q(!0),a.onSwitch(!0,s)},u=function(){var b=new(c("GamesQuicksilverError"))("Player closed the context dialog").setCode("USER_INPUT");a.onClose(b)},v=null,w=a.contextPhotos;b=(b=a.threadEntrypoint)!=null?b:!1;var x=a.shouldEnableStoringConsentPreference,y=a.shouldShowConsentFlow;a.context?v=l.jsx(c("InstantGamesContextImage.react"),{badge:!0,className:"_2by_",contextToken:e,size:n}):w!=null&&(v=l.jsx(c("SplitImage.react"),{className:"_2by_",size:n,srcs:w}));return l.jsxs("div",{className:c("joinClasses")(a.className,"_2bz0"),children:[!b&&l.jsx(c("InstantGamesCloseButton.react"),{onClose:u}),l.jsxs("div",{className:"_2bz3",children:[l.jsx("div",{className:"_2bz5",children:l.jsx(c("SplitImage.react"),{className:"_2by_",size:n,srcs:[a.playerPhotoURI]})}),l.jsx("div",{className:"_2bz5 _2bz6",children:v})]}),l.jsx("div",{className:"_2bz7",children:a.text}),l.jsx("div",{className:"xkzkwiv xw7yly9 xktsk01 x1yztbdb x1d52u69",children:g?l.jsx("div",{className:"x78zum5 xl56j7k",children:l.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})}):l.jsx(c("InstantGamesButton.react"),{icon:y?j("1366830"):null,isDisabled:k,onClick:f,title:(e=a.buttonTitle)!=null?e:y?i._("__JHASH__sK3LvkVctPO__JHASH__"):i._("__JHASH__9ecnOBn9Wji__JHASH__"),xstyle:y?o.playWithMessagesStyle:null})}),y&&a.hideNoMessagingOption!==!0?l.jsx("div",{className:"xkzkwiv xw7yly9 xktsk01 x1yztbdb x1d52u69",children:k?l.jsx("div",{className:"x78zum5 xl56j7k",children:l.jsx(c("CometProgressRingIndeterminate.react"),{color:"blue",size:24})}):l.jsx(c("InstantGamesButton.react"),{isComet:!0,isDisabled:g,isSecondary:!0,onClick:t,title:(w=a.buttonTitle)!=null?w:i._("__JHASH__25PuGKY1WlB__JHASH__")})}):null,b&&l.jsx("div",{className:"xkzkwiv xw7yly9 xktsk01 x1yztbdb x1d52u69",children:l.jsx(c("InstantGamesButton.react"),{isComet:!0,isDisabled:g,isSecondary:!0,onClick:u,title:(v=a.buttonTitle)!=null?v:i._("__JHASH__r5LKcplu4QD__JHASH__")})}),x&&l.jsxs("div",{children:[l.jsx("hr",{className:"x1d52u69 xktsk01 x7r5mf7 xahult9"}),l.jsx("div",{className:"x78zum5 x1q0g3np x1qughib x1d52u69 xktsk01 x7r5mf7 xahult9",children:l.jsx("div",{className:"x78zum5 x1l7klhg x1q0g3np x1nhvcw1",children:l.jsx(c("CometCheckbox.react"),{checked:s,label:i._("__JHASH__Nw1x6LZ35eq__JHASH__",[i._param("name",a.contextName)]),name:"checkbox123123",onChange:r,value:s})})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesCustomUpdatePostCommentDialog.react",["ClientIDs","FBLogger","GamesQuicksilverError","InstantGamesCustomUpdateCommentDialogContent.react","InstantGamesCustomUpdatePostCommentDialogCreateCustomUpdateMutation.graphql","InstantGamesModal.react","RelayAPIConfig","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useEffect,l=e.useState,m="application/base64",n=h!==void 0?h:h=b("InstantGamesCustomUpdatePostCommentDialogCreateCustomUpdateMutation.graphql");function a(a){var b=l(null),e=b[0],f=b[1];b=l(null);var g=b[0],h=b[1];b=a.props;var o=b.dialogRequest,p=b.onClose,q=j(function(a){p({data:a,type:"REJECT"})},[p]),r=j(function(a){p({data:a,type:"RESOLVE"})},[p]);b=function(){return r()};var s=d("RelayHooks").useMutation(n),t=s[0];s=s[1];k(function(){var b,e=t({onCompleted:function(a){a.customUpdateMutationResult.customUpdate==null?(q(new(c("GamesQuicksilverError"))("Operation cannot be performed").setCode("INVALID_PARAM")),c("FBLogger")("instant_games").warn("Failed to create custom update in custom update post comment dialog")):f(a.customUpdateMutationResult.customUpdate)},onError:function(a){return h(a)},variables:{input:{actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),context_token_id:(b=a.props.contextTokenID)!=null?b:void 0,cta:void 0,data:o.data.custom_update_data.data,extra:void 0,game_id:a.props.appID,image:o.data.custom_update_data.image,image_file_content_type:m,session_id:a.props.sessionID,text:o.data.custom_update_data.text}}});return function(){return e.dispose()}},[t,o.data.custom_update_data.data,o.data.custom_update_data.image,o.data.custom_update_data.text,a.props.appID,a.props.contextTokenID,a.props.sessionID,q]);if(s)return i.jsx("div",{});g&&(q(new(c("GamesQuicksilverError"))("Client cannot perform this operation").setCode("INVALID_OPERATION")),c("FBLogger")("instant_games").warn("Failed to create custom update in custom update post comment dialog, %s",g.message));return e!=null?i.jsx(c("InstantGamesModal.react"),{onDismiss:b,children:i.jsx(c("InstantGamesCustomUpdateCommentDialogContent.react"),{customUpdate:e,reject:q,resolve:r})}):i.jsx("div",{})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesCustomUpdateCommentDialogComposer.react",["fbt","ClientIDs","CometImage.react","EditorState","FBLogger","GamesCommentInputTextBox.react","GamesMobileCommentInputTextBox.react","GamesQuicksilverError","InstantGamesButton.react","InstantGamesCustomUpdateCommentDialogComposerCreateCommentMutation.graphql","InstantGamesCustomUpdateCommentDialogComposer_image.graphql","InstantGamesUpdateCommentFalcoEvent","RelayAPIConfig","RelayHooks","getMentionsInputDecorator","react","stateToMarkdown","useIsCometOnMobile.hybrid"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.useEffect,m=e.useState,n=i!==void 0?i:i=b("InstantGamesCustomUpdateCommentDialogComposer_image.graphql"),o=j!==void 0?j:j=b("InstantGamesCustomUpdateCommentDialogComposerCreateCommentMutation.graphql"),p={activityText:{alignItems:"x6s0dn4",alignSelf:"xamitd3",backgroundColor:"x14hiurz",borderTopStartRadius:"xyi19xy",borderTopEndRadius:"x1ccrb07",borderBottomEndRadius:"xtf3nb5",borderBottomStartRadius:"x1pc53ja",bottom:"x10zg6f5",color:"x1vprtnf",display:"x78zum5",fill:"xe3v8dz",fillOpacity:"x1pha6kb",fontSize:"x1fn5q3",justifyContent:"xl56j7k",maxWidth:"x14r61f",opacity:"x1ks1olk",paddingTop:"x1iorvi4",paddingEnd:"xsyo7zv",paddingBottom:"xjkvuk6",paddingStart:"x16hj40l",position:"x10l6tqk",textAlign:"x2b8uid",verticalAlign:"x1wo2wf3",$$css:!0},commentButton:{borderTopStartRadius:"xhk9q7s",borderTopEndRadius:"x1otrzb0",borderBottomEndRadius:"x1i1ezom",borderBottomStartRadius:"x1o6z2jb",fontSize:"x6prxxf",fontWeight:"x117nqv4",$$css:!0},imageContainer:{alignItems:"x6s0dn4",alignSelf:"xamitd3",color:"x14ctfv",display:"x78zum5",flexDirection:"xdt5ytf",justifyContent:"xl56j7k",position:"x1n2onr6",textAlign:"x2b8uid",$$css:!0},placeHolder:{borderTop:"x76ihet",borderEnd:"xwmqs3e",borderBottom:"x112ta8",borderStart:"xxxdfa6",fontSize:"x1pg5gke",textAlign:"x1yc453h",width:"xh8yej3",$$css:!0},previewImage:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",marginTop:"x1xmf6yo",marginEnd:"x11i5rnm",marginBottom:"x1e56ztr",marginStart:"x1mh8g0r",width:"xh8yej3",$$css:!0},root:{marginTop:"x1xmf6yo",$$css:!0}};function a(a){var b=c("useIsCometOnMobile.hybrid")();l(function(){c("InstantGamesUpdateCommentFalcoEvent").log(function(){return{event:"impression",update_comment_surface:"post_comment_dialog",update_id:a.customUpdateID}})},[a.customUpdateID]);var e=m(!1),f=e[0],g=e[1];e=d("RelayHooks").useFragment(n,a.image);var i=m(""),j=i[0];i=i[1];var q=m(c("EditorState").createEmpty(c("getMentionsInputDecorator")())),r=q[0],s=q[1],t=function(a){s(a)};q=function(a){a.preventDefault(),a.stopPropagation()};q=k.jsx("div",{children:k.jsx(c("GamesCommentInputTextBox.react"),{commentEditorState:r,onEditComment:function(a){return t(a)},onNoShiftEnterComment:q,position:"below"})});b&&(q=k.jsx("div",{className:"x76ihet xwmqs3e x112ta8 xxxdfa6 x1pg5gke x1yc453h xh8yej3",children:k.jsx(c("GamesMobileCommentInputTextBox.react"),{input:j,onInputChange:i})}));i=d("RelayHooks").useMutation(o);var u=i[0];i=i[1];var v=function(){c("InstantGamesUpdateCommentFalcoEvent").log(function(){return{event:"post_comment",update_comment_surface:"post_comment_dialog",update_id:a.customUpdateID}});var e=b?j:c("stateToMarkdown")(r.getCurrentContent(),!1);u({onCompleted:function(){g(!1),a.resolve()},onError:function(b){g(!1),a.reject(new(c("GamesQuicksilverError"))("Client cannot perform this operation").setCode("INVALID_OPERATION")),c("FBLogger")("instant_games").warn("Comment creation action failed: %s",b.message)},variables:{input:{actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),comment_body:e,custom_update_id:a.customUpdateID}}})};i&&f==!1&&g(!0);i=k.jsxs("div",{className:"x6s0dn4 xamitd3 x14ctfv x78zum5 xdt5ytf xl56j7k x1n2onr6 x2b8uid",children:[e.uri!=null?k.jsx(c("CometImage.react"),{src:e.uri,xstyle:p.previewImage}):null,a.activityText!=null?k.jsx("div",{className:"x6s0dn4 xamitd3 x14hiurz xyi19xy x1ccrb07 xtf3nb5 x1pc53ja x10zg6f5 x1vprtnf x78zum5 xe3v8dz x1pha6kb x1fn5q3 xl56j7k x14r61f x1ks1olk x1iorvi4 xsyo7zv xjkvuk6 x16hj40l x10l6tqk x2b8uid x1wo2wf3",children:a.activityText}):null]});e=k.jsx("div",{className:"xhk9q7s x1otrzb0 x1i1ezom x1o6z2jb x6prxxf x117nqv4",children:k.jsx(c("InstantGamesButton.react"),{isDisabled:f,onClick:v,title:h._("u8bc4u8bba")})});return k.jsxs("div",{className:"x1xmf6yo",children:[q,i,e]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesCustomUpdateCommentDialogContent.react",["fbt","ix","CometImage.react","FBLogger","GamesQuicksilverError","InstantGamesCustomUpdateCommentDialogComposer.react","InstantGamesCustomUpdateCommentDialogContent_customUpdate.graphql","RelayHooks","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l={disclaimer:{display:"x78zum5",flexDirection:"x1q0g3np",marginTop:"x1gslohp",marginEnd:"xw3qccf",marginBottom:"x12nagc",marginStart:"xsgj6o6",$$css:!0},disclaimerText:{color:"x1rv0eb3",fontSize:"x1pg5gke",textAlign:"x1yc453h",$$css:!0},divider:{color:"x1p6odiv",display:"x78zum5",marginTop:"xr9ek0c",marginEnd:"xfs2ol5",marginBottom:"xjpr12u",marginStart:"x12mruv9",$$css:!0},infoIcon:{marginTop:"xdj266r",marginEnd:"xw3qccf",marginBottom:"xat24cr",marginStart:"xsgj6o6",$$css:!0},root:{display:"x78zum5",flexDirection:"xdt5ytf",marginTop:"xdj266r",marginEnd:"xktsk01",marginBottom:"xod5an3",marginStart:"x1d52u69",$$css:!0},subTitle:{color:"x1rv0eb3",display:"x78zum5",fontSize:"x1nxh6w3",justifyContent:"x1nhvcw1",marginTop:"x14vqqas",marginEnd:"x1w0mnb",marginBottom:"x1e56ztr",marginStart:"x1mnrxsn",textAlign:"x1yc453h",$$css:!0},title:{alignItems:"x6s0dn4",color:"x1p6odiv",display:"x78zum5",fontSize:"x1jchvi3",fontWeight:"x117nqv4",height:"x1qx5ct2",justifyContent:"xl56j7k",$$css:!0}},m=j!==void 0?j:j=b("InstantGamesCustomUpdateCommentDialogContent_customUpdate.graphql");function a(a){var b=d("RelayHooks").useFragment(m,a.customUpdate),e=b.activityText,f=b.app,g=b.disclaimerText,j=b.id,n=b.image;b=b.subtitleText;(j==null||n==null||b==null||g==null)&&(a.reject(new(c("GamesQuicksilverError"))("Operation cannot be performed due to invalid param provided").setCode("INVALID_PARAM")),c("FBLogger")("instant_games").warn("Render InstantGamesCustomUpdatePostCommentDialogRequest failed because some parameters are missing: {id: %s, image: %s, post_comment_dialog_subtitle: %s, post_comment_dialog_disclaimer: %s}",j,n==null?void 0:n.toString(),b,g));f=f==null?void 0:f.name;f!=null&&e!=null?f=h._("{Name}uff1a{Activity text}",[h._param("Name",f),h._param("Activity text",e)]).toString():f=h._("{Activity text}",[h._param("Activity text",e)]).toString();e=k.jsx("div",{className:"x6s0dn4 x1p6odiv x78zum5 x1jchvi3 x117nqv4 x1qx5ct2 xl56j7k",children:h._("Share game update")});b=k.jsx("div",{className:"x1rv0eb3 x78zum5 x1nxh6w3 x1nhvcw1 x14vqqas x1w0mnb x1e56ztr x1mnrxsn x1yc453h",children:b});g=k.jsxs("div",{className:"x78zum5 x1q0g3np x1gslohp xw3qccf x12nagc xsgj6o6",children:[k.jsx(c("CometImage.react"),{src:i("1329812"),xstyle:l.infoIcon}),k.jsx("div",{className:"x1rv0eb3 x1pg5gke x1yc453h",children:g})]});if(j==null||n==null)throw c("unrecoverableViolation")("id and image cannot be null","instant_games");return k.jsxs("div",{className:"x78zum5 xdt5ytf xdj266r xktsk01 xod5an3 x1d52u69",children:[e,b,k.jsx("hr",{className:"x1p6odiv x78zum5 xr9ek0c xfs2ol5 xjpr12u x12mruv9"}),k.jsx(c("InstantGamesCustomUpdateCommentDialogComposer.react"),{activityText:f,customUpdateID:j,image:n,reject:a.reject,resolve:a.resolve}),g]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
GamesQuicksilverMessageSender",["GamesQuicksilverError"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){this.$1=null}var b=a.prototype;b.setSendMessageDelegate=function(a){this.$1=a};b.sendMessage=function(a,b){if(!this.$1)return;b={content:b,type:a};this.$1(b)};b.resolveGamePromise=function(a,b){this.sendMessage("resolvepromise",{data:b,promiseID:a})};b.rejectGamePromise=function(a,b){b=b?b.serialize():new(c("GamesQuicksilverError"))().serialize();this.sendMessage("rejectpromise",{data:b,promiseID:a})};return a}();g["default"]=a}),98);
-----
InstantGamesGenericDialogErrorBoundary.react",["CometErrorBoundary.react","GamesQuicksilverError","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useRef;function a(a){var b=a.children,d=a.onClose,e=i(!1);return h.jsx(c("CometErrorBoundary.react"),{fallback:function(a){e.current!==!0&&(e.current=!0,d({data:new(c("GamesQuicksilverError"))(a.message).setCode("UNKNOWN"),type:"REJECT"}));return h.jsx(h.Fragment,{})},children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextStorageSDKMessageHandler.react",["CometRelay","GamesQuicksilverError","InstantGamesContextPlayersFetcher","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=d("CometRelay").useRelayEnvironment(),e=function(b){if(!b.promiseID)return;var d=a.contextKey.getID();if(d==null){a.messageSender.rejectGamePromise(b.promiseID,new(c("GamesQuicksilverError"))("Cannot create a match in a solo context").setCode("INVALID_PARAM"));return}a.contextStorage.createMatch(d,b.name).then(function(c){a.messageSender.resolveGamePromise(b.promiseID,c)})["catch"](function(c){a.messageSender.rejectGamePromise(b.promiseID,c)})};a.messageHandlerRegistry.setMessageHandlerFor("contextmatchcreateasync","context-match-create-async",e);e=function(b){if(!b.promiseID)return;a.contextStorage.fetchMatches(b).then(function(c){a.messageSender.resolveGamePromise(b.promiseID,c)})["catch"](function(c){a.messageSender.rejectGamePromise(b.promiseID,c)})};a.messageHandlerRegistry.setMessageHandlerFor("contextmatchfetchasync","context-match-fetch-async",e);e=function(b){if(!b.promiseID)return;a.contextStorage.endMatch(b.contextID,b.matchID).then(function(c){a.messageSender.resolveGamePromise(b.promiseID,c)})["catch"](function(c){a.messageSender.rejectGamePromise(b.promiseID,c)})};a.messageHandlerRegistry.setMessageHandlerFor("contextmatchendasync","context-match-end-async",e);e=function(b){if(!b.promiseID)return;a.contextStorage.fetchData(b.contextID,b.matchID,b.keys).then(function(c){a.messageSender.resolveGamePromise(b.promiseID,c)})["catch"](function(c){a.messageSender.rejectGamePromise(b.promiseID,c)})};a.messageHandlerRegistry.setMessageHandlerFor("contextmatchdatafetchasync","context-match-data-fetch-async",e);e=function(b){if(!b.promiseID)return;a.contextStorage.saveData(b.contextID,b.matchID,b.data).then(function(c){a.messageSender.resolveGamePromise(b.promiseID,c)})["catch"](function(c){a.messageSender.rejectGamePromise(b.promiseID,c)})};a.messageHandlerRegistry.setMessageHandlerFor("contextmatchdatasaveasync","context-match-data-save-async",e);e=function(d){if(!d.promiseID)return;var e=a.contextKey.getID();if(e==null){a.messageSender.rejectGamePromise(d.promiseID,new(c("GamesQuicksilverError"))("Cannot get context players without a context").setCode("INVALID_OPERATION"));return}c("InstantGamesContextPlayersFetcher").fetchAsync(e,a.gameID,b).then(function(b){a.messageSender.resolveGamePromise(d.promiseID,b)})["catch"](function(b){a.messageSender.rejectGamePromise(d.promiseID,b)})};a.messageHandlerRegistry.setMessageHandlerFor("contextplayersfetchasync","context-players-fetch-async",e);e=function(b){if(!b.promiseID)return;a.contextStorage.incrementData(b.contextID,b.matchID,b.data,b.keys).then(function(c){a.messageSender.resolveGamePromise(b.promiseID,c)})["catch"](function(c){a.messageSender.rejectGamePromise(b.promiseID,c)})};a.messageHandlerRegistry.setMessageHandlerFor("contextmatchdataincasync","context-match-data-inc-async",e);return h.jsx(h.Fragment,{})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesGenericDialogWithEntryPointLoaderEXPERIMENTAL.react",["CometInstantGamesPlayerCustomEscHandlingContext","CometRelay","FBLogger","GamesQuicksilverError","InstantGamesGenericDialogContext","InstantGamesGenericDialogErrorBoundary.react","react","useCometRelayEntrypointContextualEnvironmentProvider","useInstantGamesGenericDialogWithEntryPointLogging","useLayoutEffect_SAFE_FOR_SSR","useRegisterInstantGamesMessageHandler"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext,k=b.useEffect,l=b.useState;function a(a){var b=a.addDynamicEntryPointParams,e=a.dialogType,f=a.entryPoint,g=a.entryPointParams,m=a.messageHandlerRegistry,n=a.messageSender;a=a.platformParams;var o=l(null),p=o[0],q=o[1];o=j(c("InstantGamesGenericDialogContext"));var r=o.setGenericDialogInternal;o=j(c("CometInstantGamesPlayerCustomEscHandlingContext"));var s=o.setCustomEscHandlerProvider;o=c("useCometRelayEntrypointContextualEnvironmentProvider")();o=d("CometRelay").useEntryPointLoader(o,f);f=o[0];var t=o[1],u=o[2];o=c("useInstantGamesGenericDialogWithEntryPointLogging")({appID:a.appID,dialogType:e});var v=o.logGenericDialogEvent,w=i(function(a){if(a.data.dialogRequest.request==="media_asset")return;if(a.data.dialogRequest.request!==e){q(null);return}q(a.data);a=b!=null?b(g,a):g;t(a);v({event:"load"})},[b,e,g,t,v]);c("useRegisterInstantGamesMessageHandler")({handler:w,messageHandlerRegistry:m,type:"showgenericdialogasync"});c("useLayoutEffect_SAFE_FOR_SSR")(function(){r(e,{open:w})},[e,r,w]);var x=i(function(a){if(p!=null)if(a.type==="RESOLVE"){var b;b=(b=a.data)!=null?b:{success:!0};n.resolveGamePromise(p.promiseID,b);v({event:"resolve"})}else a.type==="REJECT"?(n.rejectGamePromise(p.promiseID,a.data),v({error_code:a.data.getCode(),error_message:a.data.getMessage(),event:"reject"})):c("FBLogger")("instant-games").warn("unexpected onClose param: "+a.type);q(null);u()},[p,u,v,n]);k(function(){p==null?s(null):s({customEscHandler:function(){x({data:new(c("GamesQuicksilverError"))("Dialog closed").setCode("USER_INPUT"),type:"REJECT"})}})},[p,x,s]);o=i(function(){x({data:new(c("GamesQuicksilverError"))("The cloud game has a connection error.").setCode("INVALID_OPERATION"),type:"REJECT"})},[x]);c("useRegisterInstantGamesMessageHandler")({handler:o,messageHandlerRegistry:m,type:"cloudgamingconnectionerror"});return p==null?null:h.jsx(h.Fragment,{children:f!=null&&p.dialogRequest.request===e&&h.jsx(c("InstantGamesGenericDialogErrorBoundary.react"),{onClose:x,children:h.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:f,props:babelHelpers["extends"]({},a,{dialogRequest:p.dialogRequest,onClose:x})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesPassThroughAgent",["ClientIDs","CometRelay","GamesQuicksilverError","InstantGamesPassThroughAgent_PassThroughMutation.graphql","InstantGamesSessionManager","Promise","RelayAPIConfig"],(function(a,b,c,d,e,f,g){"use strict";var h,i=1e3,j=h!==void 0?h:h=b("InstantGamesPassThroughAgent_PassThroughMutation.graphql");function k(a){var b={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),game_id:a.gameID,request:a.request,sdk_version:a.sdkVersion,session_id:c("InstantGamesSessionManager").getSessionID()},e=new File([new Blob([a.data],{type:"text/plain"})],a.gameID);if(e.size-----
InstantGamesLiveVideoCommentViewHandlers",["GamesQuicksilverError"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){b===void 0&&(b="INVALID_OPERATION");a=new(c("GamesQuicksilverError"))(a.message);a.setCode(b);return a}function i(a,b){return function(c){var d=c.channelID,e=c.promiseID;c=c.state;if(e==null)return;try{d=a.create(d,c);b.resolveGamePromise(e,d)}catch(a){b.rejectGamePromise(e,h(a))}}}function j(a){return function(){a.destroy()}}function k(a,b){return function(c){c=c.promiseID;if(c==null)return;var d=a.getDisplayRect();b.resolveGamePromise(c,d)}}function l(a,b){return function(c){c=c.promiseID;if(c==null)return;var d=a.getOptions();b.resolveGamePromise(c,d)}}function m(a){return function(b){b=b.state;a.setOptions(b)}}function a(a,b,c){var d=i(c,b);a.setMessageHandlerFor("livevideocommentviewcreateasync","live-video-comment-view-create-async",d);d=j(c);a.setMessageHandlerFor("livevideocommentviewdestroy","live-video-comment-view-destroy",d);d=k(c,b);a.setMessageHandlerFor("livevideocommentviewgetdisplayrectasync","live-video-comment-view-get-display-rect-async",d);d=l(c,b);a.setMessageHandlerFor("livevideocommentviewgetstateasync","live-video-comment-view-get-state-async",d);b=m(c);a.setMessageHandlerFor("livevideocommentviewsetstate","live-video-comment-view-set-state",b)}g.liveVideoCommentViewCreateAsync=i;g.liveVideoCommentViewDestroy=j;g.liveVideoCommentViewGetDisplayRectAsync=k;g.liveVideoCommentViewGetStateAsync=l;g.liveVideoCommentViewSetState=m;g.registerLiveVideoCommentViewMessageHandlers=a}),98);
-----
InstantGamesAdsManager",["GamesQuicksilverError","InstantGamesAdUtils","InstantGamesFunnelLogger","InstantGamesMobileEndpointAdInstance","Promise"],(function(a,b,c,d,e,f,g){"use strict";var h=3;a=function(){function a(a,b,c,d){this.$3=a,this.$4=b,this.$1=[],this.$2=null,this.instantGamesFunnelLogger=null,this.$5=c,this.$6=d}var d=a.prototype;d.createAdInstance=function(a,d,e){var f=this.$1.filter(function(b){return b.placementType===a});if(f.length>=h)return b("Promise").reject(new(c("GamesQuicksilverError"))("Too many ad instances").setCode("ADS_TOO_MANY_INSTANCES"));f=new(c("InstantGamesMobileEndpointAdInstance"))(a,d,e);f.placementType==="banner_desktop"?this.$7(f):this.$1.push(f);return b("Promise").resolve(f.instanceID)};d.hideBannerAdInstance=function(){var a=this.$2;a&&(a.onAdClosed(),this.$7(null),this.$6(!1));this.$3();return b("Promise").resolve()};d.loadAdInstance=function(a){var d=this,e=this.$8(a);if(!e)return b("Promise").reject(new(c("GamesQuicksilverError"))("Invalid ad instance").setCode("INVALID_PARAM"));this.instantGamesFunnelLogger=new(c("InstantGamesFunnelLogger"))(c("InstantGamesAdUtils").getHostName(),{},"",e);return new(b("Promise"))(function(a,b){e.load(a,b);(a=d.instantGamesFunnelLogger)==null?void 0:a.sendDebugFunnelLog(101);d.$3()})["catch"](function(a){var b;d.$3();(b=d.instantGamesFunnelLogger)==null?void 0:b.sendDebugFunnelLoadErrorLog("Code: "+a.getCode()+". Failed to load ad. Message: "+((b=a.getMessage())!=null?b:"Message not provided"));throw a})};d.showAdInstance=function(a){var d,e=this,f=this.$8(a);(d=this.instantGamesFunnelLogger)==null?void 0:d.sendDebugFunnelLog(106);if(!f){(d=this.instantGamesFunnelLogger)==null?void 0:d.sendDebugFunnelShowFinishedLog(!1,"Code: INVALID_PARAM. Failed to load ad. Message: Invalid ad instance");return b("Promise").reject(new(c("GamesQuicksilverError"))("Invalid ad instance").setCode("INVALID_PARAM"))}if(!f.isLoaded()){(d=this.instantGamesFunnelLogger)==null?void 0:d.sendDebugFunnelShowFinishedLog(!1,"Code: ADS_NOT_LOADED. Failed to load ad. Message: Ad instance not loaded");return b("Promise").reject(new(c("GamesQuicksilverError"))("Ad instance not loaded").setCode("ADS_NOT_LOADED"))}return new(b("Promise"))(function(b,c){f.show(b),f.placementType==="banner_desktop"?e.$6(!0):e.$4(a)}).then(function(){if(f.placementType==="banner_desktop")return;e.$4(null);e.$9(f.instanceID);e.$3();if(f.placementType==="rewarded_video_desktop"&&!f.isRewardCompleted())throw new(c("GamesQuicksilverError"))("Ad not completed").setCode("USER_INPUT")})};d.getOutstandingAdInstances=function(){return this.$1.filter(function(a){return a.isLoadRequested()})};d.$8=function(a){var b=this.$1.filter(function(b){return b.instanceID===a});return b.length>0?b[0]:a===((b=this.$2)==null?void 0:b.instanceID)?this.$2:null};d.$9=function(a){this.$1=this.$1.filter(function(b){return b.instanceID!==a})};d.$7=function(a){this.$5(a),this.$2=a};return a}();g["default"]=a}),98);
-----
InstantGamesInAppPurchaseSDKMessageHandler.react",["ECPGamesUPLLogger","FullScreen","GamesQuicksilverError","InstantGamesGameState","InstantGamesGenericDialogContext","InstantGamesGenericDialogWithEntryPoint.react","InstantGamesIAP","InstantGamesInAppPurchaseDialog.entrypoint","InstantGamesInAppPurchaseDialogWithPerfOptimization.entrypoint","gkx","react","useLayoutEffect_SAFE_FOR_SSR","useRegisterInstantGamesMessageHandler"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext,k=b.useMemo,l=b.useState;function a(a){var b=j(c("InstantGamesGenericDialogContext")),e=b.getGenericDialog;b=l("");var f=b[0],g=b[1];c("useLayoutEffect_SAFE_FOR_SSR")(function(){f===""&&g(["upl",Date.now(),a.platformParams.sessionID].join("_"))},[f,a.platformParams.sessionID]);var m=k(function(){return new(c("ECPGamesUPLLogger"))({client_suppression_policy:[],logging_policy_product:""},d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,"ecp","comet",f)},[f]);b=i(function(b){var h;if(a.gameState!==d("InstantGamesGameState").PLAYING){a.messageSender.rejectGamePromise(b.data.promiseID,new(c("GamesQuicksilverError"))("Cannot call purchaseAsync before startGameAsync resolves").setCode("INVALID_OPERATION"));return}c("FullScreen").isFullScreen()&&c("FullScreen").disableFullScreen();m.logCheckoutInit();m.logUserClickEcpentryAtomic();(h=e("in_app_purchase"))==null?void 0:h.open({data:{dialogRequest:{data:{developerPayload:b.data.data.developerPayload,productID:b.data.data.productID,uplSessionID:f},request:"in_app_purchase",sdkVersion:""},promiseID:b.data.promiseID},type:"showgenericdialogasync"});g("")},[e,a.gameState,a.messageSender,m,f]);c("useRegisterInstantGamesMessageHandler")({handler:b,messageHandlerRegistry:a.messageHandlerRegistry,type:"paymentspurchaseasync"});b=function(){return h.jsx("span",{})};return c("gkx")("1574")?h.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(b,c){return c.type!=="showgenericdialogasync"||c.data.dialogRequest.request!=="in_app_purchase"?b:babelHelpers["extends"]({},b,{developerPayload:c.data.dialogRequest.data.developerPayload,fetchProductConfigInput:{product_id:d("InstantGamesIAP").INSTANT_GAMES_PAYMENT_PRODUCT_ID,receiver_id:a.platformParams.appID,session_id:c.data.dialogRequest.data.uplSessionID},productID:c.data.dialogRequest.data.productID})},dialogType:"in_app_purchase",entryPoint:c("InstantGamesInAppPurchaseDialogWithPerfOptimization.entrypoint"),entryPointParams:{appID:a.platformParams.appID,developerPayload:"",fetchProductConfigInput:{product_id:"",receiver_id:"",session_id:""},productID:""},fallback:b,messageHandlerRegistry:a.messageHandlerRegistry,messageSender:a.messageSender,platformParams:a.platformParams}):h.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"in_app_purchase",entryPoint:c("InstantGamesInAppPurchaseDialog.entrypoint"),entryPointParams:{},fallback:b,messageHandlerRegistry:a.messageHandlerRegistry,messageSender:a.messageSender,platformParams:a.platformParams})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesSendPassThroughSDKMessageHandler.react",["CometRelay","GamesQuicksilverError","InstantGamesPassThroughAgent","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=d("CometRelay").useRelayEnvironment(),e=function(d){if(!d.promiseID)return;var e=d.data,f=d.request,g=d.sdkVersion;if(!e||!f||!g){a.messageSender.rejectGamePromise(d.promiseID,new(c("GamesQuicksilverError"))("Missing required parameter").setCode("INVALID_PARAM"));return}if(a.apiRestrictor.shouldRestrictPassthroughRequestType(f)){a.messageSender.rejectGamePromise(d.promiseID,new(c("GamesQuicksilverError"))("The environment does not support this operation").setCode("INVALID_OPERATION"));return}c("InstantGamesPassThroughAgent").sendRequest({data:e,gameID:a.gameID,request:f,sdkVersion:g},b).then(function(b){a.messageSender.resolveGamePromise(d.promiseID,b)})["catch"](function(b){a.messageSender.rejectGamePromise(d.promiseID,b)})};a.messageHandlerRegistry.setMessageHandlerFor("sendpassthroughasync","send-pass-through-async",e);return h.jsx(h.Fragment,{})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesSignedPlayerInfoFetcher",["CometRelay","GamesQuicksilverError","InstantGamesPlayerMutations","Promise","unrecoverableViolation","uuid"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(){}var e=a.prototype;e.fetchAsync=function(a,e,f){return new(b("Promise"))(function(b,g){d("CometRelay").commitMutation(f,{mutation:d("InstantGamesPlayerMutations").GetSignedPlayerInfoMutation,onCompleted:function(a){return b(a)},onError:function(a){return g(a)},variables:{input:{client_mutation_id:c("uuid")(),game_id:a,request_payload:e}}})}).then(function(a){var b;b=a==null?void 0:(b=a.signedPlayerInfo)==null?void 0:b.playerID;a=a==null?void 0:(a=a.signedPlayerInfo)==null?void 0:a.signedRequest;if(b==null||a==null)throw c("unrecoverableViolation")("Failed to parse player from query result","instant_games");return{playerID:b,signature:a}})["catch"](function(a){a=new(c("GamesQuicksilverError"))().setMessage("Failed to retrieve signed player information."+a).setCode("NETWORK_FAILURE");throw a})};return a}();e=new a();g["default"]=e}),98);
-----
InstantGamesMobileEndpointAdInstance",["ANWebAdUtils","GamesQuicksilverError","InstantGamesAdTemplate","unrecoverableViolation","uuid"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,d){this.placementType=a;this.placementID=b;this.adExperienceType=d;this.instanceID=c("uuid")();switch(a){case"banner_desktop":this.format="banner";this.template=c("InstantGamesAdTemplate").Banner;break;case"interstitial_desktop":this.format="interstitial";this.template=c("InstantGamesAdTemplate").Interstitial;break;case"rewarded_video_desktop":this.format="rewarded_video";this.template=c("InstantGamesAdTemplate").RewardedVideo;break;default:throw c("unrecoverableViolation")(a+" is an unsupported ad placement type","instant_games")}this.$1=!1;this.$2=!1;this.$3=!1;this.$4=!1;this.$5=0}var b=a.prototype;b.isLoadRequested=function(){return this.$1};b.isLoaded=function(){return this.$3};b.isRewardCompleted=function(){return this.$4};b.load=function(a,b){if(this.$2){b(new(c("GamesQuicksilverError"))("Load in progress").setCode("INVALID_OPERATION"));return}if(this.$3){a();return}if(this.$5>Date.now()){b(new(c("GamesQuicksilverError"))().setCode("ADS_FREQUENT_LOAD"));return}this.$1=!0;this.$2=!0;this.$3=!1;this.$7=a;this.$8=b};b.show=function(a){if(!this.$3)return;this.$9=a;this.$6&&this.$6()};b.noFill=function(a,b){this.$1=!1;this.$2=!1;this.$3=!1;var d=this.$8;d&&d(new(c("GamesQuicksilverError"))(a).setCode("ADS_NO_FILL"));if(b!=null){d=parseInt(b,10);a=d>0?d*1e3:0;this.$5=Date.now()+a}};b.onAdLoaded=function(){this.$7&&(this.$7(),this.$2=!1,this.$3=!0)};b.setOnAdShown=function(a){this.$6=a};b.onAdClosed=function(){this.$9&&this.$9()};b.setRewardCompleted=function(){this.$4=!0};b.getAdLoggingInfo=function(){return{AD_EXPERIENCE_TYPE:this.adExperienceType,BUNDLE:"com.facebook.Wilde",IDFA_FLAG:"0",NUM_ADS_REQUESTED:"1",OS:d("ANWebAdUtils").getUserOS(this,!0),OSVERS:"12.4",PLACEMENT_ID:this.placementID,PLACEMENT_TYPE:this.format,SDK:"ios",SDK_CAPABILITY:"[1,5,7,8,9,11,15,16,17]",SDK_VERSION:"5.7.0",TEMPLATE_ID:this.template,funnel_id:this.instanceID,funnel_placement_id:this.placementID,funnel_placement_type:this.format}};return a}();g["default"]=a}),98);
-----
InstantGamesContextualPlayerPresentation.react",["CanvasToInstantGamesSilentMigrationNotice.entrypoint","CloudGameFriendFinderInviteDialogSDKMessageHandler.react","CloudGameRequestsDialog.entrypoint","CloudGamingConstants","CloudGamingE2EGenericDialog.entrypoint","CloudGamingMessageHandlerRegistry","CloudGamingMessageHandlingSubscriptions","CloudGamingMultiTouchOverlayTutorialDialogSDKMessageHandler.react","CloudGamingPlayerContext","CometInstantGamesPlayerGlimmer.react","CometPlaceholder.react","CometRelay","CurrentLocale","FBLogger","GamesLeavingSoonDialog.react","GamesQuicksilverContextKey","GamesQuicksilverError","GamesQuicksilverFunnelLogger","GamingWebDimensionHelper","InstantGameContextType","InstantGameCrossPlayMigrationDialog.entrypoint","InstantGameGamePlayerContext","InstantGamesAdsManagerSDKMessageHandler","InstantGamesApiRestrictor","InstantGamesAuthorizeDialogSDKMessageHandler.react","InstantGamesChallengeToast.react","InstantGamesContextCreatorSDKMessageHandler.react","InstantGamesContextSelectorSDKMessageHandler.react","InstantGamesContextStorageSDKMessageHandler.react","InstantGamesContextSwitcherSDKMessageHandler.react","InstantGamesContextualPlayerPresentation_contextToken.graphql","InstantGamesContextualPlayerPresentation_gameInfo.graphql","InstantGamesContextualPlayerPresentation_userScope.graphql","InstantGamesCreateGamingSquadDialog.entrypoint","InstantGamesCustomInviteGenericDialog.entrypoint","InstantGamesCustomLinkShareDialog.entrypoint","InstantGamesCustomUpdatePostCommentDialog.entrypoint","InstantGamesEmbeddedVideoHandlers","InstantGamesEventHandler.react","InstantGamesFollowPageDialog.entrypoint","InstantGamesFunnelTag","InstantGamesGameShareDialogSDKMessageHandler.react","InstantGamesGameState","InstantGamesGameSwitchDialogSDKMessageHandler.react","InstantGamesGenericContextSoloSwitchDialog.entrypoint","InstantGamesGenericContextSwitchDialog.entrypoint","InstantGamesGenericDialogWithEntryPoint.react","InstantGamesGenericMatchMakingDialog.entrypoint","InstantGamesHeartbeatLoggingIntervalConfig","InstantGamesInAppPurchaseSDKMessageHandler.react","InstantGamesInAppPurchaseSubscriptionSDKMessageHandler.react","InstantGamesJoinGamingSquadDialog.entrypoint","InstantGamesJoinGroupDialog.entrypoint","InstantGamesLeaveGamingSquadDialog.entrypoint","InstantGamesLiveVideoCommentViewHandlers","InstantGamesMatchPlayerDialogSDKMessageHandler.react","InstantGamesMessageHandlerRegistry","InstantGamesMessageListener","InstantGamesMessagingConsentDialogRoot.entrypoint","InstantGamesNTViewType","InstantGamesOBANotice.entrypoint","InstantGamesOpenExternalLinkDialog.entrypoint","InstantGamesPassThroughRequestType","InstantGamesPaymentsSDKMessageHandler.react","InstantGamesPinShortcutDialogSDKMessageHandler.react","InstantGamesPlayerStateSDKMessageHandler.react","InstantGamesPlayerUtils","InstantGamesPostUserAchievementDialog.entrypoint","InstantGamesSDKMessages","InstantGamesSendPassThroughSDKMessageHandler.react","InstantGamesSessionManager","InstantGamesSubscribeBotAsyncDialogSDKMessageHandler.react","InstantGamesTournamentCreateDialog.entrypoint","InstantGamesTournamentShareDialog.entrypoint","InstantGamesTournamentStatusDialog.react","InstantGamesVideoPlayerDialog.entrypoint","InstantGamesViewStreamersDialog.entrypoint","InstantGamesWebPlayTypedLogger","InteractivePluginContext","Visibility","WebPixelRatio","castToEnum","deferredLoadComponent","getJSEnumSafe","react","requireDeferred","useContextKey","useHandleVisibilityChange","useInteractivePluginSDKMessageHandler.react","useManagePlayerNameAndPhoto","useMarkInstantGamePlayed","usePayloadHandlerRef","usePlayerCleanup","useRejectUnsupportedGenericDialogRequests","useStable"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=d("react"),l=d("react").useContext,m=c("deferredLoadComponent")(c("requireDeferred")("InstantGamesLoadingScreen.react").__setRef("InstantGamesContextualPlayerPresentation.react")),n=function(b){babelHelpers.inheritsLoose(a,b);function a(a){var e;e=b.call(this,a)||this;e.$23=function(){var a=e.props.contextKey.getSDKContextInfo();d("GamesQuicksilverFunnelLogger").logAction(e.props.analyticsInfo.getFunnelName(),"game_loading_view_completed");var b=e.props.isTosed||e.props.gameInfo.isPreviouslyTosed===!0;e.props.messageSender.sendMessage("gamestart",!b&&e.props.gameInfo.canDeferTos===!0?{}:babelHelpers["extends"]({},a,{customUpdateID:e.props.customUpdateID,entryPoint:e.props.entryPoint,entryPointData:e.props.entryPointData,locale:c("CurrentLocale").get(),playerName:e.props.playerName,playerPhoto:e.props.playerPhoto}));e.props.onGameStateChange(d("InstantGamesGameState").PLAYING);e.props.markInstantGamePlayed();d("GamesQuicksilverFunnelLogger").logGamePlayStart(e.props.analyticsInfo.getFunnelName(),"start_screen",e.props.gameInfo.gameID||"",e.props.contextType,e.props.contextSourceID);d("GamesQuicksilverFunnelLogger").logAction(e.props.analyticsInfo.getFunnelName(),"game_active");new(c("InstantGamesWebPlayTypedLogger"))().setEvent("game_active").setIgAppID(e.props.gameInfo.gameID).setRawContextSourceID(e.props.contextSourceID).setContextTokenID(e.props.contextToken?e.props.contextToken.contextID:null).setContextType(e.props.contextType).setSource(e.props.entryPoint).setIsMobile(d("InstantGamesPlayerUtils").isCometOnMobile()).log();e.$16(!0);e.props.analyticsInfo.getFunnelTimeout()>0&&d("GamesQuicksilverFunnelLogger").setFunnelTimeout(e.props.analyticsInfo.getFunnelName(),e.props.analyticsInfo.getFunnelTimeout());(b=e.props.interactivePluginLogger)==null?void 0:b.log("plugin_instance_started",e.props.gameInfo.gameID)};e.state=e.$7(a);e.$4=((a=e.props.userScope)==null?void 0:a.privacyNotice)==null;e.$5=c("InstantGamesHeartbeatLoggingIntervalConfig").heartbeat_interval;e.$8();return e}var e=a.prototype;e.UNSAFE_componentWillMount=function(){this.$9()};e.componentDidMount=function(){var a=this;this.$3=this.$10(this.props);!this.props.isTosed&&!this.props.gameInfo.isCloudGame&&this.$3.lock();this.props.bufferedMessageDelegate(function(b){return a.$11(b)});this.props.browserUnloadListener.registerCallback(function(){a.$12()});this.props.contextChangePromiseID?this.$13(this.props.contextChangePromiseID):this.$14()&&this.$15();this.props.gameHasStarted&&this.$16(!1)};e.UNSAFE_componentWillReceiveProps=function(a){var b,c=this;if((a==null?void 0:(b=a.contextToken)==null?void 0:b.contextID)===((b=this.props)==null?void 0:(b=b.contextToken)==null?void 0:b.contextID))return;this.props.playerState.savePlayerStateAsync();this.setState(this.$7(a),function(){c.props.source!==a.source&&(c.$3.close(),c.$3=c.$10(a)),c.$17(),c.$9(),c.props.contextChangePromiseID?c.$13(c.props.contextChangePromiseID):a.gameHasStarted&&c.$15()})};e.componentDidUpdate=function(a,b){a.focusIframe()};e.componentWillUnmount=function(){this.$12()};e.$12=function(){this.$17(),this.$3.close(),window.clearInterval(this.$6)};e.$7=function(a){return{}};e.$18=function(a,b){var e=c("castToEnum")(a,c("InstantGamesSDKMessages"),null),f=c("castToEnum")(a,d("CloudGamingConstants").CloudGamingMessageTypes,null);if(this.props.igMessageHandlerRegistry!=null&&e!=null&&this.props.igMessageHandlerRegistry.hasMessageHandlerFor(e)){this.props.igMessageHandlerRegistry.handleMessage(e,b,this.props.gameState,this.props.isTosed||((e=this.props.gameInfo)==null?void 0:e.isPreviouslyTosed)===!0)}else this.props.cloudMessageHandlerRegistry!=null&&f!=null&&this.props.cloudMessageHandlerRegistry.hasMessageHandlerFor(f)?this.props.cloudMessageHandlerRegistry.handleMessage(f,this.props.gameState):c("FBLogger")("instant_games").warn("will not handle API call:"+a)};e.$10=function(a){var b=this,d=function(a,c){b.$18(a,c)};a=new(c("InstantGamesMessageListener"))(a.source,a.overrideGameURL||a.gameInfo.gameURI,d);a.init();return a};e.$9=function(){if(c("InstantGamesSessionManager").isCurrentSession())return;var a=d("GamingWebDimensionHelper").getScreenDimensionForLogging(),b=a.height;a=a.width;d("GamesQuicksilverFunnelLogger").addTag(this.props.analyticsInfo.getFunnelName(),d("InstantGamesFunnelTag").GAME_SESSION_ID,this.props.contextSessionID);d("GamesQuicksilverFunnelLogger").addTag(this.props.analyticsInfo.getFunnelName(),d("InstantGamesFunnelTag").SCREEN_HEIGHT_OVERRIDE,b==null?void 0:b.toString());d("GamesQuicksilverFunnelLogger").addTag(this.props.analyticsInfo.getFunnelName(),d("InstantGamesFunnelTag").SCREEN_WIDTH_OVERRIDE,a==null?void 0:a.toString());c("InstantGamesSessionManager").startSession(this.props.gameInfo.gameID||"",this.props.contextSessionID,this.props.contextKey.getID(),this.props.entryPoint,this.props.entryPointData,this.props.environment,this.context.tournamentPostID)};e.$17=function(){c("InstantGamesSessionManager").isCurrentSession()&&c("InstantGamesSessionManager").endSession(this.props.environment)};e.$8=function(){var a=this,b=function(b){a.$19(b)};this.props.igMessageHandlerRegistry.setMessageHandlerFor("onbeginload","on-begin-load",b);b=function(b){a.$20(b)};this.props.igMessageHandlerRegistry.setMessageHandlerFor("onprogressload","on-progress-load",b);b=function(b){a.$21()};this.props.igMessageHandlerRegistry.setMessageHandlerFor("ongameready","on-game-ready",b);b=function(b){return a.$22(b)};this.props.igMessageHandlerRegistry.setMessageHandlerFor("onendgame","on-end-game",b);b=function(){d("InstantGamesEventHandler.react").inform("instant_games_quit")};this.props.igMessageHandlerRegistry.setMessageHandlerFor("quit","quit",b);b=function(a){c("InstantGamesSessionManager").setData(a)};this.props.igMessageHandlerRegistry.setMessageHandlerFor("setsessiondata","set-session-data",b);b=function(b){var d=b.contextSourceID,e=b.promiseID;b=c("getJSEnumSafe")(c("InstantGameContextType"),b.contextType);if(!e)return;if(!b||b!=="SOLO"&&!d){a.props.messageSender.rejectGamePromise(e,new(c("GamesQuicksilverError"))("Missing required parameter").setCode("INVALID_PARAM"));return}return a.props.onSwitchContext({id:d,promiseID:e,type:(d=b)!=null?d:"GENERIC"})};this.props.igMessageHandlerRegistry.setMessageHandlerFor("changecontextasync","change-context-async",b);b=function(){a.context.setIsScreenshotProviderRegistered(!0),d("GamesQuicksilverFunnelLogger").logAction(a.props.analyticsInfo.getFunnelName(),"register_screenshot_provider")};this.props.igMessageHandlerRegistry.setMessageHandlerFor("registerscreenshotprovider","register-screenshot-provider",b);this.props.cloudMessageSubscriptions.registerCloudMessageHandlers();this.props.adsMessageHandler.registerSDKMessageHandlers();d("InstantGamesEmbeddedVideoHandlers").registerVideoPlayerSDKMessageHandlers(this.props.igMessageHandlerRegistry,this.props.messageSender,this.props.videoManager);d("InstantGamesLiveVideoCommentViewHandlers").registerLiveVideoCommentViewMessageHandlers(this.props.igMessageHandlerRegistry,this.props.messageSender,this.props.liveVideoCommentViewManager)};e.$11=function(a){for(var a=a,b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;var e=d.content;d=d.type;this.$18(d,e)}};e.$19=function(a){var b=window.performance;this.$1=b.now();this.$2=a;this.props.onGameStateChange(d("InstantGamesGameState").LOADING);this.props.onProgressChange(0);d("GamesQuicksilverFunnelLogger").logAction(this.props.analyticsInfo.getFunnelName(),"loading_started")};e.$20=function(a){this.$2!=null&&this.props.onProgressChange(Math.round(a/this.$2*100))};e.$21=function(){var a=window.performance,b=this.$1;if(b!=null)var a=a.now()-b;d("GamesQuicksilverFunnelLogger").logAction(this.props.analyticsInfo.getFunnelName(),"game_ready");this.props.onGameStateChange(d("InstantGamesGameState").READY);this.props.onProgressChange(100)};e.$22=function(a){var b=this;if(!this.props.gameHasStarted){this.props.messageSender.sendMessage("restart",{error:{code:"INVALID_OPERATION",message:"Cannot post an update before the game has even started."}});return}this.props.payloadHandlerRef.current.handle(a).then(function(){return b.$24()})["catch"](function(a){return b.$25(a)})};e.$24=function(){this.props.playerState.savePlayerStateAsync(),d("GamesQuicksilverFunnelLogger").logGamePlayEnd(this.props.analyticsInfo.getFunnelName(),this.props.gameInfo.gameID||"",this.props.contextType,this.props.contextSourceID),this.$15()};e.$25=function(a){this.props.messageSender.sendMessage("restart",{error:{message:a.message||"Failure while processing end game payload"}})};e.$15=function(){this.props.messageSender.sendMessage("restart",babelHelpers["extends"]({},this.props.contextKey.getSDKContextInfo(),{updatePayload:null})),this.props.gameHasStarted&&this.props.onGameStateChange(d("InstantGamesGameState").PLAYING),this.props.focusIframe(),d("GamesQuicksilverFunnelLogger").logGamePlayStart(this.props.analyticsInfo.getFunnelName(),"replay",this.props.gameInfo.gameID||"",this.props.contextType,this.props.contextSourceID)};e.$13=function(a){this.props.onGameStateChange(d("InstantGamesGameState").PLAYING),this.props.messageSender.resolveGamePromise(a,babelHelpers["extends"]({},this.props.contextKey.getSDKContextInfo())),this.props.onContextChangePromiseIDChange(null)};e.$14=function(){return this.props.gameHasStarted};e.$16=function(a){var b=this;a&&d("GamesQuicksilverFunnelLogger").logHeartbeat(this.props.analyticsInfo.getFunnelName(),this.props.gameInfo.gameID||"",this.$5||0);this.$5>0&&(window.clearInterval(this.$6),this.$6=window.setInterval(function(){c("Visibility").isHidden()||d("GamesQuicksilverFunnelLogger").logHeartbeat(b.props.analyticsInfo.getFunnelName(),b.props.gameInfo.gameID||"",b.$5||0)},this.$5*1e3))};e.render=function(){var a=this,b=this.props.gameInfo.gameID||"";return k.jsx("div",{children:k.jsxs(c("CometPlaceholder.react"),{fallback:k.jsx(c("CometInstantGamesPlayerGlimmer.react"),{}),children:[k.jsx(m,{contextKey:this.props.contextKey,entryPoint:this.props.entryPoint,funnelName:this.props.analyticsInfo.getFunnelName(),gameInfo:this.props.gameInfo,gameState:this.props.gameState,onDeferTos:function(){a.$3.unlock()},onPlayerNameChanged:this.props.setPlayerName,onPlayerPhotoChanged:this.props.setPlayerPhoto,onStart:this.$23,onTos:function(){a.$3.unlock(),a.props.onTos()},privacyUrl:this.props.privacyUrl,progress:this.props.progress,userScope:this.props.userScope}),k.jsx(c("InstantGamesAuthorizeDialogSDKMessageHandler.react"),{cloudMessageHandlerRegistry:this.props.cloudMessageHandlerRegistry,contextKey:this.props.contextKey,entryPoint:this.props.entryPoint,entryPointData:this.props.entryPointData,funnelName:this.props.analyticsInfo.getFunnelName(),gameID:b,gameInfo:this.props.gameInfo,gameState:this.props.gameState,isTosed:this.props.isTosed||this.props.gameInfo.isPreviouslyTosed===!0,messageHandlerRegistry:this.props.igMessageHandlerRegistry,messageSender:this.props.messageSender,onPlayerNameChanged:this.props.setPlayerName,onPlayerPhotoChanged:this.props.setPlayerPhoto,onStart:this.$23,onTos:function(){a.$3.unlock(),a.props.onTos()},playerID:this.props.playerID,playerName:this.props.playerName,playerPhoto:this.props.playerPhoto,privacyUrl:this.props.privacyUrl,progress:this.props.progress,userScope:this.props.userScope}),this.props.gameInfo.gameID!=null?k.jsx(c("InstantGamesContextStorageSDKMessageHandler.react"),{contextKey:this.props.contextKey,contextStorage:this.props.contextStorage,gameID:this.props.gameInfo.gameID,messageHandlerRegistry:this.props.igMessageHandlerRegistry,messageSender:this.props.messageSender}):null]})})};return a}(k.PureComponent);n.contextType=c("InstantGameGamePlayerContext");function a(a){var e,f,g,m,o,p=a.contextToken,q=a.gameInfo,r=a.userScope,s=babelHelpers.objectWithoutPropertiesLoose(a,["contextToken","gameInfo","userScope"]);a=d("CometRelay").useFragment(h!==void 0?h:h=b("InstantGamesContextualPlayerPresentation_contextToken.graphql"),p);var t=d("CometRelay").useFragment(i!==void 0?i:i=b("InstantGamesContextualPlayerPresentation_gameInfo.graphql"),q);p=d("CometRelay").useFragment(j!==void 0?j:j=b("InstantGamesContextualPlayerPresentation_userScope.graphql"),r);var u=c("useContextKey")({contextID:a==null?void 0:a.contextID,contextSize:a==null?void 0:a.contextSize,contextSourceID:s.contextSourceID,contextType:s.contextType});r=d("usePayloadHandlerRef").usePayloadHandlerRef({contextKey:u,gameIconURI:t.iconURI,gameID:(q=t.gameID)!=null?q:"",gameName:t.name});q=d("CometRelay").useRelayEnvironment();var v=(e=t.environment)==null?void 0:(e=e.apiDenyList)==null?void 0:e.map(function(a){return{clientMessage:c("getJSEnumSafe")(c("InstantGamesSDKMessages"),a.clientMessage),genericDialogType:c("getJSEnumSafe")(c("InstantGamesNTViewType"),a.genericDialogType),passthroughRequestType:c("getJSEnumSafe")(c("InstantGamesPassThroughRequestType"),a.passthroughRequestType)}}),w=c("useStable")(function(){return new(c("InstantGamesApiRestrictor"))(v,t.gameID,t.messageAllowList,t.dialogAllowList,t.passThroughAllowList)}),x=c("useStable")(function(){return new(c("InstantGamesMessageHandlerRegistry"))(t.gameID,s.messageSender,w,t.supportedAPIs,t.preGameStartSupportedAPIs)}),y=c("useStable")(function(){return new(c("CloudGamingMessageHandlerRegistry"))(t.gameID)});e=c("useStable")(function(){var a;return new(c("InstantGamesAdsManagerSDKMessageHandler"))(s.adsManager,(a=t.gameID)!=null?a:"",x,s.messageSender)});var z=l(c("CloudGamingPlayerContext")),A=z.micControlCallback,B=z.startMutedCallback;z=c("useStable")(function(){return new(c("CloudGamingMessageHandlingSubscriptions"))(y,s.onGameStateChange,B,A)});c("useHandleVisibilityChange")({analyticsInfo:s.analyticsInfo,gameID:(f=t.gameID)!=null?f:"",messageSender:s.messageSender});f=c("useManagePlayerNameAndPhoto")({contextTokenID:a==null?void 0:a.contextID,userScope:p});var C=f.playerName,D=f.playerPhoto,E=f.setPlayerName;f=f.setPlayerPhoto;var F=c("usePlayerCleanup")({analyticsInfo:s.analyticsInfo,payloadHandlerRef:r,playerState:s.playerState}),G=function(a,b){var d=u.getType()!=="STORY"?u:new(c("GamesQuicksilverContextKey"))({id:null,size:null,sourceID:null,type:"SOLO"});s.onSwitchGame(a,d,b)};g={analyticsInfo:s.analyticsInfo,appIcon:t.iconURI,appID:(g=t.gameID)!=null?g:"",appName:(g=t.name)!=null?g:"",contextSourceID:s.contextSourceID,contextTokenID:a==null?void 0:a.contextID,contextType:s.contextType,sessionID:s.contextSessionID,switchContext:s.onSwitchContext,switchGame:G};c("useRejectUnsupportedGenericDialogRequests")({messageHandlerRegistry:x,messageSender:s.messageSender});c("useInteractivePluginSDKMessageHandler.react")({appID:(G=t.gameID)!=null?G:"",messageHandlerRegistry:x,messageSender:s.messageSender,pluginURI:t.gameURI});G=l(c("InteractivePluginContext"));var H=l(c("InstantGameGamePlayerContext")).hasTournamentID;m=c("useMarkInstantGamePlayed")((m=t.gameID)!=null?m:"",s.entryPoint);return k.jsx("div",{children:k.jsxs(c("CometPlaceholder.react"),{fallback:k.jsx(c("CometInstantGamesPlayerGlimmer.react"),{}),children:[a!=null?k.jsx(c("InstantGamesChallengeToast.react"),{contextKey:a,gameKey:t,gameState:s.gameState},"challenge-toast-"+((o=a.contextID)!=null?o:"")):null,k.jsx(c("GamesLeavingSoonDialog.react"),{appId:(o=t.gameID)!=null?o:"",gameInfoFragmentKey:t}),H&&k.jsx(c("InstantGamesTournamentStatusDialog.react"),{appID:(o=t.gameID)!=null?o:"",fragmentKey:t}),k.jsx(c("InstantGamesPinShortcutDialogSDKMessageHandler.react"),{fragmentKey:t,messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"create-shortcut-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),t.gameID!=null?k.jsx(c("InstantGamesPlayerStateSDKMessageHandler.react"),{gameID:t.gameID,messageHandlerRegistry:x,messageSender:s.messageSender,playerState:s.playerState}):null,t.gameID!=null?k.jsx(c("InstantGamesSendPassThroughSDKMessageHandler.react"),{apiRestrictor:w,gameID:t.gameID,messageHandlerRegistry:x,messageSender:s.messageSender}):null,t.gameID!=null?k.jsx(c("InstantGamesPaymentsSDKMessageHandler.react"),{gameID:t.gameID,messageHandlerRegistry:x,messageSender:s.messageSender}):null,k.jsx(c("InstantGamesInAppPurchaseSDKMessageHandler.react"),{gameState:s.gameState,messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"in-app-purchase-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesInAppPurchaseSubscriptionSDKMessageHandler.react"),{gameState:s.gameState,messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"in-app-purchase-subscription-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesContextSwitcherSDKMessageHandler.react"),{gameID:g.appID,messageHandlerRegistry:x,messageSender:s.messageSender,oldContext:u.getID(),platformParams:g},"context-switcher-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"custom_update_messaging_consent",entryPoint:c("InstantGamesMessagingConsentDialogRoot.entrypoint"),entryPointParams:{contextID:(H=g.contextTokenID)!=null?H:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"custom-update-messaging-consent-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="share_tournament"?a:babelHelpers["extends"]({},a,{appID:b.data.dialogRequest.data.app_id,shareType:b.data.dialogRequest.data.type,tournamentID:b.data.dialogRequest.data.tournament_id})},dialogType:"share_tournament",entryPoint:c("InstantGamesTournamentShareDialog.entrypoint"),entryPointParams:{appID:"",shareType:"",tournamentID:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"share-tournament-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"tournament_create",entryPoint:c("InstantGamesTournamentCreateDialog.entrypoint"),entryPointParams:{appID:g.appID,scale:d("WebPixelRatio").get()},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"tournament-create-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"custom_link_share",entryPoint:c("InstantGamesCustomLinkShareDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"custom-link-share-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"custom_update_post_comment",entryPoint:c("InstantGamesCustomUpdatePostCommentDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"custom-update-post-comment-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"cross_play_migration_dialog",entryPoint:c("InstantGameCrossPlayMigrationDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"cross-play-migration-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"create_gaming_squad",entryPoint:c("InstantGamesCreateGamingSquadDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"create-gaming-squad-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="join_gaming_squad"?a:babelHelpers["extends"]({},a,{squadID:b.data.dialogRequest.data.squadID})},dialogType:"join_gaming_squad",entryPoint:c("InstantGamesJoinGamingSquadDialog.entrypoint"),entryPointParams:{squadID:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"join-gaming-squad-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"post_user_achievement",entryPoint:c("InstantGamesPostUserAchievementDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"post-user-achievement-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="leave_gaming_squad"?a:babelHelpers["extends"]({},a,{squadID:b.data.dialogRequest.data.squadID})},dialogType:"leave_gaming_squad",entryPoint:c("InstantGamesLeaveGamingSquadDialog.entrypoint"),entryPointParams:{squadID:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"leave-gaming-squad-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"join_group",entryPoint:c("InstantGamesJoinGroupDialog.entrypoint"),entryPointParams:{appID:g.appID},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"join-group-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"open_external_link",entryPoint:c("InstantGamesOpenExternalLinkDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"open-external-link-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"follow_page",entryPoint:c("InstantGamesFollowPageDialog.entrypoint"),entryPointParams:{appID:g.appID},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"follow-page-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"match_making",entryPoint:c("InstantGamesGenericMatchMakingDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"match-making-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"canvas_to_instant_games_silent_reauth_notice",entryPoint:c("CanvasToInstantGamesSilentMigrationNotice.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"canvas-to-instant-games-silent-reauth-notice"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="context_switch"?a:babelHelpers["extends"]({},a,{contextToken:b.data.dialogRequest.data.newContextTokenID})},dialogType:"context_switch",entryPoint:c("InstantGamesGenericContextSwitchDialog.entrypoint"),entryPointParams:{contextToken:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"context-switch-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGameShareDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"game-share-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGameSwitchDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"game-switch-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesMatchPlayerDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"match-player-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("CloudGameFriendFinderInviteDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"cloud-game-friend-finder-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("CloudGamingMultiTouchOverlayTutorialDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"cloud-gaming-multi-touch-overlay-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesSubscribeBotAsyncDialogSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"subscribe-bot-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesContextSelectorSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g,playerPhotoURI:D},"context-selector-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesContextCreatorSDKMessageHandler.react"),{messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g,playerPhotoURI:D},"context-creator-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"context_solo_switch",entryPoint:c("InstantGamesGenericContextSoloSwitchDialog.entrypoint"),entryPointParams:{appID:g.appID},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"context-solo-switch-generic-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"oba_toast",entryPoint:c("InstantGamesOBANotice.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"oba-notice-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){if(b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="game_requests")return a;b=(b=b.data.dialogRequest)==null?void 0:b.data;return babelHelpers["extends"]({},a,{actionType:b==null?void 0:b.actionType,data:b==null?void 0:b.data,message:b==null?void 0:b.message,to:(a=(b==null?void 0:b.to)!=null?JSON.parse(b==null?void 0:b.to):null)!=null?a:[],userTypeOption:b==null?void 0:b.options})},dialogType:"game_requests",entryPoint:c("CloudGameRequestsDialog.entrypoint"),entryPointParams:{actionType:"",appID:g.appID,data:"",message:"",to:[],userTypeOption:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"cloud-game-requests-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"internal_e2e_test_generic_dialog",entryPoint:c("CloudGamingE2EGenericDialog.entrypoint"),entryPointParams:{},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"cloud-gaming-e2e-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"live_streams",entryPoint:d("InstantGamesViewStreamersDialog.entrypoint").InstantGamesViewStreamersDialogEntrypoint,entryPointParams:{appID:g.appID},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"view-streamers-dialog-"+((o=a==null?void 0:a.contextID)!=null?o:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="video_player"?a:babelHelpers["extends"]({},a,{videoID:b.data.dialogRequest.data.videoID})},dialogType:"video_player",entryPoint:c("InstantGamesVideoPlayerDialog.entrypoint"),entryPointParams:{videoID:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"video-player-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{dialogType:"custom_invite",entryPoint:c("InstantGamesCustomInviteGenericDialog.entrypoint"),entryPointParams:{appID:g.appID,contextTokenID:(o=g.contextTokenID)!=null?o:""},messageHandlerRegistry:x,messageSender:s.messageSender,platformParams:g},"custom-invite-generic-dialog-"+((H=a==null?void 0:a.contextID)!=null?H:"")),k.jsx(n,babelHelpers["extends"]({},s,{adsMessageHandler:e,browserUnloadListener:F,cloudMessageHandlerRegistry:y,cloudMessageSubscriptions:z,contextKey:u,contextToken:a,environment:q,gameInfo:t,igMessageHandlerRegistry:x,interactivePluginLogger:G.logger,markInstantGamePlayed:m,payloadHandlerRef:r,playerName:C,playerPhoto:D,setPlayerName:E,setPlayerPhoto:f,userScope:p}))]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesMessageHandlerRegistry",["FBLogger","GamesQuicksilverError","InstantGameSDKTypedLogger","InstantGamesGameState","stronglyTypeSDKMessage"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a,b,c,d,e){this.gameID=a,this.messageSender=b,this.apiRestrictor=c,this.supportedAPIs=d,this.preGameStartSupportedAPIs=e,this.alwaysAllowed=new Set(["showgenericdialogasync","initializeasync","onbeginload","onconsole","onprogressload","ongameready","onscore","onscreenshot","onpicture","onendgame","getplayerdataasync","setplayerdataasync","getconnectedplayersasync","getsignedplayerinfoasync","shareasync","contextchooseasync","quit","setsessiondata","inventoryunlockitemasync","contextswitchasync","flushplayerdataasync","contextcreateasync","contextmatchcreateasync","contextmatchfetchasync","contextmatchendasync","contextmatchdatafetchasync","contextmatchdatasaveasync","contextplayersfetchasync","contextmatchdataincasync","sendpassthroughasync","changecontextasync","matchplayerasync","cancreateshortcutasync","createshortcutasync","cloudgamingconnectionerror","registerscreenshotprovider"]),this.messageHandlers=new Map()}var b=a.prototype;b.setMessageHandlerFor=function(a,b,c){if(!this.alwaysAllowed.has(a)&&!this.supportedAPIs.includes(a))return;if(this.apiRestrictor.shouldRestrictClientMessage(a))return;this.messageHandlers.has(a)||this.messageHandlers.set(a,new Map());(a=this.messageHandlers.get(a))==null?void 0:a.set(b,c)};b.setTypedMessageHandlerFor=function(a,b,d){var e=function(b){if(b.type!==a){c("FBLogger")("instant_games").warn("Message type "+b.type+" does not match handler type "+a+".");return}d(b)};this.setMessageHandlerFor(a,b,e)};b.removeMessageHandlerFor=function(a,b){var c;(c=this.messageHandlers.get(a))==null?void 0:c["delete"](b);((c=this.messageHandlers.get(a))==null?void 0:c.size)===0&&this.messageHandlers["delete"](a)};b.hasMessageHandlerFor=function(a){a=(a=this.messageHandlers.get(a))==null?void 0:a.size;return a!=null&&a>0};b.getSupportedTypes=function(){return Array.from(this.messageHandlers.keys())};b.handleMessage=function(a,b,c,d){var e=this;if(!this.messageHandlers.has(a))return;if(this.apiRestrictor.shouldRestrictPreTosMessage(a,b,d))return;(d=this.messageHandlers.get(a))==null?void 0:d.forEach(function(d){e.$1(d,a,b,c)})};b.$1=function(a,b,e,f){f!==d("InstantGamesGameState").PLAYING&&new(c("InstantGameSDKTypedLogger"))().setEvent("pre_game_start_api_call").setEventName(b).setGameID(this.gameID).setEventType("CLIENT").log();if(!this.$2(b,f)){e&&e.promiseID&&this.messageSender.rejectGamePromise(e.promiseID,new(c("GamesQuicksilverError"))("Cannot perform this operation before game start.").setCode("INVALID_OPERATION"));return}f=c("stronglyTypeSDKMessage")(b,e);if(f==null){c("FBLogger")("instant_games").warn("malformed message "+e+" for type "+b);return}a(f)};b.$2=function(a,b){return b===d("InstantGamesGameState").PLAYING||this.preGameStartSupportedAPIs.includes(a)};return a}();g["default"]=a}),98);
-----
InstantGamesInAppPurchaseSubscriptionSDKMessageHandler.react",["FullScreen","GamesQuicksilverError","InstantGamesGameState","InstantGamesGenericDialogContext","InstantGamesGenericDialogWithEntryPoint.react","InstantGamesInAppPurchaseSubscriptionDialog.entrypoint","InstantGamesSubscriptionsUtils","react","useRegisterInstantGamesMessageHandler"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext;function a(a){var b=j(c("InstantGamesGenericDialogContext")),e=b.getGenericDialog;b=i(function(b){var f=b.data,g=f.productID;f=f.promiseID;if(!d("InstantGamesSubscriptionsUtils").isSubscriptionsAvailable()){a.messageSender.rejectGamePromise(f,new(c("GamesQuicksilverError"))("Client does not support this operation").setCode("CLIENT_UNSUPPORTED_OPERATION"));return}if(a.gameState!==d("InstantGamesGameState").PLAYING){a.messageSender.rejectGamePromise(f,new(c("GamesQuicksilverError"))("Cannot call purchaseAsync before startGameAsync resolves").setCode("INVALID_OPERATION"));return}c("FullScreen").isFullScreen()&&c("FullScreen").disableFullScreen();(f=e("in_app_purchase_subscription"))==null?void 0:f.open({data:{dialogRequest:{productID:g,request:"in_app_purchase_subscription",sdkVersion:""},promiseID:b.data.promiseID},type:"showgenericdialogasync"})},[e,a.gameState,a.messageSender]);c("useRegisterInstantGamesMessageHandler")({handler:b,messageHandlerRegistry:a.messageHandlerRegistry,type:"paymentspurchasesubscriptionasync"});b=function(){return h.jsx("span",{})};return h.jsx(c("InstantGamesGenericDialogWithEntryPoint.react"),{addDynamicEntryPointParams:function(a,b){return b.type!=="showgenericdialogasync"||b.data.dialogRequest.request!=="in_app_purchase_subscription"?a:babelHelpers["extends"]({},a,{productID:b.data.dialogRequest.productID})},dialogType:"in_app_purchase_subscription",entryPoint:c("InstantGamesInAppPurchaseSubscriptionDialog.entrypoint"),entryPointParams:{appID:a.platformParams.appID,productID:""},fallback:b,messageHandlerRegistry:a.messageHandlerRegistry,messageSender:a.messageSender,platformParams:a.platformParams})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesEmbeddedVideoHandlers",["GamesQuicksilverError","InstantGamesEmbeddedVideoPlacement","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";function h(a){return{videoID:a.videoID,videoPlayerInstanceID:a.instanceID}}function i(a){var b;if(a!=null&&typeof a!=="object")throw new(c("GamesQuicksilverError"))("Invalid video state value").setCode("INVALID_PARAM");return babelHelpers["extends"]({},(b=a)!=null?b:{},{placement:c("InstantGamesEmbeddedVideoPlacement").cast((b=a==null?void 0:a.placement)!=null?b:null)})}function j(a,b){return function(d){var e=d.promiseID,f=d.state;d=d.videoID;if(e==null)return;if(d==null)a.rejectGamePromise(e,new(c("GamesQuicksilverError"))("cannot create an embedded video player without video ID.").setCode("INVALID_PARAM"));else try{f=b.createInstance({options:i(f),videoID:d});a.resolveGamePromise(e,h(f))}catch(b){a.rejectGamePromise(e,b)}}}function k(a){return function(b){b=b.videoPlayerInstanceID;b!=null&&a.destroyInstance(b)}}function l(a){return function(b){var c=b.timestamp;b=b.videoPlayerInstanceID;b!=null&&a.jumpToTimestamp(b,c)}}function m(a,b){return function(d){var e=d.promiseID;d=d.videoPlayerInstanceID;if(e==null)return;d==null&&a.rejectGamePromise(e,new(c("GamesQuicksilverError"))("cannot retrieve state of embedded video player.").setCode("INVALID_PARAM"));a.resolveGamePromise(e,b.getInstanceState(d))}}function n(a){return function(b){var c=b.state;b=b.videoPlayerInstanceID;if(b==null||c==null)return;a.setInstanceState(b,i(c))}}function o(a,b){return function(c){var d=c.promiseID;if(d==null)return;b.enqueueInstancesPromise(function(b){a.resolveGamePromise(d,{videoInstances:b.map(function(a){return h(a)})})})}}function p(a,b){return function(d){var e=d.promiseID;d=d.videoPlayerInstanceID;if(e==null)return;d==null&&a.rejectGamePromise(e,new(c("GamesQuicksilverError"))("cannot retrieve state of embedded video player.").setCode("INVALID_PARAM"));c("promiseDone")(b.getInstanceDimensions(d).then(function(b){return a.resolveGamePromise(e,b)}))}}function q(a){return function(b){b=b.videoPlayerInstanceID;b!=null&&a.jumpToEnd(b)}}function a(a,b,c){var d=function(a){var d=a.promiseID;if(d==null)return;c.enqueueEntryPointVideoID(function(a){b.resolveGamePromise(d,a)})};a.setMessageHandlerFor("getentrypointvideoidasync","get-entry-point-video-id-async",d);d=j(b,c);a.setMessageHandlerFor("videoplayercreateasync","video-player-create-async",d);d=k(c);a.setMessageHandlerFor("videoplayerinstancedestroy","video-player-instance-destroy",d);d=l(c);a.setMessageHandlerFor("videoplayerinstancejumptotimestamp","video-player-instance-jump-to-timestamp",d);d=m(b,c);a.setMessageHandlerFor("videoplayerinstancegetstateasync","video-player-instance-get-state-async",d);d=n(c);a.setMessageHandlerFor("videoplayerinstancesetstate","video-player-instance-set-state",d);d=o(b,c);a.setMessageHandlerFor("videoplayergetinstancesasync","video-player-get-instances-async",d);d=p(b,c);a.setMessageHandlerFor("videoplayerinstancegetoriginaldimensionsasync","video-player-instance-get-original-dimensions-async",d);d=q(c);a.setMessageHandlerFor("videoplayerinstancejumptoend","video-player-instance-jump-to-end",d)}g.videoPlayerCreateAsync=j;g.videoPlayerInstanceDestroy=k;g.videoPlayerInstanceJumpToTimestamp=l;g.videoPlayerInstanceGetStateAsync=m;g.videoPlayerInstanceSetState=n;g.videoPlayerGetInstancesAsync=o;g.videoPlayerInstanceGetOriginalDimensionsAsync=p;g.videoPlayerInstanceJumpToEnd=q;g.registerVideoPlayerSDKMessageHandlers=a}),98);
-----
useRejectUnsupportedGenericDialogRequests",["GamesQuicksilverError","InstantGamesGenericDialogContext","react","useRegisterInstantGamesMessageHandler"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useContext;function a(a){var b=a.messageHandlerRegistry,d=a.messageSender;a=i(c("InstantGamesGenericDialogContext"));var e=a.getGenericDialog;a=h(function(a){if(e(a.data.dialogRequest.request)!=null)return;d.rejectGamePromise(a.data.promiseID,new(c("GamesQuicksilverError"))("Client does not support this operation").setCode("CLIENT_UNSUPPORTED_OPERATION"))},[e,d]);c("useRegisterInstantGamesMessageHandler")({handler:a,messageHandlerRegistry:b,type:"showgenericdialogasync"})}g["default"]=a}),98);
-----
InstantGamesPlayerStateSDKMessageHandler.react",["CometRelay","GamesQuicksilverError","InstantGamesConnectedPlayersFetcher","InstantGamesSignedPlayerInfoFetcher","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=d("CometRelay").useRelayEnvironment(),e=function(b){a.playerState.getPlayerDataAsync(b)};a.messageHandlerRegistry.setMessageHandlerFor("getplayerdataasync","get-player-data-async",e);e=function(b){a.playerState.setPlayerDataAsync(b)};a.messageHandlerRegistry.setMessageHandlerFor("setplayerdataasync","set-player-data-async",e);var f=function(d){if(!d.promiseID)return;c("InstantGamesConnectedPlayersFetcher").fetchAsync(a.gameID,b).then(function(b){b=Object.values(b);a.messageSender.resolveGamePromise(d.promiseID,b)})["catch"](function(b){a.messageSender.rejectGamePromise(d.promiseID,b)})};e=function(a){f(a)};a.messageHandlerRegistry.setMessageHandlerFor("getconnectedplayersasync","get-connected-players-async",e);var g=function(d){if(!d.promiseID)return;c("InstantGamesSignedPlayerInfoFetcher").fetchAsync(a.gameID,d.requestPayload,b).then(function(b){a.messageSender.resolveGamePromise(d.promiseID,b)})["catch"](function(b){a.messageSender.rejectGamePromise(d.promiseID,b)})};e=function(a){g(a)};a.messageHandlerRegistry.setMessageHandlerFor("getsignedplayerinfoasync","get-signed-player-info-async",e);e=function(b){a.playerState.flushPlayerStateAsync().then(function(){a.messageSender.resolveGamePromise(b.promiseID)})["catch"](function(d){d=new(c("GamesQuicksilverError"))(d.message).setCode("NETWORK_FAILURE");a.messageSender.rejectGamePromise(b.promiseID,d)})};a.messageHandlerRegistry.setMessageHandlerFor("flushplayerdataasync","flush-player-data-async",e);return h.jsx(h.Fragment,{})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
InstantGamesContextPlayersFetcher",["CometRelay","GamesQuicksilverError","InstantGamesContextPlayersFetcher_Query.graphql","Promise","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("InstantGamesContextPlayersFetcher_Query.graphql");a=function(){function a(){}var e=a.prototype;e.fetchAsync=function(a,e,f){return d("CometRelay").fetchQuery(f,i,{context_id:a,game_id:e}).toPromise().then(function(a){return a==null?void 0:(a=a.node)==null?void 0:a.contextPlayers}).then(function(a){return!Array.isArray(a)?b("Promise").reject():a.map(function(a){var b,d=a==null?void 0:a.playerID;b=a==null?void 0:(b=a.user)==null?void 0:b.name;a=a==null?void 0:(a=a.user)==null?void 0:(a=a.redirectProfilePicture)==null?void 0:a.uri;if(d==null)throw c("unrecoverableViolation")("Failed to parse player from value","instant_games");return{id:d,name:b,photo:a}})})["catch"](function(a){return b("Promise").reject(new(c("GamesQuicksilverError"))("Failed to fetch requested context players").setCode("NETWORK_FAILURE"))})};return a}();e=new a();g["default"]=e}),98);
-----
InstantGamesConnectedPlayersFetcher",["CometRelay","GamesQuicksilverError","InstantGamesConnectedPlayersFetcher_Query.graphql","Promise","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("InstantGamesConnectedPlayersFetcher_Query.graphql");a=function(){function a(){this.$1={}}var e=a.prototype;e.fetchAsync=function(a,e){var f=this;return this.$1[a]?b("Promise").resolve(this.$1[a]):d("CometRelay").fetchQuery(e,i,{game_id:a}).toPromise().then(function(d){d=d==null?void 0:(d=d.me)==null?void 0:(d=d.userScope)==null?void 0:d.connectedPlayers;if(!Array.isArray(d))return b("Promise").reject(new(c("GamesQuicksilverError"))("Unable to fetch connected players").setCode("NETWORK_FAILURE"));var e={};d.map(function(a){var b,d,f,g=a==null?void 0:a.playerID;if(g==null)throw c("unrecoverableViolation")("Failed to parse player from query result","instant_games");b=a==null?void 0:(b=a.user)==null?void 0:b.id;d=a==null?void 0:(d=a.user)==null?void 0:d.fullName;f=a==null?void 0:(f=a.user)==null?void 0:(f=f.redirectPhoto)==null?void 0:f.uri;a=(a=a==null?void 0:a.should_show_messaging_consent_dialog)!=null?a:!1;if(b!=null){g={id:g,name:d,photo:f,shouldShowMessagingConsentDialog:a};e[b]=g}});Object.keys(e).length>0&&(f.$1[a]=e);return e})["catch"](function(a){return b("Promise").reject(new(c("GamesQuicksilverError"))("Internal error while fetching connected players").setCode("NETWORK_FAILURE"))})};return a}();e=new a();g["default"]=e}),98);
-----
InstantGamesContextStorage",["ClientIDs","CometRelay","GamesQuicksilverError","InstantGamesContextStorageOperations","InstantGamesSessionManager","Promise","RelayAPIConfig"],(function(a,b,c,d,e,f,g){"use strict";var h=2197001,i=2197002,j=2197003;a=function(){function a(a,b){this.$1=a,this.$2=b}var e=a.prototype;e.createMatch=function(a,e){var f=this,g={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),context_id:a,session_id:c("InstantGamesSessionManager").getSessionID()};e&&(g.match_name=e);return new(b("Promise"))(function(a,b){d("CometRelay").commitMutation(f.$2,{mutation:d("InstantGamesContextStorageOperations").CreateMatchMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:g}})}).then(function(c){c=c==null?void 0:(c=c.createMatch)==null?void 0:c.match;return b("Promise").resolve(f.$3(a,c))})["catch"](function(a){return b("Promise").reject(f.$4(a,"Failed to create a new context match"))})};e.fetchMatches=function(a){var c=this,e=a.contextID,f=a.matches;a=a.status;return d("CometRelay").fetchQuery(this.$2,d("InstantGamesContextStorageOperations").FetchMatchesQuery,{context_id:e,matches:f,status:a}).toPromise().then(function(a){return a==null?void 0:(a=a.node)==null?void 0:(a=a.store)==null?void 0:a.matches}).then(function(a){return!Array.isArray(a)?b("Promise").reject():a.map(function(a){return c.$3(e,a)})})["catch"](function(a){return b("Promise").reject(c.$4(a,"Failed to fetch requested matches"))})};e.endMatch=function(a,e){var f=this,g={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),context_id:a,match_id:e,session_id:c("InstantGamesSessionManager").getSessionID()};return new(b("Promise"))(function(a,b){d("CometRelay").commitMutation(f.$2,{mutation:d("InstantGamesContextStorageOperations").EndMatchMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},variables:{input:g}})}).then(function(c){c=c==null?void 0:(c=c.endMatch)==null?void 0:c.match;return b("Promise").resolve(f.$3(a,c))})["catch"](function(a){return b("Promise").reject(f.$4(a,"Failed to end the match"))})};e.fetchData=function(a,c,e){var f=this;return d("CometRelay").fetchQuery(this.$2,d("InstantGamesContextStorageOperations").FetchMatchDataQuery,{context_id:a,keys:e,match_id:c}).toPromise().then(function(a){a=a==null?void 0:(a=a.node)==null?void 0:(a=a.store)==null?void 0:a.matches;if(!Array.isArray(a)||a.length!==1)throw new Error("Failed to parse match data");return f.$5(a[0])})["catch"](function(a){return b("Promise").reject(f.$4(a,"Failed to fetch requested storage data"))})};e.saveData=function(a,e,f){var g=this,h={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),context_id:a,match_id:e,session_id:c("InstantGamesSessionManager").getSessionID()},i=new Blob([f],{type:"text/plain"});return new(b("Promise"))(function(a,b){d("CometRelay").commitMutation(g.$2,{mutation:d("InstantGamesContextStorageOperations").SaveMatchDataMutation,onCompleted:function(b){return a()},onError:function(a){return b(a)},uploadables:{fields_file:i},variables:{input:h}})})["catch"](function(a){return b("Promise").reject(g.$4(a,"Failed to persist the match data"))})};e.incrementData=function(a,e,f,g){var h=this,i={actor_id:c("RelayAPIConfig").actorID,client_mutation_id:d("ClientIDs").getNewClientID(),context_id:a,match_id:e,session_id:c("InstantGamesSessionManager").getSessionID()},j=new Blob([f],{type:"text/plain"});return new(b("Promise"))(function(a,b){d("CometRelay").commitMutation(h.$2,{mutation:d("InstantGamesContextStorageOperations").IncrementMatchDataMutation,onCompleted:function(b){return a(b)},onError:function(a){return b(a)},uploadables:{fields_file:j},variables:{input:i,keys:g}})}).then(function(a){a=a==null?void 0:(a=a.incrementFields)==null?void 0:a.match;return h.$5(a)})["catch"](function(a){return b("Promise").reject(h.$4(a,"Failed to persist the match data"))})};e.$3=function(a,b){var c=b==null?void 0:b.matchID,d=b==null?void 0:b.status;b=b==null?void 0:b.name;if(!c||!d)throw new Error("Failed to parse match from value");return{contextID:a,id:c,name:b,status:d}};e.$5=function(a){a=a.fields;if(!Array.isArray(a))throw new Error("Failed to parse match data");var b={};for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;b[e.key]=e.value}return JSON.stringify(b)};e.$4=function(a,b){var d=new(c("GamesQuicksilverError"))();if(!a){d.setMessage(b).setCode("NETWORK_FAILURE");return d}a.code===i?d.setMessage(a.description).setCode("INVALID_OPERATION"):a.code===h?d.setMessage(a.description).setCode("INVALID_PARAM"):a.code===j?d.setMessage("Match with that name already exists in this context").setCode("INVALID_PARAM"):d.setMessage(b).setCode("NETWORK_FAILURE");return d};return a}();g["default"]=a}),98);
-----
GamesQuicksilverPlayerState",["ClientIDs","CometRelay","GamesQuicksilverError","InstantApplicationUserScopeQuery.graphql","InstantGamesPlayerMutations","Promise","RelayAPIConfig","WebGraphQLQueryHelper","XAsyncRequest","clearInterval","nullthrows","setInterval"],(function(a,b,c,d,e,f,g){"use strict";var h=5e3;a=function(){function a(a,b,c,d){this.$4=[],this.$5=!1,this.$6=null,this.$1=a,this.$3=b,this.$8=d?d:h,this.$2=null,this.$7=c,this.$9=!1}var e=a.prototype;e.cleanup=function(){this.$9&&this.savePlayerStateAsync(),this.$2!==null&&(c("clearInterval")(this.$2),this.$2=null),this.$6=null};e.updateGame=function(a){this.$1=a,this.$6=null};e.savePlayerStateAsync=function(){var a=this,c=this.$6;if(!c||!this.$9||this.$5)return b("Promise").resolve();this.$5=!0;this.$9=!1;return this.$10(c).then(function(){a.$5=!1,a.$11()})["catch"](function(){a.$9=!0;a.$5=!1;a.$11();throw new Error("An error occurred while saving the player state")})};e.flushPlayerStateAsync=function(){var a=this;return!this.$5?this.savePlayerStateAsync():new(b("Promise"))(function(b,c){a.$4.push({reject:c,resolve:b})})};e.getPlayerDataAsync=function(a){var d=this;return!a||!a.promiseID?new(b("Promise"))(function(a,b){b(new(c("GamesQuicksilverError"))("Input is null or missing the promiseID property").setCode("INVALID_PARAM"))}):this.$12(a).then(this.$13.bind(this)).then(function(){return d.$14(a.keys)}).then(function(b){d.$3.resolveGamePromise(a.promiseID,b)})["catch"](function(b){d.$3.rejectGamePromise(a.promiseID,b)})};e.setPlayerDataAsync=function(a){var d=this;return!a||!a.promiseID?new(b("Promise"))(function(a,b){b(new(c("GamesQuicksilverError"))("Input is null or missing the promiseID property").setCode("INVALID_PARAM"))}):this.$15(a).then(this.$13.bind(this)).then(function(){return d.$16(a.data)}).then(function(){return d.$3.resolveGamePromise(a.promiseID,!0)})["catch"](function(b){return d.$3.rejectGamePromise(a.promiseID,b)})};e.$12=function(a){return new(b("Promise"))(function(b,d){!a.keys||!Array.isArray(a.keys)?d(new(c("GamesQuicksilverError"))("Missing required value: keys").setCode("INVALID_PARAM")):b()})};e.$15=function(a){return new(b("Promise"))(function(b,d){!a.data||!(a.data instanceof Object)?d(new(c("GamesQuicksilverError"))("Missing required object: data").setCode("INVALID_PARAM")):b()})};e.$14=function(a){if(!this.$6)return{};var b=this.$6,c={};a.forEach(function(a){b[a]!=null&&(c[a]=b[a])});return c};e.$16=function(a){if(!this.$6)return;var b=this.$6;Object.keys(a).forEach(function(c){b[c]=a[c]});this.$9=!0;this.$6=b};e.$13=function(){var a=this;return new(b("Promise"))(function(b,c){!a.$6?b(a.$17()):b()})};e.$17=function(){var a=this;return new(b("Promise"))(function(b,e){var f=d("WebGraphQLQueryHelper").getLegacyQueryURI(c("nullthrows")(c("InstantApplicationUserScopeQuery.graphql").params.id),{app_id:a.$1}),g=function(d){d=(d=d.viewer)==null?void 0:(d=d.actor)==null?void 0:d.user_scope;if(!d){e(new(c("GamesQuicksilverError"))("Query for player state failed").setCode("NETWORK_FAILURE"));return}d=d.player_state;d=JSON.parse(d)||{};a.$6=d;a.$18();b()};new(c("XAsyncRequest"))(f).setHandler(function(a){g(a.payload)}).setErrorHandler(function(){e(new(c("GamesQuicksilverError"))("An error occurred while fetching the player state").setCode("NETWORK_FAILURE"))}).send()})};e.$11=function(){if(this.$4.length<=0)return;var a=this.$4;this.savePlayerStateAsync().then(function(){for(var b=a,c=Array.isArray(b),d=0,b=c?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=b.length)break;e=b[d++]}else{d=b.next();if(d.done)break;e=d.value}e=e;e.resolve()}})["catch"](function(b){for(var c=a,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.reject(b)}});this.$4=[]};e.$10=function(a){var e=this,f=JSON.stringify(a);return new(b("Promise"))(function(a,b){d("CometRelay").commitMutation(e.$7,{mutation:d("InstantGamesPlayerMutations").ChangePlayerStateMutation,onCompleted:function(){return a()},onError:function(a){return b(a)},uploadables:{player_state_file:e.$19(f)},variables:{input:{actor_id:c("RelayAPIConfig").actorID,app_id:e.$1,client_mutation_id:d("ClientIDs").getNewClientID()}}})})};e.$19=function(a){return new Blob([a],{type:"text/plain"})};e.$18=function(){var a=this;this.$2=c("setInterval")(function(){a.savePlayerStateAsync()},this.$8)};return a}();g["default"]=a}),98);
-----
InstantGamesIAP",["CometRelay","GamesQuicksilverError","InstantGamesIAPOperations","InstantGamesIAP_FetchCatalogQuery.graphql","InstantGamesIAP_FetchPurchasesQuery.graphql","Promise","XFBGamesIAPProductFilterUtils.facebook","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=100,k="424054882412337",l="615185509510995",m=h!==void 0?h:h=b("InstantGamesIAP_FetchCatalogQuery.graphql"),n=i!==void 0?i:i=b("InstantGamesIAP_FetchPurchasesQuery.graphql");function a(a,e,f){return new(b("Promise"))(function(b,c){d("CometRelay").commitMutation(f,{mutation:d("InstantGamesIAPOperations").ConsumePurchaseMutation,onCompleted:function(a){return b(a)},onError:function(a){return c(a)},variables:{input:{game_id:a,purchase_token:e}}})}).then(function(a){return a==null?void 0:(a=a.consumedPurchase)==null?void 0:a.purchase}).then(function(a){if(!a)return b("Promise").reject(new(c("GamesQuicksilverError"))("Failed to consume purchase"));return})["catch"](function(){return b("Promise").reject(new(c("GamesQuicksilverError"))("Request failed to be processed").setCode("NETWORK_FAILURE"))})}function e(a,e){return d("CometRelay").fetchQuery(e,m,{filter:d("XFBGamesIAPProductFilterUtils.facebook").fromJSEnum("one_time_payment"),game_id:a}).toPromise()["catch"](function(){return b("Promise").reject(new(c("GamesQuicksilverError"))("Request failed to be processed").setCode("NETWORK_FAILURE"))}).then(function(a){return a==null?void 0:(a=a.node)==null?void 0:(a=a.productInventory)==null?void 0:a.catalog}).then(function(a){return!Array.isArray(a)?b("Promise").reject(new(c("GamesQuicksilverError"))("Failed to fetch catalog")):a.map(function(a){var b=a.description,d=a.imageURI,e=a.localPrice,f=a.productID;a=a.title;var g=e==null?void 0:e.formattedAmount,h=e==null?void 0:e.amount;e=e==null?void 0:e.currency;if(g==null||e==null||a==null||f==null)throw c("unrecoverableViolation")("Cannot have these catalog fields as null","instant_games");return{description:b,imageURI:d,price:g,priceAmount:Number(h),priceCurrencyCode:e,productID:f,title:a}}).filter(Boolean)})["catch"](function(){return b("Promise").reject(new(c("GamesQuicksilverError"))("Failed to process catalog").setCode("NETWORK_FAILURE"))})}function f(a,e){return d("CometRelay").fetchQuery(e,m,{filter:d("XFBGamesIAPProductFilterUtils.facebook").fromJSEnum("subscribable"),game_id:a}).toPromise()["catch"](function(){return b("Promise").reject(new(c("GamesQuicksilverError"))("Request failed to be processed").setCode("NETWORK_FAILURE"))}).then(function(a){return a==null?void 0:(a=a.node)==null?void 0:(a=a.productInventory)==null?void 0:a.catalog}).then(function(a){return!Array.isArray(a)?b("Promise").reject(new(c("GamesQuicksilverError"))("Failed to fetch catalog")):a.map(function(a){var b=a.description,d=a.imageURI,e=a.localPrice,f=a.productID,g=a.subscriptionTerm;a=a.title;var h=e==null?void 0:e.formattedAmount,i=e==null?void 0:e.amount;e=e==null?void 0:e.currency;if(h==null||e==null||a==null||f==null||g==null)throw c("unrecoverableViolation")("Cannot have these catalog fields as null","instant_games");return{description:b,imageURI:d,price:h,priceAmount:Number(i),priceCurrencyCode:e,productID:f,subscriptionTerm:g,title:a}}).filter(Boolean)})["catch"](function(){return b("Promise").reject(new(c("GamesQuicksilverError"))("Failed to process catalog").setCode("NETWORK_FAILURE"))})}function o(a,e){return d("CometRelay").fetchQuery(e,n,{game_id:a}).toPromise()["catch"](function(){return b("Promise").reject(new(c("GamesQuicksilverError"))("Request failed to be processed").setCode("NETWORK_FAILURE"))}).then(function(a){return a==null?void 0:(a=a.node)==null?void 0:(a=a.productInventory)==null?void 0:a.purchases}).then(function(a){return!Array.isArray(a)?b("Promise").reject(new(c("GamesQuicksilverError"))("Failed to fetch purchases")):a.map(function(a){var b=a.developerPayload,d=a.isConsumed,e=a.paymentActionType,f=a.paymentID,g=a.purchaseCurrencyAmount,h=a.purchasePlatform,i=a.purchaseTime,j=a.signedRequest,k=a.token;a=a==null?void 0:(a=a.product)==null?void 0:a.productID;if(d==null||f==null||h==null||a==null||i==null||k==null||j==null)throw c("unrecoverableViolation")("Cannot have these purchase fields as null","instant_games");return{developerPayload:b,isConsumed:d,paymentActionType:e,paymentID:f,productID:a,purchasePlatform:h,purchasePrice:p(g),purchaseTime:i,purchaseToken:k,signedRequest:j}})})}function p(a){var b=a==null?void 0:a.amount_with_offset;a=a==null?void 0:a.currency;return b==null||a==null?{amount:"",currency:""}:{amount:String(parseInt(b,10)/j),currency:a}}g.INSTANT_GAMES_PAYMENT_PRODUCT_ID=k;g.CANVAS_GAMES_PAYMENT_PRODUCT_ID=l;g.consumePurchase=a;g.fetchCatalog=e;g.fetchSubscribableCatalog=f;g.fetchPurchases=o;g.formatCurrencyAmount=p}),98);
-----
GamesQuicksilverError",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(a){this.$1="UNKNOWN",this.$2=a}var b=a.prototype;b.setCode=function(a){this.$1=a;return this};b.getCode=function(){return this.$1};b.getMessage=function(){return this.$2};b.setMessage=function(a){this.$2=a;return this};b.serialize=function(){return{code:this.$1,message:this.$2||""}};return a}();f["default"]=a}),66);
-----