/*!CK:1390766678!*//*1452545743,*/

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

__d("ActorSelectorNuxTypes",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={COMPOSER:"composer_seen_count",COMPOSER_COVERED:"composer_covered_seen_count",M_COMPOSER:"m_composer_seen_count",M_UFI:"m_ufi_seen_count",UFI:"ufi_seen_count",UFI_TIMELINE:"ufi_timeline_seen_count",UFI_TIMELINE_COVERED:"ufi_timeline_covered_seen_count"};},null);
__d('PageVoiceDropdownSelector.react',['BootloadedComponent.react','Image.react','JSResource','React','XUIPopoverButton.react','XUISpinner.react','cx','ix'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o){'use strict';if(c.__markCompiled)c.__markCompiled();var p=k.PropTypes,q=k.createClass({displayName:'PageVoiceDropdownSelector',propTypes:{loading:p.bool,maxWidth:p.number,pages:p.object.isRequired,selectedActorID:p.string,showPageName:p.bool,suppressed:p.bool.isRequired,user:p.object.isRequired,onChange:p.func.isRequired,onClick:p.func.isRequired},getDefaultProps:function(){return {showPageName:false};},getInitialState:function(){return {dialogShown:false,bootloadFinished:false};},_onChangeActor:function(r){this.props.onChange(r);this.setState({dialogShown:false});},_getDialogContextRef:function(){return this.refs['open-menu-button'];},_onBootloadFinished:function(){this.setState({bootloadFinished:true});},render:function(){var r=this.state.dialogShown&&!this.state.bootloadFinished,s=this.props.loading||r,t=null;if(s)t=k.createElement('div',{className:(!this.props.suppressed?"_3-8_":'')+(' '+"_2wk7")},k.createElement(m,null));var u=null;if(this.state.dialogShown)u=k.createElement(h,babelHelpers._extends({bootloadLoader:j('PageVoiceDropdownSelectorMenu.react'),bootloadPlaceholder:k.createElement('div',null),onComponentLoad:this._onBootloadFinished},this.props,{contextRef:this._getDialogContextRef,shown:true,shownBusinessID:this.state.shownBusinessID,onChange:this._onChangeActor,onToggle:this._onToggle}));return (k.createElement('span',null,k.createElement(l,{className:"_4z8-",image:k.createElement(i,{height:16,src:this._getSelectedImageSource(),width:16}),label:this.props.showPageName?this._getSelectedActorName():'',maxwidth:this.props.maxwidth,ref:'open-menu-button',suppressed:this.props.suppressed,type:'button',onClick:this._onButtonClick}),u,t));},_onButtonClick:function(event){this.setState({dialogShown:!this.state.dialogShown,shownBusinessID:this.state.defaultBusinessID},(function(){return this.props.onClick(event);}).bind(this));},_onToggle:function(r){this.setState({dialogShown:r});},_getSelectedImageSource:function(){var r=this.props.selectedActorID;if(!r)return '';if(r===this.props.user.id)return this.props.user.thumbSrc||'';return this.props.pages[r].thumbSrc||'';},_getSelectedActorName:function(){var r=this.props.selectedActorID;if(!r)return '';if(r===this.props.user.id)return this.props.user.name||'';return this.props.pages[r].name||'';}});f.exports=q;},null);
__d('ActorSelector.react',['BizSiteIdentifier.brands','BootloadedComponent.react','Bootloader','Event','JSResource','PageVoiceDropdownSelector.react','React','ReactDOM','ShortProfiles','TooltipData','cx','emptyFunction','getObjectValues','goURI','joinClasses','tidyEvent'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w){if(c.__markCompiled)c.__markCompiled();var x=n.PropTypes,y=500,z=n.createClass({displayName:'ActorSelector',propTypes:{actorIDs:x.array.isRequired,actorPermissions:x.object,loading:x.bool,nuxBody:x.node,nuxEnabled:x.bool,nuxHoverContext:x.object,onChange:x.func.isRequired,onCompleteNux:x.func,onShowNux:x.func,selectedActorID:x.string,settingsURI:x.string,showName:x.bool,showNameMaxWidth:x.number,suppressed:x.bool,tooltipConstructor:x.func},getDefaultProps:function(){return {suppressed:true};},getInitialState:function(){return {actorData:{},nuxShown:false};},componentWillMount:function(){this._canSetState=true;this._fetchActorData();},_getNUXContextRef:function(){return this.refs.selector;},render:function(){if(!this.props.selectedActorID||!this.state.actorData[this.props.selectedActorID])return n.createElement('div',null);if(this.props.actorIDs.length===0)return n.createElement('div',null);var aa=null;if(this.state.nuxShown)aa=n.createElement(i,{bootloadLoader:l('ActorSelectorNUXLayer.react'),bootloadPlaceholder:n.createElement('span',null),onCompleteNux:this._onCompleteNux,onClickSettings:this._onClickSettings,settingsURI:this.props.settingsURI,shown:true,contextRef:this._getNUXContextRef,nuxBody:this.props.nuxBody});return (n.createElement('span',{className:v("_6vh",this.props.className)},n.createElement('span',{ref:'selector'},n.createElement(m,{loading:this.props.loading,permissions:this.props.actorPermissions,pages:this.state.actorData,onChange:this.props.onChange,onClick:this._onClickSelector,selectedActorID:this.props.selectedActorID,searchBarVisible:true,showBusinessPages:false,showPageName:this.props.showName,showNameMaxWidth:this.props.showNameMaxWidth,showPersonalPagesInRoot:!h.isBizSite(),suppressed:this.props.suppressed,user:t(this.state.actorData)[0]})),aa));},componentDidMount:function(){this._setTooltip();if(this.props.nuxEnabled)if(this.props.nuxHoverContext){var aa=w(k.listen(this.props.nuxHoverContext,'mouseenter',(function(){j.loadModules(["ActorSelectorNUXLayer.react"],s);var ba=setTimeout((function(){aa.remove();if(this.props.nuxEnabled)this.setState({nuxShown:true});}).bind(this),y),ca=w(k.listen(this.props.nuxHoverContext,'mouseleave',function(){clearTimeout(ba);ca.remove();}));}).bind(this)));}else this.setState({nuxShown:true});},componentDidUpdate:function(aa,ba){if(this.props.actorIDs.toString()!==aa.actorIDs.toString())this._fetchActorData();this._setTooltip();if(this.state.nuxShown&&!ba.nuxShown&&this.props.onShowNux)this.props.onShowNux();},componentWillUnmount:function(){this._canSetState=false;},_fetchActorData:function(){p.getMulti(this.props.actorIDs,(function(aa){if(this._canSetState)this.setState({actorData:aa});}).bind(this));},_onClickSelector:function(){if(this.state.nuxShown)this._onCompleteNux();},_onClickSettings:function(){this._onCompleteNux();u(this.props.settingsURI);},_onCompleteNux:function(){this.setState({nuxShown:false});if(this.props.onCompleteNux)this.props.onCompleteNux();},_setTooltip:function(){if(!this.refs.selector)return;var aa=this.state.actorData[this.props.selectedActorID];if(!aa)return;if(!this.props.tooltipConstructor)return;q.set(o.findDOMNode(this.refs.selector),this.props.tooltipConstructor(aa.name),'above','right');}});f.exports=z;},null);
__d('CenteredContainer.react',['React','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=h.PropTypes,l=h.createClass({displayName:'CenteredContainer',propTypes:{fullHeight:k.bool,vertical:k.bool,horizontal:k.bool},getDefaultProps:function(){return {fullHeight:false,vertical:false,horizontal:true};},render:function(){var m=(this.props.vertical?"_3bwv":'')+(this.props.horizontal?' '+"_3bww":''),n=h.Children.map(this.props.children,function(p){return (h.createElement('div',{className:"_3bwx"},p));}),o=j(this.props.className,this.props.fullHeight?"_5bpf":'');return (h.createElement('div',babelHelpers._extends({},this.props,{className:o}),h.createElement('div',{className:m},h.createElement('div',{className:"_3bwy"},n))));}});f.exports=l;},null);
__d('getDOMImageSize',['URI'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(n){n.onload=null;n.onerror=null;n.onreadystatechange=null;n._callback=null;n._thisObj=null;n._srcStr=null;n.parentNode&&n.parentNode.removeChild(n);}function j(){var n=this;if(n._callback)n._callback.call(n._thisObj,n.naturalWidth||n.width,n.naturalHeight||n.height,n._srcStr);i(n);}function k(){var n=this;if(n.readyState==='complete')j.call(n);}function l(){var n=this;if(n._callback)n._callback.call(n._thisObj,0,0,n._srcStr);i(n);}function m(n,o,p){p=p||null;if(!n){o.call(p,0,0,'');return;}var q=document.body;if(!q){setTimeout(m.bind(this,n,o,p),500);return;}var r;if(typeof n==='string'){r=n;}else if(typeof n==='object')if(typeof n.width==='number'&&typeof n.height==='number'){if(typeof n.src==='string'){r=n.src;if(n.naturalWidth&&n.naturalHeight){o.call(p,n.naturalWidth,n.naturalHeight,r);return;}}if(typeof n.uri==='string'){r=n.uri;if(n.width&&n.height){o.call(p,n.width,n.height,r);return;}}}else if(n instanceof h)r=n.toString();if(!r){o(0,0,n);return;}var s=document.createElement('img');s.onreadystatechange=k;s.onload=j;s.onerror=l;s._callback=o;s._thisObj=p;s._srcStr=r;s.src=r;s.style.cssText='\n    position:absolute;\n    left:-5000px;\n    top:-5000px;\n    width:auto;\n    height:auto;\n    clip:rect(0 0 0 0);\n  '.replace(/\s+/,' ');q.insertBefore(s,q.firstChild);}f.exports=m;},null);
__d('CachedDOMImageSizePool',['debounce','getDOMImageSize'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();function j(k,l){'use strict';this.$CachedDOMImageSizePool1={};this.$CachedDOMImageSizePool2=l;this.$CachedDOMImageSizePool3=0;this.$CachedDOMImageSizePool4=k;this.$CachedDOMImageSizePool5=h(this.$CachedDOMImageSizePool6,5000,this);this.$CachedDOMImageSizePool7={};this.$CachedDOMImageSizePool8={};}j.prototype.get=function(k,l,m){'use strict';if(!k){l.call(m,0,0,k);return;}var n=this.$CachedDOMImageSizePool1[k];if(n){n.lastAccessTime=Date.now();l.call(m,n.width,n.height,n.src);}else if(this.$CachedDOMImageSizePool7[k]){this.$CachedDOMImageSizePool7[k].push(l);this.$CachedDOMImageSizePool8[k].push(m);}else{this.$CachedDOMImageSizePool7[k]=[l];this.$CachedDOMImageSizePool8[k]=[m];i(k,this.$CachedDOMImageSizePool9,this);}};j.prototype.set=function(k,l,m){'use strict';if(this.$CachedDOMImageSizePool3>this.$CachedDOMImageSizePool4)this.$CachedDOMImageSizePool5();var n=this.$CachedDOMImageSizePool1;if(k&&!n[k]){var o={width:l,height:m,src:k,lastAccessTime:Date.now()};n[k]=o;this.$CachedDOMImageSizePool3++;}};j.prototype.$CachedDOMImageSizePool9=function(k,l,m){'use strict';this.set(m,k,l);var n=this.$CachedDOMImageSizePool7[m],o=this.$CachedDOMImageSizePool8[m];for(var p=0,q=n.length;p<q;p++)n[p].call(o[p],k,l,m);delete this.$CachedDOMImageSizePool7[m];delete this.$CachedDOMImageSizePool8[m];};j.prototype.$CachedDOMImageSizePool6=function(){'use strict';var k=Date.now(),l=this.$CachedDOMImageSizePool1,m=this.$CachedDOMImageSizePool3,n=this.$CachedDOMImageSizePool2;for(var o in l){var p=l[o];if(k-p.lastAccessTime>n){delete l[o];m--;}}this.$CachedDOMImageSizePool3=m;};f.exports=j;},null);
__d('BackgroundImage.react',['CachedDOMImageSizePool','React','XUISpinner.react','cx','invariant','joinClasses','clamp'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o=i.PropTypes,p='(-?(\\d+\\.)?\\d+(px|\\%))',q=new RegExp('^'+p+'?(\\s'+p+')?$','g'),r=new h(50,10*60*1000),s=i.createClass({displayName:'BackgroundImage',propTypes:{src:o.string,width:o.number.isRequired,height:o.number.isRequired,backgroundSize:o.oneOf(['contain','cover','containinside','coverinside']),loadingIndicatorStyle:o.oneOf(['none','large','small']),backgroundPosition:function(t,u,v){var w=t[u];if(w){!(typeof w==='string')?l(0):undefined;!w.match(q)?l(0):undefined;}!(t.backgroundFocus==null||t.backgroundPosition==null)?l(0):undefined;},backgroundFocus:function(t,u,v){var w=t[u];if(w){!(typeof w==='string')?l(0):undefined;!w.match(q)?l(0):undefined;}!(t.backgroundFocus==null||t.backgroundPosition==null)?l(0):undefined;},onImageLoad:o.func,optimizeResizeSpeed:o.bool,onContextMenu:o.func},getInitialState:function(){return {imageWidth:null,imageHeight:null,imageSrc:this.props.src,loading:true};},getDefaultProps:function(){return {optimizeResizeSpeed:false,loadingIndicatorStyle:'none'};},componentDidMount:function(){this._resolveImageSize();},componentDidUpdate:function(t){if(this.props.src!==this.state.imageSrc)this.setState({imageWidth:0,imageHeight:0,imageSrc:this.props.src,loading:true},this._resolveImageSize);},_resolveImageSize:function(){var t=this.state.imageSrc;if(t)r.get(t,this._onImageSizeResolved,this);},render:function(){var t={width:this.props.width+'px',height:this.props.height+'px'},u=m(this.props.className,"_5f0d");return (i.createElement('div',babelHelpers._extends({},this.props,{className:m(this.props.className,u),style:babelHelpers._extends({},this.props.style||{},t),onContextMenu:this.props.onContextMenu}),this._renderImage(),this._renderContent(),this._renderLoadingIndicator()));},_renderLoadingIndicator:function(){if(!this.state.loading||this.props.loadingIndicatorStyle==='none')return null;return (i.createElement('div',{className:"_1qe- _5lar"},i.createElement('div',{className:"_1qe_"},i.createElement('div',{className:"_1qf0"},i.createElement(j,{size:this.props.loadingIndicatorStyle})))));},_renderContent:function(){if(this.props.children)return (i.createElement('div',{className:"_1qe-"},i.createElement('div',{className:"_1qe_"},i.createElement('div',{className:"_1qf0"},this.props.children))));},_renderImage:function(){if(!this.state.imageWidth||!this.state.imageHeight)return;var t=this.props.width,u=this.props.height,v,w;switch(this.props.backgroundSize){case 'cover':v='cover';w=false;break;case 'coverinside':v='cover';w=true;break;case 'contain':v='contain';w=false;break;case 'containinside':v='contain';w=true;}var x=this.state.imageWidth,y=this.state.imageHeight,z=t/u,aa=x/y;if(v==='contain')if((x>t||!w)&&aa>=z){x=t;y=x/aa;}else if(y>u||!w){y=u;x=y*aa;}if(v==='cover')if((x>t||!w)&&aa>=z){y=u;x=y*aa;}else if(y>u||!w){x=t;y=x/aa;}var ba=this._getImageStyle(x,y);return (i.createElement('img',{alt:'',className:"_5i4g"+(this.props.optimizeResizeSpeed?' '+"_5sjv":''),style:ba,src:this.state.imageSrc}));},_getImageStyle:function(t,u){var v=['50%','50%'],w=this._getBackgroundPositionPxValue;if(this.props.backgroundPosition){v=this.props.backgroundPosition.split(' ');}else if(this.props.backgroundFocus){v=this.props.backgroundFocus.split(' ');w=this._getBackgroundFocusPxValue;}return {width:Math.round(t)+'px',height:Math.round(u)+'px',left:w(v[0],t,this.props.width),top:w(v[1]||v[0],u,this.props.height)};},_getBackgroundPositionPxValue:function(t,u,v){var w=parseFloat(t),x=t.substr(w.toString().length);if(x==='px')return t;return Math.round((v-u)*(w/100))+'px';},_getBackgroundFocusPxValue:function(t,u,v){var w=parseFloat(t),x=t.substr(w.toString().length);if(u<v)return '0';var y=x==='px'?w:Math.round(u*(w/100)),z=y-v/2;z=n(z,0,u-v);return -z+'px';},_onImageSizeResolved:function(t,u,v){if(!this.isMounted()||this.state.imageSrc!==v)return;var w=this.props.onImageLoad?this.props.onImageLoad.bind(null,t,u):null;this.setState({imageWidth:t,imageHeight:u,loading:false},w);}});f.exports=s;},null);
__d("XActorSelectorNuxSeenWriteController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/actor_selector\/nux\/mark_seen\/",{nux_type:{type:"Enum",required:true,enumType:1}});},null);
__d('UFIActorSelector.react',['ActorSelector.react','ActorSelectorNuxTypes','Arbiter','AsyncRequest','Parent','React','SubscriptionsHandler','UFICentralUpdates','UFIFeedbackTargets','UFIUserActions','XActorSelectorNuxSeenWriteController','fbt'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){if(c.__markCompiled)c.__markCompiled();var t=m.PropTypes,u='ufi_actor_selector_nux_disabled_event',v=m.createClass({displayName:'UFIActorSelector',propTypes:{actorIDs:t.array.isRequired,ftEntIdentifier:t.string.isRequired,isTimeline:t.bool,nuxEnabled:t.bool,nuxHoverContext:t.object,settingsURI:t.string},getInitialState:function(){var w=l.byClass(this.props.nuxHoverContext,'timelineUnitContainer');return {loading:false,nuxEnabled:this.props.nuxEnabled,nuxHoverContext:w?w:this.props.nuxHoverContext,selectedActorID:null};},render:function(){return (m.createElement(h,{actorIDs:this.props.actorIDs,loading:this.state.loading,nuxBody:this._getNUXBody(),nuxEnabled:this.state.nuxEnabled,nuxHoverContext:this.state.nuxHoverContext,onChange:this._onChange,onShowNux:this._onShowNux,onCompleteNux:this._onCompleteNux,selectedActorID:this.state.selectedActorID,settingsURI:this.props.settingsURI,tooltipConstructor:this._getTooltipForActorName}));},componentDidMount:function(){this._updateSelectedActorIDFromFeedbackTarget();this._subscriptions=new n();this._subscriptions.addSubscriptions(o.subscribe('feedback-updated',(function(w,x){if(this.props.ftEntIdentifier in x.updates)this._updateSelectedActorIDFromFeedbackTarget();}).bind(this)),j.subscribe(u,(function(){this.setState({nuxEnabled:false});}).bind(this)));},componentWillUnmount:function(){this._subscriptions.release();},_updateSelectedActorIDFromFeedbackTarget:function(){p.getFeedbackTarget(this.props.ftEntIdentifier,(function(w){this.setState({loading:false,selectedActorID:w.actorforpost});}).bind(this));},_getNUXBody:function(){return s._("\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e27\u0e48\u0e32\u0e08\u0e30\u0e01\u0e14\u0e16\u0e39\u0e01\u0e43\u0e08\u0e2b\u0e23\u0e37\u0e2d\u0e41\u0e2a\u0e14\u0e07\u0e04\u0e27\u0e32\u0e21\u0e04\u0e34\u0e14\u0e40\u0e2b\u0e47\u0e19\u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e40\u0e2d\u0e07\u0e2b\u0e23\u0e37\u0e2d\u0e0a\u0e37\u0e48\u0e2d\u0e40\u0e1e\u0e08\u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23");},_getTooltipForActorName:function(w){return s._("\u0e01\u0e14\u0e16\u0e39\u0e01\u0e43\u0e08\u0e41\u0e25\u0e30\u0e41\u0e2a\u0e14\u0e07\u0e04\u0e27\u0e32\u0e21\u0e04\u0e34\u0e14\u0e40\u0e2b\u0e47\u0e19\u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e0a\u0e37\u0e48\u0e2d {actorName}",[s.param('actorName',w)]);},_onChange:function(w){this.setState({loading:true});q.changeActor(this.props.ftEntIdentifier,w.value);},_onCompleteNux:function(){var w=this.props.isTimeline?i.UFI_TIMELINE:i.UFI,x=r.getURIBuilder().setEnum('nux_type',w).getURI();new k().setURI(x).send();},_onShowNux:function(){j.inform(u);}});f.exports=v;},null);
__d('AbstractActionList.react',['React','ReactChildren','ReactFragment'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=' \u00b7 ',l=h.createClass({displayName:'AbstractActionList',render:function(){var m=true,n=i.map(this.props.children,function(o){if(!o)return o;if(m){m=false;return o;}return j.create({BULLET:k,child:o});});return h.createElement('div',this.props,n);}});f.exports=l;},null);
__d('ActionList.react',['AbstractActionList.react','joinClasses','React'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=j.createClass({displayName:'ActionList',render:function(){return (j.createElement(h,babelHelpers._extends({},this.props,{className:i(this.props.className,"fsm fwn fcg")}),this.props.children));}});f.exports=k;},null);
__d('PopoverMenuContextMinWidth',['CSS','Style','cx','shield'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();function l(m){'use strict';this._popoverMenu=m;this._popover=m.getPopover();}l.prototype.enable=function(){'use strict';this._setMenuSubscription=this._popoverMenu.subscribe('setMenu',k(this._onSetMenu,this));};l.prototype.disable=function(){'use strict';this._setMenuSubscription.unsubscribe();this._setMenuSubscription=null;if(this._showSubscription){this._showSubscription.unsubscribe();this._showSubscription=null;}if(this._menuSubscription){this._menuSubscription.unsubscribe();this._menuSubscription=null;}};l.prototype._onSetMenu=function(){'use strict';this._menu=this._popoverMenu.getMenu();this._showSubscription=this._popover.subscribe('show',k(this._updateWidth,this));var m=this._updateWidth.bind(this);this._menuSubscription=this._menu.subscribe(['change','resize'],function(){setTimeout(m,0);});this._updateWidth();};l.prototype._updateWidth=function(){'use strict';var m=this._menu.getRoot(),n=this._popoverMenu.getTriggerElem(),o=n.offsetWidth;i.set(m,'min-width',o+'px');h.conditionClass(m,"_575s",o>=m.offsetWidth);};Object.assign(l.prototype,{_setMenuSubscription:null,_showSubscription:null,_menuSubscription:null});f.exports=l;},null);
__d('PopoverMenuOverlappingBorder',['CSS','DOM','Style','cx','shield'],function a(b,c,d,e,f,g,h,i,j,k,l){if(c.__markCompiled)c.__markCompiled();function m(n){'use strict';this._popoverMenu=n;this._popover=n.getPopover();this._triggerElem=n.getTriggerElem();}m.prototype.enable=function(){'use strict';this._setMenuSubscription=this._popoverMenu.subscribe('setMenu',l(this._onSetMenu,this));};m.prototype.disable=function(){'use strict';this._popoverMenu.unsubscribe(this._setMenuSubscription);this._setMenuSubscription=null;this._removeBorderSubscriptions();this._removeShortBorder();};m.prototype._onSetMenu=function(){'use strict';this._removeBorderSubscriptions();this._menu=this._popoverMenu.getMenu();this._renderShortBorder(this._menu.getRoot());this._showSubscription=this._popover.subscribe('show',l(this._updateBorder,this));var n=this._updateBorder.bind(this);this._menuSubscription=this._menu.subscribe(['change','resize'],function(){setTimeout(n,0);});this._updateBorder();};m.prototype._updateBorder=function(){'use strict';var n=this._menu.getRoot(),o=this._triggerElem.offsetWidth,p=Math.max(n.offsetWidth-o,0);j.set(this._shortBorder,'width',p+'px');};m.prototype._renderShortBorder=function(n){'use strict';this._shortBorder=i.create('div',{className:"_54hx"});i.appendContent(n,this._shortBorder);h.addClass(n,"_54hy");};m.prototype._removeShortBorder=function(){'use strict';if(this._shortBorder){i.remove(this._shortBorder);this._shortBorder=null;h.removeClass(this._popoverMenu.getMenu().getRoot(),"_54hy");}};m.prototype._removeBorderSubscriptions=function(){'use strict';if(this._showSubscription){this._popover.unsubscribe(this._showSubscription);this._showSubscription=null;}if(this._menuSubscription){this._menu.unsubscribe(this._menuSubscription);this._menuSubscription=null;}};Object.assign(m.prototype,{_shortBorder:null,_setMenuSubscription:null,_showSubscription:null,_menuSubscription:null});f.exports=m;},null);
__d('ReactSelectorUtils',['React'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i={processMenuItems:function(j,k){var l,m=h.Children.map(j,function(n){if(n){var o=n.props.value===k;n=h.cloneElement(n,{selected:o});if(o)l=n;return n;}});return {items:m,selectedItem:l};},processMultiMenuItems:function(j,k){var l=[],m=j;if(k)m=h.Children.map(j,function(n){if(n){var o=k.some(function(p){return p===n.props.value;});n=h.cloneElement(n,{selected:o});if(o)l.push(n);return n;}});return {items:m,selectedItems:l};}};f.exports=i;},null);
__d('AbstractSelector.react',['InlineBlock.react','React','PopoverMenu.react','ReactSelectorUtils','ContextualLayerAutoFlip','PopoverMenuContextMinWidth','PopoverMenuOverlappingBorder','cloneWithProps','cx','invariant','joinClasses','intlList'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){if(c.__markCompiled)c.__markCompiled();var t=i.PropTypes;function u(w,x,y){if(w[x]==null)return;var z=Array.isArray(w[x]);if(w.multiple){if(!z)return new Error('You are trying to set a single value for `'+x+'` '+'but the menu has `multiple` set to true, so it should be an '+'array of values.');}else if(z)return new Error('You are trying to set an array of values for `'+x+'` '+'but the menu has `multiple` set to false, so it should be a '+'single value.');}var v=i.createClass({displayName:'AbstractSelector',propTypes:{config:t.object.isRequired,alignh:t.oneOf(['left','center','right']),name:t.string,overlappingborder:t.bool,onChange:t.func,disabled:t.bool,maxheight:t.number,multiple:t.bool,defaultLabel:t.string,defaultValue:u,value:u,initialValue:u},getInitialState:function(){return {value:this.props.value!=null?this.props.value:this.props.defaultValue!=null?this.props.defaultValue:this.props.initialValue};},setMenuValue:function(w){!(this.refs&&this.refs.popover)?q(0):undefined;this._internalChange=true;this.refs.popover.getMenu().setValue(w);this._internalChange=false;},onChange:function(w,x){if(this._internalChange)return;if(this.props.value==null){var y=null;if(this.props.multiple){y=x.map(function(z){return z.value;});}else y=x.value;this.setState({value:y});}else this.setMenuValue(this.props.value);if(this.props.onChange)this.props.onChange(x);},componentWillReceiveProps:function(w){if(w.value!=null){this.setState({value:w.value});}else if(this.props.multiple!==w.multiple)this.setState({value:w.multiple?[this.state.value]:this.state.value[0]});},render:function(){var w=this.props.config,x=!this.props.multiple?k.processMenuItems(this.props.children,this.state.value):k.processMultiMenuItems(this.props.children,this.state.value),y=o(w.menu,{children:x.items,className:r("_575t",w.menu.props.className),maxheight:this.props.maxheight,onChange:this.onChange}),z='',aa=null;if(!this.props.multiple){var ba=x.selectedItem;z=ba.props.label||ba.props.children;if(ba.props.icon)aa=o(ba.props.icon,{});}else{var ca=x.selectedItems;if(!ca.length){z=this.props.defaultLabel;}else z=s(ca.map(function(ka){return ka.props.children;}),s.CONJUNCTIONS.NONE);}var da={label:z,disabled:this.props.disabled};if(aa)da.image=aa;var ea=o(w.button,da),fa=[l];if(w.layerBehaviors)fa=fa.concat(w.layerBehaviors);var ga=[m];if(this.props.overlappingborder)ga.push(n);var ha=null;if(this.props.multiple){var ia=this.props.name+'[]',ja;if(this.state.value)ja=this.state.value.map(function(ka){return (i.createElement('input',{key:ka,type:'hidden',name:ia,value:ka}));});ha=i.createElement('div',null,ja);}else ha=i.createElement('input',{type:'hidden',name:this.props.name,value:this.state.value});return (i.createElement(h,babelHelpers._extends({},this.props,{alignv:'middle',name:null}),i.createElement(j,{ref:'popover',menu:y,alignh:this.props.alignh,layerBehaviors:fa,behaviors:ga,disabled:this.props.disabled},ea),ha));},showMenu:function(){!this.isMounted()?q(0):undefined;this.refs.popover.showPopover();},hideMenu:function(){!this.isMounted()?q(0):undefined;this.refs.popover.hidePopover();}});f.exports=v;},null);
__d('AbstractCheckboxInput.react',['React','cx','invariant','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=h.PropTypes,m=h.createClass({displayName:'AbstractCheckboxInput',propTypes:{tooltip:l.string},render:function(){!(!this.props.children||this.props.children.length===0)?j(0):undefined;var n=k(this.props.className,"_kv1"),o=h.createElement('input',babelHelpers._extends({},this.props,{className:null,type:'checkbox'}),undefined);return (h.createElement('label',{className:n},o,h.createElement('span',{'data-hover':this.props.tooltip?'tooltip':null,'aria-label':this.props.tooltip})));}});f.exports=m;},null);
__d('XUICheckboxInput.react',['AbstractCheckboxInput.react','React','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=i.createClass({displayName:'XUICheckboxInput',render:function(){return (i.createElement(h,babelHelpers._extends({},this.props,{className:k(this.props.className,"_55sg")}),undefined));}});f.exports=l;},null);
__d('XUINotice.react',['React','Image.react','XUICloseButton.react','cx','fbt','ix','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){'use strict';if(c.__markCompiled)c.__markCompiled();var o=h.PropTypes,p={notify:{altText:l._("\u0e42\u0e1b\u0e23\u0e14\u0e17\u0e23\u0e32\u0e1a"),className:null,iconSrc:m('/images/deprecated/glyphs/flat/info-flat_m.png')},success:{altText:l._("\u0e2a\u0e33\u0e40\u0e23\u0e47\u0e08"),className:"_3qh4",iconSrc:m('/images/deprecated/glyphs/flat/checkmark_white_m.png')},warn:{altText:l._("\u0e04\u0e33\u0e40\u0e15\u0e37\u0e2d\u0e19"),className:"_585o",iconSrc:m('/images/deprecated/glyphs/flat/error-flat_m.png')}},q=h.createClass({displayName:'XUINotice',propTypes:{onDismiss:o.func,use:o.oneOf(Object.keys(p)),size:o.oneOf(['medium','small'])},getDefaultProps:function(){return {use:'notify',size:'medium'};},render:function(){var r=this.props,s=r.children,t=r.className,u=r.onDismiss,v=r.use,w=babelHelpers.objectWithoutProperties(r,['children','className','onDismiss','use']),x=p[v];t=n("_585n",x.className,t);var y=null;if(u)y=h.createElement(j,{className:"_585q",href:'#',onClick:u});var z="_585r"+(u?' '+"_2i-a":'')+(this.props.size==='medium'?' '+"_50f4":'')+(this.props.size==='small'?' '+"_50f3":'');return (h.createElement('div',babelHelpers._extends({},w,{className:t}),h.createElement(i,{alt:x.altText,className:"_585p",src:x.iconSrc}),y,h.createElement('div',{className:z},s)));}});f.exports=q;},null);
__d('XUISelectorButton.react',['React','XUIPopoverButton.react','invariant'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k=h.createClass({displayName:'XUISelectorButton',render:function(){!!this.props.theme?j(0):undefined;return (h.createElement(i,babelHelpers._extends({},this.props,{theme:'dark'})));}});f.exports=k;},null);
__d('XUISelector.react',['AbstractSelector.react','ContextualLayerPositionClassOnContext','React','ReactChildren','ReactXUIMenu','XUISelectorButton.react','invariant'],function a(b,c,d,e,f,g,h,i,j,k,l,m,n){if(c.__markCompiled)c.__markCompiled();var o=l.SelectableMenu,p=l.SelectableItem,q=j.PropTypes,r=j.createClass({displayName:'ReactXUISelector',propTypes:{layerBehaviors:q.array,maxheight:q.number,multiple:q.bool,disabled:q.bool,haschevron:q.bool,maxwidth:q.number,size:q.oneOf(['small','medium','large','xlarge','xxlarge']),suppressed:q.bool,use:q.oneOf(['default','special','confirm'])},statics:{getButtonSize:function(s){return s.size||'medium';}},getDefaultProps:function(){return {haschevron:true,layerBehaviors:[],multiple:false};},render:function(){var s,t=[];k.forEach(this.props.children,function(v){if(v)t.push(v);});if(t[0]&&t[0].type===m){s=t[0];t=t.slice(1);}else s=j.createElement(m,{haschevron:this.props.haschevron,disabled:this.props.disabled,use:this.props.use,size:this.props.size,suppressed:this.props.suppressed,maxwidth:this.props.maxwidth});var u={button:s,menu:j.createElement(o,{maxheight:this.props.maxheight,multiple:this.props.multiple}),layerBehaviors:this.props.layerBehaviors.concat([i])};return (j.createElement(h,babelHelpers._extends({},this.props,{ref:'abstractSelector',config:u}),t));},showMenu:function(){!this.isMounted()?n(0):undefined;this.refs.abstractSelector.showMenu();},hideMenu:function(){!this.isMounted()?n(0):undefined;this.refs.abstractSelector.hideMenu();}});r.Option=p;f.exports=r;},null);
__d('Grid.react',['React','ReactChildren','cx','joinClasses'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=h.PropTypes,m=h.createClass({displayName:'Grid',propTypes:{cols:l.number.isRequired,fixed:l.bool,alignv:l.oneOf(['top','middle','bottom']),alignh:l.oneOf(['left','center','right']),spacing:l.string},render:function(){var o=this.props,p=o.alignh,q=o.alignv,r=o.children,s=o.cols,t=o.fixed,u=o.spacing,v=i.count(r),w=[],x=[],y=0;i.forEach(r,function(z,aa){if(z===null||z===undefined)return;var ba=z.type===n;y+=ba?Math.max(z.props.colSpan||0,1):1;var ca=y===s?"_51mw":'';if(!ba){z=h.createElement(n,{alignh:p,alignv:q,className:k(u,ca),key:z.key||aa},z);}else z=h.cloneElement(z,{key:z.key||aa,alignh:z.props.alignh||p,alignv:z.props.alignv||q,className:k(z.props.className,u,ca)});x.push(z);if(y%s===0||aa+1===v){if(t&&y<s){for(var da=y;da<s;da++)x.push(h.createElement(n,{key:aa+da}));y=s;}w.push(h.createElement('tr',{className:"_51mx",key:aa},x));x=[];y=0;}});return (h.createElement('table',babelHelpers._extends({},this.props,{className:k(this.props.className,"uiGrid"+(' '+"_51mz")+(t?' '+"_5f0n":'')),cellSpacing:'0',cellPadding:'0'}),h.createElement('tbody',null,w)));}}),n=h.createClass({displayName:'GridItem',propTypes:{alignv:l.oneOf(['top','middle','bottom']),alignh:l.oneOf(['left','center','right'])},render:function(){var o=k(this.props.className,"_51m-"+(this.props.alignv==='top'?' '+"vTop":'')+(this.props.alignv==='middle'?' '+"vMid":'')+(this.props.alignv==='bottom'?' '+"vBot":'')+(this.props.alignh==='left'?' '+"hLeft":'')+(this.props.alignh==='center'?' '+"hCent":'')+(this.props.alignh==='right'?' '+"hRght":''));return (h.createElement('td',babelHelpers._extends({},this.props,{className:o})));}});m.GridItem=n;f.exports=m;},null);
__d('getSafeBodyFromHTML',['UserAgent'],function a(b,c,d,e,f,g,h){'use strict';if(c.__markCompiled)c.__markCompiled();var i=h.isBrowser('IE <= 9');function j(k){var l,m=null;if(!i&&document.implementation&&document.implementation.createHTMLDocument){l=document.implementation.createHTMLDocument('foo');l.documentElement.innerHTML=k;m=l.getElementsByTagName('body')[0];}return m;}f.exports=j;},null);