if (self.CavalryLogger) { CavalryLogger.start_js(["Rpr16"]); } __d('HistoryManager',['SessionName','Cookie','Env','Event','URI','UserAgent_DEPRECATED','isFacebookURI','emptyFunction','goOrReplace','isInIframe','setIntervalAcrossTransitions'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();c('SessionName').getName();var h={history:null,current:0,fragment:null,isInitialized:function i(){return !!h._initialized;},init:function i(){if(!c('Env').ALLOW_TRANSITION_IN_IFRAME&&c('isInIframe')())return;if(h._initialized)return h;var j=new (c('URI'))(window.location.href),k=j.getFragment()||'';if(k.charAt(0)==='!'){k=k.substr(1);j.setFragment(k);}Object.assign(h,{_initialized:true,fragment:k,orig_fragment:k,history:[j],callbacks:[],lastChanged:Date.now(),canonical:new (c('URI'))('#'),user:0,enabled:true,debug:c('emptyFunction')});if(window.history&&history.pushState){this.lastURI=document.URL;window.history.replaceState(this.lastURI,null);c('Event').listen(window,'popstate',function(l){var m=l&&l.state&&typeof l.state==='string';if(m&&h.lastURI!=l.state){h.lastURI=l.state;h.lastChanged=Date.now();h.notify(new (c('URI'))(l.state).getUnqualifiedURI().toString());}}.bind(h));if(c('UserAgent_DEPRECATED').webkit()<534||c('UserAgent_DEPRECATED').chrome()<=13){c('setIntervalAcrossTransitions')(h.checkURI,42);h._updateRefererURI(this.lastURI);}return h;}h._updateRefererURI(c('URI').getRequestURI(false));if(c('UserAgent_DEPRECATED').webkit()<500||c('UserAgent_DEPRECATED').firefox()<2){h.enabled=false;return h;}if('onhashchange' in window){c('Event').listen(window,'hashchange',function(){setTimeout(h.checkURI.bind(h),0);});}else c('setIntervalAcrossTransitions')(h.checkURI,42);return h;},registerURIHandler:function i(j){h.callbacks.push(j);return h;},setCanonicalLocation:function i(j){h.canonical=new (c('URI'))(j);return h;},notify:function i(j){if(j==h.orig_fragment)j=h.canonical.getFragment();for(var k=0;k=0;--m)if(h.history[m].getFragment().replace(/%23/g,'#')==l)break;++h.user;if(m>=0){h.go(m-h.current);}else h.go('#'+l);--h.user;}},_updateRefererURI:function i(j){j=j.toString();if(j.charAt(0)!='/'&&j.indexOf('//')==-1)return;var k=new (c('URI'))(window.location);if(c('isFacebookURI')(k)){var l=k.getPath()+window.location.search;}else var l='';var m=new (c('URI'))(j).getQualifiedURI().setFragment(l).toString(),n=2048;if(m.length>n)m=m.substring(0,n)+'...';c('Cookie').set('x-referer',m);},go:function i(j,k,l){if(window.history&&history.pushState){k||typeof j=='number';var m=new (c('URI'))(j).removeQueryData('ref').toString();h.lastChanged=Date.now();this.lastURI=m;if(l){window.history.replaceState(j,null,m);}else window.history.pushState(j,null,m);if(c('UserAgent_DEPRECATED').webkit()<534)h._updateRefererURI(j);return false;}h.debug('go: '+j);if(k===undefined)k=true;if(!h.enabled)if(!k)return false;if(typeof j=='number'){if(!j)return false;var n=j+h.current,o=Math.max(0,Math.min(h.history.length-1,n));h.current=o;n=h.history[o].getFragment()||h.orig_fragment;n=new (c('URI'))(n).removeQueryData('ref').getUnqualifiedURI().toString();h.fragment=n;h.lastChanged=Date.now();if(!h.user)c('goOrReplace')(window.location,window.location.href.split('#')[0]+'#!'+n,l);if(k)h.notify(n);h._updateRefererURI(n);return false;}j=new (c('URI'))(j);if(j.getDomain()==new (c('URI'))(window.location.href).getDomain())j=new (c('URI'))('#'+j.getUnqualifiedURI());var p=h.history[h.current].getFragment(),q=j.getFragment();if(q==p||p==h.orig_fragment&&q==h.canonical.getFragment()){if(k)h.notify(q);h._updateRefererURI(q);return false;}if(l)h.current--;var r=h.history.length-h.current-1;h.history.splice(h.current+1,r);h.history.push(new (c('URI'))(j));return h.go(1,k,l);},getCurrentFragment:function i(){var j=c('URI').getRequestURI(false).getFragment();return j==h.orig_fragment?h.canonical.getFragment():j;}};f.exports=h;}),null); __d('escapeJSQuotes',[],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i){if(typeof i=='undefined'||i==null||!i.valueOf())return '';return i.toString().replace(/\\/g,'\\\\').replace(/\n/g,'\\n').replace(/\r/g,'\\r').replace(/"/g,'\\x22').replace(/'/g,'\\\'').replace(//g,'\\x3e').replace(/&/g,'\\x26');}f.exports=h;}),null); __d('PageTransitions',['invariant','fbt','Arbiter','Bootloader','DOMQuery','DOMScroll','Env','Event','HistoryManager','JSLogger','LayerHideOnEscape','ModalLayer','PageHooks','PageTransitionsConfig','PageTransitionsRegistrar','React','ScriptPath','URI','Vector','areEqual','clickRefAction','escapeJSQuotes','ge','goOrReplace','isInIframe'],(function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=['mh_','killabyte'],k={};function l(q,r){k[q.getUnqualifiedURI()]=r;}function m(q){return k[q.getUnqualifiedURI()];}function n(q){delete k[q.getUnqualifiedURI()];}function o(){var q={};window.location.search.slice(1).split('&').forEach(function(r){var s=r.split('='),t=s[0],u=s[1];if(j.some(function(v){return t.startsWith(v);}))q[t]=u;});return q;}var p={_scroll_locked:false,_transitions_disabled:false,isInitialized:function q(){return !!p._initialized;},_init:function q(){if(!c('Env').ALLOW_TRANSITION_IN_IFRAME&&c('isInIframe')())return;if(p._initialized)return p;var r=c('PageTransitionsRegistrar').getMostRecentURI();p._current_uri=r;p._most_recent_uri=r;p._next_uri=r;p._initialized=true;var s,t=c('URI').getRequestURI(false);if(t.getFragment().startsWith('/')){s=t.getFragment();}else s=r;c('HistoryManager').init().setCanonicalLocation('#'+s).registerURIHandler(p._historyManagerHandler);c('Event').listen(window,'scroll',function(){if(!p._scroll_locked)l(p._current_uri,c('Vector').getScrollPosition());});return p;},registerHandler:c('PageTransitionsRegistrar').registerHandler,removeHandler:c('PageTransitionsRegistrar').removeHandler,getCurrentURI:function q(r){this._init();if(!p._current_uri&&!r)return new (c('URI'))(p._most_recent_uri);return new (c('URI'))(p._current_uri);},isTransitioning:function q(){this._init();return !p._current_uri;},getNextURI:function q(){this._init();return this._next_uri;},getMostRecentURI:function q(){this._init();return new (c('URI'))(p._most_recent_uri);},go:function q(r,s){this._init();var t=o(),u=new (c('URI'))(r).removeQueryData('quickling').addQueryData(t).getQualifiedURI();c('JSLogger').create('pagetransition').debug('go',{uri:u.toString()});n(u);!s&&c('clickRefAction')('uri',{href:u.toString()},null,'INDIRECT');p._loadPage(u,function(v){if(v){c('ModalLayer').unfixed(function(){c('HistoryManager').go(u.toString(),false,s);});}else c('goOrReplace')(window.location,u,s);});},_historyManagerHandler:function q(r){if(r.charAt(0)!='/')return false;c('clickRefAction')('h',{href:r});if(!c('ScriptPath').getClickPointInfo())c('ScriptPath').setClickPointInfo({click:'back'});p._loadPage(new (c('URI'))(r),function(s){if(!s)c('goOrReplace')(window.location,r,true);});return true;},_loadPage:function q(r,s){if(new (c('URI'))(r).getFragment()&&c('areEqual')(new (c('URI'))(r).setFragment(null).getQualifiedURI(),new (c('URI'))(p._current_uri).setFragment(null).getQualifiedURI())){c('Arbiter').inform("pre_page_fragment_transition",{from:new (c('URI'))(p._current_uri).getFragment(),to:new (c('URI'))(r).getFragment()});if(p.restoreScrollPosition(r)){p._current_uri=p._most_recent_uri=r;c('Arbiter').inform("page_fragment_transition",{fragment:new (c('URI'))(r).getFragment()});return;}}var t;if(p._current_uri)t=m(p._current_uri);var u=function x(){if(t&&p._current_uri)l(p._current_uri,t);p._current_uri=null;p._next_uri=r;if(t)c('DOMScroll').scrollTo(t,false);p._scroll_locked=true;var y=p._handleTransition(r);if(s)if(y===c('PageTransitionsRegistrar').DELAY_HISTORY){setTimeout(function(){return s(y);},0);}else s(y);},v=p._next_uri;p._next_uri=r;var w=c('PageHooks').runHooks('onbeforeleavehooks');p._next_uri=v;if(w){p._warnBeforeLeaving(w,u);}else u();},_handleTransition:function q(r){window.onbeforeleavehooks=undefined;if(p._transitions_disabled||!r.isSameOrigin())return false;var s=c('PageTransitionsConfig').reloadOnBootloadError&&this._hasBootloadErrors();if(s)return false;var t,u=b.AsyncRequest;if(u)t=u.getLastID();c('Arbiter').inform("pre_page_transition",{from:p.getMostRecentURI(),to:r});var v=c('PageTransitionsRegistrar')._getTransitionHandlers();for(var w=v.length-1;w>=0;--w){var x=v[w];if(!x)continue;for(var y=x.length-1;y>=0;--y){var z=x[y](r);if(z===true||z===c('PageTransitionsRegistrar').DELAY_HISTORY){var aa={sender:this,uri:r,id:t};try{c('Arbiter').inform("page_transition",aa);}catch(ba){}return z;}else x.splice(y,1);}}return false;},disableTransitions:function q(){p._transitions_disabled=true;},_hasBootloadErrors:function q(){return c('Bootloader').getErrorUrls().length>0;},unifyURI:function q(){this._init();p._current_uri=p._most_recent_uri=p._next_uri;},transitionComplete:function q(r){this._init();p._scroll_locked=false;p._executeCompletionCallbacks();p.unifyURI();if(!r)p.restoreScrollPosition(p._current_uri);try{if(document.activeElement&&document.activeElement.nodeName==='A')document.activeElement.blur();}catch(s){}},_executeCompletionCallbacks:function q(){var r=c('PageTransitionsRegistrar')._getCompletionCallbacks();if(r.length>0){c('PageTransitionsRegistrar')._resetCompletionCallbacks();r.forEach(function(s){return s();});}},registerCompletionCallback:c('PageTransitionsRegistrar').registerCompletionCallback,rewriteCurrentURI:function q(r,s){this._init();var t=c('PageTransitionsRegistrar')._getTransitionHandlers(),u=t.length||1,v=false;c('PageTransitionsRegistrar').registerHandler(function(){if(r==p.getMostRecentURI().getUnqualifiedURI().toString()){p.transitionComplete();return true;}v=true;},u);p.go(s,true);!(t.length===u+1&&t[u].length===(v?0:1))?h(0):void 0;t.length=u;},_warnBeforeLeaving:function q(r,s){c('Bootloader').loadModules(["DialogX","XUIDialogTitle.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIGrayText.react"],function(t,u,v,w,x,y){var z=new t({width:450,addedBehaviors:[c('LayerHideOnEscape')]},c('React').createElement('div',null,c('React').createElement(u,{showCloseButton:false},i._("Leave Page?")),c('React').createElement(v,null,c('React').createElement(y,{shade:'medium',size:'medium'},r)),c('React').createElement(x,null,c('React').createElement(w,{action:'cancel',label:i._("Stay on This Page")}),c('React').createElement(w,{action:'confirm',use:'confirm',label:i._("Leave This Page")}))));z.subscribe('confirm',function(){z.hide();s();});z.show();},'PageTransitions');},restoreScrollPosition:function q(r){var s=m(r);if(s){c('DOMScroll').scrollTo(s,false);return true;}function t(w){if(!w)return null;var x="a[name='"+c('escapeJSQuotes')(w)+"']";return c('DOMQuery').scry(document.body,x)[0]||c('ge')(w);}var u=t(new (c('URI'))(r).getFragment());if(u){var v=c('Vector').getElementPosition(u);v.x=0;c('DOMScroll').scrollTo(v);return true;}return false;}};f.exports=p;b.PageTransitions=p;}),null); __d('PopoverMenuShowOnHover',['Event'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=250;function i(j){'use strict';this._popoverMenu=j;this._listeners=[];}i.prototype.enable=function(){'use strict';this._attachMouseListeners(this._popoverMenu.getTriggerElem());this._setMenuSubscription=this._popoverMenu.subscribe('setMenu',this._onSetMenu.bind(this));};i.prototype.disable=function(){'use strict';while(this._listeners.length)this._listeners.pop().remove();if(this._setMenuSubscription){this._setMenuSubscription.unsubscribe();this._setMenuSubscription=null;}};i.prototype._onSetMenu=function(){'use strict';this._attachMouseListeners(this._popoverMenu.getPopover().getLayer().getRoot());};i.prototype._attachMouseListeners=function(j){'use strict';var k=this._popoverMenu.getPopover(),l=null;this._listeners.push(c('Event').listen(j,'mouseleave',k.hideLayer.bind(k)),c('Event').listen(j,'mouseenter',function(){l=Date.now();k.showLayer();}),c('Event').listen(j,'click',function(m){if(Date.now()