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

__d("ChannelConstants",[],(function(a,b,c,d,e,f){var g="channel/";a={CHANNEL_MANUAL_RECONNECT_DEFER_MSEC:2e3,MUTE_WARNING_TIME_MSEC:25e3,WARNING_COUNTDOWN_THRESHOLD_MSEC:15e3,ON_SHUTDOWN:g+"shutdown",ON_INVALID_HISTORY:g+"invalid_history",ON_CONFIG:g+"config",ON_ENTER_STATE:g+"enter_state",ON_EXIT_STATE:g+"exit_state",ATTEMPT_RECONNECT:g+"attempt_reconnect",RTI_SESSION:g+"new_rti_address",CONSOLE_LOG:g+"message:console_log",GET_RTI_SESSION_REQUEST:g+"rti_session_request",SKYWALKER:g+"skywalker",CHANNEL_ESTABLISHED:g+"established",OK:"ok",ERROR:"error",ERROR_MAX:"error_max",ERROR_MISSING:"error_missing",ERROR_MSG_TYPE:"error_msg_type",ERROR_SHUTDOWN:"error_shutdown",ERROR_STALE:"error_stale",SYS_OWNER:"sys_owner",SYS_NONOWNER:"sys_nonowner",SYS_ONLINE:"sys_online",SYS_OFFLINE:"sys_offline",SYS_TIMETRAVEL:"sys_timetravel",HINT_AUTH:"shutdown auth",HINT_CONN:"shutdown conn",HINT_DISABLED:"shutdown disabled",HINT_INVALID_STATE:"shutdown invalid state",HINT_MAINT:"shutdown maint",HINT_UNSUPPORTED:"shutdown unsupported",reason_Unknown:0,reason_AsyncError:1,reason_TooLong:2,reason_Refresh:3,reason_RefreshDelay:4,reason_UIRestart:5,reason_NeedSeq:6,reason_PrevFailed:7,reason_IFrameLoadGiveUp:8,reason_IFrameLoadRetry:9,reason_IFrameLoadRetryWorked:10,reason_PageTransitionRetry:11,reason_IFrameLoadMaxSubdomain:12,reason_NoChannelInfo:13,reason_NoChannelHost:14,CAPABILITY_VOIP_INTEROP:8,CAPABILITY_ACTIVE_ON_DESKTOP_APP:16384,FANTAIL_SERVICE:"WebchatClient",SUBSCRIBE:"subscribe",UNSUBSCRIBE:"unsubscribe",FAKE_DFF:"fake_dff",THROTTLED:g+"throttled",JUMPSTART:g+"jumpstart",ENTITY_PRESENCE_ACTIVE_PING:"entity_presence/active_ping",SUBSCRIPTION_STATE:{SUBSCRIBE:"s",MUTATE_CONTEXT:"m",UNSUBSCRIBE:"u"},DEFAULT_MAX_SUBSCRIPTIONS:300,DEFAULT_EVICTION_BATCH_SIZE:20,DEFAULT_MAX_SUBSCRIPTION_FLUSH_BATCH_SIZE:300,DEFAULT_MAX_CONSECUTIVE_FLUSH_FAILURES:3,getArbiterType:function(a){return g+"message:"+a},getRTISkywalkerArbiterType:function(a,b){return g+"skywalker:"+a+":"+b}};e.exports=a}),null);
__d("RTISubscriptionData",["ArbiterToken","ChannelConstants","areEqual"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("ChannelConstants").SUBSCRIPTION_STATE;function a(a,b,c,d,e,f){this.$1=a,this.$2=b,this.$6=!0,this.$7=!1,this.$8=g.SUBSCRIBE,this.$9=null,this.$10=Date.now(),this.$3=d?d:{},this.$4=e?e:null,this.$5=f?f:null,this.$11=c}a.prototype.matchesContext=function(a){return b("areEqual")(this.$3,a)};a.prototype.getCreatedTime=function(){return this.$10};a.prototype.getTopic=function(){return this.$1};a.prototype.getViewId=function(){return this.$11};a.prototype.getListener=function(){return this.$2};a.prototype.getSubscribeCallback=function(){return this.$4};a.prototype.setSubscribeCallback=function(a){this.$4=a};a.prototype.getUnsubscribeHook=function(){return this.$5};a.prototype.setUnsubscribeHook=function(a){this.$5=a};a.prototype.getMessageListener=function(){return this.$2};a.prototype.setMessageListener=function(a){this.$2=a};a.prototype.getArbiterToken=function(){return this.$9};a.prototype.setArbiterToken=function(a){this.$9=a};a.prototype.isAlive=function(){return this.$8!=g.UNSUBSCRIBE};a.prototype.isMutatingContext=function(){return this.$8==g.MUTATE_CONTEXT};a.prototype.isDirty=function(){return this.$6};a.prototype.setDirty=function(a){this.$6=a};a.prototype.getState=function(){return this.$8};a.prototype.setState=function(a){this.$8=a};a.prototype.getContext=function(){return this.$3};a.prototype.isSent=function(){return this.$7};a.prototype.setSent=function(a){this.$7=a};a.prototype.prepareMutateContext=function(a){this.setState(g.MUTATE_CONTEXT),this.setDirty(!0),this.setSent(!1),this.$3=a};a.prototype.prepareUnsubscribe=function(){this.setState(g.UNSUBSCRIBE),this.setDirty(!0),this.setSent(!1),this.$2=null};e.exports=a}),null);
__d("CurrentLocale",["LocaleInitialData"],(function(a,b,c,d,e,f){a={};a.get=function(){return b("LocaleInitialData").locale};e.exports=a}),null);
__d("RTISubscriptionStore",["Arbiter","ArbiterToken","BanzaiODS","ChannelConstants","CurrentLocale","ErrorUtils","RTISubscriptionData","RTISubscriptionManagerConfig"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("ChannelConstants").SUBSCRIPTION_STATE;function a(){this.$1={},this.$2=1}a.prototype.subscribe=function(a,c,d,e,f){__p&&__p();d||(d={});Object.assign(d,this.$3());var h=this.$4(a,d);if(h){var i=h.getState()==g.UNSUBSCRIBE&&h.isDirty()&&!h.isSent();h.isAlive()?b("BanzaiODS").bumpEntityKey("RTISubscriptionStore","duplicate_subscription_alive"):i?b("BanzaiODS").bumpEntityKey("RTISubscriptionStore","duplicate_subscription_unflushed_unsubscribe"):b("BanzaiODS").bumpEntityKey("RTISubscriptionStore","duplicate_subscription_unknown");if(h.isAlive()||i){h.setMessageListener(c);h.setSubscribeCallback(e);h.setUnsubscribeHook(f);if(i){h.setDirty(!1);h.setSent(!0);h.setState(g.SUBSCRIBE);i=b("ChannelConstants").getRTISkywalkerArbiterType(h.getTopic(),h.getViewId());h.setArbiterToken(this.$5(i,h.getTopic(),h))}return h}}i=this.$2;this.$2+=1;h=new(b("RTISubscriptionData"))(a,c,i,d,e,f);c=b("ChannelConstants").getRTISkywalkerArbiterType(a,i);h.setArbiterToken(this.$5(c,a,h));a in this.$1||(this.$1[a]=new Set());this.$1[a].add(h);return h};a.prototype.unsubscribe=function(a){if(!this.isSubscribed(a))return;a.prepareUnsubscribe();a.getArbiterToken()&&(b("Arbiter").unsubscribe(a.getArbiterToken()),a.setArbiterToken(null))};a.prototype.mutateContext=function(a,b){if(!this.isSubscribed(a))return;a.prepareMutateContext(b)};a.prototype.isSubscribed=function(a){return a.getTopic()in this.$1&&this.$1[a.getTopic()].has(a)&&a.isAlive()};a.prototype.clearSubscriptions=function(){this.$1={}};a.prototype.deleteSubscriptions=function(a){var b=[];this.forEachSubscription(function(c){a.call(this,c)&&b.push(c)}.bind(this));b.forEach(function(a){if(a.getTopic()in this.$1){var b=this.$1[a.getTopic()];b["delete"](a)}}.bind(this))};a.prototype.forEachSubscription=function(a){__p&&__p();for(var b in this.$1){var c=this.$1[b];for(var c=c,d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=c.length)break;f=c[e++]}else{e=c.next();if(e.done)break;f=e.value}f=f;if(a.call(this,f))return}}};a.prototype.$4=function(a,b){__p&&__p();a=this.$1[a];if(!a)return null;for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;if(e.matchesContext(b))return e}return null};a.prototype.$5=function(a,c,d){return b("Arbiter").subscribe(a,function(a,event){b("BanzaiODS").bumpEntityKey("RTISubscriptionStore","skywalker_subscription_delivery"),event.obj.forEach(function(a){a={topic:c,payload:a};var e=d.getMessageListener();e&&b("ErrorUtils").applyWithGuard(e,this,[a])}.bind(this))}.bind(this))};a.prototype.$3=function(){var a={};a.locale=b("CurrentLocale").get();if(b("RTISubscriptionManagerConfig").assimilator){var c=b("RTISubscriptionManagerConfig").assimilator;c.tierType&&(a.tierType=c.tierType);c.sandboxIP&&c.sandboxPort&&c.sandboxHostname&&(a.sandboxIP=c.sandboxIP,a.sandboxPort=c.sandboxPort,a.sandboxHostname=c.sandboxHostname)}return a};e.exports=a}),null);
__d("RTISubscriptionToken",["RTISubscriptionData"],(function(a,b,c,d,e,f){__p&&__p();function a(a,b,c,d,e){"use strict";this.$1=a,this.$2=b,this.$4=c,this.$5=d,this.$3=e,this.$6=null}a.prototype.setFriendFanoutToken=function(a){"use strict";this.$6=a};a.prototype.getFriendFanoutToken=function(){"use strict";return this.$6};a.prototype.getSubscriptionData=function(){"use strict";return this.$1};a.prototype.isSubscribed=function(){"use strict";return this.$3(this.$1)};a.prototype.getContext=function(){"use strict";return this.$1.getContext()};a.prototype.mutateContext=function(a){"use strict";this.$4(this.$1,a)};a.prototype.unsubscribe=function(){"use strict";var a=this.$1.getUnsubscribeHook();a&&a();this.$2(this.$1);this.$6&&this.$6.unsubscribe()};a.prototype.fastUnsubscribe=function(){"use strict";this.unsubscribe(),this.$5()};e.exports=a}),null);
__d("SkywalkerOracle",["gkx"],(function(a,b,c,d,e,f){"use strict";f.OracleGK=b("gkx")("AT59V6_3CXkJmeopb17WL3lllXAZhhPsl_xZYGU_Fzoz-3upzO1pVrZU-Ep-OtgX-_2D2sag28jt7-3H6BkLpraJ")}),null);
__d("UserActivity",["Arbiter","Event"],(function(a,b,c,d,e,f){__p&&__p();var g=5e3,h=500,i=-5,j=Date.now(),k=j,l=!1,m=Date.now(),n=document.hasFocus?document.hasFocus():!0,o=0,p=Date.now(),q=-1,r=-1,s={EVENT_INTERVAL_MS:h,subscribeOnce:function(a){var b=s.subscribe(function(c,d){s.unsubscribe(b),a(d)});return b},subscribe:function(a){return b("Arbiter").subscribe("useractivity/activity",a)},unsubscribe:function(a){a.unsubscribe()},isActive:function(a){return new Date()-j<(a||g)},isOnTab:function(){return n},hasBeenInactive:function(){return l},resetActiveStatus:function(){n=!0,l=!1},getLastInActiveEnds:function(){return m},getLastActive:function(){return j},setIdleTime:function(a){o=a},getLastLeaveTime:function(){return p},getLastInformTime:function(){return k},reset:function(){j=Date.now(),k=j,l=!1,m=Date.now(),n=document.hasFocus?document.hasFocus():!0,o=0,p=Date.now(),q=-1,r=-1}};function t(event){v(event,h)}function u(event){v(event,0)}function v(event,c){__p&&__p();c===void 0&&(c=0);var d=a.MouseEvent;if(d&&event instanceof d){if(/^mouse(enter|leave|move|out|over)$/.test(event.type)&&event.pageX==q&&event.pageY==r)return;q=event.pageX;r=event.pageY}j=Date.now();d=j-k;d>c?(k=j,n||(p=j),d>=(o||g)&&(l=!0,m=j),b("Arbiter").inform("useractivity/activity",{event:event,idleness:d,last_inform:k})):d<i&&(k=j)}function c(event){n=!0,m=Date.now(),u(event)}function d(event){n=!1,l=!0,p=Date.now()}b("Event").listen(window,"scroll",t);b("Event").listen(window,"focus",c);b("Event").listen(window,"blur",d);b("Event").listen(document.documentElement,{DOMMouseScroll:t,mousewheel:t,keydown:t,mouseover:t,mousemove:t,click:t},undefined,undefined,{passive:!0});b("Arbiter").subscribe("Event/stop",function(a,b){t(b.event)});e.exports=s}),null);
__d("SystemEvents",["ArbiterMixin","Cookie","ErrorUtils","SystemEventsInitialData","TimeSlice","UserActivity","UserAgent_DEPRECATED","gkx","mixin","setIntervalAcrossTransitions","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g,h=1e3;c=babelHelpers.inherits(a,b("mixin")(b("ArbiterMixin")));g=c&&c.prototype;function a(){g.constructor.call(this),this.$SystemEvents12=function(){var a=this.$SystemEvents7();this.$SystemEvents2!=a&&(this.$SystemEvents2=a,this.inform(this.USER,a));this.$SystemEvents13()}.bind(this),this.USER="SystemEvents/USER",this.ONLINE="SystemEvents/ONLINE",this.TIME_TRAVEL="SystemEvents/TIME_TRAVEL",this.$SystemEvents1=b("SystemEventsInitialData").ORIGINAL_USER_ID,this.$SystemEvents2=this.$SystemEvents1,this.$SystemEvents3=navigator.onLine,this.$SystemEvents4=Date.now(),this.$SystemEvents6()}a.prototype.isPageOwner=function(a){return(a||this.$SystemEvents7())==this.$SystemEvents1};a.prototype.isOnline=function(){return!!(b("UserAgent_DEPRECATED").chrome()||this.$SystemEvents3)};a.prototype.checkTimeTravel=function(){var a=Date.now(),b=a-this.$SystemEvents4;this.$SystemEvents4=a;(b<0||b>1e4)&&this.inform(this.TIME_TRAVEL,b)};a.prototype.$SystemEvents6=function(){this.$SystemEvents8(),this.$SystemEvents9(),this.$SystemEvents10(),this.$SystemEvents11()};a.prototype.$SystemEvents8=function(){var a=b("TimeSlice").guard(function(){this.$SystemEvents3||(this.$SystemEvents3=!0,this.inform(this.ONLINE,this.$SystemEvents3))}.bind(this),"SystemEvents onOnline"),c=b("TimeSlice").guard(function(){this.$SystemEvents3&&(this.$SystemEvents3=!1,this.inform(this.ONLINE,this.$SystemEvents3))}.bind(this),"SystemEvents onOffline");b("UserAgent_DEPRECATED").ie()?b("UserAgent_DEPRECATED").ie()>=11?(window.addEventListener("online",a,!1),window.addEventListener("offline",c,!1)):b("UserAgent_DEPRECATED").ie()>=8?window.attachEvent("onload",function(){document.body.ononline=a,document.body.onoffline=c}):b("setIntervalAcrossTransitions")(function(){(navigator.onLine?a:c)()},h):window.addEventListener&&(window.addEventListener("online",a,!1),window.addEventListener("offline",c,!1))};a.prototype.$SystemEvents13=function(){clearTimeout(this.$SystemEvents5),this.$SystemEvents5=b("setTimeoutAcrossTransitions")(this.$SystemEvents12,h)};a.prototype.$SystemEvents9=function(){if(self!==top&&b("gkx")("AT7WkTBxtNvgg_cd28WME4VYYDSKNpQ6HV3ctXAazcEPazpx3HNWlYY_-VsDnRxxrQVwv993oQqldtr2UtEMBK_M9oLZL53MZPvIfc3E35mYU8nK0yCIOLib0JAs2StViz4"))return;b("gkx")("AT72AlgY59EKSOuCUEsuNGbWTW69f1LrBG_LxugpCdh4wELvqVniwX_iqC_4mJ8Vy26mVWILg2OAip_cjALGqTt-n2n6gpyEWH0Q7NvRHBsELlO3gDjVTWbvLiWom5Li7tg")&&b("UserActivity").subscribe(function(){this.$SystemEvents13()}.bind(this));this.$SystemEvents13()};a.prototype.$SystemEvents10=function(){b("setIntervalAcrossTransitions")(this.checkTimeTravel.bind(this),h)};a.prototype.$SystemEvents11=function(){b("setIntervalAcrossTransitions")(function(){window.onerror!=b("ErrorUtils").onerror&&(window.onerror=b("ErrorUtils").onerror)},h)};a.prototype.$SystemEvents7=function(){return b("Cookie").get("c_user")||"0"};e.exports=new a()}),19);
__d("RTISubscriptionManager",["invariant","Arbiter","BanzaiODS","Bootloader","ChannelConstants","CurrentUser","ErrorUtils","RTIFriendFanoutConfig","RTISubscriptionManagerConfig","RTISubscriptionStore","RTISubscriptionToken","Run","SkywalkerOracle","SystemEvents","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("SkywalkerOracle").OracleGK,i=b("ChannelConstants").SUBSCRIPTION_STATE;function j(){__p&&__p();this.$1=new(b("RTISubscriptionStore"))(),this.$2=null,this.$3,this.$4=!1,this.$5=!1,this.$6=!1,this.$7=!0,this.$8=0,this.$9=document.readyState==="complete",b("Run").onAfterLoad(function(){this.$9=!0,this.flush()}.bind(this)),this.$10=null,b("Arbiter").subscribe(b("ChannelConstants").ON_ENTER_STATE,function(a,c){if(!this.$10)return;a=/pull/.test(c.state);!this.$2&&a?(this.$3=!0,this.$4||(this.$4=!0,b("setTimeoutAcrossTransitions")(function(){this.$2=this.$3,this.$4=!1,this.$2&&this.flush()}.bind(this),j.PULL_HINT_DELAY_MILLIS))):!a?(this.$3=!1,this.$2=!1):a&&(this.$2=!0,this.flush())}.bind(this)),b("SystemEvents").subscribe(b("SystemEvents").ONLINE,function(a,b){b||(this.$2=!1,this.$3=!1)}.bind(this)),b("SystemEvents").subscribe(b("SystemEvents").USER,function(a,b){this.$2=!1,this.$3=!1,this.$1.clearSubscriptions()}.bind(this)),b("Arbiter").subscribe(b("ChannelConstants").RTI_SESSION,function(a,b){!this.$10&&b&&this.deleteSubscriptions(function(a){return a.getState()===i.UNSUBSCRIBE}),this.$10=b,this.$10&&(this.$2=!0,this.flush())}.bind(this)),b("Arbiter").subscribe(b("ChannelConstants").ON_INVALID_HISTORY,function(){this.$2=!0,this.forEachSubscription(function(a){a.setDirty(!0)}),this.getCurrentSession()}.bind(this)),this.getCurrentSession(),b("Arbiter").subscribe(b("ChannelConstants").SKYWALKER,function(a,c){b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","skywalker_delivery");a=c.obj.topic;var d=c.obj.view_id,e={};c.obj.payloads===undefined?e.obj=[c.obj.payload]:e.obj=c.obj.payloads;c=b("ChannelConstants").getRTISkywalkerArbiterType(a,d);b("Arbiter").inform(c,e)}.bind(this)),this.$11()}j.prototype.subscribe=function(a,c,d,e,f){__p&&__p();a||g(0);c||g(0);b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","subscribe_attempt");e=this.$1.subscribe(a,c,d,e,f);f=this.$12(e);var h=a.substr(0,a.lastIndexOf("/"));if(b("RTIFriendFanoutConfig").passFriendFanoutSubscribeGK&&b("RTIFriendFanoutConfig").topicPrefixes.indexOf(h)>=0){h=a+"_user_id_"+b("CurrentUser").getID();a=this.$1.subscribe(h,c,d);h=this.$12(a);f.setFriendFanoutToken(h)}e.isDirty()&&this.flush();return f};j.prototype.mutateContext=function(a,c){a||g(0),c||g(0),b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","mutate_context_attempt"),this.$1.isSubscribed(a)&&(this.$1.mutateContext(a,c),this.flush())};j.prototype.unsubscribe=function(a){a||g(0),b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","unsubscribe_attempt"),this.$1.unsubscribe(a)};j.prototype.unsubscribeAll=function(a){if(this.isReady()){b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","unsubscribe_all");var c={reset:"t"};this.$10.issueRequest("/sub",c,{},a?a:function(){})}};j.prototype.activePing=function(){if(this.isReady()){var a={state:"active"};this.$10.issueRequest("/active_ping",a,{},function(a){})}};j.prototype.flush=function(){__p&&__p();if(this.isReady()&&!this.$5){this.$5=!0;this.$6=!1;if(this.$8>=this.getMaxConsecutiveFlushFailures()){b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","reset_state");this.$8=0;this.$1.clearSubscriptions();this.unsubscribeAll(function(){this.$5=!1}.bind(this));return}var a=[],c={},d=!0,e=0,f=function(b){__p&&__p();if(e>=this.getMaxFlushBatchSize()){this.$6=!0;return!0}if(b.isDirty()){b.getState()===i.MUTATE_CONTEXT&&(d=!1);var f="subscriptions",g=c[f];g||(g=[],c[f]=g);a.push(b);b.setDirty(!1);b.setSent(!1);f={topic:b.getTopic(),state:b.getState(),context:b.getContext(),viewId:b.getViewId()};e+=1;g.push(f)}else d=!1;return!1}.bind(this);this.forEachSubscription(f);if(d&&c.subscriptions&&c.subscriptions.length>0){f=[];for(var g=0;g<c.subscriptions.length;g++)c.subscriptions[g].state===i.SUBSCRIBE&&f.push(c.subscriptions[g]);c.subscriptions=f;this.$7=!0}g=function(c){__p&&__p();var d=c.data!=null;this.$8=d?0:this.$8+1;this.$7&&d&&(this.$7=!1);for(var e=0;e<a.length;e++){var f=a[e];f.isDirty()||(f.setSent(d),f.setDirty(!d));if(f.getState()===i.SUBSCRIBE){d?b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","subscribe_success"):b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","subscribe_failure");var g=f.getSubscribeCallback();g&&b("ErrorUtils").applyWithGuard(g,this,[c])}else f.getState()===i.MUTATE_CONTEXT?d?(b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","mutate_context_success"),f.setState(i.SUBSCRIBE)):b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","mutate_context_failure"):f.getState()===i.UNSUBSCRIBE&&(d?b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","unsubscribe_success"):b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","unsubscribe_failure"))}this.deleteSubscriptions(function(a){return a.getState()===i.UNSUBSCRIBE&&a.isSent()&&!a.isDirty()});this.$5=!1;this.$6&&(b("BanzaiODS").bumpEntityKey("RTISubscriptionManager","repeated_flush"),this.$6=!1,this.flush())}.bind(this);if(Object.keys(c).length>0){f={};this.$7&&(f.reset="t");this.$10.issueRequest("/sub",f,c,g)}else this.$5=!1}else this.$6=!0,this.$10===null&&this.getCurrentSession()};j.prototype.deleteSubscriptions=function(a){a||g(0),this.$1.deleteSubscriptions(a)};j.prototype.forEachSubscription=function(a){a||g(0),this.$1.forEachSubscription(a)};j.prototype.isFlushInProgress=function(){return this.$5};j.prototype.getSubscriptions=function(){var a=[];this.forEachSubscription(function(b){a.push(b)});return a};j.prototype.isUnflushedUnsubscribe=function(a){a||g(0);return a in this.$13};j.prototype.isSubscribed=function(a){a||g(0);return this.$1.isSubscribed(a)};j.prototype.isReady=function(){return this.$10&&this.$2!==null&&this.$2&&this.$9?!0:!1};j.prototype.getCurrentSession=function(){b("Arbiter").inform(b("ChannelConstants").GET_RTI_SESSION_REQUEST)};j.prototype.getMaxConsecutiveFlushFailures=function(){if(b("RTISubscriptionManagerConfig").config&&Object.prototype.hasOwnProperty.call(b("RTISubscriptionManagerConfig").config,"max_consecutive_flush_failures"))return b("RTISubscriptionManagerConfig").config.max_consecutive_flush_failures;else return b("ChannelConstants").DEFAULT_MAX_CONSECUTIVE_FLUSH_FAILURES};j.prototype.getMaxFlushBatchSize=function(){if(b("RTISubscriptionManagerConfig").config&&Object.prototype.hasOwnProperty.call(b("RTISubscriptionManagerConfig").config,"max_subscription_flush_batch_size"))return b("RTISubscriptionManagerConfig").config.max_subscription_flush_batch_size;else return b("ChannelConstants").DEFAULT_MAX_SUBSCRIPTION_FLUSH_BATCH_SIZE};j.prototype.$12=function(a){return new(b("RTISubscriptionToken"))(a,function(a){this.unsubscribe(a)}.bind(this),function(a,b){this.mutateContext(a,b)}.bind(this),function(){this.flush()}.bind(this),function(a){return this.isSubscribed(a)}.bind(this))};j.prototype.$11=function(){h&&b("Bootloader").loadModules(["SkywalkerOracleManager"],function(a){new a(function(a,b){this.subscribe(a,b)}.bind(this)).startOracle()}.bind(this),"RTISubscriptionManager")};b("Run").onUnload(function(){j.unsubscribeAll()});j.PULL_HINT_DELAY_MILLIS=1e4;Object.keys(j.prototype).forEach(function(a){j[a]=function(){var b=j;return j.prototype[a].apply(b,arguments)}});j.call(j);e.exports=j}),null);
__d("PlatformDialog",["cx","CSS","DOMEvent","DOMEventListener"],(function(a,b,c,d,e,f,g){__p&&__p();var h;a.getInstance=function(){"use strict";return h};function a(a,c,d){"use strict";h=this,this.$1=a,this.$2=c,this.$3=!1,b("DOMEventListener").add(this.$1,"submit",function(c){if(this.$3){new(b("DOMEvent"))(c).kill();return}this.$3=!0;d&&b("CSS").addClass(a,"_32qa")}.bind(this))}a.prototype.getForm=function(){"use strict";return this.$1};a.prototype.getDisplay=function(){"use strict";return this.$2};a.prototype.hasBeenSubmitted=function(){"use strict";return this.$3};a.RESPONSE="platform/dialog/response";e.exports=a}),null);
__d("ArbiterFrame",[],(function(a,b,c,d,e,f){__p&&__p();a={inform:function(a,b,c){var d=parent.frames,e=d.length,f;b.crossFrame=!0;for(var g=0;g<e;g++){f=d[g];try{if(!f||f==window)continue;f.require?f.require("Arbiter").inform(a,b,c):f.ServerJSAsyncLoader&&f.ServerJSAsyncLoader.wakeUp(a,b,c)}catch(a){}}}};e.exports=a}),null);
__d("isAdsExcelAddinURI",[],(function(a,b,c,d,e,f){var g=new RegExp("(^|\\.)fbaddins\\.com$","i"),h=["https"];function a(a){if(a.isEmpty()&&a.toString()!=="#")return!1;return!a.getDomain()&&!a.getProtocol()?!1:h.indexOf(a.getProtocol())!==-1&&g.test(a.getDomain())}e.exports=a}),null);
__d("isValidURI",[],(function(a,b,c,d,e,f){var g=new RegExp("((^|\\.)atlassolutions\\.com$)|((^|\\.)instagram\\.com$)|((^|\\.)wit\\.ai$)|((^|\\.)accountkit\\.com$)","i"),h=["https"];function a(a){if(a.isEmpty()&&a.toString()!=="#")return!1;return!a.getDomain()&&!a.getProtocol()?!1:h.includes(a.getProtocol())&&g.test(a.getDomain())}e.exports=a}),null);
__d("AsyncSignal",["Promise","ErrorUtils","QueryString","Run","TimeSlice","TrackingConfig","URI","ZeroRewrites","getAsyncParams","isAdsExcelAddinURI","isBonfireURI","isFacebookURI","isMessengerDotComURI","isValidURI","memoize","promiseDone"],(function(a,b,c,d,e,f){__p&&__p();var g;function a(a,c){this.data=c||{},this.uri=a.toString(),b("TrackingConfig").domain&&this.uri.charAt(0)=="/"&&(this.uri=b("TrackingConfig").domain+this.uri)}a.prototype.setHandler=function(a){this.handler=a;return this};a.prototype.setTimeout=function(a){this.timeout=a;return this};a.prototype.send=function(){b("TimeSlice").guard(this._send.bind(this),"AsyncSignal send",{propagationType:b("TimeSlice").PropagationType.ORPHAN})()};a.prototype._send=function(){__p&&__p();var a=this.handler,c=this.data;c.asyncSignal=(Math.random()*1e4|0)+1;var d=b("ZeroRewrites").rewriteURI(new(b("URI"))(this.uri));d=b("isFacebookURI")(d)||b("isMessengerDotComURI")(d)||b("isBonfireURI")(d)||b("isAdsExcelAddinURI")(d)||b("isValidURI")(d);if(d)Object.assign(c,b("getAsyncParams")("POST"));else throw new Error("'"+this.uri+"' is an external URL, you should not send async signals to offsite links.");var e=b("QueryString").appendToUrl(this.uri,c);g||(g=new(b("Promise"))(function(a){b("Run").onAfterLoad(a)}));d=g.then(function(){return new(b("Promise"))(function(a,b){var c=new Image();c.onload=a;c.onerror=c.onabort=b;c.src=e})});if(a){var f=!1,h=b("memoize")(function(){b("ErrorUtils").applyWithGuard(a,null,[f])});b("promiseDone")(d.then(function(){f=!0,h()},h));this.timeout&&setTimeout(h,this.timeout)}return this};e.exports=a}),null);
__d("AbstractErrorSignal",["invariant","BanzaiODS","ScriptPath","SessionName","SiteData"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=!0;function i(){this.constructor!==i||g(0)}i.prototype.logJSError=function(a,c){__p&&__p();c=c||{};c.svn_rev=b("SiteData").client_revision;c.push_phase=b("SiteData").push_phase;c.script_path=b("ScriptPath").getScriptPath();c.extra=c.extra||{};c.extra.hrm=b("SiteData").be_mode;var d=c.extra.type||"error";h&&a==="onerror"&&d==="error"&&(c.extra.extra=c.extra.extra||[],c.extra.extra.push("first_error"),h=!1);d=(b("SessionName").getName()||"-")+"/-";this.sendErrorSignal("javascript_error",JSON.stringify({c:a,a:d,m:c}))};i.prototype.sendBeaconErrorSignal=function(){var a="beacon_error",c=(b("SessionName").getName()||"-")+"/-",d={};d.error=a;d.svn_rev=b("SiteData").client_revision;d.push_phase=b("SiteData").push_phase;d.script_path=b("ScriptPath").getScriptPath();d.extra={message:a,type:"info"};this.sendErrorSignal(a,JSON.stringify({c:a,a:c,m:d}))};i.prototype.sendErrorSignal=function(a,b){this.performCounterLogging(a);switch(a){case"async_error":var c=JSON.parse(b),d=c.err_code;c=c.path;d in{1004:1,12029:1,12031:1,12152:1}&&c.indexOf("scribe_endpoint.php")==-1&&this.performSignalLogging(a,b);break;default:this.performSignalLogging(a,b)}};i.prototype.performCounterLogging=function(a){b("BanzaiODS").bumpEntityKey("js_error_reporting","error_signal.category."+a);switch(a){case"beacon_error":b("BanzaiODS").bumpEntityKey("js_error_reporting","beacon_error_signal.sent");break;case"javascript_error":b("BanzaiODS").bumpEntityKey("js_error_reporting","error_signal.sent");break}};i.prototype.performSignalLogging=function(a,b){g(0)};e.exports=i}),null);
__d("XJavaScriptLogviewSiteCategory",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({MBASIC:"m_basic",MTOUCH:"m_touch",WWW:"www"})}),null);
__d("ErrorSignal",["AbstractErrorSignal","AsyncRequest","AsyncSignal","BanzaiODS","ErrorSignalConfig","XJavaScriptLogviewSiteCategory","emptyFunction"],(function(a,b,c,d,e,f){__p&&__p();var g,h;g=babelHelpers.inherits(c,b("AbstractErrorSignal"));h=g&&g.prototype;c.prototype.performCounterLogging=function(a){"use strict";h.performCounterLogging.call(this,a);switch(a){case"javascript_error":b("BanzaiODS").bumpEntityKey("js_error_reporting","error_signal."+b("XJavaScriptLogviewSiteCategory").WWW+".sent");break}};c.prototype.performSignalLogging=function(a,c){"use strict";switch(a){case"async_error":new(b("AsyncRequest"))().setURI(b("ErrorSignalConfig").uri).setData({c:"async_error",m:c}).setMethod("GET").setReadOnly(!0).setOption("suppressEvaluation",!0).setOption("suppressErrorAlerts",!0).setHandler(b("emptyFunction")).setErrorHandler(b("emptyFunction")).send(!0);break;default:new(b("AsyncSignal"))(b("ErrorSignalConfig").uri,{c:a,m:c}).send();break}};function c(){"use strict";g.apply(this,arguments)}d=new c();e.exports=d;a.ErrorSignal=d}),null);
__d("XHPTemplate",["DataStore","DOM","HTML","XHPTemplateProcessor"],(function(a,b,c,d,e,f){__p&&__p();var g=b("XHPTemplateProcessor").processor;function h(a){"use strict";g instanceof Function&&(a=g(a)),this._model=a}h.prototype.render=function(){"use strict";b("HTML").isHTML(this._model)&&(this._model=b("DOM").setContent(document.createDocumentFragment(),this._model)[0]);return this._model.cloneNode(!0)};h.prototype.build=function(){"use strict";return new i(this.render())};h.getNode=function(a,b){"use strict";return h.getNodes(a)[b]};h.getNodes=function(a){"use strict";__p&&__p();var c=b("DataStore").get(a,"XHPTemplate:nodes");if(!c){c={};var d=b("DOM").scry(a,"[data-jsid]");d.push(a);var e=d.length;while(e--){var f=d[e];c[f.getAttribute("data-jsid")]=f;f.removeAttribute("data-jsid")}b("DataStore").set(a,"XHPTemplate:nodes",c)}return c};function i(a){"use strict";this._root=a,this._populateNodes()}i.prototype._populateNodes=function(){"use strict";this._nodes={};this._leaves={};var a=this._root.getElementsByTagName("*");for(var b=0,c=a.length;b<c;b++){var d=a[b],e=d.getAttribute("data-jsid");e&&(d.removeAttribute("data-jsid"),this._nodes[e]=d,this._leaves[e]=!d.childNodes.length)}};i.prototype.getRoot=function(){"use strict";return this._root};i.prototype.getNode=function(a){"use strict";return this._nodes[a]};i.prototype.setNodeProperty=function(a,b,c){"use strict";this.getNode(a)[b]=c;return this};i.prototype.setNodeContent=function(a,c){"use strict";if(!this._leaves[a])throw new Error("Can't setContent on non-leaf node: "+a);b("DOM").setContent(this.getNode(a),c);return this};e.exports=h}),null);
__d("Plugin",["Arbiter","ArbiterFrame"],(function(a,b,c,d,e,f){__p&&__p();var g={CONNECT:"platform/plugins/connect",DISCONNECT:"platform/plugins/disconnect",ERROR:"platform/plugins/error",RELOAD:"platform/plugins/reload",DIALOG:"platform/plugins/dialog",connect:function(a,c){a={identifier:a,href:a,story_fbid:c};b("Arbiter").inform(g.CONNECT,a);b("ArbiterFrame").inform(g.CONNECT,a)},disconnect:function(a,c){a={identifier:a,href:a,story_fbid:c};b("Arbiter").inform(g.DISCONNECT,a);b("ArbiterFrame").inform(g.DISCONNECT,a)},error:function(a,c){b("Arbiter").inform(g.ERROR,{action:a,content:c})},reload:function(a){b("Arbiter").inform(g.RELOAD,{reloadUrl:a||""}),b("ArbiterFrame").inform(g.RELOAD,{reloadUrl:a||""})},reloadOtherPlugins:function(a,c){b("ArbiterFrame").inform(g.RELOAD,{reloadUrl:"",reload:a||"",identifier:c||""})}};e.exports=g}),null);
__d("PluginReturn",["invariant","Arbiter","Log","PlatformDialog","PlatformWidgetEndpoint","Plugin","URI"],(function(a,b,c,d,e,f,g){__p&&__p();b("Arbiter").subscribe(b("PlatformDialog").RESPONSE,function(event,a){if(a.error_code){b("Log").debug("Plugin Return Error (%s): %s",a.error_code,a.error_message||a.error_description);return}b("Plugin").reload(a.plugin_reload)});var h={auto:function(){b("Arbiter").subscribe(b("Plugin").RELOAD,function(event,a){a=typeof a==="object"?a.reloadUrl:a;h.reload(a)})},syncPlugins:function(){b("Arbiter").subscribe(b("Plugin").RELOAD,function(event,a){a.crossFrame&&h.reload(a.reloadUrl,a.reload,a.identifier)})},reload:function(a,c,d){d=b("URI").getRequestURI().removeQueryData("ret").removeQueryData("act").removeQueryData("hash").addQueryData("reload",c).addQueryData("id",d);if(a){var c=new(b("URI"))(a);b("PlatformWidgetEndpoint").isPluginEndpoint(c.getPath())||g(0);d.setPath(c.getPath()).addQueryData(c.getQueryData())}window.location.replace(d.toString())}};e.exports=h}),null);
__d("PluginXDReady",["Arbiter","UnverifiedXD"],(function(a,b,c,d,e,f){c={handleMessage:function(a){if(!a.method)return;try{b("Arbiter").inform("Connect.Unsafe."+a.method,JSON.parse(a.params),b("Arbiter").BEHAVIOR_PERSISTENT)}catch(a){}}};a.XdArbiter=c;b("UnverifiedXD").send({xd_action:"plugin_ready",name:window.name});e.exports=null}),null);
__d("SimpleFBAuthenticatedXHRRequest",["invariant","CurrentUser","DTSG","ServerJSDefine","XHRRequest","isFacebookURI"],(function(a,b,c,d,e,f,g){__p&&__p();var h,i=1;a=babelHelpers.inherits(j,b("XHRRequest"));h=a&&a.prototype;function j(a,c){"use strict";h.constructor.call(this,a);a={__dyn:b("ServerJSDefine").getLoadedModuleHash(),__req:(i++).toString(36),__ajax__:1,__a:1,__user:b("CurrentUser").getID()};h.setData.call(this,babelHelpers["extends"]({},c,a))}j.prototype.send=function(){"use strict";__p&&__p();if(!b("isFacebookURI")(this.getURI()))return h.send.call(this);if(b("DTSG").getCachedToken){var a=b("DTSG").getCachedToken();if(a)return this.sendOnDTSGToken(a);else{b("DTSG").getToken().done(function(a){return this.sendOnDTSGToken(a)}.bind(this));return this}}else this.sendOnDTSGToken(b("DTSG").getToken())};j.prototype.sendOnDTSGToken=function(a){"use strict";a&&h.setData.call(this,babelHelpers["extends"]({},this.getData(),{fb_dtsg:a}));return h.send.call(this)};j.prototype.setData=function(a){"use strict";g(0)};j.parseResponse=function(a){"use strict";return JSON.parse(a.substr(9))};j.getPayload=function(a){"use strict";a=j.parseResponse(a).payload;return a.payload?a.payload:a};e.exports=j}),null);
__d("XFantailLogController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ajax/fantail/",{service:{type:"String",required:!0}})}),null);
__d("FantailLogQueue",["ChannelClientID","CircularBuffer","FantailConfig","PHPQuerySerializer","SimpleFBAuthenticatedXHRRequest","XFantailLogController","destroyOnUnload","setIntervalAcrossTransitions","sprintf"],(function(a,b,c,d,e,f){__p&&__p();var g={DEBUG:"debug",INFO:"info",WARN:"warn",ERROR:"error"};function h(a){"use strict";this.$2=a,this.$3=new(b("CircularBuffer"))(200),b("setIntervalAcrossTransitions")(this.$4.bind(this),30*1e3),b("destroyOnUnload")(this.$4.bind(this))}h.get=function(a){"use strict";h.$1=h.$1||{};h.$1[a]=h.$1[a]||new h(a);return h.$1[a]};h.prototype.debug=function(a){"use strict";for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d<b;d++)c[d-1]=arguments[d];this.$5.apply(this,[g.DEBUG,a].concat(c))};h.prototype.info=function(a){"use strict";for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d<b;d++)c[d-1]=arguments[d];this.$5.apply(this,[g.INFO,a].concat(c))};h.prototype.warn=function(a){"use strict";for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d<b;d++)c[d-1]=arguments[d];this.$5.apply(this,[g.WARN,a].concat(c))};h.prototype.error=function(a){"use strict";for(var b=arguments.length,c=new Array(b>1?b-1:0),d=1;d<b;d++)c[d-1]=arguments[d];this.$5.apply(this,[g.ERROR,a].concat(c))};h.prototype.$5=function(a,c){"use strict";for(var d=arguments.length,e=new Array(d>2?d-2:0),f=2;f<d;f++)e[f-2]=arguments[f];var g=b("sprintf").apply(undefined,[c].concat(e));this.$3.write({log_time:Date.now(),log:g,severity:a,device_id:b("ChannelClientID").getID()})};h.prototype.$4=function(){"use strict";__p&&__p();var a=this.$3.read();if(a.length>0){var c={log_time:[],log:[],severity:[],device_id:[]};a.forEach(function(a){c.log_time.push(a.log_time),c.log.push(a.log),c.severity.push(a.severity),c.device_id.push(a.device_id)});this.$3.clear();a=b("XFantailLogController").getURIBuilder().setString("service",this.$2).getURI();new(b("SimpleFBAuthenticatedXHRRequest"))(a,c).setMethod("POST").setDataSerializer(b("PHPQuerySerializer").serialize).setRequestHeader("Content-Type","application/x-www-form-urlencoded").send()}};e.exports=h}),null);
__d("NavigationMetricsEnumJS",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({NAVIGATION_START:"navigationStart",UNLOAD_EVENT_START:"unloadEventStart",UNLOAD_EVENT_END:"unloadEventEnd",REDIRECT_START:"redirectStart",REDIRECT_END:"redirectEnd",FETCH_START:"fetchStart",DOMAIN_LOOKUP_START:"domainLookupStart",DOMAIN_LOOKUP_END:"domainLookupEnd",CONNECT_START:"connectStart",CONNECT_END:"connectEnd",SECURE_CONNECTION_START:"secureConnectionStart",REQUEST_START:"requestStart",RESPONSE_START:"responseStart",RESPONSE_END:"responseEnd",DOM_LOADING:"domLoading",DOM_INTERACTIVE:"domInteractive",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_COMPLETE:"domComplete",LOAD_EVENT_START:"loadEventStart",LOAD_EVENT_END:"loadEventEnd"})}),null);
__d("ResourceTimingMetricsEnumJS",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({START_TIME:"startTime",REDIRECT_START:"redirectStart",REDIRECT_END:"redirectEnd",FETCH_START:"fetchStart",DOMAIN_LOOKUP_START:"domainLookupStart",DOMAIN_LOOKUP_END:"domainLookupEnd",CONNECT_START:"connectStart",SECURE_CONNECTION_START:"secureConnectionStart",CONNECT_END:"connectEnd",REQUEST_START:"requestStart",RESPONSE_START:"responseStart",RESPONSE_END:"responseEnd"})}),null);
__d("ImageTimingHelper",["Arbiter","BigPipe","URI"],(function(a,b,c,d,e,f){__p&&__p();var g={},h={};function i(a){__p&&__p();var c=a.lid,d=a.pagelet,e=a.images,f=a.timeslice,i=a.ts,j=g[c];j||(j=g[c]=[]);e.forEach(function(a){try{var c=new(b("URI"))(a);a=c.setFragment("").toString()}catch(a){return}if(h[a])return;h[a]=!0;j.push({pagelet:d,timeslice:f,ts:i,uri:a})})}b("Arbiter").subscribe(b("BigPipe").Events.init,function(a,b){b.lid&&b.lid!=="0"&&b.arbiter.subscribe("images_displayed",function(a,b){i(b)})});b("Arbiter").subscribe("MRenderingScheduler/images_displayed",function(a,b){i(b)});e.exports.getImageTimings=function(a){return g[a]||[]}}),null);
__d("NavigationTimingHelper",["NavigationMetricsEnumJS","forEachObject","performance"],(function(a,b,c,d,e,f){__p&&__p();function g(a,c){var d={};b("forEachObject")(b("NavigationMetricsEnumJS"),function(b){var e=c[b];e&&(d[b]=e+a)});return d}var h={getAsyncRequestTimings:function(a){if(!a||!b("performance").timing||!b("performance").getEntriesByName)return undefined;a=b("performance").getEntriesByName(a);return a.length===0?undefined:g(b("performance").timing.navigationStart,a[0])},getPerformanceNavigationTiming:function(){if(!b("performance").timing||!b("performance").getEntriesByType)return{};var a=b("performance").getEntriesByType("navigation");return!a.length?{}:g(b("performance").timing.navigationStart,a[0])},getNavTimings:function(){if(!b("performance").timing)return undefined;var a=babelHelpers["extends"]({},g(0,b("performance").timing),h.getPerformanceNavigationTiming());return g(0,a)}};e.exports=h}),null);
__d("PageletEventsHelper",["Arbiter","PageletEventConstsJS"],(function(a,b,c,d,e,f){__p&&__p();var g="BigPipe/init",h="MRenderingScheduler/init",i="pagelet_event",j="phase_begin",k={},l=[],m=!1;function n(){return{pagelets:{},categories:{},phase_start:{},display_resources:{},all_resources:{}}}function o(a,b,c,d){k[d]==undefined&&(k[d]=n()),k[d].pagelets[b]==undefined&&(k[d].pagelets[b]={}),k[d].pagelets[b][a]=c}function p(a){__p&&__p();a.subscribe(i,function(a,c){__p&&__p();var event=c.event,d=c.ts;a=c.id;var e=c.lid,f=c.phase,g=c.categories,h=c.allResources;c=c.displayResources;o(event,a,d,e);var i=k[e],j=i.pagelets[a];event===b("PageletEventConstsJS").ARRIVE_END&&(j.phase=f,i.all_resources[a]=h,i.display_resources[a]=c);(event===b("PageletEventConstsJS").ONLOAD_END||event===b("PageletEventConstsJS").DISPLAY_END)&&g&&g.forEach(function(a){i.categories[a]==undefined&&(i.categories[a]={}),i.categories[a][event]=d});for(var j=0,f=l.length;j<f;j++)l[j](a,event,d,e)}),a.subscribe(j,function(event,a){k[a.lid].phase_start[a.phase]=a.ts})}a={init:function(){__p&&__p();if(m)return;b("Arbiter").subscribe(g,function(event,a){var b=a.lid;a=a.arbiter;k[b]=n();p(a)});b("Arbiter").subscribe(h,function(event,a){var b=a.lid;a=a.arbiter;k[b]=n();p(a)});m=!0},getMetrics:function(a){return k[a]?JSON.parse(JSON.stringify(k[a])):null},subscribeToPageletEvents:function(a){l.push(a);return{remove:function(){l.splice(0,l.indexOf(a))}}}};e.exports=a}),null);
__d("ResourceTimingBootloaderHelper",["Bootloader","ErrorUtils","ImageTimingHelper","ResourceTimingMetricsEnumJS","ResourceTimingsStore","ResourceTypes","URI","forEachObject","isEmpty","performance"],(function(a,b,c,d,e,f){__p&&__p();var g=500,h=[],i={},j={},k={},l=[".mp4",".m4v",".mpd","m4a"],m=new Set(["bootload","js_exec","start_bootload","tag_bootload"]);function n(a){for(var b=0;b<l.length;b++){var c=l[b];if(a.endsWith(c))return!0}return!1}function o(a){__p&&__p();var c=new Map();b("ResourceTimingsStore").getMapFor(a).forEach(function(a){if(a.requestSent!=null){var b=c.get(a.uri);b!=null?b.push(a):c.set(a.uri,[a])}});c.forEach(function(a){return a.sort(function(a,b){return a.requestSent-b.requestSent})});return c}function p(a,b,c,d){__p&&__p();var e=a.get(b);if(e==null){var f=b.indexOf("?");if(f!==-1){b=b.substring(0,f);e=a.get(b)}}if(e!=null)for(var f=0;f<e.length;f++){a=e[f];b=a.requestSent;a=a.responseReceived;if((c==null||b!=null&&b<=c)&&(d==null||a!=null&&a>=d))return e.splice(f,1)[0]}return null}function q(a,c,d,e,f,g,h){__p&&__p();if(!b("performance").timing||!b("performance").getEntriesByType)return null;var i={},l=b("performance").timing.navigationStart;d&&(i=b("ImageTimingHelper").getImageTimings(e).sort(function(a,b){return a.ts-b.ts}).reduce(function(a,b){if(a[b.uri])return a;a[b.uri]=b.pagelet;return a},{}));d=Array.from(b("performance").getEntriesByType("resource"));e=d.filter(function(a){return a.duration>=0&&a.startTime!=null&&a.startTime+l>c&&(f==null||a.responseEnd==null||a.responseEnd+l<f)});e.sort(function(a,b){return a.startTime-b.startTime});d=e.length;var m=0,q=0,u=0,v=0,w=0,x=o(b("ResourceTypes").XHR),y=o(b("ResourceTypes").CSS),z=o(b("ResourceTypes").JS);for(var A=0;A<e.length;A++){var B=e[A],C="",D="",E=void 0,F=B.initiatorType;switch(F){case"css":case"link":case"script":F=b("ResourceTimingsStore").parseMakeHasteURL(B.name);if(!F)continue;var G=F[0];F=F[1];if(F==="css"||F==="js"){var H=F==="css"?y:z;E=p(H,B.name,B.startTime+l,B.responseEnd+l);if(E!=null&&h){D=F;C=E.uid;break}else{D=F;H=k[B.name]||u++;C=H+"_"+G}}else{F=t(B.name);H=F[0];D=F[1];C=q+++"_"+H}break;case"img":C=q+++"_"+r(B.name);D="img";break;case"iframe":C=v+++"_"+r(B.name)+s(B.name);D="iframe";break;case"xmlhttprequest":if(g){G=r(B.name);F=s(B.name);if(n(F)){C=w+++"_"+G+F;D="video";break}else{E=p(x,B.name,B.startTime+l,B.responseEnd+l);if(E!=null){D=b("ResourceTypes").XHR;C=E.uid;break}}}default:continue}H={};G=Object.keys(b("ResourceTimingMetricsEnumJS"));for(var F=0;F<G.length;F++){var I=b("ResourceTimingMetricsEnumJS")[G[F]],J=B[I];J&&(H[I]=J+b("performance").timing.navigationStart)}if(E!=null){I=E;J=I.requestSent;F=I.responseReceived;if(c!=null&&J!=null&&J<c||f!=null&&F!=null&&F>f)continue;H.requestSent=J;H.responseReceived=F}H.type=D;H.desc=C;if(E!=null&&(D===b("ResourceTypes").JS||D===b("ResourceTypes").CSS||D===b("ResourceTypes").XHR)){G=b("ResourceTimingsStore").getAnnotationsFor(D,E.uid);G!=null&&(H.annotations=G)}D=="img"&&Object.prototype.hasOwnProperty.call(i,B.name)&&(H.pagelet=i[B.name]);H.transferSize=B.transferSize;H.encodedBodySize=B.encodedBodySize;a[B.name]==undefined&&(a[B.name]=[]);m++;a[B.name].push(H)}return h?{numValidEntries:d,numSuccessfulMetrics:m}:null}function r(a){a=new(b("URI"))(a).getDomain();return a}function s(a){a=new(b("URI"))(a).getPath();return a}function t(a){return[r(a),"img"]}function u(a){__p&&__p();var b=Object.keys(a).filter(function(a){return a.startsWith("start_bootload/")}).sort(function(b,c){return a[b]-a[c]}).map(function(a){return a.substring(a.indexOf("/")+1)});b.forEach(function(b){return m.forEach(function(c){c=c+"/"+b;a[c]!=null&&(i[c]=a[c])})});h=h.concat(b);if(h.length>g){b=h.splice(0,h.length-g);b.forEach(function(a){return m.forEach(function(b){i[b+"/"+a]&&delete i[b+"/"+a]})})}}a={addPastBootloaderMetricsToResourceTimings:function(c,d){__p&&__p();c===void 0&&(c={});d===void 0&&(d={});var a=b("Bootloader").getURLToHashMap();b("forEachObject")(c,function(b,c){__p&&__p();var e=a[c];if(!e)return;var f=new Map();f.set("bootloader_hash",e);m.forEach(function(a){var b=a+"/"+e;b=d[b]||i[b];b!=null&&f.set(a,b)});f.size>0&&b.forEach(function(a){if(a.requestSent||a.responseReceived)return;f.forEach(function(b,c){return a[c]=b})})})},mergeBootloaderMetricsAndResourceTimings:function(a,c,d){__p&&__p();a===void 0&&(a={});c===void 0&&(c={});d===void 0&&(d=!0);b("isEmpty")(k)&&(k=b("Bootloader").getURLToHashMap());var e=new Map();b("forEachObject")(k,function(a,b){e.set(a,b)});var f=[];b("forEachObject")(c,function(b,c){__p&&__p();var d=c.indexOf("/");if(d===-1)return;var g=c.substring(0,d);if(!m.has(g))return;f.push(c);var h=c.substring(d+1);c=e.get(h);if(!c){c=h;h=k[c];if(!h)return}c.startsWith("data:")&&(c="inlined resource: "+h);a[c]==null&&(a[c]=[{}]);a[c].forEach(function(a){a.bootloader_hash=h,a[g]=b})});d||(u(c),f.forEach(function(a){return delete c[a]}));return a},getLastTTIAndE2EImageResponseEnds:function(a,c,d){__p&&__p();var e={TTI:a,E2E:c};if(!b("performance").timing)return e;var f=d.filter(function(b){return b.ts<=a}).map(function(a){return a.uri}).reduce(function(b,a){b[a]=!0;return b},{}),g=d.map(function(a){return a.uri}).reduce(function(b,a){b[a]=!0;return b},{});for(var h in j)j[h].forEach(function(a){a.type==="img"&&(f[h]&&(e.TTI=Math.max(e.TTI,a.responseEnd)),g[h]&&(e.E2E=Math.max(e.E2E,a.responseEnd)))});return e},getMetrics:function(a,c,d,e,f,g){j={};b("isEmpty")(k)&&(k=b("Bootloader").getURLToHashMap());a=q(j,a,c,d,e,f,g);return{data:j,diagnostics:a}}};e.exports=a}),null);
__d("PerfXFlusher",["invariant","Banzai"],(function(a,b,c,d,e,f,g){var h="perfx_custom_logger_endpoint",i=["perfx_page","perfx_page_type","lid"];function j(a){i.forEach(function(b){return g(b in a,'PerfXFlusher: Field "%s" missing in the PerfX payload',b)})}a={flush:function(a){j(a),b("Banzai").post(h,a,{signal:!0})},registerToSendWithBeacon:function(a){b("Banzai").registerToSendWithBeacon(h,a)}};e.exports=a}),null);
__d("PerfXSharedFields",[],(function(a,b,c,d,e,f){var g={addCommonValues:function(a){navigator&&navigator.hardwareConcurrency!==undefined&&(a.num_cores=navigator.hardwareConcurrency);navigator&&navigator.deviceMemory&&(a.ram_gb=navigator.deviceMemory);navigator&&navigator.connection&&(typeof navigator.connection.downlink==="number"&&(a.downlink_megabits=navigator.connection.downlink),typeof navigator.connection.effectiveType==="string"&&(a.effective_connection_type=navigator.connection.effectiveType),typeof navigator.connection.rtt==="number"&&(a.rtt_ms=navigator.connection.rtt));return a},getCommonData:function(){var a={};g.addCommonValues(a);return a}};e.exports=g}),null);
__d("QuicklingRefreshOverheadUtil",["QuicklingConfig","WebStorage","performanceAbsoluteNow"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=null,h=1e4;a={onQuicklingStart:function(){g=b("performanceAbsoluteNow")()},onQuicklingVersionMatch:function(){g=null},onQuicklingRefreshStart:function(){if(!b("QuicklingConfig").logRefreshOverhead||g===null)return;var a=b("WebStorage").getSessionStorage();if(!a)return;a.setItem("quickling_refresh_overhead",(b("performanceAbsoluteNow")()-g).toString());a.setItem("quickling_refresh_start",Date.now().toString())},getOverhead:function(a){__p&&__p();if(!b("QuicklingConfig").logRefreshOverhead)return null;var c=b("WebStorage").getSessionStorageForRead();if(!c)return null;var d=c.getItem("quickling_refresh_start");if(d==null)return null;if(a-parseInt(d,10)>h)return null;a=c.getItem("quickling_refresh_overhead");return a!=null?parseFloat(a):null}};e.exports=a}),null);
__d("pageLoadedViaSWCache",[],(function(a,b,c,d,e,f){function a(){return self.__SW_CACHE__===1}e.exports=a}),null);
__d("PerfXLogger",["ArtilleryOnUntilOffLogging","BanzaiODS","DataAttributeUtils","NavigationMetrics","NavigationTimingHelper","PerfXFlusher","PerfXSharedFields","QuicklingRefreshOverheadUtil","VisibilityListener","forEachObject","pageLoadedViaSWCache","performanceAbsoluteNow","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){__p&&__p();var g={},h={},i=65*1e3,j=["e2e","tti","all_pagelets_displayed","all_pagelets_loaded","artillery_disable_time"],k={},l={_listenersSetUp:!1,_uploadEarly:!1,_alreadyUploadedEarly:!1,_setupListeners:function(){__p&&__p();if(this._listenersSetUp)return;this._subscribeToNavigationMetrics();b("PerfXFlusher").registerToSendWithBeacon(function(){var a=[];b("forEachObject")(g,function(b,c){if(!g[c].sent){b=this.getPayload(c,"unload fired");b!=null&&a.push(b)}}.bind(this));g={};return a}.bind(this));this._listenersSetUp=!0},_init:function(a){__p&&__p();var b=a.lid;if(b==null)return;this._alreadyUploadedEarly=!1;this._uploadEarly=!!a.upload_perfx_early;delete a.upload_perfx_early;var c=h[b]||[];delete h[b];if(a.sw_controlled_tags){if(navigator.serviceWorker&&navigator.serviceWorker.controller)for(var d=0;d<a.sw_controlled_tags.length;d++)c.push(a.sw_controlled_tags[d]);delete a.sw_controlled_tags}g[b]=babelHelpers["extends"]({tags:new Set(c),sent:!1},a);this._registerTimeoutSendback(b);this._setupListeners()},initWithNavigationMetricsLID:function(a,c){__p&&__p();var d=b("NavigationMetrics").getFullPageLoadLid();if(!d)return;this._init(babelHelpers["extends"]({},c,{lid:d}));if(a&&a.always)for(var c=0;c<a.always.length;c++)l.addTag(d,a.always[c]);if(a&&a.swCache&&b("pageLoadedViaSWCache")())for(var c=0;c<a.swCache.length;c++)l.addTag(d,a.swCache[c])},init:function(a,b){b!=null&&a.lid!=null&&(k[a.lid]=b),this._init(a)},addTag:function(a,c){this._alreadyUploadedEarly&&b("BanzaiODS").bumpEntityKey("PerfXLateTag",c);var d=g[a];if(d){d.tags.add(c);return}h[a]||(h[a]=[]);h[a].push(c)},addTagWithNavigationMetricsLID:function(a){this._alreadyUploadedEarly&&b("BanzaiODS").bumpEntityKey("PerfXLateTag",a);var c=b("NavigationMetrics").getFullPageLoadLid();if(!c)return;l.addTag(c,a)},_registerTimeoutSendback:function(a){var c=this._getFetchStart(a),d=i;c!=null&&(d-=b("performanceAbsoluteNow")()-c);b("setTimeoutAcrossTransitions")(function(){return this._uploadPayload(a,"sendback time out")}.bind(this),d)},_subscribeToNavigationMetrics:function(){__p&&__p();b("NavigationMetrics").addRetroactiveListener(b("NavigationMetrics").Events.EVENT_OCCURRED,function(a,b){if(!(a in g))return;j.includes(b.event)&&Object.prototype.hasOwnProperty.call(b,"timestamp")&&b.timestamp!=null&&(g[a][b.event]=b.timestamp);b.event==="all_pagelets_displayed"&&this._uploadEarly&&(j.forEach(function(event){Object.prototype.hasOwnProperty.call(b,event)&&b[event]!=null&&(g[a][event]=b[event])}),this._uploadPayload(a),this._alreadyUploadedEarly=!0)}.bind(this)),b("NavigationMetrics").addRetroactiveListener(b("NavigationMetrics").Events.NAVIGATION_DONE,function(a,b){var c=b.serverLID;if(!(c in g))return;j.forEach(function(event){Object.prototype.hasOwnProperty.call(b,event)&&b[event]!=null&&(g[c][event]=b[event])});this._uploadPayload(c)}.bind(this))},_getPayloadWithOffset:function(a,c,d){__p&&__p();a=g[a];if(a==null)return null;var e=Object.assign({},a),f=document.querySelector('[id^="hyperfeed_story_id"]');if(f){f=JSON.parse(b("DataAttributeUtils").getDataFt(f));f&&(e.mf_query_id=f.qid)}e.tags=Array.from(a.tags);e.art_id||(e.artillery_disable_time=b("ArtilleryOnUntilOffLogging").lastDisableTime());this._adjustValues(e,c);e.fetch_start=c;if(e.perfx_page_type==="normal"){f=b("NavigationTimingHelper").getNavTimings();f!=null&&f.navigationStart!=null&&(e.nav_to_fetch=c-f.navigationStart);a=b("QuicklingRefreshOverheadUtil").getOverhead(c);a!==null&&(e.quickling_refresh_overhead=a)}d!=null&&(e.sendback_reason=d);b("PerfXSharedFields").addCommonValues(e);b("VisibilityListener").supported()&&e.fetch_start&&e.all_pagelets_displayed&&e.tti&&e.e2e&&(e.tab_hidden_time_dd=b("VisibilityListener").getHiddenTime(e.fetch_start,e.fetch_start+e.all_pagelets_displayed),e.tab_hidden_time_tti=b("VisibilityListener").getHiddenTime(e.fetch_start,e.fetch_start+e.tti),e.tab_hidden_time_e2e=b("VisibilityListener").getHiddenTime(e.fetch_start,e.fetch_start+e.e2e));window&&window.location&&window.location.pathname&&(e.request_uri=window.location.pathname);delete e.sent;return e},_uploadPayload:function(a,c){if(g[a]!=null&&!g[a].sent){c=this.getPayload(a,c);c!=null&&(b("PerfXFlusher").flush(c),g[a].sent=!0)}},getPayload:function(a,b){return this._getPayloadWithOffset(a,this._getFetchStart(a),b)},_getFetchStart:function(a){if(!(a in g))return null;var c=g[a].perfx_page_type;if(c=="quickling")if(!(a in k))return null;else c=b("NavigationTimingHelper").getAsyncRequestTimings(k[a]);else c=b("NavigationTimingHelper").getNavTimings();return!c||!c.fetchStart?null:c.fetchStart},_adjustValues:function(a,b){j.forEach(function(c){Object.prototype.hasOwnProperty.call(a,c)&&(a[c]-=b)})}};e.exports=l}),null);
__d("XRelayBootloadController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/relay/bootload/",{component:{type:"String",required:!0},params:{type:"String",required:!0},route:{type:"String",required:!0},uri:{type:"String",required:!0}})}),null);