/*!CK:2124688046!*//*1459381779,*/

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

__d("AdsPreferencesEvent",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ABOUT:"ad_about",ABOUT_FACEBOOK_ADS:"ad_edu",ADD_CATEGORY:"ad_add_category",ADD_INTEREST_TOMBSTONE:"add_interest_tombstone",ADD_SCREEN:"ad_add_screen",CAPSTONE_ADD_INTEREST:"capstone_add_interest",CAPSTONE_REMOVE_INTEREST:"capstone_remove_interest",CAPSTONE_QUICK_EDIT_FINISHED:"capstone_quick_edit_finished",CLICK_CAROUSEL_CARD:"click_carousel_card",CLICK_CAROUSEL_LEARN_MORE_LINK:"click_carousel_learn_more_link",DEL_CATEGORY:"ad_del_category",DIALOG_SATISFACTION_SURVEY_SHOWN:"dialog_satisfaction_survey_shown",DIALOG_HIDE_AD_CLICK:"dialog_hide_ad_click",DIALOG_HIDE_AD_SHOWN:"dialog_hide_ad_shown",DIALOG_ACTION_MENU_CLICK:"dialog_action_menu_click",EDIT_SCREEN:"ad_edit_screen",EDUCATION_SCREEN:"ad_education_screen",FAV_USEFUL:"ad_useful",FAV_NEUTRAL:"ad_neutral",HIDE_AD_PREFS_QUICK_EDIT:"hide_ad_prefs_quick_edit",INTEREST_MATCH_FAILURE:"interest_match_failure",INTEREST_MATCH_SUCCESS:"interest_match_success",AD_PREFS_INTEREST_MATCH_SUCCESS_VERIFIED:"ad_prefs_interest_match_success_verified",AD_PREFS_INTEREST_MATCH_SUCCESS_UNVERIFIED:"ad_prefs_interest_match_success_unverified",MISSED_CAPSTONE_OPPORTUNITY:"missed_capstone_opportunity",NEW_DIALOG_USER_SURVEY_OPTION_SHOWN:"new_dialog_user_survey_option_shown",NEW_AD_PREFS_EDIT_USER_SURVEY_OPTION_SHOWN:"new_ad_prefs_edit_user_survey_option_shown",OBA_OPTED_IN:"oba_opted_in",OBA_OPTED_OUT:"oba_opted_out",OBA_SETTINGS_SCREEN:"ad_oba_settings_screen",OPTOUT:"ad_optout",DIALOG_OPTOUT:"dialog_optout",DIALOG_OPTOUT_CLICK:"dialog_optout_click",PAGE_LIKE:"ad_page_like",PAGE_UNLIKE:"ad_page_unlike",PREFS_SETTINGS_SCREEN:"ad_prefs_settings_screen",QUICK_EDIT_CLICK:"quick_edit_click",QUICK_EDIT_FOLLOWUP_HIDE:"quick_edit_followup_hide",DIALOG_INTEREST_ADD:"dialog_interest_add",DIALOG_INTEREST_REMOVE:"dialog_interest_remove",REMOVE_INTEREST_TOMBSTONE:"remove_interest_tombstone",REPORT_INTEREST:"report_interest",SENTENCE_BUILDER_FAILURE:"sentence_builder_failure",SETTINGS_SCREEN:"ad_settings_screen",SHOW_AD_PREFS_QUICK_EDIT:"show_ad_prefs_quick_edit",SHOW_AD_PREFS_QUICK_EDIT_TOMBSTONE:"show_ad_prefs_quick_edit_tombstone",SHOW_CAPSTONE_NUX:"show_capstone_nux",SOCIAL_OPTED_IN:"social_context_opted_in",SOCIAL_OPTED_OUT:"social_context_opted_out",SOCIAL_SETTINGS_SCREEN:"ad_social_settings_screen",SUGGESTIONS_PAGE:"ad_suggestions_page",SUGGESTION_RENDERED:"suggestion_rendered",TOPICS_TAGGED:"topics_tagged",TARGETING_REASON_USEFUL:"targeting_reason_useful",TARGETING_REASON_USELESS:"targeting_reason_useless",UNDO_FEED_ACTION:"undo_feed_action",UNDO_REPORT_INTEREST:"undo_report_interest",UNDO_REMOVE_INTEREST:"undo_remove_interest",XOUT_HIDE:"xout_hide",XOUT_HIDE_ALL:"xout_hide_all",XOUT_HIDE_ALREADY_OWNED:"xout_hide_already_owned",XOUT_HIDE_UNIFIED:"xout_hide_unified",XOUT_SURVEY_START:"xout_survey_start",XOUT_MENU_HIDE_SURVEY:"xout_menu_hide_survey",XOUT_MENU_OPENED:"xout_menu_opened"};},null);
__d("AdsTransparencyEvent",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={NOTIFICATION:"notification",USER_ENGAGEMENT:"user_engagement",USER_EXPOSURE:"user_exposure",USER_STATE_CHANGE:"user_state_change"};},null);
__d("AdsTransparencyProduct",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={AD_PREFERENCES:"ad_preferences",AD_PREFERENCES_DIALOG:"ad_preferences_dialog",AD_SETTINGS_SCREEN:"ad_settings_screen",EDUCATION_PAGE:"education_page",NUX:"nux",CAPSTONE:"capstone",TOMBSTONE:"tombstone",SUGGESTIONS_PAGE:"suggestions_page",SURVEY:"survey",TARGETING_SENTENCES:"targeting_sentences",USER_CLUSTERS:"user_clusters",XOUT_MENU:"xout_menu"};},null);
__d("AdsTransparencyProductElement",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ACTION_MENU:"action_menu",AD_PREFERENCES_REDIRECT_SCREEN:"ad_preferences_redirect_screen",AD_PREFERENCES_ADD_SCREEN:"ad_preferences_add_screen",ADDED_INTERESTS_MENU:"added_interests_menu",BROWSE_MENU:"browse_menu",EDUCATION_CAROUSEL:"education_carousel",HIDE_ADVERTISER_MENU_OPTION:"hide_advertiser_menu_option",INTEREST_SUGGESTIONS_FROM_MENU:"interest_suggestions_from_menu",INTEREST_SUGGESTIONS_FROM_CARD:"interest_suggestions_from_card",INTERNAL_REPORT_INTEREST:"internal_report_interest",OBA_SETTINGS_PAGE:"oba_settings_page",OPTOUT:"optout",QUICK_EDIT:"quick_edit",REMOVE_INTEREST_NFX_ACTION:"remove_interest_nfx_action",SEARCH_MENU:"search_menu",SOCIAL_SETTINGS_PAGE:"social_settings_page",UNDO_REMOVE_INTEREST:"undo_remove_interest",UNDO_HIDE_ACTION:"undo_hide_action",UNDO_REPORT_INTEREST:"undo_report_interest",XOUT_HIDE_ACTION:"xout_hide_action"};},null);
__d("FeedHideProfileForTopicControlAction",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={HIDE_PROFILE:"hide_profile",UNHIDE_PROFILE:"unhide_profile"};},null);
__d("XAdPreferencesCategoryInfoController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/preferences\/category_info\/",{ad_id:{type:"Int"},entry_point:{type:"String"},entry_product:{type:"Enum",enumType:1},category_fbid:{type:"Int",required:true}});},null);
__d('AdsPreferencesInterestListItem.react',['ix','xuiglyph','cx','fbt','AdPreferencesDesktopStrings','AsyncRequest','Image.react','Layout.react','fbglyph','React','ReactLayeredComponentMixin','XAdPreferencesCategoryInfoController','XUIContextualDialog.react','XUIContextualDialogTitle.react','XUIContextualDialogBody.react','XUIText.react'],function a(b,c,d,e,f,g,h,i,j,k){if(c.__markCompiled)c.__markCompiled();var l=c('Layout.react').Column,m=c('Layout.react').FillColumn,n=c('React').PropTypes,o=c('React').createClass({displayName:'AdsPreferencesInterestListItem',mixins:[c('ReactLayeredComponentMixin')],propTypes:{adID:n.number,entrypoint:n.string,entryproduct:n.string,interest:n.object.isRequired,isListItem:n.bool.isRequired,onInterestClick:n.func.isRequired,removed:n.bool.isRequired,setDialog:n.func,setReportDialog:n.func},getInitialState:function(){return {xHover:false,iHover:false,interestHover:false,enterTimeout:-1,suggestions:{}};},_xHover:function(event){this.setState({xHover:!this.state.xHover});},_xOver:function(event){this.setState({xHover:true});},_iHover:function(event){this.setState({iHover:!this.state.iHover});},_interestHover:function(p){this.setState({interestHover:p});},_interestEnter:function(event,p,q){if(q){this._interestHover(true);}else{var r=setTimeout(this._interestEnter.bind(this,true,true,true),250);this.setState({enterTimeout:r});}},_interestLeave:function(event){this._interestHover(false);clearTimeout(this.state.enterTimeout);},_getIconRef:function(){return this.refs[this.props.interest.name];},_handleInterestClick:function(event){var p=this.refs['toggle_'+this.props.interest.id];this.props.onInterestClick(this.props.interest,this.props.removed,p);},_onInterestTextClick:function(event){if(this.state.suggestions>0&&this.props.setDialog){this.props.setDialog(this.props.interest,this.state.suggestions);}else{var p=c('XAdPreferencesCategoryInfoController').getURIBuilder().setInt('ad_id',this.props.adID).setString('entry_point',this.props.entrypoint).setEnum('entry_product',this.props.entryproduct).setInt('category_fbid',this.props.interest.id).getURI();new (c('AsyncRequest'))(p).setHandler(function(q){var r=q.payload,s=r.suggestions,t=this.props.interest;if(!t.description)t.description=k._("This is a preference you added.");this.setState({suggestions:s});if(this.props.setDialog)this.props.setDialog(t,r.suggestions);}.bind(this)).send();}},_onReportPreferenceClick:function(event){if(this.props.setReportDialog)this.props.setReportDialog(this.props.interest);},render:function(){var p=this.state.iHover?"hidden_elem":'',q=!this.state.iHover?"hidden_elem":'',r=(this.state.interestHover&&this.props.isListItem?"_2imp":'')+(!this.state.interestHover&&this.props.isListItem?' '+"_2imq":'')+(this.props.removed?' '+"hidden_elem":''),s=!this.props.isListItem?null:c('React').createElement('span',{className:r,ref:this.props.interest.name,onMouseEnter:this._iHover,onMouseLeave:this._iHover},c('React').createElement(c('Image.react'),{className:p,src:h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/info-solid_16_bluegray-10.png")}),c('React').createElement(c('Image.react'),{className:q,src:h("\/images\/assets_DO_NOT_HARDCODE\/fb_glyphs\/info-solid_16_bluegray-40.png")})),t=c('React').createElement('span',{className:r,onMouseEnter:this._xHover,onMouseLeave:this._xHover,onMouseMove:this._xOver},c('React').createElement(c('Image.react'),{className:this.state.xHover?"hidden_elem":'',src:i({name:'cross',shade:'dark'})}),c('React').createElement(c('Image.react'),{className:!this.state.xHover?"hidden_elem":'',src:i({name:'cross',shade:'accent'})})),u=c('React').createElement('div',{className:"_2imr"},c('React').createElement('a',{href:'#'},k._("Undo"))),v=c('React').createElement(c('XUIText.react'),{className:this.props.removed?"_2ims":'','data-fbid':this.props.interest.id,size:'small',weight:'bold'},this.props.interest.name),w=!this.props.isListItem||this.props.removed?v:c('React').createElement('a',{onClick:this._onInterestTextClick},v),x="_2imt"+(!this.props.isListItem?' '+"_2imu":''),y=c('React').createElement(m,null,c('React').createElement('a',{className:r,onClick:this._onReportPreferenceClick},c('React').createElement(c('XUIText.react'),{size:'small',weight:'bold'},'[FB-Only] Report'))),z=this.props.isListItem&&this.props.setReportDialog?y:null,aa=null;if(this.props.interest.disambiguation_category)aa=c('React').createElement('span',{className:"_1env"},this.props.interest.disambiguation_category);return (c('React').createElement('li',{className:x,onMouseEnter:this._interestEnter,onMouseLeave:this._interestLeave},c('React').createElement(c('Layout.react'),null,c('React').createElement(m,null,w,aa,c('React').createElement('span',{className:"_2imv"},s)),z,c('React').createElement(l,{className:'mlm'},c('React').createElement('div',{className:"_2imw",ref:'toggle_'+this.props.interest.id,onClick:this._handleInterestClick},!this.props.removed?t:u)))));},renderLayers:function(){var p=this.props.interest.description?this.props.interest.description:k._("This is a preference you added.");return {contextualDialog:c('React').createElement(c('XUIContextualDialog.react'),{contextRef:this._getIconRef,focusContextOnHide:false,hoverContextRef:this._getIconRef,hoverShowDelay:300,position:'above',width:c('XUIContextualDialog.react').WIDTH.NORMAL},c('React').createElement(c('XUIContextualDialogTitle.react'),null,c('AdPreferencesDesktopStrings').about_this_ads_preference),c('React').createElement(c('XUIContextualDialogBody.react'),null,p))};}});f.exports=o;},null);
__d('AdsPreferencesTypedLogger',['Banzai','GeneratedLoggerUtils','nullthrows'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){this.clear();}h.prototype.log=function(){c('GeneratedLoggerUtils').log('logger:AdsPreferencesLoggerConfig',this.$AdsPreferencesTypedLogger1,c('Banzai').BASIC);};h.prototype.logVital=function(){c('GeneratedLoggerUtils').log('logger:AdsPreferencesLoggerConfig',this.$AdsPreferencesTypedLogger1,c('Banzai').VITAL);};h.prototype.clear=function(){this.$AdsPreferencesTypedLogger1={};return this;};h.prototype.updateData=function(j){this.$AdsPreferencesTypedLogger1=babelHelpers['extends']({},this.$AdsPreferencesTypedLogger1,j);return this;};h.prototype.setAdID=function(j){this.$AdsPreferencesTypedLogger1.ad_id=j;return this;};h.prototype.setAddedInterestCount=function(j){this.$AdsPreferencesTypedLogger1.added_interest_count=j;return this;};h.prototype.setAdsPageType=function(j){this.$AdsPreferencesTypedLogger1.ads_page_type=j;return this;};h.prototype.setBidType=function(j){this.$AdsPreferencesTypedLogger1.bid_type=j;return this;};h.prototype.setCreativeType=function(j){this.$AdsPreferencesTypedLogger1.creative_type=j;return this;};h.prototype.setCurrentInterestsCount=function(j){this.$AdsPreferencesTypedLogger1.current_interests_count=j;return this;};h.prototype.setEditLocation=function(j){this.$AdsPreferencesTypedLogger1.edit_location=j;return this;};h.prototype.setEntryPoint=function(j){this.$AdsPreferencesTypedLogger1.entry_point=j;return this;};h.prototype.setEvent=function(j){this.$AdsPreferencesTypedLogger1.event=j;return this;};h.prototype.setInterest=function(j){this.$AdsPreferencesTypedLogger1.interest=j;return this;};h.prototype.setInterestName=function(j){this.$AdsPreferencesTypedLogger1.interest_name=j;return this;};h.prototype.setInterests=function(j){this.$AdsPreferencesTypedLogger1.interests=c('GeneratedLoggerUtils').serializeVector(j);return this;};h.prototype.setIsDpa=function(j){this.$AdsPreferencesTypedLogger1.is_dpa=j;return this;};h.prototype.setNewInterestCount=function(j){this.$AdsPreferencesTypedLogger1.new_interest_count=j;return this;};h.prototype.setObaOptedOut=function(j){this.$AdsPreferencesTypedLogger1.oba_opted_out=j;return this;};h.prototype.setOptoutType=function(j){this.$AdsPreferencesTypedLogger1.optout_type=j;return this;};h.prototype.setReasonID=function(j){this.$AdsPreferencesTypedLogger1.reason_id=j;return this;};h.prototype.setShowAdchoiceIcon=function(j){this.$AdsPreferencesTypedLogger1.show_adchoice_icon=j;return this;};h.prototype.setSocialOptedOut=function(j){this.$AdsPreferencesTypedLogger1.social_opted_out=j;return this;};h.prototype.setTargetingSentence=function(j){this.$AdsPreferencesTypedLogger1.targeting_sentence=j;return this;};h.prototype.setType=function(j){this.$AdsPreferencesTypedLogger1.type=j;return this;};h.prototype.setVC=function(j){this.$AdsPreferencesTypedLogger1.vc=j;return this;};h.prototype.updateExtraData=function(j){j=c('nullthrows')(c('GeneratedLoggerUtils').serializeMap(j));c('GeneratedLoggerUtils').checkExtraDataFieldNames(j,i);this.$AdsPreferencesTypedLogger1=babelHelpers['extends']({},this.$AdsPreferencesTypedLogger1,j);return this;};h.prototype.addToExtraData=function(j,k){var l={};l[j]=k;return this.updateExtraData(l);};var i={ad_id:true,added_interest_count:true,ads_page_type:true,bid_type:true,creative_type:true,current_interests_count:true,edit_location:true,entry_point:true,event:true,interest:true,interest_name:true,interests:true,is_dpa:true,new_interest_count:true,oba_opted_out:true,optout_type:true,reason_id:true,show_adchoice_icon:true,social_opted_out:true,targeting_sentence:true,type:true,vc:true};f.exports=h;},null);
__d('AdsTransparencyTypedLogger',['Banzai','GeneratedLoggerUtils','nullthrows'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){this.clear();}h.prototype.log=function(){c('GeneratedLoggerUtils').log('logger:AdsTransparencyLoggerConfig',this.$AdsTransparencyTypedLogger1,c('Banzai').BASIC);};h.prototype.logVital=function(){c('GeneratedLoggerUtils').log('logger:AdsTransparencyLoggerConfig',this.$AdsTransparencyTypedLogger1,c('Banzai').VITAL);};h.prototype.clear=function(){this.$AdsTransparencyTypedLogger1={};return this;};h.prototype.updateData=function(j){this.$AdsTransparencyTypedLogger1=babelHelpers['extends']({},this.$AdsTransparencyTypedLogger1,j);return this;};h.prototype.setAdID=function(j){this.$AdsTransparencyTypedLogger1.ad_id=j;return this;};h.prototype.setAdsPageType=function(j){this.$AdsTransparencyTypedLogger1.ads_page_type=j;return this;};h.prototype.setBidType=function(j){this.$AdsTransparencyTypedLogger1.bid_type=j;return this;};h.prototype.setCategory=function(j){this.$AdsTransparencyTypedLogger1.category=j;return this;};h.prototype.setCreativeType=function(j){this.$AdsTransparencyTypedLogger1.creative_type=j;return this;};h.prototype.setEntryPoint=function(j){this.$AdsTransparencyTypedLogger1.entry_point=j;return this;};h.prototype.setEntryProduct=function(j){this.$AdsTransparencyTypedLogger1.entry_product=j;return this;};h.prototype.setEvent=function(j){this.$AdsTransparencyTypedLogger1.event=j;return this;};h.prototype.setInterestIds=function(j){this.$AdsTransparencyTypedLogger1.interest_ids=c('GeneratedLoggerUtils').serializeVector(j);return this;};h.prototype.setInterestNames=function(j){this.$AdsTransparencyTypedLogger1.interest_names=c('GeneratedLoggerUtils').serializeVector(j);return this;};h.prototype.setIsDpa=function(j){this.$AdsTransparencyTypedLogger1.is_dpa=j;return this;};h.prototype.setMessage=function(j){this.$AdsTransparencyTypedLogger1.message=j;return this;};h.prototype.setObaOptedOut=function(j){this.$AdsTransparencyTypedLogger1.oba_opted_out=j;return this;};h.prototype.setOptoutType=function(j){this.$AdsTransparencyTypedLogger1.optout_type=j;return this;};h.prototype.setProduct=function(j){this.$AdsTransparencyTypedLogger1.product=j;return this;};h.prototype.setProductElement=function(j){this.$AdsTransparencyTypedLogger1.product_element=j;return this;};h.prototype.setReasonID=function(j){this.$AdsTransparencyTypedLogger1.reason_id=j;return this;};h.prototype.setSocialOptedOut=function(j){this.$AdsTransparencyTypedLogger1.social_opted_out=j;return this;};h.prototype.setStateChange=function(j){this.$AdsTransparencyTypedLogger1.state_change=j;return this;};h.prototype.setTargetingSentence=function(j){this.$AdsTransparencyTypedLogger1.targeting_sentence=j;return this;};h.prototype.setVC=function(j){this.$AdsTransparencyTypedLogger1.vc=j;return this;};h.prototype.updateExtraData=function(j){j=c('nullthrows')(c('GeneratedLoggerUtils').serializeMap(j));c('GeneratedLoggerUtils').checkExtraDataFieldNames(j,i);this.$AdsTransparencyTypedLogger1=babelHelpers['extends']({},this.$AdsTransparencyTypedLogger1,j);return this;};h.prototype.addToExtraData=function(j,k){var l={};l[j]=k;return this.updateExtraData(l);};var i={ad_id:true,ads_page_type:true,bid_type:true,category:true,creative_type:true,entry_point:true,entry_product:true,event:true,interest_ids:true,interest_names:true,is_dpa:true,message:true,oba_opted_out:true,optout_type:true,product:true,product_element:true,reason_id:true,social_opted_out:true,state_change:true,targeting_sentence:true,vc:true};f.exports=h;},null);
__d('AdsTransparencyLoggerWrapper',['AdsTransparencyTypedLogger','AdsPreferencesTypedLogger','GeneratedLoggerUtils'],function a(b,c,d,e,f,g){'use strict';if(c.__markCompiled)c.__markCompiled();function h(){this.$AdsTransparencyLoggerWrapper1=new (c('AdsTransparencyTypedLogger'))();this.$AdsTransparencyLoggerWrapper2=new (c('AdsPreferencesTypedLogger'))();}h.prototype.clear=function(){this.$AdsTransparencyLoggerWrapper1.clear();this.$AdsTransparencyLoggerWrapper2.clear();return this;};h.prototype.setVC=function(i){this.$AdsTransparencyLoggerWrapper1.setVC(i);this.$AdsTransparencyLoggerWrapper2.setVC(i);return this;};h.prototype.setTransparencyEvent=function(i){this.$AdsTransparencyLoggerWrapper1.setEvent(i);return this;};h.prototype.setPrefsEvent=function(i){this.$AdsTransparencyLoggerWrapper2.setEvent(i);return this;};h.prototype.setAdID=function(i){this.$AdsTransparencyLoggerWrapper1.setAdID(i);this.$AdsTransparencyLoggerWrapper2.setAdID(i);return this;};h.prototype.setAdsPagetype=function(i){if(i){this.$AdsTransparencyLoggerWrapper1.setAdsPageType(i);this.$AdsTransparencyLoggerWrapper2.setAdsPageType(i);}return this;};h.prototype.setCreativeType=function(i){this.$AdsTransparencyLoggerWrapper1.setCreativeType(i);this.$AdsTransparencyLoggerWrapper2.setCreativeType(i);return this;};h.prototype.setCurrentInterestsCount=function(i){this.$AdsTransparencyLoggerWrapper2.setCurrentInterestsCount(i);return this;};h.prototype.setBidType=function(i){this.$AdsTransparencyLoggerWrapper1.setBidType(i);this.$AdsTransparencyLoggerWrapper2.setBidType(i);return this;};h.prototype.setIsDpa=function(i){this.$AdsTransparencyLoggerWrapper1.setIsDpa(i);this.$AdsTransparencyLoggerWrapper2.setIsDpa(i);return this;};h.prototype.setEntryPoint=function(i){this.$AdsTransparencyLoggerWrapper2.setEntryPoint(i);return this;};h.prototype.setEntryProduct=function(i){this.$AdsTransparencyLoggerWrapper1.setEntryProduct(i);return this;};h.prototype.setTargetingSentence=function(i){this.$AdsTransparencyLoggerWrapper1.setTargetingSentence(i);this.$AdsTransparencyLoggerWrapper2.setTargetingSentence(i);return this;};h.prototype.setInterestIds=function(i){this.$AdsTransparencyLoggerWrapper1.setInterestIds(i);this.$AdsTransparencyLoggerWrapper2.setInterests(i);return this;};h.prototype.setInterestNames=function(i){this.$AdsTransparencyLoggerWrapper1.setInterestNames(i);var j=c('GeneratedLoggerUtils').serializeVector(i),k=j&&j.length>0?j[0]:null;this.$AdsTransparencyLoggerWrapper2.setInterestName(k);return this;};h.prototype.setProductElement=function(i){this.$AdsTransparencyLoggerWrapper1.setProductElement(i);return this;};h.prototype.setProduct=function(i){this.$AdsTransparencyLoggerWrapper1.setProduct(i);return this;};h.prototype.setCategory=function(i){this.$AdsTransparencyLoggerWrapper1.setCategory(i);return this;};h.prototype.setShowAdchoiceIcon=function(i){this.$AdsTransparencyLoggerWrapper2.setShowAdchoiceIcon(i);return this;};h.prototype.setStateChange=function(i){this.$AdsTransparencyLoggerWrapper1.setStateChange(i);return this;};h.prototype.setReasonID=function(i){this.$AdsTransparencyLoggerWrapper1.setReasonID(i);this.$AdsTransparencyLoggerWrapper2.setReasonID(i);return this;};h.prototype.setObaOptedOut=function(i){this.$AdsTransparencyLoggerWrapper1.setObaOptedOut(i);this.$AdsTransparencyLoggerWrapper2.setObaOptedOut(i);return this;};h.prototype.setOptoutType=function(i){this.$AdsTransparencyLoggerWrapper1.setOptoutType(i);this.$AdsTransparencyLoggerWrapper2.setOptoutType(i);return this;};h.prototype.setSocialOptedOut=function(i){this.$AdsTransparencyLoggerWrapper1.setSocialOptedOut(i);this.$AdsTransparencyLoggerWrapper2.setSocialOptedOut(i);return this;};h.prototype.setMessage=function(i){this.$AdsTransparencyLoggerWrapper1.setMessage(i);return this;};h.prototype.updateExtraData=function(i){this.$AdsTransparencyLoggerWrapper1.updateExtraData(i);this.$AdsTransparencyLoggerWrapper2.updateExtraData(i);return this;};h.prototype.addToExtraData=function(i,j){this.$AdsTransparencyLoggerWrapper1.addToExtraData(i,j);this.$AdsTransparencyLoggerWrapper2.addToExtraData(i,j);return this;};h.prototype.addToTransparencyExtraData=function(i,j){this.$AdsTransparencyLoggerWrapper1.addToExtraData(i,j);return this;};h.prototype.addToPrefsExtraData=function(i,j){this.$AdsTransparencyLoggerWrapper2.addToExtraData(i,j);return this;};h.prototype.log=function(){this.$AdsTransparencyLoggerWrapper1.log();this.$AdsTransparencyLoggerWrapper2.log();};f.exports=h;},null);
__d("XAdPreferencesInterestsWriteController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/preferences\/edit_interests\/",{action:{type:"Enum",required:true,enumType:1},ad_id:{type:"Int"},entry_point:{type:"String"},edit_product:{type:"Enum",enumType:1},entry_product:{type:"Enum",enumType:1},fbids:{type:"IntVector",required:true},location:{type:"String"},product:{type:"Enum",enumType:1}});},null);
__d("XAdPreferencesNUXController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/preferences\/nux\/",{type:{type:"String",required:true}});},null);
__d("XAdsPreferencesFeedbackController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/preferences\/feeedback\/",{ad_id:{type:"Int"},favorite:{type:"Enum",required:true,enumType:1}});},null);
__d('AdsPrefs',['csx','cx','AdsPreferencesEvent','AdsPreferencesInterestListItem.react','AdsTransparencyEvent','AdsTransparencyLoggerWrapper','AdsTransparencyProduct','AdsTransparencyProductElement','AsyncRequest','BanzaiODS','CSS','DOM','Event','React','ReactDOM','XAdPreferencesInterestsWriteController','XAdPreferencesNUXController','XAdsPreferencesFeedbackController','tidyEvent'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();function j(n,o){c('CSS').toggleClass(n,"hidden_elem");var p=c('CSS').hasClass(n,"hidden_elem")?'ad_useful':'ad_neutral',q=c('XAdsPreferencesFeedbackController').getURIBuilder().setInt('ad_id',o).setEnum('favorite',p).getURI(),r=new (c('AsyncRequest'))(q);r.send();}function k(){var n=c('XAdPreferencesNUXController').getURIBuilder().setString('type','interest_nux_ts').getURI();new (c('AsyncRequest'))(n).send();}function l(n,o,p){var q=o?'add':'del',r=c('XAdPreferencesInterestsWriteController').getURIBuilder().setInt('ad_id',n.adID).setEnum('action',q).setEnum('product',c('AdsTransparencyProduct').AD_PREFERENCES).setIntVector('fbids',[n.id]).getURI();new (c('AsyncRequest'))(r).send();c('ReactDOM').render(c('React').createElement(c('AdsPreferencesInterestListItem.react'),{adID:n.adID,className:"_589n",interest:n,isListItem:false,removed:!o,onInterestClick:l}),document.getElementById(n.rootID));if(n.dialog&&p!=null){k();n.dialog.setContext(p);n.dialog.show();}}var m={initRHCFeedback:function(n,o,p){c('tidyEvent')(c('Event').listen(o,'click',function(q){j(p,n);q.kill();}));},createListElement:function(n,o,p,q,r,s){var t={id:o,name:p,adID:n,rootID:q,dialog:s};c('ReactDOM').render(c('React').createElement(c('AdsPreferencesInterestListItem.react'),{adID:n,className:"_589n",interest:t,isListItem:false,removed:false,onInterestClick:l}),document.getElementById(q));},initExpandable:function(n){c('tidyEvent')(c('Event').listen(n,'click',function(o){var p=c('DOM').scry(n,"div._2_mn")[0],q=c('DOM').scry(n,"._2_mo")[0],r=c('DOM').scry(n,"._2_mp")[0];c('CSS').toggleClass(q,'hidden_elem');c('CSS').toggleClass(r,'hidden_elem');c('CSS').toggleClass(p,'hidden_elem');}));},toggleFavorite:function(n){var o=c('DOM').find(n.getRoot(),'.img');j(o,n.getLabel());},surveyClickable:function(n,o,p){n.forEach(function(q){return (c('tidyEvent')(c('Event').listen(q,'click',function(r){c('CSS').hide(o);c('CSS').show(p);})));});},updateHideAllDialogMessage:function(n,o,p,q){c('tidyEvent')(c('Event').listen(n,'click',function(r){c('CSS').hide(n);c('CSS').show(o);new (c('AdsTransparencyLoggerWrapper'))().setAdID(q.adID).setTargetingSentence(q.targetingSentence).setPrefsEvent(c('AdsPreferencesEvent').DIALOG_HIDE_AD_CLICK).setTransparencyEvent(c('AdsTransparencyEvent').USER_ENGAGEMENT).setProduct(c('AdsTransparencyProduct').AD_PREFERENCES_DIALOG).setProductElement(c('AdsTransparencyProductElement').HIDE_ADVERTISER_MENU_OPTION).log();new (c('AsyncRequest'))().setURI(p).send();r.kill();}));},registerView:function(n){var o=c('XAdPreferencesNUXController').getURIBuilder().setString('type',n).getURI();new (c('AsyncRequest'))(o).send();},logSurveyClick:function(n){c('tidyEvent')(c('Event').listen(n,'click',function(o){c('BanzaiODS').bumpEntityKey('ads_www','ad_prefs_new_user_ad_about_survey_click');}));},logDialogOptOutClick:function(n,o){c('tidyEvent')(c('Event').listen(n,'click',function(p){new (c('AdsTransparencyLoggerWrapper'))().setAdID(o.data.ad_id).setShowAdchoiceIcon(o.data.show_adchoice_icon).addToTransparencyExtraData('show_adchoice_icon',o.data.show_adchoice_icon).setTargetingSentence(o.data.targeting_sentence).setOptoutType(o.data.optout_type).setPrefsEvent(o.event).setTransparencyEvent(c('AdsTransparencyEvent').USER_ENGAGEMENT).setProduct(c('AdsTransparencyProduct').AD_PREFERENCES_DIALOG).setProductElement(c('AdsTransparencyProductElement').OPTOUT).log();}));}};f.exports=m;},null);
__d('PixelNumConverter',[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={pixelValue:function(i){return i!==null?Number(i)+'px':'auto';},numValue:function(i){return Number(i.replace("px",""));}};f.exports=h;},null);
__d('DesktopHscrollUnit',['csx','cx','Arbiter','BanzaiLogger','BanzaiODS','CSS','DesktopHscrollUnitEventConstants','DOM','DOMQuery','Locale','Parent','PixelNumConverter','Style','getStyleProperty','queryThenMutateDOM'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j="_2_tg",k=300,l="_2_th",m="_2_ti",n="_2_tj",o="_hy9",p="_1kf5",q="_20yh",r="_i6m",s="_1mrv",t="_5pat",u="div._3938",v="._nxj",w="div._20yh",x;function y(z,aa,ba,ca,da,ea,fa,ga,ha,ia){'use strict';this.$DesktopHscrollUnit1=z;this.$DesktopHscrollUnit2=aa;this.$DesktopHscrollUnit3=ba;this.$DesktopHscrollUnit4=ca;this.$DesktopHscrollUnit5=ea;this.$DesktopHscrollUnit6=0;this.$DesktopHscrollUnit7=1+ea.length;this.$DesktopHscrollUnit8=[da];this.$DesktopHscrollUnit9=fa;this.$DesktopHscrollUnit10=new (c('Arbiter'))();this.$DesktopHscrollUnit11=0;this.$DesktopHscrollUnit12=ha;this.$DesktopHscrollUnit13=[];this.$DesktopHscrollUnit14=-1;this.$DesktopHscrollUnit15=ia;x=ia;this.$DesktopHscrollUnit16=c('DOMQuery').find(z,"^div._5jmm");this.$DesktopHscrollUnit17=this.$DesktopHscrollUnit16.getAttribute('data-ft');this.$DesktopHscrollUnit3.initPager(this,this.$DesktopHscrollUnit4);ga.forEach(function(ja){ja.init(this);},this);c('CSS').addClass(da.ad,l);c('CSS').addClass(da.ad,q);if(da.subheader)this.$DesktopHscrollUnit18(da.subheader);this.$DesktopHscrollUnit19(this.$DesktopHscrollUnit6);c('CSS').addClass(this.$DesktopHscrollUnit16,"_sf6");c('CSS').conditionClass(this.$DesktopHscrollUnit16,"_2_tl",this.$DesktopHscrollUnit9);this.$DesktopHscrollUnit20();c('Arbiter').subscribe(c('DesktopHscrollUnitEventConstants').HSCROLL_ITEM_HIDE_EVENT,this.hideItem.bind(this));c('Arbiter').subscribe(c('DesktopHscrollUnitEventConstants').HSCROLL_ITEM_SCROLL_BEFORE_XOUT_EVENT,this.scrollItemBeforeXout.bind(this));c('Arbiter').subscribe(c('DesktopHscrollUnitEventConstants').HSCROLL_ITEM_UNHIDE_EVENT,this.unhideItem.bind(this));c('Arbiter').subscribe(c('DesktopHscrollUnitEventConstants').HSCROLL_LAST_ITEM_NFX_ACTION_TAKEN,this.logLastAdXoutEvent.bind(this));}y.getFirstAdsHscrollElement=function(z){'use strict';var aa=c('DOMQuery').scry(z,u);return aa[0];};y.hideAdsHscroll=function(z){'use strict';var aa=y.getFirstAdsHscrollElement(z),ba=c('CSS').hasClass(z,r);if(aa&&!ba){c('Arbiter').inform(c('DesktopHscrollUnitEventConstants').HSCROLL_ITEM_HIDE_EVENT,aa.id);return true;}return false;};y.removeHeaderMargin=function(z){'use strict';var aa=c('DOMQuery').find(z,v);c('CSS').removeClass(aa,s);};y.handleOptimisticHideInUnit=function(z){'use strict';var aa=y.getFirstAdsHscrollElement(z);if(aa&&x){c('Arbiter').inform(c('DesktopHscrollUnitEventConstants').HSCROLL_ITEM_SCROLL_BEFORE_XOUT_EVENT,aa.id);var ba=c('DOM').scry(aa,w);if(ba.length!=1)return true;c('Arbiter').inform(c('DesktopHscrollUnitEventConstants').HSCROLL_LAST_ITEM_NFX_ACTION_TAKEN,{id:aa.id,action:'Hide'});}return false;};y.handleOptimisticUnhideInUnit=function(z){'use strict';var aa=c('Parent').byClass(z,t),ba=y.getFirstAdsHscrollElement(aa),ca=c('CSS').matchesSelector(aa,"._i6m");if(ba&&ca)c('Arbiter').inform(c('DesktopHscrollUnitEventConstants').HSCROLL_LAST_ITEM_NFX_ACTION_TAKEN,{id:ba.id,action:'Unhide'});return ba&&!ca;};y.prototype.scrollItemBeforeXout=function(z,aa){'use strict';if(this.$DesktopHscrollUnit1.id!=aa||!this.$DesktopHscrollUnit15)return;this.$DesktopHscrollUnit14=this.$DesktopHscrollUnit6;if(this.$DesktopHscrollUnit6+1==this.getNumVisibleAds()){this.scrollPrevious();}else this.scrollNext();};y.prototype.hideItem=function(z,aa){'use strict';if(this.$DesktopHscrollUnit1.id!=aa||!this.$DesktopHscrollUnit15)return;var ba={item:this.$DesktopHscrollUnit8.splice(this.$DesktopHscrollUnit14,1)[0],index:this.$DesktopHscrollUnit14};this.$DesktopHscrollUnit13.push(ba);c('CSS').removeClass(ba.item.ad,q);if(this.$DesktopHscrollUnit14!=this.getNumVisibleAds())this.$DesktopHscrollUnit6=this.$DesktopHscrollUnit14;this.$DesktopHscrollUnit10.inform(c('DesktopHscrollUnitEventConstants').HSCROLL_PAGER_ITEM_HIDE_EVENT,this.$DesktopHscrollUnit6,c('Arbiter').BEHAVIOR_EVENT);this.logIndividualXout(aa,'Hide');};y.prototype.unhideItem=function(z,aa){'use strict';if(this.$DesktopHscrollUnit1.id!=aa||!this.$DesktopHscrollUnit15)return;var ba=this.$DesktopHscrollUnit13.pop();this.$DesktopHscrollUnit8.splice(ba.index,0,ba.item);c('CSS').addClass(ba.item.ad,q);this.$DesktopHscrollUnit21(ba.index);this.logIndividualXout(aa,'Unhide');};y.prototype.logLastAdXoutEvent=function(z,aa){'use strict';if(this.$DesktopHscrollUnit1.id!=aa.id)return;this.logIndividualXout(aa.id,aa.action);};y.prototype.logIndividualXout=function(z,aa){'use strict';var ba=document.getElementById(z),ca=c('Parent').byClass(ba,t).getAttribute('id'),da;if(aa=='Hide'){da=1;}else da=-1;c('BanzaiLogger').log('FeedAdsHscrollIndividualXoutLoggerConfig',{ads_hscroll_unit_id:ca,number_of_total_ads:this.$DesktopHscrollUnit7,number_of_hidden_ads:da,action:aa});};y.prototype.getArbiter=function(){'use strict';return this.$DesktopHscrollUnit10;};y.prototype.getAdContainer=function(){'use strict';return this.$DesktopHscrollUnit1;};y.prototype.getPager=function(){'use strict';return this.$DesktopHscrollUnit3;};y.prototype.getSelectedItem=function(){'use strict';return this.$DesktopHscrollUnit8[this.$DesktopHscrollUnit6];};y.prototype.getSelectedIndex=function(){'use strict';return this.$DesktopHscrollUnit6;};y.prototype.getNumItems=function(){'use strict';return this.$DesktopHscrollUnit7;};y.prototype.getID=function(){'use strict';return this.$DesktopHscrollUnit16.id;};y.prototype.getNumOfHiddenItems=function(){'use strict';return this.$DesktopHscrollUnit13.length;};y.prototype.getNumVisibleAds=function(){'use strict';return this.$DesktopHscrollUnit7-this.$DesktopHscrollUnit13.length;};y.prototype.scrollNext=function(){'use strict';if(this.$DesktopHscrollUnit6+1<this.getNumVisibleAds()){this.$DesktopHscrollUnit21(this.$DesktopHscrollUnit6+1);if(this.$DesktopHscrollUnit6===1)c('BanzaiODS').bumpEntityKey('feed_ads',this.$DesktopHscrollUnit22());}};y.prototype.scrollPrevious=function(){'use strict';if(this.$DesktopHscrollUnit6-1>=0)this.$DesktopHscrollUnit21(this.$DesktopHscrollUnit6-1);};y.prototype.addOffscreenItems=function(z){'use strict';this.$DesktopHscrollUnit5.push.apply(this.$DesktopHscrollUnit5,z);this.$DesktopHscrollUnit7+=z.length;this.$DesktopHscrollUnit10.inform('onAdditionalItemsAdded',{});};y.prototype.$DesktopHscrollUnit19=function(z){'use strict';var aa=this.$DesktopHscrollUnit8[z];if(this.$DesktopHscrollUnit9&&aa.subheader){c('DOM').remove(aa.subheader);c('DOM').appendContent(this.$DesktopHscrollUnit2,aa.subheader);this.$DesktopHscrollUnit2.offsetHeight;}this.$DesktopHscrollUnit8.forEach(function(ba,ca){var da=ca==z;c('CSS').conditionClass(ba.ad,n,da);c('CSS').conditionClass(ba.ad,o,!da);if(ba.subheader)c('CSS').conditionClass(ba.subheader,n,da);});this.$DesktopHscrollUnit10.inform('onShow',{item:aa,index:z},c('Arbiter').BEHAVIOR_EVENT);c('Arbiter').inform(c('DesktopHscrollUnitEventConstants').HSCROLL_ITEM_SHOWN_EVENT);};y.prototype.$DesktopHscrollUnit21=function(z){'use strict';this.$DesktopHscrollUnit10.inform('onBeforeTransition',{item:this.$DesktopHscrollUnit8[this.$DesktopHscrollUnit6]},c('Arbiter').BEHAVIOR_EVENT);while(this.$DesktopHscrollUnit5.length>0&&z>=this.$DesktopHscrollUnit8.length)this.$DesktopHscrollUnit23(this.$DesktopHscrollUnit5.shift());this.$DesktopHscrollUnit19(z);if(this.$DesktopHscrollUnit9){this.$DesktopHscrollUnit11++;c('CSS').addClass(this.$DesktopHscrollUnit1,j);setTimeout(function(){if(--this.$DesktopHscrollUnit11===0)c('CSS').removeClass(this.$DesktopHscrollUnit1,j);}.bind(this),k);this.$DesktopHscrollUnit10.inform('onAnimate',{item:this.$DesktopHscrollUnit8[z]},c('Arbiter').BEHAVIOR_EVENT);var aa,ba;c('queryThenMutateDOM')(function(){aa=c('PixelNumConverter').numValue(c('getStyleProperty')(this.$DesktopHscrollUnit1,'padding-bottom'));ba=this.$DesktopHscrollUnit1.offsetHeight;}.bind(this),function(){c('Style').set(this.$DesktopHscrollUnit1,'min-height',c('CSS').hasClass(this.$DesktopHscrollUnit8[z].ad,p)?'0px':c('PixelNumConverter').pixelValue(ba-aa));c('Style').set(this.$DesktopHscrollUnit8[0].ad,c('Locale').isRTL()?'margin-right':'margin-left',z*-100+'%');}.bind(this));}this.$DesktopHscrollUnit6=z;this.$DesktopHscrollUnit20();};y.prototype.$DesktopHscrollUnit23=function(z){'use strict';c('CSS').addClass(z.ad,l);c('CSS').addClass(z.ad,q);c('DOM').appendContent(this.$DesktopHscrollUnit1,z.ad);c('Arbiter').inform(c('DesktopHscrollUnitEventConstants').HSCROLL_ITEM_INSERTED_EVENT);if(z.subheader){this.$DesktopHscrollUnit18(z.subheader);c('DOM').appendContent(this.$DesktopHscrollUnit2,z.subheader);}this.$DesktopHscrollUnit8.push(z);};y.prototype.$DesktopHscrollUnit20=function(){'use strict';var z=JSON.parse(this.$DesktopHscrollUnit8[this.$DesktopHscrollUnit6].ad.getAttribute('data-ft')),aa=JSON.parse(this.$DesktopHscrollUnit17);for(var ba in z)aa[ba]=z[ba];this.$DesktopHscrollUnit16.setAttribute('data-ft',JSON.stringify(aa));c('Arbiter').inform('FeedAdsClickLogger/refreshTrackingData',{});};y.prototype.$DesktopHscrollUnit18=function(z){'use strict';c('CSS').addClass(z,m);if(this.$DesktopHscrollUnit9){var aa=c('DOM').create('div');c('CSS').addClass(aa,"_2_tm");c('DOM').appendContent(z,aa);}};y.prototype.$DesktopHscrollUnit22=function(){'use strict';var z='old_desktop_hscroll_first_next_pos_';return z.concat(this.$DesktopHscrollUnit12);};f.exports=y;f.exports.getFirstAdsHscrollElement=y.getFirstAdsHscrollElement;f.exports.hideAdsHscroll=y.hideAdsHscroll;f.exports.removeHeaderMargin=y.removeHeaderMargin;f.exports.handleOptimisticHideInUnit=y.handleOptimisticHideInUnit;f.exports.handleOptimisticUnhideInUnit=y.handleOptimisticUnhideInUnit;},null);
__d('EntstreamFeedObject',['csx','cx','CSS','Parent'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j={getRoot:function(k){return c('Parent').bySelector(k,"._5jmm");},getHscrollOuterRootIfAvailable:function(k){var l=k;if(c('CSS').matchesSelector(l,"._170y"))l=j.getRoot(l.parentNode);return l;}};f.exports=j;},null);
__d('EntstreamFeedObjectFollowTombstone.react',['cx','fbt','AsyncRequest','LeftRight.react','React','URI','XUICloseButton.react'],function a(b,c,d,e,f,g,h,i){var j,k;if(c.__markCompiled)c.__markCompiled();j=babelHelpers.inherits(l,c('React').Component);k=j&&j.prototype;function l(m){'use strict';k.constructor.call(this,m);this.toggleFollowState=this.toggleFollowState.bind(this);this.state={isFollowing:this.props.isFollowing,postID:this.props.postID};}l.prototype.toggleFollowState=function(){'use strict';this.setState({isFollowing:!this.state.isFollowing});this.props.menuItem.toggleMenuItem();var m=new (c('URI'))('/ajax/litestand/follow_post');m.setQueryData({follow:this.state.isFollowing,message_id:this.state.postID});new (c('AsyncRequest'))().setURI(m).setMethod('POST').send();};l.prototype.getFollowText=function(){'use strict';if(this.state.isFollowing){return i._("You'll no longer get notifications about this post.");}else return i._("You'll get a notification whenever someone comments on this post.");};l.prototype.getFollowActionLinkText=function(){'use strict';if(this.state.isFollowing){return i._("Turn On Notifications");}else return i._("Turn Off Notifications");};l.prototype.render=function(){'use strict';return (c('React').createElement('div',{className:"_5w_i _5ww7 _5ww9"},c('React').createElement(c('LeftRight.react'),null,this.getFollowText(),c('React').createElement(c('XUICloseButton.react'),{className:"_5xsl"})),c('React').createElement('a',{onClick:this.toggleFollowState,className:"_1f89"},this.getFollowActionLinkText())));};f.exports=l;},null);
__d("XAdsPreferencesQuickEditHistoryController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/ads\/preferences\/quick_edit_history\/",{track_last_seen:{type:"Bool",defaultValue:false},user_id:{type:"FBID",required:true}});},null);
__d('FeedObjectInfoCapstone',['csx','AsyncRequest','DOM','Parent','XAdsPreferencesQuickEditHistoryController','ge'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={getInfoCapstone:function(j){var k=c('DOM').scry(j,"._2g9u");if(!k.length)k=c('DOM').scry(j.parentNode,"._2g9u");return k?k[0]:null;},addInfoCapstoneByStoryID:function(j,k,l,m){var n=c('Parent').bySelector(c('ge')(j),"._5jmm");this.addInfoCapstone(n,k,l,m);},addInfoCapstone:function(j,k,l,m){var n=c('DOM').find(j,"._5v3q");if(n)j=n;this.removeInfoCapstone(j);if(k){c('DOM').prependContent(j,k);var o=c('XAdsPreferencesQuickEditHistoryController').getURIBuilder().setFBID('user_id',l).setBool('track_last_seen',!!m).getURI(),p=new (c('AsyncRequest'))(o);p.send();}return k;},removeInfoCapstone:function(j){var k=i.getInfoCapstone(j);if(k)c('DOM').remove(k);}};f.exports=i;},null);
__d('EntstreamFeedObjectFollowup',['csx','cx','CSS','DOM','EntstreamFeedObject','Event','FeedObjectInfoCapstone','ge'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j={getFollowup:function(k){var l=c('DOM').scry(k,"._5lum");if(!l.length)l=c('DOM').scry(k.parentNode,"._5lum");return l?l[0]:null;},initCloseButton:function(k){var l=c('DOM').find(k,"._5xsl"),m=c('Event').listen(l,'click',function(){m.remove();c('DOM').remove(k);});k.listener=m;},stopListenCloseButton:function(k){if(k.listener)k.listener.remove();},addFollowup:function(k,l,m){var n=c('CSS').matchesSelector(k,"._5pat"),o=c('DOM').create('div',{className:"_5lum"});if(n){c('CSS').addClass(o,"_5pau");}else c('CSS').addClass(o,"_1f84");if(m)if(typeof m==='string'){c('CSS').addClass(o,m);}else if(m instanceof Array)for(var p=0;p<m.length;p++)c('CSS').addClass(o,m[p]);var q=c('DOM').scry(k,"._5v3q")[0];if(q)k=q;var r=j.getFollowup(k);if(r)this.removeFollowup(r);c('FeedObjectInfoCapstone').removeInfoCapstone(k);if(l){c('DOM').appendContent(o,l);this.initCloseButton(o);if(c('CSS').matchesSelector(o,"._4-u3")){c('DOM').prependContent(k,o);}else c('DOM').insertBefore(k,o);}else c('DOM').prependContent(k,o);return o;},removeFollowup:function(k){var l=j.getFollowup(k);this.stopListenCloseButton(l);c('DOM').remove(l);},appendToFollowup:function(k,l){var m=c('EntstreamFeedObject').getRoot(c('ge')(k)),n=j.getFollowup(m);c('DOM').appendContent(n,l);}};f.exports=j;},null);
__d('PostsByOtherPreviewObject',['csx','Parent'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={getRoot:function(j){return c('Parent').bySelector(j,"._5kjo");}};f.exports=i;},null);
__d('EntstreamFeedObjectFollow',['cx','DOM','EntstreamFeedObject','EntstreamFeedObjectFollowup','EntstreamFeedObjectFollowTombstone.react','React','ReactDOM','PostsByOtherPreviewObject','ge'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={toggleFollow:function(j,k,l){var m=c('DOM').create('div',{className:"_1f86 _5wvy"}),n=j.getValue()=='follow_post';c('ReactDOM').render(c('React').createElement(c('EntstreamFeedObjectFollowTombstone.react'),{isFollowing:n,postID:l,menuItem:j}),m);var o=c('EntstreamFeedObject').getRoot(c('ge')(k));if(o===null)o=c('PostsByOtherPreviewObject').getRoot(c('ge')(k));c('EntstreamFeedObjectFollowup').addFollowup(o,m,"_521o");}};f.exports=i;},null);
__d('EntstreamFeedObjectHide',['cx','Event','CSS','DesktopHscrollUnit','EntstreamFeedObject','EntstreamFeedObjectFollowup','Focus','TabbableElements','ge'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={hide:function(j,k){var l=c('EntstreamFeedObject').getRoot(c('ge')(j));l=c('EntstreamFeedObject').getHscrollOuterRootIfAvailable(l);c('EntstreamFeedObjectFollowup').addFollowup(l,k);var m=c('DesktopHscrollUnit').hideAdsHscroll(l);if(!m)c('CSS').addClass(l,"_i6m");i.setFocus(l);},registerUnhide:function(j,k){c('Event').listen(j,'click',function(){if(k)k.send();var l=c('EntstreamFeedObject').getRoot(j);l=c('EntstreamFeedObject').getHscrollOuterRootIfAvailable(l);i.unhide(l);});},setFocus:function(j){var k=c('TabbableElements').find(j);if(k&&k[0])c('Focus').setWithoutOutline(k[0]);},unhide:function(j){c('EntstreamFeedObjectFollowup').removeFollowup(j);c('CSS').removeClass(j,"_i6m");i.setFocus(j);}};f.exports=i;},null);
__d('EntstreamFeedObjectHideProfileForTopicUndoTombstone.react',['fbt','cx','React'],function a(b,c,d,e,f,g,h,i){var j,k;if(c.__markCompiled)c.__markCompiled();j=babelHelpers.inherits(l,c('React').Component);k=j&&j.prototype;function l(m){'use strict';k.constructor.call(this,m);}l.prototype.render=function(){'use strict';return (c('React').createElement('div',{className:"_4glo"},this.props.feedbackText,' ',c('React').createElement('a',{className:"_4glp",onClick:this.props.onUndoButtonClick},h._("Undo"))));};f.exports=l;},null);
__d("XFeedHideProfileForTopicController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/feed\/control\/hide_profile_for_topic\/",{topic:{type:"Int"},actor:{type:"Int"},action:{type:"Enum",enumType:1}});},null);
__d('EntstreamFeedObjectHideProfileForTopic',['cx','CSS','DOM','React','ReactDOM','EntstreamFeedObject','ge','EntstreamFeedObjectHideProfileForTopicUndoTombstone.react','XFeedHideProfileForTopicController','FeedHideProfileForTopicControlAction','AsyncRequest'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={hideProfile:function(j,k){var l=c('EntstreamFeedObject').getRoot(c('ge')(k));if(!l)return;var m=j.getRoot().getAttribute('data-topic-id'),n=j.getRoot().getAttribute('data-actor-id'),o=j.getRoot().getAttribute('data-feedback-text');c('CSS').hide(j.getRoot());var p=c('DOM').create('div',{className:"_553t"});c('DOM').replace(l,p);c('ReactDOM').render(c('React').createElement(c('EntstreamFeedObjectHideProfileForTopicUndoTombstone.react'),{onUndoButtonClick:this._handleUndoButtonClick.bind(this,m,n,l,p,j),feedbackText:o}),p);},_handleUndoButtonClick:function(j,k,l,m,n){var o=c('XFeedHideProfileForTopicController').getURIBuilder().setInt('actor',k).setInt('topic',j).setEnum('action',c('FeedHideProfileForTopicControlAction').UNHIDE_PROFILE).getURI();new (c('AsyncRequest'))().setURI(o).setMethod('POST').send();c('DOM').replace(m,l);c('CSS').show(n.getRoot());}};f.exports=i;},null);
__d('EntstreamFeedObjectSeeFirstOffUndoTombstone.react',['fbt','cx','React'],function a(b,c,d,e,f,g,h,i){var j,k;if(c.__markCompiled)c.__markCompiled();j=babelHelpers.inherits(l,c('React').Component);k=j&&j.prototype;function l(m){'use strict';k.constructor.call(this,m);}l.prototype.render=function(){'use strict';return (c('React').createElement('div',{className:"_4i1z"},this.props.feedbackText,' ',c('React').createElement('a',{className:"_4ub0",onClick:this.props.onUndoButtonClick},h._("Undo"))));};f.exports=l;},null);
__d("XFeedSubFollowController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/feed\/profile\/sub_follow\/",{id:{type:"Int"},action:{type:"Enum",enumType:1},location:{type:"Int"},__asyncDialog:{type:"Int"}});},null);
__d('EntstreamFeedObjectSeeFirstOff',['cx','csx','DOM','React','ReactDOM','CSS','EntstreamFeedObject','ge','Parent','EntstreamFeedObjectSeeFirstOffUndoTombstone.react','ProfileSubFollowStatus','XFeedSubFollowController','AsyncRequest'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j={turnOffSeeFirst:function(k,l){var m=c('EntstreamFeedObject').getRoot(c('ge')(l));if(!m)return;var n=k.getRoot().getAttribute('data-see-first-off-id'),o=k.getRoot().getAttribute('data-feedback-text');c('CSS').hide(k.getRoot());var p=c('DOM').create('div',{className:"_4ua_"});c('DOM').prependContent(m,p);c('ReactDOM').render(c('React').createElement(c('EntstreamFeedObjectSeeFirstOffUndoTombstone.react'),{onUndoButtonClick:this._handleUndoButtonClick.bind(this,n,m,p,k),feedbackText:o}),p);this.adjustIndicator(m,k);},_handleUndoButtonClick:function(k,l,m,n){var o=c('XFeedSubFollowController').getURIBuilder().setInt('id',k).setEnum('action',c('ProfileSubFollowStatus').SEE_FIRST).setInt('location',73).getURI();new (c('AsyncRequest'))().setURI(o).setMethod('POST').send();c('DOM').remove(m);c('CSS').show(n.getRoot());this.adjustIndicator(l,n);},adjustIndicator:function(k,l){var m=c('DOM').scry(k,"._zwz");if(!m||m.length===0)return;m=m[0];var n=c('Parent').bySelector(l.getRoot(),"._5pbk"),o=c('DOM').scry(n,"._3bb4"),p=true;o.forEach(function(q){p=p&&!c('CSS').shown(q);});if(p){c('CSS').hide(m);}else c('CSS').show(m);}};f.exports=j;},null);
__d('YouTube',['cx','CSS','DOM','DOMQuery','Event','Keys','LitestandStoryInsertionStatus','SubscriptionsHandler','UserAgent_DEPRECATED','Focus'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(j,k,l){'use strict';var m=new (c('SubscriptionsHandler'))();m.addSubscriptions(c('Event').listen(j,'load',this.listening.bind(this)),c('LitestandStoryInsertionStatus').registerBlocker(function(){return this.playerState===i.STATE_PLAYING;}.bind(this)));Object.assign(this,{iframe:j,autofocus:k,autoplay:l,playerState:i.STATE_UNSTARTED,muted:false,volume:100,currentTime:0,timer:null,handler:m});if(k)c('Focus').set(j);}i.prototype.id=function(){'use strict';return this.iframe.id;};i.prototype.post=function(j){'use strict';j.id=this.id();this.iframe.contentWindow.postMessage(JSON.stringify(j),'*');};i.prototype.listening=function(){'use strict';this.post({event:'listening'});clearTimeout(this.timer);this.timer=setTimeout(this.listening.bind(this),100);};i.prototype.update=function(j){'use strict';if(j.event=='initialDelivery'){clearTimeout(this.timer);if((c('UserAgent_DEPRECATED').webkit()||c('UserAgent_DEPRECATED').firefox())&&j.info&&j.info.debugText.match(/flashVersion/)){this.addAccessibleButtons();if(c('UserAgent_DEPRECATED').firefox())this.iframe.tabIndex=-1;}}if(j.info)['playerState','muted','volume','currentTime'].forEach(function(k){if(j.info.hasOwnProperty(k))this[k]=j.info[k];}.bind(this));};i.prototype.togglePlay=function(){'use strict';this.post({event:'command',func:this.playerState==i.STATE_PLAYING?'pauseVideo':'playVideo'});};i.prototype.toggleMute=function(){'use strict';this.post({event:'command',func:this.muted?'unMute':'mute'});};i.prototype.addAccessibleButtons=function(){'use strict';this.addAccessibleButton('Mute',"_505m",this.toggleMute.bind(this));this.addAccessibleButton('Play',"_505n",this.togglePlay.bind(this));};i.prototype.addAccessibleButton=function(j,k,l){'use strict';var m=c('DOM').create('button',{'class':k,tabindex:0},j);c('DOM').insertAfter(this.iframe,m);this.handler.addSubscriptions(c('Event').listen(m,'click',l),c('Event').listen(m,'mouseover',c('CSS').hide.bind(null,m)),c('Event').listen(this.iframe,'mouseout',c('CSS').show.bind(null,m)),c('Event').listen(m,'focus',function(){if(!this.autoplay&&this.playerState==i.STATE_UNSTARTED){this.post({event:'command',func:'playVideo'});this.post({event:'command',func:'pauseVideo'});}}.bind(this)),c('Event').listen(m,'keydown',function(n){switch(n.keyCode){case c('Keys').UP:case c('Keys').DOWN:this.post({event:'command',func:'setVolume',args:[this.volume+(n.keyCode==c('Keys').UP?10:-10)]});n.prevent();break;case c('Keys').RIGHT:case c('Keys').LEFT:this.post({event:'command',func:'seekTo',args:[this.currentTime+(n.keyCode==c('Keys').RIGHT?10:-10)]});n.prevent();break;}}.bind(this)));return m;};i.prototype.destroy=function(){'use strict';this.handler.release();delete i.instances[this.id()];if(!Object.keys(i.instances).length)i.handler.remove();};i.register=function(j,k,l){'use strict';if(!window.postMessage)return;if(!Object.keys(i.instances).length)i.handler=c('Event').listen(window,'message',function(n){try{var o=JSON.parse(n.data);if(i.instances[o.id])i.instances[o.id].update(o);}catch(n){}});var m=new i(c('DOMQuery').find(j,'iframe'),k,l);i.instances[m.id()]=m;};Object.assign(i,{STATE_UNSTARTED:-1,STATE_PLAYING:1,instances:{},handler:null});f.exports=i;},null);
__d('EntstreamHomeFeedObjectHide',['csx','cx','fbt','AsyncRequest','CSS','DOM','EntstreamFeedObject','EntstreamFeedObjectHide','Event','TrackingNodes','YouTube','$','ge','getOrCreateDOMID'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k={stopVideo:function(l){var m=c('$')(l),n=c('DOM').find(m,"^._5jmm"),o=c('DOM').scry(n,'iframe');for(var p=0;p<o.length;p++){var q=c('YouTube').instances[c('getOrCreateDOMID')(o[p])];if(q&&q.playerState===c('YouTube').STATE_PLAYING)q.togglePlay();}var r=c('DOM').scry(n,'video');for(var s=0;s<r.length;s++)if('paused' in r[s]&&!r[s].paused)if(typeof r[s].pause==='function')r[s].pause();},hide:function(l,m,n,o){k.stopVideo(l);var p=c('EntstreamFeedObject').getRoot(c('ge')(l)),q=c('CSS').matchesSelector(p,"._5pat"),r;if(q&&n=='afrostart'){r='';}else{var s=n=='hide'||n=='afrostart'?j._("This story is now hidden from your News Feed."):j._("This story has been marked as spam."),t=n=='hide'||n=='afrostart'?j._("Unhide"):j._("Undo"),u=c('TrackingNodes').getTrackingInfo(c('TrackingNodes').types.UNHIDE_LINK),v=c('DOM').create('a',{href:'#','data-ft':u},t),w={};if(m)w.token=m;if(o)w.hideable_token=o;var x=new (c('AsyncRequest'))().setURI('/ajax/entstream/home/story/unhide').setMethod('POST').setData(w).setRelativeTo(v);c('EntstreamFeedObjectHide').registerUnhide(v,x);r=c('DOM').create('div',{'class':"_1f86"},[s,' ',v]);}c('EntstreamFeedObjectHide').hide(l,r);},registerHide:function(l,m,n,o){c('Event').listen(l,'click',function(){k.hide(l.getAttribute('id'),m,n,o);});}};f.exports=k;},null);
__d('MenuTogglingItem',['DOM','MenuItem'],function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('MenuItem'));i=h&&h.prototype;j.prototype.handleClick=function(){'use strict';this.toggleMenuItem();return i.handleClick.call(this);};j.prototype.toggleMenuItem=function(){'use strict';this._data=babelHelpers['extends']({},this._data,{ajaxify:this._data.toggleAjaxify,toggleAjaxify:this._data.ajaxify,value:this._data.toggleValue,toggleValue:this._data.value,markup:this._data.toggleMarkup,toggleMarkup:this._data.markup});this._rerender();};j.prototype.setValue=function(k){'use strict';this._data=babelHelpers['extends']({},this._data,{value:k});};j.prototype._rerender=function(){'use strict';var k=this._anchor;c('DOM').replace(k,this._renderItemContent());};function j(){'use strict';h.apply(this,arguments);}f.exports=j;},null);
__d('EntstreamHomeFeedObjectOptionsMenu',['csx','cx','AdsTransparencyLoggerWrapper','AdsPrefs','BanzaiLogger','CSS','DesktopHscrollUnit','DOM','EntstreamFeedObject','EntstreamFeedObjectFollow','EntstreamFeedObjectFollowup','EntstreamFeedObjectSeeFirstOff','EntstreamHomeFeedObjectHide','EntstreamFeedObjectHideProfileForTopic','FeedObjectInfoCapstone','MenuTogglingItem','UFICentralUpdates','UFIConstants','ge'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();function j(k,l){var m=l.node_id,n=l.story_token,o=l.hideable_token,p=l.identifier,q=l.location,r=l.session_id,s=l.is_sponsored,t=l.is_self_story,u=l.ad_logging_data;k.subscribe('itemclick',function(w,x){var y=x.item.getRoot(),z=y.getAttribute('data-feed-option-name'),aa=c('CSS').matchesSelector(y,"._50o2")||c('CSS').matchesSelector(y,"._50o0");if(z)c('BanzaiLogger').log('FeedStoryOptionMenuLoggerConfig',{option_name:z,is_secondary:aa?1:0,event_type:'clk',feed_location:q,session_id:r,is_sponsored:s,is_self_story:t});if(typeof x.item.getValue!=='function')return;switch(x.item.getValue()){case 'hide':case 'markspam':case 'afrostart':c('EntstreamHomeFeedObjectHide').hide(m,n,x.item.getValue(),o);break;case 'afro_direct_action':var ba=c('EntstreamFeedObject').getRoot(c('ge')(m));ba=c('EntstreamFeedObject').getHscrollOuterRootIfAvailable(ba);c('FeedObjectInfoCapstone').removeInfoCapstone(ba);var ca=x.item.getRoot().getAttribute('data-optimistic-hide');if(ca){if(c('EntstreamFeedObjectFollowup').getFollowup(ba))c('EntstreamFeedObjectFollowup').removeFollowup(ba);var da=c('DOM').create('div',{className:"_5lum"});c('DOM').appendContent(da,x.item.getRoot().getAttribute('data-action-in-progress-string'));c('DOM').insertBefore(ba.firstChild,da);var ea=c('DesktopHscrollUnit').handleOptimisticHideInUnit(ba);if(!ea)c('CSS').addClass(ba,"_i6m");}break;case 'follow_post':case 'unfollow_post':c('EntstreamFeedObjectFollow').toggleFollow(x.item,m,p);break;case 'ad_useful':case 'ad_neutral':c('AdsPrefs').toggleFavorite(x.item);w.kill();break;case 'see_first_off':c('EntstreamFeedObjectSeeFirstOff').turnOffSeeFirst(x.item,m);break;case 'hide_profile_for_topic':c('EntstreamFeedObjectHideProfileForTopic').hideProfile(x.item,m);break;}}.bind(this));var v=false;k.subscribe('show',function(){c('BanzaiLogger').log('FeedStoryOptionMenuLoggerConfig',{option_name:'root',event_type:'clk',feed_location:q,session_id:r,is_sponsored:s,is_self_story:t});if(!!u&&Object.getOwnPropertyNames(u).length&&v===false){v=true;new (c('AdsTransparencyLoggerWrapper'))().setPrefsEvent(u.event).setTransparencyEvent(u.transparency_event).setAdsPagetype(u.ads_page_type).setBidType(u.bid_type).setCreativeType(u.creative_type).setIsDpa(u.is_dpa).setProduct(u.product).log();}var w=c('CSS').matchesSelector(k.getRoot(),"._50o1"),x=c('CSS').matchesSelector(k.getRoot(),"._50n_");k.forEachItem(function(y){var z=y.getRoot(),aa=z.getAttribute('data-feed-option-name'),ba=c('CSS').matchesSelector(z,"._50o2"),ca=c('CSS').matchesSelector(z,"._50o0"),da=c('CSS').matchesSelector(z,"._50nd"),ea=c('CSS').matchesSelector(z,"._50ne"),fa=w&&ba||x&&ca||!w&&da||!x&&ea,ga=ba||ca;if(aa&&!fa)c('BanzaiLogger').log('FeedStoryOptionMenuLoggerConfig',{option_name:aa,is_secondary:ga?1:0,event_type:'imp',feed_location:q,session_id:r,is_sponsored:s,is_self_story:t});y.onShow();});});c('UFICentralUpdates').subscribe('update-actions',function(w,x){if(x.payloadsource===c('UFIConstants').UFIPayloadSourceType.USER_ACTION){var y=x.actions||[];for(var z=0;z<y.length;z++)if(y[z].actiontype===c('UFIConstants').UFIActionType.ADD_COMMENT_ACTION){if(y[z].feedbackfbid!=p)return;k.getRoot();k.forEachItem(function(aa){if(aa instanceof c('MenuTogglingItem')&&aa.getValue()==='unfollow_post')aa.handleClick();});}}});}f.exports=j;},null);