(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[15],{k5Q5:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("xL1/"),i=n("tqYG"),s={outline:0},r=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},a=Object(o.c)((function(e){var t,n,o=e.semanticColors,a=e.effects,c=e.fonts,u=o.buttonBorder,l=o.disabledBackground,d=o.disabledText,p={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[Object(i.getFocusStyle)(e,{inset:1,highContrastStyle:p,borderColor:"transparent"}),e.fonts.medium,{boxSizing:"border-box",border:"1px solid "+u,userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",padding:"0 16px",borderRadius:a.roundedCorner2,selectors:{":active > *":{position:"relative",left:0,top:0}}}],rootDisabled:[Object(i.getFocusStyle)(e,{inset:1,highContrastStyle:p,borderColor:"transparent"}),{backgroundColor:l,borderColor:l,color:d,cursor:"default",pointerEvents:"none",selectors:{":hover":s,":focus":s}}],iconDisabled:{color:d,selectors:(t={},t[i.HighContrastSelector]={color:"GrayText"},t)},menuIconDisabled:{color:d,selectors:(n={},n[i.HighContrastSelector]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:r(c.mediumPlus.fontSize),menuIcon:r(c.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:i.hiddenContentStyle}}))},odSE:function(e,t,n){"use strict";n.d(t,"a",(function(){return vn}));var o,i=n("mrSG"),s=n("q1tI"),r=n("xL1/"),a=n("i+8s"),c=n("rgVD"),u=n("4qJ4"),l=n("WJ1O"),d=n("elao"),p=n("cwxN"),m=n("GCTM"),h=n("Q9RI"),_=n("mWkG"),g=n("e06V"),b=n("KiHr"),v=n("7Uas"),f=n("ybKx"),y=n("Zpaa"),M=n("rZia"),C=n("DeEv"),I=n("//8a"),x=n("RNC2"),O=n("2+xV"),k=function(e){var t=e.className,n=e.imageProps,o=Object(g.j)(e,g.k),r=e["aria-label"]?{}:{role:"presentation","aria-hidden":!n.alt&&!n["aria-labelledby"]};return s.createElement("div",Object(i.__assign)({},r,o,{className:Object(a.a)(O.a,O.b.root,O.b.image,t)}),s.createElement(x.a,Object(i.__assign)({},n)))},E=0,S=1,j=2,w=3,D=4,P=5,T=6,B=7,N=8,R=9,F=10,H=11,K=12,L=13,A=n("WOvX");!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(o||(o={}));var W=n("LrGI"),U=n("CBcM"),z=n("9h5o"),V=n("DU53"),G=n("pnrE"),q=n("FbcY"),Y=n("WgWP"),Z=n("4PRO"),X=n("3uSm");function Q(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"===typeof e.isChecked?e.isChecked:"boolean"===typeof e.checked?e.checked:null}function J(e){return!(!e.subMenuProps&&!e.items)}function $(e){return!(!e.isDisabled&&!e.disabled)}function ee(e){return null!==Q(e)?"menuitemcheckbox":"menuitem"}var te,ne=n("BDQD"),oe=function(e){function t(t){var n=e.call(this,t)||this;return n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return Object(i.__extends)(t,e),t.prototype._updateComposedComponentRef=function(e){this._composedComponentInstance=e,e?this._hoisted=Object(ne.a)(this,e):this._hoisted&&Object(ne.b)(this,this._hoisted)},t}(s.Component),ie=n("RgyG"),se=n("qKK/");!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(te||(te={}));var re,ae,ce=[479,639,1023,1365,1919,99999999];function ue(){return re||ae||te.large}function le(e){var t,n=((t=function(t){function n(e){var n=t.call(this,e)||this;return n._onResize=function(){var e=de(n.context.window);e!==n.state.responsiveMode&&n.setState({responsiveMode:e})},n._events=new p.a(n),n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:ue()},n}return Object(i.__extends)(n,t),n.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===te.unknown?null:s.createElement(e,Object(i.__assign)({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n}(oe)).contextType=se.a,t);return Object(ie.a)(e,n)}function de(e){var t=te.small;if(e){try{for(;e.innerWidth>ce[t];)t++}catch(n){t=ue()}ae=t}else{if(void 0===re)throw new Error("Content was rendered in a server environment without providing a default responsive mode. Call setResponsiveMode to define what the responsive mode is.");t=re}return t}var pe,me,he=n("0xmZ"),_e=n("zQaE");!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(pe||(pe={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(me||(me={}));var ge,be=n("8lCt"),ve=n("tf66");function fe(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ye=((ge={})[E]=fe(pe.top,pe.left),ge[S]=fe(pe.top),ge[j]=fe(pe.top,pe.right),ge[w]=fe(pe.top,void 0,!0),ge[D]=fe(pe.bottom,pe.left),ge[P]=fe(pe.bottom),ge[T]=fe(pe.bottom,pe.right),ge[B]=fe(pe.bottom,void 0,!0),ge[N]=fe(pe.left,pe.top),ge[R]=fe(pe.left),ge[F]=fe(pe.left,pe.bottom),ge[H]=fe(pe.right,pe.top),ge[K]=fe(pe.right),ge[L]=fe(pe.right,pe.bottom),ge);function Me(e,t){return!(e.topt.bottom)&&(!(e.leftt.right)))}function Ce(e,t){var n=[];return e.topt.bottom&&n.push(pe.bottom),e.leftt.right&&n.push(pe.right),n}function Ie(e,t){return e[pe[t]]}function xe(e,t,n){return e[pe[t]]=n,e}function Oe(e,t){var n=Re(t);return(Ie(e,n.positiveEdge)+Ie(e,n.negativeEdge))/2}function ke(e,t){return e>0?t:-1*t}function Ee(e,t){return ke(e,Ie(t,e))}function Se(e,t,n){return ke(n,Ie(e,n)-Ie(t,n))}function je(e,t,n){var o=Ie(e,t)-n;return e=xe(e,t,n),e=xe(e,-1*t,Ie(e,-1*t)-o)}function we(e,t,n,o){return void 0===o&&(o=0),je(e,n,Ie(t,n)+ke(n,o))}function De(e,t,n){return Ee(n,e)>Ee(n,t)}function Pe(e,t,n,o,i,s,r){void 0===i&&(i=0);var a=o.alignmentEdge,c=o.alignTargetEdge,u={elementRectangle:e,targetEdge:o.targetEdge,alignmentEdge:a};s||r||(u=function(e,t,n,o,i){void 0===i&&(i=0);var s=[pe.left,pe.right,pe.bottom,pe.top];Object(q.a)()&&(s[0]*=-1,s[1]*=-1);for(var r=e,a=o.targetEdge,c=o.alignmentEdge,u=0;u<4;u++){if(De(r,n,a))return{elementRectangle:r,targetEdge:a,alignmentEdge:c};s.splice(s.indexOf(a),1),s.length>0&&(s.indexOf(-1*a)>-1?a*=-1:(c=a,a=s.slice(-1)[0]),r=Ne(e,t,{targetEdge:a,alignmentEdge:c},i))}return{elementRectangle:e,targetEdge:o.targetEdge,alignmentEdge:o.alignmentEdge}}(e,t,n,o,i));var l=Ce(e,n);if(c){if(u.alignmentEdge&&l.indexOf(-1*u.alignmentEdge)>-1){var d=function(e,t,n,o){var i=e.alignmentEdge,s=e.targetEdge,r=-1*i;return{elementRectangle:Ne(e.elementRectangle,t,{targetEdge:s,alignmentEdge:r},n,o),targetEdge:s,alignmentEdge:r}}(u,t,i,r);if(Me(d.elementRectangle,n))return d;u=Te(Ce(d.elementRectangle,n),u,n)}}else u=Te(l,u,n);return u}function Te(e,t,n){for(var o=0,i=e;oMath.abs(Se(e,n,-1*t))?-1*t:t}function He(e){return Math.sqrt(e*e*2)}function Ke(e,t,n){if(void 0===e&&(e=B),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var o=Object(i.__assign)({},ye[e]);return Object(q.a)()?(o.alignmentEdge&&o.alignmentEdge%2===0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==t?ye[t]:o):o}function Le(e,t,n){var o=Oe(t,e),i=Oe(n,e),s=Re(e),r=s.positiveEdge,a=s.negativeEdge;return o<=i?r:a}function Ae(e,t,n,o,i,s,r){var a=Ne(e,t,o,i,r);return Me(a,n)?{elementRectangle:a,targetEdge:o.targetEdge,alignmentEdge:o.alignmentEdge}:Pe(e,t,n,o,i,s,r)}function We(e,t,n){var o=-1*e.targetEdge,s=new ve.a(0,e.elementRectangle.width,0,e.elementRectangle.height),r={},a=Fe(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Re(o).positiveEdge,n);return r[pe[o]]=Ie(t,o),r[pe[a]]=Se(t,s,a),{elementPosition:Object(i.__assign)({},r),closestEdge:Le(e.targetEdge,t,s),targetEdge:o}}function Ue(e,t){var n=t.targetRectangle,o=Re(t.targetEdge),i=o.positiveEdge,s=o.negativeEdge,r=Oe(n,t.targetEdge),a=new ve.a(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),c=new ve.a(0,e,0,e);return De(c=Be(c=je(c,-1*t.targetEdge,-e/2),-1*t.targetEdge,r-Ee(i,t.elementRectangle)),a,i)?De(c,a,s)||(c=we(c,a,s)):c=we(c,a,i),c}function ze(e){var t=e.getBoundingClientRect();return new ve.a(t.left,t.right,t.top,t.bottom)}function Ve(e){return new ve.a(e.left,e.right,e.top,e.bottom)}function Ge(e,t,n,o,i){var s=0,r=ye[t],a=i?-1*r.targetEdge:r.targetEdge;return(s=a===pe.top?Ie(e,r.targetEdge)-o.top-n:a===pe.bottom?o.bottom-Ie(e,r.targetEdge)-n:o.bottom-e.top-n)>0?s:o.height}function qe(e,t,n,o){var s=e.gapSpace?e.gapSpace:0,r=function(e,t){var n;if(t){if(t.preventDefault){var o=t;n=new ve.a(o.clientX,o.clientX,o.clientY,o.clientY)}else if(t.getBoundingClientRect)n=ze(t);else{var i=t,s=i.left||i.x,r=i.top||i.y,a=i.right||s,c=i.bottom||r;n=new ve.a(s,a,r,c)}if(!Me(n,e))for(var u=0,l=Ce(n,e);u0&&n>t&&(e=n-t>1)}this.state.needsVerticalScrollBar!==e&&this.setState({needsVerticalScrollBar:e})}},t.defaultProps={shouldRestoreFocus:!0},t}(s.Component);function Je(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==window&&t.focus&&t.focus()}var $e,et=n("tqYG"),tt=(($e={})[pe.top]=et.AnimationClassNames.slideUpIn10,$e[pe.bottom]=et.AnimationClassNames.slideDownIn10,$e[pe.left]=et.AnimationClassNames.slideLeftIn10,$e[pe.right]=et.AnimationClassNames.slideRightIn10,$e),nt=Object(z.a)({disableCaching:!0}),ot=0,it=0,st={opacity:0,filter:"opacity(0)",pointerEvents:"none"},rt=["role","aria-roledescription"],at=function(e){function t(t){var n=e.call(this,t)||this;return n._hostElement=s.createRef(),n._calloutElement=s.createRef(),n._hasListeners=!1,n._disposables=[],n.dismiss=function(e){var t=n.props.onDismiss;t&&t(e)},n._dismissOnScroll=function(e){var t=n.props,o=t.preventDismissOnEvent,i=t.preventDismissOnScroll;n.state.positions&&(o&&!o(e)||!o&&!i)&&n._dismissOnClickOrScroll(e)},n._dismissOnResize=function(e){var t=n.props,o=t.preventDismissOnEvent,i=t.preventDismissOnResize;(o&&!o(e)||!o&&!i)&&n.dismiss(e)},n._dismissOnLostFocus=function(e){var t=n.props,o=t.preventDismissOnEvent,i=t.preventDismissOnLostFocus;(o&&!o(e)||!o&&!i)&&n._dismissOnClickOrScroll(e)},n._setInitialFocus=function(){n.props.setInitialFocus&&!n._didSetInitialFocus&&n.state.positions&&n._calloutElement.current&&(n._didSetInitialFocus=!0,n._async.requestAnimationFrame((function(){return Object(Y.c)(n._calloutElement.current)}),n._calloutElement.current))},n._onComponentDidMount=function(){n._addListeners(),n.props.onLayerMounted&&n.props.onLayerMounted(),n._updateAsyncPosition(),n._setHeightOffsetEveryFrame()},n._dismissOnTargetWindowBlur=function(e){var t=n.props,o=t.preventDismissOnEvent,i=t.preventDismissOnLostFocus;t.shouldDismissOnWindowFocus&&((!o||o(e))&&(o||i)||n._targetWindow.document.hasFocus()||null!==e.relatedTarget||n.dismiss(e))},n._mouseDownOnPopup=function(){n._isMouseDownOnPopup=!0},n._mouseUpOnPopup=function(){n._isMouseDownOnPopup=!1},n._async=new d.a(n),n._didSetInitialFocus=!1,n.state={positions:void 0,slideDirectionalClassName:void 0,calloutElementRect:void 0,heightOffset:0},n._positionAttempts=0,n}return Object(i.__extends)(t,e),t.prototype.componentDidUpdate=function(){this.props.hidden?this._hasListeners&&this._removeListeners():(this._setInitialFocus(),this._hasListeners||this._addListeners(),this._updateAsyncPosition())},t.prototype.shouldComponentUpdate=function(e,t){return!(!e.shouldUpdateWhenHidden&&this.props.hidden&&e.hidden)&&(!Object(b.e)(this.props,e)||!Object(b.e)(this.state,t))},t.prototype.UNSAFE_componentWillMount=function(){this._setTargetWindowAndElement(this._getTarget())},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._disposables.forEach((function(e){return e()}))},t.prototype.UNSAFE_componentWillUpdate=function(e){var t=this._getTarget(e);(t!==this._getTarget()||"string"===typeof t||t instanceof String)&&!this._blockResetHeight&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t)),e.gapSpace===this.props.gapSpace&&this.props.beakWidth===e.beakWidth||(this._maxHeight=void 0),e.finalHeight!==this.props.finalHeight&&this._setHeightOffsetEveryFrame(),this._didPositionPropsChange(e,this.props)&&(this._maxHeight=void 0,this._setTargetWindowAndElement(t),this.setState({positions:void 0}),this._didSetInitialFocus=!1,this._bounds=void 0),this._blockResetHeight=!1},t.prototype.componentDidMount=function(){this.props.hidden||this._onComponentDidMount()},t.prototype.render=function(){if(!this._targetWindow)return null;var e=this.props.target,t=this.props,n=t.styles,o=t.style,r=t.ariaLabel,c=t.ariaDescribedBy,u=t.ariaLabelledBy,l=t.className,d=t.isBeakVisible,p=t.children,m=t.beakWidth,h=t.calloutWidth,_=t.calloutMaxWidth,b=t.calloutMinWidth,v=t.finalHeight,f=t.hideOverflow,y=void 0===f?!!v:f,M=t.backgroundColor,C=t.calloutMaxHeight,I=t.onScroll,x=t.shouldRestoreFocus,O=void 0===x||x;e=this._getTarget();var k=this.state.positions,E=this._getMaxHeight()?this._getMaxHeight()+this.state.heightOffset:void 0,S=C&&E&&C0&&(this._positionAttempts=0,this.props.onPositioned&&this.props.onPositioned(this.state.positions))}},t.prototype._getBounds=function(){if(!this._bounds){var e=this.props.bounds,t="function"===typeof e?e(this.props.target,this._targetWindow):e;t||(n=this._target,o=this._targetWindow,t={top:(t=function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var o=0,i=0;if(null!==e&&e.getBoundingClientRect){var s=e.getBoundingClientRect();o=(s.left+s.right)/2,i=(s.top+s.bottom)/2}else null!==e&&(o=e.left||e.x,i=e.top||e.y);for(var r={top:0,left:0,right:0,bottom:0,width:0,height:0},a=0,c=n;a=o&&i&&u.top<=i&&u.bottom>=i&&(r={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return r}(n,o)).top+this.props.minPagePadding,left:t.left+this.props.minPagePadding,right:t.right-this.props.minPagePadding,bottom:t.bottom-this.props.minPagePadding,width:t.width-2*this.props.minPagePadding,height:t.height-2*this.props.minPagePadding}),this._bounds=t}var n,o;return this._bounds},t.prototype._getMaxHeight=function(){var e=this;if(!this._maxHeight)if(this.props.directionalHintFixed&&this._target){var t=this.props.isBeakVisible?this.props.beakWidth:0,n=(this.props.gapSpace?this.props.gapSpace:0)+t;this._async.requestAnimationFrame((function(){e._target&&(e._maxHeight=function(e,t,n,o,i){void 0===n&&(n=0);var s=e,r=e,a=e,c=o?Ve(o):new ve.a(0,window.innerWidth-Object(be.g)(),0,window.innerHeight),u=a.left||a.x,l=a.top||a.y,d=a.right||u,p=a.bottom||l;return Ge(s.stopPropagation?new ve.a(s.clientX,s.clientX,s.clientY,s.clientY):void 0!==u&&void 0!==l?new ve.a(u,d,l,p):ze(r),t,n,c,i)}(e._target,e.props.directionalHint,n,e._getBounds(),e.props.coverTarget),e._blockResetHeight=!0,e.forceUpdate())}),this._target)}else this._maxHeight=this._getBounds().height;return this._maxHeight},t.prototype._arePositionsEqual=function(e,t){return this._comparePositions(e.elementPosition,t.elementPosition)&&this._comparePositions(e.beakPosition.elementPosition,t.beakPosition.elementPosition)},t.prototype._comparePositions=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var o=e[n],i=t[n];if(void 0===o||void 0===i)return!1;if(o.toFixed(2)!==i.toFixed(2))return!1}return!0},t.prototype._setTargetWindowAndElement=function(e){var t=this._calloutElement.current;if(e)if("string"===typeof e){var n=Object(Z.a)(t);this._target=n?n.querySelector(e):null,this._targetWindow=Object(X.a)(t)}else if(e.stopPropagation)this._targetWindow=Object(X.a)(e.target),this._target=e;else if(e.getBoundingClientRect){var o=e;this._targetWindow=Object(X.a)(o),this._target=o}else void 0!==e.current?(this._target=e.current,this._targetWindow=Object(X.a)(this._target)):(this._targetWindow=Object(X.a)(t),this._target=e);else this._targetWindow=Object(X.a)(t)},t.prototype._setHeightOffsetEveryFrame=function(){var e=this;this._calloutElement.current&&this.props.finalHeight&&(this._setHeightOffsetTimer=this._async.requestAnimationFrame((function(){var t=e._calloutElement.current&&e._calloutElement.current.lastChild;if(t){var n=t.scrollHeight-t.offsetHeight;e.setState({heightOffset:e.state.heightOffset+n}),t.offsetHeight=0&&(It[e].splice(n,1),0===It[e].length&&delete It[e])}}(e,this._createLayerElement)},t.prototype._removeLayerElement=function(){var e=this.props.onLayerWillUnmount,t=this.state.layerElement;if(t&&Object(Mt.a)(t,null),e&&e(),t&&t.parentNode){var n=t.parentNode;n&&n.removeChild(t)}},t.prototype._getClassNames=function(){var e=this.props,t=e.className,n=e.styles,o=e.theme;return Ot(n,{theme:o,className:t,isNotHost:!this.props.hostId})},t.prototype._getHost=function(){var e=this.props.hostId,t=Object(Z.a)(this._rootRef.current);if(t){if(e)return t.getElementById(e);var n=ut;return n?t.querySelector(n):t.body}},t.defaultProps={onLayerDidMount:function(){},onLayerWillUnmount:function(){}},t=Object(i.__decorate)([Object(Ct.a)("Layer",["theme","hostId"])],t)}(s.Component),Et=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var St={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},jt=Object(A.a)(kt,(function(e){var t=e.className,n=e.isNotHost,o=e.theme,i=Object(et.getGlobalClassNames)(St,o);return{root:[i.root,o.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:et.ZIndexes.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[i.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.layerProps,n=Object(i.__rest)(e,["layerProps"]),o=s.createElement(dt,Object(i.__assign)({},n));return this.props.doNotLayer?o:s.createElement(jt,Object(i.__assign)({},t),o)},t}(s.Component),Dt=function(e){var t=e.item,n=e.hasIcons,o=e.classNames,r=t.iconProps;return n?t.onRenderIcon?t.onRenderIcon(e):s.createElement(C.a,Object(i.__assign)({},r,{className:o.icon})):null},Pt=function(e){var t=e.onCheckmarkClick,n=e.item,o=e.classNames,i=Q(n);if(t){return s.createElement(C.a,{iconName:!1!==n.canCheck&&i?"CheckMark":"",className:o.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null},Tt=function(e){var t=e.item,n=e.classNames;return t.text||t.name?s.createElement("span",{className:n.label},t.text||t.name):null},Bt=function(e){var t=e.item,n=e.classNames;return t.secondaryText?s.createElement("span",{className:n.secondaryText},t.secondaryText):null},Nt=function(e){var t=e.item,n=e.classNames,o=e.theme;return J(t)?s.createElement(C.a,Object(i.__assign)({iconName:Object(q.a)(o)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},Rt=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,o=e.openSubMenu,i=e.getSubmenuTarget;if(i){var s=i();J(t)&&o&&s&&o(t,s)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,o=e.dismissSubMenu;J(t)&&o&&o()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},Object(l.a)(n),n}return Object(i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,o=t.onRenderContent||this._renderLayout;return s.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},o(this.props,{renderCheckMarkIcon:Pt,renderItemIcon:Dt,renderItemName:Tt,renderSecondaryText:Bt,renderSubMenuIcon:Nt}))},t.prototype._renderLayout=function(e,t){return s.createElement(s.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(s.Component),Ft=Object(r.c)((function(e){return Object(et.mergeStyleSets)({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),Ht=36,Kt=Object(et.getScreenSelector)(0,et.ScreenWidthMaxMedium),Lt=Object(r.c)((function(){var e;return{selectors:(e={},e[et.HighContrastSelector]=Object(i.__assign)({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},Object(et.getHighContrastNoAdjustStyle)()),e)}})),At=Object(r.c)((function(e){var t,n,o,s,r,a,c,u=e.semanticColors,l=e.fonts,d=e.palette,p=u.menuItemBackgroundHovered,m=u.menuItemTextHovered,h=u.menuItemBackgroundPressed,_=u.bodyDivider,g={item:[l.medium,{color:u.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:_,position:"relative"},root:[Object(et.getFocusStyle)(e),l.medium,{color:u.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:Ht,lineHeight:Ht,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:u.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[et.HighContrastSelector]=Object(i.__assign)({color:"GrayText",opacity:1},Object(et.getHighContrastNoAdjustStyle)()),t)},rootHovered:Object(i.__assign)({backgroundColor:p,color:m,selectors:{".ms-ContextualMenu-icon":{color:d.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:d.neutralPrimary}}},Lt()),rootFocused:Object(i.__assign)({backgroundColor:d.white},Lt()),rootChecked:Object(i.__assign)({selectors:{".ms-ContextualMenu-checkmarkIcon":{color:d.neutralPrimary}}},Lt()),rootPressed:Object(i.__assign)({backgroundColor:h,selectors:{".ms-ContextualMenu-icon":{color:d.themeDark},".ms-ContextualMenu-submenuIcon":{color:d.neutralPrimary}}},Lt()),rootExpanded:Object(i.__assign)({backgroundColor:h,color:u.bodyTextChecked},Lt()),linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:Ht,fontSize:et.IconFontSizes.medium,width:et.IconFontSizes.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(n={},n[Kt]={fontSize:et.IconFontSizes.large,width:et.IconFontSizes.large},n)},iconColor:{color:u.menuIcon,selectors:(o={},o[et.HighContrastSelector]={color:"inherit"},o["$root:hover &"]={selectors:(s={},s[et.HighContrastSelector]={color:"HighlightText"},s)},o["$root:focus &"]={selectors:(r={},r[et.HighContrastSelector]={color:"HighlightText"},r)},o)},iconDisabled:{color:u.disabledBodyText},checkmarkIcon:{color:u.bodySubtext,selectors:(a={},a[et.HighContrastSelector]={color:"HighlightText"},a)},subMenuIcon:{height:Ht,lineHeight:Ht,color:d.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:et.IconFontSizes.small,selectors:(c={":hover":{color:d.neutralPrimary},":active":{color:d.neutralPrimary}},c[Kt]={fontSize:et.IconFontSizes.medium},c[et.HighContrastSelector]={color:"HighlightText"},c)},splitButtonFlexContainer:[Object(et.getFocusStyle)(e),{display:"flex",height:Ht,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return Object(et.concatStyleSets)(g)})),Wt=n("LQdl"),Ut="28px",zt=Object(et.getScreenSelector)(0,et.ScreenWidthMaxMedium),Vt=Object(r.c)((function(e){var t;return Object(et.mergeStyleSets)(Ft(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[zt]={right:32},t)},divider:{height:16,width:1}})})),Gt={item:"ms-ContextualMenu-item",divider:"ms-ContextualMenu-divider",root:"ms-ContextualMenu-link",isChecked:"is-checked",isExpanded:"is-expanded",isDisabled:"is-disabled",linkContent:"ms-ContextualMenu-linkContent",linkContentMenu:"ms-ContextualMenu-linkContent",icon:"ms-ContextualMenu-icon",iconColor:"ms-ContextualMenu-iconColor",checkmarkIcon:"ms-ContextualMenu-checkmarkIcon",subMenuIcon:"ms-ContextualMenu-submenuIcon",label:"ms-ContextualMenu-itemText",secondaryText:"ms-ContextualMenu-secondaryText",splitMenu:"ms-ContextualMenu-splitMenu",screenReaderText:"ms-ContextualMenu-screenReaderText"},qt=Object(r.c)((function(e,t,n,o,i,s,r,a,c,u,l,d){var p,m,h,_,g=At(e),b=Object(et.getGlobalClassNames)(Gt,e);return Object(et.mergeStyleSets)({item:[b.item,g.item,r],divider:[b.divider,g.divider,a],root:[b.root,g.root,o&&[b.isChecked,g.rootChecked],i&&g.anchorLink,n&&[b.isExpanded,g.rootExpanded],t&&[b.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(p={":hover":g.rootHovered,":active":g.rootPressed},p["."+Wt.a+" &:focus, ."+Wt.a+" &:focus:hover"]=g.rootFocused,p["."+Wt.a+" &:hover"]={background:"inherit;"},p)}],d],splitPrimary:[g.root,{width:"calc(100% - 28px)"},o&&["is-checked",g.rootChecked],(t||l)&&["is-disabled",g.rootDisabled],!(t||l)&&!o&&[{selectors:(m={":hover":g.rootHovered},m[":hover ~ ."+b.splitMenu]=g.rootHovered,m[":active"]=g.rootPressed,m["."+Wt.a+" &:focus, ."+Wt.a+" &:focus:hover"]=g.rootFocused,m["."+Wt.a+" &:hover"]={background:"inherit;"},m)}]],splitMenu:[b.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:Ut},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(h={":hover":g.rootHovered,":active":g.rootPressed},h["."+Wt.a+" &:focus, ."+Wt.a+" &:focus:hover"]=g.rootFocused,h["."+Wt.a+" &:hover"]={background:"inherit;"},h)}]],anchorLink:g.anchorLink,linkContent:[b.linkContent,g.linkContent],linkContentMenu:[b.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[b.icon,s&&g.iconColor,g.icon,c,t&&[b.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[b.checkmarkIcon,s&&g.checkmarkIcon,g.icon,c],subMenuIcon:[b.subMenuIcon,g.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[b.label,g.label],secondaryText:[b.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!o&&[{selectors:(_={},_["."+Wt.a+" &:focus, ."+Wt.a+" &:focus:hover"]=g.rootFocused,_)}]],screenReaderText:[b.screenReaderText,g.screenReaderText,et.hiddenContentStyle,{visibility:"hidden"}]})})),Yt=function(e){var t=e.theme,n=e.disabled,o=e.expanded,i=e.checked,s=e.isAnchorLink,r=e.knownIcon,a=e.itemClassName,c=e.dividerClassName,u=e.iconClassName,l=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return qt(t,n,o,i,s,r,a,c,u,l,d,p)},Zt=Object(A.a)(Rt,Yt,void 0,{scope:"ContextualMenuItem"}),Xt=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,o=t.item,i=t.onItemMouseEnter;i&&i(o,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,o=t.item,i=t.onItemClickBase;i&&i(o,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,o=t.item,i=t.onItemMouseLeave;i&&i(o,e)},n._onItemKeyDown=function(e){var t=n.props,o=t.item,i=t.onItemKeyDown;i&&i(o,e)},n._onItemMouseMove=function(e){var t=n.props,o=t.item,i=t.onItemMouseMove;i&&i(o,e,e.currentTarget)},n._getSubMenuId=function(e){var t=n.props.getSubMenuId;if(t)return t(e)},n._getSubmenuTarget=function(){},Object(l.a)(n),n}return Object(i.__extends)(t,e),t.prototype.shouldComponentUpdate=function(e){return!Object(b.e)(e,this.props)},t}(s.Component),Qt=n("j0ZI"),Jt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=s.createRef(),t._getMemoizedMenuButtonKeytipProps=Object(r.c)((function(e){return Object(i.__assign)(Object(i.__assign)({},e),{hasMenu:!0})})),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,o=n.item,i=n.onItemClick;i&&i(o,e)},t._renderAriaDescription=function(e,n){return e?s.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return Object(i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,r=t.index,a=t.focusableElementIndex,c=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,d=t.contextualMenuItemAs,p=void 0===d?Zt:d,m=t.expandedMenuItemKey,h=t.onItemClick,b=t.openSubMenu,v=t.dismissSubMenu,f=t.dismissMenu,M=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(M=M||"nofollow noopener noreferrer");var C=this._getSubMenuId(n),I=J(n),x=Object(g.j)(n,g.a),O=$(n),k=n.itemProps,E=n.ariaDescription,S=n.keytipProps;return S&&I&&(S=this._getMemoizedMenuButtonKeytipProps(S)),E&&(this._ariaDescriptionId=Object(_.a)()),s.createElement("div",null,s.createElement(Qt.a,{keytipProps:n.keytipProps,ariaDescribedBy:x["aria-describedby"],disabled:O},(function(t){return s.createElement("a",Object(i.__assign)({},x,t,{ref:e._anchor,href:n.href,target:n.target,rel:M,className:o.root,role:"menuitem","aria-owns":n.key===m?C:void 0,"aria-haspopup":I||void 0,"aria-expanded":I?n.key===m:void 0,"aria-posinset":a+1,"aria-setsize":c,"aria-disabled":$(n),"aria-describedby":Object(y.a)(E?e._ariaDescriptionId:void 0,t?t["aria-describedby"]:void 0),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:I?e._onItemKeyDown:void 0}),s.createElement(p,Object(i.__assign)({componentRef:n.componentRef,item:n,classNames:o,index:r,onCheckmarkClick:u&&h?h:void 0,hasIcons:l,openSubMenu:b,dismissSubMenu:v,dismissMenu:f,getSubmenuTarget:e._getSubmenuTarget},k)),e._renderAriaDescription(E,o.screenReaderText))})))},t}(Xt),$t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=s.createRef(),t._getMemoizedMenuButtonKeytipProps=Object(r.c)((function(e){return Object(i.__assign)(Object(i.__assign)({},e),{hasMenu:!0})})),t._renderAriaDescription=function(e,n){return e?s.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return Object(i.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,r=t.index,a=t.focusableElementIndex,c=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,d=t.contextualMenuItemAs,p=void 0===d?Zt:d,m=t.expandedMenuItemKey,h=t.onItemMouseDown,b=t.onItemClick,v=t.openSubMenu,f=t.dismissSubMenu,M=t.dismissMenu,C=this._getSubMenuId(n),I=Q(n),x=null!==I,O=ee(n),k=J(n),E=n.itemProps,S=n.ariaLabel,j=n.ariaDescription,w=Object(g.j)(n,g.e);delete w.disabled;var D=n.role||O;j&&(this._ariaDescriptionId=Object(_.a)());var P=j?this._ariaDescriptionId:void 0,T={className:o.root,onClick:this._onItemClick,onKeyDown:k?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return h?h(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":S,"aria-describedby":P,"aria-haspopup":k||void 0,"aria-owns":n.key===m?C:void 0,"aria-expanded":k?n.key===m:void 0,"aria-posinset":a+1,"aria-setsize":c,"aria-disabled":$(n),"aria-checked":"menuitemcheckbox"!==D&&"menuitemradio"!==D||!x?void 0:!!I,"aria-selected":"menuitem"===D&&x?!!I:void 0,role:D,style:n.style},B=n.keytipProps;return B&&k&&(B=this._getMemoizedMenuButtonKeytipProps(B)),s.createElement(Qt.a,{keytipProps:B,ariaDescribedBy:w["aria-describedby"],disabled:$(n)},(function(t){return s.createElement("button",Object(i.__assign)({ref:e._btn},w,T,t,{"aria-describedby":Object(y.a)(T["aria-describedby"],t?t["aria-describedby"]:void 0)}),s.createElement(p,Object(i.__assign)({componentRef:n.componentRef,item:n,classNames:o,index:r,onCheckmarkClick:u&&b?b:void 0,hasIcons:l,openSubMenu:v,dismissSubMenu:f,dismissMenu:M,getSubmenuTarget:e._getSubmenuTarget},E)),e._renderAriaDescription(j,o.screenReaderText))}))},t}(Xt),en=Object(z.a)(),tn=function(e){var t=e.styles,n=e.theme,o=e.getClassNames,i=e.className,r=en(t,{theme:n,getClassNames:o,className:i});return s.createElement("span",{className:r.wrapper},s.createElement("span",{className:r.divider}))};tn.displayName="VerticalDividerBase";var nn=Object(A.a)(tn,(function(e){var t=e.theme,n=e.getClassNames,o=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var i=n(t);return{wrapper:[i.wrapper],divider:[i.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},o],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}}),void 0,{scope:"VerticalDivider"}),on=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=Object(r.c)((function(e){return Object(i.__assign)(Object(i.__assign)({},e),{hasMenu:!0})})),n._renderAriaDescription=function(e,t){return e?s.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemKeyDown=function(e){var t=n.props,o=t.item,i=t.onItemKeyDown;e.which===u.a.enter?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):i&&i(o,e)},n._getSubmenuTarget=function(){return n._splitButton},n._onItemMouseEnterPrimary=function(e){var t=n.props,o=t.item,s=t.onItemMouseEnter;s&&s(Object(i.__assign)(Object(i.__assign)({},o),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,o=t.item,i=t.onItemMouseEnter;i&&i(o,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,o=t.item,s=t.onItemMouseMove;s&&s(Object(i.__assign)(Object(i.__assign)({},o),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,o=t.item,i=t.onItemMouseMove;i&&i(o,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,o=t.item,i=t.onItemClickBase;i&&i(o,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,o=t.item,i=t.executeItemClick,s=t.onItemClick;if(!o.disabled&&!o.isDisabled)return n._processingTouch&&s?s(o,e):void(i&&i(o,e))},n._onTouchStart=function(e){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new d.a(n),n._events=new p.a(n),n}return Object(i.__extends)(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.item,o=t.classNames,r=t.index,a=t.focusableElementIndex,c=t.totalItemCount,u=t.hasCheckmarks,l=t.hasIcons,d=t.onItemMouseLeave,p=t.expandedMenuItemKey,m=J(n),h=n.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var g=n.ariaDescription;return g&&(this._ariaDescriptionId=Object(_.a)()),s.createElement(Qt.a,{keytipProps:h,disabled:$(n)},(function(t){return s.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(t){return e._splitButton=t},role:ee(n),"aria-label":n.ariaLabel,className:o.splitContainer,"aria-disabled":$(n),"aria-expanded":m?n.key===p:void 0,"aria-haspopup":!0,"aria-describedby":Object(y.a)(g?e._ariaDescriptionId:void 0,t["aria-describedby"]),"aria-checked":n.isChecked||n.checked,"aria-posinset":a+1,"aria-setsize":c,onMouseEnter:e._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(e,Object(i.__assign)(Object(i.__assign)({},n),{subMenuProps:null,items:null})):void 0,onMouseMove:e._onItemMouseMovePrimary,onKeyDown:e._onItemKeyDown,onClick:e._executeItemClick,onTouchStart:e._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":n["aria-roledescription"]},e._renderSplitPrimaryButton(n,o,r,u,l),e._renderSplitDivider(n),e._renderSplitIconButton(n,o,r,t),e._renderAriaDescription(g,o.screenReaderText))}))},t.prototype._renderSplitPrimaryButton=function(e,t,n,o,r){var a=this.props,c=a.contextualMenuItemAs,u=void 0===c?Zt:c,l=a.onItemClick,d={key:e.key,disabled:$(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},p=e.itemProps;return s.createElement("button",Object(i.__assign)({},Object(g.j)(d,g.e)),s.createElement(u,Object(i.__assign)({"data-is-focusable":!1,item:d,classNames:t,index:n,onCheckmarkClick:o&&l?l:void 0,hasIcons:r},p)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||Vt;return s.createElement(nn,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,o){var r=this.props,a=r.contextualMenuItemAs,c=void 0===a?Zt:a,u=r.onItemMouseLeave,l=r.onItemMouseDown,d=r.openSubMenu,p=r.dismissSubMenu,m=r.dismissMenu,h={onClick:this._onIconItemClick,disabled:$(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},_=Object(i.__assign)(Object(i.__assign)({},Object(g.j)(h,g.e)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,e):void 0,onMouseDown:function(t){return l?l(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),b=e.itemProps;return s.createElement("button",Object(i.__assign)({},_),s.createElement(c,Object(i.__assign)({componentRef:e.componentRef,item:h,classNames:t,index:n,hasIcons:!1,openSubMenu:d,dismissSubMenu:p,dismissMenu:m,getSubmenuTarget:this._getSubmenuTarget},b)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0}),500)},t}(Xt),sn=Object(z.a)(),rn=Object(z.a)();function an(e){return e.subMenuProps?e.subMenuProps.items:e.items}var cn=Object(r.c)((function(){for(var e=[],t=0;t0){for(var z=0,V=0,G=r;V0?s.createElement("li",{role:"presentation",key:l.key||e.key||"section-"+n},s.createElement("div",Object(i.__assign)({},p),s.createElement("ul",{className:this._classNames.list,role:"menu"},l.topDivider&&this._renderSeparator(n,t,!0,!0),d&&this._renderListItem(d,e.key||n,t,e.title),l.items.map((function(e,t){return u._renderMenuItem(e,t,t,l.items.length,r,a)})),l.bottomDivider&&this._renderSeparator(n,t,!1,!0)))):void 0}},t.prototype._renderListItem=function(e,t,n,o){return s.createElement("li",{role:"presentation",title:o,key:t,className:n.item},e)},t.prototype._renderSeparator=function(e,t,n,o){return o||e>0?s.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},t.prototype._renderNormalItem=function(e,t,n,o,s,r,a){return e.onRender?e.onRender(Object(i.__assign)({"aria-posinset":o+1,"aria-setsize":s},e),this.dismiss):e.href?this._renderAnchorMenuItem(e,t,n,o,s,r,a):e.split&&J(e)?this._renderSplitButton(e,t,n,o,s,r,a):this._renderButtonItem(e,t,n,o,s,r,a)},t.prototype._renderHeaderMenuItem=function(e,t,n,o,r){var a=this.props.contextualMenuItemAs,c=void 0===a?Zt:a,u=e.itemProps,l=e.id,d=u&&Object(g.j)(u,g.h);return s.createElement("div",Object(i.__assign)({id:l,className:this._classNames.header},d,{style:e.style}),s.createElement(c,Object(i.__assign)({item:e,classNames:t,index:n,onCheckmarkClick:o?this._onItemClick:void 0,hasIcons:r},u)))},t.prototype._renderAnchorMenuItem=function(e,t,n,o,i,r,a){var c=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return s.createElement(Jt,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:r,hasIcons:a,contextualMenuItemAs:c,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onAnchorClick,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:u,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderButtonItem=function(e,t,n,o,i,r,a){var c=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return s.createElement($t,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:r,hasIcons:a,contextualMenuItemAs:c,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,getSubMenuId:this._getSubMenuId,expandedMenuItemKey:u,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss})},t.prototype._renderSplitButton=function(e,t,n,o,i,r,a){var c=this.props.contextualMenuItemAs,u=this.state.expandedMenuItemKey;return s.createElement(on,{item:e,classNames:t,index:n,focusableElementIndex:o,totalItemCount:i,hasCheckmarks:r,hasIcons:a,contextualMenuItemAs:c,onItemMouseEnter:this._onItemMouseEnterBase,onItemMouseLeave:this._onMouseItemLeave,onItemMouseMove:this._onItemMouseMoveBase,onItemMouseDown:this._onItemMouseDown,executeItemClick:this._executeItemClick,onItemClick:this._onItemClick,onItemClickBase:this._onItemClickBase,onItemKeyDown:this._onItemKeyDown,openSubMenu:this._onItemSubMenuExpand,dismissSubMenu:this._onSubMenuDismiss,dismissMenu:this.dismiss,expandedMenuItemKey:u,onTap:this._onPointerAndTouchEvent})},t.prototype._isAltOrMeta=function(e){return e.which===u.a.alt||"Meta"===e.key},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._updateFocusOnMouseEvent=function(e,t,n){var o=this,i=n||t.currentTarget,s=this.props.subMenuHoverDelay,r=void 0===s?250:s;e.key!==this.state.expandedMenuItemKey&&(void 0!==this._enterTimerId&&(this._async.clearTimeout(this._enterTimerId),this._enterTimerId=void 0),void 0===this.state.expandedMenuItemKey&&i.focus(),J(e)?(t.stopPropagation(),this._enterTimerId=this._async.setTimeout((function(){i.focus(),o.setState({expandedByMouseClick:!0}),o._onItemSubMenuExpand(e,i),o._enterTimerId=void 0}),r)):this._enterTimerId=this._async.setTimeout((function(){o._onSubMenuDismiss(t),i.focus(),o._enterTimerId=void 0}),r))},t.prototype._getSubmenuProps=function(){var e=this.state,t=e.submenuTarget,n=e.expandedMenuItemKey,o=this._findItemByKey(n),i=null;return o&&(i={items:an(o),target:t,onDismiss:this._onSubMenuDismiss,isSubMenu:!0,id:this.state.subMenuId,shouldFocusOnMount:!0,shouldFocusOnContainer:this.state.expandedByMouseClick,directionalHint:Object(q.a)(this.props.theme)?N:H,className:this.props.className,gapSpace:0,isBeakVisible:!1},o.subMenuProps&&Object(b.a)(i,o.subMenuProps)),i},t.prototype._findItemByKey=function(e){var t=this.props.items;return this._findItemByKeyFromItems(e,t)},t.prototype._findItemByKeyFromItems=function(e,t){for(var n=0,i=t;n