mirror of
https://github.com/DarkSecDevelopers/HiddenEye-Legacy.git
synced 2024-03-22 21:12:55 +08:00
51 lines
98 KiB
JavaScript
51 lines
98 KiB
JavaScript
if (self.CavalryLogger) { CavalryLogger.start_js(["htYLh"]); }
|
|
|
|
__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}}),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("AsyncResponse",["invariant","Bootloader","FBLogger","HTML"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(){__p&&__p();function a(a,b){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}var c=a.prototype;c.getRequest=function(){return this.request};c.getPayload=function(){return this.payload};c.toError=function(){this.error!==0||g(0,5599);var a=this.errorSummary||"",b=this.getErrorDescriptionString()||"",c=new Error(a.toString()+": "+b);Object.assign(c,{code:this.error,description:this.errorDescription||"",descriptionString:b,response:this,summary:a,isSilent:this.silentError,isTransient:this.transientError});return c};c.getError=function(){return this.error};c.getErrorSummary=function(){return this.errorSummary};c.setErrorSummary=function(a){a=a===void 0?null:a;this.errorSummary=a;return this};c.getErrorDescription=function(){return this.errorDescription};c.getErrorDescriptionString=function(){var a=this.getErrorDescription();if(a==null)return null;if(b("HTML").isHTML(a)){var c=new(b("HTML"))(a);return c.getRootNode().textContent}return a.toString()};c.getErrorIsWarning=function(){return!!this.errorIsWarning};c.isTransient=function(){return!!this.transientError};c.isBlockedAction=function(){return!!this.blockedAction};c.getResponseHeader=function(a){__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};a.defaultErrorHandler=function(c){try{!c.silentError?a.verboseErrorHandler(c):b("FBLogger")("async_response").catching(c.toError()).warn("default error handler called")}catch(a){alert(c)}};a.verboseErrorHandler=function(a,c){b("Bootloader").loadModules(["ExceptionDialog"],function(b){return b.showAsyncError(a,c)},"AsyncResponse")};return a}();e.exports=a}),null);
|
|
__d("Deferred",["Promise"],(function(a,b,c,d,e,f){"use strict";__p&&__p();b("Promise").resolve();a=function(){__p&&__p();function a(a){var c=this;a=a||b("Promise");this.$1=!1;this.$2=new a(function(a,b){c.$3=a,c.$4=b})}var c=a.prototype;c.getPromise=function(){return this.$2};c.resolve=function(a){this.$1=!0,this.$3(a)};c.reject=function(a){this.$1=!0,this.$4(a)};c.isSettled=function(){return this.$1};return a}();e.exports=a}),null);
|
|
__d("guid",[],(function(a,b,c,d,e,f){function a(){return"f"+(Math.random()*(1<<30)).toString(16).replace(".","")}e.exports=a}),null);
|
|
__d("ArbiterMixin",["Arbiter","guid"],(function(a,b,c,d,e,f){__p&&__p();var g="arbiter$"+b("guid")(),h=Object.prototype.hasOwnProperty;a={_getArbiterInstance:function(){return h.call(this,g)?this[g]:this[g]=new(b("Arbiter"))()},inform:function(a,b,c){return this._getArbiterInstance().inform(a,b,c)},subscribe:function(a,b,c){return this._getArbiterInstance().subscribe(a,b,c)},subscribeOnce:function(a,b,c){return this._getArbiterInstance().subscribeOnce(a,b,c)},unsubscribe:function(a){this._getArbiterInstance().unsubscribe(a)},unsubscribeCurrentSubscription:function(){this._getArbiterInstance().unsubscribeCurrentSubscription()},releaseCurrentPersistentEvent:function(){this._getArbiterInstance().releaseCurrentPersistentEvent()},registerCallback:function(a,b){return this._getArbiterInstance().registerCallback(a,b)},query:function(a){return this._getArbiterInstance().query(a)}};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]===void 0){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=void 0;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=void 0;else if(e==="throw"){if(d===l){d=o;throw f}c.dispatchException(f)&&(e="next",f=void 0)}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=void 0);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=void 0;b.done=!0;return b};return b.next=b}}return{next:B}}i.values=A;function B(){return{value:void 0,done:!0}}z.prototype={constructor:z,reset:function(a){this.prev=0;this.next=0;this.sent=void 0;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]=void 0)},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();a=function(){"use strict";__p&&__p();function a(a){__p&&__p();var c=this;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){c.$8=a})}var c=a.prototype;c.changeEncoding=function(a){if(this.$2)throw new Error("Decoder already in use, encoding cannot be changed");this.$5=a};c.$10=function(){if(!self.TextDecoder)throw new Error("TextDecoder is not supported here");this.$2||(this.$2=new self.TextDecoder(this.$5));return this.$2};c.$11=function(){if(this.$9)throw new Error("Something else is already reading from this reader");this.$9=!0};c.$12=function(){this.$9=!1};c.isDone=function(){return this.$4};c.$13=function(){__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)};c.readNextBlock=function(){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)};c.readUntilStringOrEnd=function(a){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)};c.readUntilStringOrThrow=function(a){__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=23;break}f.t0=c;f.next=9;return b("regeneratorRuntime").awrap(this.$13());case 9:c=f.t0+=f.sent;if(!(c.length<a.length)){f.next=12;break}return f.abrupt("continue",5);case 12:e=c.substring(d).indexOf(a);if(!(e!==-1)){f.next=20;break}e+=d;this.$6=c.substring(e+a.length);this.$12();return f.abrupt("return",c.substring(0,e));case 20:d=c.length-a.length+1;case 21:f.next=5;break;case 23:this.$6=c;this.$12();throw new Error("Breakpoint not found");case 26:case"end":return f.stop()}},null,this)};c.readUntilOneOfStringOrEnd_DO_NOT_USE=function(a){__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=20;break}g.t0=c;g.next=6;return b("regeneratorRuntime").awrap(this.$13());case 6:c=g.t0+=g.sent,d=0;case 8:if(!(d<a.length)){g.next=18;break}e=a[d];f=c.indexOf(e);if(!(f!==-1)){g.next=15;break}this.$6=c.substring(f+e.length);this.$12();return g.abrupt("return",c.substring(0,f));case 15:d++;g.next=8;break;case 18:g.next=2;break;case 20:this.$12();return g.abrupt("return",c);case 22:case"end":return g.stop()}},null,this)};c.waitUntilDone=function(){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)};return a}();e.exports=a}),null);
|
|
__d("mixin",[],(function(a,b,c,d,e,f){__p&&__p();function a(){var a=function(){},b=0,c;while(b<0||arguments.length<=b?void 0:arguments[b]){c=b<0||arguments.length<=b?void 0:arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a.prototype[d]=c[d]);b+=1}return a}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 instance_count=0,FetchStreamTransport=function(_ref){"use strict";__p&&__p();babelHelpers.inheritsLoose(FetchStreamTransport,_ref);function FetchStreamTransport(uri){__p&&__p();var _this;if(!self.ReadableStream||!self.fetch||!Request||!TextDecoder)throw new Error("fetch stream transport is not supported here");_this=_ref.call(this)||this;_this.$FetchStreamTransport6=null;_this.$FetchStreamTransport1=uri;_this.$FetchStreamTransport3=!1;_this.$FetchStreamTransport4=!1;_this.$FetchStreamTransport5=!1;_this.$FetchStreamTransport2=++instance_count;return babelHelpers.assertThisInitialized(_this)||babelHelpers.assertThisInitialized(_this)}var _proto=FetchStreamTransport.prototype;_proto.hasFinished=function hasFinished(){return this.$FetchStreamTransport5};_proto.getRequestURI=function getRequestURI(){return new(require("URI"))(this.$FetchStreamTransport1).addQueryData({__a:1,__adt:this.$FetchStreamTransport2,__req:"fetchstream_"+this.$FetchStreamTransport2,ajaxpipe_fetch_stream:1})};_proto.send=function send(){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)};_proto.$FetchStreamTransport7=function $FetchStreamTransport7(fetchPromise){__p&&__p();var _this2=this,response,reader,first,_loop,_ret;return require("regeneratorRuntime").async(function $FetchStreamTransport7$(_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(!_this2.$FetchStreamTransport4){_context.next=5;break}return _context.abrupt("return","break");case 5:require("nullthrows")(_this2.$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",_this2.$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);_this2.$FetchStreamTransport5=!0;return}first=!1;var parsedResponse=JSON.parse(nextData);reader.isDone()||parsedResponse.finished?_this2.$FetchStreamTransport5=!0:_this2.$FetchStreamTransport6=require("TimeSlice").getGuardedContinuation("FetchStreamTransport: waiting on next response");_this2.inform("response",parsedResponse.content)});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]])};_proto.abort=function abort(){__p&&__p();var _this3=this;if(this.$FetchStreamTransport4||this.$FetchStreamTransport5)return;this.$FetchStreamTransport4=!0;this.$FetchStreamTransport5=!0;if(this.$FetchStreamTransport6){var continuation=this.$FetchStreamTransport6;continuation(function(){_this3.inform("abort")})}else this.inform("abort")};return FetchStreamTransport}(require("mixin")(require("ArbiterMixin")));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=2,i="jsonp",j="iframe";function k(a){delete g[a]}c=function(c){"use strict";__p&&__p();babelHelpers.inheritsLoose(d,c);function d(a,b){var d;d=c.call(this)||this;d._type=a;d._uri=b;d._hasResponse=!1;g[d.getID()]=babelHelpers.assertThisInitialized(d);return d}var e=d.prototype;e.getID=function(){return this._id||(this._id=h++)};e.hasFinished=function(){return!(this.getID()in g)};e.getRequestURI=function(){return new(b("URI"))(this._uri).addQueryData({__a:1,__adt:this.getID(),__req:"jsonp_"+this.getID()})};e.getTransportFrame=function(){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]};e.send=function(){this._type===i?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")};e.createContinuationForFileForm_DO_NOT_USE=function(){this._continuation=b("TimeSlice").getGuardedContinuation("JSONPTransport: waiting for first response")};e.handleResponse=function(a){var c=this;this._continuation(function(){c.inform("response",a),c.hasFinished()?setTimeout(c._cleanup.bind(c),0):c._continuation=b("TimeSlice").getGuardedContinuation("JSONPTransport: waiting for next response")})};e.abort=function(){if(this._aborted)return;this._aborted=!0;this._cleanup();k(this.getID());this.inform("abort");this._continuation&&b("TimeSlice").cancel(this._continuation)};e._checkForErrors=function(){this._hasResponse||this.abort()};e._cleanup=function(){this._iframe&&(b("DOM").remove(this._iframe),this._iframe=null)};d.respond=function(b,c,d){var e=g[b];if(e)e._hasResponse=!0,d||k(b),e._type==j&&(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||""}})}};return d}(b("mixin")(b("ArbiterMixin")));c.respond=b("TimeSlice").guard(c.respond,"JSONPTransport.respond",{root:!0});e.exports=c}),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("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("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("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}),null);
|
|
__d("FbtResultWWW",["FBLogger","FbtResultBase","killswitch"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a){b("FBLogger")("fbt").blameToPreviousDirectory().mustfix("Error using fbt string. Used method %s on Fbt string. Fbt string is designed to be immutable and should not be manipulated.",a)}a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.onStringSerializationError=function(a){var c="Context not logged.";if(!b("killswitch")("JS_RELIABILITY_FBT_LOGGING"))try{a=JSON.stringify(a);a!=null&&(c=a.substr(0,250))}catch(a){c=a.message}b("FBLogger")("fbt").blameToPreviousDirectory().mustfix("Converting to a string will drop content data. %s",c)};return c}(b("FbtResultBase"));c=a.usingStringProxyMethod(function(a){return function(){g(a);return String.prototype[a].apply(this,arguments)}});e.exports=c}),null);
|
|
__d("FbtResultBaseImpl",["FbtResultWWW"],(function(a,b,c,d,e,f){"use strict";e.exports=b("FbtResultWWW")}),null);
|
|
__d("FbtResult",["FbtReactUtil","FbtResultBaseImpl"],(function(a,b,c,d,e,f){__p&&__p();var g=function(a){return a.content};a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this,c)||this;d.$$typeof=b("FbtReactUtil").REACT_ELEMENT_TYPE;d.key=null;d.ref=null;d.type=g;d.props={content:c};return d}return c}(b("FbtResultBaseImpl"));e.exports=a}),null);
|
|
__d("FbtTableAccessor",[],(function(a,b,c,d,e,f){"use strict";a={getEnumResult:function(a){return[a,null]},getGenderResult:function(a,b,c){return[a,b]},getNumberResult:function(a,b,c){return[a,b]},getPronounResult:function(a){return[[a,"*"],null]}};e.exports=a}),null);
|
|
__d("FbtTranslations",[],(function(a,b,c,d,e,f){"use strict";function a(a,b,c,d){return null}function b(){return!1}e.exports={getTranslatedPayload:a,isComponentScript:b}}),null);
|
|
__d("InlineFbtResult",["cx","FbtReactUtil","FbtResultBaseImpl"],(function(a,b,c,d,e,f,g){__p&&__p();function h(a,c,d,e){var f="_4qba";e!=null&&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}}var i=function(a){return h(a.content,a.inlineMode,a.translation,a.hash)};a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c,d,e,f){var g;g=a.call(this,c)||this;g.$$typeof=b("FbtReactUtil").REACT_ELEMENT_TYPE;g.key=null;g.ref=null;g.type=i;g.props={content:c,inlineMode:d,translation:e,hash:f};return g}return c}(b("FbtResultBaseImpl"));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={getVariation:a}}),null);
|
|
__d("IntlNumberType",["FbtNumberType"],(function(a,b,c,d,e,f){a={get:function(a){return b("FbtNumberType")}};e.exports=a}),null);
|
|
__d("IntlVariationResolverImpl",["invariant","IntlNumberType","IntlVariations","IntlViewerContext"],(function(a,b,c,d,e,f,g){var h="_1";a={EXACTLY_ONE:h,getNumberVariations:function(a){var c=b("IntlNumberType").get(b("IntlViewerContext").locale).getVariation(a);c&b("IntlVariations").BITMASK_NUMBER||g(0,481);return a===1?[h,c,"*"]:[c,"*"]},getGenderVariations:function(a){a&b("IntlVariations").BITMASK_GENDER||g(0,482);return[a,"*"]}};e.exports=a}),null);
|
|
__d("IntlVariationResolver",["IntlHoldoutGK","IntlVariationResolverImpl"],(function(a,b,c,d,e,f){var g=b("IntlVariationResolverImpl").EXACTLY_ONE;a={getNumberVariations:function(a){return b("IntlHoldoutGK").inIntlHoldout?a===1?[g,"*"]:["*"]:b("IntlVariationResolverImpl").getNumberVariations(a)},getGenderVariations:function(a){return b("IntlHoldoutGK").inIntlHoldout?["*"]:b("IntlVariationResolverImpl").getGenderVariations(a)}};e.exports=a}),null);
|
|
__d("NumberFormatConsts",["NumberFormatConfig"],(function(a,b,c,d,e,f){a={get:function(a){return b("NumberFormatConfig")}};e.exports=a}),null);
|
|
__d("intlNumUtils",["IntlViewerContext","NumberFormatConsts","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===void 0&&(d="");e===void 0&&(e=".");f===void 0&&(f=0);h===void 0&&(h={primaryGroupSize:g,secondaryGroupSize:g});var k=h.primaryGroupSize||g;h=h.secondaryGroupSize||k;j=j&&j.digits;var m;c==null?m=a.toString():typeof a==="string"?m=q(a,c):m=o(a,c);a=m.split(".");c=a[0];m=a[1];if(Math.abs(parseInt(c,10)).toString().length>=f){a="$1"+d+"$2$3";f="(\\d)(\\d{"+(k-0)+"})($|\\D)";k=c.replace(i(f),a);if(k!=c){c=k;f="(\\d)(\\d{"+(h-0)+"})("+b("escapeRegex")(d)+")";h=i(f);while((k=c.replace(h,a))!=c)c=k}}j!=null&&(c=l(c,j),m=m&&l(m,j));d=c;m&&(d+=e+m);return d}function l(a,b){var c="";for(var d=0;d<a.length;++d){var e=b[a.charCodeAt(d)-48];c+=e!==void 0?e:a[d]}return c}function a(a,c){var d=b("NumberFormatConsts").get(b("IntlViewerContext").locale);return k(a,c,"",d.decimalSeparator,d.minDigitsForThousandsSeparator,d.standardDecimalPatternInfo,d.numberingSystemData)}function m(a,c){var d=b("NumberFormatConsts").get(b("IntlViewerContext").locale);return k(a,c,d.numberDelimiter,d.decimalSeparator,d.minDigitsForThousandsSeparator,d.standardDecimalPatternInfo,d.numberingSystemData)}function n(a){return a&&Math.floor(Math.log10(Math.abs(a)))}function c(a,b,c){__p&&__p();var d=n(a),e=a;d<c&&(e=a*Math.pow(10,-d+c));a=Math.pow(10,n(e)-c+1);e=Math.round(e/a)*a;if(d<c){e/=Math.pow(10,-d+c);if(b==null)return m(e,c-d-1)}return m(e,b)}function o(a,b){__p&&__p();b=b==null?0:b;var c=Math.pow(10,b);a=a;a=Math.round(a*c)/c;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 p=function(a,b){a=a;for(var c=0;c<b;c++)a+="0";return a};function q(a,b){var c=a.indexOf("."),d=c===-1?a:a.slice(0,c);a=c===-1?"":a.slice(c+1);return b!=null?d+"."+p(a.slice(0,b),b-a.length):d}function r(a,c,d){__p&&__p();d===void 0&&(d="");var e=t(),f=a;e&&(f=a.split("").map(function(a){return e[a]||a}).join("").trim());f=f.replace(/^[^\d]*\-/,"\x02");f=f.replace(j,"");a=b("escapeRegex")(c);c=b("escapeRegex")(d);d=i("^[^\\d]*\\d.*"+a+".*\\d[^\\d]*$");if(!d.test(f)){d=i("(^[^\\d]*)"+a+"(\\d*[^\\d]*$)");if(d.test(f)){f=f.replace(d,"$1\x01$2");return s(f)}d=i("^[^\\d]*[\\d "+b("escapeRegex")(c)+"]*[^\\d]*$");d.test(f)||(f="");return s(f)}d=i("(^[^\\d]*[\\d "+c+"]*)"+a+"(\\d*[^\\d]*$)");f=d.test(f)?f.replace(d,"$1\x01$2"):"";return s(f)}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=b("NumberFormatConsts").get(b("IntlViewerContext").locale),c={};a=a.numberingSystemData&&a.numberingSystemData.digits;if(a==null)return null;for(var d=0;d<a.length;d++)c[a.charAt(d)]=d.toString();return c}function d(a){var c=b("NumberFormatConsts").get(b("IntlViewerContext").locale);return r(a,c.decimalSeparator||".",c.numberDelimiter)}var u={formatNumber:a,formatNumberRaw:k,formatNumberWithThousandDelimiters:m,formatNumberWithLimitedSigFig:c,parseNumber:d,parseNumberRaw:r,truncateLongNumber:q,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;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("IntlPhonologicalRewrites",["IntlPhonologicalRules"],(function(a,b,c,d,e,f){a={get:function(a){return b("IntlPhonologicalRules")}};e.exports=a}),null);
|
|
__d("IntlPunctuation",["IntlPhonologicalRewrites","IntlViewerContext"],(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=[],i=null,j=b("IntlPhonologicalRewrites").get(b("IntlViewerContext").locale);function k(){__p&&__p();b("IntlViewerContext").locale&&b("IntlViewerContext").locale!==i&&(h=[],i=b("IntlViewerContext").locale,j=b("IntlPhonologicalRewrites").get(i));if(!h.length)for(var a in j.patterns){var c=j.patterns[a];for(var d in j.meta){var e=new RegExp(d.slice(1,-1),"g"),f=j.meta[d];a=a.replace(e,f);c=c.replace(e,f)}c==="javascript"&&(c=function(a){return a.slice(1).toLowerCase()});h.push([new RegExp(a.slice(1,-1),"g"),c])}return h}function a(a){var b=k();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}}),null);
|
|
__d("substituteTokens",["invariant","IntlPunctuation"],(function(a,b,c,d,e,f,g){__p&&__p();var h=new RegExp("\\{([^}]+)\\}("+b("IntlPunctuation").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,6041,a);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("IntlPunctuation").endsInPunct(a)?"":g)}).split("\x17").map(b("IntlPunctuation").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}),null);
|
|
__d("fbt",["invariant","Banzai","FbtLogger","FbtQTOverrides","FbtTableAccessor","FbtResult","FbtResultGK","GenderConst","FbtTranslations","InlineFbtResult","IntlViewerContext","intlNumUtils","substituteTokens","IntlVariationResolver"],(function(a,b,c,d,e,f,g){__p&&__p();var h=b("FbtLogger").logger,i=b("FbtQTOverrides").overrides,j=b("FbtTranslations").getTranslatedPayload,k=b("FbtTranslations").isComponentScript,l=b("IntlVariationResolver").getNumberVariations,m=b("IntlVariationResolver").getGenderVariations,n=!1,o="B!N@$T",p={INDEX:0,SUBSTITUTION:1},q={NUMBER:0,GENDER:1},r={OBJECT:0,POSSESSIVE:1,REFLEXIVE:2,SUBJECT:3},s={},t={},u=function(){};u._=function(a,c,d){__p&&__p();typeof a==="string"&&a.startsWith(o)&&(a in t||(t[a]=JSON.parse(a.substring(o.length))),a=t[a]);if(d&&(d.hk||d.ehk)){if(n)return{text:a,fbt:!0,hashKey:d.hk};d=j(d.hk,d.ehk,c,a)||{table:a,args:c};a=d.table;c=d.args}d={};var e=a;a.__vcg&&(c=c||[],c.unshift([m(b("IntlViewerContext").GENDER),null]));c&&(typeof e!=="string"&&(e=this._accessTable(a,c,0)),d=Object.assign.apply(Object,[{}].concat(c.map(function(a){return a[p.SUBSTITUTION]||{}}))),e!==null||g(0,479));a=e;c=null;var f=k()?"\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,480,JSON.stringify(e),f);if(Array.isArray(e)){a=e[0];c=e[1];f="1_"+c;a=i[f]||a;i[f]&&u.logQTImpression(c);u.logImpression(c)}e=s[a];f=this._hasKeys(d);if(e&&!f)return e;else{e=b("substituteTokens")(a,d);d=this._wrapContent(e,a,c);f||(s[a]=d);return d}};u._hasKeys=function(a){for(var b in a)return!0;return!1};u._accessTable=function(a,b,c){__p&&__p();if(c>=b.length)return a;else if(a==null)return null;var d=null,e=b[c];e=e[p.INDEX];if(Array.isArray(e))for(var f=0;f<e.length;++f){var g=a[e[f]];d=this._accessTable(g,b,c+1);if(d!=null)break}else a=e!==null?a[e]:a,d=this._accessTable(a,b,c+1);return d};u._enum=function(a,c){return b("FbtTableAccessor").getEnumResult(a)};u._subject=function(a){return b("FbtTableAccessor").getGenderResult(m(a),null,a)};u._param=function(a,c,d){__p&&__p();var e,f=null;e=(e={},e[a]=c,e);if(d)if(d[0]===q.NUMBER){var h=d.length>1?d[1]:c;typeof h==="number"||g(0,484);f=l(h);typeof c==="number"&&(e[a]=b("intlNumUtils").formatNumberWithThousandDelimiters(c));return b("FbtTableAccessor").getNumberResult(f,e,h)}else if(d[0]===q.GENDER){d.length>1||g(0,485);a=d[1];f=m(a);return b("FbtTableAccessor").getGenderResult(f,e,a)}else g(0,486);else return[f,e]};u._plural=function(a,c,d){var e=l(a),f={};c&&(typeof d==="number"?f[c]=b("intlNumUtils").formatNumberWithThousandDelimiters(d):f[c]=d||b("intlNumUtils").formatNumberWithThousandDelimiters(a));return b("FbtTableAccessor").getNumberResult(e,f,a)};u._pronoun=function(a,c,d){c!==b("GenderConst").NOT_A_PERSON||!d||!d.human||g(0,487);d=v(a,c);return b("FbtTableAccessor").getPronounResult(d)};function v(a,c){switch(c){case b("GenderConst").NOT_A_PERSON:return a===r.OBJECT||a===r.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===r.REFLEXIVE?b("GenderConst").NOT_A_PERSON:b("GenderConst").UNKNOWN_PLURAL}return b("GenderConst").NOT_A_PERSON}u._name=function(a,c,d){var e=m(d),f={};f[a]=c;return b("FbtTableAccessor").getGenderResult(e,f,d)};u.logImpression=function(a){h&&h.logImpression(a);return a};u.logQTImpression=function(a){b("Banzai").post("intl_qt_event",{hash:a});return a};u._wrapContent=function(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)};u.enableJsonExportMode=function(){n=!0};u.disableJsonExportMode=function(){n=!1};e.exports=u}),null);
|
|
__d("getAsyncHeaders",["ZeroCategoryHeader","isFacebookURI"],(function(a,b,c,d,e,f){function a(a){var c={};b("isFacebookURI")(a)&&b("ZeroCategoryHeader").value&&(c[b("ZeroCategoryHeader").header]=b("ZeroCategoryHeader").value);return c}e.exports=a}),null);
|
|
__d("AsyncRequest",["errorCode","fbt","invariant","ix","Promise","requireDeferred","Arbiter","ArtilleryAsyncRequestTracingAnnotator","AsyncDOM","AsyncRequestConfig","AsyncResponse","Bootloader","CSS","Deferred","DTSG","DTSG_ASYNC","Env","ErrorUtils","Event","FBLogger","FetchStreamTransport","HTTPErrors","JSCC","Parent","PHPQuerySerializer","ProfilingCounters","ResourceTimingsStore","ResourceTypes","ServerJS","SessionName","TimeSlice","URI","UserAgent_DEPRECATED","ZeroRewrites","bind","bx","clearTimeout","emptyFunction","evalGlobal","executeAfter","ge","getAsyncHeaders","getAsyncParams","gkx","goURI","ifRequired","isEmpty","isFacebookURI","isMessengerDotComURI","isWorkplaceDotComURI","killswitch","promiseDone","qex","replaceTransportMarkers","setTimeout","setTimeoutAcrossTransitions"],(function $module_AsyncRequest(global,require,requireDynamic,requireLazy,module,exports,errorCode,fbt,invariant,ix){"use strict";__p&&__p();var AsyncRequestPathTraversalTypedLoggerDeferred=require("requireDeferred")("AsyncRequestPathTraversalTypedLogger"),nineteenSecInMs=19e3;function hasUnloaded(){try{return!window.domready}catch(_unused){return!0}}function supportsProgress(transport){return"onprogress"in transport}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});var JSON_HIJACKING_SHIELD="for (;;);",JSON_HIJACKING_SHIELD_LEN=JSON_HIJACKING_SHIELD.length,AsyncRequest=function(){__p&&__p();function AsyncRequest(uri){__p&&__p();var _this=this;this._allowIrrelevantRequests=!1;this._delayPreDisplayJS=!1;this._shouldReplaceTransportMarkers=require("gkx")("678674");this._dispatchErrorResponse=function(asyncResponse,errorHandler){__p&&__p();var error=asyncResponse.getError();_this.clearStatusIndicator();if(!_this._isRelevant()||error===1010){_this.abort();return}if(_this._isServerDialogErrorCode(error)){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)}};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;_this.remainingRetries>0?(_this.remainingRetries--,_this.send(!0)):(_this.getOption("suppressErrorAlerts")||require("FBLogger")("AsyncRequest").catching(exception).mustfix("AsyncRequest exception when attempting to handle a state change"),_this._invokeErrorHandler(1007))}};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.flushedResponseTextParseIndex=0;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!==void 0&&this.setURI(uri);this.setAllowCrossPageTransition(require("AsyncRequestConfig").asyncRequestsSurviveTransitionsDefault||!1)}var _proto=AsyncRequest.prototype;_proto._dispatchResponse=function _dispatchResponse(asyncResponse){__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)};_proto._shouldSuppressJS=function _shouldSuppressJS(handler_return_value){return handler_return_value===AsyncRequest.suppressOnloadToken};_proto._handlePreDisplayServerJS=function _handlePreDisplayServerJS(serverJS,preDisplayJSMods){__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};_proto._hasEvalDomOp=function _hasEvalDomOp(domOps){return domOps&&domOps.length?domOps.some(function(op){return op[0]==="eval"}):!1};_proto._handleJSResponse=function _handleJSResponse(asyncResponse){__p&&__p();var relativeTo=this.getRelativeTo(),domOps=asyncResponse.domops,dtsgToken=asyncResponse.dtsgToken,dtsgAsyncGetToken=asyncResponse.dtsgAsyncGetToken,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);dtsgAsyncGetToken&&require("DTSG_ASYNC").setToken(dtsgAsyncGetToken);domOps&&require("AsyncDOM").invoke(domOps,relativeTo);jsMods&&serverJS.handle(jsMods);this._handleJSRegisters(asyncResponse,"onload");this._handleJSRegisters(asyncResponse,"onafterload")};_proto._handleJSRegisters=function _handleJSRegisters(asyncResponse,phase){var registers=asyncResponse[phase];if(registers)for(var ii=0;ii<registers.length;ii++)require("ErrorUtils").applyWithGuard(new Function(registers[ii]),this)};_proto.invokeResponseHandler=function invokeResponseHandler(interpreted){__p&&__p();if(typeof interpreted.redirect!=="undefined"){require("setTimeout")(function(){this.setURI(interpreted.redirect).send()}.bind(this),0);return}if(interpreted.bootloadOnly!==void 0){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("bx").add(response.bxData);require("gkx").add(response.gkxData);require("qex").add(response.qexData);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));this.preBootloadHandler&&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)},this.getURI())}else typeof interpreted.transportError!=="undefined"?this._xFbServer?this._invokeErrorHandler(1008):this._invokeErrorHandler(1012):this._invokeErrorHandler(1007)};_proto._logError=function _logError(response){__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)}};_proto._invokeErrorHandler=function _invokeErrorHandler(explicitError){__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._("No network connection"),desc=fbt._("Your browser appears to be offline. Please check your Internet connection and try again.");else if(error>=300&&error<=399){summary=fbt._("Redirection");desc=fbt._("Your access to Facebook was redirected or blocked by a third party at this time, please contact your ISP or reload.");var location=transport.getResponseHeader("Location");location&&require("goURI")(location,!0);silent=!0}else summary=fbt._("Oops!"),desc=fbt._("Something went wrong. We're working on getting this fixed as soon as we can. You may be able to try again.");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])};_proto._isServerDialogErrorCode=function _isServerDialogErrorCode(error){return error==1357008||error==1357007||error==1357041||error==1442002||error==1357001};_proto._solveQuicksandChallenge=function _solveQuicksandChallenge(async_response){var payload=async_response.getPayload();require("Bootloader").loadModules(["QuickSandSolver"],function(QuickSandSolver){QuickSandSolver.solveAndSendRequestBack(this,payload)}.bind(this),"AsyncRequest")};_proto._displayServerDialog=function _displayServerDialog(async_response,is_confirmation,allow_get){__p&&__p();allow_get===void 0&&(allow_get=!1);var payload=async_response.getPayload();if(payload.__dialog!==void 0){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")};_proto._displayServerLegacyDialog=function _displayServerLegacyDialog(async_response,is_confirmation){__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")};_proto._displayConfirmationHandler=function _displayConfirmationHandler(dialog){this.data.confirmed=1,Object.assign(this.data,dialog.getFormData()),this.send()};_proto.setJSONPTransport=function setJSONPTransport(transport){transport.subscribe("response",this._handleJSONPResponse.bind(this)),transport.subscribe("abort",this._handleJSONPAbort.bind(this)),this.transport=transport};_proto._handleJSONPResponse=function _handleJSONPResponse(_,data){var transport=this.transport;if(!transport)return;data.bootloadOnly||(this.is_first=this.is_first===void 0);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};_proto._handleJSONPAbort=function _handleJSONPAbort(){this._invokeErrorHandler(),delete this.transport};_proto._handleXHRResponse=function _handleXHRResponse(transport){__p&&__p();var interpreted;if(this.getOption("suppressEvaluation"))interpreted={asyncResponse:new(require("AsyncResponse"))(this,transport)};else try{var text=transport.responseText;text=this._filterOutFlushedText(text);var safe_text=this._unshieldResponseText(text),_response=eval("("+safe_text+")");interpreted=this._interpretResponse(_response)}catch(error){interpreted=error.message,require("FBLogger")("async_request").catching(error).warn("Faild to handle repsonse")}this.invokeResponseHandler(interpreted)};_proto._unshieldResponseText=function _unshieldResponseText(text){if(text.length<=JSON_HIJACKING_SHIELD_LEN)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+JSON_HIJACKING_SHIELD_LEN)==JSON_HIJACKING_SHIELD;return text.substring(offset+JSON_HIJACKING_SHIELD_LEN)};_proto._filterOutFlushedText=function _filterOutFlushedText(text){if(!this.flushedResponseHandler)return text;var index=text.indexOf(JSON_HIJACKING_SHIELD);return index<0?text:text.substr(index)};_proto._interpretResponse=function _interpretResponse(response){__p&&__p();if(response.redirect)return{redirect:response.redirect};if(response.bootloadOnly)return{bootloadOnly:response.bootloadOnly};var isServerDialog=response.error&&this._isServerDialogErrorCode(response.error);this._shouldReplaceTransportMarkers&&response.payload&&!isServerDialog&&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!==void 0&&(r.responseHeaders=transport.getAllResponseHeaders())}return{asyncResponse:r}};_proto._isMultiplexable=function _isMultiplexable(){__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};_proto.handleResponse=function handleResponse(response){var interpreted=this._interpretResponse(response);this.invokeResponseHandler(interpreted)};_proto.setMethod=function setMethod(m){this.method=m.toString().toUpperCase();return this};_proto.getMethod=function getMethod(){return this.method};_proto.setData=function setData(obj){this.data=obj;return this};_proto.setRequestHeader=function setRequestHeader(name,value){this.headers[name]=value;return this};_proto.setRawData=function setRawData(raw_data){this.rawData=raw_data;return this};_proto.getData=function getData(){return this.data};_proto.setContextData=function setContextData(key,value,enabled){enabled=enabled===void 0?!0:enabled;enabled&&(this.context["_log_"+key]=value);return this};_proto._setUserActionID=function _setUserActionID(){this.userActionID=(require("SessionName").getName()||"-")+"/-"};_proto.setURI=function setURI(uri){__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))return this;if(!this._allowCrossOrigin&&!this.getOption("jsonp")&&!this.getOption("useIframeTransport")&&!this.getOption("useFetchWithIframeFallback")&&!uri_obj.isSameOrigin())return this;this._setUserActionID();if(!uri||uri_obj.isEmpty()){require("FBLogger")("async_request").mustfix("URI cannot be empty");return this}this.uri=require("ZeroRewrites").rewriteURI(uri_obj);return this};_proto.getURI=function getURI(){return this.uri.toString()};_proto.delayPreDisplayJS=function delayPreDisplayJS(shouldDelayJS){shouldDelayJS===void 0&&(shouldDelayJS=!0);this._delayPreDisplayJS=shouldDelayJS;return this};_proto.setInitialHandler=function setInitialHandler(fn){this.initialHandler=fn;return this};_proto.setPayloadHandler=function setPayloadHandler(fn){this.setHandler(function(response){return fn(response.payload)});return this};_proto.setHandler=function setHandler(fn){validateResponseHandler(fn)&&(this.handler=fn);return this};_proto.setFlushedResponseHandler=function setFlushedResponseHandler(fn){validateResponseHandler(fn)&&(this.flushedResponseHandler=fn);return this};_proto.getHandler=function getHandler(){return this.handler||require("emptyFunction")};_proto.setProgressHandler=function setProgressHandler(fn){validateResponseHandler(fn)&&(this.progressHandler=fn);return this};_proto.setUploadProgressHandler=function setUploadProgressHandler(fn){validateResponseHandler(fn)&&(this.uploadProgressHandler=fn);return this};_proto.setErrorHandler=function setErrorHandler(fn){validateResponseHandler(fn)&&(this.errorHandler=fn);return this};_proto.setTransportErrorHandler=function setTransportErrorHandler(fn){this.transportErrorHandler=fn;return this};_proto.getErrorHandler=function getErrorHandler(){return this.errorHandler||require("emptyFunction")};_proto.getTransportErrorHandler=function getTransportErrorHandler(){return this.transportErrorHandler||require("emptyFunction")};_proto.setTimeoutHandler=function setTimeoutHandler(timeout,fn){validateResponseHandler(fn)&&(this.timeout=timeout,this.timeoutHandler=fn);return this};_proto.resetTimeout=function resetTimeout(timeout){if(!(this.timeoutHandler===null))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};_proto._handleTimeout=function _handleTimeout(){var _this2=this;this.continuation.last(function(){_this2._requestTimeout=!0;var func=_this2.timeoutHandler;_this2.abandon();func&&func(_this2);_this2._logError({timeout:_this2});require("setTimeout")(function(){require("Arbiter").inform("AsyncRequest/timeout",{request:this})}.bind(_this2),0)})};_proto.disableInteractionServerTracing=function disableInteractionServerTracing(){this.allowInteractionServerTracing=!1;return this};_proto.setNewSerial=function setNewSerial(){this.id=++last_id;return this};_proto.setInterceptHandler=function setInterceptHandler(fn){this.interceptHandler=fn;return this};_proto.setFinallyHandler=function setFinallyHandler(fn){this.finallyHandler=fn;return this};_proto.setAbortHandler=function setAbortHandler(fn){this.abortHandler=fn;return this};_proto.getServerDialogCancelHandler=function getServerDialogCancelHandler(){return this.serverDialogCancelHandler};_proto.setServerDialogCancelHandler=function setServerDialogCancelHandler(fn){this.serverDialogCancelHandler=fn;return this};_proto.setPreBootloadHandler=function setPreBootloadHandler(fn){this.preBootloadHandler=fn;return this};_proto.setReadOnly=function setReadOnly(readOnly){typeof readOnly!=="boolean"||(this.readOnly=readOnly);return this};_proto.getReadOnly=function getReadOnly(){return this.readOnly};_proto.setRelativeTo=function setRelativeTo(element){this.relativeTo=element;return this};_proto.getRelativeTo=function getRelativeTo(){return this.relativeTo};_proto.setStatusClass=function setStatusClass(c){this.statusClass=c;return this};_proto.setStatusElement=function setStatusElement(element){this.statusElement=element;return this};_proto.getStatusElement=function getStatusElement(){return require("ge")(this.statusElement)};_proto._isRelevant=function _isRelevant(){if(this._allowCrossPageTransition)return!0;return!this.id?!0:this.id>id_threshold};_proto.clearStatusIndicator=function clearStatusIndicator(){var statusElem=this.getStatusElement();statusElem&&(require("CSS").removeClass(statusElem,"async_saving"),require("CSS").removeClass(statusElem,this.statusClass))};_proto.addStatusIndicator=function addStatusIndicator(){var statusElem=this.getStatusElement();statusElem&&(require("CSS").addClass(statusElem,"async_saving"),require("CSS").addClass(statusElem,this.statusClass))};_proto.specifiesWriteRequiredParams=function specifiesWriteRequiredParams(){return this.writeRequiredParams.every(function(param){this.data[param]=this.data[param]||require("Env")[param]||(require("ge")(param)||{}).value;return this.data[param]!==void 0?!0:!1},this)};_proto.setOption=function setOption(opt,v){typeof this.option[opt]!=="undefined"&&(this.option[opt]=v);return this};_proto.getOption=function getOption(opt){typeof this.option[opt]==="undefined";return this.option[opt]};_proto.abort=function abort(){__p&&__p();var _this3=this;this.continuation.last(function(){__p&&__p();var transport=_this3.transport;if(transport){var old_handler=_this3.getTransportErrorHandler();_this3.setOption("suppressErrorAlerts",!0);_this3.setTransportErrorHandler(require("emptyFunction"));_this3._requestAborted=!0;transport.abort();_this3.setTransportErrorHandler(old_handler)}_this3.abortHandler();AsyncMultiplex.unschedule(_this3)})};_proto.abandon=function abandon(){var _this4=this;this.continuation.last(function(){require("clearTimeout")(_this4.timer);_this4.setOption("suppressErrorAlerts",!0).setHandler(require("emptyFunction")).setErrorHandler(require("emptyFunction")).setTransportErrorHandler(require("emptyFunction")).setProgressHandler(require("emptyFunction")).setUploadProgressHandler(require("emptyFunction"));var transport=_this4.transport;transport&&(_this4._requestAborted=!0,supportsProgress(transport)&&delete transport.onprogress,supportsUploadProgress(transport)&&delete transport.upload.onprogress,transport.abort());_this4.abortHandler();AsyncMultiplex.unschedule(_this4)})};_proto.setNectarData=function setNectarData(nctrParams){nctrParams&&(this.data.nctr===void 0&&(this.data.nctr={}),Object.assign(this.data.nctr,nctrParams));return this};_proto.setNectarModuleDataSafe=function setNectarModuleDataSafe(elem){var setNectarModuleData=this.setNectarModuleData;setNectarModuleData&&setNectarModuleData.call(this,elem);return this};_proto.setAllowCrossPageTransition=function setAllowCrossPageTransition(allow){this._allowCrossPageTransition=!!allow;this.timer&&this.resetTimeout(this.timeout);return this};_proto.getAllowIrrelevantRequests=function getAllowIrrelevantRequests(){return this._allowIrrelevantRequests};_proto.setAllowIrrelevantRequests=function setAllowIrrelevantRequests(allowIrrelevantRequests){this._allowIrrelevantRequests=allowIrrelevantRequests;return this};_proto.setAllowCrossOrigin=function setAllowCrossOrigin(allow){this._allowCrossOrigin=allow;return this};_proto.setAllowCredentials=function setAllowCredentials(allow){this._allowCredentials=allow;return this};_proto.setIsBackgroundRequest=function setIsBackgroundRequest(isBackgroundRequest){this._isBackgroundRequest=isBackgroundRequest;return this};_proto.setReplaceTransportMarkers=function setReplaceTransportMarkers(value){value===void 0&&(value=!0);this._shouldReplaceTransportMarkers=value;return this};_proto.sendAndReturnAbortHandler=function sendAndReturnAbortHandler(){var _this5=this;this.send();return function(){return _this5.abort()}};_proto.send=function send(isRetry){__p&&__p();var _this6=this;isRetry=isRetry||!1;if(!this.uri)return!1;this.errorHandler||!this.getOption("suppressErrorHandlerWarning");this.getOption("jsonp")&&this.method!="GET"&&this.setMethod("GET");(this.getOption("useIframeTransport")||this.getOption("useFetchWithIframeFallback"))&&this.method!="GET"&&this.setMethod("GET");this.timeoutHandler!==null&&(this.getOption("jsonp")||this.getOption("useIframeTransport")||this.getOption("useFetchWithIframeFallback"));if(!this.getReadOnly()){this.specifiesWriteRequiredParams();if(this.method!="POST")return!1}if(document.location.search.toString().includes(this.uri.toString()))return!1;if(this.uri.toString().includes("/../")||this.uri.toString().includes("\\../")||this.uri.toString().includes("/..\\")||this.uri.toString().includes("\\..\\"))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});require("Arbiter").inform("AsyncRequest/send",{request:this});var uri_str,query;this.method=="GET"&&this.uri.addQueryData({fb_dtsg_ag:require("DTSG_ASYNC").getToken()});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)return!1;if(this.getOption("useFetchWithIframeFallback"))try{var _transport2=new(require("FetchStreamTransport"))(this.uri);this.setJSONPTransport(_transport2);this._markRequestSent();_transport2.send();this.setOption("useIframeTransport",!1);return!0}catch(_unused5){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}this.flushedResponseHandler&&(this.flushedResponseTextParseIndex=0);var transport=require("ZeroRewrites").getTransportBuilderForURI(this.uri)();if(!transport)return!1;this.schedule("AsyncRequest.send");transport.onreadystatechange=function(){var _transport=_this6.transport,flushedResponseHandler=_this6.flushedResponseHandler;flushedResponseHandler&&_transport&&_transport.readyState>=2&&_transport.readyState<=3&&(flushedResponseHandler(_transport.responseText.substr(_this6.flushedResponseTextParseIndex)),_this6.flushedResponseTextParseIndex=_transport.responseText.length);transport.readyState===4&&_this6.continuation.last(_this6._onStateChange)};this.progressHandler&&supportsProgress(transport)&&(transport.onprogress=function(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];_this6.continuation(function(){_this6.progressHandler&&_this6.progressHandler.apply(_this6,args)})});this.uploadProgressHandler&&supportsUploadProgress(transport)&&(transport.upload.onprogress=function(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];_this6.continuation(function(){_this6.uploadProgressHandler&&_this6.uploadProgressHandler.apply(_this6,args)})});isRetry||(this.remainingRetries=this.getOption("retries"));this.transport=transport;try{transport.open(this.method,uri_str,this.getOption("asynchronous_DEPRECATED"))}catch(exception){return!1}if(!this.uri.isSameOrigin()&&!this.getOption("jsonp")&&!this.getOption("useIframeTransport")&&!this.getOption("useFetchWithIframeFallback")){if(!supportsCrossOrigin(transport))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};_proto.schedule=function schedule(name){this.continuation=require("TimeSlice").getReusableContinuation(name)};_proto._canSendCredentials=function _canSendCredentials(){if(this._allowCredentials===!1)return!1;var uri=new(require("URI"))(this.uri);return require("isFacebookURI")(uri)||require("isMessengerDotComURI")(uri)||require("isWorkplaceDotComURI")(uri)};_proto._markRequestSent=function _markRequestSent(){var _this7=this,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(_this7.resourceTimingStoreUID).addStringAnnotation("requested_in_continuation","true")})});require("ResourceTimingsStore").measureRequestSent(require("ResourceTypes").XHR,this.resourceTimingStoreUID)};_proto.promisePayload=function promisePayload(isRetry){return this.exec().then(function(response){return response.payload},function(response){throw response.toError()})};_proto.exec=function exec(isRetry){var _this8=this;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){_this8.setHandler(resolve).setErrorHandler(reject).send(isRetry)})};AsyncRequest.bootstrap=function bootstrap(href,elem,is_post){__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 post(href,data){new AsyncRequest(href).setReadOnly(!1).setMethod("POST").setData(data).send();return!1};AsyncRequest.postStatic=function postStatic(href,data){AsyncRequest.post(href,data)};AsyncRequest.getLastID=function getLastID(){return last_id};AsyncRequest.getInflightCount=function getInflightCount(){return this._inflightCount};return AsyncRequest}();AsyncRequest._inflightCount=0;var _asyncMultiplex,_pendingAsyncMultiplexes=[],AsyncMultiplex=function(){__p&&__p();function AsyncMultiplex(){this._requests=[]}var _proto2=AsyncMultiplex.prototype;_proto2.add=function add(request){this._requests.push(request)};_proto2.remove=function remove(request){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))};_proto2.send=function send(){__p&&__p();this._requestsSent&&invariant(0,4390);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()};_proto2._handler=function _handler(response){__p&&__p();var _this9=this,responses=response.getPayload().responses;if(responses.length!==this._requests.length)return;var _loop2=function _loop2(ii){__p&&__p();var request=_this9._requests[ii];if(!request)return"continue";var request_path=request.uri.getPath();_this9._wrapperRequest&&(request.id=_this9._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))};_proto2._transportErrorHandler=function _transportErrorHandler(response){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)};AsyncMultiplex.schedule=function schedule(request){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 unschedule(request){_pendingAsyncMultiplexes.forEach(function(asyncMultiplex){asyncMultiplex.remove(request)})};return AsyncMultiplex}();AsyncRequest.suppressOnloadToken={};global.AsyncRequest=AsyncRequest;module.exports=AsyncRequest}),null);
|
|
__d("XControllerURIBuilder",["invariant","URI","gkx"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,b){this.$1={},this.$2=a,this.$3=b}var c=a.prototype;c.setInt=function(a,b){return this.__setParam(a,"Int",b)};c.setFBID=function(a,b){return this.__setParam(a,"FBID",b)};c.setFloat=function(a,b){return this.__setParam(a,"Float",b)};c.setString=function(a,b){return this.__setParam(a,"String",b)};c.setExists=function(a,b){b===!1&&(b=void 0);return this.__setParam(a,"Exists",b)};c.setBool=function(a,b){return this.__setParam(a,"Bool",b)};c.setEnum=function(a,b){return this.__setParam(a,"Enum",b)};c.setPath=function(a,b){return this.__setParam(a,"Path",b)};c.setIntVector=function(a,b){return this.__setParam(a,"IntVector",b)};c.setIntKeyset=function(a,b){return this.__setParam(a,"IntKeyset",b)};c.setIntSet=function(a,b){return this.__setParam(a,"IntSet",b.join(","))};c.setFloatVector=function(a,b){return this.__setParam(a,"FloatVector",b)};c.setFloatSet=function(a,b){return this.__setParam(a,"FloatSet",b.join(","))};c.setStringVector=function(a,b){return this.__setParam(a,"StringVector",b)};c.setStringKeyset=function(a,b){return this.__setParam(a,"StringKeyset",b)};c.setStringSet=function(a,b){return this.__setParam(a,"StringSet",b)};c.setFBIDVector=function(a,b){return this.__setParam(a,"FBIDVector",b)};c.setFBIDSet=function(a,b){return this.__setParam(a,"FBIDSet",b)};c.setFBIDKeyset=function(a,b){return this.__setParam(a,"FBIDKeyset",b)};c.setEnumVector=function(a,b){return this.__setParam(a,"EnumVector",b)};c.setEnumSet=function(a,b){return this.__setParam(a,"EnumSet",b)};c.setEnumKeyset=function(a,b){return this.__setParam(a,"EnumKeyset",b)};c.setIntToIntMap=function(a,b){return this.__setParam(a,"IntToIntMap",b)};c.setIntToFloatMap=function(a,b){return this.__setParam(a,"IntToFloatMap",b)};c.setIntToStringMap=function(a,b){return this.__setParam(a,"IntToStringMap",b)};c.setIntToBoolMap=function(a,b){return this.__setParam(a,"IntToBoolMap",b)};c.setStringToIntMap=function(a,b){return this.__setParam(a,"StringToIntMap",b)};c.setStringToFloatMap=function(a,b){return this.__setParam(a,"StringToFloatMap",b)};c.setStringToStringMap=function(a,b){return this.__setParam(a,"StringToStringMap",b)};c.setStringToNullableStringMap=function(a,b){return this.__setParam(a,"StringToNullableStringMap",b)};c.setStringToBoolMap=function(a,b){return this.__setParam(a,"StringToBoolMap",b)};c.setStringToEnumMap=function(a,b){return this.__setParam(a,"StringToEnumMap",b)};c.setEnumToStringVectorMap=function(a,b){return this.__setParam(a,"EnumToStringVectorMap",b)};c.setEnumToBoolMap=function(a,b){return this.__setParam(a,"EnumToBoolMap",b)};c.setEnumToFBIDVectorMap=function(a,b){return this.__setParam(a,"EnumToFBIDVectorMap",b)};c.setStringToIntDict=function(a,b){return this.__setParam(a,"StringToIntDict",b)};c.setStringToNullableIntDict=function(a,b){return this.__setParam(a,"StringToNullableIntDict",b)};c.setStringToFloatDict=function(a,b){return this.__setParam(a,"StringToFloatDict",b)};c.setStringToNullableFloatDict=function(a,b){return this.__setParam(a,"StringToNullableFloatDict",b)};c.setStringToStringDict=function(a,b){return this.__setParam(a,"StringToStringDict",b)};c.setStringToNullableStringDict=function(a,b){return this.__setParam(a,"StringToNullableStringDict",b)};c.setStringToBoolDict=function(a,b){return this.__setParam(a,"StringToBoolDict",b)};c.setStringToEnumDict=function(a,b){return this.__setParam(a,"StringToEnumDict",b)};c.setHackType=function(a,b){return this.__setParam(a,"HackType",b)};c.setTypeAssert=function(a,b){return this.__setParam(a,"TypeAssert",b)};c.__validateRequiredParamsExistence=function(){for(var a in this.$3)!this.$3[a].required||Object.prototype.hasOwnProperty.call(this.$1,a)||g(0,903,a)};c.setParams=function(a){for(var b in a){this.__assertParamExists(b);var c=this.$3[b].type;this.__setParam(b,c,a[b])}return this};c.__assertParamExists=function(a){a in this.$3||g(0,904,a)};c.__setParam=function(a,b,c){this.__assertParamExists(a);var d=this.$3[a].type;d===b||g(0,905,a,b,d);this.__setParamInt(a,c);return this};c.__setParamInt=function(a,b){this.$1[a]=b};c.getRequest=function(a){return a.setReplaceTransportMarkers().setURI(this.getURI())};c.getURI=function(){__p&&__p();this.__validateRequiredParamsExistence();var a={},c="",d=/^(.*)?\{(\?)?(\*)?(.+?)\}(.*)?$/,e=this.$2.split("/"),f=!1;for(var h=0;h<e.length;h++){var i=e[h];if(i==="")continue;var j=d.exec(i);if(!j)c+="/"+i;else{i=j[2]==="?";var k=j[4],l=this.$3[k];l||g(0,906,k,this.$2);if(i&&f)continue;if(this.$1[k]==null&&i){f=!0;continue}this.$1[k]!=null||g(0,907,k);l=j[1]?j[1]:"";i=j[5]?j[5]:"";c+="/"+l+this.$1[k]+i;a[k]=!0}}this.$2.slice(-1)==="/"&&(c+="/");c===""&&(c="/");j=new(b("URI"))(c);for(var m in this.$1){l=this.$1[m];if(!a[m]&&l!=null){i=this.$3[m];j.addQueryData(m,i&&i.type==="Exists"?null:l)}}return j};c.getLookasideURI=function(){var a="origincache.facebook.com";b("gkx")("676940")&&(a="lookaside.internmc.facebook.com");return this.getURI().setDomain(a).setProtocol("https")};a.create=function(b,c){return function(){return new a(b,c)}};return a}();e.exports=a}),null);
|
|
__d("XRequest",["invariant"],(function(a,b,c,d,e,f,g){__p&&__p();var h=function a(b,c,d){__p&&__p();var e;switch(b){case"Bool":e=c&&c!=="false"&&c!=="0"||!1;break;case"Int":e=c.toString();/-?\d+/.test(e)||g(0,5041,c);break;case"Float":e=parseFloat(c,10);isNaN(e)&&g(0,5042,c);break;case"FBID":e=c.toString();for(var f=0;f<e.length;++f){var h=e.charCodeAt(f);48<=h&&h<=57||g(0,5043,c)}break;case"String":e=c.toString();break;case"Enum":d===0?e=a("Int",c,null):d===1?e=a("String",c,null):d===2?e=c:g(0,5044,d);break;default:if(h=/^Nullable(\w+)$/.exec(b))c===null?e=null:e=a(h[1],c,d);else if(f=/^(\w+)Vector$/.exec(b)){!Array.isArray(c)?(e=c.toString(),e=e===""?[]:e.split(",")):e=c;var i=f[1];typeof i==="string"||g(0,5045);e=e.map(function(b){return a(i,b,d&&d.member)})}else if(h=/^(\w+)(Set|Keyset)$/.exec(b))!Array.isArray(c)?(e=c.toString(),e=e===""?[]:e.split(",")):e=c,e=e.reduce(function(a,b){a[b]=b;return a},{}),i=h[1],typeof i==="string"||g(0,5045),e=Object.keys(e).map(function(b){return a(i,e[b],d&&d.member)});else if(f=/^(\w+)To(\w+)Map$/.exec(b)){e={};var j=f[1],k=f[2];typeof j==="string"&&typeof k==="string"||g(0,5045);Object.keys(c).forEach(function(b){e[a(j,b,d&&d.key)]=a(k,c[b],d&&d.value)})}else g(0,5046,b)}return e};a=function(){"use strict";__p&&__p();function a(a,b,c){__p&&__p();this.$1=b;this.$2=babelHelpers["extends"]({},c.getQueryData());b=a.split("/").filter(function(a){return a});a=c.getPath().split("/").filter(function(a){return a});for(var d=0;d<b.length;++d){var e=/^\{(\?)?(\*)?(\w+)\}$/.exec(b[d]);if(!e){b[d]===a[d]||g(0,5047,c.getPath());continue}var f=!!e[1],h=!!e[2];!h||d===b.length-1||g(0,5048,i);var i=e[3];Object.prototype.hasOwnProperty.call(this.$1,i)||g(0,5049,i);this.$1[i].required?f&&g(0,5050,i):f||g(0,5057,i);a[d]&&(this.$2[i]=h?a.slice(d).join("/"):a[d])}Object.keys(this.$1).forEach(function(a){!this.$1[a].required||Object.prototype.hasOwnProperty.call(this.$2,a)||g(0,5051)},this)}var b=a.prototype;b.getExists=function(a){return this.$2[a]!==void 0};b.getBool=function(a){return this.$3(a,"Bool")};b.getInt=function(a){return this.$3(a,"Int")};b.getFloat=function(a){return this.$3(a,"Float")};b.getFBID=function(a){return this.$3(a,"FBID")};b.getString=function(a){return this.$3(a,"String")};b.getEnum=function(a){return this.$3(a,"Enum")};b.getOptionalInt=function(a){return this.$4(a,"Int")};b.getOptionalFloat=function(a){return this.$4(a,"Float")};b.getOptionalFBID=function(a){return this.$4(a,"FBID")};b.getOptionalString=function(a){return this.$4(a,"String")};b.getOptionalEnum=function(a){return this.$4(a,"Enum")};b.getIntVector=function(a){return this.$3(a,"IntVector")};b.getFloatVector=function(a){return this.$3(a,"FloatVector")};b.getFBIDVector=function(a){return this.$3(a,"FBIDVector")};b.getStringVector=function(a){return this.$3(a,"StringVector")};b.getEnumVector=function(a){return this.$3(a,"EnumVector")};b.getOptionalIntVector=function(a){return this.$4(a,"IntVector")};b.getOptionalFloatVector=function(a){return this.$4(a,"FloatVector")};b.getOptionalFBIDVector=function(a){return this.$4(a,"FBIDVector")};b.getOptionalStringVector=function(a){return this.$4(a,"StringVector")};b.getOptionalEnumVector=function(a){return this.$4(a,"EnumVector")};b.getIntSet=function(a){return this.$3(a,"IntSet")};b.getFBIDSet=function(a){return this.$3(a,"FBIDSet")};b.getFBIDKeyset=function(a){return this.$3(a,"FBIDKeyset")};b.getStringSet=function(a){return this.$3(a,"StringSet")};b.getEnumKeyset=function(a){return this.$3(a,"EnumKeyset")};b.getOptionalIntSet=function(a){return this.$4(a,"IntSet")};b.getOptionalFBIDSet=function(a){return this.$4(a,"FBIDSet")};b.getOptionalFBIDKeyset=function(a){return this.$4(a,"FBIDKeyset")};b.getOptionalStringSet=function(a){return this.$4(a,"StringSet")};b.getEnumToBoolMap=function(a){return this.$3(a,"EnumToBoolMap")};b.getEnumToEnumMap=function(a){return this.$3(a,"EnumToEnumMap")};b.getEnumToFloatMap=function(a){return this.$3(a,"EnumToFloatMap")};b.getEnumToIntMap=function(a){return this.$3(a,"EnumToIntMap")};b.getEnumToStringMap=function(a){return this.$3(a,"EnumToStringMap")};b.getIntToBoolMap=function(a){return this.$3(a,"IntToBoolMap")};b.getIntToEnumMap=function(a){return this.$3(a,"IntToEnumMap")};b.getIntToFloatMap=function(a){return this.$3(a,"IntToFloatMap")};b.getIntToIntMap=function(a){return this.$3(a,"IntToIntMap")};b.getIntToStringMap=function(a){return this.$3(a,"IntToStringMap")};b.getStringToBoolMap=function(a){return this.$3(a,"StringToBoolMap")};b.getStringToEnumMap=function(a){return this.$3(a,"StringToEnumMap")};b.getStringToFloatMap=function(a){return this.$3(a,"StringToFloatMap")};b.getStringToIntMap=function(a){return this.$3(a,"StringToIntMap")};b.getStringToStringMap=function(a){return this.$3(a,"StringToStringMap")};b.getOptionalEnumToBoolMap=function(a){return this.$4(a,"EnumToBoolMap")};b.getOptionalEnumToEnumMap=function(a){return this.$4(a,"EnumToEnumMap")};b.getOptionalEnumToFloatMap=function(a){return this.$4(a,"EnumToFloatMap")};b.getOptionalEnumToIntMap=function(a){return this.$4(a,"EnumToIntMap")};b.getOptionalEnumToStringMap=function(a){return this.$4(a,"EnumToStringMap")};b.getOptionalIntToBoolMap=function(a){return this.$4(a,"IntToBoolMap")};b.getOptionalIntToEnumMap=function(a){return this.$4(a,"IntToEnumMap")};b.getOptionalIntToFloatMap=function(a){return this.$4(a,"IntToFloatMap")};b.getOptionalIntToIntMap=function(a){return this.$4(a,"IntToIntMap")};b.getOptionalIntToStringMap=function(a){return this.$4(a,"IntToStringMap")};b.getOptionalStringToBoolMap=function(a){return this.$4(a,"StringToBoolMap")};b.getOptionalStringToEnumMap=function(a){return this.$4(a,"StringToEnumMap")};b.getOptionalStringToFloatMap=function(a){return this.$4(a,"StringToFloatMap")};b.getOptionalStringToIntMap=function(a){return this.$4(a,"StringToIntMap")};b.getOptionalStringToStringMap=function(a){return this.$4(a,"StringToStringMap")};b.getEnumToNullableEnumMap=function(a){return this.$3(a,"EnumToNullableEnumMap")};b.getEnumToNullableFloatMap=function(a){return this.$3(a,"EnumToNullableFloatMap")};b.getEnumToNullableIntMap=function(a){return this.$3(a,"EnumToNullableIntMap")};b.getEnumToNullableStringMap=function(a){return this.$3(a,"EnumToNullableStringMap")};b.getIntToNullableEnumMap=function(a){return this.$3(a,"IntToNullableEnumMap")};b.getIntToNullableFloatMap=function(a){return this.$3(a,"IntToNullableFloatMap")};b.getIntToNullableIntMap=function(a){return this.$3(a,"IntToNullableIntMap")};b.getIntToNullableStringMap=function(a){return this.$3(a,"IntToNullableStringMap")};b.getStringToNullableEnumMap=function(a){return this.$3(a,"StringToNullableEnumMap")};b.getStringToNullableFloatMap=function(a){return this.$3(a,"StringToNullableFloatMap")};b.getStringToNullableIntMap=function(a){return this.$3(a,"StringToNullableIntMap")};b.getStringToNullableStringMap=function(a){return this.$3(a,"StringToNullableStringMap")};b.getOptionalEnumToNullableEnumMap=function(a){return this.$4(a,"EnumToNullableEnumMap")};b.getOptionalEnumToNullableFloatMap=function(a){return this.$4(a,"EnumToNullableFloatMap")};b.getOptionalEnumToNullableIntMap=function(a){return this.$4(a,"EnumToNullableIntMap")};b.getOptionalEnumToNullableStringMap=function(a){return this.$4(a,"EnumToNullableStringMap")};b.getOptionalIntToNullableEnumMap=function(a){return this.$4(a,"IntToNullableEnumMap")};b.getOptionalIntToNullableFloatMap=function(a){return this.$4(a,"IntToNullableFloatMap")};b.getOptionalIntToNullableIntMap=function(a){return this.$4(a,"IntToNullableIntMap")};b.getOptionalIntToNullableStringMap=function(a){return this.$4(a,"IntToNullableStringMap")};b.getOptionalStringToNullableEnumMap=function(a){return this.$4(a,"StringToNullableEnumMap")};b.getOptionalStringToNullableFloatMap=function(a){return this.$4(a,"StringToNullableFloatMap")};b.getOptionalStringToNullableIntMap=function(a){return this.$4(a,"StringToNullableIntMap")};b.getOptionalStringToNullableStringMap=function(a){return this.$4(a,"StringToNullableStringMap")};b.$3=function(a,b){this.$5(a,b);var c=this.$1[a];if(!Object.prototype.hasOwnProperty.call(this.$2,a)&&c.defaultValue!=null){c.required&&g(0,5052);return h(b,c.defaultValue,c.enumType)}c.required||b==="Bool"||c.defaultValue!=null||g(0,5053,b,a,b,a);return h(b,this.$2[a],c.enumType)};b.$4=function(a,b){this.$5(a,b);var c=this.$1[a];c.required&&g(0,5054,b,a,b,a);c.defaultValue&&g(0,5052);return Object.prototype.hasOwnProperty.call(this.$2,a)?h(b,this.$2[a],c.enumType):null};b.$5=function(a,b){Object.prototype.hasOwnProperty.call(this.$1,a)||g(0,5055,a),this.$1[a].type===b||g(0,5056,a,b,this.$1[a].type)};return a}();e.exports=a}),null);
|
|
__d("XController",["XControllerURIBuilder","XRequest"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,b){this.$1=a,this.$2=b}var c=a.prototype;c.getURIBuilder=function(a){__p&&__p();var c=new(b("XControllerURIBuilder"))(this.$1,this.$2);if(a){var d=this.getRequest(a);Object.keys(this.$2).forEach(function(a){var b=this.$2[a],e="";!b.required&&!Object.prototype.hasOwnProperty.call(b,"defaultValue")&&(e="Optional");e="get"+e+b.type;e=d[e](a);if(e==null||Object.prototype.hasOwnProperty.call(b,"defaultValue")&&e===b.defaultValue)return;b="set"+b.type;c[b](a,e)},this)}return c};c.getRequest=function(a){return new(b("XRequest"))(this.$1,this.$2,a)};a.create=function(b,c){return new a(b,c)};return a}();e.exports=a}),null);
|
|
__d("TrackingPixel",["Arbiter","ControlledReferer","DeferredCookie","FBLogger"],(function(a,b,c,d,e,f){__p&&__p();var g={_iframe:void 0,loadWithNoReferrer:function(a){__p&&__p();if(!b("DeferredCookie").canEmbedThirdPartyPixel()){b("FBLogger")("tracking_pixel").mustfix("Attempting to load a TrackingPixel (%s) while cookies are deferred. This is not allowed because tracking pixels sometimes set cookies.",a);return}if(!g._iframe){var c=document.createElement("iframe");c.frameborder=0;c.width=c.height=1;c.style.position="absolute";c.style.top="-10px";b("ControlledReferer").useFacebookReferer(c,function(){b("Arbiter").inform("TrackingPixel/iframeIsLoaded",null,"persistent")},null);document.body.appendChild(c);g._iframe=c}b("Arbiter").subscribe("TrackingPixel/iframeIsLoaded",function(){var b=g._iframe.contentWindow;b=new b.Image();b.src=a})}};e.exports=g}),null);
|
|
__d("AsyncRequestPathTraversalTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:AsyncRequestPathTraversalLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:AsyncRequestPathTraversalLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:AsyncRequestPathTraversalLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setOffendingURI=function(a){this.$1.offending_uri=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={offending_uri:!0,time:!0,weight:!0};e.exports=a}),null);
|
|
__d("XLynxAsyncCallbackController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/si/linkclick/ajax_callback/",{lynx_uri:{type:"String"}})}),null);
|
|
__d("FBLynxLogging",["AsyncRequest","AsyncResponse","BanzaiODS","XLynxAsyncCallbackController"],(function(a,b,c,d,e,f){"use strict";a={log:function(a){var c=b("XLynxAsyncCallbackController").getURIBuilder().getURI();new(b("AsyncRequest"))(c).setData({lynx_uri:a}).setErrorHandler(function(a){a=a.getError();b("BanzaiODS").bumpEntityKey("linkshim","click_log.post.fail."+a)}).setTransportErrorHandler(function(a){a=a.getError();b("BanzaiODS").bumpEntityKey("linkshim","click_log.post.transport_fail."+a)}).send()}};e.exports=a}),null);
|
|
__d("isLinkshimURI",["isFacebookURI","isMessengerDotComURI"],(function(a,b,c,d,e,f){"use strict";function a(a){var c=a.getPath();return(c==="/l.php"||c.indexOf("/si/ajax/l/")===0||c.indexOf("/l/")===0||c.indexOf("l/")===0)&&(b("isFacebookURI")(a)||b("isMessengerDotComURI")(a))?!0:!1}e.exports=a}),null);
|
|
__d("FBLynxBase",["FBLynxLogging","LinkshimHandlerConfig","URI","$","isLinkshimURI"],(function(a,b,c,d,e,f){"use strict";__p&&__p();function g(a){if(!b("isLinkshimURI")(a))return null;a=a.getQueryData().u;return!a?null:a}var h={logAsyncClick:function(a){h.swapLinkWithUnshimmedLink(a);a=a.getAttribute("data-lynx-uri");if(!a)return;b("FBLynxLogging").log(a)},originReferrerPolicyClick:function(a){var c=b("$")("meta_referrer");c.content=b("LinkshimHandlerConfig").switched_meta_referrer_policy;h.logAsyncClick(a);setTimeout(function(){c.content=b("LinkshimHandlerConfig").default_meta_referrer_policy},100)},swapLinkWithUnshimmedLink:function(a){var c=a.href,d=g(new(b("URI"))(c));if(!d)return;a.setAttribute("data-lynx-uri",c);a.href=d},revertSwapIfLynxURIPresent:function(a){var b=a.getAttribute("data-lynx-uri");if(!b)return;a.removeAttribute("data-lynx-uri");a.href=b}};e.exports=h}),null);
|
|
__d("FBLynx",["Base64","Event","FBLynxBase","LinkshimHandlerConfig","Parent","URI"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("URI").goURIOnWindow,h={alreadySetup:!1,setupDelegation:function(a){__p&&__p();a===void 0&&(a=!1);if(document.body==null){if(a)return;setTimeout(function(){h.setupDelegation(!0)},100);return}if(h.alreadySetup)return;h.alreadySetup=!0;var c=function(a){__p&&__p();var c=h.getMaybeLynxLink(a.target);if(!c)return;var d=c[0];c=c[1];var e=c,f=new(b("URI"))(c.href),i;if(b("LinkshimHandlerConfig").ghl_param_link_shim&&d!=="hover"&&(c.dataset&&c.dataset.attributes)){i=b("Base64").decodeObject(c.dataset.attributes);if(i&&i.open_link){var j;for(j in i)j!=="open_link"&&f.addQueryData(j,i[j]);j=c.cloneNode(!0);j.href=f.toString();e=j}}switch(d){case"async":case"asynclazy":b("FBLynxBase").logAsyncClick(e);break;case"origin":b("FBLynxBase").originReferrerPolicyClick(e);break;case"hover":h.hoverClick(e);break}b("LinkshimHandlerConfig").ghl_param_link_shim&&d!=="hover"&&i&&i.open_link&&(a.preventDefault(),g(f,window.open("",e.target),!0))};b("Event").listen(document.body,"click",c);b("LinkshimHandlerConfig").middle_click_requires_event&&b("Event").listen(document.body,"mouseup",function(a){a.button==1&&c(a)});b("Event").listen(document.body,"mouseover",function(a){a=h.getMaybeLynxLink(a.target);if(!a)return;var b=a[0];a=a[1];switch(b){case"async":case"asynclazy":case"origin":case"hover":h.mouseover(a);break}});b("Event").listen(document.body,"contextmenu",function(a){a=h.getMaybeLynxLink(a.target);if(!a)return;var b=a[0];a=a[1];switch(b){case"async":case"hover":case"origin":h.contextmenu(a);break;case"asynclazy":break}})},getMaybeLynxLink:function(a){a=b("Parent").byAttribute(a,"data-lynx-mode");if(a instanceof HTMLAnchorElement){var c=a.getAttribute("data-lynx-mode");switch(c){case"async":case"asynclazy":case"hover":case"origin":return[c,a];default:return null}}return null},hoverClick:function(a){b("FBLynxBase").revertSwapIfLynxURIPresent(a)},mouseover:function(a){b("FBLynxBase").swapLinkWithUnshimmedLink(a)},contextmenu:function(a){b("FBLynxBase").revertSwapIfLynxURIPresent(a)}};e.exports=h}),null);
|
|
__d("PagesEventObserver",["Banzai"],(function(a,b,c,d,e,f){var g="pages_client_logging",h={VITAL_WAIT:b("Banzai").VITAL_WAIT,logData_DEPRECATED:function(a,c){c={delay:c||b("Banzai").VITAL_WAIT};b("Banzai").post(g,a,c)},notify:function(a,c,d,e,f){d=babelHelpers["extends"]({},d,{event_name:a,page_id:c,dedupe:e!==!1});a={delay:f||b("Banzai").VITAL_WAIT};b("Banzai").post(g,d,a)},registerLogOnClick:function(a,b,c){c===void 0&&(c=null),a.addEventListener("click",function(){c&&h.notify(c,b,null,null,null)})}};e.exports=h}),null);
|
|
__d("MercuryParticipantTypes",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({USER:"user",THREAD:"thread",EVENT:"event",PAGE:"page",FRIEND:"friend",FB4C:"fb4c",NON_FRIEND:"non_friend",SERVICE:"service",GUEST:"guest",PARENT_APPROVED_USER:"parent_approved_user",MESSAGE:"message",ASSISTANT_TYPEAHEAD:"assistant_typeahead"})}),null);
|
|
__d("csx",[],(function(a,b,c,d,e,f){function a(a){throw new Error("csx: Unexpected class selector transformation.")}e.exports=a}),null); |