;/*FB_PKG_DELIM*/ __d("AsyncFormRequestUtils",["Arbiter"],(function(t,n,r,o,a,i,l){function e(e,t,n){r("Arbiter").subscribe("AsyncRequest/"+t,function(t,r){var o=r.request.relativeTo;o&&o===e&&n(r)})}l.subscribe=e}),98); __d("ClientIDs",["randomInt"],(function(t,n,r,o,a,i,l){var e=new Set;function s(){var t=Date.now(),n=t+":"+(r("randomInt")(0,4294967295)+1);return e.add(n),n}function u(t){return e.has(t)}l.getNewClientID=s,l.isExistingClientID=u}),98); __d("DOMControl",["$","DataStore"],(function(t,n,r,o,a,i){var e=(function(){"use strict";function e(e){this.root=n("$").fromIDOrElement(e),this.updating=!1,n("DataStore").set(e,"DOMControl",this)}var t=e.prototype;return t.getRoot=function(){return this.root},t.beginUpdate=function(){return this.updating?!1:(this.updating=!0,!0)},t.endUpdate=function(){this.updating=!1},t.update=function(t){if(!this.beginUpdate())return this;this.onupdate(t),this.endUpdate()},t.onupdate=function(t){},e.getInstance=function(t){return n("DataStore").get(t,"DOMControl")},e})();a.exports=e}),null); __d("DataAttributeUtils",["cr:6669","vulture"],(function(t,n,r,o,a,i,l){var e=[],s="data-ft",u="data-ft",c="data-fte",d="data-xt-vimp",m="data-xt-vimp",p="data-ftr";function _(e,t){for(var n=e;n;){if(t(n))return n;n=n.parentNode}return null}function f(e,t){var n=_(e,function(e){return e instanceof Element&&!!e.getAttribute(t)});return n instanceof Element?n:null}function g(e,t,r){var o=e.getAttribute(t);o!=null&&o!==""&&(n("cr:6669").set(e,r,o),e.removeAttribute(t))}function h(e,t){var r=e.getAttribute(s);return r!=null&&r!==""&&(n("cr:6669").set(e,u,r),t!=null&&t!==""&&e.removeAttribute(s)),r}var y={LEGACY_CLICK_TRACKING_ATTRIBUTE:s,CLICK_TRACKING_DATASTORE_KEY:u,ENABLE_STORE_CLICK_TRACKING:c,IMPRESSION_TRACKING_CONFIG_ATTRIBUTE:d,IMPRESSION_TRACKING_CONFIG_DATASTORE_KEY:m,REMOVE_LEGACY_TRACKING:p,getDataAttribute:function(t,n){return C[n]?C[n](t):t.getAttribute(n)},getDataFt:function(t){if(t.getAttribute(c)){var e=n("cr:6669").get(t,u);return e||(e=h(t,t.getAttribute(p))),e}return t.getAttribute(s)},setDataFt:function(t,o){if(r("vulture")("udipsc6pHDBpYf1B82yT_X07kUQ="),t.getAttribute(c)){n("cr:6669").set(t,u,o);return}t.setAttribute(s,o)},moveXTVimp:function(n){g(n,d,m),e.push(n.id)},getXTrackableElements:function(){for(var t=e.map(function(e){return document.getElementById(e)}).filter(function(e){return!!e}),n=document.querySelectorAll("[data-xt-vimp]"),r=0;r=l){a[e][d]===void 0&&(a[e][d]=m);continue}var p=JSON.parse(m);for(var _ in p)u[_]!==void 0?(a[n[s]][_]===void 0&&(a[n[s]][_]=[]),a[n[s]][_].push(p[_])):a[n[s]][_]===void 0&&(a[n[s]][_]=p[_])}}c=r("getContextualParent")(c)}for(var f in a)for(var g in u)a[f][g]!==void 0&&(a[f][g]=a[f][g].join(u[g]));return a}l.default=s}),98); __d("FeedTrackingAsync",["Arbiter","Run","collectDataAttributes"],(function(t,n,r,o,a,i,l){var e;function s(){e||(e=r("Arbiter").subscribe("AsyncRequest/send",function(e,t){var n=t.request,o=n.getRelativeTo();if(o){var a=n.getData(),i=r("collectDataAttributes")(o,["ft"]);i.ft&&Object.keys(i.ft).length&&(a.ft=i.ft)}}),o("Run").onLeave(function(){e&&(e.unsubscribe(),e=null)}))}l.init=s}),98); __d("FocusEvent",["Event","Run","ge","getOrCreateDOMID"],(function(t,n,r,o,a,i,l){"use strict";var e={},s=!1;function u(t,n){if(e[t]){var r=e[t].indexOf(n);r>=0&&e[t].splice(r,1),e[t].length===0&&delete e[t]}}function c(t){var n=t.getTarget();if(n instanceof Element&&e[n.id]&&e[n.id].length>0){var r=t.type==="focusin"||t.type==="focus";e[n.id].forEach(function(e){e(r)})}}function d(){s||(r("Event").listen(document.documentElement,"focusout",c),r("Event").listen(document.documentElement,"focusin",c),s=!0)}function m(t,n,a){var i;a===void 0&&(a={cleanupOnLeave:!0}),d();var l=r("getOrCreateDOMID")(t);e[l]||(e[l]=[]),e[l].push(n);var s=!1;function c(){s||(u(l,n),m&&(m.remove(),m=null),s=!0)}var m=((i=a)==null?void 0:i.cleanupOnLeave)===!0?o("Run").onLeave(function(){r("ge")(l)||c()}):null;return{remove:function(){c()}}}l.listen=m}),98); __d("isStringNullOrEmpty",[],(function(t,n,r,o,a,i){"use strict";function e(e){return e==null||e===""}i.default=e}),66); __d("tooltipPropsFor",[],(function(t,n,r,o,a,i){"use strict";function e(e,t,n){if(!e)return{};var r={"data-tooltip-content":e,"data-hover":"tooltip"};return t&&(r["data-tooltip-position"]=t),n&&(r["data-tooltip-alignh"]=n),r}i.default=e}),66); __d("TooltipData",["DOM","DataStore","FBLogger","URI","getElementText","ifRequired","isStringNullOrEmpty","isTextNode","tooltipPropsFor"],(function(t,n,r,o,a,i,l){var e=["content"],s;function u(t){var n,o,a=t.getAttribute("data-tooltip-delay"),i=a?parseInt(a,10)||1e3:250,l=(n=r("DataStore").get(t,"tooltip"))!=null?n:{},s=l.content,u=babelHelpers.objectWithoutPropertiesLoose(l,e),c=t.getAttribute("data-tooltip-content");return!r("isStringNullOrEmpty")(s)&&!r("isStringNullOrEmpty")(c)&&r("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',t.getAttribute("data-tooltip-content")),babelHelpers.extends({className:t.getAttribute("data-tooltip-root-class"),delay:i,position:t.getAttribute("data-tooltip-position")||"above",alignH:t.getAttribute("data-tooltip-alignh")||"left",offsetY:t.getAttribute("data-tooltip-offsety")||0,suppress:!1,overflowDisplay:t.getAttribute("data-tooltip-display")==="overflow",persistOnClick:t.getAttribute("data-pitloot-persistonclick"),textDirection:t.getAttribute("data-tooltip-text-direction"),content:(o=c!=null?c:s)!=null?o:null},u)}function c(e,t){var n,o=u(e);(typeof t.content!="string"||!r("isStringNullOrEmpty")(t.content))&&!r("isStringNullOrEmpty")(e.getAttribute("data-tooltip-content"))&&r("FBLogger")("tooltip").warn('Setting DataStore tooltip content on an element that already has the "data-tooltip-content" attribute (set to %s) is invalid',e.getAttribute("data-tooltip-content")),r("DataStore").set(e,"tooltip",{content:t.content||((n=r("DataStore").get(e,"tooltip"))!=null?n:{}).content,position:t.position||o.position,alignH:t.alignH||o.alignH,suppress:t.suppress!==void 0?t.suppress:o.suppress,overflowDisplay:t.overflowDisplay||o.overflowDisplay,persistOnClick:t.persistOnClick||o.persistOnClick})}function d(e,t){c(e,t),e.setAttribute("data-hover","tooltip")}function m(e,t){}var p={remove:function(t,n){var e=n===void 0?{}:n,o=e.onlyCleanupDataStore,a=o===void 0?!1:o;r("DataStore").remove(t,"tooltip"),a||(t.removeAttribute("data-hover"),t.removeAttribute("data-tooltip-position"),t.removeAttribute("data-tooltip-alignh"),r("ifRequired")("Tooltip",function(e){e.isActive(t)&&e.hide()}))},set:function(t,n,o,a){n instanceof(s||(s=r("URI")))?(t.setAttribute("data-tooltip-uri",n.toString()),r("ifRequired")("Tooltip",function(e){e.isActive(t)&&e.fetchIfNecessary(t)})):(t.removeAttribute("data-tooltip-content"),p._store({context:t,content:n,position:o,alignH:a}),p.refreshIfActive(t))},refreshIfActive:function(t){r("ifRequired")("Tooltip",function(e){e.isActive(t)&&e.show(t)})},_store:function(t){var e=t.alignH,n=t.content,o=t.context,a=t.position,i=n;r("isTextNode")(i)&&i instanceof Element&&(i=r("getElementText")(i));var l=!1;typeof i!="string"?i=r("DOM").create("div",{},i):l=i==="";var s={alignH:e,content:i,position:a,suppress:l};return d(o,s),s},propsFor:r("tooltipPropsFor"),enableDisplayOnOverflow:function(t){t.removeAttribute("data-tooltip-display"),d(t,{overflowDisplay:!0})},enablePersistOnClick:function(t){t.removeAttribute("data-pitloot-persistOnClick"),d(t,{persistOnClick:!0})},suppress:function(t,n){c(t,{suppress:n})},_get:u};i.exports=p}),34); __d("Focus",["cx","CSS","Event","FocusEvent","KeyStatus","TooltipData","ifRequired"],(function(t,n,r,o,a,i,l,s){function e(e,t){if(t===void 0&&(t=!1),e){var n=r("ifRequired")("VirtualCursorStatus",function(e){return e.isVirtualCursorTriggered()},function(){return!1});t||o("KeyStatus").isKeyDown()||n?m(e):u(e)}}function u(e){if(e){o("CSS").addClass(e,"_5f0v");var t=r("Event").listen(e,"blur",function(){e&&o("CSS").removeClass(e,"_5f0v"),t.remove()});o("TooltipData").suppress(e,!0),m(e),o("TooltipData").suppress(e,!1)}}function c(e,t,n){return n===void 0&&(n={cleanupOnLeave:!0}),o("CSS").addClass(e,"_5f0v"),o("FocusEvent").listen(e,function(){for(var n=arguments.length,r=new Array(n),o=0;o0?e.setAttribute("maxlength",t.toString()):e.removeAttribute("maxlength")}l.isWhiteSpaceOnly=e,l.isEmpty=s,l.getValue=u,l.getValueRaw=c,l.setValue=d,l.setPlaceholder=m,l.reset=p,l.setSubmitOnEnter=_,l.getSubmitOnEnter=f,l.setMaxLength=g}),98); __d("normalizeBoundingClientRect",[],(function(t,n,r,o,a,i){"use strict";function e(e,t){var n=e.ownerDocument.documentElement,r=n?n.clientLeft:0,o=n?n.clientTop:0,a=Math.round(t.left)-r,i=Math.round(t.right)-r,l=Math.round(t.top)-o,s=Math.round(t.bottom)-o;return{left:a,right:i,top:l,bottom:s,width:i-a,height:s-l}}i.default=e}),66); __d("getElementRect",["containsNode","normalizeBoundingClientRect"],(function(t,n,r,o,a,i,l){function e(e){var t,n=e==null||(t=e.ownerDocument)==null?void 0:t.documentElement;return!e||!("getBoundingClientRect"in e)||!r("containsNode")(n,e)?{left:0,right:0,top:0,bottom:0,width:0,height:0}:r("normalizeBoundingClientRect")(e,e.getBoundingClientRect())}l.default=e}),98); __d("getElementPosition",["getElementRect"],(function(t,n,r,o,a,i,l){function e(e){var t=r("getElementRect")(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}l.default=e}),98); __d("Form",["DOM","DOMQuery","DTSG","DTSGUtils","DataStore","FBLogger","Input","LSD","PHPQuerySerializer","Random","SprinkleConfig","URI","getElementPosition","isFacebookURI","isNode"],(function(t,n,r,o,a,i,l){var e,s,u="FileList"in window,c="FormData"in window;function d(t){var n={};return(e||(e=r("PHPQuerySerializer"))).serialize(t).split("&").forEach(function(e){if(e){var t=/^([^=]*)(?:=(.*))?$/.exec(e),o=(s||(s=r("URI"))).decodeComponent(t[1]),a=t[2]!==void 0,i=a?(s||(s=r("URI"))).decodeComponent(t[2]):null;n[o]=i}}),n}var m={getInputs:function(t){return t===void 0&&(t=document),[].concat(o("DOMQuery").scry(t,"input"),o("DOMQuery").scry(t,"select"),o("DOMQuery").scry(t,"textarea"),o("DOMQuery").scry(t,"button"))},getInputsByName:function(t){var e={};return m.getInputs(t).forEach(function(t){var n=e[t.name];e[t.name]=n===void 0?t:[t].concat(n)}),e},getSelectValue:function(t){return t.options[t.selectedIndex].value},setSelectValue:function(t,n){for(var e=0;e0&&s.x>0)return l}catch(e){}}}return null},focusFirst:function(t){var e=m.getFirstElement(t);return e?(e.focus(),!0):!1}};i.exports=m}),34); __d("FormSubmit",["AsyncRequest","AsyncResponse","CSS","DOMQuery","Event","Form","Parent","trackReferrer"],(function(t,n,r,o,a,i,l){var e={buildRequest:function(t,n){var e=(o("Form").getAttribute(t,"method")||"GET").toUpperCase(),a=n&&o("Parent").byTag(n,"button")||n,i=a&&o("Parent").byClass(a,"stat_elem")||t;if(o("CSS").hasClass(i,"async_saving"))return null;if(a&&(a.form!==t||a.nodeName!="INPUT"&&a.nodeName!="BUTTON"||a.type!="submit")){var l=o("DOMQuery").scry(t,".enter_submit_target")[0];l&&(a=l)}var s=o("Form").serialize(t,a);o("Form").setDisabled(t,!0);var u=o("Form").getAttribute(t,"ajaxify")||o("Form").getAttribute(t,"action"),c=!!o("Form").getAttribute(t,"data-cors");return r("trackReferrer")(t,u),new(r("AsyncRequest"))().setAllowCrossOrigin(c).setURI(u).setData(s).setNectarModuleDataSafe(t).setReadOnly(e=="GET").setMethod(e).setRelativeTo(t).setStatusElement(i).setInitialHandler(o("Form").setDisabled.bind(null,t,!1)).setHandler(function(e){r("Event").fire(t,"success",{response:e})}).setErrorHandler(function(e){r("Event").fire(t,"error",{response:e})!==!1&&r("AsyncResponse").defaultErrorHandler(e)}).setFinallyHandler(o("Form").setDisabled.bind(null,t,!1))},send:function(n,r){var t=e.buildRequest(n,r);return t&&t.send(),t}},s=e;l.default=s}),98); __d("GeneratedLoggerUtils",["invariant","Banzai","JstlMigrationFalcoEvent","getDataWithLoggerOptions","gkx"],(function(t,n,r,o,a,i,l){"use strict";var e=window.location.search.indexOf("showlog")>-1;function s(t,r,o,a){var i=n("getDataWithLoggerOptions")(r,a),l=t.split(":")[0],s=t.split(":")[1];l=="logger"?n("JstlMigrationFalcoEvent").log(function(){return{logger_config_name:s,payload:i}}):n("Banzai").post(t,i,o);var u=e||s==="EPFrontendLoggerConfig"&&n("gkx")("3917");if(u&&s==="EPFrontendLoggerConfig"&&i)var c=i.event_name||"unknown",d=i.app||"unknown",m=i.surface||"",p=m?" ["+m+"]":"",_=Date.now(),f=new Date(_).toTimeString().split(" ")[0],g=c.toLowerCase(),h=g.includes("rendered")||g.includes("error")||g.includes("view_metric_results")||g.includes("statsig_result_difference")||g.includes("request_interrupted"),y=h?"[EPFrontend]":"[EPFrontend :click:]"}var u={log:s,serializeVector:function(t){if(!t||Array.isArray(t))return t;if(t.toArray!=null){var e=t;return e.toArray()}if(typeof t=="object"&&t[typeof Symbol=="function"?Symbol.iterator:"@@iterator"])return Array.from(t);l(0,3874,t)},serializeMap:function(t){if(!t)return t;if(t.toJS!=null){var e=t;return e.toJS()}if(typeof t=="object"&&t[typeof Symbol=="function"?Symbol.iterator:"@@iterator"]){var n=t,r={};for(var o of n)r[o[0]]=o[1];return r}if(Object.prototype.toString.call(t)==="[object Object]")return t;l(0,3875,t)},checkExtraDataFieldNames:function(t,n){Object.keys(t).forEach(function(e){!Object.prototype.hasOwnProperty.call(n,e)||l(0,3876,e)})},warnForInvalidFieldNames:function(t,n,r,o){},throwIfNull:function(t,n){return t!=null||l(0,3877,n),t}};a.exports=u}),null); __d("MessengerWebPluginAnonymousTypedLogger",["Banzai","GeneratedLoggerUtils"],(function(t,n,r,o,a,i){"use strict";var e=(function(){function e(){this.$1={}}var t=e.prototype;return t.log=function(t){n("GeneratedLoggerUtils").log("logger:MessengerWebPluginAnonymousLoggerConfig",this.$1,n("Banzai").BASIC,t)},t.logVital=function(t){n("GeneratedLoggerUtils").log("logger:MessengerWebPluginAnonymousLoggerConfig",this.$1,n("Banzai").VITAL,t)},t.logImmediately=function(t){n("GeneratedLoggerUtils").log("logger:MessengerWebPluginAnonymousLoggerConfig",this.$1,{signal:!0},t)},t.clear=function(){return this.$1={},this},t.getData=function(){return babelHelpers.extends({},this.$1)},t.updateData=function(t){return this.$1=babelHelpers.extends({},this.$1,t),this},t.setAppID=function(t){return this.$1.app_id=t,this},t.setCallsite=function(t){return this.$1.callsite=t,this},t.setClientFbid=function(t){return this.$1.client_fbid=t,this},t.setDebugData=function(t){return this.$1.debug_data=t,this},t.setDeltaType=function(t){return this.$1.delta_type=t,this},t.setDeviceParam=function(t){return this.$1.device_param=t,this},t.setDomainSource=function(t){return this.$1.domain_source=t,this},t.setDuration=function(t){return this.$1.duration=t,this},t.setEvent=function(t){return this.$1.event=t,this},t.setEventTimestamp=function(t){return this.$1.event_timestamp=t,this},t.setExceptionMessage=function(t){return this.$1.exception_message=t,this},t.setExceptionStacktrace=function(t){return this.$1.exception_stacktrace=t,this},t.setExceptionType=function(t){return this.$1.exception_type=t,this},t.setGateway=function(t){return this.$1.gateway=t,this},t.setIsUserLoggedIn=function(t){return this.$1.is_user_logged_in=t,this},t.setNewEventName=function(t){return this.$1.new_event_name=t,this},t.setOtherFields=function(t){return this.$1.other_fields=n("GeneratedLoggerUtils").serializeMap(t),this},t.setPageID=function(t){return this.$1.page_id=t,this},t.setPluginExtra=function(t){return this.$1.plugin_extra=n("GeneratedLoggerUtils").serializeMap(t),this},t.setPluginInterface=function(t){return this.$1.plugin_interface=t,this},t.setPluginName=function(t){return this.$1.plugin_name=t,this},t.setRefererURI=function(t){return this.$1.referer_uri=t,this},t.setRequestHeaders=function(t){return this.$1.request_headers=t,this},t.setRequestID=function(t){return this.$1.request_id=t,this},t.setRequestParam=function(t){return this.$1.request_param=t,this},t.setTabName=function(t){return this.$1.tab_name=t,this},t.setUpgradeLoggedInUserID=function(t){return this.$1.upgrade_logged_in_user_id=t,this},t.setUpstreamEvent=function(t){return this.$1.upstream_event=t,this},t.setWhitelistedDomains=function(t){return this.$1.whitelisted_domains=t,this},e})(),l={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};i.default=e}),66); __d("PluginFeedFooterActionLogger",["AsyncRequest","DOM","Event","XPostPluginLoggingController"],(function(t,n,r,o,a,i,l){var e={initializeClickLoggers:function(t,n,o,a,i,l,s,u,c,d){var e=function(n,o){try{var e=r("DOM").find(t,"."+n);r("Event").listen(e,"click",function(e){new(r("AsyncRequest"))().setURI(r("XPostPluginLoggingController").getURIBuilder().getURI()).setData({action:o,action_type:"click",source:l,story_token:s,referer_url:u,is_sdk:c,post_url:d,embed_request_path:window.location.href}).send()})}catch(e){}};e(n,"embedded_post_like"),e(o,"embedded_post_unlike"),e(a,"embedded_post_comment"),e(i,"embedded_post_share")}},s=e;l.default=s}),98); __d("PluginLoggedOutUserTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(t,n,r,o,a,i){"use strict";var e=(function(){function e(){this.$1={}}var t=e.prototype;return t.log=function(t){n("GeneratedLoggerUtils").log("logger:PluginLoggedOutUserLoggerConfig",this.$1,n("Banzai").BASIC,t)},t.logVital=function(t){n("GeneratedLoggerUtils").log("logger:PluginLoggedOutUserLoggerConfig",this.$1,n("Banzai").VITAL,t)},t.logImmediately=function(t){n("GeneratedLoggerUtils").log("logger:PluginLoggedOutUserLoggerConfig",this.$1,{signal:!0},t)},t.clear=function(){return this.$1={},this},t.getData=function(){return babelHelpers.extends({},this.$1)},t.updateData=function(t){return this.$1=babelHelpers.extends({},this.$1,t),this},t.setHref=function(t){return this.$1.href=t,this},t.setIsSDK=function(t){return this.$1.is_sdk=t,this},t.setPluginAppID=function(t){return this.$1.plugin_app_id=t,this},t.setPluginName=function(t){return this.$1.plugin_name=t,this},t.setRefererURL=function(t){return this.$1.referer_url=t,this},t.updateExtraData=function(t){var e=n("nullthrows")(n("GeneratedLoggerUtils").serializeMap(t));return n("GeneratedLoggerUtils").checkExtraDataFieldNames(e,l),this.$1=babelHelpers.extends({},this.$1,e),this},t.addToExtraData=function(t,n){var e={};return e[t]=n,this.updateExtraData(e)},e})(),l={href:!0,is_sdk:!0,plugin_app_id:!0,plugin_name:!0,referer_url:!0};i.default=e}),66); __d("PluginOptin",["DOMEvent","DOMEventListener","MessengerWebPluginAnonymousTypedLogger","PlatformWidgetEndpoint","PluginLoggedOutUserTypedLogger","PluginMessage","PopupWindow","URI","UserAgent_DEPRECATED"],(function(t,n,r,o,a,i,l){var e,s={default:{width:450,height:410},large:{width:475,height:605}},u=(function(){function t(t,n){this.return_params=(e||(e=r("URI"))).getRequestURI().getQueryData(),this.login_params={},this.optin_params={},this.plugin=t,this.api_key=n,this.size="default",this.addReturnParams({ret:"optin"}),delete this.return_params.hash}var n=t.prototype;return n.addReturnParams=function(t){return this.return_params=babelHelpers.extends({},this.return_params,t),this},n.addLoginParams=function(t){return this.login_params=babelHelpers.extends({},this.login_params,t),this},n.addOptinParams=function(t){return this.optin_params=babelHelpers.extends({},this.optin_params,t),this},n.setSize=function(t){return this.size=t||"default",this},n.start=function(){var t=this.api_key||0x7432769dc3ea;(e||(e=r("URI"))).getRequestURI().getQueryData().kid_directed_site&&(this.login_params.kid_directed_site=!0),this.login_params.referrer=document.referrer;var n=new(e||(e=r("URI")))(r("PlatformWidgetEndpoint").dialog("plugin.optin")).addQueryData(this.optin_params).addQueryData({app_id:t,secure:e.getRequestURI().isSecure(),social_plugin:this.plugin,return_params:JSON.stringify(this.return_params),login_params:JSON.stringify(this.login_params)}),a=o("UserAgent_DEPRECATED").mobile()!==null;a?n.setSubdomain("m"):n.addQueryData({display:"popup"}),this.return_params.act!==null&&this.return_params.act==="send"&&new(r("PluginLoggedOutUserTypedLogger"))().setPluginAppID(t).setPluginName(this.return_params.act).setHref(this.return_params.href).logVital();var i=s[this.size];return n=this.transformSocialPluginToFacebookDomainPopupURI(n,e.getRequestURI().getDomain(),a),this.popup=o("PopupWindow").open(n.toString(),i.height,i.width,"fbPluginAuthenticationPopupWindow"),this.plugin==="customer_chat"&&this.login_params.chat_plugin_upgrade!=null&&this.login_params.chat_plugin_upgrade===!0&&new(r("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(),o("PluginMessage").listen(),this},n.transformSocialPluginToFacebookDomainPopupURI=function(t,n,r){var e=n.split(".");return e[0]!=="socialplugin"?t:(e[e.length-1]="com",e[0]=r?"m":"www",t.setDomain(e.join(".")).setProtocol("https"))},t})();u.starter=function(e,t,n,r){var o=new u(e);return o.addReturnParams(t||{}),o.addLoginParams(n||{}),o.addOptinParams(r||{}),function(){return o.start()}},u.listen=function(e,t,n,o,a){r("DOMEventListener").add(e,"click",function(e){new(r("DOMEvent"))(e).kill(),u.starter(t,n,o,a)()})},l.default=u}),98); __d("PluginFeedLikeButton",["Arbiter","AsyncFormRequestUtils","CSS","ClientIDs","DOM","DOMEventListener","FormSubmit","Keys","PluginOptin","URI","err"],(function(t,n,r,o,a,i,l){var e;window.resetConfirmStoryLike=function(e){o("CSS").show(r("DOM").find(document,"#likeStory_"+e)),r("DOM").remove(r("DOM").find(document,"#confirmStory_"+e))};function s(e){e.setAttribute("value",o("ClientIDs").getNewClientID())}function u(e,t,n){var a="";if(t===23)a="post";else if(t===50)a="page";else throw r("err")("Invalid FBFeedLocation type.");var i=new(r("PluginOptin"))(a).addReturnParams({act:"like_"+e});o("DOMEventListener").add(n,"click",function(){return i.start()})}function c(t,n,a,i,l){var s,u=function(t){if(t.type==="keypress")if(t.keyCode===r("Keys").RETURN||t.keyCode===r("Keys").SPACE)r("FormSubmit").send(l);else return;r("FormSubmit").send(l)};(s=o("DOMEventListener")).add(n,"click",u),s.add(a,"click",u),s.add(n,"keypress",u),s.add(a,"keypress",u);var c=i.getAttribute("value")==="1";o("AsyncFormRequestUtils").subscribe(l,"send",function(e){var l=i.getAttribute("value")==="1";o("CSS").conditionShow(a,l),o("CSS").conditionShow(n,!l),r("Arbiter").inform("embeddedUfiToggle",{isLike:l,storyToken:t}),i.setAttribute("value",l?"":"1")}),o("AsyncFormRequestUtils").subscribe(l,"response",function(e){var l=e.response.payload;if(l&&!l.success){var s=l.isLike;o("CSS").conditionShow(n,s),o("CSS").conditionShow(a,!s),r("Arbiter").inform("revertLike",{isLike:s,storyToken:t}),i.setAttribute("value",s?"1":"")}});var d=new(e||(e=r("URI")))(window.location.search).getQueryData();c&&d.act==="like_"+t&&r("FormSubmit").send(l)}l.addClientId=s,l.loggedOutLikeButton=u,l.init=c}),98); __d("textExpose",["Arbiter","CSS","Parent"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t){e.onclick=function(n){var a=o("Parent").byClass(e,"text_exposed_root");a&&a.getAttribute("id")==t&&(o("CSS").addClass(a,"text_exposed"),r("Arbiter").inform("reflow")),n.preventDefault()}}function s(e,t){e.onclick=function(n){var a=o("Parent").byClass(e,"text_exposed_root");a&&a.getAttribute("id")==t&&(o("CSS").removeClass(a,"text_exposed"),r("Arbiter").inform("reflow"))}}l.attachSeeMoreOnClick=e,l.attachSeeLessOnClick=s}),98); __d("throttle",["TimeSlice","TimeSliceInteractionSV","setTimeout","setTimeoutAcrossTransitions"],(function(t,n,r,o,a,i,l){function e(e,t,n){return s(e,t,n,r("setTimeout"),!1)}Object.assign(e,{acrossTransitions:function(t,n,o){return s(t,n,o,r("setTimeoutAcrossTransitions"),!1)},withBlocking:function(t,n,o){return s(t,n,o,r("setTimeout"),!0)},acrossTransitionsWithBlocking:function(t,n,o){return s(t,n,o,r("setTimeoutAcrossTransitions"),!0)}});function s(e,t,n,o,a){var i=t==null?100:t,l,s=null,u=0,c=null,d=[],m=r("TimeSlice").guard(function(){if(u=Date.now(),s){for(var t=function(t){e.apply(l,t)}.bind(null,s),n=d.length;--n>=0;)t=d[n].bind(null,t);d=[],t(),s=null,c=o(m,i)}else c=null},"throttle_"+i+"_ms",{propagationType:r("TimeSlice").PropagationType.EXECUTION,registerCallStack:!0});return m.__SMmeta=e.__SMmeta,function(){r("TimeSliceInteractionSV").ref_counting_fix&&d.push(r("TimeSlice").getGuardedContinuation("throttleWithContinuation"));for(var e=arguments.length,t=new Array(e),p=0;pi)&&(a===!0?m():c=o(m,0))}}var u=e;l.default=u}),98);