172 lines
186 KiB
Plaintext
172 lines
186 KiB
Plaintext
;/*FB_PKG_DELIM*/
|
|
|
|
__d("CometLruCache",["FBLogger"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(){function e(e,t){this.$1=e,this.$2=t,e<=0&&r("FBLogger")("CometLruCache").mustfix("CometLruCache: Unable to create instance of cache with zero or negative capacity."),this.$3=new Map}var t=e.prototype;return t.set=function(t,n){if(this.$3.delete(t),this.$3.set(t,{timestamp:Date.now(),value:n}),this.$3.size>this.$1){var e=this.$3.keys().next();e.done||this.$3.delete(e.value)}},t.get=function(t){var e=this.$3.get(t);return e!=null?Date.now()>e.timestamp+this.$2?(this.$3.delete(t),null):(this.$3.delete(t),this.$3.set(t,e),e.value):null},t.has=function(t){return this.$3.has(t)},t.delete=function(t){this.$3.delete(t)},t.size=function(){return this.$3.size},t.capacity=function(){return this.$1-this.$3.size},t.clear=function(){this.$3.clear()},e})();function s(t,n){return n===void 0&&(n=Number.MAX_SAFE_INTEGER),new e(t,n)}l.create=s}),98);
|
|
__d("structuredClone",[],(function(t,n,r,o,a,i){"use strict";var e,l=(e=window)==null?void 0:e.structuredClone;i.default=l}),66);
|
|
__d("ConstUriUtils",["CometLruCache","ExecutionEnvironment","FBLogger","PHPQuerySerializer","PHPQuerySerializerNoEncoding","URIRFC3986","URISchemes","UriNeedRawQuerySVConfig","isSameOrigin","nullthrows","structuredClone"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c,d=o("CometLruCache").create(5e3),m=new RegExp("(^|\\.)facebook\\.com$","i"),p=new RegExp("(^|\\.)messenger\\.com$","i"),_=new RegExp("(^|\\.)instagram\\.com$","i"),f=new RegExp("(^|\\\\.)meta\\\\.(com|ai)$","i"),g=new RegExp("(^|\\.)threads\\.com$","i"),h=new RegExp("^(?:[^/]*:|[\\x00-\\x1f]*/[\\x00-\\x1f]*/)"),y=new RegExp("[\\x00-\\x2c\\x2f\\x3b-\\x40\\x5c\\x5e\\x60\\x7b-\\x7f\\uFDD0-\\uFDEF\\uFFF0-\\uFFFF\\u2047\\u2048\\uFE56\\uFE5F\\uFF03\\uFF0F\\uFF1F]"),C=r("UriNeedRawQuerySVConfig").uris.map(function(e){return{domain:e,valid:k(e)}}),b=[],v=[];function S(e,t){var n={};if(e!=null)for(var o of e.entries())n[o[0]]=o[1];else r("FBLogger")("ConstUriUtils").warn("Passed a null query map in, this means poor client side flow coverage or client/server boundary type issue.");return t.serialize(n)}function R(e,t,n){var o=c||(c=r("PHPQuerySerializer"));if(["http","https"].includes(t)&&L(e)){if(e.includes("doubleclick.net")&&n!=null&&!n.startsWith("http"))return o;o=r("PHPQuerySerializerNoEncoding")}return o}function L(e){return e!=null&&C.some(function(t){return t.valid&&E(e,t.domain)})}function E(e,t){if(t===""||e==="")return!1;if(e.endsWith(t)){var n=e.length-t.length-1;if(n===-1||e[n]===".")return!0}return!1}function k(e){return!y.test(e)}function I(e,t){var n=t.protocol!=null&&t.protocol!==""?t.protocol:e.getProtocol(),r=t.domain!=null?R(t.domain,n):e.getSerializer(),o={domain:e.getDomain(),fragment:e.getFragment(),fragmentSeparator:e.hasFragmentSeparator(),isGeneric:e.isGeneric(),originalRawQuery:e.getOriginalRawQuery(),path:e.getPath(),port:e.getPort(),protocol:e.getProtocol(),queryParams:e.getQueryParams(),serializer:r,subdomain:e.getSubdomain()},a=babelHelpers.extends({},o,t),i=t.queryParams!=null&&t.queryParams.size!==0;return P.getUribyObject(a,i)}function T(e,t,n,r){n===void 0&&(n=!1);var o=e.protocol!==""?e.protocol+":"+(e.isGeneric?"":"//"):"",a=e.domain!==""?e.domain:"",i=e.port!==""?":"+e.port:"",l=e.path!==""?e.path:o!==""&&o!=="mailto:"||a!==""||i!==""?"/":"",s=D(a,e.originalRawQuery,e.queryParams,t,n,r!=null?r:e.serializer),u=s.length>0?"?":"",c=e.fragment!==""?"#"+e.fragment:"",d=e.fragment===""&&e.fragmentSeparator?"#":"";return""+o+a+i+l+u+s+d+c}function D(e,t,n,r,o,a){return o===void 0&&(o=!1),!r&&(o||L(e))?t!=null?t:"":S(n,a)}function x(t){var n,r=t.trim(),a=(e||(e=o("URIRFC3986"))).parse(r)||{fragment:null,host:null,isGenericURI:!1,query:null,scheme:null,userinfo:null},i=a.host||"",l=i.split("."),s=l.length>=3?l[0]:"",u=R(i,a.scheme||"",a.query),c=u.deserialize(a.query||"")||{},d=new Map(Object.entries(c)),m=$({domain:i,fragment:a.fragment||"",fragmentSeparator:a.fragment==="",isGeneric:a.isGenericURI,originalRawQuery:a.query,path:a.path||"",port:a.port!=null?String(a.port):"",protocol:(a.scheme||"").toLowerCase(),queryParams:d,serializer:u,subdomain:s,userInfo:(n=a==null?void 0:a.userinfo)!=null?n:""},t);return m}function $(e,t,n,a){n===void 0&&(n=(u||(u=o("URISchemes"))).Options.INCLUDE_DEFAULTS);var i={components:babelHelpers.extends({},e),error:"",valid:!0},l=i.components;if(!(u||(u=o("URISchemes"))).isAllowed(e.protocol,n,a))return i.valid=!1,i.error='The URI protocol "'+String(e.protocol)+'" is not allowed.',i;if(!k(e.domain||""))return i.valid=!1,i.error="This is an unsafe domain "+String(e.domain),i;if(l.port=e.port!=null&&String(e.port)||"",e.userInfo)return i.valid=!1,i.error="Invalid URI: (userinfo is not allowed in a URI "+String(e.userInfo)+")",i;var s=t!=null&&t!==""?t:T(l,!1);return l.domain===""&&l.path.indexOf("\\")!==-1?(i.valid=!1,i.error="Invalid URI: (no domain but multiple back-slashes "+s+")",i):!l.protocol&&h.test(s)?(i.valid=!1,i.error="Invalid URI: (unsafe protocol-relative URI "+s+")",i):l.domain!==""&&l.path!==""&&!l.path.startsWith("/")?(i.valid=!1,i.error="Invalid URI: (domain and pathwhere path lacks leading slash "+s+")",i):(l.protocol!==""&&l.protocol!=="file"&&!l.isGeneric&&!l.domain&&l.path!==""&&r("FBLogger")("ConstUriUtils").warn('invalid URI (protocol "'+l.protocol+'" with no domain)'),i)}var P=(function(){function e(e){this.queryParams=new Map,this.domain=e.domain,this.fragment=e.fragment,this.fragmentSeparator=!!e.fragmentSeparator,this.isGenericProtocol=!!e.isGeneric,this.path=e.path,this.originalRawQuery=e.originalRawQuery,this.port=e.port,this.protocol=e.protocol,this.queryParams=e.queryParams,this.serializer=e.serializer,this.subdomain=e.subdomain}var t=e.prototype;return t.addQueryParam=function(t,n){if(t){var e=this.getQueryParams();return e.set(t,n),I(this,{queryParams:e})}return this},t.addQueryParams=function(t){if(t.size>0){var e=this.getQueryParams();return t.forEach(function(t,n){e.set(n,t)}),I(this,{queryParams:e})}return this},t.addQueryParamString=function(t){if(t){var e=t.startsWith("?")?t.slice(1):t,n=this.getQueryParams();return e.split("&").map(function(e){var t=e.split("="),r=t[0],o=t[1];n.set(r,o)}),I(this,{queryParams:n})}return this},t.addTrailingSlash=function(){var e=this.getPath();return e.length>0&&e[e.length-1]!=="/"?this.setPath(e+"/"):this},t.getDomain=function(){return this.domain},t.getFragment=function(){return this.fragment},t.getOrigin=function(){var e=this.getPort();return this.getProtocol()+"://"+this.getDomain()+(e?":"+e:"")},t.getOriginalRawQuery=function(){return this.originalRawQuery},t.getPath=function(){return this.path},t.getPort=function(){return this.port},t.getProtocol=function(){return this.protocol.toLowerCase()},t.getQualifiedUri=function(){if(!this.getDomain()){var t,n=(t=typeof window!="undefined"?window:self)==null||(t=t.location)==null?void 0:t.href;if(n==null)return r("FBLogger")("ConstUriUtils").blameToPreviousFile().warn("Cannot get qualified URI for current URI as there is no current location"),null;(s||(s=r("ExecutionEnvironment"))).isInWorker&&n.startsWith("blob:")&&(n=n.substring(5,n.length));var o=n.slice(0,n.indexOf("/",n.indexOf(":")+3));return e.getUri(o+this.toString())}return this},t.getQueryParam=function(t){var e=this.queryParams.get(t);if(typeof e=="string")return e;var n=JSON.stringify(e);return n==null?n:JSON.parse(n)},t.getQueryData=function(){return Object.fromEntries(this.getQueryParams())},t.getQueryParams=function(){if(r("structuredClone")!=null)return r("structuredClone")(this.queryParams);var e=JSON.stringify(Array.from(this.queryParams),function(e,t){return Array.isArray(t)?{__CUUArr:!0,value:babelHelpers.extends({},t)}:t}),t=JSON.parse(e,function(e,t){return t!=null&&typeof t=="object"&&t.__CUUArr?Object.keys(t.value).reduce(function(e,n){return e[n]=t.value[n],e},[]):t});return new Map(t)},t.getQueryString=function(t){return t===void 0&&(t=!1),D(this.domain,this.originalRawQuery,this.queryParams,!1,t,this.serializer)},t.getRegisteredDomain=function(){if(!this.getDomain())return"";if(!this.isFacebookUri())return null;var e=this.getDomain().split("."),t=e.indexOf("facebook");return t===-1&&(t=e.indexOf("workplace")),e.slice(t).join(".")},t.getSerializer=function(){return this.serializer},t.getSubdomain=function(){return this.subdomain},t.getUnqualifiedUri=function(){if(this.getDomain()){var t=this.toString();return e.getUri(t.slice(t.indexOf("/",t.indexOf(":")+3)))}return this},e.getUri=function(n){var t=n.trim(),o=d.get(t);if(o==null){var a=x(t);if(a.valid)o=new e(a.components),d.set(t,o);else return r("FBLogger")("ConstUriUtils").blameToPreviousFrame().warn(a.error),null}return o},e.getUriOrThrow=function(n){return r("nullthrows")(e.getUri(n))},e.getUribyObject=function(n,o){var t=T(n,o),a=d.get(t);if(a==null){o&&(n.originalRawQuery=S(n.queryParams,n.serializer));var i=$(n);if(i.valid)a=new e(i.components),d.set(t,a);else return r("FBLogger")("ConstUri").mustfix(i.error),null}return a},t.hasFragmentSeparator=function(){return this.fragmentSeparator},t.isEmpty=function(){return!(this.getPath()||this.getProtocol()||this.getDomain()||this.getPort()||this.queryParams.size>0||this.getFragment())},t.isFacebookUri=function(){var e=this.toString();return e===""?!1:!this.getDomain()&&!this.getProtocol()?!0:["https","http"].indexOf(this.getProtocol())!==-1&&(m.test(this.getDomain())||p.test(this.getDomain())||_.test(this.getDomain())||f.test(this.getDomain()))||g.test(this.getDomain())},t.isGeneric=function(){return this.isGenericProtocol},t.isSameOrigin=function(t){return r("isSameOrigin")(this,t)},t.isSubdomainOfDomain=function(n){var t=e.getUri(n);return t!=null&&E(this.domain,n)},t.isSecure=function(){return this.getProtocol()==="https"},t.removeQueryParams=function(t){if(Array.isArray(t)&&t.length>0){var e=this.getQueryParams();return t.map(function(t){return e.delete(t)}),I(this,{queryParams:e})}return this},t.removeQueryParam=function(t){if(t){var e=this.getQueryParams();return e.delete(t),I(this,{queryParams:e})}return this},t.removeSubdomain=function(){var e=this.getQualifiedUri();if(e==null)return null;var t=e.getDomain(),n=t.split(".");return n.length>=3&&(n=n.slice(-2)),I(e,{domain:n.join("."),subdomain:""})},t.replaceQueryParam=function(t,n){if(t){var e=this.getQueryParams();return e.set(t,n),I(this,{queryParams:e})}return this},t.replaceQueryParams=function(t){return I(this,{queryParams:t})},t.replaceQueryParamString=function(t){if(t!=null){var e=t.startsWith("?")?t.slice(1):t,n=this.getQueryParams();return e.split("&").map(function(e){var t=e.split("="),r=t[0],o=t[1];n.set(r,o)}),I(this,{queryParams:n})}return this},t.setDomain=function(t){if(t){var e=t.split("."),n=e.length>=3?e[0]:"";return I(this,{domain:t,subdomain:n})}return this},t.setFragment=function(t){return t==="#"?I(this,{fragment:"",fragmentSeparator:!0}):I(this,{fragment:t,fragmentSeparator:t!==""})},t.setPath=function(t){return t!=null?I(this,{path:t}):this},t.setPort=function(t){return t?I(this,{port:t}):this},t.setProtocol=function(t){return t?I(this,{protocol:t}):this},t.setSecure=function(t){return this.setProtocol(t?"https":"http")},t.setSubDomain=function(t){if(t){var e=this.getQualifiedUri();if(e==null)return null;var n=e.getDomain(),r=n.split(".");return r.length>=3?r[0]=t:r.unshift(t),I(e,{domain:r.join("."),subdomain:t})}return this},t.stripTrailingSlash=function(){return this.setPath(this.getPath().replace(/\/$/,""))},t.qualifyDomain=function(t){if(!this.getDomain()){var e=t;return e==null&&(e=this.getQualifiedUri()),e==null?this:I(this,{domain:e.getDomain(),protocol:e.getProtocol()})}return this},e.$1=function(t){var e=t;for(var n of b)e=n(e);return e},e.$2=function(t,n){var e=n;for(var r of v)e=r(t,e);return e},t.$3=function(n,r){return r===void 0&&(r=!1),T({domain:e.$1(this.domain),fragment:this.fragment,fragmentSeparator:this.fragmentSeparator,isGeneric:this.isGenericProtocol,originalRawQuery:this.originalRawQuery,path:this.path,port:this.port,protocol:this.protocol,queryParams:e.$2(this.domain,this.queryParams),serializer:n,subdomain:this.subdomain,userInfo:""},!1,r)},t.toStringRawQuery=function(){return this.rawStringValue==null&&(this.rawStringValue=this.$3(r("PHPQuerySerializerNoEncoding"))),this.rawStringValue},t.toString=function(){return this.stringValue==null&&(this.stringValue=this.$3(this.serializer)),this.stringValue},t.toStringPreserveQuery=function(){return this.$3(this.serializer,!0)},e.isValidUri=function(n){var t=d.get(n);if(t!=null)return!0;var r=x(n);return r.valid?(d.set(n,new e(r.components)),!0):!1},e})();function N(e){return e instanceof P?e:null}function M(e){b.push(e)}function w(e){v.push(e)}var A=P.getUri,F=P.getUriOrThrow,O=P.isValidUri;l.isSubdomainOfDomain=E,l.isConstUri=N,l.registerDomainFilter=M,l.registerQueryParamsFilter=w,l.getUri=A,l.getUriOrThrow=F,l.isValidUri=O}),98);
|
|
__d("routeBuilderUtils",[],(function(t,n,r,o,a,i){"use strict";function e(e){var t=e.split("/");return t.filter(function(e){return e!==""}).map(function(e){var t=e.split(/{|}/);if(t.length<3)return{isToken:!1,part:e};var n=t[0],r=t[1],o=t[2],a=r[0]==="?",i=r[a?1:0]==="*",l=r.substring((a?1:0)+(i?1:0));return{isToken:!0,optional:a,catchAll:i,prefix:n,suffix:o,token:l}})}i.getPathParts=e}),66);
|
|
__d("jsRouteBuilder",["ConstUriUtils","FBLogger","routeBuilderUtils"],(function(t,n,r,o,a,i,l){"use strict";var e="#";function s(t,n,a,i,l){l===void 0&&(l=!1);var s=o("routeBuilderUtils").getPathParts(t);function u(u){try{var c=i!=null?babelHelpers.extends({},i,u):u!=null?u:{},d={},m="",p=!1;m=s.reduce(function(e,t){if(t.isToken){var r,o=t.optional,a=t.prefix,i=t.suffix,l=t.token;if(o&&p)return e;var s=(r=c[l])!=null?r:n[l];if(s==null&&o)return p=!0,e;if(s==null)throw new Error("Missing required template parameter: "+l);if(s==="")throw new Error("Required template parameter is an empty string: "+l);return d[l]=!0,e+"/"+a+s+i}else return p=!1,e+"/"+t.part},""),t.slice(-1)==="/"&&(m+="/"),m===""&&(m="/");var _=o("ConstUriUtils").getUri(m);for(var f in c){var g=c[f];!d[f]&&g!=null&&_!=null&&(a!=null&&a.has(f)?g!==!1&&(_=_.addQueryParam(f,null)):_=_.addQueryParam(f,g))}return[_,m]}catch(n){var h=n==null?void 0:n.message,y=r("FBLogger")("JSRouteBuilder").blameToPreviousFrame().blameToPreviousFrame();return l&&(y=y.blameToPreviousFrame()),y.mustfix("Failed building URI for base path: %s message: %s",t,h),[null,e]}}return{buildUri:function(n){var t,r=(t=u(n)[0])!=null?t:o("ConstUriUtils").getUri(e);if(r==null)throw new Error("Not even the fallback URL parsed validly!");return r},buildUriNullable:function(t){return u(t)[0]},buildURL:function(t){var e,n=u(t),r=n[0],o=n[1];return(e=r==null?void 0:r.toString())!=null?e:o},buildURLStringDEPRECATED:function(t){var e,n=u(t),r=n[0],o=n[1];return(e=r==null?void 0:r.toString())!=null?e:o},getPath:function(){return t}}}l.default=s}),98);
|
|
__d("XAdsCMAccountSettingsPageControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/ads/manager/account/settings/",Object.freeze({tab:"information",highlight_tax_id:!1}),new Set(["highlight_tax_id"])),s=e;l.default=s}),98);
|
|
__d("XAdsCMControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/ads/manager/{?page}/{?tab}/",Object.freeze({help_tray:!1,no_redirect:!1,pixel_conversion_dialog:!1,show_edit_modal:!1,is_split_test:!1,m2w:!1,ads_manager_read_regions:!1}),void 0),s=e;l.default=s}),98);
|
|
__d("XAdsPEControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/adsmanager/",Object.freeze({_fb_noscript:!1,ad_page_id:0,ads_manager_read_regions:!1,ads_manager_write_regions:!1,adset_page_id:0,auto_transform_dialog:!1,breakdown_regrouping:!1,campaign_page_id:0,creative_page_id:0,duplicate_ad:!1,duplicate_campaign:!1,duplicate_campaign_upgrade:!1,external_creation:!1,external_creation_from_url:!1,focus_mode:!1,from_ads_ai:!1,gtao:!0,insights_section:"performance",insights_subsection:"results",is_mfr_model_shown_by_default:!1,is_redirected_default:!1,is_reload_from_account_change:!1,is_split_test:!1,launch_quick_creation:!1,mdsa_eligibility:!1,recommendation_read_only:!1,root_level:"campaign",show_dfca_create_audience_modal:!1,show_dfca_lal_create_audience_modal:!1,show_inbox_re_tos:!1,show_inline_verification:!1,show_mm_onboarding_modal:!1,show_review:!1,show_select_post_modal:!1,show_shops_messaging_opt_out_modal:!1,show_view_history:!1,treenav:!0}),void 0),s=e;l.default=s}),98);
|
|
__d("AdsManagerConstURIUtils",["AdsManagerReadRegions","XAdsCMAccountSettingsPageControllerRouteBuilder","XAdsCMControllerRouteBuilder","XAdsPEControllerRouteBuilder","gkx"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t,n){var o=r("XAdsPEControllerRouteBuilder").buildUri(babelHelpers.extends({},n,{nav_entry_point:t!=null?t:void 0,nav_source:e}));return m(o)}function s(e,t,n){var o=r("XAdsCMControllerRouteBuilder").buildUri(babelHelpers.extends({},n,{nav_entry_point:t!=null?t:void 0,nav_source:e}));return m(o)}function u(e,t,n){var o=r("XAdsCMAccountSettingsPageControllerRouteBuilder").buildUri(babelHelpers.extends({},n,{nav_entry_point:t!=null?t:void 0,nav_source:e}));return m(o)}function c(e){return!!(window.location.host.includes("adsmanager")&&!r("AdsManagerReadRegions").excluded_endpoints.some(function(t){return e.includes(t)})&&r("gkx")("1221"))}function d(e,t){return t===void 0&&(t=!0),!!(window.location.host.includes("adsmanager")&&r("gkx")("13382")&&(r("AdsManagerReadRegions").excluded_endpoints.some(function(t){return e.includes(t)})||!t))}function m(e){return c(e.toString())?e.addQueryParam("ads_manager_read_regions","true"):d(e.toString())?e.addQueryParam("ads_manager_write_regions","true"):(e.getQueryParam("ads_manager_read_regions")!==null||e.getQueryParam("ads_manager_write_regions")!==null)&&(e.removeQueryParam("ads_manager_read_regions"),e.removeQueryParam("ads_manager_write_regions")),e}l.getAdsManagerURI=e,l.getXAdsCMControllerURI=s,l.getXAdsCMAccountSettingsPageURI=u,l.shouldRouteToAMReadRegions=c,l.shouldRouteToAMWriteRegions=d}),98);
|
|
__d("ArbiterFrame",[],(function(t,n,r,o,a,i){var e={inform:function(t,n,r){var e=parent.frames,o=e.length,a;n.crossFrame=!0;for(var i=0;i<o;i++){a=e[i];try{if(!a||a==window)continue;a.require?a.require("Arbiter").inform(t,n,r):a.ServerJSAsyncLoader&&a.ServerJSAsyncLoader.wakeUp(t,n,r)}catch(e){}}}};a.exports=e}),null);
|
|
__d("ArbiterMixin",["Arbiter","guid"],(function(t,n,r,o,a,i,l){var e="arbiter$"+r("guid")(),s=Object.prototype.hasOwnProperty,u={_getArbiterInstance:function(){return s.call(this,e)?this[e]:this[e]=new(r("Arbiter"))},inform:function(t,n,r){return this._getArbiterInstance().inform(t,n,r)},subscribe:function(t,n,r){return this._getArbiterInstance().subscribe(t,n,r)},subscribeOnce:function(t,n,r){return this._getArbiterInstance().subscribeOnce(t,n,r)},unsubscribe:function(t){this._getArbiterInstance().unsubscribe(t)},unsubscribeCurrentSubscription:function(){this._getArbiterInstance().unsubscribeCurrentSubscription()},releaseCurrentPersistentEvent:function(){this._getArbiterInstance().releaseCurrentPersistentEvent()},registerCallback:function(t,n){return this._getArbiterInstance().registerCallback(t,n)},query:function(t){return this._getArbiterInstance().query(t)}},c=u;l.default=c}),98);
|
|
__d("ManagedError",[],(function(t,n,r,o,a,i){var e=(function(e){function t(t,n){var r;return r=e.call(this,t!=null?t:"")||this,t!=null?r.message=t:r.message="",r.innerError=n,r}return babelHelpers.inheritsLoose(t,e),t})(babelHelpers.wrapNativeSuper(Error));i.default=e}),66);
|
|
__d("AssertionError",["ManagedError"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(t){return e.call(this,t)||this}return babelHelpers.inheritsLoose(t,e),t})(r("ManagedError"));l.default=e}),98);
|
|
__d("Assert",["AssertionError","sprintf"],(function(t,n,r,o,a,i,l){function e(e,t){if(typeof e!="boolean"||e===!1)throw new(r("AssertionError"))(t);return e}function s(t,n,o){var a;if(n===void 0)a="undefined";else if(n===null)a="null";else{var i={}.toString.call(n),l=/\s(\w*)/.exec(i);a=l==null?typeof l:l[1].toLowerCase()}return e(t.indexOf(a)!==-1,o!=null?o:r("sprintf")("Expression is of type %s, not %s",a,t)),n}function u(t,n,r){return e(n instanceof t,r!=null?r:"Expression not instance of type"),n}var c={isInstanceOf:u,isTrue:e,isTruthy:function(n,r){return e(!!n,r)},isBoolean:function(t,n){return s("boolean",t,n)},isFunction:function(t,n){return s("function",t,n)},isNumber:function(t,n){return s("number",t,n)},isObject:function(t,n){return s("object",t,n)},isString:function(t,n){return s("string",t,n)},isUndefined:function(t,n){return s("undefined",t,n)},maybeObject:function(t,n){return t==null?t:s("object",t,n)},maybeNumber:function(t,n){return t==null?t:s("number",t,n)},maybeFunction:function(t,n){return t==null?t:s("function",t,n)}},d=c;l.default=d}),98);
|
|
__d("FbtResultBase",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){function e(e,t){this.$1=e,this.__errorListener=t,this.$3=!1,this.$2=null}var t=e.prototype;return t.flattenToArray=function(){return e.flattenToArray(this.$1)},t.getContents=function(){return this.$1},t.toString=function(){if(Object.isFrozen(this))return this.$4();if(this.$3)return"<<Reentering fbt.toString() is forbidden>>";this.$3=!0;try{return this.$4()}finally{this.$3=!1}},t.$4=function(){if(this.$2!=null)return this.$2;for(var t="",n=this.flattenToArray(),r=0;r<n.length;++r){var o=n[r];if(typeof o=="string"||o instanceof e)t+=o.toString();else{var a;(a=this.__errorListener)==null||a.onStringSerializationError==null||a.onStringSerializationError(o)}}return Object.isFrozen(this)||(this.$2=t),t},t.toJSON=function(){return this.toString()},e.flattenToArray=function(n){for(var t=[],r=0;r<n.length;++r){var o=n[r];Array.isArray(o)?t.push.apply(t,e.flattenToArray(o)):o instanceof e?t.push.apply(t,o.flattenToArray()):t.push(o)}return t},e})();["anchor","big","blink","bold","charAt","charCodeAt","codePointAt","contains","endsWith","fixed","fontcolor","fontsize","includes","indexOf","italics","lastIndexOf","link","localeCompare","match","normalize","repeat","replace","search","slice","small","split","startsWith","strike","sub","substr","substring","sup","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim","trimLeft","trimRight"].forEach(function(t){e.prototype[t]=function(){var e;(e=this.__errorListener)==null||e.onStringMethodUsed==null||e.onStringMethodUsed(t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return String.prototype[t].apply(this,r)}});var l=e;a.exports=l}),null);
|
|
__d("TrustedTypesIEFixDOMPolicy",["TrustedTypes"],(function(t,n,r,o,a,i,l){"use strict";var e={createHTML:function(t){return t}},s=r("TrustedTypes").createPolicy("dom-ie-fix",e),u=s;l.default=u}),98);
|
|
__d("UserAgent_DEPRECATED",[],(function(t,n,r,o,a,i){var e=!1,l,s,u,c,d,m,p,_,f,g,h,y,C,b,v,S;function R(){if(!e){e=!0;var t=navigator.userAgent,n=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),r=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(y=/\b(iPhone|iP[ao]d)/.exec(t),C=/\b(iP[ao]d)/.exec(t),g=/Android/i.exec(t),b=/FBAN\/\w+;/i.exec(t),v=/FBAN\/mLite;/i.exec(t),S=/Mobile/i.exec(t),h=!!/Win64/.exec(t),n){l=n[1]?parseFloat(n[1]):n[5]?parseFloat(n[5]):NaN,l&&document&&document.documentMode&&(l=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(t);m=o?parseFloat(o[1])+4:l,s=n[2]?parseFloat(n[2]):NaN,u=n[3]?parseFloat(n[3]):NaN,c=n[4]?parseFloat(n[4]):NaN,c?(n=/(?:Chrome\/(\d+\.\d+))/.exec(t),d=n&&n[1]?parseFloat(n[1]):NaN):d=NaN}else l=s=u=d=c=NaN;if(r){if(r[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);p=a?parseFloat(a[1].replace("_",".")):!0}else p=!1;_=!!r[2],f=!!r[3]}else p=_=f=!1}}function L(){return R(),l}function E(){return R(),m>l}function k(){return L()&&h}function I(){return R(),s}function T(){return R(),u}function D(){return R(),c}function x(){return D()}function $(){return R(),d}function P(){return R(),_}function N(){return R(),p}function M(){return R(),f}function w(){return R(),y}function A(){return R(),y||C||g||S}function F(){return R(),v!=null?null:b}function O(){return R(),g}function B(){return R(),C}i.ie=L,i.ieCompatibilityMode=E,i.ie64=k,i.firefox=I,i.opera=T,i.webkit=D,i.safari=x,i.chrome=$,i.windows=P,i.osx=N,i.linux=M,i.iphone=w,i.mobile=A,i.nativeApp=F,i.android=O,i.ipad=B}),66);
|
|
__d("isScalar",[],(function(t,n,r,o,a,i){function e(e){return/string|number|boolean/.test(typeof e)}i.default=e}),66);
|
|
__d("DOM",["$","DOMQuery","Event","FBLogger","FbtResultBase","HTML","TrustedTypesIEFixDOMPolicy","UserAgent_DEPRECATED","createArrayFromMixed","fb-error","isNode","isScalar","isTextNode"],(function(t,n,r,o,a,i,l){var e,s=function(t,n,r){var e=document.createElement(t);return n&&u.setAttributes(e,n),r!=null&&u.setContent(e,r),e},u={find:(e=o("DOMQuery")).find,findPushSafe:e.findPushSafe,scry:e.scry,getSelection:e.getSelection,contains:e.contains,getRootElement:e.getRootElement,isNodeOfType:e.isNodeOfType,isInputNode:e.isInputNode,create:s,setAttributes:function(t,n){n.type&&(t.type=n.type);for(var e in n){var o=n[e],a=/^on/i.test(e);a&&typeof o!="function"&&r("FBLogger")("dom").warn("Handlers passed to DOM.setAttributes must be functions. Handler passed for %s was %s",e,typeof o),e!="type"&&(e=="style"?typeof o=="string"?t.style.cssText=o:Object.assign(t.style,o):a?r("Event").listen(t,e.substr(2),o):e in t?t[e]=o:t.setAttribute&&t.setAttribute(e,o))}},prependContent:function(t,n){if(!t)throw r("fb-error").TAAL.blameToPreviousFile(new Error("reference element is not a node"));return d(n,t,function(e){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)})},insertAfter:function(t,n){if(!t||!t.parentNode)throw r("fb-error").TAAL.blameToPreviousFile(new Error("reference element does not have a parent"));var e=t.parentNode;return d(n,e,function(n){t.nextSibling?e.insertBefore(n,t.nextSibling):e.appendChild(n)})},insertBefore:function(t,n){if(!t||!t.parentNode)throw r("fb-error").TAAL.blameToPreviousFile(new Error("reference element does not have a parent"));var e=t.parentNode;return d(n,e,function(n){e.insertBefore(n,t)})},setContent:function(t,n){if(!t)throw r("fb-error").TAAL.blameToPreviousFile(new Error("reference element is not a node"));for(;t.firstChild;)c(t.firstChild);return u.appendContent(t,n)},appendContent:function(t,n){if(!t)throw r("fb-error").TAAL.blameToPreviousFile(new Error("reference element is not a node"));return d(n,t,function(e){t.appendChild(e)})},replace:function(t,n){if(!t||!t.parentNode)throw r("fb-error").TAAL.blameToPreviousFile(new Error("reference element does not have a parent"));var e=t.parentNode;return d(n,e,function(n){e.replaceChild(n,t)})},remove:function(t){c(typeof t=="string"?r("$")(t):t)},empty:function(t){for(t=typeof t=="string"?r("$")(t):t;t.firstChild;)c(t.firstChild)}};function c(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){if(e=r("HTML").replaceJSONWrapper(e),e instanceof r("HTML")&&t.firstChild===null&&e.toString().indexOf("<script")===-1){var a=o("UserAgent_DEPRECATED").ie();if(!a||a>7&&!o("DOMQuery").isNodeOfType(t,["table","tbody","thead","tfoot","tr","select","fieldset"])){var i=a?'<em style="display:none;"> </em>':"";return t.innerHTML=r("TrustedTypesIEFixDOMPolicy").createHTML(i+e),a&&t.removeChild(t.firstChild),Array.from(t.childNodes)}}else if(r("isTextNode")(t))return t.data=e,[e];var l=document.createDocumentFragment(),s,u=[],c=[],d=!1;e=r("createArrayFromMixed")(e),e.length===1&&e[0]instanceof r("FbtResultBase")&&(e=e[0].getContents());for(var m=0;m<e.length;m++)if(s=r("HTML").replaceJSONWrapper(e[m]),s instanceof r("HTML")){c.push(s.getAction());var p=s.getNodes();!d&&s.hasInlineJs()&&(r("FBLogger")("staticresources").warn("DOM: adding HTML which contains inline JS"),d=!0);for(var _=0;_<p.length;_++)u.push(p[_]),l.appendChild(p[_])}else if(r("isScalar")(s)||s instanceof r("FbtResultBase")){var f=document.createTextNode(s);u.push(f),l.appendChild(f)}else r("isNode")(s)?(u.push(s),l.appendChild(s)):(Array.isArray(s)&&r("FBLogger")("dom").warn("Nest arrays not supported"),s!==null&&r("FBLogger")("dom").warn("No way to set content %s",s));return n(l),c.forEach(function(e){e()}),u}var m=u;l.default=m}),98);
|
|
__d("AsyncDOM",["CSS","DOM","FBLogger"],(function(t,n,r,o,a,i){var e={invoke:function(t,r){for(var e=0;e<t.length;++e){var o=t[e],a=o[0],i=o[1],l=o[2],s=o[3],u=l&&r||null;switch(i&&(u=n("DOM").scry(u||document.documentElement,i)[0]),u||n("FBLogger")("async_dom").warn("Could not find relativeTo element for %s AsyncDOM operation based on selector: %s",a,i),a){case"hide":n("CSS").hide(u);break;case"show":n("CSS").show(u);break;case"setContent":n("DOM").setContent(u,s);break;case"appendContent":n("DOM").appendContent(u,s);break;case"prependContent":n("DOM").prependContent(u,s);break;case"insertAfter":n("DOM").insertAfter(u,s);break;case"insertBefore":n("DOM").insertBefore(u,s);break;case"remove":n("DOM").remove(u);break;case"replace":n("DOM").replace(u,s);break;default:n("FBLogger")("async_dom").warn("Received invalid command %s for AsyncDOM operation",a)}}}};a.exports=e}),null);
|
|
__d("AsyncResponse",["invariant","Bootloader","FBLogger","HTML","WebDriverConfig"],(function(t,n,r,o,a,i,l,s){"use strict";var e=(function(){function e(e,t){this.error=0,this.errorSummary=null,this.errorDescription=null,this.errorMid=null,this.onload=null,this.replay=!1,this.payload=t,this.request=e,this.silentError=!1,this.transientError=!1,this.blockedAction=!1,this.is_last=!0,this.responseHeaders=null}var t=e.prototype;return t.getRequest=function(){return this.request},t.getPayload=function(){return this.payload},t.toError=function(){this.error!==0||s(0,5599);var e=this.errorSummary||"",t=this.getErrorDescriptionString()||"",n=new Error(e.toString()+": "+t);return Object.assign(n,{code:this.error,description:this.errorDescription||"",descriptionString:t,response:this,summary:e,isSilent:this.silentError,isTransient:this.transientError,mid:this.errorMid}),n},t.getError=function(){return this.error},t.getErrorSummary=function(){return this.errorSummary},t.setErrorSummary=function(t){return t=t===void 0?null:t,this.errorSummary=t,this},t.getErrorDescription=function(){return this.errorDescription},t.getErrorDescriptionString=function(){var e=this.getErrorDescription();if(e==null)return null;if(r("HTML").isHTML(e)){var t=new(r("HTML"))(e);return t.getRootNode().textContent}return e.toString()},t.getErrorIsWarning=function(){return!!this.errorIsWarning},t.isSilent=function(){return!!this.silentError},t.isTransient=function(){return!!this.transientError},t.isBlockedAction=function(){return!!this.blockedAction},t.getResponseHeader=function(t){var e=this.responseHeaders;if(!e)return null;e=e.replace(/^\n/,""),t=t.toLowerCase();for(var n=e.split("\r\n"),r=0;r<n.length;++r){var o=n[r],a=o.indexOf(": ");if(!(a<=0)){var i=o.substring(0,a).toLowerCase();if(i===t)return o.substring(a+2)}}return null},e.defaultErrorHandler=function(n){try{n.silentError?r("FBLogger")("async_response").catching(n.toError()).warn("default error handler called"):e.verboseErrorHandler(n)}catch(e){alert(n)}},e.verboseErrorHandler=function(t,n){r("Bootloader").loadModules(["ExceptionDialog"],function(e){return e.showAsyncError(t,n)},"AsyncResponse")},e})();l.default=e}),98);
|
|
__d("Deferred",["Promise"],(function(t,n,r,o,a,i){"use strict";var e;(e||(e=n("Promise"))).resolve();var l=(function(){function t(t){var r=this,o=t||e||(e=n("Promise"));this.$1=!1,this.$2=new o(function(e,t){r.$3=e,r.$4=t})}var r=t.prototype;return r.getPromise=function(){return this.$2},r.resolve=function(t){this.$1=!0,this.$3(t)},r.reject=function(t){this.$1=!0,this.$4(t)},r.isSettled=function(){return this.$1},t})();i.default=l}),66);
|
|
__d("FetchStreamConfig",[],(function(t,n,r,o,a,i){var e=Object.freeze({delim:"/*<!-- fetch-stream -->*/"});i.default=e}),66);
|
|
__d("StreamBlockReader",["Promise","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i){var e,l=(function(){function t(t){var r=this;if(!("getReader"in t))throw new Error("No getReader method found on given object");this.$3=t.getReader(),this.$1="",this.$2=null,this.$4=!1,this.$5="utf-8",this.$6="",this.$9=!1,this.$8=function(){return(e||(e=n("Promise"))).reject("Sorry, you are somehow using this too early.")},this.$7=new(e||(e=n("Promise")))(function(e,t){r.$8=e})}var r=t.prototype;return r.changeEncoding=function(t){if(this.$2)throw new Error("Decoder already in use, encoding cannot be changed");this.$5=t},r.$10=function(){if(!self.TextDecoder)throw new Error("TextDecoder is not supported here");return this.$2||(this.$2=new self.TextDecoder(this.$5)),this.$2},r.$11=function(){if(this.$9)throw new Error("Something else is already reading from this reader");this.$9=!0},r.$12=function(){this.$9=!1},r.isDone=function(){return this.$4},r.$13=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(this.$6!==""){var e=this.$6;return this.$6="",e}if(this.isDone())throw new Error("You cannot read from a stream that is done");var t=yield this.$3.read(),n=t.done,r=t.value;return this.$4=n,n&&this.$8(),r?this.$10().decode(r,{stream:!n}):""});function t(){return e.apply(this,arguments)}return t})(),r.readNextBlock=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){this.$11();var e=this.$13();return this.$12(),e});function t(){return e.apply(this,arguments)}return t})(),r.readUntilStringOrEnd=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){return yield this.readUntilOneOfStringOrEnd_DO_NOT_USE([e])});function t(t){return e.apply(this,arguments)}return t})(),r.readUntilStringOrThrow=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(!e)throw new Error("cannot read empty string");this.$11();for(var t="",n=0;!this.isDone();)if(t+=yield this.$13(),!(t.length<e.length)){var r=t.substring(n).indexOf(e);if(r!==-1)return r+=n,this.$6=t.substring(r+e.length),this.$12(),t.substring(0,r);n=t.length-e.length+1}throw this.$6=t,this.$12(),new Error("Breakpoint not found")});function t(t){return e.apply(this,arguments)}return t})(),r.readUntilOneOfStringOrEnd_DO_NOT_USE=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){this.$11();for(var t="";!this.isDone();){t+=yield this.$13();for(var n=0;n<e.length;n++){var r=e[n],o=t.indexOf(r);if(o!==-1)return this.$6=t.substring(o+r.length),this.$12(),t.substring(0,o)}}return this.$12(),t});function t(t){return e.apply(this,arguments)}return t})(),r.waitUntilDone=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){return this.$7});function t(){return e.apply(this,arguments)}return t})(),t})();i.default=l}),66);
|
|
__d("mixin",[],(function(t,n,r,o,a,i){function e(){for(var e=function(){},t=0,n,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];for(;o[t];){n=o[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e.prototype[i]=n[i]);t+=1}return e}i.default=e}),66);
|
|
__d("FetchStreamTransport",["ArbiterMixin","FetchStreamConfig","StreamBlockReader","TimeSlice","URI","asyncToGeneratorRuntime","mixin","nullthrows"],(function(t,n,r,o,a,i,l){var e,s=0,u=(function(t){function o(e){var n;if(!self.ReadableStream||!self.fetch||!Request||!TextDecoder)throw new Error("fetch stream transport is not supported here");return n=t.call(this)||this,n.$FetchStreamTransport$p_6=null,n.$FetchStreamTransport$p_1=e,n.$FetchStreamTransport$p_3=!1,n.$FetchStreamTransport$p_4=!1,n.$FetchStreamTransport$p_5=!1,n.$FetchStreamTransport$p_2=++s,n||babelHelpers.assertThisInitialized(n)}babelHelpers.inheritsLoose(o,t);var a=o.prototype;return a.hasFinished=function(){return this.$FetchStreamTransport$p_5},a.getRequestURI=function(){return new(e||(e=r("URI")))(this.$FetchStreamTransport$p_1).addQueryData({__a:1,__adt:this.$FetchStreamTransport$p_2,__req:"fetchstream_"+this.$FetchStreamTransport$p_2,ajaxpipe_fetch_stream:1})},a.send=function(){if(this.$FetchStreamTransport$p_3)throw new Error("FetchStreamTransport instances cannot be re-used.");this.$FetchStreamTransport$p_3=!0;var e=new Request(this.getRequestURI().toString(),{mode:"same-origin",credentials:"include"});this.$FetchStreamTransport$p_6=r("TimeSlice").getGuardedContinuation("FetchStreamTransport: waiting on first response");var t=self.fetch(e,{redirect:"follow"});this.$FetchStreamTransport$p_7(t)},a.$FetchStreamTransport$p_7=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=this,n;try{n=yield e}catch(e){this.abort()}if(!n||!n.body||!n.ok){this.abort();return}for(var o=new(r("StreamBlockReader"))(n.body),a=function*(){var e=yield o.readUntilStringOrEnd(r("FetchStreamConfig").delim);if(t.$FetchStreamTransport$p_4)return 1;r("nullthrows")(t.$FetchStreamTransport$p_6)(function(){var n=JSON.parse(e);o.isDone()||n.finished?t.$FetchStreamTransport$p_5=!0:t.$FetchStreamTransport$p_6=r("TimeSlice").getGuardedContinuation("FetchStreamTransport: waiting on next response"),t.inform("response",n.content)})};!this.$FetchStreamTransport$p_5&&!this.$FetchStreamTransport$p_4&&!(yield*a()););});function t(t){return e.apply(this,arguments)}return t})(),a.abort=function(){var e=this;if(!(this.$FetchStreamTransport$p_4||this.$FetchStreamTransport$p_5))if(this.$FetchStreamTransport$p_4=!0,this.$FetchStreamTransport$p_5=!0,this.$FetchStreamTransport$p_6){var t=this.$FetchStreamTransport$p_6;t(function(){e.inform("abort")})}else this.inform("abort")},o})(r("mixin")(r("ArbiterMixin")));l.default=u}),98);
|
|
__d("HTTPErrors",["emptyFunction"],(function(t,n,r,o,a,i,l){function e(e){return{summary:"HTTP Error",description:"Unknown HTTP error #"+e}}var s={get:e,getAll:r("emptyFunction").thatReturns(new Map)},u=s;l.default=u}),98);
|
|
__d("SubscriptionList",["FBLogger"],(function(t,n,r,o,a,i,l){var e=(function(){function e(e,t){this.$1=[],this.$2=e,this.$3=t}var t=e.prototype;return t.add=function(t){var e=this,n={callback:t};return this.$1.push(n),this.$2&&this.$1.length===1&&this.$2(),{remove:function(){var t=e.$1.indexOf(n);if(t===-1){r("FBLogger")("SubscriptionList").mustfix("SubscriptionList: Callback already removed.");return}e.$1.splice(t,1),e.$3&&e.$1.length===0&&e.$3()}}},t.getCallbacks=function(){return this.$1.map(function(e){return e.callback})},t.fireCallbacks=function(t){this.getCallbacks().forEach(function(e){e(t)})},e})();l.default=e}),98);
|
|
__d("isInIframe",[],(function(t,n,r,o,a,i){var e=typeof window!="undefined"&&window.top!=null&&window!=window.top;function l(){return e}i.default=l}),66);
|
|
__d("ScriptPath",["ErrorGuard","SubscriptionList","TimeSlice","WebStorage","isInIframe"],(function(t,n,r,o,a,i){"use strict";var e,l,s="sp_pi",u=3e4,c=null,d=null,m=new(n("SubscriptionList")),p=null,_=[],f=n("TimeSlice").guard(function(t,r){m.getCallbacks().forEach(function(o){(e||(e=n("ErrorGuard"))).applyWithGuard(function(){o({source:c,dest:d,cause:t,extraData:r})},null,[])})},"ScriptPath Notifying callbacks",{propagationType:n("TimeSlice").PropagationType.ORPHAN});function g(){return d?d.scriptPath:void 0}function h(){var e=(l||(l=n("WebStorage"))).getSessionStorage();!e||n("isInIframe")()||l.setItemGuarded(e,s,JSON.stringify({pageInfo:d,clickPoint:p,time:Date.now()}))}function y(){var e=(l||(l=n("WebStorage"))).getSessionStorageForRead();if(e){var t=e.getItem(s);if(t){var r=JSON.parse(t);r&&(r.time<Date.now()-u&&(e=(l||(l=n("WebStorage"))).getSessionStorage(),e&&e.removeItem(s)),d=r.pageInfo,p=r.clickPoint,d&&(d.restored=!0))}}}y();var C={set:function(t,n,r){c=d,d={scriptPath:t,categoryToken:n,extraData:r||{}},_=[],window._script_path=t,f()},openOverlayView:function(t,n,r){if(t){var e=_.length;(e===0||_[e-1]!==t)&&(c=babelHelpers.extends({},d),d&&(d.topViewEndpoint=t),r&&r.replaceTopOverlay&&e>0?(_[e-1]=t,f("replace_overlay_view",n)):(_.push(t),f("open_overlay_view",n)))}},closeOverlayView:function(t,n){var e=_.lastIndexOf(t);e!==-1&&(c=babelHelpers.extends({},d),d&&(e>0?d.topViewEndpoint=_[e-1]:d.topViewEndpoint=null),_=_.slice(0,e),f("close_overlay_view",n))},setClickPointInfo:function(t){p=t,h()},getClickPointInfo:function(){return p},getScriptPath:g,getCategoryToken:function(){return d?d.categoryToken:void 0},getEarlyFlushPage:function(){var e;return(e=d)==null||(e=e.extraData)==null?void 0:e.ef_page},getTopViewEndpoint:function(){var e=_.length;return e>0?_[e-1]:g()},getPageInfo:function(){return d},getSourcePageInfo:function(){return c},subscribe:function(t){return m.add(n("TimeSlice").guard(t,"ScriptPath.subscribe"))},shutdown:function(){h()}};a.exports=C}),null);
|
|
__d("SessionName",["SessionNameConfig"],(function(t,n,r,o,a,i){a.exports={getName:function(){return n("SessionNameConfig").seed}}}),null);
|
|
__d("getCrossOriginTransport",["invariant","ExecutionEnvironment","err"],(function(t,n,r,o,a,i,l){var e;function s(){if(!(e||(e=n("ExecutionEnvironment"))).isInBrowser)throw n("err")("getCrossOriginTransport: %s","Cross origin transport unavailable in the server environment.");try{var t=new XMLHttpRequest;return!("withCredentials"in t)&&typeof XDomainRequest!="undefined"&&(t=new XDomainRequest),t}catch(e){throw n("err")("getCrossOriginTransport: %s",e.message)}}s.withCredentials=function(){var e=s();"withCredentials"in e||l(0,5150);var t=e.open;return e.open=function(){t.apply(this,arguments),this.withCredentials=!0},e},a.exports=s}),null);
|
|
__d("ZeroRewrites",["URI","ZeroRewriteRules","getCrossOriginTransport","getSameOriginTransport","isFacebookURI"],(function(t,n,r,o,a,i){var e,l={rewriteURI:function(t){if(!n("isFacebookURI")(t)||l._isWhitelisted(t))return t;var e=l._getRewrittenSubdomain(t);return e!=null&&(t=t.setSubdomain(e)),t},getTransportBuilderForURI:function(t){return l.isRewritten(t)?n("getCrossOriginTransport").withCredentials:n("getSameOriginTransport")},isRewriteSafe:function(r){if(Object.keys(n("ZeroRewriteRules").rewrite_rules).length===0||!n("isFacebookURI")(r))return!1;var t=l._getCurrentURI().getDomain(),o=new(e||(e=n("URI")))(r).qualify().getDomain();return t===o||l.isRewritten(r)},isRewritten:function(t){if(t=t.getQualifiedURI(),Object.keys(n("ZeroRewriteRules").rewrite_rules).length===0||!n("isFacebookURI")(t)||l._isWhitelisted(t))return!1;var e=t.getSubdomain(),r=l._getCurrentURI(),o=l._getRewrittenSubdomain(r);return t.getDomain()!==r.getDomain()&&e===o},_isWhitelisted:function(t){var e=t.getPath();return e.endsWith("/")||(e+="/"),n("ZeroRewriteRules").whitelist&&n("ZeroRewriteRules").whitelist[e]===1},_getRewrittenSubdomain:function(t){var e=t.getQualifiedURI().getSubdomain();return n("ZeroRewriteRules").rewrite_rules[e]},_getCurrentURI:function(){return new(e||(e=n("URI")))("/").qualify()}};a.exports=l}),null);
|
|
__d("bind",[],(function(t,n,r,o,a,i){function e(e,t){var n=Array.prototype.slice.call(arguments,2);if(typeof t!="string")return Function.prototype.bind.apply(t,[e].concat(n));function r(){var r=n.concat(Array.prototype.slice.call(arguments));if(e[t])return e[t].apply(e,r)}return r.toString=function(){return"bound lazily: "+e[t]},r}a.exports=e}),null);
|
|
__d("errorCode",[],(function(t,n,r,o,a,i){"use strict";function e(e){throw new Error('errorCode("'+e+'"): This should not happen. Oh noes!')}i.default=e}),66);
|
|
__d("executeAfter",[],(function(t,n,r,o,a,i){function e(e,t,n){return function(){e.apply(n||this,arguments),t.apply(n||this,arguments)}}a.exports=e}),null);
|
|
__d("FbtErrorListenerWWW",["FBLogger","getErrorSafe"],(function(t,n,r,o,a,i,l){var e=(function(){function e(e){this.$1=e.hash,this.$2=e.translation}var t=e.prototype;return t.onStringSerializationError=function(t){var e,n="Context not logged.",o=(t==null||(e=t.constructor)==null?void 0:e.name)||"";r("FBLogger")("fbt").blameToPreviousDirectory().blameToPreviousDirectory().mustfix('Converting to a string will drop content data. Hash="%s" Translation="%s" Content="%s" (type=%s,%s)',this.$1,this.$2,n,typeof t,o)},t.onStringMethodUsed=function(t){r("FBLogger")("fbt").blameToPreviousDirectory().blameToPreviousDirectory().mustfix("Error using fbt string. Used method %s on Fbt string. Fbt string is designed to be immutable and should not be manipulated.",t)},t.onMissingParameterError=function(t,n){r("FBLogger")("fbt").blameToPreviousDirectory().blameToPreviousDirectory().mustfix('Expected fbt parameter names (%s) to also contain `%s`. Hash="%s" Translation="%s"',t.join(", "),n,this.$1,this.$2)},e})();l.default=e}),98);
|
|
__d("FbtReactUtil",[],(function(t,n,r,o,a,i){var e=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.transitional.element")||60103,l=!1,s={REACT_ELEMENT_TYPE:e,injectReactShim:function(t){var e={validated:!0};l?Object.defineProperty(t,"_store",{configurable:!1,enumerable:!1,writable:!1,value:e}):t._store=e}};a.exports=s}),null);
|
|
__d("FbtResult",["FbtReactUtil","FbtResultBase"],(function(t,n,r,o,a,i){var e=function(t){return t.content},l=(function(t){"use strict";function r(r,o){var a;return a=t.call(this,r,o)||this,a.$$typeof=n("FbtReactUtil").REACT_ELEMENT_TYPE,a.key=null,a.ref=null,a.type=e,a.props={content:r},a}return babelHelpers.inheritsLoose(r,t),r.get=function(t){return new r(t.contents,t.errorListener)},r})(n("FbtResultBase"));a.exports=l}),null);
|
|
__d("FbtPureStringResult",["FbtResult"],(function(t,n,r,o,a,i){var e=(function(e){"use strict";function t(){return e.apply(this,arguments)||this}return babelHelpers.inheritsLoose(t,e),t})(n("FbtResult")),l=e;a.exports=l}),null);
|
|
__d("getFbsResult",["FbtPureStringResult"],(function(t,n,r,o,a,i){function e(e){return new(n("FbtPureStringResult"))(e.contents,e.errorListener)}a.exports=e}),null);
|
|
__d("getTranslatedInput",["Env","ExecutionEnvironment","FBLogger","MakeHasteTranslationsMap"],(function(t,n,r,o,a,i,l){var e,s,u="JHASH",c=new RegExp("__"+u+"__(.+?)__"+u+"__"),d=!!(e||(e=r("Env"))).use_fbt_virtual_modules;function m(e){var t=e.table;if(d&&(s||(s=r("ExecutionEnvironment"))).isInBrowser){if(typeof t=="string"){var n=t.match(c);if(n!=null)return p(babelHelpers.extends({},e,{table:o("MakeHasteTranslationsMap").get(n[1])}))}r("FBLogger")("binary_transparency","inlined_translations").warn("Found inlined translated contents in client_fetch_translations experiment! Input: %s",JSON.stringify(t))}return p(e)}function p(e){var t=e.table;return typeof t=="string"&&t[0]==="_"&&t[1]==="j"&&(t[2]==="{"||t[2]==="[")?babelHelpers.extends({},e,{table:JSON.parse(t.substring(2))}):e}l.default=m}),98);
|
|
__d("translationOverrideListener",["requireDeferred"],(function(t,n,r,o,a,i,l){"use strict";var e=r("requireDeferred")("IntlQtEventFalcoEvent").__setRef("translationOverrideListener");function s(t){e.onReady(function(e){return e.log(function(){return{hash:t}})})}l.default=s}),98);
|
|
__d("FbtEnv",["FbtErrorListenerWWW","FbtHooks","IntlViewerContext","cr:7730","getFbsResult","getTranslatedInput","justknobx","promiseDone","requireDeferred","translationOverrideListener"],(function(t,n,r,o,a,i,l){"use strict";var e,s=r("requireDeferred")("FbtLogging").__setRef("FbtEnv"),u="JHASH",c=new RegExp("__"+u+"__(.+?)__"+u+"__"),d=!1;function m(){d||(d=!0,(e||(e=n("FbtHooks"))).register({errorListener:function(t){return new(r("FbtErrorListenerWWW"))(t)},getFbsResult:r("getFbsResult"),getFbtResult:n("cr:7730"),getTranslatedInput:r("getTranslatedInput"),onTranslationOverride:r("translationOverrideListener"),getViewerContext:function(){return r("IntlViewerContext")},logImpression:function(t,n){return r("promiseDone")(s.load().then(function(e){if(e.logImpression==null||e.logImpression(t),!r("justknobx")._("2269")){var o,a=n==null?void 0:n.inputTable,i=(o=n==null?void 0:n.tokens)!=null?o:[];if(typeof a=="string"){var l=a.match(c);l!=null&&(e.logImpressionV2==null||e.logImpressionV2(l[1],i))}}}))}}))}l.setupOnce=m}),98);
|
|
__d("FbtHooksImpl",[],(function(t,n,r,o,a,i){var e={},l={getErrorListener:function(n){return e.errorListener==null?void 0:e.errorListener(n)},logImpression:function(n,r){e.logImpression==null||e.logImpression(n,r)},onTranslationOverride:function(n){e.onTranslationOverride==null||e.onTranslationOverride(n)},getFbsResult:function(n){return e.getFbsResult(n)},getFbtResult:function(n){return e.getFbtResult(n)},getTranslatedInput:function(n){var t;return(t=e.getTranslatedInput==null?void 0:e.getTranslatedInput(n))!=null?t:n},getViewerContext:function(){return e.getViewerContext()},register:function(n){Object.assign(e,n)}};a.exports=l}),null);
|
|
__d("FbtHooks",["FbtEnv","FbtHooksImpl"],(function(t,n,r,o,a,i){a.exports=n("FbtHooksImpl"),n("FbtEnv").setupOnce()}),null);
|
|
__d("FbtTable",["invariant"],(function(t,n,r,o,a,i,l){"use strict";var e={ARG:{INDEX:0,SUBSTITUTION:1},access:function(n,r,o,a){if(o>=r.length)return typeof n=="string"||Array.isArray(n)||l(0,21388,JSON.stringify(n)),n;var t=r[o],i=t[e.ARG.INDEX];if(i==null)return e.access(n,r,o+1,a);typeof n!="string"&&!Array.isArray(n)||l(0,20954,typeof n);for(var s=0;s<i.length;++s){var u=n[i[s]];if(u!=null){a.push(i[s]);var c=e.access(u,r,o+1,a);if(c!=null)return c}}return null}};a.exports=e}),null);
|
|
__d("FbtTableAccessor",[],(function(t,n,r,o,a,i){"use strict";var e={getEnumResult:function(t){return[[t],null]},getGenderResult:function(t,n,r){return[t,n]},getNumberResult:function(t,n,r){return[t,n]},getSubstitution:function(t){return[null,t]},getPronounResult:function(t){return[[t,"*"],null]}};a.exports=e}),null);
|
|
__d("GenderConst",[],(function(t,n,r,o,a,i){a.exports={FEMALE_PLURAL:8,FEMALE_SINGULAR:1,FEMALE_SINGULAR_GUESS:3,MALE_PLURAL:9,MALE_SINGULAR:2,MALE_SINGULAR_GUESS:4,MIXED_UNKNOWN:5,NEUTER_PLURAL:10,NEUTER_SINGULAR:6,NOT_A_PERSON:0,UNKNOWN_PLURAL:11,UNKNOWN_SINGULAR:7}}),null);
|
|
__d("FbtNumberType",["IntlNumberTypeProps"],(function(t,n,r,o,a,i,l){l.default=r("IntlNumberTypeProps").module}),98);
|
|
__d("IntlNumberType",["FbtNumberType"],(function(t,n,r,o,a,i,l){var e=function(t){return r("FbtNumberType")};l.get=e}),98);
|
|
__d("IntlVariations",[],(function(t,n,r,o,a,i){a.exports={BITMASK_GENDER:3,BITMASK_NUMBER:28,GENDER_FEMALE:2,GENDER_MALE:1,GENDER_UNKNOWN:3,NUMBER_FEW:20,NUMBER_MANY:12,NUMBER_ONE:4,NUMBER_OTHER:24,NUMBER_TWO:8,NUMBER_ZERO:16}}),null);
|
|
__d("IntlVariationResolverImpl",["invariant","FbtHooks","IntlNumberType","IntlVariations"],(function(t,n,r,o,a,i,l){var e,s="_1",u={EXACTLY_ONE:s,getNumberVariations:function(r){var t=n("IntlNumberType").get((e||(e=n("FbtHooks"))).getViewerContext().locale).getVariation(r);return t&n("IntlVariations").BITMASK_NUMBER||l(0,11647,t,typeof t),r===1?[s,t,"*"]:[t,"*"]},getGenderVariations:function(t){return t&n("IntlVariations").BITMASK_GENDER||l(0,11648,t,typeof t),[t,"*"]}};a.exports=u}),null);
|
|
__d("IntlVariationResolver",["IntlVariationHoldout","IntlVariationResolverImpl"],(function(t,n,r,o,a,i,l){var e={getNumberVariations:function(t){return o("IntlVariationResolverImpl").getNumberVariations(t)},getGenderVariations:function(t){return o("IntlVariationHoldout").disable_variation?["*"]:o("IntlVariationResolverImpl").getGenderVariations(t)}},s=e;l.default=s}),98);
|
|
__d("NumberFormatConsts",["NumberFormatConfig"],(function(t,n,r,o,a,i){var e={get:function(t){return n("NumberFormatConfig")}};a.exports=e}),null);
|
|
__d("escapeRegex",[],(function(t,n,r,o,a,i){"use strict";function e(e){return e.replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")}a.exports=e}),null);
|
|
__d("intlNumUtils",["FbtHooks","NumberFormatConsts","escapeRegex"],(function(t,n,r,o,a,i){var e,l=3,s=["\u0433\u0440\u043D.","\u0434\u0435\u043D.","\u043B\u0432.","\u043C\u0430\u043D.","\u0564\u0580.","\u062C.\u0645.","\u062F.\u0625.","\u062F.\u0627.","\u062F.\u0628.","\u062F.\u062A.","\u062F.\u062C.","\u062F.\u0639.","\u062F.\u0643.","\u062F.\u0644.","\u062F.\u0645.","\u0631.\u0633.","\u0631.\u0639.","\u0631.\u0642.","\u0631.\u064A.","\u0644.\u0633.","\u0644.\u0644.","\u0783.","B/.","Bs.","Fr.","kr.","L.","p.","S/."],u={};function c(e){return u[e]||(u[e]=new RegExp(e,"i")),u[e]}var d=c(s.reduce(function(e,t,r){return e+(r?"|":"")+"("+n("escapeRegex")(t)+")"},""));function m(e,t,r,o,a,i,s){r===void 0&&(r=""),o===void 0&&(o="."),a===void 0&&(a=0),i===void 0&&(i={primaryGroupSize:l,secondaryGroupSize:l});var u=i.primaryGroupSize||l,d=i.secondaryGroupSize||u,m=s&&s.digits,_;t==null?_=e.toString():typeof e=="string"?_=b(e,t):_=y(e,t);var f=_.split("."),g=f[0],h=f[1];if(Math.abs(parseInt(g,10)).toString().length>=a){var C="",v="$1"+r+"$2$3",S="(\\d)(\\d{"+(u-0)+"})($|\\D)";if(C=g.replace(c(S),v),C!=g){g=C;for(var R="(\\d)(\\d{"+(d-0)+"})("+n("escapeRegex")(r)+")",L=c(R);(C=g.replace(L,v))!=g;)g=C}}m!=null&&(g=p(g,m),h=h&&p(h,m));var E=g;return h&&(E+=o+h),E}function p(e,t){for(var n="",r=0;r<e.length;++r){var o=t[e.charCodeAt(r)-48];n+=o!==void 0?o:e[r]}return n}function _(t,r){var o=n("NumberFormatConsts").get((e||(e=n("FbtHooks"))).getViewerContext().locale);return m(t,r,"",o.decimalSeparator,o.minDigitsForThousandsSeparator,o.standardDecimalPatternInfo,o.numberingSystemData)}function f(t,r){var o=n("NumberFormatConsts").get((e||(e=n("FbtHooks"))).getViewerContext().locale);return m(t,r,o.numberDelimiter,o.decimalSeparator,o.minDigitsForThousandsSeparator,o.standardDecimalPatternInfo,o.numberingSystemData)}function g(e){return e&&Math.floor(Math.log10(Math.abs(e)))}function h(e,t,n){var r=g(e),o=e;r<n&&(o=e*Math.pow(10,-r+n));var a=Math.pow(10,g(o)-n+1),i=Math.round(o/a)*a;return r<n&&(i/=Math.pow(10,-r+n),t==null)?f(i,n-r-1):f(i,t)}function y(e,t){var n=t==null?0:t,r=Math.pow(10,n),o=(Math.round(e*r)/r).toString();if(!n||o.indexOf("e-")!==-1)return o;var a=o.indexOf("."),i=0;a===-1?(o+=".",i=n):i=n-(o.length-a-1);for(var l=0,s=i;l<s;l++)o+="0";return o}var C=function(t,n){for(var e=t,r=0;r<n;r++)e+="0";return e};function b(e,t){var n=e.indexOf("."),r=n===-1?e:e.slice(0,n),o=n===-1?"":e.slice(n+1);return t!=null?r+"."+C(o.slice(0,t),t-o.length):r}function v(e,t,r){r===void 0&&(r="");var o=R(),a=e;o&&(a=e.split("").map(function(e){return o[e]||e}).join("").trim()),a=a.replace(/^[^\d]*\-/,""),a=a.replace(d,"");var i=n("escapeRegex")(t),l=n("escapeRegex")(r),s=c("^[^\\d]*\\d.*"+i+".*\\d[^\\d]*$");if(!s.test(a)){var u=c("(^[^\\d]*)"+i+"(\\d*[^\\d]*$)");if(u.test(a))return a=a.replace(u,"$1$2"),S(a);var m=c("^[^\\d]*[\\d "+n("escapeRegex")(l)+"]*[^\\d]*$");return m.test(a)||(a=""),S(a)}var p=c("(^[^\\d]*[\\d "+l+"]*)"+i+"(\\d*[^\\d]*$)");return a=p.test(a)?a.replace(p,"$1$2"):"",S(a)}function S(e){var t=e.replace(/[^0-9\u0001\u0002]/g,"").replace("",".").replace("","-"),n=Number(t);return t===""||isNaN(n)?null:n}function R(){var t=n("NumberFormatConsts").get((e||(e=n("FbtHooks"))).getViewerContext().locale),r={},o=t.numberingSystemData&&t.numberingSystemData.digits;if(o==null)return null;for(var a=0;a<o.length;a++)r[o.charAt(a)]=a.toString();return r}function L(t){var r=n("NumberFormatConsts").get((e||(e=n("FbtHooks"))).getViewerContext().locale);return v(t,r.decimalSeparator||".",r.numberDelimiter)}var E={formatNumber:_,formatNumberRaw:m,formatNumberWithThousandDelimiters:f,formatNumberWithLimitedSigFig:h,parseNumber:L,parseNumberRaw:v,truncateLongNumber:b,getFloatString:function(t,n,r){var e=String(t),o=e.split("."),a=E.getIntegerString(o[0],n);return o.length===1?a:a+r+o[1]},getIntegerString:function(t,n){var e=n;e===""&&(e=",");for(var r=String(t),o=/(\d+)(\d{3})/;o.test(r);)r=r.replace(o,"$1"+e+"$2");return r}};a.exports=E}),null);
|
|
__d("IntlPhonologicalRewrites",["IntlPhonologicalRules"],(function(t,n,r,o,a,i){"use strict";var e={get:function(t){return n("IntlPhonologicalRules")}};a.exports=e}),null);
|
|
__d("IntlRedundantStops",[],(function(t,n,r,o,a,i){var e=Object.freeze({equivalencies:{".":["\u0964","\u104B","\u3002"],"\u2026":["\u0E2F","\u0EAF","\u1801"],"!":["\uFF01"],"?":["\uFF1F"]},redundancies:{"?":["?",".","!","\u2026"],"!":["!","?","."],".":[".","!"],"\u2026":["\u2026",".","!"]}});i.default=e}),66);
|
|
__d("IntlPunctuation",["FbtHooks","IntlPhonologicalRewrites","IntlRedundantStops"],(function(t,n,r,o,a,i,l){var e,s="[.!?\u3002\uFF01\uFF1F\u0964\u2026\u0EAF\u1801\u0E2F\uFF0E]",u={};function c(e){var t=e!=null?e:"",n=u[t];return n==null&&(n=u[t]=d(e)),n}function d(e){var t=[],n=r("IntlPhonologicalRewrites").get(e);for(var o in n.patterns){var a=n.patterns[o];for(var i in n.meta){var l=new RegExp(i.slice(1,-1),"g"),s=n.meta[i];o=o.replace(l,s),a=a.replace(l,s)}a==="javascript"&&(a=function(t){return t.slice(1).toLowerCase()}),t.push([new RegExp(o.slice(1,-1),"g"),a])}return t}function m(t){for(var n=c((e||(e=r("FbtHooks"))).getViewerContext().locale),o=t,a=0;a<n.length;a++){var i=n[a],l=i[0],s=i[1];o=o.replace(l,s)}return o.replace(/\x01/g,"")}var p=new Map;for(var _ in r("IntlRedundantStops").equivalencies)for(var f of[_].concat(r("IntlRedundantStops").equivalencies[_]))p.set(f,_);var g=new Map;for(var h in r("IntlRedundantStops").redundancies)g.set(h,new Set(r("IntlRedundantStops").redundancies[h]));function y(e,t){var n,r=p.get(e),o=p.get(t);return((n=g.get(r))==null?void 0:n.has(o))===!0}function C(e,t){return y(e[e.length-1],t)?"":t}l.PUNCT_CHAR_CLASS=s,l.applyPhonologicalRules=m,l.dedupeStops=C}),98);
|
|
__d("substituteTokens",["invariant","IntlPunctuation"],(function(t,n,r,o,a,i,l,s){var e=Object.prototype.hasOwnProperty,u=new RegExp("\\{([^}]+)\\}("+o("IntlPunctuation").PUNCT_CHAR_CLASS+"*)","g");function c(e){return e}function d(t,n,r){if(n==null)return t;typeof n=="object"||s(0,6041,t);var a=[],i=[],l=t.replace(u,function(t,l,s){e.call(n,l)||r==null||r.onMissingParameterError==null||r.onMissingParameterError(Object.keys(n),l);var u=n[l];return u!=null&&typeof u=="object"?(a.push(u),i.push(l),""+s):u==null?"":String(u)+o("IntlPunctuation").dedupeStops(String(u),s)}).split("").map(o("IntlPunctuation").applyPhonologicalRules);if(l.length===1)return l[0];for(var d=l[0]!==""?[l[0]]:[],m=0;m<a.length;m++)d.push(a[m]),l[m+1]!==""&&d.push(l[m+1]);return d}i.exports=d}),34);
|
|
__d("fbt",["invariant","FbtEnv","FbtHooks","FbtQTOverrides","FbtResultBase","FbtTable","FbtTableAccessor","GenderConst","IntlVariationResolver","intlNumUtils","substituteTokens"],(function(t,n,r,o,a,i,l){var e;n("FbtEnv").setupOnce();var s=n("FbtQTOverrides").overrides,u=n("IntlVariationResolver").getGenderVariations,c=n("IntlVariationResolver").getNumberVariations,d=Object.prototype.hasOwnProperty,m=!1,p=n("FbtTable").ARG,_={number:0,gender:1},f={object:0,possessive:1,reflexive:2,subject:3},g={};function h(t,r,o){if(((o==null?void 0:o.hk)!=null&&(o==null?void 0:o.hk)!==""||(o==null?void 0:o.ehk)!=null)&&m)return{text:t,fbt:!0,hashKey:o.hk};var a=(e||(e=n("FbtHooks"))).getTranslatedInput({table:t,args:r,options:o}),i=a.args,c=a.table,d={};if(c.__vcg!=null){i=i||[];var p=(e||(e=n("FbtHooks"))).getViewerContext(),_=p.GENDER,f=u(_);i.unshift(n("FbtTableAccessor").getGenderResult(f,null,_))}var g=[];i&&(typeof c!="string"&&(c=n("FbtTable").access(c,i,0,g)),d=y(i),c!==null||l(0,479));var h,b;if(Array.isArray(c)){h=c[0],b=c[1];var v="1_"+b;s[v]!=null&&s[v]!==""&&(h=s[v],(e||(e=n("FbtHooks"))).onTranslationOverride(b));var S={inputTable:t,tokens:g};(e||(e=n("FbtHooks"))).logImpression(b,S)}else if(typeof c=="string")h=c;else throw new Error("Table access did not result in string: "+(c===void 0?"undefined":JSON.stringify(c))+", Type: "+typeof c);var R=this.cachedResults[h],L=C(d);if(R&&!L)return R;var E=n("substituteTokens")(h,d,(e||(e=n("FbtHooks"))).getErrorListener==null?void 0:(e||(e=n("FbtHooks"))).getErrorListener({translation:h,hash:b})),k=this._wrapContent(E,h,b,o==null?void 0:o.eo);return L||(this.cachedResults[h]=k),k}function y(e){var t={};return e.forEach(function(e){var n=e[p.SUBSTITUTION];if(n)for(var r in n)d.call(n,r)&&(t[r]==null||l(0,56656,r),t[r]=n[r])}),t}function C(e){for(var t in e)return!0;return!1}function b(e,t){return n("FbtTableAccessor").getEnumResult(e)}function v(e){return n("FbtTableAccessor").getGenderResult(u(e),null,e)}function S(e,t,r){var o,a=(o={},o[e]=t,o);if(r)if(r[0]===_.number){var i=r.length>1?r[1]:t;typeof i=="number"||l(0,484);var s=c(i);return typeof t=="number"&&(a[e]=n("intlNumUtils").formatNumberWithThousandDelimiters(t)),n("FbtTableAccessor").getNumberResult(s,a,i)}else if(r[0]===_.gender){var d=r[1];return d!=null||l(0,485),n("FbtTableAccessor").getGenderResult(u(d),a,d)}else l(0,486);else return n("FbtTableAccessor").getSubstitution(a)}function R(e,t,n){return this._param(e,t,n)}function L(e,t,r){var o=c(e),a={};return t!=null&&t!==""&&(typeof r=="number"?a[t]=n("intlNumUtils").formatNumberWithThousandDelimiters(r):a[t]=r!=null?r:n("intlNumUtils").formatNumberWithThousandDelimiters(e)),n("FbtTableAccessor").getNumberResult(o,a,e)}function E(e,t,r){t!==n("GenderConst").NOT_A_PERSON||!r||!r.human||l(0,11835);var o=k(e,t);return n("FbtTableAccessor").getPronounResult(o)}function k(e,t){switch(t){case n("GenderConst").NOT_A_PERSON:return e===f.object||e===f.reflexive?n("GenderConst").NOT_A_PERSON:n("GenderConst").UNKNOWN_PLURAL;case n("GenderConst").FEMALE_SINGULAR:case n("GenderConst").FEMALE_SINGULAR_GUESS:return n("GenderConst").FEMALE_SINGULAR;case n("GenderConst").MALE_SINGULAR:case n("GenderConst").MALE_SINGULAR_GUESS:return n("GenderConst").MALE_SINGULAR;case n("GenderConst").MIXED_UNKNOWN:case n("GenderConst").FEMALE_PLURAL:case n("GenderConst").MALE_PLURAL:case n("GenderConst").NEUTER_PLURAL:case n("GenderConst").UNKNOWN_PLURAL:return n("GenderConst").UNKNOWN_PLURAL;case n("GenderConst").NEUTER_SINGULAR:case n("GenderConst").UNKNOWN_SINGULAR:return e===f.reflexive?n("GenderConst").NOT_A_PERSON:n("GenderConst").UNKNOWN_PLURAL}return n("GenderConst").NOT_A_PERSON}function I(e,t,r){var o=u(r),a={};return a[e]=t,n("FbtTableAccessor").getGenderResult(o,a,r)}function T(t,r,o,a){var i=typeof t=="string"?[t]:t,l=(e||(e=n("FbtHooks"))).getErrorListener({translation:r,hash:o}),s=e.getFbtResult({contents:i,errorListener:l,extraOptions:a,patternHash:o,patternString:r});return s}function D(){m=!0}function x(){m=!1}function $(e){return e instanceof n("FbtResultBase")}var P=function(){};P._=h,P._enum=b,P._implicitParam=R,P._name=I,P._param=S,P._plural=L,P._pronoun=E,P._subject=v,P._wrapContent=T,P.disableJsonExportMode=x,P.enableJsonExportMode=D,P.isFbtInstance=$,P.cachedResults=g,P._getCachedFbt=void 0;var N=P;a.exports=N}),null);
|
|
__d("BDHeaderConfig",[],(function(t,n,r,o,a,i){"use strict";var e="359341";i.ASBD_ID=e}),66);
|
|
__d("getAsyncHeaders",["BDHeaderConfig","LSD","ZeroCategoryHeader","isFacebookURI","requireWeak"],(function(t,n,r,o,a,i,l){function e(e){var t={},n=r("isFacebookURI")(e);n&&r("ZeroCategoryHeader").value&&(t[r("ZeroCategoryHeader").header]=r("ZeroCategoryHeader").value);var o=s(e);o&&(t["X-FB-LSD"]=o);var a=u(e);return a&&(t["X-ASBD-ID"]=a),r("requireWeak")("MessengerPWAVersionForUserAgent",function(n){var r=n();r!=null&&!c(e)&&(t["x-fb-pwa"]=""+r)}),t}function s(e){return c(e)?null:r("LSD").token}function u(e){return c(e)?null:o("BDHeaderConfig").ASBD_ID}function c(e){var t,n,r,o=(t=(n=d())==null||(n=n.location)==null?void 0:n.origin)!=null?t:(r=window)==null||(r=r.location)==null?void 0:r.origin;return o==null?!0:!e.toString().startsWith("/")&&e.getOrigin()!==o}function d(){return typeof document!="undefined"?document:null}l.default=e}),98);
|
|
__d("isAIDemosDotMetaDotComURI",[],(function(t,n,r,o,a,i){var e=new RegExp("(^|\\.)aidemos\\.meta\\.com$","i"),l=["https"];function s(t){return t.isEmpty()&&t.toString()!=="#"||!t.getDomain()&&!t.getProtocol()?!1:l.indexOf(t.getProtocol())!==-1&&e.test(t.getDomain())}i.default=s}),66);
|
|
__d("isArDotMetaDotComURI",[],(function(t,n,r,o,a,i){var e=new RegExp("(^|\\.)ar\\.meta\\.com$","i"),l=["https"];function s(t){return t.isEmpty()&&t.toString()!=="#"||!t.getDomain()&&!t.getProtocol()?!1:l.indexOf(t.getProtocol())!==-1&&e.test(t.getDomain())}i.default=s}),66);
|
|
__d("isBugBountyDotMetaDotComURI",[],(function(t,n,r,o,a,i){var e=new RegExp("(^|\\.)bugbounty\\.meta\\.com$","i"),l=["https"];function s(t){return t.isEmpty()&&t.toString()!=="#"||!t.getDomain()&&!t.getProtocol()?!1:l.indexOf(t.getProtocol())!==-1&&e.test(t.getDomain())}i.default=s}),66);
|
|
__d("isDevelopersDotMetaDotComURI",[],(function(t,n,r,o,a,i){var e=new RegExp("(^|\\.)developers\\.meta\\.com$","i"),l=["https"];function s(t){return t.isEmpty()&&t.toString()!=="#"||!t.getDomain()&&!t.getProtocol()?!1:l.indexOf(t.getProtocol())!==-1&&e.test(t.getDomain())}i.default=s}),66);
|
|
__d("isHorizonDotMetaDotComURI",[],(function(t,n,r,o,a,i){var e=new RegExp("(^|\\.)horizon\\.meta\\.com$","i"),l=["https"];function s(t){return t.isEmpty()&&t.toString()!=="#"||!t.getDomain()&&!t.getProtocol()?!1:l.indexOf(t.getProtocol())!==-1&&e.test(t.getDomain())}i.default=s}),66);
|
|
__d("isSparkDotMetaDotComURI",[],(function(t,n,r,o,a,i){var e=new RegExp("(^|\\.)spark\\.meta\\.com$","i"),l=["https"];function s(t){return t.isEmpty()&&t.toString()!=="#"||!t.getDomain()&&!t.getProtocol()?!1:l.indexOf(t.getProtocol())!==-1&&e.test(t.getDomain())}i.default=s}),66);
|
|
__d("isWearablesDotDeveloperDotMetaDotComURI",[],(function(t,n,r,o,a,i){var e=new RegExp("(^|\\.)wearables?(\\.[^.]+)*\\.developer\\.meta\\.com$","i"),l=["https"];function s(t){return t.isEmpty()&&t.toString()!=="#"||!t.getDomain()&&!t.getProtocol()?!1:l.indexOf(t.getProtocol())!==-1&&e.test(t.getDomain())}i.default=s}),66);
|
|
__d("isWorkDotMetaDotComURI",[],(function(t,n,r,o,a,i){var e=new RegExp("(^|\\.)work\\.meta\\.com$","i"),l=["https"];function s(t){return t.isEmpty()&&t.toString()!=="#"||!t.getDomain()&&!t.getProtocol()?!1:l.indexOf(t.getProtocol())!==-1&&e.test(t.getDomain())}i.default=s}),66);
|
|
__d("isWorkroomsDotComURI",[],(function(t,n,r,o,a,i){var e=new RegExp("(^|\\.)workrooms\\.com$","i"),l=["https"];function s(t){return t.isEmpty()&&t.toString()!=="#"||!t.getDomain()&&!t.getProtocol()?!1:l.indexOf(t.getProtocol())!==-1&&e.test(t.getDomain())}i.default=s}),66);
|
|
__d("uriIsRelativePath",[],(function(t,n,r,o,a,i){"use strict";function e(e){return!e.getProtocol()&&!e.getDomain()&&!e.getPort()&&e.toString()!==""}i.default=e}),66);
|
|
__d("AsyncRequest",["errorCode","fbt","invariant","AdsManagerConstURIUtils","Arbiter","AsyncDOM","AsyncRequestConfig","AsyncResponse","Bootloader","CSS","DTSG","DTSG_ASYNC","Deferred","Env","ErrorGuard","Event","FBLogger","FetchStreamTransport","HTTPErrors","HasteResponse","PHPQuerySerializer","Parent","Promise","ResourceTimingsStore","ResourceTypes","Run","ScriptPath","ServerJS","SessionName","TimeSlice","URI","UserAgent_DEPRECATED","ZeroRewrites","bind","clearTimeout","emptyFunction","executeAfter","fb-error","ge","getAsyncHeaders","getAsyncParams","getErrorSafe","gkx","goURI","isAIDemosDotMetaDotComURI","isArDotMetaDotComURI","isBugBountyDotMetaDotComURI","isDevelopersDotMetaDotComURI","isEmpty","isFacebookURI","isHorizonDotMetaDotComURI","isInternalFBURI","isMessengerDotComURI","isSparkDotMetaDotComURI","isWearablesDotDeveloperDotMetaDotComURI","isWorkDotMetaDotComURI","isWorkplaceDotComURI","isWorkroomsDotComURI","performanceAbsoluteNow","promiseDone","replaceTransportMarkers","setTimeout","setTimeoutAcrossTransitions","uriIsRelativePath"],(function(t,n,r,o,a,i,l,s,u,c){"use strict";var e,d,m,p,_,f,g,h=19e3,y=500,C=1006,b=1004,v=1010,S=new Set([y,v,b,C]),R=!1,L=o("Run").onAfterUnload(function(){R=!0});function E(){return R}function k(e){return"onprogress"in e}function I(e){return"upload"in e&&"onprogress"in e.upload}function T(e){return"withCredentials"in e}function D(e){return e.status in{0:1,12029:1,12030:1,12031:1,12152:1}}function x(e){var t=!e||typeof e=="function";return t||r("FBLogger")("asyncresponse").mustfix("AsyncRequest response handlers must be functions. Pass a function, or use bind() to build one."),t}var $=2,P=$,N=!1;r("Arbiter").subscribe("page_transition",function(e,t){N?N=!1:P=t.id});var M="for (;;);",w=M.length,A=(function(){function t(e){var n=this,a;this._allowIrrelevantRequests=!1,this._delayPreDisplayJS=!1,this._shouldReplaceTransportMarkers=!1,this._dispatchErrorResponse=function(e,t){var o=e.getError();if(n.clearStatusIndicator(),!n._isRelevant()||o===v){n.id,n.abort();return}if(n._isServerDialogErrorCode(o)){var a=o==1357008||o==1357007;n.interceptHandler(e),o==1357007?n._displayServerDialog(e,a,!0):n._displayServerDialog(e,a)}else if(n.initialHandler(e)!==!1){r("clearTimeout")(n.timer);try{t(e)}catch(t){throw n.finallyHandler(e),t}n.finallyHandler(e)}},this._onStateChange=function(){var e=n.transport;if(e)try{t._inflightCount--,o("ResourceTimingsStore").measureResponseReceived(r("ResourceTypes").XHR,n.resourceTimingStoreUID);try{e.getResponseHeader("X-FB-Debug")&&(n._xFbServer=e.getResponseHeader("X-FB-Debug"),r("fb-error").ErrorXFBDebug.add(n._xFbServer))}catch(e){}if(e.status>=200&&e.status<300)t.lastSuccessTime=Date.now(),n._handleXHRResponse(e);else if(o("UserAgent_DEPRECATED").webkit()&&typeof e.status=="undefined")n._invokeErrorHandler(1002);else if(r("AsyncRequestConfig").retryOnNetworkError&&D(e)&&n.remainingRetries>0&&!n._requestTimeout){n.remainingRetries--,delete n.transport,n.send(!0);return}else n._invokeErrorHandler();n.getOption("asynchronous_DEPRECATED")!==!1&&delete n.transport}catch(e){if(E())return;if(delete n.transport,n.remainingRetries>0)n.remainingRetries--,n.send(!0);else{if(!n.getOption("suppressErrorAlerts")){var a=r("getErrorSafe")(e);r("FBLogger")("AsyncRequest").catching(a).mustfix("AsyncRequest exception when attempting to handle a state change")}n._invokeErrorHandler(1007)}}},this._handleTimeout=function(){n.continuation.last(function(){n._requestTimeout=!0;var e=n.timeoutHandler;n.abandon(),e&&e(n),r("setTimeout")(function(){r("Arbiter").inform("AsyncRequest/timeout",{request:n})},0)})},this.continuation=r("TimeSlice").getPlaceholderReusableContinuation(),this.transport=null,this.method="POST",this.uri="",this.timeout=null,this.timer=null,this.initialHandler=a=r("emptyFunction"),this.handler=null,this.uploadProgressHandler=null,this.errorHandler=r("AsyncResponse").defaultErrorHandler,this.transportErrorHandler=null,this.timeoutHandler=null,this.interceptHandler=a,this.finallyHandler=a,this.abortHandler=a,this.serverDialogCancelHandler=null,this.relativeTo=null,this.statusElement=null,this.statusClass="",this.data={},this.headers={},this.file=null,this.context={},this.readOnly=!1,this.writeRequiredParams=[],this.remainingRetries=0,this.userActionID="-",this.resourceTimingStoreUID=o("ResourceTimingsStore").getUID(r("ResourceTypes").XHR,e!=null?e.toString():""),this.flushedResponseTextParseIndex=0,this.option={asynchronous_DEPRECATED:!0,suppressErrorHandlerWarning:!1,suppressEvaluation:!1,suppressErrorAlerts:!1,retries:0,bundle:!1,handleErrorAfterUnload:!1,useFetchTransport:!1},this.transportErrorHandler=r("bind")(this,"errorHandler"),e!==void 0&&this.setURI(e),this.setAllowCrossPageTransition(r("AsyncRequestConfig").asyncRequestsSurviveTransitionsDefault||!1)}var a=t.prototype;return a._dispatchResponse=function(t){if(this.clearStatusIndicator(),!this._isRelevant()){this._invokeErrorHandler(v);return}if(this.initialHandler(t)!==!1){r("clearTimeout")(this.timer);var e,n=this.getHandler();try{e=this._shouldSuppressJS(n(t))}catch(e){throw t.is_last&&this.finallyHandler(t),e}e||this._handleJSResponse(t),t.is_last&&this.finallyHandler(t)}},a._shouldSuppressJS=function(n){return n===t.suppressOnloadToken},a._handlePreDisplayServerJS=function(t,n){var e=!1,o=[],a=function(){if(e)return r("FBLogger")("AsyncResponse").warn("registerToBlockDisplayUntilDone_DONOTUSE called after AsyncResponse display started. This is a no-op."),function(){};var t,n=new(r("Deferred"));return o.push(n.getPromise()),r("TimeSlice").guard(function(){t&&r("clearTimeout")(t),n.resolve()},"AsyncRequestDisplayBlockingEvent",{propagationType:r("TimeSlice").PropagationType.EXECUTION})};return t.handle(n,{bigPipeContext:{registerToBlockDisplayUntilDone_DONOTUSE:a}}),e=!0,o},a._hasEvalDomOp=function(t){return t&&t.length?t.some(function(e){return e[0]==="eval"}):!1},a._handleJSResponse=function(t){var e=this.getRelativeTo(),n=t.domops,a=t.dtsgToken,i=t.dtsgAsyncGetToken,l=t.jsmods,s,u=t.savedServerJSInstance;if(u&&u instanceof r("ServerJS")?s=u:s=new(r("ServerJS")),s.setRelativeTo(e),l){var c={define:l.define,instances:l.instances,markup:l.markup};delete l.define,delete l.instances,delete l.markup,this._hasEvalDomOp(n)&&(c.elements=l.elements,delete l.elements),s.handle(c)}var d=new(m||(m=r("URI")))(this.uri);(!d.getDomain()&&!d.getProtocol()||document.location.origin===d.getOrigin())&&(a&&o("DTSG").setToken(a),i&&o("DTSG_ASYNC").setToken(i)),n&&(g||(g=r("ErrorGuard"))).applyWithGuard(function(){return o("AsyncDOM").invoke(n,e)},null,[],{errorType:"warn"}),l&&s.handle(l),this._handleJSRegisters(t,"onload"),this._handleJSRegisters(t,"onafterload")},a._handleJSRegisters=function(t,n){var e=t[n];if(e)for(var o=0;o<e.length;o++){var a=null,i=e[o],l=i.match(/^\"caller:([^\"]+?)\";(.*)/);l!=null&&(a=l[1],i=l[2]),(g||(g=r("ErrorGuard"))).applyWithGuard(new Function(i),this,[]),r("FBLogger")("comet_infra").info("Detected dynamic new Function(...) call in AsyncRequest._handleJSRegisters(...).",new(m||(m=r("URI")))(this.uri).getPath(),a)}},a.invokeResponseHandler=function(t){var e=this;if(typeof t.redirect!="undefined"){r("setTimeout")(function(){e.setURI(t.redirect,!0).send()},0);return}if(t.bootloadOnly!==void 0){var a=typeof t.bootloadOnly=="string"?JSON.parse(t.bootloadOnly):t.bootloadOnly,i=function(t){r("TimeSlice").guard(function(){r("Bootloader").loadPredictedResourceMap(t)},"Bootloader.loadPredictedResourceMap",{root:!0})()};for(var l of a)i(l);return}if(!(!this.handler&&!this.errorHandler&&!this.transportErrorHandler&&!this.preBootloadHandler&&this.initialHandler===r("emptyFunction")&&this.finallyHandler===r("emptyFunction"))){var s=t.asyncResponse;if(typeof s!="undefined"){var u,c;if(!this._isRelevant()){this._invokeErrorHandler(v);return}s.updateScriptPath&&r("ScriptPath").set(s.updateScriptPath.path,s.updateScriptPath.token,s.updateScriptPath.extra_info),s.lid&&(this._responseTime=Date.now(),this.lid=s.lid),o("HasteResponse").handleSRPayload((u=s.hsrp)!=null?u:{});var m,_;if(s.getError()&&!s.getErrorIsWarning()){var f=this.getErrorHandler().bind(this);m=(g||(g=r("ErrorGuard"))).guard(this._dispatchErrorResponse,{name:"AsyncRequest#_dispatchErrorResponse for "+this.getURI()}),m=m.bind(this,s,f),_="error"}else{m=(g||(g=r("ErrorGuard"))).guard(this._dispatchResponse.bind(this),{name:"AsyncRequest#_dispatchResponse for "+this.getURI()}),m=m.bind(this,s),_="response";var h=s.domops;if(!this._delayPreDisplayJS&&s.jsmods&&s.jsmods.pre_display_requires&&!this._hasEvalDomOp(h)){var y=s.jsmods,C={define:y.define,instances:y.instances,markup:y.markup};delete y.define,delete y.instances,delete y.markup,C.pre_display_requires=y.pre_display_requires,delete y.pre_display_requires;var b=new(r("ServerJS"));b.setRelativeTo(this.getRelativeTo()),s.savedServerJSInstance=b;var S=this._handlePreDisplayServerJS(b,C);if(S&&S.length){var R=m;m=function(){r("promiseDone")((d||(d=n("Promise"))).all(S).then(R))}}}}var L=(p||(p=r("performanceAbsoluteNow")))();m=r("executeAfter")(m,function(){r("Arbiter").inform("AsyncRequest/"+_,{request:e,response:s,ts:L})}),this.preBootloadHandler&&this.preBootloadHandler(s),r("Bootloader").loadResources((c=s.allResources)!=null?c:[],{onAll:r("AsyncRequestConfig").immediateDispatch?m:function(){r("setTimeout")(m,0)}})}else typeof t.transportError!="undefined"?this._xFbServer?this._invokeErrorHandler(1008):this._invokeErrorHandler(1012):this._invokeErrorHandler(1007)}},a._invokeErrorHandler=function(t){var e=this,n=this.transport;if(n){var o;if(this.responseText==="")o=1002;else if(this._requestAborted)o=1011;else{try{o=t||n.status||b}catch(e){o=1005}navigator.onLine===!1&&(o=C)}var a,i,l=!0;if(o===C)i=u._(/*BTDS*/"Nincs h\u00e1l\u00f3zati kapcsolat"),a=u._(/*BTDS*/"\u00dagy t\u0171nik, a b\u00f6ng\u00e9sz\u0151d offline \u00e1llapotban van. Ellen\u0151rizd az internetkapcsolatot, majd pr\u00f3b\u00e1ld meg \u00fajra.");else if(o>=300&&o<=399){i=u._(/*BTDS*/"\u00c1tir\u00e1ny\u00edt\u00e1s."),a=u._(/*BTDS*/"A Facebookhoz val\u00f3 hozz\u00e1f\u00e9r\u00e9sedet harmadik f\u00e9l \u00e1tir\u00e1ny\u00edtotta vagy megakad\u00e1lyozta, k\u00e9rj\u00fck, vedd fel a kapcsolatot az internetszolg\u00e1ltat\u00f3ddal, vagy pr\u00f3b\u00e1ld meg friss\u00edteni az oldalt.");var s=n.getResponseHeader("Location");s&&r("goURI")(s,!0),l=!0}else i=u._(/*BTDS*/"Hopp\u00e1!"),a=u._(/*BTDS*/"Valami hiba t\u00f6rt\u00e9nt. Igyeksz\u00fcnk miel\u0151bb kijav\u00edtani. Esetleg pr\u00f3b\u00e1ld \u00fajra.");var c=new(r("AsyncResponse"))(this,n),d=n.getResponseHeader("Error-Mid");if(Object.assign(c,{error:o,errorSummary:i,errorDescription:a,silentError:l,errorMid:d}),r("setTimeout")(function(){r("Arbiter").inform("AsyncRequest/error",{request:e,response:c})},0),!(E()&&!this.getOption("handleErrorAfterUnload"))){var m=r("FBLogger")("asyncresponse");if(d!=null&&(m=m.addMetadata("OPES","MID",d)),!this.transportErrorHandler){m.mustfix("Async request to %s failed with a %d error, but there was no error handler available to deal with it.",this.getURI(),o);return}var p=this.getTransportErrorHandler().bind(this);this.getOption("suppressErrorAlerts")||S.has(o)?S.has(o)&&m.addToCategoryKey(String(o)).warn("Async request failed with error %s: %s when requesting %s",o,a.toString(),this.getURI()):m.addToCategoryKey(String(o)).mustfix("Async request failed with error %s: %s when requesting %s",o,a.toString(),this.getURI()),(g||(g=r("ErrorGuard"))).applyWithGuard(this._dispatchErrorResponse,this,[c,p])}}},a._isServerDialogErrorCode=function(t){return t==1357008||t==1357007||t==1357041||t==1442002||t==1357001},a._displayServerDialog=function(t,n,o){var e=this;o===void 0&&(o=!1);var a=t.getPayload();if(a.__dialog!==void 0){this._displayServerLegacyDialog(t,n);return}var i=a.__dialogx;if(new(r("ServerJS"))().handle(i),a.__should_use_mwa_reauth===!0){r("Bootloader").loadModules(["MWADeveloperReauthBarrier"],function(n){n.registerRequest(a.__dialogID,e,t)},"AsyncRequest");return}r("Bootloader").loadModules(["ConfirmationDialog"],function(n){n.setupConfirmation(t,e,o)},"AsyncRequest")},a._displayServerLegacyDialog=function(t,n){var e=this,o=t.getPayload().__dialog;if(r("gkx")("20935")){var a,i;r("FBLogger")("comet_infra").addMetadata("COMET_INFRA","ERROR_CODE",t.getError().toString()).addMetadata("COMET_INFRA","ERROR_URL",(a=(i=t.request)==null?void 0:i.getURI())!=null?a:"unknown").mustfix("AsyncRequest._displayServerLegacyDialog called in Comet")}r("Bootloader").loadModules(["Dialog"],function(r){var a=new r(o);n&&a.setHandler(e._displayConfirmationHandler.bind(e,a)),a.setCancelHandler(function(){var n=e.getServerDialogCancelHandler();try{n&&n(t)}catch(e){throw e}finally{e.finallyHandler(t)}}).setCausalElement(e.relativeTo).show()},"AsyncRequest")},a._displayConfirmationHandler=function(t){this.data.confirmed=1,Object.assign(this.data,t.getFormData()),this.send()},a.$1=function(t){t.subscribe("response",this._handleJSONPResponse.bind(this)),t.subscribe("abort",this._handleJSONPAbort.bind(this)),this.transport=t},a._handleJSONPResponse=function(t,n){var e=this.transport;if(e){n.bootloadOnly||(this.is_first=this.is_first===void 0);var r=this._interpretResponse(n);r.asyncResponse&&(r.asyncResponse.is_first=this.is_first,r.asyncResponse.is_last=e.hasFinished()),this.invokeResponseHandler(r),e.hasFinished()&&delete this.transport}},a._handleJSONPAbort=function(){this._invokeErrorHandler(),delete this.transport},a._handleXHRResponse=function(t){var e;if(this.getOption("suppressEvaluation"))e={asyncResponse:new(r("AsyncResponse"))(this,t)};else try{this._handleFlushedResponse();var n=t.responseText;n=this._filterOutFlushedText(n);var o=this._unshieldResponseText(n),a=JSON.parse(o);e=this._interpretResponse(a)}catch(t){var i=r("getErrorSafe")(t);e=i.message,r("FBLogger")("async_request").catching(i).warn("Failed to handle response")}this.invokeResponseHandler(e)},a._handleFlushedResponse=function(){var e=this.flushedResponseHandler,t=this.transport;if(e&&t){var n=t.responseText.indexOf(M),r=n===-1?t.responseText.length:n;e(t.responseText.substring(this.flushedResponseTextParseIndex,r)),this.flushedResponseTextParseIndex=r}},a._unshieldResponseText=function(t){if(t.length<=w)throw new Error("Response too short on async");for(var e=0;t.charAt(e)===" "||t.charAt(e)==="\n";)e++;return e&&t.substring(e,e+w)==M&&this.getURI(),t.substring(e+w)},a._filterOutFlushedText=function(t){if(!this.flushedResponseHandler)return t;var e=t.indexOf(M);return e<0?t:t.substr(e)},a._interpretResponse=function(t){if(t.redirect)return{redirect:t.redirect};if(t.bootloadOnly)return{bootloadOnly:t.bootloadOnly};var e=t.error&&this._isServerDialogErrorCode(t.error);this._shouldReplaceTransportMarkers&&t.payload&&!e&&r("replaceTransportMarkers")({relativeTo:this.getRelativeTo(),bigPipeContext:null},t.payload);var n=new(r("AsyncResponse"))(this);if(t.__ar!=1)r("FBLogger")("AsyncRequest").warn("AsyncRequest to endpoint %s returned a JSON response, but it is not properly formatted. The endpoint needs to provide a response using the AsyncResponse class in PHP.",this.getURI()),n.payload=t;else{Object.assign(n,t);var o=this.transport;o&&o.getAllResponseHeaders!==void 0&&(n.responseHeaders=o.getAllResponseHeaders())}return{asyncResponse:n}},a._isMultiplexable=function(){return this.getOption("useFetchTransport")?(r("FBLogger")("AsyncRequest").mustfix("You cannot bundle AsyncRequest that uses iframe transport."),!1):r("isFacebookURI")(new(m||(m=r("URI")))(this.uri))?this.getOption("asynchronous_DEPRECATED")?!0:(r("FBLogger")("AsyncRequest").mustfix("We cannot bundle synchronous AsyncRequests"),!1):(r("FBLogger")("AsyncRequest").mustfix("You can not bundle AsyncRequest sent to non-facebook URIs. Uri: %s",this.getURI()),!1)},a.handleResponse=function(t){var e=this._interpretResponse(t);this.invokeResponseHandler(e)},a.setMethod=function(t){return this.method=t.toString().toUpperCase(),this},a.getMethod=function(){return this.method},a.setData=function(t){return this.data=t,this},a.setRequestHeader=function(t,n){return this.headers[t]=n,this},a.setRawData=function(t){return this.rawData=t,this},a.getData=function(){return this.data},a.setContextData=function(t,n,r){return r=r===void 0?!0:r,r&&(this.context["_log_"+t]=n),this},a._setUserActionID=function(){this.userActionID=(o("SessionName").getName()||"-")+"/-"},a.setURI=function(t,n){n===void 0&&(n=!1),typeof t=="string"&&t.match(/^\/?u_\d+_\d+/)&&r("FBLogger")("asyncrequest").warn("Invalid URI %s",t);var e=new(m||(m=r("URI")))(t);return this.getOption("useFetchTransport")&&!r("isFacebookURI")(e)?(!n||c(0,45284),this):!this._allowCrossOrigin&&!this.getOption("useFetchTransport")&&!e.isSameOrigin()&&!r("uriIsRelativePath")(e)?(e.toString(),!n||c(0,45285),this):(this._setUserActionID(),!t||e.isEmpty()?(r("FBLogger")("async_request").mustfix("URI cannot be empty"),this):(this.uri=o("ZeroRewrites").rewriteURI(e),this))},a.getURI=function(){return this.uri.toString()},a.delayPreDisplayJS=function(t){return t===void 0&&(t=!0),this._delayPreDisplayJS=t,this},a.setInitialHandler=function(t){return this.initialHandler=t,this},a.setPayloadHandler=function(t){return this.setHandler(function(e){t(e.payload)}),this},a.setHandler=function(t){return x(t)&&(this.handler=t),this},a.setFlushedResponseHandler=function(t){return x(t)&&(this.flushedResponseHandler=t),this},a.getHandler=function(){return this.handler||r("emptyFunction")},a.setProgressHandler=function(t){return x(t)&&(this.progressHandler=t),this},a.setUploadProgressHandler=function(t){return x(t)&&(this.uploadProgressHandler=t),this},a.setErrorHandler=function(t){return x(t)&&(this.errorHandler=t),this},a.setTransportErrorHandler=function(t){return this.transportErrorHandler=t,this},a.getErrorHandler=function(){return this.errorHandler||r("emptyFunction")},a.getTransportErrorHandler=function(){return this.transportErrorHandler||r("emptyFunction")},a.setTimeoutHandler=function(t,n){return x(n)&&(this.timeout=t,this.timeoutHandler=n),this},a.resetTimeout=function(t){if(this.timeoutHandler!==null)if(t===null)this.timeout=null,r("clearTimeout")(this.timer),this.timer=null;else{var e=!this._allowCrossPageTransition;this.timeout=t,r("clearTimeout")(this.timer),e?this.timer=r("setTimeout")(this._handleTimeout.bind(this),this.timeout):this.timer=r("setTimeoutAcrossTransitions")(this._handleTimeout.bind(this),this.timeout)}return this},a.setNewSerial=function(){return this.id=++$,this},a.setInterceptHandler=function(t){return this.interceptHandler=t,this},a.setFinallyHandler=function(t){return this.finallyHandler=t,this},a.setAbortHandler=function(t){return this.abortHandler=t,this},a.getServerDialogCancelHandler=function(){return this.serverDialogCancelHandler},a.setServerDialogCancelHandler=function(t){return this.serverDialogCancelHandler=t,this},a.setPreBootloadHandler=function(t){return this.preBootloadHandler=t,this},a.setReadOnly=function(t){return typeof t!="boolean"||(this.readOnly=t),this},a.getReadOnly=function(){return this.readOnly},a.setRelativeTo=function(t){return this.relativeTo=t,this},a.getRelativeTo=function(){return this.relativeTo},a.setStatusClass=function(t){return this.statusClass=t,this},a.setStatusElement=function(t){return this.statusElement=t,this},a.getStatusElement=function(){return r("ge")(this.statusElement)},a._isRelevant=function(){return this._allowCrossPageTransition||!this.id?!0:this.id>P},a.clearStatusIndicator=function(){var e=this.getStatusElement();e&&(o("CSS").removeClass(e,"async_saving"),o("CSS").removeClass(e,this.statusClass))},a._addStatusIndicator=function(){var e=this.getStatusElement();e&&(o("CSS").addClass(e,"async_saving"),o("CSS").addClass(e,this.statusClass))},a.specifiesWriteRequiredParams=function(){var e=this;return this.writeRequiredParams.every(function(t){return e.data[t]=e.data[t]||(_||(_=r("Env")))[t]||(r("ge")(t)||{}).value,e.data[t]!==void 0})},a.setOption=function(t,n){return typeof this.option[t]!="undefined"&&(this.option[t]=n),this},a.getOption=function(t){return this.option[t],this.option[t]},a.abort=function(){var e=this;this.continuation.last(function(){var t=e.transport;if(t){var n=e.getTransportErrorHandler();e.setOption("suppressErrorAlerts",!0),e.setTransportErrorHandler(r("emptyFunction")),e._requestAborted=!0,t.abort(),e.setTransportErrorHandler(n)}e.abortHandler(),B.unschedule(e)})},a.abandon=function(){var e=this;this.continuation.last(function(){var t;r("clearTimeout")(e.timer),e.setOption("suppressErrorAlerts",!0).setHandler(t=r("emptyFunction")).setErrorHandler(t).setTransportErrorHandler(t).setProgressHandler(t).setUploadProgressHandler(t);var n=e.transport;n&&(e._requestAborted=!0,k(n)&&delete n.onprogress,I(n)&&delete n.upload.onprogress,n.abort()),e.abortHandler(),B.unschedule(e)})},a.setNectarModuleDataSafe=function(t){var e=this.setNectarModuleData;return e!=null&&e.call(this,t),this},a.setAllowCrossPageTransition=function(t){return this._allowCrossPageTransition=!!t,this.timer&&this.resetTimeout(this.timeout),this},a.getAllowIrrelevantRequests=function(){return this._allowIrrelevantRequests},a.setAllowIrrelevantRequests=function(t){return this._allowIrrelevantRequests=t,this},a.setAllowCrossOrigin=function(t){return this._allowCrossOrigin=t,this},a.setAllowCredentials=function(t){return this._allowCredentials=t,this},a.setIsBackgroundRequest=function(t){return this._isBackgroundRequest=t,this},a.setReplaceTransportMarkers=function(t){return t===void 0&&(t=!0),this._shouldReplaceTransportMarkers=t,this},a.sendAndReturnAbortHandler=function(){var e=this;return this.send(),function(){return e.abort()}},a.send=function(a){var n=this;if(a=a||!1,!this.uri||(!this.errorHandler&&this.getOption("suppressErrorHandlerWarning"),this.getOption("useFetchTransport")&&this.method!="GET"&&this.setMethod("GET"),this.timeoutHandler!==null&&this.getOption("useFetchTransport"),!this.getReadOnly()&&(this.specifiesWriteRequiredParams(),this.method!="POST"))||document.location.search.toString().includes(this.uri.toString())||this.uri.toString().includes("/../")||this.uri.toString().includes("\\../")||this.uri.toString().includes("/..\\")||this.uri.toString().includes("\\..\\"))return!1;if(Object.assign(this.data,r("getAsyncParams")(this.method)),(f||(f=r("isEmpty")))(this.context)||(Object.assign(this.data,this.context),this.data.ajax_log=1),(_||(_=r("Env"))).force_param&&Object.assign(this.data,(_||(_=r("Env"))).force_param),this._setUserActionID(),this.getOption("bundle")&&this._isMultiplexable())return B.schedule(this),!0;this.setNewSerial(),this.getOption("asynchronous_DEPRECATED")||this.uri.addQueryData({__sjax:1}),r("Arbiter").inform("AsyncRequest/send",{request:this,ts:(p||(p=r("performanceAbsoluteNow")))()});var i,l;if(this.method=="GET"&&this.uri.addQueryData({fb_dtsg_ag:o("DTSG_ASYNC").getToken()}),o("AdsManagerConstURIUtils").shouldRouteToAMReadRegions(this.uri.toString())&&this.getReadOnly()&&this.method.toLowerCase()==="get"?this.uri.addQueryData({ads_manager_read_regions:!0}):o("AdsManagerConstURIUtils").shouldRouteToAMWriteRegions(this.uri.toString(),this.getReadOnly())&&this.uri.addQueryData({ads_manager_write_regions:!0}),this.method=="GET"||this.rawData?(i=this.uri.addQueryData(this.data).toString(),l=this.rawData||""):(this._allowCrossOrigin&&this.uri.addQueryData({__a:1}),i=this.uri.toString(),l=(e||(e=o("PHPQuerySerializer"))).serialize(this.data)),this.transport)return!1;if(this.getOption("useFetchTransport"))try{var s=new(r("FetchStreamTransport"))(this.uri);return this.$1(s),this._markRequestSent(),s.send(),!0}catch(e){this.setOption("useFetchTransport",!1)}this.flushedResponseHandler&&(this.flushedResponseTextParseIndex=0);var u;try{u=o("ZeroRewrites").getTransportBuilderForURI(this.uri)()}catch(e){var c=r("FBLogger")("comet_infra").blameToPreviousFrame();throw e instanceof Error?c.catching(e).mustfixThrow(e.message):c.mustfixThrow("Error getting transport builder for URI")}if(!u)return!1;this.schedule("AsyncRequest.send"),u.onreadystatechange=function(){var e=n.transport;e&&e.readyState>=2&&e.readyState<=3&&n._handleFlushedResponse(),u.readyState===4&&n.continuation.last(n._onStateChange)},this.progressHandler&&k(u)&&(u.onprogress=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.continuation(function(){n.progressHandler&&n.progressHandler.apply(n,t)})}),this.uploadProgressHandler&&I(u)&&(u.upload.onprogress=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.continuation(function(){n.uploadProgressHandler&&n.uploadProgressHandler.apply(n,t)})}),a||(this.remainingRetries=this.getOption("retries")),this.transport=u;try{u.open(this.method,i,this.getOption("asynchronous_DEPRECATED"))}catch(e){return!1}if(!this.uri.isSameOrigin()&&!r("uriIsRelativePath")(this.uri)&&!this.getOption("useFetchTransport")){if(!T(u))return this.uri.toString(),!1;this._canSendCredentials()&&(u.withCredentials=!0)}this.method=="POST"&&!this.rawData&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this._isBackgroundRequest&&u.setRequestHeader("X-FB-BACKGROUND-STATE","1");var d=r("getAsyncHeaders")(this.uri);if(Object.keys(d).forEach(function(e){u&&u.setRequestHeader(e,d[e])}),r("Arbiter").inform("AsyncRequest/will_send",{request:this}),u)for(var m in this.headers)Object.prototype.hasOwnProperty.call(this.headers,m)&&u.setRequestHeader(m,this.headers[m]);return this._addStatusIndicator(),this._markRequestSent(),u.send(l),this.timeout!==null&&this.resetTimeout(this.timeout),t._inflightCount++,!0},a.schedule=function(t){this.continuation=r("TimeSlice").getReusableContinuation(t)},a._canSendCredentials=function(){if(this._allowCredentials===!1)return!1;var e=new(m||(m=r("URI")))(this.uri);return r("isFacebookURI")(e)||r("isInternalFBURI")(e)||r("isMessengerDotComURI")(e)||r("isWorkplaceDotComURI")(e)||r("isWorkroomsDotComURI")(e)||r("isWorkDotMetaDotComURI")(e)||r("isHorizonDotMetaDotComURI")(e)||r("isSparkDotMetaDotComURI")(e)||r("isWearablesDotDeveloperDotMetaDotComURI")(e)||r("isDevelopersDotMetaDotComURI")(e)||r("isArDotMetaDotComURI")(e)||r("isAIDemosDotMetaDotComURI")(e)||r("isBugBountyDotMetaDotComURI")(e)},a._markRequestSent=function(){var e=new(m||(m=r("URI")))(this.getURI()).getQualifiedURI().toString();o("ResourceTimingsStore").updateURI(r("ResourceTypes").XHR,this.resourceTimingStoreUID,e),o("ResourceTimingsStore").annotate(r("ResourceTypes").XHR,this.resourceTimingStoreUID).addStringAnnotation("uri",e),o("ResourceTimingsStore").measureRequestSent(r("ResourceTypes").XHR,this.resourceTimingStoreUID)},a.promisePayload=function(t){return this.exec().then(function(e){return e.payload},function(e){throw e.toError()})},a.exec=function(t){var e=this;if(this.getHandler()!==r("emptyFunction")||this.getErrorHandler()!==r("AsyncResponse").defaultErrorHandler)throw new Error("exec is an async function and does not allow previously set handlers");return new(d||(d=n("Promise")))(function(n,r){e.setHandler(n).setErrorHandler(r).send(t)})},t.bootstrap=function(n,a,i){var e="GET",l=!0,s={};(i||a&&a.rel=="async-post")&&(e="POST",l=!1,n&&(n=new(m||(m=r("URI")))(n),s=n.getQueryData(),n.setQueryData({})));var u=o("Parent").byClass(a,"stat_elem")||a;if(u&&o("CSS").hasClass(u,"async_saving"))return!1;var c=new t(n).setReadOnly(l).setMethod(e).setData(s).setNectarModuleDataSafe(a).setRelativeTo(a);if(a&&(c.setHandler(function(e){r("Event").fire(a,"success",{response:e})}),c.setErrorHandler(function(e){r("Event").fire(a,"error",{response:e})!==!1&&r("AsyncResponse").defaultErrorHandler(e)})),u instanceof HTMLElement){c.setStatusElement(u);var d=u.getAttribute("data-status-class");d&&c.setStatusClass(d)}return c.send(),!1},t.bootstrap_UNSAFE_LET_ANYONE_IMPERSONATE_THE_USER_FOR_THESE_WRITES=function(n,r,o){t.bootstrap(n,r,o)},t.post=function(n,r){return new t(n).setReadOnly(!1).setMethod("POST").setData(r).send(),!1},t.post_UNSAFE_LET_ANYONE_IMPERSONATE_THE_USER_FOR_THESE_WRITES=function(n,r){t.post(n,r)},t.getLastID=function(){return $},t.ignoreUpdate=function(){N=!0},t.getInflightCount=function(){return this._inflightCount},t})();A._inflightCount=0;var F,O=[],B=(function(){function t(){this._requests=[]}var n=t.prototype;return n.add=function(t){this._requests.push(t)},n.remove=function(t){for(var e=this._requests,n=this._requestsSent,r=0,o=e.length;r<o;r++)e[r]===t&&(n?e[r]=null:e.splice(r,1))},n.send=function(){!this._requestsSent||c(0,4390),this._requestsSent=!0,this._wrapperRequest=null;var t=this._requests;if(t.length){var n;if(t.length===1)n=t[0];else{var r=t.filter(Boolean).map(function(t){return[t.uri.getPath(),(e||(e=o("PHPQuerySerializer"))).serialize(t.data)]});n=this._wrapperRequest=new A("/ajax/proxy.php").setAllowCrossPageTransition(!0).setData({data:r}).setHandler(this._handler.bind(this)).setTransportErrorHandler(this._transportErrorHandler.bind(this))}n&&n.setOption("bundle",!1).send()}},n._handler=function(t){var e=this,n=t.getPayload().responses;if(n.length===this._requests.length){for(var r=function(r){var t=e._requests[r];if(!t)return 0;var o=t.uri.getPath();if(e._wrapperRequest&&(t.id=e._wrapperRequest.id),n[r][0]!==o)return t.continuation.last(function(){t.invokeResponseHandler({transportError:"Wrong response order in bundled request to "+o})}),0;t.continuation.last(function(){t.handleResponse(n[r][1])})},o,a=0;a<this._requests.length;a++)o=r(a);O.splice(O.indexOf(this,1))}},n._transportErrorHandler=function(t){var e=this,n={transportError:t.errorDescription},r=this._requests.filter(Boolean).map(function(t){return e._wrapperRequest&&(t.id=e._wrapperRequest.id),t.invokeResponseHandler(n),t.uri.getPath()});""+r.join(", ")},t.schedule=function(n){return n.schedule("AsyncMultiplex.schedule"),F||(F=new t,O.push(F),r("TimeSlice").guard(function(){r("setTimeoutAcrossTransitions")(function(){F&&(F.send(),F=null)},0)},"AsyncMultiplex.schedule",{propagationType:r("TimeSlice").PropagationType.ORPHAN})()),F.add(n),F},t.unschedule=function(t){O.forEach(function(e){e.remove(t)})},t})();A.suppressOnloadToken={},t.AsyncRequest=A,l.default=A}),226);
|
|
__d("QueryString",[],(function(t,n,r,o,a,i){function e(e){var t=[];return Object.keys(e).sort().forEach(function(n){var r=e[n];if(r!==void 0){if(r===null){t.push(n);return}t.push(encodeURIComponent(n)+"="+encodeURIComponent(String(r)))}}),t.join("&")}function l(e,t){t===void 0&&(t=!1);var n={};if(e==="")return n;for(var r=e.split("&"),o=0;o<r.length;o++){var a=r[o].split("=",2),i=decodeURIComponent(a[0]);if(t&&Object.prototype.hasOwnProperty.call(n,i))throw new URIError("Duplicate key: "+i);n[i]=a.length===2?decodeURIComponent(a[1]):null}return n}function s(t,n){return t+(t.indexOf("?")!==-1?"&":"?")+(typeof n=="string"?n:e(n))}var u={encode:e,decode:l,appendToUrl:s};i.default=u}),66);
|
|
__d("isAdsExcelAddinURI",[],(function(t,n,r,o,a,i){var e=new RegExp("(^|\\.)fbaddins\\.com$","i"),l=["https"];function s(t){return t.isEmpty()&&t.toString()!=="#"||!t.getDomain()&&!t.getProtocol()?!1:l.indexOf(t.getProtocol())!==-1&&e.test(t.getDomain())}i.default=s}),66);
|
|
__d("isValidAsyncSignalURI",[],(function(t,n,r,o,a,i){var e=new RegExp("((^|\\.)instagram\\.com$)|((^|\\.)wit\\.ai$)|((^|\\.)accountkit\\.com$)","i"),l=["https"];function s(t){return t.isEmpty()&&t.toString()!=="#"||!t.getDomain()&&!t.getProtocol()?!1:l.includes(t.getProtocol())&&e.test(t.getDomain())}i.default=s}),66);
|
|
__d("AsyncSignal",["ErrorGuard","Promise","QueryString","Run","TimeSlice","TrackingConfig","URI","ZeroRewrites","getAsyncParams","isAdsExcelAddinURI","isFacebookURI","isMessengerDotComURI","isValidAsyncSignalURI","isWorkplaceDotComURI","memoize","promiseDone"],(function(t,n,r,o,a,i){var e,l,s,u;function c(e,t){this.data=t||{},this.uri=e.toString(),n("TrackingConfig").domain&&this.uri.charAt(0)==="/"&&(this.uri=n("TrackingConfig").domain+this.uri)}c.prototype.setHandler=function(e){return this.handler=e,this},c.prototype.setTimeout=function(e){return this.timeout=e,this},c.prototype.send=function(){n("TimeSlice").guard(this._send.bind(this),"AsyncSignal send",{propagationType:n("TimeSlice").PropagationType.ORPHAN})()},c.prototype._send=function(){var t=this.handler,r=this.data;r.asyncSignal=(Math.random()*1e4|0)+1;var o=n("ZeroRewrites").rewriteURI(new(e||(e=n("URI")))(this.uri)),a=n("isFacebookURI")(o)||n("isMessengerDotComURI")(o)||n("isAdsExcelAddinURI")(o)||n("isWorkplaceDotComURI")(o)||n("isValidAsyncSignalURI")(o);if(a)Object.assign(r,n("getAsyncParams")("POST"));else throw new Error("'"+this.uri+"' is an external URL, you should not send async signals to offsite links.");var i=n("QueryString").appendToUrl(this.uri,r),c;if(u||(u=new(l||(l=n("Promise")))(function(e){n("Run").onAfterLoad(e)})),c=u.then(function(){return new(l||(l=n("Promise")))(function(e,t){var n=new Image;n.onload=e,n.onerror=n.onabort=t,n.src=i})}),t){var d=!1,m=n("memoize")(function(){(s||(s=n("ErrorGuard"))).applyWithGuard(t,null,[d])});n("promiseDone")(c.then(function(){d=!0,m()},m)),this.timeout&&setTimeout(m,this.timeout)}return this},a.exports=c}),null);
|
|
__d("Banzai",["cr:7383"],(function(t,n,r,o,a,i,l){l.default=n("cr:7383")}),98);
|
|
__d("BanzaiAdapter",["cr:5866"],(function(t,n,r,o,a,i,l){l.default=n("cr:5866")}),98);
|
|
__d("BanzaiConsts",[],(function(t,n,r,o,a,i){var e={SEND:"Banzai:SEND",OK:"Banzai:OK",ERROR:"Banzai:ERROR",SHUTDOWN:"Banzai:SHUTDOWN",BASIC:"basic",VITAL:"vital",BASIC_WAIT:6e4,BASIC_WAIT_COMET:2e3,VITAL_WAIT:1e3,BATCH_SIZE_LIMIT:64e3,EXPIRY:864e5,BATCH_TIMEOUT:1e4,LAST_STORAGE_FLUSH:"banzai:last_storage_flush",STORAGE_FLUSH_INTERVAL:432e5,ENSURE_LAZY_QUEUE_FLUSH_TIMEOUT:3e4,POST_READY:0,POST_INFLIGHT:1,POST_SENT:2},l=e;i.default=l}),66);
|
|
__d("BanzaiUtils",["BanzaiConsts","FBLogger","cr:1172","cr:9985","cr:9986"],(function(t,n,r,o,a,i){"use strict";var e,l={canSend:function(r){return r[2]>=n("cr:9985")()-(e||(e=n("BanzaiConsts"))).EXPIRY},filterPost:function(r,o,a,i){if(i.overlimit||!i.sendMinimumOnePost&&r[4]+i.currentSize>(e||(e=n("BanzaiConsts"))).BATCH_SIZE_LIMIT)return!0;var t=r.__meta;if(t.status!=null&&t.status>=(e||(e=n("BanzaiConsts"))).POST_SENT||!l.canSend(r))return!1;if(t.status!=null&&t.status>=(e||(e=n("BanzaiConsts"))).POST_INFLIGHT)return!0;var s=t.compress!=null?t.compress:!0,u=(t.webSessionId!=null?t.webSessionId:"null")+(t.userID!=null?t.userID:"null")+(t.appID!=null?t.appID:"null")+(s?"compress":""),c=i.wadMap.get(u);return c||(c={app_id:t.appID,needs_compression:s,posts:[],user:t.userID,webSessionId:t.webSessionId},i.wadMap.set(u,c),o.push(c)),t.status=(e||(e=n("BanzaiConsts"))).POST_INFLIGHT,Array.isArray(c.posts)?c.posts.push(r):n("FBLogger")("banzai").mustfix("Posts were a string instead of array"),a.push(r),i.currentSize+=r[4],i.currentSize>=(e||(e=n("BanzaiConsts"))).BATCH_SIZE_LIMIT&&(i.overlimit=!0),i.keepRetryable&&!!t.retry},resetPostStatus:function(r){r.__meta.status=(e||(e=n("BanzaiConsts"))).POST_READY},retryPost:function(r,o,a){var t=r;t.__meta.status=(e||(e=n("BanzaiConsts"))).POST_READY,t[3]=(t[3]||0)+1,t.__meta.retry!==!0&&o>=400&&o<600&&a.push(r)},wrapData:function(r,o,a,i,l){var t=[r,o,a,0,l!=null?l:o?JSON.stringify(o).length:0];return t.__meta={appID:n("cr:9986").getAppID(),retry:i===!0,status:(e||(e=n("BanzaiConsts"))).POST_READY,userID:n("cr:9986").getPossiblyNonFacebookUserID(),webSessionId:n("cr:1172").getId()},t}};a.exports=l}),null);
|
|
__d("CurrentUser",["Cookie","CurrentUserInitialData"],(function(t,n,r,o,a,i){var e,l={getID:function(){return(e||(e=n("CurrentUserInitialData"))).USER_ID},getAccountID:function(){return(e||(e=n("CurrentUserInitialData"))).ACCOUNT_ID},getPossiblyNonFacebookUserID:function(){var t;return(t=(e||(e=n("CurrentUserInitialData"))).NON_FACEBOOK_USER_ID)!=null?t:this.getID()},getEIMU:function(){var t;return(t=(e||(e=n("CurrentUserInitialData"))).IG_USER_EIMU)!=null?t:"0"},getEmployeeWorkUserID:function(){return(e||(e=n("CurrentUserInitialData"))).WORK_USER_ID},getName:function(){return(e||(e=n("CurrentUserInitialData"))).NAME},getShortName:function(){return(e||(e=n("CurrentUserInitialData"))).SHORT_NAME},getAbraID:function(){var t;return(t=(e||(e=n("CurrentUserInitialData"))).ABRA_ID)!=null?t:"0"},getAbraStorageID:function(){var t;return(t=(e||(e=n("CurrentUserInitialData"))).ABRA_STORAGE_ID)!=null?t:"0"},getARID:function(){var t;return(t=(e||(e=n("CurrentUserInitialData"))).AR_ID)!=null?t:"0"},getEPOU:function(){var t;return(t=(e||(e=n("CurrentUserInitialData"))).EPOU_ID)!=null?t:"0"},getEOCPU:function(){var t;return(t=(e||(e=n("CurrentUserInitialData"))).EOCPU_ID)!=null?t:"0"},isLoggedIn:function(){return l.getPossiblyNonFacebookUserID()!=="0"},isLoggedInNow:function(){var t;return l.isLoggedIn()?(e||(e=n("CurrentUserInitialData"))).IS_INTERN_SITE||(e||(e=n("CurrentUserInitialData"))).IS_ABRA_USER||(e||(e=n("CurrentUserInitialData"))).IS_ENTERPRISE_USER||(e||(e=n("CurrentUserInitialData"))).IS_IMAGINE_USER||(e||(e=n("CurrentUserInitialData"))).IS_INSTAGRAM_USER||(e||(e=n("CurrentUserInitialData"))).IS_META_SPARK_USER||(e||(e=n("CurrentUserInitialData"))).IS_OCULUS_USER||(e||(e=n("CurrentUserInitialData"))).IS_THREADS_USER||(e||(e=n("CurrentUserInitialData"))).IS_TOGETHER_APP_USER||(e||(e=n("CurrentUserInitialData"))).IS_WORK_MESSENGER_CALL_GUEST_USER||(e||(e=n("CurrentUserInitialData"))).IS_WORK_USER||(e||(e=n("CurrentUserInitialData"))).IS_WORKROOMS_USER||(e||(e=n("CurrentUserInitialData"))).IS_ANONYMOUS_CASTING_USER||(e||(e=n("CurrentUserInitialData"))).IS_META_CAREERS_USER?!0:(e||(e=n("CurrentUserInitialData"))).ORIGINAL_USER_ID!=null&&(e||(e=n("CurrentUserInitialData"))).ORIGINAL_USER_ID!=""?(e||(e=n("CurrentUserInitialData"))).ORIGINAL_USER_ID===n("Cookie").get("c_user"):(e||(e=n("CurrentUserInitialData"))).IS_BUSINESS_DOMAIN===!0?(e||(e=n("CurrentUserInitialData"))).USER_ID==n("Cookie").get("c_user"):(e||(e=n("CurrentUserInitialData"))).USER_ID===((t=n("Cookie").get("i_user"))!=null?t:n("Cookie").get("c_user")):!1},isEmployee:function(){return!!(e||(e=n("CurrentUserInitialData"))).IS_EMPLOYEE},isContingentWorker:function(){return!!(e||(e=n("CurrentUserInitialData"))).IS_CONTINGENT},isTestUser:function(){return!!(e||(e=n("CurrentUserInitialData"))).IS_TEST_USER},hasWorkUser:function(){return!!(e||(e=n("CurrentUserInitialData"))).HAS_WORK_USER},isWorkUser:function(){return!!(e||(e=n("CurrentUserInitialData"))).IS_WORK_USER},isWorkroomsUser:function(){return!!(e||(e=n("CurrentUserInitialData"))).IS_WORKROOMS_USER},isGray:function(){return!!(e||(e=n("CurrentUserInitialData"))).IS_GRAY},isUnderage:function(){return!!(e||(e=n("CurrentUserInitialData"))).IS_UNDERAGE},isManagedMetaAccount:function(){return!!(e||(e=n("CurrentUserInitialData"))).IS_MANAGED_META_ACCOUNT},isMessengerOnlyUser:function(){return!!(e||(e=n("CurrentUserInitialData"))).IS_MESSENGER_ONLY_USER},isDeactivatedAllowedOnMessenger:function(){return!!(e||(e=n("CurrentUserInitialData"))).IS_DEACTIVATED_ALLOWED_ON_MESSENGER},isMessengerCallGuestUser:function(){return!!(e||(e=n("CurrentUserInitialData"))).IS_MESSENGER_CALL_GUEST_USER},isBusinessPersonAccount:function(){return(e||(e=n("CurrentUserInitialData"))).IS_BUSINESS_PERSON_ACCOUNT},hasSecondaryBusinessPerson:function(){return(e||(e=n("CurrentUserInitialData"))).HAS_SECONDARY_BUSINESS_PERSON},getAppID:function(){return(e||(e=n("CurrentUserInitialData"))).APP_ID},isFacebookWorkAccount:function(){return(e||(e=n("CurrentUserInitialData"))).IS_FACEBOOK_WORK_ACCOUNT},isInstagramBusinessPerson:function(){return(e||(e=n("CurrentUserInitialData"))).IS_INSTAGRAM_BUSINESS_PERSON},isWabaBusinessPerson:function(){return(e||(e=n("CurrentUserInitialData"))).IS_WABA_BUSINESS_PERSON},isBusinessDomain:function(){return(e||(e=n("CurrentUserInitialData"))).IS_BUSINESS_DOMAIN},getPageMessagingMailboxId:function(){var t;return String((t=(e||(e=n("CurrentUserInitialData"))).PAGE_MESSAGING_MAILBOX_ID)!=null?t:"0")}};a.exports=l}),null);
|
|
__d("cancelIdleCallback",["cr:7384"],(function(t,n,r,o,a,i,l){l.default=n("cr:7384")}),98);
|
|
__d("SetIdleTimeoutAcrossTransitions",["NavigationMetrics","cancelIdleCallback","clearTimeout","nullthrows","requestIdleCallbackAcrossTransitions","setTimeoutAcrossTransitions"],(function(t,n,r,o,a,i,l){"use strict";var e=!1,s=new Map;function u(t,n){if(e){var o=r("setTimeoutAcrossTransitions")(function(){var e=r("requestIdleCallbackAcrossTransitions")(function(){t(),s.delete(e)});s.set(o,e)},n);return o}else return r("setTimeoutAcrossTransitions")(t,n)}function c(e){r("clearTimeout")(e),s.has(e)&&(r("cancelIdleCallback")(r("nullthrows")(s.get(e))),s.delete(e))}r("NavigationMetrics").addRetroactiveListener(r("NavigationMetrics").Events.EVENT_OCCURRED,function(n,r){r.event==="all_pagelets_loaded"&&(e=!!t.requestIdleCallback)}),l.start=u,l.clear=c}),98);
|
|
__d("BanzaiStorage",["BanzaiConsts","BanzaiUtils","CurrentUser","SetIdleTimeoutAcrossTransitions","WebSession","WebStorage","WebStorageMutex","cr:8958","isInIframe","performanceAbsoluteNow"],(function(t,n,r,o,a,i){"use strict";var e,l,s,u="bz:",c=n("isInIframe")(),d,m=!1,p=null;function _(){var e="check_quota";try{var t=f();return t?(t.setItem(e,e),t.removeItem(e),!0):!1}catch(e){return!1}}function f(){return m||(m=!0,d=(e||(e=n("WebStorage"))).getLocalStorage()),d}var g={flush:function(r){if(!c){var t=f();if(t){p==null&&(p=parseInt(t.getItem((l||(l=n("BanzaiConsts"))).LAST_STORAGE_FLUSH),10));var o=p&&(s||(s=n("performanceAbsoluteNow")))()-p>=(l||(l=n("BanzaiConsts"))).STORAGE_FLUSH_INTERVAL;o&&r(),(o||p==null||p===0||Number.isNaN(p))&&(p=(s||(s=n("performanceAbsoluteNow")))(),(e||(e=n("WebStorage"))).setItemGuarded(t,(l||(l=n("BanzaiConsts"))).LAST_STORAGE_FLUSH,p.toString()))}}},restore:function(t){if(!c){var e=f();if(e){var r=function(o){for(var r=[],a=0;a<e.length;a++){var i=e.key(a);typeof i=="string"&&i.indexOf(u)===0&&i.indexOf("bz:__")!==0&&r.push(i)}r.forEach(function(r){var o=e.getItem(r);if(e.removeItem(r),!(o==null||o==="")){var a=n("cr:8958").parse(o);a.forEach(function(e){if(e){var r=e.__meta=e.pop(),o=n("BanzaiUtils").canSend(e);if(o){var a=n("CurrentUser").getPossiblyNonFacebookUserID();(r.userID===a||a==="0")&&(n("BanzaiUtils").resetPostStatus(e),t(e))}}})}}),o&&o.unlock()};_()?new(n("WebStorageMutex"))("banzai").lock(r):n("SetIdleTimeoutAcrossTransitions").start(r,0)}}},store:function(r){if(!c){var t=f(),o=r.filter(function(e){return e.__meta.status!==(l||(l=n("BanzaiConsts"))).POST_SENT});!t||o.length<=0||(o=o.map(function(e){return[e[0],e[1],e[2],e[3]||0,e[4],e.__meta]}),r.splice(0,r.length),(e||(e=n("WebStorage"))).setItemGuarded(t,u+n("WebSession").getId()+"."+(s||(s=n("performanceAbsoluteNow")))(),n("cr:8958").stringify(o)))}}};a.exports=g}),null);
|
|
__d("once",[],(function(t,n,r,o,a,i){"use strict";function e(e){var t=l(e);for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function l(e){var t=e,n,r=function(){if(t){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];n=t.apply(this,r),t=null}return n};return r}i.default=e}),66);
|
|
__d("BanzaiAdapterWWW",["invariant","Arbiter","BanzaiConfig","BanzaiConsts","BanzaiStorage","ExecutionEnvironment","HasteBitMapName","QueryString","Run","TimeSlice","URI","UserAgent","ZeroRewrites","getAsyncHeaders","getAsyncParams","objectValues","once"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=[],m=new(r("Arbiter")),p="/ajax/bz",_="POST",f={config:r("BanzaiConfig"),useBeacon:!0,getEndPointUrl:function(t){var e=r("getAsyncParams")(_);r("objectValues")(r("HasteBitMapName")).forEach(function(t){return delete e[t]});var n=r("QueryString").appendToUrl(p,e);return n.length<=2e3||s(0,21850,n),n},getStorage:function(){return r("BanzaiStorage")},inform:function(t){m.inform(t)},subscribe:function(t,n){return m.subscribe(t,n)},wrapInTimeSlice:function(t,n){return r("TimeSlice").guard(function(){t()},n,{propagationType:r("TimeSlice").PropagationType.ORPHAN})},cleanup:function(){var e=d;d=[],e.forEach(function(e){e.readyState<4&&e.abort()})},preferredCompressionMethod:r("once")(function(){return"snappy_base64"}),readyToSend:function(){return r("UserAgent").isBrowser("IE <= 8")||navigator.onLine},send:function(n,a,i,l){var t=f.getEndPointUrl(!1),s=o("ZeroRewrites").rewriteURI(new(e||(e=r("URI")))(t));(u||(u=r("ExecutionEnvironment"))).isInWorker&&(s=s.getQualifiedURI());var m=o("ZeroRewrites").getTransportBuilderForURI(s)();m.open(_,s.toString(),!0),Object.entries(r("getAsyncHeaders")(s)).forEach(function(e){var t=e[0],n=e[1];m.setRequestHeader(t,n)}),m.onreadystatechange=function(){if(m.readyState>=4){var e=d.indexOf(m);e>=0&&d.splice(e,1);var t;try{t=m.status}catch(e){t=0}t==200?(a&&a(),l||f.inform((c||(c=r("BanzaiConsts"))).OK)):(i&&i(t),l||f.inform((c||(c=r("BanzaiConsts"))).ERROR))}},d.push(m),m.send(n,!1)},setHooks:function(t){},setUnloadHook:function(t){o("Run").onAfterUnload(t._unload)},onUnload:function(t){o("Run").onAfterUnload(t)},isOkToSendViaBeacon:function(){return!0}},g=f;l.default=g}),98);
|
|
/**
|
|
* License: https://www.facebook.com/legal/license/WRsJ32R7YJG/
|
|
*/
|
|
__d("SnappyCompress",[],(function(t,n,r,o,a,i){"use strict";function e(){return typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node!="undefined"}function l(t){return t instanceof Uint8Array&&(!e()||!Buffer.isBuffer(t))}function s(e){return e instanceof ArrayBuffer}function u(t){return e()?Buffer.isBuffer(t):!1}var c="Argument compressed must be type of ArrayBuffer, Buffer, or Uint8Array";function d(e){if(!l(e)&&!s(e)&&!u(e))throw new TypeError(c);var t=!1,n=!1;l(e)?t=!0:s(e)&&(n=!0,e=new Uint8Array(e));var r=new D(e),o=r.readUncompressedLength();if(o===-1)throw new Error("Invalid Snappy bitstream");var a,i;if(t){if(a=new Uint8Array(o),!r.uncompressToBuffer(a))throw new Error("Invalid Snappy bitstream")}else if(n){if(a=new ArrayBuffer(o),i=new Uint8Array(a),!r.uncompressToBuffer(i))throw new Error("Invalid Snappy bitstream")}else if(a=Buffer.alloc(o),!r.uncompressToBuffer(a))throw new Error("Invalid Snappy bitstream");return a}function m(e){if(!l(e)&&!s(e)&&!u(e))throw new TypeError(c);var t=!1,n=!1;l(e)?t=!0:s(e)&&(n=!0,e=new Uint8Array(e));var r=new E(e),o=r.maxCompressedLength(),a,i,d;if(t?(a=new Uint8Array(o),d=r.compressToBuffer(a)):n?(a=new ArrayBuffer(o),i=new Uint8Array(a),d=r.compressToBuffer(i)):(a=Buffer.alloc(o),d=r.compressToBuffer(a)),!a.slice){var m=new Uint8Array(Array.prototype.slice.call(a,0,d));if(t)return m;if(n)return m.buffer;throw new Error("not implemented")}return a.slice(0,d)}var p=16,_=1<<p,f=14,g=new Array(f+1);function h(e,t){return e*506832829>>>t}function y(e,t){return e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24)}function C(e,t,n){return e[t]===e[n]&&e[t+1]===e[n+1]&&e[t+2]===e[n+2]&&e[t+3]===e[n+3]}function b(e,t,n,r,o){return n<=60?(r[o]=n-1<<2,o+=1):n<256?(r[o]=240,r[o+1]=n-1,o+=2):(r[o]=244,r[o+1]=n-1&255,r[o+2]=n-1>>>8,o+=3),I(e,t,r,o,n),o+n}function v(e,t,n,r){return r<12&&n<2048?(e[t]=1+(r-4<<2)+(n>>>8<<5),e[t+1]=n&255,t+2):(e[t]=2+(r-1<<2),e[t+1]=n&255,e[t+2]=n>>>8,t+3)}function S(e,t,n,r){for(;r>=68;)t=v(e,t,n,64),r-=64;return r>64&&(t=v(e,t,n,60),r-=60),v(e,t,n,r)}function R(e,t,n,r,o){for(var a=1;1<<a<=n&&a<=f;)a+=1;a-=1;var i=32-a;typeof g[a]=="undefined"&&(g[a]=new Uint16Array(1<<a));var l=g[a],s;for(s=0;s<l.length;s++)l[s]=0;var u=t+n,c,d=t,m=t,p,_,v,R,L,E,k,I,T,D,x,$=!0,P=15;if(n>=P)for(c=u-P,t+=1,_=h(y(e,t),i);$;){L=32,v=t;do{if(t=v,p=_,E=L>>>5,L+=1,v=t+E,t>c){$=!1;break}_=h(y(e,v),i),R=d+l[p],l[p]=t-d}while(!C(e,t,R));if(!$)break;o=b(e,m,t-m,r,o);do{for(k=t,I=4;t+I<u&&e[t+I]===e[R+I];)I+=1;if(t+=I,T=k-R,o=S(r,o,T,I),m=t,t>=c){$=!1;break}D=h(y(e,t-1),i),l[D]=t-1-d,x=h(y(e,t),i),R=d+l[x],l[x]=t-d}while(C(e,t,R));if(!$)break;t+=1,_=h(y(e,t),i)}return m<u&&(o=b(e,m,u-m,r,o)),o}function L(e,t,n){do t[n]=e&127,e=e>>>7,e>0&&(t[n]+=128),n+=1;while(e>0);return n}function E(e){this.array=e}E.prototype.maxCompressedLength=function(){var e=this.array.length;return 32+e+Math.floor(e/6)},E.prototype.compressToBuffer=function(e){var t=this.array,n=t.length,r=0,o=0,a;for(o=L(n,e,o);r<n;)a=Math.min(n-r,_),o=R(t,r,a,e,o),r+=a;return o};var k=[0,255,65535,16777215,4294967295];function I(e,t,n,r,o){var a;for(a=0;a<o;a++)n[r+a]=e[t+a]}function T(e,t,n,r){var o;for(o=0;o<r;o++)e[t+o]=e[t-n+o]}function D(e){this.array=e,this.pos=0}D.prototype.readUncompressedLength=function(){for(var e=0,t=0,n,r;t<32&&this.pos<this.array.length;){if(n=this.array[this.pos],this.pos+=1,r=n&127,r<<t>>>t!==r)return-1;if(e|=r<<t,n<128)return e;t+=7}return-1},D.prototype.uncompressToBuffer=function(e){for(var t=this.array,n=t.length,r=this.pos,o=0,a,i,l,s;r<t.length;)if(a=t[r],r+=1,(a&3)===0){if(i=(a>>>2)+1,i>60){if(r+3>=n)return!1;l=i-60,i=t[r]+(t[r+1]<<8)+(t[r+2]<<16)+(t[r+3]<<24),i=(i&k[l])+1,r+=l}if(r+i>n)return!1;I(t,r,e,o,i),r+=i,o+=i}else{switch(a&3){case 1:i=(a>>>2&7)+4,s=t[r]+(a>>>5<<8),r+=1;break;case 2:if(r+1>=n)return!1;i=(a>>>2)+1,s=t[r]+(t[r+1]<<8),r+=2;break;case 3:if(r+3>=n)return!1;i=(a>>>2)+1,s=t[r]+(t[r+1]<<8)+(t[r+2]<<16)+(t[r+3]<<24),r+=4;break;default:break}if(s===0||s>o)return!1;T(e,o,s,i),o+=i}return!0},a.exports.uncompress=d,a.exports.compress=m}),null);
|
|
__d("SnappyCompressUtil",["SnappyCompress"],(function(t,n,r,o,a,i,l){"use strict";var e=t.Uint8Array,s=t.btoa,u=t.TextEncoder;function c(e){if(e==null||s==null)return null;var t=null;try{t=r("SnappyCompress").compress(e)}catch(e){return null}var n=Array.from(t,function(e){return String.fromCharCode(e)}).join("");return s(n)}var d={compressUint8ArrayToSnappy:c,compressStringToSnappy:function(r){if(e==null||s==null)return null;for(var n=new t.Uint8Array(r.length),o=0;o<r.length;o++){var a=r.charCodeAt(o);if(a>127)return null;n[o]=a}return d.compressUint8ArrayToSnappy(n)},compressStringToSnappyBinary:function(n){if(e==null)return null;var t=null;if(u!=null)t=new u().encode(n);else{t=new e(n.length);for(var o=0;o<n.length;o++){var a=n.charCodeAt(o);if(a>127)return null;t[o]=a}}var i=null;try{i=r("SnappyCompress").compress(t)}catch(e){return null}return i}};i.exports=d}),34);
|
|
__d("BanzaiCompressionUtils",["FBLogger","Promise","SnappyCompressUtil","once","performanceNow"],(function(t,n,r,o,a,i){"use strict";var e,l,s=n("once")(function(){if(t.CompressionStream==null||t.Response==null)return!1;try{var e=new t.CompressionStream("deflate")}catch(e){return!1}return!0}),u={compressWad:function(r,o){if(r.needs_compression!==!0){delete r.needs_compression;return}if(o==="deflate"){u.compressWad(r,"snappy");return}var t=(e||(e=n("performanceNow")))(),a=JSON.stringify(r.posts),i;switch(o){case"snappy":i=n("SnappyCompressUtil").compressStringToSnappyBinary(a);break;case"snappy_base64":i=n("SnappyCompressUtil").compressStringToSnappy(a);break;default:break}i!=null&&i.length<a.length?(r.posts=i,r.compression=o,r.snappy_ms=Math.ceil((e||(e=n("performanceNow")))()-t),r.snappy_ms<0&&n("FBLogger")("BanzaiCompressionUtils").warn("Expected positive snappy_ms but got %s",r.snappy_ms)):r.compression="",delete r.needs_compression},compressWadAsync:function(o,a){if(a!=="deflate")return u.compressWad(o,"snappy"),(l||(l=n("Promise"))).resolve();if(!s())return u.compressWadAsync(o,"snappy");var r=(e||(e=n("performanceNow")))(),i=JSON.stringify(o.posts),c=new Response(i).body;if(!c)return o.compression="",delete o.needs_compression,(l||(l=n("Promise"))).resolve();var d=c.pipeThrough(new t.CompressionStream("deflate"));return new Response(d).arrayBuffer().then(function(t){t.byteLength<i.length?(o.posts=new Uint8Array(t),o.compression=a,o.snappy_ms=Math.ceil((e||(e=n("performanceNow")))()-r),o.snappy_ms<0&&n("FBLogger")("BanzaiCompressionUtils").warn("Expected positive snappy_ms but got %s",o.snappy_ms)):o.compression="",delete o.needs_compression}).catch(function(){o.compression="",delete o.needs_compression})},outOfBandsPosts:function(t){var e=0,n={};for(var r of t){var o=r.compression==="snappy"||r.compression==="deflate";if(o){var a=new Blob([r.posts],{type:"application/octet-stream"});r.posts=String(e),n["post_"+String(e)]=a,e++}}return n}};a.exports=u}),null);
|
|
__d("BanzaiBase",["BanzaiCompressionUtils","BanzaiConsts","BanzaiLazyQueue","BanzaiUtils","ErrorGuard","ExecutionEnvironment","FBLogger","Run","cr:1172","cr:2037","cr:3724","cr:9985","cr:9986","cr:9987","cr:9988","getErrorSafe","setIntervalAcrossTransitions"],(function(t,n,r,o,a,i){var e,l,s,u,c,d=[],m=null,p={_clearPostBuffer:function(){d=[]},_flushLazyQueue:function(){n("BanzaiLazyQueue").flushQueue().forEach(function(e){return p.post.apply(p,e)})},_gatherWadsAndPostsFromBuffer:function(t,r,o,a,i){var e={currentSize:0,keepRetryable:o,overlimit:!1,sendMinimumOnePost:i,wadMap:new Map},l=a.filter(function(o,a){return n("BanzaiUtils").filterPost(o,t,r,e)});return e.overlimit&&l.length&&p._schedule(0),l},_getEventTime:function(){return n("cr:9985")()},_getWebSessionId:function(){return n("cr:1172").getId()},_getPostBuffer:function(){return d},_getUserId:function(){return n("cr:9986").getPossiblyNonFacebookUserID()},_getAppId:function(){return n("cr:9986").getAppID()},_initialize:function(){if((e||(e=n("ExecutionEnvironment"))).canUseDOM){var t=p.adapter.useBeacon,r=p.isEnabled("base_flush_lazy_queue");if(r&&n("setIntervalAcrossTransitions")(function(){return p._flushLazyQueue()},3e4),t&&n("cr:9988").isSupported()){var o;(o=n("cr:9988")).addListener(o.HIDDEN,function(){r&&p._flushLazyQueue(),p._getPostBuffer().length>0&&(p._tryToSendViaBeacon()||p._store())}),o.addListener(o.VISIBLE,function(){r&&p._flushLazyQueue(),p._tryToSendViaBeacon()||p._restore()})}else p.adapter.setHooks(p);p.adapter.setUnloadHook(p),n("cr:9987").addListener(n("cr:9987").Events.NAVIGATION_DONE,function(e,t){t.pageType==="normal"&&(p._restore(),n("cr:9987").removeCurrentListener())}),r&&n("Run").onBeforeUnload(function(){p._flushLazyQueue()})}},_sendBeacon:function(n,r){return t.navigator.sendBeacon(n,r)},_prepForTransit:function(t){var e=new FormData;e.append("ts",String(Date.now()));var r=n("BanzaiCompressionUtils").outOfBandsPosts(t);return Object.keys(r).forEach(function(t){e.append(t,r[t])}),e.append("q",JSON.stringify(t)),e},_prepWadForTransit:function(t){n("BanzaiCompressionUtils").compressWad(t,n("cr:2037").preferredCompressionMethod())},_processCallbacksAndSendViaBeacon:function(){var e=[],t=[],r=[];if(p._gatherWadsAndPostsFromBuffer(t,r,!0,e,!1),t.length>0){t[0].send_method="beacon",t.map(p._prepWadForTransit);var o=p._prepForTransit(t),a=n("cr:2037").getEndPointUrl(!0),i=p._sendBeacon(a,o);i||n("FBLogger")("banzai").warn("Error sending beacon")}},_restore:function(){var e=n("cr:2037").getStorage(),t=function(t){d.push(t)};(l||(l=n("ErrorGuard"))).applyWithGuard(e.restore,e,[t]),p._schedule(n("cr:2037").config.RESTORE_WAIT||(s||(s=n("BanzaiConsts"))).VITAL_WAIT)},_schedule:function(t){var e=p._getEventTime()+t;return!c||e<c?(c=e,n("cr:3724").clear(u),u=n("cr:3724").start(n("cr:2037").wrapInTimeSlice(p._sendWithCallbacks,"Banzai.send"),t),!0):!1},_sendWithCallbacks:function(t,r){if(c=null,p._schedule(p.BASIC.delay),!n("cr:2037").readyToSend()){r&&r();return}var e=n("cr:2037").getStorage(),o=function(){p._restore()};(l||(l=n("ErrorGuard"))).applyWithGuard(e.flush,e,[o]),n("cr:2037").inform((s||(s=n("BanzaiConsts"))).SEND);var a=[],i=[];if(d=p._gatherWadsAndPostsFromBuffer(a,i,!0,d,!0),a.length<=0){n("cr:2037").inform((s||(s=n("BanzaiConsts"))).OK),t&&t();return}a[0].trigger=m,m=null,a[0].send_method="ajax",a.map(p._prepWadForTransit),n("cr:2037").send(p._prepForTransit(a),function(){i.forEach(function(e){var t=e;t.__meta.status=(s||(s=n("BanzaiConsts"))).POST_SENT,t.__meta.callback&&t.__meta.callback()}),t&&t()},function(e){i.forEach(function(t){n("BanzaiUtils").retryPost(t,e,d)}),r&&r()})},_store:function(){var e=n("cr:2037").getStorage();(l||(l=n("ErrorGuard"))).applyWithGuard(e.store,e,[d])},_testState:function(){return{postBuffer:d,triggerRoute:m}},_tryToSendViaBeacon:function(){if(!(navigator&&navigator.sendBeacon&&n("cr:2037").isOkToSendViaBeacon()))return!1;var e=[],t=[];if(d=p._gatherWadsAndPostsFromBuffer(e,t,!1,d,!1),e.length<=0)return!1;e[0].send_method="beacon",e.map(p._prepWadForTransit);var r=p._prepForTransit(e),o=n("cr:2037").getEndPointUrl(!0),a=p._sendBeacon(o,r);return a?!0:(t.forEach(function(e){d.push(e)}),!1)},_unload:function(){n("cr:2037").config.disabled||(p._flushLazyQueue(),navigator&&navigator.sendBeacon&&n("cr:2037").isOkToSendViaBeacon()&&p._processCallbacksAndSendViaBeacon(),n("cr:2037").cleanup(),n("cr:2037").inform((s||(s=n("BanzaiConsts"))).SHUTDOWN),d.length>0&&(!p.adapter.useBeacon||!p._tryToSendViaBeacon())&&p._store())},BASIC:{delay:n("cr:2037").config.MAX_WAIT||(s||(s=n("BanzaiConsts"))).BASIC_WAIT},BASIC_WAIT:(s||(s=n("BanzaiConsts"))).BASIC_WAIT,ERROR:s.ERROR,OK:s.OK,SEND:s.SEND,SHUTDOWN:s.SHUTDOWN,VITAL:{delay:n("cr:2037").config.MIN_WAIT||(s||(s=n("BanzaiConsts"))).VITAL_WAIT},VITAL_WAIT:s.VITAL_WAIT,adapter:n("cr:2037"),canUseNavigatorBeacon:function(){return!!(navigator&&navigator.sendBeacon&&n("cr:2037").isOkToSendViaBeacon())},flush:function(t,r){n("cr:3724").clear(u),p._sendWithCallbacks(t,r)},isEnabled:function(t){return!!(n("cr:2037").config.gks&&n("cr:2037").config.gks[t]&&!n("cr:2037").config.disabled)},post:function(r,o,a){r||n("FBLogger")("banzai").mustfix("Banzai.post called without specifying a route"),p._flushLazyQueue();var t=r.split(":");if(!((n("cr:2037").config.known_routes||[]).indexOf(t[0])===-1&&(n("cr:2037").config.should_log_unknown_routes===!0&&n("FBLogger")("banzai").blameToPreviousFrame().mustfix("Attempted to post to invalid Banzai route '"+r+"'. This call site should be cleaned up."),n("cr:2037").config.should_drop_unknown_routes===!0))){var i="";try{var l;i=(l=JSON.stringify(o))!=null?l:""}catch(e){var u=n("getErrorSafe")(e);n("FBLogger")("banzai").catching(u).addToCategoryKey(r).mustfix("Could not JSON.stringify banzai data for route %s",r);return}var c=a==null?void 0:a.retry;if(!n("cr:2037").config.disabled&&!(!(e||(e=n("ExecutionEnvironment"))).canUseDOM&&!(e||(e=n("ExecutionEnvironment"))).isInWorker)){var _=n("cr:2037").config.blacklist;if(!(_&&_.indexOf&&typeof _.indexOf=="function"&&_.indexOf(r)!==-1)){var f=i.length,g=n("BanzaiUtils").wrapData(r,o,p._getEventTime(),c,f),h=g;a!=null&&a.callback&&(h.__meta.callback=a==null?void 0:a.callback),(a==null?void 0:a.compress)!=null&&(h.__meta.compress=a==null?void 0:a.compress);var y=a==null?void 0:a.delay;if(y==null&&(y=(s||(s=n("BanzaiConsts"))).BASIC_WAIT),a!=null&&a.signal){h.__meta.status=(s||(s=n("BanzaiConsts"))).POST_INFLIGHT;var C=[{user:p._getUserId(),webSessionId:p._getWebSessionId(),app_id:p._getAppId(),posts:[g],trigger:r}];if(n("cr:2037").send(p._prepForTransit(C),function(){h.__meta.status=(s||(s=n("BanzaiConsts"))).POST_SENT,h.__meta.callback&&h.__meta.callback()},function(e){n("BanzaiUtils").retryPost(g,e,d)},!0),!c)return}d.push(g),(p._schedule(y)||!m)&&(m=r)}}}},subscribe:n("cr:2037").subscribe};p._initialize();var _=p;i.default=_}),66);
|
|
__d("BanzaiWWW",["cr:1642797"],(function(t,n,r,o,a,i,l){l.default=n("cr:1642797")}),98);
|
|
__d("Base64",[],(function(t,n,r,o,a,i){"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function l(t){var n=t.charCodeAt(0)<<16|t.charCodeAt(1)<<8|t.charCodeAt(2);return String.fromCharCode(e.charCodeAt(n>>>18),e.charCodeAt(n>>>12&63),e.charCodeAt(n>>>6&63),e.charCodeAt(n&63))}var s=">___?456789:;<=_______\0\x07\b \n\v\f\r______\x1B !\"#$%&'()*+,-./0123";function u(e){var t=s.charCodeAt(e.charCodeAt(0)-43)<<18|s.charCodeAt(e.charCodeAt(1)-43)<<12|s.charCodeAt(e.charCodeAt(2)-43)<<6|s.charCodeAt(e.charCodeAt(3)-43);return String.fromCharCode(t>>>16,t>>>8&255,t&255)}var c={encode:function(t){var e=unescape(encodeURI(t)),n=(e.length+2)%3;return e=(e+"\0\0".slice(n)).replace(/[\s\S]{3}/g,l),e.slice(0,e.length+n-2)+"==".slice(n)},decode:function(t){var e=t.replace(/[^A-Za-z0-9+\/]/g,""),n=e.length+3&3;e=(e+"AAA".slice(n)).replace(/..../g,u),e=e.slice(0,e.length+n-3);try{return decodeURIComponent(escape(e))}catch(e){throw new Error("Not valid UTF-8")}},encodeObject:function(t){return c.encode(JSON.stringify(t))},decodeObject:function(t){return JSON.parse(c.decode(t))},encodeNums:function(n){return String.fromCharCode.apply(String,n.map(function(t){return e.charCodeAt((t|-(t>63?1:0))&-(t>0?1:0)&63)}))}},d=c;i.default=d}),66);
|
|
__d("camelize",[],(function(t,n,r,o,a,i){var e=/-(.)/g;function l(t){return t.replace(e,function(e,t){return t.toUpperCase()})}i.default=l}),66);
|
|
__d("getOpacityStyleName",[],(function(t,n,r,o,a,i){var e=!1,l=null;function s(){if(!e){if(document.body&&"opacity"in document.body.style)l="opacity";else{var t=document.createElement("div");t.style.filter="alpha(opacity=100)",t.style.filter&&(l="filter")}e=!0}return l}i.default=s}),66);
|
|
__d("hyphenate",[],(function(t,n,r,o,a,i){var e=/([A-Z])/g;function l(t){return t.replace(e,"-$1").toLowerCase()}i.default=l}),66);
|
|
__d("getStyleProperty",["camelize","hyphenate"],(function(t,n,r,o,a,i,l){function e(e){return e==null?"":String(e)}function s(t,n){var o;if(window.getComputedStyle&&(o=window.getComputedStyle(t,null),o))return e(o.getPropertyValue(r("hyphenate")(n)));if(document.defaultView&&document.defaultView.getComputedStyle){if(o=document.defaultView.getComputedStyle(t,null),o)return e(o.getPropertyValue(r("hyphenate")(n)));if(n==="display")return"none"}return t.currentStyle?e(n==="float"?t.currentStyle.cssFloat||t.currentStyle.styleFloat:t.currentStyle[r("camelize")(n)]):e(t.style&&t.style[r("camelize")(n)])}l.default=s}),98);
|
|
__d("StyleCore",["invariant","camelize","containsNode","err","getOpacityStyleName","getStyleProperty","hyphenate"],(function(t,n,r,o,a,i,l,s){function e(e,t){var n=_.get(e,t);return n==="auto"||n==="scroll"}var u=new RegExp("\\s*([^\\s:]+)\\s*:\\s*([^;('\"]*(?:(?:\\([^)]*\\)|\"[^\"]*\"|'[^']*')[^;(?:'\"]*)*)(?:;|$)","g");function c(e){var t={};return e.replace(u,function(e,n,r){return t[n]=r,r}),t}function d(e){var t="";for(var n in e)e[n]&&(t+=n+":"+e[n]+";");return t}function m(e){return e!==""?"alpha(opacity="+e*100+")":""}function p(e,t,n){switch(r("hyphenate")(t)){case"font-weight":case"line-height":case"opacity":case"z-index":case"animation-iteration-count":case"-webkit-animation-iteration-count":break;case"width":case"height":var o=parseInt(n,10)<0;!o||s(0,11849,e,t,n);default:isNaN(n)||!n||n==="0"||s(0,11850,e,t,n,n+"px");break}}var _={set:function(t,n,o){if(p("Style.set",n,o),t!=null){var e=t.style;switch(n){case"opacity":r("getOpacityStyleName")()==="filter"?e.filter=m(o):e.opacity=o;break;case"float":e.cssFloat=e.styleFloat=o||"";break;default:try{e[r("camelize")(n)]=o}catch(e){throw r("err")('Style.set: "%s" argument is invalid: %s',n,o)}}}},apply:function(t,n){var e;for(e in n)p("Style.apply",e,n[e]);"opacity"in n&&r("getOpacityStyleName")()==="filter"&&(n.filter=m(n.opacity),delete n.opacity);var o=c(t.style.cssText);for(e in n){var a=n[e];delete n[e];var i=r("hyphenate")(e);for(var l in o)(l===i||l.indexOf(i+"-")===0)&&delete o[l];n[i]=a}Object.assign(o,n),t.style.cssText=d(o)},get:r("getStyleProperty"),getFloat:function(t,n){return parseFloat(_.get(t,n),10)},getOpacity:function(t){if(r("getOpacityStyleName")()==="filter"){var e=_.get(t,"filter");if(e){var n=/(\d+(?:\.\d+)?)/.exec(e);if(n)return parseFloat(n.pop())/100}}return _.getFloat(t,"opacity")||1},isFixed:function(t){for(;r("containsNode")(document.body,t);){if(_.get(t,"position")==="fixed")return!0;t=t.parentNode}return!1},getScrollParent:function(n){if(!n)return null;for(;n&&n!==document.body;){if(e(n,"overflow")||e(n,"overflowY")||e(n,"overflowX"))return n;n=n.parentNode}return window}},f=_;l.default=f}),98);
|
|
__d("Style",["$","StyleCore"],(function(t,n,r,o,a,i,l){var e=babelHelpers.extends({},r("StyleCore"),{get:function(t,n){return typeof t=="string"&&(t=r("$")(t)),r("StyleCore").get(t,n)},getFloat:function(t,n){return typeof t=="string"&&(t=r("$")(t)),r("StyleCore").getFloat(t,n)}}),s=e;l.default=s}),98);
|
|
__d("DOMDimensions",["Style","getDocumentScrollElement"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t=e?e.offsetHeight:0,n=e?e.offsetWidth:0;return{height:t,width:n}}function s(e){var t=r("getDocumentScrollElement")(e),n=t.scrollWidth||0,o=t.scrollHeight||0;return{width:n,height:o}}function u(e,t,n,o,a){var i;switch(t){case"left":case"right":case"top":case"bottom":i=[t];break;case"width":i=["left","right"];break;case"height":i=["top","bottom"];break;default:throw Error("Invalid plane: "+t)}var l=function(n,o){for(var t=0,a=0;a<i.length;a++)t+=parseFloat(r("Style").get(e,n+"-"+i[a]+o))||0;return t};return(n?l("padding",""):0)+(o?l("border","-width"):0)+(a?l("margin",""):0)}l.getElementDimensions=e,l.getDocumentDimensions=s,l.measureElementBox=u}),98);
|
|
__d("FalcoAppUniverse",["$InternalEnum"],(function(t,n,r,o,a,i){var e=n("$InternalEnum")({FACEBOOK:1,INSTAGRAM:2,OCULUS:3,WHATSAPP:4}),l=e;i.default=l}),66);
|
|
__d("Queue",[],(function(t,n,r,o,a,i){var e={},l=(function(){function t(e){this._timeout=null,this._interval=(e==null?void 0:e.interval)||0,this._processor=e==null?void 0:e.processor,this._queue=[],this._stopped=!0}var n=t.prototype;return n._dispatch=function(t){var e=this;if(t===void 0&&(t=!1),!(this._stopped||this._queue.length===0)){var n=this._processor;if(n==null)throw this._stopped=!0,new Error("No processor available");var r=this._interval;if(r!=null)n.call(this,this._queue.shift()),this._timeout=setTimeout(function(){return e._dispatch()},r);else for(;this._queue.length;)n.call(this,this._queue.shift())}},n.enqueue=function(t){return this._processor&&!this._stopped?this._processor(t):this._queue.push(t),this},n.start=function(t){return t&&(this._processor=t),this._stopped=!1,this._dispatch(),this},n.isStarted=function(){return!this._stopped},n.dispatch=function(){this._dispatch(!0)},n.stop=function(t){return this._stopped=!0,t&&this._timeout!=null&&clearTimeout(this._timeout),this},n.merge=function(t,n){if(n){var e;(e=this._queue).unshift.apply(e,t._queue)}else{var r;(r=this._queue).push.apply(r,t._queue)}return t._queue=[],this._dispatch(),this},n.getLength=function(){return this._queue.length},t.get=function(r,o){var n;return r in e?n=e[r]:n=e[r]=new t(o),n},t.exists=function(n){return n in e},t.remove=function(n){return delete e[n]},t})();i.default=l}),66);
|
|
__d("RDFDRequireDeferredReference",["RequireDeferredReference"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(e){function t(){return e.apply(this,arguments)||this}return babelHelpers.inheritsLoose(t,e),t})(r("RequireDeferredReference"));l.default=e}),98);
|
|
__d("requireDeferredForDisplay",["RDFDRequireDeferredReference"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t=new(r("RDFDRequireDeferredReference"))(e);return t.setRequireDeferredForDisplay(!0),t}l.default=e}),98);
|
|
__d("uuidv4",[],(function(t,n,r,o,a,i){"use strict";function e(){var e,t=(e=self)==null||(e=e.crypto)==null?void 0:e.randomUUID;return typeof t=="function"?self.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,n=e==="x"?t:t&3|8;return n.toString(16)})}i.default=e}),66);
|
|
__d("FalcoLoggerTransports",["AnalyticsCoreData","Banzai","ExecutionEnvironment","FalcoAppUniverse","FalcoUtils","ODS","PersistedQueue","Queue","WebSession","performanceAbsoluteNow","promiseDone","requireDeferredForDisplay","uuidv4"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c,d,m,p,_,f=r("requireDeferredForDisplay")("TransportSelectingClientSingletonConditional").__setRef("FalcoLoggerTransports"),g=5*1024,h=(e=(m||(m=r("AnalyticsCoreData"))).max_delay_br_queue)!=null?e:60*1e3,y=(s=(m||(m=r("AnalyticsCoreData"))).max_delay_br_queue_immediate)!=null?s:1e3,C=(u=(m||(m=r("AnalyticsCoreData"))).max_delay_br_init_not_complete)!=null?u:1e3,b="falco:",v=new(r("Queue")),S=5e3,R=6e4,L=r("uuidv4")(),E="ods_web_batch",k=new Map,I=new Set,T=new Set,D=o("FalcoUtils").getTaggedBitmap(38),x=(c=r("FalcoAppUniverse").cast((m||(m=r("AnalyticsCoreData"))).app_universe))!=null?c:1,$=[],P=0,N=null,M=!1,w=!1,A=!1,F=!0,O=!1,B=!1,W=Date.now()-R,q=1,U=C>h?C:h,V=C;de();for(var H of(G=(m||(m=r("AnalyticsCoreData"))).stateful_events_list_for_br)!=null?G:[]){var G;I.add(H)}for(var z of(j=(m||(m=r("AnalyticsCoreData"))).stateless_non_fb_events_for_br)!=null?j:[]){var j;T.add(z)}function K(){return(m||(m=r("AnalyticsCoreData"))).enable_bladerunner&&!(_||(_=r("ExecutionEnvironment"))).isInWorker}function Q(e,t){o("FalcoUtils").bumpODSMetrics(t.item.name,"event.info.streaming.batched",1);var n=t.item.extra.length;P+n>g&&(clearTimeout(N),X()),$.push([e,t]),P+=n}function X(){N=null,M=!1;var e=$;re("event.info.streaming.batch_processing",e.map(function(e){return e[1].item})),B?v.enqueue(function(t){return t.log(e.map(function(e){return e[1].item}),function(t){if(!t){Y(e,"event.info.banzai_fallback");return}J(e,t,"event.info.streaming.enqueued")})}):Y(e,"event.non_critical_failure.streaming_init_not_complete"),$=[],P=0}function Y(e,t){var n=function(){var e,n=a[0],i=a[1],l=i.item;if(o("FalcoUtils").bumpODSMetrics(l.name,t,1),l.identity||(l.identity=(m||(m=r("AnalyticsCoreData"))).identity),(e=l.logCritical)!=null&&e)ae.logCritical([l],function(e){return n.markItem(i,e)});else{var s;(s=l.logImmediate)!=null&&s?ae.logImmediately([l],function(e){return n.markItem(i,e)}):ae.log([l],function(e){return n.markItem(i,e)})}};for(var a of e)n()}function J(e,t,n){for(var r of e){var a=r[0],i=r[1];o("FalcoUtils").bumpODSMetrics(i.item.name,n,1),a.markItem(i,t)}}function Z(e){return{events:e.map(function(e){return{name:e.name,extra:e.extra,rate:e.policy.r,time:e.time/1e3,tag:0,tags:e.tags,shouldAddState:e.shouldAddState,identity:te(e.identity),expTags:e.exptTags,sessionID:e.sessionId,deviceID:e.deviceId}})}}function ee(e){var t,n,o,a={deviceId:(m||(m=r("AnalyticsCoreData"))).device_id,familyDeviceId:null,osBuildNumber:null,sessionId:e,appId:m.app_id,appVersion:(t=(m||(m=r("AnalyticsCoreData"))).app_version)!=null?t:null,bundleId:null,consentState:null,identity:null,pushPhase:m.push_phase};return((n=(o=(m||(m=r("AnalyticsCoreData"))).stateful_events_list_for_br)==null?void 0:o.length)!=null?n:0)>0&&(a.ambientState=(m||(m=r("AnalyticsCoreData"))).state_for_br),a.identity=te(m.identity),Object.freeze(a)}function te(e){var t=e==null?void 0:e.claim,n=t!=null?[t]:[];if(x===2||x===3||x===4){var r=e==null?void 0:e.appScopedIdentity;if(r!==void 0)return{appScopedIdentity:{uid:r,identifier:r,claims:n}}}else{var o=e==null?void 0:e.fbIdentity;if(o!==void 0)return{facebookIdentity:{actorId:o.actorId,accountId:o.accountId,claims:n}}}return null}function ne(e,t){for(var n of e){var a,i,l,s=(l={},l.e=n.extra,l.r=n.policy.r,l.d=(a=n.deviceId)!=null?a:(m||(m=r("AnalyticsCoreData"))).device_id,l.s=(i=n.sessionId)!=null?i:o("WebSession").getId(),l.t=n.time,l.a=n.appVersion,l);n.privacyContext&&(s.p=n.privacyContext),n.tags!=null&&(s.b=n.tags);var u=n.identity;u&&(s.id=u),r("Banzai").post(b+n.name,s,t)}re("event.uploaded",e)}function re(e,t){for(var n of t)n.name!==E&&o("FalcoUtils").bumpODSMetrics(n.name,e,1)}function oe(e,t){var n="falco.fabric.www."+(m||(m=r("AnalyticsCoreData"))).push_phase;(d||(d=o("ODS"))).bumpEntityKey(1344,n,e,t)}var ae={log:function(t,n){re("event.info.banzai.log.upload_processing",t),ne(t,r("Banzai").BASIC),n(!0)},logImmediately:function(t,n){re("event.info.banzai.log_immediately.upload_processing",t),ne(t,r("Banzai").VITAL),n(!0)},logCritical:function(t,n){re("event.info.banzai.log_critical.upload_processing",t),ne(t,{signal:!0,retry:!0}),n(!0)}};function ie(e){de();var t=le(e,"banzai_data_loss","log"),n=le(e,"banzai_data_loss","logImmediately"),o=le(e,"banzai_data_loss","logCritical"),a=le(e,"bladerunner_data_loss",""),i=le(e,"bladerunner_data_loss","logCritical");if(oe("js.br_data_loss.posted."+e,1),B&&F)try{v.enqueue(function(t){return t.log([a],function(t){if(!t){oe("js.br.transport_failure."+e,1),ae.logCritical([i],function(t){oe("js.br.failure_fallback_success_callback."+e,1)});return}oe("js.br.success_callback."+e,1)})})}catch(t){oe("js.br.error_enqueueing."+e,1),ae.logCritical([i],function(t){oe("js.br.enqueuing_fallback_success_callback."+e,1)})}else F||oe("js.br.failed."+e,1),B||oe("js.br.init_not_complete."+e,1),ae.logCritical([i],function(t){oe("js.br.init_fallback_success_callback."+e,1)});ne([t],r("Banzai").BASIC),ne([n],r("Banzai").VITAL),ne([o],{signal:!0,retry:!0})}function le(e,t,n){return{name:t,time:(p||(p=r("performanceAbsoluteNow")))(),policy:{r:1},extra:JSON.stringify({event_index:e,falco_js_connection_id:L,logging_mode:n,logging_flow_flag:"original_flow"}),appVersion:(m||(m=r("AnalyticsCoreData"))).app_version}}function se(){W+S<Date.now()&&(ie(q),W=Date.now(),q++)}function ue(){window.setTimeout(function(){se(),q<=40&&ue()},R)}function ce(e){v.start(function(t){return t({log:function(n,o){re("event.info.streaming.queue_processing",n);var t=JSON.stringify(Z(n));e?(m||(m=r("AnalyticsCoreData"))).enable_ack?r("promiseDone")(e.amendWithAck(t),function(e){e?(re("event.streamed.with_ack",n),re("event.uploaded",n)):re("event.non_critical_failure.streaming.ack_failed",n),o(e)},function(){re("event.non_critical_failure.streaming.ack_rejected",n),o(!1)}):(e.amendWithoutAck(t),re("event.streamed.without_ack",n),re("event.uploaded",n)):(re("event.non_critical_error.streaming.stream_not_available",n),o(!1))},logImmediately:function(t,n){this.log(t,n)},logCritical:function(t,n){this.log(t,n)}})})}function de(){w||(B=!1,K()&&(f.onReady(function(e){if(!e){F=!1,O=!0,v.start(function(e){return e(ae)});return}var t=e,n,a={onTermination:function(t){t.message==="Stream closed"?(v.stop(!0),w=!1):(o("FalcoUtils").bumpODSMetrics("","streaming.non_critical_failure.rejected",1),F=!1,v.start(function(e){return e(ae)}))},onFlowStatus:function(){}};r("promiseDone")(t.requestStream({method:"Falco"},JSON.stringify(ee(o("WebSession").getId())),a,{requestId:""}).then(function(e){n=e,ce(n),B=!0,U=h,V=y}).catch(function(e){o("FalcoUtils").bumpODSMetrics("","streaming.non_critical_failure.failed",1),v.stop(!0),w=!1}))}),w=!0))}function me(e){var t,n=e.name;if(!K()||!F)return!1;if(I.has(n)||e.policy.s!==1&&((t=(m||(m=r("AnalyticsCoreData"))).br_stateful_migration_on)!=null&&t)){var a;return e.shouldAddState=!0,e.tags=o("FalcoUtils").xorBitmap((a=e.tags)!=null?a:[0,0],D),!0}if(x!==1&&(m||(m=r("AnalyticsCoreData"))).enable_non_fb_br_stateless_by_default!==!0&&!T.has(n))return!1;if(e.policy.s===1){var i;return e.tags=o("FalcoUtils").xorBitmap((i=e.tags)!=null?i:[0,0],D),!0}return!1}function pe(e){if(e==="")return null;if(k.has(e))return k.get(e);var t={claim:""},n=e.split("^#");if(n.length>=4){var r=n[0],o=n[1],a=n[2],i=n[3];a!==""?t={appScopedIdentity:a,claim:i}:r!==""&&(t={fbIdentity:{accountId:r,actorId:o},claim:i}),k.set(e,t)}return t}function _e(){if(A)return;A=!0,r("PersistedQueue").setHandler("falco_queue_log",function(t){for(var n,a=t.getQueueNameSuffix(),i=pe(a);n=t.dequeueItem();)(function(n){me(n.item)?(o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.upload_method.streaming.log",1),de(),N==null&&(N=setTimeout(X,U)),i&&!e(a)&&(n.item.identity=i),Q(t,n)):(i?n.item.identity=i:n.item.identity=(m||(m=r("AnalyticsCoreData"))).identity,ae.log([n.item],function(e){return t.markItem(n,e)}))})(n)}),r("PersistedQueue").setHandler("falco_queue_immediately",function(t){for(var n,a=t.getQueueNameSuffix(),i=pe(a);n=t.dequeueItem();)(function(n){me(n.item)?(o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.upload_method.streaming.log_immediately",1),de(),(N==null||!M)&&(clearTimeout(N),N=setTimeout(X,V),M=!0),n.item.logImmediate=!0,i&&!e(a)&&(n.item.identity=i),Q(t,n),r("PersistedQueue").isPersistenceAllowed()||(o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.streaming_no_persistence.log_immediately",1),X())):(o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.upload_method.banzai.log_immediately",1),i?n.item.identity=i:n.item.identity=(m||(m=r("AnalyticsCoreData"))).identity,ae.logImmediately([n.item],function(e){return t.markItem(n,e)}))})(n)}),r("PersistedQueue").setHandler("falco_queue_critical",function(t){for(var n,a=t.getQueueNameSuffix(),i=pe(a);n=t.dequeueItem();)(function(n){var l=n.item;me(l)?(o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.upload_method.streaming.log_critical",1),de(),l.logCritical=!0,B?(i&&!e(a)&&(l.identity=i),v.enqueue(function(e){return e.logCritical([l],function(e){if(!e){l.identity||(i?l.identity=i:l.identity=(m||(m=r("AnalyticsCoreData"))).identity),Y([[t,n]],"event.info.banzai_fallback.log_critical");return}J([[t,n]],e,"event.uploaded")})})):(i?l.identity=i:l.identity=(m||(m=r("AnalyticsCoreData"))).identity,Y([[t,n]],"event.non_critical_failure.streaming_init_not_complete.log_critical"))):(i?l.identity=i:l.identity=(m||(m=r("AnalyticsCoreData"))).identity,o("FalcoUtils").bumpODSMetrics(n.item.name,"event.info.upload_method.banzai.log_critical",1),ae.logCritical([l],function(e){return t.markItem(n,e)}))})(n)}),(m||(m=r("AnalyticsCoreData"))).enable_dataloss_timer&&(de(),se(),ue());function e(e){try{var t=o("FalcoUtils").identityToString((m||(m=r("AnalyticsCoreData"))).identity);return e===t}catch(e){return(d||(d=o("ODS"))).bumpEntityKey(1344,"js.br.identity.check","exception.when.comparing.with.current.user.identity",1),!0}}}l.attach=_e}),98);
|
|
__d("FbtLogging",["cr:1094907","cr:8828"],(function(t,n,r,o,a,i,l){"use strict";var e=n("cr:1094907")==null?void 0:n("cr:1094907").logImpression,s=n("cr:8828")==null?void 0:n("cr:8828").logImpressionV2;l.logImpression=e,l.logImpressionV2=s}),98);
|
|
__d("InlineFbtResult",["cr:1183579"],(function(t,n,r,o,a,i,l){l.default=n("cr:1183579")}),98);
|
|
__d("InlineFbtResultImpl",["cx","FbtHooks","FbtReactUtil","FbtResultBase"],(function(t,n,r,o,a,i,l,s){var e;function u(e,t,n,r){var a="_4qba";return r!=null&&r!=""&&(t==="TRANSLATION"?a="_4qbb":t==="APPROVE"?a="_4qbc":t==="REPORT"&&(a="_4qbd")),{$$typeof:o("FbtReactUtil").REACT_ELEMENT_TYPE,type:"em",key:null,ref:null,props:{className:a,"data-intl-hash":r,"data-intl-translation":n,"data-intl-trid":"",children:e,suppressHydrationWarning:!0},_owner:null}}var c=function(t){return u(t.content,t.inlineMode,t.translation,t.hash)},d=(function(t){function n(n,a,i,l){var s;return s=t.call(this,n,(e||(e=r("FbtHooks"))).getErrorListener({translation:i,hash:l}))||this,s.$$typeof=o("FbtReactUtil").REACT_ELEMENT_TYPE,s.key=null,s.ref=null,s.type=c,s.props={content:n,inlineMode:a,translation:i,hash:l},s}return babelHelpers.inheritsLoose(n,t),n})(r("FbtResultBase"));l.default=d}),98);
|
|
__d("IntlCLDRNumberType01",["IntlVariations"],(function(t,n,r,o,a,i,l){"use strict";var e={getVariation:function(t){return r("IntlVariations").NUMBER_OTHER}},s=e;l.default=s}),98);
|
|
__d("IntlCLDRNumberType03",["IntlVariations"],(function(t,n,r,o,a,i,l){"use strict";var e={getVariation:function(t){return t===0||t===1?r("IntlVariations").NUMBER_ONE:r("IntlVariations").NUMBER_OTHER}},s=e;l.default=s}),98);
|
|
__d("IntlCLDRNumberType04",["IntlVariations"],(function(t,n,r,o,a,i,l){"use strict";var e={getVariation:function(t){return t>=0&&t<=1?r("IntlVariations").NUMBER_ONE:r("IntlVariations").NUMBER_OTHER}},s=e;l.default=s}),98);
|
|
__d("IntlCLDRNumberType05",["IntlVariations"],(function(t,n,r,o,a,i,l){"use strict";var e={getVariation:function(t){return t===1?r("IntlVariations").NUMBER_ONE:r("IntlVariations").NUMBER_OTHER}},s=e;l.default=s}),98);
|
|
__d("IntlCLDRNumberType09",["IntlVariations"],(function(t,n,r,o,a,i,l){"use strict";var e={getVariation:function(t){return t===1?r("IntlVariations").NUMBER_ONE:r("IntlVariations").NUMBER_OTHER}},s=e;l.default=s}),98);
|
|
__d("IntlCLDRNumberType25",["IntlVariations"],(function(t,n,r,o,a,i,l){"use strict";var e={getVariation:function(t){return t===1?r("IntlVariations").NUMBER_ONE:t>=2&&t<=4?r("IntlVariations").NUMBER_FEW:r("IntlVariations").NUMBER_OTHER}},s=e;l.default=s}),98);
|
|
__d("IntlCLDRNumberType26",["IntlVariations"],(function(t,n,r,o,a,i,l){"use strict";var e={getVariation:function(t){return t===1?r("IntlVariations").NUMBER_ONE:t%10>=2&&t%10<=4&&(t%100<12||t%100>14)?r("IntlVariations").NUMBER_FEW:r("IntlVariations").NUMBER_MANY}},s=e;l.default=s}),98);
|
|
__d("IntlQtEventFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("1848815"),s=o("FalcoLoggerInternal").create("intl_qt_event",e),u=s;l.default=u}),98);
|
|
__d("JstlMigrationFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("1814852"),s=o("FalcoLoggerInternal").create("jstl_migration",e),u=s;l.default=u}),98);
|
|
__d("Locale",["SiteData"],(function(t,n,r,o,a,i,l){function e(){return r("SiteData").is_rtl}l.isRTL=e}),98);
|
|
__d("Log",[],(function(t,n,r,o,a,i){"use strict";var e=-1,l={DEBUG:3,INFO:2,WARNING:1,ERROR:0},s=function(n,r,o){for(var t=arguments.length,a=new Array(t>3?t-3:0),i=3;i<t;i++)a[i-3]=arguments[i];var l=0,s=o.replace(/%s/g,function(){return String(a[l++])}),u=window.console;u&&e>=r&&u[n in u?n:"log"](s)};function u(t){e=t}var c=s.bind(null,"debug",l.DEBUG),d=s.bind(null,"info",l.INFO),m=s.bind(null,"warn",l.WARNING),p=s.bind(null,"error",l.ERROR);i.Level=l,i.log=s,i.setLevel=u,i.debug=c,i.info=d,i.warn=m,i.error=p}),66);
|
|
__d("ObservableMixin",[],(function(t,n,r,o,a,i){function e(){this.__observableEvents={}}e.prototype={inform:function(t){for(var e=this,n=Array.prototype.slice.call(arguments,1),r=Array.prototype.slice.call(this.getSubscribers(t)),o=function(){if(r[a]===null)return 1;try{r[a].apply(e,n)}catch(e){window.setTimeout(function(){throw e},0)}},a=0;a<r.length;a++)o();return this},getSubscribers:function(t){return this.__observableEvents[t]||(this.__observableEvents[t]=[])},clearSubscribers:function(t){return t&&(this.__observableEvents[t]=[]),this},subscribe:function(t,n){var e=this.getSubscribers(t);return e.push(n),this},unsubscribe:function(t,n){for(var e=this.getSubscribers(t),r=0;r<e.length;r++)if(e[r]===n){e.splice(r,1);break}return this}},a.exports=e}),null);
|
|
__d("PixelRatioConst",[],(function(t,n,r,o,a,i){var e=Object.freeze({cookieName:"dpr"});i.default=e}),66);
|
|
__d("PlatformDialog",["cx","CSS","DOMEvent","DOMEventListener"],(function(t,n,r,o,a,i,l,s){var e,u=(function(){function t(t,n,a){var i=this;e=this,this.$1=t,this.$2=n,this.$3=!1,o("DOMEventListener").add(this.$1,"submit",function(e){if(i.$3){new(r("DOMEvent"))(e).kill();return}i.$3=!0,a&&o("CSS").addClass(t,"_32qa")})}t.getInstance=function(){return e};var n=t.prototype;return n.getForm=function(){return this.$1},n.getDisplay=function(){return this.$2},n.hasBeenSubmitted=function(){return this.$3},t})();u.RESPONSE="platform/dialog/response",l.default=u}),98);
|
|
__d("StrSet",[],(function(t,n,r,o,a,i){var e=(function(){function e(e){this.$2={},this.$1=0,e&&this.addAll(e)}var t=e.prototype;return t.add=function(t){return Object.prototype.hasOwnProperty.call(this.$2,t)||(this.$2[t]=!0,this.$1++),this},t.addAll=function(t){return t.forEach(this.add,this),this},t.remove=function(t){return Object.prototype.hasOwnProperty.call(this.$2,t)&&(delete this.$2[t],this.$1--),this},t.removeAll=function(t){return t.forEach(this.remove,this),this},t.toArray=function(){return Object.keys(this.$2)},t.toMap=function(t){var e={};return Object.keys(this.$2).forEach(function(n){typeof t=="function"?e[n]=t(n):t!=null?e[n]=t:e[n]=!0}),e},t.contains=function(t){return Object.prototype.hasOwnProperty.call(this.$2,t)},t.count=function(){return this.$1},t.clear=function(){return this.$2={},this.$1=0,this},t.clone=function(){return new e(this)},t.forEach=function(t,n){Object.keys(this.$2).forEach(t,n)},t.map=function(t,n){return Object.keys(this.$2).map(t,n)},t.some=function(t,n){return Object.keys(this.$2).some(t,n)},t.every=function(t,n){return Object.keys(this.$2).every(t,n)},t.filter=function(n,r){return new e(Object.keys(this.$2).filter(n,r))},t.union=function(t){return this.clone().addAll(t)},t.intersect=function(t){return this.filter(function(e){return t.contains(e)})},t.difference=function(t){var e=this;return t.filter(function(t){return!e.contains(t)})},t.equals=function(t){var e=function(t,n){return t===n?0:t<n?-1:1},n=this.toArray(),r=t.toArray();if(n.length!==r.length)return!1;var o=n.length;for(n=n.sort(e),r=r.sort(e);o--;)if(n[o]!==r[o])return!1;return!0},e})();i.default=e}),66);
|
|
__d("PlatformVersioning",["invariant","PlatformVersions","StrSet","getObjectValues"],(function(t,n,r,o,a,i,l){var e=new(n("StrSet"))(n("getObjectValues")(n("PlatformVersions").versions)),s=location.pathname,u=s.substring(1,s.indexOf("/",1)),c=e.contains(u)?u:n("PlatformVersions").versions.UNVERSIONED;function d(t,r){if(r==n("PlatformVersions").versions.UNVERSIONED)return t;e.contains(r)||l(0,3769);var o=t.indexOf("/")!==0?"/"+t:t;return"/"+r+o}function m(){return n("PlatformVersions").LATEST}function p(){return n("PlatformVersions").LATEST_LAUNCHED}function _(e){return e.setPath(d(e.getPath(),c))}function f(e){return d(e,c)}function g(t){return e.contains(t.substring(1,t.indexOf("/",1)))?t.substring(t.indexOf("/",1)):t}var h={addVersionToPath:d,getLatestVersion:m,getLatestLaunchedVersion:p,versionAwareURI:_,versionAwarePath:f,getUnversionedPath:g},y=h;i.default=y}),66);
|
|
__d("PlatformWidgetEndpoint",["PlatformVersioning"],(function(t,n,r,o,a,i){function e(e,t){return n("PlatformVersioning").versionAwarePath("/dialog/"+e+(t?"/"+t:""))}function l(e,t){return n("PlatformVersioning").versionAwarePath("/plugins/"+e+(t?"/"+t:""))}function s(e){return/^\/plugins\//.test(n("PlatformVersioning").getUnversionedPath(e))}function u(e){return/^\/dialog\//.test(n("PlatformVersioning").getUnversionedPath(e))}var c={dialog:e,plugins:l,isPluginEndpoint:s,isDialogEndpoint:u};a.exports=c}),null);
|
|
__d("Plugin",["Arbiter","ArbiterFrame"],(function(t,n,r,o,a,i){var e={CONNECT:"platform/plugins/connect",DISCONNECT:"platform/plugins/disconnect",ERROR:"platform/plugins/error",RELOAD:"platform/plugins/reload",DIALOG:"platform/plugins/dialog",connect:function(r,o){var t={identifier:r,href:r,story_fbid:o};n("Arbiter").inform(e.CONNECT,t),n("ArbiterFrame").inform(e.CONNECT,t)},disconnect:function(r,o){var t={identifier:r,href:r,story_fbid:o};n("Arbiter").inform(e.DISCONNECT,t),n("ArbiterFrame").inform(e.DISCONNECT,t)},error:function(r,o){n("Arbiter").inform(e.ERROR,{action:r,content:o})},reload:function(r){n("Arbiter").inform(e.RELOAD,{reloadUrl:r||""}),n("ArbiterFrame").inform(e.RELOAD,{reloadUrl:r||""})},reloadOtherPlugins:function(r,o){n("ArbiterFrame").inform(e.RELOAD,{reloadUrl:"",reload:r||"",identifier:o||""})}};a.exports=e}),null);
|
|
__d("PluginBundleInit",["DOM"],(function(t,n,r,o,a,i,l){function e(){var e=document.getElementById("jsbundle-loader");e&&r("DOM").remove(e)}l.init=e}),98);
|
|
__d("PluginDOMEventListener",["DOMEventListener","Log","UserAgent","promiseDone"],(function(t,n,r,o,a,i,l){var e=!r("UserAgent").isBrowser("Safari < 12")&&typeof document.hasStorageAccess=="function",s=!e,u=!1;!s&&e&&r("promiseDone")(document.hasStorageAccess(),function(e){o("Log").debug("hasStorageAccess=%s",e),s=e},function(e){return o("Log").warn("Storage access check failed: %s",e)});function c(t,n,a,i){if(i===void 0&&(i=!1),!e||s||u)return o("DOMEventListener").add.apply(this,arguments);var l=function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(s||u)return a.apply(this,n);var l=document.requestStorageAccess().then(function(t){return o("Log").debug("Storage access request granted."),s=!0,a.apply(e,n)},function(t){return o("Log").warn("Storage access request denied."),u=!0,a.apply(e,n)});r("promiseDone")(l)};return o("DOMEventListener").add.call(null,t,n,l,i)}l.add=c,l.remove=o("DOMEventListener").remove}),98);
|
|
__d("PluginITP",["PluginDOMEventListener","promiseDone"],(function(t,n,r,o,a,i,l){function e(){"hasStorageAccess"in document&&r("promiseDone")(document.hasStorageAccess(),function(e){document.body&&!e&&o("PluginDOMEventListener").add(document.body,"click",function(){location.reload()})})}l.init=e}),98);
|
|
__d("intlSummarizeNumber",["FbtNumberType","IntlCompactDecimalNumberFormatConfig","IntlVariations","intlNumUtils"],(function(t,n,r,o,a,i,l){var e=3,s=14,u={ROUND:"ROUND",TRUNCATE:"TRUNCATE",NONE:"NONE"},c={SHORT:"SHORT",LONG:"LONG",NONE:"NONE"},d={ALWAYS_SHOW:"ALWAYS_SHOW",HIDE_IF_ZERO:"HIDE_IF_ZERO"};function m(e,t){for(var n=t,r=e,o=n!=null?n:0;o>0;o--)r%1===0&&n!=null&&n--,r*=10;return n}function p(t,n,o,a,i){var l;o===void 0&&(o=c.SHORT),a===void 0&&(a=u.ROUND),i===void 0&&(i=d.ALWAYS_SHOW);var p=r("IntlCompactDecimalNumberFormatConfig")[o===c.SHORT?"short_patterns":"long_patterns"],f=t===0?0:Math.floor(Math.log10(Math.abs(t)));f>s&&(f=s);var g=a===u.NONE?[t,n,!1]:_(t,f,n,a,p),h=g[0],y=g[1],C=g[2];if(C&&a===u.ROUND){f+=1;var b=_(t,f,n,a,p);h=b[0],y=b[1],C=b[2]}var v=r("FbtNumberType").getVariation(h)||r("IntlVariations").NUMBER_OTHER,S=f.toString(),R=p==null||(l=p[S])==null?void 0:l[v.toString()];if(f<e&&i===d.HIDE_IF_ZERO)return r("intlNumUtils").formatNumberWithThousandDelimiters(h,m(h,y));if(!R||f<e||R.positive_prefix_pattern===""&&R.positive_suffix_pattern===""){var L=n===void 0?0:n;return r("intlNumUtils").formatNumberWithThousandDelimiters(t,L)}return i===d.HIDE_IF_ZERO&&(y=m(h,y)),o===c.NONE?r("intlNumUtils").formatNumberWithThousandDelimiters(h,y):R&&R.min_integer_digits===0&&h===1?R.positive_prefix_pattern+R.positive_suffix_pattern:(R&&R.positive_prefix_pattern||"")+r("intlNumUtils").formatNumberWithThousandDelimiters(h,y)+(R&&R.positive_suffix_pattern||"")}function _(e,t,n,o,a){var i,l=t.toString(),c=a==null||(i=a[l])==null?void 0:i[r("IntlVariations").NUMBER_OTHER.toString()],d=c&&c.min_integer_digits||t+1,m=t-d+1,p=Math.abs(e)/Math.pow(10,m),_=n!=null,f=_?n:c&&c.min_fraction_digits;f==null&&(f=t>2?1:0);var g=o===u.TRUNCATE?r("intlNumUtils").truncateLongNumber(p.toString(),f):p.toFixed(f),h=parseFloat(g)*(e<0?-1:1);return[h,h%1===0&&!_?0:f,g.length>d+(f>0?f+1:0)+(p>=0?0:1)&&t<s]}l.default=p}),98);
|
|
__d("PluginIconButton",["fbt","invariant","CSS","DOM","Event","intlSummarizeNumber"],(function(t,n,r,o,a,i,l,s,u){var e=(function(){function e(e,t,n,o){var a=this;e.removeAttribute("id"),o===null||n!==null||u(0,2812),this.$1=e,this.$2=n,this.$3=o,t===!1&&(r("Event").listen(e,"click",function(){return a.toggleButton()}),r("Event").listen(e,"toggle",function(){return a.toggleButton()}))}var t=e.prototype;return t.toggleButton=function(){var e=this;o("CSS").hasClass(this.$1,"active")===!1?(o("CSS").addClass(this.$1,"active"),this.$4(!0),o("CSS").addClass(this.$1,"is_animating"),setTimeout(function(){o("CSS").removeClass(e.$1,"is_animating")},240)):(o("CSS").removeClass(this.$1,"active"),this.$4(!1))},t.setTitle=function(t){this.$1.setAttribute("title",t)},t.$4=function(t){var e=function(t){return s._(/*BTDS*/"{count}",[s._param("count",r("intlSummarizeNumber")(t,0))])};this.$3!=null&&this.$3<1e3&&(this.$3=t?this.$3+1:this.$3-1,r("DOM").setContent(this.$2,e(this.$3)))},t.isActivated=function(){return o("CSS").hasClass(this.$1,"active")},e})();l.default=e}),226);
|
|
__d("resolveWindow",[],(function(t,n,r,o,a,i){function e(e){if(e==null)return null;var t=window,n=e.split(".");try{for(var r=0;r<n.length;r++){var o=n[r],a=/^frames\[[\'\"]?([a-zA-Z0-9\-_]+)[\'\"]?\]$/.exec(o);if(a)t=t.frames[a[1]];else if(o==="opener"||o==="parent"||o==="top")t=t[o];else return null}}catch(e){return null}return t}i.default=e}),66);
|
|
__d("Type",["Assert"],(function(t,n,r,o,a,i){function e(){var e=this.__mixins;if(e)for(var t=0;t<e.length;t++)e[t].apply(this,arguments)}function l(t,n){if(n instanceof t)return!0;if(n instanceof e){for(var r=0;r<n.__mixins.length;r++)if(n.__mixins[r]===t)return!0}return!1}function s(e,t){var n=e.prototype;Array.isArray(t)||(t=[t]);for(var r=function(){var e=t[o];typeof e=="function"&&(n.__mixins.push(e),e=e.prototype),Object.keys(e).forEach(function(t){n[t]=e[t]})},o=0;o<t.length;o++)r()}function u(t,r,o){var a=r&&Object.prototype.hasOwnProperty.call(r,"constructor")?r.constructor:function(){this.parent.apply(this,arguments)};if(n("Assert").isFunction(a),t&&!(t.prototype instanceof e))throw new Error("parent type does not inherit from Type");t=t||e;function i(){}return i.prototype=t.prototype,a.prototype=new i,r&&Object.assign(a.prototype,r),a.prototype.constructor=a,a.parent=t,a.prototype.__mixins=t.prototype.__mixins?Array.prototype.slice.call(t.prototype.__mixins):[],o&&s(a,o),a.prototype.parent=function(){this.parent=t.prototype.parent,t.apply(this,arguments)},a.prototype.parentCall=function(e){return t.prototype[e].apply(this,Array.prototype.slice.call(arguments,1))},a.extend=function(e,t){return u(this,e,t)},a}Object.assign(e.prototype,{instanceOf:function(t){return l(t,this)}}),Object.assign(e,{extend:function(t,n){return typeof t=="function"?u.apply(null,arguments):u(null,t,n)},instanceOf:l}),a.exports=e}),null);
|
|
__d("sdk.Model",["ObservableMixin","Type"],(function(t,n,r,o,a,i,l){"use strict";var e=r("Type").extend({constructor:function(t){this.parent();var e={},n=this;Object.keys(t).forEach(function(r){e[r]=t[r],n["set"+r]=function(t){return t===e[r]||(e[r]=t,n.inform(r+".change",t)),n},n["get"+r]=function(){return e[r]}})}},r("ObservableMixin")),s=e;l.default=s}),98);
|
|
__d("sdk.Runtime",["JSSDKRuntimeConfig","sdk.Model"],(function(t,n,r,o,a,i,l){var e,s={UNKNOWN:0,PAGETAB:1,CANVAS:2,PLATFORM:4},u=new(r("sdk.Model"))({AccessToken:"",AutoLogAppEvents:!1,ClientID:"",CookieUserID:"",EnforceHttps:!1,Environment:s.UNKNOWN,FamilyLoginLoaded:!1,GraphDomain:"",Initialized:!1,IsSPIN:!!(e=o("JSSDKRuntimeConfig")).isSPIN,IsVersioned:!1,KidDirectedSite:void 0,Locale:e.locale,LoggedIntoFacebook:void 0,LoginStatus:void 0,Revision:e.revision,Rtl:e.rtl,Scope:void 0,SDKAB:e.sdkab,SDKUrl:e.sdkurl,SDKNS:e.sdkns,ShouldLoadFamilyLogin:!1,UseCookie:!1,UseLocalStorage:!0,UserID:"",Version:void 0});Object.assign(u,{ENVIRONMENTS:s,isEnvironment:function(t){var e=this.getEnvironment();return(t|e)===e},isCanvasEnvironment:function(){return this.isEnvironment(s.CANVAS)||this.isEnvironment(s.PAGETAB)}}),(function(){var e=/app_runner/.test(window.name)?s.PAGETAB:/iframe_canvas/.test(window.name)?s.CANVAS:s.UNKNOWN;(e|s.PAGETAB)===e&&(e|=s.CANVAS),u.setEnvironment(e)})();var c=u;l.default=c}),98);
|
|
__d("UrlMap",["invariant","UrlMapConfig","sdk.Runtime"],(function(t,n,r,o,a,i,l,s){function e(e){var t="https";if(e==="graph_domain"){var n=r("sdk.Runtime").getGraphDomain();n?e="graph_".concat(n):e="graph"}return e in r("UrlMapConfig")?t+"://"+r("UrlMapConfig")[e]:(e in r("UrlMapConfig")||s(0,2511,e),"")}l.resolve=e}),98);
|
|
__d("sdk.Scribe",["QueryString","UrlMap","sdk.Runtime"],(function(t,n,r,o,a,i,l){var e={};function s(t,n,a){if(a===void 0&&(a=!1),t==="jssdk_error"){var i=JSON.stringify(n);if(Object.prototype.hasOwnProperty.call(e,i))return;e[i]=!0}if(n.extra!=null&&typeof n.extra=="object"){var l=n.extra;l.revision=r("sdk.Runtime").getRevision()}var s=new Image,u=o("UrlMap").resolve("www")+"/platform/scribe_endpoint.php/";a||(s.crossOrigin="anonymous"),s.src=r("QueryString").appendToUrl(u,{c:t,m:JSON.stringify(babelHelpers.extends({},n,{isSPIN:r("sdk.Runtime").getIsSPIN()}))})}l.log=s}),98);
|
|
__d("XD",["Arbiter","DOM","DOMDimensions","Log","PHPQuerySerializer","Queue","URI","getErrorSafe","isFacebookURI","isInIframe","resolveWindow","sdk.Scribe"],(function(t,n,r,o,a,i,l){var e,s,u={_callbacks:[],_opts:{autoResize:!1,allowShrink:!0,channelUrl:null,hideOverflow:!1,resizeTimeout:1e3,resizeWidth:!1},_lastResizeAckId:0,_resizeCount:0,_resizeTimestamp:0,_shrinker:null,_forcedMinWidth:100,init:function(t){var e=this;u._opts=babelHelpers.extends({},u._opts,t),this._opts.autoResize&&this._startResizeMonitor(),r("Arbiter").subscribe("Connect.Unsafe.resize.ack",function(t,n){n.id||(n.id=e._resizeCount),n.id>e._lastResizeAckId&&(e._lastResizeAckId=n.id)})},getQueue:function(){return this._queue||(this._queue=new(r("Queue"))),this._queue},setChannelUrl:function(t){var e=this;this.getQueue().start(function(n){return e.send(n,t)})},send:function(n,a){if(n===void 0&&(n=null),a===void 0&&(a=null),a=a||this._opts.channelUrl,!a){this.getQueue().enqueue(n);return}var t={},i=new(s||(s=r("URI")))(a);Object.assign(t,n,(e||(e=o("PHPQuerySerializer"))).deserialize(i.getFragment()));var l=new s(t.origin);if(l.getDomain()===""){o("Log").error("No valid domain for XD message target.");return}var u=l.getOrigin();if(typeof t.relation!="string"){o("Log").error("No relation specified to resolve XD target window.");return}var c=r("resolveWindow")(t.relation.replace(/^parent\./,"")),d=1,m=function(){try{c.postMessage((e||(e=o("PHPQuerySerializer"))).serialize(t),u)}catch(e){var a=r("getErrorSafe")(e);--d?window.setTimeout(m,200):o("sdk.Scribe").log("jssdk_error",{error:"POST_MESSAGE",extra:{message:a.message+", html/js/modules/XD.js:139",ancestor_origins:JSON.stringify(location.ancestorOrigins),referrer:document.referrer,data:n}})}};m()},_computeSize:function(){var e=o("DOMDimensions").getDocumentDimensions(),t=0;if(this._opts.resizeWidth){var n=document.body;if(n!=null){if(n.clientWidth<n.scrollWidth)t=e.width;else{var a=n.lastElementChild;if(a!=null&&a instanceof HTMLElement){var i=a,l=i.offsetLeft+i.offsetWidth;l>t&&(t=l)}}t=Math.max(t,u._forcedMinWidth)}else t=u._forcedMinWidth}return e.width=t,this._opts.allowShrink&&(this._shrinker||(this._shrinker=r("DOM").create("div")),r("DOM").appendContent(document.body,this._shrinker),e.height=Math.max(this._shrinker.offsetTop,0)),e},_startResizeMonitor:function(){var e,t=this,n,o=(e=document.documentElement)!=null?e:{};if(this._opts.hideOverflow){var a;o.style.overflow="hidden",((a=document.body)!=null?a:{}).style.overflow="hidden"}var i=function(){var e=t._computeSize(),o=Date.now();if(!n||t._opts.allowShrink&&n.width!=e.width||!t._opts.allowShrink&&n.width<e.width||t._opts.allowShrink&&n.height!=e.height||!t._opts.allowShrink&&n.height<e.height){n=e,t._resizeCount++,t._resizeTimestamp=o;var a={type:"resize",height:e.height,ackData:{id:t._resizeCount},width:0};e.width&&e.width!=0&&(a.width=e.width);try{if(r("isFacebookURI")(new(s||(s=r("URI")))(document.referrer))&&r("isInIframe")()&&window.name&&window.parent.location&&window.parent.location.toString&&r("isFacebookURI")(new(s||(s=r("URI")))(window.parent.location)))for(var i=window.parent.document.getElementsByTagName("iframe"),l=0;l<i.length;l++)i[l].name==window.name&&(t._opts.resizeWidth&&(i[l].style.width=a.width+"px"),i[l].style.height=a.height+"px");t.send(a)}catch(e){t.send(a)}}};i(),window.setInterval(i,this._opts.resizeTimeout)}},c=babelHelpers.extends({},u);t.UnverifiedXD=c,t.XD=u,l.XD=u,l.UnverifiedXD=c}),98);
|
|
__d("UnverifiedXD",["XD"],(function(t,n,r,o,a,i,l){l.default=o("XD").UnverifiedXD}),98);
|
|
__d("getOffsetParent",["Style"],(function(t,n,r,o,a,i){function e(t){var r=t.parentNode;return!r||r===document.documentElement?document.documentElement:n("Style").get(r,"position")!=="static"?r:r===document.body?document.documentElement:e(r)}a.exports=e}),null);
|
|
__d("PluginResize",["Locale","Log","UnverifiedXD","getOffsetParent","getStyleProperty"],(function(t,n,r,o,a,i){function e(e){e=e||document.body;var t=0,r=n("getOffsetParent")(e);return n("Locale").isRTL()&&r?t=r.offsetWidth-e.offsetLeft-e.offsetWidth:n("Locale").isRTL()||(t=e.offsetLeft),l(e)+t}function l(e){return Math.ceil(parseFloat(n("getStyleProperty")(e,"width")))||e.offsetWidth}function s(e){return e=e||document.body,e.offsetHeight+e.offsetTop}function u(t,n,r){this.calcWidth=t||e,this.calcHeight=n||s,this.width=void 0,this.height=void 0,this.event=r||"resize"}Object.assign(u.prototype,{resize:function(){var e=this.calcWidth(),t=this.calcHeight();return(e!==this.width||t!==this.height)&&(n("Log").debug("Resizing Plugin: (%s, %s, %s, %s)",e,t,this.event),this.width=e,this.height=t,n("UnverifiedXD").send({type:this.event,width:e,height:t})),this},auto:function(t){return setInterval(this.resize.bind(this),t||250),this}}),u.auto=function(t,n,r){return new u(e.bind(null,t),s.bind(null,t),n).resize().auto(r)},u.autoHeight=function(e,t,n,r){return new u(function(){return e},s.bind(null,t),n).resize().auto(r)},u.getElementWidth=l,a.exports=u}),null);
|
|
__d("PluginReturn",["invariant","Arbiter","Log","PlatformDialog","PlatformWidgetEndpoint","Plugin","URI"],(function(t,n,r,o,a,i,l){var e;n("Arbiter").subscribe(n("PlatformDialog").RESPONSE,function(e,t){if(t.error_code){n("Log").debug("Plugin Return Error (%s): %s",t.error_code,t.error_message||t.error_description);return}n("Plugin").reload(t.plugin_reload)});var s={auto:function(){n("Arbiter").subscribe(n("Plugin").RELOAD,function(e,t){var n=typeof t=="object"?t.reloadUrl:t;s.reload(n)})},syncPlugins:function(){n("Arbiter").subscribe(n("Plugin").RELOAD,function(e,t){t.crossFrame&&s.reload(t.reloadUrl,t.reload,t.identifier)})},reload:function(r,o,a){var t=(e||(e=n("URI"))).getRequestURI().removeQueryData("ret").removeQueryData("act").removeQueryData("hash").addQueryData("reload",o).addQueryData("id",a);if(r){var o=new(e||(e=n("URI")))(r);n("PlatformWidgetEndpoint").isPluginEndpoint(o.getPath())||l(0,1120),t.setPath(o.getPath()).addQueryData(o.getQueryData())}window.location.replace(t.toString())}};a.exports=s}),null);
|
|
__d("XControllerURIBuilder",["invariant","URI","gkx","isInternalFBURI"],(function(t,n,r,o,a,i,l,s){var e,u=(function(){function t(e,t){this.$1={},this.$2=e,this.$3=t}var n=t.prototype;return n.setInt=function(t,n){return this.__setParam(t,"Int",n)},n.setFBID=function(t,n){return this.__setParam(t,"FBID",n)},n.setFloat=function(t,n){return this.__setParam(t,"Float",n)},n.setString=function(t,n){return this.__setParam(t,"String",n)},n.setExists=function(t,n){return n===!1&&(n=void 0),this.__setParam(t,"Exists",n)},n.setBool=function(t,n){return this.__setParam(t,"Bool",n)},n.setBoolVector=function(t,n){return this.__setParam(t,"BoolVector",n)},n.setBoolVec=function(t,n){return this.__setParam(t,"BoolVec",n)},n.setEnum=function(t,n){return this.__setParam(t,"Enum",n)},n.setPath=function(t,n){return this.__setParam(t,"Path",n)},n.setIntVector=function(t,n){return this.__setParam(t,"IntVector",n)},n.setIntVec=function(t,n){return this.__setParam(t,"IntVec",n)},n.setIntKeyset=function(t,n){return this.__setParam(t,"IntKeyset",n)},n.setIntSet=function(t,n){return this.__setParam(t,"IntSet",n.join(","))},n.setFloatVector=function(t,n){return this.__setParam(t,"FloatVector",n)},n.setFloatVec=function(t,n){return this.__setParam(t,"FloatVec",n)},n.setFloatSet=function(t,n){return this.__setParam(t,"FloatSet",n.join(","))},n.setFloatKeyset=function(t,n){return this.__setParam(t,"FloatKeyset",n.join(","))},n.setStringVector=function(t,n){return this.__setParam(t,"StringVector",n)},n.setStringVec=function(t,n){return this.__setParam(t,"StringVec",n)},n.setStringKeyset=function(t,n){return this.__setParam(t,"StringKeyset",n)},n.setStringSet=function(t,n){return this.__setParam(t,"StringSet",n)},n.setFBIDVector=function(t,n){return this.__setParam(t,"FBIDVector",n)},n.setFBIDVec=function(t,n){return this.__setParam(t,"FBIDVec",n)},n.setFBIDSet=function(t,n){return this.__setParam(t,"FBIDSet",n)},n.setFBIDKeyset=function(t,n){return this.__setParam(t,"FBIDKeyset",n)},n.setEnumVector=function(t,n){return this.__setParam(t,"EnumVector",n)},n.setEnumVec=function(t,n){return this.__setParam(t,"EnumVec",n)},n.setEnumSet=function(t,n){return this.__setParam(t,"EnumSet",n)},n.setEnumKeyset=function(t,n){return this.__setParam(t,"EnumKeyset",n)},n.setIntToIntMap=function(t,n){return this.__setParam(t,"IntToIntMap",n)},n.setIntToIntDict=function(t,n){return this.__setParam(t,"IntToIntDict",n)},n.setIntToFloatMap=function(t,n){return this.__setParam(t,"IntToFloatMap",n)},n.setIntToFloatDict=function(t,n){return this.__setParam(t,"IntToFloatDict",n)},n.setIntToStringMap=function(t,n){return this.__setParam(t,"IntToStringMap",n)},n.setIntToStringDict=function(t,n){return this.__setParam(t,"IntToStringDict",n)},n.setIntToBoolMap=function(t,n){return this.__setParam(t,"IntToBoolMap",n)},n.setIntToBoolDict=function(t,n){return this.__setParam(t,"IntToBoolDict",n)},n.setStringToIntMap=function(t,n){return this.__setParam(t,"StringToIntMap",n)},n.setStringToFloatMap=function(t,n){return this.__setParam(t,"StringToFloatMap",n)},n.setStringToStringMap=function(t,n){return this.__setParam(t,"StringToStringMap",n)},n.setStringToNullableStringMap=function(t,n){return this.__setParam(t,"StringToNullableStringMap",n)},n.setStringToBoolMap=function(t,n){return this.__setParam(t,"StringToBoolMap",n)},n.setStringToEnumMap=function(t,n){return this.__setParam(t,"StringToEnumMap",n)},n.setEnumToStringVectorMap=function(t,n){return this.__setParam(t,"EnumToStringVectorMap",n)},n.setEnumToStringVecDict=function(t,n){return this.__setParam(t,"EnumToStringVecDict",n)},n.setEnumToStringMap=function(t,n){return this.__setParam(t,"EnumToStringMap",n)},n.setEnumToBoolMap=function(t,n){return this.__setParam(t,"EnumToBoolMap",n)},n.setEnumToBoolDict=function(t,n){return this.__setParam(t,"EnumToBoolDict",n)},n.setEnumToEnumMap=function(t,n){return this.__setParam(t,"EnumToEnumMap",n)},n.setEnumToEnumDict=function(t,n){return this.__setParam(t,"EnumToEnumDict",n)},n.setEnumToIntMap=function(t,n){return this.__setParam(t,"EnumToIntMap",n)},n.setEnumToEnumToStringVecMapMap=function(t,n){return this.__setParam(t,"EnumToEnumToStringVecMapMap",n)},n.setEnumToFBIDVectorMap=function(t,n){return this.__setParam(t,"EnumToFBIDVectorMap",n)},n.setEnumToFBIDVecDict=function(t,n){return this.__setParam(t,"EnumToFBIDVecDict",n)},n.setStringToIntDict=function(t,n){return this.__setParam(t,"StringToIntDict",n)},n.setStringToNullableIntDict=function(t,n){return this.__setParam(t,"StringToNullableIntDict",n)},n.setStringToFloatDict=function(t,n){return this.__setParam(t,"StringToFloatDict",n)},n.setStringToStringKeysetDict=function(t,n){return this.__setParam(t,"StringToStringKeysetDict",n)},n.setStringToNullableFloatDict=function(t,n){return this.__setParam(t,"StringToNullableFloatDict",n)},n.setStringToStringDict=function(t,n){return this.__setParam(t,"StringToStringDict",n)},n.setStringToNullableStringDict=function(t,n){return this.__setParam(t,"StringToNullableStringDict",n)},n.setStringToBoolDict=function(t,n){return this.__setParam(t,"StringToBoolDict",n)},n.setStringToEnumDict=function(t,n){return this.__setParam(t,"StringToEnumDict",n)},n.setEnumToIntDict=function(t,n){return this.__setParam(t,"EnumToIntDict",n)},n.setEnumToStringDict=function(t,n){return this.__setParam(t,"EnumToStringDict",n)},n.setHackType=function(t,n){return this.__setParam(t,"HackType",n)},n.setTypeAssert=function(t,n){return this.__setParam(t,"TypeAssert",n)},n.__validateRequiredParamsExistence=function(){for(var e in this.$3)!this.$3[e].required||Object.prototype.hasOwnProperty.call(this.$1,e)||s(0,903,e)},n.setParams=function(t){for(var e in t){this.__assertParamExists(e);var n=this.$3[e].type;this.__setParam(e,n,t[e])}return this},n.__assertParamExists=function(t){t in this.$3||s(0,37339,t)},n.__setParam=function(t,n,r){this.__assertParamExists(t);var e=this.$3[t].type,o={StringOrPFBID:"String",IntOrPFBID:"Int",FBIDOrPFBID:"FBID",PaymentLegacyAdAccountID:"Int"},a=o[e];return e===n||a===n||s(0,37340,t,n,e),this.__setParamInt(t,r),this},n.__setParamInt=function(t,n){this.$1[t]=n},n.getRequest_LEGACY_UNTYPED=function(t){return t.setReplaceTransportMarkers().setURI(this.getURI())},n.setPreviousActorIsPageVoice=function(t){return this.__setParamInt("paipv",t?1:0),this},n.getURI=function(){this.__validateRequiredParamsExistence();for(var t={},n="",o=/^(.*)?\{(\?)?(\*)?(.+?)\}(.*)?$/,a=this.$2.split("/"),i=!1,l=0;l<a.length;l++){var u=a[l];if(u!==""){var c=o.exec(u);if(!c)n+="/"+u;else{var d=c[2]==="?",m=c[4],p=this.$3[m];if(p||s(0,11837,m,this.$2),d&&i)continue;if(this.$1[m]==null&&d){i=!0;continue}var _=this.$1[m]!=null?this.$1[m]:p.defaultValue;_!=null||s(0,907,m);var f=c[1]?c[1]:"",g=c[5]?c[5]:"";n+="/"+f+_+g,t[m]=!0}}}this.$2.slice(-1)==="/"&&(n+="/"),n===""&&(n="/");var h=new(e||(e=r("URI")))(n);for(var y in this.$1){var C=this.$1[y];if(!t[y]&&C!=null){var b=this.$3[y];h.addQueryData(y,b&&b.type==="Exists"?null:C)}}return h},n.getLookasideURI=function(){var t="lookaside.facebook.com";return r("isInternalFBURI")((e||(e=r("URI"))).getRequestURI())?t="lookaside.internalfb.com":r("gkx")("21116")&&(t="lookaside.internmc.facebook.com"),this.getURI().setDomain(t).setProtocol("https")},t.create=function(n,r){return function(){return new t(n,r)}},t})();u.prototype.getRequest=function(e){return this.getRequest_LEGACY_UNTYPED(e)},l.default=u}),98);
|
|
__d("XRequest",["invariant"],(function(t,n,r,o,a,i,l){var e=function(n,r,o){var t;switch(n){case"Bool":t=r&&r!=="false"&&r!=="0"||!1;break;case"Int":t=r.toString(),/-?\d+/.test(t)||l(0,11839,r);break;case"Float":t=parseFloat(r,10),!isNaN(t)||l(0,11840,r);break;case"FBID":t=r.toString();for(var a=0;a<t.length;++a){var i=t.charCodeAt(a);48<=i&&i<=57||l(0,11841,r)}break;case"String":t=r.toString();break;case"Enum":o===0?t=e("Int",r,null):o===1?t=e("String",r,null):o===2?t=r:l(0,5044,o);break;default:var s,u,c,d;if(s=/^Nullable(\w+)$/.exec(n))r===null?t=null:t=e(s[1],r,o);else if(u=/^(\w+)Vector$/.exec(n)){Array.isArray(r)?t=r:(t=r.toString(),t=t===""?[]:t.split(","));var m=u[1];typeof m=="string"||l(0,5045),t=t.map(function(t){return e(m,t,o&&o.member)})}else if(c=/^(\w+)(Set|Keyset)$/.exec(n))Array.isArray(r)?t=r:(t=r.toString(),t=t===""?[]:t.split(",")),t=t.reduce(function(e,t){return e[t]=t,e},{}),m=c[1],typeof m=="string"||l(0,5045),t=Object.keys(t).map(function(n){return e(m,t[n],o&&o.member)});else if(d=/^(\w+)To(\w+)Map$/.exec(n)){t={};var p=d[1],_=d[2];typeof p=="string"&&typeof _=="string"||l(0,5045),Object.keys(r).forEach(function(n){t[e(p,n,o&&o.key)]=e(_,r[n],o&&o.value)})}else l(0,11842,n)}return t},s=(function(){function t(e,t,n){var r=this;this.$1=t,this.$2=babelHelpers.extends({},n.getQueryData());for(var o=e.split("/").filter(function(e){return e}),a=n.getPath().split("/").filter(function(e){return e}),i,s=0;s<o.length;++s){var u=/^\{(\?)?(\*)?(\w+)\}$/.exec(o[s]);if(!u){o[s]===a[s]||l(0,5047,n.getPath());continue}var c=!!u[1],d=!!u[2];!d||s===o.length-1||l(0,11843,i),i=u[3],Object.prototype.hasOwnProperty.call(this.$1,i)||l(0,11844,i),this.$1[i].required?!c||l(0,5050,i):c||this.$1[i].defaultValue!=null||l(0,5057,i),a[s]&&(this.$2[i]=d?a.slice(s).join("/"):a[s])}Object.keys(this.$1).forEach(function(e){!r.$1[e].required||Object.prototype.hasOwnProperty.call(r.$2,e)||l(0,5051)})}var n=t.prototype;return n.getExists=function(t){return this.$2[t]!==void 0},n.getBool=function(t){return this.$3(t,"Bool")},n.getInt=function(t){return this.$3(t,"Int")},n.getFloat=function(t){return this.$3(t,"Float")},n.getFBID=function(t){return this.$3(t,"FBID")},n.getString=function(t){return this.$3(t,"String")},n.getEnum=function(t){return this.$3(t,"Enum")},n.getOptionalInt=function(t){return this.$4(t,"Int")},n.getOptionalFloat=function(t){return this.$4(t,"Float")},n.getOptionalFBID=function(t){return this.$4(t,"FBID")},n.getOptionalString=function(t){return this.$4(t,"String")},n.getOptionalEnum=function(t){return this.$4(t,"Enum")},n.getIntVector=function(t){return this.$3(t,"IntVector")},n.getFloatVector=function(t){return this.$3(t,"FloatVector")},n.getFBIDVector=function(t){return this.$3(t,"FBIDVector")},n.getStringVector=function(t){return this.$3(t,"StringVector")},n.getEnumVector=function(t){return this.$3(t,"EnumVector")},n.getOptionalIntVector=function(t){return this.$4(t,"IntVector")},n.getOptionalFloatVector=function(t){return this.$4(t,"FloatVector")},n.getOptionalFBIDVector=function(t){return this.$4(t,"FBIDVector")},n.getOptionalStringVector=function(t){return this.$4(t,"StringVector")},n.getOptionalEnumVector=function(t){return this.$4(t,"EnumVector")},n.getIntSet=function(t){return this.$3(t,"IntSet")},n.getFBIDSet=function(t){return this.$3(t,"FBIDSet")},n.getFBIDKeyset=function(t){return this.$3(t,"FBIDKeyset")},n.getStringSet=function(t){return this.$3(t,"StringSet")},n.getEnumKeyset=function(t){return this.$3(t,"EnumKeyset")},n.getOptionalIntSet=function(t){return this.$4(t,"IntSet")},n.getOptionalFBIDSet=function(t){return this.$4(t,"FBIDSet")},n.getOptionalFBIDKeyset=function(t){return this.$4(t,"FBIDKeyset")},n.getOptionalStringSet=function(t){return this.$4(t,"StringSet")},n.getEnumToBoolMap=function(t){return this.$3(t,"EnumToBoolMap")},n.getEnumToEnumMap=function(t){return this.$3(t,"EnumToEnumMap")},n.getEnumToFloatMap=function(t){return this.$3(t,"EnumToFloatMap")},n.getEnumToIntMap=function(t){return this.$3(t,"EnumToIntMap")},n.getEnumToStringMap=function(t){return this.$3(t,"EnumToStringMap")},n.getIntToBoolMap=function(t){return this.$3(t,"IntToBoolMap")},n.getIntToEnumMap=function(t){return this.$3(t,"IntToEnumMap")},n.getIntToFloatMap=function(t){return this.$3(t,"IntToFloatMap")},n.getIntToIntMap=function(t){return this.$3(t,"IntToIntMap")},n.getIntToStringMap=function(t){return this.$3(t,"IntToStringMap")},n.getStringToBoolMap=function(t){return this.$3(t,"StringToBoolMap")},n.getStringToEnumMap=function(t){return this.$3(t,"StringToEnumMap")},n.getStringToFloatMap=function(t){return this.$3(t,"StringToFloatMap")},n.getStringToIntMap=function(t){return this.$3(t,"StringToIntMap")},n.getStringToStringMap=function(t){return this.$3(t,"StringToStringMap")},n.getOptionalEnumToBoolMap=function(t){return this.$4(t,"EnumToBoolMap")},n.getOptionalEnumToEnumMap=function(t){return this.$4(t,"EnumToEnumMap")},n.getOptionalEnumToFloatMap=function(t){return this.$4(t,"EnumToFloatMap")},n.getOptionalEnumToIntMap=function(t){return this.$4(t,"EnumToIntMap")},n.getOptionalEnumToStringMap=function(t){return this.$4(t,"EnumToStringMap")},n.getOptionalIntToBoolMap=function(t){return this.$4(t,"IntToBoolMap")},n.getOptionalIntToEnumMap=function(t){return this.$4(t,"IntToEnumMap")},n.getOptionalIntToFloatMap=function(t){return this.$4(t,"IntToFloatMap")},n.getOptionalIntToIntMap=function(t){return this.$4(t,"IntToIntMap")},n.getOptionalIntToStringMap=function(t){return this.$4(t,"IntToStringMap")},n.getOptionalStringToBoolMap=function(t){return this.$4(t,"StringToBoolMap")},n.getOptionalStringToEnumMap=function(t){return this.$4(t,"StringToEnumMap")},n.getOptionalStringToFloatMap=function(t){return this.$4(t,"StringToFloatMap")},n.getOptionalStringToIntMap=function(t){return this.$4(t,"StringToIntMap")},n.getOptionalStringToStringMap=function(t){return this.$4(t,"StringToStringMap")},n.getEnumToNullableEnumMap=function(t){return this.$3(t,"EnumToNullableEnumMap")},n.getEnumToNullableFloatMap=function(t){return this.$3(t,"EnumToNullableFloatMap")},n.getEnumToNullableIntMap=function(t){return this.$3(t,"EnumToNullableIntMap")},n.getEnumToNullableStringMap=function(t){return this.$3(t,"EnumToNullableStringMap")},n.getIntToNullableEnumMap=function(t){return this.$3(t,"IntToNullableEnumMap")},n.getIntToNullableFloatMap=function(t){return this.$3(t,"IntToNullableFloatMap")},n.getIntToNullableIntMap=function(t){return this.$3(t,"IntToNullableIntMap")},n.getIntToNullableStringMap=function(t){return this.$3(t,"IntToNullableStringMap")},n.getStringToNullableEnumMap=function(t){return this.$3(t,"StringToNullableEnumMap")},n.getStringToNullableFloatMap=function(t){return this.$3(t,"StringToNullableFloatMap")},n.getStringToNullableIntMap=function(t){return this.$3(t,"StringToNullableIntMap")},n.getStringToNullableStringMap=function(t){return this.$3(t,"StringToNullableStringMap")},n.getOptionalEnumToNullableEnumMap=function(t){return this.$4(t,"EnumToNullableEnumMap")},n.getOptionalEnumToNullableFloatMap=function(t){return this.$4(t,"EnumToNullableFloatMap")},n.getOptionalEnumToNullableIntMap=function(t){return this.$4(t,"EnumToNullableIntMap")},n.getOptionalEnumToNullableStringMap=function(t){return this.$4(t,"EnumToNullableStringMap")},n.getOptionalIntToNullableEnumMap=function(t){return this.$4(t,"IntToNullableEnumMap")},n.getOptionalIntToNullableFloatMap=function(t){return this.$4(t,"IntToNullableFloatMap")},n.getOptionalIntToNullableIntMap=function(t){return this.$4(t,"IntToNullableIntMap")},n.getOptionalIntToNullableStringMap=function(t){return this.$4(t,"IntToNullableStringMap")},n.getOptionalStringToNullableEnumMap=function(t){return this.$4(t,"StringToNullableEnumMap")},n.getOptionalStringToNullableFloatMap=function(t){return this.$4(t,"StringToNullableFloatMap")},n.getOptionalStringToNullableStringMap=function(t){return this.$4(t,"StringToNullableStringMap")},n.$3=function(n,r){this.$5(n,r);var t=this.$1[n];return!Object.prototype.hasOwnProperty.call(this.$2,n)&&t.defaultValue!=null?(!t.required||l(0,5052),e(r,t.defaultValue,t.enumType)):(t.required||r==="Bool"||t.defaultValue!=null||l(0,11845,r,n,r,n),e(r,this.$2[n],t.enumType))},n.$4=function(n,r){this.$5(n,r);var t=this.$1[n];return!t.required||l(0,11846,r,n,r,n),!t.defaultValue||l(0,5052),Object.prototype.hasOwnProperty.call(this.$2,n)?e(r,this.$2[n],t.enumType):null},n.$5=function(t,n){Object.prototype.hasOwnProperty.call(this.$1,t)||l(0,37317,t),this.$1[t].type===n||l(0,11848,t,n,this.$1[t].type)},t})();i.default=s}),66);
|
|
__d("XController",["XControllerURIBuilder","XRequest"],(function(t,n,r,o,a,i,l){var e=(function(){function e(e,t){this.$1=e,this.$2=t}var t=e.prototype;return t.getURIBuilder=function(t){var e=this,n=new(r("XControllerURIBuilder"))(this.$1,this.$2);if(t){var o=this.getRequest(t);Object.keys(this.$2).forEach(function(t){var r=e.$2[t],a="";!r.required&&!Object.prototype.hasOwnProperty.call(r,"defaultValue")&&(a="Optional");var i="get"+a+r.type,l=o[i](t);if(!(l==null||Object.prototype.hasOwnProperty.call(r,"defaultValue")&&l===r.defaultValue)){var s="set"+r.type;n[s](t,l)}})}return n},t.getRequest=function(t){return new(r("XRequest"))(this.$1,this.$2,t)},e.create=function(n,r){return new e(n,r)},e})();l.default=e}),98);
|
|
__d("XThisControllerNoLongerExistsController",["XController"],(function(t,n,r,o,a,i){a.exports=n("XController").create("/dcb/tcnle/",{t:{type:"String"}})}),null);
|
|
__d("ThisControllerNoLongerExists",["XControllerURIBuilder","XThisControllerNoLongerExistsController","jsRouteBuilder"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(e){function t(t){var n;return n=e.call(this,"/dcb/tcnle/",{})||this,n.$XControllerURIBuilderNoOpDead$p_1=t,n}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.__validateRequiredParamsExistence=function(){},n.__assertParamExists=function(t){},n.__setParam=function(t,n,r){return this},n.__setParamInt=function(t,n){},n.getRequest_LEGACY_UNTYPED=function(t){return t.setURI(this.getURI())},n.getURI=function(){return r("XThisControllerNoLongerExistsController").getURIBuilder().setString("t",this.$XControllerURIBuilderNoOpDead$p_1).getURI()},n.getLookasideURI=function(){return this.getURI()},t})(r("XControllerURIBuilder"));function s(e){return r("XThisControllerNoLongerExistsController").getURIBuilder().setString("t",e).getURI()}function u(t){return new e(t)}function c(e){var t=r("jsRouteBuilder")("/dcb/tcnle/",{}),n={t:e};return{buildUri:function(){return t.buildUri(n)},buildUriNullable:function(){return t.buildUriNullable(n)},buildURL:function(){return t.buildURL(n)},buildURLStringDEPRECATED:function(){return t.buildURLStringDEPRECATED(n)},getPath:function(){return t.getPath()}}}l.__DEADURI__=s,l.__DEADBUILDER__=u,l.__DEADROUTEBUILDER__=c}),98);
|
|
__d("PluginShareActions",["AsyncRequest","Event","ThisControllerNoLongerExists"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t,n,a,i,l,s){r("Event").listen(i,"click",function(i){new(r("AsyncRequest"))().setURI(o("ThisControllerNoLongerExists").__DEADBUILDER__("g584vh1q").getURI()).setData({app_id:l,href:e,layout:t,event:"click",has_iframe:n,referer_url:a}).send()})}l.init=e}),98);
|
|
__d("SecurePostMessage",["invariant"],(function(t,n,r,o,a,i,l){"use strict";var e="*",s={sendMessageToSpecificOrigin:function(n,r,o,a){o!==e||l(0,21157),n.postMessage(r,o,a)},sendMessageForCurrentOrigin:function(t,n){t.postMessage(n)},sendMessageAllowAnyOrigin_UNSAFE:function(n,r,o){n.postMessage(r,e,o)}};a.exports=s}),null);
|
|
__d("PluginXDReady",["Arbiter","Log","SecurePostMessage","UnverifiedXD"],(function(t,n,r,o,a,i,l){var e={handleMessage:function(t){if(o("Log").debug("PluginXDReady at "+window.name+" handleMessage "+JSON.stringify(t)),!!t.method)try{r("Arbiter").inform("Connect.Unsafe."+t.method,JSON.parse(t.params),"persistent")}catch(e){}}};window.addEventListener("message",function(e){if(o("Log").debug("PluginXDReady at "+window.name+" received message "+JSON.stringify(e.data.message)),e.data.xdArbiterSyn)o("SecurePostMessage").sendMessageAllowAnyOrigin_UNSAFE(e.source,{xdArbiterAck:!0});else if(e.data.xdArbiterHandleMessage){if(!e.data.message.method)return;try{r("Arbiter").inform("Connect.Unsafe."+e.data.message.method,JSON.parse(e.data.message.params),"persistent")}catch(e){}}},!1),t.XdArbiter=e,r("UnverifiedXD").send({xd_action:"plugin_ready",name:window.name});var s=null;l.default=s}),98);
|
|
__d("isTruthy",[],(function(t,n,r,o,a,i){"use strict";function e(e){return e!=null&&!!e}i.default=e}),66);
|
|
__d("Popup",["isTruthy"],(function(t,n,r,o,a,i,l){function e(e,t,n,o){var a=[];r("isTruthy")(t)&&a.push("width="+t),r("isTruthy")(n)&&a.push("height="+n);var i=document.body;if(i!=null&&t!=null&&t!==0&&n!=null&&n!==0){var l="screenX"in window?window.screenX:window.screenLeft,s="screenY"in window?window.screenY:window.screenTop,u="outerWidth"in window?window.outerWidth:i.clientWidth,c="outerHeight"in window?window.outerHeight:i.clientHeight-22,d=Math.floor(l+(u-t)/2),m=Math.floor(s+(c-n)/2.5);a.push("left="+d),a.push("top="+m)}return a.push("scrollbars"),window.open(e,o!=null&&o!==""?o:"_blank",a.join(","))}l.open=e}),98);
|
|
__d("PopupLink",["DOMEvent","DOMEventListener","Popup"],(function(t,n,r,o,a,i){var e={listen:function(t,r,o){n("DOMEventListener").add(t,"click",function(e){new(n("DOMEvent"))(e).kill(),n("Popup").open(t.href,r,o)})}};a.exports=e}),null);
|
|
__d("TransAppInlineMode",[],(function(t,n,r,o,a,i){var e=Object.freeze({STRING_MANAGER:"STRING_MANAGER",TRANSLATION:"TRANSLATION",APPROVE:"APPROVE",REPORT:"REPORT",NO_INLINE:"NO_INLINE"});i.default=e}),66);
|
|
__d("TransportSelectingClientSingletonConditional",["cr:710"],(function(t,n,r,o,a,i,l){"use strict";l.default=n("cr:710")}),98);
|
|
__d("WebPixelRatio",["SiteData"],(function(t,n,r,o,a,i,l){function e(){return r("SiteData").pr!=null&&r("SiteData").pr>0?r("SiteData").pr:window.devicePixelRatio||1}l.get=e}),98);
|
|
__d("WebPixelRatioDetector",["Cookie","DOMEventListener","PixelRatioConst","Run","WebPixelRatio"],(function(t,n,r,o,a,i,l){"use strict";var e=!1,s=!1;function u(){return window.devicePixelRatio||1}function c(){r("Cookie").set(r("PixelRatioConst").cookieName,String(u()))}function d(){s||(s=!0,u()!==o("WebPixelRatio").get()&&c())}function m(t){e||(e=!0,"onpagehide"in window&&o("DOMEventListener").add(window,"pagehide",d),o("Run").onBeforeUnload(d,!1))}l.startDetecting=m}),98);
|
|
__d("bumpVultureJSHash",["ODS"],(function(t,n,r,o,a,i,l){"use strict";var e;function s(t,n){(e||(e=o("ODS"))).bumpEntityKey(7506,"vulture_js",t,n)}l.default=s}),98);
|
|
__d("cancelIdleCallbackBlue",["IdleCallbackImplementation"],(function(t,n,r,o,a,i,l){var e,s=(e=t.cancelIdleCallback)!=null?e:o("IdleCallbackImplementation").cancelIdleCallback;function u(e){s(e)}l.default=u}),98);
|
|
__d("cancelIdleCallbackWWW",["cr:692209"],(function(t,n,r,o,a,i,l){l.default=n("cr:692209")}),98);
|
|
__d("getContextualParent",["ge"],(function(t,n,r,o,a,i,l){function e(e,t){t===void 0&&(t=!1);var n=!1,o=e;do{if(o instanceof Element){var a=o.getAttribute("data-ownerid");if(a){o=r("ge")(a),n=!0;continue}}o=o.parentNode}while(t&&o&&!n);return o}l.default=e}),98);
|
|
__d("getDataWithLoggerOptions",[],(function(t,n,r,o,a,i){"use strict";function e(e,t){return babelHelpers.extends({},e,{__options:babelHelpers.extends({event_time:Date.now()/1e3},t)})}i.default=e}),66);
|
|
__d("getUnwrappedFbt",["FbtResultGK"],(function(t,n,r,o,a,i){function e(e){var t=e.contents,r=n("FbtResultGK").inlineMode,o=n("FbtResultGK").shouldReturnFbtResult;if(!o&&r!=="REPORT")return(t==null?void 0:t.length)===1&&typeof t[0]=="string"?t[0]:t}a.exports=e}),null);
|
|
__d("getFbtResult",["FBLogger","FbtResult","FbtResultGK","InlineFbtResult","getUnwrappedFbt","gkx"],(function(t,n,r,o,a,i,l){r("gkx")("20935")&&r("FbtResultGK").inlineMode==="TRANSLATION"&&r("FBLogger")("internationalization").mustfix("TransAppInlineMode=TRANSLATION should not happen on Comet yet. [inlineMode=%s][runtime_site_is_comet=%s]",r("FbtResultGK").inlineMode!=null?r("FbtResultGK").inlineMode:"",String(r("gkx")("20935")));function e(e){var t=r("getUnwrappedFbt")(e);if(t!=null)return t;var n=e.contents,o=e.patternHash,a=e.patternString;return r("FbtResultGK").inlineMode!=null&&r("FbtResultGK").inlineMode!=="NO_INLINE"?new(r("InlineFbtResult"))(n,r("FbtResultGK").inlineMode,a,o):r("FbtResult").get(e)}l.default=e}),98); |