HiddenEye-Legacy/WebPages/fb_standard/index_files/75A8CjRhJNV.js
2019-06-23 08:28:33 +05:00

47 lines
73 KiB
JavaScript

if (self.CavalryLogger) { CavalryLogger.start_js(["n6JEm"]); }
__d("ScriptPathState",["Arbiter"],(function(a,b,c,d,e,f){__p&&__p();var g,h,i,j,k=100,l={setIsUIPageletRequest:function(a){i=a},setUserURISampleRate:function(a){j=a},reset:function(){g=null,h=!1,i=!1},_shouldUpdateScriptPath:function(){return h&&!i},_shouldSendURI:function(){return Math.random()<j},getParams:function(){var a={};l._shouldUpdateScriptPath()?l._shouldSendURI()&&g!==null&&(a.user_uri=g.substring(0,k)):a.no_script_path=1;return a}};b("Arbiter").subscribe("pre_page_transition",function(a,b){h=!0,g=b.to.getUnqualifiedURI().toString()});e.exports=a.ScriptPathState=l}),null);
__d("AjaxPipeRequest",["invariant","Arbiter","AsyncRequest","AsyncRequestConfig","BigPipe","ContextualComponent","CSS","DOM","Env","PageEvents","PageletGK","PageletSet","PageNavigationStageLogger","ScriptPathState","URI","containsNode","ge","goOrReplace","performance","performanceAbsoluteNow"],(function(a,b,c,d,e,f,g){__p&&__p();var h=b("PageletGK").destroyDomAfterEventHandler,i,j=0;function k(a,c){__p&&__p();var d=b("ge")(a);if(!d)return;c||(d.style.minHeight="100px");c=b("PageletSet").getPageletIDs();for(var e=0;e<c.length;e++){var f=c[e];if(b("PageletSet").hasPagelet(f)){var g=b("PageletSet").getPagelet(f);b("containsNode")(d,g.getRoot())&&b("PageletSet").removePagelet(f)}}b("Arbiter").inform(b("PageEvents").AJAXPIPE_ONBEFORECLEARCANVAS,{canvasID:a});function i(a){var c=b("ContextualComponent").forNode(a);c&&c.unmount();b("DOM").empty(a)}h?(b("Arbiter").inform("pagelet/destroy",{id:null,root:d}),i(d)):(i(d),b("Arbiter").inform("pagelet/destroy",{id:null,root:d}))}function l(a,c){a=b("ge")(a);a&&!c&&(a.style.minHeight="100px")}c=function(){"use strict";__p&&__p();function c(a,c,d){__p&&__p();this._allowIrrelevantRequests=!1;this._canvas_id=a;this._uri=c;this._query_data=d;a=new(b("AsyncRequest"))();a.disableInteractionServerTracing();a.setReplaceTransportMarkers(!1);this._request=a;this._allow_cross_page_transition=!0;this._arbiter=new(b("Arbiter"))();this._requestID=j++}var d=c.prototype;d.getArbiter=function(){return this._arbiter};d.setData=function(a){this._query_data=a;return this};d.getData=function(){return this._query_data};d.setAllowCrossPageTransition=function(a){this._allow_cross_page_transition=a;return this};d.setAppend=function(a){this._append=a;return this};d._getAsyncRequestType=function(){return b("AsyncRequestConfig").useFetchStreamAjaxPipeTransport?"useFetchWithIframeFallback":"useIframeTransport"};d.send=function(){__p&&__p();this._arbiter.inform(b("PageEvents").AJAXPIPE_SEND,{rid:this._requestID,quickling:!!this._isQuickling,ts:b("performanceAbsoluteNow")()},"persistent");var a={ajaxpipe:1,ajaxpipe_token:b("Env").ajaxpipe_token};Object.assign(a,b("ScriptPathState").getParams());b("ScriptPathState").reset();var c=this._request;if(c==null)return this;c.setOption(this._getAsyncRequestType(),!0).delayPreDisplayJS().setURI(this._uri).setData(Object.assign(a,this._query_data)).setPreBootloadHandler(this._preBootloadHandler.bind(this)).setInitialHandler(this._onInitialResponse.bind(this)).setHandler(this._onResponse.bind(this)).setMethod("GET").setReadOnly(!0).setAllowCrossPageTransition(this._allow_cross_page_transition).setAllowIrrelevantRequests(this._allowIrrelevantRequests);this._automatic?this._relevantRequest=i:i=this._request;if(this._isQuickling){a=b("performance").clearResourceTimings||b("performance").webkitClearResourceTimings;a&&a.call(b("performance"))}c.send();return this};d._preBootloadFirstResponse=function(a){return!1};d._fireDomContentCallback=function(){var a=this._request;a&&a.cavalry&&a.cavalry.setTimeStamp("t_domcontent");this._arbiter.inform(b("PageEvents").AJAXPIPE_DOMREADY,!0,"state")};d._fireOnloadCallback=function(){window.console&&console.timeStamp&&console.timeStamp('perf_trace {"name": "e2e", "parent": "PageEvents.AJAXPIPE_ONLOAD"}');var a=this._request;a!=null&&a.cavalry&&(a.cavalry.setTimeStamp("t_hooks"),a.cavalry.setTimeStamp("t_layout"),a.cavalry.setTimeStamp("t_onload"));this._arbiter.inform(b("PageEvents").AJAXPIPE_ONLOAD,{lid:this.pipe.lid,rid:this._requestID,ts:b("performanceAbsoluteNow")()},"state")};d._isRelevant=function(a){return this._request===i||this._automatic&&this._relevantRequest===i||this._jsNonBlock||i!=null&&i.getAllowIrrelevantRequests()};d._preBootloadHandler=function(a){var c=this._request,d=a.getPayload();if(!d||d.redirect||!this._isRelevant(a))return!1;var e=!1;a.is_first&&(!this._append&&!this._displayCallback&&!d.isCometResponse&&k(this._canvas_id,this._constHeight),e=this._preBootloadFirstResponse(a),c!=null||g(0,36),this.pipe=new(b("BigPipe"))({config:d.bigPipeConfig,arbiter:this._arbiter,rootNodeID:this._canvas_id,lid:c.lid,rid:this._requestID,isAjax:!0,domContentCallback:this._fireDomContentCallback.bind(this),onloadCallback:this._fireOnloadCallback.bind(this),domContentEvt:b("PageEvents").AJAXPIPE_DOMREADY,onloadEvt:b("PageEvents").AJAXPIPE_ONLOAD,jsNonBlock:this._jsNonBlock,automatic:this._automatic,displayCallback:this._displayCallback,allowIrrelevantRequests:this._allowIrrelevantRequests}),this.pipe.setPageID(c.lid));return e};d._redirect=function(c){__p&&__p();if(c.redirect){if(c.force||!this.isPageActive(c.redirect)){var d=["ajaxpipe","ajaxpipe_token"].concat(this.getSanitizedParameters());b("PageNavigationStageLogger").setCookieForNavigation(c.redirect);b("PageNavigationStageLogger").setNote("ajaxpipe_redirect");b("PageNavigationStageLogger").updateCookie();b("goOrReplace")(window.location,new(b("URI"))(c.redirect).removeQueryData(d),!0)}else{d=a.PageTransitions;d.go(c.redirect,!0)}return!0}else return!1};d.isPageActive=function(a){return!0};d.getSanitizedParameters=function(){return[]};d._versionCheck=function(a){return!0};d._onInitialResponse=function(a){var b=a.getPayload();if(!this._isRelevant(a))return!1;if(!b)return!0;return this._redirect(b)||!this._versionCheck(b)?!1:!0};d._processFirstResponse=function(a){this._arbiter.inform(b("PageEvents").AJAXPIPE_FIRST_RESPONSE,{lid:this.pipe.lid,quickling:!!this._isQuickling});a=a.getPayload();var c=b("ge")(this._canvas_id);a=a.canvas_class;c!=null&&a!=null&&b("CSS").setClass(c,a)};d.setFirstResponseCallback=function(a){this._firstResponseCallback=a;return this};d.setFirstResponseHandler=function(a){this._processFirstResponse=a;return this};d._onResponse=function(a){__p&&__p();var c=a.payload;if(!this._isRelevant(a))return b("AsyncRequest").suppressOnloadToken;a.is_first&&(this._processFirstResponse(a),this._firstResponseCallback&&this._firstResponseCallback(),c.provides=c.provides||[],c.provides.push("uipage_onload"));if(c){if("content"in c.content){this._append&&(c.append=this._canvas_id);var d=c.content.content;delete c.content.content;c.content[this._canvas_id]=d}this.pipe.onPageletArrive(c)}a.is_last&&l(this._canvas_id,this._constHeight);return b("AsyncRequest").suppressOnloadToken};d.setNectarModuleDataSafe=function(a){this._request!=null&&this._request.setNectarModuleDataSafe(a);return this};d.setFinallyHandler=function(a){this._request!=null&&this._request.setFinallyHandler(a);return this};d.setErrorHandler=function(a){this._request!=null&&this._request.setErrorHandler(a);return this};d.setTransportErrorHandler=function(a){this._request!=null&&this._request.setTransportErrorHandler(a);return this};d.setResetHandler=function(a){this._resetHandler=a;return this};d.abort=function(){this._request!=null&&this._request.abort();this._reset();return this};d.abandon=function(){this._request!=null&&this._request.abandon();this._reset();return this};d._reset=function(){i==this._request&&(i=null),this._request=null,this._resetHandler&&this._resetHandler()};d.setJSNonBlock=function(a){this._jsNonBlock=a;return this};d.setAutomatic=function(a){this._automatic=a;return this};d.setDisplayCallback=function(a){this._displayCallback=a;return this};d.setConstHeight=function(a){this._constHeight=a;return this};d.setAllowIrrelevantRequests=function(a){this._allowIrrelevantRequests=a;return this};d.getAsyncRequest=function(){return this._request};c.getCurrentRequest=function(){return i};c.setCurrentRequest=function(a){i=a};return c}();c.clearCanvas=k;e.exports=c}),null);
__d("isValidReactElement",[],(function(a,b,c,d,e,f){var g=typeof Symbol==="function"&&Symbol["for"]&&Symbol["for"]("react.element")||60103;function a(a){return!!(typeof a==="object"&&a!==null&&a.$$typeof===g)}e.exports=a}),null);
__d("BootloadedReact",["Bootloader","isValidReactElement"],(function(a,b,c,d,e,f){__p&&__p();var g=function(a){b("Bootloader").loadModules(["ReactDOM"],a,"BootloadedReact")};a={isValidElement:function(a){return b("isValidReactElement")(a)},render:function(a,b,c){g(function(d){d.render(a,b,function(){c&&c(this)})})},unmountComponentAtNode:function(a,b){g(function(c){c.unmountComponentAtNode(a),b&&b()})}};e.exports=a}),null);
__d("DOMDimensions",["Style","getDocumentScrollElement"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={getElementDimensions:function(a){var b=a?a.offsetHeight:0;a=a?a.offsetWidth:0;return{height:b,width:a}},getDocumentDimensions:function(a){a=b("getDocumentScrollElement")(a);var c=a.scrollWidth||0;a=a.scrollHeight||0;return{width:c,height:a}},measureElementBox:function(a,c,d,e,f){__p&&__p();var g;switch(c){case"left":case"right":case"top":case"bottom":g=[c];break;case"width":g=["left","right"];break;case"height":g=["top","bottom"];break;default:throw Error("Invalid plane: "+c)}c=function(c,d){var e=0;for(var f=0;f<g.length;f++)e+=parseFloat(b("Style").get(a,c+"-"+g[f]+d))||0;return e};return(d?c("padding",""):0)+(e?c("border","-width"):0)+(f?c("margin",""):0)}};e.exports=a}),null);
__d("DOMScroll",["Arbiter","Bootloader","DOM","DOMQuery","Run","Vector","ViewportBounds","emptyFunction","ge","ifRequired","isAsyncScrollQuery","nullthrows"],(function(a,b,c,d,e,f){__p&&__p();b("Run").onAfterLoad(function(){b("Bootloader").loadModules(["Animation"],b("emptyFunction"),"DOMScroll")});var g={SCROLL:"dom-scroll",_scrolling:!1,_scrollingFinishedTimeout:null,getScrollState:function(){var a=b("Vector").getViewportDimensions(),c=b("Vector").getDocumentDimensions(),d=c.x>a.x;c=c.y>a.y;d+=0;c+=0;return new(b("Vector"))(d,c)},_scrollbarSize:null,_initScrollbarSize:function(){__p&&__p();var a=b("DOM").create("p");a.style.width="100%";a.style.height="200px";var c=b("DOM").create("div");c.style.position="absolute";c.style.top="0px";c.style.left="0px";c.style.visibility="hidden";c.style.width="200px";c.style.height="150px";c.style.overflow="hidden";c.appendChild(a);b("nullthrows")(document.body).appendChild(c);var d=a.offsetWidth;c.style.overflow="scroll";a=a.offsetWidth;d==a&&(a=c.clientWidth);b("nullthrows")(document.body).removeChild(c);g._scrollbarSize=d-a},getScrollbarSize:function(){g._scrollbarSize===null&&g._initScrollbarSize();return b("nullthrows")(g._scrollbarSize)},scrollTo:function(a,c,d,e,f,h){__p&&__p();var i,j=0;c==null||c===!0?j=750:typeof c==="number"?j=c:parseInt(c,10)&&(j=parseInt(c,10));b("isAsyncScrollQuery")()&&(j=0);var k;if(a instanceof b("Vector"))k=a;else{c=b("Vector").getScrollPosition().x;a=b("Vector").getElementPosition(b("ge")(a)).y;k=new(b("Vector"))(c,a,"document");e||(k.y-=b("ViewportBounds").getTop()/(d?2:1))}d?k.y-=b("Vector").getViewportDimensions().y/2:e&&(k.y-=b("Vector").getViewportDimensions().y,k.y+=e);f&&(k.y-=f);k=k.convertTo("document");if(j)if("scrollBehavior"in b("nullthrows")(document.documentElement).style&&j===750&&!h)try{window.scrollTo({left:k.x,top:k.y,behavior:"smooth"})}catch(a){window.scrollTo(k.x,k.y)}else{var l=b("ifRequired")("Animation",function(a){g._setScrollingForDuration(j);return new a(b("nullthrows")(document.body)).to("scrollTop",k.y).to("scrollLeft",k.x).ease(a.ease.end).duration(j).ondone(h).go()},function(){window.scrollTo(k.x,k.y),h&&h()});l&&(i=function(){l.stop()})}else window.scrollTo(k.x,k.y),h&&h();b("Arbiter").inform(g.SCROLL);return i||b("emptyFunction")},scrollToID:function(a){g.scrollTo(a)},ensureVisible:function(a,c,d,e,f){var h=b("Vector").getScrollPosition().x;a=this._getBounds(a,c,d);c=a[0];d=a[1];var i=a[2];a=a[3];i<c?g.scrollTo(new(b("Vector"))(h,i,"document"),e,!1,0,0,f):a>d?i-(a-d)<c?g.scrollTo(new(b("Vector"))(h,i,"document"),e,!1,0,0,f):g.scrollTo(new(b("Vector"))(h,a,"document"),e,!1,1,0,f):f&&f()},isCurrentlyVisible:function(a,b,c){a=this._getBounds(a,b,c);b=a[0];c=a[1];var d=a[2];a=a[3];return d>=b&&a<=c},_getBounds:function(a,c,d){__p&&__p();d==null&&(d=10);a=b("ge")(a);c&&(a=b("DOMQuery").find(a,c));c=b("Vector").getScrollPosition().y;var e=c+b("Vector").getViewportDimensions().y,f=b("Vector").getElementPosition(a).y;a=f+b("Vector").getElementDimensions(a).y;f-=b("ViewportBounds").getTop();f-=d;a+=d;return[c,e,f,a]},scrollToTop:function(a){var c=b("Vector").getScrollPosition();g.scrollTo(new(b("Vector"))(c.x,0,"document"),a!==!1)},currentlyScrolling:function(){return g._scrolling},_setScrollingForDuration:function(a){g._scrolling=!0,g._scrollingFinishedTimeout&&(clearTimeout(g._scrollingFinishedTimeout),g._scrollingFinishedTimeout=null),g._scrollingFinishedTimeout=setTimeout(function(){g._scrolling=!1,g._scrollingFinishedTimeout=null},a)}};e.exports=g}),null);
__d("XReferer",["Base64","Cookie","FBJSON","URI","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f){__p&&__p();var g={update:function(a,c,d){__p&&__p();if(!d){b("Cookie").set("x-referer","");return}a!=null&&(a=g.truncatePath(a));c!=null&&(c=g.truncatePath(c));var e=window.location.pathname+window.location.search;d=b("URI").getRequestURI();var f=d.getSubdomain();c!=null&&g._setCookie(c,e,f);a!=null&&b("setTimeoutAcrossTransitions")(function(){a!=null&&g._setCookie(a,e,f)},0)},_setCookie:function(a,c,d){a={r:a,h:c,s:d};c=b("Base64").encode(b("FBJSON").stringify(a));b("Cookie").set("x-referer",c)},truncatePath:function(a){var b=1024;a&&a.length>b&&(a=a.substring(0,b)+"...");return a}};e.exports=g}),null);
__d("HistoryManager",["Env","Event","SprinkleConfig","URI","UserAgent_DEPRECATED","XReferer","emptyFunction","gkx","goOrReplace","isInIframe","setIntervalAcrossTransitions"],(function(a,b,c,d,e,f){__p&&__p();var g={history:null,current:0,fragment:null,isInitialized:function(){return!!g._initialized},init:function(){__p&&__p();if(!b("Env").ALLOW_TRANSITION_IN_IFRAME&&b("isInIframe")())return;if(g._initialized)return g;var a=new(b("URI"))(window.location.href),c=a.getFragment()||"";c.charAt(0)==="!"&&(c=c.substr(1),a.setFragment(c));Object.assign(g,{_initialized:!0,fragment:c,orig_fragment:c,history:[a],callbacks:[],lastChanged:Date.now(),canonical:new(b("URI"))("#"),user:0,enabled:!0,debug:b("emptyFunction")});if(window.history&&window.history.pushState){this.lastURI=document.URL;if(b("gkx")("678676")){c=new(b("URI"))(this.lastURI);a=c.getQueryData();a.__md__=void 0;a.__xts__=void 0;a.fb_dtsg_ag=void 0;a[b("SprinkleConfig").param_name]=void 0;this.lastURI=c.setQueryData(a).toString()}try{window.history.state&&b("gkx")("819236")?window.history.replaceState(window.history.state,null,this.lastURI):window.history.replaceState(this.lastURI,null,this.lastURI)}catch(a){if(!(a.number===-2147467259))throw a}b("Event").listen(window,"popstate",function(a){var c=a&&a.state&&typeof a.state==="string";c&&g.lastURI!=a.state&&(g.lastURI=document.URL,g.lastChanged=Date.now(),g.notify(new(b("URI"))(a.state).getUnqualifiedURI().toString()))}.bind(g));(b("UserAgent_DEPRECATED").webkit()<534||b("UserAgent_DEPRECATED").chrome()<=13)&&(b("setIntervalAcrossTransitions")(g.checkURI,42),g._updateRefererURI(this.lastURI));return g}g._updateRefererURI(b("URI").getRequestURI(!1));if(b("UserAgent_DEPRECATED").webkit()<500||b("UserAgent_DEPRECATED").firefox()<2){g.enabled=!1;return g}"onhashchange"in window?b("Event").listen(window,"hashchange",function(){window.setTimeout(g.checkURI.bind(g),0)}):b("setIntervalAcrossTransitions")(g.checkURI,42);return g},registerURIHandler:function(a){g.callbacks.push(a);return g},setCanonicalLocation:function(a){g.canonical=new(b("URI"))(a);return g},notify:function(a){a==g.orig_fragment&&(a=g.canonical.getFragment());for(var b=0;b<g.callbacks.length;b++)try{if(g.callbacks[b](a))return!0}catch(a){}return!1},checkURI:function(){__p&&__p();if(Date.now()-g.lastChanged<400)return;if(window.history&&window.history.pushState){var a=new(b("URI"))(document.URL).removeQueryData("ref").toString(),c=new(b("URI"))(g.lastURI).removeQueryData("ref").toString();a!=c&&(g.lastChanged=Date.now(),g.lastURI=a,b("UserAgent_DEPRECATED").webkit()<534&&g._updateRefererURI(a),g.notify(new(b("URI"))(a).getUnqualifiedURI().toString()));return}if(b("UserAgent_DEPRECATED").webkit()&&window.history.length==200){g.warned||(g.warned=!0);return}c=new(b("URI"))(window.location.href).getFragment();c.charAt(0)=="!"&&(c=c.substr(1));c=c.replace(/%23/g,"#");if(c!=g.fragment.replace(/%23/g,"#")){g.debug([c," vs ",g.fragment,"whl: ",window.history.length,"QHL: ",g.history.length].join(" "));for(var a=g.history.length-1;a>=0;--a)if(g.history[a].getFragment().replace(/%23/g,"#")==c)break;++g.user;a>=0?g.go(a-g.current):g.go("#"+c);--g.user}},_updateRefererURI:function(a){a instanceof b("URI")&&(a=a.toString()),b("XReferer").update(a,null,!0)},go:function(a,c,d){__p&&__p();if(window.history&&window.history.pushState){c||typeof a==="number";var e=new(b("URI"))(a).removeQueryData(["ref","messaging_source","ajaxpipe_fetch_stream","fb_dtsg_ag",b("SprinkleConfig").param_name]).toString();g.lastChanged=Date.now();this.lastURI=e;d?window.history.replaceState(a,null,e):window.history.pushState(a,null,e);b("UserAgent_DEPRECATED").webkit()<534&&g._updateRefererURI(a);return!1}g.debug("go: "+a);c===void 0&&(c=!0);if(!g.enabled&&!c)return!1;if(typeof a==="number"){if(!a)return!1;e=a+g.current;var f=Math.max(0,Math.min(g.history.length-1,e));g.current=f;e=g.history[f].getFragment()||g.orig_fragment;e=new(b("URI"))(e).removeQueryData("ref").getUnqualifiedURI().toString();g.fragment=e;g.lastChanged=Date.now();g.user||b("goOrReplace")(window.location,window.location.href.split("#")[0]+"#!"+e,d);c&&g.notify(e);g._updateRefererURI(e);return!1}a=new(b("URI"))(a);a.getDomain()==new(b("URI"))(window.location.href).getDomain()&&(a=new(b("URI"))("#"+a.getUnqualifiedURI()));f=g.history[g.current].getFragment();e=a.getFragment();if(e==f||f==g.orig_fragment&&e==g.canonical.getFragment()){c&&g.notify(e);g._updateRefererURI(e);return!1}d&&g.current--;f=g.history.length-g.current-1;g.history.splice(g.current+1,f);g.history.push(new(b("URI"))(a));return g.go(1,c,d)},getCurrentFragment:function(){var a=b("URI").getRequestURI(!1).getFragment();return a==g.orig_fragment?g.canonical.getFragment():a}};e.exports=g}),null);
__d("isContentEditable",[],(function(a,b,c,d,e,f){"use strict";__p&&__p();function a(a){a=a;while(a instanceof HTMLElement){if(a.contentEditable==="true"||a.contentEditable==="plaintext-only")return!0;a=a.parentElement}return!1}e.exports=a}),null);
__d("isElementInteractive",["isContentEditable"],(function(a,b,c,d,e,f){"use strict";var g=new Set(["EMBED","INPUT","OBJECT","SELECT","TEXTAREA"]),h=new Set(["button","checkbox","radio","submit"]);function a(a){if(!a instanceof HTMLElement)return!1;var c=b("isContentEditable")(a),d=g.has(a.nodeName);a=a instanceof HTMLInputElement&&h.has(a.type);return(c||d)&&!a}e.exports=a}),null);
__d("KeyEventController",["Bootloader","DOMQuery","Event","Run","emptyFunction","getElementText","isContentEditable","isElementInteractive","isEmpty"],(function(a,b,c,d,e,f){__p&&__p();var g=null,h={BACKSPACE:[8],TAB:[9],RETURN:[13],ALT:[18],ESCAPE:[27],LEFT:[37,63234],UP:[38,63232],RIGHT:[39,63235],DOWN:[40,63233],NUMPAD_ADD:[43],NUMPAD_SUBSTRACT:[45],DELETE:[46],COMMA:[188],PERIOD:[190],SLASH:[191],"`":[192],"[":[219],"]":[221],PAGE_UP:[33],PAGE_DOWN:[34],END:[35],HOME:[36],SPACE:[32],KP_DOT:[46,110],"-":[189],"=":[187],FORWARD_SLASH:[191]},i=(a={},a[8]=1,a[9]=1,a[13]=1,a[27]=1,a[32]=1,a[37]=1,a[63234]=1,a[38]=1,a[63232]=1,a[39]=1,a[63235]=1,a[40]=1,a[63233]=1,a[46]=1,a);c=function(){"use strict";__p&&__p();function a(){var a=this;this.handlers={};["keyup","keydown","keypress"].forEach(function(b){return document.addEventListener(b,a.onkeyevent.bind(a,"on"+b))})}var c=a.prototype;c.mapKey=function(a){if(/^[0-9]$/.test(a+"")){typeof a!=="number"&&(a=a.charCodeAt(0)-48);return[48+a,96+a]}a+="";var b=h[a.toUpperCase()];return b?b:[a.toUpperCase().charCodeAt(0)]};c.onkeyevent=function(a,c){__p&&__p();c=b("Event").$E(c);var d=this.handlers[c.keyCode]||this.handlers[c.which];if(d)for(var e=0;e<d.length;e++){var f=d[e].callback,g=d[e].filter;try{if(!g||g(c,a)){g=function(){var d=f(c,a),e=c.which||c.keyCode;b("Bootloader").loadModules(["KeyEventTypedLogger"],function(a){new a().setAction("key_shortcut").setKey(c.key||"").setKeyChar(String.fromCharCode(e)).setKeyCode(e).addToExtraData("is_trusted",c.isTrusted).log()},"KeyEventController");if(d===!1)return{v:b("Event").kill(c)}}();if(typeof g==="object")return g.v}}catch(a){}}return!0};c.resetHandlers=function(){for(var a in this.handlers)if(Object.prototype.hasOwnProperty.call(this.handlers,a)){var b=this.handlers[a].filter(function(a){return a.preserve()});b.length?this.handlers[a]=b:delete this.handlers[a]}};a.getInstance=function(){return g||(g=new a())};a.defaultFilter=function(c,d){c=b("Event").$E(c);return a.filterEventTypes(c,d)&&a.filterEventTargets(c,d)&&a.filterEventModifiers(c,d)};a.filterEventTypes=function(a,b){return b==="onkeydown"?!0:!1};a.filterEventTargets=function(a,c){c=a.getTarget();return!b("isElementInteractive")(c)||a.keyCode in i&&(b("DOMQuery").isNodeOfType(c,["input","textarea"])&&c.value.length===0||b("isContentEditable")(c)&&b("getElementText")(c).length===0)};a.filterEventModifiers=function(a,b){return a.ctrlKey||a.altKey||a.metaKey||a.repeat?!1:!0};a.registerKey=function(c,d,e,f,g){__p&&__p();e===void 0&&(e=a.defaultFilter);f===void 0&&(f=!1);g===void 0&&(g=b("emptyFunction").thatReturnsFalse);var h=a.getInstance(),i=c==null?[]:h.mapKey(c);b("isEmpty")(h.handlers)&&b("Run").onLeave(h.resetHandlers.bind(h));var j={};for(var k=0;k<i.length;k++){c=""+i[k];(!h.handlers[c]||f)&&(h.handlers[c]=[]);var l={callback:d,filter:e,preserve:g};j[c]=l;h.handlers[c].push(l)}return{remove:function(){for(var a in j){if(h.handlers[a]&&h.handlers[a].length){var b=h.handlers[a].indexOf(j[a]);b>=0&&h.handlers[a].splice(b,1)}delete j[a]}}}};return a}();e.exports=c}),null);
__d("LinkController",["DataStore","Event","Parent","removeFromArray","trackReferrer"],(function(a,b,c,d,e,f){__p&&__p();var g="@@LinkController",h=[],i=[];c={registerHandler:function(a){h.push(a);return{remove:function(){return b("removeFromArray")(h,a)}}},registerFallbackHandler:function(a){i.push(a);return{remove:function(){return b("removeFromArray")(i,a)}}}};function a(a){__p&&__p();a=a.getTarget();var c=b("Parent").byTag(a,"a");if(!(c instanceof HTMLAnchorElement))return;var d=k(c);if(!d||m(a)||b("DataStore").get(c,g)||d.endsWith("#"))return;a=b("Event").listen(c,"click",function(a){b("trackReferrer")(c,d),!c.rel&&(!c.target||c.target==="_self")&&!l(a)&&j(c,a)});b("DataStore").set(c,g,a)}function j(a,b){h.concat(i).every(function(c){if(c(a,b)===!1){b.prevent();return!1}return!0})}function k(a){if(a&&!a.rel){a=a.getAttribute("href");if(a){var b=a.match(/^(\w+):/);if(!b||b[1].match(/^http/i))return a}}return null}function l(a){return a.getModifiers().any||a.which&&a.which!==1}function m(a){return a.nodeName==="INPUT"&&a.type==="file"}b("Event").listen(document.documentElement,"mousedown",a,b("Event").Priority.URGENT);b("Event").listen(document.documentElement,"keydown",a,b("Event").Priority.URGENT);e.exports=c}),null);
__d("PageTransitionPriorities",[],(function(a,b,c,d,e,f){a=5;b=a+1;e.exports={DEFAULT:a,LEFT_NAV:b,SOCIAL_SEARCH_DIALOG:b+1}}),null);
__d("LayerHideOnEscape",["Event","Keys","LayerHideSources"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a){this._layer=a}var c=a.prototype;c.enable=function(){this._subscription=this._layer.subscribe("key",this._handle.bind(this))};c.disable=function(){this._subscription!=null&&this._subscription.unsubscribe(),this._subscription=null};c._handle=function(a,c){if(b("Event").getKeyCode(c)===b("Keys").ESC){this._layer.hide(b("LayerHideSources").ESCAPE);return!1}return void 0};return a}();Object.assign(a.prototype,{_subscription:null});e.exports=a}),null);
__d("computeRelativeURI",["URI","isEmpty","isFacebookURI"],(function(a,b,c,d,e,f){__p&&__p();function g(a,b){if(!b)return a;if(b.charAt(0)=="/")return b;var c=a.split("/").slice(0,-1);c[0]!=="";b.split("/").forEach(function(a){a==="."||(a===".."?c.length>1&&(c=c.slice(0,-1)):c.push(a))});return c.join("/")}function a(a,c){__p&&__p();var d=new(b("URI"))(),e=new(b("URI"))(a),f=new(b("URI"))(c);if(f.getDomain()&&!b("isFacebookURI")(f))return c;var h=e;a=["Protocol","Domain","Port","Path","QueryData","Fragment"];a.forEach(function(a){var c=a==="Path"&&h===e;c&&d.setPath(g(e.getPath(),f.getPath()));b("isEmpty")(f["get"+a]())||(h=f);c||d["set"+a](h["get"+a]())});return d}e.exports=a}),null);
__d("PageTransitionsRegistrar",["invariant","Bootloader","DOMQuery","Form","LinkController","PageTransitionPriorities","Parent","Run","URI","computeRelativeURI","getReferrerURI","goURI","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){__p&&__p();b("Run").onAfterLoad(function(){b("Bootloader").loadModules(["PageTransitions"],function(a){a&&a._init&&a._init()},"PageTransitionsRegistrar")});var h=[],i=[];d={DELAY_HISTORY:"delay_history_PTR",registerHandler:function(a,c){a!=null||g(0,5202),c=c||b("PageTransitionPriorities").DEFAULT,h[c]||(h[c]=[]),h[c].push(a)},removeHandler:function(a,c){c=c||b("PageTransitionPriorities").DEFAULT;var d=-1;h[c]&&(d=h[c].indexOf(a));d>-1&&h[c].splice(d,1)},registerCompletionCallback:function(a){i.push(a)},getMostRecentURI:l,getReferrerURI:b("getReferrerURI"),_getTransitionHandlers:function(){return h},_getCompletionCallbacks:function(){return i},_resetCompletionCallbacks:function(){i=[]},__onClick:d,__onSubmit:f};var j=null;function c(a){j=a,b("setTimeoutAcrossTransitions")(function(){j=null},0)}function d(a){if(j){if(!a.isDefaultPrevented()){k(j);var c=j.getAttribute("href");c&&b("goURI")(c)}a.kill()}}function k(a){var c=a.getAttribute("href")||"",d=b("computeRelativeURI")(l().getQualifiedURI().toString(),c).toString();c!=d&&a.setAttribute("href",d)}function f(a,c){__p&&__p();c=c;var d=a.getTarget();if(b("Form").getAttribute(d,"rel")||b("Form").getAttribute(d,"target"))return;var e=new(b("URI"))(b("Form").getAttribute(d,"action"));e=b("computeRelativeURI")(l().toString(),e.toString());d.setAttribute("action",e.toString());if((b("Form").getAttribute(d,"method")||"GET").toUpperCase()=="GET"){d=b("Form").serialize(d);c&&(b("DOMQuery").isNodeOfType(c,"input")&&c.type==="submit"||(c=b("Parent").byTag(c,"button")))&&c.name&&(d[c.name]=c.value);typeof e==="string"&&(e=new(b("URI"))(e));b("goURI")(e.addQueryData(d));a.kill()}}b("LinkController").registerFallbackHandler(c);function l(){if(a.PageTransitions&&a.PageTransitions.isInitialized())return a.PageTransitions.getMostRecentURI();else{var c=b("URI").getRequestURI(!1);c=c.getUnqualifiedURI();var d=new(b("URI"))(c).setFragment(null),e=c.getFragment();e.charAt(0)==="!"&&d.toString()===e.substr(1)&&(c=d);return c}}e.exports=d}),null);
__d("escapeJSQuotes",[],(function(a,b,c,d,e,f){function a(a){return typeof a==="undefined"||a==null||!a.valueOf()?"":a.toString().replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\"/g,"\\x22").replace(/\'/g,"\\'").replace(/</g,"\\x3c").replace(/>/g,"\\x3e").replace(/&/g,"\\x26")}e.exports=a}),null);
__d("PageTransitionsBlue",["fbt","invariant","Arbiter","BlueCompatBroker","BlueCompatRouter","Bootloader","CurrentUser","DOMQuery","DOMScroll","Env","ErrorUtils","Event","HistoryManager","JSLogger","LayerHideOnEscape","PageHooks","PageNavigationStageLogger","PageTransitionsConfig","PageTransitionsRegistrar","React","ScriptPath","URI","Vector","areEqual","clickRefAction","escapeJSQuotes","ge","goOrReplace","isFacebookURI","isInIframe","setTimeout"],(function(a,b,c,d,e,f,g,h){__p&&__p();var i=["cquick","ctarget","cquick_token","mh_","killabyte","tfc_","tfi_"],j={};function k(a,b){a&&(j[a.getUnqualifiedURI().toString()]=b)}function l(a){return j[a.getUnqualifiedURI().toString()]}function m(a){delete j[a.getUnqualifiedURI().toString()]}function n(){var a={};window.location.search.slice(1).split("&").forEach(function(b){b=b.split("=");var c=b[0];b=b[1];b=b===void 0?null:b;i.some(function(a){return c.startsWith(a)})&&(a[c]=b)});return a}var o=null,p=!1,q=new(b("URI"))(""),r=null,s=new(b("URI"))(),t=null,u=!1,v=!1,w=!1,x={isInitialized:function(){return p},init:function(){x._init()},_init:function(){__p&&__p();if(b("isInIframe")())return!1;if(p)return!0;var a=b("PageTransitionsRegistrar").getMostRecentURI();o=a;q=a;r=null;s=a;var c=b("ErrorUtils").applyWithGuard(function(a){return new(b("URI"))(a)},null,[document.referrer]);t=document.referrer&&c&&b("isFacebookURI")(c)?c:null;p=!0;c=b("URI").getRequestURI(!1);c.getFragment().startsWith("/")?c=c.getFragment():c=a.toString();b("HistoryManager").init().setCanonicalLocation("#"+c).registerURIHandler(x._historyManagerHandler);b("Event").listen(window,"scroll",function(){u||k(o,b("Vector").getScrollPosition())});return!0},registerHandler:b("PageTransitionsRegistrar").registerHandler,removeHandler:b("PageTransitionsRegistrar").removeHandler,getCurrentURI:function(a){a===void 0&&(a=!1);this._init();return!o&&!a?new(b("URI"))(q):new(b("URI"))(o)},isTransitioning:function(){this._init();return!o},getNextURI:function(){this._init();return s},getNextReferrerURI:function(){this._init();return r},getReferrerURI:function(){this._init();return t},getMostRecentURI:function(){this._init();return new(b("URI"))(q)},go:function(a,c){c===void 0&&(c=!1);if(b("BlueCompatRouter").go(a))return;this.goBase(a,c)},goBase:function(a,c){c===void 0&&(c=!1);this._init();var d=n(),e=new(b("URI"))(a).removeQueryData("quickling").addQueryData(d).getQualifiedURI();b("JSLogger").create("pagetransition").debug("go",{uri:e.toString()});m(e);c||b("clickRefAction")("uri",{href:e.toString()},null,"INDIRECT");x._loadPage(e,function(a){a?b("HistoryManager").go(e.toString(),!1,c):(b("PageNavigationStageLogger").setNote("pt_not_handled"),b("PageNavigationStageLogger").updateCookie(),b("goOrReplace")(window.location,e,c))})},_historyManagerHandler:function(a){if(a.charAt(0)!="/")return!1;b("clickRefAction")("h",{href:a});b("ScriptPath").getClickPointInfo()||b("ScriptPath").setClickPointInfo({click:"back"});x._loadPage(new(b("URI"))(a),function(c){c||(b("PageNavigationStageLogger").setNote("hist_manager_fallback"),b("goOrReplace")(window.location,a,!0))});return!0},_loadPage:function(a,c){__p&&__p();if(new(b("URI"))(a).getFragment()&&b("areEqual")(new(b("URI"))(a).setFragment(null).getQualifiedURI(),new(b("URI"))(o).setFragment(null).getQualifiedURI())){b("Arbiter").inform("pre_page_fragment_transition",{from:new(b("URI"))(o).getFragment(),to:new(b("URI"))(a).getFragment()});if(x.restoreScrollPosition(a)){o=q=a;b("Arbiter").inform("page_fragment_transition",{fragment:new(b("URI"))(a).getFragment()});return}}b("PageNavigationStageLogger").setCookieForNavigation(a);var d;o&&(d=l(o));var e=function(){d&&o&&k(o,d);r=x.getMostRecentURI();o=null;s=a;d&&b("DOMScroll").scrollTo(d,!1);u=!0;var e=x._handleTransition(a);c&&(e===b("PageTransitionsRegistrar").DELAY_HISTORY?b("setTimeout")(function(){return c&&c(e)},0):c(e))},f=s;s=a;var g=b("PageHooks").runHooks("onbeforeleavehooks");s=f;g?x._warnBeforeLeaving(g,e):e()},_handleTransition:function(c){__p&&__p();window.onbeforeleavehooks=void 0;if(v||!c.isSameOrigin()){b("PageNavigationStageLogger").setNote("pt_disabled");return!1}var d=b("PageTransitionsConfig").reloadOnBootloadError&&this._hasBootloadErrors();if(d){b("PageNavigationStageLogger").setNote("bl_err");return!1}var e;d=a.AsyncRequest;d&&(e=d.getLastID());b("Arbiter").inform("pre_page_transition",{from:x.getMostRecentURI(),to:c});d=b("PageTransitionsRegistrar")._getTransitionHandlers();for(var f=d.length-1;f>=0;--f){var g=d[f];if(!g)continue;for(var h=g.length-1;h>=0;--h){var i=g[h](c);if(i===!0||i===b("PageTransitionsRegistrar").DELAY_HISTORY){var j={sender:this,uri:c,id:e};try{b("Arbiter").inform("page_transition",j)}catch(a){}return i}else g.splice(h,1)}}return!1},disableTransitions:function(){v=!0},disableScrollAnimation:function(){w=!0},_hasBootloadErrors:function(){return b("Bootloader").getErrorUrls().length>0},unifyURI:function(){this._init(),o=q=s,t=r},transitionComplete:function(a){a===void 0&&(a=!1);this._init();u=!1;x._executeCompletionCallbacks();x.unifyURI();a||o&&x.restoreScrollPosition(o);try{document.activeElement&&document.activeElement.nodeName==="A"&&document.activeElement.blur()}catch(a){}},_executeCompletionCallbacks:function(){var a=b("PageTransitionsRegistrar")._getCompletionCallbacks();a.length>0&&(b("PageTransitionsRegistrar")._resetCompletionCallbacks(),a.forEach(function(a){return a()}))},registerCompletionCallback:b("PageTransitionsRegistrar").registerCompletionCallback,rewriteCurrentURI:function(a,c){__p&&__p();this._init();var d=b("PageTransitionsRegistrar")._getTransitionHandlers(),e=d.length||1,f=!1;b("PageTransitionsRegistrar").registerHandler(function(){if(a&&a.toString()==x.getMostRecentURI().getUnqualifiedURI().toString()){x.transitionComplete();return!0}f=!0},e);x.go(c,!0);d.length===e+1&&d[e].length===(f?0:1)||h(0,1302);d.length=e},_warnBeforeLeaving:function(a,c){b("Bootloader").loadModules(["DialogX","XUIDialogTitle.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIGrayText.react"],function(d,e,f,h,i,j){var k=b("CurrentUser").isWorkUser();e=k?b("React").createElement(e,{showCloseButton:!0},g._("Finish your post?")):b("React").createElement(e,{showCloseButton:!1},g._("Leave page?"));k=k?[b("React").createElement(h,{key:"confirm",action:"confirm",label:g._("Discard Post")}),b("React").createElement(h,{key:"cancel",action:"cancel",use:"confirm",label:g._("Go to Post")})]:[b("React").createElement(h,{key:"cancel",action:"cancel",label:g._("Stay on This Page")}),b("React").createElement(h,{key:"confirm",action:"confirm",use:"confirm",label:g._("Leave this Page")})];var l=new d({width:450,addedBehaviors:[b("LayerHideOnEscape")]},b("React").createElement("div",null,e,b("React").createElement(f,null,b("React").createElement(j,{shade:"medium",size:"medium"},a)),b("React").createElement(i,null,k)));l.subscribe("confirm",function(){l.hide(),c()});l.show()},"PageTransitionsBlue")},restoreScrollPosition:function(a){__p&&__p();var c=l(a);if(c){b("DOMScroll").scrollTo(c,!1);return!0}function d(a){if(!a)return null;var c="a[name='"+b("escapeJSQuotes")(a)+"']";return b("DOMQuery").scry(document.body,c)[0]||b("ge")(a)}c=d(new(b("URI"))(a).getFragment());if(c){d=!w;b("DOMScroll").scrollTo(c,d);return!0}return!1}};b("Env").isCQuick&&(b("BlueCompatBroker").init(),b("BlueCompatBroker").register("transitionpage",function(a){a=b("BlueCompatBroker").getMessageEventString(a,"uri");if(window.location.href===a)return;x.goBase(a,!1)}));e.exports=x;a.PageTransitions=x}),null);
__d("PopoverMenuInterface",["ArbiterMixin","emptyFunction","mixin"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.done=function(){this.inform("done")};return b}(b("mixin")(b("ArbiterMixin")));Object.assign(a.prototype,{getRoot:b("emptyFunction"),onShow:b("emptyFunction"),onHide:b("emptyFunction"),focusAnItem:b("emptyFunction").thatReturnsFalse,blur:b("emptyFunction"),handleKeydown:b("emptyFunction").thatReturnsFalse,destroy:b("emptyFunction")});e.exports=a}),null);
__d("TabbableElements",["Style"],(function(a,b,c,d,e,f){__p&&__p();function g(a){__p&&__p();if(a.tabIndex<0)return!1;if(a.tabIndex>0||a.tabIndex===0&&a.getAttribute("tabIndex")!==null)return!0;var b=a;switch(a.tagName){case"A":a=b;return!!a.href&&a.rel!="ignore";case"INPUT":a=b;return a.type!="hidden"&&a.type!="file"&&!a.disabled;case"BUTTON":case"SELECT":case"TEXTAREA":a=b;return!a.disabled}return!1}function h(a){a=a;while(a&&a!==document&&b("Style").get(a,"visibility")!="hidden"&&b("Style").get(a,"display")!="none")a=a.parentNode;return a===document}var i={find:function(a){return Array.from(a.getElementsByTagName("*")).filter(i.isTabbable)},findFirst:function(a){return Array.from(a.getElementsByTagName("*")).find(i.isTabbable)},isTabbable:function(a){return g(a)&&h(a)},isVisible:function(a){return h(a)}};e.exports=i}),null);
__d("Toggler",["csx","invariant","Arbiter","ArbiterMixin","ContextualThing","CSS","DataStore","DOM","Event","Focus","Keys","Parent","TabbableElements","TimeSlice","$","createArrayFromMixed","emptyFunction","ge","getContextualParent","getObjectValues","killswitch","mixin","queryThenMutateDOM","setImmediate"],(function(a,b,c,d,e,f,g,h){__p&&__p();var i=[],j,k=!1;function l(){k||(k=!0,b("setImmediate")(function(){k=!1}))}var m=function(){m=b("emptyFunction"),b("Event").listen(document.documentElement,"click",function(a){if(k)return;var c=a.getTarget();i.forEach(function(a){a.clickedTarget=c,a.active&&!a.sticky&&!b("ContextualThing").containsIncludingLayers(a.getActive(),c)&&!a.inTargetFlyout(c)&&a.inActiveDialog()&&!a.isIgnoredByModalLayer(c)&&a.hide()})},b("Event").Priority.URGENT)},n=function(d){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,d);function c(){var a;a=d.call(this)||this;a.active=null;a.togglers={};a.setSticky(!1);i.push(babelHelpers.assertThisInitialized(a));a.subscribe(["show","hide"],c.inform.bind(c));return m()||babelHelpers.assertThisInitialized(a)}var e=c.prototype;e.focusFirstTabbableDescendant=function(a,c){__p&&__p();if(!b("killswitch")("TOGGLER_FAST_SHOW")){c.$Toggler2&&c.$Toggler2.cancel();var d=null;c.$Toggler2=b("queryThenMutateDOM")(function(){var c=a.querySelector(".uiToggleFlyout");c&&(d=b("TabbableElements").findFirst(c)||c)},function(){delete c.$Toggler2,d&&(d.tabIndex==null&&(d.tabIndex=-1),b("Focus").setWithoutOutline(d))})}else{var e=a.querySelector(".uiToggleFlyout");if(e){e=b("TabbableElements").find(e)[0]||e;e.tabIndex==null&&(e.tabIndex=-1);b("Focus").setWithoutOutline(e)}}};e.show=function(a){__p&&__p();var c=o(this,a),d=c.active;if(a!==d){d&&c.hide();c.active=a;b("CSS").addClass(a,"openToggler");d=b("DOM").scry(a,'a[rel="toggle"]');d.length>0&&d[0].getAttribute("data-target")&&b("CSS").removeClass(b("$")(d[0].getAttribute("data-target")),"toggleTargetClosed");this.focusFirstTabbableDescendant(a,c);d.length>0&&(b("DOM").appendContent(a,c.getToggler("next")),b("DOM").prependContent(a,c.getToggler("prev")));b("Event").listen(a,"keydown",function(d){if(b("Event").getKeyCode(d)===b("Keys").ESC&&c.isShown()){var e=b("DOM").scry(a,'a[rel="toggle"]')[0];e&&e.focus();c.hide();d.kill()}});a.getAttribute("data-toggle-wc")&&(c.__continuation=b("TimeSlice").getGuardedContinuation("Toggler.show inform"));c.inform("show",c,"state")}};e.hide=function(a){__p&&__p();var c=o(this,a);c.$Toggler2&&c.$Toggler2.cancel();var d=c.active;if(d&&(!a||a===d)){b("CSS").removeClass(d,"openToggler");a=b("DOM").scry(d,'a[rel="toggle"]');a.length>0&&a[0].getAttribute("data-target")&&b("CSS").addClass(b("$")(a[0].getAttribute("data-target")),"toggleTargetClosed");b("getObjectValues")(c.togglers).forEach(b("DOM").remove);d.getAttribute("data-toggle-wc")&&(c.__continuation=b("TimeSlice").getGuardedContinuation("Toggler.hide inform"));c.inform("hide",c,"state");c.active=null}};e.toggle=function(a){var b=o(this,a);b.active===a?b.hide():b.show(a);l()};e.getActive=function(){return o(this).active};e.isShown=function(){return o(this).active&&b("CSS").hasClass(o(this).active,"openToggler")};c.isNodeShown=function(a){return b("CSS").hasClass(a,"openToggler")};e.inTargetFlyout=function(a){var c=p(this.getActive());return Boolean(c&&b("ContextualThing").containsIncludingLayers(c,a))};e.inActiveDialog=function(){var c=a.Dialog&&a.Dialog.getCurrent();return!c||b("DOM").contains(c.getRoot(),this.getActive())};e.isIgnoredByModalLayer=function(a){a=!!b("Parent").bySelector(a,"._3qw");var c=!!b("Parent").bySelector(this.getActive(),"._3qw");return a&&!c};e.getToggler=function(a){var c=o(this);c.togglers[a]||(c.togglers[a]=b("DOM").create("button",{className:"hideToggler",onfocus:function(){var a=b("DOM").scry(c.active,'a[rel="toggle"]')[0];a&&a.focus();c.hide()},style:{right:a==="next"?"0":""}}),c.togglers[a].setAttribute("type","button"));return this.togglers[a]};e.setSticky=function(a){var c=o(this);a=a!==!1;a!==c.sticky&&(c.sticky=a,a?c.$Toggler1&&c.$Toggler1.unsubscribe():c.$Toggler1=b("Arbiter").subscribe("pre_page_transition",c.hide.bind(c,null)));return c};e.setPrePageTransitionCallback=function(a){var c=o(this);c.$Toggler1&&c.$Toggler1.unsubscribe();c.$Toggler1=b("Arbiter").subscribe("pre_page_transition",a)};c.bootstrap=function(a){a=a.parentNode;a!=null||h(0,3354);var b=c.getInstance(a);b!=null||h(0,3355);b.toggle(a)};c.createInstance=function(a){var d=new c().setSticky(!0);b("DataStore").set(a,"toggler",d);return d};c.destroyInstance=function(a){var c=b("DataStore").get(a,"toggler");c&&c.$Toggler2&&c.$Toggler2.cancel();b("DataStore").remove(a,"toggler")};c.getInstance=function(a){__p&&__p();a=a;while(a){var d=b("DataStore").get(a,"toggler");if(d)return d;if(a instanceof Element)if(b("CSS").hasClass(a,"uiToggleContext"))return c.createInstance(a);else if(!b("killswitch")("JEWEL_TOGGLER_INSTANCE_FIXES")&&b("CSS").hasClass(a,"uiToggleFlyout"))return c.createInstance(a).setSticky(!1);a=b("getContextualParent")(a)}return j=j||new c()};c.listen=function(a,d,e){__p&&__p();return c.subscribe(b("createArrayFromMixed")(a),function(a,b){if(b.getActive()===d){if(b.__continuation){var c=b.__continuation;delete b.__continuation;return c(function(){return e(a,b)})}return e(a,b)}})};return c}(b("mixin")(b("ArbiterMixin")));Object.assign(n,n.prototype,b("ArbiterMixin"));Object.assign(n,{subscribe:function(a){return function(c,d){c=b("createArrayFromMixed")(c);c.includes("show")&&i.forEach(function(a){a.getActive()&&setTimeout(d.bind(null,"show",a),0)});return a(c,d)}}(n.subscribe.bind(n))});function o(a,b){return a instanceof n?a:n.getInstance(b)}function p(a){a=b("DOM").scry(a,'a[rel="toggle"]');return a.length>0&&a[0].getAttribute("data-target")?b("ge")(a[0].getAttribute("data-target")):null}e.exports=n}),null);
__d("onEnclosingPageletDestroy",["Arbiter","DOMQuery"],(function(a,b,c,d,e,f){function a(a,c){var d=b("Arbiter").subscribe("pagelet/destroy",function(e,f){b("DOMQuery").contains(f.root,a)&&(d.unsubscribe(),c())});return d}e.exports=a}),null);
__d("debounceAcrossTransitions",["debounce"],(function(a,b,c,d,e,f){function a(a,c,d){return b("debounce")(a,c,d,!0)}e.exports=a}),null);
__d("AbstractDockingElement",["Arbiter","Event","Run","SubscriptionsHandler","onEnclosingPageletDestroy","queryThenMutateDOM","removeFromArray"],(function(a,b,c,d,e,f){__p&&__p();var g=[],h=null;function i(){b("queryThenMutateDOM")(function(){return g.forEach(function(a){return a.queryDOM()})},function(){return g.forEach(function(a){return a.updateWithCache()})},"AbstractDockingElement")}function j(){h||(h=new(b("SubscriptionsHandler"))(),h.addSubscriptions(b("Event").listen(window,"scroll",i),b("Event").listen(window,"resize",i),b("Run").onLeave(function(){while(g.length)k(g[0])})),h=h);return h}function k(a){__p&&__p();try{a.onPageletDestroyed&&b("Arbiter").unsubscribe(a.onPageletDestroyed)}catch(a){}finally{a.onPageletDestroyed=null}if(!h||g.indexOf(a)===-1)return;b("removeFromArray")(g,a);if(g.length)return;h.release();h=null}e.exports={register:function(c,d,e){var a=j(),f={onPageletDestroyed:a.addSubscriptions(b("onEnclosingPageletDestroy")(c,function(){k(f)})),queryDOM:d,updateWithCache:e};g.push(f)}}}),null);
__d("DirectionalDockingElement",["cx","AbstractDockingElement","Arbiter","CSS","DOM","Scroll","Style","UITinyViewportAction","UserAgent","ViewportBounds","getElementPosition","getStyleProperty","queryThenMutateDOM"],(function(a,b,c,d,e,f,g){__p&&__p();var h=!0,i=!1,j=b("UserAgent").isBrowser("Safari < 10")||b("UserAgent").isBrowser("Mobile Safari < 10");a=function(){"use strict";__p&&__p();function a(a){this.$5=0,this.$2=null,this.$7=!1,this.$12=a,this.$8=0,this.$11=null,this.$13=0,this.register(),this.$14=b("ViewportBounds").getTop(),b("Style").set(this.$12,"width",this.$12.getBoundingClientRect().width+"px"),this.$9=b("DOM").create("div"),b("CSS").addClass(this.$9,"_lwx"),b("Style").set(this.$9,"position","relative"),b("DOM").replace(this.$12,this.$9),b("DOM").appendContent(this.$9,this.$12),this.update()}var c=a.prototype;c.register=function(){b("AbstractDockingElement").register(this.getRoot(),this.__queryDOM.bind(this),this.__updateWithCache.bind(this))};c.subscribe=function(a,c,d){this.$1||(this.$1=new(b("Arbiter"))());return this.$1.subscribe(a,c,d)};c.destroy=function(){b("DOM").replace(this.$9,this.$12)};c.__queryDOM=function(){__p&&__p();var a=-b("getElementPosition")(this.$9).y;a!==this.$13&&(this.$15=a>this.$13?i:h,this.$13=a);this.$6=this.$12.getBoundingClientRect();a=document;var c=a.body;a=a.documentElement;if(c&&a){var d=a.clientHeight;a=a.scrollHeight;this.$7=b("Scroll").getTop(c)+d>Math.max(d,a)}if(j){this.$11=b("getElementPosition")(this.$9);c=parseInt(b("getStyleProperty")(this.$12,"left"),10);this.$11&&!isNaN(c)&&c!==this.$11.x&&(this.$11=babelHelpers["extends"]({},this.$11,{x:c}))}this.$12.style.position==="fixed"&&(this.$5=b("getElementPosition")(this.$12).y+this.$13)};c.$16=function(a,c,d){if(c===this.$4&&a===this.$3&&d===this.$2)return;var e=a!==this.$3,f={};c!==this.$4&&(f.top=c+"px",this.$4=c);a!==this.$3&&(f.position=a,this.$3=a);j&&(d!==this.$2&&(f.left=typeof d==="number"?d+"px":"auto",this.$2=d));b("Style").apply(this.$12,f);e&&this.$1&&this.$1.inform("changedposition")};c.$17=function(){this.$16("fixed",this.$14,this.$11?this.$11.x:null)};c.$18=function(){this.$16("fixed",this.$8,this.$11?this.$11.x:null)};c.$19=function(){this.$16("absolute",this.$5,null)};c.unfixAndScrollBy=function(a){this.$5=Math.max(0,this.$5-a),this.$19()};c.translateY=function(a){var c=b("getElementPosition")(this.$12).y,d=b("getElementPosition")(this.$9).y;c=c-d;this.$5=a+c;this.$19()};c.__updateWithCache=function(){__p&&__p();var a=Math.round(this.$6.height);a!==this.$10&&(b("Style").set(this.$9,"height",a+"px"),this.$10=a,this.$1&&this.$1.inform("changedheight"));if(this.$7)return;if(this.$13+this.$14<0||b("UITinyViewportAction").isTiny()){this.$5=0;this.$19();b("Arbiter").inform("reflow");return}this.$15===i&&this.$13+this.$8>=this.$5?this.$18():this.$15===h&&this.$13+this.$14<=this.$5?this.$17():this.$19();b("Arbiter").inform("reflow")};c.update=function(){var a=this;b("queryThenMutateDOM")(function(){a.__queryDOM()},function(){a.__updateWithCache()})};c.setOffset=function(a){return this.setOffsetAndTop(a,this.$14)};c.setOffsetAndTop=function(a,c){var d=this;b("queryThenMutateDOM")(function(){d.__queryDOM(),d.$8=Math.round(a),d.$14=c},function(){d.__updateWithCache()});return this};c.setTop=function(a){return this.setOffsetAndTop(this.$8,a)};c.getPlaceholder=function(){return this.$9};c.getRoot=function(){return this.$12};return a}();e.exports=a}),null);
__d("Sketch",["regeneratorRuntime","requireCond","cr:902965"],(function(a,b,c,d,e,f){__p&&__p();a=babelHelpers["extends"]({},b("cr:902965"),{solveIntern:function(a,c,d,e){return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:f.next=2;return b("regeneratorRuntime").awrap(b("cr:902965").solveIntern(a,c,d,e));case 2:case"end":return f.stop()}},null,this)},solveAndCallAsyncController:function(a,c,d){return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:e.next=2;return b("regeneratorRuntime").awrap(b("cr:902965").solveAndCallAsyncController(a,c,d));case 2:case"end":return e.stop()}},null,this)},solveAndUpdateForm:function(a,c,d,e){return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:f.next=2;return b("regeneratorRuntime").awrap(b("cr:902965").solveAndUpdateForm(a,c,d,e));case 2:case"end":return f.stop()}},null,this)},solveAllPrimitivesAndCallAsyncController:function(a,c,d){return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:e.next=2;return b("regeneratorRuntime").awrap(b("cr:902965").solveAllPrimitivesAndCallAsyncController(a,c,d));case 2:case"end":return e.stop()}},null,this)}});e.exports=a}),null);
__d("BehaviorsMixin",[],(function(a,b,c,d,e,f){__p&&__p();var g=function(){"use strict";function a(a){this.$1=a,this.$2=!1}var b=a.prototype;b.enable=function(){this.$2||(this.$2=!0,this.$1.enable())};b.disable=function(){this.$2&&(this.$2=!1,this.$1.disable())};return a}(),h=1;function i(a){a.__BEHAVIOR_ID||(a.__BEHAVIOR_ID=h++);return a.__BEHAVIOR_ID}a={enableBehavior:function(a){this._behaviors||(this._behaviors={});var b=i(a);this._behaviors[b]||(this._behaviors[b]=new g(new a(this)));this._behaviors[b].enable();return this},disableBehavior:function(a){if(this._behaviors){a=i(a);this._behaviors[a]&&this._behaviors[a].disable()}return this},enableBehaviors:function(a){a.forEach(this.enableBehavior,this);return this},destroyBehaviors:function(){if(this._behaviors){for(var a in this._behaviors)this._behaviors[a].disable();this._behaviors={}}},hasBehavior:function(a){return this._behaviors&&i(a)in this._behaviors}};e.exports=a}),null);
__d("firstx",["invariant"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();function a(a){__p&&__p();for(var a=a,b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;return d}g(0,1145)}e.exports=a}),null);
__d("getScrollableAreaContainingNode",["DataStore","Parent"],(function(a,b,c,d,e,f){"use strict";function a(a){a=b("Parent").byClass(a,"uiScrollableArea");return a?b("DataStore").get(a,"ScrollableArea"):null}e.exports=a}),null);
__d("Menu",["cx","BehaviorsMixin","CSS","DataStore","DOM","Event","Keys","Parent","PopoverMenuInterface","ScrollableArea","Style","SubscriptionsHandler","UserAgent","debounce","gkx"],(function(a,b,c,d,e,f,g){__p&&__p();var h=500;a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(d,e){__p&&__p();var f;f=a.call(this)||this;f._items=[];f._keysSoFar="";f._items=d.map(c.buildItemFromData);f._config=e||{};f._theme=e.theme||{};f._subscriptions=new(b("SubscriptionsHandler"))();f._clearKeysSoFarAfterDelay=b("debounce")(function(){f._keysSoFar=""},h);return f}c.buildItemFromData=function(a){if(a.ctor)return new a.ctor(a);else return new a.type(a.props)};var d=c.prototype;d.addItem=function(a){this._addItem(a)};d.addItemBefore=function(a,b){this._addItem(a,b,!1)};d.addItemAfter=function(a,b){this._addItem(a,b,!0)};d._addItem=function(a,b,c){__p&&__p();var d=this._items.indexOf(a);if(d>=0){var e=c?-1:1;if(this._items[d+e]==b)return;this._items.splice(d,1)}if(b){d=this._items.indexOf(b);if(d<0)throw new Error("reference item must already be in the menu");c&&d++;this._items.splice(d,0,a)}else this._items.push(a);this._root&&this._insertItem(a,b,c)};d.removeItem=function(a){var c=this._items.indexOf(a);if(c<0)return;this._items.splice(c,1);this._root&&b("DOM").remove(a.getRoot())};d.forEachItem=function(a){this._items.forEach(a)};d.getFocusedItem=function(){return this._focused};d.getItemAt=function(a){return this._items[a]||null};d.getRoot=function(){this._root||this._render();return this._root};d.onShow=function(){this._config.maxheight&&(!this._scrollableArea?this._scrollableArea=b("ScrollableArea").fromNative(this._scrollableElems.root,{fade:!0}):this._scrollableArea.resize()),this.inform("show")};d.onHide=function(){this.blur(),this.inform("hide")};d.focusAnItem=function(a){return this._attemptFocus(a||0,1)};d.blur=function(){if(this._focused){var a=this._focused;this._focused.blur();this._focused=null;this.inform("blur",{item:a})}};d.handleKeydown=function(a,c){__p&&__p();if(!this._items.length)return!1;var d=this._items.indexOf(this._focused);switch(a){case b("Keys").UP:case b("Keys").DOWN:var e=a===b("Keys").UP,f=e?-1:1;e=e?this._items.length-1:0;return d===-1?this._attemptFocus(e,f):this._attemptFocus(d+f,f);case b("Keys").HOME:return this._attemptFocus(0,1);case b("Keys").END:return this._attemptFocus(this._items.length-1,-1);case b("Keys").SPACE:if(this._items.indexOf(this._focused)!==-1){this._handleItemClick(this._focused,c);return!0}return!1;case b("Keys").RIGHT:case b("Keys").LEFT:case b("Keys").INSERT:case b("Keys").DELETE:return!1;default:e=this._findItemToFocus(a,d);return!!(e&&this._focusItem(e))}};d._findItemToFocus=function(a,b){a=String.fromCharCode(a).toLowerCase();this._keysSoFar||(this._searchIndex=b,this._itemToFocus=this._focused||this._items[0]);this._keysSoFar+=a;this._clearKeysSoFarAfterDelay();b=this._findMatchInRange(this._searchIndex+1,this._items.length);b||(b=this._findMatchInRange(0,this._searchIndex));this._itemToFocus=b||this._itemToFocus;return this._itemToFocus};d._findMatchInRange=function(a,b){for(var a=a;a<b;a++){var c=this._items[a].getLabel();if(c&&c.toString().toLowerCase().indexOf(this._keysSoFar)===0)return this._items[a]}return null};d._render=function(){__p&&__p();this._ul=b("DOM").create("ul",{className:"_54nf"});this._ul.setAttribute("role","menu");this._items.forEach(function(a){this._insertItem(a,null)},this);this._subscriptions.addSubscriptions(b("Event").listen(this._ul,"click",this._handleClick.bind(this)),b("Event").listen(this._ul,"mouseover",this._handleMouseOver.bind(this)),b("Event").listen(this._ul,"mouseout",this._handleMouseOut.bind(this)));var a=this._ul;this._config.maxheight&&(this._scrollableElems=b("ScrollableArea").renderDOM(),b("DOM").setContent(this._scrollableElems.content,this._ul),a=this._scrollableElems.root,b("Style").set(this._scrollableElems.wrap,"max-height",this._config.maxheight+"px"));var c="_54nq"+(this._config.className?" "+this._config.className:"")+(this._theme.className?" "+this._theme.className:"");this._root=b("DOM").create("div",{className:c},b("DOM").create("div",{className:"_54ng"},a));this._config.id&&this._root.setAttribute("id",this._config.id);this._config.testid&&this._root.setAttribute("data-testid",this._config.testid);this._config.behaviors&&this.enableBehaviors(this._config.behaviors);this.inform("rendered",this._root)};d._needsDefaultBehavior=function(a){if(a.isDefaultRequested&&a.isDefaultRequested()){a=b("Parent").byTag(a.getTarget(),"a");a=a&&a.getAttribute("href");return a&&a[0]!=="#"}return!1};d._handleClick=function(a){if(a.getTarget()===this._ul&&b("UserAgent").isBrowser("IE")){a.stop();return}if(!this._needsDefaultBehavior(a)){var c=this._getItemInstance(a.getTarget());if(c)return this._handleItemClick(c,a)}};d._handleItemClick=function(a,c){this.inform("itemclick",{item:a,event:c});if(b("gkx")("678830")&&c.isDefaultPrevented())return!0;a.shouldCloseOnClick()&&a.hasAction()&&this.done();return a.handleClick(c)};d._handleMouseOver=function(a){a=this._getItemInstance(a.getTarget());a&&this._focusItem(a,!0)};d._handleMouseOut=function(a){a=this._getItemInstance(a.getTarget());a&&this._focused===a&&this.blur()};d._insertItem=function(a,c,d){var e=a.getRoot();b("CSS").addClass(e,"__MenuItem");b("DataStore").set(e,"MenuItem",a);if(c){a=d?b("DOM").insertAfter:b("DOM").insertBefore;a(c.getRoot(),e)}else b("DOM").appendContent(this._ul,e)};d._attemptFocus=function(a,b){var c=this._items.length;if((a<0||a>=c)&&!this._focused)return!1;a=(c+a%c)%c;c=this.getItemAt(a);return c===this._focused||this._focusItem(c)?!0:this._attemptFocus(a+b,b)};d._focusItem=function(a,b){if(a&&a.focus(b)!==!1){this._focused!==a&&(this.blur(),this._focused=a,this.inform("focus",{item:a,from_mouse_over:b}));return!0}return!1};d._getItemInstance=function(a){a=b("Parent").byClass(a,"__MenuItem");return a?b("DataStore").get(a,"MenuItem"):null};d.destroy=function(){this._items.forEach(function(a){var c=a.getRoot();b("DataStore").remove(c,"MenuItem");a.destroy()}),this._subscriptions.release(),this.destroyBehaviors()};return c}(b("PopoverMenuInterface"));Object.assign(a.prototype,b("BehaviorsMixin"),{_focused:null,_root:null});e.exports=a}),null);
__d("MenuItemInterface",["React","emptyFunction"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getRoot=function(){this._root||(this._root=this.render());return this._root};return b}(b("React").Component);Object.assign(a.prototype,{_root:null,render:b("emptyFunction"),getAccessKey:b("emptyFunction"),getLabel:b("emptyFunction"),hasAction:b("emptyFunction").thatReturnsFalse,focus:b("emptyFunction").thatReturnsFalse,blur:b("emptyFunction").thatReturnsFalse,onShow:b("emptyFunction").thatReturnsFalse,handleClick:b("emptyFunction").thatReturnsFalse,shouldCloseOnClick:b("emptyFunction").thatReturnsTrue,destroy:b("emptyFunction")});e.exports=a}),null);
__d("MenuItemBase",["cx","DOM","HTML","MenuItemInterface"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){var c;c=a.call(this)||this;c._ARIARole="menuitem";c._data=babelHelpers["extends"]({},b);return c}var d=c.prototype;d.render=function(){var a="_54ni";this._data.className&&(a+=" "+this._data.className);a={className:a,role:"presentation"};Object.assign(a,this.__getAttributesFromData());delete a["data-testid"];return b("DOM").create("li",a,this._renderItemContent())};d._renderItemContent=function(){return b("HTML")(this._data.markup).getNodes()};d.__getAttributesFromData=function(){var a={};for(var b in this._data)(b.indexOf("data-")===0||b.indexOf("aria-")===0)&&(a[b]=this._data[b]);return a};return c}(b("MenuItemInterface"));e.exports=a}),null);
__d("MenuItem",["cx","CSS","DOM","MenuItemBase","React","ReactDOM","emptyFunction","joinClasses"],(function(a,b,c,d,e,f,g){__p&&__p();var h=["href","rel","ajaxify","target","accesskey"];function i(a,c){var d={};h.forEach(function(a){c[a]&&(d[a]=c[a])});b("DOM").setAttributes(a,d)}function j(a){h.forEach(function(b){a.removeAttribute(b)})}a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){b=a.call(this,b)||this;b._disabled=!!b._data.disabled;b._onclickHandler=b._data.onclick||b._data.onClick;return b}var d=c.prototype;d.getValue=function(){return this._data.value};d.getLabel=function(){return this._data.label};d.getLink=function(){return this._data.href};d.getAccessKey=function(){var a=this.getLabel();return a&&a.charAt(0)};d.focus=function(a){if(this.isDisabled()||!this._root.offsetParent||!this.hasAction()||this.isHoverDisabled())return!1;b("CSS").addClass(this._root,"_54ne");b("CSS").addClass(this._root,"selected");a||this._anchor.focus()};d.blur=function(){b("CSS").removeClass(this._root,"_54ne"),b("CSS").removeClass(this._root,"selected")};d.handleClick=function(a){if(this.isDisabled())return!1;return typeof this._onclickHandler==="function"?this._onclickHandler(a):!0};d.setOnClickHandler=function(a){this._onclickHandler=a};d._renderItemContent=function(){__p&&__p();this._anchor=b("DOM").create(this._data.renderas==="label"?"label":"a",{className:"_54nc"+(this._data.icon?" _54nu":"")});if(this._data.children){var a=null;this._data.icon&&(a=b("React").cloneElement(this._data.icon,{className:b("joinClasses")(this._data.icon.props.className,"mrs")}));b("ReactDOM").render(b("React").createElement("span",null,a,b("React").createElement("span",{className:"_54nh"},this._data.children)),this._anchor);this._data.label=this._anchor.innerText||this._anchor.textContent}else{a=b("DOM").create("span",null,b("DOM").create("span",{className:"_54nh"},this._data.markup||this._data.label));this._data.icon&&b("DOM").prependContent(a,this._data.icon);b("DOM").setContent(this._anchor,a)}this._data.href||(this._data.href="#");this.isDisabled()||i(this._anchor,this._data);b("DOM").setAttributes(this._anchor,this.__getAttributesFromData());this._anchor.setAttribute("role",this._ARIARole);a=this._data.title;a&&this._anchor.setAttribute("title",a);return this._anchor};d.isDisabled=function(){return this._disabled};d.isHoverDisabled=function(){return this._data.hoverdisabled};d.enable=function(){this._root&&(i(this._anchor,this._data),b("CSS").removeClass(this._root,"_5arm")),this._disabled=!1};d.disable=function(){this._root&&(j(this._anchor),b("CSS").addClass(this._root,"_5arm")),this._disabled=!0};d.render=function(){var c=a.prototype.render.call(this);this._disabled&&b("CSS").addClass(c,"_5arm");return c};d.destroy=function(){this._anchor&&b("ReactDOM").unmountComponentAtNode(this._anchor)};return c}(b("MenuItemBase"));Object.assign(a.prototype,{hasAction:b("emptyFunction").thatReturnsTrue});e.exports=a}),null);
__d("Layer",["invariant","KeyStatus","ArbiterMixin","BehaviorsMixin","BootloadedReact","ContextualThing","CSS","DataStore","DOM","Event","FBLogger","HTML","KeyEventController","Parent","Style","ge","isNode","mixin","removeFromArray","setImmediate"],(function(a,b,c,d,e,f,g){__p&&__p();b("KeyStatus");var h=[],i=function(c){"use strict";__p&&__p();babelHelpers.inheritsLoose(a,c);function a(a,d){__p&&__p();var e;e=c.call(this)||this;e._config=a||{};if(d){e._configure(e._config,d);a=e._config.addedBehaviors||[];e.enableBehaviors(e._getDefaultBehaviors().concat(a))}else b("FBLogger")("layer").warn("The markup param wasn't provided to the Layer constructor");return e}var d=a.prototype;d.init=function(a){this._configure(this._config,a);a=this._config.addedBehaviors||[];this.enableBehaviors(this._getDefaultBehaviors().concat(a));this._initialized=!0;return this};d._configure=function(a,c){__p&&__p();var d=this;if(c){var e=b("isNode")(c),f=typeof c==="string"||b("HTML").isHTML(c);this.containsReactComponent=b("BootloadedReact").isValidElement(c);!e&&!f&&!this.containsReactComponent&&b("FBLogger")("layer").warn("Layer must be init with HTML, DOM node or React instance");if(f)c=b("HTML")(c).getRootNode();else if(this.containsReactComponent){e=document.createElement("div");var g=!0;b("BootloadedReact").render(c,e,function(){d.inform("reactshow"),g||d.updatePosition()});g=!1;c=this._reactContainer=e}}this._root=this._buildWrapper(a,c);a.attributes&&b("DOM").setAttributes(this._root,a.attributes);a.classNames&&a.classNames.forEach(b("CSS").addClass.bind(null,this._root));b("CSS").addClass(this._root,"uiLayer");a.causalElement&&(this._causalElement=b("ge")(a.causalElement));a.permanent&&(this._permanent=a.permanent);a.isStrictlyControlled&&(this._isStrictlyControlled=a.isStrictlyControlled);b("DataStore").set(this._root,"layer",this);return this};d._getDefaultBehaviors=function(){return[]};d.getCausalElement=function(){return this._causalElement};d.setCausalElement=function(a){this._causalElement=a;return this};d.getInsertParent=function(){return this._insertParent||document.body};d.getRoot=function(){this._root||(this._destroyed?b("FBLogger")("layer").warn("No root node for this Layer. It has either not yet been set or the Layer has been destroyed. This layer has been destroyed."):b("FBLogger")("layer").warn("No root node for this Layer. It has probably not been set."));return this._root};d.getContentRoot=function(){return this.getRoot()};d._buildWrapper=function(a,b){return b};d.setInsertParent=function(a){a&&(this._shown&&a!==this.getInsertParent()&&(b("DOM").appendContent(a,this.getRoot()),this.updatePosition()),this._insertParent=a);return this};d.showAfterDelay=function(a){window.setTimeout(this.show.bind(this),a)};d.show=function(){__p&&__p();var c=this;if(this._shown)return this;var d=this.getRoot();d!=null||g(0,5142);this.inform("beforeshow");b("Style").set(d,"visibility","hidden");b("Style").set(d,"overflow","hidden");b("CSS").show(d);b("DOM").appendContent(this.getInsertParent(),d);this.updatePosition()!==!1?(this._shown=!0,this.inform("show"),a.inform("show",this),this._permanent||window.setTimeout(function(){c._shown&&h.push(c)},0)):b("CSS").hide(d);b("Style").set(d,"visibility","");b("Style").set(d,"overflow","");b("Style").set(d,"opacity","1");this.inform("aftershow");return this};d.hide=function(a){if(this._isStrictlyControlled){this._shown&&this.inform("runhide",a);return this}return this._hide()};d._hide=function(){if(this._hiding||!this._shown||this.inform("beforehide")===!1)return this;this._hiding=!0;this.inform("starthide")!==!1&&this.finishHide();return this};d.conditionShow=function(a){return a?this.show():this._hide()};d.finishHide=function(){__p&&__p();if(this._shown){this._permanent||b("removeFromArray")(h,this);this._hiding=!1;this._shown=!1;var c=this.getRoot();c!=null||g(0,5143);b("CSS").hide(c);this.inform("hide");a.inform("hide",this)}};d.isShown=function(){return this._shown};d.updatePosition=function(){return!0};d.destroy=function(){__p&&__p();this.containsReactComponent&&b("BootloadedReact").unmountComponentAtNode(this._reactContainer);this.finishHide();var c=this.getRoot();b("DOM").remove(c);this.destroyBehaviors();this.inform("destroy");a.inform("destroy",this);b("DataStore").remove(c,"layer");this._root=this._causalElement=null;this._destroyed=!0};a.init=function(a,b){a.init(b)};a.initAndShow=function(a,b){a.init(b).show()};a.show=function(a){a.show()};a.showAfterDelay=function(a,b){a.showAfterDelay(b)};a.getTopmostLayer=function(){return h[h.length-1]};a.informBlur=function(a){__p&&__p();j=null;k=null;var c=h.length;if(!c)return;while(c--){var d=h[c],e=d.getContentRoot();e!=null||g(0,5144);if(b("ContextualThing").containsIncludingLayers(e,a))return;if(d.inform("blur",{target:a})===!1||d.isShown())return}};return a}(b("mixin")(b("ArbiterMixin"),b("BehaviorsMixin")));Object.assign(i,b("ArbiterMixin"));Object.assign(i.prototype,{_destroyed:!1,_initialized:!1,_root:null,_shown:!1,_hiding:!1,_causalElement:null,_reactContainer:null});b("Event").listen(document.documentElement,"keydown",function(a){if(b("KeyEventController").filterEventTargets(a,"keydown"))for(var c=h.length-1;c>=0;c--)if(h[c].inform("key",a)===!1)return!1;return!0},b("Event").Priority.URGENT);var j;b("Event").listen(document.documentElement,"mousedown",function(a){j=a.getTarget()});var k;b("Event").listen(document.documentElement,"mouseup",function(a){k=a.getTarget(),b("setImmediate")(function(){j=null,k=null})});b("Event").listen(document.documentElement,"click",function(a){__p&&__p();var c=j,d=k;j=null;k=null;var e=h.length;if(!e)return;e=a.getTarget();if(e!==d||e!==c)return;if(!b("DOM").contains(document.documentElement,e))return;if(e.offsetWidth!=null&&!e.offsetWidth)return;if(b("Parent").byClass(e,"generic_dialog"))return;i.informBlur(e)});e.exports=i}),null);
__d("LayerHideOnTransition",["LayerHideSources","PageTransitionsRegistrar"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a){var c=this;this._handler=function(a){c._enabled&&c.isTransitionRelevant(a)&&c._layer.hide(b("LayerHideSources").TRANSITION),c._subscribe()};this._layer=a}var c=a.prototype;c.enable=function(){this._enabled=!0,this._subscribed||setTimeout(this._subscribe.bind(this),0)};c.disable=function(){this._enabled=!1,b("PageTransitionsRegistrar").removeHandler(this._handler)};c.isTransitionRelevant=function(a){return!0};c._subscribe=function(){b("PageTransitionsRegistrar").registerHandler(this._handler),this._subscribed=!0};return a}();Object.assign(a.prototype,{_enabled:!1,_subscribed:!1});e.exports=a}),null);
__d("VirtualCursorStatus",["Event","UserAgent","emptyFunction","setImmediate"],(function(a,b,c,d,e,f){__p&&__p();var g=null,h=null;function i(){h||(h=b("Event").listen(window,"blur",function(){g=null,j()}))}function j(){h&&(h.remove(),h=null)}function a(a){g=a.keyCode,i()}function c(){g=null,j()}if(typeof window!=="undefined"&&window.document&&window.document.createElement){d=document.documentElement;if(d)if(d.addEventListener)d.addEventListener("keydown",a,!0),d.addEventListener("keyup",c,!0);else if(d.attachEvent){f=d.attachEvent;f("onkeydown",a);f("onkeyup",c)}}var k={isKeyDown:function(){return!!g},getKeyDownCode:function(){return g}},l=!1,m=!1,n=null,o=!1;function p(a){__p&&__p();var c=new Set(),d=k.isKeyDown(),e=a.clientX,f=a.clientY,g=a.isPrimary,h=a.isTrusted,i=a.offsetX,j=a.offsetY,n=a.pointerType,o=a.mozInputSource,p=a.WEBKIT_FORCE_AT_MOUSE_DOWN,q=a.webkitForce;a=a.target;var r=a.clientWidth;a=a.clientHeight;e===0&&f===0&&i>=0&&j>=0&&m&&h&&o==null&&c.add("Chrome");l&&m&&!d&&q!=null&&q<p&&i===0&&j===0&&o==null&&c.add("Safari-edge");e===0&&f===0&&i<0&&j<0&&m&&o==null&&c.add("Safari-old");!l&&!m&&d&&g===!1&&h&&n===""&&e===0&&f===0&&i===0&&j===0&&o==null;!l&&!m&&!d&&h&&b("UserAgent").isBrowser("IE >= 10")&&o==null&&(e<0&&f<0?c.add("IE"):(i<0||i>r)&&(j<0||j>a)&&c.add("MSIE"));o===0&&h&&c.add("Firefox");return c}function q(){l=!0,b("setImmediate")(function(){l=!1})}function r(){m=!0,b("setImmediate")(function(){m=!1})}function s(a,c){n===null&&(n=p(a));o=n.size>0;a=a.target.getAttribute("data-accessibilityid")==="virtual_cursor_trigger";c(o,n,a);b("setImmediate")(function(){o=!1,n=null})}d={isVirtualCursorTriggered:function(){return o},add:function(a,c){c===void 0&&(c=b("emptyFunction"));var d=function(a){return s(a,c)};a.addEventListener("click",d);var e=b("Event").listen(a,"mousedown",q),f=b("Event").listen(a,"mouseup",r);return{remove:function(){a.removeEventListener("click",d),e.remove(),f.remove()}}}};e.exports=d}),null);
__d("clamp",[],(function(a,b,c,d,e,f){function a(a,b,c){if(a<b)return b;return a>c?c:a}e.exports=a}),null);
__d("classWithMixins",[],(function(a,b,c,d,e,f){function a(a,b){var c=function(){a.apply(this,arguments)};c.prototype=Object.assign(Object.create(a.prototype),b.prototype);return c}e.exports=a}),null);
__d("cancelAnimationFramePolyfill",[],(function(a,b,c,d,e,f){b=a.__fbNativeCancelAnimationFrame||a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.mozCancelAnimationFrame||a.oCancelAnimationFrame||a.msCancelAnimationFrame||a.clearTimeout;e.exports=b}),null);
__d("cancelAnimationFrame",["Env","TimerStorage","TimeSlice","cancelAnimationFramePolyfill","requestAnimationFrameAcrossTransitions"],(function(a,b,c,d,e,f){__p&&__p();var g=b("TimerStorage").ANIMATION_FRAME;function a(a){if(a!=null)if(b("Env").gk_raf_flush)b("requestAnimationFrameAcrossTransitions").cancelVirtualRAF(a);else{b("TimerStorage").unset(g,a);var c=g+String(a);b("TimeSlice").cancelWithToken(c)}b("cancelAnimationFramePolyfill")(a)}e.exports=a}),null);
__d("abstractMethod",["invariant"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){g(0,1537,a,b)}e.exports=a}),null);
__d("str2rstr",[],(function(a,b,c,d,e,f){function a(a){var b="",c,d;for(var e=0;e<a.length;e++)c=a.charCodeAt(e),d=e+1<a.length?a.charCodeAt(e+1):0,55296<=c&&c<=56319&&56320<=d&&d<=57343&&(c=65536+((c&1023)<<10)+(d&1023),e++),c<=127?b+=String.fromCharCode(c):c<=2047?b+=String.fromCharCode(192|c>>>6&31,128|c&63):c<=65535?b+=String.fromCharCode(224|c>>>12&15,128|c>>>6&63,128|c&63):c<=2097151&&(b+=String.fromCharCode(240|c>>>18&7,128|c>>>12&63,128|c>>>6&63,128|c&63));return b}e.exports=a}),null);
__d("md5",["str2rstr"],(function(a,b,c,d,e,f){__p&&__p();function g(a,b){__p&&__p();var c=a[0],d=a[1],e=a[2],f=a[3];c=i(c,d,e,f,b[0],7,-680876936);f=i(f,c,d,e,b[1],12,-389564586);e=i(e,f,c,d,b[2],17,606105819);d=i(d,e,f,c,b[3],22,-1044525330);c=i(c,d,e,f,b[4],7,-176418897);f=i(f,c,d,e,b[5],12,1200080426);e=i(e,f,c,d,b[6],17,-1473231341);d=i(d,e,f,c,b[7],22,-45705983);c=i(c,d,e,f,b[8],7,1770035416);f=i(f,c,d,e,b[9],12,-1958414417);e=i(e,f,c,d,b[10],17,-42063);d=i(d,e,f,c,b[11],22,-1990404162);c=i(c,d,e,f,b[12],7,1804603682);f=i(f,c,d,e,b[13],12,-40341101);e=i(e,f,c,d,b[14],17,-1502002290);d=i(d,e,f,c,b[15],22,1236535329);c=j(c,d,e,f,b[1],5,-165796510);f=j(f,c,d,e,b[6],9,-1069501632);e=j(e,f,c,d,b[11],14,643717713);d=j(d,e,f,c,b[0],20,-373897302);c=j(c,d,e,f,b[5],5,-701558691);f=j(f,c,d,e,b[10],9,38016083);e=j(e,f,c,d,b[15],14,-660478335);d=j(d,e,f,c,b[4],20,-405537848);c=j(c,d,e,f,b[9],5,568446438);f=j(f,c,d,e,b[14],9,-1019803690);e=j(e,f,c,d,b[3],14,-187363961);d=j(d,e,f,c,b[8],20,1163531501);c=j(c,d,e,f,b[13],5,-1444681467);f=j(f,c,d,e,b[2],9,-51403784);e=j(e,f,c,d,b[7],14,1735328473);d=j(d,e,f,c,b[12],20,-1926607734);c=k(c,d,e,f,b[5],4,-378558);f=k(f,c,d,e,b[8],11,-2022574463);e=k(e,f,c,d,b[11],16,1839030562);d=k(d,e,f,c,b[14],23,-35309556);c=k(c,d,e,f,b[1],4,-1530992060);f=k(f,c,d,e,b[4],11,1272893353);e=k(e,f,c,d,b[7],16,-155497632);d=k(d,e,f,c,b[10],23,-1094730640);c=k(c,d,e,f,b[13],4,681279174);f=k(f,c,d,e,b[0],11,-358537222);e=k(e,f,c,d,b[3],16,-722521979);d=k(d,e,f,c,b[6],23,76029189);c=k(c,d,e,f,b[9],4,-640364487);f=k(f,c,d,e,b[12],11,-421815835);e=k(e,f,c,d,b[15],16,530742520);d=k(d,e,f,c,b[2],23,-995338651);c=l(c,d,e,f,b[0],6,-198630844);f=l(f,c,d,e,b[7],10,1126891415);e=l(e,f,c,d,b[14],15,-1416354905);d=l(d,e,f,c,b[5],21,-57434055);c=l(c,d,e,f,b[12],6,1700485571);f=l(f,c,d,e,b[3],10,-1894986606);e=l(e,f,c,d,b[10],15,-1051523);d=l(d,e,f,c,b[1],21,-2054922799);c=l(c,d,e,f,b[8],6,1873313359);f=l(f,c,d,e,b[15],10,-30611744);e=l(e,f,c,d,b[6],15,-1560198380);d=l(d,e,f,c,b[13],21,1309151649);c=l(c,d,e,f,b[4],6,-145523070);f=l(f,c,d,e,b[11],10,-1120210379);e=l(e,f,c,d,b[2],15,718787259);d=l(d,e,f,c,b[9],21,-343485551);a[0]=r(c,a[0]);a[1]=r(d,a[1]);a[2]=r(e,a[2]);a[3]=r(f,a[3])}function h(a,b,c,d,e,f){b=r(r(b,a),r(d,f));return r(b<<e|b>>>32-e,c)}function i(a,b,c,d,e,f,g){return h(b&c|~b&d,a,b,e,f,g)}function j(a,b,c,d,e,f,g){return h(b&d|c&~d,a,b,e,f,g)}function k(a,b,c,d,e,f,g){return h(b^c^d,a,b,e,f,g)}function l(a,b,c,d,e,f,g){return h(c^(b|~d),a,b,e,f,g)}function m(a){__p&&__p();var b=a.length,c=[1732584193,-271733879,-1732584194,271733878],d;for(d=64;d<=a.length;d+=64)g(c,n(a.substring(d-64,d)));a=a.substring(d-64);var e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(d=0;d<a.length;d++)e[d>>2]|=a.charCodeAt(d)<<((d&3)<<3);e[d>>2]|=128<<((d&3)<<3);if(d>55){g(c,e);for(d=0;d<16;d++)e[d]=0}e[14]=b*8;g(c,e);return c}function n(a){var b=[],c=0;while(c<64)b[c>>2]=a.charCodeAt(c++)|a.charCodeAt(c++)<<8|a.charCodeAt(c++)<<16|a.charCodeAt(c++)<<24;return b}var o="0123456789abcdef".split("");function p(a){var b="",c=0;for(;c<4;c++)b+=o[a>>(c<<3)+4&15]+o[a>>(c<<3)&15];return b}function q(a){var b=[];for(var c=0;c<a.length;c++)b[c]=p(a[c]);return b.join("")}var r=function(a,b){return a+b&4294967295};function a(a){if(a==null)return null;for(var c=0;c<a.length;c++)if(a[c]>"\x7f"){a=b("str2rstr")(a);break}a=String(a);return q(m(a))}a("hello")!="5d41402abc4b2a76b9719d911017c592"&&(r=function(a,b){var c=(a&65535)+(b&65535);a=(a>>16)+(b>>16)+(c>>16);return a<<16|c&65535});e.exports=a}),null);
__d("XBasicFBNuxDismissController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ajax/megaphone/dismiss_fbnux/",{nux_id:{type:"Int",required:!0}})}),null);
__d("XBasicFBNuxViewController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/ajax/megaphone/view_fbnux/",{nux_id:{type:"Int",required:!0}})}),null);