;/*FB_PKG_DELIM*/

__d("CometGHLFeedClassContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b=!1;c=a.createContext(b);e=c;g["default"]=e}),98);
__d("ResumableTimer",["clearTimeout","performanceNow","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";var h;a=function(){function a(a,b){this.startedTime=0,this.timeRemaining=b,this.originalTimeout=b,this.callback=a,this.run()}var b=a.prototype;b.run=function(){this.startedTime=(h||(h=c("performanceNow")))(),this.timeRemaining>0&&(this.timerID=c("setTimeout")(this.callback,this.timeRemaining))};b.pause=function(){var a=(h||(h=c("performanceNow")))();this.timeRemaining-=a-this.startedTime;c("clearTimeout")(this.timerID)};b.stop=function(){c("clearTimeout")(this.timerID)};b.getTimeElapsed=function(){var a=this.originalTimeout-this.timeRemaining;return a};return a}();g["default"]=a}),98);
__d("useCometTailLoadGlimmerTracker",["CometTailLoadLogger","ResumableTimer","emptyFunction","intersectionObserverEntryIsIntersecting","performanceNow","react","useCometRouteTracePolicy","useOnBeforeUnload"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=i||d("react");var j=b.useCallback,k=b.useEffect,l=b.useRef,m=15e3;function a(a,b,e){var f=l(null),g=l(-1),i=l(-1),n=l(0),o=l(!1),p=l(null),q=l(null),r=l(-1),s=l(new(c("ResumableTimer"))(c("emptyFunction"),0)),t=c("useCometRouteTracePolicy")();a!=null&&d("CometTailLoadLogger").setTailLoadStartTime(a,e);c("useOnBeforeUnload")(function(){if(a!=null&&o.current===!0){s.current.pause();var e=s.current.getTimeElapsed();e<m&&(d("CometTailLoadLogger").reportInterruptedConsumption(a,g.current,e),d("CometTailLoadLogger").endTailloadTracing(a,b,(h||(h=c("performanceNow")))(),706,t))}d("CometTailLoadLogger").reset()});k(function(){return function(){q.current&&q.current(),q.current=null}},[]);return j(function(j){if(a!=null&&j&&(g.current!==b||f.current!==j)){f.current=j;q.current&&(q.current(),q.current=null);if(o.current){var k=p.current;k!=null&&(n.current+=(h||(h=c("performanceNow")))()-k);p.current=(h||(h=c("performanceNow")))();o.current=!1}g.current!==b&&(n.current>0&&(s.current.stop(),d("CometTailLoadLogger").reportInterruptedConsumption(a,g.current,n.current),i.current=g.current),g.current=b,n.current=0);k=function(f){Array.prototype.forEach.call(f,function(f){if(c("intersectionObserverEntryIsIntersecting")(f)&&!o.current)o.current=!0,p.current=f.time,a!=null&&(g.current===b&&r.current!==g.current?(d("CometTailLoadLogger").startTailLoadTracing(a,g.current,e),r.current=g.current,s.current=new(c("ResumableTimer"))(function(){d("CometTailLoadLogger").endTailloadTracing(a,g.current,(h||(h=c("performanceNow")))(),113,t)},m)):s.current.run());else if(!c("intersectionObserverEntryIsIntersecting")(f)&&o.current){o.current=!1;var i=p.current;i!=null&&(n.current+=f.time-i);s.current.pause()}})};var l=new IntersectionObserver(k);l.observe(j);q.current=function(){l.disconnect()}}},[a,b,e,t])}g["default"]=a}),98);
__d("CometInfiniteScrollSuspenseList.react",["CometGHLFeedClassContext","CometPageletWithDiv.react","CometPlaceholder.react","CometSSRSuspendOnServer.react","CometSuspendWhileWaitingOnDOM.react","CometSuspenseList.react","ExecutionEnvironment","cr:1142206","gkx","mergeRefs","performanceNow","react","stylex","useCometTailLoadGlimmerTracker","useUnsafeRef_DEPRECATED","useVisibilityObserver"],(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.Children,o=e.startTransition,p=e.useCallback,q=e.useContext,r=e.useEffect,s=e.useLayoutEffect,t=e.useMemo,u=e.useRef,v=e.useState,w={ghl:{display:"x1lliihq",$$css:!0}};function x(a){var d=a.onLoadMore,e=a.root,f=a.rootMargin;a=a.triggerXStyle;var g=u(!1),i=p(function(){b("cr:1142206")!=null&&b("cr:1142206").log("[onVisible] fired",{alreadyTriggered:g.current});if(g.current)return;g.current=!0;d()},[d]);e=c("useVisibilityObserver")({onVisible:i,options:{root:e,rootMargin:(i=f)!=null?i:0}});return m.jsx("div",{className:(h||(h=c("stylex")))(a),ref:e})}x.displayName=x.name+" [from "+f.id+"]";function a(a){var b=a.children,e=a.endGlimmerRef,f=a.hasMore,g=a.isLoading,l=a.listGlimmer,y=a.onLoadMore,z=a.pageletLogNamePoisitionLimit,A=a.pageletName,B=a.positionLimitForSSR,C=a.revealOrder,D=a.root,E=a.rootMargin;a=a.triggerXStyle;var F=v(0),G=F[0],H=F[1],I=q(c("CometGHLFeedClassContext")),J=u(!1),K=u(null),L=(i||(i=c("useUnsafeRef_DEPRECATED")))(0),M=f;F=p(function(){L.current=(j||(j=c("performanceNow")))(),o(function(){H(function(a){return a+1}),y(K)})},[y,K]);s(function(){M||(J.current=!1)},[M]);var N=0,O=c("gkx")("22882");b=n.map(b,function(a){var b=B!=null&&N>B;return a?A!=null?m.jsx(d("CometPageletWithDiv.react").Placeholder,{className:(h||(h=c("stylex")))(O&&I&&w.ghl),fallback:l,ignoreLateMutation:b,name:A,pageletLogNamePoisitionLimit:z,position:N++,trackTailLoad:!0,children:b&&!(k||(k=c("ExecutionEnvironment"))).canUseDOM?c("gkx")("695")?m.jsx(c("CometSSRSuspendOnServer.react"),{}):m.jsx(c("CometSuspendWhileWaitingOnDOM.react"),{}):a}):m.jsx(c("CometPlaceholder.react"),{fallback:l,children:a}):null});var P=v(!1),Q=P[0],R=P[1];r(function(){return R(!0)},[]);if(f&&!g&&Q){P=m.jsx(x,{onLoadMore:F,root:D,rootMargin:E,triggerXStyle:a},"tailTrigger"+G);C==="backwards"?b.unshift(P):b.push(P)}f=N;var S=c("useCometTailLoadGlimmerTracker")(A,f,L.current);g=t(function(){return c("mergeRefs")(e,K,S)},[e,S]);return m.jsxs(m.Fragment,{children:[M&&C==="backwards"?m.jsx("div",{ref:g,children:l},"glimmerBackwards"):null,m.jsx(c("CometSuspenseList.react"),{revealOrder:C||"forwards",tail:"hidden",children:b},"list"),m.jsx("div",{"data-testid":void 0}),M&&C!=="backwards"?m.jsx("div",{className:"x1xzczws",ref:g,children:l},"glimmer"):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("FDSDefaultPageSizes",[],(function(a,b,c,d,e,f){"use strict";a=[1,2,2,2,4];f.DEFAULT_PAGE_SIZES=a}),66);
__d("CometInfiniteScrollSuspenseListIncrementalRenderer.react",["CometInfiniteScrollSuspenseList.react","FDSDefaultPageSizes","react","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.Children,k=b.useCallback,l=b.useMemo,m=b.useRef,n=b.useState;function a(a){var b=a.pageSizes,e=b===void 0?d("FDSDefaultPageSizes").DEFAULT_PAGE_SIZES:b,f=a.children,g=a.hasMore,h=a.isLoading,o=a.onLoadMore;b=a.revealOrder;b=b===void 0?"forwards":b;a=babelHelpers.objectWithoutPropertiesLoose(a,["pageSizes","children","hasMore","isLoading","onLoadMore","revealOrder"]);var p=n(e[0]),q=p[0],r=p[1],s=m(1),t=j.count(f);p=q<t;if(b!=="forwards")throw c("unrecoverableViolation")('CometInfiniteScrollSuspenseListIncrementalRenderer currently only supports revealOrder="forwards"',"comet_feed");var u=k(function(a){s.current=Math.min(s.current,e.length-1);var b=e[s.current],c=q<t;c?(s.current++,r(q+b)):g&&!h&&(q===t&&(s.current++,r(q+b)),o(a))},[g,h,t,q,o,e]),v=l(function(){return j.toArray(f).slice(0,q)},[f,q]);return i.jsx(c("CometInfiniteScrollSuspenseList.react"),babelHelpers["extends"]({},a,{hasMore:g||p,isLoading:h&&!p,onLoadMore:u,revealOrder:b,children:v}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("useHasDemonstratedScrollIntent",["CometEventListener","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useState,k=b.c;function a(){var a=k(3),b=j(!1),d=b[0],e=b[1],f;a[0]!==d?(b=function(){if(!d){var a=window.scrollY,b=c("CometEventListener").capture(window,"scroll",function(b){b.target===window.document&&window.scrollY!==a&&e(!0)});return function(){b.remove()}}},f=[d],a[0]=d,a[1]=b,a[2]=f):(b=a[1],f=a[2]);i(b,f);return d}g["default"]=a}),98);
__d("CometFeedInfiniteScrollSuspenseList.react",["CometFeedGlimmer.react","CometFeedTailLoadBufferHeight","CometInfiniteScrollSuspenseList.react","CometInfiniteScrollSuspenseListIncrementalRenderer.react","CometInteractionSourceContext","FBLogger","QuickPerformanceLogger","WebConnectionClassServerGuess","gkx","qpl","react","useHasDemonstratedScrollIntent","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useMemo;function a(a){var b=a.incrementalRendering;b=b===void 0?!0:b;var d=a.waitOnScrollIntent,e=a.children,f=a.hasMore,g=a.incrementalRenderingPageSizes,i=a.interactionSource,l=a.isLoading,m=a.onLoadMore,n=a.pageletName,o=a.positionLimitForSSR,p=a.reducedSpacing,q=a.revealOrder;c("gkx")("22947")&&(b=!1,d=!1);var r=c("useHasDemonstratedScrollIntent")();a=k(function(){return{onVisible:function(){(h||(h=c("QuickPerformanceLogger"))).markEvent(c("qpl")._(655653,"17524"),"collision_happened",7,{annotations:{bool:{had_demonstrated_scroll_intent:r},"int":{interaction_source:i}}})}}},[i,r]);a=c("useVisibilityObserver")(a);var s=k(function(){var a;if(d===!0&&!r)return 0;var b;switch(c("WebConnectionClassServerGuess").connectionClass){case"EXCELLENT":b=c("CometFeedTailLoadBufferHeight").EXCELLENT;break;case"GOOD":b=c("CometFeedTailLoadBufferHeight").GOOD;break;case"MODERATE":b=c("CometFeedTailLoadBufferHeight").MODERATE;break;case"POOR":case"UNKNOWN":default:b=c("CometFeedTailLoadBufferHeight").POOR;break}b==null&&(c("FBLogger")("comet_feed").mustfix("Found no tail load buffer height value for the connection class `%s`. Falling back to 2500px.",c("WebConnectionClassServerGuess").connectionClass),b=2500);return a={},a[q==="backwards"?"top":"bottom"]=b,a},[q,r,d]);a={endGlimmerRef:a,hasMore:f,isLoading:l,listGlimmer:j.jsx(c("CometFeedGlimmer.react"),{reducedSpacing:p}),onLoadMore:m,pageletName:n,positionLimitForSSR:o,revealOrder:q,rootMargin:s};if(b&&(q==null||q==="forwards"))return j.jsx(c("CometInteractionSourceContext").Provider,{value:i,children:j.jsx(c("CometInfiniteScrollSuspenseListIncrementalRenderer.react"),babelHelpers["extends"]({pageSizes:g},a,{children:e}))});else return j.jsx(c("CometInteractionSourceContext").Provider,{value:i,children:j.jsx(c("CometInfiniteScrollSuspenseList.react"),babelHelpers["extends"]({},a,{children:e}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("CometHeroFeedItem.react",["CometHeroInteractionContextPassthrough.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.children;a=a.position;a=a==null||a<=1;return i.jsx(c("CometHeroInteractionContextPassthrough.react"),{clear:!a,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("CometTailLoadDebugger",[],(function(a,b,c,d,e,f){"use strict";var g=[];function a(){return g}function b(){for(var a=arguments.length,b=new Array(a),c=0;c<a;c++)b[c]=arguments[c];g.push([new Date().toLocaleString()].concat(b))}f.dump=a;f.log=b}),66);