12fd61c92f6164883f2ab0efb6329618bd892cf61ccc0e40370c88c68ce4e88a

Source Code:

if (self.CavalryLogger) { CavalryLogger.start_js(["svQOM"]); }

__d("UserActivity",["requireCond","cr:1333160"],(function(a,b,c,d,e,f){e.exports=b("cr:1333160")}),null);
__d("UserActivityBlue",["Arbiter","Event","isTruthy"],(function(a,b,c,d,e,f){var g=5e3,h=500,i=-5,j=Date.now(),k=j,l=!1,m=Date.now(),n=document.hasFocus?document.hasFocus():!0,o=0,p=Date.now(),q=-1,r=-1,s={EVENT_INTERVAL_MS:h,subscribeOnce:function(a){var b=s.subscribe(function(c,d){s.unsubscribe(b),a(d)});return b},subscribe:function(a){return b("Arbiter").subscribe("useractivity/activity",a)},unsubscribe:function(a){a.unsubscribe()},isActive:function(a){return new Date()-j<(b("isTruthy")(a)?a:g)},isOnTab:function(){return n},hasBeenInactive:function(){return l},resetActiveStatus:function(){n=!0,l=!1},getLastInActiveEnds:function(){return m},getLastActive:function(){return j},setIdleTime:function(a){o=a},getLastLeaveTime:function(){return p},getLastInformTime:function(){return k},reset:function(){j=Date.now(),k=j,l=!1,m=Date.now(),n=document.hasFocus?document.hasFocus():!0,o=0,p=Date.now(),q=-1,r=-1}};function t(a){v(a,h)}function u(a){v(a,0)}function v(c,d){d===void 0&&(d=0);var e=a.MouseEvent;if(e&&c instanceof e){if(/^mouse(enter|leave|move|out|over)$/.test(c.type)&&c.pageX==q&&c.pageY==r)return;q=c.pageX;r=c.pageY}j=Date.now();e=j-k;e>d?(k=j,n||(p=j),e>=(o||g)&&(l=!0,m=j),b("Arbiter").inform("useractivity/activity",{event:c,idleness:e,last_inform:k})):e<i&&(k=j)}function c(a){n=!0,m=Date.now(),u(a)}function d(a){n=!1,l=!0,p=Date.now()}b("Event").listen(window,"scroll",t);b("Event").listen(window,"focus",c);b("Event").listen(window,"blur",d);b("Event").listen(document.documentElement,{keydown:t,mouseover:t,mousemove:t,click:t},void 0,void 0,{passive:!0});b("Arbiter").subscribe("Event/stop",function(a,b){t(b.event)});e.exports=s}),null);
__d("Vector",["DOMVector","Event","Scroll"],(function(a,b,c,d,e,f){a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(b,c,d){return a.call(this,parseFloat(b),parseFloat(c),d)||this}var d=c.prototype;d.derive=function(a,b,d){return new c(a,b,d||this.domain)};d.setElementPosition=function(a){var b=this.convertTo("document");a.style.left=parseInt(b.x,10)+"px";a.style.top=parseInt(b.y,10)+"px";return this};d.setElementDimensions=function(a){return this.setElementWidth(a).setElementHeight(a)};d.setElementWidth=function(a){a.style.width=parseInt(this.x,10)+"px";return this};d.setElementHeight=function(a){a.style.height=parseInt(this.y,10)+"px";return this};d.scrollElementBy=function(a){if(a==document.body)window.scrollBy(this.x,this.y);else{var c;(c=b("Scroll")).setLeft(a,c.getLeft(a)+this.x);c.setTop(a,c.getTop(a)+this.y)}return this};c.from=function(a,b,d){return new c(a,b,d)};c.getEventPosition=function(a,c){c===void 0&&(c="document");a=b("Event").getPosition(a);a=this.from(a.x,a.y,"document");return a.convertTo(c)};c.getTouchEventPosition=function(a,b){b===void 0&&(b="document");a=a.touches[0];a=this.from(a.pageX,a.pageY,"document");return a.convertTo(b)};c.deserialize=function(a){a=a.split(",");return this.from(a[0],a[1])};return c}(b("DOMVector"));e.exports=a}),null);
__d("ViewportBounds",["Arbiter","ArbiterMixin","BlueBar","PageEvents","Vector","emptyFunction","removeFromArray"],(function(a,b,c,d,e,f){var g={top:[],right:[],bottom:[],left:[]};function a(a){return function(){return g[a].reduce(function(a,b){return Math.max(a,b.getSize())},0)}}function c(a,b){return function(c){return new h(a,c,b)}}var h=function(){"use strict";function a(a,c,d){d===void 0&&(d=!1),this.getSide=b("emptyFunction").thatReturns(a),this.getSize=function(){return typeof c==="function"?c():c},this.isPersistent=b("emptyFunction").thatReturns(d),g[a].push(this),i.inform("change")}var c=a.prototype;c.remove=function(){b("removeFromArray")(g[this.getSide()],this),i.inform("change")};return a}();b("Arbiter").subscribe(b("PageEvents").AJAXPIPE_ONUNLOAD,function(){["top","right","bottom","left"].forEach(function(a){a=g[a];for(var b=a.length-1;b>=0;b--){var c=a[b];c.isPersistent()||c.remove()}})});var i=babelHelpers["extends"]({},b("ArbiterMixin"),{getTop:a("top"),getRight:a("right"),getBottom:a("bottom"),getLeft:a("left"),getElementPosition:function(a){a=b("Vector").getElementPosition(a);a.y-=i.getTop();return a},addTop:c("top"),addRight:c("right"),addBottom:c("bottom"),addLeft:c("left"),addPersistentTop:c("top",!0),addPersistentRight:c("right",!0),addPersistentBottom:c("bottom",!0),addPersistentLeft:c("left",!0)});i.addPersistentTop(function(){if(b("BlueBar").hasFixedBlueBar()){var a=b("BlueBar").getMaybeFixedRoot();return a?a.offsetHeight:0}return 0});e.exports=i}),null);
__d("WebPixelRatio",["SiteData"],(function(a,b,c,d,e,f){a={get:function(){return b("SiteData").pr!=null&&b("SiteData").pr>0?b("SiteData").pr:window.devicePixelRatio||1}};e.exports=a}),null);
__d("bind",[],(function(a,b,c,d,e,f){function a(a,b){var c=Array.prototype.slice.call(arguments,2);if(typeof b!=="string")return Function.prototype.bind.apply(b,[a].concat(c));function d(){var d=c.concat(Array.prototype.slice.call(arguments));if(a[b])return a[b].apply(a,d)}d.toString=function(){return"bound lazily: "+a[b]};return d}e.exports=a}),null);
__d("computeRelativeURI",["URI","isEmpty","isFacebookURI"],(function(a,b,c,d,e,f){var g,h;function i(a,b){if(!b)return a;if(b.charAt(0)=="/")return b;var c=a.split("/").slice(0,-1);c[0]!=="";b.split("/").forEach(function(a){a==="."||(a===".."?c.length>1&&(c=c.slice(0,-1)):c.push(a))});return c.join("/")}function a(a,c){var d=new(g||(g=b("URI")))(),e=new g(a),f=new g(c);if(f.getDomain()&&!b("isFacebookURI")(f))return c;var j=e;a=["Protocol","Domain","Port","Path","QueryData","Fragment"];a.forEach(function(a){var c=a==="Path"&&j===e;c&&d.setPath(i(e.getPath(),f.getPath()));(h||(h=b("isEmpty")))(f["get"+a]())||(j=f);c||d["set"+a](j["get"+a]())});return d}e.exports=a}),null);
__d("isAsyncScrollQuery",["UserAgent"],(function(a,b,c,d,e,f){var g=null;function a(){g===null&&(g=b("UserAgent").isPlatform("Mac OS X >= 10.8")&&b("UserAgent").isBrowser("Safari >= 6.0"));return g}e.exports=a}),null);
__d("executeAfter",[],(function(a,b,c,d,e,f){function a(a,b,c){return function(){a.apply(c||this,arguments),b.apply(c||this,arguments)}}e.exports=a}),null);
__d("getFBAlphaConsoleSize",["ge"],(function(a,b,c,d,e,f){function a(){var a=b("ge")("alpha_console_container");if(a)return{height:a.offsetHeight,width:a.offsetWidth};else return{height:0,width:0}}e.exports=a}),null);
__d("getOverlayZIndex",["Style"],(function(a,b,c,d,e,f){function a(a,c){c=c;a=a;c=c||document.body;var d=[];while(a&&a!==c)d.push(a),a=a.parentNode;if(a!==c)return 0;for(var a=d.length-1;a>=0;a--){c=d[a];if(b("Style").get(c,"position")!="static"){c=parseInt(b("Style").get(c,"z-index"),10);if(!isNaN(c))return c}}return 0}e.exports=a}),null);
__d("getReferrerURI",["ErrorUtils","URI","isFacebookURI"],(function(a,b,c,d,e,f){"use strict";var g,h;function c(){if(a.PageTransitions&&a.PageTransitions.isInitialized())return a.PageTransitions.getReferrerURI();else{var c=(g||(g=b("ErrorUtils"))).applyWithGuard(function(a){return new(h||(h=b("URI")))(a)},null,[document.referrer]);return c&&b("isFacebookURI")(c)?c:null}}e.exports=c}),null);
__d("linkifyEntityRange",["Link.react","React"],(function(a,b,c,d,e,f){var g=b("React");function a(a,c){c=(c.entity||{}).url;return!c?g.jsx("span",{children:a}):g.jsx(b("Link.react"),{href:c,target:"_blank",children:a})}e.exports=a}),null);
__d("getReactElementDisplayName",["getReactComponentDisplayName"],(function(a,b,c,d,e,f){"use strict";function a(a){if(a==null)return"#empty";if(typeof a==="string"||typeof a==="number"||typeof a==="boolean")return"#text";return typeof a.type==="string"?a.type:b("getReactComponentDisplayName")(a.type)}e.exports=a}),null);
__d("tooltipPropsFor",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){if(!a)return{};a={"data-tooltip-content":a,"data-hover":"tooltip"};b&&(a["data-tooltip-position"]=b);c&&(a["data-tooltip-alignh"]=c);return a}e.exports=a}),null);
__d("unmountComponentOnTransition",["Arbiter","BanzaiODS","PageEvents","ReactDOM","emptyFunction","requestIdleCallbackAcrossTransitions"],(function(a,b,c,d,e,f){"use strict";var g=[],h=null;function i(a){g.unshift(a),j()}function j(){if(h!==null)return;h=b("requestIdleCallbackAcrossTransitions")(function(a){h=null;while(g.length>0&&a.timeRemaining()>0)b("ReactDOM").unmountComponentAtNode(g.pop());g.length>0&&j()})}function k(a,c){b("BanzaiODS").bumpEntityKey(2966,"core.www.react_component_register_unmount",a+"."+c)}function a(a,c){function d(){a!=null&&Object.prototype.hasOwnProperty.call(a,"setState")&&(a.setState=b("emptyFunction"),a.shouldComponentUpdate=b("emptyFunction").thatReturnsFalse),i(c)}var e=!1;e?k("contextual_component","not_found_fallback"):k("arbiter","default");var f=b("Arbiter").subscribe(b("PageEvents").AJAXPIPE_ONBEFORECLEARCANVAS,function(a,b){a=b.canvasID;if(a!=="content"&&a!=="content_container")return;d();f.unsubscribe()})}e.exports=a}),null);
__d("unmountConcurrentComponentOnTransition",["Arbiter","PageEvents"],(function(a,b,c,d,e,f){"use strict";function a(a,c){var d=b("Arbiter").subscribe(b("PageEvents").AJAXPIPE_ONBEFORECLEARCANVAS,function(b,e){b=e.canvasID;if(b!=="content"&&b!=="content_container")return;a.unmount(c);d.unsubscribe()})}e.exports=a}),null);
__d("debounceAcrossTransitions",["debounce"],(function(a,b,c,d,e,f){function a(a,c,d){return b("debounce")(a,c,d,!0)}e.exports=a}),null);
__d("WaitTimeContext",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");c={waitTimeAreaName:void 0,waitTimeAreaOwner:void 0};e.exports=a.createContext(c)}),null);
__d("ErrorMarker.react",["FBLogger","React","WaitTimeContext","gkx"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return this.props.children};d.componentDidMount=function(){if(b("gkx")("678736")&&this.props.disableLogging!=!0){var a=this.props.name!=null?this.props.name:this.context.waitTimeAreaName;b("FBLogger")("error_marker").blameToPreviousFrame().mustfix("ErrorMarker for: %s",a||"unknown")}};return c}(a.Component);c.contextType=b("WaitTimeContext");e.exports=c}),null);
__d("LoadingMarker.react",["requireCond","LoadingMarkerGated","React","cr:1609270"],(function(a,b,c,d,e,f){"use strict";b("React");function a(a){return a.children}c=b("LoadingMarkerGated").component||a;b("cr:1609270")!=null&&(c=b("cr:1609270")(c));e.exports=c}),null);
__d("PerfHelperUtils",["cx","DeferredComponent.react","JSResource","React","joinClasses","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React"),i=function(c){babelHelpers.inheritsLoose(a,c);function a(){return c.apply(this,arguments)||this}var d=a.prototype;d.render=function(){var a=this.props,c=a.tooltip;a=a.className;return h.jsx("div",{className:"_28hn"+(this.props.color==="red"?" _4ez8":"")+(this.props.color==="green"?" _28ho":""),children:h.jsx(b("DeferredComponent.react"),{deferredPlaceholder:h.jsx("div",{}),deferredComponent:function(a){b("promiseDone")(b("JSResource")("Tooltip.react").__setRef("PerfHelperUtils").load(),a)},className:b("joinClasses")("_5_my",a),tooltip:c,children:this.props.children})})};return a}(h.PureComponent);function a(a){return h.jsx(i,{color:"red",tooltip:"This bootloaded component has a red border\n          because "+a.moduleId+"\n          took over "+a.timeLimitSecs+" seconds ("+a.timeSpentSecs+"s) to load",children:a.children})}c={SlowBootloadBorder:a,BorderedComponent:i};e.exports=c}),null);
__d("VideoPermalinkURI",[],(function(a,b,c,d,e,f){var g={isValid:function(a){return g.parse(a)!==null},parse:function(a){if(this.isValidLegacy(a)){var b=a.getQueryData();return b.v?{video_id:b.v,set_token:b.set}:null}b=a.getPath();b[b.length-1]==="/"&&(b=b.substring(0,b.length-1));a=b.split("/");if(a.length>=3&&a[2]==="videos")if(a.length===4&&this.isNumeric(a[3]))return{video_id:a[3],set_token:null};else if(a.length===5){if(this.isNumeric(a[4]))return{video_id:a[4],set_token:a[3]};else if(this.isNumeric(a[3]))return{video_id:a[3],story_id:a[4]}}else if(a.length===6&&this.isNumeric(a[4]))return{video_id:a[4],set_token:a[3],story_id:a[5]};return null},isNumeric:function(a){return/^\d+$/.exec(a)!==null},isValidLegacy:function(a){a=a.getPath();a[a.length-1]==="/"&&(a=a.substring(0,a.length-1));return a==="/photo.php"||a==="/force_photo/photo.php"||a==="/photo"||a==="/force_photo/photo/index.php"||a==="/photo/index.php"||a==="/force_photo/photo"||a==="/video.php"||a==="/video/video.php"?!0:!1},getCustomStoryURI:function(a,b){return a+b+"/"}};e.exports=g}),null);
__d("SnowflakePermalinkUtils",["URI"],(function(a,b,c,d,e,f){var g,h=/\/[^/]+\/(albums\/([^/]+)|posts\/([a-zA-Z]+[^/]+))\/([^/]+\/)?/;a={isPermalinkURI:function(a){a=new(g||(g=b("URI")))(a);return h.test(a.getPath())}};e.exports=a}),null);
__d("FBStoriesPrivacySelectorClickHandler",["Bootloader","CSS","Event","Run","SubscriptionsHandler"],(function(a,b,c,d,e,f){"use strict";a={registerForClick:function(a){var c=a.button,d=a.buttonIcon,e=a.buttonSpinner,f=a.container,g=a.privateSharingOn,h=a.menuAlignh,i=a.menuPosition,j=new(b("SubscriptionsHandler"))();j.addSubscriptions(b("Event").listen(c,"click",function(a){a.stopPropagation(),b("CSS").hide(d),b("CSS").show(e),b("Bootloader").loadModules(["FBStoriesPrivacySelector"],function(a){a.onClick({buttonIcon:d,buttonSpinner:e,container:f,privateSharingOn:g,menuAlignh:h,menuPosition:i})},"FBStoriesPrivacySelectorClickHandler")}));b("Run").onBeforeUnload(function(){j.release()})}};e.exports=a}),null);
__d("ReactFiberErrorDialog",["requireCond","ErrorNormalizeUtils","ErrorPubSub","LogHistory","getErrorSafe"],(function(a,b,c,d,e,f){"use strict";var g;function a(a){var c=a.componentStack,d=a.errorBoundary,e=b("getErrorSafe")(a.error);e.componentStack=a.componentStack;if(d!=null&&d.suppressReactDefaultErrorLogging)return!1;a=b("LogHistory").getInstance("react_fiber_error_logger");a.error("capturedError",JSON.stringify({componentStack:c,error:{name:e.name,message:e.message,stack:e.stack}}));d=b("ErrorNormalizeUtils").normalizeError(e);d.loggingSource="REACT_FIBER";(g||(g=b("ErrorPubSub"))).reportNormalizedError(d);return!1}e.exports={showErrorDialog:a}}),null);
__d("ActiveFocusRegionUtilsContext",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=a.createContext(null);e.exports=c}),null);
__d("FirstFocusScopeQuery.react",[],(function(a,b,c,d,e,f){a=function(a,b){return a==="h1"||a==="h2"||a==="h3"||b["aria-busy"]===!0?!0:!1};e.exports=a}),null);
__d("setElementCanTab",[],(function(a,b,c,d,e,f){b=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"tabIndex");c=Object.getOwnPropertyDescriptor(SVGElement.prototype,"tabIndex");d=function(a){return a};var g=b?b.set:d,h=c?c.set:d;function i(a){return a instanceof SVGElement?h:g}function a(a,b){var c=a._tabIndexState,d=i(a);if(!c){var e={value:a.tabIndex,canTab:b};a._tabIndexState=e;b||(a.tabIndex=-1);Object.defineProperty(a,"tabIndex",{enumerable:!1,configurable:!0,get:function(){return e.canTab?e.value:-1},set:function(a){e.canTab&&typeof d==="function"&&d.call(this,a),e.value=a}})}else c.canTab!==b&&typeof d==="function"&&(d.call(a,b?c.value:-1),c.canTab=b)}e.exports=a}),null);
__d("FocusInertRegion.react",["React","react","setElementCanTab","useLayoutEffect_SAFE_FOR_SSR"],(function(a,b,c,d,e,f){var g;c=b("React");var h=c.useRef,i=g||(g=b("react")),j=i.unstable_Scope;function a(a){var c=a.children,d=a.disabled,e=d===void 0?!1:d,f=a.focusQuery,g=h(null);b("useLayoutEffect_SAFE_FOR_SSR")(function(){var a=g.current;if(f&&a!=null){a=a.DO_NOT_USE_queryAllNodes(f);if(a!==null)for(var c=0;c<a.length;c++){var d=a[c];b("setElementCanTab")(d,e)}}},[e,f]);return i.jsx(j,{ref:g,children:c})}e.exports=a}),null);
__d("getTabbableNodes",[],(function(a,b,c,d,e,f){function a(a,b){var c=document.activeElement,d=function(b,d,e){return e===c?!0:a(b,d,e)&&e.offsetWidth>0&&e.offsetHeight>0&&e.tabIndex!==-1&&window.getComputedStyle(e).visibility!=="hidden"};b=c?b.DO_NOT_USE_queryAllNodes(d):null;if(b===null)return[null,null,null,0,null];d=b[0];var e=b[b.length-1],f=b.indexOf(c),g=null;f!==-1&&(g=b[f]);return[b,d,e,f,g]}e.exports=a}),null);
__d("FocusManager.react",["getTabbableNodes"],(function(a,b,c,d,e,f){var g=!1,h=!1,i=!1;function j(){try{var a=document.createElement("div");a.addEventListener("focus",function(a){a.preventDefault(),a.stopPropagation()},!0);a.focus(Object.defineProperty({},"preventScroll",{get:function(){h=!0}}))}catch(a){}}function k(a){a=a.parentElement;var b=[],c=document.scrollingElement||document.documentElement;while(a&&a!==c){var d=a,e=d.offsetHeight;d=d.offsetWidth;(e<a.scrollHeight||d<a.scrollWidth)&&b.push([a,a.scrollTop,a.scrollLeft]);a=a.parentElement}c&&b.push([c,c.scrollTop,c.scrollLeft]);return b}function l(a){for(var b=0;b<a.length;b++){var c=a[b],d=c[0],e=c[1];c=c[2];d.scrollTop=e;d.scrollLeft=c}}function a(a,b,c,d,e){a=a!=null?c.DO_NOT_USE_queryFirstNode(a):null;a=a!=null?a:c.DO_NOT_USE_queryFirstNode(b);a!=null&&m(a,d,e)}function c(){return g}function m(a,b,c){if(a!==null){i||(i=!0,j());var d=a._tabIndexState;if(d&&d.canTab===!1)return;d=d?d.value:a.tabIndex;a.tabIndex=-1;var e=g;b=b||!1;try{g=c||!1;if(!b)n(a);else if(h)n(a,{preventScroll:!0});else{c=k(a);n(a);l(c)}}catch(a){}finally{g=e}a.tabIndex=d}}function d(a,c,d){a=b("getTabbableNodes")(a,c);c=a[0];var e=a[2],f=a[3];a=a[4];a!==null&&a!==e&&c&&m(c[f+1],d)}function f(a,c,d){a=b("getTabbableNodes")(a,c);c=a[0];var e=a[1],f=a[3];a=a[4];a!==null&&a!==e&&c&&m(c[f-1],d)}var n=function(a,b){(a.focus||HTMLElement.prototype.focus).call(a,b)};e.exports={focusElement:m,focusFirst:a,focusNext:d,focusPrevious:f,isFocusingWithoutUserIntent:c}}),null);
__d("FocusRegion.react",["ActiveFocusRegionUtilsContext","FocusManager.react","React","ReactEventHookPropagation","ReactFocusEvent.react","ReactKeyboardEvent.react","getTabbableNodes","react","setElementCanTab","useLayoutEffect_SAFE_FOR_SSR"],(function(a,b,c,d,e,f){var g,h=b("FocusManager.react").focusElement,i=b("FocusManager.react").focusFirst;d=b("React");var j=d.useCallback,k=d.useContext,l=d.useEffect,m=d.useMemo,n=d.useRef,o=b("ReactEventHookPropagation").stopEventHookPropagation,p=b("ReactFocusEvent.react").useFocusWithin,q=b("ReactKeyboardEvent.react").useKeyboard,r=g||(g=b("react"));function s(a,b,c){var d=document.activeElement;window.requestAnimationFrame(function(){document.activeElement===d&&h(a,b,c)})}var t=r.unstable_Scope,u=new Map();function a(a){var c=a.autoFocus,d=a.autoRecoverFocus,e=a.autoRestoreFocus,f=a.children,g=a.containFocus,x=a.disabled,y=a.firstFocusQuery,z=a.focusQuery,A=a.id,B=n(null),C=n(null),D=k(b("ActiveFocusRegionUtilsContext")),E=n(D===null&&e===!0&&x!==!0?document.activeElement:null),F=n(null);F.current===null&&(F.current={lastFocused:null,scope:null,restorationFocusRegionItem:null,triggeredFocusRegionItems:new Set()});var G=j(function(){if(D!=null){var a=D.getActiveFocusRegion(),b=F.current;if(a!==b){var c;b.restorationFocusRegionItem!==a&&!(a!=null&&a.lastFocused!=null&&((c=B.current)==null?void 0:c.containsNode(a.lastFocused)))&&(a!=null&&a.triggeredFocusRegionItems.add(b),b.restorationFocusRegionItem=a);(a===null||a!=null&&b!=null&&a.lastFocused!==b.lastFocused)&&D.setActiveFocusRegion(b)}}},[D]),H=n(null);a=j(function(a){B.current=a;F.current.scope=a;var b=H.current;b!==null&&(b!==A||x===!0)&&u["delete"](b);A!=null&&(a===null||x===!0?u["delete"](A):(H.current=A,u.set(A,a)))},[A,x]);var I=x!==!0&&d===!0;a=p(a,m(function(){return{onBeforeBlurWithin:function(a){var b=B.current;if(b!==null&&I&&z!=null){var c=a.target;a=b.DO_NOT_USE_queryAllNodes(function(a,b,d){return c===d||z(a,b,d)||y!=null&&y(a,b,d)});if(a===null)return;b=[];for(var d=0;d<a.length;d++){var e=a[d];if(e===c)break;b.push(e)}e=c._tabIndexState;C.current={detachedCanTab:e!=null&&e.canTab,recovery:b,prev:a}}},onAfterBlurWithin:function(){var a=B.current,c=C.current;C.current=null;var d=document.activeElement;if(a!==null&&I&&c!==null&&z!=null&&(d==null||d===document.body||!a.containsNode(d))){d=c.recovery;var e=c.prev,f=a.DO_NOT_USE_queryAllNodes(function(a,b,c){return z(a,b,c)||y!=null&&y(a,b,c)});if(f!==null&&d!==null){var g=new Set(f);e=new Set(e);var h=!0,i=!0;for(var j=d.length-1;j>=0;j--){var k=d[j];if(g.has(k)){var l=f.indexOf(k);l=l+1;if(l<f.length){l=f[l];if(!e.has(l)){c.detachedCanTab&&b("setElementCanTab")(l,!0);s(l,h,i);return}}c.detachedCanTab&&b("setElementCanTab")(k,!0);s(k,h,i);return}}l=y!=null?a.DO_NOT_USE_queryFirstNode(y):null;k=l!=null?l:a.DO_NOT_USE_queryFirstNode(z);k&&(c.detachedCanTab&&b("setElementCanTab")(k,!0),s(k,h,i))}}},onFocusWithin:function(a){o(a,"useFocusWithin"),F.current.lastFocused=a.target,G()}}},[I,y,z,G]));q(B,m(function(){return{onKeyDown:function(a){if(g!==!0||x===!0||a.key!=="Tab"||z==null||a.isDefaultPrevented())return;var b=B.current;b!==null&&(a.shiftKey?w(z,b,a,!0):v(z,b,a,!0))}}},[g,x,z]));d=j(function(){var a=B.current,b=document.activeElement;if(z!=null&&x!==!0&&a!==null&&c===!0&&(!b||!a.containsNode(b))){b=F.current.lastFocused;b!=null&&a.containsNode(b)?h(b,!0,!0):i(y,z,a,!0)}},[c,x,y,z]);b("useLayoutEffect_SAFE_FOR_SSR")(d,[d]);l(d,[d]);b("useLayoutEffect_SAFE_FOR_SSR")(function(){var a=F.current;return function(){var b,c,d=B.current,f=document.activeElement,g=E.current;E.current=null;b=(b=a)==null?void 0:b.triggeredFocusRegionItems;var i=(c=a)==null?void 0:c.restorationFocusRegionItem;(b==null?void 0:b.size)&&b.forEach(function(a){return a.restorationFocusRegionItem=i});a!=null&&i!=null&&(i.triggeredFocusRegionItems["delete"](a),(b==null?void 0:b.size)&&b.forEach(function(a){i.triggeredFocusRegionItems.add(a)}));c=D==null?void 0:D.getActiveFocusRegion();var j=c!=null?c.restorationFocusRegionItem:{lastFocused:g};c===a&&(D==null?void 0:D.setActiveFocusRegion(i));b=d!==null&&f!==null&&d.containsNode(f)||f==null||f===document.body;e===!0&&x!==!0&&b?window.requestAnimationFrame(function(){if((j==null?void 0:j.lastFocused)!=null){var b=!0,c=!0,d=document.activeElement;(d===null||d===document.body)&&h(j.lastFocused,b,c)}a=null}):a=null}},[x,e,D]);return r.jsx(t,{ref:a,id:A,children:f})}function c(a,b,c){a=u.get(a);if(a){a=a.DO_NOT_USE_queryFirstNode(b);if(a!==null){h(a,c);return a}}return null}function v(a,c,d,e){a=b("getTabbableNodes")(a,c);c=a[0];var f=a[1],g=a[2],i=a[3];a=a[4];if(a===null||c===null)return;a===g?e===!0&&(h(f),d.preventDefault(),d.stopPropagation()):(h(c[i+1]),d.preventDefault(),d.stopPropagation())}function w(a,c,d,e){a=b("getTabbableNodes")(a,c);c=a[0];var f=a[1],g=a[2],i=a[3];a=a[4];if(a===null||c===null)return;a===f?e===!0&&(h(g),d.preventDefault(),d.stopPropagation()):(h(c[i-1]),d.preventDefault(),d.stopPropagation())}e.exports={FocusRegion:a,focusRegionById:c}}),null);
__d("FocusWithinHandler.react",["React","ReactFocusEvent.react","react"],(function(a,b,c,d,e,f){var g;c=b("React");var h=c.useMemo,i=c.useRef,j=c.useState,k=b("ReactFocusEvent.react").useFocusWithin,l=g||(g=b("react")),m=l.unstable_Scope;function a(a){var b,c=a.children,d=a.onFocusChange,e=a.onFocusVisibleChange,f=a.onFocusWithin,g=a.onBlurWithin;a=a.testOnly;var n=i(null);b=j((b=a&&a.focus)!=null?b:!1);var o=b[0],p=b[1];a=j((b=a&&a.focusVisible)!=null?b:!1);b=a[0];var q=a[1],r=d?function(a){p(a),d(a)}:p,s=e?function(a){q(a),e(a)}:q;a=k(n,h(function(){return{onFocusWithin:function(a){f&&!o&&f(a)},onBlurWithin:function(a){g&&o&&g(a)},onFocusWithinChange:r,onFocusWithinVisibleChange:s}},[o,f,g,r,s]));return l.jsx(m,{ref:a,children:typeof c==="function"?c(o,b):c})}e.exports=a}),null);
__d("TabbableScopeQuery.react",[],(function(a,b,c,d,e,f){a=function(a,b){if(b.tabIndex===-1||b.disabled===!0)return!1;if(b.tabIndex===0||b.contentEditable===!0)return!0;if(a==="a"||a==="area")return b.href!=null&&b.href!==""&&b.rel!=="ignore";return a==="input"?b.type!=="hidden"&&b.type!=="file":a==="button"||a==="textarea"||a==="select"||a==="iframe"||a==="embed"};e.exports=a}),null);
__d("ReactComposerEvents",[],(function(a,b,c,d,e,f){a=Object.freeze({CHANGE:"change",INSTANCE_MOUNTED:"composer/instanceMounted/",ACTIVATE_ATTACHMENT:"composer/activateAttachment/",MENTION_INPUT_FOCUS:"composer/mentionInputFocused/",TEXT_PREFILL_BEFORE_BOOTLOAD:"composer/textPrefillBeforeBootload/",RERENDER_MENTION_INPUT:"reactComposer/rerenderMentionInput/",OPTIMISTIC_POSTING_STARTED:"composer/optimisticPostingStarted/",POST_FINALLY:"composer/postFinally/",POST_FAILED:"composer/postFailed/",POST_STARTED:"composer/postStarted/",OPTIMISTIC_POST_STARTED:"composer/optimisticPostStarted/",POST_SUCCEEDED:"composer/postSucceeded/",COMPOSER_RESET:"composer/reset/",COMPOSER_UNMOUNT:"composer/unmount/",SET_PREFILL_DATA:"reactComposer/setPrefillData/",RICH_TEXT_EDITOR_MOUNTED:"reactComposer/richTextEditorMounted/",SAVE_STARTED:"composer/saveStarted/",HIGHLIGHT_TOP_COMPOSER:"reactComposer/highlightTopComposer"});e.exports=a}),null);
__d("FeedComposerIDStore",["Arbiter","ReactComposerEvents","SubscriptionsHandler"],(function(a,b,c,d,e,f){"use strict";a={_composerID:null,_subscriptions:b("SubscriptionsHandler"),set:function(a){this._subscriptions=new(b("SubscriptionsHandler"))(),this._composerID=a,this._subscribeComposerResetEvent()},get:function(){if(!this._composerID)throw new Error("ID Store has not yet been initialized via set()");return this._composerID},_subscribeComposerResetEvent:function(){var a=this;if(!this._composerID)throw new Error("Composer ID cannot be null");var c=b("Arbiter").subscribeOnce(b("ReactComposerEvents").COMPOSER_RESET+this._composerID,function(b,c){c&&c.newComposerID&&(a._composerID=c.newComposerID,a._subscribeComposerResetEvent())});this._subscriptions.addSubscriptions(c)}};e.exports=a}),null);
__d("ReactComposerAttachmentActionType",["keyMirrorRecursive"],(function(a,b,c,d,e,f){e.exports=b("keyMirrorRecursive")({REGISTER_ATTACHMENT:null,INITIALIZE_ATTACHMENT:null,SELECT_ATTACHMENT_LOGGING_ONLY_DO_NOT_USE:null,SELECT_ATTACHMENT:null,SET_ATTACHMENT_MARKUP:null,SET_INITIALIZED:null,SET_BOOTLOADED:null,SET_BOOTSTRAPPED:null,SET_CONTENT_MULTI_SHARE:null,UPLOAD_ATTACHMENT:null},"ReactComposerAttachmentActionType")}),null);
__d("ReactComposerMediaUploadType",[],(function(a,b,c,d,e,f){e.exports={PHOTO:"PHOTO",VIDEO:"VIDEO"}}),null);
__d("ReactComposerScrapedAttachmentActionType",["keyMirrorRecursive"],(function(a,b,c,d,e,f){e.exports=b("keyMirrorRecursive")({ATTACHMENT_SCRAPE_ENABLED:null,ATTACHMENT_PERMISSIVE_MATCH_SETTED:null,ATTACHMENT_SCRAPE_INTENDED:null,ATTACHMENT_SCRAPED:null,ATTACHMENT_SCRAPE_CLEARED:null,ATTACHMENT_CAROUSEL_UPLOAD:null,ATTACHMENT_SELECT_COLLECTION:null,ATTACHMENT_SHARE_SELECTED:null,ATTACHMENT_TITLE_EDITED:null,ATTACHMENT_DESCRIPTION_EDITED:null,ATTACHMENT_IMAGE_DESELECTED:null,ATTACHMENT_BREAKING_CONFIG_SET:null,ATTACHMENT_CLEAR_SPINNER:null},"ReactComposerScrapedAttachmentActionType")}),null);
__d("ReactComposerIDGenerator",["ReactComposerConstants","uniqueID"],(function(a,b,c,d,e,f){"use strict";a={getID:function(){return b("ReactComposerConstants").ID_PREFIX+b("uniqueID")()},isComposerID:function(a){return!!a&&a.startsWith(b("ReactComposerConstants").ID_PREFIX)}};e.exports=a}),null);
__d("ReactComposerLoggingQueue",["invariant","Bootloader","killswitch","requireWeak"],(function(a,b,c,d,e,f,g){var h=null;b("requireWeak")("ReactComposerLoggingStore",function(a){h=a});var i=[];a={add:function(a){if(a&&a.suppressWaterfallLogging)return;a&&a.composerID||g(0,1573);if(h&&h.isActivated(a.composerID))return;i.push(a)},initBootload:function(a,c,d,e){b("Bootloader").loadModules(["ComposerXSessionIDs","ComposerXMarauderLogger","ReactComposerPerfLogger","ReactComposerLoggingStore"],function(g,i,j,f){b("killswitch")("COMPOSER_LAZY_INITIALIZE_SESSION_ID")&&g.resetSessionID(a),i.registerComposer(c,d,e),j.registerComposer(c,e.targetType,e.ref,d),f.activate(a)},"ReactComposerLoggingQueue")},pop:function(){return i.shift()},getLength:function(){return i.length}};e.exports=a}),null);
__d("ReactComposerDispatcher",["Dispatcher_DEPRECATED","ReactComposerLoggingQueue","ReactComposerNestedActionDispatchTypedLogger"],(function(a,b,c,d,e,f){a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){var b;b=a.call(this)||this;b.$ReactComposerDispatcher1=[];return b}var d=c.prototype;d.dispatch=function(c){if(this.isDispatching())new(b("ReactComposerNestedActionDispatchTypedLogger"))().setOuterActionType(this.$ReactComposerDispatcher2.type).setInnerActionType(c.type).setStack(new Error().stack).log(),this.$ReactComposerDispatcher1.push(c);else{this.$ReactComposerDispatcher2=c;a.prototype.dispatch.call(this,c);delete this.$ReactComposerDispatcher2;if(this.$ReactComposerDispatcher1.length>0){var d=this.$ReactComposerDispatcher1.shift();this.dispatch(d)}}b("ReactComposerLoggingQueue").add(c)};return c}(b("Dispatcher_DEPRECATED"));e.exports=new a()}),null);
__d("ReactComposerFocusActionTypes",["keyMirror"],(function(a,b,c,d,e,f){"use strict";e.exports=b("keyMirror")({SUBSCRIBE:null,UNSUBSCRIBE:null,FOCUS_ACQUIRED:null,FOCUS_LOST:null})}),null);
__d("ReactComposerActionTypes",["keyMirrorRecursive"],(function(a,b,c,d,e,f){e.exports=b("keyMirrorRecursive")({COMPOSER_ENTRY:null,COMPOSER_CANCEL:null,COMPOSER_NAVIGATE_AWAY_ATTEMPT:null,COMPOSER_SHARESHEET_POST_CLICKED:null,INIT_CONFIG:null,PAGES_IG_PHOTO_UPLOAD_STARTED:null,PAGES_JOB_AUTOCONVERT_STARTED:null,PAGES_OFFER_AUTOCONVERT_STARTED:null,POST_ERROR:null,POST_STARTED_LOGGING_ONLY_DO_NOT_USE:null,POST_STARTED:null,POST_INTENDED:null,POST_SUCCEEDED:null,POST_FINALLY:null,POST_PREPROCESSING:null,PUBLISH_STARTED:null,PUBLISH_SUCCEEDED:null,COMPOSER_RESET:null,EXPAND_SPROUTS:null,COLLAPSE_SPROUTS:null,FEATURE_INTENT:null,FEATURE_DONE:null,FEATURE_CANCEL:null,FOLDER_DROPPED:null,SCHEDULE:null,DRAFT:null,SAVE_STARTED:null,SET_LOGGED_SPROUT_PROMOTION_VIEW:null,SET_FINISHED_SPROUT_PROMOTION:null,SET_QUEUE_FINISHED_SPROUT_PROMOTION:null,SPROUT_VIEW_UPDATE:null,SET_IS_RUNNING_INTERCEPTION:null},"ReactComposerActionTypes")}),null);
__d("ReactComposerOptimisticPostingActionType",["keyMirrorRecursive"],(function(a,b,c,d,e,f){e.exports=b("keyMirrorRecursive")({START_OPTIMISTICALLY_POSTING:null,FINISH_OPTIMISTICALLY_POSTING:null},"ReactComposerOptimisticPostingActionType")}),null);
__d("ReactComposerStoreBase",["EventEmitter","ReactComposerActionTypes","ReactComposerDispatcher","ReactComposerEvents"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(c,a);function c(c,d){var e;e=a.call(this)||this;e.$ReactComposerStoreBase1=c;e.$ReactComposerStoreBase2=new Map();e.$ReactComposerStoreBase3=b("ReactComposerDispatcher");e.$ReactComposerStoreBase4=e.$ReactComposerStoreBase3.register(function(a){switch(a.type){case b("ReactComposerActionTypes").COMPOSER_RESET:e.__cleanup(a);break}d(a)});return e}var d=c.prototype;d.getComposerData=function(a){var b=this.$ReactComposerStoreBase2.get(a);b||(b=this.$ReactComposerStoreBase1(),this.$ReactComposerStoreBase2.set(a,b));return b};d.clearComposerData=function(a){this.$ReactComposerStoreBase2.set(a,this.$ReactComposerStoreBase1())};d.addChangeListener=function(c){return a.prototype.addListener.call(this,b("ReactComposerEvents").CHANGE,c)};d.addListener=function(b,c,d){if(arguments.length===1&&typeof b==="function")return this.addChangeListener(b);else return a.prototype.addListener.apply(this,arguments)};d.emitChange=function(a){this.emit(b("ReactComposerEvents").CHANGE,{composerID:a})};d.getDispatchToken=function(){return this.$ReactComposerStoreBase4};d.getDispatcher=function(){return this.$ReactComposerStoreBase3};d.validateAction=function(a,b){b=[].concat(b);var c=b.map(function(b){if(a[b]===void 0)throw new Error("Action missing field: "+b);return a[b]});return b.length===1?c[0]:c};d.__cleanup=function(a){this.clearComposerData(a.composerID),this.emitChange(a.composerID)};return c}(b("EventEmitter"));e.exports=a}),null);
__d("ReactComposerActionStore",["Arbiter","AsyncResponse","ReactComposerActionTypes","ReactComposerEvents","ReactComposerOptimisticPostingActionType","ReactComposerStoreBase"],(function(a,b,c,d,e,f){a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(c,d){c=c?c:function(){return null};var e;c=a.call(this,c,function(a){if(!(e&&e.__shouldIgnoreAction(a)))switch(a.type){case b("ReactComposerActionTypes").POST_STARTED:e&&e.$ReactComposerActionStore2(a);break;case b("ReactComposerActionTypes").POST_INTENDED:e&&e.$ReactComposerActionStore3(a);break;case b("ReactComposerOptimisticPostingActionType").START_OPTIMISTICALLY_POSTING:e&&e.$ReactComposerActionStore4(a);break;case b("ReactComposerActionTypes").POST_SUCCEEDED:e&&e.$ReactComposerActionStore5(a);break;case b("ReactComposerActionTypes").POST_ERROR:e&&e.$ReactComposerActionStore6(a);break;case b("ReactComposerActionTypes").POST_FINALLY:e&&e.$ReactComposerActionStore7(a);break;case b("ReactComposerActionTypes").POST_PREPROCESSING:e&&e.$ReactComposerActionStore8(a);break;case b("ReactComposerActionTypes").SAVE_STARTED:e&&e.$ReactComposerActionStore9(a);break;default:}d&&d(a)})||this;e=babelHelpers.assertThisInitialized(c);c.$ReactComposerActionStore1=new Set();return c}var d=c.prototype;d.registerComposerID=function(a){this.$ReactComposerActionStore1.add(a)};d.$ReactComposerActionStore2=function(a){var c=this.validateAction(a,"composerID");this.__onPostStarted&&this.__onPostStarted(a);b("Arbiter").inform(b("ReactComposerEvents").POST_STARTED+c)};d.$ReactComposerActionStore4=function(a){a=this.validateAction(a,"composerID");b("Arbiter").inform(b("ReactComposerEvents").OPTIMISTIC_POST_STARTED+a)};d.$ReactComposerActionStore3=function(a){this.validateAction(a,["composerID","actorID","config","targetID"]),(!this.__canPost||this.__canPost(a))&&this.$ReactComposerActionStore2(a)};d.$ReactComposerActionStore5=function(a){var c=this.validateAction(a,"composerID");this.__onPostSucceeded&&this.__onPostSucceeded(a);b("Arbiter").inform(b("ReactComposerEvents").POST_SUCCEEDED+c)};d.$ReactComposerActionStore6=function(a){var c=this.validateAction(a,"composerID");b("Arbiter").inform(b("ReactComposerEvents").POST_FAILED+c);if(this.__onPostError)return this.__onPostError(a);a.response&&b("AsyncResponse").defaultErrorHandler(a.response)};d.$ReactComposerActionStore7=function(a){this.__onPostFinally&&this.__onPostFinally(a),b("Arbiter").inform(b("ReactComposerEvents").POST_FINALLY)};d.$ReactComposerActionStore8=function(a){this.__onPostPreprocessing&&this.__onPostPreprocessing(a)};d.$ReactComposerActionStore9=function(a){var c=this.validateAction(a,"composerID");this.__onSaveStarted&&this.__onSaveStarted(a);b("Arbiter").inform(b("ReactComposerEvents").POST_STARTED+c)};d.__shouldIgnoreAction=function(a){a=this.validateAction(a,"composerID");return!this.$ReactComposerActionStore1.has(a)};return c}(b("ReactComposerStoreBase"));e.exports=a}),null);
__d("ReactComposerSproutsDisplayState",["keyMirrorRecursive"],(function(a,b,c,d,e,f){e.exports=b("keyMirrorRecursive")({INLINE:null,EXPANDED:null},"ReactComposerSproutsDisplayState")}),null);
__d("SproutConfigConstants",[],(function(a,b,c,d,e,f){"use strict";a={MAX_INLINE_SPROUTS_COUNT:3};e.exports=a}),null);
__d("ReactComposerStore",["Bootloader","ReactComposerActionStore","ReactComposerActionTypes","ReactComposerAttachmentActionType","ReactComposerInit","ReactComposerScrapedAttachmentActionType","ReactComposerSproutsDisplayState","SproutConfigConstants"],(function(a,b,c,d,e,f){a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){var c,d;c=a.call(this,function(){return{isActive:!1,orderedSprouts:[],orderedInlineSprouts:[],serverErrorResponse:null,posting:!1,postSucceeded:!1,publishing:!1,rankerRequestID:null,sproutSurface:null,ref:null,targetType:null,sproutsDisplayState:b("ReactComposerSproutsDisplayState").INLINE,scheduledPublishTime:null,hasLoggedSproutPromotionView:!1,hasFinishedSproutPromotion:!1}},function(a){switch(a.type){case b("ReactComposerActionTypes").INIT_CONFIG:d&&d.$ReactComposerStore1(a);break;case b("ReactComposerActionTypes").DRAFT:d&&d.$ReactComposerStore2(a);break;case b("ReactComposerActionTypes").PUBLISH_STARTED:d&&d.$ReactComposerStore3(a);break;case b("ReactComposerAttachmentActionType").SELECT_ATTACHMENT_LOGGING_ONLY_DO_NOT_USE:d&&d.$ReactComposerStore4(a);break;case b("ReactComposerAttachmentActionType").SELECT_ATTACHMENT:d&&d.$ReactComposerStore4(a);break;case b("ReactComposerActionTypes").EXPAND_SPROUTS:d&&d.$ReactComposerStore5(a);break;case b("ReactComposerActionTypes").COLLAPSE_SPROUTS:d&&d.$ReactComposerStore6(a);break;case b("ReactComposerAttachmentActionType").UPLOAD_ATTACHMENT:case b("ReactComposerScrapedAttachmentActionType").ATTACHMENT_SCRAPED:d&&d.$ReactComposerStore7(a);break;case b("ReactComposerActionTypes").SCHEDULE:d&&d.$ReactComposerStore8(a);break;case b("ReactComposerActionTypes").SET_LOGGED_SPROUT_PROMOTION_VIEW:d&&d.$ReactComposerStore9(a);break;case b("ReactComposerActionTypes").SET_FINISHED_SPROUT_PROMOTION:d&&d.$ReactComposerStore10(a);break;case b("ReactComposerActionTypes").SET_QUEUE_FINISHED_SPROUT_PROMOTION:d&&d.$ReactComposerStore11(a);break;case b("ReactComposerActionTypes").PAGES_IG_PHOTO_UPLOAD_STARTED:d&&d.handleIgPhotoUploadStarted(a);break;case b("ReactComposerActionTypes").PAGES_JOB_AUTOCONVERT_STARTED:d&&d.$ReactComposerStore12(a);break;case b("ReactComposerActionTypes").PAGES_OFFER_AUTOCONVERT_STARTED:d&&d.$ReactComposerStore13(a);break;case b("ReactComposerAttachmentActionType").SET_BOOTLOADED:d&&d.$ReactComposerStore14(a);break;case b("ReactComposerActionTypes").SET_IS_RUNNING_INTERCEPTION:d&&d.$ReactComposerStore15(a);break}})||this;d=babelHelpers.assertThisInitialized(c);return c}var d=c.prototype;d.$ReactComposerStore8=function(a){var b=this.getComposerData(a.composerID);b.unpublishedContentType="SCHEDULED";b.scheduledPublishTime=a.scheduleDate};d.$ReactComposerStore2=function(a){a=this.getComposerData(a.composerID);a.unpublishedContentType="DRAFT";a.scheduledPublishTime=null};d.getScheduledPublishTime=function(a){return this.getComposerData(a).scheduledPublishTime};d.getServerErrorResponse=function(a){return this.getComposerData(a).serverErrorResponse};d.getRef=function(a){return this.getComposerData(a).ref};d.getTargetType=function(a){return this.getComposerData(a).targetType};d.getOrderedSprouts=function(a){return this.getComposerData(a).orderedSprouts};d.getDisplayedSprouts=function(a){a=this.getComposerData(a);return a.sproutsDisplayState==b("ReactComposerSproutsDisplayState").EXPANDED?a.orderedSprouts:a.orderedInlineSprouts};d.getRankerRequestID=function(a){return this.getComposerData(a).rankerRequestID};d.isSaving=function(a){return Boolean(this.getComposerData(a).saving)};d.isPosting=function(a){return this.getComposerData(a).posting};d.hasPostSucceeded=function(a){return this.getComposerData(a).postSucceeded};d.isActive=function(a){return this.getComposerData(a).isActive};d.isPublishing=function(a){return this.getComposerData(a).publishing};d.getSproutsDisplayState=function(a){return this.getComposerData(a).sproutsDisplayState};d.getSproutSurface=function(a){a=this.getComposerData(a);return a.sproutsDisplayState===b("ReactComposerSproutsDisplayState").INLINE?a.inlineSproutSurface:a.sproutSurface};d.hasLoggedSproutPromotionView=function(a){return this.getComposerData(a).hasLoggedSproutPromotionView};d.hasFinishedSproutPromotion=function(a){return this.getComposerData(a).hasFinishedSproutPromotion};d.getClearSproutPromotionOnNewComposer=function(a){return this.getComposerData(a).clearSproutPromotionOnNewComposer};d.isUploading=function(a){return this.getComposerData(a).uploading};d.shouldShowVoiceSwitcherNux=function(a){return this.getComposerData(a).shouldShowVoiceSwitcherNux};d.handleIgPhotoUploadStarted=function(a){var b=this.validateAction(a,"composerID");a=this.getComposerData(a.composerID);a.posting=!0;this.emitChange(b)};d.__shouldIgnoreAction=function(a){return!1};d.__onPostStarted=function(a){var b=this.validateAction(a,"composerID");a=this.getComposerData(a.composerID);a.posting=!0;this.emitChange(b)};d.__onPostPreprocessing=function(a){this.__onPostStarted(a)};d.__onPostSucceeded=function(a){var b=this.validateAction(a,"composerID");a=this.getComposerData(a.composerID);a.serverErrorResponse=null;a.posting=!1;a.postSucceeded=!0;a.publishing=!1;this.emitChange(b)};d.__onPostError=function(a){var b=this.validateAction(a,"composerID"),c=this.getComposerData(a.composerID);c.serverErrorResponse=a.response;c.posting=!1;c.postSucceeded=!1;c.publishing=!1;this.emitChange(b)};d.__onPostFinally=function(a){var b=this.validateAction(a,"composerID");a=this.getComposerData(a.composerID);a.posting=!1;a.publishing=!1;a.saving=!1;this.emitChange(b)};d.__onSaveStarted=function(a){var b=this.validateAction(a,"composerID");a=this.getComposerData(a.composerID);a.saving=!0;this.emitChange(b)};d.$ReactComposerStore1=function(a){var c=this.validateAction(a,["composerID","loggingConfig","activateOnInit"]),d=c[0],e=c[1];c=c[2];var f=this.getComposerData(d);f.ref=e.ref;f.composerVersion=e.composerVersion;f.targetType=e.targetType;f.rankerRequestID=e.rankerRequestID||null;f.sproutSurface=e.sproutSurface||null;f.inlineSproutSurface=e.inlineSproutSurface||null;f.lazySproutsExpand=a.lazySproutsExpand||!1;f.actorType=e.actorType||"other";f.composerFlow=e.composerFlow||"unknown";f.composerLayout=e.composerLayout||"unknown";f.entryPoint=e.entryPoint||"unknown";f.composerLocation=e.composerLocation||"unknown";var g=e.actorID,h=e.isActorAPage;f.actorID=g?g:null;f.isActorAPage=h?h:!1;h=(g=e.destinationsConfig)==null?void 0:g.destinations;if(h){e=!1;g=!1;var i=!1,j=!1;h.map(function(a){switch(a.type){case"story":e=!0;break;case"groups":i=!0;break;case"instagram":g=!0;j=a.extra_config.instagram.isEnabled==!0;break;default:break}});f.pageComposerDestinationsConfig={isSharesheetEnabled:!0,showStorySection:e,showInstagramSection:g,showGroupSection:i,isInstagramAuthenticated:j}}f.orderedSprouts=[];f.orderedInlineSprouts=[];h=a.sproutsConfig;a=a.promotedSprout;if(h){a&&(f.orderedSprouts.push(a),f.orderedInlineSprouts.push(a));for(var k in h)h[k].enabled&&k!==a&&(f.orderedSprouts.push(k),f.orderedInlineSprouts.length<b("SproutConfigConstants").MAX_INLINE_SPROUTS_COUNT&&h[k].inline&&f.orderedInlineSprouts.push(k))}c&&this.$ReactComposerStore16(d);this.emitChange(d)};d.$ReactComposerStore9=function(a){var b=this.validateAction(a,"composerID");a=this.getComposerData(a.composerID);a.hasLoggedSproutPromotionView=!0;this.emitChange(b)};d.$ReactComposerStore10=function(a){var b=this.validateAction(a,"composerID");a=this.getComposerData(a.composerID);a.hasFinishedSproutPromotion=!0;a.clearSproutPromotionOnNewComposer=!0;this.emitChange(b)};d.$ReactComposerStore11=function(a){var b=this.validateAction(a,"composerID");a=this.getComposerData(a.composerID);a.clearSproutPromotionOnNewComposer=!0;this.emitChange(b)};d.$ReactComposerStore3=function(a){var b=this.validateAction(a,"composerID");a=this.getComposerData(a.composerID);a.publishing=!0;this.emitChange(b)};d.$ReactComposerStore12=function(a){var b=this.validateAction(a,"composerID");a=this.getComposerData(a.composerID);a.posting=!0;this.emitChange(b)};d.$ReactComposerStore13=function(a){var b=this.validateAction(a,"composerID");a=this.getComposerData(a.composerID);a.posting=!0;this.emitChange(b)};d.$ReactComposerStore7=function(a){var b=this.validateAction(a,"composerID"),c=this.getComposerData(a.composerID);c.uploading=a.uploading;this.emitChange(b)};d.$ReactComposerStore4=function(a){a=this.validateAction(a,"composerID");var c=this.getComposerData(a);c.lazySproutsExpand||(c.sproutsDisplayState=b("ReactComposerSproutsDisplayState").EXPANDED);this.$ReactComposerStore16(a);this.emitChange(a)};d.$ReactComposerStore5=function(a){a=this.validateAction(a,"composerID");var c=this.getComposerData(a);c.sproutsDisplayState=b("ReactComposerSproutsDisplayState").EXPANDED;this.emitChange(a)};d.$ReactComposerStore6=function(a){a=this.validateAction(a,"composerID");var c=this.getComposerData(a);c.sproutsDisplayState=b("ReactComposerSproutsDisplayState").INLINE;this.emitChange(a)};d.$ReactComposerStore14=function(a){var c=this.validateAction(a,"composerID"),d=this.getComposerData(c);a.id==="LIVING_ROOM"&&d.sproutsDisplayState===b("ReactComposerSproutsDisplayState").INLINE&&(d.sproutsDisplayState=b("ReactComposerSproutsDisplayState").EXPANDED,this.emitChange(c))};d.$ReactComposerStore15=function(a){a=this.validateAction(a,["composerID","isRunningInterception"]);var b=a[0];a=a[1];var c=this.getComposerData(b);c.isRunningInterception=a;this.emitChange(b)};d.isRunningInterception=function(a){return!!this.getComposerData(a).isRunningInterception};d.$ReactComposerStore16=function(a){var c=this.getComposerData(a);c.isActive||(c.isActive=!0,b("Bootloader").loadModules(["curry","Run","ReactComposerHandleUnsavedChanges","URI"],function(b,c,d,e){c.onBeforeUnload(b(d.handler,a,e.getNextURI())),c.onUnload(b(d.possiblyLogComposerCancelEvent,a)),c.onLeave(b(d.possiblyLogComposerCancelEvent,a))},"ReactComposerStore"))};d.__cleanup=function(a){window.setTimeout(b("ReactComposerInit").resetComposer.bind(null,a.composerID),0)};return c}(b("ReactComposerActionStore"));e.exports=new a()}),null);
__d("ReactComposerInit",["invariant","requireCond","Arbiter","React","ReactComposerEvents","ReactComposerIDGenerator","ReactComposerStore","ReactDOM","cr:1093979","ge","ifRequired"],(function(a,b,c,d,e,f,g){var h=b("React"),i={_isUnmounting:!1,instances:new Map(),changeProps:function(a,b,c){c===void 0&&(c=!1),i.changePropsWithoutReset(a,b),i.resetComposer(a,c)},changePropsWithoutReset:function(a,b){a=i._getCurrentInstance(a);a.props=b},normalizeComposerID:function(a){a.contextConfig.composerID||(a.contextConfig.composerID=b("ReactComposerIDGenerator").getID());return a.contextConfig.composerID},init:function(a,c,d){var e=i.normalizeComposerID(c);a={ComposerModule:a,props:c,container:d,hidden:!1};this._render(a);i.instances.set(e,a);b("Arbiter").inform(b("ReactComposerEvents").INSTANCE_MOUNTED+e)},initWithoutRendering:function(a,c,d){var e=i.normalizeComposerID(c);a={ComposerModule:a,props:c,container:d,hidden:!1};i.instances.set(e,a);b("Arbiter").inform(b("ReactComposerEvents").INSTANCE_MOUNTED+e)},_render:function(a){var c,d=a.ComposerModule,e=a.props;a=a.container;c=(c=b("cr:1093979"))!=null?c:h.Fragment;b("ReactDOM").render(h.jsx(c,{children:h.jsx(d,babelHelpers["extends"]({},e))}),a)},_createNewComposer:function(a,c,d){d===void 0&&(d=!0),a.props.config!==void 0&&a.props.config.sproutsPromotionConfig&&a.props.config.sproutsPromotionConfig.promotionID&&(b("ReactComposerStore").getClearSproutPromotionOnNewComposer(a.props.contextConfig.composerID)&&(a.props.config.sproutsPromotionConfig={})),a.props.config!==void 0&&a.props.config.pagesComposerNuxConfig&&b("ifRequired")("PagesComposerNuxUtils",function(b){a.props.config.pagesComposerNuxConfig=b.updatePagesComposerNuxConfig(a.props.contextConfig.composerID)}),a.props.contextConfig.composerID=b("ReactComposerIDGenerator").getID(),d&&(a.props.prefillConfig={}),i.init(a.ComposerModule,a.props,c)},resetComposer:function(a,c){c===void 0&&(c=!0);var d=i._getCurrentInstance(a);i.unmountInstance(a);d.hidden?d.container.parentNode&&d.container.parentNode.removeChild(d.container):i._createNewComposer(d,d.container,c);c=d.props.contextConfig.composerID;b("Arbiter").inform(b("ReactComposerEvents").COMPOSER_RESET+a,{newComposerID:c});return c},hideComposer:function(a){a=i._getCurrentInstance(a);a.container.style.display="none";a.hidden=!0},showComposer:function(a){a=i._getCurrentInstance(a);a.container.style.display="block";a.hidden=!1},hideAndReplaceComposer:function(a){var c=i._getCurrentInstance(a),d=c.container.cloneNode(!1);c.container.removeAttribute("id");c.container.parentNode&&c.container.parentNode.insertBefore(d,c.container);this.hideComposer(a);i._createNewComposer(c,d);b("Arbiter").inform(b("ReactComposerEvents").COMPOSER_RESET+a,{newComposerID:c.props.contextConfig.composerID})},isInstanceMounted:function(a){return!!i.instances.get(a)},unmountInstance:function(a){if(i.isInstanceMounted(a)&&!i._isUnmounting){var c=i._getCurrentInstance(a);c=c.props;if(c.config!==void 0&&c.config.dialogComposer&&c.config.dialogElementID!=null){c=b("ge")(c.config.dialogElementID);c!=null&&c.remove()}i._isUnmounting=!0;i._unmountReact(a);i._isUnmounting=!1;i.instances["delete"](a)}},_unmountReact:function(a){var c=i._getCurrentInstance(a);b("ReactDOM").unmountComponentAtNode(c.container);b("Arbiter").inform(b("ReactComposerEvents").COMPOSER_UNMOUNT+a);return c},_getCurrentInstance:function(a){var b=i.instances.get(a);b||g(0,2272,a);return b}};e.exports=i}),null);
__d("ReactComposerFocusActions",["ReactComposerDispatcher","ReactComposerFocusActionTypes","ReactComposerStore"],(function(a,b,c,d,e,f){"use strict";b("ReactComposerStore");a={subscribe:function(a,c,d){b("ReactComposerDispatcher").dispatch({composerID:a,type:b("ReactComposerFocusActionTypes").SUBSCRIBE,onFocusAcquiredCallback:c,onFocusLostCallback:d})},unsubscribe:function(a){b("ReactComposerDispatcher").dispatch({composerID:a,type:b("ReactComposerFocusActionTypes").UNSUBSCRIBE})},notifyFocusAcquired:function(a){b("ReactComposerDispatcher").dispatch({composerID:a,type:b("ReactComposerFocusActionTypes").FOCUS_ACQUIRED})},notifyFocusLost:function(a){b("ReactComposerDispatcher").dispatch({composerID:a,type:b("ReactComposerFocusActionTypes").FOCUS_LOST})}};e.exports=a}),null);
__d("ReactComposerFocusInit",["csx","invariant","DOM","DOMContainer.react","Parent","React","ReactDOM"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a={handler:function(a,c,d,e,f,g,j){var k=b("DOM").create("div"),l=a.parentNode;if(g){g=b("Parent").bySelector(a,"._3u13");g&&(l=g.parentNode.parentNode)}b("ReactDOM").render(i.jsx(f,{composerID:c,actorID:d,gks:e,ReactComposerFocusExtraConfigData:j,enableFocusBehavior:!0,children:i.jsx(b("DOMContainer.react"),{display:"block",children:a})}),k);l||h(0,3645);l.firstChild?l.replaceChild(k,l.firstChild):l.appendChild(k)},preload:function(){}};e.exports=a}),null);
__d("ReactFeedSproutsComposerX",["csx","cx","invariant","Arbiter","AsyncRequest","Bootloader","Button","CSS","DOM","Event","FeedComposerIDStore","FeedReactComposerBootloadPerfTypedLogger","LitestandComposer","React","ReactComposerAttachmentType","ReactComposerEvents","ReactComposerFocusActions","ReactComposerFocusInit","ReactComposerStoryArchiveIntroductionDialogGatedModule","ReactDOM","Run","SubscriptionsHandler","XReactFeedSproutsComposerXBootloadController","$"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=null,k=b("React"),l=b("ReactComposerStoryArchiveIntroductionDialogGatedModule").module,m=!0;a=function(){function a(a){var c=this;this.$35=function(a){if(!c.$9)return;c.$20&&b("Button").setEnabled(c.$20,c.$18.size!=0&&c.$16.value.length!=0);if(!c.$9.textEligibleForStory)return;a=c.$16.value.match(/\n/g)||[];c.$9.maxTextLengthForStory&&c.$16.value.length>c.$9.maxTextLengthForStory||c.$9.maxLinesForStory&&a.length>=c.$9.maxLinesForStory?(c.$24&&b("CSS").addClass(c.$24,"_3560"),c.$18["delete"]("STORIES")&&(c.$24&&b("CSS").removeClass(c.$24,"_1sfg"),c.$19.add("STORIES"))):(c.$24&&b("CSS").removeClass(c.$24,"_3560"),c.$19["delete"]("STORIES")&&(c.$24&&b("CSS").addClass(c.$24,"_1sfg"),c.$18.add("STORIES")));c.$20&&b("Button").setEnabled(c.$20,c.$18.size!=0&&c.$16.value.length!=0)};this.$28=function(a){if(!c.$9||!c.$9.sharingSpacesDestinationPicker&&!c.$9.oneStepDestinationPicker)return!0;c.$20&&b("Button").setEnabled(c.$20,!1);if(c.$18&&c.$18.has("STORIES")&&c.$21){a={composerID:c.$3,targetID:c.$15,actorID:c.$1,text:c.$16.value,successHandler:c.$27};c.$21.postToStory(a)}return c.$18&&c.$18.has("TIMELINE")?!0:!1};this.$32=function(a){a=a.getTarget();var d=null;while(a){if(a.nodeType===1&&a.nodeName==="A"){d=a;break}a=a.parentNode}d!==null||i(0,2217);a=b("CSS").hasClass(d,"._5qtn");if(a)return;c.$11.forEach(function(a){return b("CSS").removeClass(a,"_5qtn")});b("CSS").addClass(d,"_5qtn");a=b("DOM").find(c.$10,"._559p");var e=b("DOM").find(c.$10,"._559q");switch(d.getAttribute("data-attachment-type")){case b("ReactComposerAttachmentType").STATUS:b("CSS").hide(e);b("CSS").show(a);break;case b("ReactComposerAttachmentType").MEDIA:case b("ReactComposerAttachmentType").LIVE_VIDEO:b("CSS").show(e);b("CSS").hide(a);break;case b("ReactComposerAttachmentType").ALBUM:c.$9&&c.$9.albumTabUsesSelector&&c.$36();break;case b("ReactComposerAttachmentType").POST_TO_GROUP:b("Bootloader").loadModules(["XReactComposerPostToGroupLoggingODSController","ReactComposerPostToGroupLoggingEvent"],function(a,c){a=a.getURIBuilder().setString("event",c.CLICK_OUTER_TAB).getURI();new(b("AsyncRequest"))(a).send()},"ReactFeedSproutsComposerX");break}};this.$26=function(a){c.$9&&c.$9.lazySproutsExpand||c.$37();if(c.$2||!c.$25)return;c.$21&&c.$21.bootload();c.$17=Date.now();c.$2=!0;a=b("XReactFeedSproutsComposerXBootloadController").getURIBuilder().setString("composer_id",c.$3).setString("target_id",c.$15).setEnum("composer_type",c.$4).setString("friend_list_id",c.$6).getURI();new(b("AsyncRequest"))(a).send()};this.$31=function(){b("CSS").removeClass(c.$10,"_4qr4"),b("CSS").addClass(c.$10,"_4a8c")};this.$30=function(){c.$31(),c.$16.value="",b("CSS").removeClass(c.$10,"_2-q9")};this.$29=function(){c.$14.release()};this.$27=function(){c.$20&&b("Button").setEnabled(c.$20,!0),b("Arbiter").inform(b("ReactComposerEvents").POST_SUCCEEDED+c.$3),c.$30(),c.$18&&c.$18.has("STORIES")&&m&&(l&&(b("ReactDOM").render(k.jsx(l,{}),b("DOM").create("div")),m=!1))};this.$22=!1;this.$1=a.actorID;this.$10=a.root;this.$3=a.composerID;this.$15=a.targetID;this.$4=a.composerType;this.$6=a.friendListID;this.$7=a.largeTextThreshold;this.$9=a.gks;this.$21=a.jsModules.postModule;this.$25=a.loadReact;this.$8=!1;this.$2=!1;this.$5=b("DOM").find(this.$10,"form");this.$16=b("DOM").find(this.$10,"._3en1");this.$13=b("DOM").find(this.$10,"._16ve");this.$18=new Set();this.$19=new Set();b("FeedComposerIDStore").set(this.$3);a.isBOCComposer||b("LitestandComposer").initComposer(a.composerID);this.$14=new(b("SubscriptionsHandler"))();this.$14.addSubscriptions(b("Event").listen(this.$16,"focus",this.$26),b("Event").listen(this.$10,"click",this.$26),b("Event").listen(this.$5,"success",this.$27),b("Event").listen(this.$5,"submit",this.$28),b("Arbiter").subscribeOnce("ReactFeedComposerXBootloader/bootload/"+this.$3,function(){new(b("FeedReactComposerBootloadPerfTypedLogger"))().setBootloadDurationMillis(Date.now()-c.$17).log(),c.$29()}),b("Arbiter").subscribeOnce("ReactFeedComposerXBootloader/selectcomposer/"+this.$3,this.$26),b("Arbiter").subscribe("ReactComposerFocus/reset/"+this.$3,this.$30),b("Arbiter").subscribe("ReactComposerFocus/collapse/"+this.$3,this.$31),b("Arbiter").subscribe(b("ReactComposerEvents").TEXT_PREFILL_BEFORE_BOOTLOAD+this.$3,function(a,b){c.$16.value=b,c.$16.selectionEnd=0}),b("Arbiter").subscribe("ReactFeedSproutsComposerXBody/onDrop",this.$26));this.$11=b("DOM").scry(this.$10,"._4-h7");this.$11.forEach(function(a){return c.$14.addSubscriptions(b("Event").listen(a,"click",c.$32))});this.$12=b("DOM").scry(this.$10,"._m_1");this.$12.forEach(function(a){return c.$14.addSubscriptions(b("Event").listen(a,"click",function(){c.$33(a)}))});var d=b("DOM").scry(this.$10,"._2mo4");d.length===1&&this.$14.addSubscriptions(b("Event").listen(d[0],"click",function(){if(c.$8)return;c.$8=!0;b("Arbiter").subscribeOnce("ReactFeedComposerXBootloader/bootload/"+c.$3,function(a,d){b("Bootloader").loadModules(["LiveVideoBroadcastUtils"],function(a){a.startPreviewUI(d.contextConfig,d.config),c.$8=!1},"ReactFeedSproutsComposerX")});b("Bootloader").loadModules(["LiveVideoBroadcastUtils"],function(){},"ReactFeedSproutsComposerX")}));this.$9&&(this.$9.sharingSpacesDestinationPicker||this.$9.oneStepDestinationPicker)&&this.$34();d=(d=a.container)!=null?d:b("$")("feedx_sprouts_container");var e=a.reactComposerFocusExtraConfigData;e&&e.showDialogForP2PAdminsMetadata&&e.showDialogForP2PAdminsMetadata.showDialogForP2PAdmins&&a.jsModules.P2PNewAdminComposerFocus?b("ReactComposerFocusInit").handler(d,this.$3,this.$1,this.$9,a.jsModules.P2PNewAdminComposerFocus,!1,a.reactComposerFocusExtraConfigData):a.jsModules&&a.jsModules.composerFocus&&b("ReactComposerFocusInit").handler(d,this.$3,this.$1,this.$9,a.jsModules.composerFocus,!1,a.reactComposerFocusExtraConfigData);a.isBOCComposer&&(this.$26(),b("ReactComposerFocusActions").notifyFocusAcquired(this.$3),b("Arbiter").subscribeOnce(b("ReactComposerEvents").OPTIMISTIC_POSTING_STARTED+this.$3,function(){j&&j.sendMessage({compatAction:"submitting-post"})}),b("Arbiter").subscribeOnce(b("ReactComposerEvents").POST_SUCCEEDED+this.$3,function(){j&&j.sendMessage({compatAction:"hide-toast"}),j&&j.sendMessage({compatAction:"dialog-hide"})}));b("Run").onLeave(this.$29)}var c=a.prototype;c.$36=function(){var a=this,c=b("DOM").find(this.$10,"._559p"),d=b("DOM").find(this.$10,"._559q");b("Arbiter").subscribeOnce("ReactFeedComposerXBootloader/bootload/"+this.$3,function(){b("Bootloader").loadModules(["ReactComposerCollectionsActions","ReactComposerLoggingName"],function(b,c){b.showCollectionsSelector(a.$3,c.ALBUM_TAB_SELECTOR)},"ReactFeedSproutsComposerX"),a.$29()});b("CSS").show(d);b("CSS").hide(c)};c.$33=function(a,c){c=a.getAttribute("data-sprout-tagger-id");if(c){var d=b("DOM").find(this.$13,"._16vl");d=b("DOM").find(d,'*[data-sprout-tagger-id="'+c+'"]');b("CSS").addClass(d,"_30lm");this.$13.setAttribute("data-selected-sprout-id",c)}else b("CSS").matchesSelector(a,"._1gr3")&&(this.$9&&this.$9.lazySproutsExpand&&this.$37())};c.$34=function(){var a=this;this.$23=b("DOM").scry(this.$10,"._3h0d")[0];this.$14.addSubscriptions(b("Event").listen(this.$16,"input",this.$35));this.$20=b("DOM").find(this.$10,"._ej1");this.$20&&b("Button").setEnabled(this.$20,!1);var c=b("DOM").scry(this.$10,"._66-n");c.forEach(function(b){return a.$38(b)});this.$23&&this.$14.addSubscriptions(b("Event").listen(this.$23,"click",function(){a.$39()}));this.$9&&this.$9.defaultDestination==="STORIES"?this.$18.add("STORIES"):this.$18.add("TIMELINE")};c.$39=function(a){this.$22=!0};c.$38=function(a){var c=this;a.getAttribute("data-destination")=="STORIES"&&(this.$24=a,this.$9&&!this.$9.textEligibleForStory&&b("CSS").addClass(a,"_3560"));this.$14.addSubscriptions(b("Event").listen(a,"click",function(){c.$40(a)}))};c.$40=function(a,c){if(this.$22){this.$22=!1;return}b("CSS").toggleClass(a,"_1sfg");c=a.dataset.destination;this.$18.has(c)?this.$18["delete"](c):this.$18.add(c);this.$20&&b("Button").setEnabled(this.$20,this.$18.size!=0&&this.$16.value.length!=0)};c.$37=function(){b("CSS").addClass(this.$10,"_4qr4"),b("CSS").removeClass(this.$10,"_4a8c")};return a}();e.exports=a}),null);
__d("ReactFeedSproutsComposerXStoryPost",["BanzaiODS","Bootloader","ComposerStoryCreateMutationWebGraphQLMutation","WebGraphQLLegacyHelper","XWebGraphQLMutationController","uuid"],(function(a,b,c,d,e,f){"use strict";a={bootload:function(){b("Bootloader").loadModules(["ReactComposerAsyncRequest"],function(){},"ReactFeedSproutsComposerXStoryPost")},postToStory:function(a){var c=b("ComposerStoryCreateMutationWebGraphQLMutation").__getDocID(),d=b("WebGraphQLLegacyHelper").getURI({controller:b("XWebGraphQLMutationController"),docID:c});c=[{stories:{self:{target_id:a.targetID}}}];var e={actor_id:a.actorID,client_mutation_id:b("uuid")(),source:"WWW",audiences:c,message:{text:a.text,ranges:[]}};b("Bootloader").loadModules(["ReactComposerAsyncRequest"],function(c){c=new c(a.composerID,d).setHandler(a.successHandler).setData({variables:JSON.stringify({client_mutation_id:b("uuid")(),actor_id:a.actorID,input:e})});c.send();b("BanzaiODS").bumpEntityKey(2966,"webgraphml_publish","hit")},"ReactFeedSproutsComposerXStoryPost")}};e.exports=a}),null);
__d("ReactComposerFocusStore",["ReactComposerFocusActionTypes","ReactComposerStoreBase"],(function(a,b,c,d,e,f){"use strict";a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;c=a.call(this,function(){return{focusConfig:{},isFocused:!1}},function(a){if(!d)return;switch(a.type){case b("ReactComposerFocusActionTypes").SUBSCRIBE:d.$ReactComposerFocusStore1(a.composerID,a.onFocusAcquiredCallback,a.onFocusLostCallback);d.emitChange(a.composerID);break;case b("ReactComposerFocusActionTypes").UNSUBSCRIBE:d.$ReactComposerFocusStore2(a.composerID);d.emitChange(a.composerID);break;case b("ReactComposerFocusActionTypes").FOCUS_ACQUIRED:d.$ReactComposerFocusStore3(a.composerID);d.emitChange(a.composerID);break;case b("ReactComposerFocusActionTypes").FOCUS_LOST:d.$ReactComposerFocusStore4(a.composerID);d.emitChange(a.composerID);break}})||this;d=babelHelpers.assertThisInitialized(c);return c}var d=c.prototype;d.$ReactComposerFocusStore1=function(a,b,c){a=this.getComposerData(a);a.focusConfig={onFocusAcquiredCallback:b,onFocusLostCallback:c}};d.$ReactComposerFocusStore2=function(a){a=this.getComposerData(a);a.focusConfig={}};d.$ReactComposerFocusStore3=function(a){a=this.getComposerData(a);a.focusConfig.onFocusAcquiredCallback&&setTimeout(a.focusConfig.onFocusAcquiredCallback,0);a.isFocused=!0};d.$ReactComposerFocusStore4=function(a){a=this.getComposerData(a);a.focusConfig.onFocusLostCallback&&setTimeout(a.focusConfig.onFocusLostCallback,0);a.isFocused=!1};d.isComposerFocused=function(a){return this.getComposerData(a).isFocused};return c}(b("ReactComposerStoreBase"));e.exports=new a()}),null);
__d("ReactComposerFocusHandleScrollAway",["Event","getActiveElement","throttle"],(function(a,b,c,d,e,f){"use strict";var g=-400,h=300;a={handler:function(a,c){var d=b("Event").listen(window,"scroll",b("throttle")(function(){var e=a.getBoundingClientRect().bottom;if(e<g){c();e=b("getActiveElement")();e&&e.blur();d.remove()}},h))}};e.exports=a}),null);
__d("ReactComposerFocusWrapperCore.react",["ix","cssVar","cx","fbt","Arbiter","BlueCompatBroker","Bootloader","CurrentUser","DOM","DOMTraverser","Env","Event","Focus","Image.react","Keys","Link.react","React","ReactComponentWithPureRenderMixin","ReactComposerEvents","ReactComposerFocusActions","ReactComposerMediaUploadType","ReactDOM","Run","ShimButton.react","SubscriptionsHandler","TabbableElements","TabIsolation","TrackingNodes","URI","createReactClass_DEPRECATED","fbglyph","ifRequired","isKeyActivation","prop-types","ReactComposerFocusStore"],(function(a,b,c,d,e,f,g,h,i,j){var k,l,m=b("React");b("ReactComposerFocusStore");var n=parseInt("10px",10);a=b("createReactClass_DEPRECATED")({displayName:"ReactComposerFocusWrapperCore",_composerID:"",_fixedHeight:0,_subscriptions:b("SubscriptionsHandler"),_firstFocus:!0,_onLeaveHandle:null,_root:null,_tabIsolation:null,mixins:[b("ReactComponentWithPureRenderMixin")],propTypes:{composerID:b("prop-types").string.isRequired,ariaLabel:b("prop-types").string,onDismiss:b("prop-types").func.isRequired,onFocus:b("prop-types").func.isRequired,focused:b("prop-types").bool.isRequired,gks:b("prop-types").object,onFirstFocus:b("prop-types").func,fixHeight:b("prop-types").bool,ReactComposerFocusExtraConfigData:b("prop-types").object},getDefaultProps:function(){return{focused:!1,fixHeight:!1}},UNSAFE_componentWillMount:function(){this._composerID=this.props.composerID},UNSAFE_componentWillReceiveProps:function(a){if(this.props.fixHeight&&!this.props.focused&&a.focused){a=b("ReactDOM").findDOMNode(this.refs.container);this._fixedHeight=a.offsetHeight+n}},componentDidMount:function(){this._subscriptions=new(b("SubscriptionsHandler"))(),this._subscribeComposerEvents(),this._onLeaveHandle=b("Run").onLeave(this._onLeave),this._root&&(this._tabIsolation=new(b("TabIsolation"))(this._root),this.props.focused&&this._tabIsolation.enable())},componentDidUpdate:function(a){if(!a.focused&&this.props.focused){try{var c=document.createEvent("HTMLEvents");c.initEvent&&(c.initEvent("resize",!0,!1),window.dispatchEvent(new(b("Event"))("resize")))}catch(a){}this._tabIsolation&&this._tabIsolation.enable()}else a.focused&&!this.props.focused&&(this._tabIsolation&&this._tabIsolation.disable())},componentWillUnmount:function(){this._subscriptions&&this._subscriptions.release(),this._onLeave(),this._onLeaveHandle&&this._onLeaveHandle.remove(),this._tabIsolation&&this._tabIsolation.disable(),this._tabIsolation=null},render:function(){var a=this,c=this.props.fixHeight&&this.props.focused?{height:this._fixedHeight}:null,d=this.props.focused?this._renderDismissButton():null,e=this.props.focused?this._renderBugNub():null,f=this.props.label||j._("\u6295\u7a3f\u3092\u4f5c\u6210");return m.jsxs("div",{role:this.props.focused?"dialog":"region","aria-label":f,className:(this.props.ReactComposerFocusExtraConfigData&&this.props.ReactComposerFocusExtraConfigData.removeDarkFocus?"_6apc":"")+" _3u13 _3e9r"+(this.props.focused?" _3u14":"")+(this.props.focused?" _1b3n":""),"data-ft":b("TrackingNodes").getTrackingInfo(b("TrackingNodes").types.FEED_COMPOSER),ref:function(b){a._root=b},style:c,onKeyDown:this._onKeyDown,children:[m.jsx("div",{className:"_3u15",onClick:this._onDismiss,role:"presentation"}),m.jsxs("div",{className:"_3u16",ref:"container",onFocusCapture:this._onFocus,children:[this.props.children,d]}),e]})},getComposerID:function(){return this._composerID},getComposer:function(){return this.refs.container},_renderDismissButton:function(){return m.jsx(b("ShimButton.react"),{className:"_3u17"+(this.props.gks&&this.props.gks.hasHeader?" _356d":"")+(this.props.gks&&this.props.gks.isSproutsComposer?" _3_fz":"")+(this.props.gks&&this.props.gks.wideHeader?" _37nh":"")+(this.props.gks&&this.props.gks.hideFocusDismissButton?" _1rbv":""),onClick:this._onClickDismissButton,onKeyDown:this._onDismissKeyDown,role:"button","data-testid":void 0,"aria-label":j._("\u9589\u3058\u308b"),tabIndex:"0",children:m.jsx(b("Image.react"),{src:g("125922")})})},_renderBugNub:function(){if(!b("CurrentUser").isEmployee())return null;var a=new(k||(k=b("URI")))("/ajax/bugs/report");return m.jsx("div",{className:"_t95",children:m.jsx(b("Link.react"),{href:"#",ajaxify:a,className:"_t97",rel:"dialog","aria-label":j._("\u554f\u984c\u3092\u5831\u544a")})})},_subscribeComposerEvents:function(){var a=this,c,d=(c=b("Arbiter")).subscribe(b("ReactComposerEvents").OPTIMISTIC_POSTING_STARTED+this._composerID,function(){a.props.onDismiss(!0)}),e=c.subscribe(b("ReactComposerEvents").POST_SUCCEEDED+this._composerID,function(){a.props.onDismiss(!0)}),f=c.subscribe("ReactFeedComposerXBootloader/focuscomposer/"+this._composerID,function(){return a._onFocus(null)});c=c.subscribe(b("ReactComposerEvents").COMPOSER_RESET+this._composerID,function(c,d){d&&d.newComposerID&&(a.props.onDismiss(),a._composerID=d.newComposerID,a._subscriptions.release(),a._subscriptions=new(b("SubscriptionsHandler"))(),a._subscribeComposerEvents())});this._subscriptions.addSubscriptions(d,e,f,c)},_onFocus:function(a){if(this.props.focused||a&&a.nativeEvent.composerPropagationStopped)return;this._firstFocus&&(this.props.onFirstFocus&&this.props.onFirstFocus(),this._firstFocus=!1);this.props.onFocus();b("ReactComposerFocusActions").notifyFocusAcquired(this.getComposerID())},_onKeyDown:function(a){a.keyCode===b("Keys").ESC&&!a.nativeEvent.composerPropagationStopped&&this._onDismiss()},_onDismissKeyDown:function(a){b("isKeyActivation")(a)&&this._onDismiss()},_onClickDismissButton:function(){var a=this;b("ifRequired")("ReactComposerMediaUploadStore",function(c){var d=c.getUploadsCount(a._composerID,b("ReactComposerMediaUploadType").VIDEO);c=c.getUploadsCount(a._composerID,b("ReactComposerMediaUploadType").PHOTO);d>0&&c===0&&b("Bootloader").loadModules(["ReactComposerVideoSurvey"],function(b){return b.showDismissalSurvey(a._composerID,d)},"ReactComposerFocusWrapperCore.react")});(l||(l=b("Env"))).isCQuick&&b("BlueCompatBroker").sendMessage({compatAction:"dialog-hide"});this._onDismiss()},_onDismiss:function(){var a=this;this._onLeave();if(this._root&&document.body){var c=b("DOMTraverser").nextFilteredNode(document.body,this._root,function(c){return!b("DOM").contains(a._root,c)&&b("TabbableElements").isTabbable(c)});b("Focus").set(c)}},_onLeave:function(){this.props.onDismiss(),b("ReactComposerFocusActions").notifyFocusLost(this.props.composerID)}});e.exports=a}),null);
__d("ReactComposerFocusInline.react",["Arbiter","React","ReactComposerFocusHandleScrollAway","ReactComposerFocusWrapperCore.react","ReactComposerTaggerType","ReactDOM","ifRequired","prop-types"],(function(a,b,c,d,e,f){var g=b("React");a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.state={focused:!1},d.$3=function(){var a=b("ReactDOM").findDOMNode(d.refs.focus.getComposer());b("ReactComposerFocusHandleScrollAway").handler(a,d.$1);b("ifRequired")("ReactComposerActions",function(a){d.props.gks&&d.props.gks.lazySproutsExpand||a.expandSprouts(d.$2())});b("ifRequired")("ReactComposerGroupPostTagsTaggerActions",function(a){a.setShowState(d.$2(),!0)});b("ifRequired")("ReactComposerTaggerActions",function(a){a.handleSetTaggerShowNUX(d.$2(),b("ReactComposerTaggerType").GROUP_MEET_UP,!1),a.handleSetTaggerShowNUX(d.$2(),b("ReactComposerTaggerType").VISUAL_POLL,!1)});d.setState({focused:!0})},d.$1=function(){b("Arbiter").inform("ReactComposerFocus/collapse/"+d.$2()),window.setTimeout(function(){if(d.refs.focus){var a;(a=b("ifRequired"))("ReactComposerFocusActions",function(a){a.notifyFocusLost(d.$2())});a("ReactComposerActions",function(a){a.collapseSprouts(d.$2())});a("ReactComposerGroupPostTagsTaggerActions",function(a){a.setShowState(d.$2(),!1)});a("ReactComposerTaggerActions",function(a){b("ifRequired")("ReactComposerLoggingName",function(b){a.deselectCurrentTagger(d.$2(),b.INLINE_COMPOSER)})})}},0),d.setState({focused:!1})},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.componentWillUnmount=function(){this.$1()};d.componentDidMount=function(){b("Arbiter").inform("ReactComposerFocus/initialized"+this.$2())};d.render=function(){return g.jsx(b("ReactComposerFocusWrapperCore.react"),{composerID:this.props.composerID,focused:this.state.focused&&this.props.enableFocusBehavior,onFocus:this.$3,onDismiss:this.$1,gks:this.props.gks,ReactComposerFocusExtraConfigData:this.props.ReactComposerFocusExtraConfigData,ref:"focus",children:this.props.children})};d.$2=function(){return this.refs.focus&&this.refs.focus.getComposerID()};return c}(g.PureComponent);a.propTypes={composerID:b("prop-types").string.isRequired,gks:b("prop-types").object};e.exports=a}),null);
__d("textProbablyWritingMarkdown",["CurrentUser"],(function(a,b,c,d,e,f){"use strict";var g=1e3;function a(a){a.length>g&&(a=a.slice(0,g));var c=a.match(/^[*+-] /gm);if(c&&c.length>1)return!0;c=a.match(/^[\t ]*[>+-]/gm);if(c!=null)return!0;c=a.match(/`/);if(c)return!0;c=a.match(/\$([^ \t\n\$]([^\$]*[^ \t\n\$])?)\$/);if(c)return!0;c=a.match(/__([\s\S]+?)__(?!_)|\*\*([\s\S]+?)\*\*(?!\*)/);if(c)return!0;c=a.match(/(^\s{0,3}#{2,6}[^#])|(^\s*[-=]{5,}\s*$)/m);if(c)return!0;c=a.match(/\]\(|\]\[/);if(c)return!0;if(!b("CurrentUser").isEmployee())return!1;c=a.match(/\b[sS]\d{5,6}\b/);if(c)return!0;c=a.match(/\b[tT]\d{7,8}\b/);if(c)return!0;c=a.match(/\b[dD]\d{6,8}\b/);if(c)return!0;c=a.match(/\b[qQ]\d{1,8}\b/);if(c)return!0;c=a.match(/\b[pP]\d{7,9}\b/);if(c)return!0;c=a.match(/\b(cms|CMS)\d\b/);if(c)return!0;c=a.match(/\b[aA]\d{4,}\b/);if(c)return!0;c=a.match(/\b[zZ][0-9]{4,}\b/);if(c)return!0;c=a.match(/\b(NT|nt)\d{4,}\b/);if(c)return!0;c=a.match(/\b(re|RE)\d{4,16}\b/);if(c)return!0;c=a.match(/\b(s2p|S2P)\s?\d{4,16}\b/);if(c)return!0;c=a.match(/\b(pr|PR)\d{4,16}\b/);if(c)return!0;c=a.match(/\b(po|PO)\d{4,16}\b/);if(c)return!0;c=a.match(/\b(inv|INV)\d{4,16}\b/);if(c)return!0;c=a.match(/\b(inb|INB)\d{4,16}\b/);if(c)return!0;c=a.match(/\b(out|OUT)\d{4,16}\b/);if(c)return!0;c=a.match(/\b(nda|NDA)\d{4,16}\b/);if(c)return!0;c=a.match(/\b(set|SET)\d{4,16}\b/);if(c)return!0;c=a.match(/\b(contract|CONTRACT)\d{4,16}\b/);if(c)return!0;c=a.match(/\b(ie|IE)\d{3,15}\b/);if(c)return!0;c=a.match(/\b[lL][0-9]{5,11}(?:[a-zA-Z]{1,5}\d{0,2})?\b/);if(c)return!0;c=a.match(/\b(C|C#|CASE)\d{3,}\b/);if(c)return!0;c=a.match(/\b[Nn](\d{4,10})\b/);if(c)return!0;c=a.match(/\b(nwt|NWT)\d{4,16}\b/);if(c)return!0;c=a.match(/\b(oa|OA)\d{1,16}\b/);if(c)return!0;c=a.match(/\b(rid|RID)\d{4,16}\b/);if(c)return!0;c=a.match(/\b(PD|pd|M|m)\d{6,11}\b/);if(c)return!0;c=a.match(/\b(ME|Me|mE|me)[0-9]{3,11}\b/);if(c)return!0;c=a.match(/\b(K|k)[0-9]{3,}\b/);return c?!0:!1}e.exports=a}),null);
__d("ReactPropTransferer",["ReactPropTransfererCore"],(function(a,b,c,d,e,f){e.exports=b("ReactPropTransfererCore")}),null);
__d("EventListener",["requireCond","cr:1353359"],(function(a,b,c,d,e,f){"use strict";e.exports=b("cr:1353359")}),null);
__d("injectSubscriptionsHandler.react",["React","SubscriptionsHandler","getReactComponentDisplayName"],(function(a,b,c,d,e,f){var g=b("React");function a(a){var c,d,e=b("getReactComponentDisplayName")(a);return d=c=function(c){"use strict";babelHelpers.inheritsLoose(d,c);function d(){var a,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(a=d=c.call.apply(c,[this].concat(f))||this,d.state={subscriptionsHandler:new(b("SubscriptionsHandler"))()},a)||babelHelpers.assertThisInitialized(d)}var e=d.prototype;e.componentWillUnmount=function(){this.state.subscriptionsHandler.release()};e.render=function(){return g.jsx(a,babelHelpers["extends"]({},this.props,{subscriptionsHandler:this.state.subscriptionsHandler}))};return d}(g.Component),c.displayName="injectSubscriptionsHandler("+e+")",d}e.exports=a}),null);
__d("FeedbackReactionTypeNames",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({0:"NONE",1:"LIKE",2:"LOVE",3:"WOW",4:"HAHA",5:"YAY",6:"OUCH",7:"SORRY",8:"ANGER",9:"JACKO",10:"CONFUSED",11:"DOROTHY",12:"TOTO",13:"SELFIE",14:"FLAME",15:"PLANE",16:"SUPPORT"})}),null);
__d("ReactionIconClassNames",["cx"],(function(a,b,c,d,e,f,g){"use strict";e.exports={root:"_9zc",icon:"_2p78",menuIcon:"_8382",reactions:{like:"_3j7l",love:"_3j7m",anger:"_3j7q",wow:"_3j7n",haha:"_3j7o",sorry:"_3j7r",yay:"_3j7p",confused:"_3j7s",dorothy:"_3rya",toto:"_4aou",flame:"_3qr6",plane:"_4vps",support:"_906t"},sizes:{14:"_8383",16:"_9--",18:"_19kl",20:"_7tr3",48:"_9-_",96:"_9_0"}}}),null);
__d("UFI2ActionLink.react",["cx","React","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){var c=a.children,d=a.linkClassName,e=a.enabled;e=e===void 0?!0:e;var f=a.floating;f=f===void 0?!1:f;a=a.showIcon;a=a===void 0?!0:a;return h.jsx("span",{className:(f===!0?"_8y72":"")+" _18vi",children:c({className:b("joinClasses")((e?"":"_6dc1")+" _18vj"+(a?" _18vk":""),d)})})}e.exports=a}),null);
__d("UFI2ReactionIcon.react",["CometReactionIcon.react","React","stylex"],(function(a,b,c,d,e,f){"use strict";var g=b("React"),h={reactionBounceAnimation:{animationDuration:"suguu2y7",animationName:"k52jgpo8"}};c=b("React");var i=c.useEffect,j=c.useRef;function a(a){var c=a.shouldAnimateOnFirstRender,d=a.shouldAnimateOnReactionChange,e=a.testid;e=babelHelpers.objectWithoutPropertiesLoose(a,["shouldAnimateOnFirstRender","shouldAnimateOnReactionChange","testid"]);var f=j(!1);i(function(){f.current=!0});c=!f.current&&c||f.current&&d;d=c?[h.reactionBounceAnimation,e.xstyle]:e.xstyle;return g.jsx(b("CometReactionIcon.react"),{alt:e.alt,reactionType:e.reaction,size:e.size,testid:void 0,xstyle:d},c?a.reaction:void 0)}e.exports=a}),null);
__d("UFI2ReactionUtils",["UFIReactionTypes"],(function(a,b,c,d,e,f){"use strict";var g={checkReactionKey:function(a){return a&&!b("UFIReactionTypes").reactions[a]?0:a||0},getReactionNameFromKey:function(a){a=g.checkReactionKey(a);if(a===0)return"none";else return b("UFIReactionTypes").reactions[a].name}};e.exports=g}),null);
__d("UFICommonInteractionEvents",[],(function(a,b,c,d,e,f){"use strict";a=Object.freeze({UFI_OPTIMISTIC_COMMENT:"UFIOptimisticComment",UFI_PERSISTED_COMMENT:"UFIPersistedComment",UFI2_OPTIMISTIC_COMMENT:"UFI2OptimisticComment",UFI2_PERSISTED_COMMENT:"UFI2PersistedComment",COMET_UFI_OPTIMISTIC_COMMENT:"CometUFIOptimisticComment",COMET_UFI_PERSISTED_COMMENT:"CometUFIPersistedComment",UFI2_OPTIMISTIC_COMMENT_EDIT:"UFI2OptimisticCommentEdit",UFI2_PERSISTED_COMMENT_EDIT:"UFI2PersistedCommentEdit",COMET_UFI_OPTIMISTIC_COMMENT_EDIT:"CometUFIOptimisticCommentEdit",COMET_UFI_PERSISTED_COMMENT_EDIT:"CometUFIPersistedCommentEdit",UFI_TOP_LEVEL_COMMENTS_PAGINATION:"UFITopLevelCommentsPagination",UFI2_TOP_LEVEL_COMMENTS_PAGINATION:"UFI2TopLevelCommentsPagination",COMET_UFI_TOP_LEVEL_COMMENTS_PAGINATION:"CometUFITopLevelCommentsPagination",UFI2_REPLY_COMMENTS_PAGINATION:"UFI2ReplyCommentsPagination",COMET_UFI_REPLY_COMMENTS_PAGINATION:"CometUFIReplyCommentsPagination",UFI_SHARE_DIALOG_OPENS:"UFIShareDialogOpens",UFI2_SHARE_DIALOG_OPENS:"UFI2ShareDialogOpens",UFI_COMPOSER_INPUT_FOCUS:"UFIComposerInputFocus",UFI_STORY_REACTION:"UFIStoryReaction",UFI_COMMENT_REACTION:"UFICommentReaction",UFI2_STORY_REACTION:"UFI2StoryReaction",UFI2_COMMENT_REACTION:"UFI2CommentReaction",COMET_UFI_STORY_REACTION:"CometUFIStoryReaction",COMET_UFI_COMMENT_REACTION:"CometUFICommentReaction",UFI_COMPOSER_KEYPRESS_LATENCY:"UFIComposerKeypressLatency",UFI2_COMPOSER_KEYPRESS_LATENCY:"UFI2ComposerKeypressLatency",COMET_UFI_COMPOSER_KEYPRESS_LATENCY:"CometUFIComposerKeypressLatency"});e.exports=a}),null);
__d("UFICommonInteractionLogger",["Bootloader","UFICommonInteractionEvents","performanceAbsoluteNow","requestAnimationFrameAcrossTransitions","uuid"],(function(a,b,c,d,e,f){"use strict";var g,h=new Map(),i=0;function j(){return b("uuid")()}function a(a,c){var d=(g||(g=b("performanceAbsoluteNow")))();c=c||j();var e=l(a),f;if(e){var k=i++;f={event:e,markerKey:k};b("Bootloader").loadModules(["QuickPerformanceLogger"],function(a){a.markerStart(e,k,d)},"UFICommonInteractionLogger")}h.set(c,{startTimestamp:d,qplInfo:f});return c}function c(a){b("requestAnimationFrameAcrossTransitions")(function(){k(a)},{priority:"DISPLAY_DONE_LOGGING"})}function k(a,c){var d=h.get(a);if(d){var e=d.qplInfo;h["delete"](a);if(e){var f=(g||(g=b("performanceAbsoluteNow")))();b("Bootloader").loadModules(["QuickPerformanceLogger","QuickLogActionType"],function(a,b){a.markerEnd(e.event,c?b.FAIL:b.SUCCESS,e.markerKey,f)},"UFICommonInteractionLogger")}}}function l(a){switch(a){case b("UFICommonInteractionEvents").UFI_OPTIMISTIC_COMMENT:return 3735589;case b("UFICommonInteractionEvents").UFI_PERSISTED_COMMENT:return 3735591;case b("UFICommonInteractionEvents").UFI2_OPTIMISTIC_COMMENT:return 3735590;case b("UFICommonInteractionEvents").UFI2_PERSISTED_COMMENT:return 3735592;case b("UFICommonInteractionEvents").COMET_UFI_OPTIMISTIC_COMMENT:return 3735618;case b("UFICommonInteractionEvents").COMET_UFI_PERSISTED_COMMENT:return 3735619;case b("UFICommonInteractionEvents").UFI2_OPTIMISTIC_COMMENT_EDIT:return 3735593;case b("UFICommonInteractionEvents").UFI2_PERSISTED_COMMENT_EDIT:return 3735594;case b("UFICommonInteractionEvents").COMET_UFI_OPTIMISTIC_COMMENT_EDIT:return 3735626;case b("UFICommonInteractionEvents").COMET_UFI_PERSISTED_COMMENT_EDIT:return 3735627;case b("UFICommonInteractionEvents").UFI_TOP_LEVEL_COMMENTS_PAGINATION:return 3735595;case b("UFICommonInteractionEvents").UFI2_TOP_LEVEL_COMMENTS_PAGINATION:return 3735596;case b("UFICommonInteractionEvents").COMET_UFI_TOP_LEVEL_COMMENTS_PAGINATION:return 3735620;case b("UFICommonInteractionEvents").UFI2_REPLY_COMMENTS_PAGINATION:return 3735597;case b("UFICommonInteractionEvents").COMET_UFI_REPLY_COMMENTS_PAGINATION:return 3735622;case b("UFICommonInteractionEvents").UFI_SHARE_DIALOG_OPENS:return 3735598;case b("UFICommonInteractionEvents").UFI2_SHARE_DIALOG_OPENS:return 3735599;case b("UFICommonInteractionEvents").UFI_COMPOSER_INPUT_FOCUS:return 3735600;case b("UFICommonInteractionEvents").UFI_STORY_REACTION:return 3735601;case b("UFICommonInteractionEvents").UFI_COMMENT_REACTION:return 3735604;case b("UFICommonInteractionEvents").UFI2_STORY_REACTION:return 3735602;case b("UFICommonInteractionEvents").UFI2_COMMENT_REACTION:return 3735603;case b("UFICommonInteractionEvents").COMET_UFI_STORY_REACTION:return 3735623;case b("UFICommonInteractionEvents").COMET_UFI_COMMENT_REACTION:return 3735624;case b("UFICommonInteractionEvents").UFI_COMPOSER_KEYPRESS_LATENCY:return 3735605;case b("UFICommonInteractionEvents").UFI2_COMPOSER_KEYPRESS_LATENCY:return 3735606;case b("UFICommonInteractionEvents").COMET_UFI_COMPOSER_KEYPRESS_LATENCY:return 3735625;default:return null}}e.exports={startInteraction:a,endInteraction:k,endInteractionAtEndOfFrame:c,makeTrackingID:j}}),null);
__d("UFI2ReactionLink.react",["ix","cx","fbt","requireCond","requireDeferred","cr:1261406","CometTintedIcon.react","CometTrackingNodeProvider.react","CometUFIFocusWithinContext","Event","FBLogger","FocusWithinHandler.react","LiveVideoCometStreamingReactionsContext","React","ReactDOM","ShimButton.react","UFI2CometRelayCreateFragmentContainer","deferredLoadComponent","fbicon","cr:1519067","UFI2ReactionUtils","UFICommonInteractionLogger","UFIReactionTypes","clearTimeout","collectDataAttributes","emptyFunction","gkx","injectSubscriptionsHandler.react","joinClasses","nullthrows","setTimeoutAcrossTransitions","cr:1157165","useTrackingCodeFnForBlueOrComet","cr:1599586","stylex","UFI2ReactionLink_feedback.graphql"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=b("React");c=b("React");var m=c.useCallback,n=c.useContext,o=c.useEffect,p=c.useRef,aa=c.useState;d=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var q=b("requireDeferred")("UFI2FeedbackReactMutation"),ba=b("deferredLoadComponent")(b("requireDeferred")("UFI2ReactionsMenu")),r=b("UFIReactionTypes").reactions,ca=16,da=7878,s=20,t="ontouchstart"in window,u=500,v={accessible_elem:{clip:"ofryzvom",clipPath:"cd7xify8",position:"tn8apwoe"},hasNotReacted:{filter:"tw2q2tq1"},hasReacted:{fontWeight:"bhd12jwn"},iconWrapper:{display:"hbms080z",verticalAlign:"gkamr9iy"},inlineReactButton:{marginStart:"t0fmm8kf"},overlayReactButton:{end:"scogw8cz",paddingTop:"qn38drkc",paddingEnd:"erfhpm37",paddingBottom:"rh0er1zr",paddingStart:"r6s06x95",position:"tn8apwoe",top:"v1023e52"},reactWithA11yButton:{alignItems:"rh7womw9",display:"q4pta889"},root:{alignItems:"rh7womw9",display:"q4pta889",flexGrow:"q4j490t4",flexShrink:"rmfx599b",justifyContent:"bn9dirzp"}},w=b("gkx")("1483583"),x=!1,y=!1;function ea(a){if(a==null)return null;a=b("UFIReactionTypes").ordering.indexOf(a);if(a!==-1){a=b("UFIReactionTypes").ordering[a];return a}return null}function a(a){var c,d=p(null),e=p(null),f=p(null),h=p(null),j=p(null),z=p(null),A=p(null),B=p(null),C=p(null),D=p(null),E=aa({hasPreviouslyShownMenu:!1,isLongPressing:!1,isScrubbing:!1,isTouchDown:!1,showMenu:!1}),F=E[0],G=E[1],H=m(function(a,c){var d=b("ReactDOM").findDOMNode(B.current);return d?b("collectDataAttributes")(d,a,c):null},[]);E=m(function(){var b;return((b=a.feedback.supported_reactions)!=null?b:[]).map(function(a){return ea(a.key)}).filter(Boolean)},[a.feedback.supported_reactions]);var I=b("useTrackingCodeFnForBlueOrComet")(),J=b("emptyFunction").thatReturnsNull;b("cr:1157165")!=null&&(J=b("cr:1157165")());var K=b("cr:1599586")(da,a.relay.environment),L=K[0],M=K[1];K=n(b("LiveVideoCometStreamingReactionsContext"));var N=K.diffuser,O=K.viewerProfilePicture,P=a.feedback,Q=a.feedbackSource,R=a.mutationInputAugmenter,fa=a.onReactionError,ga=a.relay.environment,ha=a.useDefaultActor,S=m(function(a,c){var f,g=b("nullthrows")(P.id),h=b("nullthrows")((f=P.viewer_actor)==null?void 0:f.id);d.current&&d.current.dispose();e.current&&e.current.remove();var i=babelHelpers["extends"]({feedback_id:g,feedback_reaction:a,feedback_source:Q},I(H));R&&(i=R(i));e.current=q.onReadyImmediately(function(a){d.current=a.commit({actorID:h,environment:ga,feedbackArg:P,input:i,onError:(a=fa)!=null?a:b("emptyFunction"),useDefaultActor:ha})});w&&X.current&&(C.current!=null&&C.current.focus(),X.current=!1);G(function(a){return babelHelpers["extends"]({},a,{isScrubbing:!1,showMenu:!1})});y===!1&&a===ca&&(y=!0,L({},function(){return M()}));N!=null&&b("cr:1519067")!=null&&O!=null&&b("cr:1519067")(N,a,O);f=-1;J(c.timeStamp,f);g=q.getModuleIfRequired();g==null&&b("FBLogger")("ufi2").warn("UFI2 reactions loading state was not ready")},[N,M,ga,P,Q,H,R,J,fa,ha,L,I,O]),ia=m(function(c){var d,e;a.interactionEvent&&(e=b("UFICommonInteractionLogger").startInteraction(a.interactionEvent));d=(d=a.feedback.viewer_feedback_reaction_info)==null?void 0:d.key;d=b("UFI2ReactionUtils").checkReactionKey(d);d=d?b("UFIReactionTypes").NONE:b("UFIReactionTypes").LIKE;e!=null&&(z.current={newReactionKey:d,trackingID:e});S(d,c)},[S,a]),ja=m(function(a){F.isTouchDown&&a.preventDefault()},[F]),ka=m(function(a){a.preventDefault()},[]);K=m(function(a){b("clearTimeout")(j.current)},[]);var la=function(a){b("clearTimeout")(j.current),A.current=b("setTimeoutAcrossTransitions")(function(){G(function(a){return babelHelpers["extends"]({},a,{hasPreviouslyShownMenu:!0,isLongPressing:!0,showMenu:!0})})},u),G(function(a){return babelHelpers["extends"]({},a,{isLongPressing:!1})})},ma=m(function(a){b("clearTimeout")(A.current)},[]),T=m(function(){G(function(a){return babelHelpers["extends"]({},a,{hasPreviouslyShownMenu:!0,showMenu:!0})})},[]),U=m(function(){w&&X.current&&(C.current!=null&&C.current.focus(),X.current=!1),G(function(a){return babelHelpers["extends"]({},a,{isScrubbing:!1,showMenu:!1})})},[]),V=m(function(){X.current=!0,T()},[T]),na=m(function(){x=!0,V()},[V]),oa=m(function(c){b("clearTimeout")(j.current),F.showMenu||(j.current=b("setTimeoutAcrossTransitions")(T,a.showDelay))},[F.showMenu,T,a.showDelay]),W=m(function(c){b("clearTimeout")(j.current);if(w&&X.current)return;F.showMenu&&(j.current=b("setTimeoutAcrossTransitions")(U,a.hideDelay))},[U,a.hideDelay,F.showMenu]),pa=m(function(a){F.showMenu||(A.current=b("setTimeoutAcrossTransitions")(function(){G(function(a){return babelHelpers["extends"]({},a,{hasPreviouslyShownMenu:!0,isLongPressing:!0,showMenu:!0})})},u)),G(function(a){return babelHelpers["extends"]({},a,{isLongPressing:!1,isTouchDown:!0})})},[F.showMenu]),qa=m(function(a){f.current=null,h.current=null,b("clearTimeout")(A.current),G(function(a){return babelHelpers["extends"]({},a,{isLongPressing:!1,isTouchDown:!1})})},[]),ra=m(function(a){if(F.isScrubbing)return;a=a.touches[0];var b=a.clientX;a=a.clientY;if(f.current===null&&h.current===null){f.current=b;h.current=a;return}typeof f.current==="number"&&typeof h.current==="number"&&(f.current>b+s||f.current<b-s||h.current>a+s||h.current<a-s)&&G(function(a){return babelHelpers["extends"]({},a,{isScrubbing:!0})})},[F.isScrubbing]);o(function(){return function(){b("clearTimeout")(j.current)}},[]);o(function(){var c=z.current;if(c){var d;d=(d=a.feedback)==null?void 0:(d=d.viewer_feedback_reaction_info)==null?void 0:d.key;d=b("UFI2ReactionUtils").checkReactionKey(d);d===c.newReactionKey&&(b("UFICommonInteractionLogger").endInteraction(c.trackingID),z.current=null)}});o(function(){if(F.showMenu){if(t){var c;a.subscriptionsHandler.addSubscriptions(b("Event").listen(document.documentElement,"touchstart",function(a){c=a.touches[0]}),b("Event").listen(document.documentElement,"touchmove",function(a){c=a.touches[0]}),b("Event").listen(document.documentElement,"touchend",function(a){c&&D.current&&D.current.contains(document.elementFromPoint(c.clientX,c.clientY))&&G(function(a){return babelHelpers["extends"]({},a,{isScrubbing:!1,showMenu:!1})})}))}}else a.subscriptionsHandler.release(),a.subscriptionsHandler.engage()},[a.subscriptionsHandler,F.showMenu]);var X=p(!1);c=(c=a.feedback.viewer_feedback_reaction_info)==null?void 0:c.key;var Y=b("UFI2ReactionUtils").checkReactionKey(c),Z,$;if(!Y)Z=r[b("UFIReactionTypes").LIKE].display_name;else{c=r[Y];var sa=c.display_name;c=c.color;Z=sa;$=c}var ta=Y?i._("{selected reaction}\u3092\u524a\u9664",[i._param("selected reaction",Z)]):Z,ua=n(b("CometUFIFocusWithinContext")),va=Y?i._("\u30ea\u30a2\u30af\u30b7\u30e7\u30f3{selected reaction} \u3092\u5909\u66f4",[i._param("selected reaction",Z)]):i._("\u30ea\u30a2\u30af\u30b7\u30e7\u30f3\u3059\u308b"),wa=a.displayInlineBlock===!1?b("fbicon")._(g("481882"),16):b("fbicon")._(g("481880"),12);return l.jsx(b("CometTrackingNodeProvider.react"),{trackingNode:Y===b("UFIReactionTypes").NONE?5:6,children:l.jsxs("div",{className:"_8c74",ref:D,children:[l.jsx(b("FocusWithinHandler.react"),{onFocusVisibleChange:w?function(){}:V,children:function(c,d){c=c&&d;d=c||ua||X.current;return b("gkx")("708253")&&b("cr:1261406")?l.jsxs("span",{className:w&&a.displayInlineBlock!==!1&&d?(k||(k=b("stylex")))(v.reactWithA11yButton):null,children:[l.jsx(b("cr:1261406"),{"aria-pressed":w?void 0:!!Y,focusable:w,label:w?ta:Z,onContextMenu:ja,onHoverIn:oa,onHoverOut:W,onPress:ia,onPressIn:la,onPressOut:ma,overlayDisabled:!0,ref:B,testid:void 0,xstyle:[v.root,!!Y&&v.hasReacted],children:l.jsxs("div",{className:a.className,style:{color:$},children:[l.jsx("span",{className:(k||(k=b("stylex")))(v.iconWrapper,!Y&&v.hasNotReacted),children:a.children}),Z]})}),w?l.jsx(b("cr:1261406"),{focusable:!0,label:va,onPress:V,ref:C,xstyle:[!d&&v.accessible_elem,a.displayInlineBlock===!1&&v.overlayReactButton,a.displayInlineBlock!==!1&&v.inlineReactButton],children:l.jsx(b("CometTintedIcon.react"),{color:"fds-gray-70",icon:wa})}):null]}):l.jsxs("span",{className:w&&a.displayInlineBlock!==!1&&d?(k||(k=b("stylex")))(v.reactWithA11yButton):null,children:[l.jsxs("a",{"aria-label":w?ta:void 0,"aria-pressed":w?void 0:(!!Y).toString(),className:b("joinClasses")((Y?"_3_16":"")+" _6a-y",a.className),"data-testid":void 0,href:"#",onClick:ia,onContextMenu:ja,onDragStart:ka,onMouseDown:la,onMouseEnter:oa,onMouseLeave:W,onMouseUp:ma,onTouchEnd:t?qa:null,onTouchMove:t?ra:null,onTouchStart:t?pa:null,ref:B,role:"button",style:{color:$},tabIndex:F.hasPreviouslyShownMenu&&!w?-1:0,children:[a.children,Z]}),w?l.jsx(b("ShimButton.react"),{"aria-label":va,className:(k||(k=b("stylex")))([!d&&v.accessible_elem,a.displayInlineBlock===!1&&v.overlayReactButton,a.displayInlineBlock!==!1&&v.inlineReactButton]),onClick:V,onRef:function(a){return C.current=a},children:l.jsx(b("CometTintedIcon.react"),{color:"fds-gray-70",icon:wa})}):null]})}}),l.jsx(l.Suspense,{fallback:w?null:l.jsx("button",{className:"accessible_elem",onClick:na,tabIndex:-1,type:"button",children:i._("\u4ed6\u306e\u30ea\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u898b\u308b")}),children:l.jsx(ba,{initialReaction:Y,isLongPressing:F.isLongPressing,isScreenReader:x,onBlur:U,onFocus:T,onMouseEnter:K,onMouseLeave:W,onReactionClick:S,onReactionMouseEnter:b("emptyFunction"),onReactionMouseLeave:b("emptyFunction"),shouldFocusOnShow:function(){return X.current||x},shouldRenderDialog:w,shown:F.showMenu,supportedReactions:E()})})]})})}e.exports=d(b("injectSubscriptionsHandler.react")(a),{feedback:j!==void 0?j:j=b("UFI2ReactionLink_feedback.graphql")})}),null);
__d("UFI2ReactionActionLink.react",["ix","cx","CometTrackingNodeProvider.react","Image.react","React","UFI2ActionLink.react","UFI2CometRelayCreateFragmentContainer","UFI2ReactionIcon.react","UFI2ReactionLink.react","UFI2ReactionUtils","UFICommonInteractionEvents","UFIReactionTypes","stylex","asset","joinClasses","UFI2ReactionActionLink_feedback.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var k={inlineUFIIcon:{marginRight:"qoqs7rgl"}},l=525,m=750;function n(a){a=(a=a.feedback)==null?void 0:(a=a.viewer_feedback_reaction_info)==null?void 0:a.key;a=b("UFI2ReactionUtils").checkReactionKey(a);return a}c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.$1=null,b)||babelHelpers.assertThisInitialized(c)}var d=c.prototype;d.componentDidMount=function(){this.$1=n(this.props)};d.componentDidUpdate=function(){this.$1=n(this.props)};d.render=function(){var a=this.props,c=a.className,d=a.displayInlineBlock,e=a.feedback,f=a.feedbackSource,h=a.floating,i=a.mutationInputAugmenter,o=a.useDefaultActor,p=a.onReactionError;a=n(this.props);var q;!a?q=j.jsx(b("Image.react"),{alt:"",className:"_6rk2",src:this.props.inverse===!0?this.props.filled===!0?g("352555"):g("352559"):g("347022")}):a!==b("UFIReactionTypes").LIKE?q=j.jsx(b("UFI2ReactionIcon.react"),{alt:"",reaction:a,shouldAnimateOnFirstRender:Boolean(this.props.enableAnimations)&&(this.$1===b("UFIReactionTypes").NONE||this.$1===b("UFIReactionTypes").LIKE),shouldAnimateOnReactionChange:Boolean(this.props.enableAnimations),size:18,xstyle:k.inlineUFIIcon}):q=j.jsx(b("Image.react"),{alt:"",className:"_6rk2",src:g("347019")});return j.jsx(b("CometTrackingNodeProvider.react"),{trackingNode:a===b("UFIReactionTypes").NONE?5:6,children:j.jsx(b("UFI2ActionLink.react"),{floating:h,showIcon:!q,children:function(a){a=a.className;return j.jsx("div",{className:"_666k","data-testid":void 0,children:j.jsx(b("UFI2ReactionLink.react"),{className:b("joinClasses")("_3l2t",a,c),displayInlineBlock:d!==!1,feedback:e,feedbackSource:f,hideDelay:m,interactionEvent:b("UFICommonInteractionEvents").UFI2_STORY_REACTION,mutationInputAugmenter:i,onReactionError:p,showDelay:l,useDefaultActor:o,children:q})})}})})};return c}(j.Component);c.displayName="UFI2ReactionActionLink";e.exports=a(c,{feedback:i!==void 0?i:i=b("UFI2ReactionActionLink_feedback.graphql")})}),null);
__d("UFI2ReactionsLinkStandalone.react",["FBLogger","React","ReactDOM","RelayAPIConfig","RelayModern","RelayUFI2Environment","UFI2ReactionActionLink.react","UFIVideoPlayerRegistry","XUISpinner.react","UFI2ReactionsLinkStandaloneQuery.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h=b("React"),i=b("RelayModern").QueryRenderer;b("RelayModern").graphql;a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$3=function(a){var c=a.error;a=a.props;if(c)return null;if(a==null)return h.jsx(b("XUISpinner.react"),{className:d.props.spinnerClassName,size:"small"});var e=a.feedback;if(!e){b("FBLogger")("ufi2").addMetadata("UFI","FEEDBACK_TARGET_ID",d.props.queryVariables.feedbackTargetID||"UNKNOWN").warn("Query is missing feedback data.");return null}return h.jsx(b("UFI2ReactionActionLink.react"),{className:d.props.className,feedback:e,feedbackSource:d.props.feedbackSource,filled:!0,inverse:d.props.inverse,mutationInputAugmenter:function(a){return d.$1(e,a)},reactionIconClassName:d.props.reactionIconClassName,useDefaultActor:!0})},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.$1=function(a,b){if(b.feedback_reaction===0)return b;var c=this.$2(a);if(c!=null){return babelHelpers["extends"]({},b,{time_anchor:{time:c,type:((c=a.associated_video)==null?void 0:c.is_live_streaming)===!0?"LIVE_VIDEO":"ON_DEMAND_VIDEO"}})}return b};d.$2=function(a){a=(a=a.associated_video)==null?void 0:a.id;var c=b("ReactDOM").findDOMNode(this);if(a==null||!(c instanceof Element))return;c=b("UFIVideoPlayerRegistry").getAvailableVideoPlayerControllerTimeForElement(c,a);if(c==null)return;return Math.floor(c)};d.render=function(){var a=this.props.queryVariables;return h.jsx(i,{environment:b("RelayUFI2Environment").forActor(b("RelayAPIConfig").actorID),fetchPolicy:"store-and-network",query:c.query,render:this.$3,variables:babelHelpers["extends"]({},a)})};return c}(h.Component);a.query=g!==void 0?g:g=b("UFI2ReactionsLinkStandaloneQuery.graphql");e.exports=a}),null);
__d("UFI2ReactionsLinkStandaloneWhenVisible.react",["OnVisible.react","React","UFI2ReactionsLinkStandalone.react"],(function(a,b,c,d,e,f){"use strict";var g=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.state={wasEverVisible:!1},c.$1=function(){c.setState({wasEverVisible:!0})},b)||babelHelpers.assertThisInitialized(c)}var d=c.prototype;d.render=function(){return this.state.wasEverVisible?g.jsx(b("UFI2ReactionsLinkStandalone.react"),babelHelpers["extends"]({},this.props)):g.jsx(b("OnVisible.react"),{onVisible:this.$1,children:g.jsx("div",{})})};return c}(g.PureComponent);e.exports=a}),null);
__d("UFIReactionIconImpl.react",["FeedbackReactionTypeNames","React","ReactionIconClassNames","joinClasses"],(function(a,b,c,d,e,f){var g=b("React");a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.shouldComponentUpdate=function(a){return a.className!==this.props.className||a.reaction!==this.props.reaction||a.size!==this.props.size||a.grayscale!==this.props.grayscale};d.renderImage=function(){var a=b("FeedbackReactionTypeNames")[this.props.reaction].toLowerCase();return g.jsx("i",{className:b("joinClasses")(b("ReactionIconClassNames").reactions[a],b("ReactionIconClassNames").icon,b("ReactionIconClassNames").sizes[this.props.size])})};d.render=function(){return g.jsx("span",{className:b("joinClasses")(b("ReactionIconClassNames").root,b("ReactionIconClassNames").sizes[this.props.size],this.props.className),children:this.renderImage()})};return c}(g.Component);a.defaultProps={className:null,grayscale:!1,size:"16"};e.exports=a}),null);
__d("UFIReactionsProfileBrowserUtils",["ActorURIConfig","XUFIReactionProfileBrowserController","XUFIReactionProfileDialogController"],(function(a,b,c,d,e,f){"use strict";var g={getDialogURI:function(a){var c=a.actorID,d=a.feedbackTargetID;a=a.reactionKey;return b("XUFIReactionProfileDialogController").getURIBuilder().setString("ft_ent_identifier",d).setEnum("reaction_type",a).getURI().addQueryData(b("ActorURIConfig").PARAMETER_ACTOR,c)},getPageURI:function(a){var c=a.actorID;a=a.feedbackTargetID;return b("XUFIReactionProfileBrowserController").getURIBuilder().setString("ft_ent_identifier",a).getURI().addQueryData(b("ActorURIConfig").PARAMETER_ACTOR,c)},getPrimerProps:function(a){var b=g.getPageURI(a);a=g.getDialogURI(a);return{ajaxify:a,href:b,rel:"dialog"}}};e.exports=g}),null);
__d("scrollTo",["debounce","emptyFunction","gkx"],(function(a,b,c,d,e,f){"use strict";e.exports=function(a){var c,d=a.onScrollComplete,e=babelHelpers.objectWithoutPropertiesLoose(a,["onScrollComplete"]);c=(c=a.top)!=null?c:window.pageYOffset;a=(a=a.left)!=null?a:window.pageXOffset;if(window.pageYOffset===c&&window.pageXOffset===a){d&&d();return{dispose:b("emptyFunction")}}var f=!1;try{var g=document.documentElement;if(g==null){d&&d();return{dispose:b("emptyFunction")}}g="scrollBehavior"in g.style&&!b("gkx")("1243461");g?window.scrollTo(e):f=!0}catch(a){f=!0}if(f){window.scrollTo(a,c);d&&d();return{dispose:b("emptyFunction")}}var h,i=!1;d!=null&&(h=b("debounce")(function(){i=!0,window.removeEventListener("scroll",h),d()},200),window.addEventListener("scroll",h,{passive:!0}),window.dispatchEvent(new Event("scroll")));return{dispose:function(){if(i)return;h&&h.reset();window.removeEventListener("scroll",h);window.scrollTo(window.pageYOffset,window.pageXOffset)}}}}),null);
__d("scrollIntoView",["debounce","emptyFunction","recoverableViolation","scrollTo"],(function(a,b,c,d,e,f){"use strict";var g={center:"center",top:"start",bottom:"end",closest:"nearest"};function a(a,c){c===void 0&&(c=Object.freeze({}));var d=c,e=d.behavior;e=e===void 0?"auto":e;var f=d.onScrollComplete,h=f===void 0?b("emptyFunction"):f;f=d.force;d=f===void 0?!1:f;f=a.getBoundingClientRect();var i=document.documentElement;if(i==null){b("recoverableViolation")("There is no documentElement accessible on document, something is seriously wrong and I couldn't imagine the situation you have found yourself in","comet_ui");return{dispose:b("emptyFunction")}}var j=i.clientHeight,k=f.top<=j&&f.bottom>=0;if(!d&&k){h!=null&&h();return{dispose:b("emptyFunction")}}k=(d=c.verticalAlign)!=null?d:"closest";try{c="scrollBehavior"in i.style;if(c){a.scrollIntoView({behavior:e,block:k!=null?g[k]:void 0});var l,m=!1;h!=null&&(l=b("debounce")(function(){m=!0,window.removeEventListener("scroll",l,{capture:!0}),h()},200),window.addEventListener("scroll",l,{passive:!0,capture:!0}),window.dispatchEvent(new Event("scroll")));return{dispose:function(){if(m)return;l&&l.reset();window.removeEventListener("scroll",l,{capture:!0});window.scrollTo(window.pageYOffset,window.pageXOffset)}}}}catch(a){}k==="closest"&&(f.top>=j?k="bottom":k="top");var n;switch(k){case"top":n=window.pageYOffset+f.top;break;case"bottom":n=window.pageYOffset+f.bottom-j;break;case"center":n=window.pageYOffset+f.bottom-j+(j-f.height)/2;break}return b("scrollTo")({behavior:e,top:n,onScrollComplete:h})}e.exports=a}),null);
__d("SUIErrorBoundary.react",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.componentDidCatch=function(a,b){b=b.componentStack;a.suiChildError=!0;a.componentStack=a.componentStack!=null?b+"\n\n"+a.componentStack:b;throw a};c.render=function(){var a=this.props.children;return a!==void 0?a:null};return b}(a.PureComponent);e.exports=c}),null);
__d("SUIInlineStyle",[],(function(a,b,c,d,e,f){"use strict";a=[0,4,8,12,16,20,24,28,32,36,40,"0","0px","4px","8px","12px","16px","20px","24px","28px","32px","36px","40px","auto"];e.exports={StandardSpacingValues:a}}),null);
__d("SUITheme",["invariant","requireWeak"],(function(a,b,c,d,e,f,g){"use strict";var h=["SUIActionMenu","SUIBreadcrumbNav","SUIButton","SUIButtonIcon","SUICalendarPager","SUICardDEPRECATED","SUICard","SUICloseButton","SUICustomPopover_DEPRECATED","SUIDateInput","SUIDateTimeRangePicker","SUIDecisionModal","SUIDivider","SUIDropdownMenu","SUIError","SUIFileSelector","SUIFloatLabelTextInput","SUIFloatLabelTypeahead","SUIFormRow","SUITableHeaderCell","SUIHelpMessage","SUIHighlightedText","SUIHorizontalLayout","SUIInlineNux","SUIInlineTypeahead","SUILayerFooter","SUILayerHeader","SUILink","SUILoadingBar","SUIMessageBox","SUIModalDEPRECATED","SUIModalBackgroundDEPRECATED","SUIModalCardDEPRECATED","SUIModalCard","SUIMultistepModal","SUIMultiTabDrawer","SUINameCell","SUINestedTable","SUINotice","SUINoticeGroup","SUIPopover","SUIRadioList","SUIRemovableSearchableSelector","SUISearchableSelector","SUISearchInput","SUISectionHeading","SUISelector","SUISelectorButton","SUISelectorOption","SUISelectorOptionGroup","SUISelectorSeparator","SUISimpleTable","SUISpinner","SUISplitButton","SUIStatusIndicator","SUITabGroup","SUITabItem","SUITableDEPRECATED","SUITableCell","SUITable","SUIText","SUITextArea","SUITextInput","SUIThreeStateCheckboxInput","SUIToast","SUIToggle","SUIToggleButtonGroup","SUIToken","SUITokenizer","SUITokenizerItem","SUITokenizerItemList","SUITooltip","SUITypeahead"];a=function(){function a(a){var c=this;this.$1=a.components;this.id=a.id;this.logger=a.logger;h.forEach(function(a){var d=c.$1[a];!d?Object.defineProperty(c,a,{get:function(){var c=this;d||b("requireWeak")("AdsInterfacesComponentsLogger",function(b){return b.logSUIThemeError(new Error("Silvertail theme "+c.id+" does not define a uniform for component "+a),c.id)});d||g(0,2206,this.id,a);return d}}):c[a]=d})}var c=a.prototype;c.hasUniform=function(a){return!!this.$1[a]};a.get=function(a){if(a.props.preserveThemeFromContext&&a.props.theme)return a.props.theme;var c=a.props.theme,d=a.context;c=(c=c)!=null?c:d;var e=a.constructor.displayName||a.constructor.name;c||b("requireWeak")("AdsInterfacesComponentsLogger",function(a){return a.logSUIThemeError(new Error("Silvertail component "+e+" was not passed a theme in props or context. See https://fburl.com/silvertail-theme for more details."),e)});c||g(0,2207,e);return c};return a}();e.exports=a}),null);
__d("cxMargin",["cx"],(function(a,b,c,d,e,f,g){"use strict";function a(a){throw new Error("cxMargin: Unexpected margin transformation.")}e.exports=a}),null);
__d("SUIThemeContext.react",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");e.exports=a.createContext(null)}),null);
__d("withSUITheme",["invariant","Bootloader","React","SUIThemeContext.react","hoist-non-react-statics","requireWeak"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");c=b("React");var i=c.useContext,j=c.useEffect,k=c.useState,l=function(a){var b;return(b=(b=a.displayName)!=null?b:a.name)!=null?b:"Component"};function a(a){var c=l(a);function d(d,e){var f=i(b("SUIThemeContext.react")),g=n(c,d.theme,f),l=k(null),m=l[0],o=l[1],p=(l=g)!=null?l:m;j(function(){if(p==null)return b("Bootloader").loadModules(["SUIBusinessTheme"],o,"withSUITheme").remove},[p]);if(p==null)return null;g=h.jsx(a,babelHelpers["extends"]({},d,{ref:e,theme:p}));l=d.preserveThemeFromContext!==!0&&d.theme!=null&&d.theme!==f;return l?h.jsx(b("SUIThemeContext.react").Provider,{value:d.theme,children:g}):g}d.displayName="withSUITheme("+c+")";d=h.forwardRef(d);b("hoist-non-react-statics")(d,a);d.defaultProps=a.defaultProps;d.propTypes=a.propTypes;return d}function m(a){b("requireWeak")("AdsInterfacesComponentsLogger",function(b){return b.logSUIThemeError(new Error("Silvertail component "+a+" was not passed a theme in props or context. See https://fburl.com/silvertail-theme for more details."),a)})}function n(a,b,c){b=b||c;b||m(a);return b}e.exports=a}),null);
__d("SUISpinner.react",["cx","fbt","invariant","LoadingMarker.react","React","joinClasses","withSUITheme"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=b("React"),k=Math.PI,l=.75,m=1.5,n={};function o(a,b,c,d){var e=a.id+"-"+b+"-"+c+"-"+d;if(n[e])return n[e];var f=document.createElement("canvas"),g=f&&f.getContext?f.getContext("2d"):null;if(g==null)return;a=a.SUISpinner;c=a.sizes[c];var h=c.border;c=c.diameter;var i=window.devicePixelRatio||1;d=d==="dark";var j=d?a.darkActiveColor:a.activeColor;d=d?a.darkBackgroundColor:a.backgroundColor;a=c/2*i;c=h*i;h=(a+c)*2;f.height=f.width=h;f.style.width=f.style.height=h/i+"px";g.lineCap="round";g.lineWidth=c;i=h/2;g.beginPath();g.arc(i,i,a,0,2*k);g.strokeStyle=d;g.stroke();g.beginPath();g.arc(i,i,a,m*k,(m+b)%2*k);g.strokeStyle=j;g.stroke();c=f.toDataURL();n[e]=c;return c}function a(a){var c=a["data-testid"];c=a.className;var d=a.margin,e=a.animationDuration,f=a.arcSpread;f=f===void 0?l:f;var g=a.background;g=g===void 0?"light":g;var k=a.size;k=k===void 0?"large":k;var m=a.style;a=a.theme;a||i(0,20159);var n=a.SUISpinner;n=n.sizes[k];var p=n.border;n=n.diameter;n=n+p*2;p=o(a,f,k,g);a={height:n,width:n};e!==void 0&&(a.animationDuration=e+"ms");return j.jsx(b("LoadingMarker.react"),{children:j.jsx("span",{"aria-busy":!0,"aria-valuemax":360,"aria-valuemin":0,"aria-valuetext":h._("\u8aad\u307f\u8fbc\u307f\u4e2d..."),className:b("joinClasses")("_4cgy",c,d),"data-testid":void 0,role:"progressbar",style:babelHelpers["extends"]({},m,{height:n,width:n}),children:j.jsx("img",{alt:"",className:"_1lid",src:p,style:a})})})}e.exports=b("withSUITheme")(a)}),null);
__d("SUIText.react",["cx","invariant","PositionEnum","React","SUIErrorBoundary.react","SUIInlineStyle","SUITheme","WhiteSpaceEnum","autoFlipStyleProps","joinClasses","prop-types","withSUITheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=b("SUIInlineStyle").StandardSpacingValues;c={display:"inline",overflowWrap:"normal",shade:"dark",size:"body2",textAlign:"left"};d=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}c.getLineHeight=function(a,b){a=a.SUIText;return a[c.$1(b)].lineHeight};c.$1=function(a){switch(a){case"large_DEPRECATED":return"large";case"medium_DEPRECATED":return"medium";case"xlarge_DEPRECATED":return"xlarge";case"xsmall_DEPRECATED":return"xsmall";case"xxlarge_DEPRECATED":return"xxlarge";case"heading_DEPRECATED":return"heading";case"headline_DEPRECATED":return"headline";case"regular_DEPRECATED":return"regular";case"regularUI_DEPRECATED":return"regularUI";default:return a}};var d=c.prototype;d.$2=function(a,b){if(!a||!(a==="dark"))return b;switch(b){case"primary":return"primaryDark";case"secondary":return"secondaryDark";case"disabled":return"disabledDark";default:return b}};d.$3=function(a,b,c){return a.color?c.color[this.$2(a.palette,a.color)]:c.shade[a.shade]};d.render=function(){var a,d=b("SUITheme").get(this).SUIText,e=babelHelpers["extends"]({},this.props.style),f=this.$3(this.props,c.defaultProps,d),g=d[c.$1(this.props.size)];a=(a=this.props.weight)!=null?a:g.fontWeight;var j=d.units==="relative";e.fontFamily=g.fontFamily;e.fontSize=j?g.fontSize/16+"rem":g.fontSize+"px";e.lineHeight=j?g.lineHeight/g.fontSize:g.lineHeight+"px";e.letterSpacing=d.letterSpacing;Boolean(this.props.customSizeUseSparingly)&&(e.fontSize=this.props.customSizeUseSparingly,e.lineHeight="1.35");a!=null&&(e.fontWeight=a);Boolean(this.props.width)&&(e.width=this.props.width);e.overflowWrap=this.props.overflowWrap;e.wordWrap=this.props.overflowWrap;e.textAlign=this.props.textAlign;e.color=(j=this.props.customColorUseSparingly)!=null?j:f;this.props.whiteSpace&&(e.whiteSpace=this.props.whiteSpace);g={};this.props.id&&(g.id=this.props.id);Boolean(this.props["data-testid"])&&(g["data-testid"]=this.props["data-testid"]);this.props.role!==void 0?g.role=this.props.role:this.props.headingLevel&&(g.role="heading",g["aria-level"]=String(this.props.headingLevel));(Boolean(this.props.className)||Boolean(this.props.margin))&&(g.className=b("joinClasses")(this.props.className,this.props.margin));var k;switch(this.props.display){case"inline":k="span";(Boolean(this.props.width)||Boolean(this.props.margin))&&(e.display="inline-block");break;case"block":k="div";break;case"truncate":k="div";g.className=b("joinClasses")(g.className,"ellipsis");g["data-hover"]="tooltip";g["data-tooltip-display"]="overflow";this.props.tooltipPosition&&(g["data-tooltip-position"]=this.props.tooltipPosition);break;default:h(0,1606)}g.style=b("autoFlipStyleProps")(e);return i.jsx(k,babelHelpers["extends"]({},g,{children:i.jsx(b("SUIErrorBoundary.react"),{children:this.props.children})}))};return c}(i.PureComponent);d.propTypes={color:(f=b("prop-types")).oneOf(["primary","secondary","blueLink","placeholder","disabled","interactive","white","positive","negative"]),customColorUseSparingly:f.string,customSizeUseSparingly:f.string,"data-testid":f.string,display:f.oneOf(["block","inline","truncate"]).isRequired,margin:f.string,overflowWrap:f.oneOf(["break-word","normal"]).isRequired,shade:f.oneOf(["dark","light","link","medium","white"]).isRequired,size:f.oneOf(["display","header1","header2","header3","header4","body1","body1_DEPRECATED","body2","body2_DEPRECATED","body3","body3_DEPRECATED","meta1","heading","heading_DEPRECATED","headline","headline_DEPRECATED","regular","regular_DEPRECATED","regularUI","regularUI_DEPRECATED","large","large_DEPRECATED","medium","medium_DEPRECATED","small","subheading","xlarge","xlarge_DEPRECATED","xsmall","xsmall_DEPRECATED","xxlarge","xxlarge_DEPRECATED"]).isRequired,style:f.shape({margin:f.oneOf(a),marginBottom:f.oneOf(a),marginLeft:f.oneOf(a),marginRight:f.oneOf(a),marginTop:f.oneOf(a)}),textAlign:f.oneOf(["left","right","center","inherit"]).isRequired,tooltipPosition:b("PositionEnum").propType,palette:f.oneOf(["light","dark"]),weight:f.oneOf(["bold","normal"]),whiteSpace:b("WhiteSpaceEnum").propType,width:f.oneOfType([f.number,f.string])};d.defaultProps=c;e.exports=b("withSUITheme")(d)}),null);
__d("UFI2SurfaceContainerContext",["requireCond","React","cr:858332","gkx"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=a.createContext({components:b("cr:858332"),containerMapping:{containerIsFeedStory:!0,containerIsLiveStory:!1,containerIsTahoe:!1,containerIsWorkplace:!1},isComet:b("gkx")("708253")});e.exports=c}),null);
__d("UFI2SurfaceContainerConsumer.react",["invariant","React","UFI2SurfaceContainerContext"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this;return h.jsx(b("UFI2SurfaceContainerContext").Consumer,{children:function(b){b!=null||g(0,493);var c=a.props.children;return c(b)}})};return c}(h.Component);e.exports=a}),null);
__d("UFI2CommentActionLinksDynamic.react",["FBLogger","React","UFI2CometRelayCreateFragmentContainer","UFI2SurfaceContainerConsumer.react","UFI2CommentActionLinksDynamic_comment.graphql","UFI2CommentActionLinksDynamic_feedback.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h,i=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var j=!1;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=a.comment,d=a.feedback,e=babelHelpers.objectWithoutPropertiesLoose(a,["comment","feedback"]);return i.jsx("div",{children:i.jsx(b("UFI2SurfaceContainerConsumer.react"),{children:function(a){a=(a=a.components)==null?void 0:a.CommentActionLinksComponent;if(!a){j||(b("FBLogger")("ufi2").mustfix("UFI2CommentActionLinksDynamic: Tried to render without providing a Component for CommentActionLinksComponent via UFI2SurfaceContainerContext."),j=!0);return null}return i.jsx(a,babelHelpers["extends"]({},e,{comment:c,feedback:d}))}})})};return c}(i.Component);e.exports=a(c,{comment:g!==void 0?g:g=b("UFI2CommentActionLinksDynamic_comment.graphql"),feedback:h!==void 0?h:h=b("UFI2CommentActionLinksDynamic_feedback.graphql")})}),null);
__d("UFI2CommentActorLinkBadgesDynamic.react",["FBLogger","React","UFI2CometRelayCreateFragmentContainer","UFI2SurfaceContainerConsumer.react","UFI2CommentActorLinkBadgesDynamic_comment.graphql","UFI2CommentActorLinkBadgesDynamic_feedback.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h,i=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var j=!1;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=a.comment,d=a.feedback;return i.jsx(b("UFI2SurfaceContainerConsumer.react"),{children:function(a){a=(a=a.components)==null?void 0:a.CommentActorLinkBadgesComponent;if(!a){j||(b("FBLogger")("ufi2").mustfix("UFI2CommentActorLinkBadgesDynamic: Tried to render without providing a Component for CommentActorLinkBadgesComponent via UFI2SurfaceContainerContext."),j=!0);return null}return i.jsx(a,{comment:c,feedback:d})}})};return c}(i.Component);e.exports=a(c,{comment:g!==void 0?g:g=b("UFI2CommentActorLinkBadgesDynamic_comment.graphql"),feedback:h!==void 0?h:h=b("UFI2CommentActorLinkBadgesDynamic_feedback.graphql")})}),null);
__d("UFI2CommentActorNameDynamic.react",["FBLogger","React","UFI2CometRelayCreateFragmentContainer","UFI2SurfaceContainerConsumer.react","UFI2CommentActorNameDynamic_author.graphql","UFI2CommentActorNameDynamic_comment.graphql","UFI2CommentActorNameDynamic_feedback.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h,i,j=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var k=!1;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=a.author,d=a.feedback,e=a.comment,f=babelHelpers.objectWithoutPropertiesLoose(a,["author","feedback","comment"]);return j.jsx(b("UFI2SurfaceContainerConsumer.react"),{children:function(a){a=(a=a.components)==null?void 0:a.CommentActorNameComponent;if(!a){k||(b("FBLogger")("ufi2").mustfix("UFI2CommentActorNameDynamic: Tried to render without providing a Component for CommentActorNameComponent via UFI2SurfaceContainerContext."),k=!0);return null}return j.jsx(a,babelHelpers["extends"]({},f,{author:c,comment:e,feedback:d}))}})};return c}(j.Component);e.exports=a(c,{author:g!==void 0?g:g=b("UFI2CommentActorNameDynamic_author.graphql"),comment:h!==void 0?h:h=b("UFI2CommentActorNameDynamic_comment.graphql"),feedback:i!==void 0?i:i=b("UFI2CommentActorNameDynamic_feedback.graphql")})}),null);
__d("UFI2CommentAttachmentsDynamic.react",["FBLogger","React","UFI2CometRelayCreateFragmentContainer","UFI2SurfaceContainerConsumer.react","UFI2CommentAttachmentsDynamic_comment.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var i=!1;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this,c=this.props,d=c.actorID,e=c.comment,f=c.feedbackSource;return h.jsx("div",{children:h.jsx(b("UFI2SurfaceContainerConsumer.react"),{children:function(c){c=(c=c.components)==null?void 0:c.CommentAttachmentComponent;if(!c){i||(b("FBLogger")("ufi2").mustfix("UFI2CommentAttachmentsDynamic: Tried to render without providing a Component for CommentAttachmentComponent via UFI2SurfaceContainerContext."),i=!0);return null}return h.jsx(c,{actorID:d,comment:e,feedbackSource:f,storyRenderLocation:a.props.storyRenderLocation})}})})};return c}(h.Component);e.exports=a(c,{comment:g!==void 0?g:g=b("UFI2CommentAttachmentsDynamic_comment.graphql")})}),null);
__d("UFI2CommentBodyDynamic.react",["FBLogger","React","UFI2CometRelayCreateFragmentContainer","UFI2SurfaceContainerConsumer.react","UFI2CommentBodyDynamic_comment.graphql","UFI2CommentBodyDynamic_feedback.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h,i=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var j=!1;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=a.comment,d=a.feedback,e=babelHelpers.objectWithoutPropertiesLoose(a,["comment","feedback"]);return i.jsx("div",{children:i.jsx(b("UFI2SurfaceContainerConsumer.react"),{children:function(a){a=(a=a.components)==null?void 0:a.CommentBodyComponent;if(!a){j||(b("FBLogger")("ufi2").mustfix("UFI2CommentBodyDynamic: Tried to render without providing a Component for CommentBodyComponent via UFI2SurfaceContainerContext."),j=!0);return null}return i.jsx(a,babelHelpers["extends"]({},e,{comment:c,feedback:d}))}})})};return c}(i.Component);e.exports=a(c,{comment:g!==void 0?g:g=b("UFI2CommentBodyDynamic_comment.graphql"),feedback:h!==void 0?h:h=b("UFI2CommentBodyDynamic_feedback.graphql")})}),null);
__d("UFI2LinkWrapper.react",["requireCond","cr:827572"],(function(a,b,c,d,e,f){"use strict";e.exports=b("cr:827572")}),null);
__d("UFI2ProfileLinkDynamic.react",["FBLogger","React","UFI2SurfaceContainerConsumer.react"],(function(a,b,c,d,e,f){"use strict";var g=b("React"),h=!1;a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this;return g.jsx(b("UFI2SurfaceContainerConsumer.react"),{children:function(c){c=(c=c.components)==null?void 0:c.ProfileLinkComponent;if(!c){h||(b("FBLogger")("ufi2").mustfix("UFI2ProfileLinkDynamic: Tried to render without providing a Component for ProfileLinkComponent via UFI2SurfaceContainerContext."),h=!0);return null}return g.jsx(c,babelHelpers["extends"]({},a.props))}})};return c}(g.Component);e.exports=a}),null);
__d("UFI2SurfaceContainerFallback",["FBLogger","JSResource","React","lazyLoadComponent"],(function(a,b,c,d,e,f){"use strict";var g=b("React"),h=(a=b("lazyLoadComponent"))((c=b("JSResource"))("FeedStoryUFICommentActionLinks.react").__setRef("UFI2SurfaceContainerFallback")),i=a(c("FeedStoryUFICommentActorLinkBadges.react").__setRef("UFI2SurfaceContainerFallback")),j=a(c("UFI2CommentActorName.react").__setRef("UFI2SurfaceContainerFallback")),k=a(c("FeedStoryUFICommentAttachments.react").__setRef("UFI2SurfaceContainerFallback")),l=a(c("FeedStoryUFICommentBody.react").__setRef("UFI2SurfaceContainerFallback")),m=a(c("UFI2ProfileLink.react").__setRef("UFI2SurfaceContainerFallback")),n=new Set(),o=function(a){var c=a.children;a=a.componentName;n.has(a)||(b("FBLogger")("ufi2").mustfix("UFI2SurfaceContainerContext: Tried to render a %s without providing a parent context. To provide context, wrap in a context provider, e.g. <UFI2SurfaceContainerContext.Provider value={context} />",a),n.add(a));return g.jsx(g.Suspense,{fallback:null,children:c})};d={CommentActionLinksComponent:function(a){return g.jsx(o,{componentName:"UFI2CommentActionLinksDynamic",children:g.jsx(h,babelHelpers["extends"]({},a))})},CommentActorLinkBadgesComponent:function(a){return g.jsx(o,{componentName:"UFI2CommentActorLinkBadgesDynamic",children:g.jsx(i,babelHelpers["extends"]({},a))})},CommentActorNameComponent:function(a){return g.jsx(o,{componentName:"UFI2CommentActorNameDynamic",children:g.jsx(j,babelHelpers["extends"]({},a))})},CommentAttachmentComponent:function(a){return g.jsx(o,{componentName:"UFI2CommentAttachmentsDynamic",children:g.jsx(k,babelHelpers["extends"]({},a))})},CommentBodyComponent:function(a){return g.jsx(o,{componentName:"UFI2CommentBodyDynamic",children:g.jsx(l,babelHelpers["extends"]({},a))})},ProfileLinkComponent:function(a){return g.jsx(o,{componentName:"UFI2ProfileLinkDynamic",children:g.jsx(m,babelHelpers["extends"]({},a))})}};e.exports=d}),null);
__d("UFI2SurfaceContainerProvider.react",["React","UFI2SurfaceContainerContext"],(function(a,b,c,d,e,f){"use strict";var g=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return g.jsx(b("UFI2SurfaceContainerContext").Provider,{value:this.props.providerValue,children:this.props.children})};return c}(g.Component);e.exports=a}),null);
__d("UFI2TooltipCometCompatWrapper.react",["requireCond","cr:850872"],(function(a,b,c,d,e,f){"use strict";e.exports=b("cr:850872")}),null);
__d("UFI2BootloadedCommentPlaceInfoAttachment.react",["cx","JSResource","React","UFI2CometRelayCreateFragmentContainer","XUISpinner.react","lazyLoadComponent","UFI2BootloadedCommentPlaceInfoAttachment_attachment.graphql","UFI2BootloadedCommentPlaceInfoAttachment_comment.graphql","UFI2BootloadedCommentPlaceInfoAttachment_PageFragment.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var l=b("lazyLoadComponent")(b("JSResource")("UFI2CommentPlaceInfoAttachment.react").__setRef("UFI2BootloadedCommentPlaceInfoAttachment.react"));function a(a){var c,d;c=(c=a.attachment)==null?void 0:(c=c.target)==null?void 0:c.pending_places_for_attachment;d=(d=a.attachment)==null?void 0:(d=d.target)==null?void 0:(d=d.place_list_items)==null?void 0:d.nodes;if(!c&&!d)return null;c=(c==null?void 0:c.length)||0+(d==null?void 0:d.length)||0;d=c==0?90:88*c+34;c=k.jsx("div",{className:"_6su-",style:{height:d+"px"},children:k.jsx(b("XUISpinner.react"),{size:"large"})});return k.jsx(k.Suspense,{fallback:c,children:k.jsx(l,babelHelpers["extends"]({},a))})}e.exports=c(a,{attachment:h!==void 0?h:h=b("UFI2BootloadedCommentPlaceInfoAttachment_attachment.graphql"),comment:i!==void 0?i:i=b("UFI2BootloadedCommentPlaceInfoAttachment_comment.graphql")});j!==void 0?j:j=b("UFI2BootloadedCommentPlaceInfoAttachment_PageFragment.graphql")}),null);
__d("UFI2CommentAttachmentContainer.react",["cx","React","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){var c=a.children,d=a.className,e=a.height;a=a.width;return h.jsxs("div",{className:b("joinClasses")("_2tx5",d),children:[h.jsx("div",{className:"_2txe",children:c}),h.jsx("div",{className:"_3fp0",style:{paddingBottom:(a?e/a*100:0)+"%",width:a}}),h.jsx("div",{className:"_8un9"})]})}e.exports=a}),null);
__d("UFI2CommentAnimatedImageAttachment.react",["ix","cx","requireCond","FBLogger","Image.react","JSResource","React","UFI2CometRelayCreateFragmentContainer","UFI2CommentAttachmentContainer.react","UFI2LinkWrapper.react","UFI2ScaleRect","asset","ifRequired","isAnimatedWebPProbablySupported","lazyLoadComponent","cr:866447","UFI2CommentAnimatedImageAttachment_attachment.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var k=b("lazyLoadComponent")(b("JSResource")("UFI2CommentAnimatedImageAttachmentPlayer.react").__setRef("UFI2CommentAnimatedImageAttachment.react")),l=b("lazyLoadComponent")(b("JSResource")("FeedAnimatedImageShare.react").__setRef("UFI2CommentAnimatedImageAttachment.react")),m=396;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$1=b("isAnimatedWebPProbablySupported")(b("ifRequired")("UserAgent",function(a){return a})),d.state={videoPlayerController:null},d.$2=function(a){d.state.videoPlayerController==null&&d.setState({videoPlayerController:a})},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.render=function(){var a,c,d,e=this.props.attachment.url,f=this.props.attachment.media;if(!f)return null;var g;this.$1?g=f.webPAnimatedImage_396||f.gifAnimatedImage_396:g=f.gifAnimatedImage_396;var h=f.image_396,i=f.id,n=f.media_id,o=f.playable_url;a=(a=g)==null?void 0:a.uri;var p=h==null?void 0:h.uri;c=(c=(c=g)==null?void 0:c.width)!=null?c:h==null?void 0:h.width;d=(d=(d=g)==null?void 0:d.height)!=null?d:h==null?void 0:h.height;if(!c||!d){b("FBLogger")("ufi2").addMetadata("UFI","RAW_DATA",JSON.stringify(g)||JSON.stringify(h)||"UNDEFINED").addMetadata("UFI","MEDIA_TYPE",f.__typename).addMetadata("UFI","ATTACHMENT_ID",i||n||"UNDEFINED").mustfix("Tried to render UFI2CommentAnimatedImageAttachment without a knownsize.");return null}if(a||i||p){g=b("UFI2ScaleRect").scaleToContain({gracefullyFallbackToMaxDimensionWhenHeightOrWidthIsZero:!0,maxHeight:m,maxWidth:m,srcHeight:d,srcWidth:c});h=g.height;n=g.width;d=this.state.videoPlayerController&&this.state.videoPlayerController.getContainerNode();return j.jsxs(b("UFI2CommentAttachmentContainer.react"),{height:h,width:n,children:[(!i||this.state.videoPlayerController)&&j.jsx(j.Suspense,{fallback:j.jsx("div",{}),children:j.jsx(l,{animatedSrc:a,autoplay:!0,className:"_6c7h",fbid:i,height:h,href:e,isPlayableInline:d!=null||a!=null,overlayNode:this.$3(),staticSrc:p,videoController:this.state.videoPlayerController,videoElement:d,width:n})}),b("cr:866447")!=null&&o!=null&&i!=null?j.jsx(b("cr:866447"),{autoplay:!0,controls:!1,loop:!0,onUpdate:this.$2,placeholder:j.jsx(b("Image.react"),{height:h,src:p,width:n}),playableUrl:o,playerOrigin:"comment",subOrigin:"animated_image_share",videoID:i}):i&&j.jsx(j.Suspense,{fallback:j.jsx(b("Image.react"),{height:h,src:p,width:n}),children:j.jsx(k,{onVpcUpdate:this.$2,videoID:i})})]})}else{b("FBLogger")("ufi2").addMetadata("UFI","RAW_DATA",JSON.stringify(f)||"UNDEFINED").mustfix("Tried to render UFI2CommentAnimatedImageAttachment without an animatedImageURI or videoID.");return null}};d.$3=function(){var a,c=this.props.attachment,d=c.url;a=(a=c.media)==null?void 0:a.animated_image_attribution;c=(c=c.source)==null?void 0:c.text;return d?j.jsxs(b("UFI2LinkWrapper.react"),{className:"_336k",href:d,rel:"noopener nofollow",target:"_blank",children:[j.jsx("div",{className:"_336m",children:a||c}),j.jsx(b("Image.react"),{className:"_336n",src:g("412470")})]}):null};return c}(j.Component);c.displayName="UFI2CommentAnimatedImageAttachment";e.exports=a(c,{attachment:i!==void 0?i:i=b("UFI2CommentAnimatedImageAttachment_attachment.graphql")})}),null);
__d("UFI2CommentAttachmentContentFilterBootloadPlaceholder.react",["cx","React","UFI2CommentAttachmentContainer.react","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){var c=a.className,d=a.height;a=a.width;return h.jsxs(h.Fragment,{children:[h.jsx(b("UFI2CommentAttachmentContainer.react"),{className:b("joinClasses")("_6bk0",c),height:d,width:a,children:h.jsx("div",{})}),h.jsx("div",{className:"_6bk2"})]})}e.exports=a}),null);
__d("UFI2CommentDonationAttachment.react",["ix","cx","Image.react","React","TextWithEntities.react","UFI2CometRelayCreateFragmentContainer","asset","linkifyEntityRange","UFI2CommentDonationAttachment_attachment.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a,c;a=(a=this.props.attachment.style_infos[0])==null?void 0:a.donation_comment_text;if(a==null)return null;c=(c=(c=this.props.attachment.style_infos[0])==null?void 0:c.use_donation_v2)!=null?c:!1;return c?j.jsxs("div",{className:"_945e",children:[j.jsx("span",{className:"_946k",children:j.jsx(b("Image.react"),{src:g("1424985")})}),j.jsx("span",{className:"_94in",children:j.jsx(b("TextWithEntities.react"),{interpolator:b("linkifyEntityRange"),ranges:a.ranges,text:a.text})})]}):a!=null?j.jsx("div",{className:"_629t",children:j.jsx(b("TextWithEntities.react"),{interpolator:b("linkifyEntityRange"),ranges:a.ranges,text:a.text})}):null};return c}(j.Component);e.exports=a(c,{attachment:i!==void 0?i:i=b("UFI2CommentDonationAttachment_attachment.graphql")})}),null);
__d("UFI2CommentImageAttachment.react",["Image.react","JSResource","React","UFI2CometRelayCreateFragmentContainer","UFI2CommentAttachmentContainer.react","UFI2CommentAttachmentContentFilterBootloadPlaceholder.react","UFI2LinkWrapper.react","UFI2ScaleRect","gkx","lazyLoadComponent","UFI2CommentImageAttachment_attachment.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var i=b("lazyLoadComponent")(b("JSResource")("UFI2CommentAttachmentContentFilterContainer.react").__setRef("UFI2CommentImageAttachment.react"));function a(a){var c,d,e,f,g,j=a.attachment,k=a.storyRenderLocation;c=(c=j.media)==null?void 0:(c=c.image)==null?void 0:c.uri;d=(d=j.media)==null?void 0:(d=d.image)==null?void 0:d.width;e=(e=j.media)==null?void 0:(e=e.image)==null?void 0:e.height;var l=j.url;f=(f=j.media)==null?void 0:f.accessibility_caption;g=(g=j.media)==null?void 0:g.objectionable_content_info;if(j&&c!==""&&c!=null&&l!==""&&l!=null&&d!=null&&e!=null){var m,n,o;e=b("UFI2ScaleRect").scaleToContain({gracefullyFallbackToMaxDimensionWhenHeightOrWidthIsZero:!0,maxHeight:210,maxWidth:260,srcHeight:e,srcWidth:d});d=e.height;e=e.width;m=(m=j.media)==null?void 0:(m=m.massive_image)==null?void 0:m.height;n=(n=j.media)==null?void 0:(n=n.image)==null?void 0:n.uri;o=(o=j.media)==null?void 0:(o=o.massive_image)==null?void 0:o.width;m=m!=null&&n!=null&&o!=null?{origHeight:m,origSrc:n,origWidth:o}:null;n=h.jsx(b("UFI2LinkWrapper.react"),{href:l,passthroughProps:m,rel:b("gkx")("708253")?void 0:"theater",children:h.jsx(b("Image.react"),{alt:f,height:d,src:c,width:e})});return g?h.jsx(h.Suspense,{fallback:h.jsx(b("UFI2CommentAttachmentContentFilterBootloadPlaceholder.react"),{className:a.className,height:d,width:e}),children:h.jsx(i,{className:a.className,height:d,objectionableContentInfo:g,responsibleContentLocation:k,storyAttachment:j,type:"photo",width:e,children:n})}):h.jsx(b("UFI2CommentAttachmentContainer.react"),{className:a.className,height:d,width:e,children:n})}return null}a.displayName="UFI2CommentImageAttachment";e.exports=c(a,{attachment:g!==void 0?g:g=b("UFI2CommentImageAttachment_attachment.graphql")})}),null);
__d("UFI2CommentLazyLoadAttachmentContainer.react",["React","RelayFBMatchContainer","UFI2CometRelayCreateFragmentContainer","UFI2CommentLazyLoadAttachmentContainer_attachment.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function a(a){a=a.attachment;a=a.style_type_renderer_blue;return a==null?null:h.jsx(h.Suspense,{fallback:"",children:h.jsx(b("RelayFBMatchContainer"),{match:a})})}e.exports=c(a,{attachment:g!==void 0?g:g=b("UFI2CommentLazyLoadAttachmentContainer_attachment.graphql")})}),null);
__d("UFI2CommentSticker.react",["JSResource","React","UFI2CometRelayCreateFragmentContainer","UFI2ScaleRect","lazyLoadComponent","UFI2CommentSticker_sticker.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var i=b("lazyLoadComponent")(b("JSResource")("Sticker.react").__setRef("UFI2CommentSticker.react"));function a(a){var c=a.className;a=a.sticker;var d=a.sticker_type==="AVATAR",e=a.sprite_image,f=d?a.larger_sticker_image:a.sticker_image;if(f==null)return null;d=d?120:80;d=b("UFI2ScaleRect").scaleToContain({gracefullyFallbackToMaxDimensionWhenHeightOrWidthIsZero:!1,maxHeight:d,maxWidth:d,srcHeight:f.height||d,srcWidth:f.width||d});var g=d.height;d=d.width;var j=h.jsx("div",{style:{backgroundImage:"url("+(f.uri||"")+")",backgroundRepeat:"no-repeat",backgroundSize:d+"px "+g+"px",height:g,width:d}});return h.jsx(h.Suspense,{fallback:j,children:h.jsx(i,{accessibilityLabel:a.label,animationTrigger:"load_and_hover",className:c,frameCount:a.frame_count,frameRate:a.frame_rate,framesPerCol:a.frames_per_column,framesPerRow:a.frames_per_row,packName:(j=a.pack)==null?void 0:j.name,sourceHeight:g,sourceURI:f.uri,sourceWidth:d,spriteURI:e==null?void 0:e.uri})})}a.displayName="UFI2CommentSticker";e.exports=c(a,{sticker:g!==void 0?g:g=b("UFI2CommentSticker_sticker.graphql")})}),null);
__d("UFI2CommentStickerAttachment.react",["FBLogger","React","UFI2CometRelayCreateFragmentContainer","UFI2CommentSticker.react","UFI2CommentStickerAttachment_attachment.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function a(a){a=a.attachment.sticker;if(a==null){b("FBLogger")("ufi2").mustfix("An attachment with the `sticker` style had a `null` media field. This should not be possible; investigate why.");return null}return h.jsx(b("UFI2CommentSticker.react"),{sticker:a})}a.displayName="UFI2CommentStickerAttachment";e.exports=c(a,{attachment:g!==void 0?g:g=b("UFI2CommentStickerAttachment_attachment.graphql")})}),null);
__d("UFI2CommentVideoAttachment.react",["requireCond","FBLogger","Image.react","JSResource","React","UFI2CometRelayCreateFragmentContainer","UFI2CommentAttachmentContainer.react","UFI2CommentAttachmentContentFilterBootloadPlaceholder.react","UFI2ScaleRect","lazyLoadComponent","cr:859010","cr:897925","UFI2CommentVideoAttachment_attachment.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var i=b("lazyLoadComponent")(b("JSResource")("UFI2CommentAttachmentContentFilterContainer.react").__setRef("UFI2CommentVideoAttachment.react")),j=414;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.$1=null,c.$2=function(a){c.$1=a},c.$3=h.createRef(),c.$4=function(a){var b=c.$1,d=c.$3.current,e="warning_screen_cover";b!=null?a?b.pause(e):b.play(e):d!=null&&(a?d.pause(e):d.play(e))},b)||babelHelpers.assertThisInitialized(c)}var d=c.prototype;d.render=function(){var a=this.props,c=a.actorID;a=a.attachment;var d=a.media;if(!d){b("FBLogger")("ufi2").mustfix("An attachment with the `video` style had a `null` media field. This should not be possible; investigate why.");return null}var e=d.id,f=d.width,g=d.height,k=d.objectionable_content_info;if(a&&e!=null&&f!=null&&g!=null){g=b("UFI2ScaleRect").shrinkToContain({gracefullyFallbackToMaxDimensionWhenHeightOrWidthIsZero:!0,maxHeight:j,maxWidth:j,srcHeight:g,srcWidth:f});f=g.height;g=g.width;var l=d.original_width,m=d.original_height;m=l!=null&&m!=null?m>l:void 0;l=h.jsx(b("Image.react"),{height:f,src:(l=d.image)==null?void 0:l.uri,width:g});d=b("cr:897925")!=null?h.jsx(b("cr:897925"),{setController:this.$2,video:d}):b("cr:859010")!=null?h.jsx(h.Suspense,{fallback:l,children:h.jsx(b("cr:859010"),{actorID:c,autoplay:this.props.autoplay||!1,isPortrait:m,videoID:e,videoPlayerRef:this.$3})}):l;return k?h.jsx(h.Suspense,{fallback:h.jsx(b("UFI2CommentAttachmentContentFilterBootloadPlaceholder.react"),{className:this.props.className,height:f,width:g}),children:h.jsx(i,{className:this.props.className,height:f,objectionableContentInfo:k,onCoverOrUncover:this.$4,responsibleContentLocation:this.props.storyRenderLocation,storyAttachment:a,type:"video",width:g,children:d})}):h.jsx(b("UFI2CommentAttachmentContainer.react"),{className:this.props.className,height:f,width:g,children:d})}return null};return c}(h.Component);c.displayName="UFI2CommentVideoAttachment";e.exports=a(c,{attachment:g!==void 0?g:g=b("UFI2CommentVideoAttachment_attachment.graphql")})}),null);
__d("UFI2CommentVideoAttachmentPlayerLazy.react",["JSResource","React","lazyLoadComponent"],(function(a,b,c,d,e,f){"use strict";var g=b("React"),h=b("lazyLoadComponent")(b("JSResource")("UFI2CommentVideoAttachmentPlayer.react").__setRef("UFI2CommentVideoAttachmentPlayerLazy.react"));a=function(a){return g.jsx(h,babelHelpers["extends"]({},a))};e.exports=a}),null);
__d("UFI2CommentFallbackAttachment.react",["cx","Image.react","JSResource","LitestandEllipsis","React","UFI2CometRelayCreateFragmentContainer","UFI2LinkWrapper.react","UFI2ScaleRect","lazyLoadComponent","UFI2CommentFallbackAttachment_attachment.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var j=b("lazyLoadComponent")(b("JSResource")("UFI2CommentArticleContext.react").__setRef("UFI2CommentFallbackAttachment.react"));function a(a){var c,d,e,f;a=a.attachment;c=(c=(c=a.target)==null?void 0:c.url)!=null?c:a.url;var g=(d=a.title_with_entities)==null?void 0:d.text,h=(d=a.source)==null?void 0:d.text;d=(d=a.media)==null?void 0:(d=d.fallback_image)==null?void 0:d.uri;e=(e=a.media)==null?void 0:(e=e.fallback_image)==null?void 0:e.width;f=(f=a.media)==null?void 0:(f=f.fallback_image)==null?void 0:f.height;var l=null;if(d&&e&&f){f=b("UFI2ScaleRect").scaleToContain({gracefullyFallbackToMaxDimensionWhenHeightOrWidthIsZero:!1,maxHeight:98,maxWidth:98,srcHeight:f,srcWidth:e});e=f.height;f=f.width;l=d&&i.jsxs(i.Fragment,{children:[i.jsx(b("Image.react"),{alt:g||h,className:"_ns-",height:e,src:d,width:f}),((e=a.media)==null?void 0:e.is_playable)?i.jsx("i",{className:"_6a14"}):null]})}d=null;a.action_links.forEach(function(a){a.__typename==="ArticleContextActionLink"&&(d=i.jsx(j,{actionLink:a,title:g||h}))});return i.jsxs("div",{className:"_3mvp","data-ft":a.tracking,children:[i.jsxs("div",{className:"_6a15",children:[l&&i.jsx("div",{className:"_3mvu",children:l}),i.jsxs("div",{className:"_3mvv",children:[h&&i.jsx("div",{className:"_2fj2",children:i.jsx("div",{className:"_3mvw ellipsis",children:h})}),g&&i.jsx("div",{className:"_3mvr",ref:k,children:g}),c&&i.jsx(b("UFI2LinkWrapper.react"),{className:"_ns_",href:c,rel:"noopener nofollow",target:"_blank",children:i.jsx("span",{className:"accessible_elem",children:g||h})})]})]}),i.jsx(i.Suspense,{fallback:null,children:d})]})}a.displayName="UFI2CommentFallbackAttachment";function k(a){a&&b("LitestandEllipsis").add(a,40)}e.exports=c(a,{attachment:h!==void 0?h:h=b("UFI2CommentFallbackAttachment_attachment.graphql")})}),null);
__d("UFI2AttachmentLoader",["AsyncRequest","FBLogger","XUFI2FetchCommentShareAttachmentController","guid"],(function(a,b,c,d,e,f){"use strict";var g=new Map();function a(a){var c=b("guid")(),d=b("XUFI2FetchCommentShareAttachmentController").getURIBuilder().setInt("feedback_source",a.feedbackSource).setString("comment_id",a.commentID).setString("request_id",c).getRequest_LEGACY_UNTYPED(new(b("AsyncRequest"))()).setErrorHandler(function(){a.onResponse(null)}).setAllowCrossPageTransition(!0);d.send();g.set(c,a.onResponse);return{abandon:function(){g["delete"](c),d.abandon()}}}function c(a,c){var d=g.get(a);if(d==null){b("FBLogger")("ufi2").info("UFI2AttachmentLoader: trying to set response to request that never existed or no longer exists: `%s`.",a);return}d(c);g["delete"](a)}e.exports={request:a,setResponse:c}}),null);
__d("UFI2CommentServerAttachment.react",["cx","DOMContainer.react","React","UFI2AttachmentLoader","UFI2CometRelayCreateFragmentContainer","UFI2CommentServerAttachment_comment.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.state={element:null,loading:c.props.comment.id!=null},c.$1=null,b)||babelHelpers.assertThisInitialized(c)}var d=c.prototype;d.componentDidMount=function(){var a=this,c=this.props.comment.id;if(c==null)return;c=b("UFI2AttachmentLoader").request({commentID:c,feedbackSource:this.props.feedbackSource,onResponse:function(b){a.setState({element:b,loading:!1})}});this.$1=c.abandon};d.componentWillUnmount=function(){this.$1&&(this.$1(),this.$1=null)};d.render=function(){return this.state.loading?null:this.state.element?i.jsx(b("DOMContainer.react"),{className:"UFICommentContent _3-a6",display:"block",children:this.state.element}):null};return c}(i.Component);c.displayName="UFI2CommentServerAttachment";e.exports=a(c,{comment:h!==void 0?h:h=b("UFI2CommentServerAttachment_comment.graphql")})}),null);
__d("UFI2CommentActionLinks.react",["cx","CometUFIFocusWithinContextProvider.react","React","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){var c=a.children,d=a.className;a=a.listRef;return h.jsx("ul",{className:b("joinClasses")("_6coi",d),"data-testid":void 0,ref:a,children:h.jsx(b("CometUFIFocusWithinContextProvider.react"),{children:c})})}c=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.render=function(){var a=this.props.children;return h.jsxs("li",{className:"_6coj",children:[h.jsx("span",{"aria-hidden":!0,className:"_6cok",children:"\xa0\xb7\xa0"}),a]})};return b}(h.PureComponent);e.exports={UFI2CommentActionLinkItem:c,UFI2CommentActionLinks:a}}),null);
__d("UFI2BanActorLink.react",["fbt","requireDeferred","React","UFI2CometRelayCreateFragmentContainer","UFI2CommentActionLinks.react","UFI2LinkWrapper.react","UFI2BanActorLink_comment.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("React"),j=b("requireDeferred")("UFI2BanActorMutation");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var k=b("UFI2CommentActionLinks.react").UFI2CommentActionLinkItem;function a(a){var c,d=a.relay,e=a.comment,f=a.feedbackSource;a=a.className;var h=e==null?void 0:(c=e.parent_feedback)==null?void 0:c.id,l=e==null?void 0:(c=e.parent_feedback)==null?void 0:(c=c.viewer_acts_as_page)==null?void 0:c.id,m=e==null?void 0:(c=e.author)==null?void 0:c.id;return l==null||m==null?null:i.jsx(k,{children:i.jsx(b("UFI2LinkWrapper.react"),{className:a,href:"#",onClick:function(){return j.onReadyImmediately(function(a){a.commit(d.environment,{actorId:l,feedbackId:h,feedbackSource:f,pageId:l,targetUserId:m,undoBan:Boolean(e.is_author_banned_by_content_owner)})})},role:"button",children:(e==null?void 0:e.is_author_banned_by_content_owner)?g._("{name}\u3055\u3093\u306e\u30d6\u30ed\u30c3\u30af\u3092\u89e3\u9664",[g._param("name",(c=e.author)==null?void 0:c.name)]):g._("{name}\u3055\u3093\u3092\u30d6\u30ed\u30c3\u30af",[g._param("name",(a=e.author)==null?void 0:a.name)])})})}e.exports=c(a,{comment:h!==void 0?h:h=b("UFI2BanActorLink_comment.graphql")})}),null);
__d("UFI2CommentMenu.react",["requireCond","cr:982210","React","UFI2CometRelayCreateFragmentContainer","UFI2CommentMenu_comment.graphql","UFI2CommentMenu_feedback.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h,i=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function a(a){return i.jsx(b("cr:982210"),babelHelpers["extends"]({},a))}e.exports=c(a,{comment:g!==void 0?g:g=b("UFI2CommentMenu_comment.graphql"),feedback:h!==void 0?h:h=b("UFI2CommentMenu_feedback.graphql")})}),null);
__d("UFI2CommentMenuBlue.react",["cx","Bootloader","FBLogger","JSResource","React","UFI2CometRelayCreateFragmentContainer","UFI2NUXConfig","XUIDotsButton.react","XUISpinner.react","ifRequired","injectSubscriptionsHandler.react","lazyLoadComponent","UFI2CommentMenuBlue_comment.graphql","UFI2CommentMenuBlue_feedback.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var k=b("lazyLoadComponent")((c=b("JSResource"))("UFI2RemoveTextDelightsNUX.react").__setRef("UFI2CommentMenuBlue.react")),l={CommentMenuItemBanCommenter:c("getCommentMenuItemBanCommenter").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemCreateDetailedReport:c("getCommentMenuItemCreateDetailedReport").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemDelete:c("getCommentMenuDeleteItem").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemDeleteAndBlockAuthor:c("getCommentMenuDeleteAndBlockItem").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemDeleteAndRemoveMember:c("getCommentMenuDeleteAndRemoveItem").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemDivider:c("getCommentMenuItemDivider").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemEdit:c("getCommentMenuEditItem").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemGiveFeedbackOrReport:c("getCommentMenuItemGiveFeedbackOrReport").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemHide:c("getCommentMenuHideItem").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemMuteMember:c("getCommentMenuMuteCommenterItem").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemRemoveTag:c("getCommentMenuItemRemoveTag").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemRemoveTextDelights:c("getCommentMenuItemRemoveTextDelightsItem").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemRemoveWithFeedback:c("getCommentMenuDeleteWithFeedbackItem").__setRef("UFI2CommentMenuBlue.react"),CommentMenuItemReportToAdmins:c("getCommentMenuItemReportToAdmins").__setRef("UFI2CommentMenuBlue.react")};function m(a){return a&&l[a.__typename]}function n(){var a=b("ifRequired")("ContextualDialogArrow",function(a){return a}),c=b("ifRequired")("PopoverMenu.react",function(a){return a}),d=b("ifRequired")("ReactXUIMenu",function(a){return a});return a&&c&&d?{ContextualDialogArrow:a,PopoverMenu:c,XUIMenu:d}:null}function o(a){a=(a=a.comment.comment_menu_items)!=null?a:[];return a.map(m).filter(Boolean)}function p(a){return a.every(function(a){return b("ifRequired").call(null,a.getModuleId(),function(){return!0},function(){return!1})})}d=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.state={itemsAreLoaded:p(o(d.props)),menuResources:n(),showNUX:!1},d.$4=!1,d.$5=function(a){var c,e,f=m(a);if(!f)return null;f=b("ifRequired").call(null,f.getModuleId(),function(a){return a});if(!f){b("FBLogger")("ufi2").addMetadata("UFI","COMMENT_ID",d.props.comment.id||"UNKNOWN").warn("Tried to render comment item before getter was loaded for item with type `%s`.",a.__typename);return null}var g=babelHelpers.assertThisInitialized(d);g=g.props;c=(c=g.feedback.viewer_actor)==null?void 0:c.id;e=(e=g.comment.author)==null?void 0:e.id;return f({actorId:c,authorID:e,authorName:(f=g.comment.author)==null?void 0:f.name,commentId:g.comment.id,confirmDeleteWithDialog:c===e&&g.feedbackSource!==74,createDetailedReportURI:g.comment.create_detailed_report_uri,feedbackId:g.feedback.id,feedbackSource:g.feedbackSource,groupId:(f=g.comment.group_comment_info)==null?void 0:f.group_id,isCommenterBannedByContentOwner:g.comment.is_author_banned_by_content_owner,isMuted:(c=g.comment.group_comment_info)==null?void 0:c.is_author_muted,itemType:a.__typename,legacyId:g.comment.legacy_fbid,legacyToken:g.comment.legacy_token,onEdit:g.onEdit,parentContentPageID:(e=g.comment.parent_feedback)==null?void 0:(f=e.viewer_acts_as_page)==null?void 0:f.id,parentContentFeedbackID:(c=g.comment.parent_feedback)==null?void 0:c.id,relay:g.relay,showBlockAuthor:(e=g.comment.group_comment_info)==null?void 0:e.can_viewer_block_author,showRemoveContentOptions:a.__typename==="CommentMenuItemDeleteAndRemoveMember"&&a.show_remove_content_options,showReportCommentToAdmin:(f=g.comment.group_comment_info)==null?void 0:f.can_viewer_report_comment_to_admin_with_tags,topLevelFeedbackId:g.topLevelFeedbackId,usStructuredReportingEnabled:g.comment.us_structured_reporting_enabled})},d.$8=function(a){d.$3=a,a&&b("UFI2NUXConfig").shouldShowRemoveTextDelightsNUX&&d.setState({showNUX:!0})},d.$10=function(){d.$9()},d.$11=function(){d.$9(),d.$3||(d.$4=!d.$4)},c)||babelHelpers.assertThisInitialized(d)}c.getDerivedStateFromProps=function(a){return{itemsAreLoaded:p(o(a))}};var d=c.prototype;d.$6=function(){var a=this;if(this.$1)return;this.$1=!0;this.props.subscriptionsHandler.addSubscriptions(b("Bootloader").loadModules(["ContextualDialogArrow","PopoverMenu.react","ReactXUIMenu"],function(){return a.setState({menuResources:n()})},"UFI2CommentMenuBlue.react"))};d.$7=function(){var a=this;if(this.$2)return;this.$2=!0;this.props.subscriptionsHandler.addSubscriptions(b("Bootloader").loadModules.call(b("Bootloader"),o(this.props).map(function(a){return a.getModuleId()}),function(){a.setState({itemsAreLoaded:!0})}))};d.$9=function(){this.state.menuResources||this.$6(),this.state.itemsAreLoaded||this.$7()};d.componentDidUpdate=function(){this.$4&&this.$3&&(this.$3.showPopover(),this.$4=!1)};d.render=function(){var a=this,c=this.props.comment,d=this.state.showNUX,e=c.comment_menu_items;if(!e||!e.length)return null;var f=Boolean(e.find(function(a){return a.__typename==="CommentMenuItemRemoveTextDelights"})),g=c.comment_menu_tooltip;g=g?{label:g,tooltip:g}:null;g=j.jsx(b("XUIDotsButton.react"),babelHelpers["extends"]({},g,{className:"_2f3a"+(this.props.visible?" _1n6k":""),"data-testid":void 0,onClick:this.$11,onMouseEnter:this.$10,onTouchStart:this.$11,type:"button"}));if(!this.state.menuResources)return g;var h=this.state.menuResources,i=h.ContextualDialogArrow,l=h.PopoverMenu;h=h.XUIMenu;e=this.state.itemsAreLoaded?e.map(this.$5).filter(Boolean):j.jsx(h.Item,{disabled:!0,children:j.jsx(b("XUISpinner.react"),{size:"small"})});h=j.jsx(h,{className:"_67lz",children:e});return j.jsxs(j.Fragment,{children:[f&&d?j.jsx(j.Suspense,{fallback:null,children:j.jsx(k,{comment:c,contextRef:function(){return a.$3}})}):null,j.jsx(l,{alignh:"right",layerBehaviors:[i],menu:h,ref:this.$8,children:g})]})};return c}(j.Component);e.exports=a(b("injectSubscriptionsHandler.react")(d),{comment:h!==void 0?h:h=b("UFI2CommentMenuBlue_comment.graphql"),feedback:i!==void 0?i:i=b("UFI2CommentMenuBlue_feedback.graphql")})}),null);
__d("UFI2CommentTimestamp.react",["fbt","React","Timestamp.react","formatDate"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props.createdTime;return h.jsx(b("Timestamp.react"),{autoUpdate:!0,minimize:!0,time:a,useLargerTimeUnits:!0,useTooltip:!0,verbose:g._("{date} {time}",[g._param("date",b("formatDate")(a,"l, F j, Y")),g._param("time",b("formatDate")(a,"g:i A"))])})};return c}(h.PureComponent);e.exports=a}),null);
__d("UFI2CommentsFilterFallbackWarning.react",["cx","fbt","React","joinClasses"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=function(a){var c=a.Selectors,d=a.className,e=a.depth,f=a.direction,g=a.listState,j=a.totalCount,k=a.unfilteredTotalCount;a=a.viewOption;var l=c.isPagerLoading({depth:e,direction:f,state:g});if(l)return null;l=c.hasMoreInDirection({depth:e,direction:f,state:g,totalCount:j});if(l)return null;j=c.getVisibleCommentsCount({depth:e,state:g});l=k===j;if(l)return null;if(j===0&&f==="backward")return null;var m;switch(a){case"RANKED_THREADED":m=e>0?h._("\u95a2\u9023\u5ea6\u306e\u9ad8\u3044\u9806\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30d5\u30a3\u30eb\u30bf\u306b\u3088\u308a\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u3044\u8fd4\u4fe1\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002"):h._("\u95a2\u9023\u5ea6\u306e\u9ad8\u3044\u9806\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u3088\u308a\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u3044\u30b3\u30e1\u30f3\u30c8\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002");break;default:m=e>0?h._("\u9078\u629e\u3055\u308c\u305f\u4e26\u3073\u66ff\u3048\u30e2\u30fc\u30c9\u306b\u3088\u308a\u30d5\u30a3\u30eb\u30bf\u3055\u308c\u3001\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u3044\u8fd4\u4fe1\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059"):h._("\u9078\u629e\u3055\u308c\u305f\u4e26\u3073\u66ff\u3048\u30e2\u30fc\u30c9\u306b\u3088\u308a\u30d5\u30a3\u30eb\u30bf\u30fc\u3055\u308c\u3001\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u3044\u30b3\u30e1\u30f3\u30c8\u304c\u3042\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059")}return i.jsx("div",{className:b("joinClasses")("_6hnh",d),children:m})};e.exports=a}),null);
__d("UFI2CommentsPagerRenderer.react",["cx","requireCond","cr:1280037","CometTrackingNodeProvider.react","React","UFI2AbstractButtonWrapper.react","cr:1232140","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){var c=a.children,d=a.className,e=a.depth,f=a.isLoading,g=a.linkClassName,i=a.nestedPagerIconClassName,j=a.onClick,k=a.onMouseEnter;a=a.trackingInfo;e=e>0;var l=(e?"_4sso":"")+" _4ssp";c=c(l);l=null;f&&(b("cr:1232140")!=null?l=h.jsx(b("cr:1232140"),{className:"_4sxg",size:"small"}):b("cr:1280037")!=null&&(l=h.jsx("div",{className:"_4sxg",children:h.jsx(b("cr:1280037"),{color:"disabled",size:16})})));return h.jsx(b("CometTrackingNodeProvider.react"),{trackingNode:24,children:h.jsx("div",{className:b("joinClasses")("_4swz",d),onMouseEnter:k,children:h.jsx(b("UFI2AbstractButtonWrapper.react"),{className:b("joinClasses")("_4sxc",g),"data-ft":a,"data-testid":void 0,disabled:f,href:"#",label:h.jsxs("div",{className:"_4sxd"+(f?" _4sxe":""),children:[e?h.jsx("i",{className:b("joinClasses")("_4sxf",i)}):null,c,l]},"pager"),onClick:j,role:"button"})})})}e.exports=a}),null);
__d("UFI2ComposerAction.react",["requireCond","cr:844029","React","UFI2TooltipCometCompatWrapper.react"],(function(a,b,c,d,e,f){"use strict";var g=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$1=!1,d.state={initializeComponentClicked:!1,popoverShown:!1,shouldBeginBootloading:!1},d.$2=function(a){d.$1=!1,d.props.placeholder.props.onBlur&&d.props.placeholder.props.onBlur(a)},d.$3=function(a){d.$1=!0,d.$4(),d.props.placeholder.props.onFocus&&d.props.placeholder.props.onFocus(a)},d.$5=function(a){d.$4(),d.props.placeholder.props.onMouseUp&&d.props.placeholder.props.onMouseUp(a),d.setState(function(a){a=a.initializeComponentClicked;return{initializeComponentClicked:!a}})},d.$6=function(a){d.$4(),d.props.placeholder.props.onMouseOver&&d.props.placeholder.props.onMouseOver(a)},d.$7=function(a){if(a!=null&&d.$1){d.$1=!1;if(b("cr:844029")!=null)b("cr:844029").set(a,!0);else try{a.focus()}catch(a){}}},d.$8=function(a){d.setState({popoverShown:a})},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.$4=function(){this.state.shouldBeginBootloading||this.setState({shouldBeginBootloading:!0})};d.render=function(){var a=this.state,c=a.popoverShown;a=a.shouldBeginBootloading;var d=this.props,e=d.resource;d=d.label;var f=g.cloneElement(this.props.placeholder,{hasBeenClicked:this.state.initializeComponentClicked,onBlur:this.$2,onFocus:this.$3,onMouseOver:this.$6,onMouseUp:this.$5});return g.jsx(b("UFI2TooltipCometCompatWrapper.react"),{alignH:"center",delayMountUntilHover:!0,position:"above",tooltip:c?null:d,children:g.jsx(g.Suspense,{fallback:f,children:a?g.jsx(e,babelHelpers["extends"]({onFocusableElementRefChange:this.$7,onTogglePopover:this.$8},this.props.createComponentProps({clicked:this.state.initializeComponentClicked}))):f})})};return c}(g.Component);e.exports=a}),null);
__d("UFI2ComposerActionPlaceholder.react",["cx","requireCond","cr:1232139","React","UFI2LinkWrapper.react","cr:1232140"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=null;if(this.props.hasBeenClicked===!0){b("cr:1232140")!=null?a=h.jsx(b("cr:1232140"),{className:"_2wv6",size:"small"}):b("cr:1232139")!=null&&(a=h.jsx("div",{className:"_2wv6",children:h.jsx(b("cr:1232139"),{color:"disabled",duration:1.2,size:12,type:"estimated"})}));return a}return h.jsx(b("UFI2LinkWrapper.react"),{"aria-label":this.props.label,className:this.props.buttonClassName,onBlur:this.props.onBlur,onFocus:this.props.onFocus,onMouseOver:this.props.onMouseOver,onMouseUp:this.props.onMouseUp,role:"button",children:h.jsx("div",{className:this.props.iconClassName})})};return c}(h.PureComponent);e.exports=a}),null);
__d("UFI2ComposerActions.react",["cx","React"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){return h.jsx("ul",{className:"_1obb",children:h.Children.map(a.children,function(a){return h.jsx("li",{className:"_1obc",children:a})})})}e.exports=a}),null);
__d("UFI2ComposerPreviewArea.react",["cx","CloseButton.react","React","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){var c=a.children,d=a.className,e=a.onRemoveClick,f=a.removeButtonLabel;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","className","onRemoveClick","removeButtonLabel"]);return h.jsxs("div",babelHelpers["extends"]({},a,{className:b("joinClasses")(d,"_1llh"),children:[c,h.jsx(b("CloseButton.react"),{ariaLabel:f,className:"_1lli",onClick:e,tooltip:f})]}))}e.exports=a}),null);
__d("UFI2ErrorBoundary.react",["ErrorBoundary.react","FBLogger","React"],(function(a,b,c,d,e,f){"use strict";var g=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$1=function(a,c){var e=d.props.getFBLoggerErrorMessage;e=e!=null?e(a,c):"`"+(c||"Unknown Component")+"` experienced a fatal error during render.";b("FBLogger")("ufi2").catching(a).mustfix(e)},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.render=function(){var a=this.props,c=a.children;a.getFBLoggerErrorMessage;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","getFBLoggerErrorMessage"]);return g.jsx(b("ErrorBoundary.react"),babelHelpers["extends"]({onHandleError:this.$1},a,{children:c}))};return c}(g.Component);e.exports=a}),null);
__d("UFI2HiddenCommentsPlaceholder.react",["cx","fbt","React","UFI2LinkWrapper.react","UFI2TooltipCometCompatWrapper.react","joinClasses"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");function a(a){var c=a.className,d=a.commentIDs,e=a.expandHiddenComments;return i.jsx("div",{className:b("joinClasses")("_6cog",c),children:i.jsx(b("UFI2TooltipCometCompatWrapper.react"),{alignH:"center",delayMountUntilHover:!0,tooltip:h._({"*":"\u975e\u8868\u793a{count}\u4ef6"},[h._param("count",d.length),h._plural(d.length)]),children:i.jsx(b("UFI2LinkWrapper.react"),{"aria-label":h._("\u30b9\u30d1\u30e0\u306b\u6307\u5b9a\u3055\u308c\u305f\u30b3\u30e1\u30f3\u30c8\u3092\u8868\u793a"),className:"_6coh",href:"#",onClick:function(){return e(d)},role:"button",children:i.jsx("span",{className:"_6cn_",children:i.jsx("i",{className:"_6co0"})})})})})}e.exports=a}),null);
__d("UFI2CommentGroupContext",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=a.createContext({authorHasGroupMemberProfile:!1,authorType:null,groupID:null});e.exports=c}),null);
__d("UFI2ProfileLink.react",["CurrentUser","Link.react","React","UFI2CommentGroupContext","XContextualProfileURLController","absoluteToRelative","gkx","qex"],(function(a,b,c,d,e,f){"use strict";var g=b("React");c=b("React");var h=c.useContext;function a(a){var c=a.children,d=a.hovercardDirectedTargetId,e=a.href,f=a.uid;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","hovercardDirectedTargetId","href","uid"]);var i="/ajax/hovercard/user.php?id="+f;d!=null&&(i+='&extragetparams={"directed_target_id": "'+d+'"}');d="";e!=null?d=b("CurrentUser").isWorkUser()?e:b("absoluteToRelative")(e):d="/"+f;e=h(b("UFI2CommentGroupContext"));var j=e.authorHasGroupMemberProfile,k=e.authorType;e=e.groupID;if((b("qex")._("1187589")||k==="HealthGroupContextualProfile")&&e!=null&&j){k=b("XContextualProfileURLController").getURIBuilder().setFBID("group_id",e).setInt("member_id",f).setString("ref","group_story").getURI();if(b("gkx")("1166542"))d=k;else return g.jsx(b("Link.react"),babelHelpers["extends"]({},a,{ajaxify:k,"data-hovercard":i,href:d,rel:"dialog",children:c}))}return g.jsx(b("Link.react"),babelHelpers["extends"]({},a,{"data-hovercard":i,href:d,children:c}))}e.exports=a}),null);
__d("getPlainTextFromUFI2InputState",[],(function(a,b,c,d,e,f){"use strict";function a(a){switch(a.__type){case"plain-text":return a.text;case"editor-state-based":return a.editorState.getCurrentContent().getPlainText();default:return a}}e.exports=a}),null);
__d("isUFI2ComposerStateEmpty",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.attachment;a=a.inputState;if(b!=null)return!1;switch(a.__type){case"editor-state-based":return!a.editorState.getCurrentContent().hasText();case"plain-text":return!(a.text&&a.text.trim().length);default:return a.__type}}e.exports=a}),null);
__d("UFI2ProgressiveComposerInput.react",["cx","requireDeferred","Event","FBLogger","Keys","React","ReactDOMSelection","SubscriptionsHandler","clearImmediate","clearTimeout","emptyFunction","getActiveElement","getPlainTextFromUFI2InputState","ifRequired","isSoftNewlineEvent","isUFI2ComposerStateEmpty","joinClasses","setImmediateAcrossTransitions","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){"use strict";var h=b("Keys").BACKSPACE,i=b("Keys").DELETE,j=b("Keys").RETURN,k=b("React"),l=b("requireDeferred")("UFI2RichComposerInput.react"),m=b("requireDeferred")("getEditorStateFromUFI2ComposerState");function n(a){a=a.innerText||"";a.replace(/(\r\n|\r|\n)/g,"")===""&&(a="");return a}function o(){return b("ifRequired")("EditorState",function(a){var b=l.getModuleIfRequired();return b!=null?{EditorState:a,UFI2RichComposerInput:b}:null},function(){return null})}a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$1=!1,d.$2=!1,d.$3=null,d.$4=new(b("SubscriptionsHandler"))(),d.state={proxyIsInCompositionMode:!1},d.$7=function(a){d.$8()},d.$9=function(a){d.setState({proxyIsInCompositionMode:!0})},d.$10=function(a){d.setState({proxyIsInCompositionMode:!1})},d.$11=function(a){d.$8()},d.$12=function(a){d.$13(a.target)},d.$14=function(a){d.$3=a,d.props.onInputRefUpdated&&d.props.onInputRefUpdated(a)},d.$15=function(a){a.keyCode===j&&!b("isSoftNewlineEvent")(a)?(a.preventDefault(),d.props.onCommit()):(a.keyCode===h||a.keyCode===i)&&d.$8()},d.$16=function(a){d.$2=!0;var c=b("setTimeoutAcrossTransitions")(function(){b("FBLogger")("ufi2").warn("_handleProxyMouseDown had no corresonding mouseup event for 30s.")},3e4);d.$4.addSubscriptions({remove:function(){b("clearTimeout")(c)}});var e=b("Event").listen(document,"mouseup",function(){b("clearTimeout")(c),d.$2=!1,d.$4.releaseOne(e),d.$3!=null&&d.$3===b("getActiveElement")()&&d.$5()});d.$4.addSubscriptions(e)},d.$17=function(a){var b=d.props.handlePastedFiles;if(b){var c=a.clipboardData;c=c.items!=null?Array.from(c.items):[];c=c.map(function(a){return a.getAsFile()}).filter(Boolean);c.length&&(b(c)==="handled"&&a.preventDefault())}a.isDefaultPrevented()===!1&&d.$8()},d.$19=function(a){var c=function(){d.$2===!1&&d.$5()};m.getModuleIfRequired()==null?m.loadImmediately(function(){return c()}):c();var e=o();(e==null?void 0:e.UFI2RichComposerInput)==null&&l.loadImmediately(b("emptyFunction"));d.props.onFocus&&d.props.onFocus(a)},c)||babelHelpers.assertThisInitialized(d)}c.createEmptyComposerState=function(){var a=o();a=a==null?void 0:a.EditorState;return a!=null?{__type:"editor-state-based",editorState:a.createEmpty()}:{__type:"plain-text",selectionOffsets:null,text:""}};var d=c.prototype;d.$5=function(){var a=this,c=m.getModuleIfRequired();if(c==null||this.state.proxyIsInCompositionMode===!0||this.props.composerState.inputState.__type!=="plain-text")return;this.props.onComposerStateChange(function(d){var e=d.inputState;if(e.__type!=="plain-text"){b("FBLogger")("ufi2").warn("We were asked to commit the text and selection state of the proxy input, but the current input state is of type `%s` when we expected it to be of type `plain-text`. Investigate why a reference to the proxy input existed when the input state was of this type.",e.__type);return d}e=babelHelpers["extends"]({},d,{inputState:babelHelpers["extends"]({},e,{selectionOffsets:b("getActiveElement")()===a.$3?b("ReactDOMSelection").getOffsets(a.$3):e.selectionOffsets})});return babelHelpers["extends"]({},d,{inputState:{__type:"editor-state-based",editorState:c(e)}})})};d.$6=function(){b("isUFI2ComposerStateEmpty")(this.props.composerState)!==!0&&this.$5()};d.$13=function(a){this.$1=!1;var c=n(a);this.props.onComposerStateChange(function(a){var d=a.inputState;if(d.__type!=="plain-text"){b("FBLogger")("ufi2").warn("We were asked to handle an input event for the proxy input, but the current input state is of type `%s` when we expected it to be of type `plain-text`. Investigate why a reference to the proxy input existed when the input state was of this type.",d.__type);return a}return babelHelpers["extends"]({},a,{inputState:babelHelpers["extends"]({},d,{text:c})})})};d.$18=function(a){if(a.composerState.inputState.__type!=="plain-text")return;var c=this.$3;if(c){a=a.composerState.inputState;var d,e;switch(a.__type){case"plain-text":d=a.text;e=a.selectionOffsets;break;case"editor-state-based":default:d=a.editorState.getCurrentContent().getBlockMap().map(function(a){return a?a.getText():""}).join("\n");b("FBLogger")("ufi2").warn("Unimplemented: tried to update the UFI2 proxy input's selection using an `EditorState` but we have not yet implemented a function that maps from an `EditorState` to selection offsets.");break}e==null&&(e=b("getActiveElement")()===c?b("ReactDOMSelection").getOffsets(c):null);a=n(c);d!==a&&(c.textContent=d,e!=null&&(d===""?(c.innerText="\xa0",b("ReactDOMSelection").setOffsets(c,{end:1,start:1}),document.execCommand("delete",!1,null)):b("ReactDOMSelection").setOffsets(c,e)))}};d.$8=function(){var a=this;if(this.$1)return;this.$1=!0;var c=b("setImmediateAcrossTransitions")(function(){a.$1&&(a.$1=!1,a.$3&&a.$13(a.$3))});this.$4.addSubscriptions({remove:function(){b("clearImmediate")(c)}})};d.componentDidMount=function(){var a=this,b=this.props.composerState.inputState;this.$3&&b.__type==="plain-text"&&this.$18(this.props);b=o();(b==null?void 0:b.UFI2RichComposerInput)==null&&this.$4.addSubscriptions(l.onReady(function(b){a.props.composerState.inputState.__type==="editor-state-based"&&a.forceUpdate()}))};d.componentDidUpdate=function(a,b){this.props.composerState.inputState.__type==="plain-text"&&this.$6(),this.$18(this.props)};d.componentWillUnmount=function(){this.$4.release()};d.execCommand=function(a){this.props.handleCommand&&(a.__type==="PrefillMention"&&(l.loadImmediately(b("emptyFunction")),this.$5()),this.props.handleCommand(a))};d.render=function(){var a=o(),c=b("getPlainTextFromUFI2InputState")(this.props.composerState.inputState).trim()!=="";a=a==null?void 0:a.UFI2RichComposerInput;var d=this.props.depth?"UFI2ComposerInput/reply":"UFI2ComposerInput/comment";return a&&this.props.composerState.inputState.__type==="editor-state-based"?k.jsx(a,babelHelpers["extends"]({},this.props,{className:b("joinClasses")("_65tb",this.props.className),composerState:this.props.composerState,onClick:this.props.onClick,onCommit:this.props.onCommit,onComposerStateChange:this.props.onComposerStateChange,onInputRefUpdated:this.props.onInputRefUpdated,placeholder:this.props.placeholder,webDriverTestID:d+":rich-input"})):k.jsx("div",{className:this.props.className,onClick:this.props.onClick,children:k.jsxs("div",{className:"_7c-l",children:[k.jsx("div",{className:(this.props.composerState.isLocked?"_65tc":"")+" _65td",contentEditable:this.props.composerState.isLocked===!1,"data-testid":void 0,onBeforeInput:this.$7,onBlur:this.props.onBlur,onCompositionEnd:this.$10,onCompositionStart:this.$9,onCut:this.$11,onFocus:this.$19,onInput:this.$12,onKeyDown:this.$15,onMouseDown:this.$16,onPaste:this.$17,ref:this.$14}),c?null:k.jsx("div",{className:"_7c-t",children:this.props.placeholder})]})})};return c}(k.Component);e.exports=a}),null);
__d("UFI2ReactionIconTooltipTitle.react",["cx","React"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){a=a.children;return h.jsx("div",{className:"_27ne",children:a})}e.exports=a}),null);
__d("UFI2RepliesCollapser.react",["cx","fbt","invariant","NumberFormat","React","UFI2AbstractButtonWrapper.react","joinClasses"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=b("React");function a(a){var c=a.Selectors,d=a.className,e=a.collapseList,f=a.depth;a=a.listState;f===1||i(0,3957);if(!c.isRepliesCollapserVisible({depth:f,state:a}))return null;c=c.getVisibleCommentsCount({depth:f,state:a});f=h._({"*":{"*":"\u8fd4\u4fe1{count}\u4ef6\u3092\u975e\u8868\u793a\u306b\u3059\u308b"}},[h._param("count",b("NumberFormat").formatInteger(c),[0,c]),h._plural(c)]);return j.jsx(b("UFI2AbstractButtonWrapper.react"),{className:b("joinClasses")("_3_qk",d),href:"#",label:j.jsxs("div",{className:"_3_ql",children:[j.jsx("i",{className:"_3_qm"}),j.jsx("span",{className:"_3_qo",children:f})]},"toggler"),onClick:e,role:"button"})}e.exports=a}),null);
__d("UFI2RepliesExpanderTimestampLabel.react",["cx","React","Timestamp.react","formatDate"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){a=a.timestamp;return h.jsxs("span",{className:"_7o81","data-testid":void 0,children:["\xa0\xa0\xa0",h.jsx(b("Timestamp.react"),{minimize:!0,time:a,useLargerTimeUnits:!0,verbose:b("formatDate")(new Date(a*1e3),"l, M j, Y g:ia")})]})}e.exports=a}),null);
__d("UFI2ScrollHoldingContainer.react",["React","ViewportBounds","getElementRect","getScrollPosition","ifRequired"],(function(a,b,c,d,e,f){"use strict";var g=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.$1=g.createRef(),b)||babelHelpers.assertThisInitialized(c)}var d=c.prototype;d.componentDidMount=function(){var a=this;this.$1.current&&(this.$2=b("ifRequired")("ScrollableArea",function(b){return b.getInstance(a.$1.current)},function(){return null}))};d.componentWillUnmount=function(){delete this.$2};d.getSnapshotBeforeUpdate=function(a){return this.$1.current?b("getElementRect")(this.$1.current):null};d.componentDidUpdate=function(a,c,d){a=this.$1.current;if(a&&d){c=b("getElementRect")(a);var e=c.height-d.height;if(e===0)return;var f=this.$2;if(f){var g=f.getScrollTop();a=f.getScrollOffsetForElement(a);a=a+c.height<g;a&&f.setScrollTop(g+e)}else{c=b("ViewportBounds").getTop();a=d.bottom<c;if(a){f=b("getScrollPosition")(window);g=f.x;d=f.y;window.scrollTo(g,d+e)}}}};d.render=function(){return g.jsx("div",{ref:this.$1,children:this.props.children})};return c}(g.Component);e.exports=a}),null);
__d("UFI2Tooltip.react",["EventEmitter","LazyContentTooltip.react","React"],(function(a,b,c,d,e,f){"use strict";var g=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$1=new(b("EventEmitter"))(),d.$2=function(a){return d.$1.emit("visibilityChange",a)},d.$3=function(a){return d.$1.addListener("visibilityChange",a)},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.render=function(){var a=this.props,c=a.environment,d=a.tooltipContentComponent,e=a.tooltipContentProps;a=babelHelpers.objectWithoutPropertiesLoose(a,["environment","tooltipContentComponent","tooltipContentProps"]);return g.jsx(b("LazyContentTooltip.react"),babelHelpers["extends"]({},a,{delayMountUntilHover:!0,onVisibilityChange:this.$2,tooltipContent:g.jsx(d,babelHelpers["extends"]({addVisibilityChangeListener:this.$3,environment:c},e))}))};return c}(g.Component);e.exports=a}),null);
__d("UFI2UnhideCommentLink.react",["fbt","requireDeferred","React","UFI2LinkWrapper.react","UFI2SurfaceContainerContext"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");c=b("React");var i=c.useContext,j=b("requireDeferred")("UFI2UnhideCommentMutation");function a(a){var c=a.actorID,d=a.className,e=a.commentID,f=a.environment,k=a.feedLocation,l=a.feedbackSource;a=i(b("UFI2SurfaceContainerContext"));var m=a.isComet;return h.jsx(b("UFI2LinkWrapper.react"),{className:d,"data-testid":void 0,href:"#",onClick:function(){j.onReadyImmediately(function(a){a.commit(f,{actorId:c,commentId:e,feedLocation:k,feedbackSource:l,isComet:m})})},role:"button",children:g._("\u8868\u793a\u3059\u308b")})}e.exports=a}),null);
__d("UFI2VotingCommentLink.react",["ix","fbt","CometTooltip.react","CurrentUser","Image.react","React","RelayHooks","UFI2CommentVoteMutation","UFI2LinkWrapper.react","WorkplaceAMAVotingHelper","asset","stylex","UFI2VotingCommentLink_comment.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=b("React");b("RelayHooks").graphql;var k=b("RelayHooks").useFragment,l=b("RelayHooks").useRelayEnvironment;function a(a){var c;a=a.comment;var d=l();a=k(i!==void 0?i:i=b("UFI2VotingCommentLink_comment.graphql"),a);var e=a.id,f=(c=a.upvote_downvote_total)!=null?c:0,n=(c=a.viewer_comment_vote_state)!=null?c:"NONE";c=n==="UPVOTE";var o=n==="DOWNVOTE",p=c||o;a=b("WorkplaceAMAVotingHelper").getVotingStatus(a.work_ama_answer_status);var q=a.tooltip;if(e==null)return null;function r(a){return function(){b("UFI2CommentVoteMutation").commit(d,{actorID:b("CurrentUser").getID(),commentID:e,currentVoteCount:f,currentVoteState:n,voteActionType:a})}}return j.jsxs("span",{className:"omxmzp2j",children:[j.jsx(m,{icon:c?g("1369726"):g("1369724"),isDisabled:a.disabled,label:h._("\u30d7\u30e9\u30b9\u7968"),onClick:r("UPVOTE"),tooltip:q}),j.jsx("span",{className:"fybmcypg rckbh3g6"+(p?" bhd12jwn lbzclz27":""),children:f}),j.jsx(m,{icon:o?g("1369614"):g("1369612"),isDisabled:a.disabled,label:h._("\u30de\u30a4\u30ca\u30b9\u7968"),onClick:r("DOWNVOTE"),tooltip:q})]})}function m(a){var c=a.icon,d=a.label,e=a.onClick,f=a.isDisabled;a=a.tooltip;d=j.jsx(b("UFI2LinkWrapper.react"),{"aria-label":d,className:"gkamr9iy buns5kvl cgv12mgv jw7uane9 ffazz5q0"+(f?" pt40oie6":""),disabled:f,href:"#",onClick:f?null:e,role:"button",children:j.jsx(b("Image.react"),{src:c})});return a!=null?j.jsx(b("CometTooltip.react"),{forceInlineDisplay:!0,tooltip:a,children:d}):d}e.exports=a}),null);
__d("makeUFI2HighlightedComment",["requireCond","Event","React","debounceAcrossTransitions","getReactComponentDisplayName","ifRequired","injectSubscriptionsHandler.react","joinClasses","useVisibilityObserver","cr:880930"],(function(a,b,c,d,e,f){"use strict";var g=b("React");c=b("React");var h=c.useCallback,i=5e3,j=400;function k(a){var c=a.children,d=a.onHidden,e=a.onVisible,f=a.handleRef,i=b("useVisibilityObserver")({onHidden:d,onVisible:e});a=h(function(a){f(a),i(a)},[f,i]);return g.jsx("div",{ref:a,children:c})}function a(a){var c=b("getReactComponentDisplayName")(a),d=function(d){babelHelpers.inheritsLoose(c,d);function c(){var a;for(var c=arguments.length,e=new Array(c),f=0;f<c;f++)e[f]=arguments[f];a=d.call.apply(d,[this].concat(e))||this;a.hasScrolled=!1;a.state={hasCompleted:!1,hasHighlightApplied:!0,highlightClassName:b("cr:880930")?b("cr:880930")(!0):""};a.$1=function(b){a.node=b};a.onScrollableScroll=function(){a.hasScrolled=!0;if(a.visibleAt!=null){var b=Date.now();a.visibleAt+i<b?(a.onScrollStopDebounced.reset(),a.applyHighlightClass()):a.onScrollStopDebounced()}};a.onVisible=function(){a.visibleAt==null&&(a.visibleAt=Date.now(),a.hasScrolled||a.onScrollableScroll())};a.onHidden=function(){a.visibleAt!=null&&delete a.visibleAt,a.onScrollStopDebounced.reset()};a.onScrollStop=function(){a.applyHighlightClass()};a.removeWindowScroll=function(){a.windowSubscription&&(a.windowSubscription.remove(),delete a.windowSubscription)};a.onScrollStopDebounced=b("debounceAcrossTransitions")(a.onScrollStop,j,!1);a.windowSubscription=b("Event").listen(a.getScrollableElement(),"scroll",a.onScrollableScroll);a.props.subscriptionsHandler.addSubscriptions({remove:a.removeWindowScroll},a.onScrollStopDebounced);return a}var e=c.prototype;e.getScrollableElement=function(){var a=this;return b("ifRequired")("ScrollableArea",function(b){if(a.node){b=b.getInstance(a.node);if(b)return b.getElement()}return window},function(){return window})};e.componentWillUnmount=function(){this.props.subscriptionsHandler.release()};e.render=function(){return g.jsx(k,{handleRef:this.$1,onHidden:this.state.hasCompleted?void 0:this.onHidden,onVisible:this.state.hasCompleted?void 0:this.onVisible,children:g.jsx(a,babelHelpers["extends"]({},this.props,{className:b("joinClasses")(this.props.className,this.state.highlightClassName),hasHighlightApplied:this.state.hasHighlightApplied,isHighlightable:!0}))})};e.applyHighlightClass=function(){this.state.hasCompleted||(this.removeWindowScroll(),this.setState({hasCompleted:!0}),this.setState({hasHighlightApplied:!1,highlightClassName:b("cr:880930")?b("cr:880930")(!1):""}))};return c}(g.Component);d.displayName="makeUFI2HighlightedComment("+c+")";return b("injectSubscriptionsHandler.react")(d)}e.exports=a}),null);
__d("getCommentDataFromComposerState",["UnicodeUtils","emptyFunction","textProbablyWritingMarkdown"],(function(a,b,c,d,e,f){"use strict";var g;function a(a){var c=a.attachmentMappers,d=a.composerState,e=a.contentBlockToTextWithEntitiesInputMessageMappers,f=d.attachment;a=d.feedbackID;var h=d.inputState,i=d.commentAssociatedWithReply,j=d.replyTargetClicked,k=d.usedWritingHelpToCompose,l=d.formattingStyle;c=f&&(f.__type==="ExistingAttachment"?[]:c.map(function(a){return a(f)}).filter(Boolean));var m={};switch(h.__type){case"plain-text":l==null&&b("textProbablyWritingMarkdown")(h.text)&&(l="MARKDOWN");return{commentData:{attachments:c,feedback_id:a,formatting_style:l,message:{text:h.text},reply_comment_parent_fbid:i==null?void 0:i.id,reply_target_clicked:j},entitiesByID:m,usedWritingHelpToCompose:k===!0};case"editor-state-based":default:h=h.editorState;var n=[],o=[],p=0,q=h.getCurrentContent();q.getBlockMap().forEach(function(a){var c="",d=0;a.findEntityRanges(b("emptyFunction").thatReturnsTrue,function(f,h){var i=e.some(function(e){e=e(a,q,f,h);var i=a.getText().slice(0,f),j=Math.max(0,i.length-(g||(g=b("UnicodeUtils"))).strlen(i));if(e!=null){i=e.entitiesByID;e=e.message;Object.assign(m,i);c+=e.text;e.ranges&&o.push.apply(o,e.ranges.map(function(a){return a?babelHelpers["extends"]({},a,{offset:a.offset+p-j+d}):a}));d+=e.text.length-(h-f);return!0}return!1});i===!1&&(c+=a.getText().slice(f,h).replace("@[","@ ["))});p+=(g||(g=b("UnicodeUtils"))).strlen(c)+1;n.push(c)});h=n.join("\n");if(h.trim()===""&&f==null)return null;l==null&&b("textProbablyWritingMarkdown")(h)&&(l="MARKDOWN");return{commentData:{attachments:c,feedback_id:a,file_marker:d.fileMarker,formatting_style:l,inline_annotation_data:d.inlineAnnotationData,insights_point_json:d.insightsPoint,message:{ranges:o,text:h},reply_comment_parent_fbid:i==null?void 0:i.id,reply_target_clicked:j},entitiesByID:m,usedWritingHelpToCompose:k===!0}}}e.exports=a}),null);
__d("UFI2AvatarComposerAction.react",["cx","fbt","JSResource","React","UFI2ComposerAction.react","UFI2ComposerActionPlaceholder.react","lazyLoadComponent"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React"),j=b("lazyLoadComponent")(b("JSResource")("UFI2InsertAvatarButton.react").__setRef("UFI2AvatarComposerAction.react"));function a(a){var c=h._("\u30a2\u30d0\u30bf\u30fc\u30b9\u30bf\u30f3\u30d7\u3092\u6295\u7a3f");return i.jsx(b("UFI2ComposerAction.react"),{createComponentProps:function(b){b=b.clicked;return{buttonClassName:"_1t9_ _8rl6",hasAvatar:a.hasAvatar,iconActiveClassName:"_8rl7",iconClassName:"InsertAvatar",initiallyVisible:b,onComposerStateChange:a.onComposerStateChange}},label:c,placeholder:i.jsx(b("UFI2ComposerActionPlaceholder.react"),{buttonClassName:"_1t9_ _8rl6",iconClassName:"InsertAvatar",label:c}),resource:j})}e.exports=a}),null);
__d("withReparentingGuard",["React","getReactComponentDisplayName","isReactClassComponent"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(a){function c(c){var d,e,f=b("isReactClassComponent")(c)?c:function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var d=b.prototype;d.render=function(){return g.jsx(c,babelHelpers["extends"]({},this.props))};return b}(g.Component),h;function i(b){b&&(h&&h!==b&&a(c),h=b)}var j=b("getReactComponentDisplayName")(c);return e=d=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.render=function(){return g.jsx(f,babelHelpers["extends"]({},this.props,{ref:i}))};return b}(g.Component),d.displayName="withReparentingGuard("+j+")",e}return c}e.exports=a}),null);
__d("createUFI2ComposerPlugin",["FBLogger","withReparentingGuard"],(function(a,b,c,d,e,f){"use strict";function a(a){return b("withReparentingGuard")(function(a){var c;a=(c=(c=a.displayName)!=null?c:a.name)!=null?c:"Unknown";c="The UFI2 comment composer plugin that wraps the `"+a+"` component caused it to be reparented. Learn how to remedy this mustfix here: https://fburl.com/ufi-composer-plugins-must-never-reparent-wrapped-components";b("FBLogger")("ufi2").blameToPreviousFile().mustfix(c)})(a)}e.exports=a}),null);
__d("createUFI2AvatarComposerPlugin",["React","UFI2AvatarComposerAction.react","createUFI2ComposerPlugin"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(a){var c=function(c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){return e.apply(this,arguments)||this}var f=d.prototype;f.render=function(){return g.jsx(c,babelHelpers["extends"]({},this.props,{actions:[].concat(this.props.actions,[g.jsx(b("UFI2AvatarComposerAction.react"),{hasAvatar:a.hasAvatar,onComposerStateChange:this.props.inputProps.onComposerStateChange},"avatarComposerAction")])}))};return d}(g.Component);return b("createUFI2ComposerPlugin")(d)};return c}e.exports=a}),null);
__d("composeUFI2Plugins",[],(function(a,b,c,d,e,f){"use strict";function a(){for(var a=arguments.length,b=new Array(a),c=0;c<a;c++)b[c]=arguments[c];return b.reduce(function(a,b){return function(){return a(b.apply(void 0,arguments))}})}e.exports=a}),null);
__d("createUFI2ComposerPluginPipeline",["React","composeUFI2Plugins"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(a){if(a.length===0)return function(a){var b=a.render;a=babelHelpers.objectWithoutPropertiesLoose(a,["render"]);return g.jsx(b,babelHelpers["extends"]({},a))};var c=a;return function(a){babelHelpers.inheritsLoose(d,a);function d(){var d,e;for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];return(d=e=a.call.apply(a,[this].concat(g))||this,e.state={Pipeline:b("composeUFI2Plugins").apply(void 0,c)(e.props.render),mirroredRenderProp:e.props.render},d)||babelHelpers.assertThisInitialized(e)}d.getDerivedStateFromProps=function(a,d){return d.mirroredRenderProp!==a.render?{Pipeline:b("composeUFI2Plugins").apply(void 0,c)(a.render),mirroredRenderProp:a.render}:null};var e=d.prototype;e.render=function(){var a=this.props;a.render;a=babelHelpers.objectWithoutPropertiesLoose(a,["render"]);var b=this.state.Pipeline;return g.jsx(b,babelHelpers["extends"]({},a))};return d}(g.Component)}e.exports=a}),null);
__d("createUFI2DelightsComposerPlugin",["Bootloader","React","Run","createUFI2ComposerPlugin","ifRequired","injectSubscriptionsHandler.react"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(a){return function(c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){var c,d;for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];return(c=d=e.call.apply(e,[this].concat(g))||this,d.state={upgradedPlugin:b("ifRequired")("getUpgradedUFI2DelightsComposerPlugin",function(b){return b(a)},function(){return null})},d.$1=!1,d.$2=function(a){d.$3(),d.props.inputProps.onFocus&&d.props.inputProps.onFocus(a)},c)||babelHelpers.assertThisInitialized(d)}var f=d.prototype;f.$3=function(){var c=this;if(this.$1||this.state.upgradedPlugin)return;this.$1=!0;this.props.subscriptionsHandler.addSubscriptions(b("Bootloader").loadModules(["getUpgradedUFI2DelightsComposerPlugin"],function(b){c.setState({upgradedPlugin:b(a)})},"createUFI2DelightsComposerPlugin"))};f.componentDidMount=function(){var a=this;this.state.upgradedPlugin?this.state.upgradedPlugin.installPlugin(this.props):this.props.subscriptionsHandler.addSubscriptions(b("Run").onAfterLoad(function(){return a.$3()}))};f.componentDidUpdate=function(a,b){b.upgradedPlugin==null&&this.state.upgradedPlugin!=null&&this.state.upgradedPlugin.installPlugin(this.props)};f.render=function(){if(this.state.upgradedPlugin)return this.state.upgradedPlugin.render(this.props,c);else return g.jsx(c,babelHelpers["extends"]({},this.props,{inputProps:babelHelpers["extends"]({},this.props.inputProps,{onFocus:this.$2})}))};return d}(g.Component);return b("createUFI2ComposerPlugin")(b("injectSubscriptionsHandler.react")(d))}}e.exports=a}),null);
__d("UFI2InsertEmojiComposerAction.react",["cx","fbt","JSResource","React","UFI2ComposerAction.react","UFI2ComposerActionPlaceholder.react","lazyLoadComponent"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React"),j=b("lazyLoadComponent")(b("JSResource")("UFI2EmojiInputButton.react").__setRef("UFI2InsertEmojiComposerAction.react"));function a(a){var c=h._("\u7d75\u6587\u5b57\u3092\u8ffd\u52a0");return i.jsx(b("UFI2ComposerAction.react"),{createComponentProps:function(b){b=b.clicked;return{buttonClassName:"_1t9_ _1ta3",iconActiveClassName:"UFICommentEmojiIconActive",iconClassName:"InsertEmoji",initiallyVisible:b,onComposerStateChange:a.onComposerStateChange}},label:c,placeholder:i.jsx(b("UFI2ComposerActionPlaceholder.react"),{buttonClassName:"_1t9_ _1ta3",iconClassName:"InsertEmoji",label:c}),resource:j})}e.exports=a}),null);
__d("createUFI2EmojiComposerActionComponentPlugin",["requireDeferred","React","createUFI2ComposerPlugin","ifRequired","injectSubscriptionsHandler.react"],(function(a,b,c,d,e,f){"use strict";var g=b("React"),h=b("requireDeferred")("getUpgradedUFI2EmojiComposerPlugin");function a(a){return function(c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){var c,d;for(var f=arguments.length,g=new Array(f),i=0;i<f;i++)g[i]=arguments[i];return(c=d=e.call.apply(e,[this].concat(g))||this,d.state={upgradedPlugin:b("ifRequired").call(null,"getUpgradedUFI2EmojiComposerPlugin",function(b){return b(a)})},d.$1=function(a,b){if(d.state.upgradedPlugin!=null)return d.state.upgradedPlugin.handleKeyCommand(d.props.inputProps,a,b);else return d.props.inputProps.handleKeyCommand?d.props.inputProps.handleKeyCommand(a,b):"not-handled"},d.$2=function(a){h.loadImmediately(d.$3),d.props.inputProps.onFocus&&d.props.inputProps.onFocus(a)},d.$3=function(b){d.state.upgradedPlugin||d.setState({upgradedPlugin:b(a)})},c)||babelHelpers.assertThisInitialized(d)}var f=d.prototype;f.componentDidMount=function(){this.state.upgradedPlugin||this.props.subscriptionsHandler.addSubscriptions(h.onReady(this.$3))};f.render=function(){return g.jsx(c,babelHelpers["extends"]({},this.props,{inputProps:babelHelpers["extends"]({},this.props.inputProps,{composerState:this.state.upgradedPlugin?this.state.upgradedPlugin.installEmojiInputDecorator(this.props.inputProps.composerState):this.props.inputProps.composerState,handleKeyCommand:this.$1,onFocus:this.$2})}))};return d}(g.Component);return b("createUFI2ComposerPlugin")(b("injectSubscriptionsHandler.react")(d))}}e.exports=a}),null);
__d("createUFI2EmojiComposerPlugin",["React","UFI2InsertEmojiComposerAction.react","createUFI2ComposerPlugin","createUFI2EmojiComposerActionComponentPlugin","injectSubscriptionsHandler.react"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(a){var c=function(a){var c=function(d){babelHelpers.inheritsLoose(c,d);function c(){return d.apply(this,arguments)||this}var e=c.prototype;e.render=function(){return g.jsx(a,babelHelpers["extends"]({},this.props,{actions:[].concat(this.props.actions,[g.jsx(b("UFI2InsertEmojiComposerAction.react"),{onComposerStateChange:this.props.inputProps.onComposerStateChange},"emojiComposerAction")])}))};return c}(g.Component);return b("createUFI2ComposerPlugin")(b("injectSubscriptionsHandler.react")(c))};return[c,b("createUFI2EmojiComposerActionComponentPlugin")(a)]}e.exports=a}),null);
__d("createUFI2EmoticonsComposerPlugin",["requireDeferred","React","createUFI2ComposerPlugin","injectSubscriptionsHandler.react","invokeDeferredFunctionIfRequired"],(function(a,b,c,d,e,f){"use strict";var g=b("React"),h=b("requireDeferred")("getUpgradedUFI2EmoticonsComposerPlugin");function a(a){return function(c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){var c,d;for(var f=arguments.length,g=new Array(f),i=0;i<f;i++)g[i]=arguments[i];return(c=d=e.call.apply(e,[this].concat(g))||this,d.state={upgradedPlugin:b("invokeDeferredFunctionIfRequired")(h,a)},d.$1=function(a){h.loadImmediately(d.$2),d.props.inputProps.onFocus&&d.props.inputProps.onFocus(a)},d.$2=function(b){d.state.upgradedPlugin||d.setState({upgradedPlugin:b(a)})},c)||babelHelpers.assertThisInitialized(d)}var f=d.prototype;f.componentDidMount=function(){this.state.upgradedPlugin?this.state.upgradedPlugin.installPlugin(this.props):this.props.subscriptionsHandler.addSubscriptions(h.onReady(this.$2))};f.componentDidUpdate=function(a,b){b.upgradedPlugin==null&&this.state.upgradedPlugin!=null&&this.state.upgradedPlugin.installPlugin(this.props)};f.render=function(){if(this.state.upgradedPlugin)return this.state.upgradedPlugin.render(this.props,c);else return g.jsx(c,babelHelpers["extends"]({},this.props,{inputProps:babelHelpers["extends"]({},this.props.inputProps,{onFocus:this.$1})}))};return d}(g.Component);return b("createUFI2ComposerPlugin")(b("injectSubscriptionsHandler.react")(d))}}e.exports=a}),null);
__d("UFI2InsertGIFComposerAction.react",["cx","fbt","JSResource","React","UFI2ComposerAction.react","UFI2ComposerActionPlaceholder.react","gkx","lazyLoadComponent"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React"),j=b("lazyLoadComponent")(b("JSResource")("UFI2InsertGIFButton.react").__setRef("UFI2InsertGIFComposerAction.react")),k=b("lazyLoadComponent")(b("JSResource")("CometUFIInsertGIFButton.react").__setRef("UFI2InsertGIFComposerAction.react"));a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=a.onComposerStateChange,d=a.ftentidentifier,e=h._("GIF\u3092\u6295\u7a3f");return i.jsx(b("UFI2ComposerAction.react"),{createComponentProps:function(a){a=a.clicked;return{buttonClassName:"_1t9_ _1ny6",ftentidentifier:d,iconActiveClassName:"_1ny9",iconClassName:"_1nyp",initiallyVisible:a,label:e,onComposerStateChange:c}},label:e,placeholder:i.jsx(b("UFI2ComposerActionPlaceholder.react"),{buttonClassName:"_1t9_ _1ny6",iconClassName:"_1nyp",label:e}),resource:b("gkx")("708253")?k:j})};return c}(i.PureComponent);e.exports=a}),null);
__d("createUFI2GIFComposerActionComposerPlugin",["cx","fbt","UFI2NUXConfig","React","UFI2ComposerPreviewArea.react","Image.react","createUFI2ComposerPlugin"],(function(a,b,c,d,e,f,g,h){"use strict";b("UFI2NUXConfig");var i=b("React"),j="GIF";function k(a){return a.attachment&&a.attachment.__type===j?a.attachment.data:null}function a(){return function(a){var c=function(d){babelHelpers.inheritsLoose(c,d);function c(){var a,b;for(var c=arguments.length,e=new Array(c),f=0;f<c;f++)e[f]=arguments[f];return(a=b=d.call.apply(d,[this].concat(e))||this,b.$1=function(a){b.props.inputProps.onComposerStateChange(function(a){return{attachment:null}})},a)||babelHelpers.assertThisInitialized(b)}var e=c.prototype;e.componentDidMount=function(){this.props.onInstallAttachmentMappers(function(a){return a.__type===j?{link:{external:{url:a.data.source.url}}}:null})};e.componentDidUpdate=function(a){var b=this.props.inputProps.composerState;a=a.inputProps.composerState;var c=k(b);if(a.attachment==null&&c&&k(a)==null){c=b.inputState;a=!1;switch(c.__type){case"plain-text":a=c.text.trim()!=="";break;case"editor-state-based":a=c.editorState.getCurrentContent().getPlainText().trim()!=="";break;default:c.__type}a===!1&&this.props.inputProps.onCommit()}};e.render=function(){var c=this.props.inputProps.composerState;c=k(c);return i.jsxs("div",{className:"_17pg",children:[i.jsx(a,babelHelpers["extends"]({},this.props)),c?i.jsx(b("UFI2ComposerPreviewArea.react"),{onRemoveClick:this.$1,removeButtonLabel:h._("GIF\u3092\u524a\u9664"),children:i.jsx(b("Image.react"),{className:"_17pj mas",height:c.media.preview.height,src:c.media.preview.url,width:c.media.preview.width})}):null]})};return c}(i.Component);return b("createUFI2ComposerPlugin")(c)}}e.exports=a}),null);
__d("createUFI2GIFComposerPlugin",["cx","React","UFI2InsertGIFComposerAction.react","createUFI2ComposerPlugin","createUFI2GIFComposerActionComposerPlugin","qex"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){var c=function(c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){var a,b;for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];return(a=b=e.call.apply(e,[this].concat(d))||this,b.action=h.createRef(),a)||babelHelpers.assertThisInitialized(b)}var f=d.prototype;f.render=function(){var d=this.props.inputProps.composerState;return h.jsx("div",{className:"_17pg",children:h.jsx(c,babelHelpers["extends"]({},this.props,{actions:d.attachment?this.props.actions:[].concat(this.props.actions,[h.jsx(b("UFI2InsertGIFComposerAction.react"),{ftentidentifier:b("qex")._("1000665")?a.ftentidentifier:null,onComposerStateChange:this.props.inputProps.onComposerStateChange,ref:this.action},"gifComposerAction")])}))})};return d}(h.Component);return b("createUFI2ComposerPlugin")(d)};return[c,b("createUFI2GIFComposerActionComposerPlugin")()]}e.exports=a}),null);
__d("createUFI2HashtagComposerPlugin",["requireDeferred","React","createUFI2ComposerPlugin","injectSubscriptionsHandler.react","invokeDeferredFunctionIfRequired"],(function(a,b,c,d,e,f){"use strict";var g=b("React"),h=b("requireDeferred")("getUpgradedUFI2HashtagComposerPlugin");function a(){return function(a){var c=function(d){babelHelpers.inheritsLoose(c,d);function c(){var a,c;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(a=c=d.call.apply(d,[this].concat(f))||this,c.state={upgradedPlugin:b("invokeDeferredFunctionIfRequired")(h)},c.$1=function(a){h.loadImmediately(c.$2),c.props.inputProps.onFocus&&c.props.inputProps.onFocus(a)},c.$2=function(a){c.state.upgradedPlugin||c.setState({upgradedPlugin:a()})},a)||babelHelpers.assertThisInitialized(c)}var e=c.prototype;e.componentDidMount=function(){this.state.upgradedPlugin||this.props.subscriptionsHandler.addSubscriptions(h.onReady(this.$2))};e.render=function(){return g.jsx(a,babelHelpers["extends"]({},this.props,{inputProps:babelHelpers["extends"]({},this.props.inputProps,{composerState:this.state.upgradedPlugin?this.state.upgradedPlugin.installHashtagInputDecorator(this.props.inputProps.composerState):this.props.inputProps.composerState,onFocus:this.$1})}))};return c}(g.Component);return b("createUFI2ComposerPlugin")(b("injectSubscriptionsHandler.react")(c))}}e.exports=a}),null);
__d("createBsgCannedCommentsUFI2ComposerPlugin",["React","RelayFBMatchContainer","createUFI2ComposerPlugin","gkx","qex"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(a){return function(c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){var a,b;for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];return(a=b=e.call.apply(e,[this].concat(d))||this,b.state={focused:!1},b.$1=function(a){b.setState({focused:!0}),b.props.inputProps.onFocus&&b.props.inputProps.onFocus(a)},b.$2=function(a){b.setState({focused:!1}),b.props.inputProps.onBlur&&b.props.inputProps.onBlur(a)},a)||babelHelpers.assertThisInitialized(b)}var f=d.prototype;f.getMatchedComponent=function(){return g.jsx(g.Suspense,{fallback:null,children:g.jsx(b("RelayFBMatchContainer"),{match:a.feedback.marketplace_canned_comments,props:babelHelpers["extends"]({},this.props,{focused:this.state.focused,marketplaceCannedComments:a.feedback.marketplace_canned_comments})})})};f.getShowCannedComments=function(){if(a.feedback.marketplace_canned_comments===null||this.props.inputProps.depth!==0)return!1;return a.renderLocation==="product_details"?b("qex")._("872575")===!0:b("gkx")("920152")};f.render=function(){var a=this.getShowCannedComments();return g.jsxs(g.Fragment,{children:[a?this.getMatchedComponent():null,g.jsx(c,babelHelpers["extends"]({},this.props,{inputProps:babelHelpers["extends"]({},this.props.inputProps,{onBlur:this.$2,onFocus:this.$1})}))]})};return d}(g.Component);return b("createUFI2ComposerPlugin")(d)}}e.exports=a}),null);
__d("UFI2MediaUploadComposerAction.react",["cx","fbt","CometUFIActionsContext","Event","JSResource","React","UFI2ComposerAction.react","UFI2ComposerActionPlaceholder.react","UFICommentFileInputAcceptValues","injectSubscriptionsHandler.react","lazyLoadComponent"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("CometUFIActionsContext").CometUFIActionsContext,j=b("React");c=b("React");var k=c.useCallback,l=c.useContext,m=c.useEffect,n=b("lazyLoadComponent")(b("JSResource")("UFI2MediaUploadButton.react").__setRef("UFI2MediaUploadComposerAction.react"));function a(a){var c=a.fileIsHoveringOverDropTarget,d=c===void 0?!1:c;c=a.hasErrored;var e=c===void 0?!1:c,f=a.onComposerStateChange,g=a.subscriptionsHandler,o=a.feedbackID;c=l(i);var p=c.registerUFIActions,q=k(function(a){var b=a.target.files.item(0);f(function(a){return babelHelpers["extends"]({},a,{attachment:{__type:"Media",reference:{__type:"File",file:b}}})})},[f]),r=k(function(){var a=document.createElement("input");a.setAttribute("accept",b("UFICommentFileInputAcceptValues").both);a.setAttribute("type","file");g.addSubscriptions(b("Event").listen(a,"change",q));a.click()},[g,q]);m(function(){if(o==null)return;var a=p(o,{uploadMedia:r});return function(){a&&a.dispose()}},[p,r,o]);var s=e?h._("\u30d5\u30a1\u30a4\u30eb\u3092\u6dfb\u4ed8\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3082\u3046\u4e00\u5ea6\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044"):h._("\u5199\u771f\u307e\u305f\u306f\u52d5\u753b\u3092\u6dfb\u4ed8");return j.jsx(b("UFI2ComposerAction.react"),{createComponentProps:function(a){a=a.clicked;return{feedbackID:o,fileIsHoveringOverDropTarget:d,hasErrored:e,initialUploadDialogIsOpen:a,label:s,onComposerStateChange:f}},label:s,placeholder:j.jsx(b("UFI2ComposerActionPlaceholder.react"),{buttonClassName:"_1t9_ _7ja_",iconClassName:(d?"_3n42":"")+(!d&&!e?" _3n43":"")+(e?" _3nb4":""),label:s,onMouseUp:r}),resource:n})}e.exports=b("injectSubscriptionsHandler.react")(a)}),null);
__d("isMimeTypeForMedia",["UFICommentFileInputAcceptValues"],(function(a,b,c,d,e,f){"use strict";var g=b("UFICommentFileInputAcceptValues").photos,h=b("UFICommentFileInputAcceptValues").videos,i={"image/gif":"video"},j,k;function l(a){return a.split(",").map(function(a){return a.trim()}).map(function(a){return a.replace(/\/\*$/,"/")})}function a(a){k==null&&(k=l(g));var b=i[a];return b!=null?b==="photo":k.some(function(b){return a.startsWith(b)})}function c(a){j==null&&(j=l(h));var b=i[a];return b!=null?b==="video":j.some(function(b){return a.startsWith(b)})}e.exports={isMimeTypeForPhoto:a,isMimeTypeForVideo:c}}),null);
__d("mimeTypeIsAcceptableToUFI2MediaUploadPlugin",["isMimeTypeForMedia"],(function(a,b,c,d,e,f){"use strict";var g=b("isMimeTypeForMedia").isMimeTypeForPhoto,h=b("isMimeTypeForMedia").isMimeTypeForVideo;function a(a){return g(a)||h(a)}e.exports=a}),null);
__d("indexOfFirstItemInDataTransferAcceptableToUFI2MediaUploadPlugin",["mimeTypeIsAcceptableToUFI2MediaUploadPlugin"],(function(a,b,c,d,e,f){"use strict";function g(a){return a.kind==="file"&&b("mimeTypeIsAcceptableToUFI2MediaUploadPlugin")(a.type)}function a(a){var b=a.items;a=a.types;return b==null||a==null||Array.from(a).includes("Files")===!1?-1:Array.from(b).findIndex(function(a){return g(a)})}e.exports=a}),null);
__d("createUFI2MediaUploadComposerPlugin",["cx","fbt","Bootloader","ProgressBar.react","React","UFI2ComposerPreviewArea.react","UFI2MediaUploadComposerAction.react","createUFI2ComposerPlugin","ifRequired","indexOfFirstItemInDataTransferAcceptableToUFI2MediaUploadPlugin","injectSubscriptionsHandler.react","mimeTypeIsAcceptableToUFI2MediaUploadPlugin"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");function j(a,b){a.inputProps.onComposerStateChange(function(){return{attachment:{__type:"Media",reference:{__type:"File",file:b}}}})}function k(a){return((a=a.attachment)==null?void 0:a.__type)==="Media"}function l(a,b,c){if(b==="ufi-commit"){var d=a.inputProps.composerState;d=d&&d.attachment&&d.attachment.__type==="Media"&&d.attachment.reference.__type;if(d==="File"||d==="UploadingFile")return"handled"}return a.inputProps.handleKeyCommand?a.inputProps.handleKeyCommand(b,c):"not-handled"}function a(a){return function(c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){var c,d;for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];return(c=d=e.call.apply(e,[this].concat(g))||this,d.$1=0,d.$2=!1,d.state={fileIsHoveringOverDropTarget:!1,upgradedPlugin:b("ifRequired")("getUpgradedUFI2MediaUploadComposerPlugin",function(b){return b(a)},function(){return null}),uploadError:null},d.$4=function(a){d.$1++;var c=a.dataTransfer;if(c==null)return;b("indexOfFirstItemInDataTransferAcceptableToUFI2MediaUploadPlugin")(c)!==-1&&(a.preventDefault(),d.$1>0&&d.setState({fileIsHoveringOverDropTarget:!0}))},d.$5=function(){d.$1--,d.$1===0&&d.setState({fileIsHoveringOverDropTarget:!1})},d.$7=function(a){var b=a.dataTransfer;b!=null&&d.$3(a,b);d.$1=0;d.setState({fileIsHoveringOverDropTarget:!1})},d.$8=function(a){if(a.isDefaultPrevented())return;var b=a.clipboardData;if(b==null)return;d.$3(a,b)},d.$9=function(a){a=a.find(function(a){return b("mimeTypeIsAcceptableToUFI2MediaUploadPlugin")(a.type)});if(a){j(d.props,new Blob([a],{type:a.type}));return"handled"}return"not-handled"},d.$10=function(){d.props.inputProps.onComposerStateChange(function(a){return{attachment:null}})},c)||babelHelpers.assertThisInitialized(d)}var f=d.prototype;f.$3=function(a,c){if(c==null)return;var d=b("indexOfFirstItemInDataTransferAcceptableToUFI2MediaUploadPlugin")(c);if(d===-1)return;c=Array.from(c.items);c=d<c.length?c[d].getAsFile():null;c!=null&&(a.preventDefault(),j(this.props,c))};f.$6=function(a){var c=a.dataTransfer;if(c==null)return;b("indexOfFirstItemInDataTransferAcceptableToUFI2MediaUploadPlugin")(c)!==-1&&a.preventDefault()};f.$11=function(){var c=this;if(this.state.upgradedPlugin||this.$2)return;this.$2=!0;this.props.subscriptionsHandler.addSubscriptions(b("Bootloader").loadModules(["getUpgradedUFI2MediaUploadComposerPlugin"],function(b){c.setState({upgradedPlugin:b(a)})},"createUFI2MediaUploadComposerPlugin"))};f.componentDidMount=function(){this.state.upgradedPlugin?this.state.upgradedPlugin.installPlugin(this.props,this.state,this.setState.bind(this)):this.$12()&&this.$11()};f.$12=function(){if(this.state.upgradedPlugin||this.$2)return!1;var a=this.props.inputProps.composerState;return a.attachment!=null&&a.attachment.__type==="Media"};f.componentDidUpdate=function(a,b){b.upgradedPlugin==null&&this.state.upgradedPlugin!=null&&this.state.upgradedPlugin.installPlugin(this.props,this.state,this.setState.bind(this)),this.state.upgradedPlugin?this.state.upgradedPlugin.componentDidUpdate(a,this.props,this.state,this.setState.bind(this)):this.$12()&&this.$11()};f.render=function(){var a=this;if(this.state.upgradedPlugin)return this.state.upgradedPlugin.render(this.props,this.state,this.setState.bind(this),this.$4,this.$5,this.$6,this.$7,l,this.$8,this.$9,c);var d=k(this.props.inputProps.composerState),e=i.jsx(c,babelHelpers["extends"]({},this.props,{actions:this.props.inputProps.composerState.attachment?this.props.actions:[].concat(this.props.actions,[i.jsx(b("UFI2MediaUploadComposerAction.react"),{feedbackID:this.props.inputProps.composerState.feedbackID,fileIsHoveringOverDropTarget:this.state.fileIsHoveringOverDropTarget,hasErrored:!1,onComposerStateChange:this.props.inputProps.onComposerStateChange},"mediaUploadComposerAction")]),inputProps:babelHelpers["extends"]({},this.props.inputProps,{handleKeyCommand:function(b,c){return l(a.props,b,c)},handlePastedFiles:this.$9})})),f=h._("\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u30ad\u30e3\u30f3\u30bb\u30eb");return i.jsxs("div",{className:"_25-w",onDragEnter:this.$4,onDragLeave:this.$5,onDragOver:this.$6,onDrop:this.$7,children:[e,d?i.jsx(b("UFI2ComposerPreviewArea.react"),{onRemoveClick:this.$10,removeButtonLabel:f,children:i.jsx(b("ProgressBar.react"),{label:h._("{value}\u0025",[h._param("value","0")]),value:0})}):null]})};return d}(i.Component);return b("createUFI2ComposerPlugin")(b("injectSubscriptionsHandler.react")(d))}}e.exports=a}),null);
__d("createUFI2MentionsComposerPlugin",["Bootloader","React","Run","createUFI2ComposerPlugin","ifRequired","injectSubscriptionsHandler.react"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(a){return function(c){var d=!1,e=function(f){babelHelpers.inheritsLoose(e,f);function e(){var c,e;for(var g=arguments.length,h=new Array(g),i=0;i<g;i++)h[i]=arguments[i];return(c=e=f.call.apply(f,[this].concat(h))||this,e.state={characterOffset:0,mentionableEntities:[],selectedMentionableEntity:null,upgradedPlugin:b("ifRequired").call(b("ifRequired"),a.upgradedPluginResource.getModuleId(),function(b){return b(a,d)},function(){return null})},e.$1=!1,e.$3=function(a){d=!1,e.props.inputProps.onBlur&&e.props.inputProps.onBlur(a)},e.$4=function(a){d=!0,e.$2(),e.props.inputProps.onFocus&&e.props.inputProps.onFocus(a)},c)||babelHelpers.assertThisInitialized(e)}var h=e.prototype;h.componentDidMount=function(){var a=this;this.state.upgradedPlugin!=null?this.state.upgradedPlugin.installPlugin(this.props,this.state,this.setState.bind(this)):this.props.subscriptionsHandler.addSubscriptions(b("Run").onAfterLoad(function(){return a.$2()}))};h.componentDidUpdate=function(a,b){b.upgradedPlugin==null&&this.state.upgradedPlugin!=null&&this.state.upgradedPlugin.installPlugin(this.props,this.state,this.setState.bind(this)),this.state.upgradedPlugin&&this.state.upgradedPlugin.componentDidUpdate(a,b,this.props,this.state,this.setState.bind(this))};h.componentWillUnmount=function(){this.state.upgradedPlugin&&this.state.upgradedPlugin.componentWillUnmount()};h.$2=function(){var c=this;if(this.$1||this.state.upgradedPlugin)return;this.$1=!0;this.props.subscriptionsHandler.addSubscriptions(b("Bootloader").loadModules.call(b("Bootloader"),[a.upgradedPluginResource.getModuleId()],function(b){c.setState({upgradedPlugin:b(a,d)})},"createUFI2MentionsComposerPlugin"))};h.render=function(){var a=this.props;a.subscriptionsHandler;a=babelHelpers.objectWithoutPropertiesLoose(a,["subscriptionsHandler"]);if(this.state.upgradedPlugin)return this.state.upgradedPlugin.render(this.props,this.state,this.setState.bind(this),c);else return g.jsx(c,babelHelpers["extends"]({},a,{inputProps:babelHelpers["extends"]({},this.props.inputProps,{onBlur:this.$3,onFocus:this.$4})}))};return e}(g.Component);return b("createUFI2ComposerPlugin")(b("injectSubscriptionsHandler.react")(e))}}e.exports=a}),null);
__d("createUFI2PrefillMentionComposerPlugin",["requireDeferred","FBLogger","React","UFIODSLogger","createUFI2ComposerPlugin","injectSubscriptionsHandler.react","invokeDeferredFunctionIfRequired"],(function(a,b,c,d,e,f){"use strict";var g=b("React"),h=b("requireDeferred")("getUpgradedUFI2PrefillMentionComposerPlugin");function a(){return function(a){var c=function(d){babelHelpers.inheritsLoose(c,d);function c(){var a,c;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(a=c=d.call.apply(d,[this].concat(f))||this,c.state={upgradedPlugin:b("invokeDeferredFunctionIfRequired")(h)},c.$1=function(a){var d=c.state.upgradedPlugin;d?(a.__type==="PrefillMention"&&b("UFIODSLogger").bump("prefill_mention_plugin.prefill_requested.with_implementation","relay"),d.handleCommand(a,c.props.inputProps)):(a.__type==="PrefillMention"&&(b("UFIODSLogger").bump("prefill_mention_plugin.prefill_requested.without_implementation","relay"),b("FBLogger")("ufi2").warn("Someone called for the composer to be prefilled with a mention before the prefill code had loaded. Nothing fatal happened, but the users involved experienced a degraded experience; the original author of the comment that was being replied to was likely not mentioned, hence they might not have been notified of the reply.")),c.props.inputProps.handleCommand&&c.props.inputProps.handleCommand(a))},a)||babelHelpers.assertThisInitialized(c)}var e=c.prototype;e.componentDidMount=function(){var a=this;this.state.upgradedPlugin||this.props.subscriptionsHandler.addSubscriptions(h.onReady(function(b){a.setState({upgradedPlugin:b()})}))};e.render=function(){return g.jsx(a,babelHelpers["extends"]({},this.props,{inputProps:babelHelpers["extends"]({},this.props.inputProps,{handleCommand:this.$1})}))};return c}(g.Component);return b("createUFI2ComposerPlugin")(b("injectSubscriptionsHandler.react")(c))}}e.exports=a}),null);
__d("createUFI2AssociateReplyWithParentComposerPlugin",["React","createUFI2ComposerPlugin"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(){return function(a){var c=function(c){babelHelpers.inheritsLoose(b,c);function b(){var a,b;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(a=b=c.call.apply(c,[this].concat(e))||this,b.$1=function(a){var c=b.props.inputProps;if(a.__type==="SetReplyAssociation"){var d=a.commentAssociatedWithReply;c.onComposerStateChange(function(a){return babelHelpers["extends"]({},a,{commentAssociatedWithReply:d})})}else if(a.__type==="SetReplyAssociationLegacy"){var e=a.commentBeingRepliedTo,f=e==null?void 0:e.id;e!=null&&f!=null?c.onComposerStateChange(function(a){return babelHelpers["extends"]({},a,{commentAssociatedWithReply:{commentComposerPlaceholderText:(a=e.feedback)==null?void 0:a.comment_composer_placeholder,id:f}})}):c.onComposerStateChange(function(a){return babelHelpers["extends"]({},a,{commentAssociatedWithReply:void 0})})}c.handleCommand&&c.handleCommand(a)},a)||babelHelpers.assertThisInitialized(b)}var d=b.prototype;d.render=function(){return g.jsx(a,babelHelpers["extends"]({},this.props,{inputProps:babelHelpers["extends"]({},this.props.inputProps,{handleCommand:this.$1})}))};return b}(g.Component);return b("createUFI2ComposerPlugin")(c)}}e.exports=a}),null);
__d("createUFI2SetReplyClickedComposerPlugin",["React","createUFI2ComposerPlugin"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(){return function(a){var c=function(c){babelHelpers.inheritsLoose(b,c);function b(){var a,b;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(a=b=c.call.apply(c,[this].concat(e))||this,b.$1=function(a){var c=b.props.inputProps;a.__type==="SetReplyClicked"&&c.onComposerStateChange(function(a){return babelHelpers["extends"]({},a,{replyTargetClicked:!0})});c.handleCommand&&c.handleCommand(a)},a)||babelHelpers.assertThisInitialized(b)}var d=b.prototype;d.render=function(){return g.jsx(a,babelHelpers["extends"]({},this.props,{inputProps:babelHelpers["extends"]({},this.props.inputProps,{handleCommand:this.$1})}))};return b}(g.Component);return b("createUFI2ComposerPlugin")(c)}}e.exports=a}),null);
__d("UFI2InsertStarsComposerAction.react",["cx","fbt","JSResource","React","UFI2ComposerAction.react","UFI2ComposerActionPlaceholder.react","lazyLoadComponent"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React"),j=b("lazyLoadComponent")(b("JSResource")("UFI2InsertStarsButton.react").__setRef("UFI2InsertStarsComposerAction.react"));function a(a){var c=h._("\u30b9\u30bf\u30fc\u3092\u6dfb\u4ed8");return i.jsx(b("UFI2ComposerAction.react"),{createComponentProps:function(b){b=b.clicked;return{buttonClassName:"_1t9_ _88o2 UFICommentSupportButton",feedbackID:a.feedbackID,iconActiveClassName:"_88o3",iconClassName:"_88o4",initiallyVisible:b,label:c,onComposerStateChange:a.onComposerStateChange}},label:c,placeholder:i.jsx(b("UFI2ComposerActionPlaceholder.react"),{buttonClassName:"_1t9_ _88o2 UFICommentSupportButton",iconClassName:"_88o4",label:c}),resource:j})}e.exports=a}),null);
__d("createUFI2StarsComposerActionComposerPlugin",["ix","cx","fbt","CometStarsVirtualGiftView.react","FlexLayout.react","Image.react","React","TetraText.react","UFI2ComposerPreviewArea.react","asset","createUFI2ComposerPlugin"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=b("React");function k(a){return a.attachment&&a.attachment.__type==="Stars"?{amount:a.attachment.amount,gift:a.attachment.gift}:null}function a(){return function(a){var c=function(d){babelHelpers.inheritsLoose(c,d);function c(){var a,b;for(var c=arguments.length,e=new Array(c),f=0;f<c;f++)e[f]=arguments[f];return(a=b=d.call.apply(d,[this].concat(e))||this,b.$1=function(a){b.props.inputProps.onComposerStateChange(function(a){return{attachment:null}})},a)||babelHelpers.assertThisInitialized(b)}var e=c.prototype;e.componentDidMount=function(){this.props.onInstallAttachmentMappers(function(a){if(a.__type==="Stars"){return{stars:{amount:a.amount,gift_id:(a=a.gift)==null?void 0:a.id}}}return null})};e.render=function(){var c=k(this.props.inputProps.composerState);return j.jsxs("div",{children:[j.jsx(a,babelHelpers["extends"]({},this.props)),c!=null?j.jsx(b("UFI2ComposerPreviewArea.react"),{onRemoveClick:this.$1,removeButtonLabel:i._("\u30b9\u30bf\u30fc\u3092\u524a\u9664"),children:j.jsx(l,{gift:c.gift,starAmount:c.amount})}):null]})};return c}(j.Component);return b("createUFI2ComposerPlugin")(c)}}function l(a){var c=a.gift;a=a.starAmount;return c!=null?j.jsx(b("CometStarsVirtualGiftView.react"),babelHelpers["extends"]({},c,{isSelected:!1})):j.jsxs(b("FlexLayout.react"),{align:"center",className:"_3-8i",children:[j.jsx(b("Image.react"),{className:"_3-8s",src:g("647932")}),j.jsx(b("TetraText.react"),{type:"bodyLink4",children:i._("\u30b9\u30bf\u30fcx{star quantity}",[i._param("star quantity",a)])})]})}e.exports=a}),null);
__d("createUFI2StarsComposerPlugin",["React","UFI2InsertStarsComposerAction.react","createUFI2ComposerPlugin","createUFI2StarsComposerActionComposerPlugin"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(a){var c=function(c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){return e.apply(this,arguments)||this}var f=d.prototype;f.render=function(){return g.jsx(c,babelHelpers["extends"]({},this.props,{actions:this.props.inputProps.composerState.attachment||this.props.inputProps.depth>0||this.props.inputProps.commentAction!=="ADD"?this.props.actions:[].concat(this.props.actions,[g.jsx(b("UFI2InsertStarsComposerAction.react"),{feedbackID:a.feedbackID,onComposerStateChange:this.props.inputProps.onComposerStateChange},"starsComposerAction")])}))};return d}(g.Component);return b("createUFI2ComposerPlugin")(d)};return[c,b("createUFI2StarsComposerActionComposerPlugin")()]}e.exports=a}),null);
__d("UFI2InsertStickerComposerAction.react",["cx","fbt","JSResource","React","UFI2ComposerAction.react","UFI2ComposerActionPlaceholder.react","lazyLoadComponent"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React"),j=b("lazyLoadComponent")(b("JSResource")("UFI2InsertStickerButton.react").__setRef("UFI2InsertStickerComposerAction.react"));function a(a){var c=h._("\u30b9\u30bf\u30f3\u30d7\u3092\u6295\u7a3f");return i.jsx(b("UFI2ComposerAction.react"),{createComponentProps:function(b){b=b.clicked;return{buttonClassName:"_1t9_ _2r-o",feedbackID:a.feedbackID,iconActiveClassName:"_2r-q",iconClassName:"_2r-r",initiallyVisible:b,label:c,onComposerStateChange:a.onComposerStateChange,targetID:a.targetID}},label:c,placeholder:i.jsx(b("UFI2ComposerActionPlaceholder.react"),{buttonClassName:"_1t9_ _2r-o",iconClassName:"_2r-r",label:c}),resource:j})}e.exports=a}),null);
__d("createUFI2StickersComposerActionComposerPlugin",["cx","fbt","Bootloader","FBLogger","LoadingIndicator.react","React","UFI2ComposerPreviewArea.react","createUFI2ComposerPlugin","ifRequired","injectSubscriptionsHandler.react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");function j(a){return a.attachment&&a.attachment.__type==="Sticker"?a.attachment.id:null}function a(a){return function(c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){var c,d;for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];return(c=d=e.call.apply(e,[this].concat(g))||this,d.$1=!1,d.state={upgradedPlugin:b("ifRequired")("getUpgradedUFI2StickersComposerPlugin",function(b){return b(a)},function(){return null})},d.$2=function(a){d.props.inputProps.onComposerStateChange(function(a){return{attachment:null}})},d.$3=function(a){d.props.inputProps.onComposerStateChange(function(){return{attachment:null}}),b("FBLogger")("ufi2").catching(a).mustfix("Encountered an error while rendering a sticker.")},c)||babelHelpers.assertThisInitialized(d)}var f=d.prototype;f.$4=function(c){var d=i.jsx(b("LoadingIndicator.react"),{className:"_1rwi mal",color:"blue",size:"small"});if(this.state.upgradedPlugin)return this.state.upgradedPlugin.renderSticker(a.environment,d,this.$3,c);else return d};f.$5=function(){if(this.state.upgradedPlugin||this.$1)return!1;var a=this.props.inputProps.composerState;return a.attachment!=null&&a.attachment.__type==="Sticker"};f.$6=function(){var c=this;if(this.state.upgradedPlugin||this.$1)return;this.props.subscriptionsHandler.addSubscriptions(b("Bootloader").loadModules(["getUpgradedUFI2StickersComposerPlugin"],function(b){c.setState({upgradedPlugin:b(a)})},"createUFI2StickersComposerActionComposerPlugin"))};f.componentDidMount=function(){this.props.onInstallAttachmentMappers(function(a){return a.__type==="Sticker"?{media:{id:a.id}}:null}),this.$5()&&this.$6()};f.componentDidUpdate=function(a){var b=this.props.inputProps.composerState;a=a.inputProps.composerState;var c=j(b);if(this.props.inputProps.commentAction==="ADD"&&b.updateSource==="UFI2InsertStickerButton"&&a.attachment==null&&c!=null&&j(a)==null){c=b.inputState;a=!1;switch(c.__type){case"plain-text":a=c.text.trim()!=="";break;case"editor-state-based":a=c.editorState.getCurrentContent().getPlainText().trim()!=="";break;default:c.__type}a===!1&&this.props.inputProps.onCommit()}this.$5()&&this.$6()};f.render=function(){var a=j(this.props.inputProps.composerState);return i.jsxs("div",{className:"_1rwk",children:[i.jsx(c,babelHelpers["extends"]({},this.props)),a!=null?i.jsx(b("UFI2ComposerPreviewArea.react"),{onRemoveClick:this.$2,removeButtonLabel:h._("\u30b9\u30bf\u30f3\u30d7\u3092\u524a\u9664"),children:this.$4(a)}):null]})};return d}(i.Component);return b("createUFI2ComposerPlugin")(b("injectSubscriptionsHandler.react")(d))}}e.exports=a}),null);
__d("createUFI2StickersComposerPlugin",["React","UFI2InsertStickerComposerAction.react","createUFI2ComposerPlugin","createUFI2StickersComposerActionComposerPlugin"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(a){var c=function(c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){return e.apply(this,arguments)||this}var f=d.prototype;f.render=function(){return g.jsx(c,babelHelpers["extends"]({},this.props,{actions:this.props.inputProps.composerState.attachment?this.props.actions:[].concat(this.props.actions,[g.jsx(b("UFI2InsertStickerComposerAction.react"),{feedbackID:this.props.inputProps.composerState.feedbackID,onComposerStateChange:this.props.inputProps.onComposerStateChange,targetID:a.targetID},"stickersComposerAction")])}))};return d}(g.Component);return b("createUFI2ComposerPlugin")(d)};return[c,b("createUFI2StickersComposerActionComposerPlugin")({environment:a.environment,targetID:a.targetID})]}e.exports=a}),null);
__d("createUFI2ComposerTipPlugin",["cx","React","createUFI2ComposerPlugin"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){return function(c){var d=function(d){babelHelpers.inheritsLoose(b,d);function b(){return d.apply(this,arguments)||this}var e=b.prototype;e.render=function(){if(this.props.inputProps.commentAction==="EDIT")return h.jsx(c,babelHelpers["extends"]({},this.props));var b=this.props.inputProps.isCommentDenied;return h.jsxs(h.Fragment,{children:[h.jsx(c,babelHelpers["extends"]({},this.props)),b!==!0&&h.jsx("div",{className:"_6g0t fcg fss",children:a.composer_tip})]})};return b}(h.Component);return b("createUFI2ComposerPlugin")(d)}}e.exports=a}),null);
__d("createUFI2LiveTypingBroadcastComposerPlugin",["Bootloader","React","createUFI2ComposerPlugin","ifRequired","injectSubscriptionsHandler.react"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(a){return function(c){var d=function(e){babelHelpers.inheritsLoose(d,e);function d(){var c,d;for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];return(c=d=e.call.apply(e,[this].concat(g))||this,d.$1=!1,d.$2=!1,d.state={upgradedPlugin:b("ifRequired")("getUpgradedUFI2LiveTypingBroadcastComposerPlugin",function(b){return b(a)},function(){return null})},c)||babelHelpers.assertThisInitialized(d)}var f=d.prototype;f.componentWillUnmount=function(){this.state.upgradedPlugin!=null&&this.state.upgradedPlugin.componentWillUnmount()};f.$3=function(){var c=this;if(this.state.upgradedPlugin||this.$1)return;this.$1=!0;this.props.subscriptionsHandler.addSubscriptions(b("Bootloader").loadModules(["getUpgradedUFI2LiveTypingBroadcastComposerPlugin"],function(b){b=b(a);b.onBootload(c.props,c.state,c.$2);c.setState({upgradedPlugin:b})},"createUFI2LiveTypingBroadcastComposerPlugin"))};f.render=function(){var a=this;if(this.state.upgradedPlugin!=null)return this.state.upgradedPlugin.render(this.props,this.state,c);else return g.jsx(c,babelHelpers["extends"]({},this.props,{inputProps:babelHelpers["extends"]({},this.props.inputProps,{onBlur:function(b){a.props.inputProps.onBlur&&a.props.inputProps.onBlur(b);if(b.isDefaultPrevented())return;a.$2=!1},onFocus:function(b){a.props.inputProps.onFocus&&a.props.inputProps.onFocus(b);if(b.isDefaultPrevented())return;a.$2=!0;a.$3()}})}))};return d}(g.Component);return b("createUFI2ComposerPlugin")(b("injectSubscriptionsHandler.react")(d))}}e.exports=a}),null);
__d("getComposerStateSnapshotter",["CometLruCache","memoizeWithArgsWeak"],(function(a,b,c,d,e,f){"use strict";var g=b("CometLruCache").create(20);function h(a){a=a.inputProps;var b=a.depth;a=a.composerState.feedbackID;return JSON.stringify({depth:b,feedback:{id:a}})}function a(a){var b=h(a);return{clear:function(){g["delete"](b)},get:function(){return g.get(b)},set:function(a){g.set(b,a)}}}e.exports=b("memoizeWithArgsWeak")(a)}),null);
__d("createUFI2ComposerStateSnapshotComposerPlugin",["React","createUFI2ComposerPlugin","getComposerStateSnapshotter","killswitch"],(function(a,b,c,d,e,f){"use strict";var g=b("React");function a(){return function(a){var c=function(c){babelHelpers.inheritsLoose(b,c);function b(){var a,b;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(a=b=c.call.apply(c,[this].concat(e))||this,b.$1=!1,b.$2=function(a){b.props.snapshotter.set(b.props.inputProps.composerState),b.props.inputProps.onComposerStateChange(a)},b.$3=function(){b.$1=!1,b.props.snapshotter.clear(),b.props.inputProps.onCommit()},a)||babelHelpers.assertThisInitialized(b)}var d=b.prototype;d.componentDidMount=function(){var a=this.props,b=a.snapshotter,c=a.initialComposerState;a=a.inputProps;if(c!=null)return;var d=b.get();d!=null&&a.onComposerStateChange(function(){return d})};d.render=function(){var b=this.props;b.snapshotter;var c=b.inputProps;b=babelHelpers.objectWithoutPropertiesLoose(b,["snapshotter","inputProps"]);return g.jsx(a,babelHelpers["extends"]({},b,{inputProps:babelHelpers["extends"]({},c,{onCommit:this.$3,onComposerStateChange:this.$2})}))};return b}(g.Component);function d(a){return g.jsx(c,babelHelpers["extends"]({},a,{snapshotter:b("getComposerStateSnapshotter")(a)}))}return b("createUFI2ComposerPlugin")(d)}}e.exports=b("killswitch")("UFI2_COMPOSER_STATE_SNAPSHOT_PLUGIN")?function(){return null}:a}),null);
__d("setFocusOnUFI2ComposerInputState",["FBLogger","ifRequired"],(function(a,b,c,d,e,f){"use strict";function a(a){var c=a.inputState;switch(c.__type){case"editor-state-based":return b("ifRequired")("EditorState",function(b){return babelHelpers["extends"]({},a,{inputState:babelHelpers["extends"]({},c,{editorState:b.moveFocusToEnd(c.editorState)})})},function(){b("FBLogger")("ufi2").mustfix("Tried to set focus on a composer state whose inputState was of type `editor-state-based` but the EditorState module has not yet been defined. It should not be possible to produce a composer state of that type without the `EditorState` module being defined. Investigate why.");return a});case"plain-text":default:var d=c.text.length;return babelHelpers["extends"]({},a,{inputState:babelHelpers["extends"]({},c,{selectionOffsets:{end:d,start:d}})})}}e.exports=a}),null);
__d("UFI2CommentActionLink.react",["cx","fbt","CometTrackingNodeProvider.react","React","UFI2AbstractButtonWrapper.react","UFI2ActionLink.react","gkx","joinClasses"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");function a(a){var c=a.className,d=a.floating,e=a.inverse,f=a.label,g=a.onClick;return i.jsx(b("UFI2ActionLink.react"),{floating:d,children:function(a){a=a.className;return i.jsx(b("CometTrackingNodeProvider.react"),{trackingNode:26,children:i.jsx(b("UFI2AbstractButtonWrapper.react"),babelHelpers["extends"]({className:b("joinClasses")((e?"_6r34":"")+" _666h",a,c),"data-testid":void 0},b("gkx")("708253")?null:{href:"#"},{label:(a=f)!=null?a:h._("\u30b3\u30e1\u30f3\u30c8"),onClick:g,role:"button",tabIndex:0,title:h._("\u30b3\u30e1\u30f3\u30c8\u3059\u308b")}))})}})}a.displayName="UFI2CommentActionLink";e.exports=a}),null);
__d("UFI2PrivateReplyLink.react",["fbt","invariant","ActorURI","Bootloader","React","UFI2CometRelayCreateFragmentContainer","UFI2LinkWrapper.react","UFI2PrimerDialogWrapper.react","UFI2TooltipCometCompatWrapper.react","XPagesMessagingPrivateReplyDialogController","UFI2PrivateReplyLink_feedback.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var k="private_reply",l=g._("\u30e1\u30c3\u30bb\u30fc\u30b8");function a(a){var b,c;if(!m(a))return null;var d=(b=a.feedback.page_private_reply)==null?void 0:b.status;if(d==null)return null;b=a.WrapperComponent;switch(d){case"REPLYABLE":var e=(c=a.feedback.page_private_reply)==null?void 0:(c=c.activity)==null?void 0:c.id,f=(c=a.feedback.page_private_reply)==null?void 0:(c=c.activity)==null?void 0:c.type,g=a.feedbackSource,i=(c=a.feedback.page_private_reply)==null?void 0:(c=c.page)==null?void 0:c.id,k=(c=a.feedback.page_private_reply)==null?void 0:c.should_show_private_reply_nux;e!=null||h(0,5847);i!=null||h(0,5848);return j.jsx(b,{children:function(a){a=a.className;return j.jsx(p,{activityID:e,activityType:f,className:a,feedbackSource:g,pageID:i,shouldShowPrivateReplyNux:k})}});case"ALREADY_REPLIED":var l=(c=a.feedback.page_private_reply)==null?void 0:c.permalink;return l==null?null:j.jsx(b,{children:function(b){b=b.className;return j.jsx(q,{className:b,permalink:l,seeResponseLabel:a.seeResponseLabel})}});default:return j.jsx(b,{enabled:!1,children:function(b){var c;b=b.className;return j.jsx(r,{activityType:(c=a.feedback.page_private_reply)==null?void 0:(c=c.activity)==null?void 0:c.type,className:b,status:d})}})}}a.displayName="UFI2PrivateReplyLink";function m(a){var b,c;a=a.feedback;if(!a)return!1;b=(b=a.page_private_reply)==null?void 0:b.has_reply_permission;c=(c=a.viewer_actor)==null?void 0:c.id;a=(a=a.page_private_reply)==null?void 0:(a=a.page)==null?void 0:a.id;return b===!0&&c!=null&&c===a}function n(a){switch(a){case"COMMENT_PAGE_POST":case"COMMENT_WALL_POST":case"COMMENT_CUSTOMER_GROUP_USER_POST":case"COMMENT_REVIEW":return"comments";case"REVIEW":return"reviews";default:return"posts"}}var o=!1;function p(a){var c=a.activityID,d=a.activityType,e=a.className,f=a.feedbackSource,g=a.pageID;a=a.shouldShowPrivateReplyNux;f=b("ActorURI").create(b("XPagesMessagingPrivateReplyDialogController").getURIBuilder().setString("activity_id",c).setInt("feedback_source",f).getURI(),g);a=a!=!1&&!o;a!=!1&&(o=!0);b("Bootloader").loadModules(["PagesLogger"],function(a){a.log(g,"impression","comment_message_button",null,["business_messaging_growth"],{activity_type:d,comment_id:c,messenger_entry_point:k})},"UFI2PrivateReplyLink.react");return j.jsx(b("UFI2PrimerDialogWrapper.react"),{Component:b("UFI2LinkWrapper.react"),props:{children:j.jsxs(j.Fragment,{children:[l,a===!0?j.jsx(s,{}):null]}),className:e,href:f.toString(),onClick:function(){b("Bootloader").loadModules(["PagesLogger"],function(a){a.log(g,"click","comment_message_button",null,["business_messaging_growth"],{activity_type:d,comment_id:c,messenger_entry_point:k})},"UFI2PrivateReplyLink.react")},rel:"dialog"}})}function q(a){var c=a.className,d=a.permalink;a=a.seeResponseLabel;return j.jsx(b("UFI2LinkWrapper.react"),{className:c,href:d||"#",children:a?g._("\u8fd4\u4fe1\u3092\u898b\u308b"):l})}function r(a){var c=a.activityType,d=a.className;a=a.status;var e;switch(a){case"EXPIRED":e=g._({"comments":"7\u65e5\u4ee5\u4e0a\u524d\u306e\u30b3\u30e1\u30f3\u30c8\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8fd4\u4fe1\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002","reviews":"7\u65e5\u4ee5\u4e0a\u524d\u306e\u30ec\u30d3\u30e5\u30fc\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8fd4\u4fe1\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002","posts":"7\u65e5\u4ee5\u4e0a\u524d\u306e\u6295\u7a3f\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8fd4\u4fe1\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002"},[g._enum(n(c),{comments:"comments",reviews:"reviews",posts:"posts"})]);break;case"NOT_USER_CREATED":e=g._("\u30da\u30fc\u30b8\u306f\u4ed6\u306e\u30da\u30fc\u30b8\u306b\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002");break;case"CANNOT_MESSAGE":e=g._("This person can't receive a message reply from your Page.");break}a=j.jsx("span",{className:d,children:l});return e!=null?j.jsx(b("UFI2TooltipCometCompatWrapper.react"),{delayMountUntilHover:!0,tooltip:e,children:a}):a}function s(){return null}d=c(a,{feedback:i!==void 0?i:i=b("UFI2PrivateReplyLink_feedback.graphql")});e.exports=d}),null);
__d("UFI2PrivateReplyActionLink.react",["cx","React","UFI2ActionLink.react","UFI2CometRelayCreateFragmentContainer","UFI2PrivateReplyLink.react","UFI2PrivateReplyActionLink_feedback.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function a(a){var c=a.feedback,d=a.feedbackSource;a=a.seeResponseLabel;return i.jsx(b("UFI2PrivateReplyLink.react"),{WrapperComponent:function(a){return i.jsx(b("UFI2ActionLink.react"),babelHelpers["extends"]({},a,{linkClassName:"_6dc2"}))},feedback:c,feedbackSource:d,seeResponseLabel:a})}a.displayName="UFI2PrivateReplyActionLink";d=c(a,{feedback:h!==void 0?h:h=b("UFI2PrivateReplyActionLink_feedback.graphql")});e.exports=d}),null);
__d("UFI2ShareActionLink.react",["cx","fbt","invariant","Promise","ActorURI","AsyncDialog","AsyncRequest","Bootloader","CurrentUser","JSResource","React","TrackingNodes","UFI2ActionLink.react","UFI2CometRelayCreateFragmentContainer","UFI2LinkWrapper.react","UFI2LocalUserAction","UFI2PrimerDialogWrapper.react","UFICommonInteractionEvents","UFICommonInteractionLogger","URI","XShareDialogController","XUISpinner.react","clearTimeout","joinClasses","lazyLoadComponent","qex","setTimeoutAcrossTransitions","UFI2ShareActionLink_feedback.graphql","UFI2ShareActionLink_shareableConfig.graphql"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var n=b("lazyLoadComponent")(b("JSResource")("UFIShareNowMenu.react").__setRef("UFI2ShareActionLink.react"));c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$2=!1,d.$3=!1,d.$4=null,d.$5=m.createRef(),d.state={focusOnInit:!1,interacted:!1,isLoading:!1,misinformationDialogConfirmed:!1,openAfterMisinformationConfirmed:!1,openAfterPagePostInterceptionConfirmed:!1,openAfterReshareConfirmed:!1,openOnInit:!1,reshareFrictionViewed:!1},d.$6=function(){d.$1!=null&&(b("UFICommonInteractionLogger").endInteraction(d.$1),d.$1=null),d.$3=!0,d.$7()},d.$8=function(){d.$3=!1},d.$9=function(){var a=d.props,c=a.feedbackTargetID;a=a.shareableConfig;var e=a==null?void 0:a.misinformation_confirm_dialog_uri;e!=null||i(0,866);b("Bootloader").loadModules(["ShareWarningFactCheckLinkLogger"],function(a){b("AsyncDialog").send(new(b("AsyncRequest"))(new(l||(l=b("URI")))(e).getUnqualifiedURI()).setRelativeTo(d.$5.current),function(b){b.subscribe("confirm",function(){d.setState({misinformationDialogConfirmed:!0,openAfterMisinformationConfirmed:!0})}),a.addReshareLoggingToDialog(b,c)})},"UFI2ShareActionLink.react");d.$7()},d.$10=function(){var a;a=(a=d.props.shareableConfig)==null?void 0:a.reshare_warning_framework_dialog_uri;b("AsyncDialog").send(new(b("AsyncRequest"))(a).setRelativeTo(d.$5.current),function(a){a.subscribe("confirm",function(){a.hide(),d.setState({openAfterReshareConfirmed:!0,reshareFrictionViewed:!0}),d.$7()}),a.subscribe("cancel",function(){a.hide(),d.setState({reshareFrictionViewed:!0})})})},d.$12=function(){d.$1==null&&!d.$3&&(d.$1=b("UFICommonInteractionLogger").startInteraction(b("UFICommonInteractionEvents").UFI2_SHARE_DIALOG_OPENS))},d.$14=function(){if(d.$2)return;d.setState({focusOnInit:!0,interacted:!0})},d.$15=function(){d.$2||d.$16()},d.$17=function(){d.$2=!0},d.$18=function(){d.setState({interacted:!0})},d.$16=function(){d.setState({interacted:!0,openOnInit:!0},function(){b("clearTimeout")(d.$4),d.$4=b("setTimeoutAcrossTransitions")(function(){return d.setState(function(a){return a.openOnInit?{isLoading:!0}:null})},300)}),d.$12()},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.componentWillUnmount=function(){b("clearTimeout")(this.$4)};d.$7=function(){b("UFI2LocalUserAction").emit("share",{feedbackNodeToken:this.props.feedbackTargetID})};d.$11=function(a){var c=this;b("Bootloader").loadModules(["PagePostEngagementFrictionActions","PagePostEngagementFictionDialogStrings","promiseDone"],function(d,e,f){var g=new(b("Promise"))(function(b,c){d.showReshareEngagementFrictionDialog(a,function(){return b(!0)},function(){return b(!1)},function(){b(!1);var c=e.getStrings(a);d.goToPage(c.pageId)})}).then(function(a){a&&(c.setState({interacted:!0,openAfterPagePostInterceptionConfirmed:!0}),c.$12())},function(a){throw a});f(g)},"UFI2ShareActionLink.react")};d.$13=function(a){this.$7();var c=b("CurrentUser").isWorkUser()?b("XShareDialogController").getURIBuilder().setEnum("default_audience","group").getURI():b("XShareDialogController").getURIBuilder().getURI();a!=null&&b("AsyncDialog").send(new(b("AsyncRequest"))(c).setData({id:a.shareable_id,parent_fbid:a.shared_from_post_id,type:a.share_type}).setRelativeTo(this.$5.current))};d.render=function(){var a,c=this,d=this.props,e=d.className,f=d.linkClassName,g=d.feedback,h=d.feedbackTargetID,i=d.inverse;d=d.shareableConfig;var j=this.state,k=j.focusOnInit,p=j.interacted,q=j.isLoading,r=j.misinformationDialogConfirmed,s=j.openAfterMisinformationConfirmed,t=j.openAfterReshareConfirmed,u=j.openOnInit;j=j.reshareFrictionViewed;if(!d||!d.share_action_link_uri)return null;g=g==null?void 0:(g=g.viewer_actor)==null?void 0:g.id;var v=d==null?void 0:d.misinformation_confirm_dialog_uri,w=d==null?void 0:d.intercept_for_page_post,x=d==null?void 0:(a=d.share_action_link_primer_attributes)==null?void 0:a.rel,y=new(l||(l=b("URI")))(d==null?void 0:d.share_action_link_uri);a=d==null?void 0:d.share_now_menu_uri;d=d==null?void 0:d.reshare_warning_framework_dialog_uri;if(v&&!r)return m.jsx(b("UFI2ActionLink.react"),{linkClassName:f,children:function(a){a=a.className;return m.jsx(o,{className:a,inverse:i,onClick:c.$9})}});else if(d!=null&&!j)return m.jsx(b("UFI2ActionLink.react"),{linkClassName:f,children:function(a){a=a.className;return m.jsx(o,{className:a,inverse:i,onClick:c.$10})}});if(w&&!this.$3&&!this.state.openAfterPagePostInterceptionConfirmed)return m.jsx(b("UFI2ActionLink.react"),{linkClassName:f,children:function(a){a=a.className;return m.jsx(o,{className:a,inverse:i,onClick:function(a){return c.$11(h)}})}});var z;g&&(y=y&&b("ActorURI").create(y,g),z=a&&new(l||(l=b("URI")))(a).addQueryData("actor_id",g));if(!z)return m.jsx(b("UFI2ActionLink.react"),{linkClassName:f,children:function(a){a=a.className;return m.jsx(o,{className:a,href:y,inverse:i,onClick:function(){return c.$7()},openDialogOnMount:s||t,rel:x})}});var A={isLoading:q,onClick:this.$15,onFocus:this.$14,onMouseDown:this.$17,onMouseOver:this.$18,onMouseUp:this.$16,openDialogOnMount:s||t},B=z.getQueryData();return m.jsx(b("UFI2ActionLink.react"),{linkClassName:f,children:function(a){a=a.className;return m.jsx("span",{className:b("joinClasses")("_1j6m",e),children:z&&p?m.jsx(m.Suspense,{fallback:m.jsx(o,babelHelpers["extends"]({},A,{className:a,inverse:i})),children:m.jsx(n,{className:"_6800",endpoint:z.getPath(),endpointData:B,focusOnInit:k,onHide:c.$8,onShow:c.$6,openOnInit:u||c.state.openAfterPagePostInterceptionConfirmed,children:m.jsx(o,{className:a,inverse:i,onClick:b("qex")._("1087397")?function(){return c.$13(B)}:function(){return c.$7()},onMouseUp:c.$12})})}):m.jsx(o,babelHelpers["extends"]({},A,{className:a,inverse:i}))})}})};return c}(m.Component);c.displayName="UFI2ShareActionLink";var o=function(c){babelHelpers.inheritsLoose(a,c);function a(){var a,b;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(a=b=c.call.apply(c,[this].concat(e))||this,b.$1=null,b.$2=function(a){b.$1=a},b.$3=function(a){var c=b.props.onClick;c&&(a.preventDefault(),c(a))},a)||babelHelpers.assertThisInitialized(b)}var d=a.prototype;d.componentDidMount=function(){var a=this.props.openDialogOnMount;a===!0&&this.$1&&this.$1.click()};d.render=function(){var a=this.props,c=a.className,d=a.href,e=a.inverse,f=a.isLoading,g=a.onFocus,i=a.onMouseDown,j=a.onMouseOver,k=a.onMouseUp;a=a.rel;d=d&&!d.isEmpty()?d.getUnqualifiedURI():"#";var l=b("CurrentUser").isWorkUser()?h._("\u3053\u306e\u30ea\u30f3\u30af\u3092\u540c\u50da\u306b\u9001\u4fe1\u3001\u307e\u305f\u306f\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u306b\u6295\u7a3f\u3057\u307e\u3059\u3002"):h._("\u53cb\u9054\u306b\u9001\u4fe1\u3059\u308b\u304b\u3001\u3042\u306a\u305f\u306e\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u306b\u6295\u7a3f\u3057\u307e\u3059\u3002"),n='{ "tn": "'+b("TrackingNodes").encodeTN(b("TrackingNodes").types.SHARE_LINK)+'", "type": 25 }';f=f===!0?m.jsx(b("XUISpinner.react"),{className:"_2nj6"}):null;f={children:m.jsxs(m.Fragment,{children:[h._("\u30b7\u30a7\u30a2\u3059\u308b"),f]}),className:b("joinClasses")((e?"_6r37":"")+" _2nj7",c),"data-ft":n,href:d.toString(),onClick:this.$3,onFocus:g,onMouseDown:i,onMouseOver:j,onMouseUp:k,ref:this.$2,rel:a,role:"button",tabIndex:0,title:l};if(a==="dialog"){e=babelHelpers["extends"]({},f,{rel:a});return m.jsx(b("UFI2PrimerDialogWrapper.react"),{Component:b("UFI2LinkWrapper.react"),props:e})}return m.jsx("a",babelHelpers["extends"]({},f))};return a}(m.Component);e.exports=a(c,{feedback:j!==void 0?j:j=b("UFI2ShareActionLink_feedback.graphql"),shareableConfig:k!==void 0?k:k=b("UFI2ShareActionLink_shareableConfig.graphql")})}),null);
__d("UFI2ActorSelector.react",["cx","BizSiteIdentifier.brands","JSResource","PageVoiceDropdownSelector.react","React","Run","UFI2CometRelayCreateFragmentContainer","UFI2NUXConfig","UFIODSLogger","emptyFunction","isEmpty","joinClasses","lazyLoadComponent","UFI2ActorSelector_feedback.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var k=b("lazyLoadComponent")(b("JSResource")("UFI2ActorSelectorNUX.react").__setRef("UFI2ActorSelector.react")),l=!1;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var d,e;for(var f=arguments.length,g=new Array(f),h=0;h<f;h++)g[h]=arguments[h];return(d=e=a.call.apply(a,[this].concat(g))||this,e.root=j.createRef(),e.state=c.getDerivedStateFromProps(e.props),e.$1=function(){return e.setState({showNUX:!1})},e.$2=function(a){b("UFIODSLogger").bump("actor_selector.on_change","relay"),e.props.onActorChange(a.value)},d)||babelHelpers.assertThisInitialized(e)}c.getDerivedStateFromProps=function(a,b){var c,d;a=a.feedback;c=(c=(c=(c=a.viewer_actor)==null?void 0:c.id)!=null?c:(c=a.account_actor)==null?void 0:c.id)!=null?c:"";if(!a.can_see_voice_switcher)return{actorData:{},selectedActorID:c,showNUX:Boolean(b&&b.showNUX),userID:c};d=(d=(d=a.voice_switcher_actors)==null?void 0:d.nodes)!=null?d:[];var e={};d.forEach(function(a){var b=a.id;if(b){e[b]={name:a.name,thumbSrc:(b=a.profile_picture)==null?void 0:b.uri}}});a=(d=a.account_actor)==null?void 0:d.id;(a==null||!(a in e))&&(a=c);return{actorData:e,selectedActorID:c,showNUX:Boolean(b&&b.showNUX),userID:a}};var d=c.prototype;d.componentDidMount=function(){var a=this;b("UFIODSLogger").bump("actor_selector.component_did_mount","relay");!l&&b("UFI2NUXConfig").shouldShowActorSelectorNUX&&(l=!0,b("Run").onAfterLoad(function(){a.setState({showNUX:!0})}))};d.render=function(){var a=this,c=this.state,d=c.actorData,e=c.selectedActorID;c=c.userID;return(i||(i=b("isEmpty")))(d)||!d[e]?null:j.jsxs("div",{className:b("joinClasses")(this.props.className,"_29ak"),ref:this.root,children:[j.jsx(b("PageVoiceDropdownSelector.react"),{disabled:!1,onChange:this.$2,onClick:b("emptyFunction"),pages:d,searchBarVisible:!0,selectedActorID:e,showBusinessPages:!1,showPersonalPagesInRoot:!b("BizSiteIdentifier.brands").isBizSite(),suppressed:!0,user:d[c]}),this.state.showNUX?j.jsx(j.Suspense,{fallback:null,children:j.jsx(k,{contextRef:function(){return a.root.current},feedback:this.props.feedback,onClose:this.$1})}):null]})};return c}(j.Component);e.exports=a(c,{feedback:h!==void 0?h:h=b("UFI2ActorSelector_feedback.graphql")})}),null);
__d("UFI2AddCommentLink.react",["cx","fbt","React","TrackingNodes","UFI2AbstractButtonWrapper.react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");function a(a){var c=a.label;c=c===void 0?h._("\u30b3\u30e1\u30f3\u30c8\u3059\u308b\u2026"):c;a=a.onClick;return i.jsx("div",{className:"_694w","data-testid":void 0,children:i.jsx(b("UFI2AbstractButtonWrapper.react"),{className:"_694x","data-ft":b("TrackingNodes").getTrackingInfo(b("TrackingNodes").types.COMMENT_LINK),"data-testid":void 0,href:"#",label:c,onClick:a,role:"button"})})}e.exports=a}),null);
__d("UFI2CommentDefaultLayout.react",["cx","React"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){a=a.childrenForLayout;var b=a.actionLinks,c=a.firstContentElement,d=a.menu;a=a.otherContentElements;return h.jsxs(h.Fragment,{children:[h.jsxs("div",{children:[h.jsx("div",{className:"_6c7i",children:c}),d!=null&&h.jsx("div",{className:"_6c7j",children:d})]}),a.length>0&&h.jsx("div",{className:"_4eeo",children:a}),b]})}e.exports=a}),null);
__d("UFI2CommentRow.react",["cx","fbt","requireDeferred","FlexibleBlock.react","Image.react","React","RelayFBMatchContainer","UFI2CometRelayCreateFragmentContainer","UFI2ProfileLinkDynamic.react","UFI2SilhouetteConfig","URI","deferredLoadComponent","joinClasses","UFI2CommentRow_actor.graphql","UFI2CommentRow_comment.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var m=b("deferredLoadComponent")(b("requireDeferred")("UFI2ActorPresenceProvider.react"));function a(a){var c=a.actor,d=a.children,e=a.comment,f=a.depth,g=a.displayPresence;g=g===void 0?!1:g;var i=a.isComposer;i=i===void 0?!1:i;var j=a.onAvatarClick;a.relay;var n=a.showWarning;n=n===void 0?!1:n;var o=a.root;a=babelHelpers.objectWithoutPropertiesLoose(a,["actor","children","comment","depth","displayPresence","isComposer","onAvatarClick","relay","showWarning","root"]);var p=null;if(c){var q;q=f===0?(q=(q=c.profile_picture_depth_0)==null?void 0:q.uri)!=null?q:b("UFI2SilhouetteConfig").neutralSilhouette32:(q=(q=c.profile_picture_depth_1_legacy)==null?void 0:q.uri)!=null?q:b("UFI2SilhouetteConfig").neutralSilhouette20;var r=c.id;q=l.jsxs(l.Fragment,{children:[l.jsx(b("Image.react"),{alt:c.name,className:"_3me-"+(f===0?" _3mf1":"")+(f===1?" _3mf2":""),src:q}),g&&r!=null?l.jsx(l.Suspense,{fallback:l.jsx("span",{}),children:l.jsx(m,{actorID:r,children:function(a){return a&&l.jsx("span",{className:"_6bi7",children:l.jsx("span",{className:"accessible_elem",children:h._("\u30aa\u30f3\u30e9\u30a4\u30f3\u4e2d")})})}})}):null]});g=b("joinClasses")((n?"_2nvx":"")+" _3mf5"+(f===0?" _3mg0":"")+(f===1?" _3mg1":""));n=new(k||(k=b("URI")))(c.www_url);(e==null?void 0:e.id)!=null&&n.addQueryData({comment_id:e.id});p=r!=null&&c.www_url!=null?l.jsx(b("UFI2ProfileLinkDynamic.react"),{"aria-hidden":!0,className:g,href:String(n),tabIndex:-1,uid:r,children:q}):l.jsx("span",{"aria-hidden":!0,className:g,onClick:j,children:q})}c=i?{}:{"aria-label":f===0?h._("\u30b3\u30e1\u30f3\u30c8"):h._("\u30b3\u30e1\u30f3\u30c8\u306b\u8fd4\u4fe1"),role:"article"};return l.jsxs(l.Fragment,{children:[l.jsx(l.Suspense,{fallback:null,children:l.jsx(b("RelayFBMatchContainer"),{match:e==null?void 0:e.sub_reply_parent_preview_context})}),l.jsx(l.Suspense,{fallback:null,children:l.jsx(b("RelayFBMatchContainer"),{match:e==null?void 0:e.sub_reply_parent_above_comment_author_context})}),l.jsx(b("FlexibleBlock.react"),babelHelpers["extends"]({root:o},c,a,{flex:b("FlexibleBlock.react").FLEX.right,left:p,right:d}))]})}a.displayName="UFI2CommentRow";e.exports=c(a,{actor:i!==void 0?i:i=b("UFI2CommentRow_actor.graphql"),comment:j!==void 0?j:j=b("UFI2CommentRow_comment.graphql")})}),null);
__d("UFI2CommentTopReactionsWrapper.react",["cx","requireCond","CSS","DOMIntersection","React","cr:1009153","UFI2CometRelayCreateFragmentContainer","injectSubscriptionsHandler.react","intersectionObserverEntryIsIntersecting","observeIntersection","queryThenMutateDOM","UFI2CommentTopReactionsWrapper_feedback.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("DOMIntersection").isIntersecting,j=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$1=null,d.$2=null,d.$3=!1,d.$4=null,d.$5=null,d.$6=function(a){d.$1=a,a==null&&(d.$5=null),d.$7()},d.$8=function(a){d.$4!=a&&(d.$4=a,d.$2!=null&&(d.$2.remove(),d.$2=null),a&&(d.$2=b("observeIntersection")(a,function(a){d.$3=b("intersectionObserverEntryIsIntersecting")(a),d.$7()},{rootMargin:"1000px"}),d.props.subscriptionsHandler.addSubscriptions(d.$2)))},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.$7=function(){var a=this,c=this.props.avoidableElementBorderingBottom.current,d=this.$1,e=this.$4;if(this.$5!==null||!c||!d||!e||!this.$3)return;var f=!1;this.props.subscriptionsHandler.addSubscriptions(b("queryThenMutateDOM")(function(){f=i(c,e)},function(){f!==a.$5&&(f===!0&&b("CSS").addClass(d,"_680_"),b("CSS").removeClass(d,"invisible_elem"),a.$5=f,a.$2!=null&&(a.$2.remove(),a.$2=null))},"UFI2CommentTopReactionsWrapper_"+(this.props.feedback.id||"UNKNOWN")))};d.componentDidUpdate=function(){this.$7()};d.render=function(){var a,c=this.props,d=c.children;c=c.feedback;a=c.should_show_top_reactions!=null?c.should_show_top_reactions:Boolean((a=c.reactors)==null?void 0:a.count);return j.jsxs("div",{className:"_680y",children:[j.jsx("div",{className:"_6cuy",children:d}),a?j.jsx("div",{className:"_6cuq invisible_elem",ref:this.$6,children:j.jsx(b("cr:1009153"),{feedback:c,rootRef:this.$8})}):null]})};return c}(j.Component);c.displayName="UFI2CommentTopReactionsWrapper";e.exports=a(b("injectSubscriptionsHandler.react")(c),{feedback:h!==void 0?h:h=b("UFI2CommentTopReactionsWrapper_feedback.graphql")})}),null);
__d("UFI2VPVDLoggedComponent.react",["cx","invariant","Banzai","Parent","React","UFI2ActiveLayerMonitor","UFI2UserActivityMonitor","clearInterval","collectDataAttributes","containsNode","getFBAlphaConsoleSize","getSharedStopwatch","gkx","injectSubscriptionsHandler.react","isIntersectionObserverEntryVPVDVisible","observeIntersection","onAttachedToDOM","setIntervalAcrossTransitions"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React"),j=[0,.05,.1,.15,.2,.25,.3,.35,.4,.45,.5,.55,.6,.65,.7,.75,.8,.85,.9,.95,1];a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$1="HIDDEN",d.$4=!1,d.$7=b("UFI2UserActivityMonitor").getActivityState(),d.$8="div",d.$11=function(a,c){return d.$5?b("collectDataAttributes")(d.$5,a,c):null},d.$12=function(a){d.$4=b("containsNode")(a,d.$5),d.$13()},d.$14=function(a){d.$1=b("isIntersectionObserverEntryVPVDVisible")(a)?"VISIBLE":"HIDDEN",d.$13()},d.$15=function(a){a==null||a instanceof HTMLDivElement||h(0,5279),d.$5!==a&&(d.$2!=null&&(d.$2.remove(),delete d.$2),d.$3!=null&&(d.$3.remove(),delete d.$3)),a&&(b("onAttachedToDOM")?d.$2=b("onAttachedToDOM")(a,function(){d.$3&&d.$3.remove(),d.$16(a)}):d.$16(a)),d.$5=a},d.$17=function(a){d.$7=a,d.$13()},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.$13=function(){var a=this.$6;if(this.$1==="HIDDEN"||this.$4===!1||this.$7==="INACTIVE"){if(a==null)return;if(!a.isSharedWithOtherClients()){var c=a.getMilliseconds(),d=a.getStartTime();this.props.onLogDuration(d,c,this.$11)}a.dispose();this.$6=null}else a==null&&(this.$6=a=b("getSharedStopwatch")(this.props.contentIdentifier)),a.start()};d.$16=function(a){this.$4=b("containsNode")(b("UFI2ActiveLayerMonitor").getLastActiveLayer(),a);var c=b("Parent").byClass(a,"uiScrollableAreaWrap"),d=c==null?"-44px 0px -"+b("getFBAlphaConsoleSize")().height+"px 0px":"0px";this.$3=b("observeIntersection")(a,this.$14,{root:c instanceof HTMLElement?c:null,rootMargin:d,threshold:j})};d.componentDidMount=function(){var a=this;this.props.subscriptionsHandler.addSubscriptions(b("Banzai").subscribe(b("Banzai").SHUTDOWN,function(){a.$1="HIDDEN",a.$13()}),b("UFI2UserActivityMonitor").subscribe(this.$17),b("UFI2ActiveLayerMonitor").subscribe(this.$12));var c=this.props.domAttachmentEventEmitter;c&&this.props.subscriptionsHandler.addSubscriptions(c.addListener("inserted",function(){var b=a.$5;if(b==null)return;a.$2&&(a.$2.remove(),delete a.$2);a.$3&&a.$3.remove();a.$16(b)}))};d.componentWillUnmount=function(){this.$1="HIDDEN",this.$2&&(this.$2.remove(),delete this.$2),this.$3&&(this.$3.remove(),delete this.$3),this.$13()};d.render=function(){var a=this.$8;return i.jsx(a,{ref:this.$15,children:this.props.children})};return c}(i.Component);e.exports=b("injectSubscriptionsHandler.react")(a)}),null);
__d("UFI2Comment.react",["cx","requireCond","ActorPresenceGatingConfig","CometBackupPlaceholder.react","CometPlaceholder.react","cr:840776","FBLogger","React","RelayFBMatchContainer","RelayModern","SiteData","SubscriptionsHandler","TrackingNodes","UFI2CommentActionLinksDynamic.react","UFI2CommentAttachmentsDynamic.react","UFI2CommentBodyDynamic.react","UFI2CommentDefaultLayout.react","UFI2CommentGroupContext","UFI2CommentMenu.react","UFI2CommentRow.react","UFI2CommentTopReactionsWrapper.react","UFI2Config","UFI2ErrorBoundary.react","UFI2SurfaceContainerContext","UFI2VPVDLoggedComponent.react","UFICommonInteractionEvents","UFICommonInteractionLogger","UFIODSLogger","getElementRect","getViewportDimensions","gkx","isCommentFresh","joinClasses","makeUFI2HighlightedComment","nullthrows","UFI2Comment_comment.graphql","UFI2Comment_feedback.graphql","UFI2CommentRefetchQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=b("React");a=b("RelayModern").createRefetchContainer;b("RelayModern").graphql;var l=b("SiteData").pr,m=b("makeUFI2HighlightedComment")(b("UFI2CommentBodyDynamic.react")),n=b("makeUFI2HighlightedComment")(b("UFI2CommentRow.react"));function o(a){var c=a.attached_story,d=a.attachments;a=a.id;if(c!=null)return!b("UFI2Config").shouldUseSimplifiedAttachments;if(d==null||d.length===0)return!1;c=d[0].style_list;if(c==null){b("FBLogger")("ufi2").addMetadata("UFI","COMMENT_ID",a||"UNKNOWN").mustfix("Encountered a null `style_list` property while trying to determine if a comment attachment is renderable. Investigate why.");return!1}if(c.includes("COMMENT_MESSAGE_INFO"))return!1;if(b("UFI2Config").shouldUseSimplifiedAttachments)for(var d=c,a=Array.isArray(d),c=0,d=a?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(a){if(c>=d.length)break;e=d[c++]}else{c=d.next();if(c.done)break;e=c.value}e=e;if(b("UFI2Config").attachmentStylesToSimplify.includes(e))return!1}return!0}c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.context=null,d.state={isFetchingTranslation:!1,isHovered:!1},d.$1=k.createRef(),d.$2=null,d.$3=new(b("SubscriptionsHandler"))(),d.$5=function(){var a=d.props.comment;return a.id?"`UFI2Comment` experienced a fatal error rendering a comment with ID "+a.id+".":"`UFI2Comment` experienced a fatal error rendering a comment without ID."},d.$6=function(a){d.setState({isHovered:!0})},d.$7=function(a){d.setState({isHovered:!1})},d.$8=function(a){d.state.isHovered||d.setState({isHovered:!0})},d.$9=function(){var a=d.props,c=a.comment,e=a.onTranslated,f=a.onUntranslated,g=(a=c.preferred_body)==null?void 0:a.translation_type;d.setState(function(a){return{isFetchingTranslation:!0}},function(){var a,h,i=g==="MACHINE_TRANSLATION"?"ORIGINAL":"MACHINE_TRANSLATION";a=(a=d.context)==null?void 0:a.isComet;d.props.relay.refetch(babelHelpers["extends"]({},b("nullthrows")((h=d.context)==null?void 0:h.containerMapping),{id:c.id,isComet:a,scale:l,translationType:i,useDefaultActor:d.props.useDefaultActor}),null,function(){i==="MACHINE_TRANSLATION"?e&&e():f&&f(),d.setState({isFetchingTranslation:!1})})})},d.$11=!1,d.$12=function(a){d.props.isHighlighted&&!d.$11&&a!==null&&(d.$11=!0,d.props.onDeeplinkToComment&&d.props.onDeeplinkToComment(a)),d.$2=a},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.$4=function(a){if(!this.props.comment||!this.props.comment.feedback||this.props.comment.optimistic_action||this.props.comment.optimistic_error)return a;var c=this.props.comment.feedback,d=a.slice(0,-1);a=a.slice(-1);c=k.jsx(b("UFI2CommentTopReactionsWrapper.react"),{avoidableElementBorderingBottom:this.$1,feedback:c,children:a});return k.Children.toArray([].concat(d,[c]))};d.$10=function(){var a;if(((a=this.props.comment)==null?void 0:(a=a.preferred_body)==null?void 0:a.translation_type)==="MACHINE_TRANSLATION"||this.state.isFetchingTranslation===!0)return;this.$9()};d.componentDidMount=function(){var a=this.props,c=a.comment,d=a.depth,e=a.feedback,f=a.feedbackSource;a=a.translationRequested;a===!0&&this.$10();f===1&&(d===0?b("UFIODSLogger").bump("comment.newsfeed.toplevel.componentDidMount","relay"):b("UFIODSLogger").bump("comment.newsfeed.replies.componentDidMount","relay"));if(c.client_id&&(c.optimistic_action==="ADD"||c.optimistic_action==="EDIT")){a=c.client_id;b("UFICommonInteractionLogger").endInteraction(a+(c.optimistic_action==="ADD"?b("UFICommonInteractionEvents").UFI2_OPTIMISTIC_COMMENT:b("UFICommonInteractionEvents").UFI2_OPTIMISTIC_COMMENT_EDIT));c.optimistic_error&&b("UFICommonInteractionLogger").endInteraction(a+(c.optimistic_action==="ADD"?b("UFICommonInteractionEvents").UFI2_PERSISTED_COMMENT:b("UFICommonInteractionEvents").UFI2_PERSISTED_COMMENT_EDIT),!0);if(this.$2!=null&&b("gkx")("1347892")){f=b("getElementRect")(this.$2);d=b("getViewportDimensions")();a=f.height>0&&d.height>0&&f.bottom>0&&f.top<d.height;if(!a){b("FBLogger")("ufi2").addMetadata("UFI","FEEDBACK_TARGET_ID",(f=e.id)!=null?f:"UNKNOWN").warn("Optimistic comment was rendered outside of the viewport on %s!",c.optimistic_action)}}}};d.componentDidUpdate=function(a){a.translationRequested!==this.props.translationRequested&&this.props.translationRequested===!0&&this.$10();if(this.props.comment.client_id&&!this.props.comment.optimistic_action&&!this.props.comment.optimistic_error&&(a.comment.optimistic_action==="ADD"||a.comment.optimistic_action==="EDIT")){a=this.props.comment.client_id+(a.comment.optimistic_action==="ADD"?b("UFICommonInteractionEvents").UFI2_PERSISTED_COMMENT:b("UFICommonInteractionEvents").UFI2_PERSISTED_COMMENT_EDIT);b("UFICommonInteractionLogger").endInteraction(a)}};d.componentWillUnmount=function(){this.$3.release()};d.$13=function(a){a='{"tn":"'+b("TrackingNodes").encodeTN(b("TrackingNodes").types.COMMENT)+'","ct":"'+a+'"}';return a};d.render=function(){var a,c=this.props,d=c.Selectors,e=c.className,f=c.comment,g=c.domAttachmentEventEmitter,h=c.feedback,i=c.depth,j=c.feedbackSource,l=c.isCommentFresh,p=c.isHighlighted,q=c.listState,r=c.logCommentViewportViewDuration,s=c.onReplyToComment,t=c.relay,u=c.totalCount;c=c.showMenu;var v=f.author,w=f.id,x=f.www_layout_renderer;if(!v){b("FBLogger")("ufi2").addMetadata("UFI","COMMENT_ID",w||"UNKNOWN").mustfix("UFI2Comment: Cant render comment without author");return null}if(!w){b("FBLogger")("ufi2").mustfix("UFI2Comment: Cant render comment without an id");return null}a=(a=this.props.feedback.viewer_actor)==null?void 0:a.id;l=l(f);var y=d.isCommentHiddenByViewer({commentID:w,depth:i,state:q}),z=p&&!f.preferred_body;p=p?m:b("UFI2CommentBodyDynamic.react");z=z?n:b("UFI2CommentRow.react");p=k.jsx(p,{comment:f,feedback:h,isHighlighted:this.props.isHighlighted});var A=o(f)&&k.jsx(b("CometPlaceholder.react"),{fallback:b("cr:840776")!=null?k.jsx("div",{style:{paddingLeft:10},children:k.jsx(b("cr:840776"),{})}):null,children:k.jsx(b("UFI2CommentAttachmentsDynamic.react"),{actorID:a,comment:f,feedbackSource:this.props.feedbackSource,storyRenderLocation:this.props.storyRenderLocation})});p=k.Children.toArray([p,A]);A=f.work_answered_event_comment_renderer!=null&&k.jsx(b("CometPlaceholder.react"),{fallback:null,children:k.jsx(b("RelayFBMatchContainer"),{match:f.work_answered_event_comment_renderer,props:{data:f}})});d=k.jsx(b("UFI2CommentActionLinksDynamic.react"),{Selectors:d,actionLinksListRef:this.$1,comment:f,depth:i,environment:t&&t.environment,feedback:h,feedbackSource:j,handleOnReply:s,handleTranslationClick:this.$9,hasRemovableAttachment:o(f)&&this.props.comment.can_viewer_disable_preview===!0,isFetchingTranslation:this.state.isFetchingTranslation,listState:q,totalCount:u,trackingInfo:b("TrackingNodes").getTrackingInfo(b("TrackingNodes").types.COMMENT),useDefaultActor:this.props.useDefaultActor});t=A?k.jsxs(k.Fragment,{children:[d,A]}):d;j=c?k.jsx(b("CometPlaceholder.react"),{fallback:null,children:k.jsx(b("UFI2CommentMenu.react"),{comment:f,feedback:this.props.feedback,feedbackSource:this.props.feedbackSource,onEdit:this.props.onEdit,topLevelFeedbackId:(h=this.props.topLevelFeedbackID)!=null?h:null,visible:this.state.isHovered&&!f.optimistic_error})}):null;s=this.$4(p);q=s[0];u=s.slice(1);A=k.jsx(b("UFI2CommentDefaultLayout.react"),{childrenForLayout:{actionLinks:t,firstContentElement:q,menu:j,otherContentElements:u}});d=k.jsx(b("UFI2ErrorBoundary.react"),{getFBLoggerErrorMessage:this.$5,children:k.jsx(z,{actor:v,className:b("joinClasses")("_4eek"+(y?" aero":"")+(l?" _8m-h":""),e),comment:f,"data-ft":this.$13(w),"data-testid":void 0,depth:i,displayPresence:v.id!==a&&b("ActorPresenceGatingConfig").www_comment_presence_enabled,onMouseEnter:this.$6,onMouseLeave:this.$7,onMouseMove:this.$8,root:this.$12,showWarning:Boolean(f.optimistic_error),children:k.jsx(b("CometBackupPlaceholder.react"),{fallback:A,children:k.jsx(b("RelayFBMatchContainer"),{fallback:A,match:x,props:{childrenForLayout:{actionLinks:t,firstContentElement:q,menu:j,otherContentElements:u}}})})})});r!=null&&(d=k.jsx(b("UFI2VPVDLoggedComponent.react"),{contentIdentifier:w,domAttachmentEventEmitter:g,onLogDuration:r,children:d}));h=f==null?void 0:(c=f.group_comment_info)==null?void 0:c.group_id;s=f==null?void 0:(p=f.group_comment_info)==null?void 0:p.is_author_with_member_profile_legacy;if(h!=null&&s!=null){y={authorHasGroupMemberProfile:s,authorType:f==null?void 0:(z=f.author)==null?void 0:z.__typename,groupID:h};d=k.jsx(b("UFI2CommentGroupContext").Provider,{value:y,children:d})}return d};return c}(k.PureComponent);c.displayName="UFI2Comment";c.defaultProps={isCommentFresh:b("isCommentFresh"),showMenu:!0};c.contextType=b("UFI2SurfaceContainerContext");e.exports=a(c,{comment:h!==void 0?h:h=b("UFI2Comment_comment.graphql"),feedback:i!==void 0?i:i=b("UFI2Comment_feedback.graphql")},j!==void 0?j:j=b("UFI2CommentRefetchQuery.graphql"))}),null);
__d("UFI2CommentActorLink.react",["cx","React","UFI2CometRelayCreateFragmentContainer","UFI2CommentActorLinkBadgesDynamic.react","UFI2CommentActorNameDynamic.react","joinClasses","UFI2CommentActorLink_comment.graphql","UFI2CommentActorLink_feedback.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function a(a){var c=a.className,d=a.comment;a=a.feedback;var e=d.author;return!e?null:j.jsxs(j.Fragment,{children:[j.jsx(b("UFI2CommentActorNameDynamic.react"),{author:e,className:b("joinClasses")(d.is_author_weak_reference?"_2so8":"",c),comment:d,feedback:a}),j.jsx(b("UFI2CommentActorLinkBadgesDynamic.react"),{comment:d,feedback:a})]})}a.displayName="UFI2CommentActorLink";e.exports=c(a,{comment:h!==void 0?h:h=b("UFI2CommentActorLink_comment.graphql"),feedback:i!==void 0?i:i=b("UFI2CommentActorLink_feedback.graphql")})}),null);
__d("UFI2CommentActorName.react",["React","UFI2CometRelayCreateFragmentContainer","UFI2ProfileLinkDynamic.react","URI","UFI2CommentActorName_author.graphql","UFI2CommentActorName_comment.graphql","UFI2CommentActorName_feedback.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h,i,j,k=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function a(a){var c=a.author,d=a.className,e=a.comment;a=a.feedback;a=(a=a==null?void 0:(a=a.associated_group)==null?void 0:a.id)!=null?a:" ";var f=c.id;if(f!=null&&c.url!=null){var g=new(j||(j=b("URI")))(c.url);(e==null?void 0:e.id)!=null&&g.addQueryData({comment_id:e.id});return k.jsx(b("UFI2ProfileLinkDynamic.react"),{className:d,hovercardDirectedTargetId:a,href:String(g),uid:f,children:c.name})}return k.jsx("span",{className:d,children:c.name})}e.exports=c(a,{author:g!==void 0?g:g=b("UFI2CommentActorName_author.graphql"),comment:h!==void 0?h:h=b("UFI2CommentActorName_comment.graphql"),feedback:i!==void 0?i:i=b("UFI2CommentActorName_feedback.graphql")})}),null);
__d("UFI2CommentActorVerifiedBadge.react",["cx","React","UFI2CometRelayCreateFragmentContainer","UFI2CommentActorVerifiedBadge_comment.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function a(a){a=a.comment.author;return!a||!a.is_verified?null:i.jsx("span",{className:"_5dzy _5dz- _56_f"})}e.exports=c(a,{comment:h!==void 0?h:h=b("UFI2CommentActorVerifiedBadge_comment.graphql")})}),null);
__d("UFI2VideoTimeIndexLink.react",["requireDeferred","FBLogger","Link.react","React","scrollIntoView"],(function(a,b,c,d,e,f){"use strict";var g=b("React");c=b("React");var h=c.useState,i=b("requireDeferred")("UFIVideoPlayerRegistry");function a(a){var c=h(i.getModuleIfRequired()),d=c[0],e=c[1];d==null&&i.onReady(function(a){e(a)});return d==null?a.text:g.jsx(b("Link.react"),{href:"#",onClick:function(c){c.preventDefault();c=d.getAvailableVideoPlayerControllerForElement(c.target,a.videoId);if(c==null){b("FBLogger")("video").warn("Failed to find a video player controller when clicking on a video time index link.");return}["finished","paused","playing","ready"].includes(c.getState())&&(c.pause("seek_initiated"),c.seek(a.timeIndex),c.play("seek_initiated"),b("scrollIntoView")(c.getRootNode(),{behavior:"smooth",verticalAlign:"center"}))},children:a.text})}e.exports=a}),null);
__d("UFI2CommentBodyTextWithEntities.react",["cx","Locale","React","TruncatedTextWithEntities.react","UFI2CometRelayCreateFragmentContainer","UFI2CommentBodyTextWithEntitiesConfig","UnicodeUtils","URITruncator","interpolateUFI2TextWithRange","nullthrows","UFI2CommentBodyTextWithEntities_comment.graphql","UFI2CommentBodyTextWithEntities_textWithEntities.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function l(a,b){return a.offset-b.offset}function m(a){return[].concat(a.ranges,a.delight_ranges).filter(function(a){return a!=null}).sort(l)}function n(a,c){switch(c.__typename){case"EntityAtRange":c=b("nullthrows")(c.entity,"Expected an `entity` property to be present on a range of type `EntityAtRange`.");switch(c.__typename){case"ExternalUrl":c=b("URITruncator")(a,b("UFI2CommentBodyTextWithEntitiesConfig").uriTruncationThreshold);return a.length-c.length;default:return 0}default:return 0}}function o(a){var c=0,d=0,e=a.text;a=m(a);var f=a.length;for(var g=0;g<f;g++){var h=a[g],i=h?parseFloat(h.offset):0,k=h?parseFloat(h.length):0;if(i<c)continue;var l=e==null?"":(j||(j=b("UnicodeUtils"))).substr(e,i,k);d+=n(l,h);c=i+k}return d}function a(a){var c=!a.isHighlighted&&!a.comment.is_locally_composed,d=c?o(a.textWithEntities):0;return k.jsx(b("TruncatedTextWithEntities.react"),{allowSeeMoreLinebreakOnLongWords:!0,className:"_3l3x",dir:a.dir,interpolator:function(a,c){return b("interpolateUFI2TextWithRange")(a,c)},maxLength:c?420+d:null,maxLines:c?3:null,ranges:a.textWithEntities.ranges,renderEmoji:!0,renderEmoticons:b("UFI2CommentBodyTextWithEntitiesConfig").renderEmoticons,showEmojisStandalone:Boolean(a.isStandaloneEmojiComment),text:b("nullthrows")(a.textWithEntities.text,"Tried to render a comment, but the text of the comment was `null` or `undefined`."),textDelightRanges:a.textWithEntities.delight_ranges,truncationPercent:.6})}a.displayName="UFI2CommentBodyTextWithEntities";a.defaultProps={dir:b("Locale").isRTL()?"rtl":"ltr"};e.exports=c(a,{comment:h!==void 0?h:h=b("UFI2CommentBodyTextWithEntities_comment.graphql"),textWithEntities:i!==void 0?i:i=b("UFI2CommentBodyTextWithEntities_textWithEntities.graphql")})}),null);
__d("UFI2CommentBodyStandaloneEmoji.react",["cx","React","TrackingNodes","UFI2CometRelayCreateFragmentContainer","UFI2CommentBodyTextWithEntities.react","joinClasses","UFI2CommentBodyStandaloneEmoji_comment.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function a(a){var c=a.className,d=a.comment;a=a.isHighlighted;return i.jsx("span",{className:b("joinClasses")((d.optimistic_error?"_4hfs":"")+" _4hft",c),"data-ft":b("TrackingNodes").getTrackingInfo(b("TrackingNodes").types.USER_MESSAGE),"data-testid":void 0,children:d.preferred_body?i.jsx(b("UFI2CommentBodyTextWithEntities.react"),{comment:d,isHighlighted:a,isStandaloneEmojiComment:!0,textWithEntities:d.preferred_body}):null})}a.displayName="UFI2CommentBodyStandaloneEmoji";e.exports=c(a,{comment:h!==void 0?h:h=b("UFI2CommentBodyStandaloneEmoji_comment.graphql")})}),null);
__d("UFI2CommentDisabledNotice.react",["cx","React","TextWithEntities.react","UFI2CometRelayCreateFragmentContainer","linkifyEntityRange","UFI2CommentDisabledNotice_feedback.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props.feedback;if(!a.comments_disabled_notice)return null;var c=a.comments_disabled_notice;c=i.jsx("div",{className:"_69g2",children:i.jsx(b("TextWithEntities.react"),{interpolator:b("linkifyEntityRange"),ranges:c.ranges,text:c.text})});return i.jsx("div",{className:(a.display_comments_count&&a.display_comments_count.count&&a.display_comments_count.count>0?"_2o30":"")+" _69g3",children:c})};return c}(i.Component);e.exports=a(c,{feedback:h!==void 0?h:h=b("UFI2CommentDisabledNotice_feedback.graphql")})}),null);
__d("UFI2CommentErrorFooter.react",["cx","errorCode","fbt","FBLogger","React","UFI2CometRelayCreateFragmentContainer","UFI2CreateCommentMutation","ifRequired","UFI2CommentErrorFooter_comment.graphql"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function l(a){return a===1446013?!1:!0}function a(a){var c=a.comment.id;if(!c){b("FBLogger")("ufi2").mustfix("UFI2CommentErrorFooter tried to render without a comment ID");return null}var d=i._("\u30b3\u30e1\u30f3\u30c8\u3092\u6295\u7a3f\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002"),e=null;switch(a.comment.optimistic_action){case"ADD":e=b("UFI2CreateCommentMutation").getRetryFn(c);break;case"EDIT":d=i._("\u30b3\u30e1\u30f3\u30c8\u3092\u7de8\u96c6\u3067\u304d\u307e\u305b\u3093\u3002");b("ifRequired")("UFI2EditCommentMutation",function(a){e=a.getRetryFn(c)},function(){b("FBLogger")("ufi2").addMetadata("UFI","COMMENT_ID",c||"UNKNOWN").mustfix("Edit mutation not present on edit error")});break;case"DELETE":d=i._("\u30b3\u30e1\u30f3\u30c8\u3092\u524a\u9664\u3067\u304d\u307e\u305b\u3093\u3002");break;default:d=i._("\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002"),b("FBLogger")("ufi2").addMetadata("UFI","COMMENT_ID",c||"UNKNOWN").warn("UFI2CommentErrorFooter no specified behavior for action `%s`.",a.comment.optimistic_action)}e||b("FBLogger")("ufi2").addMetadata("UFI","COMMENT_ID",c||"UNKNOWN").warn("No mutation retry handler for action `%s`.",a.comment.optimistic_action);return k.jsx("div",{className:"_1m2l","data-testid":void 0,children:e!=null&&l(a.comment.optimistic_error_code)?i._("{errorMessage}{retryLink}",[i._param("errorMessage",d),i._param("retryLink",k.jsx("a",{href:"#",onClick:e,role:"button",children:i._("\u3082\u3046\u4e00\u5ea6\u5b9f\u884c")}))]):d})}a.displayName="UFI2CommentErrorFooter";e.exports=c(a,{comment:j!==void 0?j:j=b("UFI2CommentErrorFooter_comment.graphql")})}),null);
__d("UFI2CommentPrivateReplyLink.react",["requireCond","React","UFI2CometRelayCreateFragmentContainer","UFI2CommentActionLinks.react","UFI2PrivateReplyLink.react","cr:1337144","UFI2CommentPrivateReplyLink_feedback.graphql"],(function(a,b,c,d,e,f){"use strict";var g,h=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var i=b("UFI2CommentActionLinks.react").UFI2CommentActionLinkItem;function a(a){var c=a.actorID,d=a.feedback,e=a.feedbackSource,f=a.pageID;a=a.seeResponseLabel;if(b("cr:1337144")!=null&&c!==f)return h.jsx(b("cr:1337144"),{WrapperComponent:function(a){a=a.children;return h.jsx(i,{children:a({className:""})},"pageAdminPrivateReplyContext")},feedback:d,feedbackSource:e,seeResponseLabel:a});else return h.jsx(b("UFI2PrivateReplyLink.react"),{WrapperComponent:function(a){a=a.children;return h.jsx(i,{children:a({className:""})},"pageAdminPrivateReplyContext")},feedback:d,feedbackSource:e,seeResponseLabel:a})}a.displayName="UFI2CommentPrivateReplyLink";d=c(a,{feedback:g!==void 0?g:g=b("UFI2CommentPrivateReplyLink_feedback.graphql")});e.exports=d}),null);
__d("UFI2CommentTopReactions.react",["cx","fbt","invariant","FBLogger","JSResource","React","UFI2AbstractButtonWrapper.react","UFI2CometRelayCreateFragmentContainer","UFI2PrimerDialogWrapper.react","UFI2Tooltip.react","UFIReactionIconImpl.react","UFIReactionsProfileBrowserUtils","getReactionKeyFromType","isNotOutlierReaction","lazyLoadComponent","nullthrows","UFI2CommentTopReactions_feedback.graphql"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var l=b("lazyLoadComponent")(b("JSResource")("UFI2CommentReactionIconTooltipContentRenderer.react").__setRef("UFI2CommentTopReactions.react"));c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.$1=function(a,c){a=(c=a.node)==null?void 0:c.reaction_type;a||i(0,2434);c=b("getReactionKeyFromType")(a);return k.jsx(b("UFIReactionIconImpl.react"),{className:"_1lg-",reaction:c},"UFIReactionIcon:"+c)};d.render=function(){var a,c=this,d=this.props,e=d.feedback;d=d.relay;var f=e.top_reactions,g=e.reactors;g=g==null?void 0:g.count_reduced;f=f==null?void 0:f.edges;f!=null||i(0,2435);if(f.length===0)return null;a=(a=(a=e.viewer_actor)==null?void 0:a.id)!=null?a:"0";if(g==null){b("FBLogger")("ufi2").addMetadata("UFI","FEEDBACK_TARGET_ID",e.id||"UNKNOWN").mustfix("UFI2CommentTopReactions: Expected a reaction count");return null}f=f.filter(b("isNotOutlierReaction")(e)).slice(0,3);a=b("UFIReactionsProfileBrowserUtils").getPrimerProps({actorID:a,feedbackTargetID:b("nullthrows")(e.id,"Failed to fetch an id for the GraphQL `feedback` field.")});a=k.jsx(b("UFI2PrimerDialogWrapper.react"),{Component:b("UFI2AbstractButtonWrapper.react"),props:babelHelpers["extends"]({},a,{"aria-label":h._("\u30ea\u30a2\u30af\u30b7\u30e7\u30f3\u3057\u305f\u4eba\u3092\u30c1\u30a7\u30c3\u30af"),className:"_1lh9 _1lha",label:k.jsxs(k.Fragment,{children:[f.map(function(a,b){return c.$1(a,b)}),k.jsx("span",{className:"_1lld",children:g},"count_reduced")]}),role:"button"})});return k.jsx("span",{className:"_1lh3",ref:this.props.rootRef,children:k.jsx(b("UFI2Tooltip.react"),{alignH:"center",className:"_1lh7","data-testid":void 0,environment:d.environment,tabIndex:-1,tooltipContentComponent:l,tooltipContentProps:{queryVariables:{feedbackTargetID:b("nullthrows")(e.id,"Failed to fetch an id for the GraphQL `feedback` field.")}},children:a})})};return c}(k.PureComponent);e.exports=a(c,{feedback:j!==void 0?j:j=b("UFI2CommentTopReactions_feedback.graphql")})}),null);
__d("UFI2CommentTranslateAllButton.react",["cx","fbt","React","UFI2LinkWrapper.react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");function a(a){return i.jsx(b("UFI2LinkWrapper.react"),{className:"_6srr",onClick:a.onClick,children:h._("\u3059\u3079\u3066\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u7ffb\u8a33")})}e.exports=a}),null);
__d("UFI2CommentsCount.react",["cx","fbt","invariant","FBLogger","JSResource","React","UFI2AbstractButtonWrapper.react","UFI2CometRelayCreateFragmentContainer","UFI2Tooltip.react","joinClasses","killswitch","lazyLoadComponent","UFI2CommentsCount_feedback.graphql"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var l=b("lazyLoadComponent")(b("JSResource")("UFI2CommentsCountTooltipContent.react").__setRef("UFI2CommentsCount.react"));c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.$1=function(a){var b=c.props.onClick;b&&(b(),a.type!=="press"&&a.preventDefault())},b)||babelHelpers.assertThisInitialized(c)}var d=c.prototype;d.render=function(){var a=this.props,c=a.className,d=a.feedback,e=a.relay;a=a.trackingInfo;var f=d.comment_count,g=d.i18n_comment_count;f=(f=f==null?void 0:f.total_count)!=null?f:0;if(f===0)return null;var j=d.url;if(j==null){var m;b("FBLogger")("ufi2").addMetadata("UFI","FEEDBACK_TARGET_ID",(m=d.id)!=null?m:"UNKNOWN").mustfix("UFI2CommentsCount: Expected feedback target to have a url")}m=j==null?"#":j;j=d.id;j!=null||i(0,478);a=k.jsx(b("UFI2AbstractButtonWrapper.react"),{className:"_3hg-","data-ft":a,"data-testid":void 0,href:m,label:(d=this.props.label)!=null?d:h._({"*":"\u30b3\u30e1\u30f3\u30c8{number}\u4ef6","_1":"\u30b3\u30e1\u30f3\u30c81\u4ef6"},[h._plural(f,"number",g)]),onClick:this.$1,preventLocalNavigation:!!this.$1,role:"button"});return!b("killswitch")("DISABLE_S204826_MITIGATION")?k.jsx("span",{className:c,children:a}):k.jsx(b("UFI2Tooltip.react"),{className:b("joinClasses")("_1whp",c),environment:e.environment,tooltipContentComponent:l,tooltipContentProps:{queryVariables:{feedbackTargetID:j}},children:a})};return c}(k.Component);c.displayName="UFI2CommentsCount";e.exports=a(c,{feedback:j!==void 0?j:j=b("UFI2CommentsCount_feedback.graphql")})}),null);
__d("UFI2CommentsListGetDerivedStateFromProps",["CometUFICommentListStateConfig","UFI2CommentsListState","nullthrows"],(function(a,b,c,d,e,f){"use strict";var g=b("UFI2CommentsListState").Selectors,h=b("UFI2CommentsListState").StateUpdaters;function i(a){var b=a.depth,c=a.feedback;a=a.topLevelFeedback;return b===0?Boolean(c.can_viewer_comment):a!=null&&a.can_viewer_comment===!0&&c!=null&&c.can_viewer_comment===!0}function a(a,c){var d=c.mirroredProps;c=c.listState;if(d===a)return{listState:c,mirroredProps:d};var e=d.connectionGeneration,f=d.feedback,k=d.isRefetchingConnection,l=d.topLevelFeedback;d=d.totalCount;var m=a.connectionGeneration,n=a.feedback,o=a.commentIDs,p=a.commentsByID,q=a.connectionPageInfo,r=a.depth,s=a.hiddenCommentIDs,t=a.isRefetchingConnection,u=a.topLevelFeedback,v=a.shouldRenderComposerPreemptively,w=a.totalCount,x=a,y=q.afterCount,z=q.beforeCount,A=q.hasNext,B=q.hasPrevious;q=q.pageSize;var C=c;C=h.setCommentsByID({args:{commentsByID:p,depth:r},state:C});if(r===0&&g.isListLoading({depth:r,state:C})){k=k===!0&&t===!1;k&&(C=h.receiveRefetchList({args:{afterCount:y,beforeCount:z,canViewerComment:i({depth:r,feedback:n,topLevelFeedback:u}),commentIDs:o,commentsByID:p,depth:r,hasNext:A,hasPrevious:B,hiddenCommentIDs:s,pageSize:q,shouldRenderComposerPreemptively:v,totalCount:w},state:C}));return{listState:C,mirroredProps:x}}if(m>e){C=j(x,c);return{listState:C,mirroredProps:x}}t=a.newlyCreatedCommentIDs;k=a.newlyHiddenCommentIDs;y=a.newlyUnhiddenCommentIDs;z=a.commentIDsUpdatedToServerIDs;o=a.removedCommentIDs;p=i({depth:r,feedback:f,topLevelFeedback:l});A=i({depth:r,feedback:n,topLevelFeedback:u});z.length>0&&z.forEach(function(a){var b=a.clientID;a=a.serverID;C=h.setServerCommentID({args:{clientCommentID:b,depth:r,serverCommentID:a},state:C})});p!==A&&(C=h.setCanViewerComment({args:{canViewerComment:A,depth:r},state:C}));k.length>0&&(C=h.hideComments({args:{commentIDs:k,depth:r},state:C}));y.length>0&&(C=h.unhideComments({args:{commentIDs:y,depth:r},state:C}));if(t.length>0){B=a.connectionPageInfo.pageSize;for(var s=t.length-1;s>=0;s--){q=t[s];r===0?C=h.receiveNewComment({args:{commentID:q,depth:r,pageSize:B,prevTotalCount:d,totalCount:w},state:C}):C=h.receiveNewComment({args:{commentID:q,depth:r,minCountToShowCollapser:b("CometUFICommentListStateConfig").MIN_REPLIES_TO_SHOW_COLLAPSER,pageSize:B,prevTotalCount:d,totalCount:w},state:C})}}else o.length>0&&o.forEach(function(a){r===0?C=h.deleteComment({args:{commentID:a,depth:r},state:C}):C=h.deleteComment({args:{commentID:a,depth:r,minCountToShowCollapser:b("CometUFICommentListStateConfig").MIN_REPLIES_TO_SHOW_COLLAPSER},state:C})});return{listState:C,mirroredProps:x}}function j(a,c){var d=a.commentsByID,e=a.commentIDs,f=a.connectionPageInfo,g=f.afterCount,j=f.beforeCount,k=f.hasNext,l=f.hasPrevious;f=f.pageSize;var m=a.depth,n=a.feedback,o=a.hiddenCommentIDs,p=a.isInitiallyExpanded,q=a.shouldRenderComposerPreemptively,r=a.topLevelFeedback,s=a.totalCount;a=a.viewOption;var t=i({depth:m,feedback:n,topLevelFeedback:r});j={afterCount:g,beforeCount:j,canViewerComment:t,commentIDs:e,commentsByID:d,feedbackTargetID:b("nullthrows")(n.id),hasNext:k,hasPrevious:l,hiddenCommentIDs:o,initiallyExpanded:p,pageSize:f,shouldRenderComposerPreemptively:q,topLevelFeedbackTargetID:(g=r==null?void 0:r.id)!=null?g:b("nullthrows")(n.id),totalCount:s,viewOption:a};return m===0?h.getInitialState({args:babelHelpers["extends"]({},j,{depth:0}),state:(t=c)!=null?t:null}):h.getInitialState({args:babelHelpers["extends"]({},j,{depth:1,minCountToShowCollapser:b("CometUFICommentListStateConfig").MIN_REPLIES_TO_SHOW_COLLAPSER}),state:(e=c)!=null?e:null})}e.exports={getCanViewerComment:i,getDerivedStateFromProps:a,getInitialState:j}}),null);
__d("UFI2RealtimeContext",["React","warning"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=a.createContext(function(){b("warning")(!1,"UFI2RealtimeContext: Using default context. Put an instance of `UFI2RealtimeRoot` in the tree.");return{dispose:function(){}}});e.exports=c}),null);
__d("UFI2RealtimeContainer.react",["React","UFI2RealtimeContext"],(function(a,b,c,d,e,f){"use strict";var g=b("React");c=b("React");var h=c.useContext,i=c.useEffect;function a(a){var c=a.children;a=a.subscribe;var d=h(b("UFI2RealtimeContext"));return g.jsx(j,{factory:d,subscribe:a,children:c})}var j=function(a){var b=a.factory,c=a.subscribe;a=a.children;i(function(){var a=b(new k(c));return function(){a.dispose()}},[b,c]);return(a=a)!=null?a:null},k=function(){function a(a){this.$1=a}var b=a.prototype;b.subscribe=function(){this.$2||(this.$2=this.$1())};b.unsubscribe=function(){this.$2&&(this.$2.dispose(),this.$2=null)};return a}();e.exports=a}),null);
__d("UFI2RelayConnectionRenderer.react",["invariant","React","RelayRuntime","react-relay/ReactRelayContext","react-relay/ReactRelayQueryFetcher","react-relay/readContext","react-relay/RelayContext"],(function(a,b,c,d,e,f,g){"use strict";a=b("React");var h=(c=b("RelayRuntime")).ConnectionInterface,i=c.createOperationDescriptor;d=c.deepFreeze;var j=c.getRequest,k=b("react-relay/RelayContext").assertRelayContext;f=function(a){babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this,c)||this;d.$1=!1;d.$2=!1;d.$6=function(a,b){if(!d.$7()||d.$1)return;d.$4("forward",a,b||{})};d.$8=function(a,b){if(!d.$9()||d.$2)return;d.$4("backward",a,b||{})};d.$7=function(){var a=d.props.connection;a=l(a);return a?a.hasNext:!1};d.$9=function(){var a=d.props.connection;a=l(a);return a?a.hasPrevious:!1};d.$5=function(a,b){a==="forward"?(d.$1=!0,d.forceUpdate(b)):a==="backward"&&(d.$2=!0,d.forceUpdate(b))};var e=k(b("react-relay/readContext")(b("react-relay/ReactRelayContext")));d.state={mirroredRelayContext:e,prevProps:c,queryFetchers:{backward:new(b("react-relay/ReactRelayQueryFetcher"))(),forward:new(b("react-relay/ReactRelayQueryFetcher"))()}};return d}c.getDerivedStateFromProps=function(a,c){var d=k(b("react-relay/readContext")(b("react-relay/ReactRelayContext")));if(c.prevProps.paginationQuery!==a.paginationQuery||c.mirroredRelayContext.environment!==d.environment){c=c.queryFetchers;return{mirroredRelayContext:d,prevProps:a,queryFetchers:babelHelpers["extends"]({},c)}}return null};var d=c.prototype;d.componentDidUpdate=function(a,b){this.state.queryFetchers!==b.queryFetchers&&(b.queryFetchers.backward.dispose(),b.queryFetchers.forward.dispose())};d.componentWillUnmount=function(){var a=this.state.queryFetchers;a.backward.dispose();a.forward.dispose()};d.shouldComponentUpdate=function(a,b){return!0};d.$3=function(a,b){a==="forward"?(this.$1=!1,this.forceUpdate(b)):a==="backward"&&(this.$2=!1,this.forceUpdate(b))};d.$4=function(a,b,c){var d=this,e=this.props,f=e.connection;e=e.paginationQuery;var h=this.state.queryFetchers;h=h[a];f=l(f);f||g(0,1775);b=m(a,b,f,c);if(b==null)return;var k=babelHelpers["extends"]({},b,{UFI2CommentsProvider_commentsKey:this.props.commentsKey});f=this.state.mirroredRelayContext.environment;var n=c.onLoaded;b=j(e);c=i(b,k);var o=!1;try{var p=h.fetch({environment:f,onDataChange:function(b){var c=b.error,e=b.snapshot;if(o)return;o=!0;d.$3(a,function(){n&&n({data:e==null?void 0:e.data,error:c,variables:k})})},operation:c});p?(o=!0,this.$3(a,function(){n&&n({data:p.data,variables:k})})):this.$5(a)}catch(a){n&&n({error:a,variables:k})}};d.render=function(){var a=this.props.connection;if(!a)return null;a=a.edges;a={edges:a,hasNext:this.$7(),hasPrevious:this.$9(),isLoadingNext:this.$1,isLoadingPrevious:this.$2,loadNext:this.$6,loadPrevious:this.$8};return this.props.children(a)};return c}(a.Component);function l(a){if(!a)return null;var b=h.get(),c=b.PAGE_INFO,d=b.HAS_NEXT_PAGE,e=b.HAS_PREV_PAGE,f=b.END_CURSOR;b=b.START_CURSOR;a=a[c];a||g(0,1776);return{backwardCursor:a[b],forwardCursor:a[f],hasNext:a[d],hasPrevious:a[e]}}function m(a,b,c,d){switch(a){case"backward":a=b;var e=c.backwardCursor;return typeof d.queryVariables==="function"?d.queryVariables({after:null,before:e,first:null,last:a}):babelHelpers["extends"]({after:null,before:e,first:null,last:a},d.queryVariables);case"forward":e=b;a=c.forwardCursor;return typeof d.queryVariables==="function"?d.queryVariables({after:a,before:null,first:e,last:null}):babelHelpers["extends"]({after:a,before:null,first:e,last:null},d.queryVariables);default:throw new Error("UFI2RelayConnectionRenderer: direction must be one of backward or forward")}}e.exports=f}),null);
__d("UFI2CommentsProvider.react",["invariant","requireDeferred","FBLogger","React","RelayModern","RelayUFI2CommentsKeyContext","SiteData","UFI2CommentsProviderState","UFI2Config","UFI2RealtimeContainer.react","UFI2RelayConnectionRenderer.react","UFI2SurfaceContainerContext","gkx","nullthrows","relay-runtime","UFI2CommentsProviderPaginationQuery.graphql","UFI2CommentsProviderReadCommentsPageQuery.graphql","UFI2CommentsProvider_feedback.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=b("React");c=b("RelayModern").createRefetchContainer;b("RelayModern").graphql;var l=b("SiteData").pr;d=b("UFI2CommentsProviderState").getDerivedStateFromProps;var m=b("UFI2CommentsProviderState").getInitialState,n=b("requireDeferred")("UFI2CreateCommentSubscription"),o=b("relay-runtime").createOperationDescriptor,p=b("relay-runtime").getRequest,q=50,r=function(c){babelHelpers.inheritsLoose(a,c);function a(a){var d;d=c.call(this,a)||this;d.state=m({edges:d.props.edges,feedback:d.props.feedback});d.$1=function(a){var c=a.count,e=a.direction,f=a.onCommentsFetched;a=d.props;var g=a.displayCommentsContext,h=a.feedLocation,i=a.feedbackSource,j=a.focusCommentID,k=a.depth,m=a.feedback,n=a.isComet,o=a.isLoadingNext,p=a.isLoadingPrevious,q=a.loadNext,r=a.loadPrevious,s=a.topLevelViewOption;a=a.useDefaultActor;var t=d.state.selectedViewOption;m=m.id;if(!m){b("FBLogger")("ufi2").mustfix("UFI2CommentsProvider: Cant fetch without a feedback id");return}if(e==="forward"&&o)return;if(e==="backward"&&p)return;p=babelHelpers["extends"]({},b("nullthrows")((o=d.context)==null?void 0:o.containerMapping),{displayCommentsContextEnableComment:g==null?void 0:g.enableComment,displayCommentsContextIsAdPreview:g==null?void 0:g.isAdPreview,displayCommentsContextIsAggregatedShare:g==null?void 0:g.isAggregatedShare,displayCommentsContextIsStorySet:g==null?void 0:g.isStorySet,displayCommentsFeedbackContext:g==null?void 0:g.feedbackContext,feedLocation:h,feedbackID:m,feedbackSource:i,focusCommentID:j,includeNestedComments:k===0,isComet:n,isInitialFetch:!1,scale:l,topLevelViewOption:s,useDefaultActor:a,viewOption:t});if(e==="backward")r(c,{onLoaded:function(a){var b=a.error;a=a.variables;return d.$2({direction:e,error:b,onCommentsFetched:f,variables:a})},queryVariables:p});else if(e==="forward")q(c,{onLoaded:function(a){var b=a.error;a=a.variables;return d.$2({direction:e,error:b,onCommentsFetched:f,variables:a})},queryVariables:p});else throw new Error("UFI2CommentsProvider: Invalid direction")};d.$3=function(a){var c=d.state.commentsByID[a];if(c==null){b("FBLogger")("ufi2").warn("UFI2CommentsProvider: Could not find requested comment locally: %s",a);return null}return c};d.$6=function(a){var c=a.onComplete;a=a.queryVariables;var e=d.props,f=e.displayCommentsContext,g=e.feedLocation,h=e.feedback,i=e.feedbackSource,j=e.focusCommentID,k=e.isComet,m=e.relay,n=e.topLevelViewOption;e=e.useDefaultActor;var o=d.state.selectedViewOption;h=h.id;if(!h){b("FBLogger")("ufi2").mustfix("UFI2CommentsProvider: Cant refetch without a feedback id");return}var p=babelHelpers["extends"]({displayCommentsContextEnableComment:f==null?void 0:f.enableComment,displayCommentsContextIsAdPreview:f==null?void 0:f.isAdPreview,displayCommentsContextIsAggregatedShare:f==null?void 0:f.isAggregatedShare,displayCommentsContextIsStorySet:f==null?void 0:f.isStorySet,displayCommentsFeedbackContext:f==null?void 0:f.feedbackContext,feedLocation:g,feedbackID:h,feedbackSource:i,focusCommentID:j,includeNestedComments:!0,isComet:k,isInitialFetch:!1,scale:l,topLevelViewOption:n,useDefaultActor:e,viewOption:o},b("nullthrows")((f=d.context)==null?void 0:f.containerMapping),a);d.setState({isRefetchingConnection:!0},function(){m.refetch(function(a){return babelHelpers["extends"]({},a,p)},null,function(a){return d.$5(a||null,c)})})};d.$7=function(a){var b=a.onComplete;a=a.viewOption;d.setState({selectedViewOption:a},function(){d.$6({onComplete:b,queryVariables:{}})})};d.$8=function(){var a=d.props,c=a.commentsKey,e=a.depth,f=a.feedback,g=a.feedLocation,h=a.feedbackSource,i=a.focusCommentID,j=a.relay,k=a.useDefaultActor,l=a.onNext;if(b("gkx")("1352852")&&h===1)return null;var m=f.id,o=f.subscription_target_id;if(e===1||!m||!o)return null;var p=!1,q={dispose:function(){p=!0}};n.load().then(function(a){if(p)return;q.dispose=a.subscribe({commentsKey:c,containerMapping:b("nullthrows")((a=d.context)==null?void 0:a.containerMapping),environment:j.environment,feedLocation:g,feedbackSource:h,focusCommentID:i,isComet:d.context.isComet,onNext:l,subscriptionTargetID:o,topLevelFeedbackTargetID:m,useDefaultActor:k}).dispose})["catch"](function(a){return b("FBLogger")("ufi2").catching(a).mustfix("Error subscribing to UFI2CreateCommentSubscription, this is probably because the arguments didn't line up with what we're expected or someone has been tinkering with its implementation")});return q};return d}var d=a.prototype;d.$2=function(a){var b=a.direction,c=a.error,d=a.onCommentsFetched;a=a.variables;if(c){d&&d({commentIDs:[],direction:b,error:c});return}c=this.props.relay.environment;var e=p(t);e=o(e,a);a=c.lookup(e.fragment).data;c=(a=a==null?void 0:(c=a.feedback)==null?void 0:(e=c.display_comments)==null?void 0:e.edges)!=null?a:[];e=c.map(function(a){return a==null?void 0:(a=a.node)==null?void 0:a.id}).filter(Boolean);d&&d({commentIDs:e||[],direction:b,error:null})};d.$4=function(a){a=a.client_id||a.id;a!=null||g(0,398);return a};d.$5=function(a,b){this.setState({isRefetchingConnection:!1},function(){b&&b(a)})};d.render=function(){var a,c,d,e,f=this.props,g=f.children,h=f.depth,i=f.feedback,j=f.hasNext,l=f.hasPrevious,m=f.isLoadingNext;f=f.isLoadingPrevious;var n=this.state,o=n.commentIDs,p=n.commentIDsUpdatedToServerIDs,r=n.commentsByID,s=n.hiddenCommentIDs,t=n.isRefetchingConnection,u=n.newlyCreatedCommentIDs,v=n.newlyHiddenCommentIDs,w=n.newlyUnhiddenCommentIDs,x=n.removedCommentIDs;n=n.selectedViewOption;a=Math.ceil(((a=(a=i.display_comments)==null?void 0:a.page_size)!=null?a:q)*(h>0?b("UFI2Config").legacyReplyFetchShortfallSimulationFactor:b("UFI2Config").legacyTopLevelFetchShortfallSimulationFactor));c=(c=(c=i.display_comments)==null?void 0:c.ufi2_connection_generation)!=null?c:0;d={afterCount:(d=(d=i.display_comments)==null?void 0:d.after_count)!=null?d:0,beforeCount:(d=(d=i.display_comments)==null?void 0:d.before_count)!=null?d:0,hasNext:j,hasPrevious:l,pageSize:a};a=(l=(j=i.display_comments)==null?void 0:j.is_initially_expanded)!=null?l:!1;j=(l=(j=i.display_comments)==null?void 0:j.highlighted_comments)!=null?l:[];l=(l=(l=i.display_comments)==null?void 0:l.count)!=null?l:0;e=((e=i.display_comments)==null?void 0:e.comment_order)||n;n=(n=(n=i.display_comments)==null?void 0:n.reply_comment_order)!=null?n:null;return k.jsx(b("UFI2RealtimeContainer.react"),{subscribe:this.$8,children:g({commentIDs:o,commentIDsUpdatedToServerIDs:p,commentsByID:r,connectionGeneration:c,connectionPageInfo:d,fetchComments:this.$1,getComment:this.$3,getCommentRenderingKey:this.$4,hiddenCommentIDs:s,highlightedComments:j,isFetchingNextComments:m,isFetchingPreviousComments:f,isInitiallyExpanded:a,isRefetchingConnection:t,newlyCreatedCommentIDs:u,newlyHiddenCommentIDs:v,newlyUnhiddenCommentIDs:w,refetchConnection:this.$6,removedCommentIDs:x,replyViewOption:n,setViewOption:this.$7,shouldRenderComposerPreemptively:(o=(g=i.display_comments)==null?void 0:g.should_render_composer_preemptively)!=null?o:h===0,totalCount:l,viewOption:e})})};return a}(k.Component);r.displayName="UFI2CommentsProviderInternal";r.getDerivedStateFromProps=d;r.contextType=b("UFI2SurfaceContainerContext");function a(a){var c=a.feedback.display_comments;if(!c){var d;return(d=a.fallback)!=null?d:null}return k.jsx(b("RelayUFI2CommentsKeyContext").Consumer,{children:function(d){return k.jsx(b("UFI2RelayConnectionRenderer.react"),{commentsKey:d,connection:c,paginationQuery:s,children:function(b){return k.jsx(r,babelHelpers["extends"]({commentsKey:d},a,b))}})}})}a.displayName="UFI2CommentsProvider";a.defaultProps={depth:0};var s=h!==void 0?h:h=b("UFI2CommentsProviderPaginationQuery.graphql"),t=i!==void 0?i:i=b("UFI2CommentsProviderReadCommentsPageQuery.graphql");e.exports=c(a,{feedback:j!==void 0?j:j=b("UFI2CommentsProvider_feedback.graphql")},s)}),null);
__d("UFI2CommentsList.react",["invariant","CometUFICommentListStateConfig","FBLogger","React","ReactDOM","UFI2CometRelayCreateFragmentContainer","SearchableEntry","SubscriptionsHandler","UFI2CommentsListGetDerivedStateFromProps","UFI2CommentsListState","UFI2CommentsProvider.react","UFI2SurfaceContainerContext","debounce","requireCond","cr:1428010","UFI2CommentsList_feedback.graphql"],(function(a,b,c,d,e,f,g){var h,i=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var j=b("UFI2CommentsListGetDerivedStateFromProps").getCanViewerComment;d=b("UFI2CommentsListGetDerivedStateFromProps").getDerivedStateFromProps;var k=b("UFI2CommentsListGetDerivedStateFromProps").getInitialState,l=b("UFI2CommentsListState").Selectors,m=b("UFI2CommentsListState").StateUpdaters;f=b("React");var n=f.useContext,o=function(c){"use strict";babelHelpers.inheritsLoose(a,c);function a(a){var d;d=c.call(this,a)||this;d.$1=null;d.$2=null;d.$3=new Map();d.$4=[];d.$6={};d.$8=!1;d.$9=!1;d.$10=!1;d.$11=!1;d.$12=new(b("SubscriptionsHandler"))();d.state={listState:k(d.props),mirroredProps:d.props};d.$14=null;d.$17=function(a){d.$4.indexOf(a)<0&&d.$4.push(a)};d.$18=function(a){d.$4=d.$4.map(function(b){return b===a?null:b}).filter(Boolean)};d.$19=function(){var a=d.props,b=a.depth,c=a.totalCount;d.$20(function(a){return m.collapseList({args:{depth:b,totalCount:c},state:a})})};d.$21=function(a){var c=a.focusComposer,e=a.scrollToNode;a=a.scrollToComposer;var f=d.props,g=f.depth,h=f.fetchComments,i=f.connectionPageInfo.pageSize,j=f.refetchConnection,k=f.totalCount;c&&(d.$8=!0);a===!0&&(d.$9=!0);e!=null&&(d.$14=e);d.$15();var n=!1;d.$20(function(a){var c=g===0&&l.isListLoading({depth:g,state:a})||g!==0&&l.isRepliesExpanderLoading({depth:g,state:a});if(c)return null;c=g===0?m.expandList({args:{depth:g,totalCount:k},state:a}):m.expandList({args:{depth:g,minCountToShowCollapser:b("CometUFICommentListStateConfig").MIN_REPLIES_TO_SHOW_COLLAPSER,totalCount:k},state:a});if(g===0){a=l.isListLoading({depth:g,state:c});n=a;return c}a=l.isRepliesExpanderLoading({depth:g,state:c});n=a;return c},function(a){if(!n)return;if(g===0){j({});return}a=l.getCountForFetch({depth:g,direction:"forward",pageSize:i,state:a});if(a==null)return;h({count:a,direction:"forward",onCommentsFetched:d.$22})})};d.$23=function(a){var b=d.props.depth;d.$20(function(c){return m.expandHiddenComments({args:{commentIDs:a,depth:b},state:c})})};d.$24=function(){var a=d.props,b=a.feedLocation,c=a.feedback,e=a.feedbackSource,f=a.focusCommentID;a=a.useDefaultActor;c.id!=null||g(0,3323);return{feedLocation:b,feedback:c,feedbackSource:e,feedbackTargetID:c.id,focusCommentID:f,useDefaultActor:a}};d.$25=function(a){var b=d.props,c=b.depth,e=b.feedback,f=b.feedbackSource,g=b.getCommentRenderingKey,h=b.relay,i=b.topLevelFeedback,k=b.totalCount;b=b.useDefaultActor;var m=d.state.listState;h=h.environment;g=g(a);var n=i==null?void 0:i.id;h={Selectors:l,comment:a,depth:c,environment:h,feedback:e,feedbackSource:f,key:g,listState:m,onDeeplinkToComment:function(b){d.$26(a,b,!1)},onReplyToComment:j({depth:c,feedback:e,topLevelFeedback:i})?function(){d.$4.forEach(function(b){return b(a)});if(c!==0){var b;d.$2=null;var f=a.author;if(f&&f.id!==((b=e.viewer_actor)==null?void 0:b.id)){b=f.__typename;var g=f.id;f=f.name;if(b&&g&&f){var h=d.$1;g={authorId:g,authorIsWeakReference:Boolean(a.is_author_weak_reference),authorName:f,authorType:b};h?d.$27(g,h):d.$2=g}}}d.$28(a);d.$26(a,void 0,!0)}:null,totalCount:k,useDefaultActor:b};return!n?h:babelHelpers["extends"]({},h,{topLevelFeedbackID:n})};d.$29=function(){var a=d.props,b=a.commentParent,c=a.depth,e=a.feedLocation,f=a.feedback,g=a.feedbackSource,h=a.focusCommentID,i=a.topLevelFeedback;a=a.useDefaultActor;i=i==null?void 0:i.id;b={commentParent:b,componentRef:c===0?d.$30:d.$31,feedLocation:e,feedback:f,feedbackSource:g,focusCommentID:h,useDefaultActor:a};return!i?b:babelHelpers["extends"]({},b,{topLevelFeedbackID:i})};d.$33=function(){return d.$32("forward")};d.$34=function(){return d.$32("backward")};d.$35=function(){var a=d.props,b=a.depth,c=a.relay;a=a.totalCount;var e=d.state.listState;c=c.environment;return{Selectors:l,depth:b,environment:c,expandHiddenComments:d.$23,listState:e,totalCount:a}};d.$36=function(a){var b=d.props,c=b.depth,e=b.displayCommentsContext,f=b.feedLocation,h=b.feedback,i=b.feedbackSource,j=b.focusCommentID,k=b.getComment,l=b.useDefaultActor;b=b.viewOption;k=k(a);var m=k&&k.feedback,n=function(b){d.$6[a]=b,d.$37()};m!=null||g(0,3325);return{commentParent:k,depth:c+1,displayCommentsContext:e,feedLocation:f,feedback:m,feedbackSource:i,focusCommentID:j,listRef:n,topLevelFeedback:h,topLevelViewOption:b,useDefaultActor:l}};d.$42=function(){return d.$38("forward")};d.$43=function(){return d.$38("backward")};d.$44=function(){var a=d.props,b=a.connectionPageInfo.pageSize,c=a.depth,e=a.relay;a=a.totalCount;var f=d.state.listState;e=e.environment;return{Selectors:l,depth:c,environment:e,listState:f,pageSize:b,totalCount:a}};d.$45=function(){var a=d.props,b=a.depth,c=a.relay;a=a.totalCount;var e=d.state.listState;c=c.environment;b!==0||g(0,3326);return{Selectors:l,collapseList:d.$19,depth:b,environment:c,listState:e,totalCount:a}};d.$46=function(){var a=d.props,b=a.depth,c=a.highlightedComments,e=a.relay,f=a.totalCount;a=a.viewOption;var h=d.state.listState;e=e.environment;b!==0||g(0,3327);return{Selectors:l,depth:b,environment:e,expandList:d.$21,highlightedComments:c,listState:h,onMouseEnter:function(){return d.$41("forward")},totalCount:f,viewOption:a}};d.$22=function(a){var c=a.commentIDs,e=a.direction;a=a.error;if(a)return;a=d.props;var f=a.connectionPageInfo,h=a.depth,i=a.feedback,j=a.hiddenCommentIDs,k=a.totalCount,l=f.afterCount,n=f.beforeCount,o=f.hasNext,p=f.hasPrevious,q=f.pageSize,r=i.id;r!=null||g(0,3323);var s=!1;d.$20(function(a){s=!0;if(h===0)if(e==="backward")return m.receiveCommentsPage({args:{beforeCount:n,commentIDs:c,depth:h,direction:e,feedbackTargetID:r,hasPrevious:p,hiddenCommentIDs:j,pageSize:q,totalCount:k},state:a});else return m.receiveCommentsPage({args:{afterCount:l,commentIDs:c,depth:h,direction:e,feedbackTargetID:r,hasNext:o,hiddenCommentIDs:j,pageSize:q,totalCount:k},state:a});else if(e==="backward")return m.receiveCommentsPage({args:{beforeCount:n,commentIDs:c,depth:h,direction:e,feedbackTargetID:r,hasPrevious:p,hiddenCommentIDs:j,minCountToShowCollapser:b("CometUFICommentListStateConfig").MIN_REPLIES_TO_SHOW_COLLAPSER,pageSize:q,totalCount:k},state:a});else return m.receiveCommentsPage({args:{afterCount:l,commentIDs:c,depth:h,direction:e,feedbackTargetID:r,hasNext:o,hiddenCommentIDs:j,minCountToShowCollapser:b("CometUFICommentListStateConfig").MIN_REPLIES_TO_SHOW_COLLAPSER,pageSize:q,totalCount:k},state:a})},function(a){s&&d.$47(e)})};d.$48=function(){d.$5()};d.$49=function(){d.$5.reset()};d.$30=function(a){d.$1=a,d.$15()};d.$31=function(a){d.$30(a);if(a&&d.$2){var b=d.$2;d.$2=null;d.$27(b,a)}a&&d.$11&&(d.$50(d.$7),d.$7=void 0,d.$11=!1);a&&d.$10&&(d.$51(),d.$10=!1)};d.$52=function(a){a=d.$6[a.id];return a!=null?l.isComposerVisible({depth:a.props.depth,state:a.state.listState}):!1};d.$53=function(a){a=d.$6[a.id];return a!=null?a.props.totalCount:0};d.$54=[];d.$55=new Map();d.$39=function(a){a=a?a.onCommentsRendered:void 0;d.$56("forward",a)};d.$40=function(a){a=a?a.onCommentsRendered:void 0;d.$56("backward",a)};d.$57=function(a){var b=a.onComplete,c=a.viewOption;a=d.props;var e=a.depth,f=a.setViewOption;if(e!==0){b&&b(null);return}var g=!1;d.$20(function(a){if(l.isListLoading({depth:e,state:a}))return null;g=!0;return m.requestRefetchList({args:{depth:e},state:a})},function(a){g?f({onComplete:b,viewOption:c}):b&&b(null)})};d.$58=function(a){a=a.focusComposer;var b=d.props.depth,c=d.state.listState;!l.isListExpanded({depth:b,state:c})?d.$21({focusComposer:a,scrollToComposer:!1}):d.$19()};d.Actions={collapseList:d.$19,expandList:d.$21,loadNewerComments:d.$40,loadOlderComments:d.$39,setViewOption:d.$57,toggleList:d.$58};d.$5=b("debounce")(function(){return d.$13("forward")},1e3,babelHelpers.assertThisInitialized(d),!0);d.$12.addSubscriptions(d.$5);return d}var d=a.prototype;d.componentWillUnmount=function(){this.$12.release(),this.$4=[]};d.$15=function(){var a=this.props,c=a.depth;a=a.totalCount;var d=this.state.listState,e=l.hasVisibleComments({depth:c,state:d});e=e||a===0;a=c===0&&e&&!l.isListLoading({depth:c,state:d});d=c!==0&&e;var f=this.$1;if(this.$8===!0&&f!=null&&(a||d)){this.$8=!1;c=b("ReactDOM").findDOMNode(f);e=this.$14;if(e!=null){this.$14=null;b("cr:1428010")(e,{behavior:"smooth",onScrollComplete:function(){f.focus()},verticalAlign:"center"});return}a=this.$9;this.$9=!1;if(a===!1){f.focus();return}if(c==null)return;if(c instanceof Text){b("FBLogger")("ufi2").mustfix("The composer is a Text node! I don't know what happened but this is UNACCEPTABLE, we found this out because we were trying to scroll to this component. You can look into and possibly fix this issue by asserting the composerRef on UFI2CommentList is being set correctly");f.focus();return}b("cr:1428010")(c,{behavior:"smooth",onScrollComplete:function(){return f.focus()},verticalAlign:"center"})}};d.$16=function(a,b){var c=this.$3.get(a)||[];c.push(b);this.$3.set(a,c)};d.$13=function(a){var b=this.props,c=b.depth,d=b.fetchComments,e=b.connectionPageInfo.pageSize;b=b.totalCount;var f=this.state.listState;if(!l.canFetchInDirection({depth:c,direction:a,state:f,totalCount:b}))return;b=l.getCountForFetch({depth:c,direction:a,pageSize:e,state:f});if(b==null)return;d({count:b,direction:a,onCommentsFetched:this.$22})};d.$32=function(a){var b=this.props,c=b.depth,d=b.feedback,e=b.relay,f=b.totalCount;b=b.viewOption;e=e.environment;var g=this.state.listState;return{Selectors:l,depth:c,direction:a,environment:e,listState:g,totalCount:f,unfilteredTotalCount:(a=(c=d.toplevel_comment_count)==null?void 0:c.count)!=null?a:f,viewOption:b}};d.$38=function(a){var b=this,c=this.props,d=c.connectionPageInfo.pageSize,e=c.depth,f=c.feedback,g=c.totalCount;c=c.viewOption;var h=this.state.listState,i=a==="forward"?this.$39:this.$40;return{Selectors:l,depth:e,direction:a,listState:h,loadMoreComments:i,onMouseEnter:function(){return b.$41(a)},pageSize:d,summaryTotalNumComments:(h=(e=f.comment_count)==null?void 0:e.total_count)!=null?h:0,totalCount:g,viewOption:c}};d.$41=function(a){this.$13(a)};d.$50=function(a){var b=this.$1;b!=null?b.execCommand({__type:"SetReplyAssociationLegacy",commentBeingRepliedTo:a}):(this.$7=a,this.$11=!0)};d.$51=function(){var a=this.$1;a!=null?a.execCommand({__type:"SetReplyClicked"}):this.$10=!0};d.$28=function(a){var b=this.props.depth;if(b===0){b=a.id;b=this.$6[b];b!=null&&(b.$50(void 0),b.$51());return}this.$50(a);this.$51()};d.$26=function(a,b,c){c===void 0&&(c=!1);var d=this.props,e=d.depth,f=d.feedback;d=d.topLevelFeedback;f=j({depth:e,feedback:f,topLevelFeedback:d});if(!f)return;d=!0;a!=null&&b!=null&&(this.$55.has(a.id)&&(d=!1),this.$55.set(a.id,!0));if(e===0){if(!a)return;e=((f=a.can_comment)==null?void 0:f.can_viewer_comment)===!0;if(e){f=a.id;b!=null&&(this.$54=this.$54.map(function(a){a=a.commentID;return{commentID:a,scrollToComposer:!1,scrollToNode:null}}));this.$54.push({commentID:f,scrollToComposer:c,scrollToNode:d?b:null});this.$37()}else{e=this.$1;e&&e.focus()}}else this.$21({focusComposer:!0,scrollToComposer:c,scrollToNode:d?b:null})};d.$37=function(){var a=this;this.$54=this.$54.filter(function(b){var c=b.commentID,d=b.scrollToNode;b=b.scrollToComposer;c=a.$6[c];if(c!=null){c.$21({focusComposer:!0,scrollToComposer:b,scrollToNode:d});return!1}return!0})};d.$56=function(a,c){var d=this,e=this.props,f=e.connectionPageInfo.pageSize,g=e.depth,h=e.fetchComments,i=!1;this.$20(function(c){var d=l.isPagerLoading({depth:g,direction:a,state:c})||g===0&&l.isListLoading({depth:g,state:c})||g!==0&&l.isRepliesExpanderLoading({depth:g,state:c});if(d)return null;d=g===0?m.requestCommentsPage({args:{depth:0,direction:a,pageSize:f},state:c}):m.requestCommentsPage({args:{depth:g,direction:a,minCountToShowCollapser:b("CometUFICommentListStateConfig").MIN_REPLIES_TO_SHOW_COLLAPSER,pageSize:f},state:c});i=l.isPagerLoading({depth:g,direction:a,state:d});return d},function(b){if(!i){c&&c();return}b=l.getCountForFetch({depth:g,direction:a,pageSize:f,state:b});if(b==null)return;c!=null&&d.$16(a,c);h({count:b,direction:a,onCommentsFetched:d.$22})})};d.$27=function(a,c){var d=a.authorId,e=a.authorIsWeakReference,f=a.authorName;a=a.authorType;c.execCommand({__type:"PrefillMention",mentionableEntity:new(b("SearchableEntry"))({auxiliaryData:{authorativePerson:void 0,connectedPage:void 0,disableAutosuggest:void 0,indexRank:void 0,renderType:e?"non_member":"member",verified:void 0,workForeignEntity:void 0,workUser:void 0},title:f,type:a==="User"?"user":"non_user",uniqueID:d})})};d.$47=function(a){var b=this.$3.get(a)||[];for(var b=b,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()}this.$3["delete"](a)};d.$20=function(a,b){var c=this;this.setState(function(b){b=a(b.listState);return!b?null:{listState:b}},function(){return b&&b(c.state.listState)})};d.render=function(){var a=this.props,b=a.children,c=a.commentParent,d=a.depth,e=a.getComment,f=a.isInitiallyExpanded,g=a.relay,h=a.replyViewOption,i=a.totalCount;a=a.viewOption;var j=this.state.listState;g=g.environment;g={Actions:this.Actions,Selectors:l,addReplyToCommentCallback:this.$17,clearReplyToCommentCallback:this.$18,environment:g,getComment:e,getCommentEditorProps:this.$24,getCommentProps:this.$25,getComposerProps:this.$29,getFilterWarningPropsForNewerComments:this.$34,getFilterWarningPropsForOlderComments:this.$33,getHiddenCommentsPlaceholderProps:this.$35,getNestedCommentsListProps:this.$36,getPagerPropsForNewerComments:this.$43,getPagerPropsForOlderComments:this.$42,getPaginationProgressProps:this.$44,getTotalRepliesCountForComment:this.$53,isInitiallyExpanded:f,isReplyComposerVisibleForComment:this.$52,listState:j,onCommentsListMouseEnter:this.$48,onCommentsListMouseLeave:this.$49,replyViewOption:h,totalCount:i,viewOption:a};e=d===0?babelHelpers["extends"]({},g,{depth:0}):babelHelpers["extends"]({},g,{commentParent:c,depth:d,getRepliesCollapserProps:this.$45,getRepliesExpanderProps:this.$46});return b(e)};return a}(i.Component);o.displayName="UFI2CommentsListInternal";o.getDerivedStateFromProps=d;function a(a){var c=a.children,d=a.commentParent,e=a.depth,f=a.displayCommentsContext,h=a.fallback,j=a.feedLocation,k=a.feedback,l=a.feedbackSource,m=a.focusCommentID,p=a.listRef,q=a.relay,r=a.topLevelFeedback,s=a.topLevelViewOption,t=a.useDefaultActor;a=babelHelpers.objectWithoutPropertiesLoose(a,["children","commentParent","depth","displayCommentsContext","fallback","feedLocation","feedback","feedbackSource","focusCommentID","listRef","relay","topLevelFeedback","topLevelViewOption","useDefaultActor"]);var u=n(b("UFI2SurfaceContainerContext"));u=u.isComet;e!==0&&(r!=null||g(0,3328));return i.jsx(b("UFI2CommentsProvider.react"),babelHelpers["extends"]({depth:e,displayCommentsContext:f,fallback:h,feedLocation:j,feedback:k,feedbackSource:l,focusCommentID:m,isComet:u,topLevelFeedback:r,topLevelViewOption:s,useDefaultActor:t},a,{children:function(a){return i.createElement(o,babelHelpers["extends"]({},a,{children:c,commentParent:d,depth:e,displayCommentsContext:f,feedLocation:j,feedback:k,feedbackSource:l,focusCommentID:m,key:[l,m,(a=k.id)!=null?a:""].join("_"),ref:p,relay:q,topLevelFeedback:r,useDefaultActor:t}))}}))}a.displayName="UFI2CommentsList";a.defaultProps={depth:0};f=c(a,{feedback:h!==void 0?h:h=b("UFI2CommentsList_feedback.graphql")});e.exports=f}),null);
__d("UFI2CommentsPager.react",["React","TrackingNodes","UFI2CommentsPagerRenderer.react","UFICommonInteractionEvents","UFICommonInteractionLogger","getUFI2PagerLabel"],(function(a,b,c,d,e,f){"use strict";var g=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.state={pagerLabel:b("getUFI2PagerLabel")(d.props)},d.$1=function(){var a=d.props,c=a.depth;a=a.loadMoreComments;var e=b("UFICommonInteractionLogger").startInteraction(c===0?b("UFICommonInteractionEvents").UFI2_TOP_LEVEL_COMMENTS_PAGINATION:b("UFICommonInteractionEvents").UFI2_REPLY_COMMENTS_PAGINATION);a({onCommentsRendered:function(){return b("UFICommonInteractionLogger").endInteraction(e)}})},c)||babelHelpers.assertThisInitialized(d)}c.getDerivedStateFromProps=function(a){var c=a.Selectors,d=a.depth,e=a.direction,f=a.listState;c=c.isPagerLoading({depth:d,direction:e,state:f});return!c?{pagerLabel:b("getUFI2PagerLabel")(a)}:null};var d=c.prototype;d.render=function(){var a=this.props,c=a.Selectors,d=a.className,e=a.depth,f=a.direction,h=a.linkClassName,i=a.listState,j=a.nestedPagerIconClassName;a=a.onMouseEnter;var k=this.state.pagerLabel;if(k==null)return null;c=c.isPagerLoading({depth:e,direction:f,state:i});f=b("TrackingNodes").getTrackingInfo(b("TrackingNodes").types.VIEW_ALL_COMMENTS);return g.jsx(b("UFI2CommentsPagerRenderer.react"),{className:d,depth:e,isLoading:c,linkClassName:h,nestedPagerIconClassName:j,onClick:this.$1,onMouseEnter:a,trackingInfo:f,children:function(a){return g.jsx("span",{className:a,children:k})}})};return c}(g.Component);e.exports=a}),null);
__d("UFI2Composer.react",["cx","fbt","invariant","requireCond","Bootloader","cr:955308","FBLogger","Random","React","ReactDOM","Run","SubscriptionsHandler","TrackingNodes","UFI2CometRelayCreateFragmentContainer","UFI2CommentRow.react","UFI2ComposerActions.react","UFI2Config","UFI2ErrorBoundary.react","UFI2ProgressiveComposerInput.react","UFICommonInteractionEvents","UFICommonInteractionLogger","UFINavigationCheck","UFIODSLogger","Vector","WebFunnelLogger","collectDataAttributes","createUFI2ComposerPluginPipeline","emptyFunction","getActiveElement","getCommentDataFromComposerState","getPlainTextFromUFI2InputState","getScrollableAreaContainingNode","gkx","ifRequired","isUFI2ComposerStateEmpty","joinClasses","makeUFI2ClientID","memoize","nullthrows","requestAnimationFrameAcrossTransitions","setFocusOnUFI2ComposerInputState","cr:1439761","UFI2Composer_actor.graphql","UFI2Composer_feedback.graphql"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var m=b("UFI2Config").composerInputSamplingRateDenominator,n=(d=b("cr:1439761"))!=null?d:window.scrollTo;function o(a){a===void 0&&(a=b("emptyFunction"));return b("Bootloader").loadModules(["clearUFIComposerInputState"],a,"UFI2Composer.react")}var p=[],q=b("memoize")(function(){var a=m||100;return b("Random").coinflip(a)&&b("gkx")("678290")});f=function(c){babelHelpers.inheritsLoose(d,c);function d(){var a,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(a=d=c.call.apply(c,[this].concat(f))||this,d.$1=[],d.$2=[],d.$3=l.createRef(),d.$5=!1,d.$6=null,d.$7=!1,d.$8=null,d.state={UFI2ComposerPluginPipeline:b("createUFI2ComposerPluginPipeline")(d.props.initialPlugins||p),composerState:d.props.initialComposerState||{attachment:null,commentAssociatedWithReply:null,feedbackID:b("nullthrows")(d.props.feedback.id,"A `UFI2Composer` was mounted without a feedback target ID. This is a fatal error, since there's nothing useful a composer can do without one. Please check why the GraphQL query for this feedback object failed to materialize an ID."),formattingStyle:void 0,inputDecorators:[],inputState:b("UFI2ProgressiveComposerInput.react").createEmptyComposerState(),isLocked:!1}},d.$9=null,d.$10=new(b("SubscriptionsHandler"))(),d.$11=function(a,c){var e=d.$3.current;e=b("ReactDOM").findDOMNode(e);return e?b("collectDataAttributes")(e,a,c):null},d.$13=function(){var a=d.props,c=a.actor,e=a.onCommit,f=a.relay,g=a.topLevelFeedbackID,h=a.useDefaultActor,j=b("makeUFI2ClientID")(b("UFICommonInteractionLogger").makeTrackingID()),k=c.id;k!=null||i(0,4686);var l=d.state.composerState.usedWritingHelpToCompose,m=function(a,b){b===void 0&&(b={}),e({actorID:k,clientID:j,commentData:a,entitiesByID:b,environment:f.environment,feedLocation:d.props.feedLocation,feedbackSource:d.props.feedbackSource,focusCommentID:d.props.focusCommentID,getTrackingDataFn:d.$11,topLevelFeedbackID:g,useDefaultActor:h,usedWritingHelpToCompose:l})};a=d.state.composerState.inputState;if(a.__type==="plain-text"){if(a.text.trim()===""&&d.state.composerState.attachment==null)return;d.$14();d.$12(j);c=d.state.composerState;var n=c.attachment,p=c.commentAssociatedWithReply;c=c.replyTargetClicked;m({attachments:n&&(n.__type==="ExistingAttachment"?[]:d.$1.map(function(a){return a(n)}).filter(Boolean)),feedback_id:d.state.composerState.feedbackID,formatting_style:d.state.composerState.formattingStyle,message:{text:a.text},reply_comment_parent_fbid:p==null?void 0:p.id,reply_target_clicked:c});d.setState(function(a){return{composerState:babelHelpers["extends"]({},a.composerState,{attachment:null,formattingStyle:void 0,inputState:{__type:"plain-text",selectionOffsets:{end:0,start:0},text:""},replyTargetClicked:!1,usedWritingHelpToCompose:!1})}})}else{d.$12(j);a=function(){o(function(a){if(d.$7===!1)return;var c=b("getCommentDataFromComposerState")({attachmentMappers:d.$1,composerState:d.state.composerState,contentBlockToTextWithEntitiesInputMessageMappers:d.$2});if(c==null){d.setState(function(a){if(a.composerState.isLocked)return{composerState:babelHelpers["extends"]({},a.composerState,{isLocked:!1})};else return a});d.props.commentAction==="EDIT"&&m(null,{});return}d.$14();m(c.commentData,c.entitiesByID);if(d.$7===!1)return;d.setState(function(b){return{composerState:babelHelpers["extends"]({},a(b.composerState),{attachment:null,formattingStyle:void 0,isLocked:!1,replyTargetClicked:!1,usedWritingHelpToCompose:!1})}})})};d.setState(function(a){return{composerState:babelHelpers["extends"]({},a.composerState,{isLocked:!0})}},a)}},d.$15=function(){d.$4&&!d.$5&&(new(b("WebFunnelLogger"))("UFI2ComposerWebFunnelDefinition").setSessionKey(d.$4).setAction("first_input").log(),d.$5=!0);q()&&(d.$8=b("UFICommonInteractionLogger").startInteraction(b("UFICommonInteractionEvents").UFI2_COMPOSER_KEYPRESS_LATENCY));return"not-handled"},d.$16=function(a){d.setState(function(b){b=b.composerState;if(b.isLocked)return{};var c=a(b);c&&c.inputState&&c.inputState.__type==="editor-state-based"&&c.inputState.editorState.getCurrentContent().getBlockMap().some(function(a){return a.getText()!=null})&&o();if(c){b=babelHelpers["extends"]({},b,c);return{composerState:b}}else return null})},d.$17=function(a){d.$6=a,d.props.onInputRefUpdated&&d.props.onInputRefUpdated(a)},d.$18=function(){if(!d.$4){var a=d.props.actor.id;a&&(d.$4=a+"_"+Date.now(),new(b("WebFunnelLogger"))("UFI2ComposerWebFunnelDefinition").setSessionKey(d.$4).setAction("focus").setFunnelTags(["depth_"+d.props.depth]).markStart().log())}},d.$19=function(a){var c=d.state.composerState.inputState;switch(c.__type){case"editor-state-based":a.preventDefault();d.setState(function(a){var c=a.composerState.inputState;if(c.__type!=="editor-state-based"){b("FBLogger")("ufi2").warn("While handling a focus trigger click on an editor-state-based input the `inputState` type unexpectedly changed to `%s`.",c.__type);return null}var d=c.editorState,e=d.getSelection();if(e.getHasFocus()===!1){var f=e.set("hasFocus",!0);return b("ifRequired")("EditorState",function(b){return{composerState:babelHelpers["extends"]({},a.composerState,{inputState:babelHelpers["extends"]({},c,{editorState:b.forceSelection(d,f)})})}},function(){return null})}else return null});break;case"plain-text":default:a.preventDefault(),b("getActiveElement")()!==d.$6&&d.focus()}},d.$20=function(){var a;for(var b=arguments.length,c=new Array(b),e=0;e<b;e++)c[e]=arguments[e];(a=d.$1).push.apply(a,c);var f=!1;return{remove:function(){if(f)return;f=!0;this.$1=this.$1.filter(function(a){return c.includes(a)===!1})}}},d.$21=function(){var a;for(var b=arguments.length,c=new Array(b),e=0;e<b;e++)c[e]=arguments[e];(a=d.$2).push.apply(a,c);var f=!1;return{remove:function(){if(f)return;f=!0;this.$2=this.$2.filter(function(a){return c.includes(a)===!1})}}},d.isUnfinished=function(){if(d.props.initialComposerState){if(d.props.initialComposerState!==d.state.composerState)return!0}else if(!b("isUFI2ComposerStateEmpty")(d.state.composerState))return!0;return!1},d.$22=function(a){var c,e=a.actions;a=a.inputProps;var f=d.props,g=f.depth;f=f.feedback;var i=a.composerState,j=a.isCommentDenied,k=b("getPlainTextFromUFI2InputState")(i.inputState).trim()!=="";f=(c=(c=(c=(c=a.placeholder)!=null?c:d.props.placeholder)!=null?c:(c=i.commentAssociatedWithReply)==null?void 0:c.commentComposerPlaceholderText)!=null?c:f.comment_composer_placeholder)!=null?c:g>0?h._("\u8fd4\u4fe1\u3059\u308b\u2026"):h._("\u30b3\u30e1\u30f3\u30c8\u3059\u308b\u2026");return l.jsxs("form",{className:b("joinClasses")((j?"_882o":"")+(i.isLocked?" _4w75":"")+" _129h"+(k?" _7c_q":""),a.formClassName),children:[l.jsx(b("UFI2ProgressiveComposerInput.react"),{className:b("joinClasses")((k===!1?"_7c_r":"")+" _4w79",a.className),composerState:a.composerState,depth:g,handleBeforeInput:d.$15,handleCommand:a.handleCommand,handleKeyCommand:a.handleKeyCommand,handlePastedFiles:a.handlePastedFiles,keyBindingFn:a.keyBindingFn,onBlur:a.onBlur,onClick:a.onClick,onCommit:a.onCommit,onComposerStateChange:a.onComposerStateChange,onFocus:a.onFocus,onInputRefUpdated:a.onInputRefUpdated,placeholder:f,ref:d.$3,webDriverTestID:a.webDriverTestID}),e?l.jsx(b("UFI2ComposerActions.react"),{children:e}):null]})},a)||babelHelpers.assertThisInitialized(d)}var e=d.prototype;e.$12=function(a){var c=this.props.commentAction,d=c==="ADD"?b("UFICommonInteractionEvents").UFI2_OPTIMISTIC_COMMENT:b("UFICommonInteractionEvents").UFI2_OPTIMISTIC_COMMENT_EDIT;b("UFICommonInteractionLogger").startInteraction(d,a+d);d=c==="ADD"?b("UFICommonInteractionEvents").UFI2_PERSISTED_COMMENT:b("UFICommonInteractionEvents").UFI2_PERSISTED_COMMENT_EDIT;b("UFICommonInteractionLogger").startInteraction(d,a+d)};e.componentDidUpdate=function(a,c){a=this.$8;a&&c.composerState!==this.state.composerState&&(this.$8=null,b("UFICommonInteractionLogger").endInteractionAtEndOfFrame(a))};e.$14=function(){this.$4&&(new(b("WebFunnelLogger"))("UFI2ComposerWebFunnelDefinition").setSessionKey(this.$4).setAction("commit").markEnd().log(),delete this.$4,this.$5=!1)};e.componentDidMount=function(){var c=this;this.$7=!0;var d=this.props,e=d.depth;d=d.feedbackSource;d===1&&(e===0?b("UFIODSLogger").bump("composer.newsfeed.toplevel.componentDidMount","relay"):b("UFIODSLogger").bump("composer.newsfeed.replies.componentDidMount","relay"));b("gkx")("708253")||this.$10.addSubscriptions(b("Run").onBeforeUnload(function(){return a.PageTransitions&&b("UFINavigationCheck").isLeaving(a.PageTransitions)&&c.isUnfinished()?h._("\u307e\u3060\u30b3\u30e1\u30f3\u30c8\u3092\u66f8\u304d\u7d42\u3048\u3066\u3044\u307e\u305b\u3093\u3002\u5b8c\u4e86\u305b\u305a\u306b\u79fb\u52d5\u3057\u307e\u3059\u304b\uff1f"):void 0}))};e.componentWillUnmount=function(){this.$7=!1,this.$10.release(),window.cancelAnimationFrame(this.$9)};e.execCommand=function(a){this.$3.current?this.$3.current.execCommand(a):b("FBLogger")("ufi2").warn("Someone tried to run a `%s` command, but a ref to the composer was not yet available.",a.__type)};e.focus=function(){var a=this,c=this.$6;c&&this.$16(function(d){var e=b("getScrollableAreaContainingNode")(c);if(e){var f=e.getScrollTop();a.$9=b("requestAnimationFrameAcrossTransitions")(function(){e.setScrollTop(f,!1)})}else{var g=b("Vector").getScrollPosition();a.$9=b("requestAnimationFrameAcrossTransitions")(function(){n(g.x,g.y)})}d.inputState.__type==="plain-text"&&c.focus();return b("setFocusOnUFI2ComposerInputState")(d)})};e.render=function(){var a=this.props,c=a.actor,d=a.className;a=a.depth;var e=this.state.UFI2ComposerPluginPipeline;return l.jsx(b("UFI2ErrorBoundary.react"),{children:l.jsxs(l.Fragment,{children:[b("cr:955308")!=null?l.jsx(b("cr:955308"),{isUnfinished:this.isUnfinished}):null,l.jsx(b("UFI2CommentRow.react"),{actor:c,className:d,"data-ft":b("TrackingNodes").getTrackingInfo(b("TrackingNodes").types.ADD_COMMENT_BOX),"data-testid":void 0,depth:a,isComposer:!0,onAvatarClick:this.$19,children:l.jsx(e,{actions:this.props.actions||p,initialComposerState:this.props.initialComposerState,inputProps:{commentAction:this.props.commentAction,composerState:this.state.composerState,depth:a,formClassName:this.props.formClassName,onClick:this.$19,onCommit:this.$13,onComposerStateChange:this.$16,onFocus:this.$18,onInputRefUpdated:this.$17},onInstallAttachmentMappers:this.$20,onInstallContentBlockToTextWithEntitiesInputMessageMappers:this.$21,render:this.$22})})]})})};return d}(l.Component);f.displayName="UFI2Composer";e.exports=c(f,{actor:j!==void 0?j:j=b("UFI2Composer_actor.graphql"),feedback:k!==void 0?k:k=b("UFI2Composer_feedback.graphql")})}),null);
__d("UFI2PaginationProgressIndicator.react",["cx","fbt","NumberFormat","React","joinClasses"],(function(a,b,c,d,e,f,g,h){"use strict";var i=b("React");a=function(a){var c=a.Selectors,d=a.className,e=a.depth,f=a.listState,g=a.pageSize;a=a.totalCount;var j=c.hasMoreInDirection({depth:e,direction:"forward",state:f,totalCount:a});c=c.getVisibleCommentsCount({depth:e,state:f});return a>=g&&j?i.jsx("span",{className:b("joinClasses")("_3bu3",d),children:h._("{total number of comments}\u4ef6\u4e2d{number of comments displayed}\u4ef6",[h._param("number of comments displayed",b("NumberFormat").formatInteger(c)),h._param("total number of comments",b("NumberFormat").formatInteger(a))])}):null};e.exports=a}),null);
__d("UFI2PrivateReplyIndicator.react",["fbt","React"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");function a(a){return h.jsx("span",{className:a.className,children:g._("\u30da\u30fc\u30b8\u304b\u3089\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3042\u308a\u307e\u3057\u305f")})}a.shouldRender=function(a){return a==="ALREADY_REPLIED"};e.exports=a}),null);
__d("UFI2ReactionsCount.react",["cx","fbt","invariant","JSResource","NumberFormat","React","ShimButton.react","UFI2CometRelayCreateFragmentContainer","UFI2PrimerDialogWrapper.react","UFI2Tooltip.react","UFIReactionsProfileBrowserUtils","intlList","lazyLoadComponent","qex","UFI2ReactionsCount_feedback.graphql"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var l=function(a){return k.jsx("span",babelHelpers["extends"]({},a))},m=b("lazyLoadComponent")(b("JSResource")("UFI2ReactionsCountTooltipContent.react").__setRef("UFI2ReactionsCount.react"));c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.$1=function(a){};d.render=function(){var a=this.props,c=a.feedback;a=a.relay;var d=c.i18n_reaction_count,e=c.id,f=c.important_reactors,g=c.reaction_count,h=c.viewer_actor,j=c.viewer_feedback_reaction_info;c=(c=(c=c.viewer_actor)==null?void 0:c.id)!=null?c:"0";g=g==null?void 0:g.count;e!=null||i(0,3978);g!=null||i(0,3979);d!=null||i(0,3980);if(g===0)return null;h=h==null?void 0:h.name;f=(f=f==null?void 0:f.nodes)!=null?f:[];j=j!=null;var o=j?f.length+1:f.length;o=o<g;var p=o?b("UFI2Tooltip.react"):l;o=o?{environment:a.environment,tooltipContentComponent:m,tooltipContentProps:{queryVariables:{feedbackTargetID:e},reactionCount:g}}:{};a=b("UFIReactionsProfileBrowserUtils").getPrimerProps({actorID:c,feedbackTargetID:e});c=((c=b("qex")._("1113951"))!=null?c:!1)&&((e=b("qex")._("1115760"))!=null?e:!1);return k.jsx(b("UFI2PrimerDialogWrapper.react"),{Component:b("ShimButton.react"),props:babelHelpers["extends"]({},a,{children:k.jsxs(k.Fragment,{children:[!c&&k.jsx("span",{"aria-hidden":!0,className:"_3dlg",children:k.jsx(p,babelHelpers["extends"]({className:"_3dlh"},o,{children:k.jsx("span",{className:"_81hb",children:d})}))},"count-sentence"),k.jsx("span",{className:"_3dlh _3dli","data-testid":void 0,children:k.jsx(p,babelHelpers["extends"]({},o,{children:k.jsx("span",{className:"_81hb",children:k.jsx(n,{actorName:h,i18nReactionCount:d,importantReactors:f,isPrivateFeedback:c,reactionCount:g,viewerReacted:j})})}))},"social-sentence")]}),className:"_3dlf"+(c?" _8io7":""),"data-testid":"UFI2ReactionsCount/root",form:this.props.disableReactorDialog===!0?"none":"link",onClick:this.$1})})};return c}(k.Component);c.displayName="UFI2ReactionsCount";function n(a){var c=a.actorName,d=a.i18nReactionCount,e=a.importantReactors,f=a.isPrivateFeedback;f=f===void 0?!1:f;var g=a.reactionCount;a=a.viewerReacted;if(a&&g===1)return c;if(!a&&e.length===0&&!f)return o(d,g);c=[a?h._("\u3042\u306a\u305f"):null].concat(e.map(function(a){return a==null?void 0:a.name})).filter(Boolean);a=g-c.length;if(f){e=3;f=c.slice(0,e);e=g>f.length;return b("intlList")([].concat(f,[e&&f.length>0&&h._("\u305d\u306e\u4ed6")]).filter(Boolean))}a>0&&c.push(h._({"*":"\u4ed6{number}\u4eba","_1":"\u4ed61\u4eba"},[h._plural(a,"number",o(d,a))]));return b("intlList")(c)}function o(a,c){var d=Math.floor(Math.log10(c));return d<3?b("NumberFormat").formatInteger(c):a}e.exports=a(c,{feedback:j!==void 0?j:j=b("UFI2ReactionsCount_feedback.graphql")})}),null);
__d("UFI2RealtimeRoot.react",["requireCond","cr:898976","React","cr:898975","UFI2RealtimeContext","UFI2SubscriptionManager"],(function(a,b,c,d,e,f){"use strict";var g=b("React");a=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$1=new(b("UFI2SubscriptionManager"))(),d.$2=null,d.$4=function(a){return d.$1.add(a)},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.$3=function(){this.$2!=null&&(this.$2.remove(),this.$2=null),this.$1.unsubscribeAll()};d.subscribe=function(){this.props.enabled&&this.$1.subscribeAllOnIdle()};d.componentDidMount=function(){var a=this,c=function(){a.$2=null,a.subscribe()};if(b("cr:898976")){var d=b("cr:898976").scheduleSpeculativeCallback(c);this.$2={remove:function(){b("cr:898976").cancelCallback(d)}}}else b("cr:898975")&&(this.$2=b("cr:898975").onAfterLoad(c))};d.componentWillUnmount=function(){this.$3(),this.$1.reset()};d.render=function(){return g.jsx(b("UFI2RealtimeContext").Provider,{value:this.$4,children:this.props.children})};return c}(g.Component);a.defaultProps={enabled:!0};e.exports=a}),null);
__d("UFI2RepliesExpander.react",["cx","fbt","invariant","FBLogger","GraphQLGender","Image.react","Middot.react","NumberFormat","React","TrackingNodes","UFI2CometRelayCreateFragmentContainer","UFI2CommentsPagerRenderer.react","UFI2RepliesExpanderTimestampLabel.react","joinClasses","useServerTime","UFI2RepliesExpander_highlightedComments.graphql"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function a(a){var c=a.Selectors,d=a.className,e=a.depth,f=a.expandList,g=a.listState,h=a.onMouseEnter,j=a.viewOption;e===1||i(0,2662);if(!c.isRepliesExpanderVisible({depth:e,state:g}))return null;var m=c.getRepliesExpanderCount({depth:e,state:g});if(m==null){b("FBLogger")("ufi2").warn("UFI2RepliesExpander: Tried rendering a visible replies expander without a count");return null}c=c.isRepliesExpanderLoading({depth:e,state:g});var n=a.highlightedComments||[];g=n[0];a=g==null?void 0:g.author;g=a!=null;a=b("TrackingNodes").getTrackingInfo(b("TrackingNodes").types.VIEW_ALL_COMMENTS);return k.jsx(b("UFI2CommentsPagerRenderer.react"),{className:b("joinClasses")(g?"_77bj":"",d),depth:e,isLoading:c,nestedPagerIconClassName:g?"_3eof":"",onClick:function(){return f({focusComposer:!0})},onMouseEnter:h,trackingInfo:a,children:function(a){return k.jsx(l,{count:m,highlightedComments:n,pagerTextClassName:a,viewOption:j})}})}function l(a){var c=a.count,d=a.highlightedComments,e=a.pagerTextClassName;a=a.viewOption;d=d[0];var f=d==null?void 0:d.author,g=f!=null;d=d==null?void 0:d.created_time;c=h._({"*":{"*":"\u8fd4\u4fe1{count}\u4ef6"}},[h._param("count",b("NumberFormat").formatInteger(c),[0,c]),h._plural(c)]);var i=b("useServerTime")();i=f!=null&&d!=null&&(i/1e3-d<43200||a==="RECENT_ACTIVITY");return k.jsxs(k.Fragment,{children:[k.jsxs("span",{className:e,children:[g&&f?k.jsxs(k.Fragment,{children:[k.jsx(m,{actor:f}),"\xa0",k.jsx(b("Middot.react"),{}),"\xa0"]}):null,c]}),d!=null&&i?k.jsx(b("UFI2RepliesExpanderTimestampLabel.react"),{timestamp:d}):null]})}function m(a){var c;a=a.actor;if(a==null)return null;var d=a.name;if(!d)return null;c=(c=a.profile_picture)==null?void 0:c.uri;if(!c)return null;a=new(b("GraphQLGender"))(a.gender);return k.jsxs("div",{className:"_3eog",children:[k.jsx("span",{className:"_3eoh",children:k.jsx(b("Image.react"),{alt:d,className:"img _3eoi",src:c})}),k.jsx("span",{className:"_3eol ellipsis",children:h._({"*":"{actor}\u3055\u3093\u304c\u8fd4\u4fe1\u3057\u307e\u3057\u305f"},[h._name("actor",d,a.toIntlVariationsEnum())])})]})}d=c(a,{highlightedComments:j!==void 0?j:j=b("UFI2RepliesExpander_highlightedComments.graphql")});d.PagerLabel=l;e.exports=d}),null);
__d("UFI2SeenByCount.react",["cx","fbt","invariant","ActorURI","React","UFI2AbstractButtonWrapper.react","UFI2CometRelayCreateFragmentContainer","UFI2PrimerDialogWrapper.react","URI","XUFIGroupSeenByProfileBrowserController","XUFIGroupSeenByProfileDialogController","joinClasses","UFI2SeenByCount_feedback.graphql"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.$1=function(a){};d.render=function(){var a=this.props,c=a.className;a=a.feedback;var d=a.can_show_seen_by,e=a.seen_by,f=a.share_fbid,g=e==null?void 0:e.count;if(!d||!g)return null;d=e==null?void 0:e.i18n_seen_by_count;d!=null||i(0,5404);e=e==null?void 0:e.seen_by_everyone;e!=null||i(0,5405);a=a==null?void 0:(a=a.viewer_actor)==null?void 0:a.id;a||i(0,5406);var j=b("ActorURI").create(b("XUFIGroupSeenByProfileBrowserController").getURIBuilder().setInt("id",f).getURI(),a);a=b("ActorURI").create(b("XUFIGroupSeenByProfileDialogController").getURIBuilder().setInt("id",f).getURI(),a);f=new(k||(k=b("URI")))("/ajax/ufi/seen_list_hovercard.php").setQueryData({id:f});return l.jsx(b("UFI2PrimerDialogWrapper.react"),{Component:b("UFI2AbstractButtonWrapper.react"),props:{ajaxify:a.toString(),className:b("joinClasses")("_33zy",c),"data-hovercard":f,"data-testid":"UFI2SeenByCount/root",href:j.toString(),label:e===!0?h._("\u5168\u54e1\u304c\u65e2\u8aad"):h._({"*":"{seenByCount}\u4eba\u304c\u65e2\u8aad"},[h._param("seenByCount",d,[0,g])]),onClick:this.$1,rel:"dialog",role:"button"}})};return c}(l.Component);c.displayName="UFI2SeenByCount";e.exports=a(c,{feedback:j!==void 0?j:j=b("UFI2SeenByCount_feedback.graphql")})}),null);
__d("UFI2SharesCount.react",["cx","fbt","ActorURIConfig","JSResource","React","UFI2AbstractButtonWrapper.react","UFI2CometRelayCreateFragmentContainer","UFI2PrimerDialogWrapper.react","UFI2Tooltip.react","URI","XViewSharesPermalinkController","joinClasses","lazyLoadComponent","recoverableViolation","UFI2SharesCount_feedback.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var l=b("lazyLoadComponent")(b("JSResource")("UFI2SharesCountTooltipContent.react").__setRef("UFI2SharesCount.react"));c=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.$1=function(){};d.render=function(){var a,c,d=this.props,e=d.className,f=d.feedback;d=d.relay;var g=f.share_count,i=f.i18n_share_count;g=(g=g==null?void 0:g.count)!=null?g:0;if(g===0)return null;a=(a=(a=f.viewer_actor)==null?void 0:a.id)!=null?a:0;var m=f.share_fbid;f=f.id;if(!f){b("recoverableViolation")("UFI2SharesCount tried to render without a feedback ID.","ufi2");return null}if(!m){b("recoverableViolation")("UFI2SharesCount tried to render without a share FBID. Feedback Target ID: "+f,"ufi2");return null}c=b("XViewSharesPermalinkController").getURIBuilder().setInt("id",m).getURI().setQueryData((c={},c[b("ActorURIConfig").PARAMETER_ACTOR]=a,c));a=new(j||(j=b("URI")))("/ajax/shares/view").setQueryData((m={target_fbid:m},m[b("ActorURIConfig").PARAMETER_ACTOR]=a,m));m=k.jsx(b("UFI2PrimerDialogWrapper.react"),{Component:b("UFI2AbstractButtonWrapper.react"),props:{ajaxify:a.toString(),className:"_3rwx","data-testid":"UFI2SharesCount/root",href:c.toString(),label:h._({"*":"\u30b7\u30a7\u30a2{number}\u4ef6","_1":"\u30b7\u30a7\u30a21\u4ef6"},[h._plural(g,"number",i)]),onClick:this.$1,rel:"dialog"}});return k.jsx(b("UFI2Tooltip.react"),{className:b("joinClasses")("_355t",e),environment:d.environment,tooltipContentComponent:l,tooltipContentProps:{queryVariables:{feedbackTargetID:f}},children:m})};return c}(k.Component);c.displayName="UFI2SharesCount";e.exports=a(c,{feedback:i!==void 0?i:i=b("UFI2SharesCount_feedback.graphql")})}),null);
__d("UFI2TopReactions.react",["cx","fbt","invariant","CometUFIReactionIconImpl.react","JSResource","React","ReactDOM","RTLKeys","ShimButton.react","UFI2CometRelayCreateFragmentContainer","UFI2PrimerDialogWrapper.react","UFI2ReactionIconTooltipTitle.react","UFI2Tooltip.react","UFIReactionsProfileBrowserUtils","getReactionKeyFromType","isNotOutlierReaction","joinClasses","lazyLoadComponent","nullthrows","qex","stylex","UFI2TopReactions_feedback.graphql"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var l=b("lazyLoadComponent")(b("JSResource")("UFI2ReactionIconTooltipContent.react").__setRef("UFI2TopReactions.react")),m={icon:{verticalAlign:"khgy6jzf"}};c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(c=d=a.call.apply(a,[this].concat(f))||this,d.$1={},d.state={selectedReactionIndex:null},d.$3=function(a){d.$2=a},d.$5=function(a){switch(a.keyCode){case b("RTLKeys").getLeft():a.preventDefault();d.$4(-1);break;case b("RTLKeys").getRight():a.preventDefault();d.$4(1);break}},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.componentDidUpdate=function(){var a=this.state.selectedReactionIndex;if(a!==null){a=b("ReactDOM").findDOMNode(this.$1[a]);a!=null&&a.focus()}};d.$4=function(a){var c=this.props.feedback.top_reactions,d=b("nullthrows")(c==null?void 0:c.edges);this.setState(function(b){return{selectedReactionIndex:Math.max(0,Math.min(b.selectedReactionIndex+a,d.length-1))}})};d.$6=function(){var a=b("qex")._("881636");a=a!=null?a.toString():"16";switch(a){case"16":case"18":case"20":return a;default:return"16"}};d.$7=function(a,c,d){var e=this,f=c.i18n_reaction_count;c=c.node;var g=this.props.relay.environment,j=this.state.selectedReactionIndex,n=c==null?void 0:c.localized_name;c=c==null?void 0:c.reaction_type;var o=this.props.feedback.id;c!=null||i(0,4015);o!=null||i(0,4016);var p=b("getReactionKeyFromType")(c);a=b("UFIReactionsProfileBrowserUtils").getPrimerProps({actorID:a,feedbackTargetID:o,reactionKey:p});var q=j===null;j=j===d;q=q&&d===0||j?0:-1;j=k.jsxs("div",{children:[k.jsx(b("UFI2ReactionIconTooltipTitle.react"),{children:n}),h._("\u8aad\u307f\u8fbc\u307f\u4e2d...")]});var r=this.$6();return k.jsx(b("UFI2Tooltip.react"),{className:"_1n9k","data-testid":void 0,environment:g,placeholder:j,tabIndex:-1,tooltipContentComponent:l,tooltipContentProps:{i18nReactionName:n,placeholder:j,queryVariables:{feedbackTargetID:o,reactionType:c},reactionType:c},children:k.jsx(b("UFI2PrimerDialogWrapper.react"),{Component:b("ShimButton.react"),props:babelHelpers["extends"]({},a,{"aria-label":h._("{i18nReactionCount}{i18nReactionName}",[h._param("i18nReactionCount",f),h._param("i18nReactionName",n)]),children:k.jsx(b("CometUFIReactionIconImpl.react"),{reaction:p,size:r,xstyle:m.icon},"reactionIcon"),className:"_1n9l",form:this.props.shouldNotOpenTopReactorsDialogOnClick===!0?"none":"link",ref:function(a){e.$1[d]=a},tabIndex:q})})},p)};d.render=function(){var a,c=this,d=this.props,e=d.className;d=d.feedback;var f=d.top_reactions;f=f==null?void 0:f.edges;f||i(0,4017);var g=(a=(a=d.viewer_actor)==null?void 0:a.id)!=null?a:"0";if(f.length===0)return null;a=f.filter(function(a){return((a=a.node)==null?void 0:a.reaction_type)!=null}).filter(b("isNotOutlierReaction")(d)).slice(0,3);return k.jsx("span",{"aria-label":h._("\u30ea\u30a2\u30af\u30b7\u30e7\u30f3\u3057\u305f\u4eba\u3092\u30c1\u30a7\u30c3\u30af"),className:b("joinClasses")("_1n9r",e),onKeyDown:this.$5,ref:this.$3,role:"toolbar",children:a.map(function(a,b){return c.$7(g,a,b)})})};return c}(k.Component);c.displayName="UFI2TopReactions";e.exports=a(c,{feedback:j!==void 0?j:j=b("UFI2TopReactions_feedback.graphql")})}),null);
__d("UFI2UserToPageCommentLinkItem.react",["fbt","Bootloader","MessengerSMBExperimentDebugTypedLogger","React","UFI2LinkWrapper.react","XUISpinner.react"],(function(a,b,c,d,e,f,g){"use strict";var h=b("React");c=b("React");var i=c.useCallback,j=c.useEffect,k=c.useRef,l=c.useState;function a(a){var c=a.className,d=a.pageID,e=a.prefilledContent,f=a.postID,m=a.permalink,n=k(null),o=k(null);a=l(!1);var p=a[0],q=a[1];a=i(function(){if(p===!0)return;q(!0);n.current&&n.current.remove();n.current=b("Bootloader").loadModules(["FantaTabActions","MercuryIDs"],function(a,c){c=c.getThreadIDFromUserID(d);var h=e!=null?m!=null?g._("{comment} (Re: {link})",[g._param("comment",e),g._param("link",m)]).toString():e:m!=null?g._("(Re: {link})",[g._param("link",m)]).toString():null;a.openTab(c,["user_private_reply"],h);o.current==null&&(o.current=new(b("MessengerSMBExperimentDebugTypedLogger"))());o.current.setPostID(f).setPageID(d).setExperiment("user_messaging_on_page_comment").setEvent("user_click_message_cta_desktop").log();q(!1)},"UFI2UserToPageCommentLinkItem.react")},[p,d,e,m,f]);j(function(){o.current=new(b("MessengerSMBExperimentDebugTypedLogger"))();o.current.setPostID(f).setPageID(d).setExperiment("user_messaging_on_page_comment").setEvent("user_impression_message_cta_desktop").log();return function(){n.current&&n.current.remove()}});var r=g._("Message");return c!=null?h.jsxs(b("UFI2LinkWrapper.react"),{href:"#",name:c,onClick:a,role:"button",children:[r,p&&h.jsx(b("XUISpinner.react"),{})]}):h.jsxs(b("UFI2LinkWrapper.react"),{href:"#",onClick:a,role:"button",children:[r,p&&h.jsx(b("XUISpinner.react"),{})]})}e.exports=a}),null);
__d("UFI2UserToPageCommentLink.react",["invariant","React","UFI2CometRelayCreateFragmentContainer","UFI2UserToPageCommentLinkItem.react","UFI2UserToPageCommentLink_feedback.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function a(a){var c;if(!j(a))return null;c=(c=a.feedback.page_private_reply)==null?void 0:c.status;if(c==null)return null;var d=a.WrapperComponent;switch(c){case"NOT_USER_CREATED":var e=(c=a.feedback.page_private_reply)==null?void 0:(c=c.page)==null?void 0:c.id,f=(c=a.feedback.page_private_reply)==null?void 0:c.prefilled_content,h=(c=a.feedback.page_private_reply)==null?void 0:c.permalink,k=(c=a.feedback.page_private_reply)==null?void 0:c.post_id;e!=null||g(0,5848);return i.jsx(d,{children:function(a){a=a.className;return i.jsx(b("UFI2UserToPageCommentLinkItem.react"),{className:a,pageID:e,permalink:h,postID:k,prefilledContent:f})}});default:return null}}a.displayName="UFI2UserToPageCommentLink";function j(a){var b,c,d;a=a.feedback;if(!a)return!1;b=(b=a.page_private_reply)==null?void 0:b.has_reply_permission;c=(c=a.page_private_reply)==null?void 0:c.user_can_private_reply;d=(d=a.viewer_actor)==null?void 0:d.id;a=(a=a.page_private_reply)==null?void 0:(a=a.page)==null?void 0:a.id;return b===!0&&d!=null&&a!=null&&d!==a&&c===!0}d=c(a,{feedback:h!==void 0?h:h=b("UFI2UserToPageCommentLink_feedback.graphql")});e.exports=d}),null);
__d("UFI2ViewCount.react",["cx","fbt","React","UFI2CometRelayCreateFragmentContainer","UFI2TooltipCometCompatWrapper.react","joinClasses","renderCrosspostedTooltipText","UFI2ViewCount_feedback.graphql"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=b("React");c=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;function a(a){var c=a.className;a=a.feedback;var d=a.video_view_count,e=a.video_view_count_reduced,f=a.total_video_posts,g=a.video_post_view_count,i=a==null?void 0:a.associated_video;if(a==null||d==null||e==null||f==null||g==null||(i==null?void 0:i.is_live_streaming)===!0||(i==null?void 0:i.is_profile_video)===!0)return null;a=Math.max(0,d-g);i=b("renderCrosspostedTooltipText")({otherPostsViews:a,postViews:g,posts:f});return j.jsx(b("UFI2TooltipCometCompatWrapper.react"),{alignH:"left",className:c,delayMountUntilHover:!0,position:"below",tooltip:i,children:j.jsx("span",{className:b("joinClasses")("_26fq"+(i?" _26fr":"")),"data-testid":void 0,children:h._({"*":"\u518d\u751f{count}\u56de"},[h._param("count",e),h._plural(d)])})})}e.exports=c(a,{feedback:i!==void 0?i:i=b("UFI2ViewCount_feedback.graphql")})}),null);
__d("UFI2ViewOptionsSelector.react",["cx","requireDeferred","AsyncRequest","BasicFBNux","CommentOrderingMode","CommentOrderingModeFalcoEvent","FanFundingStarsEventsTypedLogger","FBLogger","React","UFI2CometRelayCreateFragmentContainer","UFI2LinkWrapper.react","XBasicFBNuxGenShouldShowController","XUIAmbientNUX.react","deferredLoadComponent","joinClasses","OnVisible.react","UFI2ViewOptionsSelector_feedback.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("React");a=b("UFI2CometRelayCreateFragmentContainer").createFragmentContainer;b("UFI2CometRelayCreateFragmentContainer").graphql;var j=b("deferredLoadComponent")(b("requireDeferred")("UFI2ViewOptionsSelectorImpl.react"));c=function(a){babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.state={loadImmediately:!1,showNux:!1},c.$1=null,c.$2=null,c.loadImmediately=function(){if(c.state.loadImmediately)return;c.setState({loadImmediately:!0})},c.$3=function(a){if(!c.state.loadImmediately||!a)return;a.showPopover()},b)||babelHelpers.assertThisInitialized(c)}var d=c.prototype;d.componentDidMount=function(){var a=this;if(this.props.nuxID!=null){var c=this.props.nuxID,d=b("XBasicFBNuxGenShouldShowController").getURIBuilder().setInt("nux_id",this.props.nuxID).getURI();new(b("AsyncRequest"))().setURI(d).setHandler(function(d){if(d.payload){d=d.payload.should_show_nux;d&&b("BasicFBNux").onView(c);a.setState({showNux:d})}}).send()}};d.render=function(){var a=this,c=this.props,d=c.selectedViewOption,e=c.className,f=c.linkClassName,g=c.caretClassName,h=c.feedback;c=((c=h)!=null?c.localized_comment_orderings:c)||[];if(c.length<=1)return null;var k=c.find(function(a){return a.value===d});if(k==null){b("FBLogger")("ufi2").mustfix("SelectedOption %s missing from possible options, failed to render UFI2ViewOptionsSelector",d);return null}var l=function(){var a=h.share_fbid;if(d!=null&&d!=="%future added value"&&a!=null){var c=b("CommentOrderingMode")[d]===h.default_comment_ordering?"default":"changed";b("CommentOrderingModeFalcoEvent").log(function(){return{comment_ordering_mode:b("CommentOrderingMode")[d],event_type:c,feedback_id:a}});b("CommentOrderingMode")[d]==="star_comments"&&new(b("FanFundingStarsEventsTypedLogger"))().setEvent("stars_comment_filter_click").setContentID(a).setEventData(new Map([["event_type",c]])).log()}};l=i.jsx(b("OnVisible.react"),{onVisible:l,children:i.jsxs(b("UFI2LinkWrapper.react"),{className:b("joinClasses")(f,"_21q1"),"data-ordering":k.value,"data-testid":void 0,onClick:this.loadImmediately,role:"button",children:[k.title,i.jsx("div",{className:b("joinClasses")(g,"_1ojy")})]})});f=function(c){a.setState({showNux:!1}),a.props.nuxID!=null&&b("BasicFBNux").onDismiss(a.props.nuxID)};return i.jsxs("div",{children:[i.jsx("div",{className:b("joinClasses")(e,"_21ij"),"data-testid":void 0,ref:function(b){return a.$2=b},children:i.jsx(i.Suspense,{fallback:l,loading:l,children:i.jsx(j,{alignh:this.props.alignh,loadImmediately:this.state.loadImmediately,menuClassName:this.props.menuClassName,menuRef:this.$3,onChange:this.props.onChange,ref:function(b){return a.$1=b},selectedOption:k,selectorOptions:c,children:l})})}),this.state.showNux&&i.jsx(b("XUIAmbientNUX.react"),{contextRef:function(){return a.$2},onCloseButtonClick:f,position:"right",shown:this.state.showNux,width:"normal",children:this.props.nuxString})]})};return c}(i.PureComponent);e.exports=a(c,{feedback:h!==void 0?h:h=b("UFI2ViewOptionsSelector_feedback.graphql")})}),null);