;/*FB_PKG_DELIM*/ __d("BanzaiLogger",["cr:9989"],(function(a,b,c,d,e,f,g){function h(a){return{log:function(c,d){b("cr:9989").post("logger:"+c,d,a)},create:h}}a=h();c=a;g["default"]=c}),98); __d("BehaviorsMixin",[],(function(a,b,c,d,e,f){var g=function(){function a(a){this.$1=a,this.$2=!1}var b=a.prototype;b.enable=function(){this.$2||(this.$2=!0,this.$1.enable())};b.disable=function(){this.$2&&(this.$2=!1,this.$1.disable())};return a}(),h=1;function i(a){a.__BEHAVIOR_ID||(a.__BEHAVIOR_ID=h++);return a.__BEHAVIOR_ID}a={enableBehavior:function(a){this._behaviors||(this._behaviors={});var b=i(a);this._behaviors[b]||(this._behaviors[b]=new g(new a(this)));this._behaviors[b].enable();return this},disableBehavior:function(a){if(this._behaviors){a=i(a);this._behaviors[a]&&this._behaviors[a].disable()}return this},enableBehaviors:function(a){a.forEach(this.enableBehavior,this);return this},destroyBehaviors:function(){if(this._behaviors){for(var a in this._behaviors)this._behaviors[a].disable();this._behaviors={}}},hasBehavior:function(a){return this._behaviors&&i(a)in this._behaviors}};b=a;f["default"]=b}),66); __d("ContextualThing",["CSS","containsNode","ge","getOrCreateDOMID"],(function(a,b,c,d,e,f,g){function a(a,b){a.setAttribute("data-ownerid",c("getOrCreateDOMID")(b))}function b(a,b){b=b;while(b){if(c("containsNode")(a,b))return!0;b=h(b)}return!1}function h(a){a=a;var b;while(a){if(a.getAttribute&&(b=a.getAttribute("data-ownerid")))return c("ge")(b);a=a.parentNode}return null}function e(a,b){a=a;var e;while(a&&!d("CSS").hasClass(a,b))a.getAttribute&&(e=a.getAttribute("data-ownerid"))?a=c("ge")(e):a=a.parentNode;return a}g.register=a;g.containsIncludingLayers=b;g.getContext=h;g.parentByClass=e}),98); __d("ReactDOM_DEPRECATED",["ReactDOMCompatibilityLayer","cr:1293","err","setupReactRefresh"],(function(a,b,c,d,e,f,g){b("setupReactRefresh");function a(){throw c("err")("This React API is not available on Workplace.")}f=(e=b("cr:1293").findDOMNode)!=null?e:a;g.findDOMNode_DEPRECATED=f;g.render_DEPRECATED=d("ReactDOMCompatibilityLayer").render_DEPRECATED;g.unmountComponentAtNode_DEPRECATED=d("ReactDOMCompatibilityLayer").unmountComponentAtNode_DEPRECATED}),98); __d("isValidReactElement",[],(function(a,b,c,d,e,f){var g=typeof Symbol==="function"&&Symbol["for"]&&Symbol["for"]("react.element")||60103;function a(a){return!!(typeof a==="object"&&a!==null&&a.$$typeof===g)}f["default"]=a}),66); __d("Layer",["invariant","ArbiterMixin","BehaviorsMixin","CSS","ContextualThing","DOM","DataStore","Event","FBLogger","HTML","KeyEventController","KeyStatus","Parent","ReactDOM_DEPRECATED","Style","ge","isNode","isValidReactElement","mixin","react","removeFromArray","setImmediate"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useLayoutEffect;b("KeyStatus");var m=[],n=function(b){babelHelpers.inheritsLoose(a,b);function a(a,d){var e;e=b.call(this)||this;e._config=a||{};if(d){e._configure(e._config,d);a=e._config.addedBehaviors||[];e.enableBehaviors(e._getDefaultBehaviors().concat(a))}else c("FBLogger")("layer").warn("The markup param wasn't provided to the Layer constructor");return e}var e=a.prototype;e.init=function(a){this._configure(this._config,a);a=this._config.addedBehaviors||[];this.enableBehaviors(this._getDefaultBehaviors().concat(a));this._initialized=!0;return this};e._configure=function(a,b){var e=this;if(b){var f=c("isNode")(b),g=typeof b==="string"||c("HTML").isHTML(b);this.containsReactComponent=c("isValidReactElement")(b);!f&&!g&&!this.containsReactComponent&&c("FBLogger")("layer").warn("Layer must be init with HTML, DOM node or React instance");if(g)b=c("HTML")(b).getRootNode();else if(this.containsReactComponent){f=document.createElement("div");q(b,f,function(){e.inform("reactshow"),e.updatePosition()});b=this._reactContainer=f}}this._root=this._buildWrapper(a,b);a.attributes&&c("DOM").setAttributes(this._root,a.attributes);a.classNames&&a.classNames.forEach(d("CSS").addClass.bind(null,this._root));d("CSS").addClass(this._root,"uiLayer");a.causalElement&&(this._causalElement=c("ge")(a.causalElement));a.permanent&&(this._permanent=a.permanent);a.isStrictlyControlled&&(this._isStrictlyControlled=a.isStrictlyControlled);d("DataStore").set(this._root,"layer",this)};e._getDefaultBehaviors=function(){return[]};e.getCausalElement=function(){return this._causalElement};e.setCausalElement=function(a){this._causalElement=a;return this};e.getInsertParent=function(){return this._insertParent||document.body};e.getRoot=function(){this._root||(this._destroyed?c("FBLogger")("layer").warn("No root node for this Layer. It has either not yet been set or the Layer has been destroyed. This layer has been destroyed."):c("FBLogger")("layer").warn("No root node for this Layer. It has probably not been set."));return this._root};e.getContentRoot=function(){return this.getRoot()};e._buildWrapper=function(a,b){return b};e.setInsertParent=function(a){a&&(this._shown&&a!==this.getInsertParent()&&(c("DOM").appendContent(a,this.getRoot()),this.updatePosition()),this._insertParent=a);return this};e.showAfterDelay=function(a){window.setTimeout(this.show.bind(this),a)};e.show=function(){var b=this;if(this._shown)return this;var e=this.getRoot();e!=null||h(0,5142);this.inform("beforeshow");c("Style").set(e,"visibility","hidden");c("Style").set(e,"overflow","hidden");d("CSS").show(e);c("DOM").appendContent(this.getInsertParent(),e);this.updatePosition()!==!1?(this._shown=!0,this.inform("show"),a.inform("show",this),this._permanent||window.setTimeout(function(){b._shown&&m.push(b)},0)):d("CSS").hide(e);c("Style").set(e,"visibility","");c("Style").set(e,"overflow","");c("Style").set(e,"opacity","1");this.inform("aftershow");return this};e.hide=function(a){if(this._isStrictlyControlled){this._shown&&this.inform("runhide",a);return this}return this._hide()};e._hide=function(){if(this._hiding||!this._shown||this.inform("beforehide")===!1)return this;this._hiding=!0;this.inform("starthide")!==!1&&this.finishHide();return this};e.conditionShow=function(a){return a?this.show():this._hide()};e.finishHide=function(){if(this._shown){this._permanent||c("removeFromArray")(m,this);this._hiding=!1;this._shown=!1;var b=this.getRoot();b!=null||h(0,5143);d("CSS").hide(b);this.inform("hide");a.inform("hide",this)}};e.isShown=function(){return this._shown};e.updatePosition=function(){return!0};e.destroy=function(){this.containsReactComponent&&d("ReactDOM_DEPRECATED").unmountComponentAtNode_DEPRECATED(this._reactContainer);this.finishHide();var b=this.getRoot();c("DOM").remove(b);this.destroyBehaviors();this.inform("destroy");a.inform("destroy",this);d("DataStore").remove(b,"layer");this._root=this._causalElement=null;this._destroyed=!0};a.init=function(a,b){a.init(b)};a.initAndShow=function(a,b){a.init(b).show()};a.show=function(a){a.show()};a.showAfterDelay=function(a,b){a.showAfterDelay(b)};a.getTopmostLayer=function(){return m[m.length-1]};a.informBlur=function(a){o=null;p=null;var b=m.length;if(!b)return;while(b--){var c=m[b],e=c.getContentRoot();e!=null||h(0,5144);if(d("ContextualThing").containsIncludingLayers(e,a))return;if(c.inform("blur",{target:a})===!1||c.isShown())return}};return a}(c("mixin")(c("ArbiterMixin"),c("BehaviorsMixin")));Object.assign(n,c("ArbiterMixin"));Object.assign(n.prototype,{_destroyed:!1,_initialized:!1,_root:null,_shown:!1,_hiding:!1,_causalElement:null,_reactContainer:null});c("Event").listen(document.documentElement,"keydown",function(a){if(c("KeyEventController").filterEventTargets(a,"keydown"))for(var b=m.length-1;b>=0;b--)if(m[b].inform("key",a)===!1)return!1;return!0},c("Event").Priority.URGENT);var o;c("Event").listen(document.documentElement,"mousedown",function(a){o=a.getTarget()});var p;c("Event").listen(document.documentElement,"mouseup",function(a){p=a.getTarget(),c("setImmediate")(function(){o=null,p=null})});c("Event").listen(document.documentElement,"click",function(a){var b=o,e=p;o=null;p=null;var f=m.length;if(!f)return;f=a.getTarget();if(f!==e||f!==b)return;if(!c("DOM").contains(document.documentElement,f))return;if(f.offsetWidth!=null&&!f.offsetWidth)return;if(d("Parent").byClass(f,"generic_dialog"))return;n.informBlur(f)});function q(a,b,e){c("setImmediate")(function(){d("ReactDOM_DEPRECATED").render_DEPRECATED(k.jsx(r,{onRender:e,children:a}),b)})}function r(a){var b=a.children,c=a.onRender;l(function(){c()},[c]);return b}r.displayName=r.name+" [from "+f.id+"]";g["default"]=n}),98); __d("MNCommerceLogger",["BanzaiLogger","ODS"],(function(a,b,c,d,e,f,g){"use strict";var h,i=c("BanzaiLogger").create({signal:!0});function j(a){switch(a){case"devx_upsell_learn_more_clicked":return"devx.upsell.learn_more.clicked";default:return a}}function a(a,b,c){(h||(h=d("ODS"))).bumpEntityKey(2966,"messenger_commerce",j(a)),i.log("MessengerCommerceLoggerConfig",{brand_app_id:b,user_fbid:c,event:a})}function b(a,b,c,e){i.log("MessengerCommerceLoggerConfig",{brand_app_id:a,page_id:b,user_fbid:c,event:e}),(h||(h=d("ODS"))).bumpEntityKey(2966,"messenger_commerce","auth."+e+".all")}g.logClick=a;g.logAuthEvent=b}),98); __d("PluginCSSReflowHack",["Style"],(function(a,b,c,d,e,f,g){function a(a){setTimeout(function(){var b="border-bottom-width",d=c("Style").get(a,b);c("Style").set(a,b,parseInt(d,10)+1+"px");c("Style").set(a,b,d)},1e3)}g.trigger=a}),98); __d("PluginMessage",["Arbiter","CSS","DOM","DOMEventListener","MNCommerceLogger","UnverifiedXD"],(function(a,b,c,d,e,f,g){var h="platform/plugins/checkbox_connect/access_token";function a(){d("DOMEventListener").add(window,"message",function(a){if(/\.facebook\.com$/.test(a.origin)&&i().test(a.data)){a=JSON.parse(a.data.substring(24));"type"in a&&(a.type==="send_to_messenger"?j(a):a.type==="messenger_checkbox"?k(a):a.type==="customer_chat"&&m(a))}})}function i(){return new RegExp("^SOCIALPLUGIN_AUTH_POPUP:")}function j(a){var b=document.getElementById("send-to-messenger-connect-button"),e=document.getElementById("send-to-messenger-disconnect-button"),f=document.getElementById("send-to-messenger-identity"),g=document.getElementById("send-to-messenger-profile-photo"),h=document.getElementById("send-to-messenger-profile-name");b!=null&&e!=null&&f!=null&&g!=null&&h!=null&&(a.can_personalize===!0&&a.connected===!0?(d("CSS").show(b),d("CSS").hide(e),l(g,a.profile_photo),l(h,a.profile_name),d("CSS").show(f),d("MNCommerceLogger").logAuthEvent(String(a.app_id),String(a.page_id),String(a.user_id),"send_to_messenger_opt_in_client_event"),c("UnverifiedXD").send({type:"sdk_event",event:"send_to_messenger",data:JSON.stringify({event:"opt_in",ref:String(a.ref)})})):(d("CSS").hide(b),d("CSS").show(e),d("CSS").hide(f)))}function k(a){var b=document.getElementById("plugin-MN-commerce-identity"),e=document.getElementById("plugin-MN-commerce-identity-profile-picture"),f=document.getElementById("plugin-MN-commerce-identity-profile-name"),g=document.getElementById("web-plugin-checkbox-form");b!=null&&e!=null&&f!=null&&g!=null&&(a.can_personalize===!0?(l(e,a.profile_photo),l(f,a.profile_name),d("CSS").show(b),l(g,a.checkbox),a.access_token!=null&&c("Arbiter").inform(h,a.access_token)):d("CSS").hide(b))}function l(a,b){var d=document.createElement("div");c("DOM").setContent(d,b);b=d.firstChild;b!=null&&a.replaceWith(b)}function m(a){var b=window.require("Arbiter");"ArbiterData"in a?b.inform(a.ArbiterEvent,a.ArbiterData):b.inform(a.ArbiterEvent)}g.MESSENGER_CHECKBOX_ACCESS_TOKEN_LOGIN_ARBITER=h;g.listen=a}),98); __d("getViewportDimensions",["UserAgent"],(function(a,b,c,d,e,f,g){"use strict";var h=function(){var a=null;return function(){var b=document.body;if(b==null)return null;(a==null||!b.contains(a))&&(a=document.createElement("div"),a.style.left=Number.MAX_SAFE_INTEGER+"px",a.style.width="100%",a.style.height="100%",a.style.position="fixed",b.appendChild(a));return a}}();function i(){var a;document.documentElement&&(a=document.documentElement.clientWidth);a==null&&document.body&&(a=document.body.clientWidth);return a||0}function j(){var a;document.documentElement&&(a=document.documentElement.clientHeight);a==null&&document.body&&(a=document.body.clientHeight);return a||0}function k(){return{width:window.innerWidth||i(),height:window.innerHeight||j()}}k.withoutScrollbars=function(){return c("UserAgent").isPlatform("Android")?k():{width:i(),height:j()}};k.layout=function(){var a,b=h();return{width:(a=b==null?void 0:b.clientWidth)!=null?a:i(),height:(a=b==null?void 0:b.clientHeight)!=null?a:j()}};g["default"]=k}),98); __d("isFalsey",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a==null||!Boolean(a)}f["default"]=a}),66); __d("PopupWindow",["DOMDimensions","DOMQuery","FlowMigrationUtilsForLegacyFiles","Layer","Popup","getViewportDimensions","isFalsey"],(function(a,b,c,d,e,f,g){var h={allowShrink:!0,strategy:"vector",timeout:100,widthElement:null};function b(a){Object.assign(h,a),window.setInterval(i,h.timeout)}function i(){var a=c("getViewportDimensions")(),b=j(),e=c("Layer").getTopmostLayer();if(e){e=(e=e.getRoot())==null?void 0:e.firstChild;e||d("FlowMigrationUtilsForLegacyFiles").invariantViolation("topMostLayer.getRoot().firstChild is null.");var f=d("DOMDimensions").getElementDimensions(e);f.height+=d("DOMDimensions").measureElementBox(e,"height",!0,!0,!0);f.width+=d("DOMDimensions").measureElementBox(e,"width",!0,!0,!0);b.height=Math.max(b.height,f.height);b.width=Math.max(b.width,f.width)}e=b.height-a.height;f=b.width-a.width;f<0&&c("isFalsey")(h.widthElement)&&(f=0);f=f>1?f:0;c("isFalsey")(h.allowShrink)&&e<0&&(e=0);if(e||f)try{window.console&&window.console.firebug,window.resizeBy(f,e),f&&window.moveBy(f/-2,0)}catch(a){}}function j(){var b=d("DOMDimensions").getDocumentDimensions();if(h.strategy==="offsetHeight"){var e=document.body;if(!e)d("FlowMigrationUtilsForLegacyFiles").invariantViolation("document.body is null.");else{b.height=(e=e.offsetHeight)!=null?e:0}}if(c("isFalsey")(h.widthElement)&&typeof h.widthElement==="string"){e=d("DOMQuery").scry(document.body,h.widthElement)[0];e&&(b.width=d("DOMDimensions").getElementDimensions(e).width)}e=a.Dialog;e&&e.max_bottom&&e.max_bottom>b.height&&(b.height=e.max_bottom);return b}function e(a,b,c,e){return d("Popup").open(a,c,b,e)}g._opts=h;g.init=b;g._resizeCheck=i;g._getDocumentSize=j;g.open=e}),98); __d("PluginConfirm",["DOMEvent","DOMEventListener","PlatformVersioning","PluginMessage","PopupWindow","URI"],(function(a,b,c,d,e,f){var g;function h(a){Object.assign(this,{plugin:a,confirm_params:{},return_params:(g||(g=b("URI"))).getRequestURI().getQueryData()}),this.addReturnParams({ret:"sentry"}),delete this.return_params.hash}Object.assign(h.prototype,{addConfirmParams:function(a){Object.assign(this.confirm_params,a)},addReturnParams:function(a){Object.assign(this.return_params,a);return this},start:function(){var a=b("PlatformVersioning").versionAwareURI(new(g||(g=b("URI")))("/plugins/error/confirm/"+this.plugin)).addQueryData(this.confirm_params).addQueryData({secure:g.getRequestURI().isSecure(),plugin:this.plugin,return_params:JSON.stringify(this.return_params)});this.popup=b("PopupWindow").open(a.toString(),320,486);b("PluginMessage").listen();return this}});h.starter=function(a,b,c){a=new h(a);a.addConfirmParams(b||{});a.addReturnParams(c||{});return a.start.bind(a)};h.listen=function(a,c,d,e){b("DOMEventListener").add(a,"click",function(a){new(b("DOMEvent"))(a).kill(),h.starter(c,d,e)()})};e.exports=h}),null); __d("PluginPageActionLogger",["BanzaiLogger","DOMEventListener","DOMQuery","ODS"],(function(a,b,c,d,e,f,g){var h;function a(a,b,e,f,g,i,j,k,l,m){function n(g,i){g=d("DOMQuery").scry(f,"."+g)[0];if(!g)return;d("DOMEventListener").add(g,"click",function(f){(h||(h=d("ODS"))).bumpEntityKey(2966,"platform_www","platform.plugin.page.action"),c("BanzaiLogger").log("PagePluginActionsLoggerConfig",{page_id:b,page_plugin_action:i,page_plugin_action_type:"click",referer_url:e,is_sdk:a})})}n(g,"page_like");n(i,"page_unlike");n(j,"page_avatar");n(k,"page_permalink");n(l,"page_share");n(m,"page_cta")}g.initializeClickLoggers=a}),98); __d("SubscriptionsHandler",["invariant"],(function(a,b,c,d,e,f,g,h){"use strict";function i(a){return a.remove||a.reset||a.unsubscribe||a.cancel||a.dispose}function j(a){i(a).call(a)}a=function(){function a(){this.$1=[]}var b=a.prototype;b.addSubscriptions=function(){for(var a=arguments.length,b=new Array(a),c=0;c