if (self.CavalryLogger) { CavalryLogger.start_js(["bzWYH4H"]); } __d("MWChatForceCollapseTabs.bs",["MWChatMultitabContext.bs","MWChatMultitabDispatcher.bs","react","useCometFeedNoRoutingNavigationEventLogger"],(function(a,b,c,d,e,f){"use strict";var g,h=g||b("react");function a(a){var c=b("useCometFeedNoRoutingNavigationEventLogger")(),d=h.useContext(b("MWChatMultitabContext.bs").context);return h.useCallback(function(a){c(Date.now(),"","messenger");if(d!==void 0)return b("MWChatMultitabDispatcher.bs").dispatch(void 0,d,{TAG:5,_0:a})},[d,c])}f.useHook=a}),null); __d("MWChatForceCollapseTabs.re",["MWChatForceCollapseTabs.bs"],(function(a,b,c,d,e,f){a=b("MWChatForceCollapseTabs.bs").useHook;f.useHook=a}),null); __d("MWChatUndoForceCollapseTabs.bs",["MWChatMultitabContext.bs","MWChatMultitabDispatcher.bs","react","useCometFeedNoRoutingNavigationEventLogger"],(function(a,b,c,d,e,f){"use strict";var g,h=g||b("react");function a(a){var c=b("useCometFeedNoRoutingNavigationEventLogger")(),d=h.useContext(b("MWChatMultitabContext.bs").context);return h.useCallback(function(a){c(Date.now(),"","messenger");if(d!==void 0)return b("MWChatMultitabDispatcher.bs").dispatch(void 0,d,{TAG:6,_0:a})},[d,c])}f.useHook=a}),null); __d("MWChatUndoForceCollapseTabs.re",["MWChatUndoForceCollapseTabs.bs"],(function(a,b,c,d,e,f){a=b("MWChatUndoForceCollapseTabs.bs").useHook;f.useHook=a}),null); __d("useToggleChatTabsOnMountUnmount",["CometRouteRenderType","MWChatForceCollapseTabs.re","MWChatUndoForceCollapseTabs.re","react","useShouldShowMessagingEntrypointOnCurrentRoute"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useEffect;function a(){var a=c("useShouldShowMessagingEntrypointOnCurrentRoute")("CHAT"),b=d("CometRouteRenderType").useIsPushView(),e=d("MWChatForceCollapseTabs.re").useHook(),f=d("MWChatUndoForceCollapseTabs.re").useHook();h(function(){a&&e(b);return function(){a&&f(b)}},[a,b,e,f])}g["default"]=a}),98); __d("CometRightRailContentArea.react",["CometRouteRenderType","CometScrollView.react","CometSection.react","HiddenSubtreeContextProvider.react","MWChatOnMediaVisibilityOverrideContext","gkx","react","stylex","useMWIsCurrentRouteMediaViewerExperiment","useShouldShowMessagingEntrypointOnCurrentRoute"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("gkx")("708253"),j={alignContentCenter:{alignItems:"bp9cbjyn"},alignContentStretch:{alignItems:"gs1a9yip"},chatSliver:{backgroundColor:"cwj9ozl2",boxShadow:"r28pvxcy",display:"j83agx80",end:"n7fi1qx3",height:"datstx6m",position:"poy2od1o",top:"be9z9djy",width:"etr7akla"},content:{display:"j83agx80",flexDirection:"cbu4d94t",flexGrow:"buofh1pr",minWidth:"nnvw5wor"},contentArea:{display:"j83agx80",minHeight:"dp1hu0rb"},contentCentered:{justifyContent:"taijpn5t"},contentContainer:{display:"j83agx80",flexDirection:"cbu4d94t",maxWidth:"d2edcug0"},rightRail:{backgroundColor:"hybvsw6c",display:"j83agx80",flexShrink:"pfnyh3mw",minHeight:"dp1hu0rb",position:"l9j0dhe7"},rightRailContainer:{backgroundColor:"hybvsw6c",display:"j83agx80",end:"n7fi1qx3",flexDirection:"cbu4d94t",maxHeight:"pad24vr5",position:"poy2od1o",width:"iyyx5f41","@media (max-width: 719px)":{position:"ap132fyt"}},rightRailContainerHeight:{minHeight:"pphwfc2g",top:"be9z9djy"},rightRailContainerHeightBlue:{minHeight:"svhzetay",top:"t38bcc6f"},rightRailContainerPushViewHeader:{boxShadow:"roauwr9f",end:"n7fi1qx3",height:"byvelhso",pointerEvents:"hzruof5a",position:"pmk7jnqg",start:"j9ispegn",top:"kr520xx4"},rightRailContainerWithShadow:{boxSizing:"cjfnh4rs",paddingStart:"e9o6kcyi"},rightRailHidden:{display:"mkhogb32"},rightRailShadow:{backgroundColor:"qsy8amke",backgroundImage:"l50q4up1",backgroundRepeat:"sl8jk4me",backgroundSize:"hvce7xua",bottom:"i09qtzwb",pointerEvents:"hzruof5a",position:"pmk7jnqg",start:"j9ispegn",top:"kr520xx4",width:"m7io0qpo"}},k={360:{width:"o36gj0jk"},400:{width:"gwi2wbwd"},440:{width:"a5uo0l2v"},480:{width:"g8tomnu4"},520:{width:"rl6uu45y"}};function a(a){var b=a.alignContent;b=b===void 0?"center":b;var e=a.children,f=a.hasShadow;f=f===void 0?!0:f;var g=a.rightRail,l=a.rightRailHidden;l=l===void 0?!1:l;var m=a.rightRailWidth;m=m===void 0?360:m;var n=a.showsVerticalScrollIndicator;n=n===void 0?!0:n;a=a.verticalAlign;a=a===void 0?"top":a;var o=d("CometRouteRenderType").useIsPushView(),p=c("useShouldShowMessagingEntrypointOnCurrentRoute")("CHAT"),q=c("useMWIsCurrentRouteMediaViewerExperiment")();q=d("MWChatOnMediaVisibilityOverrideContext").useMWChatOnMediaVisibilityOverride(q)&&!l;p=p&&q;return h.jsxs("div",{className:c("stylex")(j.contentArea),children:[h.jsx(c("CometSection.react"),{className:c("stylex")(j.content,b==="center"&&j.alignContentCenter,b==="stretch"&&j.alignContentStretch,a==="middle"&&j.contentCentered),role:"main",children:h.jsx("div",{className:c("stylex")(j.contentContainer),children:e})}),h.jsxs(c("CometSection.react"),{className:c("stylex")(j.rightRail,k[p?String(Number(m)+80):m],l&&j.rightRailHidden),role:"complementary",children:[h.jsx(c("HiddenSubtreeContextProvider.react"),{isHidden:l,children:h.jsxs("div",{className:c("stylex")(j.rightRailContainer,i&&j.rightRailContainerHeight,!i&&j.rightRailContainerHeightBlue,f&&j.rightRailContainerWithShadow),children:[h.jsx(c("CometScrollView.react"),{showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:n,xstyle:k[m],children:g}),f&&h.jsx("div",{className:c("stylex")(j.rightRailShadow)})]})}),p?h.jsx("div",{className:c("stylex")(j.chatSliver)}):null,o&&h.jsx("div",{className:c("stylex")(j.rightRailContainerPushViewHeader),children:f&&h.jsx("div",{className:c("stylex")(j.rightRailShadow)})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useLiveVideoCometInstreamRewardAlertDisplay",["createVideoStateHook"],(function(a,b,c,d,e,f,g){"use strict";a=d("createVideoStateHook").createVideoStateHook(null);b=a.setterHook;c=a.valueHook;e=b;f=c;g.useInstreamRewardAlertDisplayStateSetter=e;g.useInstreamRewardAlertDisplayStateValue=f}),98); __d("validateTrackingCode",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a!=null&&typeof a==="object"&&a.click_tracking_linkshim_cb!=null&&a.encrypted_click_tracking!=null&&a.encrypted_tracking!=null?a:null}f["default"]=a}),66); __d("validateAggregatedStoryTrackingNodeIndex",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a!=null&&typeof a==="number"?a:0}f["default"]=a}),66);