text: if (self.CavalryLogger) { CavalryLogger.start_js(["GIB9r"]); }
  
  __d("OGComposerConstants",[],(function(a,b,c,d,e,f){e.exports={EditAttachmentURI:"/ajax/composerx/attachment/edit/",ExercisesTypeID:718343998201893,TransitivityStateIntransitive:2}}),null);
  __d("Token",["fbt","CSS","DataStore","DOM","Locale","UnicodeBidi"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,b){this.info=a,this.paramName=b}var c=a.prototype;c.getInfo=function(){return this.info};c.getText=function(){return this.info.text};c.getValue=function(){return this.info.uid};c.isFreeform=function(){return!!this.info.freeform};c.setSelected=function(a){b("CSS").conditionClass(this.getElement(),"uiTokenSelected",a);return this};c.getElement=function(){this.element||this.setElement(this.createElement());return this.element};c.setElement=function(a){b("DataStore").set(a,"Token",this);this.element=a;return this};c.isRemovable=function(){return b("CSS").hasClass(this.element,"removable")};c.getTextDirection=function(){var a=b("UnicodeBidi").isDirectionRTL(this.getText()),c=b("Locale").isRTL();if(a&&!c)return"rtl";return!a&&c?"ltr":null};c.createElement=function(a,c){__p&&__p();var d=this.paramName,e=this.getValue(),f=this.getText(),h=b("DOM").create("span",{className:"uiTokenText"},f),i=null;this.info.removable!==!1&&(i=b("DOM").create("a",{href:"#","aria-label":g._("Remove {item}",[g._param("item",f)]),className:"remove uiCloseButton uiCloseButtonSmall"}));a&&b("CSS").addClass(i,"uiCloseButtonSmallGray");e=b("DOM").create("input",{type:"hidden",value:e,name:d+"[]",autocomplete:"off"});f=b("DOM").create("input",{type:"hidden",value:f,name:"text_"+d+"[]",autocomplete:"off"});d={className:"removable uiToken"};var j=this.getTextDirection();j!==null&&(d.dir=j);j=b("DOM").create("span",d,[h,e,f,i]);a&&b("CSS").addClass(j,"uiTokenGray");if(c){d=b("DOM").create("i",{className:c});b("DOM").prependContent(j,d)}return j};return a}();e.exports=a}),null);
  __d("WeakToken",["CSS","Token"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.createElement=function(){var c=a.prototype.createElement.call(this,!0,"UFIWeakReferenceIcon");b("CSS").addClass(c,"uiTokenWeakReference");return c};return c}(b("Token"));e.exports=a}),null);
  __d("Tokenizer",["Arbiter","ArbiterMixin","CSS","DataStore","DOM","DOMQuery","Event","Focus","Input","Keys","Parent","StickyPlaceholderInput","Style","TextMetrics","Token","UserAgent_DEPRECATED","WeakToken","createObjectFrom","emptyFunction","mixin"],(function(a,b,c,d,e,f){__p&&__p();var g=20;a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c,d,e){var f;f=a.call(this)||this;f.element=c;f.typeahead=d;f.input=d.getCore().getElement();e&&f.init(e.tokenarea,e.param_name,e.initial_info,e.options);b("DataStore").set(f.element,"Tokenizer",babelHelpers.assertThisInitialized(f));return f}var d=c.prototype;d.init=function(a,c,d,e){this._handleEvents=this.handleEvents.bind(this),this.init=b("emptyFunction"),this.setTokenarea(a),this.paramName=c,this.placeholder||(this.placeholder=this.input.getAttribute("data-placeholder")||this.input.getAttribute("placeholder")||""),Object.assign(this,e),this.initEvents(),this.initTypeahead(),this.reset(d),this.initBehaviors(),setTimeout(this.adjustWidth.bind(this),0),b("Arbiter").inform("Tokenizer/init",this,"persistent"),this.inform("init",{tokens:this.getTokens()})};d.reset=function(a){this.tokens=[],this.unique={},a?this.populate(a):b("DOM").empty(this.tokenarea),this.updateTokenarea()};d.populate=function(a){var c=[];this.tokens=this.getTokenElements().map(function(b,d){d=a[d];c.push(this._tokenKey(d));return this.createToken(d,b)},this);this.unique=b("createObjectFrom")(c,this.tokens)};d.setTokenarea=function(a){__p&&__p();var c=!this.tokenarea;if(a!==this.tokenarea){if(this.tokenarea){b("DOM").remove(this.tokenarea);for(var d in this._tokenareaListeners)this._tokenareaListeners[d].remove()}this._tokenareaListeners=b("Event").listen(a,{click:this._handleEvents,keydown:this._handleEvents});this.tokenarea=a}c||this.reset()};d.getElement=function(){return this.element};d.getTypeahead=function(){return this.typeahead};d.getInput=function(){return this.input};d.initBehaviors=function(){this.behaviors=this.behaviors||[];if(this.behaviors instanceof Array)this.behaviors.forEach(function(a){a.behavior(this,a.config)}.bind(this));else for(var a in this.behaviors||{}){var b=window.TokenizerBehaviors&&window.TokenizerBehaviors[a];b.call(null,this,this.behaviors[a])}};d.initTypeahead=function(){__p&&__p();var a=this,c=this.typeahead.getCore();c.resetOnSelect=!0;c.setValueOnSelect=!1;c.preventFocusChangeOnTab=!this.typeaheadTabNavigation;if(this.inline){c=this.typeahead.getView();b("CSS").addClass(c.getElement(),"uiInlineTokenizerView")}this.typeahead.subscribe("select",function(b,c){return a.handleSelect(c)});this.typeahead.subscribe("blur",this.handleBlur.bind(this))};d.handleBlur=function(a){this.inform("blur",{event:a}),this.updatePlaceholder()};d.handleSelect=function(a){var b=a.selected;a=a.query;"uid"in b&&(this.updateInput(),this.addToken(this.createToken(b),a))};d.initEvents=function(){var a=b("UserAgent_DEPRECATED").firefox()<4?"keypress":"keydown";b("Event").listen(this.input,"paste",this.paste.bind(this));b("Event").listen(this.input,a,this.keydown.bind(this))};d.handleEvents=function(a){var c=a.getTarget(),d=c&&this.getTokenElementFromTarget(c);if(!d)return;(a.type!="keydown"||b("Event").getKeyCode(a)==b("Keys").RETURN)&&this.processEvents(a,c,d)};d.processEvents=function(a,c,d){if(b("Parent").byClass(c,"remove")){var e=d.nextSibling;e=e&&b("DOMQuery").scry(d.nextSibling,".remove")[0];d=this.getTokenFromElement(d);d=this.addTokenData(d,c);this.removeToken(d);this.focusOnTokenRemoval(a,e);a.kill()}};d.focusOnTokenRemoval=function(a,c){b("Focus").set(a.type=="keydown"&&c||this.input)};d.addTokenData=function(a,b){return a};d.keydown=function(a){this.inform("keydown",{event:a});a=b("Event").getKeyCode(a);var c=this.input;if(this.inline&&a==b("Keys").BACKSPACE&&b("Input").isEmpty(c)){a=this.getLastToken();a&&a.isRemovable()&&this.removeToken(a)}this.updateInput()};d.paste=function(a){this.inform("paste",{event:a}),this.updateInput(!0)};d.focusInput=function(){b("Focus").set(this.input)};d.updateInput=function(a){if(!this.inline)return;setTimeout(function(){this.adjustWidth(this.input.value),a&&(this.input.value=this.input.value)}.bind(this),20);b("StickyPlaceholderInput").setPlaceholderText(this.input,"");this.inform("resize")};d.setStickyPlaceholder=function(a){this.stickyPlaceholder=!0,this.setPlaceholder(a)};d.setPlaceholder=function(a){this.placeholder=a,this.stickyPlaceholder&&b("StickyPlaceholderInput").setPlaceholderText(this.input,a),this.updatePlaceholder()};d.updatePlaceholder=function(){if(!this.inline||this.input.value)return;var a=!this.tokens.length,c="";a||this.stickyPlaceholder?(this.adjustWidth(this.placeholder),c=this.placeholder):this.adjustWidth(this.input.value);b("StickyPlaceholderInput").setPlaceholderText(this.input,c)};d.adjustWidth=function(a){__p&&__p();if(!this.inline||!this._getIsInDOM())return;!a&&this.input.value===""&&(a=this.placeholder);var c=g;if(a!==this.placeholder||!this.getTokens().length||this.stickyPlaceholder){var d=b("Style").getFloat(this.getElement(),"width");a=this._getMetrics().measure(a);c=a.width+this._getWidthOffset()+10;c=c>=d?d:c}b("Style").set(this.input,"width",c+"px");this.inform("resize");b("Arbiter").inform("reflow")};d.getToken=function(a){return this.unique[a]||null};d.getTokens=function(){return this.tokens||[]};d.getTokenElements=function(){return b("DOMQuery").scry(this.tokenarea,"span.uiToken")};d.getTokenElementFromTarget=function(a){return b("Parent").byClass(a,"uiToken")};d.getTokenFromElement=function(a){return b("DataStore").get(a,"Token")};d.getTokenValues=function(){return!this.tokens?[]:this.tokens.map(function(a){return a.getValue()})};d.getFirstToken=function(){return this.tokens[0]||null};d.getLastToken=function(){return this.tokens[this.tokens.length-1]||null};d.hasMaxTokens=function(){return this.maxTokens&&this.maxTokens<=this.tokens.length};d.createToken=function(a,c){var d=this.getToken(this._tokenKey(a));d||(d=a.weak_reference?new(b("WeakToken"))(a,this.paramName):new(b("Token"))(a,this.paramName));c&&d.setElement(c);return d};d.addToken=function(a,c){__p&&__p();if(this.hasMaxTokens())return;var d=this._tokenKey(a.getInfo());if(d in this.unique)return;this.unique[d]=a;this.tokens.push(a);this.insertToken(a);this.updateTokenarea();this.inform("addToken",a);this.inform("addTokenWithQuery",{token:a,query:c});this.inform("changeTokens");b("Arbiter").inform("Form/change",{node:this.element})};d.insertToken=function(a){b("DOM").appendContent(this.tokenarea,a.getElement())};d.removeToken=function(a){__p&&__p();if(!a)return;var c=this.tokens.indexOf(a);if(c<0)return;this.tokens.splice(this.tokens.indexOf(a),1);delete this.unique[this._tokenKey(a.getInfo())];b("DOM").remove(a.getElement());this.updateTokenarea();this.inform("removeToken",a);this.inform("changeTokens");b("Arbiter").inform("Form/change",{node:this.element})};d.removeAllTokens=function(){this.reset(),this.inform("changeTokens"),this.inform("removeAllTokens")};d.updateTokenarea=function(){var a=this.typeahead.getCore(),c=this.getTokenValues();this.excludeDuplicates&&(this._exclusions||(this._exclusions=a.getExclusions()),a.setExclusions(c.concat(this._exclusions)));a.setEnabled(!this.hasMaxTokens());this.updateTokenareaVisibility();this.updatePlaceholder();this.inform("resize");b("Arbiter").inform("reflow")};d.updateTokenareaVisibility=function(){b("CSS").conditionShow(this.tokenarea,this.tokens.length!==0)};d._tokenKey=function(a){return a.uid+(a.freeform?":":"")};d._getWidthOffset=function(){if(this._widthOffset===null){var a=this.input.clientWidth,c=b("Style").getFloat(this.input,"width");a==c?this._widthOffset=b("Style").getFloat(this.input,"paddingLeft")+b("Style").getFloat(this.input,"paddingRight"):this._widthOffset=0}return this._widthOffset};d._getMetrics=function(){this._metrics||(this._metrics=new(b("TextMetrics"))(this.input,this.inline));return this._metrics};d._getIsInDOM=function(){return this._isInDOM||(this._isInDOM=b("DOMQuery").contains(document.body,this.input))};c.getInstance=function(a){a=b("Parent").byClass(a,"uiTokenizer");return a?b("DataStore").get(a,"Tokenizer"):null};c.init=function(a,b){a.init(b.tokenarea,b.param_name,b.initial_info,b.options)};return c}(b("mixin")(b("ArbiterMixin")));Object.assign(a.prototype,{inline:!1,maxTokens:null,excludeDuplicates:!0,placeholder:"",_widthOffset:null,_metrics:null});e.exports=a}),null);
  __d("ComposerXTokenizer",["CSS","CurrentUser","DOM","DOMQuery","Token","Tokenizer"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b,c,d){b=a.call(this,b,c,d)||this;b._loadingIndicatorText="";return b}var d=c.prototype;d.createDecorativeToken=function(a,c){var d=new(b("Token"))(a,this.paramName);c=d.createElement(!1,c);d.setElement(c);b("CurrentUser").getID()==a.uid&&b("DOMQuery").scry(c,'input[type="hidden"]').forEach(b("DOM").remove);return d};d.setLoadingIndicatorText=function(a){this._loadingIndicatorText=a};d.addLoadingIndicator=function(){if(this._loadingIndicator)return;this._loadingIndicator=this.createDecorativeToken({text:this._loadingIndicatorText},"loadingIndicator");b("DOM").appendContent(this.tokenarea,this._loadingIndicator.element);this.updateTokenarea()};d.removeToken=function(b){b===this._loadingIndicator?(this.removeLoadingIndicator(),this.inform("removeLoadingIndicator")):a.prototype.removeToken.call(this,b)};d.removeLoadingIndicator=function(){if(!this._loadingIndicator)return;b("DOM").remove(this._loadingIndicator.element);this._loadingIndicator=null;this.updateTokenarea()};d.updateTokenareaVisibility=function(){b("CSS").conditionShow(this.tokenarea,this.tokens.length!==0||this._loadingIndicator)};d.findToken=function(a){a=this._tokenKey(a);return a in this.unique?this.unique[a]:null};d.replaceToken=function(a){__p&&__p();var c=this.findToken(a.getInfo());if(c){var d=c.getElement();c.setElement(a.getElement());b("DOM").replace(d,a.getElement());return!0}else{this.addToken(a);return!1}};return c}(b("Tokenizer"));e.exports=a}),null);
  __d("ComposerXImplicitLocation",[],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,b,c,d){this._citySharer=a,this._placeTagger=b,this._hiddenInput=c,this._subscriptions=[],this._subscribeChangeCity(),this._subscribeSelect(),this._subscribeUnselect()}var b=a.prototype;b.cleanup=function(){while(this._subscriptions.length)this._subscriptions.pop().unsubscribe()};b.disable=function(){this._placeTagger.getCore().getValue()||(this._disableImplicit=!0,this._citySharer.saveCityInfo(),this._citySharer.clearCity()),this._placeTagger.getData().setBootstrapEndpoint("/ajax/places/typeahead")};b.enable=function(){this._placeTagger.getCore().getValue()||(this._citySharer.restoreCityInfo(),this._disableImplicit=!1),this._placeTagger.getData().resetBootstrapEndpoint()};b.selectPlace=function(a){a.place_type=="city"&&(this._citySharer.changeCity(a.text,a.uid,a.city_id),this._placeTagger.getCore().setCity(a.city_id,!0)),a.city_id?!this._disableImplicit?this._citySharer.changeCity(a.city_name,a.city_page_id,a.city_id):this._citySharer.setCityData(a.city_name,a.city_page_id,a.city_id):this._citySharer.clearCity(),this._citySharer.addPlace(a)};b.unselectPlace=function(){this._hiddenInput.value=this._citySharer.getValue(),this._citySharer.clearPlace(),this._disableImplicit&&this.disable()};b._subscribeChangeCity=function(){this._subscriptions.push(this._citySharer.subscribe("change",function(a,b){this._placeTagger.getCore().getHiddenValue()||(this._hiddenInput.value=this._citySharer.getValue()),b&&b.city_id&&this._placeTagger.getCore().setCity(b.city_id,!0)}.bind(this)))};b._subscribeSelect=function(){this._subscriptions.push(this._placeTagger.subscribe("select",function(a,b){this.selectPlace(b.selected)}.bind(this)))};b._subscribeUnselect=function(){this._subscriptions.push(this._placeTagger.subscribe("unselect",this.unselectPlace.bind(this)))};return a}();e.exports=a}),null);
  __d("PlaceTagType",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({CITY:"city",STATE_PROVINCE:"state_province",COUNTRY:"country",PLACE:"place",EVENT:"event",RESIDENCE:"residence",TEXT:"text"})}),null);
  __d("PlaceUtils",["PlaceTagType"],(function(a,b,c,d,e,f){a={placesClose:function(a,b,c,d){a=a||0;b=b||0;c=c||0;d=d||0;return Math.abs(a-c)<1e-5&&Math.abs(b-d)<1e-5},isNonSpecificPlace:function(a){return a=="city"||a=="state_province"||a=="country"}};e.exports=a}),null);
  __d("ComposerXStandardTagger",["cx","Arbiter","ArbiterMixin","AsyncRequest","ComposerXImplicitLocation","CSS","CurrentUser","DOM","Event","Focus","Input","Keys","Parent","PlaceUtils","StickyPlaceholderInput","WeakToken","getOrCreateDOMID","isEmpty","mixin"],(function(a,b,c,d,e,f,g){__p&&__p();var h;a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){__p&&__p();var c;c=a.call(this)||this;c._listeners=[];c._subscriptions=[];c._onCleanup=[];c._config=b||{};c._taggers={};c._taggerIcons={};c._onTaggerShowCallbacks={};c._onTaggerHideCallbacks={};c._currentTagger=null;c._sponsorRelationshipSelector=null;c._sharedToSponsorCheckbox=null;c._taggerSideElements={};c._socialTextSelectors={};return c}var d=c.prototype;d.init=function(a){__p&&__p();var c=this;this._mentionsInput=a.getComponent("maininput");this._withTagger=a.getComponent("withtagger");this._withTaggerIcon=a.getComponent("withtaggericon");this._placeTagger=a.getComponent("placetagger");this._hiddenExplicitPlace=a.getComponent("explicitplaceinput");this._citySharerIcon=a.getComponent("citysharericon");this._hiddenPlaceInput=a.getComponent("hiddenplaceinput");this._placeNameInput=a.getComponent("placenameinput");this._sessionID=a.getComponent("hiddensessionid");this._editParams=a.getComponent("editparams");this._interestTagger=a.getComponent("interesttagger");this._interestTaggerIcon=a.getComponent("pagestargetingicon");this._hasMentionsInput()&&(this._input=b("DOM").scry(this._mentionsInput.element,"textarea.input")[0],b("Arbiter").subscribe("composer/ogCustomIconSelected",function(){b("Focus").set(c._input)}));this._withTagger&&this.initAndRegisterWithTagger();this._placeTagger&&this.initAndRegisterPlaceTagger();this._placeTagger&&this.registerAutoEventSuggestion();this.initAndRegisterInterestTagger();this._hasMentionsInput()&&this._listeners.push(b("Event").listen(this._mentionsInput.element,"mousedown",this._onMentionsInputClicked.bind(this)))};d.registerAutoEventSuggestion=function(){this._subscriptions.push(b("Arbiter").subscribe("Events/autoSuggestionConfirmed",function(a,c){this._toggleTagger("place"),b("Arbiter").inform("Events/autoSuggestionSelected",c),b("Focus").set(this._input)}.bind(this)))};d.initAndRegisterPlaceTagger=function(){this.registerTagger("place",this._placeTagger,this._citySharerIcon),this.initTaggerInput("place",this._placeTagger.instance.getCore().getElement()),this._initCitySharer(),this._initPlaceTagger()};d.initAndRegisterWithTagger=function(){this.registerTagger("with",this._withTagger,this._withTaggerIcon),this.initTaggerInput("with",this._withTagger.instance.getInput()),this._initWithTagger(),this.isEditComposer()&&this._updateWithTaggerUI()};d.initAndRegisterInterestTagger=function(){if(!this._interestTagger||!this._interestTaggerIcon)return;this.registerTagger("interest",this._interestTagger,this._interestTaggerIcon);this.initTaggerInput("interest",this._interestTagger.instance.getInput());this._subscriptions.push(this._interestTagger.instance.subscribe(["addToken","removeToken","init"],this._updateInterestTaggerUI.bind(this)))};d.cleanup=function(){this.hideTaggers(),this._listeners.forEach(function(a){a.remove()}),this._listeners=[],this._subscriptions.forEach(function(a){a.unsubscribe()}),this._subscriptions=[],this._onCleanup.forEach(function(a){a()}),this._onCleanup=[],this._citySharerIcon&&this._implicitLocation.cleanup(),this._brComposerUpsell=null};d.reset=function(){this._socialTextRequest&&this._socialTextRequest.abort()};d.registerTagger=function(a,c,d){this._taggers[a]=c,this.hasIcons()&&(this._taggerIcons[a]=d,this._listeners.push(b("Event").listen(this._taggerIcons[a].element,"click",this._toggleTagger.bind(this,a))))};d.registerTaggerSideElement=function(a,b,c){a in this._taggerSideElements||(this._taggerSideElements[a]={}),b in this._taggerSideElements[a]||(this._taggerSideElements[a][b]=c)};d.hideTaggerIcons=function(){for(var a in this._taggers)b("CSS").hide(this._taggerIcons[a].element)};d.showTaggerIcons=function(){for(var a in this._taggers)b("CSS").show(this._taggerIcons[a].element)};d.initTaggerInput=function(a,c){var d=this._config.placeholders||{};d[a]&&b("StickyPlaceholderInput").setPlaceholderText(c,d[a]);this._onTaggerShowCallbacks[a]=b("Focus").set.bind(null,c);this._listeners.push(b("Event").listen(c,"keydown",function(a){b("Event").getKeyCode(a)==b("Keys").RETURN&&!b("Input").getValue(a.getTarget())&&(this.hideTaggers(),setTimeout(b("Focus").set.bind(null,this._input),0))}.bind(this)))};d.setTaggerCallback=function(a,b){this._onTaggerShowCallbacks[a]=b};d.setTaggerHideCallback=function(a,b){this._onTaggerHideCallbacks[a]=b};d._initCitySharer=function(){this._implicitLocation=new(b("ComposerXImplicitLocation"))(this._citySharerIcon.instance,this._placeTagger.instance,this._hiddenPlaceInput.element),this._config.disableImplicitCity?this._implicitLocation.disable():this._implicitLocation.enable()};d.switchTaggerInResponseToClick=function(a){a=a.getTarget();b("Parent").byClass(a,"withToken")?this.switchToTagger("with"):b("Parent").byClass(a,"placeToken")?this.switchToTagger("place"):b("Parent").byClass(a,"og_composer_object")?this.switchToTagger("ogtagger"):this._hideTaggersFromMentionsInputClick()};d._onMentionsInputClicked=function(a){this.switchTaggerInResponseToClick(a)};d._hideTaggersFromMentionsInputClick=function(){this.hideTaggers()};d._initWithTagger=function(){this._subscriptions.push(this._withTagger.instance.subscribe(["addToken","removeToken","init"],this._updateWithTaggerUI.bind(this))),this.refreshWithTaggerPlaceholder()};d.getWithTaggerPlaceholder=function(){return this._config.placeholders?this._config.placeholders["with"]:null};d.getCitySharerIcon=function(){return this._citySharerIcon};d.refreshWithTaggerPlaceholder=function(){var a=this.getWithTaggerPlaceholder();a&&this._withTagger.instance.setPlaceholder(a)};d._initPlaceTagger=function(){this._subscriptions.push(this._placeTagger.instance.subscribe("select",function(a,c){this._hiddenPlaceInput.element.value=c.selected.uid,this._placeNameInput.element.value=c.selected.text,this._hiddenExplicitPlace.element.value=!0,this._placeType=c.selected.place_type,this.updateTaggedText(),this.hideTaggers(),b("Focus").set(this._input)}.bind(this))),this._subscriptions.push(this._placeTagger.instance.subscribe("unselect",function(a,b){this._hiddenExplicitPlace.element.value=!1,this._placeNameInput.element.value="",this._placeType=null,this.updateTaggedText()}.bind(this)))};d.addSubscription=function(a){this._subscriptions.push(a)};d.addListener=function(a){this._listeners.push(a)};d.hasIcons=function(){return!0};d._showTagger=function(a){b("Arbiter").inform("showTagger");this._currentTagger=a;b("CSS").show(this._taggers[a].element);this.hasIcons()&&b("CSS").addClass(this._taggerIcons[a].element,"_509o");a==="with"&&new(b("AsyncRequest"))().setURI("/ajax/fof/user_education.php").setData({increment:1}).send();this._onTaggerShowCallbacks[a]&&this._onTaggerShowCallbacks[a]();if(a in this._taggerSideElements)for(var c in this._taggerSideElements[a])b("CSS").show(this._taggerSideElements[a][c].element)};d._hideTagger=function(a){b("CSS").hide(this._taggers[a].element);this.hasIcons()&&b("CSS").removeClass(this._taggerIcons[a].element,"_509o");this._onTaggerHideCallbacks[a]&&this._onTaggerHideCallbacks[a]();this._currentTagger===a&&(this._currentTagger=null);if(a in this._taggerSideElements)for(var c in this._taggerSideElements[a])b("CSS").hide(this._taggerSideElements[a][c].element)};d.hideTaggers=function(){for(var a in this._taggers)this._hideTagger(a);this._currentTagger=null;this.inform("hidetaggers")};d.isAnyTaggerShown=function(){return!!this._currentTagger};d.switchToTagger=function(a){this.hideTaggers(),this._showTagger(a)};d._toggleTagger=function(a){b("CSS").shown(this._taggers[a].element)?this.hideTaggers():this.switchToTagger(a)};d._getTaggedTextData=function(){if(this._hasPlaceTagger())var a=this._placeTagger.instance.getCore(),c=a.getHiddenValue(),d=c&&a.getValue();a=(this._withTagger&&this._withTagger.instance.getTokens()||[]).filter(function(a){return a.info.uid!=b("CurrentUser").getID()});return!a.length&&!d?{}:{people:a.map(function(a){return a.info.uid}),weakReferences:a.filter(function(a,c,d){return a instanceof b("WeakToken")}).map(function(a){return a.info.uid}),place:d,placeID:c,isNonSpecificPlace:b("PlaceUtils").isNonSpecificPlace(this._placeType)}};d.updateTaggedText=function(){__p&&__p();if(this._hasMentionsInput()){var a=this._getTaggedTextData();this.getExtraTaggedTextData&&(a=Object.assign(a,this.getExtraTaggedTextData()));++this._requestID;if((h||(h=b("isEmpty")))(a)){this._mentionsInput.instance.setAuxContent(null);b("Arbiter").inform("reflow");return}a.requestID=this._requestID;a.sessionID=this._sessionID.element.value;this._socialTextRequest=new(b("AsyncRequest"))();this._socialTextRequest.setURI("/ajax/metacomposer/social_text.php").setData(a).setHandler(this._handleSocialText.bind(this)).send()}};d._updateWithTaggerUI=function(){if(!this._withTagger||!this._withTaggerIcon)return;setTimeout(b("StickyPlaceholderInput").update.bind(null,this._withTagger.instance.getInput()),0);b("CSS").conditionClass(this._withTaggerIcon.element,"_1dsa",this._withTagger.instance.getTokens().length>0);this.updateTaggedText()};d._updateInterestTaggerUI=function(){b("CSS").conditionClass(this._interestTaggerIcon.element,"_21yl",this._interestTagger.instance.getTokens().length>0)};d._handleSocialText=function(a){if(a.payload.requestID===this._requestID){var c=this._mentionsInput.instance;c.setAuxContent(a.payload.rendered);a=c.getAuxContentRoot();a&&this._input.setAttribute("aria-labelledby",b("getOrCreateDOMID")(a));b("Arbiter").inform("reflow")}};d._hasMentionsInput=function(){return this._mentionsInput!==void 0};d._hasPlaceTagger=function(){return this._placeTagger!==void 0};d.isEditComposer=function(){return!!this._editParams};return c}(b("mixin")(b("ArbiterMixin")));Object.assign(a.prototype,{_placeType:null,_requestID:0,_socialTextRequest:null});e.exports=a}),null);
  __d("ComposerXOGTaggerBehavior",["csx","cx","Arbiter","ComposerXController","CSS","DOM","DOMQuery","MinutiaeVerbs","OGComposerConstants","URI"],(function(a,b,c,d,e,f,g,h){__p&&__p();var i,j=null;a={initOGTagger:function(a){__p&&__p();var c=this;this._attachmentRoot=a.getRoot();this._showPreview=a.allowOGTagPreview();this._ogTagger=a.getComponent("ogtagger");this._ogIcon=a.getComponent("ogtaggericon");this._removeUrl=a._config&&a._config.remove_url||"/ajax/composerx/attachment/status/";j=this._ogTagger.instance;this.registerTagger("ogtagger",this._ogTagger,this._ogIcon);this.setTaggerCallback("ogtagger",this._ogTagger.instance.showTagger.bind(this._ogTagger.instance));this.setTaggerHideCallback("ogtagger",this._ogTagger.instance.hideTagger.bind(this._ogTagger.instance));this.addSubscription(this._ogTagger.instance.subscribe("changed",this._handleOGActionChanged.bind(this)));this.addSubscription(this._ogTagger.instance.subscribe("unselect",this._handleOGActionRemoved.bind(this)));this._placeTagger&&this.addSubscription(this._placeTagger.instance.subscribe(["select","unselect"],this._handlePlaceChanged.bind(this)));this.addSubscription(b("Arbiter").subscribe("composer/initializedAttachment",function(){this._ogTagger.instance.isSet()&&b("Arbiter").inform("composer/deactivateDragdrop")}.bind(this)));this.addSubscription(b("Arbiter").subscribe("composer/ogCustomIconSelected",function(a,b){if(typeof b!=="object"){c._ogTagger.instance.setCustomIconID(b);return}c._ogTagger.instance.setCustomIconID(b.icon_id)}));this.addSubscription(b("Arbiter").subscribe("composer/ogIconPickerOpened",function(a,b){if(typeof b!=="object"){c._ogTagger.instance.markIconPickerOpened();return}c._ogTagger.instance.markIconPickerOpened()}));this.addSubscription(b("Arbiter").subscribe("composer/updateViewerLocationEstimate",function(a,b){return c._handleViewerLocationChanged(b)}));this.subscribe("hidetaggers",this.hideTypeaheadView.bind(this));this._updateOGIconState();this._updateWithTaggerUI();if(!this._config.preventUnfinishedPostAlert){var d=a.getComposerID();a=a.getRoot();while(a!=null){a=a.parentNode;if(a.id==d)break}b("ComposerXController").registerConditionForComposerCancel(a,function(){return j&&j.hasChanges&&j.hasChanges()})}},_handleOGActionChanged:function(){__p&&__p();this._ogTagger.instance.setCustomIconID("");this.updateTaggedText();this._updateOGIconState();if(this._showPreview&&this._ogTagger.instance.isSet()){b("Arbiter").inform("composer/deactivateDragdrop");var a=this._ogTagger.instance.getObjectID();if(a){var c=this._ogTagger.instance.getActionTypeID(),d=b("DOM").find(this._attachmentRoot,'input[name="hide_object_attachment"]');d.value=0;this._config.objectPreviewID==a&&this._showAttachmentPreview();if(this._config.hasShareScrape)return;this.isEditComposer()?d=new(i||(i=b("URI")))(b("OGComposerConstants").EditAttachmentURI):d=new(i||(i=b("URI")))(this._removeUrl);d.addQueryData({override_preview_object_id:!0,preview_object_id:a,preview_action_type_id:c,og_action_changed:!0});b("ComposerXController").getAttachment(this._attachmentRoot,d.toString());c==b("MinutiaeVerbs").COMPOSER_ATTENDS&&b("Arbiter").inform("composer/attendingMinutiaeAdded",{info:{original_id:a}})}}else b("Arbiter").inform("composer/reactivateDragdrop"),this._hideAttachmentPreview()},_handleOGActionRemoved:function(){b("Arbiter").inform("composer/attendingMinutiaeRemoved",{info:{}})},_updateOGIconState:function(){b("CSS").conditionClass(this._ogIcon.element,"_4-jh",this._ogTagger.instance.isSet()),this._ogTagger.instance.isSet()?(this._ogIcon.element.setAttribute("aria-selected","true"),this._ogIcon.element.removeAttribute("role"),this._hideTagger("ogtagger")):(this._ogIcon.element.setAttribute("aria-selected","false"),this._ogIcon.element.setAttribute("role","button"))},_handleViewerLocationChanged:function(a){if(!a.latitude||!a.longitude)return;this._ogTagger.instance.setViewerCoords&&this._ogTagger.instance.setViewerCoords(a)},_handlePlaceChanged:function(a,b){a=b.selected?b.selected.uid:0;this._ogTagger.instance.setPlaceID(a)},_showAttachmentPreview:function(){var a=b("DOM").scry(this._attachmentRoot,"div.fbComposerOGAttachmentPreview");a[0]&&b("CSS").show(a[0])},_hideAttachmentPreview:function(){var a=b("DOM").scry(this._attachmentRoot,"div.fbComposerOGAttachmentPreview");a[0]&&b("CSS").hide(a[0])},cleanupOGTagger:function(){this._showAttachmentPreview(),j=null},getExtraTaggedTextData:function(){var a={};this.getMoreExtraTaggedTextData&&(a=this.getMoreExtraTaggedTextData());if(!this._ogTagger||!this._ogTagger.instance.isSet())return a;a=Object.assign(a,{actionID:this._ogTagger.instance.getActionTypeID(),objectID:this._ogTagger.instance.getObjectID(),objectStr:this._ogTagger.instance.getObjectStr(),objectQuery:this._ogTagger.instance.getObjectQuery(),actionIconID:this._ogTagger.instance.getCustomIconID(),iconPickerOpened:this._ogTagger.instance.getIconPickerOpened()});return a},isOGTaggerSet:function(){return this._ogTagger&&this._ogTagger.instance.isSet()},hideTypeaheadView:function(){this._ogTagger.instance.getNounTypeahead().getView().hide()},updateSuggestion:function(a,c){__p&&__p();if(!a)return;var d=b("DOMQuery").find(this._ogIcon.element,"._5xlw");if(!d)return;var e=parseInt(d.innerText,10)||0;b("DOM").setContent(d,a+e);this._ogTagger.instance.suggestIconShown()||this._ogTagger.instance.showSuggestCount(d);c||(c="");this._ogTagger.instance.getVerbTypeahead().getData().bootstrapData.user_input=c},saveSuggestion:function(a,b){var c=this._ogTagger.instance.getVerbTypeahead().getData().bootstrapData.saved_suggestions||{};c[b]=a;this._ogTagger.instance.getVerbTypeahead().getData().bootstrapData.saved_suggestions=c}};e.exports=a}),null);
  __d("ComposerXStandardTaggerWithOG",["ComposerXOGTaggerBehavior","ComposerXStandardTagger","classWithMixins","mixin"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.init=function(b){a.prototype.init.call(this,b),this.initOGTagger(b)};c.cleanup=function(){a.prototype.cleanup.call(this),this.cleanupOGTagger()};return b}(b("classWithMixins")(b("ComposerXStandardTagger"),b("mixin")(b("ComposerXOGTaggerBehavior"))));e.exports=a}),null);
  __d("BanzaiNectarSimple",["Banzai"],(function(a,b,c,d,e,f){function a(a){return{log:function(c,d,e){d={e:d,a:e};b("Banzai").post("nectar_simple:"+c,d,a)}}}c=a();c.create=a;e.exports=c}),null);
  __d("OGComposerTagger",["csx","Arbiter","ArbiterMixin","BanzaiNectarSimple","CSS","DOM","Event","Input","QE","RTLKeys","StickyPlaceholderInput","areEqual","mixin","tidyEvent"],(function(a,b,c,d,e,f,g){__p&&__p();var h;a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c,d,e,f,g,h,i,j,k,l,m){__p&&__p();var n;n=a.call(this)||this;n._verbTypeahead=c;n._nounTypeahead=d;n._hiddenObjectStr=e;n._suggestionMechanismInput=f;n._suggestionLoggingDataInput=j;n._nounTypeaheadDatasources=k;n._defaultNounTypeaheadDatasource=n._nounTypeahead.getData();n._customIconInput=g;n._objectQuery=null;n._suggestIconElement=null;n._suggestIconShown=!1;n._nounTypeaheadMetrics=i;n._iconPickerOpened=!1;n._placeSpecificVerbList=l;n._enableVerbPrefetching=m;n._initialObjectStr=n.getObjectStr();n._initialObjectID=n.getObjectID();h&&(b("DOM").setContent(n._getVerbSpan(),h),b("CSS").show(n._getVerbSpan()));n._prefetchVerbs();c.getCore().preventFocusChangeOnTab=!0;d.getCore().preventFocusChangeOnTab=!0;d.getCore().keepFocused=!1;n._watchCloseButton(d);e=d.getCore().getElement();f=c.getCore().getElement();b("tidyEvent")([c.subscribe("select",function(a,b){return n._handleVerbChange(b.selected)}),d.subscribe("select",function(a,b){return n._handleNounChange(b.selected)}),d.subscribe("unselect",function(){return n._handleNounUnselect()}),b("Event").listen(f,"keydown",function(a){(b("Event").getKeyCode(a)==b("RTLKeys").SPACE||b("Event").getKeyCode(a)==b("RTLKeys").getRight())&&(c.getView().select(!1),a.kill()),b("Event").getKeyCode(a)!=b("RTLKeys").BACKSPACE&&b("Event").getKeyCode(a)!=b("RTLKeys").DELETE&&b("Event").getKeyCode(a)!=b("RTLKeys").SPACE&&c.getData().value!==""&&b("BanzaiNectarSimple").log("og_composer_waterfall","verb_typeahead",{search_string:c.getData().value})}),b("Event").listen(e,"keydown",function(a){(b("Event").getKeyCode(a)==b("RTLKeys").BACKSPACE||b("Event").getKeyCode(a)==b("RTLKeys").getLeft())&&b("Input").isEmpty(this._getNounInput())&&this._showVerbTypeahead()}.bind(babelHelpers.assertThisInitialized(n))),b("Arbiter").subscribe("structuredSuggestion/add",function(a,b){this._handleVerbChange(b)}.bind(babelHelpers.assertThisInitialized(n))),b("Arbiter").subscribe("ogComposer/asyncSuggest",function(a,c){a=JSON.parse(c);if(!this.isSet()){this.setVerbandNoun(a.verb,a.noun);b("Arbiter").inform("ogComposer/asyncSuggest/display",c);var d=!1;this.subscribe("changed",function(a){d||(d=!0,b("Arbiter").inform("ogComposer/asyncSuggest/xout",c))})}}.bind(babelHelpers.assertThisInitialized(n))),b("Arbiter").subscribe("highConfSuggestion/saved",function(){n._verbTypeahead.getData().dirty(),n._verbTypeahead.getData().bootstrap()})]);return n}var d=c.prototype;d._prefetchVerbs=function(a){if(this._enableVerbPrefetching){a=this._verbTypeahead.getData();a.bootstrapData.is_prefetching=!0;a.bootstrap();a.bootstrapData.is_prefetching=!1}};d._prefetchNouns=function(a,b){__p&&__p();for(var c in this._nounTypeaheadDatasources)if(Object.prototype.hasOwnProperty.call(this._nounTypeaheadDatasources,c)){var d=this._nounTypeaheadDatasources[c];d.init();d.dirty();a!=null&&(d.bootstrapData[a]=b,d.queryData[a]=b);d.queryData.at_id=c;d.bootstrapData.at_id=c;d.bootstrapData.is_prefetching=!0;d.bootstrap();d.bootstrapData.is_prefetching=!1}};d._updateNounTypeahead=function(a,c){var d=this._defaultNounTypeaheadDatasource;if((h||(h=b("areEqual")))(c,d.bootstrapData[a]))return;this._prefetchNouns(a,c);d.bootstrapData[a]=c;d.queryData[a]=c;d.bootstrapData.at_id&&(this._nounTypeaheadMetrics.init(this._nounTypeahead),d.dirty(),d.bootstrap())};d.showTagger=function(){b("Arbiter").inform("showOGTagger"),this._nounTypeahead.getCore().setEnabled(!0),this._suggestionMechanismInput.value==="gk_based_production_prompt_classifier"&&(this._suggestion_logging_data&&(this._suggestion_logging_data.prompt_removed=!0,this._suggestionLoggingDataInput.value=JSON.stringify(this._suggestion_logging_data))),this.isSet()&&!this._suggestionMechanismInput.value?this._showNounTypeahead():this.isSet()?(this._verbTypeahead.getCore().reset(),this._nounTypeahead.getCore().reset(),this.inform("changed"),this._showVerbTypeahead()):this._showVerbTypeahead(),this._suggestIconElement&&(b("CSS").hide(this._suggestIconElement),this._suggestIconShown=!1,this._badgeClicked=!0),this._prefetchNouns(),b("QE").logExposure("www_react_composer")};d.hideTagger=function(){this._nounTypeahead.getCore().setEnabled(!1)};d.isSet=function(){return!!(this.getObjectID()||this.getObjectStr())};d.hasChanges=function(){return this.getObjectID()!==this._initialObjectID||this.getObjectStr()!==this._initialObjectStr};d.reset=function(){this._nounTypeahead.getCore().reset(),this._verbTypeahead.getCore().reset(),this._hiddenObjectStr.value="",this._objectQuery=null,this.setPlaceID(0),this.setCustomIconID(""),this._iconPickerOpened=!1};d.setVerbandNoun=function(a,b){this._verbTypeahead.getCore().select(a),this._handleVerbChange(a),this._nounTypeahead.getCore().select(b),this._handleNounChange(b)};d.getActionTypeID=function(){return this._verbTypeahead.getCore().getHiddenValue()};d.getObjectID=function(){return this._nounTypeahead.getCore().getHiddenValue()};d.setViewerCoords=function(a){a=JSON.stringify(a);this._updateNounTypeahead("coords",a)};d.setPlaceID=function(a){this._updateNounTypeahead("place_id",a);var b=this._verbTypeahead.getData();this._placeSpecificVerbList&&a!=b.bootstrapData.place_id&&(b.bootstrapData.place_id=a,b.queryData!==void 0&&(b.queryData.place_id=a),b.dirty(),this._prefetchVerbs())};d.getObjectStr=function(){return this._hiddenObjectStr.value};d.getObjectQuery=function(){return this._objectQuery};d.getVerbTypeahead=function(){return this._verbTypeahead};d.getNounTypeahead=function(){return this._nounTypeahead};d._handleVerbChange=function(a){__p&&__p();this._suggestionMechanismInput.value=a.suggestion_mechanism;a.suggestion_config?(this._suggestion_logging_data=a.suggestion_config,this._suggestionLoggingDataInput.value=JSON.stringify(this._suggestion_logging_data)):this._suggestion_logging_data&&(this._suggestion_logging_data.erased=!0,this._suggestionLoggingDataInput.value=JSON.stringify(this._suggestion_logging_data));if(a.type==="page"){this._nounTypeahead.getCore().setHiddenValue(a.uid);this._verbTypeahead.getCore().setHiddenValue(a.at_id);this.inform("changed");return}var c=null;Object.prototype.hasOwnProperty.call(this._nounTypeaheadDatasources,a.uid)?c=this._nounTypeaheadDatasources[a.uid]:(c=this._defaultNounTypeaheadDatasource,c.dirty(),c.queryData.at_id=a.uid,c.bootstrapData.at_id=a.uid);c!==this._nounTypeahead.getData()&&this._nounTypeahead.swapData(c);this._nounTypeaheadMetrics.resetWithData(this._nounTypeahead);c.bootstrap(!0);this._nounTypeahead.getView().setContext(a);b("StickyPlaceholderInput").setPlaceholderText(this._nounTypeahead.getCore().getElement(),a.prompt);a.prompt_text?(b("CSS").show(this._getVerbSpan()),b("DOM").setContent(this._getVerbSpan(),a.prompt_text)):b("CSS").hide(this._getVerbSpan());this._showNounTypeahead()};d._handleNounUnselect=function(){this._hiddenObjectStr.value="",this.inform("changed"),this.inform("unselect")};d._handleNounChange=function(a){this._suggestionMechanismInput.value="",a.uid?this._hiddenObjectStr.value="":(this._nounTypeahead.getCore().setHiddenValue(""),this._hiddenObjectStr.value=a.text.trim()),this._objectQuery=a.query,this.inform("changed")};d._getVerbSpan=function(){this._verbSpan||(this._verbSpan=b("DOM").create("span",{className:"verbText"}),b("DOM").prependContent(this._nounTypeahead.getElement(),this._verbSpan),b("tidyEvent")(b("Event").listen(this._verbSpan,"click",function(){this._showVerbTypeahead();return!1}.bind(this))));return this._verbSpan};d._getNounInput=function(){return this._nounTypeahead.getCore().getElement()};d._showVerbTypeahead=function(){b("CSS").show(this._verbTypeahead.getElement());b("CSS").hide(this._nounTypeahead.getElement());this._verbTypeahead.getCore().reset();this._nounTypeahead.getCore().reset();this._verbTypeahead.getCore().getElement().focus();var a=this._verbTypeahead.getData();this._enableVerbPrefetching&&this._placeSpecificVerbList?a.bootstrap(!0):a.bootstrap()};d._showNounTypeahead=function(){b("CSS").hide(this._verbTypeahead.getElement()),b("CSS").show(this._nounTypeahead.getElement()),this._nounTypeahead.getCore().getElement().focus()};d._watchCloseButton=function(a){var c=b("DOM").scry(a.getElement(),".uiCloseButton")[0];c||(c=b("DOM").scry(a.getElement(),"._50zy")[0]);b("tidyEvent")(b("Event").listen(c,"click",function(){this._showVerbTypeahead();return!1}.bind(this)))};d.suggestIconShown=function(){return this._suggestIconShown};d.showSuggestCount=function(a){if(this._badgeClicked)return;this._suggestIconShown=!0;this._suggestIconElement=a;b("CSS").show(a)};d.setCustomIconID=function(a){this._customIconInput.value=a};d.getCustomIconID=function(){return this._customIconInput.value};d.markIconPickerOpened=function(){this._iconPickerOpened=!0};d.getIconPickerOpened=function(){return this._iconPickerOpened};return c}(b("mixin")(b("ArbiterMixin")));e.exports=a;e.exports.asyncSuggest=function(a,c,d){var e=JSON.stringify(a);b("Arbiter").subscribe("ogComposer/asyncSuggest/display",function(a,b){e==b&&c()});b("Arbiter").subscribe("ogComposer/asyncSuggest/xout",function(a,b){e==b&&d()});b("Arbiter").inform("ogComposer/asyncSuggest",e)}}),null);
  __d("OGComposerTaggerNounTypeaheadView",[],(function(a,b,c,d,e,f){a=function(a){"use strict"};e.exports=a}),null);
  __d("PlacesCitySharerX",["csx","cx","fbt","Arbiter","ArbiterMixin","AsyncRequest","CSS","DOM","Event","Parent","mixin"],(function(a,b,c,d,e,f,g,h,i){__p&&__p();var j={};a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b,c,d,e,f,g,h,i,j,k,l,m,n,o){o=a.call(this)||this;o._root=b;o.setShareSetting(k);o.init(c,d,e,f,g,l,n);i&&o.setDefaultCity(h,i,j);o._shareDefaultCity&&o.useDefaultCity();m&&o.toggleSelect();return o}var d=c.prototype;d.init=function(a,c,d,e,f,g,h){this._cityLink=a,this._closeButton=c,this._input=d,this._disableShareInput=e,this._options=f,this._targetId=g||0,this._cityName=b("DOM").find(this._cityLink,"._y8"),this._data={},this._resetTempInfo(),b("Event").listen(this._closeButton,"click",function(){this._resetTempInfo(),this._defaultCityData={},this.clearCity(),this._disableShareInput.value="true"}.bind(this)),j[this._root]=this,this.inform("init",null,"persistent"),this._implicitLocationConfig=h};d.toggleSelect=function(){this._placeSelected=!0,b("CSS").addClass(this._cityLink,"_1dsf"),b("CSS").addClass(this._root,"_1fa"),b("CSS").hide(this._closeButton)};d.addPlace=function(a){this.toggleSelect(),this._resetTempInfo()};d.changeCity=function(a,b,c){this.setCity(a,b,c),this.toggleLocationSharing(a,b,c,!1)};d.clearCity=function(){__p&&__p();this._data={};this._input.value="";b("DOM").empty(this._cityName);var a=i._("Check in");this._cityLink.setAttribute("data-tooltip-content",a);(a=b("CSS")).removeClass(this._root,"_y7");a.hide(this._closeButton);a.removeClass(this._cityLink,"_1dsf");a.removeClass(this._root,"_1fa");this.inform("change",null,"persistent")};d.clearPlace=function(){this._placeSelected=!1,b("CSS").removeClass(this._cityLink,"_1dsf"),b("CSS").removeClass(this._root,"_1fa"),b("CSS").conditionShow(this._closeButton,this.getValue()),this._implicitLocationConfig.enable_implicit_location?this.setDefaultCity(this._data.city_name,this._data.city_page_id,this._data.city_id):this.clearCity()};d.getIcon=function(){return this._root};d.getValue=function(){return this._input.value};d.restoreCityInfo=function(){(this._placeSelected||this._shareDefaultCity)&&(this.changeCity(this._tempCityName,this._tempCityPid,this._tempCityId),this._resetTempInfo())};d.saveCityInfo=function(){this._defaultCityData&&(this._tempCityName=this._defaultCityData.city_name,this._tempCityPid=this._defaultCityData.city_page_id,this._tempCityId=this._defaultCityData.city_id)};d.setCity=function(a,b,c){b&&(this.setCityData(a,b,c),this._input.value=b,this.inform("change",this._data,"persistent"))};d.setCityData=function(a,c,d){__p&&__p();if(c){this._data={city_name:a,city_page_id:c,city_id:d};c=a.lastIndexOf(",");c!=-1&&(a=a.substring(0,c));a?d=i._("Currently in {city-name}. Check in",[i._param("city-name",a)]):d=i._("Check in");b("DOM").setContent(this._cityName,a);this._cityLink.setAttribute("aria-label",d);b("CSS").addClass(this._root,"_y7");b("CSS").conditionShow(this._closeButton,!this._placeSelected)}};d.setDefaultCity=function(a,b,c){this._defaultCityData={city_id:c,city_page_id:b,city_name:a}};d.setSessionID=function(a){this._options.session_id=a};d.setShareSetting=function(a){this._shareDefaultCity=a};d.toggleLocationSharing=function(a,c,d,e){c&&new(b("AsyncRequest"))().setURI("/ajax/places/toggle_location_sharing").setData({city_id:d,city_page_id:c,city_name:a,is_default:e,session_id:this._options.session_id}).send()};d.useDefaultCity=function(){this._defaultCityData&&(this.setCity(this._defaultCityData.city_name,this._defaultCityData.city_page_id,this._defaultCityData.city_id),b("CSS").show(this._closeButton),this.toggleLocationSharing(this._defaultCityData.city_name,this._defaultCityData.city_page_id,this._defaultCityData.city_id,!0))};d._resetTempInfo=function(){this._tempCityName=null,this._tempCityPid=null,this._tempCityId=null};c.getInstance=function(a){a=b("Parent").byClass(a,"ComposerCitySharer");return a&&j[a]};d.getTargetID=function(){return this._targetId};return c}(b("mixin")(b("ArbiterMixin")));e.exports=a}),null);
  __d("PlatformSharingWebFunnelAnalysisTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:PlatformSharingWebFunnelAnalysisLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:PlatformSharingWebFunnelAnalysisLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:PlatformSharingWebFunnelAnalysisLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setFunnelLoggingInputData=function(a){this.$1.funnel_logging_input_data=a.getJSON();return this};c.setFunnelLoggingReservedFunnelLoggingExtraData=function(a){this.$1.funnel_logging_reserved_funnel_logging_extra_data=b("GeneratedLoggerUtils").serializeMap(a);return this};c.setTime=function(a){this.$1.time=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={funnel_logging_input_data:!0,funnel_logging_reserved_funnel_logging_extra_data:!0,time:!0,weight:!0};e.exports=a}),null);
  __d("AbstractFunnelLoggingData",["immutable"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(a){this.$1=a}var c=a.prototype;c.getAction=function(){return this.$1};c.setFunnelInstanceTags=function(a){this.$3=b("immutable").Set(a);return this};c.getFunnelInstanceTags=function(){return this.$3};c.setActionTag=function(a){this.$2=a;return this};c.getActionTag=function(){return this.$2};return a}();e.exports=a}),null);
  __d("FunnelLoggingDataConst",[],(function(a,b,c,d,e,f){e.exports={FunnelLoggingLogtimeFields:{ACTION:"action",ACTION_TAG:"action_tag",FUNNEL_INSTANCE_TAGS:"funne_instance_tags",FUNNEL_VERSION:"funnel_version"},FunnelLoggingSessionBoundaryTypes:{NONE:"NA",START:"start",END:"end"},SessionBoundaryBasedFunnelDataFields:{SESSION_BOUNDARY_MARKER:"session_boundary_marker"},InstanceIDFunnelLoggerFields:{INSTANCE_ID:"instance_id"}}}),null);
  __d("SessionBoundaryBasedFunnelData",["invariant","AbstractFunnelLoggingData","FunnelLoggingDataConst"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("FunnelLoggingDataConst").FunnelLoggingSessionBoundaryTypes;a=function(a){__p&&__p();babelHelpers.inheritsLoose(b,a);function b(b){b=a.call(this,b)||this;b.$SessionBoundaryBasedFunnelData1=h.NONE;return b}var c=b.prototype;c.assertSessionUnset=function(){this.$SessionBoundaryBasedFunnelData1===h.NONE||g(0,3318)};c.markSessionStart=function(){this.assertSessionUnset();this.$SessionBoundaryBasedFunnelData1=h.START;return this};c.markSessionEnd=function(){this.assertSessionUnset();this.$SessionBoundaryBasedFunnelData1=h.END;return this};c.getSessionBoundaryMarker=function(){return this.$SessionBoundaryBasedFunnelData1};c.getJSON=function(){var a={};a.action_name=this.getAction();a.action_tag=this.getActionTag();a.instance_tags=this.getFunnelInstanceTags();a.session_marker=this.getSessionBoundaryMarker();return JSON.stringify(a)};return b}(b("AbstractFunnelLoggingData"));e.exports=a}),null);
  __d("ScrollableTypeaheadBehavior",["cx","CSS","DOM","Parent","Scroll","ScrollableArea","Style"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(){"use strict";__p&&__p();function a(a){this._typeahead=a}var c=a.prototype;c.enable=function(){this._scrollableElems=b("ScrollableArea").renderDOM(),b("CSS").addClass(this._scrollableElems.root,"_ml"),b("DOM").appendContent(this._typeahead.getView().element,this._scrollableElems.root),this._typeahead.getView().content=this._scrollableElems.content,this._scrollableArea=b("ScrollableArea").fromNative(this._scrollableElems.root,{fade:!1}),this._subscriptions=[this._typeahead.getView().subscribe("reset",this._reset.bind(this)),this._typeahead.getView().subscribe("render",this._render.bind(this)),this._typeahead.getView().subscribe("beforeRender",this._beforeRender.bind(this)),this._typeahead.getView().subscribe("next",this._scrollHelper.bind(this)),this._typeahead.getView().subscribe("prev",this._scrollHelper.bind(this))],b("CSS").hide(this._scrollableElems.root),b("CSS").removeClass(this._scrollableElems.root,"_mm")};c.disable=function(){while(this._subscriptions.length)this._subscriptions.pop().unsubscribe();this._subscriptions=null};c._reset=function(){b("CSS").hide(this._scrollableElems.root),b("CSS").removeClass(this._scrollableElems.root,"_mm"),this._scrollableArea.scrollToTop()};c._render=function(){this._scrollableArea.poke(),this._showScrollbar?this._scrollableArea.showScrollbar({hideAfterDelay:!1}):this._scrollableArea.hideScrollbar({hideAfterDelay:!1,shouldFade:!1}),b("CSS").addClass(this._scrollableElems.root,"_mm")};c._beforeRender=function(a,c){a=5;this._typeahead.getView().maxResults<10&&(a=3);b("CSS").show(this._scrollableElems.root);b("Style").set(this._scrollableElems.body,"width",this._scrollableElems.wrap.offsetWidth+"px");c.results.length<a?(b("Style").set(this._scrollableElems.wrap,"height",38*c.results.length+4+"px"),this._showScrollbar=!1):(this._scrollableArea.showScrollbar({hideAfterDelay:!1}),b("Style").set(this._scrollableElems.wrap,"height",38*a+4+"px"),this._showScrollbar=!0)};c._scrollHelper=function(a,c){__p&&__p();if(!b("Parent").byClass(c,"uiScrollableArea"))return;this._typeahead.getView().ignoreMouseover=!0;a=b("Parent").byClass(c,"uiScrollableAreaWrap");var d=c.offsetTop-a.offsetTop;if(d<b("Scroll").getTop(a)){b("Scroll").setTop(a,d);return}d=d+c.offsetHeight;d>b("Scroll").getTop(a)+a.offsetHeight&&b("Scroll").setTop(a,d-a.offsetHeight)};return a}();Object.assign(a.prototype,{_subscriptions:null,_scrollableElems:null,_scrollableArea:null,_showScrollbar:null});e.exports=a}),null);
  __d("legacy:LegacyScrollableTypeaheadBehavior",["ScrollableTypeaheadBehavior"],(function(a,b,c,d,e,f){a.TypeaheadBehaviors||(a.TypeaheadBehaviors={}),a.TypeaheadBehaviors.scrollArea=function(a){a.enableBehavior(b("ScrollableTypeaheadBehavior"))}}),3);
  __d("PlacesDataSource",["DataSource"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(b,a);function b(b){b=a.call(this,b)||this;b._origBootstrapEndpoint=b.bootstrapEndpoint;return b}var c=b.prototype;c.shouldFetchMoreResults=function(b){if(this.queryData.new_js_ranking)return!0;else return a.prototype.shouldFetchMoreResults.call(this,b)};c.mergeUids=function(b,c,d,e){if(this.queryData.new_js_ranking){this._checkExtendedMatch(e,b);return this.deduplicateByKey(d.concat(c,b))}else return a.prototype.mergeUids.call(this,b,c,d,e)};c.resetBootstrapEndpoint=function(a){this.setBootstrapEndpoint(this._origBootstrapEndpoint,a);return this};c.setBootstrapEndpoint=function(a,b){this.bootstrapEndpoint!==a&&(this.bootstrapEndpoint=a,(this._bootstrapped||this._bootstrapping)&&(b=!0));b&&this.dirty().bootstrap();return this};c.getQueryEndpoint=function(){return this.queryEndpoint};c.getBootstrapData=function(){return this.bootstrapData};return b}(b("DataSource"));e.exports=a}),null);
  __d("RemoveToken",["DOM","Event"],(function(a,b,c,d,e,f){a={init:function(a,c){b("Event").listen(a,"click",function(){b("DOM").remove(c)})}};e.exports=a}),null);
  __d("PlacesTypeaheadRendererUtil",[],(function(a,b,c,d,e,f){__p&&__p();var g=/[.,+*?$|#{}()\^\-\[\]\\\/!@%\"~=<>_:;]/g;function h(a,b){return a.end>b.end||a.start<b.start}function a(a,b){__p&&__p();if(!a)return[];var c=[];a=a.replace(g," ");a=a.split(" ");for(var d=0;d<a.length;d++){if(!a[d])continue;var e=a[d];d<a.length-1&&(e=e+"[ ,]");e=new RegExp(" "+e,"i");e=e.exec(" "+b+" ");if(e){e={start:e.index,end:e.index+a[d].length};c.every(h.bind(null,e))&&c.push(e)}else return[]}c.sort(function(a,b){return a.start-b.start});return c}b={match_positions:a};e.exports=b}),null);
  __d("PlacesTypeaheadRenderer",["DOM","PlacesTypeaheadRendererUtil"],(function(a,b,c,d,e,f){__p&&__p();function a(a,c){__p&&__p();c=[];var d=a.photo;d&&c.push(b("DOM").create("img",{alt:"",src:d}));if(a.text){d=b("DOM").create("span",{className:"text"},"");var e=a.text;a.address&&(e=e+" \xb7 "+a.address);var f=[];a.value&&(f=b("PlacesTypeaheadRendererUtil").match_positions(a.value,e));if(f.length>0){var g=0;for(var h=0;h<f.length;h++){var i=f[h].start,j=f[h].end;b("DOM").appendContent(d,e.substr(g,i-g));b("DOM").appendContent(d,b("DOM").create("span",{className:"bold"},e.substr(i,j-i)));g=j}b("DOM").appendContent(d,e.substr(g))}else b("DOM").appendContent(d,b("DOM").create("span",{className:"bold"},a.text)),a.address&&b("DOM").appendContent(d," \xb7 "+a.address);c.push(b("DOM").create("span",{},d))}i=a.subtext;j=a.category;if(i||j){h=[];i&&h.push(i);j&&h.push(j);c.push(b("DOM").create("span",{className:"subtext"},h.join(" \xb7 ")))}return b("DOM").create("li",{className:a.type||""},c)}a.className="places";e.exports=a}),null);
  __d("ComposerXComponents",[],(function(a,b,c,d,e,f){a=function(){"use strict";function a(a){this.$1=a}var b=a.prototype;b.getComponents=function(){return this.$1};return a}();e.exports=a}),null);
  __d("OpenGraphDialog",["ComposerXStandardTaggerWithOG","DOM","Focus"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,c,d,e,f){this.$1=a;this.$2=babelHelpers["extends"]({},c.getComponents(),d.getComponents(),e.getComponents(),f.getComponents());this.$3=new(b("ComposerXStandardTaggerWithOG"))({preventUnfinishedPostAlert:!0});this.$3.init(this);a=this.getComponent("maininput").element;a=b("DOM").scry(a,"textarea")[0];b("Focus").set(a)}var c=a.prototype;c.allowOGTagPreview=function(){return!1};c.getRoot=function(){return this.$1};c.getComponent=function(a){return this.$2[a]};c.getComposerID=function(){return""};return a}();e.exports=a}),null);
  __d("OpenGraphTypeaheadBehavior",["ContextualLayerAutoFlip","DOMVector"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a){this.$1=a.getView(),this.$2=this.$1.element}var c=a.prototype;c.enable=function(){this.$1.layer?(this.$1.layer.setPosition("above"),this.$1.layer.disableBehavior(b("ContextualLayerAutoFlip"))):this.$3=this.$1.subscribe("afterRender",this.$4.bind(this))};c.disable=function(){this.listener&&(this.$3.remove(),this.$3=null)};c.$4=function(){var a=b("DOMVector").getElementDimensions(this.$2).y;a&&(this.$2.style.marginTop=-(a+28)+"px")};return a}();e.exports=a}),null);
  __d("ExternalWebShareDialogObserver",["cx","Arbiter","CSS","DOM"],(function(a,b,c,d,e,f,g){__p&&__p();a={setHidePrivacy:function(a){b("Arbiter").inform("setHidePrivacy",a,"state")},listenToHidePrivacy:function(a){b("Arbiter").subscribe("setHidePrivacy",function(c,d){d.hide?b("CSS").hide(a):b("CSS").show(a)})},setHideComposerTaggers:function(a){b("Arbiter").inform("setHideComposerTaggers",a,"state")},listenToHideComposerTaggers:function(a){b("Arbiter").subscribe("setHideComposerTaggers",function(c,d){d.hide?b("CSS").hide(a):b("CSS").show(a)})},setSubmitButtonActionText:function(a){b("Arbiter").inform("setSubmitButtonActionText",a,"state")},listenToChangeSubmitButtonActionText:function(a){b("Arbiter").subscribe("setSubmitButtonActionText",function(c,d){d.actionText&&b("DOM").setContent(a,d.actionText)})},setDisableSubmitButton:function(a){b("Arbiter").inform("setDisableSubmitButton",a,"state")},listenToDisableSubmitButton:function(a){b("Arbiter").subscribe("setDisableSubmitButton",function(b,c){a.disabled=c.disable})},setUserInfoVisibility:function(a){b("Arbiter").inform("setUserInfoVisibility",a,"state")},listenToSetUserInfoVisibility:function(a,c){b("Arbiter").subscribe("setUserInfoVisibility",function(d,e){e.hide?(a!==null&&a!==void 0&&b("CSS").hide(a),b("CSS").hide(c)):(a!==null&&a!==void 0&&b("CSS").show(a),b("CSS").show(c))})},setDisableFeedCheckBox:function(a){b("Arbiter").inform("setDisableFeedCheckBox",a,"state")},listenToDisableFeedCheckBox:function(a){b("Arbiter").subscribe("setDisableFeedCheckBox",function(b,c){a.disabled=c.disable,a.checked=!c.disable})},setDisableStoryCheckBox:function(a){b("Arbiter").inform("setDisableStoryCheckBox",a,"state")},listenToDisableStoryCheckBox:function(a){b("Arbiter").subscribe("setDisableStoryCheckBox",function(b,c){a.disabled=c.disable,a.checked=!1})},setDisableDestinationRow:function(a){b("Arbiter").inform("setDisableDestinationRow",a,"state")},listenToDisableDestinationRow:function(a){b("Arbiter").subscribe("setDisableDestinationRow",function(c,d){d.disable?b("CSS").addClass(a,"_3560"):b("CSS").removeClass(a,"_3560")})}};e.exports=a}),null);
  __d("ExternalWebShareDialogQuoteInformer",["Arbiter","MutationObserver"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={init:function(a){__p&&__p();var c=this;a=a.getElementsByClassName("share-quote-text-text");if(!a||!a[0])return;a=a[0];if(a.childNodes.length>0)this._informQuoteState(a);else{var d=new(b("MutationObserver"))(function(a){c._informQuoteState(a[0].target)});d.observe(a,{childList:!0})}},_informQuoteState:function(a){b("Arbiter").inform("isQuoteSet",!!a.textContent,"state")}};e.exports=a}),null);
  __d("PlatformSharingWebFunnelAnalysisLogging",["PlatformSharingWebFunnelAnalysisTypedLogger","SessionBoundaryBasedFunnelData"],(function(a,b,c,d,e,f){"use strict";a={logLoad:function(){var a=new(b("SessionBoundaryBasedFunnelData"))("dialog_client_loaded");a.markSessionEnd();new(b("PlatformSharingWebFunnelAnalysisTypedLogger"))().setFunnelLoggingInputData(a).log()}};e.exports=a}),null);
  __d("PlatformShareDialogFunnelLogger",["FunnelLogger"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g="PLATFORM_SHARE_DIALOG_FUNNEL";a={_funnelStarted:!1,startFunnel:function(a,c,d,e,f,h,i){b("FunnelLogger").startFunnel(g),b("FunnelLogger").addFunnelTag(g,"domain:"+a),b("FunnelLogger").addFunnelTag(g,"browser:"+c),b("FunnelLogger").addFunnelTag(g,"req_dialog:"+d),b("FunnelLogger").addFunnelTag(g,"dialog:"+e),b("FunnelLogger").addFunnelTag(g,"controller:"+f),b("FunnelLogger").addFunnelTag(g,"req_display:"+h),b("FunnelLogger").addFunnelTag(g,"display:"+i),this._funnelStarted=!0},endFunnel:function(){b("FunnelLogger").endFunnel(g)},registerListenerForVisibility:function(a,b){var c=this;if(!b)return;this._funnelStarted&&this.isElementVisible(b)?this.appendUserActionIfNew(a+":visible"):setTimeout(function(){return c.registerListenerForVisibility(a,b)},1e3)},registerListenerForUserKeyInput:function(a,b){__p&&__p();var c=this;if(!b||!b.addEventListener)return;b.addEventListener("input",function(b){b=b.target;if(b instanceof HTMLInputElement||b instanceof HTMLTextAreaElement){c.appendUserActionIfNew(a+":input");b=b.value;/(^|\s+)#\w\s/.test(b)&&c.appendUserActionIfNew(a+":hash_intended");/(^|\s+)@\w/.test(b)&&c.appendUserActionIfNew(a+":mention_intended")}})},registerListenerForUserClick:function(a,b){var c=this;if(!b)return;var d=["click","touchstart","mousedown"],e=function(){c.appendUserActionIfNew(a+":click")};b.addEventListener?d.forEach(function(a){b&&b.addEventListener(a,e)}):b.attachEvent&&b.attachEvent("onclick",e)},registerListenerForUserClickAndVisibility:function(a,b){b&&(this.registerListenerForVisibility(a,b),this.registerListenerForUserClick(a,b))},appendUserActionIfNew:function(a,c){!c?b("FunnelLogger").appendActionIfNew(g,a):b("FunnelLogger").appendActionWithTagIfNew(g,a,c)},isElementVisible:function(a){if(!a)return!1;var b=a.getBoundingClientRect(),c=window.innerHeight||document.documentElement.clientHeight,d=window.innerWidth||document.documentElement.clientWidth;a=a.contains(document.elementFromPoint((b.left+b.right)/2,(b.top+b.bottom)/2));return!a?!1:b.top>=0&&b.bottom<=c&&b.left>=0&&b.right<=d}};e.exports=a}),null);
  __d("ShareDialogUnifiedComposerFalcoEvent",["FalcoLoggerInternal"],(function(a,b,c,d,e,f){"use strict";a=b("FalcoLoggerInternal").create("share_dialog_unified_composer");e.exports=a}),null);
  __d("PlatformWebShareDialogCloseConfirmation",["Event","PlatformDialog","PlatformShareDialogFunnelLogger","Run","ShareDialogUnifiedComposerFalcoEvent"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={init:function(a,c,d,e,f,g){__p&&__p();var h=this;this._cancelWasClicked=!1;this._confirmOnClose=a;this._confirmOnCancel=c;b("Run").onBeforeUnload(function(){h._logToUnifiedComposer(e,f,g);var a=h._shouldShowConfirm()?d:void 0;h._cancelWasClicked=!1;return a});b("Run").onAfterUnload(function(){b("PlatformShareDialogFunnelLogger").endFunnel()})},setCancelButton:function(a){var c=this;b("Event").listen(a,"click",function(a){c._cancelWasClicked=!0,window.opener&&c._confirmOnCancel&&(a.kill(),window.close())})},_shouldShowConfirm:function(){if(b("PlatformDialog").getInstance().hasBeenSubmitted())return!1;return this._cancelWasClicked?this._confirmOnCancel:this._confirmOnClose},_logToUnifiedComposer:function(a,c,d){var e="composer_post";(this._cancelWasClicked||!b("PlatformDialog").getInstance().hasBeenSubmitted())&&(e="composer_cancel");b("ShareDialogUnifiedComposerFalcoEvent").log(function(){return{action:e,session_id:d,app_id:a,is_reshare:c}})}};e.exports=a}),null);
  __d("OGComposerActionTypeTypeaheadRenderer",["cx","CompactTypeaheadRenderer","CSS","DOM"],(function(a,b,c,d,e,f,g){__p&&__p();function a(a,c){c=b("CompactTypeaheadRenderer")(a,c);b("DOM").prependContent(c,a.icon);if(a.type=="action_type"){a=b("DOM").create("i",{className:"arrowRight"});b("DOM").prependContent(c,a)}a=b("DOM").scry(c,"span");a.length==1&&b("CSS").addClass(a[0],"_5lpy");return c}a.className="compact _47i9";e.exports=a}),null);
  __d("OGComposerNounTypeaheadMetrics",["TypeaheadMetrics"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.submit=function(){("log_all_sessions"in this.extraData||this.hasStats())&&(this.stats.at_id=this.data.queryData.at_id),a.prototype.submit.call(this)};return b}(b("TypeaheadMetrics"));e.exports=a}),null);
  __d("OGComposerObjectDataSource",["DataSource","createArrayFromMixed"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.addEntries=function(a,c){a=this.processEntries(b("createArrayFromMixed")(a||[]),c);if(c){var d=this.getQueryCache();c=this.tokenizeCache(c).flatValue;d[c]=a}};return c}(b("DataSource"));e.exports=a}),null);
  __d("HubsTypeaheadView",["fbt","ContextualTypeaheadView"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(b,a);function b(b,c){return a.call(this,b,c)||this}var c=b.prototype;c.hide=function(){return this.canHide?a.prototype.hide.call(this):null};c.reset=function(){return this.canHide?a.prototype.reset.call(this):null};c._createFreeFormNode=function(a){var b=a;this.showCreatePrompt?b=g._("Add \"{partial_name}\"",[g._param("partial_name",a)]):this.showAltCreatePrompt&&(b=g._("Create \"{partial_name}\"",[g._param("partial_name",a)]));return{text:b,orig_text:a,type:"addnew calltoaction",uid:"0"}};c.validateQuery=function(a){return this.minQueryLength?a.length>=this.minQueryLength:!0};c.render=function(b,c,d){__p&&__p();var e=[],f=Math.max(1,Math.floor(c.length/10));for(var f=f;f<c.length;f++)c[f].already_added&&(e.push(c[f]),c.splice(f,1),f--);c=c.concat(e);if(this.alwaysRender&&b!=="")if(this.allowFreeformEntry)this.validateQuery(b)&&c.push(this._createFreeFormNode(b));else{f=b.toLowerCase().trim();e=!1;for(var g=0;g<c.length;g++)if(typeof c[g].text==="string"&&f===c[g].text.toLowerCase().trim()){e=!0;break}!e&&this.validateQuery(b)&&c.push(this._createFreeFormNode(b))}return a.prototype.render.call(this,b,c,d)};return b}(b("ContextualTypeaheadView"));Object.assign(a.prototype,{canHide:!0,hasHiddenDupes:!1});e.exports=a}),null);
  __d("OGNounTypeaheadView",["csx","cx","fbt","CSS","DOM","HubsTypeaheadView","ScrollableArea","throttle","tidyEvent"],(function(a,b,c,d,e,f,g,h,i){__p&&__p();var j;a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d._bindScrollListener=function(){this._getScrollableArea()&&b("tidyEvent")(j.subscribe("scroll",b("throttle")(this._checkScroll.bind(this))))};d._checkScroll=function(){var a=this._getLastItemID();j.isScrolledToBottom()&&this._lastItemID!==a&&(this._lastItemID=a,this.inform("scrolledtobottom",{scrollableArea:j}))};d._createFreeFormNode=function(a){return{orig_text:a,icon:this.defaultIcon,text:a,type:"calltoaction"}};d._getScrollableArea=function(){this._scrollableArea||(this._scrollableArea=b("ScrollableArea").getInstance(this.content));return j=this._scrollableArea};d._getLastItemID=function(){var a=this.items[this.items.length-1];return a&&a.getAttribute("aria-label")};d.init=function(){this.content=b("DOM").find(this.element,"div._52yd"),a.prototype.init.call(this),b("tidyEvent")([this.subscribe(["render","reset"],this._updateView.bind(this)),this.subscribe("highlight",this._scrollIntoView.bind(this)),this.subscribeOnce("render",this._bindScrollListener.bind(this))])};d._scrollIntoView=function(a,b){this._getScrollableArea()&&(this.ignoreMouseover=!0,j.scrollIntoView(b.element,!1))};d.validateQuery=function(a){return!this.actionTypeID?!1:this.minQueryLength?a.length>=this.minQueryLength:!0};d.setContext=function(a){this.defaultIcon=a.default_icon;this.actionTypeID=a.uid;this.actionTypeID.indexOf(":")>-1&&(this.actionTypeID=a.action_type_id);a=(!this.actionTypeIDsWithNoFreeform||!this.actionTypeIDsWithNoFreeform[this.actionTypeID])&&this.actionTypeID!=="";this.alwaysRender=a;this.allowFreeform=a;this.allowFreeformEntry=a};d._updateView=function(){this._lastItemID=null,b("CSS").conditionClass(this.element,"_52yc",this.items.length)};d._createCustomAddNode=function(){return{text:String(i._("Add your own...")),type:"calltoaction customadd",icon:this.defaultIcon}};d._containCustomAddNode=function(a){for(var b=0;b<a.length;b++)if(a[b].type==="calltoaction customadd")return!0;return!1};d._removeCustomAddNode=function(a){for(var b=0;b<a.length;b++)a[b].type==="calltoaction customadd"&&a.splice(b,1)};d.render=function(b,c,d){this.allowFreeform&&c.length&&b===""&&!this._containCustomAddNode(c)?c.push(this._createCustomAddNode()):this._removeCustomAddNode(c);return a.prototype.render.call(this,b,c,d)};d.select=function(b){var c=this,d=this.results[this.index];if(d&&d.type.match("customadd")){this.causalElement.focus();setTimeout(function(){return c.layer.hide()},0);return}d&&(d.actionTypeID=this.actionTypeID);return a.prototype.select.call(this,b)};return c}(b("HubsTypeaheadView"));e.exports=a}),null);
  __d("ClearableTypeahead",["Event"],(function(a,b,c,d,e,f){a={resetOnCloseButtonClick:function(a,c){b("Event").listen(c,"click",function(){var b=a.getCore();b.getElement().focus();b.reset()})}};e.exports=a}),null);
  __d("TypeaheadSetPhotoOnSelect",["CSS","DOM","Event"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a){this._typeahead=a}var c=a.prototype;c.enable=function(){__p&&__p();var a=b("DOM").scry(this._typeahead.getElement(),".photo")[0];if(a){if(!b("DOM").isNodeOfType(a,"img")){var c=b("DOM").create("img",{className:a.className});b("DOM").replace(a,c);a=c}var d=b("CSS").hide.bind(null,a);c=b("CSS").show.bind(null,a);this._eventListener=b("Event").listen(a,{load:c,error:d,abort:d});this._subscription=this._typeahead.subscribe("select",function(b,c){b=c.selected.photo||this._typeahead.view.fallbackPhoto;b?a.setAttribute("src",b):d()}.bind(this))}};c.disable=function(){this._eventListener.remove(),this._eventListener=null,this._typeahead.unsubscribe(this._subscription),this._subscription=null};return a}();Object.assign(a.prototype,{_eventListener:null,_subscription:null});e.exports=a}),null);
  __d("legacy:SetPhotoOnSelectTypeaheadBehavior",["TypeaheadSetPhotoOnSelect"],(function(a,b,c,d,e,f){a.TypeaheadBehaviors||(a.TypeaheadBehaviors={}),a.TypeaheadBehaviors.setPhotoOnSelect=function(a){a.enableBehavior(b("TypeaheadSetPhotoOnSelect"))}}),3);
  __d("TypeaheadShowBootstrapOnFocus",["TypeaheadShowResultsOnFocus"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(b,a);function b(b){b=a.call(this,b)||this;b._uids=[];return b}var c=b.prototype;c.getMaxBootstrapEntries=function(){return 3};c.cacheUids=function(){return!0};c.firstFetch=function(a,b,c){a.bootstrapping||(this.cacheUids()&&(this._uids=this.getUidsFromData(c)),this.respond(b,c))};c.respond=function(a,b){if(!a.getValue()){a.setValue("");a=this.cacheUids()?this._uids:this.getUidsFromData(b);a=b.buildUids(" ",a);b.respond("",a)}};c.getUidsFromData=function(a){a=a.getAllEntries();var b=[];for(var c in a)a[c].bootstrapped&&b.push({uid:a[c].uid,index:a[c].index});b.sort(function(a,b){return a.index-b.index});this.getMaxBootstrapEntries()&&(b=b.slice(0,this.getMaxBootstrapEntries()));return b.map(function(a){return a.uid})};return b}(b("TypeaheadShowResultsOnFocus"));e.exports=a}),null);
  __d("TypeaheadShowAllBootstrapOnFocus",["TypeaheadShowBootstrapOnFocus"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getMaxBootstrapEntries=function(){return void 0};c.cacheUids=function(){return!1};return b}(b("TypeaheadShowBootstrapOnFocus"));e.exports=a}),null);
  __d("OGComposerObjectTypeaheadRenderer",["CompactTypeaheadRenderer","DOM"],(function(a,b,c,d,e,f){function a(a,c){c=b("CompactTypeaheadRenderer")(a,c);a=a.icon;a&&b("DOM").prependContent(c,a);return c}a.className=b("CompactTypeaheadRenderer").className;e.exports=a}),null);
  __d("SharerQuotation",["CSS","DOM"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=null,h=null;a={addCloseListener:function(a){a.addEventListener("click",function(){h&&b("CSS").hide(h),g&&(g.value="")})},init:function(a,c){__p&&__p();a.value&&(g=a,h=c);if(!window.opener)return;var d=!1,e=null;try{d=window.opener.location.pathname.indexOf("/plugins/quote")!==-1,e=window.opener.document.getElementById("quotationtext")}catch(a){}if(d&&e&&e.value){a.value=e.value;d=c.getElementsByClassName("share-quote-text-text");b("DOM").setContent(d[0],a.value);b("CSS").show(c);g=a;h=c}}};e.exports=a}),null);