/*!CK:2167337370!*//*1402523091,*/ if (self.CavalryLogger) { CavalryLogger.start_js(["5OY\/8"]); } __d("AdsAccountCapabilities",[],function(a,b,c,d,e,f){e.exports={DIRECT_SALES:"DIRECT_SALES",PREMIUM:"PREMIUM",VIEW_TAGS:"VIEW_TAGS",CUSTOM_CLUSTER_SHARING:"CUSTOM_CLUSTER_SHARING",LOOKALIKE_AUDIENCE:"LOOKALIKE_AUDIENCE",CUSTOM_AUDIENCES_OPT_OUT_LINK:"CUSTOM_AUDIENCES_OPT_OUT_LINK",CUSTOM_AUDIENCES_REV_SHARE:"CUSTOM_AUDIENCES_REV_SHARE",SYNDICATED_AUDIENCE:"SYNDICATED_AUDIENCE",CUSTOM_AUDIENCES_TOKEN_UPLOAD:"CUSTOM_AUDIENCES_TOKEN_UPLOAD",LOOKALIKE_ADVANCED_CONFIG:"LOOKALIKE_ADVANCED_CONFIG",CUSTOM_AUDIENCES_FOLDERS:"CUSTOM_AUDIENCES_FOLDERS",PLATFORM_ADVERTISER_TOKEN_UPLOAD:"PLATFORM_ADVERTISER_TOKEN_UPLOAD",OFFSITE_CONVERSION_HIGH_BID:"OFFSITE_CONVERSION_HIGH_BID",MOBILE_ADVERTISER_ID_UPLOAD:"MOBILE_ADVERTISER_ID_UPLOAD",CAN_SEND_FEEDBACK:"CAN_SEND_FEEDBACK",CAN_CREATE_LOOKALIKES_WITH_CUSTOM_RATIO:"CAN_CREATE_LOOKALIKES_WITH_CUSTOM_RATIO",MOBILE_APP_REENGAGEMENT_ADS:"MOBILE_APP_REENGAGEMENT_ADS",HAS_ACCEPTED_MOBILE_APP_ENGAGEMENT_TOS:"HAS_ACCEPTED_MOBILE_APP_ENGAGEMENT_TOS",NEKO_DESKTOP_CANVAS_APP_ADS:"NEKO_DESKTOP_CANVAS_APP_ADS",MOBILE_APP_VIDEO_ADS:"MOBILE_APP_VIDEO_ADS",CAN_USE_IMPROVED_GEO:"CAN_USE_IMPROVED_GEO",CAN_USE_REACH_AND_FREQUENCY:"CAN_USE_REACH_AND_FREQUENCY",HOLDOUT_VIEW_TAGS:"HOLDOUT_VIEW_TAGS",NEW_CAMPAIGN_STRUCTURE:"NEW_CAMPAIGN_STRUCTURE",CAN_USE_UNIFIED_INTERESTS:"CAN_USE_UNIFIED_INTERESTS",CAN_USE_CONVERSION_LOOKALIKES:"CAN_USE_CONVERSION_LOOKALIKES",CAN_USE_INVENTORY_MANAGER:"CAN_USE_INVENTORY_MANAGER",CAN_UPDATE_CURRENCY:"CAN_UPDATE_CURRENCY",HAS_AVAILABLE_PAYMENT_METHODS:"HAS_AVAILABLE_PAYMENT_METHODS",CAN_USE_ADVANCED_DEMO:"CAN_USE_ADVANCED_DEMO",CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE:"CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE",CAN_USE_OLD_AD_TYPES:"CAN_USE_OLD_AD_TYPES",PRORATED_BUDGET:"PRORATED_BUDGET",FAN_PLACEMENT_NON_DEFAULT:"FAN_PLACEMENT_NON_DEFAULT",CAN_USE_REACH_BLOCK:"CAN_USE_REACH_BLOCK"};},null); __d("AdsAPIAdDraftFragmentFields",[],function(a,b,c,d,e,f){e.exports={ACTION:"action",AD_DRAFT_ID:"ad_draft_id",AD_OBJECT_ID:"ad_object_id",AD_OBJECT_TYPE:"ad_object_type",FRAGMENT_TYPE:"fragment_type",ID:"id",TIME_CREATED:"time_created",TIME_UPDATED:"time_updated",VALUES:"values",PUBLISH_STATUS:"publish_status"};},null); __d("AdsAPIObjectives",[],function(a,b,c,d,e,f){e.exports={NONE:"NONE",OFFER_CLAIMS:"OFFER_CLAIMS",PAGE_LIKES:"PAGE_LIKES",CANVAS_APP_INSTALLS:"CANVAS_APP_INSTALLS",EVENT_RESPONSES:"EVENT_RESPONSES",CANVAS_APP_ENGAGEMENT:"CANVAS_APP_ENGAGEMENT",POST_ENGAGEMENT:"POST_ENGAGEMENT",WEBSITE_CONVERSIONS:"WEBSITE_CONVERSIONS",MOBILE_APP_INSTALLS:"MOBILE_APP_INSTALLS",WEBSITE_CLICKS:"WEBSITE_CLICKS",MOBILE_APP_ENGAGEMENT:"MOBILE_APP_ENGAGEMENT",VIDEO_VIEWS:"VIDEO_VIEWS",MEDIA_DOWNLOADS:"MEDIA_DOWNLOADS",LOCAL_AWARENESS:"LOCAL_AWARENESS",INSTAGRAM_BRAND_AWARENESS:"INSTAGRAM_BRAND_AWARENESS",IMPRESSIONS:"IMPRESSIONS",MILLE:"MILLE",MULTIPLE:"MULTIPLE",DEPRECATED_CLICKS:"DEPRECATED_CLICKS",INCOMPATIBLE_OFFER_CLAIMS:"INCOMPATIBLE_OFFER_CLAIMS",INCOMPATIBLE_PAGE_LIKES:"INCOMPATIBLE_PAGE_LIKES",INCOMPATIBLE_CANVAS_APP_INSTALLS:"INCOMPATIBLE_CANVAS_APP_INSTALLS",INCOMPATIBLE_EVENT_RESPONSES:"INCOMPATIBLE_EVENT_RESPONSES",INCOMPATIBLE_CANVAS_APP_ENGAGEMENT:"INCOMPATIBLE_CANVAS_APP_ENGAGEMENT",INCOMPATIBLE_POST_ENGAGEMENT:"INCOMPATIBLE_POST_ENGAGEMENT",INCOMPATIBLE_WEBSITE_CONVERSIONS:"INCOMPATIBLE_WEBSITE_CONVERSIONS",INCOMPATIBLE_MOBILE_APP_INSTALLS:"INCOMPATIBLE_MOBILE_APP_INSTALLS",INCOMPATIBLE_WEBSITE_CLICKS:"INCOMPATIBLE_WEBSITE_CLICKS",INCOMPATIBLE_PAGE_ENGAGEMENT:"INCOMPATIBLE_PAGE_ENGAGEMENT"};},null); __d("AdsCFEventNames",[],function(a,b,c,d,e,f){e.exports={action_adv_bid_manual_actions:"ACTION_ADV_BID_MANUAL_ACTIONS",ad_block_active:"AD_BLOCK_ACTIVE",add_coupon_init:"ADD_COUPON_INIT",admanager_create_async_ad_success_new:"ADMANAGER_CREATE_ASYNC_AD_SUCCESS_NEW",admanager_create_failure_new:"ADMANAGER_CREATE_FAILURE_NEW",admanager_create_secondary_ad_success_new:"ADMANAGER_CREATE_SECONDARY_AD_SUCCESS_NEW",admanager_create_result_new:"ADMANAGER_CREATE_RESULT_NEW",admanager_create_success_new:"ADMANAGER_CREATE_SUCCESS_NEW",admanager_enter_create_edit_new:"ADMANAGER_ENTER_CREATE_EDIT_NEW",admanager_enter_create_new:"ADMANAGER_ENTER_CREATE_NEW",admanager_enter_create_similar_new:"ADMANAGER_ENTER_CREATE_SIMILAR_NEW",admanager_enter_edit_existing_new:"ADMANAGER_ENTER_EDIT_EXISTING_NEW",admanager_generating_access_token_new:"ADMANAGER_GENERATING_ACCESS_TOKEN_NEW",admanager_inline_edit:"ADMANAGER_INLINE_EDIT",admanager_invalid_account_new:"ADMANAGER_INVALID_ACCOUNT_NEW",admanager_show_review_ad_new:"ADMANAGER_SHOW_REVIEW_AD_NEW",adscreator_data_ready:"ADSCREATOR_DATA_READY",adscreator_initial_data_err:"ADSCREATOR_INITIAL_DATA_ERR",adscreator_init:"ADSCREATOR_INIT",adscreator_render_views:"ADSCREATOR_RENDER_VIEWS",aymt_cf_dialog_close:"AYMT_CF_DIALOG_CLOSE",aymt_cf_dialog_confirm:"AYMT_CF_DIALOG_CONFIRM",aymt_cf_dialog_open:"AYMT_CF_DIALOG_OPEN",auto_entity_chosen:"AUTO_ENTITY_CHOSEN",bct_anyall_selection_click:"BCT_ANYALL_SELECTION_CLICK",bct_list_add_entry_click:"BCT_LIST_ADD_ENTRY_CLICK",bct_list_toggle_expand_click:"BCT_LIST_TOGGLE_EXPAND_CLICK",bct_typeahead_dropdown_click:"BCT_TYPEAHEAD_DROPDOWN_CLICK",bct_whitebox_category_click:"BCT_WHITEBOX_CATEGORY_CLICK",campaign_group_select:"CAMPAIGN_GROUP_SELECT",campaign_group_name_change:"CAMPAIGN_GROUP_SELECT_AND_UPDATE",campaign_groups_loaded:"CAMPAIGN_GROUPS_LOADED",campaign_select:"CAMPAIGN_SELECT",cancel_contact_importer:"CANCEL_CONTACT_IMPORTER",cancel_edited_campaign:"CANCEL_EDITED_CAMPAIGN",cancel_image_library_image_selector:"CANCEL_IMAGE_LIBRARY_IMAGE_SELECTOR",cancel_new_customer_list:"CANCEL_NEW_CUSTOMER_LIST",cancel_new_fb_page_category_news_feed_format:"CANCEL_NEW_FB_PAGE_CATEGORY_NEWS_FEED_FORMAT",cancel_new_fb_page_form_news_feed_format:"CANCEL_NEW_FB_PAGE_FORM_NEWS_FEED_FORMAT",carousel_item_navigation:"CAROUSEL_ITEM_NAVIGATION",change_account_country:"CHANGE_ACCOUNT_COUNTRY",change_account_currency:"CHANGE_ACCOUNT_CURRENCY",change_account_timezone_id:"CHANGE_ACCOUNT_TIMEZONE_ID",change_auto_update_post:"CHANGE_AUTO_UPDATE_POST",change_bid_section_visibility:"CHANGE_BID_SECTION_VISIBILITY",change_body:"CHANGE_BODY",change_budget_mode:"CHANGE_BUDGET_MODE",change_campaign_budget:"CHANGE_CAMPAIGN_BUDGET",change_campaign_name:"CHANGE_CAMPAIGN_NAME",change_campaign_schedule:"CHANGE_CAMPAIGN_SCHEDULE",change_campaign_schedule_mode:"CHANGE_CAMPAIGN_SCHEDULE_MODE",change_campaign_status:"CHANGE_CAMPAIGN_STATUS",change_image_crops:"CHANGE_IMAGE_CROPS",change_linkDescription:"CHANGE_LINK_DESCRIPTION",change_placements:"CHANGE_PLACEMENTS",change_run_continuously:"CHANGE_RUN_CONTINUOUSLY",change_title:"CHANGE_TITLE",change_call_to_action:"CHANGE_CALL_TO_ACTION",click_adv_bid_manual_clicks:"CLICK_ADV_BID_MANUAL_CLICKS",click_adv_bid_optimization_change:"CLICK_ADV_BID_OPTIMIZATION_CHANGE",click_campaign_section_help:"CLICK_CAMPAIGN_SECTION_HELP",click_campaign_pricing_section_help:"CLICK_CAMPAIGN_PRICING_SECTION_HELP",click_contact_admin:"CLICK_CONTACT_ADMIN",click_contact_importer:"CLICK_CONTACT_IMPORTER",click_creative_section_help:"CLICK_CREATIVE_SECTION_HELP",click_destination_section_help:"CLICK_DESTINATION_SECTION_HELP",click_entity_chosen:"CLICK_ENTITY_CHOSEN",click_fb_page_selector:"CLICK_FB_PAGE_SELECTOR",click_hide_adv_creative:"CLICK_HIDE_ADV_CREATIVE",click_image_cropper_item:"CLICK_IMAGE_CROPPER_ITEM",click_image_tab:"CLICK_IMAGE_LIBRARY_TAB",click_new_campaign:"CLICK_NEW_CAMPAIGN",click_new_customer_list:"CLICK_NEW_CUSTOMER_LIST",click_new_fb_page_news_feed_format:"CLICK_NEW_FB_PAGE_NEWS_FEED_FORMAT",click_objective_section_help:"CLICK_OBJECTIVE_SECTION_HELP",click_pager_image_selector:"CLICK_PAGER_IMAGE_SELECTOR",click_place_order_main:"CLICK_PLACE_ORDER_MAIN",click_post_selector:"CLICK_POST_SELECTOR",click_pricing_section_help:"CLICK_PRICING_SECTION_HELP",click_review_ad_main:"CLICK_REVIEW_AD_MAIN",click_show_adv_creative:"CLICK_SHOW_ADV_CREATIVE",click_show_adv_pricing:"CLICK_SHOW_ADV_PRICING",click_simple_pricing_section_help:"CLICK_SIMPLE_PRICING_SECTION_HELP",click_targeting_section_help:"CLICK_TARGETING_SECTION_HELP",click_upload_image_selector:"CLICK_UPLOAD_IMAGE_SELECTOR",click_use_existing_campaign:"CLICK_USE_EXISTING_CAMPAIGN",click_xout_destination:"CLICK_XOUT_DESTINATION",clicked_keyword:"CLICKED_KEYWORD",confirm_image_library_image_selector:"CONFIRM_IMAGE_LIBRARY_IMAGE_SELECTOR",conversion_pixel_created:"CONVERSION_PIXEL_CREATED",conversion_pixel_email_send:"CONVERSION_PIXEL_EMAIL_SEND","conversion-pixel-removed":"CONVERSION_PIXEL_REMOVED","conversion-pixel-selected":"CONVERSION_PIXEL_SELECTED",creative_changed:"CREATIVE_CHANGED",daoerror:"DAOERROR",destination_render:"DESTINATION_RENDER",detect_error_in_file:"DETECT_ERROR_IN_FILE",dismiss_campaign_save_success:"DISMISS_CAMPAIGN_SAVE_SUCCESS",dispatch:"DISPATCH",edit_campaign_button_click:"EDIT_CAMPAIGN_BUTTON_CLICK",edit_fb_page_selector:"EDIT_FB_PAGE_SELECTOR",edit_full_ad_link_clicked:"EDIT_FULL_AD_LINK_CLICKED",error_occurrence:"ERROR_OCCURRENCE",error_pending_object_service:"ERROR_PENDING_OBJECT_SERVICE",first_keyword:"FIRST_KEYWORD",has_cpa_bid_option:"HAS_CPA_BID_OPTION",has_url_eligible_pages:"HAS_URL_ELIGIBLE_PAGES",hit_save:"HIT_SAVE",image_dialog_open:"IMAGE_DIALOG_OPEN",image_download_error:"IMAGE_DOWNLOAD_ERROR",import_contact_success:"IMPORT_CONTACT_SUCCESS",informed_error:"INFORMED_ERROR",init_data_fetch_error:"INIT_DATA_FETCH_ERROR",kpi_edit_objective:"KPI_EDIT_OBJECTIVE",kpi_objective_auto_confirm:"KPI_OBJECTIVE_AUTO_CONFIRM",kpi_objective_confirm:"KPI_OBJECTIVE_CONFIRM",kpi_objective_see_more:"KPI_OBJECTIVE_SEE_MORE",kpi_objective_selected:"KPI_OBJECTIVE_SELECTED",mobile_optimized_url_check_fail:"MOBILE_OPTIMIZED_URL_CHECK_FAIL",mobile_optimized_url_check_success:"MOBILE_OPTIMIZED_URL_CHECK_SUCCESS",mobile_optimized_url_check:"MOBILE_OPTIMIZED_URL_CHECK",modify_cpc_bid_value:"MODIFY_CPC_BID_VALUE",modify_cpm_bid_value:"MODIFY_CPM_BID_VALUE",modify_ocpm_action_bid_value:"MODIFY_OCPM_ACTION_BID_VALUE",navigation_click:"NAVIGATION_CLICK",navigation_section_entered:"NAVIGATION_SECTION_ENTERED",neko_device_toggled:"NEKO_DEVICE_TOGGLED",neko_eligible_user_entered:"NEKO_ELIGIBLE_USER_ENTERED",neko_icon_selected_invalid:"NEKO_ICON_SELECTED_INVALID",neko_icon_selected_valid:"NEKO_ICON_SELECTED_VALID",neko_image_selected_invalid:"NEKO_IMAGE_SELECTED_INVALID",neko_image_selected_valid:"NEKO_IMAGE_SELECTED_VALID",neko_os_updated:"NEKO_OS_UPDATED",no_url_eligible_pages:"NO_URL_ELIGIBLE_PAGES",objective_selected:"OBJECTIVE_SELECTED",one_link_flow_click_place_order_main:"ONE_LINK_FLOW_CLICK_PLACE_ORDER_MAIN",one_link_flow_click_review_ad_main:"ONE_LINK_FLOW_CLICK_REVIEW_AD_MAIN",one_link_flow_complete:"ONE_LINK_FLOW_COMPLETE",one_link_flow_edit:"ONE_LINK_FLOW_EDIT",one_link_flow_enter:"ONE_LINK_FLOW_ENTER",one_link_flow_upsell_xout:"ONE_LINK_FLOW_UPSELL_XOUT",pagepost_composer_open:"PAGEPOST_COMPOSER_OPEN",pagepost_publish_linkshare:"PAGEPOST_PUBLISH_LINKSHARE",pagepost_publish_photo:"PAGEPOST_PUBLISH_PHOTO",pagepost_publish_status:"PAGEPOST_PUBLISH_STATUS",payment_cancelled:"PAYMENT_CANCELLED",payment_completed:"PAYMENT_COMPLETED",payment_initiated:"PAYMENT_INITIATED",payment_error:"PAYMENT_ERROR",payment_place_order_clicked:"PAYMENT_PLACE_ORDER_CLICKED",php_page_post_creation_failed:"PHP_PAGE_POST_CREATION_FAILED",preview_pagelet_error:"PREVIEW_PAGELET_ERROR",preview_tab_switch:"PREVIEW_TAB_SWITCH",pricing_changed:"PRICING_CHANGED",render_add_funding:"RENDER_ADD_FUNDING",restore_pricing_defaults:"RESTORE_PRICING_DEFAULTS",review_ad_dialog_add_funding:"REVIEW_AD_DIALOG_ADD_FUNDING",review_ad_dialog_cancel:"REVIEW_AD_DIALOG_CANCEL",review_ad_dialog_place_order:"REVIEW_AD_DIALOG_PLACE_ORDER",review_ad_dialog_show:"REVIEW_AD_DIALOG_SHOW",save_ad_success:"SAVE_AD_SUCCESS",save_edited_campaign_click:"SAVE_EDITED_CAMPAIGN_CLICK",save_edited_campaign_error:"SAVE_EDITED_CAMPAIGN_ERROR",save_edited_campaign_success:"SAVE_EDITED_CAMPAIGN_SUCCESS",save_edited_campaign_timeout:"SAVE_EDITED_CAMPAIGN_TIMEOUT",url_search_error:"URL_SEARCH_ERROR",selected_neko_eligible_app:"SELECTED_NEKO_ELIGIBLE_APP",selected_neko_ineligible_app:"SELECTED_NEKO_INELIGIBLE_APP",show_create:"SHOW_CREATE",show_create_reenter:"SHOW_CREATE_REENTER",show_create_similar:"SHOW_CREATE_SIMILAR",show_default_creative_image:"SHOW_DEFAULT_CREATIVE_IMAGE",show_edit_existing:"SHOW_EDIT_EXISTING",show_high_error_warning:"SHOW_HIGH_ERROR_WARNING",show_stock_image_guidelines:"SHOW_STOCK_IMAGE_GUIDELINES",show_image_cropper_dialog:"SHOW_IMAGE_CROPPER_DIALOG",start_constant_contact_auth:"START_CONSTANT_CONTACT_AUTH",start_file_uploading:"START_FILE_UPLOADING",start_mailchimp_auth:"START_MAILCHIMP_AUTH",search_stock_images:"SEARCH_STOCK_IMAGES",success_dialog_click_create_similar:"SUCCESS_DIALOG_CLICK_CREATE_SIMILAR",success_dialog_click_manage_ads:"SUCCESS_DIALOG_CLICK_MANAGE_ADS",success_dialog_fail_ad_creation:"SUCCESS_DIALOG_FAIL_AD_CREATION",success_dialog_ad_creation_timeout:"SUCCESS_DIALOG_AD_CREATION_TIMEOUT",success_dialog_fail_request_related_data:"SUCCESS_DIALOG_FAIL_REQUEST_RELATED_DATA",success_dialog_create_ad_started:"SUCCESS_DIALOG_CREATE_AD_STARTED",success_dialog_create_ad_success:"SUCCESS_DIALOG_CREATE_AD_SUCCESS",success_dialog_shown:"SUCCESS_DIALOG_SHOWN",success_fb_page_selector:"SUCCESS_FB_PAGE_SELECTOR",success_image_library_image_selector:"SUCCESS_IMAGE_LIBRARY_IMAGE_SELECTOR",success_image_library_image_deselect:"SUCCESS_IMAGE_LIBRARY_IMAGE_DESELECT",success_new_fb_page_news_feed_format:"SUCCESS_NEW_FB_PAGE_NEWS_FEED_FORMAT",success_upload_image_selector:"SUCCESS_UPLOAD_IMAGE_SELECTOR",suggested_keyword:"SUGGESTED_KEYWORD",targeting_age_max_changed:"TARGETING_AGE_MAX_CHANGED",targeting_age_min_changed:"TARGETING_AGE_MIN_CHANGED",targeting_changed:"TARGETING_CHANGED",targeting_cities_changed:"TARGETING_CITIES_CHANGED",targeting_collage_majors_changed:"TARGETING_COLLAGE_MAJORS_CHANGED",targeting_college_networks_changed:"TARGETING_COLLEGE_NETWORKS_CHANGED",targeting_connections_changed:"TARGETING_CONNECTIONS_CHANGED",targeting_countries_changed:"TARGETING_COUNTRIES_CHANGED",targeting_education_majors_changed:"TARGETING_EDUCATION_MAJORS_CHANGED",targeting_education_schools_changed:"TARGETING_EDUCATION_SCHOOLS_CHANGED",targeting_education_status_changed:"TARGETING_EDUCATION_STATUS_CHANGED",targeting_geolocations_add_country:"TARGETING_GEOLOCATIONS_ADD_COUNTRY",targeting_geolocations_add_region:"TARGETING_GEOLOCATIONS_ADD_REGION",targeting_geolocations_add_city:"TARGETING_GEOLOCATIONS_ADD_CITY",targeting_geolocations_add_zip:"TARGETING_GEOLOCATIONS_ADD_ZIP",targeting_geolocations_remove_country:"TARGETING_GEOLOCATIONS_REMOVE_COUNTRY",targeting_geolocations_remove_region:"TARGETING_GEOLOCATIONS_REMOVE_REGION",targeting_geolocations_remove_city:"TARGETING_GEOLOCATIONS_REMOVE_CITY",targeting_geolocations_remove_zip:"TARGETING_GEOLOCATIONS_REMOVE_ZIP",targeting_geolocations_radius_changed:"TARGETING_GEOLOCATIONS_RADIUS_CHANGED",targeting_interested_in_sex_changed:"TARGETING_INTERESTED_IN_SEX_CHANGED",targeting_keywords_changed:"TARGETING_KEYWORDS_CHANGED",targeting_loactions_changed:"TARGETING_LOACTIONS_CHANGED",targeting_locales_changed:"TARGETING_LOCALES_CHANGED",targeting_locations_changed:"TARGETING_LOCATIONS_CHANGED",targeting_max_grad_year_changed:"TARGETING_MAX_GRAD_YEAR_CHANGED",targeting_min_grad_year_changed:"TARGETING_MIN_GRAD_YEAR_CHANGED",targeting_regions_changed:"TARGETING_REGIONS_CHANGED",targeting_relationship_changed:"TARGETING_RELATIONSHIP_CHANGED",targeting_sex_changed:"TARGETING_SEX_CHANGED",targeting_target_all_graduation_years_changed:"TARGETING_TARGET_ALL_GRADUATION_YEARS_CHANGED",targeting_user_adclusters_changed:"TARGETING_USER_ADCLUSTERS_CHANGED",targeting_user_conjunctive_adclusters_changed:"TARGETING_USER_CONJUNCTIVE_ADCLUSTERS_CHANGED",targeting_work_employers_changed:"TARGETING_WORK_EMPLOYERS_CHANGED",targeting_work_networks_changed:"TARGETING_WORK_NETWORKS_CHANGED",targeting_zips_changed:"TARGETING_ZIPS_CHANGED",unsupported_adgroup:"UNSUPPORTED_ADGROUP",upsell_click_conversion_pixel:"UPSELL_CLICK_CONVERSION_PIXEL",upsell_click_extend_campaign:"UPSELL_CLICK_EXTEND_CAMPAIGN",upsell_click_increase_budget:"UPSELL_CLICK_INCREASE_BUDGET",upsell_shown_conversion_pixel:"UPSELL_SHOWN_CONVERSION_PIXEL",upsell_shown_extend_campaign:"UPSELL_SHOWN_EXTEND_CAMPAIGN",upsell_shown_increase_budget:"UPSELL_SHOWN_INCREASE_BUDGET",upsell_shown_track_mobile_app_install:"UPSELL_SHOWN_TRACK_MOBILE_APP_INSTALL",upsell_shown_increase_account_spend_cap:"UPSELL_SHOWN_INCREASE_ACCOUNT_SPEND_CAP",upsell_click_track_mobile_app_install_compose:"UPSELL_CLICK_TRACK_MOBILE_APP_INSTALL_COMPOSE",upsell_click_track_mobile_app_install_send:"UPSELL_CLICK_TRACK_MOBILE_APP_INSTALL_SEND",upsell_click_track_mobile_app_install_info:"UPSELL_CLICK_TRACK_MOBILE_APP_INSTALL_INFO",url_has_related_fan_page:"URL_HAS_RELATED_FAN_PAGE",url_no_related_fan_page:"URL_NO_RELATED_FAN_PAGE",use_audience_builder:"USE_AUDIENCE_BUILDER"};},null); __d("AdsOtherConsts",[],function(a,b,c,d,e,f){e.exports={REACH_TOO_LOW_NUMBER:1000};},null); __d("ApiCreativeTypes",[],function(a,b,c,d,e,f){e.exports={STANDARD:1,INLINE_FAN:2,INLINE_RSVP:3,PLATFORM_CONTEXT:4,BASS_PLATFORM_STORY:8,BASS_PAGE_CONNECTIONS:9,BASS_PAGE_CHECKINS:10,PREMIUM_STANDARD:12,PREMIUM_PLATFORM:15,BASS_APP_CONNECTIONS:16,BASS_ENGAGEMENT:17,BASS_LINK_SHARE:19,BASS_QUESTIONS_VOTE:20,QUERY_BASED:25,PAGE_POSTS_V2:27,RESEARCH_POLL:28,TYPEAHEAD:31,CONTEXTUAL_APP_AD:32,PREMIUM_FEED_VIDEO_AD:34,INSTAGRAM_AD:35,EXOTIC_OR_INVALID:0};},null); __d("BoostedPostColumns",[],function(a,b,c,d,e,f){e.exports={EVENT_TYPE:"event_type",APP_ID:"app_id",PAGE_ID:"page_id",POST_ID:"post_id",USER_ID:"user_id",ACTIVITY_ID:"activity_id",AD_ACCOUNT_ID:"ad_account_id",ADGROUP_CREATE_FINAL_RETRY:"adgroup_create_final_retry",ADGROUP_ERROR_MD5:"adgroup_error_md5",ADGROUP_ERROR_RAW:"adgroup_error_raw",ADGROUP_SPEC:"adgroup_spec",API_RESULTS:"api_results",AUDIENCE_ID:"audience_id",AUTO_OPEN_TYPE:"auto_open_type",NUM_APPROVED_ADGROUPS:"num_approved_adgroups",NUM_DISAPPROVED_ADGROUPS:"num_disapproved_adgroups",ASYNC_ARGS:"async_args",BOOSTING_STATUS:"boosting_status",BUDGET:"budget",BUDGET_DEFAULT:"budget_default",BUDGET_DEFAULT_USD:"budget_default_usd",BUDGET_MIN:"budget_min",BUDGET_SPENT:"budget_spent",BUDGET_SPENT_USD:"budget_spent_usd",BUDGET_REMAINING:"budget_remaining",BUDGET_TO_MAX_BUDGET_PERCENT:"budget_to_max_budget_percent",BUDGET_USD:"budget_usd",BUTTON_TYPE:"button_type",CAMPAIGN_CREATE_TIME:"campaign_create_time",CAMPAIGN_EXTEND_TIME:"campaign_extend_time",CAMPAIGN_ID:"campaign_id",CAMPAIGN_NAME:"campaign_name",CAMPAIGN_STATUS:"campaign_status",CODED_EXCEPTION_CODE:"coded_exception_code",CODED_EXCEPTION_MESSAGE:"coded_exception_message",CODED_EXCEPTION_SUMMARY:"coded_exception_summary",CODED_EXCEPTION_TRACE:"coded_exception_trace",CURRENCY:"currency",CUSTOM_BUDGET_SELECTED:"custom_budget_selected",CUSTOM_TARGETING_RAW:"custom_targeting_raw",DID_AUTO_EXTEND:"did_auto_extend",DID_SEND_NOTIF:"did_send_notif",DISPLAY_SECTION:"display_section",ERROR_MESSAGE:"error_message",ERROR_TRACE:"error_trace",FANS_PAID_REACH:"fans_paid_reach",FANS_REACH:"fans_reach",HAS_FUNDING_SOURCE:"has_funding_source",INCREMENTAL_REACH:"incremental_reach",INCREMENTAL_SPEND:"incremental_spend",INCREMENTAL_SPEND_USD:"incremental_spend_usd",INELIGIBLE_REASON:"ineligible_reason",MINI_STORY_EVENT_TYPE:"mini_story_event_type",IS_FIRST_CAMPAIGN:"is_first_campaign",LOWER_REACH_ESTIMATE:"lower_reach_estimate",MODIFIED_EXTERNALLY:"modified_externally",NEW_BUDGET:"new_budget",NEW_BUDGET_USD:"new_budget_usd",NEW_REACH_ESTIMATES:"new_reach_estimates",OBJECTIVE:"objective",ORGANIC_REACH:"organic_reach",PAID_REACH:"paid_reach",PAGE_CATEGORY:"page_category",PAGE_FANS:"page_fans",PERCENT_SPENT:"percent_spent",PLACEMENT:"placement",POST_AGE:"post_age",QE_GROUPS:"qe_groups",REACH_ACCURACY:"reach_accuracy",REACH_ESTIMATE_AVAILABLE:"reach_estimate_available",REACH_ESTIMATES:"reach_estimates",RESCHEDULE_COUNT:"reschedule_count",RESCHEDULED_NEW_JOB:"rescheduled_new_job",RETARGET_SUCCESS:"retarget_success",SAMPLE_RATE:"sample_rate",SIGNALS:"signals",STORY_TYPE:"story_type",SURVEY_STAR_RATING:"survey_star_rating",SURVEY_TEXT_FEEDBACK:"survey_text_feedback",TARGETING:"targeting",TARGETING_OPTIONS:"targeting_options",TOTAL_REACH:"total_reach",UPPER_REACH_ESTIMATE:"upper_reach_estimate",USE_AUDIENCE_MANAGER:"use_audience_manager",USE_CUSTOM_TARGETING:"use_custom_targeting",SOURCE_APP_ID:"source_app_id",ADGROUP_ID:"adgroup_id",ASYNC_AUTOAPPROVE:"async_autoapprove",IS_RETRY:"is_retry",ERRORS:"errors",WARNING_TYPE:"warning_type",IS_FIRST_AD:"is_first_ad",IS_FEATURED:"is_featured",CAMPAIGN_DB_ID:"campaign_db_id",IS_SYNC:"is_sync",EXPECTED_NUM_ADGROUPS:"expected_num_adgroups",CREATIVE_SPEC:"creative_spec",PROCESSING_TIME:"processing_time",AUDIENCE_OPTION:"audience_option"};},null); __d("BoostedPostCustomTargetingTypes",[],function(a,b,c,d,e,f){e.exports={AGE_MIN:"age_min",AGE_MAX:"age_max",GENDERS:"genders",GEO_LOCATIONS:"geo_locations",INTERESTS:"interests",KEYWORDS:"keywords",LOCALES:"locales",LOCATIONS:"locations",CUSTOM_AUDIENCE:"custom_audiences",RADIUS:"radius"};},null); __d("BoostedPostEventType",[],function(a,b,c,d,e,f){e.exports={INITIALIZE:"initialize",FIRST_INITIALIZE:"first_initialize",EXTEND:"extend",DELETE:"delete",ACTIVATE:"activate",PAUSE:"pause",ADD_BUDGET:"add_budget",ADGROUP_CREATE_FAIL:"adgroup_create_fail",ASYNC_DELETE_FAIL:"async_delete_fail",REVIEWED:"reviewed",CREATE_DIALOG_OPEN:"create_dialog_open",EDIT_DIALOG_OPEN:"edit_dialog_open",ACTION_MENU_OPEN:"action_menu_open",ACTION_MENU_CLOSE:"action_menu_close",ADD_PAYMENT_HEADER_EDIT_CLICKED:"add_payment_header_edit_clicked",ADD_PAYMENT_HEADER_EDIT_COMPLETED:"add_payment_header_edit_completed",ADD_PAYMENT_HEADER_EDIT_NOT_COMPLETED:"add_payment_header_edit_not_completed",BAD_ADD_BUDGET:"bad_add_budget",BOOST_BUTTON_RENDERED:"boost_button_rendered",BUDGET_CHANGED:"budget_changed",BUDGET_SELECTOR_EDIT_BUTTON:"budget_selector_edit_button",BUDGET_TEXT_CHANGED:"budget_text_changed",BUDGET_TEXT_TOO_LOW:"budget_text_too_low",CAMPAIGN_FINISHED:"campaign_finished",CLICKED_AFTER_BUDGET_NOTIFICATION:"clicked_after_budget_notification",CODED_EXCEPTION:"coded_exception",COMPOSER_CREATE_CANCEL:"composer_create_cancel",COMPOSER_CREATE_SAVE:"composer_create_save",COMPOSER_FLYOUT_OPEN:"composer_flyout_open",CREATE_MORE_OPTIONS:"create_more_options",CREATE_SAVE_CLICK:"create_save_click",DURATION_CHANGED:"duration_changed",EDIT_BUDGET_BUTTON:"edit_budget_button",EDIT_BUDGET_SAVE:"edit_budget_save",ERROR_BOX_RENDER:"error_box_render",FUNDING_SOURCE_CHECKED:"funding_source_checked",PAYMENT_FLOW_CANCELED:"payment_flow_canceled",PAYMENT_FLOW_COMPLETE:"payment_flow_complete",PAYMENT_FLOW_START:"payment_flow_start",RENDER_FAILED:"render_failed",RETARGET_BUTTON_RENDER:"retarget_button_render",RETARGET_ATTEMPT:"retarget_attempt",TIMELINE_CREATE_FLYOUT_OPEN:"timeline_create_flyout_open",TIMELINE_CREATE_SAVE:"timeline_create_save",TIMELINE_EDIT_FLYOUT_OPEN:"timeline_edit_flyout_open",TIMELINE_RESUME_BOOSTING:"timeline_resume_boosting",TIMELINE_STOP_BOOSTING:"timeline_stop_boosting",SNOWLIFT_FLYOUT_OPEN:"snowlift_flyout_open",PHOTO_PERMALINK_FLYOUT_OPEN:"photo_permalink_flyout_open",MONITOR_SCHEDULE:"monitor_schedule",MONITOR_HEARTBEAT:"monitor_heartbeat",NCPP_SELECTED:"ncpp_selected",GROUPER_SELECTED:"grouper_selected",SURVEY_STAR_RATING:"survey_star_rating",SURVEY_TEXT_FEEDBACK:"survey_text_feedback",SCHEDULE_ADGROUP_CREATE:"schedule_adgroup_create",SCHEDULE_CHANGED:"schedule_changed",TARGETING_CHANGED:"targeting_changed",ADGROUP_CREATE:"adgroup_create",TARGETING_WARNING_SHOWN:"targeting_warning_shown",OBJECTIVE_CHANGED:"objective_changed",DELETE_PROMOTION:"delete_promotion",UNKNOWN:"unknown",CAMPAIGN_UPDATE_FAILED:"campaign_update_failed",CREATIVE_INVALID:"creative_invalid",CREATE_BOOST:"create_boost",AM_LAST_USED_AUDIENCE_SHOWN:"am_last_used_audience_shown",AM_FIRST_AUDIENCE_SHOWN:"am_first_audience_shown",AM_DEFAULT_AUDIENCE_SHOWN:"am_default_audience_shown",AM_DEFAULT_AUDIENCE_EDITED:"am_default_audience_edited",AM_AUDIENCE_CREATED:"am_audience_created",AM_AUDIENCE_EDITED:"am_audience_edited",AM_AUDIENCE_DELETED:"am_audience_deleted",AM_AUDIENCE_CHANGED:"am_audience_changed"};},null); __d("OcpmAdConfig",[],function(a,b,c,d,e,f){e.exports={actionsMultiplier:.5,clicksMultiplier:.5,mobileInstallMultiplier:1,offsiteMultiplier:3};},null); __d("AdsActionTypes",["keyMirror"],function(a,b,c,d,e,f,g){var h=g({PAGE_TRANSITION:true});e.exports=h;},null); __d("AdsDispatchActionTypeUtils",[],function(a,b,c,d,e,f){"use strict";var g='_supportedActions';function h(i,j){var k={},l={};for(var m in j){k[m]=i+m;l[i+m]=m;}k[g]=l;return k;}e.exports={createActionTypeMap:h};},null); __d("AdsCFActionTypes",["AdsDispatchActionTypeUtils"],function(a,b,c,d,e,f,g){var h='ADS_CF_',i={RHC_REDESIGN_CHANGE:null,IMAGE_CROP_CHANGE:null,IMAGE_CROP_ITEM_CLICK:null,IMAGE_CROP_DIALOG_SHOW:null,ACCOUNT_INIT:null,CONVERSION_PIXELS_CHANGE:null,OFFSITE_PIXELS_TOS_ACCEPTED:null,CHANGE_ACCOUNT_CURRENCY:null,CHANGE_ACCOUNT_TIMEZONE_ID:null,CHANGE_ACCOUNT_COUNTRY:null,COUPON_ACTIVATED:null,CHANGE_FUNDING_SOURCE:null,ADD_ACTOR:null,CHANGE_ACTORS:null,INIT_ACTORS:null,CHANGE_AD_NAME:null,CAROUSEL_ITEM_NAVIGATION:null,OBJECTIVE_CHANGE:null,KPI_OBJECTIVE_CHANGE:null,KPI_OBJECTIVE_CONFIRM:null,KPI_OBJECTIVE_SEE_MORE:null,CREATIVE_INIT:null,CREATIVE_CHANGE:null,CREATIVE_PLACEMENTS_CHANGE:null,CREATIVE_STATUS_CHANGE:null,IMAGE_VALIDATED:null,PREVIEW_TAB_SWITCH:null,PREVIEW_LOADING_CHANGE:null,MEDIA_UPDATE:null,IMAGE_VERSION_ADD:null,IMAGE_DIMENSIONS_READY:null,STOCK_SEARCH:null,STOCK_SEARCH_RESULTS_READY:null,VIDEO_UPLOAD_START:null,VIDEO_UPLOAD_CANCEL:null,VIDEO_UPLOAD_SUCCESS:null,VIDEO_UPLOAD_ERROR:null,VIDEO_UPLOAD_PROGRESS:null,VIDEO_ENCODING_SUCCESS:null,IMAGE_UPLOAD_CLICK:null,IMAGE_UPLOAD_SUCCESS:null,IMAGE_DOWNLOAD_ERROR:null,IMAGE_SELECT_CLICK:null,IMAGE_SELECT_SUCCESS:null,IMAGE_DESELECT_SUCCESS:null,IMAGE_SELECT_CONFIRMED:null,IMAGE_SELECT_CANCEL:null,IMAGE_LIBRARY_TAB_CLICK:null,STOCK_IMAGE_SEARCH:null,STOCK_IMAGE_SEARCH_TEXT_CHANGE:null,STOCK_IMAGE_GUIDELINES_SHOW:null,CAMPAIGNS_LOADED:null,CAMPAIGN_SELECT:null,CANCEL_EDITED_CAMPAIGN:null,CHANGE_CAMPAIGN:null,CHANGE_CAMPAIGN_BUDGET:null,CHANGE_CAMPAIGN_BUDGET_MODE:null,CHANGE_CAMPAIGN_NAME:null,CHANGE_CAMPAIGN_SCHEDULE_MODE:null,CHANGE_CAMPAIGN_SCHEDULE:null,CHANGE_CAMPAIGN_STATUS:null,DISMISS_CAMPAIGN_SAVE_SUCCESS:null,EDIT_CAMPAIGN_BUTTON_CLICK:null,SAVE_EDITED_CAMPAIGN_CLICK:null,SAVE_EDITED_CAMPAIGN_ERROR:null,SAVE_EDITED_CAMPAIGN_SUCCESS:null,SAVE_EDITED_CAMPAIGN_TIMEOUT:null,SELECT_EXISTING_CAMPAIGN:null,SELECT_NEW_CAMPAIGN:null,CHANGE_BID_SECTION_VISIBILITY:null,CAMPAIGN_GROUP_SELECT:null,CAMPAIGN_GROUP_SELECT_AND_UPDATE:null,CAMPAIGN_GROUP_LOAD:null,CAMPAIGN_GROUPS_LOADED:null,INIT_DATA_FETCH_ERROR:null,INIT_DATA_LOADED:null,INIT_DATA_RECEIVED:null,INIT_STARTED:null,PLACE_ORDER_CLICKED:null,PLACE_ORDER_INITIATED:null,REVIEW_AD_INITIATED:null,REVIEW_DIALOG_SHOW:null,REVIEW_DIALOG_CANCEL:null,SAVE_AD_INITIATED:null,CREATE_MODE_CONFIG_CHANGE:null,SHOW_MODE_CHANGED:null,URI_CHANGE:null,HELP_LINK_CLICK:null,DESTINATION_CHANGE:null,DESTINATION_DETAILS_LOADED:null,DESTINATION_FETCH_ERROR:null,DESTINATION_SELECT:null,DESTINATION_UPDATE:null,KPI_DESTINATION_SELECT:null,MOBILE_OPTIMIZED_URL_CHECK_FAIL:null,MOBILE_OPTIMIZED_URL_CHECK_SUCCESS:null,NEW_PAGE_DESTINATION_SELECT:null,PAGE_POSTS_LOADED:null,PAGE_POSTS_LOAD_COMPLETE:null,PAGE_POSTS_PUBLISHED:null,POST_LINK_DATA_LOADED:null,RESET_DESTINATION:null,CLICK_CONTACT_ADMIN:null,PAGE_SELECTOR_CLICK:null,PAGE_CREATE_CLICK:null,BID_ESTIMATE_CHANGE:null,AUDIENCE_ESTIMATE_CHANGE:null,TARGETING_SENTENCE_CHANGE:null,TARGETING_CHANGE:null,TARGETABLE_AUDIENCES_CHANGE:null,TARGETING_RESET_DEFAULTS:null,GEO_COORDINATES_LOADED:null,BID_CHANGE:null,BID_OPTION_CHANGE:null,BID_PRICE_CHANGE:null,CONVERSION_PIXEL_CHANGE:null,CPA_BID_AVAILABLE:null,DSO_FIELD_CHANGE:null,RESTORE_PRICING_DEFAULTS:null,CHANGE_PIXEL_EMAIL_PERSONAL_MESSAGE:null,ADD_PIXEL_EMAIL_RECIPIENT:null,REMOVE_PIXEL_EMAIL_RECIPIENT:null,CHANGE_PIXEL_SNIPPET_VIEW_MODE:null,CONFIRM_SNIPPET_VIEW:null,CONVERSION_PIXEL_CREATED:null,CODE_MAP_CHANGE:null,CODE_MAP_RESET:null,LOG:null,FOCUS_REQUEST:null,PAYMENTS_FLOW_CANCELLED:null,PAYMENTS_FLOW_ERROR:null,PAYMENTS_FLOW_SUCCESS:null,ADS_MANAGER_REDIRECT:null,CONVERSION_PIXEL_LINK_CLICK:null,CREATE_AD_SUCCESS:null,CREATE_AD_FAIL:null,CREATE_AD_FAIL_WITH_CAMPAIGN_SUCCESS:null,CREATE_AD_TIMEOUT:null,CREATE_SIMILAR_AD:null,EXTEND_CAMPAIGN:null,EXTEND_CAMPAIGN_FAIL:null,EXTEND_CAMPAIGN_SUCCESS:null,INCREASE_BUDGET:null,INCREASE_BUDGET_FAIL:null,INCREASE_BUDGET_SUCCESS:null,REQUEST_RELATED_DATA_FAIL:null,REQUEST_RELATED_DATA_SUCCESS:null,TRACK_MOBILE_APP_INSTALL_COMPOSE:null,TRACK_MOBILE_APP_INSTALL_SEND:null,TRACK_MOBILE_APP_INSTALL_SEND_FAIL:null,TRACK_MOBILE_APP_INSTALL_SEND_SUCCESS:null,TRACK_MOBILE_APP_INSTALL_INFO:null,SAVE_AD_SUCCESS:null,NAVIGATION_SECTION_ADD:null,NAVIGATION_SECTION_REMOVE:null,NAVIGATION_SECTION_ENTERED:null,NAVIGATION_SECTION_EXITED:null,NAVIGATION_SECTION_GO:null,NAVIGATION_SECTION_SCROLL_DONE:null},j=g.createActionTypeMap(h,i);e.exports=j;},null); __d("AdsCFConstants",["fbt","keyMirror"],function(a,b,c,d,e,f,g,h){var i={ACTIONS:'actions',CLICKS:'clicks',IMPRESSIONS:'impressions'},j=h({PENDING:null,SUCCESS:null,FAILURE:null}),k={DAILY:'daily',LIFETIME:'lifetime'},l=h({EXTEND_CAMPAIGN:null,INCREASE_BUDGET:null,UNPAUSE:null}),m=h({ACTIVE:null,PAUSED:null}),n=h({ACTIVE:null,PAUSED:null}),o=h({CONTINUOUSLY:null,SCHEDULED:null}),p=h({START_DATE_BEFORE_NOW:null,END_DATE_BEFORE_START_DATE:null,END_DATE_BEFORE_NOW:null,INSUFFICIENT_DAILY_BUDGET:null}),q='canonical-id',r="error entity",s={CREATE_NEW:'create-new',CREATE_SIMILAR:'create-similar',EDIT_EXISTING:'edit-existing'},t={PRIMARY:'primary-creative-id',SECONDARY:'secondary-creative-id'},u=h({AUTO_FILL_OTHER:null,PREFILLED_FROM_URL:null,SINGLE_OBJECT_PREFILL:null,USER_SELECTED:null}),v={};v[s.CREATE_NEW]="Advertise on Facebook";v[s.CREATE_SIMILAR]="Create a Similar Ad";v[s.EDIT_EXISTING]="Edit Your Ad";var w=h({DEFAULT:null,AYMT_DIALOG:null,AYMT_REFERRAL:null}),x={INCREASE_ACCOUNT_SPEND_CAP:1,EXTEND_CAMPAIGN:1,INCREASE_BUDGET:1,CONVERSION_PIXEL:2,TRACK_MOBILE_APP_INSTALL:2},y={ACTIVE:1,DISABLED:2,UNSETTLED:3,PENDING_REVIEW:7,PENDING_CLOSURE:100,CLOSED:101},z=h({EXTEND_CAMPAIGN:null,INCREASE_BUDGET:null,CONVERSION_PIXEL:null,TRACK_MOBILE_APP_INSTALL:null,INCREASE_ACCOUNT_SPEND_CAP:null}),aa=h({DEFAULT:null,FAILURE:null,IN_PROGRESS:null,SUCCESS:null}),ba=h({BEGIN:null,COMPOSE:null,SENDING:null,SUCCESS:null,FAILURE:null}),ca=h({OBJECTIVE_SELECTOR:null,SUGGESTION:null,PIXEL_UPSELL:null}),da={ENABLED:'enabled',DISABLED:'disabled',NOT_SUPPORTED:'not_supported'},ea=h({RHC:null,NEWS_FEED:null,MOBILE_NEWS_FEED:null,FAN:null}),fa={};fa[ea.RHC]="Right Column";fa[ea.NEWS_FEED]="News Feed";fa[ea.MOBILE_NEWS_FEED]="Mobile News Feed";fa[ea.FAN]="Facebook Audience Network";var ga=h({FAILURE:null,IN_PROGRESS:null,SUCCESS:null}),ha={NONE:'none',ONLY_PLACEMENT:'only-placement',ONLY_PLACEMENT_EXCEPT_FAN:'only-placement-except-fan'},ia={};ia[ha.ONLY_PLACEMENT]="You need at least one placement to show your ad on Facebook. This is the only placement you've selected, so it can't be removed.";ia[ha.ONLY_PLACEMENT_EXCEPT_FAN]="The mobile News Feed placement can't be removed if you want to show your ad in the Audience Network.";e.exports={AccountStatus:y,BidOptions:i,CampaignBudgetModes:k,CampaignDialogActionTypes:l,CampaignGroupRunStatuses:m,CampaignRunStatuses:n,CampaignScheduleModes:o,CampaignValidationErrors:p,CanonicalID:q,CreateMode:s,CreativeID:t,DataStates:ga,DestinationSelectionSource:u,DocumentTitles:v,Environments:w,ErrorEntityID:r,MobileAppInstallUpsellStates:ba,NEW_CAMPAIGN_GROUP_ID:'NEW_CAMPAIGN_GROUP_ID',NEW_CAMPAIGN_ID:'NEW_CAMPAIGN_ID',ObjectiveChangeSource:ca,PlacementCannotDisableDescription:ia,PlacementCannotDisableReason:ha,PlacementID:ea,PlacementIDStrings:fa,PlacementStates:da,RemoteCallStatus:j,UpsellRankings:x,UpsellTypes:z,UpsellViewStates:aa};},null); __d("AdsPayloadSource",[],function(a,b,c,d,e,f){var g={CLEANUP_ACTION:'cleanup-action',INITIAL_SERVER:'initial-server',SERVER_RESPONSE:'server-response',UNKNOWN_SOURCE:'unknown-source',VIEW_ACTION:'view-action',URL_PARAM_LOAD:'url-param-load',PAGE_TRANSITION:'page-transition'};e.exports=g;},null); __d("Informer",["Arbiter","copyProperties","emptyFunction"],function(a,b,c,d,e,f,g,h,i){'use strict';function j(){this._arbiter=new g();this._isBatching=false;this.subscribe=this._arbiter.subscribe.bind(this._arbiter),this._storesToInform={};}j.prototype.inform=function(k,l){if(this._isBatching){this._storesToInform[k]=this._storesToInform[k]||[];var m=this._storesToInform[k].indexOf(l);if(m!==-1)this._storesToInform[k].splice(m,1);this._storesToInform[k].push(l);}else this._arbiter.inform(k,l);};j.prototype.beginBatch=function(){this._isBatching=true;};j.prototype.endBatch=function(){this._isBatching=false;var k=this._storesToInform;this._storesToInform={};Object.keys(k).forEach(function(l){var m=k[l];m.forEach(function(n){this._arbiter.inform(l,n);}.bind(this));}.bind(this));};h(j.prototype,{subscribe:i});e.exports=j;},null); __d("AdsInformer",["Informer"],function(a,b,c,d,e,f,g){'use strict';e.exports=new g();},null); __d("AdsDispatcher",["AdsActionTypes","AdsPayloadSource","AdsInformer","BanzaiLogger","Dispatcher","ReactUpdates","Run","URI","adsGKCheck","copyProperties","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){'use strict';var r=[];function s(u){return function(v){var w=Date.now();l.batchedUpdates(function(){i.beginBatch();this.dispatch({payloadsource:u,action:v});i.endBatch();}.bind(this));if(o('ads_cf_log_dispatch_perf')){var x=Date.now()-w;j.log('AdsCFLoggerConfig',{event_name:'dispatch',time_since_load:Date.now()-a._cstart,event_detail:v.actionType,duration:x});}var y=r;r=[];y.forEach(function(z){z();});r.length=0;};}var t=p(new k(),{handleUpdateFromInitialServer:s(h.INITIAL_SERVER),handleUpdateFromServerResponse:s(h.SERVER_RESPONSE),handleUpdateFromURLParams:s(h.URL_PARAM_LOAD),handleUpdateFromUnknownSource:s(h.UNKNOWN_SOURCE),handleUpdateFromViewAction:s(h.VIEW_ACTION),handleUpdateFromCleanUpAction:s(h.CLEANUP_ACTION),handlePageTransition:function(){this.dispatch({payloadsource:h.PAGE_TRANSITION,action:{actionType:g.PAGE_TRANSITION}});},addPostDispatchCallback:function(u){r.push(u);}});m.onAfterUnload(t.handlePageTransition.bind(t));e.exports=t;},null); __d("AdsCFApplicationStore",["AdsActionTypes","AdsCFActionTypes","AdsCFConstants","AdsDispatcher","Arbiter","copyProperties","URI"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n,o,p,q,r,s,t,u=m();function v(){var ca=u.getQueryData();if(ca.adgroup_id&&ca.edit){n=ca.adgroup_id;}else n=null;}function w(){var ca=u.getQueryData();if(ca.adgroup_id){if(ca.edit){p=i.CreateMode.EDIT_EXISTING;}else p=i.CreateMode.CREATE_SIMILAR;}else p=i.CreateMode.CREATE_NEW;}function x(){var ca=u.getQueryData();t=ca.show_only;}function y(){var ca=u.getQueryData();r=!!ca.dialog;}function z(){var ca=u.getQueryData();if(ca.oid){s=ca.oid;}else s=null;}function aa(){o=false;q=i.DataStates.IN_PROGRESS;v();w();z();x();y();}aa();var ba=l(new k(),{getCurrentMode:function(){return p;},getAdgroupID:function(){return n;},getDataState:function(){return q;},getShowMode:function(){return t;},getAllowRedirect:function(){return o;},getPendingObjectID:function(){return s;},getURI:function(){return m(u.toString());},isCreatingNew:function(){return p===i.CreateMode.CREATE_NEW;},isCreatingSimilar:function(){return p===i.CreateMode.CREATE_SIMILAR;},isDialog:function(){return r;},isEditingExisting:function(){return p===i.CreateMode.EDIT_EXISTING;},dispatchToken:j.register(function(ca){var da=ca.action;switch(da.actionType){case h.CREATE_MODE_CONFIG_CHANGE:o=!!da.allowRedirect;break;case h.URI_CHANGE:u=da.uri;aa();ba.inform('change');break;case h.CREATE_SIMILAR_AD:p=i.CreateMode.CREATE_SIMILAR;n=null;s=null;ba.inform('change');break;case h.REQUEST_RELATED_DATA_SUCCESS:o=true;ba.inform('change');break;case h.SHOW_MODE_CHANGED:t=da.showMode;ba.inform('change');break;case h.INIT_DATA_LOADED:q=i.DataStates.SUCCESS;ba.inform('change');break;case h.INIT_DATA_FETCH_ERROR:q=i.DataStates.FAILURE;ba.inform('change');break;case g.PAGE_TRANSITION:aa();break;}})});e.exports=ba;},null); __d("URIInitDataUtil",["AdsCFApplicationStore","ApiCreativeTypes","URI","AdsAPIObjectives"],function(a,b,c,d,e,f,g,h,i,j){function k(x){return i().getQueryData()[x];}function l(){return k('fbid');}function m(){return k('default_campaign_id');}function n(){return k('campaign_group');}function o(){if(k('storyid'))return j.POST_ENGAGEMENT;return k('objective');}function p(){return k('creativetype');}function q(){if(k('storyid'))return {creativeType:h.PAGE_POSTS_V2,objectId:l(),storyId:k('storyid'),enabled:true};if(p())return {creativeType:parseInt(k('creativetype'),10),objectId:l(),enabled:true};return;}function r(){return k('showlog');}function s(){return k('environment');}function t(){return k('daily_budget');}function u(){var x=k('targeting_spec');if(x)return JSON.parse(x);}function v(){return k('conversion_pixel_id');}function w(){if(!g.isCreatingNew())return false;return !!(q()||p()||l()||o()||u());}e.exports={getDailyBudget:t,getDefaultCampaignID:m,getDefaultCampaignGroupID:n,getDefaultCreative:q,getDefaultDestinationID:l,getDefaultObjective:o,getDefaultTargeting:u,getDefaultConversionPixel:v,getEnvironment:s,getShowLog:r,isPrefilledFromURI:w};},null); __d("AdsCFLoggerInternal",["AsyncRequest","URIInitDataUtil","copyProperties","mergeInto"],function(a,b,c,d,e,f,g,h,i,j){function k(m,n,o){h.getShowLog();var p=i({category:m,event:n,time_since_env_flush:Date.now()-a._cstart},o||{});new g('/ads/manage/adscreator/logger/').setData(p).send();}var l={defaultData:{},setDefaultData:function(m){this.defaultData=m;return this;},getDefaultData:function(){return this.defaultData;},updateDefaultData:function(m){j(this.defaultData,m);return this;},CATEGORIES:{CREATE:'create',RETRIEVE:'retrieve',UPDATE:'update',DELETE:'delete',VALIDATION_ERROR:'validation_error',PAYMENT:'ads_payment',NO_DB_OP:'no_db_op'},log:function(m,n,o){o=i(o,this.getDefaultData());var p=i({message:m},{message:o}||{});try{p=JSON.parse(JSON.stringify(p));}catch(q){p={};}k(m||'js_info',n||'general_info',p);}};e.exports=l;},null); __d("XAdsPaymentDialogControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f,g){e.exports=g.create("\/fbpayments\/flows\/payment\/dialog\/",{account_id:{type:"Int",required:true},placement:{type:"String",required:true},is_shortcut:{type:"Bool"},credential_id:{type:"Int"},show_existing_coupon:{type:"Bool"},coupon_code:{type:"String"},product_name:{type:"String"},pending_ad_id:{type:"Int"},shortcut_charge_flow:{type:"Bool"},funding_id:{type:"Int"},payment_method_type:{type:"String"},__asyncDialog:{type:"Int"}});},null); __d("XAdsPaymentFlowQEControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f,g){e.exports=g.create("\/fbpayments\/flows\/payment\/ads_flow_qe\/",{});},null); __d("AdManagerFunding",["AdsCFLoggerInternal","AsyncRequest","GiftCredits","URI","XAdsPaymentDialogControllerURIBuilder","XAdsPaymentFlowQEControllerURIBuilder","copyProperties","goURI","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=function(r,s,t,u){g.log(g.CATEGORIES.PAYMENT,r,{account_id:s,ncf:j(window.location.href).getQueryData().ncf,source:t,url_user:u?u:'No url user'});},q={POWER_EDITOR_APP_ID:'119211728144504',_business_id:null,addCredentialCallbackFromFunding:function(r,s){if(s.credential_state){var t=j('/ads/manage/funding.php').addQueryData({credential_state:s.credential_state,has_hit_asl:s.has_hit_asl,act:r});if(q.getBusinessID())t.addQueryData({business_id:q.getBusinessID()});n(t);}},addCredentialCallbackFromFundingInPE:function(r){if(r){var s=j('/ads/manage/powereditor/funding').addQueryData({host:q.POWER_EDITOR_APP_ID}).addQueryData({account:r});if(q.getBusinessID())s.addQueryData({business_id:q.getBusinessID()});n(s);}},addCredentialCallbackFromUnsettled:function(r,s){if(s.credential_state){var t=j('/ads/manage/unsettled.php').addQueryData({primary:1}).addQueryData({act:r}).addQueryData({redirect:s.redirect});if(q.getBusinessID())t.addQueryData({business_id:q.getBusinessID()});n(t);}},addCredentialCallbackFromPageNAX:function(r){if(r.credential_state){var s=j().addQueryData({success:true});if(q.getBusinessID())s.addQueryData({business_id:q.getBusinessID()});n(s);}},addCredential:function(r,s,t,u,v,w,x,y,z,aa,ba,ca){if(!y)y=0;p('payment_initiated',t,r,z);if(!v)switch(r){case 'funding_page':if(x==q.POWER_EDITOR_APP_ID){v=function(){q.addCredentialCallbackFromFundingInPE(t);};}else v=function(ga){q.addCredentialCallbackFromFunding(t,ga);};break;case 'unsettled':case 'grace_period':v=function(ga){q.addCredentialCallbackFromUnsettled(t,ga);};break;case 'create_flow':o(false);break;case 'page_nax':v=q.addCredentialCallbackFromPageNAX;break;default:return;}var da=function(ga){p(ga&&ga.credential_state?'payment_completed':'payment_cancelled',t,r,z);v(ga);},ea=function(ga){if(ga.getPayload().test){if(ca===undefined)ca=[];var ha=(new k()).setInt('account_id',t).setString('placement',r).setBool('is_shortcut',ca.shortcut).setInt('credential_id',ca.credential_id).setBool('show_existing_coupon',ba).setString('coupon_code',u).setString('product_name',w).setInt('pending_ad_id',y).setBool('shortcut_charge_flow',ca.shortcut_charge_flow).setInt('funding_id',ca.funding_id).setString('payment_method_type',ca.payment_method_type).getURI();new h().setURI(ha).setHandler(da.bind(this)).send();}else i.getPrompt(s,null,{},null,da,'admanager',null,null,'ads',m({account_id:t,coupon_code:u,product_name:w,pending_ad_id:y,show_existing_coupon:ba},ca),{placement:r},null,null,null,null,null,null,null,null,null,null,z,aa);},fa=(new l()).getURI();new h().setURI(fa).setHandler(ea.bind(this)).send();},setBusinessID:function(r){q._business_id=r;},getBusinessID:function(){return q._business_id;},verifyCredential:function(r,s,t,u){var v={shortcut:r,credential_id:s,account_id:u};i.getPrompt(t,null,{},null,q.addCredentialCallbackFromFunding,'admanager',null,null,'ads',v,{placement:'funding_page'});},chargeCredential:function(r,s,t,u,v,w){var x={funding_id:u,payment_method:v,payment_method_type:v,shortcut_charge_flow:true};q.addCredential(r,s,t,null,w,null,null,null,null,null,null,x);}};e.exports=q;},null); __d("abstractMethod",["invariant"],function(a,b,c,d,e,f,g){var h=function(i,j){return function(){h.unimplemented(i,j);};};h.unimplemented=function(i,j){g(false);};e.exports=h;},null); __d("AdsBulkValue",["abstractMethod"],function(a,b,c,d,e,f,g){function h(){"use strict";}h.prototype.getValueForIndex=function(i){"use strict";g.unimplemented('AdsBulkValue','getValueForIndex');};h.prototype.getValues=function(){"use strict";g.unimplemented('AdsBulkValue','getValues');};e.exports=h;},null); __d("deepFreezeValue",["Immutable"],function(a,b,c,d,e,f,g){function h(i){if(i===null||i===undefined)return;switch(typeof i){case 'string':return;case 'boolean':return;case 'number':return;case 'function':return;default:g.deepFreezeRootNode(i);}}e.exports=h;},null); __d("AdsMixedValue",["AdsBulkValue","deepFreezeValue"],function(a,b,c,d,e,f,g,h){for(var i in g)if(g.hasOwnProperty(i))k[i]=g[i];var j=g===null?null:g.prototype;k.prototype=Object.create(j);k.prototype.constructor=k;k.__superConstructor__=g;k.create=function(l){"use strict";return new k(l);};function k(l){"use strict";this.$AdsMixedValue0=l;}k.prototype.getValues=function(){"use strict";return this.$AdsMixedValue0;};k.prototype.getValueForIndex=function(l){"use strict";return this.$AdsMixedValue0[l];};e.exports=k;},null); __d("AdsCommonTargetingProperties",[],function(a,b,c,d,e,f){var g={ageMax:null,ageMin:null,ageMinLimit:null,behaviors:null,cities:null,collegeMajors:null,collegeNetworks:null,countries:null,connections:null,conjunctiveUserAdclusters:null,customAudiences:null,educationMajors:null,educationSchools:null,educationStatuses:null,ethnicAffinity:null,excludedConnections:null,excludedCustomAudiences:null,excludedUserAdclusters:null,familyStatuses:null,friendsOfConnections:null,generation:null,homeOwnership:null,homeType:null,homeValue:null,householdComposition:null,income:null,industries:null,interestedInSex:null,interests:null,keywords:null,lifeEvents:null,locTargeting:null,locales:null,maxGradYear:null,minAndroidVersion:null,minGradYear:null,minIosVersion:null,mobileDevices:null,mobileOperatingSystem:null,moms:null,netWorth:null,officeType:null,pageTypes:null,politics:null,radiusIfValid:null,relationshipStatuses:null,regions:null,sex:null,syndicatedCustomAudiencesLibrary:null,targetAllGraduationYears:null,userAdclusters:null,userOs:null,wifiOnly:null,workEmployers:null,workNetworks:null,workPositions:null,zips:null,geoLocations:null,excludedGeoLocations:null};e.exports=g;},null); __d("AdsAbstractCurrencyInput.react",["AdsCurrencyFormatter","Keys","React"],function(a,b,c,d,e,f,g,h,i){var j=i.PropTypes,k=i.createClass({displayName:'AdsAbstractCurrencyInput',propTypes:{currency:j.string.isRequired,value:j.number,withISO:j.bool,nonnegative:j.bool,invalidInputIsNull:j.bool,onDataUpdate:j.func.isRequired,eventType:j.oneOf(['change','blur']),textInputClass:j.func.isRequired},getDefaultProps:function(){return {eventType:'blur'};},getInitialState:function(){return {dirtyValue:null};},render:function(){var l=this.state.dirtyValue;if(l===null){l=this.props.value;if(l!=null){var m=this.props.withISO?g.formatCurrencyWithISO:g.formatCurrency;l=m(this.props.currency,l);}}var n=this.props.textInputClass;return this.transferPropsTo(n({value:l,onChange:this._onChange,onBlur:this._onBlur,onKeyUp:this._onKeyUp}));},_onChange:function(event){this.setState({dirtyValue:event.target.value});if(this.props.eventType==='change')this.props.onDataUpdate(this._parseCurrency(event.target.value));},_onBlur:function(event){if(this.state.dirtyValue!==null)this.updateValue(event);},updateValue:function(event){this.props.onDataUpdate(this._parseCurrency(event.target.value));this.setState({dirtyValue:null});},_parseCurrency:function(l){var m=g.parseOptionalCurrency(this.props.currency,l);if(!this.props.invalidInputIsNull)m=m||0;if(m&&this.props.nonnegative)m=Math.abs(m);return m;},_onKeyUp:function(event){if(event.keyCode===h.RETURN)this.updateValue(event);}});e.exports=k;},null); __d("XUITextInput.react",["AbstractTextInput.react","React","cx"],function(a,b,c,d,e,f,g,h,i){var j=h.createClass({displayName:'XUITextInput',render:function(){var k=(("_55r1")+(this.props.height=='tall'?' '+"_55r2":''));return this.transferPropsTo(g({ref:"textInput",className:k}));},focusInput:function(){this.refs.textInput.focusInput();}});e.exports=j;},null); __d("AdsCurrencyInput.react",["AdsAbstractCurrencyInput.react","React","XUITextInput.react"],function(a,b,c,d,e,f,g,h,i){var j=h.PropTypes,k=h.createClass({displayName:'AdsCurrencyInput',propTypes:{currency:j.string.isRequired,value:j.number,withISO:j.bool,nonnegative:j.bool,invalidInputIsNull:j.bool,onDataUpdate:j.func.isRequired,eventType:j.oneOf(['change','blur'])},render:function(){return this.transferPropsTo(g({textInputClass:i}));}});e.exports=k;},null); __d("AdsRichSelector.react",["ContextualLayer.react","DOM","Image.react","InlineBlock.react","React","ReactChildren","ReactLayeredComponentMixin","ScrollableArea","Style","SubscriptionsHandler","XUIPopoverButton.react","cloneWithProps","cx","invariant","joinClasses","requestAnimationFrame"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){"use strict";var w=k.PropTypes,x=k.createClass({displayName:'AdsRichSelector',mixins:[m],statics:{propTypes:{alignment:w.oneOf(['left','center','right']),defaultLabel:w.string,disabled:w.bool,maxheight:w.number,maxMenuWidth:w.number,maxwidth:w.number,noLabel:w.bool,onChange:w.func,requireSelection:w.bool,size:w.string,useMenuDividers:w.bool}},_scrollableArea:null,getDefaultProps:function(){return {defaultLabel:'',requireSelection:true};},getInitialState:function(){return {showLayer:false,value:this.props.defaultValue};},componentDidMount:function(){this.subscriptions=new p();this.subscriptions.addSubscriptions(this.refs.menu.layer.subscribe('blur',this._onBlur));this._setMaxHeight();},componentWillReceiveProps:function(aa){this.setState({value:aa.defaultValue});},componentWillUnmount:function(){this.subscriptions.release();},componentDidUpdate:function(aa){if(aa.maxheight!==this.props.maxheight)this._setMaxHeight();},render:function(){var aa=this._processChildrenAndGetSelectedItem()[1],ba=this.props.defaultLabel,ca=null;if(aa){ba=this.props.noLabel?'':aa.props.label;ca=aa.props.icon;}return (j({alignv:"middle",className:u(((this.state.showLayer?"openToggler":'')),this.props.className),name:null},q({className:(("_5mhp")+(this.state.showLayer?' '+"selected":'')+(this.state.showLayer&&this.props.alignment!='right'?' '+"_nk":'')+(this.state.showLayer&&this.props.alignment=='right'?' '+"_nl":'')),disabled:this.props.disabled||false,size:this.props.size||'medium',theme:"dark",maxwidth:this.props.maxwidth||0,label:ba,ref:"selectorButton",onClick:this._toggleSelector,'aria-label':this.props.tooltip||null,'data-hover':"tooltip",'data-tooltip-alignh':this.props.alignh||'left','data-tooltip-alignv':this.props.alignv||'above',image:ca})));},renderLayers:function(){return {menu:g({contextRef:"selectorButton",position:"below",alignment:this.props.alignment||'left',ref:"menu",shown:this.state.showLayer},k.DOM.div({className:"_54nq _575t _57di _558b"},k.DOM.div({className:"_54ng",ref:"menuContainer"},k.DOM.ul({className:(("_54nf")+(this.props.useMenuDividers?' '+"_4fau":'')),role:"menu",style:{maxWidth:this.props.maxMenuWidth},ref:"menuItems"},this._processChildrenAndGetSelectedItem()[0]))))};},_processChildrenAndGetSelectedItem:function(){t(this.props.children.length>0);var aa=[];l.forEach(this.props.children,function(fa){aa.push(fa);});var ba=this.state.value!=null?this.state.value:aa[0].props.value,ca=null;for(var da=0;da http://underscorejs.org * > Underscore may be freely distributed under the MIT license. * > (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative * Reporters & Editors * Baseline setup * -------------- */__d("underscore.ads",[],function(a,b,c,d,e,f){(function(){var g=this,h=g._,i={},j=Array.prototype,k=Object.prototype,l=Function.prototype,m=j.push,n=j.slice,o=j.concat,p=k.toString,q=k.hasOwnProperty,r=j.forEach,s=j.map,t=j.reduce,u=j.reduceRight,v=j.filter,w=j.every,x=j.some,y=j.indexOf,z=j.lastIndexOf,aa=Array.isArray,ba=Object.keys,ca=l.bind,da=function(ta){if(ta instanceof da)return ta;if(!(this instanceof da))return new da(ta);this._wrapped=ta;};if(typeof f!=='undefined'){if(typeof e!=='undefined'&&e.exports)f=e.exports=da;f._=da;}else g._=da;da.VERSION='1.5.2';var ea=da.each=da.forEach=function(ta,ua,va){if(ta==null)return;if(r&&ta.forEach===r){ta.forEach(ua,va);}else if(ta.length===+ta.length){for(var wa=0,xa=ta.length;wa2;if(ta==null)ta=[];if(t&&ta.reduce===t){if(wa)ua=da.bind(ua,wa);return xa?ta.reduce(ua,va):ta.reduce(ua);}ea(ta,function(ya,za,ab){if(!xa){va=ya;xa=true;}else va=ua.call(wa,va,ya,za,ab);});if(!xa)throw new TypeError(fa);return va;};da.reduceRight=da.foldr=function(ta,ua,va,wa){var xa=arguments.length>2;if(ta==null)ta=[];if(u&&ta.reduceRight===u){if(wa)ua=da.bind(ua,wa);return xa?ta.reduceRight(ua,va):ta.reduceRight(ua);}var ya=ta.length;if(ya!==+ya){var za=da.keys(ta);ya=za.length;}ea(ta,function(ab,bb,cb){bb=za?za[--ya]:--ya;if(!xa){va=ta[bb];xa=true;}else va=ua.call(wa,va,ta[bb],bb,cb);});if(!xa)throw new TypeError(fa);return va;};da.find=da.detect=function(ta,ua,va){var wa;ga(ta,function(xa,ya,za){if(ua.call(va,xa,ya,za)){wa=xa;return true;}});return wa;};da.filter=da.select=function(ta,ua,va){var wa=[];if(ta==null)return wa;if(v&&ta.filter===v)return ta.filter(ua,va);ea(ta,function(xa,ya,za){if(ua.call(va,xa,ya,za))wa.push(xa);});return wa;};da.reject=function(ta,ua,va){return da.filter(ta,function(wa,xa,ya){return !ua.call(va,wa,xa,ya);},va);};da.every=da.all=function(ta,ua,va){ua||(ua=da.identity);var wa=true;if(ta==null)return wa;if(w&&ta.every===w)return ta.every(ua,va);ea(ta,function(xa,ya,za){if(!(wa=wa&&ua.call(va,xa,ya,za)))return i;});return !!wa;};var ga=da.some=da.any=function(ta,ua,va){ua||(ua=da.identity);var wa=false;if(ta==null)return wa;if(x&&ta.some===x)return ta.some(ua,va);ea(ta,function(xa,ya,za){if(wa||(wa=ua.call(va,xa,ya,za)))return i;});return !!wa;};da.contains=da.include=function(ta,ua){if(ta==null)return false;if(y&&ta.indexOf===y)return ta.indexOf(ua)!=-1;return ga(ta,function(va){return va===ua;});};da.invoke=function(ta,ua){var va=n.call(arguments,2),wa=da.isFunction(ua);return da.map(ta,function(xa){return (wa?ua:xa[ua]).apply(xa,va);});};da.pluck=function(ta,ua){return da.map(ta,function(va){return va[ua];});};da.where=function(ta,ua,va){if(da.isEmpty(ua))return va?void 0:[];return da[va?'find':'filter'](ta,function(wa){for(var xa in ua)if(ua[xa]!==wa[xa])return false;return true;});};da.findWhere=function(ta,ua){return da.where(ta,ua,true);};da.max=function(ta,ua,va){if(!ua&&da.isArray(ta)&&ta[0]===+ta[0]&&ta.length<65535)return Math.max.apply(Math,ta);if(!ua&&da.isEmpty(ta))return -Infinity;var wa={computed:-Infinity,value:-Infinity};ea(ta,function(xa,ya,za){var ab=ua?ua.call(va,xa,ya,za):xa;ab>wa.computed&&(wa={value:xa,computed:ab});});return wa.value;};da.min=function(ta,ua,va){if(!ua&&da.isArray(ta)&&ta[0]===+ta[0]&&ta.length<65535)return Math.min.apply(Math,ta);if(!ua&&da.isEmpty(ta))return Infinity;var wa={computed:Infinity,value:Infinity};ea(ta,function(xa,ya,za){var ab=ua?ua.call(va,xa,ya,za):xa;abab||za===void 0)return 1;if(za>>1;va.call(wa,ta[ab])=0;});});};da.difference=function(ta){var ua=o.apply(j,n.call(arguments,1));return da.filter(ta,function(va){return !da.contains(ua,va);});};da.zip=function(){var ta=da.max(da.pluck(arguments,"length").concat(0)),ua=new Array(ta);for(var va=0;va=0;va--)ua=[ta[va].apply(this,ua)];return ua[0];};};da.after=function(ta,ua){return function(){if(--ta<1)return ua.apply(this,arguments);};};da.keys=ba||function(ta){if(ta!==Object(ta))throw new TypeError('Invalid object');var ua=[];for(var va in ta)if(da.has(ta,va))ua.push(va);return ua;};da.values=function(ta){var ua=da.keys(ta),va=ua.length,wa=new Array(va);for(var xa=0;xa':'>','"':'"',"'":'''}};ma.unescape=da.invert(ma.escape);var na={escape:new RegExp('['+da.keys(ma.escape).join('')+']','g'),unescape:new RegExp('('+da.keys(ma.unescape).join('|')+')','g')};da.each(['escape','unescape'],function(ta){da[ta]=function(ua){if(ua==null)return '';return (''+ua).replace(na[ta],function(va){return ma[ta][va];});};});da.result=function(ta,ua){if(ta==null)return void 0;var va=ta[ua];return da.isFunction(va)?va.call(ta):va;};da.mixin=function(ta){ea(da.functions(ta),function(ua){var va=da[ua]=ta[ua];da.prototype[ua]=function(){var wa=[this._wrapped];m.apply(wa,arguments);return sa.call(this,va.apply(da,wa));};});};var oa=0;da.uniqueId=function(ta){var ua=++oa+'';return ta?ta+ua:ua;};da.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var pa=/(.)^/,qa={"'":"'",'\\':'\\','\r':'r','\n':'n','\t':'t','\u2028':'u2028','\u2029':'u2029'},ra=/\\|'|\r|\n|\t|\u2028|\u2029/g;da.template=function(ta,ua,va){var wa;va=da.defaults({},va,da.templateSettings);var xa=new RegExp([(va.escape||pa).source,(va.interpolate||pa).source,(va.evaluate||pa).source].join('|')+'|$','g'),ya=0,za="__p+='";ta.replace(xa,function(cb,db,eb,fb,gb){za+=ta.slice(ya,gb).replace(ra,function(hb){return '\\'+qa[hb];});if(db)za+="'+\n((__t=("+db+"))==null?'':_.escape(__t))+\n'";if(eb)za+="'+\n((__t=("+eb+"))==null?'':__t)+\n'";if(fb)za+="';\n"+fb+"\n__p+='";ya=gb+cb.length;return cb;});za+="';\n";if(!va.variable)za='with(obj||{}){\n'+za+'}\n';za="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+za+"return __p;\n";try{wa=new Function(va.variable||'obj','_',za);}catch(ab){ab.source=za;throw ab;}if(ua)return wa(ua,da);var bb=function(cb){return wa.call(this,cb,da);};bb.source='function('+(va.variable||'obj')+'){\n'+za+'}';return bb;};da.chain=function(ta){return da(ta).chain();};var sa=function(ta){return this._chain?da(ta).chain():ta;};da.mixin(da);ea(['pop','push','reverse','shift','sort','splice','unshift'],function(ta){var ua=j[ta];da.prototype[ta]=function(){var va=this._wrapped;ua.apply(va,arguments);if((ta=='shift'||ta=='splice')&&va.length===0)delete va[0];return sa.call(this,va);};});ea(['concat','join','slice'],function(ta){var ua=j[ta];da.prototype[ta]=function(){return sa.call(this,ua.apply(this._wrapped,arguments));};});da.extend(da.prototype,{chain:function(){this._chain=true;return this;},value:function(){return this._wrapped;}});}).call(this);},null); __d("AdsUtils",["Assert","underscore.ads"],function(a,b,c,d,e,f,g,h){function i(aa){return aa===Object(aa);}function j(aa,ba){if(Array.isArray(aa)||typeof aa==='string')return aa.indexOf(ba)!==-1;return ba in aa;}function k(aa){if(Array.isArray(aa)||typeof aa==='string')return aa.length;return i(aa)?Object.keys(aa).length:0;}function l(aa,ba){var ca=[],da=0;while(aa.length>da){ca.push(aa.slice(da,da+ba));da+=ba;}return ca;}function m(aa,ba){if(aa.length!=ba.length){return false;}else{for(var ca=0;ca0)da[ga]=ba[ga];}return da;}function w(aa,ba){return v(aa,ba,function(ca,da){return ca&&da?-1:0;});}function x(aa,ba){return v(aa,ba,function(ca,da){return ca?-1:1;});}var y=function(aa,ba,ca,da){da=da||(function(ga,ha){return ga==ha;});if(aa.length===0)return ca;var ea=ba(aa[0]),fa=!aa.some(function(ga){return !da(ba(ga),ea);});if(fa){return ea;}else return ca;};function z(aa,ba){if(Array.isArray(aa)&&Array.isArray(ba)){if(aa.length!==ba.length)return false;for(var ca=0;cam.EXOTIC_OR_INVALID;}function y(ia){var ja=u(ia);return ja===k.SPONSORED_STORIES;}f.is_bass_type=t;f.getCategoryByCreativeType=u;f.id2string=q;f.string2id=s;f.AD_CREATIVE_TYPE=m;f.AD_CREATIVE_CATEGORY=k;f.AD_CREATIVE_BASS_TYPE_ARR=p;f.CREATIVES_WITH_STORY_ID=o;f.getActionSpecTypeAdForLegacyBass=v;f.isLegacyBassType=w;f.isQueryBasedSponsoredStory=x;f.isSponsoredStory=y;var z=f.keyToType={STORY_APP_SHARE:{id:8,name:"Stories about their friends sharing {app_name}",validFields:['objectId','urlTags']},STORY_APP_USED:{id:16,name:"Stories about their friends using {app_name}",validFields:['objectId','urlTags']},STORY_PAGE_LIKE:{id:9,name:"Stories about their friends liking {page_name}"},STORY_PAGE_POST:{id:11,name:"When people post on my Page"},STORY_CHECKIN:{id:10,name:"Stories about their friends checking in {place_name}"},STORY_DOMAIN_SHARE:{id:19,name:"Stories about their friends sharing {domain_name}",validFields:['objectId','urlTags']},STORY_QUERY_BASED:{id:25,name:"Query Based Story",requiredFields:['actionSpec'],validFields:['objectId','actionSpec','urlTags']},AD_EXTERNAL_URL:{id:1,name:"A new ad about {url}",validFields:['title','body','linkUrl','imageUrl','imageHash','relatedFanPage','showRelatedFanPage','trackingPixel'],invalidFieldsForAPI:['showRelatedFanPage','trackingPixel'],requiredFields:['title','body','linkUrl',['imageUrl','imageHash']]},FEED_URL:{id:101,validFields:['actor','title','body','linkUrl','linkDescription','imageUrl','imageHash','storyId','trackingPixel'],invalidFieldsForAPI:['actor','linkDescription','trackingPixel'],requiredFields:['actor','title','body','linkUrl',['imageUrl','imageHash']]},AD_FAN_LIKE:{id:2,name:"A new ad about {page_name}",validFields:['objectId','title','body','linkUrl','imageUrl','imageHash'],requiredFields:['objectId','body']},AD_EVENT_RSVP:{id:3,name:"A new ad about {event_name}",validFields:['objectId','title','body','imageUrl','imageHash'],requiredFields:['objectId','body',['imageUrl','imageHash']]},AD_APPLICATION:{id:4,name:"A new ad about {app_name}",validFields:['objectId','title','body','imageUrl','imageHash','linkUrl','urlTags'],requiredFields:['objectId','body',['imageUrl','imageHash']]},AD_PAGE_POST:{id:27,name:"Just my post",validFields:['objectId','autoUpdate','storyId','urlTags'],requiredFields:['objectId','storyId']},MOBILE_APP_INSTALL:{id:32,name:"Create a mobile ad about {app_name}",validFields:['objectId','title','body','iconImageHash','iconImageUrl','imageHash','imageUrl','mobileStore','mobileStoreContentId','videoId'],requiredFields:['objectId',['imageUrl','imageHash']]},MOBILE_APP_ENGAGEMENT:{id:32,name:"Create a mobile ad about {app_name}",validFields:['objectId','title','body','iconImageHash','iconImageUrl','imageHash','imageUrl','mobileStore','mobileApplinkSpec','applinkUrl','mobileProductName','callToActionType'],invalidFieldsForAPI:['applinkUrl'],requiredFields:['objectId',['imageUrl','imageHash']]},CANVAS_APP_INSTALL_ENGAGEMENT:{id:32,name:"Create a desktop ad about {app_name}",validFields:['objectId','title','body','iconImageHash','iconImageUrl','imageHash','imageUrl','mobileStore','urlTags','linkUrl'],requiredFields:['objectId',['imageUrl','imageHash']]}};if(g('ads_cf_neko_lpp'))z.NEKO_LPP={id:102,validFields:['actor','body','callToActionType','imageHash','imageUrl','linkUrl','mobileProductName','storyId','videoId'],invalidFieldsForAPI:['actor'],requiredFields:['callToActionType','linkUrl',['imageUrl','videoId']]};if(g('ads_cf_video_objective'))z.AD_VIDEO={id:103,validFields:['body','callToActionType','videoId'],requiredFields:['body','videoId']};var aa=i.values(z);f.idToType=h.indexedMap(aa,'id');var ba=h.pluckPreserveKey(z,'id'),ca={};for(var da=0;da=0;return ka.validFields.indexOf(ia)>=0;};f.requiredFieldsForType=function(ia){var ja=f.idToType[ia];return ja?(ja.requiredFields||[]):[];};f.group={SS:[ba.STORY_PAGE_LIKE,ba.STORY_PAGE_POST,ba.STORY_QUERY_BASED,ba.STORY_CHECKIN,ba.STORY_DOMAIN_SHARE,ba.STORY_APP_SHARE,ba.STORY_APP_USED]};},null); __d("AdImageSpecs",["AdCreativeType","AdsCreationConfig","AdsCFConstants"],function(a,b,c,d,e,f,g,h,i){var j=g.AD_CREATIVE_TYPE,k=i.PlacementID;e.exports={PAGE_LIKE_FEED:{placement:k.NEWS_FEED,width:600,height:225,minLargeWidth:400,minLargeHeight:150,minWarningWidth:100,minWarningHeight:72,aspectRatio:8/3,aspectRatioSmall:1.39,cropKey:'400x150',supportedTypes:[j.INLINE_FAN],gkFails:'ads_interfaces_rhc_redesign'},PAGE_LIKE_FEED_V2:{placement:k.NEWS_FEED,width:600,height:225,minLargeWidth:400,minLargeHeight:150,minWarningWidth:254,minWarningHeight:94,aspectRatio:8/3,aspectRatioSmall:1.39,cropKey:'400x150',supportedTypes:[j.INLINE_FAN],gkSucceeds:'ads_interfaces_rhc_redesign'},PAGE_LIKE_RHC:{placement:k.RHC,width:254,height:94,minWarningWidth:254,minWarningHeight:94,aspectRatio:8/3,aspectRatioSmall:1.39,cropKey:'400x150',supportedTypes:[j.INLINE_FAN],gkSucceeds:'ads_interfaces_rhc_redesign'},EVENT_RHC:{placement:k.RHC,width:254,height:94,minWarningWidth:254,minWarningHeight:94,aspectRatio:8/3,cropKey:'400x150',supportedTypes:[j.INLINE_RSVP],gkSucceeds:'ads_interfaces_rhc_redesign'},PAGE_POST_FEED:{placement:k.NEWS_FEED,width:600,height:315,minLargeWidth:400,minLargeHeight:209,minWarningWidth:90,minWarningHeight:90,aspectRatio:1.91,aspectRatioSmall:1,cropKey:'191x100',supportedTypes:[j.STANDARD,j.FEED_URL],gkFails:'ads_interfaces_rhc_redesign'},PAGE_POST_FEED_V2:{placement:k.NEWS_FEED,width:600,height:315,minLargeWidth:400,minLargeHeight:209,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,aspectRatioSmall:1,cropKey:'191x100',supportedTypes:[j.STANDARD,j.FEED_URL],gkSucceeds:'ads_interfaces_rhc_redesign'},PAGE_POST_FEED_NEKO:{placement:k.NEWS_FEED,width:600,height:315,minWarningWidth:400,minWarningHeight:209,aspectRatio:1.91,aspectRatioSmall:1,cropKey:'191x100',supportedTypes:[j.NEKO_LPP]},PAGE_POST_MOBILE_FEED_NEKO:{placement:k.MOBILE_NEWS_FEED,width:600,height:315,minWarningWidth:400,minWarningHeight:209,aspectRatio:1.91,aspectRatioSmall:1,cropKey:'191x100',supportedTypes:[j.NEKO_LPP]},PAGE_POST_RHC:{placement:k.RHC,width:254,height:133,minWarningWidth:254,minWarningHeight:133,aspectRatio:1.91,cropKey:'191x100',supportedTypes:[j.STANDARD,j.FEED_URL,j.NEKO_LPP],gkSucceeds:'ads_interfaces_rhc_redesign'},APP_INSTALL_MOBILE_FEED:{placement:k.MOBILE_NEWS_FEED,width:h.contextualAppAdImageWidth,height:h.contextualAppAdImageHeight,dimensionTolerance:h.contextualAppAdImageDimensionTolerance,minWarningWidth:h.contextualAppAdImageWidth,minWarningHeight:h.contextualAppAdImageHeight,aspectRatio:h.contextualAppAdImageWidth/h.contextualAppAdImageHeight,previewRatio:.25,supportedTypes:[j.CONTEXTUAL_APP_AD]},APP_INSTALL_FEED:{placement:k.NEWS_FEED,width:h.contextualAppAdImageWidth,height:h.contextualAppAdImageHeight,dimensionTolerance:h.contextualAppAdImageDimensionTolerance,minWarningWidth:h.contextualAppAdImageWidth,minWarningHeight:h.contextualAppAdImageHeight,aspectRatio:h.contextualAppAdImageWidth/h.contextualAppAdImageHeight,previewRatio:.25,supportedTypes:[j.CONTEXTUAL_APP_AD]},APP_INSTALL_RHC:{placement:k.RHC,width:h.contextualAppAdImageWidth,height:h.contextualAppAdImageHeight,dimensionTolerance:h.contextualAppAdImageDimensionTolerance,minWarningWidth:h.contextualAppAdImageWidth,minWarningHeight:h.contextualAppAdImageHeight,aspectRatio:h.contextualAppAdImageWidth/h.contextualAppAdImageHeight,previewRatio:.25,supportedTypes:[j.CONTEXTUAL_APP_AD]},RHC:{placement:k.RHC,width:100,height:72,minWarningWidth:100,minWarningHeight:72,aspectRatio:1.39,cropKey:'100x72',supportedTypes:[j.STANDARD,j.INLINE_FAN,j.INLINE_RSVP,j.PLATFORM_CONTEXT,j.QUERY_BASED,j.FEED_URL,j.NEKO_LPP],gkFails:'ads_interfaces_rhc_redesign'},APP_INSTALL_ICON:{placement:'icon',width:h.contextualAppAdIconMinSize,height:h.contextualAppAdIconMinSize,minWarningWidth:h.contextualAppAdIconMinSize,minWarningHeight:h.contextualAppAdIconMinSize,previewRatio:60/h.contextualAppAdIconMinSize,supportedTypes:[j.CONTEXTUAL_APP_AD]},PAGE_PROFILE:{width:180,height:180,minWarningWidth:180,minWarningHeight:180,previewRatio:.5}};},null); __d("AdsAPISpec",["AdsCFApiSpecFields","fbt"],function(a,b,c,d,e,f,g,h){var i={BCT_FIELDS:{NAME:'name',PARENT_CATEGORY:'parent_category'},BID_INFO_FIELDS:{ACTIONS:55,REACH:44,CLICKS:1,IMPRESSIONS:38},EDUCATION_STATUSES:{ALL:0,HIGH_SCHOOL:1,IN_COLLEGE:2,COLLEGE_GRAD:3},RELATIONSHIP_STATUSES:{ALL:0,SINGLE:1,IN_A_RELATIONSHIP:2,MARRIED:3,ENGAGED:4,UNSPECIFIED:6},LINK_TYPES:{EXTERNAL:1,INTERNAL:2},GENDERS:{ALL:0,MEN:1,WOMEN:2},CREATIVE_FIELDS_MAP:{actor:"To show your ad in News Feed, you need to connect it to a Page. If you don't want your ad to show in News Feed, turn off the News Feed ad format in the creative section.",name:"Please give a name to your ad.",objectId:"Please choose a destination.",linkUrl:"Missing link URL.",type:"What do you want people to see?",title:"Please give your ad a headline.",body:"Please write something about your ad in the text field.",iconImageHash:null,iconImageUrl:null,imageHash:"Please choose an image for your ad.",imageUrl:"Please choose an image for your ad.",urlTags:null,storyId:"Please choose a Page post for your ad.",relatedFanPage:null,autoUpdate:"Please choose a Page post for your ad.",actionSpec:"Missing action spec",linkType:null,viewTags:null,urlOverride:null,coverPhotoId:null,mobileStore:null,mobileStoreContentId:null,applinkSpec:null,mobileProductName:null,callToActionType:null},CREATIVE_FIELDS_OVERRIDE_MAP:{imageList:"Please choose an image for your ad."},CAMPAIGN_FIELDS:['id','accountId','name','startTime','endTime','lifetimeBudget','dailyBudget','campaignStatus'],CAMPAIGN_GROUP_FIELDS:['name','campaign_group_status','objective'],ACCOUNT_FOR_BRAND_FIELDS:['id','accountId','account_status','name','business','currency','timezoneName','endAdvertiser','fundingSource','dailySpendLimit','businessCountryCode'],BRAND_FIELDS:['id','name','verticalId','timezoneId','picture.type(square)','primary_page.fields(name, picture, link)','created_time','created_by.fields(name, link)','updated_time','updated_by.fields(name, link)','extended_updated_time'],BRAND_PAGE_FIELDS:['id','name','category','link','picture','access_status','business','likes','access_type','permitted_roles'],BRAND_LABEL_FIELDS:['id','name','business','creator','created_time'],USER_PAGE_FIELDS:g.USER_PAGE_FIELDS,BRAND_ROLE_FIELDS:['id','name','type','actions'],BRAND_USER_FIELDS:['id','name','link','picture'],BRAND_ACCOUNT_FIELDS:['id','accountId','currency','timezoneId','business','access_status','name','permitted_roles'],BRAND_APP_FIELDS:['id','name','link','icon_url','logo_url','monthly_active_users','daily_active_users_rank','monthly_active_users_rank','access_status','access_type','permitted_roles','picture'],USER_APP_FIELDS:['id','name','link','icon_url','logo_url','monthly_active_users','daily_active_users_rank','monthly_active_users_rank','picture'],CC_FUNDING_SOURCE_FIELDS:['id','first_name','last_name','credit_card_suffix','address','expiration_month','expiration_year','credit_card_type'],EC_FUNDING_SOURCE_FIELDS:['id','currency','balance','max_balance'],PAGE_POST_FIELDS:['message','picture','full_picture','link','name','description','type','call_to_action','is_published'],REPORT_SPEC_FIELDS:['id','accountId','actionsGroupBy','dataColumns','exportColumns','datePreset','filters','timeIncrement','name','sortBy','sortDir','isPresetReport','userReport'],PRICING_FIELDS:['bidType','campaignId','bidInfo','maxBid','impressionControlMap','noShowPercentage','noShowOffset','priority'],TARGETING_FIELDS:['genders','ageMax','ageMin','regions','countries','cities','zips','radius','keywords','interests','connections','excludedConnections','friendsOfConnections','relationshipStatuses','interestedIn','collegeNetworks','collegeMajors','collegeYears','educationStatuses','locales','workNetworks','userAdclusters','conjunctiveUserAdclusters','behaviors','userOs','userDevice','wirelessCarrier','workPositions','familyStatuses','industries','lifeEvents','politics','educationMajors','educationSchools','workEmployers','income','netWorth','homeType','homeOwnership','homeValue','ethnicAffinity','generation','householdComposition','moms','officeType','customAudiences','excludedCustomAudiences','excludedUserAdclusters','pageTypes','geoLocations','excludedGeoLocations'],GEO_LOCATIONS_FIELDS:['cities','regions','countries','zips'],GEO_LOCATIONS_FIELD:{CITIES:'cities',REGIONS:'regions',COUNTRIES:'countries',ZIPS:'zips'},ADVANCED_TARGETING_FIELDS:['interestedIn','relationshipStatuses','educationStatuses','locales','workNetworks'],ACCOUNT_FIELDS:g.ACCOUNT_FIELDS,ADGROUP_FIELDS_FOR_CF:['objective','id','account_id','bid_info','bid_type','campaign_id','conversion_specs','creative_ids','impression_control_map','locations','name','targeting','tracking_specs','is_autobid'],OBJECTIVE_FIELDS:['objective'],SAVED_TARGET_SPEC_FIELDS:['audienceId','audienceName','parentAudienceId','accountId','timeUpdatedTimestamp','targetSpec','approximateCount','status','targetingSentenceLines'],USER_ADDRESS_PROPERTIES:['street','street2','city','state','country_code','zip'],ACTIVITY_LOG_FIELDS:['event_type','translated_event_type','actor_id','actor_name','application_id','application_name','action_type','object_id','object_name','object_type','event_time','extra_data'],CUSTOM_AUDIENCE_FIELDS:['account_id','approximate_count','data_source','delivery_status','description','excluded_custom_audiences','id','included_custom_audiences','lookalike_audience_ids','lookalike_spec','name','operation_status','opt_out_link','permission_for_actions','rule','retention_days','subtype','time_created','time_updated','time_content_updated'],getAdGroupFieldsForCF:function(){var j=i.ADGROUP_FIELDS_FOR_CF.slice(0);j.push('campaign_group_id');return j;}};e.exports=i;},null); __d("AdsCFCreativeProperties",["AdCreativeType","adsGKCheck","AdsUtils","getObjectValues"],function(a,b,c,d,e,f,g,h,i,j){var k={STORY_APP_SHARE:{id:g.keyToType.STORY_APP_SHARE.id,validFields:['objectId','urlTags']},STORY_APP_USED:{id:g.keyToType.STORY_APP_USED.id,validFields:['objectId','urlTags']},STORY_PAGE_LIKE:{id:g.keyToType.STORY_PAGE_LIKE.id},STORY_PAGE_POST:{id:g.keyToType.STORY_PAGE_POST.id},STORY_CHECKIN:{id:g.keyToType.STORY_CHECKIN.id},STORY_DOMAIN_SHARE:{id:g.keyToType.STORY_DOMAIN_SHARE.id,validFields:['objectId','urlTags']},STORY_QUERY_BASED:{id:g.keyToType.STORY_QUERY_BASED.id,validFields:['objectId','urlTags']},AD_EXTERNAL_URL:{id:g.keyToType.AD_EXTERNAL_URL.id,validFields:['title','body','linkUrl','imageList','relatedFanPage','showRelatedFanPage','videoId','videoThumbnail','isVideoCreative'],requiredFields:['title','body','linkUrl','MULTI_IMAGE']},FEED_URL:{id:g.keyToType.FEED_URL.id,validFields:['actor','title','body','linkUrl','linkDescription','callToActionType','imageList','storyId','videoId','videoThumbnail','isVideoCreative'],requiredFields:['actor','title','body','linkUrl','MULTI_IMAGE']},AD_FAN_LIKE:{id:g.keyToType.AD_FAN_LIKE.id,validFields:['objectId','title','body','linkUrl','imageList'],requiredFields:['objectId','body','MULTI_IMAGE']},AD_EVENT_RSVP:{id:g.keyToType.AD_EVENT_RSVP.id,validFields:['objectId','title','body','imageList'],requiredFields:['objectId','body','MULTI_IMAGE']},AD_APPLICATION:{id:g.keyToType.AD_APPLICATION.id,validFields:['objectId','title','body','imageList','linkUrl','urlTags'],requiredFields:['objectId','body','MULTI_IMAGE']},AD_PAGE_POST:{id:g.keyToType.AD_PAGE_POST.id,validFields:['objectId','storyId','urlTags']},MOBILE_APP_INSTALL:{id:g.keyToType.MOBILE_APP_INSTALL.id,validFields:['objectId','title','body','iconImage','imageList','mobileStore','videoId','applinkUrl','mobileProductName','callToActionType','urlTags','linkUrl'],requiredFields:['objectId','MULTI_IMAGE']}};if(h('ads_cf_neko_lpp'))k.NEKO_LPP={id:g.keyToType.NEKO_LPP.id,validFields:['actor','applinkUrl','body','callToActionType','imageList','linkUrl','objectId','platform','storyId','title','urlTags','videoId','videoThumbnail','isVideoCreative','productLinkUrl'],requiredFields:['actor','linkUrl','MULTI_IMAGE']};if(h('ads_cf_video_objective'))k.AD_VIDEO={id:g.keyToType.AD_VIDEO.id,validFields:['actor','body','callToActionType','videoId','videoThumbnail','isVideoCreative'],requiredFields:['actor','body','videoId','videoThumbnail']};var l=i.indexedMap(j(k),'id'),m={idToType:l,keyToType:k,requiredFieldsForType:function(n){var o=l[n],p=o?o.requiredFields:undefined;if(p)return p;o=g.idToType[n];return o?o.requiredFields||[]:[];}};e.exports=m;},null); __d("ObjectFlip",[],function(a,b,c,d,e,f){var g=function(h){var i={};for(var j in h)if(h.hasOwnProperty(j))i[h[j]]=j;return i;};e.exports=g;},null); __d("AdsCountries",["AdsCountriesConfig","ObjectFlip"],function(a,b,c,d,e,f,g,h){f.countries=g.countries;f.hasCities=function(j){j=j.toUpperCase();return g.countriesWithCities.indexOf(j)!=-1;};f.hasRegions=function(j){j=j.toUpperCase();return g.countriesWithRegions.indexOf(j)!=-1;};f.getCurrencyByCountry=function(j){j=j.toUpperCase();return g.countriesToCurrencies[j];};var i=h(g.countries);f.sortedCountries=Object.keys(i||{}).sort().map(function(j){return {code:i[j],name:j};});},null); __d("AdsDestinationTypes",[],function(a,b,c,d,e,f){'use strict';var g={EXTERNAL_WEBPAGE:'external_webpage',PAGE:1,APP:2,EVENT:3,GROUP:4,REVIEW:5,PLACE:6,DOMAIN:7,STATUS:8,PLAN:9,PAGE_AND_PLACE:50,SEARCH:100,ENTER_URL:101,SEARCH_BY_ID:102};e.exports=g;},null); __d("AdsCreationExperiments",["AdsCreationExperimentsConfig","AsyncRequest","URIInitDataUtil","invariant"],function(a,b,c,d,e,f,g,h,i,j){var k='/ajax/ads/experiment/exposure/',l=function(n,o){var p=false;return {getParam:function(q){return o.params&&o.params[q];},getParamBool:function(q){var r=this.getParam(q);if(!r||r==='false')return false;var s=parseInt(r,10);if(isNaN(s))return true;return !!s;},getGroup:function(){return o.group;},getInExperiment:function(){return o.in_experiment;},logExposure:function(q){if(p)return;p=true;var r=new h(k),s={qe_name:n,data:q};r.setData(s).send();}};},m={_experiments:{},getExperiment:function(n){if(!this._experiments[n])this._experiments[n]=l(n,g[n]||{});return this._experiments[n];}};e.exports=m;},null); __d("ads-objectives",["AdsAPIObjectives","AdsDestinationTypes","keyMirror"],function(a,b,c,d,e,f,g,h,i){var j=i({POST_ENGAGEMENT:null,PAGE_LIKES:null,WEBSITE_CLICKS:null,WEBSITE_CONVERSIONS:null,APP_INSTALLS:null,CANVAS_APP_INSTALLS:null,MOBILE_APP_INSTALLS:null,APP_ENGAGEMENT:null,CANVAS_APP_ENGAGEMENT:null,MOBILE_APP_ENGAGEMENT:null,EVENT_RESPONSES:null,OFFER_CLAIMS:null,APP_STORE_MEDIA_VISITS:null,LOCAL_AWARENESS:null,VIDEO_VIEWS:null,INSTAGRAM_BRAND_AWARENESS:null,NONE:null,MIXED:null}),k=[g.OFFER_CLAIMS,g.POST_ENGAGEMENT],l={};l[h.APP]=[j.APP_INSTALLS,j.APP_ENGAGEMENT];l[h.EVENT]=[j.EVENT_RESPONSES];l[h.EXTERNAL_WEBPAGE]=[j.WEBSITE_CLICKS,j.WEBSITE_CONVERSIONS];l[h.PAGE]=l[h.PLACE]=[j.PAGE_LIKES,j.POST_ENGAGEMENT,j.LOCAL_AWARENESS,j.VIDEO_VIEWS,j.OFFER_CLAIMS];var m={};m[j.PAGE_LIKES]=g.PAGE_LIKES;m[j.POST_ENGAGEMENT]=g.POST_ENGAGEMENT;m[j.WEBSITE_CLICKS]=g.WEBSITE_CLICKS;m[j.WEBSITE_CONVERSIONS]=g.WEBSITE_CONVERSIONS;m[j.OFFER_CLAIMS]=g.OFFER_CLAIMS;m[j.VIDEO_VIEWS]=g.VIDEO_VIEWS;m[j.EVENT_RESPONSES]=g.EVENT_RESPONSES;m[j.LOCAL_AWARENESS]=g.LOCAL_AWARENESS;m[j.APP_ENGAGEMENT]=g.CANVAS_APP_ENGAGEMENT;m[j.APP_INSTALLS]=g.MOBILE_APP_INSTALLS;m[j.APP_STORE_MEDIA_VISITS]=g.WEBSITE_CLICKS;var n={};n[g.CANVAS_APP_ENGAGEMENT]=j.APP_ENGAGEMENT;n[g.CANVAS_APP_INSTALLS]=j.APP_INSTALLS;n[g.EVENT_RESPONSES]=j.EVENT_RESPONSES;n[g.LOCAL_AWARENESS]=j.LOCAL_AWARENESS;n[g.MOBILE_APP_ENGAGEMENT]=j.APP_ENGAGEMENT;n[g.MOBILE_APP_INSTALLS]=j.APP_INSTALLS;n[g.OFFER_CLAIMS]=j.OFFER_CLAIMS;n[g.VIDEO_VIEWS]=j.VIDEO_VIEWS;n[g.WEBSITE_CONVERSIONS]=j.WEBSITE_CONVERSIONS;n[g.POST_ENGAGEMENT]=j.POST_ENGAGEMENT;n[g.PAGE_LIKES]=j.PAGE_LIKES;n[g.WEBSITE_CLICKS]=j.WEBSITE_CLICKS;var o=function(q){return [g.CANVAS_APP_INSTALLS,g.EVENT_RESPONSES,g.PAGE_LIKES].indexOf(q)>-1;},p=function(q){return [g.WEBSITE_CLICKS,g.WEBSITE_CONVERSIONS].indexOf(q)>-1;};e.exports={APItoKPIObjectives:n,isCreateConnectionObjective:o,isURLCachingEligibileObjective:p,KPIObjectives:j,KPIObjectivesByDestinationType:l,KPItoAPIObjectives:m,OBJECTIVES:g,APIObjectivesWithRequiredStoryID:k};},null); __d("AdsObjectivesConfig",["AdsCreationExperiments","adsGKCheck","cx","fbt","ix","ads-objectives"],function(a,b,c,d,e,f,g,h,i,j,k){var l=b('ads-objectives').KPIObjectives,m=g.getExperiment('ads_cf_pixel_text_engagement'),n={};n[l.WEBSITE_CLICKS]={name:"Clicks to Website",shortName:"Website Clicks",className:"_5usq",continueTooltip:"Enter a website address to continue",desc:"Get people to visit your website.",descNAX:"Send people to important places on your website.",icon:k('/images/ads/createflow/objectives/icons_large/website_clicks.png'),selectorTooltip:"Create ads to encourage people to visit your website.",typeaheadSubtitle:"Enter URL for a website"};n[l.WEBSITE_CONVERSIONS]={name:"Website Conversions",className:"_5usr",continueTooltip:"Enter a website address and conversion pixel to continue",desc:"Promote actions you want people to take on your website.",descNAX:"Measure specific actions people take on your site. You'll need to use a conversion-tracking pixel to measure your results.",descCFPixelTextEngagementTest:"Promote the actions you want people to take in response to your ads.",icon:k('/images/ads/createflow/objectives/icons_large/website_conversions.png'),selectorTooltip:"Create ads to promote specific actions for people to take on your website. You'll need to use a conversion-tracking pixel to measure your results.",typeaheadSubtitle:"Enter URL for a website"};n[l.POST_ENGAGEMENT]={name:"Page Post Engagement",shortName:"Post Engagement",className:"_5uss",continueTooltip:"Select a Page and post to continue",desc:"Boost your Page post.",descNAX:"Boost posts to reach more people. Engagement includes likes for your post, comments, shares, video plays and photo views.",icon:k('/images/ads/createflow/objectives/icons_large/post_engagement.png'),selectorTooltip:"Create ads that boost your posts and increase likes, comments, shares, video plays and photo views.",typeaheadSubtitle:"Enter URL for a Page or Page post",typeaheadTooltip:"Choose the Page for the post you want to boost. Start typing to find the Page or use the post's URL."};n[l.PAGE_LIKES]={name:"Page Likes",className:"_5ust",continueTooltip:"Select a Page to continue",desc:"Get Page likes to grow your audience and build your brand.",descNAX:"Connect with more people who matter to your business.",icon:k('/images/ads/createflow/objectives/icons_large/page_likes.png'),selectorTooltip:"Create ads to build your audience on Facebook.",typeaheadSubtitle:"Enter URL for a Page",typeaheadTooltip:"Choose the Facebook Page you want to promote. Start typing to find the Page you want to advertise or use its URL. If the Page isn't listed, contact the Page admin."};n[l.APP_INSTALLS]={name:"App Installs",className:"_5usu",continueTooltip:"Select an app to continue",desc:"Get people to install your app.",descNAX:"Get people to install your Facebook or mobile app.",icon:k('/images/ads/createflow/objectives/icons_large/app_installs.png'),selectorTooltip:"Create ads to encourage people to install your app.",typeaheadSubtitle:"Enter URL for a mobile or desktop app",typeaheadTooltip:"Choose the app you want to advertise. Start typing to find the app or use its App Store or Play Store URL. You can advertise any app that you've registered on Facebook's developer site."};n[l.CANVAS_APP_INSTALLS]={name:"Desktop App Installs",className:"_5usu",continueTooltip:"Select an app to continue",desc:"Get people to install your desktop app.",descNAX:"Get people to install your Facebook app.",icon:k('/images/ads/createflow/objectives/icons_large/app_installs.png'),selectorTooltip:"Create ads to encourage people to install your desktop app.",typeaheadSubtitle:"Enter URL for a desktop app"};n[l.MOBILE_APP_INSTALLS]={name:"Mobile App Installs",className:"_5usu",continueTooltip:"Select an app to continue",desc:"Get people to install your mobile app.",descNAX:"Get people to install your mobile app.",icon:k('/images/ads/createflow/objectives/icons_large/app_installs.png'),selectorTooltip:"Create ads to encourage people to install your mobile app.",typeaheadSubtitle:"Enter URL for a mobile app"};n[l.APP_ENGAGEMENT]={name:"App Engagement",className:"_5usv",continueTooltip:"Select an app to continue",desc:"Get more activity on your Facebook or mobile app.",descNAX:"Get people to use your Facebook or mobile app.",icon:k('/images/ads/createflow/objectives/icons_large/app_engagement.png'),selectorTooltip:"Create ads that get more activity on your app.",typeaheadSubtitle:"Enter URL for an app",typeaheadTooltip:"Choose the app you want to advertise. Start typing to find the app or use its App Store or Play Store URL. You can advertise any app that you've registered on Facebook's developer site."};n[l.CANVAS_APP_ENGAGEMENT]={name:"Desktop App Engagement",className:"_5usv",continueTooltip:"Select an app to continue",desc:"Get more activity on your desktop app.",descNAX:"Get people to use your Facebook app.",icon:k('/images/ads/createflow/objectives/icons_large/app_engagement.png'),selectorTooltip:"Create ads that get more activity on your desktop app.",typeaheadSubtitle:"Enter URL for a desktop app"};n[l.MOBILE_APP_ENGAGEMENT]={name:"Mobile App Engagement",className:"_5usv",continueTooltip:"Select an app to continue",desc:"Get more activity on your mobile app.",descNAX:"Get people to use your mobile app.",icon:k('/images/ads/createflow/objectives/icons_large/app_engagement.png'),selectorTooltip:"Create ads that get more activity on your mobile app.",typeaheadSubtitle:"Enter URL for a mobile app"};if(h('neko_media_ads_cf'))n[l.APP_STORE_MEDIA_VISITS]={name:"Clicks to Media Store",shortName:"Media Store Clicks",className:"_5usw",continueTooltip:"Enter the iTunes store URL to promote",desc:"Send people to the iTunes store to buy your album, song, movie, or TV show.",descNAX:"Send people to the iTunes store to buy your album, song, movie, or TV show.",icon:k('/images/ads/createflow/objectives/icons_large/media_visits.png'),selectorTooltip:"Create ads to get people to buy your album, or song, movie or TV show.",typeaheadSubtitle:"Enter an iTunes store URL"};n[l.OFFER_CLAIMS]={name:"Offer Claims",className:"_5usx",continueTooltip:"Select a Page and offer to continue",desc:"Create offers for people to redeem in your store.",descNAX:"Make Facebook offers so people can redeem discounts online.",icon:k('/images/ads/createflow/objectives/icons_large/offer_claims.png'),selectorTooltip:"Create ads to promote offers you created. You'll need to use an offer you've created on Facebook or create a new one right here.",typeaheadSubtitle:"Enter URL for a Page or offer on Facebook",typeaheadTooltip:"Choose the Page for the offer you want to promote. Start typing to find the Page or use its URL."};n[l.EVENT_RESPONSES]={name:"Event Responses",className:"_5usy",continueTooltip:"Select an event to continue",desc:"Increase attendance at your event.",descNAX:"Promote your Facebook event to get more responses.",icon:k('/images/ads/createflow/objectives/icons_large/event_responses.png'),selectorTooltip:"Create ads to promote your event.",typeaheadSubtitle:"Enter URL for a Facebook event",typeaheadTooltip:"Choose the Facebook event you want to promote. Start typing to find the event or enter its URL. If your event occurs today or has already passed, it can't be advertised."};if(h('ads_cf_instore_localreach'))n[l.LOCAL_AWARENESS]={name:"Local Awareness",shortName:"Local Awareness",className:"_4l7j",continueTooltip:"Select or create a Page to continue",desc:"Get your message across to people near your store.",descNAX:"Get your message across to people near your store.",icon:k('/images/map_pushpin_blue.png'),selectorTooltip:"Create ads to reach people who are near your store.",typeaheadSubtitle:"Select a Page from the list, or enter its URL.",typeaheadTooltip:"Choose a Facebook Page that represents your business. Start typing to find the Page you want to advertise, or use its URL. If your business does not yet have a Page, you can start creating one right here."};n[l.VIDEO_VIEWS]={name:"Video Views",className:"_2jfr",continueTooltip:"Select a Page to continue",desc:"Tell a story with videos in your ads.",icon:k('/images/ads/createflow/objectives/icons_large/video_views.png'),selectorTooltip:"Create ads to promote your videos.",typeaheadSubtitle:"Enter URL for a Page"};n[l.INSTAGRAM_BRAND_AWARENESS]={name:"Instagram Brand Awareness",className:"_2jfr",desc:"Increase Brand Awareness",icon:k('/images/ads/createflow/objectives/icons_large/event_responses.png'),selectorTooltip:"Create ads to promote your brand on Instagram."};n[l.NONE]={name:"No Objective",className:"_5vba",desc:"No objective",icon:k('/images/ads/createflow/objectives/icons_large/event_responses.png'),selectorTooltip:"No objective will be selected"};n[l.MIXED]={name:"Mixed Objectives"};function o(ba){var ca=n[ba];if(!ca)return {};return ca;}function p(ba){return o(ba).name||ba;}function q(ba){return o(ba).shortName||p(ba);}function r(ba){return !!o(ba).hiddenByDefault;}function s(ba){return o(ba).continueTooltip||null;}function t(ba){return o(ba).selectorTooltip||null;}function u(ba){return o(ba).typeaheadSubtitle||null;}function v(ba){if(!h('ax_nux_sprint'))return null;return o(ba).typeaheadTooltip||null;}function w(ba){return o(ba).icon||null;}function x(ba){if(h('ax_nuxed_create_flow'))return o(ba).descNAX||null;if(ba==l.WEBSITE_CONVERSIONS){m.logExposure();if(m.getParamBool('new_desc'))return o(ba).descCFPixelTextEngagementTest||null;}return o(ba).desc||null;}function y(ba){return o(ba).className||null;}function z(ba){return !!ba&&!!n[ba];}var aa={getName:p,getShortName:q,isHiddenByDefault:r,getContinueTooltip:s,getSelectorTooltip:t,getTypeaheadSubtitle:u,getTypeaheadTooltip:v,getDescription:x,getLargeIcon:w,getCssClassName:y,isValid:z};e.exports=aa;},null); __d("AdsTimezone",["AdsTimezoneConfig"],function(a,b,c,d,e,f,g){f.countryCodeToTimezoneIDsMap=g.countryCodeToTimezoneIDsMap;f.names=g.names;f.timezoneIDToCountryCodeMap=new Array(f.names.length);f.timezoneDataByID=g.tzDataByID;for(var h in g.countryCodeToTimezoneIDsMap)if(g.countryCodeToTimezoneIDsMap.hasOwnProperty(h)){var i=g.countryCodeToTimezoneIDsMap[h];for(var j=0;j0;}function t(u){if(g.contains([j.STANDARD,j.INLINE_RSVP,j.PLATFORM_CONTEXT],u.type()))return false;return s(u.page_types());}f.userOSRegex=/(.*)_ver_(.*)_and_above/;f.deviceTypes=k;f.IOS_DEVICES=m;f.ANDROID_DEVICES=l;f.isIosDevice=n;f.isAndroidDevice=o;f.operatingSystems=p;f.carriers=r;f.deviceAll=q;f.hasValidPageTypesForPlatformTargeting=s;f.canUsePlatformTargeting=t;},null); __d("ads-app-platforms",["arrayContains","fbt","invariant","ads-mobile-platforms"],function(a,b,c,d,e,f,g,h,i,j){var k=j.deviceTypes,l=j.operatingSystems,m={WEB:1,CANVAS:2,MOBILE_WEB:3,IPHONE:4,IPAD:5,ANDROID:6,IOS:7,DESKTOP_CANVAS:8,WINDOWS:9},n={INVALID:0,CANVAS:1,MOBILE_CANVAS:2,MOBILE_NATIVE:3},o={0:"The app does not support any mobile platforms",1:"Canvas",2:"Mobile Canvas",3:"Mobile Native"},p={ITUNES:'itunes',ITUNES_IPAD:'itunes_ipad',GOOGLE_PLAY:'google_play',WINDOWS_STORE:'windows_store',FB_CANVAS:'fb_canvas'},q={FB_APPLICATION_ONLY:'application',FB_MOBILE_STORE_ONLY:'mobile_store',FB_MOBILE_STORE_WITH_BACKING_APP:'mobile_store_with_matching_application'},r={};r[m.IOS]="iTunes";r[m.ANDROID]="Google Play";r[m.DESKTOP_CANVAS]="Facebook Store";var s={};s[p.ITUNES]="iTunes";s[p.ITUNES_IPAD]="iTunes for iPad";s[p.GOOGLE_PLAY]="Google Play";s[p.FB_CANVAS]="Facebook Store";var t={};t[n.INVALID]="The app does not support any native mobile platforms";t[m.IPHONE]="iPhone";t[m.IPAD]="iPad";t[m.ANDROID]="Android";t[m.IOS]="iOS";t[m.CANVAS]="Canvas";t[m.WINDOWS]="Windows";var u={};u[m.ANDROID]=p.GOOGLE_PLAY;u[m.CANVAS]=p.FB_CANVAS;u[m.DESKTOP_CANVAS]=p.FB_CANVAS;u[m.IOS]=p.ITUNES;u[m.IPAD]=p.ITUNES_IPAD;u[m.IPHONE]=p.ITUNES;u[m.WINDOWS]=p.WINDOWS_STORE;u[n.INVALID]='';var v={};v[p.ITUNES]=m.IPHONE;v[p.ITUNES_IPAD]=m.IPAD;v[p.GOOGLE_PLAY]=m.ANDROID;v[p.FB_CANVAS]=m.CANVAS;v[p.WINDOWS_STORE]=m.WINDOWS;var w={};w[l.ANDROID]=m.ANDROID;w[l.IOS]=m.IOS;function x(qa,ra){return qa.filter(function(sa){return g(ra,sa);});}function y(qa){qa=qa||{};var ra=[];Object.keys(m).forEach(function(sa){var ta=m[sa];if(qa[sa.toLowerCase()])ra.push(ta);});return ra;}function z(qa,ra){return !!x(qa,ra).length;}function aa(qa){if(!qa)return [];return qa.supported_platforms()||[];}function ba(qa){var ra=[],sa=aa(qa);if(z(sa,[m.IPHONE,m.IPAD]))ra.push(l.IOS);if(z(sa,[m.ANDROID]))ra.push(l.ANDROID);return ra;}function ca(qa){if(!qa||!qa.length)return false;return qa.some(function(ra){return (ra===m.CANVAS||ra===m.DESKTOP_CANVAS);});}function da(qa){return g([m.IPHONE,m.IPAD,m.ANDROID,m.IOS,m.WINDOWS],qa);}function ea(qa){if(!qa||!qa.length)return false;return qa.some(da);}function fa(qa,ra){var sa=v[ra];return ga(qa,sa);}function ga(qa,ra){return {mobileStore:u[ra],appPlatformValue:ra,storeId:qa[ra],contentType:'application'};}function ha(qa){var ra=[];qa=qa||{};function sa(ua){ra.push(ia(ua));}var ta=m.IPAD in qa;if(m.IPHONE in qa)sa(ta?m.IPHONE:m.IOS);if(ta)sa(m.IPAD);if(m.ANDROID in qa)sa(m.ANDROID);if(m.WINDOWS in qa)sa(m.WINDOWS);if(ra.length===0)sa(n.INVALID);return ra;}function ia(qa){return {value:u[qa],text:t[qa]};}function ja(qa){return [{value:qa,text:t[v[qa]]}];}function ka(qa,ra){switch(qa){case p.ITUNES:if(m.IPAD in ra)return [k.IPHONE,k.IPOD];return [k.IPHONE,k.IPOD,k.IPAD];case p.ITUNES_IPAD:return [k.IPAD];case p.GOOGLE_PLAY:return [];case p.WINDOWS_STORE:return [];case p.FB_CANVAS:return [];default:i(false);}}function la(qa,ra){return {os:ma(qa),devices:ka(qa,ra)};}function ma(qa){if(!qa)return;switch(qa){case p.ITUNES:case p.ITUNES_IPAD:return l.IOS;case p.GOOGLE_PLAY:return l.ANDROID;case p.WINDOWS_STORE:return l.WINDOWS;case p.FB_CANVAS:return l.FB_CANVAS;default:i(false);}}function na(qa){return qa===p.ITUNES||qa===p.ITUNES_IPAD;}function oa(qa){if(!qa)return;switch(qa){case m.IOS:return l.IOS;case m.ANDROID:return l.ANDROID;default:i(false);}}function pa(qa){return s[qa]||qa;}f.APP_PLATFORM=m;f.APP_PLATFORM_TO_STORE_NAME=r;f.APP_PLATFORM_TYPE=n;f.APP_PLATFORM_TYPE_NAME=o;f.constructNativeMobileAppOption=ia;f.getMobileOSForPlatform=oa;f.getMobileStoreOptionsForMobileStore=ja;f.getNativeMobileApps=ha;f.getOSForMobileStore=ma;f.isIOSMobileStore=na;f.getPlatformsFromGraph=y;f.getStoreName=pa;f.getStoreObjectInfoFromAppPlatform=ga;f.getStoreObjectInfoFromMobileStore=fa;f.getSupportedOS=ba;f.getTargetingOptionsByMobileStore=la;f.isPlatformSupported=z;f.MOBILE_OPERATING_SYSTEM_TO_APP_PLATFORM=w;f.MOBILE_STORE=p;f.MOBILE_STORE_DESTINATION_TYPE=q;f.NATIVE_APP_TO_MOBILE_STORE_MAP=u;f.supportsDesktop=ca;f.supportsNativeMobile=ea;},null); __d("ads-lib-connect",["ApiClient","Arbiter","URI","copyProperties","flattenObject"],function(a,b,c,d,e,f,g,h,i,j,k){var l=j(new h(),{events:{NEW_NETWORK_DATA_AVAILABLE:'newNetworkDataAvailable'},api:function(p){var q={};Array.prototype.slice.call(arguments,1).forEach(function(x){q[typeof x]=x;});var r=q.string,s=q.object,t=q['function'],u=Date.now(),v=function(x){var y=Date.now();m({path:p,method:r,params:s,response:x,start:u,end:y,baseURL:window.location.href});t&&t(x);},w=[p,r,s,v].filter(function(x){return !!x;});g.graph.apply(g,w);},url:function(p,q,r){if(p&&p.substring(0,1)!='/')p='/'+p;q=q||{};q.access_token=r;q=k(q);return i().setPath(p).setSubdomain('graph').setQueryData(q).toString();}});function m(p){l.inform(l.events.NEW_NETWORK_DATA_AVAILABLE,p,h.BEHAVIOR_EVENT);}function n(p){return !p||p.error||p.error_msg;}function o(p){if(!p)return {};return {msg:p.error_msg||(p.error&&p.error.message)||p.error,code:p.error_code||(p.error&&p.error.code),type:p.error_type||(p.error&&p.error.type),subcode:p.error_subcode||(p.error&&p.error.error_subcode)};}f.FB=l;f.getErrorMessage=o;f.isError=n;},null); __d("adsAsyncUtils",[],function(a,b,c,d,e,f){var g=30;function h(j,k,l){"use strict";this.$ParallelForEach0=j;this.$ParallelForEach1=1;this.$ParallelForEach2=k;this.$ParallelForEach3=l;this.$ParallelForEach4=0;this.$ParallelForEach5=0;this.$ParallelForEach6=0;this.$ParallelForEach7=60000;this.$ParallelForEach8=null;}h.prototype.setTimeoutLimit=function(j){"use strict";this.$ParallelForEach7=j;return this;};h.prototype.setTimeoutHandler=function(j){"use strict";this.$ParallelForEach8=j;return this;};h.prototype.setContext=function(j){"use strict";this.$ParallelForEach9=j;return this;};h.prototype.setExceptionHandler=function(j){"use strict";this.$ParallelForEacha=j;return this;};h.prototype.setConcurrency=function(j){"use strict";this.$ParallelForEach1=j;return this;};h.prototype.run=function(){"use strict";var j=this;if(j.$ParallelForEach41&&o.filter(function(p){return !p;}).length===0;},isUrl:function(n){var o=g(n);return o.domain&&o.domain!==i&&m.isUrlSimple(o.domain);},isPotentialUrl:function(n){if(!n)return true;var o=g(n);return o.domain&&o.domain!==i;}};e.exports=m;},null); __d("AdsCreateFlowConfig",["AdsCreationConfig"],function(a,b,c,d,e,f,g){var h={PAGE_POST_TIMEOUT_MS:6000,MAX_PAGE_POST_LEN:50,MAX_TITLE_LENGTH:g.maxTitleLength,MAX_URL_LENGTH:g.maxURLLength,NEW_CAMPAIGN_ID:0,AGE_MIN:g.minAge,AGE_MAX:g.maxAge,ONE_BOX_TYPEAHEAD_TRUNCATION:21,ONE_BOX_DEBOUNCE_MS:120,MAX_TEXT_LENGTH:52,MAX_SUGGESTED_KEYWORDS_OFFSET:45,SUGGESTED_KEYWORDS_PER_FETCH:15,DEFAULT_IMAGE_URL_SUFFIX:'/images/devsite/attachment_blank.png',SEE_ALL:'see_all',GO_BACK:'go_back'};e.exports=h;},null); __d("AdsCreateFlowQueryLimits",[],function(a,b,c,d,e,f){e.exports={AD_DEST_QUERY_LIMIT:9,AD_KEYWORD_SUGGESTION_QUERY_LIMIT:15,AD_COUNTRY_QUERY_LIMIT:500,TYPEAHEAD_LIMIT:12};},null); __d("AdsCFConnectConfig",["AdsCFConnectConfigInternal","invariant"],function(a,b,c,d,e,f,g,h){e.exports=g;},null); __d("adsDaoUtils",["bolt/core","bolt/util","invariant"],function(a,b,c,d,e,f,g,h,i){f.primeDao=function(k,l,m){var n=h.extend({},k);for(var o in m){if(!k.hasOwnProperty(o))continue;n[o]=j(k[o],l);}return n;};function j(k,l){i(k.klass);var m=f.createDataCommand(k.klass,l,k.dataCommandId);if(k.commandName)m.commandName=k.commandName;return m;}f.createDataCommand=function(k,l,m){i(!k.klass);var n=h.extend({extend:k},l,{dataCommandId:m||h.generateCID()}),o=['requiredParameters','constantParameters','optionalParameters'];o.forEach(function(p){var q=k.prototype[p]||{},r=l[p]||{};i(typeof q=='object');i(typeof r=='object');n[p]=h.extend({},q,r);});return new (g.createClass(n))();};f.transformIdToString=function(k){if(typeof k.id==='number')k.id=''+k.id;};},null); __d("adsDaoGraphPrimed",["adsDaoUtils"],function(a,b,c,d,e,f,g){f.forAccount=function(h){var i={constantParameters:{accountId:h}};this.fetch=g.primeDao(this.fetch,i,{adgroupsForAccount:true,connectionObjectsForAccount:true,audiencesForAccount:true,adsPixelsForAccount:true,imagesForAccount:true,videosForAccount:true,campaignsForAccount:true,customAudiencesForAccount:true,partnersForAccount:true,estimatesForAccount:true,targetingSentencesForAccount:true,accountInfo:true,customCluster:true,bctDataForAccount:true,partnerCategoriesForAccount:true,customaudiencestosForAccount:true,campaignGroupsForAccount:true,reportStatsForAccount:true,reportSpecsForAccount:true,asyncReportById:true,reportAsyncRunsForAccount:true,reportsScheduledForAccount:true,pixelsForAccount:true,pagesForUser:true,appsForUser:true,contactsLists:true,seedEstimateForAccount:true,accountStats:true,usersForAccount:true});this.add=g.primeDao(this.add,i,{audiencesImport:true,acceptCustomAudiencesTos:true,createCampaign:true,createNewSavedTargetSpec:true,imageForAccount:true,updateAccount:true,createCustomAudience:true,createWebRemarketingCustomAudience:true,createAdsPixel:true,createMobileAppRemarketingCustomAudience:true,createMobileAppCombinationCustomAudience:true,reportSpecs:true,scheduleReport:true});this.mutate=g.primeDao(this.mutate,i,{customAudience:true,reportSpecs:true,savedTargetSpec:true,updateAccount:true,reportStatsForAccountAsync:true,updateAsyncReport:true});return this;};f.forBrand=function(h,i){var j={constantParameters:{brandID:h,locale:i}};this.fetch=g.primeDao(this.fetch,j,{appsForBrand:true,brandInfo:true,pagesForBrand:true,adaccountsForBrand:true,productCatalogsForBrand:true,agenciesForBrand:true,clientsForBrand:true,fundingSourcesForBrand:true,labelsForBrand:true,userPermissionsForAccount:true,userPermissionsForPage:true,userPermissionsForBrand:true,businessSettingLogForObject:true,userPermissionsForApp:true});this.add=g.primeDao(this.add,j,{addPagesToBrand:true,addAccountsToBrand:true,acceptAgencyAdAccountPermRequest:true,acceptAgencyPagePermRequest:true,createAdAccount:true,createLabelForBrand:true,createSystemUserForBrand:true,updateBrand:true,updateBrandUserPermission:true});this.remove=g.primeDao(this.remove,j,{removeAppPermission:true,removePagePermission:true,pagesForBrand:true,accountsForBrand:true,systemUsersForBrand:true,removeAgency:true,removeClient:true,removeAgencyPagePermission:true,removeAgencyAdAccountPermission:true});this.mutate=g.primeDao(this.mutate,j,{brandPersona:true});return this;};f.forLocale=function(h){var i={constantParameters:{locale:h}};this.add=g.primeDao(this.add,i,{createLookalikeCluster:true,createActionsLookalike:true});this.fetch=g.primeDao(this.fetch,i,{adKeywordSuggestion:true,adgroupForCF:true,adsDestinationInfo:true,bctDataForAccount:true,adTargetingCategory:true,partnerCategoriesForAccount:true,countries:true,estimatesForAccount:true,estimatesForAdgroup:true,geolocation:true,languages:true,targetingSentencesForAccount:true});return this;};},null); __d("AdsDaoEvents",["Arbiter"],function(a,b,c,d,e,f,g){'use strict';f.Arbiter=new g();f.ArbiterEvents={ERROR:'ads_dao_arbiter_error_event'};},null); __d("AdsDaoResult",[],function(a,b,c,d,e,f){var g={SUCCESS:1,NO_RESULT_RETURNED:2,RESULT_HAS_ERROR:3};e.exports=g;},null); __d("adsDaoCaching",["Assert","bolt/core","bolt/util","AdsUtils","emptyFunction"],function(a,b,c,d,e,f,g,h,i,j,k){function l(m){var n=Object.keys(m).sort(),o={};for(var p=0;p0)&&(r>=p);if(u&&!v){u(s);}else n(q);};this.paged(s,o);},paged:function(n,o){var p=this;function q(r){return function(s,t){var u=t.paging&&t.paging.next;function v(w){p.execute(q(w),{endpoint:u});}r(s,u?v:null);};}this.one(q(n),o);},promiseAccumulate:function(n,o){return new k(function(p,q){var r=function(s,t,u){q({result:s,rawData:t,actualParameters:u});};n=l(n,{handleError:r});this.accumulate(p,n,o);}.bind(this));}}));e.exports=m;},null); __d("adsDaoGraphFetch",["AdsAPIAdDraftFragmentFields","AdsAPISpec","AdsCreateFlowQueryLimits","AdsDao","AdsDestinationTypes","AdsUtils","BizSiteIdentifier.brands","adsDaoUtils","bolt/util","AdsDaoGraphDataProvider","adsDaoCaching","copyProperties"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=j.TransformParameterValue,t=h.ACCOUNT_FIELDS,u=h.BRAND_FIELDS.map(l.underscoreKey),v=h.USER_APP_FIELDS.map(l.underscoreKey),w=h.BRAND_APP_FIELDS.map(l.underscoreKey),x=h.BRAND_PAGE_FIELDS.map(l.underscoreKey),y=h.PAGE_POST_FIELDS.map(l.underscoreKey),z=h.CAMPAIGN_FIELDS.map(l.underscoreKey),aa=h.ACTIVITY_LOG_FIELDS.map(l.underscoreKey),ba={anyIDs:n.createDataCommand(p,{requiredParameters:{ids:true},optionalParameters:{metadata:true,fields:true},constantParameters:{endpoint:'/'}}),picture:n.createDataCommand(p,{requiredParameters:{fbid:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.fbid+'/picture';})}}),creativesForAdgroupId:n.createDataCommand(p,{requiredParameters:{adgroupId:true,fields:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.adgroupId+'/adcreatives';})}}),adgroupsForCampaignGroup:n.createDataCommand(p,{requiredParameters:{campaignGroupID:true},optionalParameters:{offset:true,limit:true,include_deleted:true,after:true,filtering:true,sort:true,time_range:true,date_preset:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.campaignGroupID+'/adgroups';})}}),adgroupsForCampaign:n.createDataCommand(p,{requiredParameters:{campaignID:true},optionalParameters:{offset:true,limit:true,include_deleted:true,after:true,filtering:true,sort:true,time_range:true,date_preset:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.campaignID+'/adgroups';})}}),adgroupsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{offset:true,limit:true,adgroup_ids:true,include_deleted:true,after:true,filtering:true,sort:true,time_range:true,date_preset:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/adgroups';})}}),validateAdgroup:n.createDataCommand(p,{requiredParameters:{account_id:true,adgroup_specs:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.account_id+'/adgroupvalidation';})}}),audiencesForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{fields:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/audiences';})}}),adsPixelsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{fields:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/adspixels';}),fields:['id','code','last_fired_time']}}),pixelInsights:n.createDataCommand(p,{requiredParameters:{pixelId:true},optionalParameters:{start_time:true,fields:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.pixelId+'/pixel_insights';})}}),ruleValidation:n.createDataCommand(p,{requiredParameters:{pixelId:true,rule:true},optionalParameters:{params:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.pixelId+'/rulevalidation';})}}),audienceStatuses:n.createDataCommand(p,{requiredParameters:{audienceID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.audienceID+'/statuses';})}}),audienceUsageHistory:n.createDataCommand(p,{requiredParameters:{audienceID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.audienceID+'/usage_history';}),fields:['time','action','extra_data']}}),contactsLists:n.createDataCommand(p,{requiredParameters:{accountId:true,third_party_data:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/emailimport';})}}),connectionObjectsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/connectionobjects';}),business_id:(m.getBusinessID()||null),non_business_only:(m.getBusinessID()?null:true)},optionalParameters:{business_id:true,non_business_only:true,offset:true,limit:true},processData:function(ea){var fa=ea.data.filter(function(ga){return ga.type!==k.DOMAIN;});return r({},ea,{data:fa});}}),adConnectedApp:n.createDataCommand(p,{optionalParameters:{act:true,q:true},constantParameters:{endpoint:'/search',type:'adconnectedapp'}}),userInfo:n.createDataCommand(p,{constantParameters:{endpoint:'/me'}}),customaudiencestosForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/customaudiencestos';})}}),customAudiencesForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/customaudiences';})},optionalParameters:{before:true,after:true,limit:true,fields:true},processData:function(ea){return ea;}}),audience:n.createDataCommand(p,{requiredParameters:{audienceID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.audienceID;})}}),adGroupsForCustomaudiences:n.createDataCommand(p,{requiredParameters:{audienceId:true},constantParameters:{endpoint:new s(function(ea){return ea.audienceId+'/adgroups?adgroup_status=[\'ACTIVE\']&fields=id,name';})}}),partnersForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/partners';})}}),accountsForAudience:n.createDataCommand(p,{requiredParameters:{audienceId:true},constantParameters:{endpoint:new s(function(ea){return ea.audienceId+'/adaccounts';})}}),capabilitiesForAudience:n.createDataCommand(p,{requiredParameters:{audienceId:true},constantParameters:{endpoint:new s(function(ea){return ea.audienceId+'/capabilities';})}}),pagesForBrand:n.createDataCommand(p,{requiredParameters:{brandID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.brandID+'/pages';}),fields:x}}),appsForBrand:n.createDataCommand(p,{requiredParameters:{brandID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.brandID+'/apps';}),fields:w}}),adaccountsForBrand:n.createDataCommand(p,{requiredParameters:{brandID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.brandID+'/adaccounts';})}}),productCatalogsForBrand:n.createDataCommand(p,{requiredParameters:{brandID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.brandID+'/product_catalogs';})}}),agenciesForBrand:n.createDataCommand(p,{requiredParameters:{brandID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.brandID+'/agencies';})}}),clientsForBrand:n.createDataCommand(p,{requiredParameters:{brandID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.brandID+'/clients';})}}),labelsForBrand:n.createDataCommand(p,{requiredParameters:{brandID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.brandID+'/businesslabels';}),date_format:'U'}}),labelsForAsset:n.createDataCommand(p,{requiredParameters:{assetID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.assetID+'/businesslabels';}),date_format:'U'}}),fundingSourcesForBrand:n.createDataCommand(p,{requiredParameters:{brandID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.brandID+'/creditcards';})}}),usersForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/users';})}}),userPermissionsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{business:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/userpermissions';})}}),userPermissionsForPage:n.createDataCommand(p,{requiredParameters:{pageId:true},optionalParameters:{business:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.pageId+'/userpermissions';})}}),userPermissionsForApp:n.createDataCommand(p,{requiredParameters:{appId:true},optionalParameters:{business:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.appId+'/userpermissions';})}}),userPermissionsForProductCatalog:n.createDataCommand(p,{requiredParameters:{productCatalogId:true},optionalParameters:{business:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.productCatalogId+'/userpermissions';})}}),rolesForAccount:n.createDataCommand(p,{constantParameters:{endpoint:new s(function(ea){return '/adaccountroles';})},processData:function(ea){return ea.roles;}}),userPermissionsForBrand:n.createDataCommand(p,{requiredParameters:{brandID:true},optionalParameters:{user:true,fields:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.brandID+'/userpermissions';})},processData:function(ea){return ea.data;}}),pagesForUser:n.createDataCommand(p,{optionalParameters:{fields:true},constantParameters:{endpoint:'/me/accounts',type:'page',limit:100,fields:h.USER_PAGE_FIELDS}}),accountsForUser:n.createDataCommand(p,{optionalParameters:{fields:true},constantParameters:{endpoint:'/me/adaccounts',fields:t}}),brandsForUser:n.createDataCommand(p,{optionalParameters:{fields:true},constantParameters:{endpoint:'/me/brands',fields:u}}),businessSettingLogForObject:n.createDataCommand(p,{requiredParameters:{objectId:true},optionalParameters:{business:true,since:true,until:true,limit:true,after:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.objectId+'/businesssettinglogs';}),date_format:'U'},processData:function(ea){return ea.data;}}),objectProfiles:n.createDataCommand(p,{requiredParameters:{ids:true},optionalParameters:{fields:true},constantParameters:{endpoint:new s(function(ea){return '/';})}}),pagePostDetails:n.createDataCommand(p,{requiredParameters:{pageId:true,storyId:true},optionalParameters:{fields:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.pageId+"_"+ea.storyId;}),fields:y}}),objectSearch:n.createDataCommand(p,{requiredParameters:{type:true,q:true},constantParameters:{endpoint:'/search',limit:i.AD_DEST_QUERY_LIMIT},optionalParameters:{fields:true}}),adsDestinationInfo:n.createDataCommand(p,{requiredParameters:{type:true,locale:true},constantParameters:{endpoint:'/search',type:'addestination',limit:i.AD_DEST_QUERY_LIMIT},optionalParameters:{account_id:true,object_id:true,object_url:true,q:true,forceMobileStore:true}}),adsCollege:n.createDataCommand(p,{requiredParameters:{q:true,locale:true},constantParameters:{endpoint:'/search',type:'adcollege'}}),adsCollegeMajor:n.createDataCommand(p,{requiredParameters:{q:true,locale:true},constantParameters:{endpoint:'/search',type:'adcollegemajor'}}),adsEducationSchools:n.createDataCommand(p,{requiredParameters:{q:true,locale:true},constantParameters:{endpoint:'/search',type:'adeducationschool'}}),adsEducationMajors:n.createDataCommand(p,{requiredParameters:{q:true,locale:true},constantParameters:{endpoint:'/search',type:'adeducationmajor'}}),adsWorkEmployers:n.createDataCommand(p,{requiredParameters:{q:true,locale:true},constantParameters:{endpoint:'/search',type:'adworkemployer'}}),adsWorkplace:n.createDataCommand(p,{requiredParameters:{q:true,locale:true},constantParameters:{endpoint:'/search',type:'adworkplace'}}),adsWorkPosition:n.createDataCommand(p,{requiredParameters:{q:true,locale:true},constantParameters:{endpoint:'/search',type:'adworkposition'}}),pagePromotablePostsForConnectionObject:n.createDataCommand(p,{requiredParameters:{objectId:true},optionalParameters:{is_published:true,until:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.objectId+'/promotable_posts';})}}),accessTokenForPage:n.createDataCommand(p,{requiredParameters:{pageId:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.pageId+'/';}),fields:'access_token'}}),imagesForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/adimages';})},optionalParameters:{hashes:true}}),videosForAccount:n.createDataCommand(p,{constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/advideos';})},optionalParameters:{fields:true}}),campaignsForCampaignGroup:n.createDataCommand(p,{requiredParameters:{campaignGroupID:true},optionalParameters:{include_completed:true,include_deleted:true,fields:true,limit:true,offset:true,after:true,filtering:true,sort:true,time_range:true,date_preset:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.campaignGroupID+'/adcampaigns';}),fields:z},processData:function(ea){var fa={};ea.data.forEach(function(ga){ga.campaign_id=ga.id;fa[ga.id]=ga;});return fa;}}),campaignsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{campaign_ids:true,include_completed:true,include_deleted:true,fields:true,limit:true,offset:true,after:true,filtering:true,sort:true,time_range:true,date_preset:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/adcampaigns';}),fields:z},processData:function(ea){var fa={};ea.data.forEach(function(ga){ga.campaign_id=ga.id;fa[ga.id]=ga;});return fa;}}),campaignGroupsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{fields:true,limit:true,after:true,filtering:true,sort:true,time_range:true,date_preset:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/adcampaign_groups';})}}),stockImages:n.createDataCommand(p,{requiredParameters:{q:true},optionalParameters:{limit:true,offset:true},constantParameters:{endpoint:'/search',type:'adstockimage'}}),detailsForStockImage:n.createDataCommand(p,{requiredParameters:{image_id:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.image_id;})}}),userProfiles:n.createDataCommand(p,{requiredParameters:{ids:true},optionalParameters:{fields:true},constantParameters:{endpoint:new s(function(ea){return '/';})},processData:function(ea){return ea;}}),asyncReportById:n.createDataCommand(p,{requiredParameters:{reportRunId:true},cacheMechanism:new q.BaseCacheMechanism(),constantParameters:{endpoint:new s(function(ea){var fa=ea.reportRunId;delete ea.reportRunId;return '/'+fa;}),cacheBust:new s(function(){return Date.now()+'_'+Math.random();})}}),reportSpecsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/adreportspecs';})},processData:function(ea){var fa=o.values(ea.data);fa.forEach(n.transformIdToString);return fa;}}),reportStatsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true,data_columns:true},optionalParameters:{time_increment:true,date_preset:true,time_interval:true,sort_by:true,sort_dir:true,offset:true,limit:true,actions_group_by:true,filters:true,asyncRunId:true,user_report:true,include_summary:true},constantParameters:{endpoint:new s(function(ea){var fa=ea.asyncRunId;delete ea.asyncRunId;var ga='/act_'+ea.accountId+'/reportstats';if(fa)ga+='/'+fa;return ga;})},processData:function(ea){var fa=ea.data;if(!fa)return [];var ga=(ea.paging&&ea.paging.next&&fa.length===parseInt(ea.limit,10))?parseInt(ea.offset,10)+fa.length:-1;return {data:fa,summary:ea.summary,nextOffset:ga};}}),reportStatsMetadataForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true,data_columns:true},optionalParameters:{time_increment:true,date_preset:true,time_interval:true,sort_by:true,sort_dir:true,offset:true,limit:true,actions_group_by:true,filters:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/reportstatsmetadata';})}}),reportAsyncRunsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{limit:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/adreportruns';})}}),reportAsyncRunsForSchedule:n.createDataCommand(p,{requiredParameters:{scheduledReportId:true},constantParameters:{endpoint:new s(function(ea){var fa=ea.scheduledReportId;delete ea.scheduledReportId;return '/'+fa+'/adreportruns';})}}),reportsScheduledForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},cacheMechanism:new q.BaseCacheMechanism(),constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/adreportschedules';}),cacheBust:new s(function(){return Date.now()+'_'+Math.random();})}}),estimatesForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true,targeting_spec:true},optionalParameters:{locale:true,currency:true,bid_for:true,creative_action_spec:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/reachestimate';})}}),estimatesForAdgroup:n.createDataCommand(p,{requiredParameters:{adgroupId:true,targeting_spec:true,locale:true},optionalParameters:{bid_for:true,creative_action_spec:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.adgroupId+'/reachestimate';})}}),targetingSentencesForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true,targeting_spec:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/targetingsentencelines';})}}),accountStats:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{end_time:true,fields:true,start_time:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/stats';})}}),accountInfo:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{fields:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId;}),fields:t}}),appInfo:n.createDataCommand(p,{requiredParameters:{appId:true},optionalParameters:{fields:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.appId;}),fields:v}}),brandInfo:n.createDataCommand(p,{requiredParameters:{brandID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.brandID;}),fields:u,date_format:'U'}}),bctDataForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{remove_interest_categories:true,custom_categories_only:true,broad_categories_only:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/broadtargetingcategories';})}}),partnerCategoriesForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{locale:true,after:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/partnercategories';}),limit:1000},processData:function(ea){return {data:ea.data,after:ea.paging?ea.paging.cursors.after:null};}}),adGeoLocationMetaInfo:n.createDataCommand(p,{requiredParameters:{locale:true},optionalParameters:{countries:true,regions:true,cities:true,zips:true},constantParameters:{endpoint:'/search',type:'adgeolocationmeta'}}),adCountryValidation:n.createDataCommand(p,{requiredParameters:{q:true},optionalParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adgeolocation',location_types:['country']}}),adRegionValidation:n.createDataCommand(p,{requiredParameters:{q:true},optionalParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adgeolocation',location_types:['region']}}),adCityValidation:n.createDataCommand(p,{requiredParameters:{q:true},optionalParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adgeolocation',location_types:['city']}}),adZipValidation:n.createDataCommand(p,{requiredParameters:{q:true},optionalParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adgeolocation',location_types:['zip']}}),adKeyword:n.createDataCommand(p,{requiredParameters:{q:true},constantParameters:{endpoint:'/search',type:'adKeyword'}}),adKeywordValid:n.createDataCommand(p,{requiredParameters:{keyword_list:true},constantParameters:{endpoint:'/search',type:'adkeywordvalid'}}),adKeywordSuggestion:n.createDataCommand(p,{requiredParameters:{locale:true,keyword_list:true,offset:true},constantParameters:{endpoint:'/search',type:'adkeywordsuggestion',limit:i.AD_KEYWORD_SUGGESTION_QUERY_LIMIT}}),adInterest:n.createDataCommand(p,{requiredParameters:{q:true},optionalParameters:{whitelisted_only:true},constantParameters:{endpoint:'/search',type:'adInterest'}}),adInterestValid:n.createDataCommand(p,{optionalParameters:{interest_list:true,interest_fbid_list:true,ignore_case:true,locale:true},constantParameters:{endpoint:'/search',type:'adInterestValid'}}),adInterestSuggestion:n.createDataCommand(p,{requiredParameters:{interest_list:true},optionalParameters:{locale:true,offset:true},constantParameters:{endpoint:'/search',type:'adInterestSuggestion',limit:i.AD_KEYWORD_SUGGESTION_QUERY_LIMIT}}),adInterestCategory:n.createDataCommand(p,{optionalParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adInterestCategory'}}),adTargetingCategory:n.createDataCommand(p,{optionalParameters:{locale:true,'class':true},constantParameters:{endpoint:'/search',type:'adTargetingCategory'}}),languages:n.createDataCommand(p,{requiredParameters:{locale:true},optionalParameters:{q:true},constantParameters:{endpoint:'/search',type:'adlocale',limit:i.AD_COUNTRY_QUERY_LIMIT}}),countries:n.createDataCommand(p,{requiredParameters:{locale:true},constantParameters:{endpoint:'/search',type:'adcountry',limit:i.AD_COUNTRY_QUERY_LIMIT},processData:function(ea){return l.indexedMap(ea.data,'country_code','name');}}),geolocation:n.createDataCommand(p,{requiredParameters:{locale:true,q:true},optionalParameters:{country_code:true,region_id:true},constantParameters:{endpoint:'/search',type:'adgeolocation'}}),geocoder:n.createDataCommand(p,{requiredParameters:{address:true},constantParameters:{endpoint:'/ads_geo_coding'}}),customAudiencesSearch:n.createDataCommand(p,{requiredParameters:{q:true,account_id:true},constantParameters:{endpoint:'/search',type:'customaudience'}}),objectByFBID:n.createDataCommand(p,{requiredParameters:{fbid:true},optionalParameters:{fields:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.fbid;})}}),adgroupForCF:n.createDataCommand(p,{requiredParameters:{adgroupId:true,locale:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.adgroupId;}),fields:new s(function(ea){return h.getAdGroupFieldsForCF();})}}),adgroupForAudienceManager:n.createDataCommand(p,{requiredParameters:{adgroupId:true,locale:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.adgroupId;}),fields:['id','account_id','campaign_id','name']}}),validateAccountIDs:n.createDataCommand(p,{requiredParameters:{adaccounts:true},constantParameters:{endpoint:'/search',type:'adaccountvalid'}}),pixelsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/offsitepixels';}),limit:500},processData:function(ea){return ea.data;}}),geoPolygons:n.createDataCommand(p,{requiredParameters:{q:true,geo_type:true},constantParameters:{endpoint:'/search',type:'adgeopolygons'}}),logsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true,locale:true},optionalParameters:{since:true,until:true,uid:true,oid:true,business_id:true,category:true,after:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/activities';}),date_format:'U',limit:200,fields:aa},processData:function(ea){return {data:ea.data,after:ea.paging?ea.paging.cursors.after:null};}}),seedEstimateForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true,country_code:true},optionalParameters:{ad_ids:true,conversion_type:true,pixel_ids:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/conversionseedestimate';})}}),partnerRequestByID:n.createDataCommand(p,{requiredParameters:{request_id:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.request_id;})}}),usersNamedForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/usersnamed';})}}),adContentChecker:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{campaign_id:true,title_text:true,body_text:true,image_url:true,landing_page_url:true,json_encoded_target_specs:true},constantParameters:{locale:'user',endpoint:new s(function(ea){return '/act_'+ea.accountId+'/ad_content_checker';})}}),adDraftsForAccount:n.createDataCommand(p,{requiredParameters:{accountId:true},optionalParameters:{author_id:true},constantParameters:{endpoint:new s(function(ea){return '/act_'+ea.accountId+'/addrafts';})}}),adDraftFragmentsForDraft:n.createDataCommand(p,{requiredParameters:{draftID:true},constantParameters:{endpoint:new s(function(ea){return '/'+ea.draftID+'/addraft_fragments';}),fields:[g.VALUES,g.TIME_UPDATED,g.AD_OBJECT_TYPE,g.AD_OBJECT_ID]}})};for(var ca in ba){var da=ba[ca];if(da)da.commandName='fetch_'+ca;}f.fetch=ba;},null); __d("adsDaoGraphMutate",["AdsDao","BizSiteIdentifier.brands","adsDaoUtils","adsDaoGraphDataMutator","adsDaoGraphFetch"],function(a,b,c,d,e,f,g,h,i,j){var k=g.TransformParameterValue,l=j.GraphDataMutator,m=j.GraphDataRemover,n=b('adsDaoGraphFetch').fetch,o={imageForAccount:i.createDataCommand(l,{requiredParameters:{accountId:true,bytes:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/adimages';})},conflictDataCommands:[n.imagesForAccount]}),updateAccount:i.createDataCommand(l,{requiredParameters:{accountId:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId;})}}),updateAdgroup:i.createDataCommand(l,{requiredParameters:{adgroupId:true},optionalParameters:{locale:true},constantParameters:{endpoint:new k(function(r){return '/'+r.adgroupId;})}}),updateBrand:i.createDataCommand(l,{requiredParameters:{brandID:true},constantParameters:{endpoint:new k(function(r){var s=r.brandID;delete r.brandID;return '/'+s;})}}),activateCoupon:i.createDataCommand(l,{requiredParameters:{accountId:true,coupon_code:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/coupons';})}}),updateCampaignGroup:i.createDataCommand(l,{requiredParameters:{campaignGroupId:true},optionalParameters:{campaign_group_status:true,name:true},constantParameters:{endpoint:new k(function(r){return '/'+r.campaignGroupId;})}}),updateCampaign:i.createDataCommand(l,{requiredParameters:{campaignId:true},optionalParameters:{name:true,daily_budget:true,campaign_status:true},constantParameters:{endpoint:new k(function(r){return '/'+r.campaignId;})}}),updateLabel:i.createDataCommand(l,{requiredParameters:{labelID:true},optionalParameters:{name:true},constantParameters:{endpoint:new k(function(r){return '/'+r.labelID;})}}),audiencesImport:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true,third_party_data:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/emailimport';})}}),createLookalikeCluster:i.createDataCommand(l,{requiredParameters:{accountId:true,origin_audience_id:true,lookalike_spec:true},optionalParameters:{name:true,description:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),createCustomAudience:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true},optionalParameters:{opt_out_link:true,rev_share_policy_id:true,is_category:true,parent_audience_id:true,creation_params:true,description:true,details:true,source:true,isPrivate:true,additionalMetadata:true,countries:true,minAge:true,maxAge:true,expectedSize:true,gender:true,partner_reference_key:true,subtype:true,partnerID:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),addUsersToCustomAudience:i.createDataCommand(l,{requiredParameters:{audienceID:true,users:true,hash_type:true},constantParameters:{endpoint:new k(function(r){return '/'+r.audienceID+'/users';})}}),uploadUsersToCustomAudience:i.createDataCommand(l,{requiredParameters:{audienceID:true,payload:true,session:true},constantParameters:{endpoint:new k(function(r){return '/'+r.audienceID+'/upload';})}}),createWebRemarketingCustomAudience:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true,retention_days:true},optionalParameters:{backfill:true,opt_out_link:true,rev_share_policy_id:true,is_category:true,parent_audience_id:true,creation_params:true,rule:true},constantParameters:{subtype:'website',endpoint:new k(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),createAdsPixel:i.createDataCommand(l,{requiredParameters:{accountId:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/adspixels';})}}),createMobileAppRemarketingCustomAudience:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true,retention_days:true,rule:true},optionalParameters:{opt_out_link:true,rev_share_policy_id:true,is_category:true,parent_audience_id:true,creation_params:true},constantParameters:{subtype:'app',endpoint:new k(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),createMobileAppCombinationCustomAudience:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true,inclusions:true},optionalParameters:{exclusions:true,opt_out_link:true,rev_share_policy_id:true,is_category:true,parent_audience_id:true,creation_params:true},constantParameters:{subtype:'combination',endpoint:new k(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),createActionsLookalike:i.createDataCommand(l,{requiredParameters:{accountId:true,lookalike_spec:true},optionalParameters:{name:true,description:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/customaudiences';})}}),createConversionPixel:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true},optionalParameters:{tag:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/offsitepixels';})},conflictDataCommands:[n.pixelsForAccount]}),unpublishedPagePost:i.createDataCommand(l,{requiredParameters:{access_token:true,link:true,message:true,name:true,pageId:true},optionalParameters:{description:true,picture:true,image_crops:true},constantParameters:{endpoint:new k(function(r){return '/'+r.pageId+'/feed';}),published:false}}),reportSpecs:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true},optionalParameters:{data_columns:true,export_columns:true,date_preset:true,filters:true,time_increment:true,sort_by:true,sort_dir:true,time_interval:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/adreportspecs';})}}),scheduleReport:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true,schedule_frequency:true,status:true,emails:true},optionalParameters:{actions_group_by:true,data_columns:true,date_preset:true,filters:true,time_increment:true,sort_by:true,sort_dir:true,time_interval:true,report_spec_id:true,start_date:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/adreportschedules';})}}),addPagesToBrand:i.createDataCommand(l,{requiredParameters:{brandID:true,page_id:true,access_type:true},optionalParameters:{add_current_users:true,permitted_roles:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID+'/pages';})}}),addAccountsToBrand:i.createDataCommand(l,{requiredParameters:{brandID:true,adaccount_id:true},optionalParameters:{add_current_users:true},constantParameters:{access_type:'OWNER',endpoint:new k(function(r){return '/'+r.brandID+'/adaccounts';})}}),createAdgroup:i.createDataCommand(l,{requiredParameters:{accountId:true,bid_type:true,campaign_id:true,max_bid:true,name:true},optionalParameters:{bid_info:true,conversion_specs:true,creative:true,targeting:true,tracking_pixel_ids:true,tracking_specs:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/adgroups';})}}),createCampaign:i.createDataCommand(l,{requiredParameters:{accountId:true,name:true},optionalParameters:{start_time:true,end_time:true,daily_budget:true,campaign_status:true,lifetime_budget:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/adcampaigns';})}}),createAdAccount:i.createDataCommand(l,{requiredParameters:{brandID:true,name:true,timezone_id:true,currency:true,end_advertiser:true,media_agency:true,partner:true},optionalParameters:{funding_id:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID+'/adaccount';})}}),addBrandToUser:i.createDataCommand(l,{requiredParameters:{name:true,timezone_id:true,primary_page:true},optionalParameters:{vertical_id:true,salesforce_id:true,sync_with_crm:true,add_primary_page_users:true},constantParameters:{endpoint:'/me/brands'}}),addSharedLoginToBrand:i.createDataCommand(l,{requiredParameters:{brandID:true,email:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID+'/add_shared_login';})}}),acceptAgencyAdAccountPermRequest:i.createDataCommand(l,{requiredParameters:{accountId:true,business:true,permitted_roles:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/agencies';})}}),acceptAgencyProductCatalogPermRequest:i.createDataCommand(l,{requiredParameters:{productCatalogId:true,business:true,permitted_roles:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new k(function(r){return '/'+r.productCatalogId+'/agencies';})}}),acceptAgencyPagePermRequest:i.createDataCommand(l,{requiredParameters:{pageId:true,business:true,permitted_roles:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new k(function(r){return '/'+r.pageId+'/agencies';})}}),updateBrandUserPermission:i.createDataCommand(l,{requiredParameters:{brandID:true},optionalParameters:{user:true,email:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID+'/userpermissions';})}}),createLabelForBrand:i.createDataCommand(l,{requiredParameters:{brandID:true,name:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID+'/businesslabels';})}}),createSystemUserForBrand:i.createDataCommand(l,{requiredParameters:{brandID:true,name:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID+'/system_users';})}}),installAppForSystemUser:i.createDataCommand(l,{requiredParameters:{systemUserID:true,business_app:true},constantParameters:{endpoint:new k(function(r){return '/'+r.systemUserID+'/applications';})}}),generateTokenForSystemUser:i.createDataCommand(l,{requiredParameters:{systemUserID:true,business_app:true,scope:true,appsecret_proof:true},constantParameters:{endpoint:new k(function(r){return '/'+r.systemUserID+'/ads_access_token';})}}),acceptCustomAudiencesTos:i.createDataCommand(l,{requiredParameters:{accountId:true,tos_id:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/customaudiencestos';})}}),accountsForAudience:i.createDataCommand(l,{requiredParameters:{audienceId:true,adaccounts:true},constantParameters:{endpoint:new k(function(r){return '/'+r.audienceId+'/adaccounts';})}}),createNewSavedTargetSpec:i.createDataCommand(l,{requiredParameters:{accountId:true,targeting_spec:true,name:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/audiences';})}})};f.remove={objectByFBID:i.createDataCommand(m,{requiredParameters:{fbid:true},optionalParameters:{fields:true},constantParameters:{endpoint:new k(function(r){return '/'+r.fbid;})}}),audience:i.createDataCommand(m,{requiredParameters:{audienceId:true},constantParameters:{endpoint:new k(function(r){return '/'+r.audienceId;})}}),brand:i.createDataCommand(m,{requiredParameters:{brandID:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID;})}}),removeAudienceCapabilities:i.createDataCommand(m,{requiredParameters:{audienceID:true,adaccounts:true},constantParameters:{endpoint:new k(function(r){return '/'+r.audienceID+'/capabilities';})}}),removeAccountPermission:i.createDataCommand(m,{requiredParameters:{business:true,accountId:true},optionalParameters:{user:true,email:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/userpermissions';})}}),adAccountFromGroup:i.createDataCommand(m,{requiredParameters:{accountId:true,accountGroupId:true},constantParameters:{endpoint:new k(function(r){return r.accountGroupId+'/adaccounts/'+r.accountId;})}}),removeProductCatalogPermission:i.createDataCommand(m,{requiredParameters:{business:true,productCatalogId:true},optionalParameters:{user:true,email:true},constantParameters:{endpoint:new k(function(r){return r.productCatalogId+'/userpermissions';})}}),removePagePermission:i.createDataCommand(m,{requiredParameters:{business:true,pageId:true},optionalParameters:{user:true,email:true},constantParameters:{endpoint:new k(function(r){return '/'+r.pageId+'/userpermissions';})}}),removeAppPermission:i.createDataCommand(m,{requiredParameters:{business:true,appId:true},optionalParameters:{user:true,email:true},constantParameters:{endpoint:new k(function(r){return '/'+r.appId+'/userpermissions';})}}),removeAgencyPagePermission:i.createDataCommand(m,{requiredParameters:{pageId:true,business:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new k(function(r){return '/'+r.pageId+'/agencies';})}}),removeAgencyProductCatalogPermission:i.createDataCommand(m,{requiredParameters:{productCatalogId:true,business:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new k(function(r){return '/'+r.productCatalogId+'/agencies';})}}),removeAgencyAdAccountPermission:i.createDataCommand(m,{requiredParameters:{accountId:true,business:true},optionalParameters:{acting_brand_id:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/agencies';})}}),removeClient:i.createDataCommand(m,{requiredParameters:{brandId:true,business:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandId+'/clients';})}}),removeAgency:i.createDataCommand(m,{requiredParameters:{brandId:true,business:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandId+'/agencies';})}}),removeBrandUserPermission:i.createDataCommand(m,{requiredParameters:{brandID:true},optionalParameters:{user:true,email:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID+'/userpermissions';})}}),removeBusinessFromUser:i.createDataCommand(m,{requiredParameters:{userID:true,business:true},constantParameters:{endpoint:new k(function(r){return '/'+r.userID+'/businesses';})}}),removePageFromLabel:i.createDataCommand(m,{requiredParameters:{label_id:true,page_id:true},constantParameters:{endpoint:new k(function(r){return '/'+r.label_id+'/pages';})}}),removeAdAccountFromLabel:i.createDataCommand(m,{requiredParameters:{label_id:true,adaccount_id:true},constantParameters:{endpoint:new k(function(r){return '/'+r.label_id+'/adaccounts';})}}),reportSpecs:i.createDataCommand(m,{requiredParameters:{reportSpecId:true},constantParameters:{endpoint:new k(function(r){return '/'+r.reportSpecId;})}}),reportAsyncRun:i.createDataCommand(m,{requiredParameters:{reportRunId:true},constantParameters:{endpoint:new k(function(r){return '/'+r.reportRunId;})}}),completedReportAsyncRuns:i.createDataCommand(m,{requiredParameters:{accountId:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId+'/adreportruns';})}}),scheduledReport:i.createDataCommand(m,{requiredParameters:{scheduledReportId:true},constantParameters:{endpoint:new k(function(r){var s=r.scheduledReportId;delete r.scheduledReportId;return '/'+s;})}}),accountsForBrand:i.createDataCommand(m,{requiredParameters:{brandID:true,adaccount_id:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID+'/adaccounts';})}}),appsForBrand:i.createDataCommand(m,{requiredParameters:{app_id:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID+'/apps';})}}),systemUsersForBrand:i.createDataCommand(m,{requiredParameters:{id:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID+'/apps';})}}),pagesForBrand:i.createDataCommand(m,{requiredParameters:{brandID:true,page_id:true},constantParameters:{endpoint:new k(function(r){return '/'+r.brandID+'/pages';})}}),productCatalog:i.createDataCommand(m,{requiredParameters:{productCatalogID:true},constantParameters:{endpoint:new k(function(r){return '/'+r.productCatalogID;})}}),label:i.createDataCommand(m,{requiredParameters:{labelID:true},constantParameters:{endpoint:new k(function(r){return '/'+r.labelID;})}}),accountsForAudience:i.createDataCommand(m,{requiredParameters:{audienceId:true,adaccounts:true},constantParameters:{endpoint:new k(function(r){return '/'+r.audienceId+'/adaccounts';})}})};f.mutate={brandPersona:i.createDataCommand(l,{requiredParameters:{personaId:true},optionalParameters:{first_name:true,last_name:true,email:true},constantParameters:{endpoint:new k(function(r){return '/'+r.personaId;})}}),customAudience:i.createDataCommand(l,{requiredParameters:{id:true},optionalParameters:{name:true,description:true,rule:true,opt_out_link:true},constantParameters:{endpoint:new k(function(r){var s='/'+r.id;delete r.id;return s;})}}),reportSpecs:i.createDataCommand(l,{requiredParameters:{id:true},optionalParameters:{data_columns:true,export_columns:true,date_preset:true,filters:true,time_increment:true,sort_by:true,sort_dir:true,time_interval:true},constantParameters:{endpoint:new k(function(r){var s='/'+r.id;delete r.id;return s;})}}),reportStatsForAccountAsync:i.createDataCommand(l,{requiredParameters:{accountId:true,data_columns:true},optionalParameters:{time_increment:true,date_preset:true,time_interval:true,sort_by:true,sort_dir:true,offset:true,limit:true,actions_group_by:true,filters:true,user_report:true,business_id:true},constantParameters:{async:true,endpoint:new k(function(r){return '/act_'+r.accountId+'/reportstats';}),business_id:(h.getBusinessID()||null)}}),updateAsyncReport:i.createDataCommand(l,{requiredParameters:{reportRunId:true},optionalParameters:{emails:true,is_bookmarked:true},constantParameters:{endpoint:new k(function(r){var s=r.reportRunId;delete r.reportRunId;return '/'+s;})}}),updateAccount:i.createDataCommand(l,{requiredParameters:{accountId:true},optionalParameters:{timezone_id:true,currency:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountId;})}}),scheduledReport:i.createDataCommand(l,{requiredParameters:{scheduledReportId:true,name:true,schedule_frequency:true,status:true,emails:true},optionalParameters:{actions_group_by:true,data_columns:true,date_preset:true,filters:true,time_increment:true,sort_by:true,sort_dir:true,time_interval:true,report_spec_id:true,start_date:true},constantParameters:{endpoint:new k(function(r){var s=r.scheduledReportId;delete r.scheduledReportId;return '/'+s;})}}),sharedAccountsForAudience:i.createDataCommand(l,{requiredParameters:{audienceID:true,adaccounts:true},constantParameters:{endpoint:new k(function(r){return '/'+r.audienceID+'/adaccounts';}),replace:true}}),updateCapabilitiesForAudience:i.createDataCommand(l,{requiredParameters:{audienceID:true,accounts_capabilities:true},constantParameters:{endpoint:new k(function(r){return '/'+r.audienceID+'/capabilities';})}}),savedTargetSpec:i.createDataCommand(l,{requiredParameters:{audienceId:true},optionalParameters:{name:true,targeting:true},constantParameters:{endpoint:new k(function(r){var s='/'+r.audienceId;return s;})}}),createDraft:i.createDataCommand(l,{requiredParameters:{accountID:true,name:true},constantParameters:{endpoint:new k(function(r){return '/act_'+r.accountID+'/addrafts';})}})};for(var p in o){var q=o[p];if(q)q.commandName='add_'+p;}f.add=o;},null); __d("AdsDaoGraphDataDownloadProvider",["bolt/core","bolt/util","AdsDaoGraphSpec","AdsDao","ads-lib-connect"],function(a,b,c,d,e,f,g,h,i,j){var k=b('ads-lib-connect').FB,l=h.extend({},i,{extend:j.DataDownloadProvider,downloadData:function(n,o){var p=n.target_window||"_blank";delete n.target_window;var q={};h.extend(q,n);var r=q.endpoint;delete q.endpoint;var s=q.access_token;delete q.access_token;var t=k.url(r,q,s);window.open(t,p);o&&o(true);},processData:function(n){return n;}}),m=g.createClass(l);e.exports=m;},null); __d("adsDaoGraphDownload",["copyProperties","adsDaoUtils","AdsDaoGraphDataDownloadProvider","adsDaoGraphFetch"],function(a,b,c,d,e,f,g,h,i){var j=b('adsDaoGraphFetch').fetch,k={reportStatsForAccount:h.createDataCommand(i,{requiredParameters:g({format:true},(j.reportStatsForAccount&&j.reportStatsForAccount.requiredParameters)),optionalParameters:(j.reportStatsForAccount&&j.reportStatsForAccount.optionalParameters),constantParameters:(j.reportStatsForAccount&&j.reportStatsForAccount.constantParameters)})};for(var l in k){var m=k[l];if(m)m.commandName='download_'+l;}f.download=k;},null); __d("AdsDaoGraph",["adsDaoGraphPrimed","adsDaoGraphMutate","adsDaoGraphDownload","adsDaoGraphFetch"],function(a,b,c,d,e,f,g,h,i,j){var k={fetch:j.fetch,add:h.add,remove:h.remove,mutate:h.mutate,download:i.download,primedForAccount:g.forAccount,primedForLocale:g.forLocale,primedForBrand:g.forBrand,primedForGeoLocation:g.forGeoLocation};e.exports=k;},null); __d("AdImageSpecsUtils",["adsGKCheck","AdImageSpecs"],function(a,b,c,d,e,f,g,h){var i={getImageSpecKey:function(j){for(var k in h)if(h[k]===j)return k;return null;},getImageSpecsForAdType:function(j,k){var l=[];Object.keys(h).forEach(function(m){var n=h[m].supportedTypes||[];if(n.indexOf(j)>=0){var o=true;if(h[m].gkSucceeds){o=g(h[m].gkSucceeds);}else if(h[m].gkFails)o=!g(h[m].gkFails);o&&l.push(h[m]);}});if(k)return l.filter(function(m){return k.indexOf(m.placement)>=0;});return l;},getCropImageSpecsForAdType:function(j,k){var l=[],m=i.getImageSpecsForAdType(j,k);return m.sort(function(n,o){return o.width-n.width;}).filter(function(n){if(!n.cropKey||l.indexOf(n.cropKey)!==-1)return false;l.push(n.cropKey);return true;});},getImageSpecForAdType:function(j,k){var l=i.getImageSpecsForAdType(j);for(var m=0;m=p.minWarningWidth&&o.getHeight()>=p.minWarningHeight);},isRecommendedSize:function(o,p){return (o.getHeight()>=p.height&&o.getWidth()>=p.width);},isLargeSize:function(o,p){return (n.isRecommendedSize(o,p)||(o.getWidth()>=p.minLargeWidth&&o.getHeight()>=p.minLargeHeight));},isSmallSize:function(o,p){return (n.isLargeSize(o,p)||n.isWarningSize(o,p));},isWithinSizeTolerance:function(o,p){var q=p.dimensionTolerance,r=Math.abs(p.height-o.getHeight())=0&&r<=i.ALL;}function o(r){g(m(r));}function p(r){g(n(r));}var q={views:i,isValidView:m,isValidViewBitmask:n,assertIsValidView:o,assertIsValidViewBitmask:p};e.exports=q;},null); __d("AdsImageCollection",["AdsImageCollectionViews","ArbiterMixin","copyProperties","invariant","mixin"],function(a,b,c,d,e,f,g,h,i,j,k){var l=k(h);for(var m in l)if(l.hasOwnProperty(m))o[m]=l[m];var n=l===null?null:l.prototype;o.prototype=Object.create(n);o.prototype.constructor=o;o.__superConstructor__=l;function o(p){"use strict";p=i({maxSelectedImages:1},p);this.$AdsImageCollection0=p.maxSelectedImages;j(this.$AdsImageCollection0%1===0);this.$AdsImageCollection1();}o.prototype.$AdsImageCollection1=function(){"use strict";this.$AdsImageCollection2=[];this.$AdsImageCollection3={};this.$AdsImageCollection4=[];};o.prototype.addImagesToFront=function(p,q){"use strict";this.$AdsImageCollection5(p);this.$AdsImageCollection6(p,0,q);};o.prototype.addImagesToBack=function(p,q){"use strict";this.$AdsImageCollection5(p);this.addImagesToBack_UNSAFE(p,q);};o.prototype.addImagesToBack_UNSAFE=function(p,q){"use strict";this.$AdsImageCollection6(p,this.$AdsImageCollection2.length,q);};o.prototype.$AdsImageCollection6=function(p,q,r){"use strict";g.assertIsValidView(r);var s=p.filter(function(t){var u=this.$AdsImageCollection3[t.getUniqueIdentifier()];if(u){u.view=r;return false;}else{this.$AdsImageCollection3[t.getUniqueIdentifier()]={selected:false,view:r,image:t};return true;}},this);Array.prototype.splice.apply(this.$AdsImageCollection2,[q,0].concat(s));this.inform('onChange');};o.prototype.$AdsImageCollection5=function(p){"use strict";p.forEach(function(q){var r=this.$AdsImageCollection3[q.getUniqueIdentifier()];if(r)j(0===(r.view&g.views.ALL));}.bind(this));};o.prototype.isImageSelected=function(p){"use strict";return !!this.$AdsImageCollection3[p.getUniqueIdentifier()].selected;};o.prototype.toggleImageSelected=function(p){"use strict";var q=!this.isImageSelected(p);this.setImageSelected(p,q);return q;};o.prototype.setImageSelected=function(p,q){"use strict";var r=this.$AdsImageCollection7(p,q);r&&this.inform('onChange');};o.prototype.setImagesSelected=function(p,q){"use strict";var r;for(var s=0,t=p.length;s0)while(this.getSelectedImageCount()>this.$AdsImageCollection0){var r=this.$AdsImageCollection4.shift();this.$AdsImageCollection3[r.getUniqueIdentifier()].selected=false;}return true;};o.prototype.deselectAllImages=function(){"use strict";if(!this.hasSelectedImages())return;this.getSelectedImages().forEach(function(p){this.$AdsImageCollection3[p.getUniqueIdentifier()].selected=false;},this);this.$AdsImageCollection4=[];this.inform('onChange');};o.prototype.clearImagesByViewBitmask=function(p){"use strict";g.assertIsValidViewBitmask(p);var q=false;this.$AdsImageCollection2=this.$AdsImageCollection2.filter(function(r){var s=0!==(p&this.$AdsImageCollection3[r.getUniqueIdentifier()].view);if(s){q=true;if(this.isImageSelected(r)){this.$AdsImageCollection3[r.getUniqueIdentifier()].view=g.views.INVISIBLE;s=false;}else delete this.$AdsImageCollection3[r.getUniqueIdentifier()];}return !s;},this);if(q)this.inform('onChange');};o.prototype.hasImage=function(p){"use strict";return this.$AdsImageCollection3[p.getUniqueIdentifier()]!==undefined;};o.prototype.assertHasImage=function(p){"use strict";j(this.hasImage(p));};o.prototype.getSelectedImages=function(){"use strict";return this.$AdsImageCollection4.slice(0);};o.prototype.getSelectedImageCount=function(){"use strict";return this.$AdsImageCollection4.length;};o.prototype.hasSelectedImages=function(){"use strict";return this.getSelectedImageCount()!==0;};o.prototype.canSelectImages=function(){"use strict";return !this.allowsMultiImageSelection()||this.getSelectedImageCount()m){q(s);return;}var x=g.getDao();function y(z){if(!z||!z.length){q(s);return;}u.push.apply(u,n(z));j.handleUpdateFromServerResponse({actionType:h.PAGE_POSTS_LOADED,apiData:u,requestId:s});this.fetchPagePosts(s,t,u,v+1);}x.fetch.pagePromotablePostsForConnectionObject.one(y.bind(this),{objectId:t,until:w?u[w-1].updated_time:null,handleError:q.bind(s),fields:['message','picture','full_picture','link','name','description','type','is_published','comments.summary(true)','icon','is_popular','likes.summary(true)','object_id','scheduled_publish_time','shares','story','updated_time']});},fetchPostLinkData:function(s,t,u){var v=t&&t.type,w=null;if(v=='link'){w=t.link;}else if(['photo'].indexOf(v)!==-1)w=o(t.message);if(!w){u&&u(null);return;}var x=g.getDao();function y(){p(s,null);u&&u(null);}function z(aa){var ba=null,ca=aa&&aa[0];if(ca&&ca.id&&ca.type)ba=ca;p(s,ba);u&&u(ba);}x.fetch.adsDestinationInfo.one(z,{object_url:w,handleError:y});},fetchDestinationDetails:function(s,t){var u;if(t===i.PLACE||t===i.PAGE)u=['can_post','is_published','location'];var v=function(y){j.handleUpdateFromServerResponse({actionType:h.DESTINATION_DETAILS_LOADED,details:y});},w={fbid:s};if(u)w.fields=u;var x=g.getDao();x.fetch.objectByFBID.one(v,w);}};e.exports=r;},null); __d("AdsModelAdapterMixin",["bolt/util","AdsUtils","mergeInto","bolt/mixins/events","bolt/model"],function(a,b,c,d,e,f,g,h,i){var j=b('bolt/mixins/events').Events,k=b('bolt/model').Model,l={isModelAdapter:true,isBaseProperty:function(m){return g.getter(m) in this;},getSafe:function(m){return this[g.getter(m)]();},setSafe:function(m,n,o){return this[g.setter(m)](n,o);},get:function(m){return this.getSafe(m);},set:function(m,n){return this.setSafe(m,n,false);},unset:function(m,n){this.setSafe(m,null,n);},merge:function(m,n){m=m instanceof k?m._properties:m;for(var o in m)if(typeof m[o]!=='function')this.setSafe(o,m[o],n);},invokeChanged:function(m){this.invoke('changed',{model:this,changedProperties:m});},_getApiSpecForFields:function(m){var n={};for(var o=0;o1;}function w(ma){var na=da(ma);return Object.keys(na).some(function(oa){return x(ma,oa);});}function x(ma,na){return ga(ma,na)===s.ENABLED;}function y(ma){return (!x(ma,r.NEWS_FEED)&&!x(ma,r.MOBILE_NEWS_FEED));}function z(ma,na,oa){var pa={};if(o('ads_interfaces_rhc_redesign')&&na===h.POST_ENGAGEMENT&&ca(ma,r.RHC)){pa[r.RHC]=true;}else if(ka()&&ca(ma,r.MOBILE_NEWS_FEED))pa[r.MOBILE_NEWS_FEED]=true;return !!pa[oa];}function aa(){return [r.NEWS_FEED,r.MOBILE_NEWS_FEED,r.RHC,r.FAN];}function ba(ma){return aa().filter(function(na){return ca(ma,na);});}function ca(ma,na){var oa=ga(ma,na);return oa!==s.NOT_SUPPORTED;}function da(ma){var na=ma.placements;if(!na){na={};Object.keys(r).forEach(function(oa){na[oa]=ga(ma,oa);});}return na;}function ea(ma,na){var oa=false;for(var pa in r)if(pa!==na&&la.isPlacementEnabled(ma,pa)){if(pa===r.FAN){oa=true;continue;}return q.NONE;}return oa?q.ONLY_PLACEMENT_EXCEPT_FAN:q.ONLY_PLACEMENT;}function fa(ma,na){switch(ma.creativeType){case n.INLINE_RSVP:case n.PLATFORM_CONTEXT:return na===r.RHC;case n.CONTEXTUAL_APP_AD:if(ma.mobileStore===i.MOBILE_STORE.FB_CANVAS){return na===r.RHC||na===r.NEWS_FEED;}else if(la.isThirdPartyMobileAppPlacementEnabled())return na===r.MOBILE_NEWS_FEED||na===r.FAN;return na===r.MOBILE_NEWS_FEED;case t.NEKO_LPP:if(ma.platform===u.DESKTOP_CANVAS){var oa=ma.callToActionType||'';if(oa===j.TYPES.BUY_NOW.name||oa===j.TYPES.GET_OFFER.name)return na===r.NEWS_FEED;return na===r.RHC||na===r.NEWS_FEED;}else if(la.isThirdPartyMobileAppPlacementEnabled())return na===r.MOBILE_NEWS_FEED||na===r.FAN;return na===r.MOBILE_NEWS_FEED;case t.AD_VIDEO:return (na===r.NEWS_FEED||na===r.MOBILE_NEWS_FEED);default:if(ja())return na!==r.FAN;return na!==r.MOBILE_NEWS_FEED&&na!==r.FAN;}}function ga(ma,na){p(na in r);var oa=ma.placements||{},pa=oa[na];if(!fa(ma,na)){pa=s.NOT_SUPPORTED;}else if(pa){return pa;}else if(na===r.FAN&&ha()){pa=s.DISABLED;}else pa=s.ENABLED;return pa;}function ha(){return k.hasAccountCapability(g.FAN_PLACEMENT_NON_DEFAULT);}function ia(){return (o('neko_mobile_external_page_type')||k.hasAccountCapability(g.CAN_USE_MOBILE_EXTERNAL_PAGE_TYPE));}function ja(){return o('ads_cf_mobile_previews');}function ka(){if(!o('ads_cf_mbasic_default'))return false;var ma=m.getExperiment('ads_cf_mbasic_default');ma.logExposure();return !!ma.getParam('show');}var la={canDisable:ea,getDefaultPlacementOrder:aa,getPlacementsState:da,getSupportedPlacements:ba,hasEnabledPlacement:w,hasMultiplePlacements:v,isMBasicDefaultExperimentEnabled:ka,isMobileExperimentEnabled:ja,isNewsFeedDisabled:y,isPlacementEnabled:x,isPlacementInitiallyExpanded:z,isPlacementSupported:ca,isThirdPartyMobileAppPlacementEnabled:ia};e.exports=la;},null); __d("AdsCFDateUtils",[],function(a,b,c,d,e,f){var g={parseISODate:function(h){var i=h.split('T'),j=i[0].split('-'),k=j[0],l=j[1]-1,m=j[2],n=i[1].split(':'),o=parseInt(n[0],10),p=parseInt(n[1],10),q=n[2],r,s,t,u,v;if(n.length===4)v=n[3];var w=false,x=[/\+/,/\-/,/Z/];x.forEach(function(z,aa){if(q.match(z)){r=q.split(z);w=aa===1;s=parseInt(r[0],10);t=r[1];}});if(!t){u=0;v=0;}else{u=t.slice(0,2);if(!v)v=t.slice(-2);}if(w){u=u*-1;v=v*-1;}var y=new Date(Date.UTC(k,l,m,o,p,s));y.setUTCHours(y.getUTCHours()-parseInt(u,10));y.setUTCMinutes(y.getUTCMinutes()-parseInt(v,10));return y;}};e.exports=g;},null); __d("AdsCreativeUtils",["AdsAPIObjectives","AdsCFDateUtils","AdsCreateFlowConfig","AdsDestinationTypes","AdsImage","ads-lib-formatters","PagePostTypes","ads-lib-pagePostUtils","URI","adsGKCheck","areEqual","keyMirror","merge","bolt/util","tx","AdCreativeType"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){var v=b('AdCreativeType').keyToType,w=3;function x(na,oa){return q(na,oa);}function y(na){na=z(na).concat(na);var oa={};return na.filter(function(pa){if(!pa.is_published&&!pa.scheduled_publish_time)return false;if(pa.type===m.STATUS&&!pa.message)return false;if(oa[pa.id])return false;oa[pa.id]=true;return true;});}function z(na){var oa=[];for(var pa=0;pa=va;}function ab(){ta=false;ua=[];va=va+1||0;if(na===r.PLACE||na===r.PAGE)if(sa===t.KPIObjectives.LOCAL_AWARENESS){m.fetchDestinationDetails(ma,na);}else m.fetchPagePosts(va,ma);}function bb(fb,gb,hb,ib){var jb=j.getAccountID(),kb=o.getInstanceForAccount(jb),lb=function(ob,pb,qb){s.handleUpdateFromViewAction({actionType:k.DESTINATION_FETCH_ERROR,entityID:qb.object_id,entityURL:qb.object_url});};if(ib&&(ib.type===r.EXTERNAL_WEBPAGE))fb=null;var mb=ea(hb,{account_id:jb,handleError:lb});if(fb){mb.object_id=fb;}else if(!gb||!gb.length){qa={entityID:l.ErrorEntityID,searchableEntry:ib};return;}else if(da(gb)){mb.object_id=gb.replace(/^0+/,'');}else if(fa.isUrlSimple(gb))mb.object_url=fa.normalize(gb);var nb=function(ob){var pb=ob&&ob.length&&ob[0];if(!pb||!pb.id){qa=wa;wa={};eb.inform('change');return;}var qb=p.convertAPIDataToFields(pb);if(!eb.hasPendingEntity())return;var rb;if(wa.entityID)rb=!((wa.entityID===qb.destinationId)||(wa.entityID===qb.storyId));var sb=wa.entityURL&&wa.entityURL!==qb.originalObjectUrl;if(rb||sb)return;var tb=qb.destinationType,ub=qb.destinationId;delete qb.destinationType;delete qb.destinationId;s.handleUpdateFromViewAction({actionType:k.DESTINATION_CHANGE,destinationType:tb,destinationID:ub,destinationDetails:qb,destSource:ra?l.DestinationSelectionSource.SINGLE_OBJECT_PREFILL:l.DestinationSelectionSource.USER_SELECTED});};wa={entityID:mb.object_id,entityURL:mb.object_url,searchableEntry:ib};kb.fetch.adsDestinationInfo.one(nb,mb);}function cb(fb){n.log('mobile_optimized_url_check',{url:fb});var gb=new aa().setString('url',fb).getURI();new w().setURI(gb).setHandler(function(hb){var ib=z(hb.payload.url).toString(),jb=wa?z(wa.entityURL).toString():'',kb=la?z(la.originalObjectUrl).toString():'';if(jb===ib||kb===ib){var lb=hb.payload.is_mobile_optimized;s.handleUpdateFromServerResponse({actionType:k.MOBILE_OPTIMIZED_URL_CHECK_SUCCESS,url:ib,isMobileOptimized:lb});}}).setErrorHandler(function(hb){s.handleUpdateFromServerResponse({actionType:k.MOBILE_OPTIMIZED_URL_CHECK_FAIL,url:fb,errorType:'server_error',error:hb.error});}).setTimeoutHandler(ia,function(hb){s.handleUpdateFromServerResponse({url:fb,actionType:k.MOBILE_OPTIMIZED_URL_CHECK_FAIL,errorType:'request_timeout',error:hb.error});}).send();}function db(){var fb=j.getAccountID(),gb=o.getInstanceForAccount(fb);gb.fetch.connectionObjectsForAccount.one(function(hb){var ib=hb.data.filter(function(lb){var mb=ga[lb.type];return mb&&mb.indexOf(sa)>-1;}),jb=ib[0];if(ib.length===1){var kb=new y({uniqueID:jb.id,title:jb.name,photo:jb.picture,subtitle:jb.category});kb.id=jb.id;s.handleUpdateFromServerResponse({actionType:k.KPI_DESTINATION_SELECT,destinationEntry:kb,source:ha});}});}var eb=ca(new v(),{hasLoadedInitialDestinationDetails:function(){return xa;},getCachedPostLinkData:function(fb){return fb?ka[fb]:null;},getDestinationDetails:function(){return la;},getDestinationID:function(){return ma;},getDestinationType:function(){if((sa===t.KPIObjectives.WEBSITE_CLICKS||sa===t.KPIObjectives.WEBSITE_CONVERSIONS)&&(la.originalObjectUrl||la.destinationUrl))return r.EXTERNAL_WEBPAGE;return na;},getDestinationTypeIgnoringKPI:function(){return na;},getHasDesktopCanvas:function(){var fb=this.getDestinationDetails().appPlatforms;return i.supportsDesktop(fb);},getHasLoadCompleted:function(){return ta;},getHasNativeMobileApp:function(){var fb=this.getDestinationDetails().appPlatforms;return i.supportsNativeMobile(fb);},getIsDestinationAppStoreMedia:function(){return (this.getDestinationDetails().isAppStoreMedia&&ba('neko_media_ads_cf'));},getIsObjectiveAppStoreMedia:function(fb){return (this.getIsDestinationAppStoreMedia()&&fb===h.WEBSITE_CLICKS);},getPagePostDetails:function(fb){var gb;for(var hb=0;hb0;},isInvalidDestinationInput:function(){return (qa&&qa.entityID===l.ErrorEntityID);},isSingleObjectPrefill:function(){return ra;},isMobilePlatformOnlyApp:function(){if(na!==r.APP)return false;return (this.getHasNativeMobileApp()&&!this.getHasDesktopCanvas());},isMultiPlatformApp:function(){if(na!==r.APP)return false;return (this.getHasNativeMobileApp()&&this.getHasDesktopCanvas());},dispatchToken:s.register(function(fb){eb.onDispatchToken(fb);}),onDispatchToken:function(fb){var gb=fb.action;switch(gb.actionType){case k.DESTINATION_FETCH_ERROR:if(gb.entityID===wa.entityID||gb.entityURL===wa.entityURL){qa=wa;wa={};eb.inform('change');}break;case k.DESTINATION_SELECT:case k.KPI_DESTINATION_SELECT:var hb,ib;if(gb.actionType===k.KPI_DESTINATION_SELECT){hb=gb.destinationEntry.id;ib=gb.destinationEntry.getTitle();ra=(gb.source===ha);}else{hb=gb.entityID;ib=gb.typeaheadInput;}bb(hb,ib,gb.queryParams,gb.destinationEntry);if(ib&&j.isLikelyOnlineSales()&&(sa===t.KPIObjectives.WEBSITE_CLICKS||sa===t.KPIObjectives.WEBSITE_CONVERSIONS)){ja.logExposure();if(ja.getParamBool('do_mobile_check'))cb(ib);}eb.inform('change');break;case k.DESTINATION_CHANGE:xa=true;var jb=gb.destinationID!==ma||gb.destinationType!==na;if(gb.destinationID){ma=gb.destinationID;wa={};}if(gb.destinationType)na=gb.destinationType;if(gb.destinationDetails)ca(la,gb.destinationDetails);oa=!sa;jb&&ab();eb.inform('change');break;case k.NEW_PAGE_DESTINATION_SELECT:bb(gb.pageInfo.id,null,null,null);break;case k.KPI_OBJECTIVE_CHANGE:if(gb.source===l.ObjectiveChangeSource.OBJECTIVE_SELECTOR&&!oa){ya();db();eb.inform('change');}sa=gb.kpiObjective;break;case k.OBJECTIVE_CHANGE:if(fb.payloadsource!==u.SERVER_RESPONSE)break;var kb=gb.objectiveType;if(eb.getIsObjectiveAppStoreMedia(kb)){sa=t.KPIObjectives.APP_STORE_MEDIA_VISITS;}else sa=t.APItoKPIObjectives[kb];if(eb.hasDestination())oa=!sa;break;case k.PAGE_POSTS_PUBLISHED:j.getDao().fetch.pagePromotablePostsForConnectionObject.clearCache();ta=false;ua=[];la.storyId='';m.fetchPagePosts(++va,ma);eb.inform('change');break;case k.PAGE_POSTS_LOADED:if(!za(gb))return;ua.push.apply(ua,gb.apiData);ua=b('AdsCreativeUtils').filterPagePosts(ua);eb.inform('change');break;case k.POST_LINK_DATA_LOADED:var lb=gb.data;if(!lb)break;ka[gb.storyId]={id:lb.id,type:lb.type,objective:lb.default_objective,url:lb.original_object_url};eb.inform('change');break;case k.PAGE_POSTS_LOAD_COMPLETE:if(!za(gb))return;ta=true;eb.inform('change');break;case g.PAGE_TRANSITION:xa=false;ya();break;case k.RESET_DESTINATION:var mb=sa;ya();sa=mb;eb.inform('change');break;case k.MOBILE_OPTIMIZED_CHECK_SUCCESS:pa=gb.isMobileOptimized;eb.inform('change_mobile_url_check');break;}}});e.exports=eb;},null); __d("AdsCFObjectiveUtils",["AdsAPIObjectives","AdsCFApplicationStore","AdsCFConstants","AdsCFDestinationStore","AdsCFDestinationUtils","AdsCreativeUtils","AdsDestinationTypes","ads-objectives","ApiCreativeTypes","OcpmAdConfig","AdsAPISpec"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=b('AdsAPISpec').BID_INFO_FIELDS,r=n.APIObjectivesWithRequiredStoryID;function s(aa,ba,ca){var da=ca.storyID,ea=ca.pagePosts,fa=ca.destinationType,ga=r.indexOf(aa)>-1,ha;if(ga){var ia=l.getPagePostFromStoryId(da,ea);ha=l.getIsPagePostExpiredOffer(ia);}var ja=ba.offerEligible,ka=k.isUnpublishedPage(fa,ba);return {isUnpublishedPage:ka,requiresStoryID:ga,storyID:da,offerEligible:ja,offerExpired:ha,noPosts:!ea.length};}function t(aa,ba,ca,da,ea){if(h.getDataState()!==i.DataStates.SUCCESS)return false;var fa=s(aa,da,ea);if(!ba||!ca||fa.isUnpublishedPage||da.isBlackholed||(fa.requiresStoryID&&(!fa.storyID||fa.offerExpired||fa.noPosts))||(aa===g.MOBILE_APP_ENGAGEMENT&&!da.isAdmin)||(aa===g.OFFER_CLAIMS&&!fa.offerEligible)||(!da.isAdmin&&(aa===g.PAGE_LIKES||aa===g.EVENT_RESPONSES||aa===g.LOCAL_AWARENESS)))return false;return true;}function u(aa,ba,ca,da,ea,fa){if(h.getDataState()===i.DataStates.FAILURE)return true;var ga=s(aa,ea,fa);if(!ca||!da||ga.isUnpublishedPage||ea.isBlackholed||(ga.requiresStoryID&&ga.offerExpired)||(aa===g.MOBILE_APP_ENGAGEMENT&&!ea.isAdmin)||(aa===g.OFFER_CLAIMS&&ba&&!ga.offerEligible))return true;return false;}function v(aa,ba,ca){var da={};if(aa===g.MOBILE_APP_INSTALLS&&ca){da[q.CLICKS]=ba*p.clicksMultiplier;}else if(aa===g.DEPRECATED_CLICKS){da[q.CLICKS]=ba*p.clicksMultiplier;}else da[q.ACTIONS]=ba;return da;}function w(aa){if(!aa)return null;var ba=null;if(aa instanceof Array){for(var ca=0;ca=0||mb.indexOf(j.EDUCATION_STATUSES.COLLEGE_GRAD)>=0);},getMaxGradYear:function(){return va('maxGradYear')||z.graduationYearBounds.maxGraduationYear;},getMinGradYear:function(){return va('minGradYear')||z.graduationYearBounds.minGraduationYear;},getMobileMinVersion:function(mb){var nb=x.operatingSystems,ob;if(mb===nb.IOS){ob=va('minIosVersion');}else if(mb===nb.ANDROID)ob=va('minAndroidVersion');return ob;}});e.exports=lb;},null); __d("AdsTargetingModelAdapter",["AdsDispatcher","AdsCFTargetingStore","AdsCreationConfig","AdsCFActionTypes","AdsModelAdapterMixin","AdsPayloadSource","ads-mobile-platforms","AdsAPISpec","merge","copyProperties"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=m.operatingSystems,r=false,s={};function t(aa,ba){return function(){var ca=h.getValue(aa);return ca===undefined?ba:ca;};}function u(aa){return h[aa];}function v(aa,ba){if(r){s=p(s,aa);return;}var ca=p({actionType:j.TARGETING_CHANGE},aa);if(!ba){g.handleUpdateFromUnknownSource(ca);}else g.handleUpdateFromViewAction(ca);}function w(aa){return function(ba,ca){var da={};da[aa]=ba;v(da,!!ca);};}function x(aa,ba){if(!aa)return ba;return ba.toLowerCase()+'_ver_'+aa+'_and_above';}function y(aa){return function(){var ba=Array.prototype.slice.apply(arguments);ba[1]=true;aa.apply(this,ba);};}var z=o(k,{initSubscriptions:function(aa){h.subscribe('change',function(ba,ca){this.invokeChanged({ageMax:this.getAgeMax(),ageMin:this.getAgeMin(),behaviors:this.getBehaviors(),cities:this.getCities(),connections:this.getConnections(),countries:this.getCountries(),countryHasCities:this.getCountryHasCities(),countryHasOptions:this.getCountryHasOptions(),countryHasRegions:this.getCountryHasOptions(),countryHasZips:this.getCountryHasZips(),friendsOfConnections:this.getFriendsOfConnections(),hasCollege:this.getHasCollege(),geoLocations:this.getGeoLocations(),excludedGeoLocations:this.getExcludedGeoLocations(),locTargeting:this.getLocTargeting(),loggedCities:this.getCities(),loggedConnections:this.getConnections(),loggedCountries:this.getCountries(),loggedExcludedConnections:this.getExcludedConnections(),loggedLocTargeting:this.getLocTargeting(),loggedFriendsOfConnections:this.getFriendsOfConnections(),loggedInterestedInSex:this.getInterestedInSex(),loggedLocales:this.getLocales(),loggedAgeMax:this.getAgeMax(),loggedAgeMin:this.getAgeMin(),loggedSex:this.getSex(),loggedCollegeNetworks:this.getCollegeNetworks(),loggedCollegeMajors:this.getCollegeMajors(),loggedEducationSchools:this.getEducationSchools(),loggedEducationMajors:this.getEducationMajors(),loggedMinGradYear:this.getMinGradYear(),loggedMaxGradYear:this.getMaxGradYear(),loggedWorkEmployers:this.getWorkEmployers(),loggedWorkNetworks:this.getWorkNetworks(),loggedRadius:this.getRadius(),loggedRegions:this.getRegions(),loggedZips:this.getZips(),radius:this.getRadius(),regions:this.getRegions(),mobileOperatingSystem:this.getMobileOperatingSystem(),targetAllGraduationYears:this.getTargetAllGraduationYears(),wifiOnly:this.getWifiOnly(),zips:this.getZips()});if(ca.payloadsource===l.VIEW_ACTION)for(var da in ca.changedProperties)if(ca.changedProperties.hasOwnProperty(da))this.invoke('changedByUser',da);}.bind(this));},getCities:function(){return this.getLocTargeting()==='cities'?h.getValue('cities'):[];},getCountries:t('countries',[]),getCountryHasCities:u('getCountryHasCities'),getCountryHasOptions:u('getCountryHasOptions'),getCountryHasRegions:u('getCountryHasRegions'),getCountryHasZips:u('getCountryHasZips'),getLocTargeting:u('getLocTargeting'),getRadius:function(){var aa=this.getRadiusIfValid();if(aa===undefined)aa=0;return this.getLocTargeting()==='cities'?aa:0;},getRadiusIfValid:t('radiusIfValid'),getRegions:function(){return this.getLocTargeting()==='regions'?h.getValue('regions'):[];},getSingleCountry:u('getSingleCountry'),getZips:function(){return this.getLocTargeting()==='zips'?h.getValue('zips'):[];},getAgeMinLimit:t('ageMinLimit',i.minAge),getAgeMax:function(){var aa=h.getValue('ageMax');if(!aa){return i.maxAge;}else return aa;},getAgeMin:function(){var aa=h.getValue('ageMin'),ba=0;if(!aa){ba=i.minAge;}else ba=aa;return Math.max(this.getAgeMinLimit(),ba);},getGenders:function(){var aa=this.getSex();return aa===n.GENDERS.ALL?[]:[aa];},getSex:t('sex',n.GENDERS.ALL),getInterests:t('interests'),getKeywords:t('keywords'),getUserAdclusters:t('userAdclusters'),getConjunctiveUserAdclusters:t('conjunctiveUserAdclusters'),getCustomAudiences:t('customAudiences'),getNonSyndicatedCustomAudiences:function(){var aa=this.getCustomAudiences()||[],ba=h.getSyndicatedCustomAudiencesMap(),ca=[];aa.forEach(function(da){if(!ba[da.id])ca.push(da);});return ca;},getSyndicatedCustomAudiences:function(){var aa=this.getCustomAudiences()||[],ba=h.getSyndicatedCustomAudiencesMap(),ca=[];aa.forEach(function(da){if(ba[da.id])ca.push(da);});return ca;},getSyndicatedCustomAudiencesLibrary:t('syndicatedCustomAudiencesLibrary'),getExcludedCustomAudiences:t('excludedCustomAudiences'),getConnections:t('connections'),getExcludedConnections:t('excludedConnections'),getFriendsOfConnections:t('friendsOfConnections'),getInterestedIn:function(){var aa=this.getInterestedInSex();return aa===n.GENDERS.ALL?[]:[aa];},getInterestedInSex:t('interestedInSex',n.GENDERS.ALL),getRelationshipStatuses:t('relationshipStatuses'),getFamilyStatuses:t('familyStatuses'),getIndustries:t('industries'),getLifeEvents:t('lifeEvents'),getMarkets:t('markets'),getPolitics:t('politics'),getIncome:t('income'),getNetWorth:t('netWorth'),getHomeType:t('homeType'),getHomeOwnership:t('homeOwnership'),getHomeValue:t('homeValue'),getEthnicAffinity:t('ethnicAffinity'),getGeneration:t('generation'),getHouseholdComposition:t('householdComposition'),getMoms:t('moms'),getOfficeType:t('officeType'),getLocales:t('locales'),getMinIosVersion:t('minIosVersion'),getMinAndroidVersion:t('minAndroidVersion'),getMobileDevices:t('mobileDevices',[]),getMobileMinVersion:u('getMobileMinVersion'),getMobileOperatingSystem:t('mobileOperatingSystem'),getUserOs:function(){var aa=this.getMobileOperatingSystem();if(!aa)return [];var ba;if(aa===q.IOS){ba=this.getMinIosVersion();}else if(aa===q.ANDROID)ba=this.getMinAndroidVersion();return [x(ba,aa)];},getUserDevice:function(){var aa=this.getMobileOperatingSystem(),ba=this.getMobileDevices();if(aa===q.IOS){return ba.filter(m.isIosDevice);}else if(aa===q.ANDROID)return ba.filter(m.isAndroidDevice);return [];},getWifiOnly:t('wifiOnly',false),getWirelessCarrier:function(){var aa=m.carriers;if(this.getWifiOnly())return [aa.WIFI];return [];},getCollegeMajors:function(){return h.getValue('collegeMajors')||[];},getCollegeNetworks:function(){return h.getValue('collegeNetworks')||[];},getEducationMajors:function(){return h.getValue('educationMajors')||[];},getEducationSchools:function(){return h.getValue('educationSchools')||[];},getCollegeYears:function(){if(this.getTargetAllGraduationYears())return [];var aa=this.getMinGradYear(),ba=this.getMaxGradYear(),ca=[];for(var da=aa;da<=ba;da++)ca.push(da);return ca;},getEducationStatuses:t('educationStatuses'),getHasCollege:u('getHasCollege'),getGeoLocations:t('geoLocations'),getExcludedGeoLocations:t('excludedGeoLocations'),getMaxGradYear:u('getMaxGradYear'),getMinGradYear:u('getMinGradYear'),getTargetAllGraduationYears:t('targetAllGraduationYears'),getWorkEmployers:function(){return h.getValue('workEmployers')||[];},getWorkNetworks:t('workNetworks'),getWorkPositions:t('workPositions'),getBehaviors:t('behaviors'),getExcludedUserAdclusters:t('excludedUserAdclusters'),getPageTypes:t('pageTypes'),setCities:function(aa,ba){aa=aa||[];aa.length&&this.setLocTargeting('cities');v({cities:aa},ba);},setCountries:w('countries'),setLocTargeting:w('locTargeting'),setGeoLocations:w('geoLocations'),setExcludedGeoLocations:w('excludedGeoLocations'),setRadius:w('radiusIfValid'),setRadiusIfValid:w('radiusIfValid'),setRegions:function(aa,ba){aa=aa||[];aa.length&&this.setLocTargeting('regions');v({regions:aa},ba);},setZips:function(aa,ba){aa=aa||[];aa.length&&this.setLocTargeting('zips');v({zips:aa},ba);},setAgeMax:w('ageMax'),setAgeMin:w('ageMin'),setAgeMinLimit:w('ageMinLimit'),setGenders:function(aa,ba){var ca=aa&&aa.length===1?aa[0]:n.GENDERS.ALL;v({sex:ca},ba);},setSex:w('sex'),setCustomAudiences:w('customAudiences'),setExcludedCustomAudiences:w('excludedCustomAudiences'),setKeywords:w('keywords'),setInterests:w('interests'),setNonSyndicatedCustomAudiences:function(aa,ba){var ca=aa.concat(this.getSyndicatedCustomAudiences());this.setCustomAudiences(ca,ba);},setSyndicatedCustomAudiences:function(aa){var ba=aa.concat(this.getNonSyndicatedCustomAudiences());this.setCustomAudiences(ba);},setSyndicatedCustomAudiencesLibrary:w('syndicatedCustomAudiencesLibrary'),setUserAdclusters:w('userAdclusters'),setConjunctiveUserAdclusters:w('conjunctiveUserAdclusters'),setConnections:w('connections'),setExcludedConnections:w('excludedConnections'),setFriendsOfConnections:function(aa,ba){aa=aa.filter(function(ca){return !!ca.name&&!!ca.id;});v({friendsOfConnections:aa},ba);},setInterestedIn:function(aa,ba){this.setInterestedInSex(aa&&aa.length===1?aa[0]:n.GENDERS.ALL,ba);},setInterestedInSex:w('interestedInSex'),setRelationshipStatuses:w('relationshipStatuses'),setFamilyStatuses:w('familyStatuses'),setIndustries:w('industries'),setLifeEvents:w('lifeEvents'),setMarkets:w('markets'),setPolitics:w('politics'),setIncome:w('income'),setNetWorth:w('netWorth'),setHomeType:w('homeType'),setHomeOwnership:w('homeOwnership'),setHomeValue:w('homeValue'),setEthnicAffinity:w('ethnicAffinity'),setGeneration:w('generation'),setHouseholdComposition:w('householdComposition'),setMoms:w('moms'),setOfficeType:w('officeType'),setLocales:w('locales'),setMobileOperatingSystem:w('mobileOperatingSystem'),setMobileDevices:w('mobileDevices'),setWifiOnly:w('wifiOnly'),setMinIosVersion:w('minIosVersion'),setMinAndroidVersion:w('minAndroidVersion'),setMobileMinVersion:function(aa,ba){if(aa===q.IOS){this.setMinIosVersion(ba);}else if(aa===q.ANDROID)this.setMinAndroidVersion(ba);},setWirelessCarrier:function(aa,ba){var ca=m.carriers;if(aa&&aa.length&&aa[0]===ca.WIFI){this.setWifiOnly(true,ba);}else this.setWifiOnly(false,ba);},setUserDevice:function(aa,ba){var ca=m.deviceTypes;if(!aa||!aa.length)aa=[ca.IPAD,ca.IPOD,ca.IPHONE];this.setMobileDevices(aa,ba);},setUserOs:function(aa,ba){aa=aa||[];v({userOs:aa});aa.forEach(function(ca){var da=null;if(ca.indexOf('_ver_')>=0){var ea=ca.split('_ver_')[1];da=ea.split('_')[0];}var fa=function(ga,ha){ga=ga.toLowerCase();return ga.indexOf(ha.toLowerCase())>=0;};if(fa(ca,q.IOS)){this.setMobileOperatingSystem(q.IOS,ba);this.setMinIosVersion(da,ba);}else if(fa(ca,q.ANDROID)){this.setMobileOperatingSystem(q.ANDROID,ba);this.setMinAndroidVersion(da,ba);}else this.setMobileOperatingSystem(null,ba);},this);},setEducationStatus:w('educationStatus'),setMinGradYear:w('minGradYear'),setMaxGradYear:w('maxGradYear'),setTargetAllGraduationYears:w('targetAllGraduationYears'),setCollegeMajors:w('collegeMajors'),setCollegeNetworks:w('collegeNetworks'),setEducationSchools:w('educationSchools'),setEducationMajors:w('educationMajors'),setCollegeYears:function(aa,ba){aa.sort(function(ca,da){return ca-da;});if(aa&&aa.length){this.setMinGradYear(aa[0],ba);this.setMaxGradYear(aa[aa.length-1],ba);this.setTargetAllGraduationYears(false,ba);}else this.setTargetAllGraduationYears(true,ba);},setEducationStatuses:w('educationStatuses'),setWorkEmployers:w('workEmployers'),setWorkNetworks:w('workNetworks'),setWorkPositions:w('workPositions'),setBehaviors:w('behaviors'),setExcludedUserAdclusters:w('excludedUserAdclusters'),setPageTypes:w('pageTypes'),getApiSpec:function(){var aa=this._getApiSpecForFields(n.TARGETING_FIELDS);aa.countries=[];aa.cities=[];aa.zips=[];aa.regions=[];aa.radius=undefined;aa.geo_locations=this._transformNewGeoAPISpec(aa.geo_locations||{});aa.excluded_geo_locations=this._transformNewGeoAPISpec(aa.excluded_geo_locations||{});return aa;},getGeoLocationsApiSpecMetaData:function(){var aa=this._getApiSpecForFields(n.TARGETING_FIELDS);return aa.geo_locations||{};},_transformNewGeoAPISpec:function(aa){var ba={countries:aa.countries||[],cities:(aa.cities||[]).map(function(ca){return {key:ca.key,radius:ca.radius,distance_unit:ca.distance_unit};}),regions:(aa.regions||[]).map(function(ca){return {key:ca.key};}),zips:(aa.zips||[]).map(function(ca){return {key:ca.key};})};if(aa.customLocations)ba.custom_locations=aa.customLocations.map(function(ca){return {address_string:ca.addressString,distance_unit:ca.distanceUnit,latitude:ca.latitude,longitude:ca.longitude,radius:ca.radius};});if(aa.locationTypes)ba.location_types=aa.locationTypes;return ba;},setApiSpec:function(aa){if(!aa.hasOwnProperty('relationship_statuses'))aa.relationship_statuses=null;r=true;this._setApiSpecForFields(n.TARGETING_FIELDS,aa);r=false;g.handleUpdateFromUnknownSource(p({actionType:j.TARGETING_CHANGE},s));s={};}});z=o(z,{getLoggedCountries:z.getCountries,getLoggedCities:z.getCities,getLoggedRegions:z.getRegions,getLoggedZips:z.getZips,getLoggedRadiusIfValid:z.getRadiusIfValid,getLoggedLocTargeting:z.getLocTargeting,getLoggedGeoLocations:z.getGeoLocations,getLoggedExcludedGeoLocations:z.getExcludedGeoLocations,getLoggedAgeMinLimit:z.getAgeMinLimit,getLoggedAgeMin:z.getAgeMin,getLoggedAgeMax:z.getAgeMax,getLoggedSex:z.getSex,getLoggedKeywords:z.getKeywords,getLoggedUserAdclusters:z.getUserAdclusters,getLoggedConjunctiveAdclusters:z.getConjunctiveUserAdclusters,getLoggedCustomAudiences:z.getCustomAudiences,getLoggedSyndicatedCustomAudiencesLibrary:z.getSyndicatedCustomAudiencesLibrary,getLoggedExcludedCustomAudiences:z.getExcludedCustomAudiences,getLoggedConnections:z.getConnections,getLoggedExcludedConnections:z.getExcludedConnections,getLoggedFriendsOfConnections:z.getFriendsOfConnections,getLoggedInterestedInSex:z.getInterestedInSex,getLoggedLocales:z.getLocales,getLoggedMobileOperatingSystem:z.getMobileOperatingSystem,getLoggedMobileDevices:z.getMobileDevices,getLoggedWifiOnly:z.getWifiOnly,getLoggedMinIosVersion:z.getMinIosVersion,getLoggedMinAndroidVersion:z.getMinAndroidVersion,getLoggedCollegeNetworks:z.getCollegeNetworks,getLoggedCollegeMajors:z.getCollegeMajors,getLoggedEducationSchools:z.getEducationSchools,getLoggedEducationMajors:z.getEducationMajors,getLoggedMinGradYear:z.getMinGradYear,getLoggedMaxGradYear:z.getMaxGradYear,getLoggedTargetAllGraduationYears:z.getTargetAllGraduationYears,getLoggedWorkEmployers:z.getWorkEmployers,getLoggedWorkNetworks:z.getWorkNetworks,getLoggedExcludedUserAdclusters:z.getExcludedUserAdclusters,getLoggedPageTypes:z.getPageTypes,setLoggedCountries:y(z.setCountries),setLoggedCities:y(z.setCities),setLoggedRegions:y(z.setRegions),setLoggedZips:y(z.setZips),setLoggedRadiusIfValid:y(z.setRadiusIfValid),setLoggedLocTargeting:y(z.setLocTargeting),setLoggedGeoLocations:y(z.setGeoLocations),setLoggedExcludedGeoLocations:y(z.setExcludedGeoLocations),setLoggedAgeMinLimit:y(z.setAgeMinLimit),setLoggedAgeMin:y(z.setAgeMin),setLoggedAgeMax:y(z.setAgeMax),setLoggedSex:y(z.setSex),setLoggedKeywords:y(z.setKeywords),setLoggedUserAdclusters:y(z.setUserAdclusters),setLoggedConjunctiveUserAdclusters:y(z.setConjunctiveUserAdclusters),setLoggedCustomAudiences:y(z.setCustomAudiences),setLoggedSyndicatedCustomAudiencesLibrary:y(z.setSyndicatedCustomAudiencesLibrary),setLoggedExcludedCustomAudiences:y(z.setExcludedCustomAudiences),setLoggedConnections:y(z.setConnections),setLoggedExcludedConnections:y(z.setExcludedConnections),setLoggedFriendsOfConnections:y(z.setFriendsOfConnections),setLoggedInterestedInSex:y(z.setInterestedInSex),setLoggedLocales:y(z.setLocales),setLoggedMobileOperatingSystem:y(z.setMobileOperatingSystem),setLoggedMobileDevices:y(z.setMobileDevices),setLoggedWifiOnly:y(z.setWifiOnly),setLoggedMinIosVersion:y(z.setMinIosVersion),setLoggedMinAndroidVersion:y(z.setMinAndroidVersion),setLoggedCollegeNetworks:y(z.setCollegeNetworks),setLoggedCollegeMajors:y(z.setCollegeMajors),setLoggedEducationSchools:y(z.setEducationSchools),setLoggedEducationMajors:y(z.setEducationMajors),setLoggedMinGradYear:y(z.setMinGradYear),setLoggedMaxGradYear:y(z.setMaxGradYear),setLoggedTargetAllGraduationYears:y(z.setTargetAllGraduationYears),setLoggedWorkEmployers:y(z.setWorkEmployers),setLoggedWorkNetworks:y(z.setWorkNetworks),setLoggedExcludedUserAdclusters:y(z.setExcludedUserAdclusters),setLoggedPageTypes:y(z.setPageTypes)});z.initSubscriptions();e.exports=z;},null); __d("AdsCFBox.react",["React","XUICloseButton.react","cx","joinClasses"],function(a,b,c,d,e,f,g,h,i,j){var k=g.PropTypes,l={info:'uiBoxLightblue',red:'uiBoxRed',yellow:'uiBoxYellow'},m=Object.keys(l),n=g.createClass({displayName:'AdsCFBox',propTypes:{onCloseIconClick:k.func,type:k.oneOf(m).isRequired},onClose:function(){this.props.onCloseIconClick&&this.props.onCloseIconClick();},render:function(){var o=this.props.onCloseIconClick?h({onClick:this.onClose,className:"_5cmp",size:"small"}):null,p=j("_5cmq",'pam',l[this.props.type]);return this.transferPropsTo(g.DOM.div({className:p},o,this.props.children));}});e.exports=n;},null); __d("AdsCFAudienceEstimateValidator",["AdsCountriesConfig","AdsUtils","AdsFetchedTargetingData","AdsTargetingModelAdapter","AdsTargetingSectionsLabels","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=['behaviors','ethnicAffinity','generation','homeOwnership','homeType','homeValue','householdComposition','income','industries','lifeEvents','moms','netWorth','officeType','politics','userAdclusters'];function n(y,z){return {isValid:!!y,errorMessage:z||''};}function o(y){return {geoLocations:p(y),countrySpecificTargeting:q(y)};}function p(y){if(!y){var z=false;}else if(y.custom_audiences||(y.connections&&y.connections.length)){z=true;}else{var aa=y.geo_locations||{};aa={countries:aa.countries||[],regions:aa.regions||[],cities:aa.cities||[],zips:aa.zips||[]};z=aa.countries.length||aa.regions.length||aa.cities.length||aa.zips.length;}return n(z,!!z?'':r());}function q(y){var z=u(y),aa=t(),ba=Object.keys(aa).length>1,ca=true,da;for(var ea in z)if(ca)if(aa[ea]===undefined||ba){ca=false;da=s(ea,z[ea]);}return n(ca,da);}function r(){return "Please pick at least one country to target.";}function s(y,z){var aa=g.countries[y],ba=l._("Some of your targeting is for {localizedCountryName}-based audiences only. Remove the following audience segments to reach people in other locations:",[l.param("localizedCountryName",aa)]),ca=[];for(var da in z)ca.push(k[h.camelCaseKey(da)]+': '+z[da].map(function(ea){return ea.name;}).join(', '));return {content:ba,children:ca};}function t(){var y=j.getGeoLocationsApiSpecMetaData(),z={};(y.countries||[]).forEach(function(aa){w(aa)&&(z[aa]=null);});(y.cities||[]).forEach(function(aa){w(aa.country)&&(z[aa.country]=null);});(y.regions||[]).forEach(function(aa){w(aa.country)&&(z[aa.country]=null);});(y.zips||[]).forEach(function(aa){w(aa.country)&&(z[aa.country]=null);});return z;}function u(y){var z=i.getInstance(),aa=z.getAllFromTargetingTypes(m),ba=x(y,m),ca={};for(var da in ba){var ea=ba[da];ea.forEach(function(fa){var ga=aa[da]&&aa[da].fetchByID(fa);if(!ga)return;v(ca,ga,da);});}return ca;}function v(y,z,aa){var ba=z.country;if(!w(ba))return;!y[ba]&&(y[ba]={});!y[ba][aa]&&(y[ba][aa]=[]);y[ba][aa].push(z);}function w(y){return !!(y&&typeof(y)==='string'&&y.length);}function x(y,z){var aa={};z.forEach(function(ba){var ca=h.underscoreKey(ba),da={};(y[ca]||[]).forEach(function(ea){ea.id&&(da[ea.id]=null);});aa[ba]=Object.keys(da);});return aa;}e.exports={validateTargetingSpec:o};},null); __d("BoostedComponentConstants",[],function(a,b,c,d,e,f){var g={DURATION_SECTION:{CONTINUOUS_OPTION:'continuous',DATE_PICKER_OPTION:'date_picker'}};e.exports=g;},null); __d("BoostedComponentEvents",[],function(a,b,c,d,e,f){var g={UPDATE_AUDIENCE:'update_audience',UPDATE_CITIES:'update_cities',UPDATE_COUNTRIES:'update_countries',UPDATE_GENDER:'update_gender',UPDATE_INTERESTS:'update_interests',UPDATE_MAX_AGE:'update_maximum_age',UPDATE_MIN_AGE:'update_minimum_age',UPDATE_RADIUS:'update_radius',UPDATE_REGIONS:'update_regions',UPDATE_ACCOUNT:'update_account',UPDATE_CURRENCY:'update_currency',UPDATE_DURATION:'update_duration',UPDATE_END_TIME:'update_end_time',UPDATE_NAME:'update_name',SELECT_BUDGET:'select_budget',INPUT_BUDGET:'input_budget',INIT_DATA_LOADED:'init_data_loaded',UPDATE_TARGETING:'change_targeting',getEventUpdateType:function(event){switch(event){case this.UPDATE_AUDIENCE:case this.UPDATE_CITIES:case this.UPDATE_COUNTRIES:case this.UPDATE_GENDER:case this.UPDATE_INTERESTS:case this.UPDATE_MAX_AGE:case this.UPDATE_MIN_AGE:case this.UPDATE_RADIUS:case this.UPDATE_REGIONS:return 'targeting';case this.UPDATE_DURATION:case this.UPDATE_END_TME:return 'schedule';case this.SELECT_BUDGET:case this.INPUT_BUDGET:return 'budget';default:return 'unknown';}}};e.exports=g;},null); __d("BoostedComponentGatingStringsUtil",["fbt","intlList"],function(a,b,c,d,e,f,g,h){var i={DISPLAY_GATED_COUNTRY_LIST_MAX:3,getGatedCountryConflictString:function(j,k,l,m,n){if(!n)return null;var o=this.getTruncatedCountryList(j),p=this.getTruncatedCountryList(m),q=null;if(o.length){q=g._("Your Page posts are only shown to people in {list_of_countries}.",[g.param("list_of_countries",h(o,h.CONJUNCTIONS.AND))]);}else if(p.length)q=g._("Your Page restricts {list_of_countries}.",[g.param("list_of_countries",h(p,h.CONJUNCTIONS.AND))]);var r=null;switch(n){case 'countries':r=this.getCountryRestrictionInstructions(l.length,m.length);break;case 'regions':r=this.getRegionRestrictionInstructions(l.length,m.length);break;case 'cities':r=this.getCityRestrictionInstructions(l.length,m.length);break;default:break;}return (g._("{list_of_conflicting_countries} {instructions}",[g.param("list_of_conflicting_countries",q),g.param("instructions",r)]));},getTruncatedCountryList:function(j){var k=j.length-this.DISPLAY_GATED_COUNTRY_LIST_MAX;if(k<1)return j.slice();var l=j.slice(0,this.DISPLAY_GATED_COUNTRY_LIST_MAX-1);l.push(g._("{num_remaining_countries} more countries",[g.param("num_remaining_countries",k+1)]));return l;},getCountryRestrictionInstructions:function(j,k){if(j){return ("Remove other countries to boost your post.");}else if(k)if(k===1){return ("Remove this country to boost your post.");}else if(k>this.DISPLAY_GATED_COUNTRY_LIST_MAX){return ("Remove them to boost your post.");}else return ("Remove these countries to boost your post.");return null;},getRegionRestrictionInstructions:function(j,k){if(j){return ("Remove regions in other countries to boost your post.");}else if(k)if(k===1){return ("Remove regions from this country to boost your post.");}else if(k>this.DISPLAY_GATED_COUNTRY_LIST_MAX){return ("Remove regions from them to boost your post.");}else return ("Remove regions from these countries to boost your post.");return null;},getCityRestrictionInstructions:function(j,k){if(j){return ("Remove cities in other countries to boost your post.");}else if(k)if(k===1){return ("Remove cities from this country to boost your post.");}else if(k>this.DISPLAY_GATED_COUNTRY_LIST_MAX){return ("Remove cities from them to boost your post.");}else return ("Remove cities from these countries to boost your post.");return null;}};e.exports=i;},null); __d("XUIDialogCancelButton.react",["React","XUIDialogButton.react","tx"],function(a,b,c,d,e,f,g,h,i){var j=g.createClass({displayName:'XUIDialogCancelButton',render:function(){return this.transferPropsTo(h({action:"cancel",label:"Cancel"}));}});e.exports=j;},null); __d("BoostedComponentPowerEditorDialog.react",["LayerFadeOnHide","React","ReactLayeredComponentMixin","URI","XUIDialog.react","XUIDialogTitle.react","XUIDialogBody.react","XUIDialogFooter.react","XUIDialogButton.react","XUIDialogCancelButton.react","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r='/ads/manage/powereditor',s=h.createClass({displayName:'BoostedComponentPowerEditorDialog',mixins:[i],propTypes:{},getInitialState:function(){return {dialogShown:false};},_onLinkClick:function(){this.setState({dialogShown:true});},_onToggle:function(t){this.setState({dialogShown:t});},_onConfirm:function(){this.setState({dialogShown:false});return true;},renderLayers:function(){if(!this.state.dialogShown)return {};var t="Edit Audience in Power Editor",u="See Power Editor",v={act:this.props.adAccountID,ad_account_id:this.props.adAccountID},w=j(r).addQueryData(v).toString();return {dialog:k({shown:true,behaviors:{LayerFadeOnHide:g},onToggle:this._onToggle,width:445},l(null,t),m(null,h.DOM.div(null,"This audience was created in Power Editor. To edit your audience, you'll need to return to it.")),n(null,p({use:"default",action:"cancel"}),o({href:w,target:"_blank",label:u,use:"confirm",action:"confirm",onClick:this._onConfirm})))};},render:function(){return (h.DOM.span({onClick:this._onLinkClick},this.props.children));}});e.exports=s;},null); __d("BoostedComponentSafeMixin",["BoostedPostEventType","BoostedPostLogging","React"],function(a,b,c,d,e,f,g,h,i){var j={propTypes:{displaySection:i.PropTypes.string.isRequired,userID:i.PropTypes.string.isRequired,pageID:i.PropTypes.string.isRequired,postID:i.PropTypes.string},render:function(){try{return this._render();}catch(k){h.log(g.RENDER_FAILED,{user_id:this.props.userID,page_id:this.props.pageID,post_id:this.props.postID,display_section:this.props.displaySection,error_message:k.message,error_trace:k.stack});return i.DOM.div(null);}}};e.exports=j;},null); __d("InputLabel.react",["React","cx","invariant","joinClasses"],function(a,b,c,d,e,f,g,h,i,j){var k=0;function l(){return 'js_input_label_'+(k++);}var m=g.createClass({displayName:'InputLabel',propTypes:{display:g.PropTypes.oneOf(['block','inline'])},getDefaultProps:function(){return {display:'block'};},render:function(){i(this.props.children.length===2);var n=this.props.children[0],o=this.props.children[1];n.props.className=j(n.props.className,'uiInputLabelInput');var p=n.type===g.DOM.input.type;if(p)if(n.props.type==='radio'){n.props.className=j(n.props.className,'uiInputLabelRadio');}else if(n.props.type==='checkbox')n.props.className=j(n.props.className,'uiInputLabelCheckbox');if(!n.props.id)n.props.id=l();o.props.htmlFor=n.props.id;o.props.className=j(o.props.className,'uiInputLabelLabel');var q=(("uiInputLabel")+(' '+"clearfix")+(this.props.display==='inline'?' '+"inlineBlock":'')+(p?' '+"uiInputLabelLegacy":''));return this.transferPropsTo(g.DOM.div({className:q},n,o));}});e.exports=m;},null); __d("XUIRadioInput.react",["React","ReactDOMInput","cx","joinClasses","invariant"],function(a,b,c,d,e,f,g,h,i,j,k){var l=g.createClass({displayName:'XUIRadioInput',render:function(){k(!this.props.children||this.props.children.length===0);var m=j(this.props.className,"_55sh"),n=this.transferPropsTo(h({type:"radio"}));n.props.className=null;return (g.DOM.label({className:m},n,g.DOM.span(null)));}});e.exports=l;},null); __d("BoostedDurationSection.react",["AdsHelpLink.react","InputLabel.react","React","UTCUtils","XUIDatePicker.react","XUIRadioInput.react","XUIText.react","cx","emptyFunction","BoostedComponentConstants"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=b('BoostedComponentConstants').DURATION_SECTION,q=i.createClass({displayName:'BoostedDurationSection',propTypes:{initialTimestamp:i.PropTypes.number,onTimestampUpdate:i.PropTypes.func,label:i.PropTypes.string,datePickerPrependText:i.PropTypes.string,initialDurationType:i.PropTypes.oneOf([p.CONTINUOUS_OPTION,p.DATE_PICKER_OPTION]),continuousOptionConfig:i.PropTypes.shape({enabled:i.PropTypes.bool,onDurationTypeUpdate:i.PropTypes.func,content:i.PropTypes.component}),dateRestraints:i.PropTypes.array},getDefaultProps:function(){return {initialTimestamp:j.dateToUTC(new Date()),onTimestampUpdate:o,initialDurationType:p.CONTINUOUS_OPTION,continuousOptionConfig:{enabled:false,onDurationTypeUpdate:o}};},getInitialState:function(){return {time:this.props.initialTimestamp,durationType:this.props.initialDurationType};},componentWillReceiveProps:function(r){this.setState({time:r.initialTimestamp,durationType:r.initialDurationType});},_onDurationTypeUpdate:function(event){var r=event.target.value;this.setState({durationType:r});this.props.continuousOptionConfig.onDurationTypeUpdate(r);},_onTimestampUpdate:function(r){var s=j.dateToUTC(j.dateToUTCDate(r))/1000;this.setState({time:s,durationType:p.DATE_PICKER_OPTION});this.props.onTimestampUpdate(s);},_renderContinuousOption:function(){var r=this.props.continuousOptionConfig;return (h(null,l({name:"continuous",value:p.CONTINUOUS_OPTION,checked:this.state.durationType===p.CONTINUOUS_OPTION,onChange:this._onDurationTypeUpdate}),r.content));},_renderDatePickerOption:function(){return (h(null,l({className:"_2_u7",name:"date_picker",value:p.DATE_PICKER_OPTION,checked:this.state.durationType===p.DATE_PICKER_OPTION,onChange:this._onDurationTypeUpdate}),this._renderDatePickerRow()));},_renderDatePickerRow:function(){return (i.DOM.span(null,this.props.datePickerPrependText,i.DOM.span({className:"plm"},k({initialTime:1000*this.state.time,onCalendarSelectDateChange:this._onTimestampUpdate,dateRestraints:this.props.dateRestraints})),g(null,"'Test'")));},render:function(){var r=null;if(this.props.continuousOptionConfig.enabled){r=i.DOM.div(null,this._renderContinuousOption(),this._renderDatePickerOption());}else r=this._renderDatePickerRow();var s=null;if(this.props.label)s=i.DOM.div({className:"pbm"},m({size:"large",weight:"bold"},this.props.label));return (i.DOM.div(null,s,i.DOM.div(null,r)));}});e.exports=q;},null); __d("BoostedPrimedDao",["ApiClient","BoostedPagelikeAppConfig","CurrentLocale","AdsDaoGraph"],function(a,b,c,d,e,f,g,h,i,j){g.setClientID(h.client_id.toString());g.setAccessToken(h.access_token);var k=null;e.exports={setAccountID:function(l){k=j.primedForAccount(l).primedForLocale(i.get());},getDaoForCurrentAccount:function(){return k;}};},null); __d("XAdsCreatorControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f,g){e.exports=g.create("\/ads\/create\/",{business_id:{type:"Int"},act:{type:"Int"},campaign_group:{type:"Int"},campaign_id:{type:"Int"},campaign_placement:{type:"String"},default_campaign_id:{type:"Int"},oid:{type:"Int"},fbid:{type:"Int"},storyid:{type:"Int"},objective:{type:"String"},edit_ad_link:{type:"Bool"},conversion_pixel_id:{type:"Int"},targeting_spec:{type:"String"},ref:{type:"String"},desturl:{type:"String"}});},null); __d("BoostedPostActionMenu.react",["Arbiter","BoostedPostStatus","ContextualDialogArrow","Image.react","PopoverMenu.react","PromotedPostConstants","React","URI","XAdsCreatorControllerURIBuilder","XUIButton.react","ReactXUIMenu","XUIMenuSeparator.react","cx","fbt","ix"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){var v=q.Item,w=m.createClass({displayName:'BoostedPostActionMenu',propTypes:{status:m.PropTypes.string.isRequired,pageID:m.PropTypes.string.isRequired,postID:m.PropTypes.string,accountID:m.PropTypes.string.isRequired,ownerFlyoutID:m.PropTypes.string.isRequired,contactFormURI:m.PropTypes.string,showAdvancedOptions:m.PropTypes.bool},_isCreateFlyout:function(){return this.props.status===h.INACTIVE;},_isPassiveFlyout:function(){return (this.props.status===h.FINISHED||this.props.status===h.EXTENDABLE||this.props.status===h.REJECTED||this.props.status===h.ERROR);},_sendArbiterSignal:function(event,x){var y=x.item.getValue();if(!y)return;g.inform(y,this.props.ownerFlyoutID);},getPrimaryActionMenuItem:function(){if(this.props.status===h.INACTIVE){var x=new o().setInt('fbid',this.props.pageID).setInt('storyid',this.props.postID).setInt('act',this.props.accountID).setString('ref','boosted_post').getURI();return (v({href:x,target:"_blank"},t._("Advanced Options {image}",[t.param("image",j({className:"_2spa",src:u('/images/ui/x/glyphs/combined/leave_s.png')}))])));}else if(this.props.status===h.PAUSED)return (v({value:l.RESUME},"Resume Promotion"));return (v({value:l.STOP},"Pause Promotion"));},getDeleteBoostMenuItem:function(){return (v({value:l.DELETE},"Delete Boost"));},getBillingInfoMenuItem:function(){var x=new n('/ads/manage/billing.php').addQueryData({act:this.props.accountID});return (v({href:x,target:"_blank"},"Billing Information..."));},getLearnMoreMenuItem:function(){return (v({href:n('/business/products/ads#boosted-posts'),target:"_blank"},"Learn More"));},getHelpCenterMenuItem:function(){return (v({href:n('/help/www/547448218658012/'),target:"_blank"},"Visit Help Center..."));},getFeedbackMenuItem:function(){return (v({href:n('/help/contact/408880639134452'),target:"_blank"},"Send Feedback..."));},getContactFormMenuItem:function(){return (v({href:n(this.props.contactFormURI),target:"_blank"},"Contact Support..."));},getMenuOptions:function(){var x=[];if(!this._isPassiveFlyout())x.push(this.getPrimaryActionMenuItem(),r(null));if(!this._isCreateFlyout())x.push(this.getDeleteBoostMenuItem(),this.getBillingInfoMenuItem(),r(null));x.push(this.getLearnMoreMenuItem(),this.getHelpCenterMenuItem(),r(null),this.getFeedbackMenuItem());if(this.props.contactFormURI)x.push(this.getContactFormMenuItem());return x;},render:function(){var x=q({onItemClick:this._sendArbiterSignal},this.getMenuOptions());return (k({menu:x,layerBehaviors:[i]},p({image:j({src:u('/images/ui/x/image/gear.png')})})));}});e.exports=w;},null); __d("AdsTargetingTogglerSafeMixin",[],function(a,b,c,d,e,f){var g={setStateSafe:function(h,i){setTimeout(function(){this.setState(h,i);}.bind(this),0);}};e.exports=g;},null); __d("BoostedPostBasicDialog.react",["AdsTargetingTogglerSafeMixin","React","ReactLayeredComponentMixin","XUIDialog.react","XUIDialogTitle.react","XUIDialogBody.react","XUIDialogFooter.react","XUIDialogButton.react","XUIText.react","cloneWithProps"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=h.createClass({displayName:'BoostedPostBasicDialog',mixins:[i,g],propTypes:{title:h.PropTypes.string.isRequired,body:h.PropTypes.string.isRequired,width:h.PropTypes.number.isRequired,entryComponent:h.PropTypes.component.isRequired,closeButtonText:h.PropTypes.string.isRequired,confirmText:h.PropTypes.string,confirmHandler:h.PropTypes.func},getInitialState:function(){return {dialogShown:false};},_onEntryClick:function(){this.setStateSafe({dialogShown:true});},_onToggle:function(r){this.setStateSafe({dialogShown:r});},_onConfirm:function(){this.setStateSafe({dialogShown:false});this.props.confirmHandler();},_onClose:function(){this.setStateSafe({dialogShown:false});},renderLayers:function(){var r=null;if(this.props.confirmHandler&&this.props.confirmText)r=n({use:"confirm",label:this.props.confirmText,onClick:this._onConfirm});return {dialog:j({causalElementRef:"entry",shown:this.state.dialogShown,onToggle:this._onToggle,width:this.props.width},k({showCloseButton:false},h.DOM.span(null,this.props.title)),l(null,h.DOM.div(null,o({size:"small"},this.props.body))),m(null,n({onClick:this._onClose,label:this.props.closeButtonText}),r))};},render:function(){return (p(this.props.entryComponent,{ref:"entry",onClick:this._onEntryClick}));}});e.exports=q;},null); __d("XBoostedPostCalculateBudgetsControllerURIBuilder",["XControllerURIBuilder"],function(a,b,c,d,e,f,g){e.exports=g.create("\/ads\/ajax\/boosted_post\/calculate_budget\/",{id:{type:"Int",required:true},page_id:{type:"Int",required:true},post_id:{type:"Int"},boosted_post_config:{type:"String",required:true},mode:{type:"Enum",required:true}});},null); __d("BoostedPostBudgetReachDispatcher",["AsyncRequest","BoostedPostBudgetModes","XBoostedPostCalculateBudgetsControllerURIBuilder"],function(a,b,c,d,e,f,g,h,i){function j(k,l){"use strict";this.$BoostedPostBudgetReachDispatcher0=k;this.$BoostedPostBudgetReachDispatcher1=l;}j.prototype.getNewBudgets=function(k,l,m,n,o){"use strict";new g().setURI(this.$BoostedPostBudgetReachDispatcher2(k,l,n)).setHandler(function(p){var q=p.payload;if(n===h.UPDATE_CUSTOM_BUDGET)q.budgetInfo=this.$BoostedPostBudgetReachDispatcher3(m,q.budgetInfo);o(q);}.bind(this)).send();};j.prototype.$BoostedPostBudgetReachDispatcher3=function(k,l){"use strict";var m=Object.keys(k).concat([this.$BoostedPostBudgetReachDispatcher4(l)]);m.sort();var n={},o=null;for(var p=0;pk)return (h._("Your budget needs to be less than {max_daily_budget} per day.",[h.param("max_daily_budget",g.formatCurrency(this.$BoostedPostBudgetValidator0,this.$BoostedPostBudgetValidator1.maxDailyBudget))]));return null;};e.exports=i;},null); __d("BoostedPostBudgetSelector.react",["AdsBudgetDropdownSelector.react","AdsTargetingTogglerSafeMixin","BoostedPostConfig","BoostedPostConstraints","BoostedPostConstants","BoostedPostBudgetModes","BoostedPostBudgetReachDispatcher","BoostedPostBudgetValidator","BoostedComponentGatingStringsUtil","LoadingIndicator.react","React","cx","fbt","ads-lib-formatters"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t){var u=t.createIntlNumberFormatter(0),v=q.createClass({displayName:'BoostedPostBudgetSelector',mixins:[h],propTypes:{pageID:q.PropTypes.string.isRequired,postID:q.PropTypes.string,defaultBudget:q.PropTypes.number.isRequired,initialBudgets:q.PropTypes.object.isRequired,constraints:q.PropTypes.instanceOf(j).isRequired,currency:q.PropTypes.string.isRequired,campaignLength:q.PropTypes.number.isRequired,boostedPostConfig:q.PropTypes.instanceOf(i).isRequired,onDataUpdate:q.PropTypes.func.isRequired,disableSaveButton:q.PropTypes.func.isRequired},componentWillMount:function(){this._requestID=0;this._budgetReachDispatcher=new m(this.props.pageID,this.props.postID);this._budgetValidator=new n(this.props.currency,this.props.constraints.getBudgetConstraints(),this.props.campaignLength);},getInitialState:function(){return {budgets:this._addBudgetReachLabels(this.props.initialBudgets),selectedBudget:this.props.defaultBudget,showLoadingIndicator:false};},_updateBudgetValidator:function(w){var x=w.mode;if(x===l.UPDATE_CAMPAIGN_LENGTH){this._budgetValidator.setCampaignLength(w.campaignLength);}else if(x===l.UPDATE_ACCOUNT||x===l.UPDATE_CURRENCY){this._budgetValidator.setCurrency(w.currency);this._budgetValidator.setBudgetConstraints(w.budgetConstraints);}},fetchNewBudgets:function(w,x,y){this._requestID++;var z={showLoadingIndicator:true};if(w===l.UPDATE_CUSTOM_BUDGET)z.selectedBudget=y;this.setState(z);this.props.disableSaveButton(true);x.setBudget(y);this._budgetReachDispatcher.getNewBudgets(this._requestID,x,this.state.budgets,w,this._newBudgetsCallback);},_newBudgetsCallback:function(w){if(w.id!==this._requestID)return;var x=w.countryGatingConflicts;if(x.conflictLevel){this.setState({showLoadingIndicator:false});var y={locationErrorMsg:o.getGatedCountryConflictString(this.props.constraints.getWhitelistCountries(),this.props.constraints.getBlacklistCountries(),x.whitelistConflicts,x.blacklistConflicts,x.conflictLevel)};this._onDataUpdate(y);return;}this._updateBudgetValidator(w);var z=w.selectedBudget||this.state.selectedBudget,aa={showLoadingIndicator:false,budgets:this._addBudgetReachLabels(w.budgetInfo)};if(w.selectedBudget)aa.selectedBudget=z;this.setState(aa);w.errorMsg=this._budgetValidator.isValidBudget(z);if(!w.errorMsg)w.selectedBudgetInfo=w.budgetInfo[z];this._onDataUpdate(w);},_addBudgetReachLabels:function(w){for(var x in w){var y=w[x];y.reach_label=(s._("Est. Reach {reach_estimate_lower_limit} - {reach_estimate_upper_limit}",[s.param("reach_estimate_lower_limit",u(y.reach_lower)),s.param("reach_estimate_upper_limit",u(y.reach_upper))]));}return w;},_onDataUpdate:function(w){this.props.onDataUpdate(k.BUDGET_KEY,w);},_onBudgetSelected:function(w){this.setStateSafe({selectedBudget:w});this._onDataUpdate({selectedBudgetInfo:this.state.budgets[w],fromDirectUserAction:true});},_onBudgetEntered:function(w){var x=this._budgetValidator.isValidBudget(w);if(x){this.props.disableSaveButton(true);this.setStateSafe({selectedBudget:w});return this._onDataUpdate({errorMsg:x});}this.fetchNewBudgets(l.UPDATE_CUSTOM_BUDGET,this.props.boostedPostConfig,w);},render:function(){var w=((!this.state.showLoadingIndicator?"hidden_elem":'')+(' '+"mvs"));return (q.DOM.div(null,g({alignh:"right",budgets:this.state.budgets,currency:this.props.currency,selectedBudget:this.state.selectedBudget,showCustomBudgetOption:true,onBudgetSelected:this._onBudgetSelected,onBudgetEntered:this._onBudgetEntered}),q.DOM.div({className:w},p({color:"white",size:"small"}))));}});e.exports=v;},null); __d("BoostedPostComposerWidget",["Arbiter","ArbiterMixin","BoostedPostLogging","Button","DOM","Event","Form","PromotedPostConstants","copyProperties","mixin","tx","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=p(h);for(var t in s)if(s.hasOwnProperty(t))v[t]=s[t];var u=s===null?null:s.prototype;v.prototype=Object.create(u);v.prototype.constructor=v;v.__superConstructor__=s;function v(w,x,y,z,aa,ba){"use strict";this._container=w;this._popover=x;this._popoverButton=y;this._flyout=z;this._pageId=aa;this._promoteButtonLabel=ba;this._loggingData={page_id:this._pageId,placement:'from_composer'};this._hiddenInputs={};this._composerFormDiv=k.find(this._container,'.boostedPostForm');this.initialize();}v.prototype.initialize=function(){"use strict";this._flyout.subscribe(n.SAVE,this._saveButtonListener.bind(this));this._flyout.subscribe(n.CANCEL,this._cancelButtonListener.bind(this));this._popover.subscribe('show',function(){g.inform(n.FLYOUT_SHOW);this._flyout.inform(n.FLYOUT_SHOW);this._loggingData.ad_account_id=this._flyout.getBoostedPostData().ad_account_id;i.log('composer_flyout_open',this._loggingData);}.bind(this));this._popover.subscribe('hide',function(){g.inform(n.FLYOUT_HIDE);}.bind(this));this._firstClickListener=l.listen(this._popoverButton,'click',this._onFirstClick.bind(this));g.subscribe('UIPrivacyWidget/globalPrivacyChanged',function(w,x){this._flyout.setPrivacyGating(x.data);}.bind(this));g.subscribe('composer/reset',this._resetWidget.bind(this));return this;};v.prototype._onFirstClick=function(){"use strict";if(this._firstClickListener){this._firstClickListener.remove();this._firstClickListener=null;}i.logClickConversionTracking(this._pageId,null);};v.prototype._resetWidget=function(w,x){"use strict";this._resetButtonLabel();k.empty(this._composerFormDiv);};v.prototype._saveButtonListener=function(w,x){"use strict";this._setButtonLabel(x.budgetLabel);this._popover.hideLayer();var y={};o(y,x.formData,this._loggingData);i.log('composer_create_save',y);if(this._hiddenInputs.boosted_post_currency)this._hiddenInputs.boosted_post_currency.value="";k.empty(this._composerFormDiv);m.createHiddenInputs(x.formData,this._composerFormDiv,this._hiddenInputs,false);this._flyout.hideLoadingIndicator();};v.prototype._cancelButtonListener=function(w,x){"use strict";var y=k.scry(this._flyout._flyout,'.'+"_1vb5");if(y.length===0)g.inform(n.SAVE_BUTTON_DISABLE,false);this._resetButtonLabel();this._popover.hideLayer();var z={};o(z,x.formData,this._loggingData);i.log('composer_create_cancel',z);k.empty(this._composerFormDiv);};v.prototype._setButtonLabel=function(w){"use strict";var x=q._("Boosted for {budget}",{budget:w});j.setLabel(this._popoverButton,x);};v.prototype._setButtonLabelPending=function(){"use strict";j.setLabel(this._popoverButton,"Boost Pending");};v.prototype._resetButtonLabel=function(){"use strict";j.setLabel(this._popoverButton,this._promoteButtonLabel);};o(v.prototype,{_firstClickListener:null});e.exports=v;},null); __d("BoostedPostCreateFlyout",["Arbiter","ArbiterMixin","Button","CSS","DOM","Event","PromotedPostConstants","cx","mixin"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=o(h);for(var q in p)if(p.hasOwnProperty(q))s[q]=p[q];var r=p===null?null:p.prototype;s.prototype=Object.create(r);s.prototype.constructor=s;s.__superConstructor__=p;function s(t,u,v){"use strict";this._flyout=t;this._module=u;this._disclaimer=v;this._saveButton=k.scry(this._flyout,'.saveButton')[0];this._cancelButton=k.scry(this._flyout,'.cancelButton')[0];this._seeTermsLink=k.scry(this._flyout,'.seeTermsLink')[0];this.init();}s.prototype.init=function(){"use strict";this._module.subscribe(m.CANCEL,function(t,u){this.inform(m.CANCEL,u);}.bind(this));this._module.subscribe(m.SAVE,function(t,u){this.inform(m.SAVE,u);}.bind(this));g.subscribe(m.SAVE_BUTTON_DISABLE,this.updateSaveButton.bind(this));g.subscribe(m.SAVE_BUTTON_CLICK,function(t,u){if(this._flyout.id===u)this._module.saveHandler();}.bind(this));g.subscribe(m.CANCEL_BUTTON_CLICK,function(t,u){if(this._flyout.id===u)this._module.cancelHandler();}.bind(this));this._module.subscribe(m.EXIT_LOADING_STATE,this.hideLoadingIndicator.bind(this));this._module.subscribe(m.SAVE_BUTTON_DISABLE,this.updateSaveButton.bind(this));if(this._saveButton)l.listen(this._saveButton,'click',function(){this._module.saveHandler();}.bind(this));if(this._cancelButton)l.listen(this._cancelButton,'click',function(){this._module.cancelHandler();}.bind(this));if(this._seeTermsLink)l.listen(this._seeTermsLink,'click',function(){this._disclaimer.showDisclaimer();}.bind(this));this.subscribe(m.FLYOUT_SHOW,function(){this._module.inform(m.FLYOUT_SHOW);}.bind(this));};s.prototype.updateSaveButton=function(event,t){"use strict";if(!this._saveButton)return;j.conditionClass(this._saveButton,"_42fr",t);this._saveButton.disabled=t;};s.prototype.setButtonsEnabled=function(t){"use strict";if(!this._saveButton||!this._cancelButton)return;i.setEnabled(this._saveButton,t);i.setEnabled(this._cancelButton,t);};s.prototype.getBoostedPostData=function(){"use strict";return this._module.getBoostedPostData();};s.prototype.setPrivacyGating=function(t){"use strict";this._module.setPrivacyGating(t);};s.prototype.getRoot=function(){"use strict";return this._flyout;};s.prototype.hideLoadingIndicator=function(){"use strict";g.inform(m.EXIT_LOADING_STATE,this._flyout.id);};e.exports=s;},null); __d("AdsCurrencySelector.react",["AdsCFBox.react","AdsCurrency","AdsSwapChargeCurrency","AdsTargetingTogglerSafeMixin","BoostedComponentEvents","Link.react","React","XUISelector.react","URI","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=n.Option,r=m.createClass({displayName:'AdsCurrencySelector',mixins:[j],propTypes:{selectedCurrency:m.PropTypes.string.isRequired,onDataUpdate:m.PropTypes.func.isRequired},getInitialState:function(){return {selectedCurrency:this.props.selectedCurrency};},componentWillReceiveProps:function(s){this.setStateSafe(s);},_onDataUpdate:function(s){this.setStateSafe({selectedCurrency:s.value});this.props.onDataUpdate(k.UPDATE_CURRENCY,s.value);},_getSortedCurrencies:function(){return h.currencyMapKeys.map(function(s){return h.currencies[s];}).sort(function(s,t){return s.name.localeCompare(t.name);});},_getWarnbox:function(){if(!i[this.state.selectedCurrency])return null;return (m.DOM.div({className:"mtm"},g({type:"yellow"},p._("Your payment can't be processed in Brazilian Real (BRL) currency. If you select BRL, your payment will be processed in US Dollars. {link}",[p.param("link",l({href:o('/help/359538037512438/')},"Learn more."))]))));},render:function(){var s=this._getSortedCurrencies(),t=s.length,u=[];for(var v=0;v1||s.length>p)t=m._("{clipped_description}...",[m.param("clipped_description",t)]);return t;},_getOtherDetailsTooltip:function(){return this.state.targetingSentences.join("\n");},render:function(){var r=this.props.audience,s=r.genders?r.genders:null,t=null;if(r)t=(i.DOM.div(null,i.DOM.div(null,this._getGenderDetails(s)),i.DOM.div(null,this._getAgeDetails(r.age_min,r.age_max)),i.DOM.div(null,this._getLocationDetails()),i.DOM.div(null,this._getInterestDetails(r.interests)),i.DOM.div(null,this._getOtherDetails())));return t;}});e.exports=q;},null); __d("AdsTargetingViewConfig",["AdsTargetingSectionsLabels","ImmutableObject","keyMirror"],function(a,b,c,d,e,f,g,h,i){var j=i({OFF:null,STRONG:null,WEAK:null,BROADEN:null,DANGEROUS:null}),k=13,l=65,m=['relationshipSingle','relationshipInA','relationshipMarried','relationshipEngaged','relationshipUnspecified'],n='cities',o='zips',p='regions',q=['collegeNetworks','workNetworks'],r=i({getFeatureEffect:null}),s=i({}),t={INTERESTS:{getFeatureEffect:function(w){var x=(w.keywords&&w.keywords.length)||(w.interests&&w.interests.length);return (x)?j.STRONG:j.OFF;}},CUSTOM_AUDIENCE:{getFeatureEffect:function(w){return (w.customAudiences&&w.customAudiences.length)?j.STRONG:j.OFF;}},CONNECTIONS:{getFeatureEffect:function(w){var x=(w.connections&&w.connections.length)||(w.friendsOfConnections&&w.friendsOfConnections.length);return x?j.STRONG:j.OFF;}},CATEGORIES:{getFeatureEffect:function(w){return (w.userAdclusters&&w.userAdclusters.length)?j.STRONG:j.OFF;}},LOCATION:{getFeatureEffect:function(w){if(w.geoLocations){var x=w.geoLocations,y=x.cities&&x.cities.length,z=x.zips&&x.zips.length,aa=x.regions&&x.regions.length,ba=w.excludedGeoLocations||{},ca=0;Object.keys(ba).forEach(function(fa){ca+=ba[fa].length||0;});if(y||z){return j.STRONG;}else if(aa){return (ca)?j.STRONG:j.WEAK;}else if(x.countries&&x.countries.length>1)return (ca)?j.WEAK:j.BROADEN;return (ca)?j.WEAK:j.OFF;}var da=(w.locTargeting===o)||(w.locTargeting===n),ea=(w.cities&&w.cities.length)||(w.zips&&w.zips.length);if(da&&ea)return j.STRONG;if(w.locTargeting===p&&w.regions&&w.regions.length)return j.WEAK;if(w.countries&&w.countries.length>1)return j.BROADEN;return j.OFF;}},GENDER_AGE:{getFeatureEffect:function(w){if((w.ageMax&&w.ageMax!==l)||(w.ageMin&&w.ageMin!==k)||(w.sex))return j.WEAK;return j.OFF;}},SCHOOL:{getFeatureEffect:function(w){if(!w.educationStatus)return j.OFF;var x=w.educationStatus===2||w.educationStatus===3,y=w.collegeNetworks&&w.collegeNetworks.length,z=w.collegeMajors&&w.collegeMajors.length;if(!x)return j.WEAK;if(y&&z)return j.DANGEROUS;if(y||z)return j.STRONG;return j.WEAK;}},WORK:{getFeatureEffect:function(w){return (w.workNetworks&&w.workNetworks.length)?j.STRONG:j.OFF;}},LANGUAGE:{getFeatureEffect:function(w){return (w.locales&&w.locales.length)?j.WEAK:j.OFF;}},RELATIONSHIP:{getFeatureEffect:function(w){var x=!!w.interestedInSex,y=false,z=true;m.forEach(function(aa){y=y||w[aa];z=z&&w[aa];});if(z||!y)return (x)?j.WEAK:j.OFF;return (x)?j.STRONG:j.WEAK;}},DEVICE:{getFeatureEffect:function(w){var x=0;if(w.wifiOnly)x++;var y=w.mobileDevices||[];if(y.length&&y.length!==3)x++;if(w.minIosVersion||w.minAndroidVersion)x++;if(x>1){return j.STRONG;}else if(x===1)return j.WEAK;return j.OFF;}},ADV_DEMO:{getFeatureEffect:function(w){var x=!!Object.keys(g).filter(function(y){return q.indexOf(y)==-1&&w[y]&&w[y].length;}).length;return x?j.STRONG:j.OFF;}}},u={};Object.keys(t).forEach(function(w){t[w].KEY=w;u[w]=w;});var v={INTERFACE:r,OPTIONAL_INTERFACE:s,EFFECTS:j,FEATURES:u,getViewNames:function(){return Object.keys(t);},getAllViewConfigs:function(){return Object.keys(t).map(function(w){return new h(t[w]);});},getViewConfigByName:function(w){return new h(t[w]);}};e.exports=v;},null); __d("AdsTargetingRatingUtils",["AdsTargetingViewConfig","ImmutableObject","keyMirror","merge"],function(a,b,c,d,e,f,g,h,i,j){var k=g.EFFECTS,l=i({TOO_SMALL:null,SMALL:null,GOOD:null,TOO_BROAD:null}),m=i({DANGEROUS:null,VAGUE:null,GOOD:null,GREAT:null,NONE:null}),n=i({BAD_TOO_BROAD:null,BAD_TOO_SMALL:null,VAGUE:null,GOOD:null}),o=1000*1000,p=100*o,q=2500,r=10000,s=3,t=2,u={SIZE_RATINGS:l,FEATURE_RATINGS:m,OVERALL_RATINGS:n,getFeaturesByEffect:function(v){var w=g.getAllViewConfigs(),x={};Object.keys(k).forEach(function(y){x[y]=[];});w.forEach(function(y){var z=y.getFeatureEffect(v);x[z].push(y);});return x;},getConfigsWithFeature:function(v){var w=g.getAllViewConfigs();return w.map(function(x){return new h(j(x,{EFFECT:x.getFeatureEffect(v)}));});},getAudienceSizeRating:function(v){var w=l;if(v<=q){return w.TOO_SMALL;}else if(v<=r){return w.SMALL;}else if(v=t){return w.GREAT;}else if(y){return w.GOOD;}else if(z)return w.VAGUE;return w.NONE;},getOverallRating:function(v,w){var x=this.getFeaturesRating(v),y=this.getAudienceSizeRating(w),z=l,aa=m,ba=n;switch(y){case z.TOO_SMALL:return ba.BAD_TOO_SMALL;case z.TOO_BROAD:switch(x){case aa.NONE:case aa.DANGEROUS:return ba.BAD_TOO_BROAD;case aa.VAGUE:case aa.GOOD:return ba.VAGUE;case aa.GREAT:return ba.GOOD;}break;case z.GOOD:switch(x){case aa.DANGEROUS:return ba.GOOD;case aa.NONE:return ba.BAD_TOO_BROAD;case aa.VAGUE:return ba.VAGUE;case aa.GOOD:case aa.GREAT:return ba.GOOD;}break;case z.SMALL:switch(x){case aa.DANGEROUS:return ba.BAD_TOO_SMALL;case aa.NONE:case aa.VAGUE:return ba.VAGUE;case aa.GOOD:case aa.GREAT:return ba.GOOD;}}}};e.exports=u;},null); __d("AdsTargetingEstimateFeedbackThrottle.react",["AdsTargetingRatingUtils","AdsOtherConsts","BrowserSupport","Image.react","LeftRight.react","LoadingIndicator.react","NumberFormat","React","cx","fbt","ix","joinClasses"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=n.PropTypes,t=g.OVERALL_RATINGS;function u(w){switch(w){case t.GOOD:return ("Your audience is defined.");case t.VAGUE:return ("Your audience selection is fairly broad.");case t.BAD_TOO_SMALL:return ("Your audience is too specific for your ads to be shown. Try making it broader.");case t.BAD_TOO_BROAD:return ("Your audience selection is broad. This requires a large budget.");}}var v=n.createClass({displayName:'AdsTargetingEstimateFeedbackThrottle',propTypes:{ready:s.bool.isRequired,loading:s.bool.isRequired,rating:s.string.isRequired,users:s.number.isRequired,sentences:s.array,estimateErrors:s.array},getDefaultProps:function(){return {sentences:[],estimateErrors:[]};},render:function(){return (n.DOM.div({className:"_1g9y"},this.renderHeader(),this.renderWarning(),n.DOM.div({className:this._getFeedbackSectionClasses()},this.renderFeedbackSection()),this.renderSentences(),this.renderUsers()));},renderHeader:function(){return (n.DOM.div({className:r('fwb',"_1g9z",this._getRatingIfNotError())},"Audience Definition"));},renderFeedbackSection:function(){if(!this.props.ready)return null;return {throttle:this.renderThrottle(),feedback:this.renderFeedback()};},renderThrottle:function(){if(!this.showNeedle())return null;return (n.DOM.div({className:"_1g9- lfloat"},n.DOM.div({className:"_1g9_"},j({className:r("_1ga0",this.props.rating),src:q('/images/ads/createflow/targeting/needle.png')}),j({className:"_1ga1",src:q('/images/ads/createflow/targeting/meter.png')}),k({className:"_1ga2"},this.renderNeedleLabel("Specific"),this.renderNeedleLabel("Broad")))));},renderNeedleLabel:function(w){return (n.DOM.span({'data-hover':"tooltip",'data-tooltip-alignh':"center",'aria-label':w,className:"_1ga3"},w));},renderFeedback:function(){if(this._isErrorState())return null;return (n.DOM.div({className:(("rfloat")+(' '+"fsm")+(' '+"_1ga4")+(!this.showNeedle()?' '+"noNeedle":''))},u(this.props.rating)));},renderSentence:function(w){if(!w.content)return n.DOM.li({key:w},w);return (n.DOM.li({key:w.content},n.DOM.div(null,w.content),n.DOM.ul({className:"_1ga5 pll"},(w.children||[]).map(function(x,y){return (n.DOM.li({key:x},x));}))));},renderSentences:function(){if(!this.props.sentences.length)return null;var w=this.props.sentences.map(function(x){return this.renderSentence(x);}.bind(this));return (n.DOM.div({className:"_1ga6",'data-testid':"targeting-estimate-feedback"},n.DOM.span({className:"fwb"},"Audience Details:"),n.DOM.ul({className:"_1ga7 pll pts"},w)));},renderUsers:function(){if(!this.props.ready)return null;return (this._isErrorState())?this.renderErrorInfo():n.DOM.div({className:"_1ga8"},this.renderNumUsers());},renderNumUsers:function(){if(this.props.loading)return (n.DOM.div({className:"_1ga9"},l({size:l.SIZES.small,color:l.COLORS.blue})));var w=this.props.users;if(w<=h.REACH_TOO_LOW_NUMBER)return (p._("Potential Reach: Fewer than {users} people",[p.param("users",h.REACH_TOO_LOW_NUMBER)]));return (p._("Potential Reach: {users} people",[p.param("users",m.formatInteger(w))]));},renderWarning:function(){if(!this._isErrorState())if(!this.props.ready)return (n.DOM.div({className:"_1gaa"},"Continue to create your audience while your customer list is being built"));return null;},renderErrorInfo:function(){return (n.DOM.div({className:"_1gaa"},"Accurate information about your audience size isn't available.",this.renderEstimateErrors()));},renderEstimateErrors:function(){if(!this.props.estimateErrors.length)return;var w=this.props.estimateErrors.map(function(x){return this.renderSentence(x);}.bind(this));return (n.DOM.ul({className:"_1ga7 pll pts"},w));},showNeedle:function(){return i.hasCSSTransforms()&&i.hasCSSTransitions();},_getRatingIfNotError:function(){if(!this.props.ready)return '';return (this._isErrorState())?'':this.props.rating;},_isErrorState:function(){return isNaN(this.props.users)||this.props.estimateErrors.length;},_getFeedbackSectionClasses:function(){return r('clearfix',"_1gab",this._getRatingIfNotError(),this._isErrorState()?'ERROR':'');}});e.exports=v;},null); __d("AdsTargetingEstimateUtils",["AdsCFAudienceEstimateValidator"],function(a,b,c,d,e,f,g){var h={getEstimateErrorFromTargetingSpec:function(i){var j=g.validateTargetingSpec(i),k=[];for(var l in j){var m=j[l];if(!m.isValid)k.push(m.errorMessage);}return k;}};e.exports=h;},null); __d("XUIDialogSaveButton.react",["React","XUIDialogButton.react","tx"],function(a,b,c,d,e,f,g,h,i){var j=g.createClass({displayName:'XUIDialogSaveButton',render:function(){return this.transferPropsTo(h({action:"confirm",label:"Save"}));}});e.exports=j;},null); __d("TokenizerToken.react",["CloseButton.react","React","SearchableEntry","cx","tx"],function(a,b,c,d,e,f,g,h,i,j,k){var l=h.createClass({displayName:'TokenizerToken',propTypes:{label:h.PropTypes.string.isRequired,entry:h.PropTypes.instanceOf(i),onRemove:h.PropTypes.func,highlighted:h.PropTypes.bool},render:function(){var m;if(this.props.onRemove)m=g({'aria-label':k._("Remove {item}",{item:this.props.label}),className:"_58zx",size:"small",onClick:this._onClick});var n=(("_58zy")+(this.props.highlighted?' '+"_58zz":''));return this.transferPropsTo(h.DOM.span({className:n,label:null},this.props.label,m));},_onClick:function(m){m.preventDefault();this.props.onRemove(this.props.entry);}});e.exports=l;},null); __d("AbstractTokenizer.react",["AbstractTypeahead.react","React","TokenizerToken.react","cx","emptyFunction","joinClasses"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=h.createClass({displayName:'AbstractTokenizer',propTypes:{className:h.PropTypes.string,inputClassName:h.PropTypes.string,tokenClassName:h.PropTypes.string,placeholder:h.PropTypes.string,queryString:h.PropTypes.string,searchSource:h.PropTypes.object.isRequired,searchSourceOptions:h.PropTypes.object,presenter:h.PropTypes.object.isRequired,entries:h.PropTypes.array,onAddEntryAttempt:h.PropTypes.func.isRequired,onRemoveEntryAttempt:h.PropTypes.func.isRequired,onReorderEntryAttempt:h.PropTypes.func,onQueryStringChange:h.PropTypes.func,onInputFocus:h.PropTypes.func,onInputBlur:h.PropTypes.func,onTypeaheadMouseDown:h.PropTypes.func,excludedEntries:h.PropTypes.object,limit:function(n,o,p){var q=n[o];if(typeof q!=='undefined'&&!(typeof q==='number'&&q>0))return new Error('Invalid entries limit provided, must be a positive number.');},selectOnBlur:h.PropTypes.bool,selectOnTab:h.PropTypes.bool,tokenizeQueryString:h.PropTypes.func,tokenizeQueryStringOnBlur:h.PropTypes.func},getDefaultProps:function(){return {autoHighlight:true,onInputBlur:k,selectOnBlur:false,selectOnTab:true,tokenizeQueryString:k.thatReturnsNull,tokenizeQueryStringOnBlur:k.thatReturnsNull};},getInitialState:function(){return {queryString:''};},_getQueryString:function(){return this.props.queryString||this.state.queryString;},_hasReachedEntriesLimit:function(){if(this.props.limit&&this.props.entries)return this.props.entries.length>=this.props.limit;return false;},componentWillReceiveProps:function(n){if(n.queryString==null&&this.props.queryString!=null)this.setState({queryString:this.props.queryString});},render:function(){var n=!!this.props.onReorderEntryAttempt,o=l((("_58-2")+(n?' '+"_5ph3":'')),'clearfix',this.props.className),p,q=this.props.entries,r={},s=q&&q.length>0,t;if(s){p=[];for(var u=0,v=q.length;u0))return new Error('Invalid entries limit provided, must be a positive number.');},onDataUpdate:h.PropTypes.func.isRequired,packageFn:h.PropTypes.func,placeholder:h.PropTypes.string,queryData:h.PropTypes.object,searchSource:h.PropTypes.object,smallInput:h.PropTypes.bool,uri:h.PropTypes.string.isRequired},getDefaultProps:function(){return {queryData:{}};},getInitialState:function(){return {entries:this.props.initialEntries||[]};},componentWillMount:function(){this._createSearchSource(this.props);},componentWillReceiveProps:function(o){if(o.initialEntries)this.setState({entries:o.initialEntries});this._createSearchSource(o);},_createSearchSource:function(o){if(o.searchSource){this._searchSource=o.searchSource;return;}this._searchSource=new i({queryRequests:[{uri:o.uri,data:o.queryData}],auxiliaryFields:this.props.auxiliaryFields,packageFn:this.props.packageFn});},_onAdd:function(o){var p=this.state.entries;p.push(o);this.setState({entries:p});this.props.onDataUpdate(p,o);},_onRemove:function(o){var p=this.state.entries,q=p.indexOf(o);p.splice(q,1);this.setState({entries:p});this.props.onDataUpdate(p,o);},getEntries:function(){return this.state.entries;},render:function(){var o=(("_59_m")+(' '+"_557c")+(this.props.smallInput?' '+"_p63":''));return (h.DOM.div({className:o},g({className:"_59_n",'data-testid':this.props['data-testid'],entries:this.state.entries,onAddEntryAttempt:this._onAdd,onRemoveEntryAttempt:this._onRemove,placeholder:this.props.placeholder,presenter:m,searchSource:this._searchSource,limit:this.props.limit})));}});e.exports=n;},null); __d("BoostedPostStrings",["fbt"],function(a,b,c,d,e,f,g){var h={TARGETING_LABELS:{LOCATION:"Location",AGE:"Age",GENDER:"Gender",INTERESTS:"Interests",ADD_REGION_PLACEHOLDER:"Add states\/provinces...",ADD_CITY_PLACEHOLDER:"Add cities..."}};e.exports=h;},null); __d("AdsTargetingLocationSelector.react",["AdsTargetingTokenizer.react","AdsTargetingTogglerSafeMixin","BoostedComponentEvents","BoostedPostStrings","BoostedRadiusOptions","AdsTargetingConstants","React","XUIGrayText.react","XUISelector.react","cx","fbt","intlList"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=o.Option,t=Object.keys(k).map(function(v){return k[v];}),u=m.createClass({displayName:'AdsTargetingLocationSelector',mixins:[h],propTypes:{onDataUpdate:m.PropTypes.func.isRequired,initialTokenizer:m.PropTypes.number,initialTokens:m.PropTypes.object,initialRadius:m.PropTypes.number,defaultCountries:m.PropTypes.object,smallInput:m.PropTypes.bool,whitelistCountries:m.PropTypes.array,blacklistCountries:m.PropTypes.array},getDefaultProps:function(){return {initialTokenizer:l.LOCATION_TYPES.Countries,initialTokens:{},initialRadius:t[0]};},getInitialState:function(){var v=this.props,w=v.initialTokenizer?v.initialTokenizer:l.LOCATION_TYPES.Countries;return {countryRestriction:this._getCountryRestrictionFromProps(v),tokenizerShown:w,hasTokens:this._hasTokens(w,v.initialTokens),radiusSelected:v.initialRadius};},componentWillReceiveProps:function(v){var w=v.initialTokenizer?v.initialTokenizer:this.state.tokenizerShown;this.setStateSafe({tokenizerShown:w,countryRestriction:this._getCountryRestrictionFromProps(v),hasTokens:this._hasTokens(w,v.initialTokens),radiusSelected:v.initialRadius});},_hasTokens:function(v,w){return Boolean(w[this._getTokenizerString(v)]&&w[this._getTokenizerString(v)].length);},_hasInitialRegions:function(v){return (v.initialTokenizer===l.LOCATION_TYPES.Regions&&v.initialTokens.regions&&v.initialTokens.regions.length);},_getCountryRestrictionFromProps:function(v){if(!this._hasInitialRegions(v))return null;return v.initialTokens.regions[0].getSubtitle();},_getTokenizerString:function(v){switch(v){case l.LOCATION_TYPES.Countries:return 'countries';case l.LOCATION_TYPES.Regions:return 'regions';case l.LOCATION_TYPES.Cities:return 'cities';}},_getEventType:function(v){switch(v){case l.LOCATION_TYPES.Countries:return i.UPDATE_COUNTRIES;case l.LOCATION_TYPES.Regions:return i.UPDATE_REGIONS;case l.LOCATION_TYPES.Cities:return i.UPDATE_CITIES;}},_getLocationEntries:function(v){return this.refs[this._getTokenizerString(v)].getEntries();},_onSelectorChange:function(v){var w=v.value,x=this._getLocationEntries(w);this.setStateSafe({tokenizerShown:w,hasTokens:!!x.length,countryRestriction:null});this.props.onDataUpdate(this._getEventType(w),x);},_onEntriesUpdate:function(v,w){if(this.state.tokenizerShown===l.LOCATION_TYPES.Regions)this._onRegionDataUpdate(v,w);this.setStateSafe({hasTokens:!!v.length});this.props.onDataUpdate(this._getEventType(this.state.tokenizerShown),v);},_onRadiusChange:function(v){this.setStateSafe({radiusSelected:v.value});this.props.onDataUpdate(i.UPDATE_RADIUS,v.value);},_onRegionDataUpdate:function(v,w){if(v.length){this.setStateSafe({countryRestriction:w.getSubtitle()});}else this.setStateSafe({countryRestriction:null});},_getCountryGatingQuery:function(){var v={},w=this.props.whitelistCountries,x=this.props.blacklistCountries;if(w&&w.length)v.whitelist_countries=w;if(x&&x.length)v.blacklist_countries=x;return v;},_getCountriesTokenizer:function(){var v="Add countries...";return (g({'data-testid':"country_token",uri:l.LOCATION_URIS[l.LOCATION_TYPES.Countries],onDataUpdate:this._onEntriesUpdate,queryData:this._getCountryGatingQuery(),initialEntries:this.props.initialTokens.countries,smallInput:this.props.smallInput,placeholder:v,limit:l.MAX_LOCATION_ENTRIES,ref:"countries"}));},_getRegionsTokenizer:function(){var v={};if(this.state.countryRestriction){v.whitelist_countries=this.state.countryRestriction;}else v=this._getCountryGatingQuery();v.version=2;var w=j.TARGETING_LABELS.ADD_REGION_PLACEHOLDER;return (g({'data-testid':"region_token",uri:l.LOCATION_URIS[l.LOCATION_TYPES.Regions],onDataUpdate:this._onEntriesUpdate,queryData:v,initialEntries:this.props.initialTokens.regions,smallInput:this.props.smallInput,placeholder:w,limit:l.MAX_LOCATION_ENTRIES,ref:"regions"}));},_getCitiesTokenizer:function(){return (g({'data-testid':"city_token",uri:l.LOCATION_URIS[l.LOCATION_TYPES.Cities],onDataUpdate:this._onEntriesUpdate,queryData:this._getCountryGatingQuery(),initialEntries:this.props.initialTokens.cities,smallInput:this.props.smallInput,placeholder:j.TARGETING_LABELS.ADD_CITY_PLACEHOLDER,limit:l.MAX_LOCATION_ENTRIES,ref:"cities"}));},_getCitiesRadiusSelector:function(){if(this.state.tokenizerShown!==l.LOCATION_TYPES.Cities)return null;var v=t.map(function(w){return (s({value:w,'data-testid':"within_"+w+"_miles"},q._("+ {radiusValue} miles",[q.param("radiusValue",w)])));});return (o({maxwidth:150,onChange:this._onRadiusChange,value:this.state.radiusSelected,className:"mls",'data-testid':"radius_selector"},v));},_getDefaultCountriesString:function(){var v=this.props.defaultCountries,w=[];for(var x in v)w.push(v[x]);return r(w,r.CONJUNCTIONS.AND);},_getWarningMessage:function(){if(!this.props.defaultCountries)return null;var v=(("mts")+(this.state.hasTokens?' '+"hidden_elem":''));return (m.DOM.div({className:v},n({'data-testid':"targeting_warning_message"},q._("If left blank, your ad will be delivered to {list_of_countries}.",[q.param("list_of_countries",this._getDefaultCountriesString())]))));},render:function(){var v=this.state,w=((v.tokenizerShown!=l.LOCATION_TYPES.Countries?"hidden_elem":'')),x=((v.tokenizerShown!=l.LOCATION_TYPES.Regions?"hidden_elem":'')),y=((v.tokenizerShown!=l.LOCATION_TYPES.Cities?"hidden_elem":''));return (m.DOM.div(null,m.DOM.div({className:"_5tpn"},o({'data-testid':"location_selector",onChange:this._onSelectorChange,value:v.tokenizerShown},s({'data-testid':"location_selector_country_item",value:l.LOCATION_TYPES.Countries},"Countries"),s({'data-testid':"location_selector_region_item",value:l.LOCATION_TYPES.Regions},"States\/Provinces"),s({'data-testid':"location_selector_city_item",value:l.LOCATION_TYPES.Cities},"Cities")),this._getCitiesRadiusSelector()),m.DOM.div({className:"_5tpn"},m.DOM.div({className:w},this._getCountriesTokenizer()),m.DOM.div({className:x},this._getRegionsTokenizer()),m.DOM.div({className:y},this._getCitiesTokenizer())),this._getWarningMessage()));}});e.exports=u;},null); __d("AdsTargetingNumberSelector.react",["XUISelector.react","React","cx"],function(a,b,c,d,e,f,g,h,i){var j=g.Option,k=h.createClass({displayName:'AdsTargetingNumberSelector',propTypes:{minimum:h.PropTypes.number.isRequired,maximum:h.PropTypes.number.isRequired,selectedValue:h.PropTypes.number.isRequired,onDataUpdate:h.PropTypes.func.isRequired,customMaxLabel:h.PropTypes.string},render:function(){var l=this.props,m=[];for(var n=l.minimum;n<=l.maximum;++n){var o=n;if(l.customMaxLabel&&n===l.maximum)o=l.customMaxLabel;m.push(j({key:n,value:n,className:"_1d1y"},o));}return (h.DOM.div({className:"_5tpo"},g({className:"_1d1z",onChange:l.onDataUpdate,value:l.selectedValue,maxheight:200},m)));}});e.exports=k;},null); __d("AdsTargetingAgeSelector.react",["AdsTargetingConstants","AdsTargetingNumberSelector.react","AdsTargetingTogglerSafeMixin","BoostedComponentEvents","React","cx","fbt"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=k.createClass({displayName:'AdsTargetingAgeSelector',mixins:[i],propTypes:{minSelectableAge:k.PropTypes.number,maxSelectableAge:k.PropTypes.number,initialMinAge:k.PropTypes.number,initialMaxAge:k.PropTypes.number,onDataUpdate:k.PropTypes.func.isRequired},getDefaultProps:function(){return {minSelectableAge:g.DEFAULT_MIN_SELECTABLE_AGE,maxSelectableAge:g.DEFAULT_MAX_SELECTABLE_AGE};},getInitialState:function(){return this._getInitialAges(this.props);},componentWillReceiveProps:function(o){this.setStateSafe(this._getInitialAges(o));},_getInitialAges:function(o){var p=o.minSelectableAge,q=o.maxSelectableAge,r=o.initialMinAge?o.initialMinAge:p,s=o.initialMaxAge?o.initialMaxAge:q;if(p>r)r=p;if(qthis.state.maxAge?p:this.state.maxAge;this._updateAges(p,q);},_onMaxAgeUpdate:function(o){var p=o.value,q=p1;},_hasAnyAudiences:function(){return (this.state.audiences.length+this._specialAudiences.length>0);},_addSpecialAudienceOptions:function(aa){var ba=this._specialAudiences,ca=ba.length;for(var da=0;da=0&&this.props.maxReach>this.props.minReach&&this.props.audienceSize>=this.props.maxReach);},_isAudienceBroad:function(){var q=this.props.audienceSize>g.AUDIENCE_BROAD;return q;},_getAverageReach:function(){return Math.round((this.props.minReach+this.props.maxReach)/2);},_computeFillWidth:function(){var q=this._getAverageReach();return Math.round(Math.sqrt(q)*Math.log(q));},_getFillWidth:function(){var q=this._computeFillWidth(),r=this._getTargetingBarWidth();if(q<.02*r){return Math.round(.02*r);}else if(q>.98*r)return Math.round(.98*r);return Math.round(q);},_getTargetingBarWidth:function(){return Math.round(Math.sqrt(this.props.audienceSize*Math.log(this.props.audienceSize))+this._computeFillWidth());},_renderInfoMessage:function(){var q=this.props.audienceSize,r=this._getAverageReach(),s=null;if(this._isAudienceBroad()){s="Your targeting is very broad. Narrow your targeted audience if you want your promotion to reach more people that you care about.";}else if(q&&(r/q)