{"version":3,"file":"static/chunks/8508-910e78b48e1c447b.js","mappings":"AACA","sources":["webpack://_N_E/./node_modules/antd/es/menu/OverrideContext.js","webpack://_N_E/./node_modules/antd/es/menu/style/horizontal.js","webpack://_N_E/./node_modules/antd/es/menu/style/rtl.js","webpack://_N_E/./node_modules/antd/es/menu/style/theme.js","webpack://_N_E/./node_modules/antd/es/menu/style/vertical.js","webpack://_N_E/./node_modules/antd/es/menu/style/index.js","webpack://_N_E/./node_modules/antd/es/menu/MenuDivider.js","webpack://_N_E/./node_modules/antd/es/menu/MenuContext.js","webpack://_N_E/./node_modules/antd/es/menu/MenuItem.js","webpack://_N_E/./node_modules/antd/es/menu/SubMenu.js","webpack://_N_E/./node_modules/antd/es/menu/hooks/useItems.js","webpack://_N_E/./node_modules/antd/es/menu/menu.js","webpack://_N_E/./node_modules/antd/es/menu/index.js","webpack://_N_E/"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\n/** @internal Only used for Dropdown component. Do not use this in your production. */\nvar OverrideContext = /*#__PURE__*/React.createContext(null);\n/** @internal Only used for Dropdown component. Do not use this in your production. */\nexport var OverrideProvider = function OverrideProvider(_a) {\n var children = _a.children,\n restProps = __rest(_a, [\"children\"]);\n var override = React.useContext(OverrideContext);\n var context = React.useMemo(function () {\n return _extends(_extends({}, override), restProps);\n }, [override, restProps.prefixCls,\n // restProps.expandIcon, Not mark as deps since this is a ReactNode\n restProps.mode, restProps.selectable\n // restProps.validator, Not mark as deps since this is a function\n ]);\n\n return /*#__PURE__*/React.createElement(OverrideContext.Provider, {\n value: context\n }, children);\n};\nexport default OverrideContext;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nvar getHorizontalStyle = function getHorizontalStyle(token) {\n var _ref;\n var componentCls = token.componentCls,\n motionDurationSlow = token.motionDurationSlow,\n menuHorizontalHeight = token.menuHorizontalHeight,\n colorSplit = token.colorSplit,\n lineWidth = token.lineWidth,\n lineType = token.lineType,\n menuItemPaddingInline = token.menuItemPaddingInline,\n menuItemMarginInline = token.menuItemMarginInline;\n return _defineProperty({}, componentCls + \"-horizontal\", (_ref = {\n lineHeight: menuHorizontalHeight + \"px\",\n border: 0,\n borderBottom: lineWidth + \"px \" + lineType + \" \" + colorSplit,\n boxShadow: 'none',\n '&::after': {\n display: 'block',\n clear: 'both',\n height: 0,\n content: '\"\\\\20\"'\n }\n }, _defineProperty(_ref, componentCls + \"-item, \" + componentCls + \"-submenu\", {\n position: 'relative',\n display: 'inline-block',\n verticalAlign: 'bottom',\n paddingInline: menuItemPaddingInline,\n marginInline: menuItemMarginInline\n }), _defineProperty(_ref, \"> \" + componentCls + \"-item:hover,\\n > \" + componentCls + \"-item-active,\\n > \" + componentCls + \"-submenu \" + componentCls + \"-submenu-title:hover\", {\n backgroundColor: 'transparent'\n }), _defineProperty(_ref, componentCls + \"-item, \" + componentCls + \"-submenu-title\", {\n transition: [\"border-color \" + motionDurationSlow, \"background \" + motionDurationSlow].join(',')\n }), _defineProperty(_ref, componentCls + \"-submenu-arrow\", {\n display: 'none'\n }), _ref));\n};\nexport default getHorizontalStyle;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nvar getRTLStyle = function getRTLStyle(_ref) {\n var _ref3;\n var componentCls = _ref.componentCls,\n menuArrowOffset = _ref.menuArrowOffset;\n return _ref3 = {}, _defineProperty(_ref3, componentCls + \"-rtl\", {\n direction: 'rtl'\n }), _defineProperty(_ref3, componentCls + \"-submenu-rtl\", {\n transformOrigin: '100% 0'\n }), _defineProperty(_ref3, componentCls + \"-rtl\" + componentCls + \"-vertical,\\n \" + componentCls + \"-submenu-rtl \" + componentCls + \"-vertical\", _defineProperty({}, componentCls + \"-submenu-arrow\", {\n '&::before': {\n transform: \"rotate(-45deg) translateY(-\" + menuArrowOffset + \")\"\n },\n '&::after': {\n transform: \"rotate(45deg) translateY(\" + menuArrowOffset + \")\"\n }\n })), _ref3;\n};\nexport default getRTLStyle;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { genFocusOutline } from '../../style';\nvar accessibilityFocus = function accessibilityFocus(token) {\n return _extends({}, genFocusOutline(token));\n};\nvar getThemeStyle = function getThemeStyle(token, themeSuffix) {\n var _ref3, _ref5, _ref6, _ref9, _ref12, _ref13;\n var componentCls = token.componentCls,\n colorItemText = token.colorItemText,\n colorItemTextSelected = token.colorItemTextSelected,\n colorItemTextSelectedHorizontal = token.colorItemTextSelectedHorizontal,\n colorGroupTitle = token.colorGroupTitle,\n colorItemBg = token.colorItemBg,\n colorSubItemBg = token.colorSubItemBg,\n colorItemBgSelectedHorizontal = token.colorItemBgSelectedHorizontal,\n colorItemBgSelected = token.colorItemBgSelected,\n colorActiveBarHeight = token.colorActiveBarHeight,\n colorActiveBarWidth = token.colorActiveBarWidth,\n colorActiveBarBorderSize = token.colorActiveBarBorderSize,\n motionDurationSlow = token.motionDurationSlow,\n motionEaseInOut = token.motionEaseInOut,\n motionEaseOut = token.motionEaseOut,\n menuItemPaddingInline = token.menuItemPaddingInline,\n motionDurationMid = token.motionDurationMid,\n colorItemTextHover = token.colorItemTextHover,\n lineType = token.lineType,\n colorSplit = token.colorSplit,\n colorItemTextDisabled = token.colorItemTextDisabled,\n colorDangerItemText = token.colorDangerItemText,\n colorDangerItemTextHover = token.colorDangerItemTextHover,\n colorDangerItemTextSelected = token.colorDangerItemTextSelected,\n colorDangerItemBgActive = token.colorDangerItemBgActive,\n colorDangerItemBgSelected = token.colorDangerItemBgSelected,\n colorItemBgHover = token.colorItemBgHover;\n return _defineProperty({}, componentCls + \"-\" + themeSuffix, (_ref13 = {\n color: colorItemText,\n background: colorItemBg\n }, _defineProperty(_ref13, \"&\" + componentCls + \"-root:focus-visible\", _extends({}, accessibilityFocus(token))), _defineProperty(_ref13, componentCls + \"-item-group-title\", {\n color: colorGroupTitle\n }), _defineProperty(_ref13, componentCls + \"-submenu-selected\", _defineProperty({}, \"> \" + componentCls + \"-submenu-title\", {\n color: colorItemTextSelected\n })), _defineProperty(_ref13, componentCls + \"-item-disabled, \" + componentCls + \"-submenu-disabled\", {\n color: colorItemTextDisabled + \" !important\"\n }), _defineProperty(_ref13, componentCls + \"-item:hover, \" + componentCls + \"-submenu-title:hover\", _defineProperty({}, \"&:not(\" + componentCls + \"-item-selected):not(\" + componentCls + \"-submenu-selected)\", {\n color: colorItemTextHover\n })), _defineProperty(_ref13, \"&:not(\" + componentCls + \"-horizontal)\", (_ref3 = {}, _defineProperty(_ref3, componentCls + \"-item:not(\" + componentCls + \"-item-selected)\", {\n '&:hover': {\n backgroundColor: colorItemBgHover\n },\n '&:active': {\n backgroundColor: colorItemBgSelected\n }\n }), _defineProperty(_ref3, componentCls + \"-submenu-title\", {\n '&:hover': {\n backgroundColor: colorItemBgHover\n },\n '&:active': {\n backgroundColor: colorItemBgSelected\n }\n }), _ref3)), _defineProperty(_ref13, componentCls + \"-item-danger\", (_ref5 = {\n color: colorDangerItemText\n }, _defineProperty(_ref5, \"&\" + componentCls + \"-item:hover\", _defineProperty({}, \"&:not(\" + componentCls + \"-item-selected):not(\" + componentCls + \"-submenu-selected)\", {\n color: colorDangerItemTextHover\n })), _defineProperty(_ref5, \"&\" + componentCls + \"-item:active\", {\n background: colorDangerItemBgActive\n }), _ref5)), _defineProperty(_ref13, componentCls + \"-item a\", {\n '&, &:hover': {\n color: 'inherit'\n }\n }), _defineProperty(_ref13, componentCls + \"-item-selected\", (_ref6 = {\n color: colorItemTextSelected\n }, _defineProperty(_ref6, \"&\" + componentCls + \"-item-danger\", {\n color: colorDangerItemTextSelected\n }), _defineProperty(_ref6, \"a, a:hover\", {\n color: 'inherit'\n }), _ref6)), _defineProperty(_ref13, \"&:not(\" + componentCls + \"-horizontal) \" + componentCls + \"-item-selected\", _defineProperty({\n backgroundColor: colorItemBgSelected\n }, \"&\" + componentCls + \"-item-danger\", {\n backgroundColor: colorDangerItemBgSelected\n })), _defineProperty(_ref13, componentCls + \"-item, \" + componentCls + \"-submenu-title\", _defineProperty({}, \"&:not(\" + componentCls + \"-item-disabled):focus-visible\", _extends({}, accessibilityFocus(token)))), _defineProperty(_ref13, \"&\" + componentCls + \"-submenu > \" + componentCls, {\n backgroundColor: colorItemBg\n }), _defineProperty(_ref13, \"&\" + componentCls + \"-popup > \" + componentCls, {\n backgroundColor: colorItemBg\n }), _defineProperty(_ref13, \"&\" + componentCls + \"-horizontal\", _extends(_extends({}, themeSuffix === 'dark' ? {\n borderBottom: 0\n } : {}), _defineProperty({}, \"> \" + componentCls + \"-item, > \" + componentCls + \"-submenu\", (_ref9 = {\n top: colorActiveBarBorderSize,\n marginTop: -colorActiveBarBorderSize,\n marginBottom: 0,\n borderRadius: token.radiusItem,\n '&::after': {\n position: 'absolute',\n insetInline: menuItemPaddingInline,\n bottom: 0,\n borderBottom: colorActiveBarHeight + \"px solid transparent\",\n transition: \"border-color \" + motionDurationSlow + \" \" + motionEaseInOut,\n content: '\"\"'\n }\n }, _defineProperty(_ref9, \"&:hover, &-active, &-open\", {\n color: colorItemTextSelectedHorizontal,\n '&::after': {\n borderWidth: colorActiveBarHeight + \"px\",\n borderBottomColor: colorItemTextSelectedHorizontal\n }\n }), _defineProperty(_ref9, \"&-selected\", {\n color: colorItemTextSelectedHorizontal,\n backgroundColor: colorItemBgSelectedHorizontal,\n '&::after': {\n borderWidth: colorActiveBarHeight + \"px\",\n borderBottomColor: colorItemTextSelectedHorizontal\n }\n }), _ref9)))), _defineProperty(_ref13, \"&\" + componentCls + \"-root\", _defineProperty({}, \"&\" + componentCls + \"-inline, &\" + componentCls + \"-vertical\", {\n borderInlineEnd: colorActiveBarBorderSize + \"px \" + lineType + \" \" + colorSplit\n })), _defineProperty(_ref13, \"&\" + componentCls + \"-inline\", (_ref12 = {}, _defineProperty(_ref12, componentCls + \"-sub\" + componentCls + \"-inline\", {\n background: colorSubItemBg\n }), _defineProperty(_ref12, componentCls + \"-item, \" + componentCls + \"-submenu-title\", colorActiveBarBorderSize && colorActiveBarWidth ? {\n width: \"calc(100% + \" + colorActiveBarBorderSize + \"px)\"\n } : {}), _defineProperty(_ref12, componentCls + \"-item\", _defineProperty({\n position: 'relative',\n '&::after': {\n position: 'absolute',\n insetBlock: 0,\n insetInlineEnd: 0,\n borderInlineEnd: colorActiveBarWidth + \"px solid \" + colorItemTextSelected,\n transform: 'scaleY(0.0001)',\n opacity: 0,\n transition: [\"transform \" + motionDurationMid + \" \" + motionEaseOut, \"opacity \" + motionDurationMid + \" \" + motionEaseOut].join(','),\n content: '\"\"'\n }\n }, \"&\" + componentCls + \"-item-danger\", {\n '&::after': {\n borderInlineEndColor: colorDangerItemTextSelected\n }\n })), _defineProperty(_ref12, componentCls + \"-selected, \" + componentCls + \"-item-selected\", {\n '&::after': {\n transform: 'scaleY(1)',\n opacity: 1,\n transition: [\"transform \" + motionDurationMid + \" \" + motionEaseInOut, \"opacity \" + motionDurationMid + \" \" + motionEaseInOut].join(',')\n }\n }), _ref12)), _ref13));\n};\nexport default getThemeStyle;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { textEllipsis } from '../../style';\nvar getVerticalInlineStyle = function getVerticalInlineStyle(token) {\n var _ref;\n var componentCls = token.componentCls,\n menuItemHeight = token.menuItemHeight,\n menuItemMarginInline = token.menuItemMarginInline,\n itemMarginInline = token.itemMarginInline,\n padding = token.padding,\n menuArrowSize = token.menuArrowSize,\n fontSize = token.fontSize;\n var paddingWithArrow = menuArrowSize + fontSize;\n return _ref = {}, _defineProperty(_ref, componentCls + \"-item\", {\n position: 'relative'\n }), _defineProperty(_ref, componentCls + \"-item, \" + componentCls + \"-submenu-title\", {\n height: menuItemHeight,\n lineHeight: menuItemHeight + \"px\",\n paddingInline: padding,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n marginInline: itemMarginInline,\n marginBlock: menuItemMarginInline,\n width: \"calc(100% - \" + itemMarginInline * 2 + \"px)\"\n }), _defineProperty(_ref, componentCls + \"-submenu\", {\n paddingBottom: 0.02\n }), _defineProperty(_ref, \"> \" + componentCls + \"-item,\\n > \" + componentCls + \"-submenu > \" + componentCls + \"-submenu-title\", {\n height: menuItemHeight,\n lineHeight: menuItemHeight + \"px\"\n }), _defineProperty(_ref, componentCls + \"-item-group-list \" + componentCls + \"-submenu-title,\\n \" + componentCls + \"-submenu-title\", {\n paddingInlineEnd: paddingWithArrow\n }), _ref;\n};\nvar getVerticalStyle = function getVerticalStyle(token) {\n var _ref3, _ref5, _ref7, _ref8, _ref12, _tooltip, _ref13;\n var componentCls = token.componentCls,\n iconCls = token.iconCls,\n menuItemHeight = token.menuItemHeight,\n colorTextLightSolid = token.colorTextLightSolid,\n dropdownWidth = token.dropdownWidth,\n controlHeightLG = token.controlHeightLG,\n motionDurationMid = token.motionDurationMid,\n motionEaseOut = token.motionEaseOut,\n paddingXL = token.paddingXL,\n fontSizeSM = token.fontSizeSM,\n fontSizeLG = token.fontSizeLG,\n motionDurationSlow = token.motionDurationSlow,\n paddingXS = token.paddingXS,\n boxShadowSecondary = token.boxShadowSecondary;\n var inlineItemStyle = {\n height: menuItemHeight,\n lineHeight: menuItemHeight + \"px\",\n listStylePosition: 'inside',\n listStyleType: 'disc'\n };\n return [(_ref3 = {}, _defineProperty(_ref3, componentCls, _defineProperty({}, \"&-inline, &-vertical\", _extends(_defineProperty({}, \"&\" + componentCls + \"-root\", {\n boxShadow: 'none'\n }), getVerticalInlineStyle(token)))), _defineProperty(_ref3, componentCls + \"-submenu-popup\", _defineProperty({}, componentCls + \"-vertical\", _extends(_extends({}, getVerticalInlineStyle(token)), {\n boxShadow: boxShadowSecondary\n }))), _ref3), // Vertical only\n _defineProperty({}, componentCls + \"-submenu-popup \" + componentCls + \"-vertical\" + componentCls + \"-sub\", {\n minWidth: dropdownWidth,\n maxHeight: \"calc(100vh - \" + controlHeightLG * 2.5 + \"px)\",\n padding: '0',\n overflow: 'hidden',\n borderInlineEnd: 0,\n // https://github.com/ant-design/ant-design/issues/22244\n // https://github.com/ant-design/ant-design/issues/26812\n \"&:not([class*='-active'])\": {\n overflowX: 'hidden',\n overflowY: 'auto'\n }\n }), // Inline Only\n _defineProperty({}, componentCls + \"-inline\", (_ref8 = {\n width: '100%'\n }, _defineProperty(_ref8, \"&\" + componentCls + \"-root\", _defineProperty({}, componentCls + \"-item, \" + componentCls + \"-submenu-title\", (_ref5 = {\n display: 'flex',\n alignItems: 'center',\n transition: [\"border-color \" + motionDurationSlow, \"background \" + motionDurationSlow, \"padding \" + motionDurationMid + \" \" + motionEaseOut]\n }, _defineProperty(_ref5, \"> \" + componentCls + \"-title-content\", {\n flex: 'auto',\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n }), _defineProperty(_ref5, '> *', {\n flex: 'none'\n }), _ref5))), _defineProperty(_ref8, componentCls + \"-sub\" + componentCls + \"-inline\", (_ref7 = {\n padding: 0,\n border: 0,\n borderRadius: 0,\n boxShadow: 'none'\n }, _defineProperty(_ref7, \"& > \" + componentCls + \"-submenu > \" + componentCls + \"-submenu-title\", inlineItemStyle), _defineProperty(_ref7, \"& \" + componentCls + \"-item-group-title\", {\n paddingInlineStart: paddingXL\n }), _ref7)), _defineProperty(_ref8, componentCls + \"-item\", inlineItemStyle), _ref8)), // Inline Collapse Only\n _defineProperty({}, componentCls + \"-inline-collapsed\", (_ref13 = {\n width: menuItemHeight * 2\n }, _defineProperty(_ref13, \"&\" + componentCls + \"-root\", _defineProperty({}, componentCls + \"-item, \" + componentCls + \"-submenu \" + componentCls + \"-submenu-title\", _defineProperty({}, \"> \" + componentCls + \"-inline-collapsed-noicon\", {\n fontSize: fontSizeLG,\n textAlign: 'center'\n }))), _defineProperty(_ref13, \"> \" + componentCls + \"-item,\\n > \" + componentCls + \"-item-group > \" + componentCls + \"-item-group-list > \" + componentCls + \"-item,\\n > \" + componentCls + \"-item-group > \" + componentCls + \"-item-group-list > \" + componentCls + \"-submenu > \" + componentCls + \"-submenu-title,\\n > \" + componentCls + \"-submenu > \" + componentCls + \"-submenu-title\", (_ref12 = {\n insetInlineStart: 0,\n paddingInline: \"calc(50% - \" + fontSizeSM + \"px)\",\n textOverflow: 'clip'\n }, _defineProperty(_ref12, componentCls + \"-submenu-arrow\", {\n opacity: 0\n }), _defineProperty(_ref12, componentCls + \"-item-icon, \" + iconCls, {\n margin: 0,\n fontSize: fontSizeLG,\n lineHeight: menuItemHeight + \"px\",\n '+ span': {\n display: 'inline-block',\n opacity: 0\n }\n }), _ref12)), _defineProperty(_ref13, componentCls + \"-item-icon, \" + iconCls, {\n display: 'inline-block'\n }), _defineProperty(_ref13, '&-tooltip', (_tooltip = {\n pointerEvents: 'none'\n }, _defineProperty(_tooltip, componentCls + \"-item-icon, \" + iconCls, {\n display: 'none'\n }), _defineProperty(_tooltip, 'a, a:hover', {\n color: colorTextLightSolid\n }), _tooltip)), _defineProperty(_ref13, componentCls + \"-item-group-title\", _extends(_extends({}, textEllipsis), {\n paddingInline: paddingXS\n })), _ref13))];\n};\nexport default getVerticalStyle;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { TinyColor } from '@ctrl/tinycolor';\nimport { genCollapseMotion, initSlideMotion, initZoomMotion } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme';\nimport getHorizontalStyle from './horizontal';\nimport getRTLStyle from './rtl';\nimport getThemeStyle from './theme';\nimport getVerticalStyle from './vertical';\nimport { clearFix, resetComponent, resetIcon } from '../../style';\n// =============================== Base ===============================\nvar getBaseStyle = function getBaseStyle(token) {\n var _ref4, _ref8, _ref9, _extends3;\n var antCls = token.antCls,\n componentCls = token.componentCls,\n fontSize = token.fontSize,\n motionDurationSlow = token.motionDurationSlow,\n motionDurationMid = token.motionDurationMid,\n motionEaseInOut = token.motionEaseInOut,\n motionEaseOut = token.motionEaseOut,\n lineHeight = token.lineHeight,\n paddingXS = token.paddingXS,\n padding = token.padding,\n colorSplit = token.colorSplit,\n lineWidth = token.lineWidth,\n iconCls = token.iconCls,\n zIndexPopup = token.zIndexPopup,\n borderRadius = token.borderRadius,\n borderRadiusLG = token.borderRadiusLG,\n radiusSubMenuItem = token.radiusSubMenuItem,\n menuArrowSize = token.menuArrowSize,\n controlHeightSM = token.controlHeightSM,\n menuArrowOffset = token.menuArrowOffset,\n lineType = token.lineType,\n menuPanelMaskInset = token.menuPanelMaskInset;\n return [// Misc\n _defineProperty({\n '': _defineProperty({}, \"\" + componentCls, _extends(_extends({}, clearFix()), _defineProperty({}, \"&-hidden\", {\n display: 'none'\n })))\n }, componentCls + \"-submenu-hidden\", {\n display: 'none'\n }), _defineProperty({}, componentCls, _extends(_extends(_extends({}, resetComponent(token)), clearFix()), (_extends3 = {\n marginBottom: 0,\n paddingInlineStart: 0,\n // Override default ul/ol\n fontSize: fontSize,\n lineHeight: 0,\n listStyle: 'none',\n outline: 'none',\n transition: [\"background \" + motionDurationSlow, // Magic cubic here but smooth transition\n \"width \" + motionDurationSlow + \" cubic-bezier(0.2, 0, 0, 1) 0s\"].join(',')\n }, _defineProperty(_extends3, \"ul, ol\", {\n margin: 0,\n padding: 0,\n listStyle: 'none'\n }), _defineProperty(_extends3, \"&-overflow\", _defineProperty({\n display: 'flex'\n }, componentCls + \"-item\", {\n flex: 'none'\n })), _defineProperty(_extends3, componentCls + \"-item, \" + componentCls + \"-submenu, \" + componentCls + \"-submenu-title\", {\n borderRadius: token.radiusItem\n }), _defineProperty(_extends3, componentCls + \"-item-group-title\", {\n padding: paddingXS + \"px \" + padding + \"px\",\n fontSize: fontSize,\n lineHeight: lineHeight,\n transition: \"all \" + motionDurationSlow\n }), _defineProperty(_extends3, \"&-horizontal \" + componentCls + \"-submenu\", {\n transition: [\"border-color \" + motionDurationSlow + \" \" + motionEaseInOut, \"background \" + motionDurationSlow + \" \" + motionEaseInOut].join(',')\n }), _defineProperty(_extends3, componentCls + \"-submenu, \" + componentCls + \"-submenu-inline\", {\n transition: [\"border-color \" + motionDurationSlow + \" \" + motionEaseInOut, \"background \" + motionDurationSlow + \" \" + motionEaseInOut, \"padding \" + motionDurationMid + \" \" + motionEaseInOut].join(',')\n }), _defineProperty(_extends3, componentCls + \"-submenu \" + componentCls + \"-sub\", {\n cursor: 'initial',\n transition: [\"background \" + motionDurationSlow + \" \" + motionEaseInOut, \"padding \" + motionDurationSlow + \" \" + motionEaseInOut]\n }), _defineProperty(_extends3, componentCls + \"-title-content\", {\n transition: \"color \" + motionDurationSlow\n }), _defineProperty(_extends3, componentCls + \"-item a\", {\n '&::before': {\n position: 'absolute',\n inset: 0,\n backgroundColor: 'transparent',\n content: '\"\"'\n }\n }), _defineProperty(_extends3, componentCls + \"-item-divider\", {\n overflow: 'hidden',\n lineHeight: 0,\n borderColor: colorSplit,\n borderStyle: lineType,\n borderTopWidth: lineWidth,\n marginBlock: lineWidth,\n padding: 0,\n '&-dashed': {\n borderStyle: 'dashed'\n }\n }), _defineProperty(_extends3, componentCls + \"-item, \" + componentCls + \"-submenu-title\", (_ref4 = {\n position: 'relative',\n display: 'block',\n margin: 0,\n // paddingInline: menuItemPaddingInline,\n whiteSpace: 'nowrap',\n cursor: 'pointer',\n transition: [\"border-color \" + motionDurationSlow, \"background \" + motionDurationSlow, \"padding \" + motionDurationSlow + \" \" + motionEaseInOut].join(',')\n }, _defineProperty(_ref4, componentCls + \"-item-icon, \" + iconCls, {\n minWidth: fontSize,\n fontSize: fontSize,\n transition: [\"font-size \" + motionDurationMid + \" \" + motionEaseOut, \"margin \" + motionDurationSlow + \" \" + motionEaseInOut, \"color \" + motionDurationSlow].join(','),\n '+ span': {\n marginInlineStart: controlHeightSM - fontSize,\n opacity: 1,\n transition: [\"opacity \" + motionDurationSlow + \" \" + motionEaseInOut, \"margin \" + motionDurationSlow, \"color \" + motionDurationSlow].join(',')\n }\n }), _defineProperty(_ref4, componentCls + \"-item-icon\", _extends({}, resetIcon())), _defineProperty(_ref4, \"&\" + componentCls + \"-item-only-child\", _defineProperty({}, \"> \" + iconCls + \", > \" + componentCls + \"-item-icon\", {\n marginInlineEnd: 0\n })), _ref4)), _defineProperty(_extends3, componentCls + \"-item-disabled, \" + componentCls + \"-submenu-disabled\", _defineProperty({\n background: 'none !important',\n cursor: 'not-allowed',\n '&::after': {\n borderColor: 'transparent !important'\n },\n a: {\n color: 'inherit !important'\n }\n }, \"> \" + componentCls + \"-submenu-title\", {\n color: 'inherit !important',\n cursor: 'not-allowed'\n })), _defineProperty(_extends3, componentCls + \"-item-group\", _defineProperty({}, componentCls + \"-item-group-list\", _defineProperty({\n margin: 0,\n padding: 0\n }, componentCls + \"-item, \" + componentCls + \"-submenu-title\", {\n paddingInline: fontSize * 2 + \"px \" + padding + \"px\"\n }))), _defineProperty(_extends3, '&-submenu', _defineProperty({\n '&-popup': {\n position: 'absolute',\n zIndex: zIndexPopup,\n background: 'transparent',\n borderRadius: borderRadiusLG,\n boxShadow: 'none',\n transformOrigin: '0 0',\n // https://github.com/ant-design/ant-design/issues/13955\n '&::before': {\n position: 'absolute',\n inset: menuPanelMaskInset + \"px 0 0\",\n zIndex: -1,\n width: '100%',\n height: '100%',\n opacity: 0,\n content: '\"\"'\n }\n },\n // https://github.com/ant-design/ant-design/issues/13955\n '&-placement-rightTop::before': {\n top: 0,\n insetInlineStart: menuPanelMaskInset\n }\n }, \"> \" + componentCls, (_ref8 = {\n borderRadius: borderRadiusLG\n }, _defineProperty(_ref8, \"> \" + componentCls + \"-item\", {\n borderRadius: radiusSubMenuItem\n }), _defineProperty(_ref8, componentCls + \"-submenu-title::after\", {\n transition: \"transform \" + motionDurationSlow + \" \" + motionEaseInOut\n }), _ref8))), _defineProperty(_extends3, componentCls + \"-submenu\", (_ref9 = {}, _defineProperty(_ref9, \"&-expand-icon, &-arrow\", {\n position: 'absolute',\n top: '50%',\n insetInlineEnd: token.margin,\n width: menuArrowSize,\n color: 'currentcolor',\n transform: 'translateY(-50%)',\n transition: \"transform \" + motionDurationSlow + \" \" + motionEaseInOut\n }), _defineProperty(_ref9, '&-arrow', {\n // →\n '&::before, &::after': {\n position: 'absolute',\n width: menuArrowSize * 0.6,\n height: menuArrowSize * 0.15,\n backgroundColor: 'currentcolor',\n borderRadius: borderRadius,\n transition: [\"background \" + motionDurationSlow + \" \" + motionEaseInOut, \"transform \" + motionDurationSlow + \" \" + motionEaseInOut, \"top \" + motionDurationSlow + \" \" + motionEaseInOut, \"color \" + motionDurationSlow + \" \" + motionEaseInOut].join(','),\n content: '\"\"'\n },\n '&::before': {\n transform: \"rotate(45deg) translateY(-\" + menuArrowOffset + \")\"\n },\n '&::after': {\n transform: \"rotate(-45deg) translateY(\" + menuArrowOffset + \")\"\n }\n }), _ref9)), _defineProperty(_extends3, \"&-inline-collapsed \" + componentCls + \"-submenu-arrow,\\n &-inline \" + componentCls + \"-submenu-arrow\", {\n // ↓\n '&::before': {\n transform: \"rotate(-45deg) translateX(\" + menuArrowOffset + \")\"\n },\n '&::after': {\n transform: \"rotate(45deg) translateX(-\" + menuArrowOffset + \")\"\n }\n }), _defineProperty(_extends3, componentCls + \"-submenu-open\" + componentCls + \"-submenu-inline > \" + componentCls + \"-submenu-title > \" + componentCls + \"-submenu-arrow\", {\n // ↑\n transform: \"translateY(-\" + menuArrowSize * 0.2 + \"px)\",\n '&::after': {\n transform: \"rotate(-45deg) translateX(-\" + menuArrowOffset + \")\"\n },\n '&::before': {\n transform: \"rotate(45deg) translateX(\" + menuArrowOffset + \")\"\n }\n }), _extends3))), // Integration with header element so menu items have the same height\n _defineProperty({}, antCls + \"-layout-header\", _defineProperty({}, componentCls, {\n lineHeight: 'inherit'\n }))];\n};\n// ============================== Export ==============================\nexport default (function (prefixCls, injectStyle) {\n var useOriginHook = genComponentStyleHook('Menu', function (token, _ref13) {\n var overrideComponentToken = _ref13.overrideComponentToken;\n // Dropdown will handle menu style self. We do not need to handle this.\n if (injectStyle === false) {\n return [];\n }\n var colorPrimary = token.colorPrimary,\n colorError = token.colorError,\n colorErrorHover = token.colorErrorHover,\n colorTextLightSolid = token.colorTextLightSolid,\n colorTextSecondary = token.colorTextSecondary;\n var controlHeightLG = token.controlHeightLG,\n fontSize = token.fontSize;\n var menuArrowSize = fontSize / 7 * 5;\n // Menu Token\n var menuToken = mergeToken(token, {\n menuItemHeight: controlHeightLG,\n menuItemPaddingInline: token.margin,\n menuItemMarginInline: token.marginXXS,\n menuArrowSize: menuArrowSize,\n menuHorizontalHeight: controlHeightLG * 1.15,\n menuArrowOffset: menuArrowSize * 0.25 + \"px\",\n menuPanelMaskInset: -7 // Still a hardcode here since it's offset by rc-align\n });\n\n var menuDarkToken = mergeToken(menuToken, {\n colorItemText: new TinyColor(colorTextLightSolid).setAlpha(0.65).toRgbString(),\n colorItemTextHover: colorTextLightSolid,\n colorGroupTitle: colorTextSecondary,\n colorItemTextSelected: colorTextLightSolid,\n colorItemBg: '#001529',\n colorSubItemBg: '#000c17',\n colorItemBgActive: 'transparent',\n colorItemBgSelected: colorPrimary,\n colorActiveBarWidth: 0,\n colorActiveBarHeight: 0,\n colorActiveBarBorderSize: 0,\n // Disabled\n colorItemTextDisabled: new TinyColor(colorTextLightSolid).setAlpha(0.25).toRgbString(),\n // Danger\n colorDangerItemText: colorError,\n colorDangerItemTextHover: colorErrorHover,\n colorDangerItemTextSelected: colorTextLightSolid,\n colorDangerItemBgActive: colorError,\n colorDangerItemBgSelected: colorError\n }, _extends({}, overrideComponentToken));\n return [\n // Basic\n getBaseStyle(menuToken),\n // Horizontal\n getHorizontalStyle(menuToken),\n // Vertical\n getVerticalStyle(menuToken),\n // Theme\n getThemeStyle(menuToken, 'light'), getThemeStyle(menuDarkToken, 'dark'),\n // RTL\n getRTLStyle(menuToken),\n // Motion\n genCollapseMotion(menuToken), initSlideMotion(menuToken, 'slide-up'), initSlideMotion(menuToken, 'slide-down'), initZoomMotion(menuToken, 'zoom-big')];\n }, function (token) {\n var colorPrimary = token.colorPrimary,\n colorError = token.colorError,\n colorTextDisabled = token.colorTextDisabled,\n colorErrorBg = token.colorErrorBg,\n colorText = token.colorText,\n colorTextDescription = token.colorTextDescription,\n colorBgContainer = token.colorBgContainer,\n colorFillAlter = token.colorFillAlter,\n colorFillContent = token.colorFillContent,\n lineWidth = token.lineWidth,\n lineWidthBold = token.lineWidthBold,\n controlItemBgActiveHover = token.controlItemBgActiveHover,\n colorBgTextHover = token.colorBgTextHover;\n return {\n dropdownWidth: 160,\n zIndexPopup: token.zIndexPopupBase + 50,\n radiusItem: token.borderRadiusLG,\n radiusSubMenuItem: token.borderRadiusSM,\n colorItemText: colorText,\n colorItemTextHover: colorText,\n colorItemTextHoverHorizontal: colorPrimary,\n colorGroupTitle: colorTextDescription,\n colorItemTextSelected: colorText,\n colorItemTextSelectedHorizontal: colorPrimary,\n colorItemBg: colorBgContainer,\n colorItemBgHover: colorBgTextHover,\n colorItemBgActive: colorFillContent,\n colorSubItemBg: colorFillAlter,\n colorItemBgSelected: controlItemBgActiveHover,\n colorItemBgSelectedHorizontal: 'transparent',\n colorActiveBarWidth: 0,\n colorActiveBarHeight: lineWidthBold,\n colorActiveBarBorderSize: lineWidth,\n // Disabled\n colorItemTextDisabled: colorTextDisabled,\n // Danger\n colorDangerItemText: colorError,\n colorDangerItemTextHover: colorError,\n colorDangerItemTextSelected: colorError,\n colorDangerItemBgActive: colorErrorBg,\n colorDangerItemBgSelected: colorErrorBg,\n itemMarginInline: token.marginXXS\n };\n });\n return useOriginHook(prefixCls);\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport { Divider } from 'rc-menu';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nvar MenuDivider = function MenuDivider(_a) {\n var customizePrefixCls = _a.prefixCls,\n className = _a.className,\n dashed = _a.dashed,\n restProps = __rest(_a, [\"prefixCls\", \"className\", \"dashed\"]);\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n var prefixCls = getPrefixCls('menu', customizePrefixCls);\n var classString = classNames(_defineProperty({}, prefixCls + \"-item-divider-dashed\", !!dashed), className);\n return /*#__PURE__*/React.createElement(Divider, _extends({\n className: classString\n }, restProps));\n};\nexport default MenuDivider;","import { createContext } from 'react';\nvar MenuContext = /*#__PURE__*/createContext({\n prefixCls: '',\n firstLevel: true,\n inlineCollapsed: false\n});\nexport default MenuContext;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport { Item } from 'rc-menu';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport * as React from 'react';\nimport { SiderContext } from '../layout/Sider';\nimport Tooltip from '../tooltip';\nimport { cloneElement, isValidElement } from '../_util/reactNode';\nimport MenuContext from './MenuContext';\nvar MenuItem = /*#__PURE__*/function (_React$Component) {\n _inherits(MenuItem, _React$Component);\n var _super = _createSuper(MenuItem);\n function MenuItem() {\n var _this;\n _classCallCheck(this, MenuItem);\n _this = _super.apply(this, arguments);\n _this.renderItem = function (_ref) {\n var _classNames;\n var siderCollapsed = _ref.siderCollapsed;\n var _a;\n var _this$context = _this.context,\n prefixCls = _this$context.prefixCls,\n firstLevel = _this$context.firstLevel,\n inlineCollapsed = _this$context.inlineCollapsed,\n direction = _this$context.direction,\n disableMenuItemTitleTooltip = _this$context.disableMenuItemTitleTooltip;\n var _this$props = _this.props,\n className = _this$props.className,\n children = _this$props.children;\n var _b = _this.props,\n title = _b.title,\n icon = _b.icon,\n danger = _b.danger,\n rest = __rest(_b, [\"title\", \"icon\", \"danger\"]);\n var tooltipTitle = title;\n if (typeof title === 'undefined') {\n tooltipTitle = firstLevel ? children : '';\n } else if (title === false) {\n tooltipTitle = '';\n }\n var tooltipProps = {\n title: tooltipTitle\n };\n if (!siderCollapsed && !inlineCollapsed) {\n tooltipProps.title = null;\n // Reset `open` to fix control mode tooltip display not correct\n // ref: https://github.com/ant-design/ant-design/issues/16742\n tooltipProps.open = false;\n }\n var childrenLength = toArray(children).length;\n var returnNode = /*#__PURE__*/React.createElement(Item, _extends({}, rest, {\n className: classNames((_classNames = {}, _defineProperty(_classNames, prefixCls + \"-item-danger\", danger), _defineProperty(_classNames, prefixCls + \"-item-only-child\", (icon ? childrenLength + 1 : childrenLength) === 1), _classNames), className),\n title: typeof title === 'string' ? title : undefined\n }), cloneElement(icon, {\n className: classNames(isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '', prefixCls + \"-item-icon\")\n }), _this.renderItemChildren(inlineCollapsed));\n if (!disableMenuItemTitleTooltip) {\n returnNode = /*#__PURE__*/React.createElement(Tooltip, _extends({}, tooltipProps, {\n placement: direction === 'rtl' ? 'left' : 'right',\n overlayClassName: prefixCls + \"-inline-collapsed-tooltip\"\n }), returnNode);\n }\n return returnNode;\n };\n return _this;\n }\n _createClass(MenuItem, [{\n key: \"renderItemChildren\",\n value: function renderItemChildren(inlineCollapsed) {\n var _this$context2 = this.context,\n prefixCls = _this$context2.prefixCls,\n firstLevel = _this$context2.firstLevel;\n var _this$props2 = this.props,\n icon = _this$props2.icon,\n children = _this$props2.children;\n var wrapNode = /*#__PURE__*/React.createElement(\"span\", {\n className: prefixCls + \"-title-content\"\n }, children);\n // inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性,则内部包裹一个 span\n // ref: https://github.com/ant-design/ant-design/pull/23456\n if (!icon || isValidElement(children) && children.type === 'span') {\n if (children && inlineCollapsed && firstLevel && typeof children === 'string') {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: prefixCls + \"-inline-collapsed-noicon\"\n }, children.charAt(0));\n }\n }\n return wrapNode;\n }\n }, {\n key: \"render\",\n value: function render() {\n return /*#__PURE__*/React.createElement(SiderContext.Consumer, null, this.renderItem);\n }\n }]);\n return MenuItem;\n}(React.Component);\nexport { MenuItem as default };\nMenuItem.contextType = MenuContext;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport classNames from 'classnames';\nimport { SubMenu as RcSubMenu, useFullPath } from 'rc-menu';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { cloneElement, isValidElement } from '../_util/reactNode';\nimport MenuContext from './MenuContext';\nfunction SubMenu(props) {\n var _a;\n var popupClassName = props.popupClassName,\n icon = props.icon,\n title = props.title,\n customTheme = props.theme;\n var context = React.useContext(MenuContext);\n var prefixCls = context.prefixCls,\n inlineCollapsed = context.inlineCollapsed,\n contextTheme = context.theme,\n mode = context.mode;\n var parentPath = useFullPath();\n var titleNode;\n if (!icon) {\n titleNode = inlineCollapsed && !parentPath.length && title && typeof title === 'string' ? /*#__PURE__*/React.createElement(\"div\", {\n className: prefixCls + \"-inline-collapsed-noicon\"\n }, title.charAt(0)) : /*#__PURE__*/React.createElement(\"span\", {\n className: prefixCls + \"-title-content\"\n }, title);\n } else {\n // inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性,则内部包裹一个 span\n // ref: https://github.com/ant-design/ant-design/pull/23456\n var titleIsSpan = isValidElement(title) && title.type === 'span';\n titleNode = /*#__PURE__*/React.createElement(React.Fragment, null, cloneElement(icon, {\n className: classNames(isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '', prefixCls + \"-item-icon\")\n }), titleIsSpan ? title : /*#__PURE__*/React.createElement(\"span\", {\n className: prefixCls + \"-title-content\"\n }, title));\n }\n var contextValue = React.useMemo(function () {\n return _extends(_extends({}, context), {\n firstLevel: false\n });\n }, [context]);\n var popupOffset = mode === 'horizontal' ? [0, 8] : [10, 0];\n return /*#__PURE__*/React.createElement(MenuContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(RcSubMenu, _extends({\n popupOffset: popupOffset\n }, omit(props, ['icon']), {\n title: titleNode,\n popupClassName: classNames(prefixCls, popupClassName, prefixCls + \"-\" + (customTheme || contextTheme))\n })));\n}\nexport default SubMenu;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { ItemGroup } from 'rc-menu';\nimport * as React from 'react';\nimport MenuDivider from '../MenuDivider';\nimport MenuItem from '../MenuItem';\nimport SubMenu from '../SubMenu';\nfunction convertItemsToNodes(list) {\n return (list || []).map(function (opt, index) {\n if (opt && _typeof(opt) === 'object') {\n var _a = opt,\n label = _a.label,\n children = _a.children,\n key = _a.key,\n type = _a.type,\n restProps = __rest(_a, [\"label\", \"children\", \"key\", \"type\"]);\n var mergedKey = key !== null && key !== void 0 ? key : \"tmp-\" + index;\n // MenuItemGroup & SubMenuItem\n if (children || type === 'group') {\n if (type === 'group') {\n // Group\n return /*#__PURE__*/React.createElement(ItemGroup, _extends({\n key: mergedKey\n }, restProps, {\n title: label\n }), convertItemsToNodes(children));\n }\n // Sub Menu\n return /*#__PURE__*/React.createElement(SubMenu, _extends({\n key: mergedKey\n }, restProps, {\n title: label\n }), convertItemsToNodes(children));\n }\n // MenuItem & Divider\n if (type === 'divider') {\n return /*#__PURE__*/React.createElement(MenuDivider, _extends({\n key: mergedKey\n }, restProps));\n }\n return /*#__PURE__*/React.createElement(MenuItem, _extends({\n key: mergedKey\n }, restProps), label);\n }\n return null;\n }).filter(function (opt) {\n return opt;\n });\n}\n// FIXME: Move logic here in v5\n/**\n * We simply convert `items` to ReactNode for reuse origin component logic. But we need move all the\n * logic from component into this hooks when in v5\n */\nexport default function useItems(items) {\n return React.useMemo(function () {\n if (!items) {\n return items;\n }\n return convertItemsToNodes(items);\n }, [items]);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport RcMenu from 'rc-menu';\nimport * as React from 'react';\nimport { forwardRef } from 'react';\nimport omit from \"rc-util/es/omit\";\nimport useEvent from \"rc-util/es/hooks/useEvent\";\nimport classNames from 'classnames';\nimport EllipsisOutlined from \"@ant-design/icons/es/icons/EllipsisOutlined\";\nimport warning from '../_util/warning';\nimport initCollapseMotion from '../_util/motion';\nimport { cloneElement } from '../_util/reactNode';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nimport OverrideContext from './OverrideContext';\nimport useItems from './hooks/useItems';\nimport MenuContext from './MenuContext';\nvar InternalMenu = /*#__PURE__*/forwardRef(function (props, ref) {\n var _a;\n var override = React.useContext(OverrideContext);\n var overrideObj = override || {};\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls,\n getPopupContainer = _React$useContext.getPopupContainer,\n direction = _React$useContext.direction;\n var rootPrefixCls = getPrefixCls();\n var customizePrefixCls = props.prefixCls,\n className = props.className,\n _props$theme = props.theme,\n theme = _props$theme === void 0 ? 'light' : _props$theme,\n expandIcon = props.expandIcon,\n _internalDisableMenuItemTitleTooltip = props._internalDisableMenuItemTitleTooltip,\n inlineCollapsed = props.inlineCollapsed,\n siderCollapsed = props.siderCollapsed,\n items = props.items,\n children = props.children,\n rootClassName = props.rootClassName,\n mode = props.mode,\n selectable = props.selectable,\n onClick = props.onClick,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"theme\", \"expandIcon\", \"_internalDisableMenuItemTitleTooltip\", \"inlineCollapsed\", \"siderCollapsed\", \"items\", \"children\", \"rootClassName\", \"mode\", \"selectable\", \"onClick\"]);\n var passedProps = omit(restProps, ['collapsedWidth']);\n // ========================= Items ===========================\n var mergedChildren = useItems(items) || children;\n // ======================== Warning ==========================\n process.env.NODE_ENV !== \"production\" ? warning(!('inlineCollapsed' in props && mode !== 'inline'), 'Menu', '`inlineCollapsed` should only be used when `mode` is inline.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!(props.siderCollapsed !== undefined && 'inlineCollapsed' in props), 'Menu', '`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning('items' in props && !children, 'Menu', '`children` will be removed in next major version. Please use `items` instead.') : void 0;\n (_a = overrideObj.validator) === null || _a === void 0 ? void 0 : _a.call(overrideObj, {\n mode: mode\n });\n // ========================== Click ==========================\n // Tell dropdown that item clicked\n var onItemClick = useEvent(function () {\n var _a;\n onClick === null || onClick === void 0 ? void 0 : onClick.apply(void 0, arguments);\n (_a = overrideObj.onClick) === null || _a === void 0 ? void 0 : _a.call(overrideObj);\n });\n // ========================== Mode ===========================\n var mergedMode = overrideObj.mode || mode;\n // ======================= Selectable ========================\n var mergedSelectable = selectable !== null && selectable !== void 0 ? selectable : overrideObj.selectable;\n // ======================== Collapsed ========================\n // Inline Collapsed\n var mergedInlineCollapsed = React.useMemo(function () {\n if (siderCollapsed !== undefined) {\n return siderCollapsed;\n }\n return inlineCollapsed;\n }, [inlineCollapsed, siderCollapsed]);\n var defaultMotions = {\n horizontal: {\n motionName: rootPrefixCls + \"-slide-up\"\n },\n inline: initCollapseMotion(rootPrefixCls),\n other: {\n motionName: rootPrefixCls + \"-zoom-big\"\n }\n };\n var prefixCls = getPrefixCls('menu', customizePrefixCls || overrideObj.prefixCls);\n var _useStyle = useStyle(prefixCls, !override),\n _useStyle2 = _slicedToArray(_useStyle, 2),\n wrapSSR = _useStyle2[0],\n hashId = _useStyle2[1];\n var menuClassName = classNames(prefixCls + \"-\" + theme, className);\n // ====================== Expand Icon ========================\n var mergedExpandIcon;\n if (typeof expandIcon === 'function') {\n mergedExpandIcon = expandIcon;\n } else {\n mergedExpandIcon = cloneElement(expandIcon || overrideObj.expandIcon, {\n className: prefixCls + \"-submenu-expand-icon\"\n });\n }\n // ======================== Context ==========================\n var contextValue = React.useMemo(function () {\n return {\n prefixCls: prefixCls,\n inlineCollapsed: mergedInlineCollapsed || false,\n direction: direction,\n firstLevel: true,\n theme: theme,\n mode: mergedMode,\n disableMenuItemTitleTooltip: _internalDisableMenuItemTitleTooltip\n };\n }, [prefixCls, mergedInlineCollapsed, direction, _internalDisableMenuItemTitleTooltip, theme]);\n // ========================= Render ==========================\n return wrapSSR( /*#__PURE__*/React.createElement(OverrideContext.Provider, {\n value: null\n }, /*#__PURE__*/React.createElement(MenuContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(RcMenu, _extends({\n getPopupContainer: getPopupContainer,\n overflowedIndicator: /*#__PURE__*/React.createElement(EllipsisOutlined, null),\n overflowedIndicatorPopupClassName: prefixCls + \"-\" + theme,\n mode: mergedMode,\n selectable: mergedSelectable,\n onClick: onItemClick\n }, passedProps, {\n inlineCollapsed: mergedInlineCollapsed,\n className: menuClassName,\n prefixCls: prefixCls,\n direction: direction,\n defaultMotions: defaultMotions,\n expandIcon: mergedExpandIcon,\n ref: ref,\n rootClassName: classNames(rootClassName, hashId)\n }), mergedChildren))));\n});\nexport default InternalMenu;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { ItemGroup } from 'rc-menu';\nimport * as React from 'react';\nimport { forwardRef, useImperativeHandle, useRef } from 'react';\nimport InternalMenu from './menu';\nimport { SiderContext } from '../layout/Sider';\nimport MenuDivider from './MenuDivider';\nimport Item from './MenuItem';\nimport SubMenu from './SubMenu';\nvar Menu = /*#__PURE__*/forwardRef(function (props, ref) {\n var menuRef = useRef(null);\n var context = React.useContext(SiderContext);\n useImperativeHandle(ref, function () {\n return {\n focus: function focus(options) {\n var _a;\n (_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.focus(options);\n },\n menu: menuRef.current\n };\n });\n return /*#__PURE__*/React.createElement(InternalMenu, _extends({\n ref: menuRef\n }, props, context));\n});\nMenu.Divider = MenuDivider;\nMenu.Item = Item;\nMenu.SubMenu = SubMenu;\nMenu.ItemGroup = ItemGroup;\nexport default Menu;"],"names":[],"sourceRoot":""}