;/*FB_PKG_DELIM*/ __d("BladeRunnerDeferredClient",["Promise","nullthrows","requireDeferred"],(function(t,n,r,o,a,i,l){var e,s=(function(){function t(){this.$1=null}var o=t.prototype;return o.requestStream=function(t,n,o,a){return this.$2(),r("nullthrows")(this.$1).then(function(e){return e.requestStream(t,n,o,a)})},o.logInfo=function(t){return this.$2(),r("nullthrows")(this.$1).then(function(e){e.logInfo(t)})},o.bumpCounter=function(t){return this.$2(),r("nullthrows")(this.$1).then(function(e){e.bumpCounter(t)})},o.$2=function(){this.$1==null&&(this.$1=new(e||(e=n("Promise")))(function(e){r("requireDeferred")("BladeRunnerClient").__setRef("BladeRunnerDeferredClient").onReady(function(t){e(new t)})}))},t})(),u=new s;l.default=u}),98); __d("BladeRunnerStreamHandler",[],(function(t,n,r,o,a,i){function e(e){throw new TypeError('"'+e+'" is read-only')}var l=(function(){function e(e,t,n,r,o,a){this.$1=e,this.$2=t,this.$3=n||function(e){},this.$4=r||function(e){},this.$5=o||function(e){},this.$6=a}var t=e.prototype;return t.onData=function(t){var e=this.$1,n=this.$2;if(e!=null)e(t.decodeData());else if(n!=null){for(var r=atob(t.rawData()),o=new Uint8Array(r.length),a=0;a=1e4?Math.round(Math.min(e/1e4,6))*10:Math.round(Math.min(e/1e3,10));r("BladeRunnerDeferredClient").bumpCounter("status_latency."+this.$BladeRunnerInstrumentedStreamHandler$p_2+"."+o+".s")}clearTimeout(this.$BladeRunnerInstrumentedStreamHandler$p_5)},n})(r("BladeRunnerStreamHandler"));l.default=s}),98); __d("CacheStorage",["ErrorGuard","ExecutionEnvironment","WebStorage","cr:6943","cr:8958","emptyFunction","err","getErrorSafe"],(function(t,n,r,o,a,i,l){var e,s,u,c,d="_@_",m="3b",p="CacheStorageVersion",_={length:0,getItem:c=r("emptyFunction"),setItem:c,clear:c,removeItem:c,key:c},f=(function(){function e(e){this._store=e}var t=e.prototype;return t.getStore=function(){return this._store},t.keys=function(){for(var e=[],t=0;t0;return{authType:l?"GUEST":"ABRA",endpoint:"gateway.meta.ai",authToken:l?i:void 0}}return e.includes("facebook.net")?{endpoint:"gateway.facebook.com",authType:"GUEST"}:{endpoint:"",authType:""}}var d=new u;l.default=d}),98); __d("DGWRequestStreamDeferredClient",["Promise","nullthrows","requireDeferred"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(function(){function t(){this.$1=null}var o=t.prototype;return o.createStream=function(t,n,o,a,i){return this.$2(),r("nullthrows")(this.$1).then(function(e){return e.createStream(t,n,o,a,i)})},o.$2=function(){this.$1==null&&(this.$1=new(e||(e=n("Promise")))(function(e){r("requireDeferred")("DGWRequestStreamClient").__setRef("DGWRequestStreamDeferredClient").onReady(function(t){e(new t)})}))},t})(),u=new s;l.default=u}),98); __d("EventListenerImplForCacheStorage",["CometEventListener"],(function(t,n,r,o,a,i){"use strict";i.default=n("CometEventListener")}),66); __d("RequestStreamCommonRequestStreamCommonTypes",["$InternalEnum"],(function(t,n,r,o,a,i){"use strict";var e,l=(e=n("$InternalEnum"))({Accepted:1,Started:2,Stopped:3}),s=e({Rejected:40,Error:50,TryAgain:80,Closed:99}),u=e({BestEffort:0,Socket:10,Device:20}),c=e({Flow_status:"flow_status",Log:"log",Rewrite:"rewrite",Data:"data",Termination:"termination",Amend_ack:"amend_ack"});a.exports={AckLevel:u,FlowStatus:l,StreamResponseDelta$Types:c,TerminationReason:s}}),null); __d("MQTTRequestStreamUtils",["BladeRunnerStreamHandler","BladeRunnerStreamStatus","RequestStreamCommonRequestStreamCommonTypes"],(function(t,n,r,o,a,i,l){"use strict";var e="Stream closed",s="Stream rejected";function u(t){var n=function(r){switch(r){case o("BladeRunnerStreamStatus").StreamStatus.ACCEPTED:t.onFlowStatus(o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Accepted);break;case o("BladeRunnerStreamStatus").StreamStatus.STARTED:t.onFlowStatus(o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Started);break;case o("BladeRunnerStreamStatus").StreamStatus.STOPPED:t.onFlowStatus(o("RequestStreamCommonRequestStreamCommonTypes").FlowStatus.Stopped);break;case o("BladeRunnerStreamStatus").StreamStatus.CLOSED:t.onTermination(e);break;case o("BladeRunnerStreamStatus").StreamStatus.REJECTED:t.onTermination(s);break}};return new(r("BladeRunnerStreamHandler"))(function(e){return t.onData(e)},null,n,function(e){return t.onLog(e)},null,function(){return t.onRetryUpdateRequestBody()})}l.TERMINATION_REASON_CLOSED=e,l.TERMINATION_REASON_REJECTED=s,l.convertToBRHandler=u}),98); __d("MetaconfigWebExposureFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(t,n,r,o,a,i,l){"use strict";var e=r("getFalcoLogPolicy_DO_NOT_USE")("7235"),s=o("FalcoLoggerInternal").create("metaconfig_web_exposure",e),u=s;l.default=u}),98); __d("MetaConfig",["invariant","BanzaiLazyQueue","ExecutionEnvironment","MetaConfigMap","MetaconfigWebExposureFalcoEvent","justknobx"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u={},c={_:function(n){var t=r("MetaConfigMap").get(n);t!=null||s(0,57910,n);var a=t.log_id,i=t.value;return a!=null&&u[n]!==!0&&((e||(e=r("ExecutionEnvironment"))).isInBrowser&&(r("justknobx")._("822")&&n.includes("mc_haste_banzai_migration_test")?r("MetaconfigWebExposureFalcoEvent").log(function(){return{identifier:n,log_id:a}}):o("BanzaiLazyQueue").queuePost("metaconfig_exposure",{identifier:n,log_id:a})),u[n]=!0),i}},d=c;l.default=d}),98); __d("RequestStreamHandler",["err"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(){function e(e){var t=e.onData,n=e.onFlowStatus,r=e.onLog,o=e.onRetryUpdateRequestBody,a=e.onTermination;this.$1=t||function(e){},this.$2=a||function(e){},this.$3=r||function(e){},this.$4=n,this.$5=o}var t=e.prototype;return t.onFlowStatus=function(t){this.$4(t)},t.onData=function(t){this.$1(t)},t.onTermination=function(t){this.$2(r("err")(t))},t.onLog=function(t){this.$3(t)},t.onRetryUpdateRequestBody=function(){if(this.$5!=null)return this.$5()},e})();l.default=e}),98); __d("SCIsolationRollout",["gkx"],(function(t,n,r,o,a,i,l){"use strict";function e(e){return e.startsWith("FBLQ:")||e.startsWith("GRAPHQL:")||e.startsWith("FBGQLS:")||e.startsWith("IGGQLS:")?!0:e==="MLCInternCollab"||e==="MLCCollab"?r("gkx")("3193"):!1}l.shouldUseSCIsolation=e}),98); __d("TransportSelectingClientCCResolver",["Promise","TransportSelectingClientContextualConfig","asyncToGeneratorRuntime","nullthrows","requireDeferred"],(function(t,n,r,o,a,i,l){var e,s=(function(){function t(){this.$1=null}var o=t.prototype;return o.getCCGroupName=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){this.$2();var t=yield r("nullthrows")(this.$1),n=new t(JSON.parse(r("TransportSelectingClientContextualConfig").rawConfig)).resolve({method:e});return n.get("group","default_group")});function t(t){return e.apply(this,arguments)}return t})(),o.getCCDGWUpsampleMultiplier=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){this.$2();var t=yield r("nullthrows")(this.$1),n=new t(JSON.parse(r("TransportSelectingClientContextualConfig").rawConfig)).resolve({method:e});return n.get("dgwUpsampleMultiplier",1)});function t(t){return e.apply(this,arguments)}return t})(),o.$2=function(){this.$1==null&&(this.$1=new(e||(e=n("Promise")))(function(e){r("requireDeferred")("ContextualConfig").__setRef("TransportSelectingClientCCResolver").onReady(function(t){e(t)})}))},t})(),u=new s;l.default=u}),98); __d("TransportSelectingClientUtils",["BladeRunnerInstrumentedStreamHandler","DGWEnvUtil","MQTTRequestStreamUtils","TransportSelectingClientCCResolver","asyncToGeneratorRuntime","gkx"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t){var n=o("MQTTRequestStreamUtils").convertToBRHandler(e);return t.startsWith("FBGQLS")||t.startsWith("SKY")?new(r("BladeRunnerInstrumentedStreamHandler"))(n,t):n}function s(e){var t=!1;switch(e){case"group1":t=r("gkx")("20921");break;case"group2":t=r("gkx")("20922");break;case"group3":t=r("gkx")("20923");break;case"group4":t=r("gkx")("20924");break;case"group5":t=r("gkx")("20925");break;case"group6":t=r("gkx")("20926");break}return t}function u(e){var t=!1;switch(e){case"skywalker":t=!0;break;case"skywalker_experiment1":t=!0;break;case"skywalker_experiment2":t=!0;break;case"skywalker_bulletin":t=!0;break}return t}function c(e){if(e!=null){var t=e.lastIndexOf("/"),n=t>0?e.substr(0,t):e;return n}}function d(e){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=c(e);if(t!=null){var n=yield r("TransportSelectingClientCCResolver").getCCGroupName(t);return u(n)&&r("DGWEnvUtil").isDGWEnvCompatible()}return!1}),m.apply(this,arguments)}function p(e,t){var n=c(t);return e!=null&&e==="SKY"&&n!=null?n:e!=null?e:"unknown"}l.BRHandlerConverter=e,l.isDGWStream=s,l.isDGWAllowedSKYTopic=u,l.getTopicPrefix=c,l.isDGWSupportedSKYTopic=d,l.getMethodContextForCC=p}),98); __d("TransportSelectingClient",["BladeRunnerDeferredClient","DGWEnvUtil","DGWRequestStreamDeferredClient","ODS","RequestStreamHandler","SCIsolationRollout","TransportSelectingClientUtils","asyncToGeneratorRuntime","uuidv4"],(function(t,n,r,o,a,i,l){var e,s="streamcontroller",u=(function(){function t(){this.$1=r("DGWRequestStreamDeferredClient")}var a=t.prototype;return a.requestStream=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n,a,i,l){var u,c=new(r("RequestStreamHandler"))(a);if(r("DGWEnvUtil").isDGWEnvCompatible()){t.method!=null&&(e||(e=o("ODS"))).bumpEntityKey(110,"TransportSelectingClient",t.method+".dgw_client.request_stream");var d=yield this.$1.createStream(t,n,i,c,{deviceId:r("uuidv4")(),serviceId:o("SCIsolationRollout").shouldUseSCIsolation(t.method)?s:null,authType:l==null?void 0:l.authType,authToken:l==null?void 0:l.authToken});return yield d.start(),d}t.method!=null&&(e||(e=o("ODS"))).bumpEntityKey(110,"TransportSelectingClient",t.method+".bladerunner_client.request_stream");var m=yield r("BladeRunnerDeferredClient").requestStream(t,n,o("TransportSelectingClientUtils").BRHandlerConverter(c,(u=t.method)!=null?u:"unknown"),i);return m});function a(e,n,r,o,a){return t.apply(this,arguments)}return a})(),t})();l.default=u}),98); __d("TransportSelectingClientSingleton",["TransportSelectingClient"],(function(t,n,r,o,a,i,l){"use strict";var e=new(r("TransportSelectingClient"));l.default=e}),98); __d("VideoDisplayTimePlayButton",["CSS","DataStore","Event"],(function(t,n,r,o,a,i,l){"use strict";var e={},s="_spinner";function u(e){return o("DataStore").get(e,"clicked",!1)}function c(t,n){var a=t.id;e[a]=r("Event").listen(t,"click",function(){n&&(o("CSS").hide(t),o("CSS").show(n)),o("DataStore").set(t,"clicked",!0)}),n&&(e[a+s]=r("Event").listen(n,"click",function(){n&&o("CSS").hide(n),o("CSS").show(t),o("DataStore").set(t,"clicked",!1)}))}function d(t){var n=t.id;Object.prototype.hasOwnProperty.call(e,n)&&e[n].remove();var r=n+s;Object.prototype.hasOwnProperty.call(e,r)&&e[r].remove()}l.getClicked=u,l.register=c,l.unregister=d}),98); __d("VideosRenderingInstrumentation",["DataStore","VideoPlayerHTML5Experiments","performanceAbsoluteNow"],(function(t,n,r,o,a,i,l){var e;function s(t){var n=r("VideoPlayerHTML5Experiments").useMonotonicallyIncreasingTimers?(e||(e=r("performanceAbsoluteNow")))():Date.now();return o("DataStore").set(t,"videos_rendering_instrumentation",n),n}function u(e){var t=o("DataStore").get(e,"videos_rendering_instrumentation",NaN);return Number.isNaN(t)&&(t=s(e)),t}l.storeRenderTime=s,l.retrieveRenderTime=u}),98); __d("XHRHttpError",[],(function(t,n,r,o,a,i){"use strict";var e="HTTP_CLIENT_ERROR",l="HTTP_PROXY_ERROR",s="HTTP_SERVER_ERROR",u="HTTP_TRANSPORT_ERROR",c="HTTP_UNKNOWN_ERROR";function d(t,n){if(n===0){var r=t.getProtocol();return r==="file"||r==="ftp"?null:u}else return n>=100&&n<200?l:n>=200&&n<300?null:n>=400&&n<500?e:n>=500&&n<600?s:n>=12001&&n<12156?u:c}i.HTTP_CLIENT_ERROR=e,i.HTTP_PROXY_ERROR=l,i.HTTP_SERVER_ERROR=s,i.HTTP_TRANSPORT_ERROR=u,i.HTTP_UNKNOWN_ERROR=c,i.getErrorCode=d}),66); __d("xhrSimpleDataSerializer",[],(function(t,n,r,o,a,i){"use strict";function e(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}i.default=e}),66); __d("XHRRequest",["invariant","DTSGUtils","Env","ErrorGuard","FBLogger","LSD","Log","NetworkStatus","ResourceTimingsStore","ResourceTypes","SprinkleConfig","TimeSlice","URI","XHRHttpError","ZeroRewrites","cr:8959","cr:8960","fb-error","getAsyncHeaders","performance","xhrSimpleDataSerializer"],(function(t,n,r,o,a,i,l){var e,s,u,c,d=n("fb-error").ErrorXFBDebug,m=!1,p=!1,_={loadedBytes:0,totalBytes:0};function f(t){return n("ZeroRewrites").rewriteURI(new(e||(e=n("URI")))(t))}var g=(function(){"use strict";function t(e){this.$3=function(){return null},this.$20=f(e),this.$7="POST",this.$6={},this.setResponseType(null),this.setTransportBuilder(n("ZeroRewrites").getTransportBuilderForURI(this.getURI())),this.setDataSerializer(n("xhrSimpleDataSerializer")),this.$12=n("ResourceTimingsStore").getUID(n("ResourceTypes").XHR,e!=null?e.toString():"")}var r=t.prototype;return r.setURI=function(t){return this.$20=f(t),this},r.getURI=function(){return this.$20},r.setResponseType=function(t){return this.$14=t,this},r.setMethod=function(t){return this.$7=t,this},r.getMethod=function(){return this.$7},r.setData=function(t){return this.$2=t,this},r.getData=function(){return this.$2},r.setRawData=function(t){return this.$11=t,this},r.setRequestHeader=function(t,n){return this.$6[t]=n,this},r.setTimeout=function(t){return this.$15=t,this},r.getTimeout=function(){return this.$15},r.setResponseHandler=function(t){return this.$13=t,this},r.getResponseHandler=function(){return this.$13},r.setErrorHandler=function(t){return this.$5=t,this},r.getErrorHandler=function(){return this.$5},r.setNetworkFailureHandler=function(t){return this.$8=t,this},r.getNetworkFailureHandler=function(){return this.$8},r.getResponseHeader=function(t){var e=this.$9;return e?e.getResponseHeader(t):null},r.setAbortHandler=function(t){return this.$1=t,this},r.getAbortHandler=function(){return this.$1},r.setTimeoutHandler=function(t){return this.$16=t,this},r.getTimeoutHandler=function(){return this.$16},r.setUploadProgressHandler=function(t){return this.$19=t,this},r.setDownloadProgressHandler=function(t){return this.$4=t,this},r.setTransportBuilder=function(t){return!this.$18||!n("ZeroRewrites").isRewritten(this.$20)?this.$18=t:n("FBLogger")("iorg-FOS").blameToPreviousFile().mustfix("can not set new TransportBuilder for the request %s",String(this.getURI())),this},r.setDataSerializer=function(t){return this.$3=t,this},r.setWithCredentials=function(t){return this.$21=t,this},r.send=function(){var t=this.$15,r=this.$18;if(!r)return;var o=r(),a=this.getURI();if(a.toString().includes("/../")||a.toString().includes("/..\\")||a.toString().includes("\\../")||a.toString().includes("\\..\\"))return n("Log").error("XHRRequest.send(): path traversal is not allowed."),!1;if(m===!0)return;var i=new(e||(e=n("URI")))(a).getQualifiedURI().toString(),u=this.$12;n("ResourceTimingsStore").updateURI(n("ResourceTypes").XHR,u,i),n("ResourceTimingsStore").measureRequestSent(n("ResourceTypes").XHR,u),this.$9=o;var c;this.$7==="POST"||!this.$11||l(0,2346,this.$11,a);var d=(s||(s=n("Env"))).force_param;if(d&&(this.$2=babelHelpers.extends({},this.getData()||{},d)),this.$7==="GET"&&n("DTSGUtils").shouldAppendToken(a)){var p=n("cr:8960").getCachedToken?n("cr:8960").getCachedToken():n("cr:8960").getToken();p&&(this.$2?this.$2.fb_dtsg_ag=p:this.$2={fb_dtsg_ag:p},n("SprinkleConfig").param_name&&(this.$2[n("SprinkleConfig").param_name]=n("DTSGUtils").getNumericValue(p)))}if(this.$7==="POST"&&n("DTSGUtils").shouldAppendToken(a)){var _=n("cr:8959").getCachedToken?n("cr:8959").getCachedToken():n("cr:8959").getToken();_&&(this.$2?this.$2.fb_dtsg=_:this.$2={fb_dtsg:_},n("SprinkleConfig").param_name&&(this.$2[n("SprinkleConfig").param_name]=n("DTSGUtils").getNumericValue(_))),n("LSD").token&&(this.$2?this.$2.lsd=n("LSD").token:this.$2={lsd:n("LSD").token},n("SprinkleConfig").param_name&&!_&&(this.$2[n("SprinkleConfig").param_name]=n("DTSGUtils").getNumericValue(n("LSD").token)))}this.$7==="GET"||this.$11?(a.addQueryData(this.$2),c=this.$11):c=this.$3(this.$2);function f(e){n("ResourceTimingsStore").measureResponseReceived(n("ResourceTypes").XHR,u);for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o1?t-1:0),r=1;r=2){var i=a===4;i&&d.addFromXHR(o);var l=e.getURI(),s=n("XHRHttpError").getErrorCode(l,o.status),m=e.$13;if(s!=null){if(i){var _=119500;s==="HTTP_TRANSPORT_ERROR"&&e.$10&&e.$10+_<(c||(c=n("performance"))).now()&&(s="HTTP_STREAM_TIMEOUT");var f={errorCode:s,errorMsg:e.$29(o),errorRawTransport:o.constructor.name,errorRawTransportStatus:o.status,errorRawResponseHeaders:m&&m.includeHeaders?o.getAllResponseHeaders():null,errorType:o.status?"HTTP "+o.status:"HTTP"};e.$5?(u||(u=n("ErrorGuard"))).applyWithGuard(t.bind(void 0,e.$5),null,[f],{name:"XHRRequest:_errorHandler"}):t(function(){})}}else if(m){if(i||m.parseStreaming&&a===3){var g=i?t:r,h=m!=null&&m.includeHeaders?o.getAllResponseHeaders():null,y=e.$29(o);e.$10=(c||(c=n("performance"))).now();var C=200*1e3*1e3;m.parseStreaming&&typeof y=="string"&&y.length>C&&!p&&(p=!0,n("FBLogger")("comet_infra").mustfix("Streaming reponse exceeding size limits and will OOM soon: %s",String(e.getURI()))),(u||(u=n("ErrorGuard"))).applyWithGuard(g.bind(void 0,m),null,[y,h,i],{name:"XHRRequest:handler"})}}else i&&t(function(){});i&&(s!="HTTP_TRANSPORT_ERROR"&&n("NetworkStatus").reportSuccess(),e.$28())}}}},r.$24=function(t){_.loadedBytes=t.loaded,_.totalBytes=t.total,this.$19&&(u||(u=n("ErrorGuard"))).applyWithGuard(this.$19,null,[_],{name:"XHRRequest:_uploadProgressHandler"})},r.$25=function(t){var e={loadedBytes:t.loaded,totalBytes:t.total};this.$4&&(u||(u=n("ErrorGuard"))).applyWithGuard(this.$4,null,[e],{name:"XHRRequest:_downloadProgressHandler"})},r.$28=function(){clearTimeout(this.$17),delete this.$9},t.disable=function(){m=!0},t})();a.exports=g}),null); __d("generateLiteTypedLogger",["Banzai","JstlMigrationFalcoEvent","getDataWithLoggerOptions"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t,n){var o=e.split(":")[0],a=e.split(":")[1];o=="logger"?r("JstlMigrationFalcoEvent").log(function(){return{logger_config_name:a,payload:t}}):r("Banzai").post(e,t,n)}function s(t){return{log:function(o,a){e(t,r("getDataWithLoggerOptions")(o,a),r("Banzai").BASIC)},logVital:function(o,a){e(t,r("getDataWithLoggerOptions")(o,a),r("Banzai").VITAL)},logImmediately:function(o,a){e(t,r("getDataWithLoggerOptions")(o,a),{signal:!0})}}}l.default=s}),98);