if (self.CavalryLogger) { CavalryLogger.start_js(["9a29v"]); }

__d("FetchStreamConfig",[],(function(a,b,c,d,e,f){e.exports={delim:"/*<!-- fetch-stream -->*/"}}),null);
__d("GenderConst",[],(function(a,b,c,d,e,f){e.exports={NOT_A_PERSON:0,FEMALE_SINGULAR:1,MALE_SINGULAR:2,FEMALE_SINGULAR_GUESS:3,MALE_SINGULAR_GUESS:4,MIXED_SINGULAR:5,MIXED_PLURAL:5,NEUTER_SINGULAR:6,UNKNOWN_SINGULAR:7,FEMALE_PLURAL:8,MALE_PLURAL:9,NEUTER_PLURAL:10,UNKNOWN_PLURAL:11,UNKNOWN:0}}),null);
__d("IntlVariations",[],(function(a,b,c,d,e,f){e.exports={BITMASK_NUMBER:28,BITMASK_GENDER:3,NUMBER_ZERO:16,NUMBER_ONE:4,NUMBER_TWO:8,NUMBER_FEW:20,NUMBER_MANY:12,NUMBER_OTHER:24,GENDER_MALE:1,GENDER_FEMALE:2,GENDER_UNKNOWN:3}}),null);
__d("AsyncDOM",["CSS","DOM","FBLogger"],(function(a,b,c,d,e,f){__p&&__p();a={invoke:function(a,c){__p&&__p();for(var d=0;d<a.length;++d){var e=a[d],f=e[0],g=e[1],h=e[2];e=e[3];h=h&&c||null;g&&(h=b("DOM").scry(h||document.documentElement,g)[0]);f!="eval"&&!h&&b("FBLogger")("async_dom").warn("Could not find relativeTo element for %s AsyncDOM operation based on selector: %s",f,g);switch(f){case"eval":new Function(e).apply(h);break;case"hide":b("CSS").hide(h);break;case"show":b("CSS").show(h);break;case"setContent":b("DOM").setContent(h,e);break;case"appendContent":b("DOM").appendContent(h,e);break;case"prependContent":b("DOM").prependContent(h,e);break;case"insertAfter":b("DOM").insertAfter(h,e);break;case"insertBefore":b("DOM").insertBefore(h,e);break;case"remove":b("DOM").remove(h);break;case"replace":b("DOM").replace(h,e);break;default:b("FBLogger")("async_dom").warn("Received invalid command %s for AsyncDOM operation",f)}}}};e.exports=a}),null);
__d("errorCode",[],(function(a,b,c,d,e,f){"use strict";function a(a){throw new Error('errorCode("'+a+'"): This should not happen. Oh noes!')}e.exports=a}),null);
__d("AsyncResponse",["errorCode","invariant","Bootloader","SiteData"],(function(a,b,c,d,e,f,g,h){__p&&__p();function i(a,b){"use strict";this.error=0,this.errorSummary=null,this.errorDescription=null,this.onload=null,this.replay=!1,this.payload=b,this.request=a,this.silentError=!1,this.transientError=!1,this.blockedAction=!1,this.is_last=!0,this.responseHeaders=null}i.prototype.getRequest=function(){"use strict";return this.request};i.prototype.getPayload=function(){"use strict";return this.payload};i.prototype.toError=function(){"use strict";this.error!==0||h(0);var a=this.errorSummary||"",b=this.errorDescription||"",c=new Error(a.toString()+": "+b.toString());Object.assign(c,{code:this.error,description:b,response:this,summary:a,isSilent:this.silentError,isTransient:this.transientError});return c};i.prototype.getError=function(){"use strict";return this.error};i.prototype.getErrorSummary=function(){"use strict";return this.errorSummary};i.prototype.setErrorSummary=function(a){"use strict";a=a===undefined?null:a;this.errorSummary=a;return this};i.prototype.getErrorDescription=function(){"use strict";return this.errorDescription};i.prototype.getErrorIsWarning=function(){"use strict";return!!this.errorIsWarning};i.prototype.isTransient=function(){"use strict";return!!this.transientError};i.prototype.isBlockedAction=function(){"use strict";return!!this.blockedAction};i.prototype.getResponseHeader=function(a){"use strict";__p&&__p();var b=this.responseHeaders;if(!b)return null;b=b.replace(/^\n/,"");a=a.toLowerCase();b=b.split("\r\n");for(var c=0;c<b.length;++c){var d=b[c],e=d.indexOf(": ");if(e<=0)continue;var f=d.substring(0,e).toLowerCase();if(f===a)return d.substring(e+2)}return null};i.prototype.logError=function(c,d){"use strict";var e=a.ErrorSignal;if(e&&this.request){var f=this.request.getURI(),g={err_code:this.error,vip:b("SiteData").vip||"-",path:f||"-",aid:this.request?this.request.userActionID:null};d&&(g.duration=d.duration,g.xfb_ip=d.xfb_ip);f&&f.indexOf("scribe_endpoint.php")!=-1&&(c="async_error_double");e.sendErrorSignal(c,JSON.stringify(g))}};i.prototype.logErrorByGroup=function(a,b){"use strict";Math.floor(Math.random()*b)===0&&(this.error==1357010||this.error<15e3?this.logError("async_error_oops_"+a):this.logError("async_error_logic_"+a))};i.defaultErrorHandler=function(a){"use strict";try{!a.silentError?i.verboseErrorHandler(a):a.logErrorByGroup("silent",10)}catch(b){alert(a)}};i.verboseErrorHandler=function(a,c){"use strict";b("Bootloader").loadModules(["ExceptionDialog"],function(b){return b.showAsyncError(a,c)},"AsyncResponse")};e.exports=i}),null);
__d("Promise",["invariant","TimeSlice","setImmediateAcrossTransitions","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();function h(){}var i=null,j={};function k(a){try{return a.then}catch(a){i=a;return j}}function l(a,b){try{return a(b)}catch(a){i=a;return j}}function m(a,b,c){try{a(b,c)}catch(a){i=a;return j}}function n(a){__p&&__p();if(typeof this!=="object")throw new TypeError("Promises must be constructed via new");if(typeof a!=="function")throw new TypeError("not a function");this._state=0;this._value=null;this._deferreds=[];if(a===h)return;u(a,this)}n._noop=h;n.prototype.then=function(a,b){if(this.constructor!==n)return o(this,a,b);var c=new n(h);p(this,new t(a,b,c));return c};function o(a,b,c){return new a.constructor(function(d,e){var f=new n(h);f.then(d,e);p(a,new t(b,c,f))})}function p(a,c){__p&&__p();while(a._state===3)a=a._value;if(a._state===0){a._deferreds.push(c);return}b("setImmediateAcrossTransitions")(function(){var b=a._state===1?c.onFulfilled:c.onRejected;if(b===null){c.continuation(function(){});a._state===1?q(c.promise,a._value):r(c.promise,a._value);return}b=l(c.continuation.bind(null,b),a._value);b===j?r(c.promise,i):q(c.promise,b)})}function q(a,b){__p&&__p();if(b===a)return r(a,new TypeError("A promise cannot be resolved with itself."));if(b&&(typeof b==="object"||typeof b==="function")){var c=k(b);if(c===j)return r(a,i);if(c===a.then&&b instanceof n){a._state=3;a._value=b;s(a);return}else if(typeof c==="function"){u(c.bind(b),a);return}}a._state=1;a._value=b;s(a)}function r(a,b){a._state=2,a._value=b,s(a)}function s(a){for(var b=0;b<a._deferreds.length;b++)p(a,a._deferreds[b]);a._deferreds=null}function t(a,c,d){this.onFulfilled=typeof a==="function"?a:null,this.onRejected=typeof c==="function"?c:null,this.continuation=b("TimeSlice").getGuardedContinuation("Promise Handler"),this.promise=d}function u(a,b){__p&&__p();var c=!1;a=m(a,function(a){if(c)return;c=!0;q(b,a)},function(a){if(c)return;c=!0;r(b,a)});!c&&a===j&&(c=!0,r(b,i))}n.prototype.done=function(a,c){var d=new Error("Promise.done"),e=arguments.length?this.then.apply(this,arguments):this;e.then(null,function(a){b("setTimeoutAcrossTransitions")(function(){if(a instanceof Error)throw a;else{d.message=""+a;throw d}},0)})};var v=B(!0),w=B(!1),x=B(null),y=B(undefined),z=B(0),A=B("");function B(a){var b=new n(n._noop);b._state=1;b._value=a;return b}n.resolve=function(a){__p&&__p();if(a instanceof n)return a;if(a===null)return x;if(a===undefined)return y;if(a===!0)return v;if(a===!1)return w;if(a===0)return z;if(a==="")return A;if(typeof a==="object"||typeof a==="function")try{var b=a.then;if(typeof b==="function")return new n(b.bind(a))}catch(a){return new n(function(b,c){c(a)})}return B(a)};n.all=function(a){__p&&__p();Array.isArray(a)||(a=[new n(function(){throw new TypeError("Promise.all must be passed an iterable.")})]);var b=Array.prototype.slice.call(a);return new n(function(a,c){__p&&__p();if(b.length===0)return a([]);var d=b.length;function e(f,g){__p&&__p();if(g&&(typeof g==="object"||typeof g==="function"))if(g instanceof n&&g.then===n.prototype.then){while(g._state===3)g=g._value;if(g._state===1)return e(f,g._value);g._state===2&&c(g._value);g.then(function(a){e(f,a)},c);return}else{var h=g.then;if(typeof h==="function"){h=new n(h.bind(g));h.then(function(a){e(f,a)},c);return}}b[f]=g;--d===0&&a(b)}for(var f=0;f<b.length;f++)e(f,b[f])})};n.reject=function(a){return new n(function(b,c){c(a)})};n.race=function(a){return new n(function(b,c){a.forEach(function(a){n.resolve(a).then(b,c)})})};n.prototype["catch"]=function(a){return this.then(null,a)};n.prototype["finally"]=function(a){return this.then(function(b){return n.resolve(a()).then(function(){return b})},function(b){return n.resolve(a()).then(function(){throw b})})};e.exports=n}),null);
__d("Deferred",["Promise"],(function(a,b,c,d,e,f){"use strict";__p&&__p();b("Promise").resolve();function a(a){a=a||b("Promise"),this.$1=!1,this.$2=new a(function(a,b){this.$3=a,this.$4=b}.bind(this))}a.prototype.getPromise=function(){return this.$2};a.prototype.resolve=function(a){this.$1=!0,this.$3(a)};a.prototype.reject=function(a){this.$1=!0,this.$4(a)};a.prototype["catch"]=function(a){return b("Promise").prototype["catch"].apply(this.$2,arguments)};a.prototype.then=function(a,c){return b("Promise").prototype.then.apply(this.$2,arguments)};a.prototype.done=function(a,b){var c=arguments.length?this.$2.then.apply(this.$2,arguments):this.$2;c.then(undefined,function(a){setTimeout(function(){throw a},0)})};a.prototype.isSettled=function(){return this.$1};e.exports=a}),null);
__d("regeneratorRuntime",["Promise"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=Object.prototype.hasOwnProperty,h=typeof Symbol==="function"&&(typeof Symbol==="function"?Symbol.iterator:"@@iterator")||"@@iterator",i=e.exports;function j(a,b,c,d){b=Object.create((b||q).prototype);d=new z(d||[]);b._invoke=w(a,c,d);return b}i.wrap=j;function k(a,b,c){try{return{type:"normal",arg:a.call(b,c)}}catch(a){return{type:"throw",arg:a}}}var l="suspendedStart",m="suspendedYield",n="executing",o="completed",p={};function q(){}function r(){}function s(){}var t=s.prototype=q.prototype;r.prototype=t.constructor=s;s.constructor=r;r.displayName="GeneratorFunction";function a(a){["next","throw","return"].forEach(function(b){a[b]=function(a){return this._invoke(b,a)}})}i.isGeneratorFunction=function(a){a=typeof a==="function"&&a.constructor;return a?a===r||(a.displayName||a.name)==="GeneratorFunction":!1};i.mark=function(a){Object.setPrototypeOf?Object.setPrototypeOf(a,s):Object.assign(a,s);a.prototype=Object.create(t);return a};i.awrap=function(a){return new u(a)};function u(a){this.arg=a}function v(a){__p&&__p();function c(c,f){var g=a[c](f);c=g.value;return c instanceof u?b("Promise").resolve(c.arg).then(d,e):b("Promise").resolve(c).then(function(a){g.value=a;return g})}typeof process==="object"&&process.domain&&(c=process.domain.bind(c));var d=c.bind(a,"next"),e=c.bind(a,"throw");c.bind(a,"return");var f;function g(a,d){var e=f?f.then(function(){return c(a,d)}):new(b("Promise"))(function(b){b(c(a,d))});f=e["catch"](function(a){});return e}this._invoke=g}a(v.prototype);i.async=function(a,b,c,d){var e=new v(j(a,b,c,d));return i.isGeneratorFunction(b)?e:e.next().then(function(a){return a.done?a.value:e.next()})};function w(a,b,c){__p&&__p();var d=l;return function(e,f){__p&&__p();if(d===n)throw new Error("Generator is already running");if(d===o){if(e==="throw")throw f;return B()}while(!0){var g=c.delegate;if(g){if(e==="return"||e==="throw"&&g.iterator[e]===undefined){c.delegate=null;var h=g.iterator["return"];if(h){h=k(h,g.iterator,f);if(h.type==="throw"){e="throw";f=h.arg;continue}}if(e==="return")continue}h=k(g.iterator[e],g.iterator,f);if(h.type==="throw"){c.delegate=null;e="throw";f=h.arg;continue}e="next";f=undefined;var i=h.arg;if(i.done)c[g.resultName]=i.value,c.next=g.nextLoc;else{d=m;return i}c.delegate=null}if(e==="next")d===m?c.sent=f:c.sent=undefined;else if(e==="throw"){if(d===l){d=o;throw f}c.dispatchException(f)&&(e="next",f=undefined)}else e==="return"&&c.abrupt("return",f);d=n;h=k(a,b,c);if(h.type==="normal"){d=c.done?o:m;var i={value:h.arg,done:c.done};if(h.arg===p)c.delegate&&e==="next"&&(f=undefined);else return i}else h.type==="throw"&&(d=o,e="throw",f=h.arg)}}}a(t);t[h]=function(){return this};t.toString=function(){return"[object Generator]"};function x(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]);2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]);this.tryEntries.push(b)}function y(a){var b=a.completion||{};b.type="normal";delete b.arg;a.completion=b}function z(a){this.tryEntries=[{tryLoc:"root"}],a.forEach(x,this),this.reset(!0)}i.keys=function(a){__p&&__p();var b=[];for(var c in a)b.push(c);b.reverse();return function c(){__p&&__p();while(b.length){var d=b.pop();if(d in a){c.value=d;c.done=!1;return c}}c.done=!0;return c}};function A(a){__p&&__p();if(a){var b=a[h];if(b)return b.call(a);if(typeof a.next==="function")return a;if(!isNaN(a.length)){var c=-1;b=function b(){while(++c<a.length)if(g.call(a,c)){b.value=a[c];b.done=!1;return b}b.value=undefined;b.done=!0;return b};return b.next=b}}return{next:B}}i.values=A;function B(){return{value:undefined,done:!0}}z.prototype={constructor:z,reset:function(a){this.prev=0;this.next=0;this.sent=undefined;this.done=!1;this.delegate=null;this.tryEntries.forEach(y);if(!a)for(var b in this)b.charAt(0)==="t"&&g.call(this,b)&&!isNaN(+b.slice(1))&&(this[b]=undefined)},stop:function(){this.done=!0;var a=this.tryEntries[0];a=a.completion;if(a.type==="throw")throw a.arg;return this.rval},dispatchException:function(a){__p&&__p();if(this.done)throw a;var b=this;function c(c,d){f.type="throw";f.arg=a;b.next=c;return!!d}for(var d=this.tryEntries.length-1;d>=0;--d){var e=this.tryEntries[d],f=e.completion;if(e.tryLoc==="root")return c("end");if(e.tryLoc<=this.prev){var h=g.call(e,"catchLoc"),i=g.call(e,"finallyLoc");if(h&&i){if(this.prev<e.catchLoc)return c(e.catchLoc,!0);else if(this.prev<e.finallyLoc)return c(e.finallyLoc)}else if(h){if(this.prev<e.catchLoc)return c(e.catchLoc,!0)}else if(i){if(this.prev<e.finallyLoc)return c(e.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(a,b){__p&&__p();for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.tryLoc<=this.prev&&g.call(d,"finallyLoc")&&this.prev<d.finallyLoc){var e=d;break}}e&&(a==="break"||a==="continue")&&e.tryLoc<=b&&b<=e.finallyLoc&&(e=null);d=e?e.completion:{};d.type=a;d.arg=b;e?this.next=e.finallyLoc:this.complete(d);return p},complete:function(a,b){if(a.type==="throw")throw a.arg;a.type==="break"||a.type==="continue"?this.next=a.arg:a.type==="return"?(this.rval=a.arg,this.next="end"):a.type==="normal"&&b&&(this.next=b)},finish:function(a){for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.finallyLoc===a){this.complete(c.completion,c.afterLoc);y(c);return p}}},"catch":function(a){__p&&__p();for(var b=this.tryEntries.length-1;b>=0;--b){var c=this.tryEntries[b];if(c.tryLoc===a){var d=c.completion;if(d.type==="throw"){var e=d.arg;y(c)}return e}}throw new Error("illegal catch attempt")},delegateYield:function(a,b,c){this.delegate={iterator:A(a),resultName:b,nextLoc:c};return p}}}),null);
__d("StreamBlockReader",["Promise","regeneratorRuntime"],(function(a,b,c,d,e,f){__p&&__p();function a(a){"use strict";__p&&__p();if(!a.getReader)throw new Error("No getReader method found on given object");this.$3=a.getReader();this.$1="";this.$2=null;this.$4=!1;this.$5="utf-8";this.$6="";this.$9=!1;this.$8=function(){return b("Promise").reject("Sorry, you are somehow using this too early.")};this.$7=new(b("Promise"))(function(a,b){this.$8=a}.bind(this))}a.prototype.changeEncoding=function(a){"use strict";if(this.$2)throw new Error("Decoder already in use, encoding cannot be changed");this.$5=a};a.prototype.$10=function(){"use strict";if(!self.TextDecoder)throw new Error("TextDecoder is not supported here");this.$2||(this.$2=new self.TextDecoder(this.$5));return this.$2};a.prototype.$11=function(){"use strict";if(this.$9)throw new Error("Something else is already reading from this reader");this.$9=!0};a.prototype.$12=function(){"use strict";this.$9=!1};a.prototype.isDone=function(){"use strict";return this.$4};a.prototype.$13=function(){"use strict";__p&&__p();var a,c,d,e;return b("regeneratorRuntime").async(function(f){__p&&__p();while(1)switch(f.prev=f.next){case 0:if(!(this.$6!=="")){f.next=4;break}a=this.$6;this.$6="";return f.abrupt("return",a);case 4:if(!this.isDone()){f.next=6;break}throw new Error("You cannot read from a stream that is done");case 6:f.next=8;return b("regeneratorRuntime").awrap(this.$3.read());case 8:c=f.sent;d=c.done;e=c.value;this.$4=d;d&&this.$8();return f.abrupt("return",e?this.$10().decode(e,{stream:!d}):"");case 14:case"end":return f.stop()}},null,this)};a.prototype.readNextBlock=function(){"use strict";__p&&__p();var a;return b("regeneratorRuntime").async(function(b){while(1)switch(b.prev=b.next){case 0:this.$11();a=this.$13();this.$12();return b.abrupt("return",a);case 4:case"end":return b.stop()}},null,this)};a.prototype.readUntilStringOrEnd=function(a){"use strict";return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(this.readUntilOneOfStringOrEnd_DO_NOT_USE([a]));case 2:return c.abrupt("return",c.sent);case 3:case"end":return c.stop()}},null,this)};a.prototype.readUntilStringOrThrow=function(a){"use strict";__p&&__p();var c,d,e;return b("regeneratorRuntime").async(function(f){__p&&__p();while(1)switch(f.prev=f.next){case 0:if(a){f.next=2;break}throw new Error("cannot read empty string");case 2:this.$11(),c="",d=0;case 5:if(this.isDone()){f.next=22;break}f.next=8;return b("regeneratorRuntime").awrap(this.$13());case 8:c+=f.sent;if(!(c.length<a.length)){f.next=11;break}return f.abrupt("continue",5);case 11:e=c.substring(d).indexOf(a);if(!(e!==-1)){f.next=19;break}e+=d;this.$6=c.substring(e+a.length);this.$12();return f.abrupt("return",c.substring(0,e));case 19:d=c.length-a.length+1;case 20:f.next=5;break;case 22:this.$6=c;this.$12();throw new Error("Breakpoint not found");case 25:case"end":return f.stop()}},null,this)};a.prototype.readUntilOneOfStringOrEnd_DO_NOT_USE=function(a){"use strict";__p&&__p();var c,d,e,f;return b("regeneratorRuntime").async(function(g){__p&&__p();while(1)switch(g.prev=g.next){case 0:this.$11(),c="";case 2:if(this.isDone()){g.next=19;break}g.next=5;return b("regeneratorRuntime").awrap(this.$13());case 5:c+=g.sent,d=0;case 7:if(!(d<a.length)){g.next=17;break}e=a[d];f=c.indexOf(e);if(!(f!==-1)){g.next=14;break}this.$6=c.substring(f+e.length);this.$12();return g.abrupt("return",c.substring(0,f));case 14:d++;g.next=7;break;case 17:g.next=2;break;case 19:this.$12();return g.abrupt("return",c);case 21:case"end":return g.stop()}},null,this)};a.prototype.waitUntilDone=function(){"use strict";return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:return a.abrupt("return",this.$7);case 1:case"end":return a.stop()}},null,this)};e.exports=a}),null);
__d("FetchStreamTransport",["regeneratorRuntime","ArbiterMixin","FBLogger","FetchStreamConfig","StreamBlockReader","TimeSlice","URI","mixin","nullthrows"],(function $module_FetchStreamTransport(global,require,requireDynamic,requireLazy,module,exports){__p&&__p();var _mixin,_superProto,instance_count=0;_mixin=babelHelpers.inherits(FetchStreamTransport,require("mixin")(require("ArbiterMixin")));_superProto=_mixin&&_mixin.prototype;function FetchStreamTransport(uri){"use strict";__p&&__p();if(!self.ReadableStream||!self.fetch||!Request||!TextDecoder)throw new Error("fetch stream transport is not supported here");_superProto.constructor.call(this);this.$FetchStreamTransport6=null;this.$FetchStreamTransport1=uri;this.$FetchStreamTransport3=!1;this.$FetchStreamTransport4=!1;this.$FetchStreamTransport5=!1;this.$FetchStreamTransport2=++instance_count;return this}FetchStreamTransport.prototype.hasFinished=function(){"use strict";return this.$FetchStreamTransport5};FetchStreamTransport.prototype.getRequestURI=function(){"use strict";return new(require("URI"))(this.$FetchStreamTransport1).addQueryData({__a:1,__adt:this.$FetchStreamTransport2,__req:"fetchstream_"+this.$FetchStreamTransport2,ajaxpipe_fetch_stream:1})};FetchStreamTransport.prototype.send=function(){"use strict";if(this.$FetchStreamTransport3)throw new Error("FetchStreamTransport instances cannot be re-used.");this.$FetchStreamTransport3=!0;var req=new Request(this.getRequestURI().toString(),{mode:"same-origin",credentials:"include"});this.$FetchStreamTransport6=require("TimeSlice").getGuardedContinuation("FetchStreamTransport: waiting on first response");var fetchPromise=self.fetch(req,{redirect:"follow"});this.$FetchStreamTransport7(fetchPromise)};FetchStreamTransport.prototype.$FetchStreamTransport7=function _callee(fetchPromise){__p&&__p();var _this=this,response,reader,first,_loop,_ret;return require("regeneratorRuntime").async(function _callee$(_context2){__p&&__p();while(1)switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return require("regeneratorRuntime").awrap(fetchPromise);case 3:response=_context2.sent;_context2.next=9;break;case 6:_context2.prev=6,_context2.t0=_context2["catch"](0),this.abort();case 9:if(!(!response||!response.body||!response.ok)){_context2.next=12;break}this.abort();return _context2.abrupt("return");case 12:reader=new(require("StreamBlockReader"))(response.body),first=!0,_loop=function _loop(){__p&&__p();var nextData;return require("regeneratorRuntime").async(function _loop$(_context){__p&&__p();while(1)switch(_context.prev=_context.next){case 0:_context.next=2;return require("regeneratorRuntime").awrap(reader.readUntilStringOrEnd(require("FetchStreamConfig").delim));case 2:nextData=_context.sent;if(!_this.$FetchStreamTransport4){_context.next=5;break}return _context.abrupt("return","break");case 5:require("nullthrows")(_this.$FetchStreamTransport6)(function(){__p&&__p();if(first&&nextData.startsWith("<")){require("FBLogger")("FetchStreamTransport").mustfix("Endpoint: %s is sending a raw HTML response instead of properly formatted payload",this.$FetchStreamTransport1.toString());var node=document.createElement("div");node.innerHTML=nextData;var scripts=node.getElementsByTagName("script");for(var i=0;i<scripts.length;i++)eval(scripts[i].innerHTML);this.$FetchStreamTransport5=!0;return}first=!1;var parsedResponse=JSON.parse(nextData);reader.isDone()||parsedResponse.finished?this.$FetchStreamTransport5=!0:this.$FetchStreamTransport6=require("TimeSlice").getGuardedContinuation("FetchStreamTransport: waiting on next response");this.inform("response",parsedResponse.content)}.bind(_this));case 6:case"end":return _context.stop()}},null,this)};case 15:if(!(!this.$FetchStreamTransport5&&!this.$FetchStreamTransport4)){_context2.next=23;break}_context2.next=18;return require("regeneratorRuntime").awrap(_loop());case 18:_ret=_context2.sent;if(!(_ret==="break")){_context2.next=21;break}return _context2.abrupt("break",23);case 21:_context2.next=15;break;case 23:case"end":return _context2.stop()}},null,this,[[0,6]])};FetchStreamTransport.prototype.abort=function(){"use strict";__p&&__p();if(this.$FetchStreamTransport4||this.$FetchStreamTransport5)return;this.$FetchStreamTransport4=!0;this.$FetchStreamTransport5=!0;if(this.$FetchStreamTransport6){var continuation=this.$FetchStreamTransport6;continuation(function(){this.inform("abort")}.bind(this))}else this.inform("abort")};module.exports=FetchStreamTransport}),null);
__d("HTTPErrors",["emptyFunction"],(function(a,b,c,d,e,f){a={get:b("emptyFunction"),getAll:b("emptyFunction")};e.exports=a}),null);
__d("JSONPTransport",["ArbiterMixin","DOM","HTML","TimeSlice","URI","mixin"],(function(a,b,c,d,e,f){__p&&__p();var g,h={},i=2,j="jsonp",k="iframe";function l(a){delete h[a]}d=babelHelpers.inherits(c,b("mixin")(b("ArbiterMixin")));g=d&&d.prototype;function c(a,b){"use strict";g.constructor.call(this),this._type=a,this._uri=b,this._hasResponse=!1,h[this.getID()]=this}c.prototype.getID=function(){"use strict";return this._id||(this._id=i++)};c.prototype.hasFinished=function(){"use strict";return!(this.getID()in h)};c.prototype.getRequestURI=function(){"use strict";return new(b("URI"))(this._uri).addQueryData({__a:1,__adt:this.getID(),__req:"jsonp_"+this.getID()})};c.prototype.getTransportFrame=function(){"use strict";if(this._iframe)return this._iframe;var a="transport_frame_"+this.getID();a=b("HTML")('<iframe class="hidden_elem" name="'+a+'" src="javascript:void(0)" />');return this._iframe=b("DOM").appendContent(document.body,a)[0]};c.prototype.send=function(){"use strict";this._type===j?setTimeout(function(){b("DOM").appendContent(document.body,b("DOM").create("script",{src:this.getRequestURI().toString(),type:"text/javascript"}))}.bind(this),0):(this.getTransportFrame().onload=this._checkForErrors.bind(this),this.getTransportFrame().src=this.getRequestURI().toString()),this._continuation=b("TimeSlice").getGuardedContinuation("JSONPTransport: waiting for first response")};c.prototype.createContinuationForFileForm_DO_NOT_USE=function(){"use strict";this._continuation=b("TimeSlice").getGuardedContinuation("JSONPTransport: waiting for first response")};c.prototype.handleResponse=function(a){"use strict";this._continuation(function(){this.inform("response",a),this.hasFinished()?setTimeout(this._cleanup.bind(this),0):this._continuation=b("TimeSlice").getGuardedContinuation("JSONPTransport: waiting for next response")}.bind(this))};c.prototype.abort=function(){"use strict";if(this._aborted)return;this._aborted=!0;this._cleanup();l(this.getID());this.inform("abort");this._continuation&&b("TimeSlice").cancel(this._continuation)};c.prototype._checkForErrors=function(){"use strict";this._hasResponse||this.abort()};c.prototype._cleanup=function(){"use strict";this._iframe&&(b("DOM").remove(this._iframe),this._iframe=null)};c.respond=function(b,c,d){"use strict";var e=h[b];if(e)e._hasResponse=!0,d||l(b),e._type==k&&(typeof c==="string"?c=JSON.parse(c):c=JSON.parse(JSON.stringify(c))),e.handleResponse(c);else{e=a.ErrorSignal;e&&!d&&e.logJSError("ajax",{error:"UnexpectedJsonResponse",extra:{id:b,uri:c.payload&&c.payload.uri||""}})}};c.respond=b("TimeSlice").guard(c.respond,"JSONPTransport.respond",{root:!0});e.exports=c}),null);
__d("SessionName",["SessionNameConfig","isInIframe"],(function(a,b,c,d,e,f){var g="_e_",h;function i(){h=(window.name||"").toString(),h.length==7&&h.substr(0,3)==g?h=h.substr(3):(h=b("SessionNameConfig").seed||"",b("isInIframe")()||(window.name=g+h))}e.exports={TOKEN:g,getName:function(){h===undefined&&i();return h}}}),null);
__d("bind",[],(function(a,b,c,d,e,f){__p&&__p();function a(a,b){__p&&__p();var c=Array.prototype.slice.call(arguments,2);if(typeof b!=="string")return Function.prototype.bind.apply(b,[a].concat(c));function d(){var d=c.concat(Array.prototype.slice.call(arguments));if(a[b])return a[b].apply(a,d)}d.toString=function(){return"bound lazily: "+a[b]};return d}e.exports=a}),null);
__d("executeAfter",[],(function(a,b,c,d,e,f){function a(a,b,c){return function(){a.apply(c||this,arguments),b.apply(c||this,arguments)}}e.exports=a}),null);
__d("FbtNumberType",["IntlNumberTypeConfig","IntlVariations"],(function(a,b,c,d,e,f){a=new Function("IntlVariations",'"use strict"; return (function(n) {'+b("IntlNumberTypeConfig").impl+"});")(b("IntlVariations"));e.exports={getNumberVariationType:a}}),null);
__d("FbtReactUtil",[],(function(a,b,c,d,e,f){a=typeof Symbol==="function"&&Symbol["for"]&&Symbol["for"]("react.element")||60103;var g=!1;b={REACT_ELEMENT_TYPE:a,defineProperty:function(a,b,c){g?Object.defineProperty(a,b,{configurable:!1,enumerable:!1,writable:!1,value:c}):a[b]=c}};e.exports=b}),18);
__d("FbtResult",["FbtReactUtil","FbtResultBase"],(function(a,b,c,d,e,f){__p&&__p();var g;c=babelHelpers.inherits(a,b("FbtResultBase"));g=c&&c.prototype;function a(a){"use strict";g.constructor.call(this,a),this.props={content:a},this.key=null,this.ref=null}d=function(a){return a.content};a.prototype.type=d;a.prototype.$$typeof=b("FbtReactUtil").REACT_ELEMENT_TYPE;e.exports=a}),18);
__d("I18nAssets",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();a.prototype.isComponentScriptFastI18nAvailable=function(){return!1};a.prototype.getStringFromHashKey=function(a){return""};a.prototype.isNativeModuleAvailable=function(){return!1};a.prototype.getString=function(a){return""};function a(){}e.exports=new a()}),18);
__d("InlineFbtResult",["cx","FbtReactUtil","FbtResultBase"],(function(a,b,c,d,e,f,g){__p&&__p();var h;function i(a,c,d,e){var f="_4qba";e&&(c==="TRANSLATION"?f="_4qbb":c==="APPROVE"?f="_4qbc":c==="REPORT"&&(f="_4qbd"));return{$$typeof:b("FbtReactUtil").REACT_ELEMENT_TYPE,type:"em",key:null,ref:null,props:{className:f,"data-intl-hash":e,"data-intl-translation":d,"data-intl-trid":"",children:a,suppressHydrationWarning:!0},_owner:null}}c=function(a){return i(a.content,a.inlineMode,a.translation,a.hash)};d=babelHelpers.inherits(a,b("FbtResultBase"));h=d&&d.prototype;function a(a,b,c,d){"use strict";h.constructor.call(this,a),this.props={content:a,inlineMode:b,translation:c,hash:d},this.key=null,this.ref=null}a.prototype.type=c;a.prototype.$$typeof=b("FbtReactUtil").REACT_ELEMENT_TYPE;e.exports=a}),null);
__d("escapeRegex",[],(function(a,b,c,d,e,f){"use strict";function a(a){return a.replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")}e.exports=a}),null);
__d("intlNumUtils",["NumberFormatConfig","escapeRegex"],(function(a,b,c,d,e,f){__p&&__p();var g=3;f=["\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/."];var h={};function i(a){h[a]||(h[a]=new RegExp(a,"i"));return h[a]}var j=i(f.reduce(function(a,c,d){return a+(d?"|":"")+"("+b("escapeRegex")(c)+")"},""));function k(a,c,d,e,f,h,j){__p&&__p();d=d||"";e=e||".";f=f||0;h=h||{primaryGroupSize:g,secondaryGroupSize:g};var k=h.primaryGroupSize||g;h=h.secondaryGroupSize||k;j=j&&j.digits;c===undefined||c===null?a=a.toString():typeof a==="string"?a=p(a,c):a=n(a,c);c=a.toString().split(".");a=c[0];c=c[1];if(Math.abs(parseInt(a,10)).toString().length>=f){f="$1"+d+"$2$3";k="(\\d)(\\d{"+(k-0)+"})($|\\D)";k=a.replace(i(k),f);if(k!=a){a=k;h="(\\d)(\\d{"+(h-0)+"})("+b("escapeRegex")(d)+")";d=i(h);while((k=a.replace(d,f))!=a)a=k}}j&&(a=l(a,j),c=c&&l(c,j));h=a;c&&(h+=e+c);return h}function l(a,b){var c="";for(var d=0;d<a.length;++d){var e=b[a.charCodeAt(d)-48];c+=e!==undefined?e:a[d]}return c}function a(a,c){return k(a,c,"",b("NumberFormatConfig").decimalSeparator,b("NumberFormatConfig").minDigitsForThousandsSeparator,b("NumberFormatConfig").standardDecimalPatternInfo,b("NumberFormatConfig").numberingSystemData)}function m(a,c){return k(a,c,b("NumberFormatConfig").numberDelimiter,b("NumberFormatConfig").decimalSeparator,b("NumberFormatConfig").minDigitsForThousandsSeparator,b("NumberFormatConfig").standardDecimalPatternInfo,b("NumberFormatConfig").numberingSystemData)}function c(a,b,c){var d=Math.floor(Math.log(a)/Math.LN10),e=a;d<c&&(e=a*Math.pow(10,-d+c));a=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)-c+1);e=Math.round(e/a)*a;d<c&&(e/=Math.pow(10,-d+c));return m(e,b)}function n(a,b){__p&&__p();b=b==null?0:b;var c=Math.pow(10,b);a=a;a=Math.round(a*c)/c;a=a+"";if(!b)return a;if(a.indexOf("e-")!==-1)return a;c=a.indexOf(".");var d;c==-1?(a+=".",d=b):d=b-(a.length-c-1);for(var b=0,c=d;b<c;b++)a+="0";return a}var o=function(a,b){for(var c=0;c<b;c++)a+="0";return a};function p(a,b){var c=a.indexOf("."),d=c===-1?a:a.slice(0,c);a=c===-1?"":a.slice(c+1);return b?d+"."+o(a.slice(0,b),b-a.length):d}var q={};(function(a){q[a]||(q[a]=new RegExp("([^\\/p]|^)"+b("escapeRegex")(a)+"(\\d*).*","i"));return q[a]});function r(a,c,d){__p&&__p();var e=t();e&&(a=a.split("").map(function(a){return e[a]||a}).join("").trim());a=a.replace(/^[^\d]*\-/,"\x02");a=a.replace(j,"");d=d||"";c=b("escapeRegex")(c);d=b("escapeRegex")(d);var f=i("^[^\\d]*\\d.*"+c+".*\\d[^\\d]*$");if(!f.test(a)){f=i("(^[^\\d]*)"+c+"(\\d*[^\\d]*$)");if(f.test(a)){a=a.replace(f,"$1\x01$2");return s(a)}f=i("^[^\\d]*[\\d "+b("escapeRegex")(d)+"]*[^\\d]*$");f.test(a)||(a="");return s(a)}f=i("(^[^\\d]*[\\d "+d+"]*)"+c+"(\\d*[^\\d]*$)");a=f.test(a)?a.replace(f,"$1\x01$2"):"";return s(a)}function s(a){a=a.replace(/[^0-9\u0001\u0002]/g,"").replace("\x01",".").replace("\x02","-");var b=Number(a);return a===""||isNaN(b)?null:b}function t(){var a={},c=b("NumberFormatConfig").numberingSystemData&&b("NumberFormatConfig").numberingSystemData.digits;if(!c)return null;for(var d=0;d<c.length;d++)a[c.charAt(d)]=d.toString();return a}function d(a){return r(a,b("NumberFormatConfig").decimalSeparator||".",b("NumberFormatConfig").numberDelimiter)}var u={formatNumber:a,formatNumberRaw:k,formatNumberWithThousandDelimiters:m,formatNumberWithLimitedSigFig:c,parseNumber:d,parseNumberRaw:r,truncateLongNumber:p,getFloatString:function(a,b,c){a=String(a);a=a.split(".");b=u.getIntegerString(a[0],b);return a.length===1?b:b+c+a[1]},getIntegerString:function(a,b){b===""&&(b=",");a=String(a);var c=/(\d+)(\d{3})/;while(c.test(a))a=a.replace(c,"$1"+b+"$2");return a}};e.exports=u}),null);
__d("Intl",["IntlPhonologicalRules","memoize"],(function(a,b,c,d,e,f){__p&&__p();d="[.!?\u3002\uff01\uff1f\u0964\u2026\u0eaf\u1801\u0e2f\uff0e]";var g=new RegExp(d+"[)\"'\xbb\u0f3b\u0f3d\u2019\u201d\u203a\u3009\u300b\u300d\u300f\u3011\u3015\u3017\u3019\u301b\u301e\u301f\ufd3f\uff07\uff09\uff3d\\s]*$"),h=b("memoize")(function(){__p&&__p();var a=[];for(var c in b("IntlPhonologicalRules").patterns){var d=b("IntlPhonologicalRules").patterns[c];for(var e in b("IntlPhonologicalRules").meta){var f=new RegExp(e.slice(1,-1),"g"),g=b("IntlPhonologicalRules").meta[e];c=c.replace(f,g);d=d.replace(f,g)}d==="javascript"&&(d=function(a){return a.slice(1).toLowerCase()});a.push([new RegExp(c.slice(1,-1),"g"),d])}return a});function a(a){var b=h();for(var c=0;c<b.length;c++){var d=b[c],e=d[0];d=d[1];a=a.replace(e,d)}return a.replace(/\x01/g,"")}function c(a){return typeof a!=="string"?!1:g.test(a)}e.exports={PUNCT_CHAR_CLASS:d,endsInPunct:c,applyPhonologicalRules:a}}),18);
__d("substituteTokens",["invariant","Intl"],(function(a,b,c,d,e,f,g){__p&&__p();var h=new RegExp("\\{([^}]+)\\}("+b("Intl").PUNCT_CHAR_CLASS+"*)","g");function i(a){return a}function a(a,c){__p&&__p();var d=c;if(!d)return a;typeof d==="object"||g(0);var e=[],f=[];c=a.replace(h,function(a,c,g){a=d[c];if(a&&typeof a==="object"){e.push(a);f.push(c);return"\x17"+g}else if(a===null)return"";return a+(b("Intl").endsInPunct(a)?"":g)}).split("\x17").map(b("Intl").applyPhonologicalRules);if(c.length===1)return c[0];a=[c[0]];for(var j=0;j<e.length;j++)a.push(i(e[j]),c[j+1]);return a}e.exports=a}),18);
__d("fbt",["invariant","Banzai","FbtLogger","FbtNumberType","FbtQTOverrides","FbtResult","FbtResultGK","GenderConst","I18nAssets","InlineFbtResult","IntlHoldoutGK","IntlVariations","IntlViewerContext","intlNumUtils","substituteTokens"],(function(a,b,c,d,e,f,g){__p&&__p();var h=b("FbtLogger").logger,i=b("FbtQTOverrides").overrides,j=!1,k={INDEX:0,SUBSTITUTION:1},l={NUMBER:0,GENDER:1},m={OBJECT:0,POSSESSIVE:1,REFLEXIVE:2,SUBJECT:3},n="_1",o={},p=function(){};p._=function(a,c,d){__p&&__p();if(d&&d.hash_key){if(j)return{text:a,fbt:!0,hashKey:d.hash_key};var e=null;b("I18nAssets").isComponentScriptFastI18nAvailable()&&(e=b("I18nAssets").getStringFromHashKey(d.hash_key));e==null&&b("I18nAssets").isNativeModuleAvailable()&&(e=b("I18nAssets").getString(d.hash_key),e&&(e=JSON.parse(e)));a=e||a}d={};e=a;a.__vcg&&(c=c||[],c.unshift([[b("IntlViewerContext").GENDER,"*"],null]));c&&(e=this._accessTable(a,d,c,0),e!==null||g(0));a=e;c=null;b("I18nAssets").isComponentScriptFastI18nAvailable()?"\nNote: Certain fbt constructs such as fbt.plural() and the third positional `variations` argument to fbt.param() are currently disallowed":"";typeof e==="string"||Array.isArray(e)||g(0);if(Array.isArray(e)){a=e[0];c=e[1];e="1_"+c;a=i[e]||a;i[e]&&p.logQTImpression(c);p.logImpression(c)}e=o[a];var f=this._hasKeys(d);if(e&&!f)return e;else{e=b("substituteTokens")(a,d);d=t(e,a,c);f||(o[a]=d);return d}};p._hasKeys=function(a){for(var b in a)return!0;return!1};p._accessTable=function(a,b,c,d){__p&&__p();if(d>=c.length)return a;else if(a==null)return null;var e=null,f=c[d],g=f[k.INDEX];if(Array.isArray(g))for(var h=0;h<g.length;++h){var i=a[g[h]];e=this._accessTable(i,b,c,d+1);if(e!=null)break}else a=g!==null?a[g]:a,e=this._accessTable(a,b,c,d+1);e!=null&&Object.assign(b,f[k.SUBSTITUTION]);return e};function q(a){if(b("IntlHoldoutGK").inIntlHoldout)return a===1?[n,"*"]:["*"];var c=b("FbtNumberType").getNumberVariationType(a);c&b("IntlVariations").BITMASK_NUMBER||g(0);return a===1?[n,c,"*"]:[c,"*"]}function r(a){if(b("IntlHoldoutGK").inIntlHoldout)return["*"];a&b("IntlVariations").BITMASK_GENDER||g(0);return[a,"*"]}p._enum=function(a,b){return[a,null]};p._subject=function(a){return[r(a),null]};p._param=function(a,c,d){__p&&__p();var e=null,f=!1;if(d)if(d[0]===l.NUMBER){var h=d.length>1?d[1]:c;typeof h==="number"||g(0);e=q(h);f=!0}else d[0]===l.GENDER?(d.length>1||g(0),e=r(d[1])):g(0);h={};h[a]=f&&typeof c==="number"?b("intlNumUtils").formatNumberWithThousandDelimiters(c):c;return[e,h]};p._plural=function(a,c,d){var e=q(a),f={};c&&(typeof d==="number"?f[c]=b("intlNumUtils").formatNumberWithThousandDelimiters(d):f[c]=d||b("intlNumUtils").formatNumberWithThousandDelimiters(a));return[e,f]};p._pronoun=function(a,c,d){c!==b("GenderConst").NOT_A_PERSON||!d||!d.human||g(0);d=s(a,c);return[[d,"*"],null]};function s(a,c){switch(c){case b("GenderConst").NOT_A_PERSON:return a===m.OBJECT||a===m.REFLEXIVE?b("GenderConst").NOT_A_PERSON:b("GenderConst").UNKNOWN_PLURAL;case b("GenderConst").FEMALE_SINGULAR:case b("GenderConst").FEMALE_SINGULAR_GUESS:return b("GenderConst").FEMALE_SINGULAR;case b("GenderConst").MALE_SINGULAR:case b("GenderConst").MALE_SINGULAR_GUESS:return b("GenderConst").MALE_SINGULAR;case b("GenderConst").MIXED_SINGULAR:case b("GenderConst").FEMALE_PLURAL:case b("GenderConst").MALE_PLURAL:case b("GenderConst").NEUTER_PLURAL:case b("GenderConst").UNKNOWN_PLURAL:return b("GenderConst").UNKNOWN_PLURAL;case b("GenderConst").NEUTER_SINGULAR:case b("GenderConst").UNKNOWN_SINGULAR:return a===m.REFLEXIVE?b("GenderConst").NOT_A_PERSON:b("GenderConst").UNKNOWN_PLURAL}return b("GenderConst").NOT_A_PERSON}p._name=function(a,b,c){c=r(c);var d={};d[a]=b;return[c,d]};p.logImpression=function(a){h&&h.logImpression(a);return a};p.logQTImpression=function(a){b("Banzai").post("intl_qt_event",{hash:a});return a};function t(a,c,d){if(!b("FbtResultGK").shouldReturnFbtResult&&b("FbtResultGK").inlineMode!=="REPORT")return a;a=typeof a==="string"?[a]:a;return b("FbtResultGK").inlineMode&&b("FbtResultGK").inlineMode!=="NO_INLINE"?new(b("InlineFbtResult"))(a,b("FbtResultGK").inlineMode,c,d):new(b("FbtResult"))(a)}p.enableJsonExportMode=function(){j=!0};p.disableJsonExportMode=function(){j=!1};e.exports=p}),18);
__d("isBonfireURI",[],(function(a,b,c,d,e,f){var g=new RegExp("(^|\\.)(get|my)bonfire\\.com$","i"),h=["https"];function a(a){if(a.isEmpty()&&a.toString()!=="#")return!1;return!a.getDomain()&&!a.getProtocol()?!1:h.indexOf(a.getProtocol())!==-1&&g.test(a.getDomain())}e.exports=a}),null);
__d("isMessengerDotComURI",[],(function(a,b,c,d,e,f){var g=new RegExp("(^|\\.)messenger\\.com$","i"),h=["https"];function a(a){if(a.isEmpty()&&a.toString()!=="#")return!1;return!a.getDomain()&&!a.getProtocol()?!1:h.indexOf(a.getProtocol())!==-1&&g.test(a.getDomain())}e.exports=a}),null);
__d("isWorkplaceDotComURI",[],(function(a,b,c,d,e,f){var g=new RegExp("(^|\\.)workplace\\.com$","i");function a(a){return a.getProtocol()==="https"&&g.test(a.getDomain())}e.exports=a}),null);
__d("promiseDone",["TAAL","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){__p&&__p();function a(a,c,d){var e=new Error("promiseDone"),f=arguments.length>1?a.then(c,d):a;f.then(null,function(a){b("setTimeoutAcrossTransitions")(function(){if(a instanceof Error)throw a;else{e.message=b("TAAL").blameToPreviousFile(a);throw e}},0)})}e.exports=a}),null);
__d("AsyncRequest",["errorCode","fbt","invariant","ix","Promise","Arbiter","ArtilleryAsyncRequestTracingAnnotator","AsyncDOM","AsyncRequestConfig","AsyncResponse","Bootloader","CSS","Deferred","DTSG","Env","ErrorUtils","Event","FBLogger","FetchStreamTransport","HTTPErrors","JSCC","Parent","PHPQuerySerializer","PixelRatioConst","ProfilingCounters","ResourceTimingsStore","ResourceTypes","ServerJS","SessionName","TimeSlice","URI","UserAgent_DEPRECATED","WebPixelRatio","ZeroRewrites","bind","clearTimeout","emptyFunction","evalGlobal","executeAfter","ge","getAsyncHeaders","getAsyncParams","gkx","goURI","ifRequired","isBonfireURI","isEmpty","isFacebookURI","isMessengerDotComURI","isWorkplaceDotComURI","killswitch","promiseDone","replaceTransportMarkers","setTimeout","setTimeoutAcrossTransitions"],(function $module_AsyncRequest(global,require,requireDynamic,requireLazy,module,exports,errorCode,fbt,invariant,ix){__p&&__p();var nineteenSecInMs=19e3;function hasUnloaded(){try{return!window.domready}catch(_unused){return!0}}function supportsUploadProgress(transport){return"upload"in transport&&"onprogress"in transport.upload}function supportsCrossOrigin(transport){return"withCredentials"in transport}function isNetworkError(transport){return transport.status in{0:1,12029:1,12030:1,12031:1,12152:1}}function validateResponseHandler(handler){var valid=!handler||typeof handler==="function";valid||require("FBLogger")("asyncresponse").mustfix("AsyncRequest response handlers must be functions. Pass a function, or use bind() to build one.");return valid}var last_id=2,id_threshold=last_id;require("Arbiter").subscribe("page_transition",function(_,message){id_threshold=message.id});function AsyncRequest(uri){"use strict";__p&&__p();this._allowIrrelevantRequests=!1,this._delayPreDisplayJS=!1,this._shouldReplaceTransportMarkers=require("gkx")("AT5Memmu70UpIS1xI3COUT3lBXzz0iUY-TObKzqdfQ0mqqF7VWsxqMFktNJB3nlXh6uBge6Yp5VEZXjYuakRkhRV8mqhGab4muDzekdMtZuu2w"),this._dispatchErrorResponse=function(asyncResponse,errorHandler){__p&&__p();var error=asyncResponse.getError();this.clearStatusIndicator();var log_data=this._sendTimeStamp&&{duration:Date.now()-this._sendTimeStamp,xfb_ip:this._xFbServer||"-"};asyncResponse.logError("async_error",log_data);if(!this._isRelevant()||error===1010){!1;this.abort();return}if(error==1357008||error==1357007||error==1357041||error==1442002||error==1357001){var is_confirmation=error==1357008||error==1357007;this.interceptHandler(asyncResponse);error==1357041?this._solveQuicksandChallenge(asyncResponse):error==1357007?this._displayServerDialog(asyncResponse,is_confirmation,!0):this._displayServerDialog(asyncResponse,is_confirmation)}else if(this.initialHandler(asyncResponse)!==!1){require("clearTimeout")(this.timer);try{errorHandler(asyncResponse)}catch(e){this.finallyHandler(asyncResponse);throw e}this.finallyHandler(asyncResponse)}}.bind(this),this._onStateChange=function(){__p&&__p();var transport=this.transport;if(!transport)return;try{AsyncRequest._inflightCount--;require("ResourceTimingsStore").measureResponseReceived(require("ResourceTypes").XHR,this.resourceTimingStoreUID);try{typeof transport.getResponseHeader!=="undefined"&&transport.getResponseHeader("X-FB-Debug")&&(this._xFbServer=transport.getResponseHeader("X-FB-Debug"))}catch(_unused2){}if(transport.status>=200&&transport.status<300)AsyncRequest.lastSuccessTime=Date.now(),this._handleXHRResponse(transport);else if(require("UserAgent_DEPRECATED").webkit()&&typeof transport.status==="undefined")this._invokeErrorHandler(1002);else if(require("AsyncRequestConfig").retryOnNetworkError&&isNetworkError(transport)&&this.remainingRetries>0&&!this._requestTimeout){this.remainingRetries--;delete this.transport;this.send(!0);return}else this._invokeErrorHandler();this.getOption("asynchronous_DEPRECATED")!==!1&&delete this.transport}catch(exception){if(hasUnloaded())return;delete this.transport;if(this.remainingRetries>0)this.remainingRetries--,this.send(!0);else{this.getOption("suppressErrorAlerts")||require("FBLogger")("AsyncRequest").catching(exception).mustfix("AsyncRequest exception when attempting to handle a state change");var ErrorSignal=global.ErrorSignal;ErrorSignal&&ErrorSignal.sendErrorSignal("async_xport_resp",[1007,this._xFbServer||"-",this.getURI(),exception.message].join(":"));this._invokeErrorHandler(1007)}}}.bind(this),this.continuation=require("TimeSlice").getPlaceholderReusableContinuation(),this.transport=null,this.method="POST",this.uri="",this.timeout=null,this.timer=null,this.initialHandler=require("emptyFunction"),this.handler=null,this.uploadProgressHandler=null,this.errorHandler=require("AsyncResponse").defaultErrorHandler,this.transportErrorHandler=null,this.timeoutHandler=null,this.interceptHandler=require("emptyFunction"),this.finallyHandler=require("emptyFunction"),this.abortHandler=require("emptyFunction"),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.logErrorsEnabled=require("AsyncRequestConfig").logAsyncRequest,this.allowInteractionServerTracing=!0,this.resourceTimingStoreUID=require("ResourceTimingsStore").getUID(require("ResourceTypes").XHR,uri!=null?uri.toString():""),this._warningList=[500,1010,1004],this.option={asynchronous_DEPRECATED:!0,suppressErrorHandlerWarning:!1,suppressEvaluation:!1,suppressErrorAlerts:!1,retries:0,jsonp:!1,bundle:!1,useIframeTransport:!1,handleErrorAfterUnload:!1,useFetchWithIframeFallback:!1},this.transportErrorHandler=require("bind")(this,"errorHandler"),uri!==undefined&&this.setURI(uri),this.setAllowCrossPageTransition(require("AsyncRequestConfig").asyncRequestsSurviveTransitionsDefault||!1)}AsyncRequest.prototype._dispatchResponse=function(asyncResponse){"use strict";__p&&__p();this.clearStatusIndicator();if(!this._isRelevant()){this._invokeErrorHandler(1010);return}if(this.initialHandler(asyncResponse)===!1)return;require("clearTimeout")(this.timer);if(asyncResponse.jscc_map){var jsccMap=require("JSCC").parse(asyncResponse.jscc_map);require("JSCC").init(jsccMap)}var suppress_js,handler=this.getHandler();if(handler)try{suppress_js=this._shouldSuppressJS(handler(asyncResponse))}catch(e){asyncResponse.is_last&&this.finallyHandler(asyncResponse);throw e}suppress_js||this._handleJSResponse(asyncResponse);asyncResponse.is_last&&this.finallyHandler(asyncResponse)};AsyncRequest.prototype._shouldSuppressJS=function(handler_return_value){"use strict";return handler_return_value===AsyncRequest.suppressOnloadToken};AsyncRequest.prototype._handlePreDisplayServerJS=function(serverJS,preDisplayJSMods){"use strict";__p&&__p();var _displayStarted=!1,preDisplayPromises=[],registerToBlockDisplayUntilDone_DONOTUSE=function registerToBlockDisplayUntilDone_DONOTUSE(){if(_displayStarted){require("FBLogger")("AsyncResponse").warn("registerToBlockDisplayUntilDone_DONOTUSE called after AsyncResponse display started. This is a no-op.");return function(){}}var timeoutId,deferrable=new(require("Deferred"))();preDisplayPromises.push(deferrable.getPromise());return require("TimeSlice").guard(function(){timeoutId&&require("clearTimeout")(timeoutId),deferrable.resolve()},"AsyncRequestDisplayBlockingEvent",{propagationType:require("TimeSlice").PropagationType.EXECUTION})};serverJS.handle(preDisplayJSMods,{bigPipeContext:{registerToBlockDisplayUntilDone_DONOTUSE:registerToBlockDisplayUntilDone_DONOTUSE}});_displayStarted=!0;return preDisplayPromises};AsyncRequest.prototype._hasEvalDomOp=function(domOps){"use strict";return domOps&&domOps.length?domOps.some(function(op){return op[0]==="eval"}):!1};AsyncRequest.prototype._handleJSResponse=function(asyncResponse){"use strict";__p&&__p();var relativeTo=this.getRelativeTo(),domOps=asyncResponse.domops,dtsgToken=asyncResponse.dtsgToken,jsMods=asyncResponse.jsmods,serverJS,savedServerJSInstance=asyncResponse.savedServerJSInstance;savedServerJSInstance&&savedServerJSInstance instanceof require("ServerJS")?serverJS=savedServerJSInstance:serverJS=new(require("ServerJS"))();serverJS.setRelativeTo(relativeTo);if(jsMods){var preDisplayJSMods={};preDisplayJSMods.define=jsMods.define;preDisplayJSMods.instances=jsMods.instances;preDisplayJSMods.markup=jsMods.markup;delete jsMods.define;delete jsMods.instances;delete jsMods.markup;this._hasEvalDomOp(domOps)&&(preDisplayJSMods.elements=jsMods.elements,delete jsMods.elements);serverJS.handle(preDisplayJSMods)}dtsgToken&&require("DTSG").setToken(dtsgToken);domOps&&require("AsyncDOM").invoke(domOps,relativeTo);jsMods&&serverJS.handle(jsMods);this._handleJSRegisters(asyncResponse,"onload");this._handleJSRegisters(asyncResponse,"onafterload")};AsyncRequest.prototype._handleJSRegisters=function(asyncResponse,phase){"use strict";var registers=asyncResponse[phase];if(registers)for(var ii=0;ii<registers.length;ii++)require("ErrorUtils").applyWithGuard(new Function(registers[ii]),this)};AsyncRequest.prototype.invokeResponseHandler=function(interpreted){"use strict";__p&&__p();if(typeof interpreted.redirect!=="undefined"){require("setTimeout")(function(){this.setURI(interpreted.redirect).send()}.bind(this),0);return}if(interpreted.bootloadOnly!==undefined){var toBootload=typeof interpreted.bootloadOnly==="string"?JSON.parse(interpreted.bootloadOnly):interpreted.bootloadOnly,_loop=function _loop(){__p&&__p();if(_isArray){if(_i>=_iterator.length)return"break";_ref=_iterator[_i++]}else{_i=_iterator.next();if(_i.done)return"break";_ref=_i.value}var rsrcs=_ref;require("TimeSlice").guard(function(){require("Bootloader").loadPredictedResourceMap(rsrcs)},"Bootloader.loadPredictedResourceMap",{root:!0})()};for(var _iterator=toBootload,_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var _ref,_ret=_loop();if(_ret==="break")break}return}if(!this.handler&&!this.errorHandler&&!this.transportErrorHandler&&!this.preBootloadHandler&&this.initialHandler===require("emptyFunction")&&this.finallyHandler===require("emptyFunction"))return;var response=interpreted.asyncResponse;if(typeof response!=="undefined"){this._artilleryHandle!=null&&this._artilleryHandle(response);if(!this._isRelevant()){this._invokeErrorHandler(1010);return}response.inlinejs&&require("evalGlobal")(response.inlinejs);response.lid&&(this._responseTime=Date.now(),global.CavalryLogger&&(this.cavalry=global.CavalryLogger.getInstance(response.lid)),this.lid=response.lid);ix.add(response.ixData);require("gkx").add(response.gkxData);response.resource_map&&require("Bootloader").setResourceMap(response.resource_map);response.bootloadable&&require("Bootloader").enableBootload(response.bootloadable);var dispatch,arbiter_event;if(response.getError()&&!response.getErrorIsWarning()){var handler=this.getErrorHandler().bind(this);dispatch=require("ErrorUtils").guard(this._dispatchErrorResponse,"AsyncRequest#_dispatchErrorResponse for "+this.getURI());dispatch=dispatch.bind(this,response,handler);this._logError(response);arbiter_event="error"}else{dispatch=require("ErrorUtils").guard(this._dispatchResponse.bind(this),"AsyncRequest#_dispatchResponse for "+this.getURI());dispatch=dispatch.bind(this,response);arbiter_event="response";var domOps=response.domops;if(!this._delayPreDisplayJS&&response.jsmods&&response.jsmods.pre_display_requires&&!this._hasEvalDomOp(domOps)&&!require("killswitch")("ASYNC_REQUEST_EARLY_RENDERING_OF_PREDISPLAY_PRIORITY_JS")){var jsMods=response.jsmods,preDisplayJSMods={};preDisplayJSMods.define=jsMods.define;preDisplayJSMods.instances=jsMods.instances;preDisplayJSMods.markup=jsMods.markup;delete jsMods.define;delete jsMods.instances;delete jsMods.markup;preDisplayJSMods.pre_display_requires=jsMods.pre_display_requires;delete jsMods.pre_display_requires;var serverJS=new(require("ServerJS"))();serverJS.setRelativeTo(this.getRelativeTo());response.savedServerJSInstance=serverJS;var preDisplayPromises=this._handlePreDisplayServerJS(serverJS,preDisplayJSMods);if(preDisplayPromises&&preDisplayPromises.length){var realDispatch=dispatch;dispatch=function dispatch(){require("promiseDone")(require("Promise").all(preDisplayPromises).then(realDispatch))}}}}dispatch=require("executeAfter")(dispatch,function(){require("Arbiter").inform("AsyncRequest/"+arbiter_event,{request:this,response:response})}.bind(this));var replace=!1;this.preBootloadHandler&&(replace=this.preBootloadHandler(response));response.css=response.css||[];response.js=response.js||[];require("Bootloader").loadResources(response.css.concat(response.js),require("AsyncRequestConfig").immediateDispatch?dispatch:function(){require("setTimeout")(dispatch,0)},replace,this.getURI())}else typeof interpreted.transportError!=="undefined"?this._xFbServer?this._invokeErrorHandler(1008):this._invokeErrorHandler(1012):this._invokeErrorHandler(1007)};AsyncRequest.prototype._logError=function(response){"use strict";__p&&__p();if(this.logErrorsEnabled&&!this.getOption("suppressErrorAlerts")){var message;try{message=JSON.stringify(response)}catch(_unused3){try{message=JSON.stringify({error:response.error,errorSummary:response.errorSummary,errorDescription:response.errorDescription})}catch(ex){require("FBLogger")("AsyncRequest").catching(ex).mustfix("Failed to stringify message");return}}require("FBLogger")("asyncresponse").mustfix("Async error response %s",message)}};AsyncRequest.prototype._invokeErrorHandler=function(explicitError){"use strict";__p&&__p();var transport=this.transport;if(!transport)return;var error;if(this.responseText==="")error=1002;else if(this._requestAborted)error=1011;else{try{error=explicitError||transport.status||1004}catch(_unused4){error=1005}!1===navigator.onLine&&(error=1006)}var desc,summary,silent=!0;if(error===1006)summary=fbt._("\u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0441\u0435\u0442\u0438"),desc=fbt._("\u0412\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0444\u043b\u0430\u0439\u043d. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0451 \u0440\u0430\u0437.");else if(error>=300&&error<=399){summary=fbt._("\u041f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435");desc=fbt._("\u0412\u0430\u0448 \u0434\u043e\u0441\u0442\u0443\u043f \u043a Facebook, \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d \u0438\u043b\u0438 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u0432\u0430\u0448\u0438\u043c \u043f\u043e\u0441\u0442\u0430\u0432\u0449\u0438\u043a\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.");var location=transport.getResponseHeader("Location");location&&require("goURI")(location,!0);silent=!0}else summary=fbt._("\u041e\u0439"),desc=fbt._("\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041c\u044b \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f \u0443\u0441\u0442\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0435 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u0440\u0435\u0435. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043f\u043e\u043f\u044b\u0442\u043a\u0443.");var async_response=new(require("AsyncResponse"))(this,transport);Object.assign(async_response,{error:error,errorSummary:summary,errorDescription:desc,silentError:silent});this._logError(async_response);require("setTimeout")(function(){require("Arbiter").inform("AsyncRequest/error",{request:this,response:async_response})}.bind(this),0);if(hasUnloaded()&&!this.getOption("handleErrorAfterUnload"))return;if(!this.transportErrorHandler){require("FBLogger")("asyncresponse").mustfix("Async request to %s failed with a %d error, but there was no error handler available to deal with it.",this.getURI(),error);return}var error_handler=this.getTransportErrorHandler().bind(this);!(this.getOption("suppressErrorAlerts")||this._warningList.indexOf(error)>-1)?require("FBLogger")("asyncresponse").mustfix("Async request failed with error %s: %s when requesting %s",error,desc.toString(),this.getURI()):this._warningList.indexOf(error)>-1&&require("FBLogger")("asyncresponse").warn("Async request failed with error %s: %s when requesting %s",error,desc.toString(),this.getURI());require("ErrorUtils").applyWithGuard(this._dispatchErrorResponse,this,[async_response,error_handler])};AsyncRequest.prototype._solveQuicksandChallenge=function(async_response){"use strict";var payload=async_response.getPayload();require("Bootloader").loadModules(["QuickSandSolver"],function(QuickSandSolver){QuickSandSolver.solveAndSendRequestBack(this,payload)}.bind(this),"AsyncRequest")};AsyncRequest.prototype._displayServerDialog=function(async_response,is_confirmation,allow_get){__p&&__p();allow_get===void 0&&(allow_get=!1);var payload=async_response.getPayload();if(payload.__dialog!==undefined){this._displayServerLegacyDialog(async_response,is_confirmation);return}var json=payload.__dialogx;new(require("ServerJS"))().handle(json);require("Bootloader").loadModules(["ConfirmationDialog"],function(ConfirmationDialog){ConfirmationDialog.setupConfirmation(async_response,this,allow_get)}.bind(this),"AsyncRequest")};AsyncRequest.prototype._displayServerLegacyDialog=function(async_response,is_confirmation){"use strict";__p&&__p();var model=async_response.getPayload().__dialog;require("Bootloader").loadModules(["Dialog"],function(Dialog){var dialog=new Dialog(model);is_confirmation&&dialog.setHandler(this._displayConfirmationHandler.bind(this,dialog));dialog.setCancelHandler(function(){var handler=this.getServerDialogCancelHandler();try{handler&&handler(async_response)}catch(e){throw e}finally{this.finallyHandler(async_response)}}.bind(this)).setCausalElement(this.relativeTo).show()}.bind(this),"AsyncRequest")};AsyncRequest.prototype._displayConfirmationHandler=function(dialog){"use strict";this.data.confirmed=1,Object.assign(this.data,dialog.getFormData()),this.send()};AsyncRequest.prototype.setJSONPTransport=function(transport){"use strict";transport.subscribe("response",this._handleJSONPResponse.bind(this)),transport.subscribe("abort",this._handleJSONPAbort.bind(this)),this.transport=transport};AsyncRequest.prototype._handleJSONPResponse=function(_,data){"use strict";var transport=this.transport;if(!transport)return;data.bootloadOnly||(this.is_first=this.is_first===undefined);var interpreted=this._interpretResponse(data);interpreted.asyncResponse&&(interpreted.asyncResponse.is_first=this.is_first,interpreted.asyncResponse.is_last=transport.hasFinished());this.invokeResponseHandler(interpreted);transport.hasFinished()&&delete this.transport};AsyncRequest.prototype._handleJSONPAbort=function(){"use strict";this._invokeErrorHandler(),delete this.transport};AsyncRequest.prototype._handleXHRResponse=function(transport){"use strict";__p&&__p();var interpreted;if(this.getOption("suppressEvaluation"))interpreted={asyncResponse:new(require("AsyncResponse"))(this,transport)};else{var text=transport.responseText,error=null;try{var safe_text=this._unshieldResponseText(text);try{var _response=eval("("+safe_text+")");interpreted=this._interpretResponse(_response)}catch(_unused5){error="excep",interpreted={transportError:"eval() failed on async to "+this.getURI()}}}catch(exception){error="empty",interpreted={transportError:exception.message}}if(error){var ErrorSignal=global.ErrorSignal;ErrorSignal&&ErrorSignal.sendErrorSignal("async_xport_resp",[(this._xFbServer?"1008_":"1012_")+error,this._xFbServer||"-",this.getURI(),text.length,text.substr(0,1600)].join(":"))}}this.invokeResponseHandler(interpreted)};AsyncRequest.prototype._unshieldResponseText=function(text){"use strict";var shield="for (;;);",shieldlen=shield.length;if(text.length<=shieldlen)throw new Error("Response too short on async to "+this.getURI());var offset=0;while(text.charAt(offset)==" "||text.charAt(offset)=="\n")offset++;offset&&text.substring(offset,offset+shieldlen)==shield&&!1;return text.substring(offset+shieldlen)};AsyncRequest.prototype._interpretResponse=function(response){"use strict";__p&&__p();if(response.redirect)return{redirect:response.redirect};if(response.bootloadOnly)return{bootloadOnly:response.bootloadOnly};this._shouldReplaceTransportMarkers&&response.payload&&require("replaceTransportMarkers")({relativeTo:this.getRelativeTo(),bigPipeContext:null},response.payload);var r=new(require("AsyncResponse"))(this);if(response.__ar!=1)require("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()),r.payload=response;else{Object.assign(r,response);var transport=this.transport;transport&&transport.getAllResponseHeaders!==undefined&&(r.responseHeaders=transport.getAllResponseHeaders())}return{asyncResponse:r}};AsyncRequest.prototype._isMultiplexable=function(){"use strict";__p&&__p();if(this.getOption("jsonp")||this.getOption("useIframeTransport")||this.getOption("useFetchWithIframeFallback")){require("FBLogger")("AsyncRequest").mustfix("You cannot bundle AsyncRequest that uses jsonp or iframe transport.");return!1}if(!require("isFacebookURI")(new(require("URI"))(this.uri))){require("FBLogger")("AsyncRequest").mustfix("You can not bundle AsyncRequest sent to non-facebook URIs.  Uri: %s",this.getURI());return!1}if(!this.getOption("asynchronous_DEPRECATED")){require("FBLogger")("AsyncRequest").mustfix("We cannot bundle synchronous AsyncRequests");return!1}return!0};AsyncRequest.prototype.handleResponse=function(response){"use strict";var interpreted=this._interpretResponse(response);this.invokeResponseHandler(interpreted)};AsyncRequest.prototype.setMethod=function(m){"use strict";this.method=m.toString().toUpperCase();return this};AsyncRequest.prototype.getMethod=function(){"use strict";return this.method};AsyncRequest.prototype.setData=function(obj){"use strict";this.data=obj;return this};AsyncRequest.prototype.setRequestHeader=function(name,value){"use strict";this.headers[name]=value;return this};AsyncRequest.prototype.setRawData=function(raw_data){"use strict";this.rawData=raw_data;return this};AsyncRequest.prototype.getData=function(){"use strict";return this.data};AsyncRequest.prototype.setContextData=function(key,value,enabled){"use strict";enabled=enabled===undefined?!0:enabled;enabled&&(this.context["_log_"+key]=value);return this};AsyncRequest.prototype._setUserActionID=function(){"use strict";this.userActionID=(require("SessionName").getName()||"-")+"/-"};AsyncRequest.prototype.setURI=function(uri){"use strict";__p&&__p();typeof uri==="string"&&uri.match(/^\/?u_\d+_\d+/)&&require("FBLogger")("asyncrequest").warn("Invalid URI %s",uri);var uri_obj=new(require("URI"))(uri);if((this.getOption("useIframeTransport")||this.getOption("useFetchWithIframeFallback"))&&!require("isFacebookURI")(uri_obj)){!1;return this}if(!this._allowCrossOrigin&&!this.getOption("jsonp")&&!this.getOption("useIframeTransport")&&!this.getOption("useFetchWithIframeFallback")&&!uri_obj.isSameOrigin()){!1;return this}this._setUserActionID();if(!uri||uri_obj.isEmpty()){!1;var ErrorSignal=global.ErrorSignal;if(ErrorSignal){var data={err_code:1013,vip:"-",duration:0,xfb_ip:"-",path:window.location.href,aid:this.userActionID};ErrorSignal.sendErrorSignal("async_error",JSON.stringify(data));ErrorSignal.sendErrorSignal("async_xport_stack",[1013,window.location.href,null,require("ErrorUtils").normalizeError(new Error()).stack].join(":"))}return this}this.uri=require("ZeroRewrites").rewriteURI(uri_obj);return this};AsyncRequest.prototype.getURI=function(){"use strict";return this.uri.toString()};AsyncRequest.prototype.delayPreDisplayJS=function(shouldDelayJS){shouldDelayJS===void 0&&(shouldDelayJS=!0);this._delayPreDisplayJS=shouldDelayJS;return this};AsyncRequest.prototype.setInitialHandler=function(fn){"use strict";this.initialHandler=fn;return this};AsyncRequest.prototype.setPayloadHandler=function(fn){"use strict";this.setHandler(function(response){return fn(response.payload)});return this};AsyncRequest.prototype.setHandler=function(fn){"use strict";validateResponseHandler(fn)&&(this.handler=fn);return this};AsyncRequest.prototype.getHandler=function(){"use strict";return this.handler||require("emptyFunction")};AsyncRequest.prototype.setUploadProgressHandler=function(fn){"use strict";validateResponseHandler(fn)&&(this.uploadProgressHandler=fn);return this};AsyncRequest.prototype.setErrorHandler=function(fn){"use strict";validateResponseHandler(fn)&&(this.errorHandler=fn);return this};AsyncRequest.prototype.setTransportErrorHandler=function(fn){"use strict";this.transportErrorHandler=fn;return this};AsyncRequest.prototype.getErrorHandler=function(){"use strict";return this.errorHandler||require("emptyFunction")};AsyncRequest.prototype.getTransportErrorHandler=function(){"use strict";return this.transportErrorHandler||require("emptyFunction")};AsyncRequest.prototype.setTimeoutHandler=function(timeout,fn){"use strict";validateResponseHandler(fn)&&(this.timeout=timeout,this.timeoutHandler=fn);return this};AsyncRequest.prototype.resetTimeout=function(timeout){"use strict";__p&&__p();if(this.timeoutHandler===null)!1;else if(timeout===null)this.timeout=null,require("clearTimeout")(this.timer),this.timer=null;else{var clear_on_quickling_event=!this._allowCrossPageTransition;this.timeout=timeout;require("clearTimeout")(this.timer);clear_on_quickling_event?this.timer=require("setTimeout")(this._handleTimeout.bind(this),this.timeout):this.timer=require("setTimeoutAcrossTransitions")(this._handleTimeout.bind(this),this.timeout)}return this};AsyncRequest.prototype._handleTimeout=function(){"use strict";this.continuation.last(function(){this._requestTimeout=!0;var func=this.timeoutHandler;this.abandon();func&&func(this);this._logError({timeout:this});require("setTimeout")(function(){require("Arbiter").inform("AsyncRequest/timeout",{request:this})}.bind(this),0)}.bind(this))};AsyncRequest.prototype.disableInteractionServerTracing=function(){"use strict";this.allowInteractionServerTracing=!1;return this};AsyncRequest.prototype.setNewSerial=function(){"use strict";this.id=++last_id;return this};AsyncRequest.prototype.setInterceptHandler=function(fn){"use strict";this.interceptHandler=fn;return this};AsyncRequest.prototype.setFinallyHandler=function(fn){"use strict";this.finallyHandler=fn;return this};AsyncRequest.prototype.setAbortHandler=function(fn){"use strict";this.abortHandler=fn;return this};AsyncRequest.prototype.getServerDialogCancelHandler=function(){"use strict";return this.serverDialogCancelHandler};AsyncRequest.prototype.setServerDialogCancelHandler=function(fn){"use strict";this.serverDialogCancelHandler=fn;return this};AsyncRequest.prototype.setPreBootloadHandler=function(fn){"use strict";this.preBootloadHandler=fn;return this};AsyncRequest.prototype.setReadOnly=function(readOnly){"use strict";typeof readOnly!=="boolean"?!1:this.readOnly=readOnly;return this};AsyncRequest.prototype.getReadOnly=function(){"use strict";return this.readOnly};AsyncRequest.prototype.setRelativeTo=function(element){"use strict";this.relativeTo=element;return this};AsyncRequest.prototype.getRelativeTo=function(){"use strict";return this.relativeTo};AsyncRequest.prototype.setStatusClass=function(c){"use strict";this.statusClass=c;return this};AsyncRequest.prototype.setStatusElement=function(element){"use strict";this.statusElement=element;return this};AsyncRequest.prototype.getStatusElement=function(){"use strict";return require("ge")(this.statusElement)};AsyncRequest.prototype._isRelevant=function(){"use strict";if(this._allowCrossPageTransition)return!0;return!this.id?!0:this.id>id_threshold};AsyncRequest.prototype.clearStatusIndicator=function(){"use strict";var statusElem=this.getStatusElement();statusElem&&(require("CSS").removeClass(statusElem,"async_saving"),require("CSS").removeClass(statusElem,this.statusClass))};AsyncRequest.prototype.addStatusIndicator=function(){"use strict";var statusElem=this.getStatusElement();statusElem&&(require("CSS").addClass(statusElem,"async_saving"),require("CSS").addClass(statusElem,this.statusClass))};AsyncRequest.prototype.specifiesWriteRequiredParams=function(){"use strict";return this.writeRequiredParams.every(function(param){this.data[param]=this.data[param]||require("Env")[param]||(require("ge")(param)||{}).value;return this.data[param]!==undefined?!0:!1},this)};AsyncRequest.prototype.setOption=function(opt,v){"use strict";typeof this.option[opt]!=="undefined"?this.option[opt]=v:!1;return this};AsyncRequest.prototype.getOption=function(opt){"use strict";typeof this.option[opt]==="undefined"&&!1;return this.option[opt]};AsyncRequest.prototype.abort=function(){"use strict";__p&&__p();this.continuation.last(function(){__p&&__p();var transport=this.transport;if(transport){var old_handler=this.getTransportErrorHandler();this.setOption("suppressErrorAlerts",!0);this.setTransportErrorHandler(require("emptyFunction"));this._requestAborted=!0;transport.abort();this.setTransportErrorHandler(old_handler)}this.abortHandler();AsyncMultiplex.unschedule(this)}.bind(this))};AsyncRequest.prototype.abandon=function(){"use strict";this.continuation.last(function(){require("clearTimeout")(this.timer),this.setOption("suppressErrorAlerts",!0).setHandler(require("emptyFunction")).setErrorHandler(require("emptyFunction")).setTransportErrorHandler(require("emptyFunction")),this.transport&&(this._requestAborted=!0,this.transport.abort()),this.abortHandler(),AsyncMultiplex.unschedule(this)}.bind(this))};AsyncRequest.prototype.setNectarData=function(nctrParams){"use strict";nctrParams&&(this.data.nctr===undefined&&(this.data.nctr={}),Object.assign(this.data.nctr,nctrParams));return this};AsyncRequest.prototype.setNectarModuleDataSafe=function(elem){"use strict";var setNectarModuleData=this.setNectarModuleData;setNectarModuleData&&setNectarModuleData.call(this,elem);return this};AsyncRequest.prototype.setAllowCrossPageTransition=function(allow){"use strict";this._allowCrossPageTransition=!!allow;this.timer&&this.resetTimeout(this.timeout);return this};AsyncRequest.prototype.getAllowIrrelevantRequests=function(){"use strict";return this._allowIrrelevantRequests};AsyncRequest.prototype.setAllowIrrelevantRequests=function(allowIrrelevantRequests){"use strict";this._allowIrrelevantRequests=allowIrrelevantRequests;return this};AsyncRequest.prototype.setAllowCrossOrigin=function(allow){"use strict";this._allowCrossOrigin=allow;return this};AsyncRequest.prototype.setAllowCredentials=function(allow){"use strict";this._allowCredentials=allow;return this};AsyncRequest.prototype.setIsBackgroundRequest=function(isBackgroundRequest){"use strict";this._isBackgroundRequest=isBackgroundRequest;return this};AsyncRequest.prototype.setReplaceTransportMarkers=function(value){value===void 0&&(value=!0);this._shouldReplaceTransportMarkers=value;return this};AsyncRequest.prototype.send=function(isRetry){__p&&__p();var _this$uri$addQueryDat;isRetry=isRetry||!1;if(!this.uri){!1;return!1}!this.errorHandler&&!this.getOption("suppressErrorHandlerWarning")&&!1;this.getOption("jsonp")&&this.method!="GET"&&this.setMethod("GET");(this.getOption("useIframeTransport")||this.getOption("useFetchWithIframeFallback"))&&this.method!="GET"&&(!1,this.setMethod("GET"));this.timeoutHandler!==null&&(this.getOption("jsonp")||this.getOption("useIframeTransport")||this.getOption("useFetchWithIframeFallback"))&&!1;if(!this.getReadOnly()){this.specifiesWriteRequiredParams();if(this.method!="POST"){!1;return!1}}if(document.location.search.toString().includes(this.uri.toString())){!1;return!1}Object.assign(this.data,require("getAsyncParams")(this.method));this.allowInteractionServerTracing&&(this._artilleryHandle=require("ArtilleryAsyncRequestTracingAnnotator").registerAsyncRequest(this,this.resourceTimingStoreUID));require("isEmpty")(this.context)||(Object.assign(this.data,this.context),this.data.ajax_log=1);require("Env").force_param&&Object.assign(this.data,require("Env").force_param);this._setUserActionID();if(this.getOption("bundle")&&this._isMultiplexable()){AsyncMultiplex.schedule(this);return!0}this.setNewSerial();this.getOption("asynchronous_DEPRECATED")||this.uri.addQueryData({__s:1});this.uri.addQueryData((_this$uri$addQueryDat={},_this$uri$addQueryDat[require("PixelRatioConst").cookieName]=require("WebPixelRatio").get(),_this$uri$addQueryDat));require("Arbiter").inform("AsyncRequest/send",{request:this});var uri_str,query;this.method=="GET"||this.rawData?(uri_str=this.uri.addQueryData(this.data).toString(),query=this.rawData||""):(this._allowCrossOrigin&&this.uri.addQueryData({__a:1}),uri_str=this.uri.toString(),query=require("PHPQuerySerializer").serialize(this.data));if(this.transport){!1;return!1}if(this.getOption("useFetchWithIframeFallback"))try{var _transport=new(require("FetchStreamTransport"))(this.uri);this.setJSONPTransport(_transport);this._markRequestSent();_transport.send();this.setOption("useIframeTransport",!1);return!0}catch(_unused6){this.setOption("useFetchWithIframeFallback",!1),this.setOption("useIframeTransport",!0)}if(this.getOption("jsonp")||this.getOption("useIframeTransport")){requireLazy(["JSONPTransport"],function(JSONPTransport){var transport=new JSONPTransport(this.getOption("jsonp")?"jsonp":"iframe",this.uri);this.setJSONPTransport(transport);this._markRequestSent();transport.send();require("ProfilingCounters").incrementCounter("ASYNC_REQUEST_COUNT",1)}.bind(this));return!0}var transport=require("ZeroRewrites").getTransportBuilderForURI(this.uri)();if(!transport){!1;return!1}this.schedule("AsyncRequest.send");transport.onreadystatechange=function(){transport.readyState===4&&this.continuation.last(this._onStateChange)}.bind(this);this.uploadProgressHandler&&supportsUploadProgress(transport)&&(transport.upload.onprogress=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];this.continuation(function(){this.uploadProgressHandler&&this.uploadProgressHandler.apply(this,args)}.bind(this))}.bind(this));isRetry||(this.remainingRetries=this.getOption("retries"));global.ErrorSignal&&(this._sendTimeStamp=this._sendTimeStamp||Date.now());this.transport=transport;try{transport.open(this.method,uri_str,this.getOption("asynchronous_DEPRECATED"))}catch(exception){!1;return!1}if(!this.uri.isSameOrigin()&&!this.getOption("jsonp")&&!this.getOption("useIframeTransport")&&!this.getOption("useFetchWithIframeFallback")){if(!supportsCrossOrigin(transport)){!1;return!1}this._canSendCredentials()&&(transport.withCredentials=!0)}this.method=="POST"&&!this.rawData&&transport.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this._isBackgroundRequest&&transport.setRequestHeader("X_FB_BACKGROUND_STATE","1");var asyncHeaders=require("getAsyncHeaders")(this.uri);Object.keys(asyncHeaders).forEach(function(name){transport&&transport.setRequestHeader(name,asyncHeaders[name])});require("Arbiter").inform("AsyncRequest/will_send",{request:this});if(transport)for(var headerName in this.headers)Object.prototype.hasOwnProperty.call(this.headers,headerName)&&transport.setRequestHeader(headerName,this.headers[headerName]);this.addStatusIndicator();this._markRequestSent();transport.send(query);this.timeout!==null&&this.resetTimeout(this.timeout);AsyncRequest._inflightCount++;require("ProfilingCounters").incrementCounter("ASYNC_REQUEST_COUNT",1);return!0};AsyncRequest.prototype.schedule=function(name){"use strict";this.continuation=require("TimeSlice").getReusableContinuation(name)};AsyncRequest.prototype._canSendCredentials=function(){"use strict";if(this._allowCredentials===!1)return!1;var uri=new(require("URI"))(this.uri);return require("isFacebookURI")(uri)||require("isMessengerDotComURI")(uri)||require("isWorkplaceDotComURI")(uri)||require("isBonfireURI")(uri)};AsyncRequest.prototype._markRequestSent=function(){"use strict";var fullURI=new(require("URI"))(this.getURI()).getQualifiedURI().toString();require("ResourceTimingsStore").updateURI(require("ResourceTypes").XHR,this.resourceTimingStoreUID,fullURI);require("ResourceTimingsStore").annotate(require("ResourceTypes").XHR,this.resourceTimingStoreUID).addStringAnnotation("uri",fullURI);require("ifRequired")("TimeSliceAutoclosedInteraction",function(TimeSliceAutoclosedInteraction){return TimeSliceAutoclosedInteraction.getInteractionsActiveRightNow().forEach(function(interaction){return interaction.forResourceRequest(this.resourceTimingStoreUID).addStringAnnotation("requested_in_continuation","true")}.bind(this))}.bind(this));require("ResourceTimingsStore").measureRequestSent(require("ResourceTypes").XHR,this.resourceTimingStoreUID)};AsyncRequest.prototype.exec=function(isRetry){"use strict";if(this.getHandler()!==require("emptyFunction")||this.getErrorHandler()!==require("AsyncResponse").defaultErrorHandler)throw new Error("exec is an async function and does not allow previously set handlers");return new(require("Promise"))(function(resolve,reject){this.setHandler(resolve).setErrorHandler(reject).send(isRetry)}.bind(this))};AsyncRequest.bootstrap=function(href,elem,is_post){"use strict";__p&&__p();var method="GET",readonly=!0,data={};(is_post||elem&&elem.rel=="async-post")&&(method="POST",readonly=!1,href&&(href=new(require("URI"))(href),data=href.getQueryData(),href.setQueryData({})));var status_elem=require("Parent").byClass(elem,"stat_elem")||elem;if(status_elem&&require("CSS").hasClass(status_elem,"async_saving"))return!1;var async=new AsyncRequest(href).setReadOnly(readonly).setMethod(method).setData(data).setNectarModuleDataSafe(elem).setRelativeTo(elem);elem&&(async.setHandler(function(response){require("Event").fire(elem,"success",{response:response})}),async.setErrorHandler(function(response){require("Event").fire(elem,"error",{response:response})!==!1&&require("AsyncResponse").defaultErrorHandler(response)}));if(status_elem instanceof HTMLElement){async.setStatusElement(status_elem);var status_class=status_elem.getAttribute("data-status-class");status_class&&async.setStatusClass(status_class)}async.send();return!1};AsyncRequest.post=function(href,data){"use strict";new AsyncRequest(href).setReadOnly(!1).setMethod("POST").setData(data).send();return!1};AsyncRequest.getLastID=function(){"use strict";return last_id};AsyncRequest.getInflightCount=function(){"use strict";return this._inflightCount};AsyncRequest._inflightCount=0;var _asyncMultiplex,_pendingAsyncMultiplexes=[];function AsyncMultiplex(){"use strict";this._requests=[]}AsyncMultiplex.prototype.add=function(request){"use strict";this._requests.push(request)};AsyncMultiplex.prototype.remove=function(request){"use strict";var requests=this._requests,requestsSent=this._requestsSent;for(var ii=0,jj=requests.length;ii<jj;ii++)requests[ii]===request&&(requestsSent?requests[ii]=null:requests.splice(ii,1))};AsyncMultiplex.prototype.send=function(){"use strict";__p&&__p();this._requestsSent&&invariant(0);this._requestsSent=!0;this._wrapperRequest=null;var requests=this._requests;if(!requests.length)return;var request;if(requests.length===1)request=requests[0];else{var data=requests.filter(Boolean).map(function(request){return[request.uri.getPath(),require("PHPQuerySerializer").serialize(request.data)]});request=this._wrapperRequest=new AsyncRequest("/ajax/proxy.php").setAllowCrossPageTransition(!0).setData({data:data}).setHandler(this._handler.bind(this)).setTransportErrorHandler(this._transportErrorHandler.bind(this))}request&&request.setOption("bundle",!1).send()};AsyncMultiplex.prototype._handler=function(response){__p&&__p();var _this=this,responses=response.getPayload().responses;if(responses.length!==this._requests.length){!1;return}var _loop2=function _loop2(ii){__p&&__p();var request=_this._requests[ii];if(!request)return"continue";var request_path=request.uri.getPath();_this._wrapperRequest&&(request.id=_this._wrapperRequest.id);if(responses[ii][0]!==request_path){request.continuation.last(function(){request.invokeResponseHandler({transportError:"Wrong response order in bundled request to "+request_path})});return"continue"}request.continuation.last(function(){request.handleResponse(responses[ii][1])})};for(var ii=0;ii<this._requests.length;ii++){var _ret2=_loop2(ii);if(_ret2==="continue")continue}_pendingAsyncMultiplexes.splice(_pendingAsyncMultiplexes.indexOf(this,1))};AsyncMultiplex.prototype._transportErrorHandler=function(response){"use strict";var interpreted={transportError:response.errorDescription},paths=this._requests.filter(Boolean).map(function(request){this._wrapperRequest&&(request.id=this._wrapperRequest.id);request.invokeResponseHandler(interpreted);return request.uri.getPath()},this);!1};AsyncMultiplex.schedule=function(request){"use strict";request.schedule("AsyncMultiplex.schedule");_asyncMultiplex||(_asyncMultiplex=new AsyncMultiplex(),_pendingAsyncMultiplexes.push(_asyncMultiplex),require("TimeSlice").guard(function(){require("setTimeoutAcrossTransitions")(function(){_asyncMultiplex&&(_asyncMultiplex.send(),_asyncMultiplex=null)},0)},"AsyncMultiplex.schedule",{propagationType:require("TimeSlice").PropagationType.ORPHAN})());_asyncMultiplex.add(request);return _asyncMultiplex};AsyncMultiplex.unschedule=function(request){"use strict";_pendingAsyncMultiplexes.forEach(function(asyncMultiplex){asyncMultiplex.remove(request)})};AsyncRequest.suppressOnloadToken={};global.AsyncRequest=AsyncRequest;module.exports=AsyncRequest}),null);