84e5110d18250ea1781e0b0e90d16b5c06f63454eccc572204dfd8e0161b02ab

Source Code:

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

__d("ChatQuietLinks",["DataStore","DOM","Event","Parent","UserAgent_DEPRECATED","getOrCreateDOMID"],(function(a,b,c,d,e,f){var g={};a={silenceLinks:function(a){h(a,this.removeEmptyHrefs.bind(this))},nukeLinks:function(a){h(a,this.removeAllHrefs.bind(this))},removeEmptyHrefs:function(a){i(a,function(a){return!a||a==="#"})},removeAllHrefs:function(a){i(a)}};function h(a,c){if(!a)return;var d=!!b("UserAgent_DEPRECATED").chrome(),e=!!b("UserAgent_DEPRECATED").chrome()||b("UserAgent_DEPRECATED").ie()>=9||b("UserAgent_DEPRECATED").firefox()>=4;if(g[b("getOrCreateDOMID")(a)])return;g[b("getOrCreateDOMID")(a)]=!0;if(!e)return;if(!d){c&&c(a);return}b("Event").listen(a,"mouseover",function(a){a=b("Parent").byTag(a.getTarget(),"a");if(a){var c=a.getAttribute("href");j(c)&&(b("DataStore").set(a,"stashedHref",a.getAttribute("href")),a.removeAttribute("href"))}});b("Event").listen(a,"mouseout",function(a){a=b("Parent").byTag(a.getTarget(),"a");var c=a&&b("DataStore").remove(a,"stashedHref");j(c)&&a.setAttribute("href",c)});b("Event").listen(a,"mousedown",function(a){if(!a.isDefaultRequested())return!0;a=b("Parent").byTag(a.getTarget(),"a");var c=a&&b("DataStore").get(a,"stashedHref");j(c)&&a.setAttribute("href",c)})}function i(a,c){a=b("DOM").scry(a,"a");c&&(a=a.filter(function(a){return c(a.getAttribute("href"))}));a.forEach(function(a){a.removeAttribute("href"),a.tabIndex||a.setAttribute("tabindex",0)})}function j(a){return a&&a!=="#"}e.exports=a}),null);
__d("FDSMultiElementLayoutContext",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=a.createContext({groupID:null,getLayout:function(){}});e.exports=c}),null);
__d("FDSPrivateCardLayoutContext",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React");c=a.createContext({hasHeader:!0,hasFooter:!0});e.exports=c}),null);
__d("GeoPrivateInputGroupMessageContext",["createFeatureContext"],(function(a,b,c,d,e,f){"use strict";a=b("createFeatureContext")();e.exports=a}),null);
__d("Dock",["csx","ArbiterMixin","BlueBar","ChatQuietLinks","CSS","DataStore","DOM","Event","Parent","Scroll","Style","Toggler","Vector","emptyFunction","isKeyActivation","shield"],(function(a,b,c,d,e,f,g){function c(){}Object.assign(c,b("ArbiterMixin"),{MIN_HEIGHT:140,INITIAL_FLYOUT_HEIGHT_OFFSET:10,init:function(a){this.init=b("emptyFunction");this.rootEl=a;this.calculateViewportDimensions();b("ChatQuietLinks").removeEmptyHrefs(this.rootEl);b("Event").listen(a,"click",this._onClick.bind(this));var c=a.querySelector(".fbNubButton");c&&b("Event").listen(c,"keypress",this._onKeyPress.bind(this));b("Event").listen(window,"resize",this._onWindowResize.bind(this));b("Toggler").subscribe(["show","hide"],function(c,d){d=d.getActive();if(!b("DOM").contains(a,d))return;if(b("CSS").hasClass(d,"fbNub"))this.notifyNub(d,c),c==="show"&&this._resizeNubFlyout(d);else{d=b("Parent").byClass(d,"fbNubFlyout");d&&b("CSS").conditionClass(d,"menuOpened",c==="show")}}.bind(this));this.inform("init",{},"persistent")},calculateViewportDimensions:function(){return this.viewportDimensions=b("Vector").getViewportDimensions()},getFlyoutHeightOffset:function(){if(this.flyoutHeightOffset)return this.flyoutHeightOffset;this.flyoutHeightOffset=this.INITIAL_FLYOUT_HEIGHT_OFFSET+b("Vector").getElementDimensions(this.rootEl).y;var a=b("BlueBar").getBar();if(a){var c=b("Style").isFixed(a)?"viewport":"document";this.flyoutHeightOffset+=b("Vector").getElementPosition(a,c).y+b("Vector").getElementDimensions(a).y}return this.flyoutHeightOffset},toggle:function(a){var c=this._findFlyout(a);if(!c)return;this.subscribe("init",function(){b("Toggler").toggle(a)})},show:function(a){this.subscribe("init",function(){b("Toggler").show(a)})},showNub:function(a){b("CSS").show(a)},hide:function(a){this.subscribe("init",function(){var c=b("Toggler").getInstance(a);b("DOM").contains(a,c.getActive())&&c.hide()})},hideNub:function(a){b("CSS").hide(a),this.hide(a)},setUseMaxHeight:function(a,c){b("CSS").conditionClass(a,"maxHeight",c!==!1),this._resizeNubFlyout(a)},_resizeNubFlyout:function(a){var c=this._findFlyout(a);if(!c||b("CSS").hasClass(a,"placeholder")||!(b("CSS").hasClass(a,"openToggler")||b("CSS").hasClass(a,"opened")))return;var d=b("DOM").find(c,"div.fbNubFlyoutOuter"),e=b("DOM").find(d,"div.fbNubFlyoutInner"),f=b("DOM").find(e,"div.fbNubFlyoutBody"),g=b("CSS").hasClass(a,"canBeCompactTab"),h=b("Scroll").getTop(f),i=f.offsetHeight;b("Style").set(f,"height","auto");var j=b("Vector").getElementDimensions(c),k=b("Vector").getElementDimensions(f),l=this.getMaxFlyoutHeight(a);b("Style").set(c,"max-height",l+"px");b("Style").set(d,"max-height",l+"px");j=b("Vector").getElementDimensions(c);d=b("Vector").getElementDimensions(e);l=d.y-k.y;e=j.y-l;d=parseInt(f.style.height||f.clientHeight,10);d=e!==d;j.y>l&&d&&!g&&b("Style").set(f,"height",e+"px");b("CSS").removeClass(c,"swapDirection");var m=b("Vector").getElementPosition(c).x;b("CSS").conditionClass(c,"swapDirection",function(){if(m<0)return!0;return!j||!this.viewportDimensions?!1:m+j.x>this.viewportDimensions.x}.bind(this)());d&&h+i>=k.y?b("Scroll").setTop(f,f.scrollHeight):b("Scroll").setTop(f,h);this.notifyNub(a,"resize")},getMaxFlyoutHeight:function(a){a=this._findFlyout(a);var c=b("Vector").getElementPosition(a,"viewport");a=b("Vector").getElementDimensions(a);if(!this.viewportDimensions||!c)return 0;c=Math.max(this.MIN_HEIGHT,this.viewportDimensions.y-this.getFlyoutHeightOffset())-(this.viewportDimensions.y-c.y-a.y);return Math.max(c,0)},resizeAllFlyouts:function(){var a=this._getAllNubs(),b=a.length;while(b--)this._resizeNubFlyout(a[b])},_getAllNubs:function(){if(!this.rootEl)return[];var a=b("DOM").scry(this.rootEl,"div._50-v.openToggler:not(._s0f)");return a.concat(b("DOM").scry(this.rootEl,"div._50-v.opened:not(._s0f)"))},_onKeyPress:function(a){var c=a.getTarget();c=b("Parent").byClass(c,"fbNub");b("isKeyActivation")(a)&&c&&this.toggle(c)},_onClick:function(a){a=a.getTarget();var c=b("Parent").byClass(a,"fbNub");if(c){b("Parent").byClass(a,"adsNubFlyoutCloseButton")&&this.hide(c);if(b("Parent").byClass(a,"fbNubFlyoutTitlebar")){var d=b("Parent").byTag(a,"a");a=a.nodeName=="INPUT"&&a.getAttribute("type")=="submit";if(!d&&!a){this.hide(c);return!1}}this.notifyNub(c,"click")}},_onWindowResize:function(a){this.calculateViewportDimensions(),this.resizeAllFlyouts()},_findFlyout:function(a){return b("CSS").hasClass(a,"fbNubFlyout")?a:b("DOM").scry(a,"div.fbNubFlyout")[0]||null},registerNubController:function(a,c){b("DataStore").set(a,"dock:nub:controller",c),c.subscribe("nub/button/content-changed",b("shield")(this.inform,this,"resize",a)),c.subscribe("nub/flyout/content-changed",b("shield")(this._resizeNubFlyout,this,a))},unregisterNubController:function(a){b("DataStore").remove(a,"dock:nub:controller")},notifyNub:function(a,c,d){a=b("DataStore").get(a,"dock:nub:controller");a&&a.inform(c,d)}});e.exports=a.Dock||c}),null);
__d("ErrorMessageConsole",["requireCond","ErrorPubSub","cr:1458113"],(function(a,b,c,d,e,f){"use strict";var g;function a(a){if(a.type!=="fatal")return;b("cr:1458113")&&b("cr:1458113").showErrorDialog(a)}var h=!1;function c(){if(h)return;h=!0;(g||(g=b("ErrorPubSub"))).addListener(i)}function i(a){if(a.type!=="fatal")return;b("cr:1458113")&&b("cr:1458113").showErrorDialog(a)}d={addError:a,listenForUncaughtErrors:c};e.exports=d}),null);
__d("FileInput",["cx","ArbiterMixin","DOM","DOMClone","Event","Focus","Keys","UserAgent_DEPRECATED","mixin"],(function(a,b,c,d,e,f,g){var h=b("UserAgent_DEPRECATED").ie();a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(c,d,e){var f;f=a.call(this)||this;f.container=c;f.control=d;c=b("DOM").scry(f.container,"a")[0];c&&c.removeAttribute("href");d=b("DOM").create("div",{className:"_3jk"},e);b("DOM").appendContent(f.control,d);f._boundHandleChange=f._handleChange.bind(babelHelpers.assertThisInitialized(f));h&&(f._boundHandleIEKeyDown=f._handleIEKeyDown.bind(babelHelpers.assertThisInitialized(f)));f._setInputElement(e);return f}var d=c.prototype;d.getValue=function(){return this.input.value};d.getInput=function(){return this.input};d.getContainer=function(){return this.container};d.getControl=function(){return this.control};d.clear=function(){this.input.value="";if(this.input.value!==""){var a=b("DOMClone").deepClone(this.input);b("DOM").replace(this.input,a);this._setInputElement(a)}};d.destroy=function(){this._focus.remove(),this._focus=null,this._listener.remove(),this._listener=null,h&&(this._IEKeyDownListener.remove(),this._IEKeyDownListener=null),this.container=null,this.control=null,this.input=null};d._setInputElement=function(a){this.input=a,this._focus&&this._focus.remove(),this._focus=b("Focus").relocate(a,this.control),this._listener&&this._listener.remove(),this._listener=b("Event").listen(a,"change",this._boundHandleChange),h&&(this._IEKeyDownListener&&this._IEKeyDownListener.remove(),this._IEKeyDownListener=b("Event").listen(a,"keydown",this._boundHandleIEKeyDown))};d._handleChange=function(a){this.inform("change",a);if(this.input){var c=this.input.form;c&&h<9&&b("Event").fire(c,"change",a)}};d._handleIEKeyDown=function(a){if(a.keyCode===b("Keys").RETURN){a.preventDefault();a=document.createEvent("MouseEvents");a.initEvent("click",!0,!0);this.input.dispatchEvent(a)}};return c}(b("mixin")(b("ArbiterMixin")));e.exports=a}),null);
__d("KeyboardShortcutToken",["KeyEventController"],(function(a,b,c,d,e,f){a=function(){"use strict";function a(a,b,c){this.$1=!0,this.key=a,this.handler=b,this.filter=c.filter,this.persistOnTransition=c.persistOnTransition,this.shortcutInfo=c.shortcutInfo,this.register()}var c=a.prototype;c.register=function(){var a=this;if(!this.$1)return;this.token=b("KeyEventController").registerKey(this.key,this.handler,this.filter,!1,function(){return a.persistOnTransition})};c.remove=function(){this.token.remove(),this.$1=!1};c.unregister=function(){this.token.remove()};c.isActive=function(){return this.$1};c.getKey=function(){return this.key};c.getShortcutInfo=function(){return this.shortcutInfo};return a}();e.exports=a}),null);
__d("translateKey",["fbt","invariant"],(function(a,b,c,d,e,f,g,h){var i={alt:g._("Alt"),enter:g._("Enter"),"delete":g._("Delete"),shift:g._("Shift"),opt:g._("\u30aa\u30d7\u30b7\u30e7\u30f3"),ctrl:g._("Ctrl"),cmd:g._("Command"),esc:g._("Esc"),tab:g._("Tab"),up:g._("\u4e0a"),down:g._("\u4e0b"),right:g._("\u53f3"),left:g._("\u5de6"),page_up:g._("Page Up"),page_down:g._("Page Down"),home:g._("Home"),end:g._("End")};function a(a){if(Object.prototype.hasOwnProperty.call(i,a))return i[a];a.length===1||h(0,2507);return a}e.exports=a}),null);
__d("KeyboardShortcuts",["csx","cx","fbt","Arbiter","BasicFBNux","CSS","Dock","KeyboardShortcutToken","KeyEventController","Layer","ModalLayer","NavigationMessage","PageTransitions","Run","emptyFunction","translateKey"],(function(a,b,c,d,e,f,g,h,i){a={_arbiter:null,_hasTriggeredShortcut:!1,_flyoutNub:null,_nubNux:null,_nubNuxID:null,_tokenLayers:[],showInfo:b("emptyFunction"),register:function(a,c,d){var e=this,f=d?d:{};d=function(a,b){c.call(e,a,b),f.allowDefault||a.prevent(),e._hasTriggeredShortcut||e._handleFirstShortcutTriggered()};var g=f.baseFilters||[b("KeyEventController").defaultFilter],h=function(a,b){for(var c=g,d=Array.isArray(c),e=0,c=d?c:c[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(d){if(e>=c.length)break;h=c[e++]}else{e=c.next();if(e.done)break;h=e.value}h=h;if(!h(a,b))return!1}return!f.filter||f.filter(a,b)};a=new(b("KeyboardShortcutToken"))(a,d,{filter:h,persistOnTransition:f.persistOnTransition,shortcutInfo:f.shortcutInfo});this._tokenLayers.length||this._tokenLayers.push([]);this._tokenLayers[this._tokenLayers.length-1].push(a);this.inform("token_added");return a},init:function(){var a=this;this._cleanup=this._cleanup.bind(this);b("Run").onLeave(this._cleanup);b("Arbiter").subscribe(b("NavigationMessage").NAVIGATION_BEGIN,this._cleanup);b("Layer").subscribe("show",function(c,d){d.hasBehavior(b("ModalLayer"))&&a.pushLayer()});b("Layer").subscribe("hide",function(c,d){d.hasBehavior(b("ModalLayer"))&&a.popLayer()});this.register("SLASH",function(){var c=a._getFlyoutNub();c&&b("Dock").toggle(c)},{filter:function(a,b){return a.getModifiers().shift},persistOnTransition:!0,shortcutInfo:{displayKeys:[b("translateKey")("?")],description:i._("\u3053\u306e\u30d8\u30eb\u30d7\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u8868\u793a\u3057\u307e\u3059")}})},_cleanup:function(){var a=this,c=[];this._tokenLayers.forEach(function(a){var b=[];a.forEach(function(a){a.isActive()&&b.push(a)});b.length&&c.push(b)});this._tokenLayers=c;this.inform("cleanup");b("PageTransitions").registerCompletionCallback(function(){b("Run").onLeave(a._cleanup),b("Arbiter").subscribe(b("NavigationMessage").NAVIGATION_BEGIN,a._cleanup)})},pushLayer:function(){var a=this._getTopLayer();a&&a.forEach(function(a){a.unregister()});this._tokenLayers.push([])},popLayer:function(){if(this._tokenLayers.length===0)return;var a=this._tokenLayers.pop();a.forEach(function(a){a.remove()});a=this._getTopLayer();a&&a.forEach(function(a){a.register()})},_getTopLayer:function(){return!this._tokenLayers.length?null:this._tokenLayers[this._tokenLayers.length-1]},_getBaseLayer:function(){return!this._tokenLayers.length?null:this._tokenLayers[0]},getShortcutInfos:function(){var a=[],b=this._getBaseLayer();b&&b.forEach(function(b){var c=b.getShortcutInfo();b.isActive()&&c!=null&&a.push(c)});return a},_getArbiterInstance:function(){this._arbiter||(this._arbiter=new(b("Arbiter"))());return this._arbiter},inform:function(a,b,c){return this._getArbiterInstance().inform(a,b,c)},subscribe:function(a,b,c){return this._getArbiterInstance().subscribe(a,b,c)},unsubscribe:function(a){this._getArbiterInstance().unsubscribe(a)},_handleFirstShortcutTriggered:function(){this._hasTriggeredShortcut=!0;var a=this._getFlyoutNub();a&&(b("CSS").removeClass(a,"_ur5"),this._nubNux&&this._nubNuxID&&(this._nubNux.show(),b("BasicFBNux").onView(this._nubNuxID),this._nubNux.subscribe("hide",b("BasicFBNux").onDismiss.bind(this,this._nubNuxID))))},_getFlyoutNub:function(){this._flyoutNub||(this._flyoutNub=document.querySelector("#pagelet_dock ._rz3"));return this._flyoutNub},showShortcutFlyout:function(){this._hasTriggeredShortcut||this._handleFirstShortcutTriggered();var a=this._getFlyoutNub();a&&b("Dock").show(a)},hasFlyoutToShow:function(){return this._getFlyoutNub()!=null&&this.getShortcutInfos().length>0},initNUXEvent:function(a,b){this._nubNux=a,this._nubNuxID=b}};a.init();e.exports=a}),null);
__d("PopoverMenu",["ArbiterMixin","ARIA","BehaviorsMixin","Event","Focus","Keys","KeyStatus","SubscriptionsHandler","VirtualCursorStatus","mixin","setTimeout"],(function(a,b,c,d,e,f){a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(c,d,e,f){var g;g=a.call(this)||this;g._popover=c;g._triggerElem=d;g._getInitialMenu=typeof e!=="function"?function(){return e}:e;g._subscriptions=new(b("SubscriptionsHandler"))();g._subscriptions.addSubscriptions(c.subscribe("init",g._onLayerInit.bind(babelHelpers.assertThisInitialized(g))),c.subscribe("show",g._onPopoverShow.bind(babelHelpers.assertThisInitialized(g))),c.subscribe("hide",g._onPopoverHide.bind(babelHelpers.assertThisInitialized(g))),b("Event").listen(g._triggerElem,"keydown",g._handleKeyEventOnTrigger.bind(babelHelpers.assertThisInitialized(g))),b("VirtualCursorStatus").add(g._triggerElem,g._checkInitialFocus.bind(babelHelpers.assertThisInitialized(g))));f&&g.enableBehaviors(f);return g}var d=c.prototype;d.getContentRoot=function(){return this._popover.getContentRoot()};d.setMenu=function(a){this._menu&&this._menu!==a&&this._menu.destroy();this._menu=a;var c=a.getRoot();this._popover.setLayerContent(c);a.subscribe("done",this._onMenuDone.bind(this));this._popoverShown&&this._menu.onShow();b("ARIA").controls(this._triggerElem,c);this.inform("setMenu",null,"persistent")};d.setInitialFocus=function(a,b){b&&a.focusAnItem()};d.getPopover=function(){return this._popover};d.getTriggerElem=function(){return this._triggerElem};d.getInitialMenu=function(){return this._getInitialMenu()};d.getMenu=function(){return this._menu};d._onLayerInit=function(){this._menu||this.setMenu(this._getInitialMenu()),this._popover.getLayer().subscribe("key",this._handleKeyEvent.bind(this))};d._onPopoverShow=function(){this._menu&&this._menu.onShow(),this._checkInitialFocus(),this._popoverShown=!0};d._checkInitialFocus=function(){var a=b("KeyStatus").isKeyDown()||b("VirtualCursorStatus").isVirtualCursorTriggered();this._menu&&this.setInitialFocus(this._menu,a)};d._onPopoverHide=function(){this._menu&&this._menu.onHide(),this._popoverShown=!1};d._handleKeyEvent=function(a,c){if(c.target===this._triggerElem)return;a=b("Event").getKeyCode(c);if(a===b("Keys").TAB){this._popover.hideLayer();b("Focus").set(this._triggerElem);return}if(c.getModifiers().any)return;switch(a){case b("Keys").RETURN:this.getMenu().getFocusedItem()||this.inform("returnWithoutFocusedItem");return;default:if(a===b("Keys").SPACE&&c.target.type==="file")return;this._menu.handleKeydown(a,c)===!1&&(this._menu.blur(),this._menu.handleKeydown(a,c));break}c.prevent()};d._handleKeyEventOnTrigger=function(a){if(this._isTypeaheadActivationDisabled)return;var c=b("Event").getKeyCode(a),d=String.fromCharCode(c).toLowerCase();/^\w$/.test(d)&&(this._popover.showLayer(),this._menu.blur(),this._menu.handleKeydown(c,a)===!1&&(this._popover.hideLayer(),b("Focus").set(this._triggerElem)))};d.disableTypeaheadActivation=function(){this._isTypeaheadActivationDisabled=!0};d.enableTypeaheadActivation=function(){this._isTypeaheadActivationDisabled=!1};d._onMenuDone=function(a){var c=this;b("setTimeout")(function(){c._popover.hideLayer(),b("Focus").set(c._triggerElem)},0)};d.enable=function(){this._popover.enable()};d.disable=function(){this._popover.disable()};d.destroy=function(){this._subscriptions.release(),this._popover.destroy(),this._getInitialMenu().destroy(),this._menu&&this._menu.destroy()};return c}(b("mixin")(b("ArbiterMixin"),b("BehaviorsMixin")));Object.assign(a.prototype,{_popoverShown:!1});e.exports=a}),null);
__d("ScrollableArea",["requireDeferred","ArbiterMixin","BrowserSupport","CSS","CSSFade","DataStore","Deferred","DOM","DOMScroll","Event","FocusEvent","Run","Scroll","SimpleDrag","Style","SubscriptionsHandler","TimeSlice","UserAgent_DEPRECATED","Vector","clearTimeout","createCancelableFunction","emptyFunction","firstx","getScrollableAreaContainingNode","mixin","promiseDone","queryThenMutateDOM","setTimeoutAcrossTransitions","throttle"],(function(a,b,c,d,e,f){var g=b("requireDeferred")("Animation"),h=12;a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(c,d){var e;e=a.call(this)||this;e.adjustGripper=function(){var a=function(){b("queryThenMutateDOM")(function(){return e._needsGripper()},function(a){a&&(b("Style").set(e._gripper,"height",e._gripperHeight+"px"),e._slideGripper())}),e._throttledShowGripperAndShadows()};a=b("TimeSlice").guard(a,"ScrollableArea adjustGripper",{propagationType:b("TimeSlice").PropagationType.ORPHAN});a();return babelHelpers.assertThisInitialized(e)};e._computeHeights=function(){e._containerHeight=e._elem.clientHeight,e._contentHeight=e._content.offsetHeight,e._trackHeight=e._track.offsetHeight,e._gripperHeight=Math.max(e._containerHeight/e._contentHeight*e._trackHeight,h)};e._showGripperAndShadows=function(){b("queryThenMutateDOM")(function(){return{needsGripper:e._needsGripper(),top:b("Scroll").getTop(e._wrap)>0,isScrolledToBottom:e.isScrolledToBottom()}},function(a){var c=a.needsGripper,d=a.top;a=a.isScrolledToBottom;b("CSS").conditionShow(e._gripper,c);b("CSS").conditionClass(e._elem,"contentBefore",d);b("CSS").conditionClass(e._elem,"contentAfter",!a)})};e._respondMouseMove=function(){if(!e._mouseOver||e._isFocussed)return;var a=e._options.fade!==!1,c=e._mousePos,d=b("Vector").getElementPosition(e._track).x,f=b("Vector").getElementDimensions(e._track).x;d=Math.abs(d+f/2-c.x);f=b("BrowserSupport").hasPointerEvents()&&d<=10;f&&!e._trackIsHovered?(e._trackIsHovered=!0,b("CSS").addClass(e._elem,"uiScrollableAreaTrackOver"),e.throttledAdjustGripper()):!f&&e._trackIsHovered&&(e._trackIsHovered=!1,b("CSS").removeClass(e._elem,"uiScrollableAreaTrackOver"));a&&(d<25?e.showScrollbar({hideAfterDelay:!1}):!e._options.no_fade_on_hover&&!e._isFocussed&&e.hideScrollbar({hideAfterDelay:!0,shouldFade:!0}))};if(!c)return babelHelpers.assertThisInitialized(e);d=d||{};e._elem=c;e._wrap=b("firstx")(b("DOM").scry(c,"div.uiScrollableAreaWrap"));e._body=b("firstx")(b("DOM").scry(e._wrap,"div.uiScrollableAreaBody"));e._content=b("firstx")(b("DOM").scry(e._body,"div.uiScrollableAreaContent"));e._track=b("firstx")(b("DOM").scry(c,"div.uiScrollableAreaTrack"));e._trackIsHovered=!1;e._isFocussed=!1;e._gripper=b("firstx")(b("DOM").scry(e._track,"div.uiScrollableAreaGripper"));e._options=d;e._throttledComputeHeights=b("throttle").withBlocking(e._computeHeights,250,babelHelpers.assertThisInitialized(e));e.throttledAdjustGripper=b("throttle").withBlocking(e.adjustGripper,250,babelHelpers.assertThisInitialized(e));e.throttledAdjustGripper=b("TimeSlice").guard(e.throttledAdjustGripper,"ScrollableArea throttledAdjustGripper",{propagationType:b("TimeSlice").PropagationType.ORPHAN});e._throttledShowGripperAndShadows=b("throttle").withBlocking(e._showGripperAndShadows,250,babelHelpers.assertThisInitialized(e));e._throttledRespondMouseMove=b("throttle")(e._respondMouseMove,250,babelHelpers.assertThisInitialized(e));b("setTimeoutAcrossTransitions")(e.adjustGripper.bind(babelHelpers.assertThisInitialized(e)),0);e._listeners=new(b("SubscriptionsHandler"))();e._listeners.addSubscriptions(b("Event").listen(e._wrap,"scroll",e._handleScroll.bind(babelHelpers.assertThisInitialized(e))),b("Event").listen(c,"mousemove",e._handleMouseMove.bind(babelHelpers.assertThisInitialized(e))),b("Event").listen(e._track,"click",e._handleClickOnTrack.bind(babelHelpers.assertThisInitialized(e))));b("BrowserSupport").hasPointerEvents()&&e._listeners.addSubscriptions(b("Event").listen(c,"mousedown",e._handleClickOnTrack.bind(babelHelpers.assertThisInitialized(e))));if(d.fade!==!1){var f;(f=e._listeners).addSubscriptions.apply(f,[b("Event").listen(c,"mouseenter",e._handleMouseEnter.bind(babelHelpers.assertThisInitialized(e))),b("Event").listen(c,"mouseleave",e._handleMouseLeave.bind(babelHelpers.assertThisInitialized(e)))].concat(e._attachFocusListeners(e._wrap)))}else b("BrowserSupport").hasPointerEvents()&&e._listeners.addSubscriptions(b("Event").listen(c,"mouseleave",function(){e._isFocussed||(e._trackIsHovered=!1,b("CSS").removeClass(c,"uiScrollableAreaTrackOver"))}));(b("UserAgent_DEPRECATED").webkit()||b("UserAgent_DEPRECATED").chrome())&&e._listeners.addSubscriptions(b("Event").listen(c,"mousedown",function(){var a=b("Event").listen(window,"mouseup",function(){b("Scroll").getLeft(c)&&b("Scroll").setLeft(c,0),a.remove()})}));e._drag=e.initDrag();b("DataStore").set(e._elem,"ScrollableArea",babelHelpers.assertThisInitialized(e));d.persistent||(e._destroy=b("createCancelableFunction")(e._destroy.bind(babelHelpers.assertThisInitialized(e))),b("Run").onLeave(e._destroy));d.shadow!==!1&&b("CSS").addClass(e._elem,"uiScrollableAreaWithShadow");return e}var d=c.prototype;d.getContentHeight=function(){return this._contentHeight};d.getElement=function(){return this._elem};d.initDrag=function(){var a=b("BrowserSupport").hasPointerEvents(),c=new(b("SimpleDrag"))(a?this._elem:this._gripper);c.subscribe("start",function(d,e){if(!(e.which&&e.which===1||e.button&&e.button===1))return!1;d=b("Vector").getEventPosition(e,"viewport");if(a){var f=this._gripper.getBoundingClientRect();if(d.x<f.left||d.x>f.right||d.y<f.top||d.y>f.bottom)return!1}e.stopPropagation();this.inform("grip_start");var g=d.y,h=this._gripper.offsetTop;b("CSS").addClass(this._elem,"uiScrollableAreaDragging");var i=c.subscribe("update",function(a,c){a=b("Vector").getEventPosition(c,"viewport").y-g;this._throttledComputeHeights();c=this._contentHeight-this._containerHeight;a=h+a;var d=this._trackHeight-this._gripperHeight;a=Math.max(Math.min(a,d),0);a=a/d*c;b("Scroll").setTop(this._wrap,a)}.bind(this)),j=c.subscribe("end",function(){c.unsubscribe(i),c.unsubscribe(j),b("CSS").removeClass(this._elem,"uiScrollableAreaDragging"),this.inform("grip_end")}.bind(this));return void 0}.bind(this));return c};d._attachFocusListeners=function(a){var c=this,d;return[b("FocusEvent").listen(a,function(a){d&&(d.reject(),d=null),a?(d=new(b("Deferred"))(),b("promiseDone")(d.getPromise(),function(){c._isFocussed=!0,c._trackIsHovered=!0,b("queryThenMutateDOM")(null,function(){b("CSS").addClass(c._elem,"uiScrollableAreaTrackOver")}),c.showScrollbar({hideAfterDelay:!1}),d=null},function(){d=null})):(c._isFocussed=!1,c._mouseOver?c._respondMouseMove():(b("queryThenMutateDOM")(null,function(){b("CSS").removeClass(c._elem,"uiScrollableAreaTrackOver")}),c.hideScrollbar({hideAfterDelay:!1,shouldFade:!1})))}),b("Event").listen(document.documentElement,"keyup",function(a){d&&d.resolve()})]};d._needsGripper=function(){this._throttledComputeHeights();return this._gripperHeight<this._trackHeight};d._slideGripper=function(){var a=this;b("queryThenMutateDOM")(function(){return b("Scroll").getTop(a._wrap)/(a._contentHeight-a._containerHeight)*(a._trackHeight-a._gripperHeight)},function(c){b("Style").set(a._gripper,"top",c+"px")})};d.destroy=function(){this._destroy(),this._destroy.cancel&&this._destroy.cancel()};d._destroy=function(){this._listeners&&this._listeners.release(),this._elem&&b("DataStore").remove(this._elem,"ScrollableArea"),this._drag&&this._drag.destroy()};d._handleClickOnTrack=function(a){var c=b("Vector").getEventPosition(a,"viewport"),d=this._gripper.getBoundingClientRect();c.x<d.right&&c.x>d.left&&(c.y<d.top?this.setScrollTop(this.getScrollTop()-this._elem.clientHeight):c.y>d.bottom&&this.setScrollTop(this.getScrollTop()+this._elem.clientHeight),a.kill())};d._handleMouseMove=function(a){var c=this._options.fade!==!1;(b("BrowserSupport").hasPointerEvents()||c)&&(this._mousePos=b("Vector").getEventPosition(a),this._throttledRespondMouseMove())};d._handleScroll=function(a){this._needsGripper()&&this._slideGripper(),this.throttledAdjustGripper(),this._options.fade!==!1&&!this._isFocussed&&this.showScrollbar({hideAfterDelay:!0}),this.inform("scroll")};d._handleMouseLeave=function(a){this._mouseOver=!1,this._mousePos=b("Vector").getEventPosition(a),this._isFocussed||this.hideScrollbar({hideAfterDelay:!0,shouldFade:!0})};d._handleMouseEnter=function(a){this._mouseOver=!0,this._mousePos=b("Vector").getEventPosition(a),this._isFocussed||this.showScrollbar({hideAfterDelay:!0})};d.hideScrollbar=function(a){var c=this,d=a.hideAfterDelay,e=a.shouldFade;if(this._hideTimeout||!this._scrollbarVisible)return this;var f=function(){c._scrollbarVisible=!1,b("CSSFade").hide(c._track,{simple:!e,invisible:b("CSS").hasClass(c._track,"invisible_elem")})};d?this._hideTimeout=b("setTimeoutAcrossTransitions")(function(){c._hideTimeout=null,f()},750):f();return this};d.pageDown=function(a,b){this._scrollPage(1,a,b)};d.pageUp=function(a,b){this._scrollPage(-1,a,b)};d._scrollPage=function(a,b,c){a=a*this._containerHeight;var d=this.getScrollHeight()-this._containerHeight;d=Math.max(0,Math.min(d,this.getScrollTop()+a));this.setScrollTop(d,b,c)};d.resize=function(){this._body.style.width&&(this._body.style.width="");var a=b("DOMScroll").getScrollbarSize();a>0&&b("Style").set(this._body,"margin-right",-a+"px");return this};d.showScrollbar=function(a){var c=this,d=a.hideAfterDelay;this._hideTimeout&&(b("clearTimeout")(this._hideTimeout),this._hideTimeout=null);if(this._scrollbarVisible)return this;this._scrollbarVisible=!0;b("queryThenMutateDOM")(null,function(){b("CSSFade").show(c._track,{duration:0,invisible:b("CSS").hasClass(c._track,"invisible_elem")}),c.throttledAdjustGripper(),d&&c.hideScrollbar({hideAfterDelay:!0,shouldFade:!c._options.no_fade_on_hover})});return this};d.distanceToBottom=function(){this._computeHeights();var a=Math.round(b("Scroll").getTop(this._wrap));return this._contentHeight-(a+this._containerHeight)};d.isScrolledToBottom=function(){return this.distanceToBottom()<=0};d.isScrolledToTop=function(){return b("Scroll").getTop(this._wrap)===0};d.scrollToBottom=function(a,b){this.setScrollTop(this._wrap.scrollHeight,a,b)};d.scrollToTop=function(a,b){this.setScrollTop(0,a,b)};d.scrollIntoView=function(a,c,d){var e=this._wrap.clientHeight,f=a.offsetHeight,g=b("Scroll").getTop(this._wrap),h=g+e;a=this.getScrollOffsetForElement(a);var i=a+f;if(a<g||e<f)return this.setScrollTop(a,c,{callback:d});else if(i>h)return this.setScrollTop(g+(i-h),c,{callback:d});d&&d();return b("emptyFunction")};d.getScrollOffsetForElement=function(a){var b=0;while(a!=null&&a!==this._wrap)b+=a.offsetTop,a=a.offsetParent;return b};d.scrollElemToTop=function(a,b,c){this.setScrollTop(a.offsetTop,b,{callback:c})};d.poke=function(){var a,c=(a=b("Scroll")).getTop(this._wrap);a.setTop(this._wrap,a.getTop(this._wrap)+1);a.setTop(this._wrap,a.getTop(this._wrap)-1);a.setTop(this._wrap,c);if(this._isFocussed)return this;else return this.showScrollbar({hideAfterDelay:!1})};d.getClientHeight=function(){return this._wrap.clientHeight};d.getScrollTop=function(){return b("Scroll").getTop(this._wrap)};d.getScrollHeight=function(){return this._wrap.scrollHeight};d.setScrollTop=function(a,b,c){c===void 0&&(c={});var d;if(b!==!1){b=g.getModuleIfRequired();b!=null?d=this._animatedSetScrollTop(b,a,c):this._simpleSetScrollTop(a,c)}else this._simpleSetScrollTop(a,c);return function(){d&&d.stop(),d=null}};d._simpleSetScrollTop=function(a,c){b("Scroll").setTop(this._wrap,a),c.callback&&c.callback()};d._animatedSetScrollTop=function(a,b,c){this._scrollTopAnimation&&this._scrollTopAnimation.stop();var d=c.duration||250,e=c.ease||a.ease.end;this._scrollTopAnimation=new a(this._wrap).to("scrollTop",b).ease(e).duration(d).ondone(c.callback).go();return this._scrollTopAnimation};c.renderDOM=function(){var a,c=(a=b("DOM")).create("div",{className:"uiScrollableAreaContent"}),d=a.create("div",{className:"uiScrollableAreaBody"},c),e=a.create("div",{className:"uiScrollableAreaWrap scrollable"},d);a=a.create("div",{className:"uiScrollableArea native"},e);return{root:a,wrap:e,body:d,content:c}};c.fromNative=function(a,d){if(!b("CSS").hasClass(a,"uiScrollableArea")||!b("CSS").hasClass(a,"native"))return void 0;d=d||{};b("CSS").removeClass(a,"native");var e=b("DOM").create("div",{className:"uiScrollableAreaTrack"},b("DOM").create("div",{className:"uiScrollableAreaGripper"}));d.fade!==!1?(b("CSS").addClass(a,"fade"),b("CSS").addClass(e,"hidden_elem")):b("CSS").addClass(a,"nofade");d.tabIndex!==void 0&&d.tabIndex!==null?(b("DOM").setAttributes(e,{tabIndex:d.tabIndex}),b("DOM").prependContent(a,e)):b("DOM").appendContent(a,e);e=new c(a,d);e.resize();return e};c.getInstance=function(a){return b("getScrollableAreaContainingNode")(a)};c.poke=function(a){a=c.getInstance(a);a&&a.poke()};return c}(b("mixin")(b("ArbiterMixin")));e.exports=a}),null);
__d("ContextualLayerHideOnScroll",["Event"],(function(a,b,c,d,e,f){a=function(){"use strict";function a(a){this._layer=a}var c=a.prototype;c.enable=function(){this._subscriptions=[this._layer.subscribe("contextchange",this._handleContextChange.bind(this)),this._layer.subscribe("show",this.attach.bind(this)),this._layer.subscribe("hide",this.detach.bind(this))]};c.disable=function(){while(this._subscriptions.length)this._subscriptions.pop().unsubscribe();this.detach()};c.attach=function(){if(this._listener)return;var a=this._layer.getContextScrollParent();if(a===window)return;this._listener=b("Event").listen(a,"scroll",this._layer.hide.bind(this._layer))};c.detach=function(){this._listener&&this._listener.remove(),this._listener=null};c._handleContextChange=function(){this.detach(),this._layer.isShown()&&this.attach()};return a}();Object.assign(a.prototype,{_subscriptions:[]});e.exports=a}),null);
__d("AbstractSearchSource",["Promise"],(function(a,b,c,d,e,f){a=function(){"use strict";function a(){}var c=a.prototype;c.bootstrap=function(a){var c=this;this.$1||(this.$1=new(b("Promise"))(function(a){c.bootstrapImpl(a)}));return this.$1.then(a)};c.search=function(a,b,c){this.searchImpl(a,b,c)};c.bootstrapImpl=function(a){a()};c.searchImpl=function(a,b,c){throw new Error("Abstract method #searchImpl is not implemented.")};c.clearBootstrappedData=function(){this.$1=null};return a}();e.exports=a}),null);