;/*FB_PKG_DELIM*/ __d("AsyncFormRequestUtils",["Arbiter"],(function(a,b,c,d,e,f,g){function a(a,b,d){c("Arbiter").subscribe("AsyncRequest/"+b,function(b,c){b=c.request.relativeTo;b&&b===a&&d(c)})}g.subscribe=a}),98); __d("Button",["csx","cx","invariant","CSS","DOM","DataStore","Event","Parent","emptyFunction","isNode"],(function(a,b,c,d,e,f,g,h,i,j){var k="uiButtonDisabled",l="uiButtonDepressed",m="_42fr",n="_42fs",o="button:blocker",p="href",q="ajaxify";function r(a,b){var e=d("DataStore").get(a,o);b?e&&(e.remove(),d("DataStore").remove(a,o)):e||d("DataStore").set(a,o,c("Event").listen(a,"click",c("emptyFunction").thatReturnsFalse,c("Event").Priority.URGENT))}function s(a){a=d("Parent").byClass(a,"uiButton")||d("Parent").bySelector(a,"._42ft");if(!a)throw new Error("invalid use case");return a}function t(a){return c("DOM").isNodeOfType(a,"a")}function u(a){return c("DOM").isNodeOfType(a,"button")}function v(a){return d("CSS").matchesSelector(a,"._42ft")}var w={getInputElement:function(a){a=s(a);if(t(a))throw new Error("invalid use case");if(u(a)){a instanceof HTMLButtonElement||j(0,21261);return a}return c("DOM").find(a,"input")},isEnabled:function(a){return!(d("CSS").hasClass(s(a),k)||d("CSS").hasClass(s(a),m))},setEnabled:function(a,b){a=s(a);var c=v(a)?m:k;d("CSS").conditionClass(a,c,!b);if(t(a)){c=a.getAttribute("href");var e=a.getAttribute("ajaxify"),f=d("DataStore").get(a,p,"#"),g=d("DataStore").get(a,q);b?(c||a.setAttribute("href",f),!e&&g&&a.setAttribute("ajaxify",g),a.removeAttribute("tabIndex")):(c&&c!==f&&d("DataStore").set(a,p,c),e&&e!==g&&d("DataStore").set(a,q,e),a.removeAttribute("href"),a.removeAttribute("ajaxify"),a.setAttribute("tabIndex","-1"));r(a,b)}else{f=w.getInputElement(a);f.disabled=!b;r(f,b)}},setDepressed:function(a,b){a=s(a);var c=v(a)?n:l;d("CSS").conditionClass(a,c,b)},isDepressed:function(a){a=s(a);var b=v(a)?n:l;return d("CSS").hasClass(a,b)},setLabel:function(a,b){a=s(a);if(v(a)){var e=[];b&&e.push(b);var f=c("DOM").scry(a,".img");for(var g=0;g=0&&h[a].splice(b,1);h[a].length===0&&delete h[a]}}function k(a){var b=a.getTarget();if(h[b.id]&&h[b.id].length>0){var c=a.type==="focusin"||a.type==="focus";h[b.id].forEach(function(a){a(c)})}}function l(){if(i)return;c("Event").listen(document.documentElement,"focusout",k);c("Event").listen(document.documentElement,"focusin",k);i=!0}function a(a,b,e){e===void 0&&(e={cleanupOnLeave:!0});l();var f=c("getOrCreateDOMID")(a);h[f]||(h[f]=[]);h[f].push(b);var g=!1;function i(){g||(j(f,b),k&&(k.remove(),k=null),g=!0)}var k=((a=e)==null?void 0:a.cleanupOnLeave)===!0?d("Run").onLeave(function(){c("ge")(f)||i()}):null;return{remove:function(){i()}}}g.listen=a}),98); __d("isStringNullOrEmpty",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a==null||a===""}f["default"]=a}),66); __d("tooltipPropsFor",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c){if(!a)return{};a={"data-tooltip-content":a,"data-hover":"tooltip"};b&&(a["data-tooltip-position"]=b);c&&(a["data-tooltip-alignh"]=c);return a}f["default"]=a}),66); __d("TooltipData",["DOM","DataStore","FBLogger","URI","getElementText","ifRequired","isStringNullOrEmpty","isTextNode","tooltipPropsFor"],(function(a,b,c,d,e,f,g){var h;function i(a){var b,d=a.getAttribute("data-tooltip-delay");d=d?parseInt(d,10)||1e3:250;b=(b=c("DataStore").get(a,"tooltip"))!=null?b:{};var e=b.content;b=babelHelpers.objectWithoutPropertiesLoose(b,["content"]);var f=a.getAttribute("data-tooltip-content");!c("isStringNullOrEmpty")(e)&&!c("isStringNullOrEmpty")(f)&&c("FBLogger")("tooltip").warn('Getting DataStore tooltip content on an element that has both a "data-tooltip-content" attribute value (set to %s) and a value coming from the DataStore',a.getAttribute("data-tooltip-content"));return babelHelpers["extends"]({className:a.getAttribute("data-tooltip-root-class"),delay:d,position:a.getAttribute("data-tooltip-position")||"above",alignH:a.getAttribute("data-tooltip-alignh")||"left",offsetY:a.getAttribute("data-tooltip-offsety")||0,suppress:!1,overflowDisplay:a.getAttribute("data-tooltip-display")==="overflow",persistOnClick:a.getAttribute("data-pitloot-persistonclick"),textDirection:a.getAttribute("data-tooltip-text-direction"),content:(a=(d=f)!=null?d:e)!=null?a:null},b)}function j(a,b){var d=i(a);(typeof b.content!=="string"||!c("isStringNullOrEmpty")(b.content))&&!c("isStringNullOrEmpty")(a.getAttribute("data-tooltip-content"))&&c("FBLogger")("tooltip").warn('Setting DataStore tooltip content on an element that already has the "data-tooltip-content" attribute (set to %s) is invalid',a.getAttribute("data-tooltip-content"));c("DataStore").set(a,"tooltip",{content:b.content||((a=c("DataStore").get(a,"tooltip"))!=null?a:{}).content,position:b.position||d.position,alignH:b.alignH||d.alignH,suppress:b.suppress!==void 0?b.suppress:d.suppress,overflowDisplay:b.overflowDisplay||d.overflowDisplay,persistOnClick:b.persistOnClick||d.persistOnClick})}function k(a,b){j(a,b),a.setAttribute("data-hover","tooltip")}function l(a,b){}var m={remove:function(a,b){b=b===void 0?{}:b;b=b.onlyCleanupDataStore;b=b===void 0?!1:b;c("DataStore").remove(a,"tooltip");b||(a.removeAttribute("data-hover"),a.removeAttribute("data-tooltip-position"),a.removeAttribute("data-tooltip-alignh"),c("ifRequired")("Tooltip",function(b){b.isActive(a)&&b.hide()}))},set:function(a,b,d,e){l(a,b),b instanceof(h||(h=c("URI")))?(a.setAttribute("data-tooltip-uri",b.toString()),c("ifRequired")("Tooltip",function(b){b.isActive(a)&&b.fetchIfNecessary(a)})):(a.removeAttribute("data-tooltip-content"),m._store({context:a,content:b,position:d,alignH:e}),m.refreshIfActive(a))},refreshIfActive:function(a){c("ifRequired")("Tooltip",function(b){b.isActive(a)&&b.show(a)})},_store:function(a){var b=a.context,d=a.content,e=a.position;a=a.alignH;d=d;l(b,d);c("isTextNode")(d)&&d instanceof Element&&(d=c("getElementText")(d));var f=!1;typeof d!=="string"?d=c("DOM").create("div",{},d):f=d==="";a={alignH:a,content:d,position:e,suppress:f};k(b,a);return a},propsFor:c("tooltipPropsFor"),enableDisplayOnOverflow:function(a){a.removeAttribute("data-tooltip-display"),k(a,{overflowDisplay:!0})},enablePersistOnClick:function(a){a.removeAttribute("data-pitloot-persistOnClick"),k(a,{persistOnClick:!0})},suppress:function(a,b){j(a,{suppress:b})},_get:i};f.exports=m}),34); __d("Focus",["cx","CSS","Event","FocusEvent","KeyStatus","TooltipData","ifRequired"],(function(a,b,c,d,e,f,g,h){function a(a,b){b===void 0&&(b=!1);if(a){var e=c("ifRequired")("VirtualCursorStatus",function(a){return a.isVirtualCursorTriggered()},function(){return!1});b||d("KeyStatus").isKeyDown()||e?k(a):i(a)}}function i(a){if(a){d("CSS").addClass(a,"_5f0v");var b=c("Event").listen(a,"blur",function(){a&&d("CSS").removeClass(a,"_5f0v"),b.remove()});d("TooltipData").suppress(a,!0);k(a);d("TooltipData").suppress(a,!1)}}function b(a,b,c){c===void 0&&(c={cleanupOnLeave:!0});d("CSS").addClass(a,"_5f0v");return d("FocusEvent").listen(a,function(){for(var c=arguments.length,d=new Array(c),e=0;e=h){e[g][j]===void 0&&(e[g][j]=k);continue}j=JSON.parse(k);for(k in j)d[k]!==void 0?(e[c[i]][k]===void 0&&(e[c[i]][k]=[]),e[c[i]][k].push(j[k])):e[c[i]][k]===void 0&&(e[c[i]][k]=j[k])}}a=b("getContextualParent")(a)}for(k in e)for(j in d)e[k][j]!==void 0&&(e[k][j]=e[k][j].join(d[j]));return e}e.exports=a}),null); __d("FeedTrackingAsync",["Arbiter","Run","collectDataAttributes"],(function(a,b,c,d,e,f,g){var h;function a(){if(h)return;h=c("Arbiter").subscribe("AsyncRequest/send",function(a,b){a=b.request;b=a.getRelativeTo();if(b){a=a.getData();b=c("collectDataAttributes")(b,["ft"]);b.ft&&Object.keys(b.ft).length&&Object.assign(a,b)}});d("Run").onLeave(function(){h&&(h.unsubscribe(),h=null)})}g.init=a}),98); __d("Input",["CSS","DOMControl","DOMQuery"],(function(a,b,c,d,e,f,g){function h(a){return!/\S/.test(a||"")}function i(a){return h(a.value)}function a(a){return i(a)?"":a.value}function b(a){return a.value}function e(a,b){a.value=b||"";b=c("DOMControl").getInstance(a);b&&b.resetHeight&&b.resetHeight()}function f(a,b){b||(b=""),a.setAttribute("aria-label",b),a.setAttribute("placeholder",b)}function j(a){a.value="",a.style.height=""}function k(a,b){d("CSS").conditionClass(a,"enter_submit",b)}function l(a){return d("CSS").hasClass(a,"enter_submit")}function m(a,b){b>0?a.setAttribute("maxlength",b.toString()):a.removeAttribute("maxlength")}g.isWhiteSpaceOnly=h;g.isEmpty=i;g.getValue=a;g.getValueRaw=b;g.setValue=e;g.setPlaceholder=f;g.reset=j;g.setSubmitOnEnter=k;g.getSubmitOnEnter=l;g.setMaxLength=m}),98); __d("normalizeBoundingClientRect",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){a=a.ownerDocument.documentElement;var c=a?a.clientLeft:0;a=a?a.clientTop:0;var d=Math.round(b.left)-c;c=Math.round(b.right)-c;var e=Math.round(b.top)-a;b=Math.round(b.bottom)-a;return{left:d,right:c,top:e,bottom:b,width:c-d,height:b-e}}f["default"]=a}),66); __d("getElementRect",["containsNode","normalizeBoundingClientRect"],(function(a,b,c,d,e,f,g){function a(a){var b;b=a==null?void 0:(b=a.ownerDocument)==null?void 0:b.documentElement;return!a||!("getBoundingClientRect"in a)||!c("containsNode")(b,a)?{left:0,right:0,top:0,bottom:0,width:0,height:0}:c("normalizeBoundingClientRect")(a,a.getBoundingClientRect())}g["default"]=a}),98); __d("getElementPosition",["getElementRect"],(function(a,b,c,d,e,f,g){function a(a){a=c("getElementRect")(a);return{x:a.left,y:a.top,width:a.right-a.left,height:a.bottom-a.top}}g["default"]=a}),98); __d("Form",["DOM","DOMQuery","DTSG","DTSGUtils","DataStore","FBLogger","Input","LSD","PHPQuerySerializer","Random","SprinkleConfig","URI","getElementPosition","isFacebookURI","isNode"],(function(a,b,c,d,e,f,g){var h,i,j="FileList"in window,k="FormData"in window;function l(a){var b={};(h||(h=c("PHPQuerySerializer"))).serialize(a).split("&").forEach(function(a){if(a){a=/^([^=]*)(?:=(.*))?$/.exec(a);var d=(i||(i=c("URI"))).decodeComponent(a[1]),e=a[2]!==void 0;e=e?(i||(i=c("URI"))).decodeComponent(a[2]):null;b[d]=e}});return b}var m={getInputs:function(a){a===void 0&&(a=document);return[].concat(d("DOMQuery").scry(a,"input"),d("DOMQuery").scry(a,"select"),d("DOMQuery").scry(a,"textarea"),d("DOMQuery").scry(a,"button"))},getInputsByName:function(a){var b={};m.getInputs(a).forEach(function(a){var c=b[a.name];b[a.name]=c===void 0?a:[a].concat(c)});return b},getSelectValue:function(a){return a.options[a.selectedIndex].value},setSelectValue:function(a,b){for(var c=0;c0&&i.x>0)return h}catch(a){}}}return null},focusFirst:function(a){a=m.getFirstElement(a);if(a){a.focus();return!0}return!1}};f.exports=m}),34); __d("FormSubmit",["AsyncRequest","AsyncResponse","CSS","DOMQuery","Event","Form","Parent","trackReferrer"],(function(a,b,c,d,e,f,g){var h={buildRequest:function(a,b){var e=(d("Form").getAttribute(a,"method")||"GET").toUpperCase();b=b&&d("Parent").byTag(b,"button")||b;var f=b&&d("Parent").byClass(b,"stat_elem")||a;if(d("CSS").hasClass(f,"async_saving"))return null;if(b&&(b.form!==a||b.nodeName!="INPUT"&&b.nodeName!="BUTTON"||b.type!="submit")){var g=d("DOMQuery").scry(a,".enter_submit_target")[0];g&&(b=g)}g=d("Form").serialize(a,b);d("Form").setDisabled(a,!0);b=d("Form").getAttribute(a,"ajaxify")||d("Form").getAttribute(a,"action");var h=!!d("Form").getAttribute(a,"data-cors");c("trackReferrer")(a,b);return new(c("AsyncRequest"))().setAllowCrossOrigin(h).setURI(b).setData(g).setNectarModuleDataSafe(a).setReadOnly(e=="GET").setMethod(e).setRelativeTo(a).setStatusElement(f).setInitialHandler(d("Form").setDisabled.bind(null,a,!1)).setHandler(function(b){c("Event").fire(a,"success",{response:b})}).setErrorHandler(function(b){c("Event").fire(a,"error",{response:b})!==!1&&c("AsyncResponse").defaultErrorHandler(b)}).setFinallyHandler(d("Form").setDisabled.bind(null,a,!1))},send:function(a,b){a=h.buildRequest(a,b);a&&a.send();return a}};a=h;g["default"]=a}),98); __d("MessengerWebPluginAnonymousTypedLogger",["Banzai","GeneratedLoggerUtils"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1={}}var c=a.prototype;c.log=function(a){b("GeneratedLoggerUtils").log("logger:MessengerWebPluginAnonymousLoggerConfig",this.$1,b("Banzai").BASIC,a)};c.logVital=function(a){b("GeneratedLoggerUtils").log("logger:MessengerWebPluginAnonymousLoggerConfig",this.$1,b("Banzai").VITAL,a)};c.logImmediately=function(a){b("GeneratedLoggerUtils").log("logger:MessengerWebPluginAnonymousLoggerConfig",this.$1,{signal:!0},a)};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.setAppID=function(a){this.$1.app_id=a;return this};c.setCallsite=function(a){this.$1.callsite=a;return this};c.setClientFbid=function(a){this.$1.client_fbid=a;return this};c.setDebugData=function(a){this.$1.debug_data=a;return this};c.setDeltaType=function(a){this.$1.delta_type=a;return this};c.setDeviceParam=function(a){this.$1.device_param=a;return this};c.setDomainSource=function(a){this.$1.domain_source=a;return this};c.setDuration=function(a){this.$1.duration=a;return this};c.setEvent=function(a){this.$1.event=a;return this};c.setEventTimestamp=function(a){this.$1.event_timestamp=a;return this};c.setExceptionMessage=function(a){this.$1.exception_message=a;return this};c.setExceptionStacktrace=function(a){this.$1.exception_stacktrace=a;return this};c.setExceptionType=function(a){this.$1.exception_type=a;return this};c.setGateway=function(a){this.$1.gateway=a;return this};c.setIsUserLoggedIn=function(a){this.$1.is_user_logged_in=a;return this};c.setNewEventName=function(a){this.$1.new_event_name=a;return this};c.setOtherFields=function(a){this.$1.other_fields=b("GeneratedLoggerUtils").serializeMap(a);return this};c.setPageID=function(a){this.$1.page_id=a;return this};c.setPluginExtra=function(a){this.$1.plugin_extra=b("GeneratedLoggerUtils").serializeMap(a);return this};c.setPluginInterface=function(a){this.$1.plugin_interface=a;return this};c.setPluginName=function(a){this.$1.plugin_name=a;return this};c.setRefererURI=function(a){this.$1.referer_uri=a;return this};c.setRequestHeaders=function(a){this.$1.request_headers=a;return this};c.setRequestID=function(a){this.$1.request_id=a;return this};c.setRequestParam=function(a){this.$1.request_param=a;return this};c.setTabName=function(a){this.$1.tab_name=a;return this};c.setUpgradeLoggedInUserID=function(a){this.$1.upgrade_logged_in_user_id=a;return this};c.setUpstreamEvent=function(a){this.$1.upstream_event=a;return this};c.setWhitelistedDomains=function(a){this.$1.whitelisted_domains=a;return this};return a}();c={app_id:!0,callsite:!0,client_fbid:!0,debug_data:!0,delta_type:!0,device_param:!0,domain_source:!0,duration:!0,event:!0,event_timestamp:!0,exception_message:!0,exception_stacktrace:!0,exception_type:!0,gateway:!0,is_user_logged_in:!0,new_event_name:!0,other_fields:!0,page_id:!0,plugin_extra:!0,plugin_interface:!0,plugin_name:!0,referer_uri:!0,request_headers:!0,request_id:!0,request_param:!0,tab_name:!0,upgrade_logged_in_user_id:!0,upstream_event:!0,whitelisted_domains:!0};f["default"]=a}),66); __d("PluginLoggedOutUserTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1={}}var c=a.prototype;c.log=function(a){b("GeneratedLoggerUtils").log("logger:PluginLoggedOutUserLoggerConfig",this.$1,b("Banzai").BASIC,a)};c.logVital=function(a){b("GeneratedLoggerUtils").log("logger:PluginLoggedOutUserLoggerConfig",this.$1,b("Banzai").VITAL,a)};c.logImmediately=function(a){b("GeneratedLoggerUtils").log("logger:PluginLoggedOutUserLoggerConfig",this.$1,{signal:!0},a)};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.setHref=function(a){this.$1.href=a;return this};c.setIsSDK=function(a){this.$1.is_sdk=a;return this};c.setPluginAppID=function(a){this.$1.plugin_app_id=a;return this};c.setPluginName=function(a){this.$1.plugin_name=a;return this};c.setRefererURL=function(a){this.$1.referer_url=a;return this};c.updateExtraData=function(a){a=b("nullthrows")(b("GeneratedLoggerUtils").serializeMap(a));b("GeneratedLoggerUtils").checkExtraDataFieldNames(a,g);this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.addToExtraData=function(a,b){var c={};c[a]=b;return this.updateExtraData(c)};return a}();var g={href:!0,is_sdk:!0,plugin_app_id:!0,plugin_name:!0,referer_url:!0};f["default"]=a}),66); __d("PluginOptin",["DOMEvent","DOMEventListener","MessengerWebPluginAnonymousTypedLogger","PlatformWidgetEndpoint","PluginLoggedOutUserTypedLogger","PluginMessage","PopupWindow","URI","UserAgent_DEPRECATED"],(function(a,b,c,d,e,f,g){var h,i={"default":{width:450,height:410},large:{width:475,height:605}},j=function(){function a(a,b){this.return_params=(h||(h=c("URI"))).getRequestURI().getQueryData(),this.login_params={},this.optin_params={},this.plugin=a,this.api_key=b,this.size="default",this.addReturnParams({ret:"optin"}),delete this.return_params.hash}var b=a.prototype;b.addReturnParams=function(a){Object.assign(this.return_params,a);return this};b.addLoginParams=function(a){Object.assign(this.login_params,a);return this};b.addOptinParams=function(a){Object.assign(this.optin_params,a);return this};b.setSize=function(a){this.size=a?a:"default";return this};b.start=function(){var a=this.api_key||127760087237610;(h||(h=c("URI"))).getRequestURI().getQueryData().kid_directed_site&&(this.login_params.kid_directed_site=!0);this.login_params.referrer=document.referrer;var b=new(h||(h=c("URI")))(c("PlatformWidgetEndpoint").dialog("plugin.optin")).addQueryData(this.optin_params).addQueryData({app_id:a,secure:h.getRequestURI().isSecure(),social_plugin:this.plugin,return_params:JSON.stringify(this.return_params),login_params:JSON.stringify(this.login_params)}),e=d("UserAgent_DEPRECATED").mobile()!==null;e?b.setSubdomain("m"):b.addQueryData({display:"popup"});this.return_params.act!==null&&this.return_params.act==="send"&&new(c("PluginLoggedOutUserTypedLogger"))().setPluginAppID(a).setPluginName(this.return_params.act).setHref(this.return_params.href).logVital();a=i[this.size];b=this.transformSocialPluginToFacebookDomainPopupURI(b,h.getRequestURI().getDomain(),e);this.popup=d("PopupWindow").open(b.toString(),a.height,a.width,"fbPluginAuthenticationPopupWindow");this.plugin==="customer_chat"&&this.login_params.chat_plugin_upgrade!=null&&this.login_params.chat_plugin_upgrade===!0&&new(c("MessengerWebPluginAnonymousTypedLogger"))().setPageID(this.login_params.page_id).setClientFbid(this.login_params.guest_id).setRequestID(this.login_params.request_id).setNewEventName("upgrade_plugin_optin_popup_opened").log();d("PluginMessage").listen();return this};b.transformSocialPluginToFacebookDomainPopupURI=function(a,b,c){b=b.split(".");if(b[0]!=="socialplugin")return a;b[b.length-1]="com";b[0]=c?"m":"www";return a.setDomain(b.join(".")).setProtocol("https")};return a}();j.starter=function(a,b,c,d){a=new j(a);a.addReturnParams(b||{});a.addLoginParams(c||{});a.addOptinParams(d||{});return a.start.bind(a)};j.listen=function(a,b,d,e,f){c("DOMEventListener").add(a,"click",function(a){new(c("DOMEvent"))(a).kill(),j.starter(b,d,e,f)()})};g["default"]=j}),98); __d("PluginConnectButton",["Arbiter","CSS","DOM","DOMEvent","DOMEventListener","Focus","FormSubmit","PlatformWidgetEndpoint","Plugin","PluginOptin","URI"],(function(a,b,c,d,e,f){var g,h="new",i=b("Arbiter").subscribe,j=function(a,c){return b("DOMEventListener").add(a,"click",c)};function a(a){var c=this;this.config=a;this.busy=!1;var d=b("DOM").find(a.form,".pluginConnectButton");this.buttons=d;this.node_connected=b("DOM").find(d,".pluginConnectButtonConnected");this.node_disconnected=b("DOM").find(d,".pluginConnectButtonDisconnected");var e=function(a){new(b("DOMEvent"))(a).kill(),c.busy||(c.submit(),c.busy=c.canpersonalize)};j(this.node_disconnected,e);a.buttontype===1?j(b("DOM").find(d,".pluginButtonX button"),e):a.buttontype===2&&j(this.node_connected,e);j(this.node_connected,function(a){return b("Arbiter").inform(b("Plugin").DIALOG,a)});d=this.update.bind(this);i(b("Plugin").CONNECT,d,h);i(b("Plugin").DISCONNECT,d,h);i(b("Plugin").ERROR,this.error.bind(this),h)}Object.assign(a.prototype,{update:function(a,c){this.busy=!1;var d=this.config;if(c.identifier!==d.identifier)return;c=a===b("Plugin").CONNECT;a=b("PlatformWidgetEndpoint").plugins(d.plugin);a+="/"+(c?"disconnect":"connect");b("CSS")[c?"show":"hide"](this.node_connected);b("CSS")[c?"hide":"show"](this.node_disconnected);try{if(document.activeElement.nodeName.toLowerCase()==="button"){var e=c?this.node_connected:this.node_disconnected;e=b("DOM").find(e,"button");e.disabled=!1;b("Focus").set(e)}}catch(a){}d.connected=c;d.form.setAttribute("action",a);d.form.setAttribute("ajaxify",a)},error:function(a,c){this.busy=!1;if(c.action in{connect:1,disconnect:1}){b("DOM").setContent(this.buttons,c.content);a=b("DOM").scry(this.buttons,".confirmButton");a.length===1&&b("Focus").set(a[0])}},submit:function(){if(!this.config.canpersonalize)return this.login();b("FormSubmit").send(this.config.form);this.fireStateToggle()},fireStateToggle:function(){var a=this.config;a.connected?b("Plugin").disconnect(a.identifier):b("Plugin").connect(a.identifier)},login:function(){var a=this.config.plugin;new(b("PluginOptin"))(a,(g||(g=b("URI"))).getRequestURI().getQueryData().api_key).addReturnParams({act:"connect"}).addLoginParams({social_plugin_action:this.config.pluginaction,kid_directed_site:this.config.kidDirectedSite}).start()}});e.exports=a}),null); __d("XPostPluginLoggingController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/platform/plugin/post/logging/",{})}),null); __d("PluginFeedFooterActionLogger",["AsyncRequest","DOM","Event","XPostPluginLoggingController"],(function(a,b,c,d,e,f,g){a={initializeClickLoggers:function(a,b,d,e,f,g,h,i,j,k){var l=function(b,d){try{b=c("DOM").find(a,"."+b);c("Event").listen(b,"click",function(a){new(c("AsyncRequest"))().setURI(c("XPostPluginLoggingController").getURIBuilder().getURI()).setData({action:d,action_type:"click",source:g,story_token:h,referer_url:i,is_sdk:j,post_url:k}).send()})}catch(a){}};l(b,"embedded_post_like");l(d,"embedded_post_unlike");l(e,"embedded_post_comment");l(f,"embedded_post_share")}};f.exports=a}),34); __d("PluginFeedLikeButton",["Arbiter","AsyncFormRequestUtils","CSS","ClientIDs","DOM","DOMEventListener","FormSubmit","Keys","PluginOptin","URI"],(function(a,b,c,d,e,f,g){var h;window.resetConfirmStoryLike=function(a){d("CSS").show(c("DOM").find(document,"#likeStory_"+a)),c("DOM").remove(c("DOM").find(document,"#confirmStory_"+a))};function a(a){a.setAttribute("value",d("ClientIDs").getNewClientID())}function b(a,b,e){var f="";if(b===23)f="post";else if(b===50)f="page";else throw new Error("Invalid FBFeedLocation type.");var g=new(c("PluginOptin"))(f).addReturnParams({act:"like_"+a});d("DOMEventListener").add(e,"click",function(){return g.start()})}function e(a,b,e,f,g){var i,j=function(a){if(a.type==="keypress")if(a.keyCode===c("Keys").RETURN||a.keyCode===c("Keys").SPACE)c("FormSubmit").send(g);else return;c("FormSubmit").send(g)};(i=d("DOMEventListener")).add(b,"click",j);i.add(e,"click",j);i.add(b,"keypress",j);i.add(e,"keypress",j);i=f.getAttribute("value")==="1";d("AsyncFormRequestUtils").subscribe(g,"send",function(g){g=f.getAttribute("value")==="1";d("CSS").conditionShow(e,g);d("CSS").conditionShow(b,!g);c("Arbiter").inform("embeddedUfiToggle",{isLike:g,storyToken:a});f.setAttribute("value",g?"":"1")});d("AsyncFormRequestUtils").subscribe(g,"response",function(g){g=g.response.payload;if(g&&!g.success){g=g.isLike;d("CSS").conditionShow(b,g);d("CSS").conditionShow(e,!g);c("Arbiter").inform("revertLike",{isLike:g,storyToken:a});f.setAttribute("value",g?"1":"")}});j=new(h||(h=c("URI")))(window.location.search).getQueryData();i&&j.act==="like_"+a&&c("FormSubmit").send(g)}g.addClientId=a;g.loggedOutLikeButton=b;g.init=e}),98); __d("textExpose",["Arbiter","CSS","Parent"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){a.onclick=function(e){var f=d("Parent").byClass(a,"text_exposed_root");f&&f.getAttribute("id")==b&&(d("CSS").addClass(f,"text_exposed"),c("Arbiter").inform("reflow"));e.preventDefault()}}function b(a,b){a.onclick=function(e){e=d("Parent").byClass(a,"text_exposed_root");e&&e.getAttribute("id")==b&&(d("CSS").removeClass(e,"text_exposed"),c("Arbiter").inform("reflow"))}}g.attachSeeMoreOnClick=a;g.attachSeeLessOnClick=b}),98); __d("throttle",["TimeSlice","TimeSliceInteractionSV","setTimeout","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){function a(a,b,d){return h(a,b,d,c("setTimeout"),!1)}Object.assign(a,{acrossTransitions:function(a,b,d){return h(a,b,d,c("setTimeoutAcrossTransitions"),!1)},withBlocking:function(a,b,d){return h(a,b,d,c("setTimeout"),!0)},acrossTransitionsWithBlocking:function(a,b,d){return h(a,b,d,c("setTimeoutAcrossTransitions"),!0)}});function h(a,b,d,e,f){var g=b==null?100:b,h,i=null,j=0,k=null,l=[],m=c("TimeSlice").guard(function(){j=Date.now();if(i){var b=function(b){a.apply(h,b)}.bind(null,i),c=l.length;while(--c>=0)b=l[c].bind(null,b);l=[];b();i=null;k=e(m,g)}else k=null},"throttle_"+g+"_ms",{propagationType:c("TimeSlice").PropagationType.EXECUTION,registerCallStack:!0});m.__SMmeta=a.__SMmeta;return function(){c("TimeSliceInteractionSV").ref_counting_fix&&l.push(c("TimeSlice").getGuardedContinuation("throttleWithContinuation"));for(var a=arguments.length,b=new Array(a),n=0;ng)&&(f===!0?m():k=e(m,0))}}b=a;g["default"]=b}),98);