@swiftcrab/crab 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/_util/ActionButton.js +1 -1
- package/es/_util/ContextIsolator.js +1 -1
- package/es/_util/PurePanel.js +1 -1
- package/es/_util/hooks/useZIndex.js +1 -1
- package/es/_util/motion.js +1 -1
- package/es/_util/responsiveObserver.js +1 -1
- package/es/_util/wave/WaveEffect.js +1 -1
- package/es/_util/wave/index.js +1 -1
- package/es/_util/wave/interface.js +1 -1
- package/es/_util/wave/style.js +1 -1
- package/es/_util/wave/useWave.js +1 -1
- package/es/affix/index.js +1 -1
- package/es/affix/style/index.js +1 -1
- package/es/alert/Alert.js +1 -1
- package/es/alert/ErrorBoundary.js +1 -1
- package/es/alert/index.js +1 -1
- package/es/alert/style/index.js +1 -1
- package/es/anchor/Anchor.js +1 -1
- package/es/anchor/AnchorLink.js +1 -1
- package/es/anchor/index.js +1 -1
- package/es/anchor/style/index.js +1 -1
- package/es/app/index.js +1 -1
- package/es/app/style/index.js +1 -1
- package/es/auto-complete/index.js +1 -1
- package/es/avatar/avatar.js +1 -1
- package/es/avatar/group.js +1 -1
- package/es/avatar/index.js +1 -1
- package/es/avatar/style/index.js +1 -1
- package/es/badge/Ribbon.js +1 -1
- package/es/badge/ScrollNumber.js +1 -1
- package/es/badge/index.js +1 -1
- package/es/badge/style/index.js +1 -1
- package/es/badge/style/ribbon.js +1 -1
- package/es/breadcrumb/Breadcrumb.js +1 -1
- package/es/breadcrumb/BreadcrumbItem.js +1 -1
- package/es/breadcrumb/BreadcrumbSeparator.js +1 -1
- package/es/breadcrumb/index.js +1 -1
- package/es/breadcrumb/style/index.js +1 -1
- package/es/button/button-group.js +1 -1
- package/es/button/button.js +1 -1
- package/es/button/index.js +1 -1
- package/es/button/style/compact.js +1 -1
- package/es/button/style/index.js +1 -1
- package/es/button/style/token.js +1 -1
- package/es/calendar/Header.js +1 -1
- package/es/calendar/generateCalendar.js +1 -1
- package/es/calendar/index.js +1 -1
- package/es/calendar/style/index.js +1 -1
- package/es/calendar-panel/index.d.ts +7 -0
- package/es/calendar-panel/index.js +40 -0
- package/es/calendar-panel/style/index.d.ts +4 -0
- package/es/calendar-panel/style/index.js +35 -0
- package/es/calendar-panel/style/style.d.ts +1 -0
- package/es/calendar-panel/style/style.js +639 -0
- package/es/calendar-panel/types.d.ts +158 -0
- package/es/calendar-panel/types.js +0 -0
- package/es/calendar-panel/utils.d.ts +39 -0
- package/es/calendar-panel/utils.js +1 -0
- package/es/card/Card.js +1 -1
- package/es/card/Grid.js +1 -1
- package/es/card/Meta.js +1 -1
- package/es/card/index.js +1 -1
- package/es/card/style/index.js +1 -1
- package/es/carousel/index.js +1 -1
- package/es/carousel/style/index.js +1 -1
- package/es/cascader/Panel.js +1 -1
- package/es/cascader/hooks/useBase.js +1 -1
- package/es/cascader/index.js +1 -1
- package/es/cascader/style/columns.js +1 -1
- package/es/cascader/style/index.js +1 -1
- package/es/cascader/style/panel.js +1 -1
- package/es/checkbox/Checkbox.js +1 -1
- package/es/checkbox/Group.js +1 -1
- package/es/checkbox/index.js +1 -1
- package/es/checkbox/style/index.js +1 -1
- package/es/clap-overflow/index.d.ts +19 -0
- package/es/clap-overflow/index.js +40 -0
- package/es/clap-overflow/style/index.d.ts +16 -0
- package/es/clap-overflow/style/index.js +35 -0
- package/es/col/index.js +1 -1
- package/es/collapse/Collapse.js +1 -1
- package/es/collapse/CollapsePanel.js +1 -1
- package/es/collapse/index.js +1 -1
- package/es/collapse/style/index.js +1 -1
- package/es/color-picker/ColorPicker.js +1 -1
- package/es/color-picker/ColorPickerPanel.js +1 -1
- package/es/color-picker/components/ColorAlphaInput.js +1 -1
- package/es/color-picker/components/ColorHexInput.js +1 -1
- package/es/color-picker/components/ColorHsbInput.js +1 -1
- package/es/color-picker/components/ColorInput.js +1 -1
- package/es/color-picker/components/ColorPresets.js +1 -1
- package/es/color-picker/components/ColorRgbInput.js +1 -1
- package/es/color-picker/components/ColorSlider.js +1 -1
- package/es/color-picker/components/ColorSteppers.js +1 -1
- package/es/color-picker/components/PanelPicker/GradientColorBar.js +1 -1
- package/es/color-picker/components/PanelPicker/index.js +1 -1
- package/es/color-picker/components/PanelPresets.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/color-picker/style/index.js +1 -1
- package/es/config-provider/MotionWrapper.js +1 -1
- package/es/config-provider/defaultRenderEmpty.js +1 -1
- package/es/config-provider/hooks/useCSSVarCls.js +1 -1
- package/es/config-provider/hooks/useTheme.js +1 -1
- package/es/config-provider/index.js +1 -1
- package/es/config-provider/style/index.js +1 -1
- package/es/date-picker/PickerButton.js +1 -1
- package/es/date-picker/generatePicker/generateRangePicker.js +1 -1
- package/es/date-picker/generatePicker/generateSinglePicker.js +1 -1
- package/es/date-picker/generatePicker/index.js +1 -1
- package/es/date-picker/generatePicker/useComponents.js +1 -1
- package/es/date-picker/index.js +1 -1
- package/es/date-picker/style/index.js +1 -1
- package/es/date-picker/style/multiple.js +1 -1
- package/es/date-picker/style/token.js +1 -1
- package/es/date-picker/style/variants.js +1 -1
- package/es/descriptions/hooks/useItems.js +1 -1
- package/es/descriptions/index.js +1 -1
- package/es/descriptions/style/index.js +1 -1
- package/es/divider/index.js +1 -1
- package/es/divider/style/index.js +1 -1
- package/es/drawer/DrawerPanel.js +1 -1
- package/es/drawer/index.js +1 -1
- package/es/drawer/style/index.js +1 -1
- package/es/dropdown/dropdown-button.js +1 -1
- package/es/dropdown/dropdown.js +1 -1
- package/es/dropdown/index.js +1 -1
- package/es/dropdown/style/index.js +1 -1
- package/es/empty/empty.js +1 -1
- package/es/empty/index.js +1 -1
- package/es/empty/simple.js +1 -1
- package/es/empty/style/index.js +1 -1
- package/es/flex/index.js +1 -1
- package/es/flex/style/index.js +1 -1
- package/es/form/ErrorList.js +1 -1
- package/es/form/Form.js +1 -1
- package/es/form/FormItem/ItemHolder.js +1 -1
- package/es/form/FormItem/index.js +1 -1
- package/es/form/FormItemInput.js +1 -1
- package/es/form/FormItemLabel.js +1 -1
- package/es/form/FormList.js +1 -1
- package/es/form/hooks/useVariants.js +1 -1
- package/es/form/index.js +1 -1
- package/es/form/style/fallbackCmp.js +1 -1
- package/es/form/style/index.js +1 -1
- package/es/form-area/ValidateTooltip.js +102 -102
- package/es/form-area/index.js +102 -102
- package/es/form-area/renderItemMap.js +102 -102
- package/es/gantt/index.d.ts +4 -0
- package/es/gantt/index.js +101 -0
- package/es/gantt/style/index.d.ts +4 -0
- package/es/gantt/style/index.js +35 -0
- package/es/gantt/style/style.d.ts +1 -0
- package/es/gantt/style/style.js +372 -0
- package/es/gantt/type.d.ts +138 -0
- package/es/gantt/type.js +0 -0
- package/es/gantt/utils.d.ts +36 -0
- package/es/gantt/utils.js +1 -0
- package/es/grid/col.js +1 -1
- package/es/grid/hooks/useBreakpoint.js +1 -1
- package/es/grid/index.js +1 -1
- package/es/grid/row.js +1 -1
- package/es/grid/style/index.js +1 -1
- package/es/hooks/index.js +102 -102
- package/es/hooks/useForm.d.ts +12 -33
- package/es/hooks/useForm.js +102 -102
- package/es/hour-panel/index.d.ts +4 -0
- package/es/hour-panel/index.js +99 -0
- package/es/hour-panel/style/index.d.ts +12 -0
- package/es/hour-panel/style/index.js +35 -0
- package/es/hour-panel/style/style.d.ts +1 -0
- package/es/hour-panel/style/style.js +351 -0
- package/es/hour-panel/types.d.ts +145 -0
- package/es/hour-panel/types.js +1 -0
- package/es/hour-panel/utils.d.ts +31 -0
- package/es/hour-panel/utils.js +1 -0
- package/es/image/PreviewGroup.js +1 -1
- package/es/image/index.js +1 -1
- package/es/image/style/index.js +1 -1
- package/es/index.d.ts +11 -1
- package/es/index.js +89 -89
- package/es/input/Group.js +1 -1
- package/es/input/Input.js +1 -1
- package/es/input/OTP/OTPInput.js +1 -1
- package/es/input/OTP/index.js +1 -1
- package/es/input/Password.js +1 -1
- package/es/input/Search.js +1 -1
- package/es/input/TextArea.js +1 -1
- package/es/input/index.js +1 -1
- package/es/input/style/index.js +1 -1
- package/es/input/style/otp.js +1 -1
- package/es/input/style/token.js +1 -1
- package/es/input/style/variants.js +1 -1
- package/es/input-number/index.js +1 -1
- package/es/input-number/style/index.js +1 -1
- package/es/input-number/style/token.js +1 -1
- package/es/layout/Sider.js +1 -1
- package/es/layout/hooks/useHasSider.js +1 -1
- package/es/layout/index.js +1 -1
- package/es/layout/layout.js +1 -1
- package/es/layout/style/index.js +1 -1
- package/es/layout/style/sider.js +1 -1
- package/es/list/Item.js +1 -1
- package/es/list/index.js +1 -1
- package/es/list/style/index.js +1 -1
- package/es/mentions/index.js +1 -1
- package/es/mentions/style/index.js +1 -1
- package/es/menu/MenuDivider.js +1 -1
- package/es/menu/MenuItem.js +1 -1
- package/es/menu/OverrideContext.js +1 -1
- package/es/menu/SubMenu.js +1 -1
- package/es/menu/index.js +1 -1
- package/es/menu/menu.js +1 -1
- package/es/menu/style/index.js +1 -1
- package/es/message/PurePanel.js +1 -1
- package/es/message/index.js +1 -1
- package/es/message/style/index.js +1 -1
- package/es/message/useMessage.js +1 -1
- package/es/modal/ConfirmDialog.js +1 -1
- package/es/modal/Modal.js +1 -1
- package/es/modal/PurePanel.js +1 -1
- package/es/modal/components/ConfirmCancelBtn.js +1 -1
- package/es/modal/components/ConfirmOkBtn.js +1 -1
- package/es/modal/components/NormalCancelBtn.js +1 -1
- package/es/modal/components/NormalOkBtn.js +1 -1
- package/es/modal/confirm.js +1 -1
- package/es/modal/index.js +1 -1
- package/es/modal/shared.js +1 -1
- package/es/modal/style/confirm.js +1 -1
- package/es/modal/style/index.js +1 -1
- package/es/modal/useModal/HookModal.js +1 -1
- package/es/modal/useModal/index.js +1 -1
- package/es/notification/PurePanel.js +1 -1
- package/es/notification/index.js +1 -1
- package/es/notification/style/index.js +1 -1
- package/es/notification/style/pure-panel.js +1 -1
- package/es/notification/useNotification.js +1 -1
- package/es/pagination/Pagination.js +1 -1
- package/es/pagination/index.js +1 -1
- package/es/pagination/style/bordered.js +1 -1
- package/es/pagination/style/index.js +1 -1
- package/es/popconfirm/PurePanel.js +1 -1
- package/es/popconfirm/index.js +1 -1
- package/es/popconfirm/style/index.js +1 -1
- package/es/popover/PurePanel.js +1 -1
- package/es/popover/index.js +1 -1
- package/es/popover/style/index.js +1 -1
- package/es/progress/Circle.js +1 -1
- package/es/progress/Line.js +1 -1
- package/es/progress/index.js +1 -1
- package/es/progress/progress.js +1 -1
- package/es/progress/style/index.js +1 -1
- package/es/qr-code/QrcodeStatus.js +1 -1
- package/es/qr-code/index.js +1 -1
- package/es/qr-code/style/index.js +1 -1
- package/es/qrcode/index.js +1 -1
- package/es/qrcode/style/index.js +1 -1
- package/es/radio/group.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/radio/radio.js +1 -1
- package/es/radio/radioButton.js +1 -1
- package/es/radio/style/index.js +1 -1
- package/es/rate/index.js +1 -1
- package/es/rate/style/index.js +1 -1
- package/es/result/index.js +1 -1
- package/es/result/style/index.js +1 -1
- package/es/row/index.js +1 -1
- package/es/search-area/index.js +102 -102
- package/es/segmented/index.js +1 -1
- package/es/segmented/style/index.js +1 -1
- package/es/select/index.js +1 -1
- package/es/select/style/index.js +1 -1
- package/es/select/style/multiple.js +1 -1
- package/es/select/style/single.js +1 -1
- package/es/skeleton/Avatar.js +1 -1
- package/es/skeleton/Button.js +1 -1
- package/es/skeleton/Image.js +1 -1
- package/es/skeleton/Input.js +1 -1
- package/es/skeleton/Node.js +1 -1
- package/es/skeleton/Skeleton.js +1 -1
- package/es/skeleton/index.js +1 -1
- package/es/skeleton/style/index.js +1 -1
- package/es/slider/SliderTooltip.js +1 -1
- package/es/slider/index.js +1 -1
- package/es/slider/style/index.js +1 -1
- package/es/space/Compact.js +1 -1
- package/es/space/index.js +1 -1
- package/es/space/style/index.js +1 -1
- package/es/spin/index.js +1 -1
- package/es/spin/style/index.js +1 -1
- package/es/splitter/Splitter.js +1 -1
- package/es/splitter/index.js +1 -1
- package/es/splitter/style/index.js +1 -1
- package/es/statistic/Countdown.js +1 -1
- package/es/statistic/Statistic.js +1 -1
- package/es/statistic/index.js +1 -1
- package/es/statistic/style/index.js +1 -1
- package/es/steps/index.js +1 -1
- package/es/steps/style/index.js +1 -1
- package/es/switch/index.js +1 -1
- package/es/switch/style/index.js +1 -1
- package/es/table/InternalTable.js +1 -1
- package/es/table/Table.js +1 -1
- package/es/table/hooks/useFilter/FilterDropdown.js +1 -1
- package/es/table/hooks/useFilter/FilterSearch.js +1 -1
- package/es/table/hooks/useFilter/index.js +1 -1
- package/es/table/hooks/useSelection.js +1 -1
- package/es/table/hooks/useSorter.js +1 -1
- package/es/table/index.js +1 -1
- package/es/table/style/index.js +1 -1
- package/es/tabs/hooks/useAnimateConfig.js +1 -1
- package/es/tabs/index.js +1 -1
- package/es/tabs/style/index.js +1 -1
- package/es/tag/CheckableTag.js +1 -1
- package/es/tag/index.js +1 -1
- package/es/tag/style/index.js +1 -1
- package/es/tag/style/presetCmp.js +1 -1
- package/es/tag/style/statusCmp.js +1 -1
- package/es/theme/index.js +1 -1
- package/es/theme/interface/components.d.ts +11 -2
- package/es/theme/internal.js +1 -1
- package/es/theme/useToken.js +1 -1
- package/es/theme/util/genStyleUtils.js +1 -1
- package/es/theme/util/useResetIconStyle.js +1 -1
- package/es/time-out/index.d.ts +18 -0
- package/es/time-out/index.js +40 -0
- package/es/time-out/style/index.d.ts +31 -0
- package/es/time-out/style/index.js +35 -0
- package/es/time-out/style/style.d.ts +1 -0
- package/es/time-out/style/style.js +104 -0
- package/es/time-picker/index.js +1 -1
- package/es/timeline/Timeline.js +1 -1
- package/es/timeline/TimelineItem.js +1 -1
- package/es/timeline/TimelineItemList.js +1 -1
- package/es/timeline/index.js +1 -1
- package/es/timeline/style/index.js +1 -1
- package/es/tooltip/PurePanel.js +1 -1
- package/es/tooltip/index.js +1 -1
- package/es/tooltip/style/index.js +1 -1
- package/es/tour/PurePanel.js +1 -1
- package/es/tour/index.js +1 -1
- package/es/tour/panelRender.js +1 -1
- package/es/tour/style/index.js +1 -1
- package/es/transfer/ListBody.js +1 -1
- package/es/transfer/ListItem.js +1 -1
- package/es/transfer/index.js +1 -1
- package/es/transfer/list.js +1 -1
- package/es/transfer/operation.js +1 -1
- package/es/transfer/search.js +1 -1
- package/es/transfer/style/index.js +1 -1
- package/es/tree/DirectoryTree.js +1 -1
- package/es/tree/Tree.js +1 -1
- package/es/tree/index.js +1 -1
- package/es/tree/style/index.js +1 -1
- package/es/tree-select/index.js +1 -1
- package/es/tree-select/style/index.js +1 -1
- package/es/type/index.js +89 -89
- package/es/typography/Base/CopyBtn.js +1 -1
- package/es/typography/Base/EllipsisTooltip.js +1 -1
- package/es/typography/Base/index.js +1 -1
- package/es/typography/Editable.js +1 -1
- package/es/typography/Link.js +1 -1
- package/es/typography/Paragraph.js +1 -1
- package/es/typography/Text.js +1 -1
- package/es/typography/Title.js +1 -1
- package/es/typography/Typography.js +1 -1
- package/es/typography/index.js +1 -1
- package/es/typography/style/index.js +1 -1
- package/es/upload/Dragger.js +1 -1
- package/es/upload/Upload.js +1 -1
- package/es/upload/UploadList/ListItem.js +1 -1
- package/es/upload/UploadList/index.js +1 -1
- package/es/upload/index.js +1 -1
- package/es/upload/style/index.js +1 -1
- package/es/utils/common.d.ts +41 -0
- package/es/utils/common.js +4 -4
- package/es/utils/index.js +4 -4
- package/es/version/index.js +1 -1
- package/es/watermark/index.js +1 -1
- package/package.json +1 -1
- package/umd/index.min.js +147 -147
package/es/type/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import*as ue from'react';import ue__default,{createContext,useContext,forwardRef,useMemo,useState,useRef,Children,useEffect,useImperativeHandle,memo,isValidElement,useCallback}from'react';import ki from'classnames';import XS from'rc-resize-observer';import fx from'rc-util/lib/omit';import yS from'rc-util/lib/raf';import {createTheme,Keyframes,unit,useCacheToken,useStyleRegister,getComputedToken}from'@ant-design/cssinjs';import QE from'@ant-design/icons/lib/components/Context';import KE from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import'rc-util/lib/warning';import fE from'rc-pagination/lib/locale/en_US';import mE from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate,gold,blue}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import ME from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import B1 from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import bk,{CSSMotionList,Provider}from'rc-motion';import gk from'@ant-design/icons/CheckCircleFilled';import yk from'@ant-design/icons/CloseCircleFilled';import Ck from'@ant-design/icons/CloseOutlined';import hk from'@ant-design/icons/ExclamationCircleFilled';import Sk from'@ant-design/icons/InfoCircleFilled';import xk from'rc-util/lib/pickAttrs';import {composeRef,useComposeRef,supportNodeRef,getNodeRef,supportRef}from'rc-util/lib/ref';import Du from'rc-util/lib/hooks/useEvent';import Ak from'scroll-into-view-if-needed';import {useNotification,NotificationProvider,Notice}from'rc-notification';import Xw from'@ant-design/icons/LoadingOutlined';import {flushSync}from'react-dom';import {unmount,render}from'rc-util/lib/React/render';import XB from'rc-util/lib/hooks/useState';import I4 from'rc-util/lib/Dom/isVisible';import kv from'rc-util/lib/Children/toArray';import pH,{ColorBlock,Color}from'@rc-component/color-picker';import e0 from'rc-util/lib/hooks/useMergedState';import cv from'@ant-design/icons/RightOutlined';import J4 from'rc-collapse';import QD,{Panel as Panel$1}from'rc-dialog';import f7,{useWatch,FieldContext,ListContext,Field,List,useForm,FormProvider}from'rc-field-form';import {isStyleSupport}from'rc-util/lib/Dom/styleChecker';import v3,{Option,OptGroup}from'rc-select';import C3 from'@ant-design/icons/CheckOutlined';import b3 from'@ant-design/icons/DownOutlined';import T3 from'@ant-design/icons/SearchOutlined';import mh from'rc-util/lib/hooks/useLayoutEffect';import Cw from'rc-util/lib/KeyCode';import aA,{Popup}from'rc-tooltip';import kF from'rc-dropdown';import SF,{ItemGroup,Divider,useFullPath,SubMenu,Item}from'rc-menu';import _A from'@ant-design/icons/BarsOutlined';import sv from'@ant-design/icons/LeftOutlined';import hF from'@ant-design/icons/EllipsisOutlined';import FO from'rc-picker/lib/generate/dayjs';import ZH,{PickerPanel,RangePicker}from'rc-picker';import eO from'rc-checkbox';import JO from'@ant-design/icons/PlusOutlined';import ez from'rc-tabs';import $z from'@ant-design/react-slick';import x0,{Panel}from'rc-cascader';import IL from'rc-segmented';import OL from'@ant-design/icons/UpOutlined';import zL from'rc-input-number';import i6 from'rc-input';import {triggerFocus}from'rc-input/lib/utils/commonUtils';import y6 from'@ant-design/icons/EyeInvisibleOutlined';import C6 from'@ant-design/icons/EyeOutlined';import N6 from'rc-textarea';import oH,{UnstableContext}from'rc-slider';import GH from'@ant-design/icons/CalendarOutlined';import VH from'@ant-design/icons/ClockCircleOutlined';import _H from'@ant-design/icons/SwapRightOutlined';import $8 from'rc-drawer';import {getDOM}from'rc-util/lib/Dom/findDOMNode';import {get,set,useMergedState,useEvent}from'rc-util';import R7 from'@ant-design/icons/QuestionCircleOutlined';import m9 from'rc-image';import l9 from'@ant-design/icons/RotateLeftOutlined';import s9 from'@ant-design/icons/RotateRightOutlined';import A$ from'@ant-design/icons/SwapOutlined';import c9 from'@ant-design/icons/ZoomInOutlined';import p9 from'@ant-design/icons/ZoomOutOutlined';import j$ from'@ant-design/icons/DoubleLeftOutlined';import U$ from'@ant-design/icons/DoubleRightOutlined';import B9 from'rc-pagination';import {debounce}from'throttle-debounce';import yR from'rc-mentions';import {Circle}from'rc-progress';import {QRCodeCanvas,QRCodeSVG}from'@rc-component/qrcode';import {CloseOutlined,ReloadOutlined}from'@ant-design/icons';import EG from'@ant-design/icons/StarFilled';import BG from'rc-rate';import qG from'@ant-design/icons/WarningFilled';import s1 from'rc-steps';import qV from'rc-switch';import {genTable,genVirtualTable,EXPAND_COLUMN,Summary,INTERNAL_HOOKS,INTERNAL_COL_DEFINE}from'rc-table';import {conductExpandParent,arrDel,arrAdd}from'rc-tree/lib/util';import {conductCheck}from'rc-tree/lib/utils/conductUtil';import {convertDataToEntities,convertTreeToData,fillFieldNames}from'rc-tree/lib/utils/treeUtil';import {convertChildrenToColumns}from'rc-table/lib/hooks/useColumns';import j_ from'@ant-design/icons/FilterFilled';import I_,{TreeNode}from'rc-tree';import b_ from'@ant-design/icons/FileOutlined';import M_ from'@ant-design/icons/FolderOpenOutlined';import E_ from'@ant-design/icons/FolderOutlined';import $_ from'@ant-design/icons/HolderOutlined';import S_ from'@ant-design/icons/CaretDownFilled';import T_ from'@ant-design/icons/MinusSquareOutlined';import v_ from'@ant-design/icons/PlusSquareOutlined';import Q_ from'@ant-design/icons/CaretDownOutlined';import J_ from'@ant-design/icons/CaretUpOutlined';import yU from'@rc-component/tour';import xU from'@ant-design/icons/DeleteOutlined';import qU,{TreeNode as TreeNode$1,SHOW_ALL,SHOW_PARENT,SHOW_CHILD}from'rc-tree-select';import Nq from'@ant-design/icons/EditOutlined';import aq from'@ant-design/icons/EnterOutlined';import cq from'copy-to-clipboard';import Tq from'@ant-design/icons/CopyOutlined';import Qw from'rc-upload';import nX from'@ant-design/icons/FileTwoTone';import iX from'@ant-design/icons/PaperClipOutlined';import aX from'@ant-design/icons/PictureTwoTone';import eX from'@ant-design/icons/DownloadOutlined';import {useMutateObserver}from'@rc-component/mutate-observer';import {useMemoizedFn,useCreation}from'ahooks';import {uniq,isEqual,isEqualWith,isNaN as isNaN$1,isNil}from'lodash';import tK from'lodash/debounce';import'@ahooksjs/use-url-state';import {useSensors,useSensor,PointerSensor,DndContext,closestCenter,DragOverlay,pointerWithin,rectIntersection,getFirstCollision,useDroppable}from'@dnd-kit/core';import {restrictToHorizontalAxis,restrictToVerticalAxis}from'@dnd-kit/modifiers';import {arrayMove,SortableContext,horizontalListSortingStrategy,verticalListSortingStrategy,useSortable}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';var eE=Object.create;var rf=Object.defineProperty;var tE=Object.getOwnPropertyDescriptor;var oE=Object.getOwnPropertyNames;var rE=Object.getPrototypeOf,nE=Object.prototype.hasOwnProperty;var we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),iE=(e,t)=>{for(var o in t)rf(e,o,{get:t[o],enumerable:true});},aE=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of oE(t))!nE.call(e,n)&&n!==o&&rf(e,n,{get:()=>t[n],enumerable:!(r=tE(t,n))||r.enumerable});return e};var lE=(e,t,o)=>(o=e!=null?eE(rE(e)):{},aE(rf(o,"default",{value:e,enumerable:true}),e));var gl=we((Z_e,HN)=>{HN.exports=TypeError;});var WN=we(()=>{});var cp=we((eje,l2)=>{var Yh=typeof Map=="function"&&Map.prototype,Wh=Object.getOwnPropertyDescriptor&&Yh?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Vu=Yh&&Wh&&typeof Wh.get=="function"?Wh.get:null,GN=Yh&&Map.prototype.forEach,Zh=typeof Set=="function"&&Set.prototype,Gh=Object.getOwnPropertyDescriptor&&Zh?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_u=Zh&&Gh&&typeof Gh.get=="function"?Gh.get:null,VN=Zh&&Set.prototype.forEach,SY=typeof WeakMap=="function"&&WeakMap.prototype,ap=SY?WeakMap.prototype.has:null,bY=typeof WeakSet=="function"&&WeakSet.prototype,lp=bY?WeakSet.prototype.has:null,xY=typeof WeakRef=="function"&&WeakRef.prototype,_N=xY?WeakRef.prototype.deref:null,TY=Boolean.prototype.valueOf,vY=Object.prototype.toString,PY=Function.prototype.toString,$Y=String.prototype.match,Qh=String.prototype.slice,ia=String.prototype.replace,RY=String.prototype.toUpperCase,jN=String.prototype.toLowerCase,e2=RegExp.prototype.test,UN=Array.prototype.concat,vn=Array.prototype.join,IY=Array.prototype.slice,qN=Math.floor,jh=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Vh=Object.getOwnPropertySymbols,Uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="object",sp=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Ds||true)?Symbol.toStringTag:null,t2=Object.prototype.propertyIsEnumerable,XN=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function KN(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||e2.call(/e/,t))return t;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-qN(-e):qN(e);if(r!==e){var n=String(r),i=Qh.call(t,n.length+1);return ia.call(n,o,"$&_")+"."+ia.call(ia.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ia.call(t,o,"$&_")}var qh=WN(),YN=qh.custom,ZN=n2(YN)?YN:null,o2={__proto__:null,double:'"',single:"'"},wY={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};l2.exports=function e(t,o,r,n){var i=o||{};if(ii(i,"quoteStyle")&&!ii(o2,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ii(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=ii(i,"customInspect")?i.customInspect:true;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ii(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ii(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof t>"u")return "undefined";if(t===null)return "null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return a2(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?KN(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?KN(t,c):c}var p=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=p&&p>0&&typeof t=="object")return Xh(t)?"[Array]":"[Object]";var d=UY(i,r);if(typeof n>"u")n=[];else if(i2(n,t)>=0)return "[Circular]";function m(E,w,N){if(w&&(n=IY.call(n),n.push(w)),N){var A={depth:i.depth};return ii(i,"quoteStyle")&&(A.quoteStyle=i.quoteStyle),e(E,A,r+1,n)}return e(E,i,r+1,n)}if(typeof t=="function"&&!QN(t)){var f=OY(t),u=Gu(t,m);return "[Function"+(f?": "+f:" (anonymous)")+"]"+(u.length>0?" { "+vn.call(u,", ")+" }":"")}if(n2(t)){var g=Ds?ia.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Uh.call(t);return typeof t=="object"&&!Ds?ip(g):g}if(VY(t)){for(var y="<"+jN.call(String(t.nodeName)),S=t.attributes||[],h=0;h<S.length;h++)y+=" "+S[h].name+"="+r2(NY(S[h].value),"double",i);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+="</"+jN.call(String(t.nodeName))+">",y}if(Xh(t)){if(t.length===0)return "[]";var C=Gu(t,m);return d&&!jY(C)?"["+Kh(C,d)+"]":"[ "+vn.call(C,", ")+" ]"}if(EY(t)){var b=Gu(t,m);return !("cause"in Error.prototype)&&"cause"in t&&!t2.call(t,"cause")?"{ ["+String(t)+"] "+vn.call(UN.call("[cause]: "+m(t.cause),b),", ")+" }":b.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+vn.call(b,", ")+" }"}if(typeof t=="object"&&a){if(ZN&&typeof t[ZN]=="function"&&qh)return qh(t,{depth:p-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(zY(t)){var v=[];return GN&&GN.call(t,function(E,w){v.push(m(w,t,true)+" => "+m(E,t));}),JN("Map",Vu.call(t),v,d)}if(WY(t)){var x=[];return VN&&VN.call(t,function(E){x.push(m(E,t));}),JN("Set",_u.call(t),x,d)}if(LY(t))return _h("WeakMap");if(GY(t))return _h("WeakSet");if(HY(t))return _h("WeakRef");if(BY(t))return ip(m(Number(t)));if(AY(t))return ip(m(jh.call(t)));if(DY(t))return ip(TY.call(t));if(kY(t))return ip(m(String(t)));if(typeof window<"u"&&t===window)return "{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return "{ [object globalThis] }";if(!MY(t)&&!QN(t)){var T=Gu(t,m),$=XN?XN(t)===Object.prototype:t instanceof Object||t.constructor===Object,R=t instanceof Object?"":"null prototype",P=!$&&sp&&Object(t)===t&&sp in t?Qh.call(aa(t),8,-1):R?"Object":"",I=$||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",M=I+(P||R?"["+vn.call(UN.call([],P||[],R||[]),": ")+"] ":"");return T.length===0?M+"{}":d?M+"{"+Kh(T,d)+"}":M+"{ "+vn.call(T,", ")+" }"}return String(t)};function r2(e,t,o){var r=o.quoteStyle||t,n=o2[r];return n+e+n}function NY(e){return ia.call(String(e),/"/g,""")}function yl(e){return !sp||!(typeof e=="object"&&(sp in e||typeof e[sp]<"u"))}function Xh(e){return aa(e)==="[object Array]"&&yl(e)}function MY(e){return aa(e)==="[object Date]"&&yl(e)}function QN(e){return aa(e)==="[object RegExp]"&&yl(e)}function EY(e){return aa(e)==="[object Error]"&&yl(e)}function kY(e){return aa(e)==="[object String]"&&yl(e)}function BY(e){return aa(e)==="[object Number]"&&yl(e)}function DY(e){return aa(e)==="[object Boolean]"&&yl(e)}function n2(e){if(Ds)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return true;if(!e||typeof e!="object"||!Uh)return false;try{return Uh.call(e),!0}catch{}return false}function AY(e){if(!e||typeof e!="object"||!jh)return false;try{return jh.call(e),!0}catch{}return false}var FY=Object.prototype.hasOwnProperty||function(e){return e in this};function ii(e,t){return FY.call(e,t)}function aa(e){return vY.call(e)}function OY(e){if(e.name)return e.name;var t=$Y.call(PY.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function i2(e,t){if(e.indexOf)return e.indexOf(t);for(var o=0,r=e.length;o<r;o++)if(e[o]===t)return o;return -1}function zY(e){if(!Vu||!e||typeof e!="object")return false;try{Vu.call(e);try{_u.call(e);}catch{return !0}return e instanceof Map}catch{}return false}function LY(e){if(!ap||!e||typeof e!="object")return false;try{ap.call(e,ap);try{lp.call(e,lp);}catch{return !0}return e instanceof WeakMap}catch{}return false}function HY(e){if(!_N||!e||typeof e!="object")return false;try{return _N.call(e),!0}catch{}return false}function WY(e){if(!_u||!e||typeof e!="object")return false;try{_u.call(e);try{Vu.call(e);}catch{return !0}return e instanceof Set}catch{}return false}function GY(e){if(!lp||!e||typeof e!="object")return false;try{lp.call(e,lp);try{ap.call(e,ap);}catch{return !0}return e instanceof WeakSet}catch{}return false}function VY(e){return !e||typeof e!="object"?false:typeof HTMLElement<"u"&&e instanceof HTMLElement?true:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function a2(e,t){if(e.length>t.maxStringLength){var o=e.length-t.maxStringLength,r="... "+o+" more character"+(o>1?"s":"");return a2(Qh.call(e,0,t.maxStringLength),t)+r}var n=wY[t.quoteStyle||"single"];n.lastIndex=0;var i=ia.call(ia.call(e,n,"\\$1"),/[\x00-\x1f]/g,_Y);return r2(i,"single",t)}function _Y(e){var t=e.charCodeAt(0),o={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return o?"\\"+o:"\\x"+(t<16?"0":"")+RY.call(t.toString(16))}function ip(e){return "Object("+e+")"}function _h(e){return e+" { ? }"}function JN(e,t,o,r){var n=r?Kh(o,r):vn.call(o,", ");return e+" ("+t+") {"+n+"}"}function jY(e){for(var t=0;t<e.length;t++)if(i2(e[t],`
|
|
2
|
-
`)>=0)return false;return true}function
|
|
3
|
-
`+t.prev+t.base;return o+
|
|
4
|
-
`+t.prev}function Gu(e,t){var o=Xh(e),r=[];if(o){r.length=e.length;for(var n=0;n<e.length;n++)r[n]=ii(e,n)?t(e[n],e):"";}var i=typeof Vh=="function"?Vh(e):[],a;if(Ds){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l];}for(var s in e)ii(e,s)&&(o&&String(Number(s))===s&&s<e.length||Ds&&a["$"+s]instanceof Symbol||(e2.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof Vh=="function")for(var c=0;c<i.length;c++)t2.call(e,i[c])&&r.push("["+t(i[c])+"]: "+t(e[i[c]],e));return r}});var c2=we((tje,s2)=>{var qY=cp(),XY=gl(),ju=function(e,t,o){for(var r=e,n;(n=r.next)!=null;r=n)if(n.key===t)return r.next=n.next,o||(n.next=e.next,e.next=n),n},KY=function(e,t){if(e){var o=ju(e,t);return o&&o.value}},YY=function(e,t,o){var r=ju(e,t);r?r.value=o:e.next={key:t,next:e.next,value:o};},ZY=function(e,t){return e?!!ju(e,t):false},QY=function(e,t){if(e)return ju(e,t,true)};s2.exports=function(){var t,o={assert:function(r){if(!o.has(r))throw new XY("Side channel does not contain "+qY(r))},delete:function(r){var n=t&&t.next,i=QY(t,r);return i&&n&&n===i&&(t=void 0),!!i},get:function(r){return KY(t,r)},has:function(r){return ZY(t,r)},set:function(r,n){t||(t={next:void 0}),YY(t,r,n);}};return o};});var Jh=we((oje,p2)=>{p2.exports=Object;});var m2=we((rje,d2)=>{d2.exports=Error;});var f2=we((nje,u2)=>{u2.exports=EvalError;});var y2=we((ije,g2)=>{g2.exports=RangeError;});var h2=we((aje,C2)=>{C2.exports=ReferenceError;});var b2=we((lje,S2)=>{S2.exports=SyntaxError;});var T2=we((sje,x2)=>{x2.exports=URIError;});var P2=we((cje,v2)=>{v2.exports=Math.abs;});var R2=we((pje,$2)=>{$2.exports=Math.floor;});var w2=we((dje,I2)=>{I2.exports=Math.max;});var M2=we((mje,N2)=>{N2.exports=Math.min;});var k2=we((uje,E2)=>{E2.exports=Math.pow;});var D2=we((fje,B2)=>{B2.exports=Math.round;});var F2=we((gje,A2)=>{A2.exports=Number.isNaN||function(t){return t!==t};});var z2=we((yje,O2)=>{var JY=F2();O2.exports=function(t){return JY(t)||t===0?t:t<0?-1:1};});var H2=we((Cje,L2)=>{L2.exports=Object.getOwnPropertyDescriptor;});var eS=we((hje,W2)=>{var Uu=H2();if(Uu)try{Uu([],"length");}catch{Uu=null;}W2.exports=Uu;});var V2=we((Sje,G2)=>{var qu=Object.defineProperty||false;if(qu)try{qu({},"a",{value:1});}catch{qu=false;}G2.exports=qu;});var j2=we((bje,_2)=>{_2.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return false;if(typeof Symbol.iterator=="symbol")return true;var t={},o=Symbol("test"),r=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return false;var n=42;t[o]=n;for(var i in t)return false;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return false;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==o||!Object.prototype.propertyIsEnumerable.call(t,o))return false;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,o);if(l.value!==n||l.enumerable!==true)return false}return true};});var X2=we((xje,q2)=>{var U2=typeof Symbol<"u"&&Symbol,eZ=j2();q2.exports=function(){return typeof U2!="function"||typeof Symbol!="function"||typeof U2("foo")!="symbol"||typeof Symbol("bar")!="symbol"?false:eZ()};});var tS=we((Tje,K2)=>{K2.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null;});var oS=we((vje,Y2)=>{var tZ=Jh();Y2.exports=tZ.getPrototypeOf||null;});var J2=we((Pje,Q2)=>{var oZ="Function.prototype.bind called on incompatible ",rZ=Object.prototype.toString,nZ=Math.max,iZ="[object Function]",Z2=function(t,o){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<o.length;i+=1)r[i+t.length]=o[i];return r},aZ=function(t,o){for(var r=[],n=o,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r},lZ=function(e,t){for(var o="",r=0;r<e.length;r+=1)o+=e[r],r+1<e.length&&(o+=t);return o};Q2.exports=function(t){var o=this;if(typeof o!="function"||rZ.apply(o)!==iZ)throw new TypeError(oZ+o);for(var r=aZ(arguments,1),n,i=function(){if(this instanceof n){var p=o.apply(this,Z2(r,arguments));return Object(p)===p?p:this}return o.apply(t,Z2(r,arguments))},a=nZ(0,o.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(n=Function("binder","return function ("+lZ(l,",")+"){ return binder.apply(this,arguments); }")(i),o.prototype){var c=function(){};c.prototype=o.prototype,n.prototype=new c,c.prototype=null;}return n};});var pp=we(($je,eM)=>{var sZ=J2();eM.exports=Function.prototype.bind||sZ;});var Xu=we((Rje,tM)=>{tM.exports=Function.prototype.call;});var rS=we((Ije,oM)=>{oM.exports=Function.prototype.apply;});var nM=we((wje,rM)=>{rM.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply;});var aM=we((Nje,iM)=>{var cZ=pp(),pZ=rS(),dZ=Xu(),mZ=nM();iM.exports=mZ||cZ.call(dZ,pZ);});var nS=we((Mje,lM)=>{var uZ=pp(),fZ=gl(),gZ=Xu(),yZ=aM();lM.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new fZ("a function is required");return yZ(uZ,gZ,t)};});var uM=we((Eje,mM)=>{var CZ=nS(),sM=eS(),pM;try{pM=[].__proto__===Array.prototype;}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var iS=!!pM&&sM&&sM(Object.prototype,"__proto__"),dM=Object,cM=dM.getPrototypeOf;mM.exports=iS&&typeof iS.get=="function"?CZ([iS.get]):typeof cM=="function"?function(t){return cM(t==null?t:dM(t))}:false;});var hM=we((kje,CM)=>{var fM=tS(),gM=oS(),yM=uM();CM.exports=fM?function(t){return fM(t)}:gM?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return gM(t)}:yM?function(t){return yM(t)}:null;});var bM=we((Bje,SM)=>{var hZ=Function.prototype.call,SZ=Object.prototype.hasOwnProperty,bZ=pp();SM.exports=bZ.call(hZ,SZ);});var Zu=we((Dje,RM)=>{var ze,xZ=Jh(),TZ=m2(),vZ=f2(),PZ=y2(),$Z=h2(),zs=b2(),Os=gl(),RZ=T2(),IZ=P2(),wZ=R2(),NZ=w2(),MZ=M2(),EZ=k2(),kZ=D2(),BZ=z2(),PM=Function,aS=function(e){try{return PM('"use strict"; return ('+e+").constructor;")()}catch{}},dp=eS(),DZ=V2(),lS=function(){throw new Os},AZ=dp?(function(){try{return arguments.callee,lS}catch{try{return dp(arguments,"callee").get}catch{return lS}}})():lS,As=X2()(),io=hM(),FZ=oS(),OZ=tS(),$M=rS(),mp=Xu(),Fs={},zZ=typeof Uint8Array>"u"||!io?ze:io(Uint8Array),Cl={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ze:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ze:ArrayBuffer,"%ArrayIteratorPrototype%":As&&io?io([][Symbol.iterator]()):ze,"%AsyncFromSyncIteratorPrototype%":ze,"%AsyncFunction%":Fs,"%AsyncGenerator%":Fs,"%AsyncGeneratorFunction%":Fs,"%AsyncIteratorPrototype%":Fs,"%Atomics%":typeof Atomics>"u"?ze:Atomics,"%BigInt%":typeof BigInt>"u"?ze:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ze:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ze:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ze:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":TZ,"%eval%":eval,"%EvalError%":vZ,"%Float16Array%":typeof Float16Array>"u"?ze:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ze:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ze:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ze:FinalizationRegistry,"%Function%":PM,"%GeneratorFunction%":Fs,"%Int8Array%":typeof Int8Array>"u"?ze:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ze:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ze:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":As&&io?io(io([][Symbol.iterator]())):ze,"%JSON%":typeof JSON=="object"?JSON:ze,"%Map%":typeof Map>"u"?ze:Map,"%MapIteratorPrototype%":typeof Map>"u"||!As||!io?ze:io(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":xZ,"%Object.getOwnPropertyDescriptor%":dp,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ze:Promise,"%Proxy%":typeof Proxy>"u"?ze:Proxy,"%RangeError%":PZ,"%ReferenceError%":$Z,"%Reflect%":typeof Reflect>"u"?ze:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ze:Set,"%SetIteratorPrototype%":typeof Set>"u"||!As||!io?ze:io(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ze:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":As&&io?io(""[Symbol.iterator]()):ze,"%Symbol%":As?Symbol:ze,"%SyntaxError%":zs,"%ThrowTypeError%":AZ,"%TypedArray%":zZ,"%TypeError%":Os,"%Uint8Array%":typeof Uint8Array>"u"?ze:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ze:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ze:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ze:Uint32Array,"%URIError%":RZ,"%WeakMap%":typeof WeakMap>"u"?ze:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ze:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ze:WeakSet,"%Function.prototype.call%":mp,"%Function.prototype.apply%":$M,"%Object.defineProperty%":DZ,"%Object.getPrototypeOf%":FZ,"%Math.abs%":IZ,"%Math.floor%":wZ,"%Math.max%":NZ,"%Math.min%":MZ,"%Math.pow%":EZ,"%Math.round%":kZ,"%Math.sign%":BZ,"%Reflect.getPrototypeOf%":OZ};if(io)try{null.error;}catch(e){xM=io(io(e)),Cl["%Error.prototype%"]=xM;}var xM,LZ=function e(t){var o;if(t==="%AsyncFunction%")o=aS("async function () {}");else if(t==="%GeneratorFunction%")o=aS("function* () {}");else if(t==="%AsyncGeneratorFunction%")o=aS("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(o=r.prototype);}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&io&&(o=io(n.prototype));}return Cl[t]=o,o},TM={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},up=pp(),Ku=bM(),HZ=up.call(mp,Array.prototype.concat),WZ=up.call($M,Array.prototype.splice),vM=up.call(mp,String.prototype.replace),Yu=up.call(mp,String.prototype.slice),GZ=up.call(mp,RegExp.prototype.exec),VZ=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,_Z=/\\(\\)?/g,jZ=function(t){var o=Yu(t,0,1),r=Yu(t,-1);if(o==="%"&&r!=="%")throw new zs("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&o!=="%")throw new zs("invalid intrinsic syntax, expected opening `%`");var n=[];return vM(t,VZ,function(i,a,l,s){n[n.length]=l?vM(s,_Z,"$1"):a||i;}),n},UZ=function(t,o){var r=t,n;if(Ku(TM,r)&&(n=TM[r],r="%"+n[0]+"%"),Ku(Cl,r)){var i=Cl[r];if(i===Fs&&(i=LZ(r)),typeof i>"u"&&!o)throw new Os("intrinsic "+t+" exists, but is not available. Please file an issue!");return {alias:n,name:r,value:i}}throw new zs("intrinsic "+t+" does not exist!")};RM.exports=function(t,o){if(typeof t!="string"||t.length===0)throw new Os("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new Os('"allowMissing" argument must be a boolean');if(GZ(/^%?[^%]*%?$/,t)===null)throw new zs("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=jZ(t),n=r.length>0?r[0]:"",i=UZ("%"+n+"%",o),a=i.name,l=i.value,s=false,c=i.alias;c&&(n=c[0],WZ(r,HZ([0,1],c)));for(var p=1,d=true;p<r.length;p+=1){var m=r[p],f=Yu(m,0,1),u=Yu(m,-1);if((f==='"'||f==="'"||f==="`"||u==='"'||u==="'"||u==="`")&&f!==u)throw new zs("property names with quotes must have matching quotes");if((m==="constructor"||!d)&&(s=true),n+="."+m,a="%"+n+"%",Ku(Cl,a))l=Cl[a];else if(l!=null){if(!(m in l)){if(!o)throw new Os("base intrinsic for "+t+" exists, but the property is not available.");return}if(dp&&p+1>=r.length){var g=dp(l,m);d=!!g,d&&"get"in g&&!("originalValue"in g.get)?l=g.get:l=l[m];}else d=Ku(l,m),l=l[m];d&&!s&&(Cl[a]=l);}}return l};});var sS=we((Aje,NM)=>{var IM=Zu(),wM=nS(),qZ=wM([IM("%String.prototype.indexOf%")]);NM.exports=function(t,o){var r=IM(t,!!o);return typeof r=="function"&&qZ(t,".prototype.")>-1?wM([r]):r};});var cS=we((Fje,EM)=>{var XZ=Zu(),fp=sS(),KZ=cp(),YZ=gl(),MM=XZ("%Map%",true),ZZ=fp("Map.prototype.get",true),QZ=fp("Map.prototype.set",true),JZ=fp("Map.prototype.has",true),eQ=fp("Map.prototype.delete",true),tQ=fp("Map.prototype.size",true);EM.exports=!!MM&&function(){var t,o={assert:function(r){if(!o.has(r))throw new YZ("Side channel does not contain "+KZ(r))},delete:function(r){if(t){var n=eQ(t,r);return tQ(t)===0&&(t=void 0),n}return false},get:function(r){if(t)return ZZ(t,r)},has:function(r){return t?JZ(t,r):false},set:function(r,n){t||(t=new MM),QZ(t,r,n);}};return o};});var BM=we((Oje,kM)=>{var oQ=Zu(),Ju=sS(),rQ=cp(),Qu=cS(),nQ=gl(),Ls=oQ("%WeakMap%",true),iQ=Ju("WeakMap.prototype.get",true),aQ=Ju("WeakMap.prototype.set",true),lQ=Ju("WeakMap.prototype.has",true),sQ=Ju("WeakMap.prototype.delete",true);kM.exports=Ls?function(){var t,o,r={assert:function(n){if(!r.has(n))throw new nQ("Side channel does not contain "+rQ(n))},delete:function(n){if(Ls&&n&&(typeof n=="object"||typeof n=="function")){if(t)return sQ(t,n)}else if(Qu&&o)return o.delete(n);return false},get:function(n){return Ls&&n&&(typeof n=="object"||typeof n=="function")&&t?iQ(t,n):o&&o.get(n)},has:function(n){return Ls&&n&&(typeof n=="object"||typeof n=="function")&&t?lQ(t,n):!!o&&o.has(n)},set:function(n,i){Ls&&n&&(typeof n=="object"||typeof n=="function")?(t||(t=new Ls),aQ(t,n,i)):Qu&&(o||(o=Qu()),o.set(n,i));}};return r}:Qu;});var AM=we((zje,DM)=>{var cQ=gl(),pQ=cp(),dQ=c2(),mQ=cS(),uQ=BM(),fQ=uQ||mQ||dQ;DM.exports=function(){var t,o={assert:function(r){if(!o.has(r))throw new cQ("Side channel does not contain "+pQ(r))},delete:function(r){return !!t&&t.delete(r)},get:function(r){return t&&t.get(r)},has:function(r){return !!t&&t.has(r)},set:function(r,n){t||(t=fQ()),t.set(r,n);}};return o};});var ef=we((Lje,FM)=>{var gQ=String.prototype.replace,yQ=/%20/g,pS={RFC1738:"RFC1738",RFC3986:"RFC3986"};FM.exports={default:pS.RFC3986,formatters:{RFC1738:function(e){return gQ.call(e,yQ,"+")},RFC3986:function(e){return String(e)}},RFC1738:pS.RFC1738,RFC3986:pS.RFC3986};});var uS=we((Hje,zM)=>{var CQ=ef(),dS=Object.prototype.hasOwnProperty,hl=Array.isArray,Pn=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),hQ=function(t){for(;t.length>1;){var o=t.pop(),r=o.obj[o.prop];if(hl(r)){for(var n=[],i=0;i<r.length;++i)typeof r[i]<"u"&&n.push(r[i]);o.obj[o.prop]=n;}}},OM=function(t,o){for(var r=o&&o.plainObjects?{__proto__:null}:{},n=0;n<t.length;++n)typeof t[n]<"u"&&(r[n]=t[n]);return r},SQ=function e(t,o,r){if(!o)return t;if(typeof o!="object"&&typeof o!="function"){if(hl(t))t.push(o);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!dS.call(Object.prototype,o))&&(t[o]=true);else return [t,o];return t}if(!t||typeof t!="object")return [t].concat(o);var n=t;return hl(t)&&!hl(o)&&(n=OM(t,r)),hl(t)&&hl(o)?(o.forEach(function(i,a){if(dS.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i);}else t[a]=i;}),t):Object.keys(o).reduce(function(i,a){var l=o[a];return dS.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},n)},bQ=function(t,o){return Object.keys(o).reduce(function(r,n){return r[n]=o[n],r},t)},xQ=function(e,t,o){var r=e.replace(/\+/g," ");if(o==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},mS=1024,TQ=function(t,o,r,n,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(f){return "%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;s+=mS){for(var c=a.length>=mS?a.slice(s,s+mS):a,p=[],d=0;d<c.length;++d){var m=c.charCodeAt(d);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===CQ.RFC1738&&(m===40||m===41)){p[p.length]=c.charAt(d);continue}if(m<128){p[p.length]=Pn[m];continue}if(m<2048){p[p.length]=Pn[192|m>>6]+Pn[128|m&63];continue}if(m<55296||m>=57344){p[p.length]=Pn[224|m>>12]+Pn[128|m>>6&63]+Pn[128|m&63];continue}d+=1,m=65536+((m&1023)<<10|c.charCodeAt(d)&1023),p[p.length]=Pn[240|m>>18]+Pn[128|m>>12&63]+Pn[128|m>>6&63]+Pn[128|m&63];}l+=p.join("");}return l},vQ=function(t){for(var o=[{obj:{o:t},prop:"o"}],r=[],n=0;n<o.length;++n)for(var i=o[n],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var c=l[s],p=a[c];typeof p=="object"&&p!==null&&r.indexOf(p)===-1&&(o.push({obj:a,prop:c}),r.push(p));}return hQ(o),t},PQ=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},$Q=function(t){return !t||typeof t!="object"?false:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},RQ=function(t,o){return [].concat(t,o)},IQ=function(t,o){if(hl(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(o(t[n]));return r}return o(t)};zM.exports={arrayToObject:OM,assign:bQ,combine:RQ,compact:vQ,decode:xQ,encode:TQ,isBuffer:$Q,isRegExp:PQ,maybeMap:IQ,merge:SQ};});var _M=we((Wje,VM)=>{var HM=AM(),tf=uS(),gp=ef(),wQ=Object.prototype.hasOwnProperty,WM={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,o){return t+"["+o+"]"},repeat:function(t){return t}},$n=Array.isArray,NQ=Array.prototype.push,GM=function(e,t){NQ.apply(e,$n(t)?t:[t]);},MQ=Date.prototype.toISOString,LM=gp.default,Yt={addQueryPrefix:false,allowDots:false,allowEmptyArrays:false,arrayFormat:"indices",charset:"utf-8",charsetSentinel:false,commaRoundTrip:false,delimiter:"&",encode:true,encodeDotInKeys:false,encoder:tf.encode,encodeValuesOnly:false,filter:void 0,format:LM,formatter:gp.formatters[LM],indices:false,serializeDate:function(t){return MQ.call(t)},skipNulls:false,strictNullHandling:false},EQ=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},fS={},kQ=function e(t,o,r,n,i,a,l,s,c,p,d,m,f,u,g,y,S,h){for(var C=t,b=h,v=0,x=false;(b=b.get(fS))!==void 0&&!x;){var T=b.get(t);if(v+=1,typeof T<"u"){if(T===v)throw new RangeError("Cyclic object value");x=true;}typeof b.get(fS)>"u"&&(v=0);}if(typeof p=="function"?C=p(o,C):C instanceof Date?C=f(C):r==="comma"&&$n(C)&&(C=tf.maybeMap(C,function(O){return O instanceof Date?f(O):O})),C===null){if(a)return c&&!y?c(o,Yt.encoder,S,"key",u):o;C="";}if(EQ(C)||tf.isBuffer(C)){if(c){var $=y?o:c(o,Yt.encoder,S,"key",u);return [g($)+"="+g(c(C,Yt.encoder,S,"value",u))]}return [g(o)+"="+g(String(C))]}var R=[];if(typeof C>"u")return R;var P;if(r==="comma"&&$n(C))y&&c&&(C=tf.maybeMap(C,c)),P=[{value:C.length>0?C.join(",")||null:void 0}];else if($n(p))P=p;else {var I=Object.keys(C);P=d?I.sort(d):I;}var M=s?String(o).replace(/\./g,"%2E"):String(o),E=n&&$n(C)&&C.length===1?M+"[]":M;if(i&&$n(C)&&C.length===0)return E+"[]";for(var w=0;w<P.length;++w){var N=P[w],A=typeof N=="object"&&N&&typeof N.value<"u"?N.value:C[N];if(!(l&&A===null)){var k=m&&s?String(N).replace(/\./g,"%2E"):String(N),D=$n(C)?typeof r=="function"?r(E,k):E:E+(m?"."+k:"["+k+"]");h.set(t,v);var F=HM();F.set(fS,h),GM(R,e(A,D,r,n,i,a,l,s,r==="comma"&&y&&$n(C)?null:c,p,d,m,f,u,g,y,S,F));}}return R},BQ=function(t){if(!t)return Yt;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var o=t.charset||Yt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=gp.default;if(typeof t.format<"u"){if(!wQ.call(gp.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format;}var n=gp.formatters[r],i=Yt.filter;(typeof t.filter=="function"||$n(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in WM?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=Yt.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof t.allowDots>"u"?t.encodeDotInKeys===true?true:Yt.allowDots:!!t.allowDots;return {addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Yt.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Yt.allowEmptyArrays,arrayFormat:a,charset:o,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Yt.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Yt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Yt.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Yt.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Yt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Yt.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Yt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Yt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Yt.strictNullHandling}};VM.exports=function(e,t){var o=e,r=BQ(t),n,i;typeof r.filter=="function"?(i=r.filter,o=i("",o)):$n(r.filter)&&(i=r.filter,n=i);var a=[];if(typeof o!="object"||o===null)return "";var l=WM[r.arrayFormat],s=l==="comma"&&r.commaRoundTrip;n||(n=Object.keys(o)),r.sort&&n.sort(r.sort);for(var c=HM(),p=0;p<n.length;++p){var d=n[p],m=o[d];r.skipNulls&&m===null||GM(a,kQ(m,d,l,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c));}var f=a.join(r.delimiter),u=r.addQueryPrefix===true?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?u+="utf8=%26%2310003%3B&":u+="utf8=%E2%9C%93&"),f.length>0?u+f:""};});var XM=we((Gje,qM)=>{var Sl=uS(),gS=Object.prototype.hasOwnProperty,jM=Array.isArray,Nt={allowDots:false,allowEmptyArrays:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decodeDotInKeys:false,decoder:Sl.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictDepth:false,strictNullHandling:false,throwOnLimitExceeded:false},DQ=function(e){return e.replace(/&#(\d+);/g,function(t,o){return String.fromCharCode(parseInt(o,10))})},UM=function(e,t,o){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&o>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},AQ="utf8=%26%2310003%3B",FQ="utf8=%E2%9C%93",OQ=function(t,o){var r={__proto__:null},n=o.ignoreQueryPrefix?t.replace(/^\?/,""):t;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=o.parameterLimit===1/0?void 0:o.parameterLimit,a=n.split(o.delimiter,o.throwOnLimitExceeded?i+1:i);if(o.throwOnLimitExceeded&&a.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var l=-1,s,c=o.charset;if(o.charsetSentinel)for(s=0;s<a.length;++s)a[s].indexOf("utf8=")===0&&(a[s]===FQ?c="utf-8":a[s]===AQ&&(c="iso-8859-1"),l=s,s=a.length);for(s=0;s<a.length;++s)if(s!==l){var p=a[s],d=p.indexOf("]="),m=d===-1?p.indexOf("="):d+1,f,u;m===-1?(f=o.decoder(p,Nt.decoder,c,"key"),u=o.strictNullHandling?null:""):(f=o.decoder(p.slice(0,m),Nt.decoder,c,"key"),u=Sl.maybeMap(UM(p.slice(m+1),o,jM(r[f])?r[f].length:0),function(y){return o.decoder(y,Nt.decoder,c,"value")})),u&&o.interpretNumericEntities&&c==="iso-8859-1"&&(u=DQ(String(u))),p.indexOf("[]=")>-1&&(u=jM(u)?[u]:u);var g=gS.call(r,f);g&&o.duplicates==="combine"?r[f]=Sl.combine(r[f],u):(!g||o.duplicates==="last")&&(r[f]=u);}return r},zQ=function(e,t,o,r){var n=0;if(e.length>0&&e[e.length-1]==="[]"){var i=e.slice(0,-1).join("");n=Array.isArray(t)&&t[i]?t[i].length:0;}for(var a=r?t:UM(t,o,n),l=e.length-1;l>=0;--l){var s,c=e[l];if(c==="[]"&&o.parseArrays)s=o.allowEmptyArrays&&(a===""||o.strictNullHandling&&a===null)?[]:Sl.combine([],a);else {s=o.plainObjects?{__proto__:null}:{};var p=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,d=o.decodeDotInKeys?p.replace(/%2E/g,"."):p,m=parseInt(d,10);!o.parseArrays&&d===""?s={0:a}:!isNaN(m)&&c!==d&&String(m)===d&&m>=0&&o.parseArrays&&m<=o.arrayLimit?(s=[],s[m]=a):d!=="__proto__"&&(s[d]=a);}a=s;}return a},LQ=function(t,o,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=r.depth>0&&a.exec(i),c=s?i.slice(0,s.index):i,p=[];if(c){if(!r.plainObjects&&gS.call(Object.prototype,c)&&!r.allowPrototypes)return;p.push(c);}for(var d=0;r.depth>0&&(s=l.exec(i))!==null&&d<r.depth;){if(d+=1,!r.plainObjects&&gS.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(s[1]);}if(s){if(r.strictDepth===true)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");p.push("["+i.slice(s.index)+"]");}return zQ(p,o,r,n)}},HQ=function(t){if(!t)return Nt;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded<"u"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var o=typeof t.charset>"u"?Nt.charset:t.charset,r=typeof t.duplicates>"u"?Nt.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var n=typeof t.allowDots>"u"?t.decodeDotInKeys===true?true:Nt.allowDots:!!t.allowDots;return {allowDots:n,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Nt.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Nt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Nt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Nt.arrayLimit,charset:o,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Nt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Nt.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Nt.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Nt.decoder,delimiter:typeof t.delimiter=="string"||Sl.isRegExp(t.delimiter)?t.delimiter:Nt.delimiter,depth:typeof t.depth=="number"||t.depth===false?+t.depth:Nt.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===true,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Nt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Nt.parameterLimit,parseArrays:t.parseArrays!==false,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Nt.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Nt.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Nt.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:false}};qM.exports=function(e,t){var o=HQ(t);if(e===""||e===null||typeof e>"u")return o.plainObjects?{__proto__:null}:{};for(var r=typeof e=="string"?OQ(e,o):e,n=o.plainObjects?{__proto__:null}:{},i=Object.keys(r),a=0;a<i.length;++a){var l=i[a],s=LQ(l,r[l],o,typeof e=="string");n=Sl.merge(n,s,o);}return o.allowSparse===true?n:Sl.compact(n)};});var YM=we((Vje,KM)=>{var WQ=_M(),GQ=XM(),VQ=ef();KM.exports={formats:VQ,parse:GQ,stringify:WQ};});function sE(e){let t,o=n=>()=>{t=null,e(...n);},r=(...n)=>{t==null&&(t=yS(o(n)));};return r.cancel=()=>{yS.cancel(t),t=null;},r}var nf=sE;function CS(){}var cE=CS,hS=ue.createContext({}),ht=()=>{let e=()=>{};return e.deprecated=CS,e},Rn=cE;var yp=createContext(void 0);var dE={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Cp=dE;var uE={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...mE},timePickerLocale:{...Cp}},li=uE;var hp=li;var Zo="${label} is not a valid ${type}",gE={locale:"en",Pagination:fE,DatePicker:li,TimePicker:Cp,Calendar:hp,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Zo,method:Zo,array:Zo,object:Zo,number:Zo,date:Zo,boolean:Zo,integer:Zo,float:Zo,regexp:Zo,email:Zo,url:Zo,hex:Zo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},tt=gE;var Sp={...tt.Modal},bp=[],SS=()=>bp.reduce((e,t)=>({...e,...t}),tt.Modal);function bS(e){if(e){let t={...e};return bp.push(t),Sp=SS(),()=>{bp=bp.filter(o=>o!==t),Sp=SS();}}Sp={...tt.Modal};}function xp(){return Sp}var CE=createContext(void 0),bl=CE;var hE=(e,t)=>{let o=ue.useContext(bl),r=ue.useMemo(()=>{let i=t||tt[e],a=o?.[e]??{};return {...typeof i=="function"?i():i,...a||{}}},[e,t,o]),n=ue.useMemo(()=>{let i=o?.locale;return o?.exist&&!i?tt.locale:i},[o]);return [r,n]},Ee=hE;var xS="internalMark",SE=e=>{let{locale:t={},children:o,_ANT_MARK__:r}=e;ue.useEffect(()=>bS(t?.Modal),[t]);let n=ue.useMemo(()=>({...t,exist:true}),[t]);return ue.createElement(bl.Provider,{value:n},o)},TS=SE;var Gs={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},bE={...Gs,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
1
|
+
import*as ve from'react';import ve__default,{createContext,useContext,forwardRef,useMemo,useState,useRef,Children,useEffect,useImperativeHandle,memo,useCallback,isValidElement,useLayoutEffect}from'react';import Xi from'classnames';import ox from'rc-resize-observer';import vv from'rc-util/lib/omit';import $S from'rc-util/lib/raf';import {createTheme,Keyframes,unit,useCacheToken,useStyleRegister,getComputedToken}from'@ant-design/cssinjs';import BD from'@ant-design/icons/lib/components/Context';import ED from'rc-util/lib/hooks/useMemo';import {merge}from'rc-util/lib/utils/set';import'rc-util/lib/warning';import Yk from'rc-pagination/lib/locale/en_US';import Xk from'rc-picker/lib/locale/en_US';import {presetPrimaryColors,presetPalettes,generate,gold,blue}from'@ant-design/colors';import {TinyColor}from'@ctrl/tinycolor';import mD from'rc-util/lib/Dom/canUseDom';import {updateCSS}from'rc-util/lib/Dom/dynamicCSS';import VI from'rc-util/lib/isEqual';import {genStyleUtils,mergeToken}from'@ant-design/cssinjs-utils';import oB,{CSSMotionList,Provider}from'rc-motion';import ZD from'@ant-design/icons/CheckCircleFilled';import QD from'@ant-design/icons/CloseCircleFilled';import JD from'@ant-design/icons/CloseOutlined';import eB from'@ant-design/icons/ExclamationCircleFilled';import tB from'@ant-design/icons/InfoCircleFilled';import rB from'rc-util/lib/pickAttrs';import {composeRef,useComposeRef,supportNodeRef,getNodeRef,supportRef}from'rc-util/lib/ref';import yf from'rc-util/lib/hooks/useEvent';import CB from'scroll-into-view-if-needed';import {useNotification,NotificationProvider,Notice}from'rc-notification';import iM from'@ant-design/icons/LoadingOutlined';import {flushSync}from'react-dom';import {unmount,render}from'rc-util/lib/React/render';import MO from'rc-util/lib/hooks/useState';import c4 from'rc-util/lib/Dom/isVisible';import H0 from'rc-util/lib/Children/toArray';import J8,{ColorBlock,Color}from'@rc-component/color-picker';import s$ from'rc-util/lib/hooks/useMergedState';import C0 from'@ant-design/icons/RightOutlined';import O4 from'rc-collapse';import B5,{Panel as Panel$1}from'rc-dialog';import rW,{useWatch,FieldContext,ListContext,Field,List,useForm,FormProvider}from'rc-field-form';import {isStyleSupport}from'rc-util/lib/Dom/styleChecker';import iF,{Option,OptGroup}from'rc-select';import J3 from'@ant-design/icons/CheckOutlined';import oF from'@ant-design/icons/DownOutlined';import nF from'@ant-design/icons/SearchOutlined';import ib from'rc-util/lib/hooks/useLayoutEffect';import wN from'rc-util/lib/KeyCode';import GF,{Popup}from'rc-tooltip';import fA from'rc-dropdown';import tA,{ItemGroup,Divider,useFullPath,SubMenu,Item}from'rc-menu';import Rz from'@ant-design/icons/BarsOutlined';import y0 from'@ant-design/icons/LeftOutlined';import eA from'@ant-design/icons/EllipsisOutlined';import hL from'rc-picker/lib/generate/dayjs';import H7,{PickerPanel,RangePicker}from'rc-picker';import FA from'rc-checkbox';import OL from'@ant-design/icons/PlusOutlined';import FL from'rc-tabs';import lH from'@ant-design/react-slick';import N$,{Panel}from'rc-cascader';import y6 from'rc-segmented';import R6 from'@ant-design/icons/UpOutlined';import I6 from'rc-input-number';import X6 from'rc-input';import {triggerFocus}from'rc-input/lib/utils/commonUtils';import i8 from'@ant-design/icons/EyeInvisibleOutlined';import a8 from'@ant-design/icons/EyeOutlined';import h8 from'rc-textarea';import _8,{UnstableContext}from'rc-slider';import E7 from'@ant-design/icons/CalendarOutlined';import k7 from'@ant-design/icons/ClockCircleOutlined';import D7 from'@ant-design/icons/SwapRightOutlined';import f9 from'rc-drawer';import {getDOM}from'rc-util/lib/Dom/findDOMNode';import {get,set,useMergedState,useEvent}from'rc-util';import gW from'@ant-design/icons/QuestionCircleOutlined';import tG from'rc-image';import YW from'@ant-design/icons/RotateLeftOutlined';import ZW from'@ant-design/icons/RotateRightOutlined';import _R from'@ant-design/icons/SwapOutlined';import QW from'@ant-design/icons/ZoomInOutlined';import JW from'@ant-design/icons/ZoomOutOutlined';import t1 from'@ant-design/icons/DoubleLeftOutlined';import o1 from'@ant-design/icons/DoubleRightOutlined';import vG from'rc-pagination';import {debounce}from'throttle-debounce';import R1 from'rc-mentions';import {Circle}from'rc-progress';import {QRCodeCanvas,QRCodeSVG}from'@rc-component/qrcode';import {CloseCircleFilled,CloseOutlined,DoubleLeftOutlined,LeftOutlined,RightOutlined,DoubleRightOutlined,ReloadOutlined}from'@ant-design/icons';import Sj from'@ant-design/icons/StarFilled';import vj from'rc-rate';import Fj from'@ant-design/icons/WarningFilled';import hI from'rc-steps';import F_ from'rc-switch';import {genTable,genVirtualTable,EXPAND_COLUMN,Summary,INTERNAL_HOOKS,INTERNAL_COL_DEFINE}from'rc-table';import {conductExpandParent,arrDel,arrAdd}from'rc-tree/lib/util';import {conductCheck}from'rc-tree/lib/utils/conductUtil';import {convertDataToEntities,convertTreeToData,fillFieldNames}from'rc-tree/lib/utils/treeUtil';import {convertChildrenToColumns}from'rc-table/lib/hooks/useColumns';import BU from'@ant-design/icons/FilterFilled';import yU,{TreeNode}from'rc-tree';import cU from'@ant-design/icons/FileOutlined';import bU from'@ant-design/icons/FolderOpenOutlined';import SU from'@ant-design/icons/FolderOutlined';import fU from'@ant-design/icons/HolderOutlined';import sU from'@ant-design/icons/CaretDownFilled';import dU from'@ant-design/icons/MinusSquareOutlined';import mU from'@ant-design/icons/PlusSquareOutlined';import WU from'@ant-design/icons/CaretDownOutlined';import GU from'@ant-design/icons/CaretUpOutlined';import uX from'@rc-component/tour';import hX from'@ant-design/icons/DeleteOutlined';import jX,{TreeNode as TreeNode$1,SHOW_ALL,SHOW_PARENT,SHOW_CHILD}from'rc-tree-select';import RK from'@ant-design/icons/EditOutlined';import rK from'@ant-design/icons/EnterOutlined';import aK from'copy-to-clipboard';import bK from'@ant-design/icons/CopyOutlined';import cM from'rc-upload';import tY from'@ant-design/icons/FileTwoTone';import oY from'@ant-design/icons/PaperClipOutlined';import rY from'@ant-design/icons/PictureTwoTone';import ZK from'@ant-design/icons/DownloadOutlined';import {useMutateObserver}from'@rc-component/mutate-observer';import {useMemoizedFn,useCreation}from'ahooks';import {uniq,isEqual,isEqualWith,isNaN as isNaN$1,isNil,uniqueId}from'lodash';import QY from'lodash/debounce';import'@ahooksjs/use-url-state';import uo from'dayjs';import CZ from'dayjs/plugin/customParseFormat';import {useSensors,useSensor,PointerSensor,DndContext,closestCenter,DragOverlay,pointerWithin,rectIntersection,getFirstCollision,useDroppable}from'@dnd-kit/core';import {restrictToHorizontalAxis,restrictToVerticalAxis}from'@dnd-kit/modifiers';import {arrayMove,SortableContext,horizontalListSortingStrategy,verticalListSortingStrategy,useSortable}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';var Fk=Object.create;var Yf=Object.defineProperty;var zk=Object.getOwnPropertyDescriptor;var Ak=Object.getOwnPropertyNames;var Lk=Object.getPrototypeOf,Hk=Object.prototype.hasOwnProperty;var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Wk=(e,t)=>{for(var o in t)Yf(e,o,{get:t[o],enumerable:true});},Gk=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ak(t))!Hk.call(e,n)&&n!==o&&Yf(e,n,{get:()=>t[n],enumerable:!(r=zk(t,n))||r.enumerable});return e};var Vk=(e,t,o)=>(o=e!=null?Fk(Lk(e)):{},Gk(Yf(o,"default",{value:e,enumerable:true}),e));var Al=ze((mKe,x2)=>{x2.exports=TypeError;});var v2=ze(()=>{});var Vp=ze((gKe,G2)=>{var eS=typeof Map=="function"&&Map.prototype,_b=Object.getOwnPropertyDescriptor&&eS?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Bf=eS&&_b&&typeof _b.get=="function"?_b.get:null,T2=eS&&Map.prototype.forEach,tS=typeof Set=="function"&&Set.prototype,Ub=Object.getOwnPropertyDescriptor&&tS?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Of=tS&&Ub&&typeof Ub.get=="function"?Ub.get:null,$2=tS&&Set.prototype.forEach,YQ=typeof WeakMap=="function"&&WeakMap.prototype,Hp=YQ?WeakMap.prototype.has:null,ZQ=typeof WeakSet=="function"&&WeakSet.prototype,Wp=ZQ?WeakSet.prototype.has:null,QQ=typeof WeakRef=="function"&&WeakRef.prototype,P2=QQ?WeakRef.prototype.deref:null,JQ=Boolean.prototype.valueOf,eJ=Object.prototype.toString,tJ=Function.prototype.toString,oJ=String.prototype.match,oS=String.prototype.slice,Ta=String.prototype.replace,rJ=String.prototype.toUpperCase,R2=String.prototype.toLowerCase,O2=RegExp.prototype.test,I2=Array.prototype.concat,On=Array.prototype.join,nJ=Array.prototype.slice,w2=Math.floor,Kb=typeof BigInt=="function"?BigInt.prototype.valueOf:null,qb=Object.getOwnPropertySymbols,Yb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ac=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Gp=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ac||true)?Symbol.toStringTag:null,F2=Object.prototype.propertyIsEnumerable,N2=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M2(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||O2.call(/e/,t))return t;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-w2(-e):w2(e);if(r!==e){var n=String(r),i=oS.call(t,n.length+1);return Ta.call(n,o,"$&_")+"."+Ta.call(Ta.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ta.call(t,o,"$&_")}var Zb=v2(),E2=Zb.custom,k2=L2(E2)?E2:null,z2={__proto__:null,double:'"',single:"'"},iJ={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};G2.exports=function e(t,o,r,n){var i=o||{};if(xi(i,"quoteStyle")&&!xi(z2,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xi(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=xi(i,"customInspect")?i.customInspect:true;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xi(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xi(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof t>"u")return "undefined";if(t===null)return "null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return W2(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?M2(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?M2(t,c):c}var p=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=p&&p>0&&typeof t=="object")return Qb(t)?"[Array]":"[Object]";var m=TJ(i,r);if(typeof n>"u")n=[];else if(H2(n,t)>=0)return "[Circular]";function d(E,I,w){if(I&&(n=nJ.call(n),n.push(I)),w){var B={depth:i.depth};return xi(i,"quoteStyle")&&(B.quoteStyle=i.quoteStyle),e(E,B,r+1,n)}return e(E,i,r+1,n)}if(typeof t=="function"&&!D2(t)){var f=fJ(t),u=Df(t,d);return "[Function"+(f?": "+f:" (anonymous)")+"]"+(u.length>0?" { "+On.call(u,", ")+" }":"")}if(L2(t)){var g=ac?Ta.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Yb.call(t);return typeof t=="object"&&!ac?Lp(g):g}if(SJ(t)){for(var y="<"+R2.call(String(t.nodeName)),h=t.attributes||[],b=0;b<h.length;b++)y+=" "+h[b].name+"="+A2(aJ(h[b].value),"double",i);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+="</"+R2.call(String(t.nodeName))+">",y}if(Qb(t)){if(t.length===0)return "[]";var C=Df(t,d);return m&&!vJ(C)?"["+Jb(C,m)+"]":"[ "+On.call(C,", ")+" ]"}if(sJ(t)){var S=Df(t,d);return !("cause"in Error.prototype)&&"cause"in t&&!F2.call(t,"cause")?"{ ["+String(t)+"] "+On.call(I2.call("[cause]: "+d(t.cause),S),", ")+" }":S.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+On.call(S,", ")+" }"}if(typeof t=="object"&&a){if(k2&&typeof t[k2]=="function"&&Zb)return Zb(t,{depth:p-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(gJ(t)){var v=[];return T2&&T2.call(t,function(E,I){v.push(d(I,t,true)+" => "+d(E,t));}),B2("Map",Bf.call(t),v,m)}if(hJ(t)){var x=[];return $2&&$2.call(t,function(E){x.push(d(E,t));}),B2("Set",Of.call(t),x,m)}if(yJ(t))return Xb("WeakMap");if(bJ(t))return Xb("WeakSet");if(CJ(t))return Xb("WeakRef");if(pJ(t))return Lp(d(Number(t)));if(mJ(t))return Lp(d(Kb.call(t)));if(dJ(t))return Lp(JQ.call(t));if(cJ(t))return Lp(d(String(t)));if(typeof window<"u"&&t===window)return "{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return "{ [object globalThis] }";if(!lJ(t)&&!D2(t)){var $=Df(t,d),R=N2?N2(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",P=!R&&Gp&&Object(t)===t&&Gp in t?oS.call($a(t),8,-1):T?"Object":"",N=R||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",M=N+(P||T?"["+On.call(I2.call([],P||[],T||[]),": ")+"] ":"");return $.length===0?M+"{}":m?M+"{"+Jb($,m)+"}":M+"{ "+On.call($,", ")+" }"}return String(t)};function A2(e,t,o){var r=o.quoteStyle||t,n=z2[r];return n+e+n}function aJ(e){return Ta.call(String(e),/"/g,""")}function Ll(e){return !Gp||!(typeof e=="object"&&(Gp in e||typeof e[Gp]<"u"))}function Qb(e){return $a(e)==="[object Array]"&&Ll(e)}function lJ(e){return $a(e)==="[object Date]"&&Ll(e)}function D2(e){return $a(e)==="[object RegExp]"&&Ll(e)}function sJ(e){return $a(e)==="[object Error]"&&Ll(e)}function cJ(e){return $a(e)==="[object String]"&&Ll(e)}function pJ(e){return $a(e)==="[object Number]"&&Ll(e)}function dJ(e){return $a(e)==="[object Boolean]"&&Ll(e)}function L2(e){if(ac)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return true;if(!e||typeof e!="object"||!Yb)return false;try{return Yb.call(e),!0}catch{}return false}function mJ(e){if(!e||typeof e!="object"||!Kb)return false;try{return Kb.call(e),!0}catch{}return false}var uJ=Object.prototype.hasOwnProperty||function(e){return e in this};function xi(e,t){return uJ.call(e,t)}function $a(e){return eJ.call(e)}function fJ(e){if(e.name)return e.name;var t=oJ.call(tJ.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function H2(e,t){if(e.indexOf)return e.indexOf(t);for(var o=0,r=e.length;o<r;o++)if(e[o]===t)return o;return -1}function gJ(e){if(!Bf||!e||typeof e!="object")return false;try{Bf.call(e);try{Of.call(e);}catch{return !0}return e instanceof Map}catch{}return false}function yJ(e){if(!Hp||!e||typeof e!="object")return false;try{Hp.call(e,Hp);try{Wp.call(e,Wp);}catch{return !0}return e instanceof WeakMap}catch{}return false}function CJ(e){if(!P2||!e||typeof e!="object")return false;try{return P2.call(e),!0}catch{}return false}function hJ(e){if(!Of||!e||typeof e!="object")return false;try{Of.call(e);try{Bf.call(e);}catch{return !0}return e instanceof Set}catch{}return false}function bJ(e){if(!Wp||!e||typeof e!="object")return false;try{Wp.call(e,Wp);try{Hp.call(e,Hp);}catch{return !0}return e instanceof WeakSet}catch{}return false}function SJ(e){return !e||typeof e!="object"?false:typeof HTMLElement<"u"&&e instanceof HTMLElement?true:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function W2(e,t){if(e.length>t.maxStringLength){var o=e.length-t.maxStringLength,r="... "+o+" more character"+(o>1?"s":"");return W2(oS.call(e,0,t.maxStringLength),t)+r}var n=iJ[t.quoteStyle||"single"];n.lastIndex=0;var i=Ta.call(Ta.call(e,n,"\\$1"),/[\x00-\x1f]/g,xJ);return A2(i,"single",t)}function xJ(e){var t=e.charCodeAt(0),o={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return o?"\\"+o:"\\x"+(t<16?"0":"")+rJ.call(t.toString(16))}function Lp(e){return "Object("+e+")"}function Xb(e){return e+" { ? }"}function B2(e,t,o,r){var n=r?Jb(o,r):On.call(o,", ");return e+" ("+t+") {"+n+"}"}function vJ(e){for(var t=0;t<e.length;t++)if(H2(e[t],`
|
|
2
|
+
`)>=0)return false;return true}function TJ(e,t){var o;if(e.indent===" ")o=" ";else if(typeof e.indent=="number"&&e.indent>0)o=On.call(Array(e.indent+1)," ");else return null;return {base:o,prev:On.call(Array(t+1),o)}}function Jb(e,t){if(e.length===0)return "";var o=`
|
|
3
|
+
`+t.prev+t.base;return o+On.call(e,","+o)+`
|
|
4
|
+
`+t.prev}function Df(e,t){var o=Qb(e),r=[];if(o){r.length=e.length;for(var n=0;n<e.length;n++)r[n]=xi(e,n)?t(e[n],e):"";}var i=typeof qb=="function"?qb(e):[],a;if(ac){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l];}for(var s in e)xi(e,s)&&(o&&String(Number(s))===s&&s<e.length||ac&&a["$"+s]instanceof Symbol||(O2.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof qb=="function")for(var c=0;c<i.length;c++)F2.call(e,i[c])&&r.push("["+t(i[c])+"]: "+t(e[i[c]],e));return r}});var j2=ze((yKe,V2)=>{var $J=Vp(),PJ=Al(),Ff=function(e,t,o){for(var r=e,n;(n=r.next)!=null;r=n)if(n.key===t)return r.next=n.next,o||(n.next=e.next,e.next=n),n},RJ=function(e,t){if(e){var o=Ff(e,t);return o&&o.value}},IJ=function(e,t,o){var r=Ff(e,t);r?r.value=o:e.next={key:t,next:e.next,value:o};},wJ=function(e,t){return e?!!Ff(e,t):false},NJ=function(e,t){if(e)return Ff(e,t,true)};V2.exports=function(){var t,o={assert:function(r){if(!o.has(r))throw new PJ("Side channel does not contain "+$J(r))},delete:function(r){var n=t&&t.next,i=NJ(t,r);return i&&n&&n===i&&(t=void 0),!!i},get:function(r){return RJ(t,r)},has:function(r){return wJ(t,r)},set:function(r,n){t||(t={next:void 0}),IJ(t,r,n);}};return o};});var rS=ze((CKe,_2)=>{_2.exports=Object;});var q2=ze((hKe,U2)=>{U2.exports=Error;});var K2=ze((bKe,X2)=>{X2.exports=EvalError;});var Z2=ze((SKe,Y2)=>{Y2.exports=RangeError;});var J2=ze((xKe,Q2)=>{Q2.exports=ReferenceError;});var tE=ze((vKe,eE)=>{eE.exports=SyntaxError;});var rE=ze((TKe,oE)=>{oE.exports=URIError;});var iE=ze(($Ke,nE)=>{nE.exports=Math.abs;});var lE=ze((PKe,aE)=>{aE.exports=Math.floor;});var cE=ze((RKe,sE)=>{sE.exports=Math.max;});var dE=ze((IKe,pE)=>{pE.exports=Math.min;});var uE=ze((wKe,mE)=>{mE.exports=Math.pow;});var gE=ze((NKe,fE)=>{fE.exports=Math.round;});var CE=ze((MKe,yE)=>{yE.exports=Number.isNaN||function(t){return t!==t};});var bE=ze((EKe,hE)=>{var MJ=CE();hE.exports=function(t){return MJ(t)||t===0?t:t<0?-1:1};});var xE=ze((kKe,SE)=>{SE.exports=Object.getOwnPropertyDescriptor;});var nS=ze((DKe,vE)=>{var zf=xE();if(zf)try{zf([],"length");}catch{zf=null;}vE.exports=zf;});var $E=ze((BKe,TE)=>{var Af=Object.defineProperty||false;if(Af)try{Af({},"a",{value:1});}catch{Af=false;}TE.exports=Af;});var RE=ze((OKe,PE)=>{PE.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return false;if(typeof Symbol.iterator=="symbol")return true;var t={},o=Symbol("test"),r=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return false;var n=42;t[o]=n;for(var i in t)return false;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return false;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==o||!Object.prototype.propertyIsEnumerable.call(t,o))return false;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,o);if(l.value!==n||l.enumerable!==true)return false}return true};});var NE=ze((FKe,wE)=>{var IE=typeof Symbol<"u"&&Symbol,EJ=RE();wE.exports=function(){return typeof IE!="function"||typeof Symbol!="function"||typeof IE("foo")!="symbol"||typeof Symbol("bar")!="symbol"?false:EJ()};});var iS=ze((zKe,ME)=>{ME.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null;});var aS=ze((AKe,EE)=>{var kJ=rS();EE.exports=kJ.getPrototypeOf||null;});var BE=ze((LKe,DE)=>{var DJ="Function.prototype.bind called on incompatible ",BJ=Object.prototype.toString,OJ=Math.max,FJ="[object Function]",kE=function(t,o){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<o.length;i+=1)r[i+t.length]=o[i];return r},zJ=function(t,o){for(var r=[],n=o,i=0;n<t.length;n+=1,i+=1)r[i]=t[n];return r},AJ=function(e,t){for(var o="",r=0;r<e.length;r+=1)o+=e[r],r+1<e.length&&(o+=t);return o};DE.exports=function(t){var o=this;if(typeof o!="function"||BJ.apply(o)!==FJ)throw new TypeError(DJ+o);for(var r=zJ(arguments,1),n,i=function(){if(this instanceof n){var p=o.apply(this,kE(r,arguments));return Object(p)===p?p:this}return o.apply(t,kE(r,arguments))},a=OJ(0,o.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(n=Function("binder","return function ("+AJ(l,",")+"){ return binder.apply(this,arguments); }")(i),o.prototype){var c=function(){};c.prototype=o.prototype,n.prototype=new c,c.prototype=null;}return n};});var jp=ze((HKe,OE)=>{var LJ=BE();OE.exports=Function.prototype.bind||LJ;});var Lf=ze((WKe,FE)=>{FE.exports=Function.prototype.call;});var lS=ze((GKe,zE)=>{zE.exports=Function.prototype.apply;});var LE=ze((VKe,AE)=>{AE.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply;});var WE=ze((jKe,HE)=>{var HJ=jp(),WJ=lS(),GJ=Lf(),VJ=LE();HE.exports=VJ||HJ.call(GJ,WJ);});var sS=ze((_Ke,GE)=>{var jJ=jp(),_J=Al(),UJ=Lf(),qJ=WE();GE.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new _J("a function is required");return qJ(jJ,UJ,t)};});var XE=ze((UKe,qE)=>{var XJ=sS(),VE=nS(),_E;try{_E=[].__proto__===Array.prototype;}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var cS=!!_E&&VE&&VE(Object.prototype,"__proto__"),UE=Object,jE=UE.getPrototypeOf;qE.exports=cS&&typeof cS.get=="function"?XJ([cS.get]):typeof jE=="function"?function(t){return jE(t==null?t:UE(t))}:false;});var JE=ze((qKe,QE)=>{var KE=iS(),YE=aS(),ZE=XE();QE.exports=KE?function(t){return KE(t)}:YE?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return YE(t)}:ZE?function(t){return ZE(t)}:null;});var tk=ze((XKe,ek)=>{var KJ=Function.prototype.call,YJ=Object.prototype.hasOwnProperty,ZJ=jp();ek.exports=ZJ.call(KJ,YJ);});var Gf=ze((KKe,lk)=>{var Xe,QJ=rS(),JJ=q2(),eee=K2(),tee=Z2(),oee=J2(),pc=tE(),cc=Al(),ree=rE(),nee=iE(),iee=lE(),aee=cE(),lee=dE(),see=uE(),cee=gE(),pee=bE(),ik=Function,pS=function(e){try{return ik('"use strict"; return ('+e+").constructor;")()}catch{}},_p=nS(),dee=$E(),dS=function(){throw new cc},mee=_p?(function(){try{return arguments.callee,dS}catch{try{return _p(arguments,"callee").get}catch{return dS}}})():dS,lc=NE()(),fo=JE(),uee=aS(),fee=iS(),ak=lS(),Up=Lf(),sc={},gee=typeof Uint8Array>"u"||!fo?Xe:fo(Uint8Array),Hl={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Xe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Xe:ArrayBuffer,"%ArrayIteratorPrototype%":lc&&fo?fo([][Symbol.iterator]()):Xe,"%AsyncFromSyncIteratorPrototype%":Xe,"%AsyncFunction%":sc,"%AsyncGenerator%":sc,"%AsyncGeneratorFunction%":sc,"%AsyncIteratorPrototype%":sc,"%Atomics%":typeof Atomics>"u"?Xe:Atomics,"%BigInt%":typeof BigInt>"u"?Xe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Xe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Xe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Xe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":JJ,"%eval%":eval,"%EvalError%":eee,"%Float16Array%":typeof Float16Array>"u"?Xe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Xe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Xe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Xe:FinalizationRegistry,"%Function%":ik,"%GeneratorFunction%":sc,"%Int8Array%":typeof Int8Array>"u"?Xe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Xe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Xe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":lc&&fo?fo(fo([][Symbol.iterator]())):Xe,"%JSON%":typeof JSON=="object"?JSON:Xe,"%Map%":typeof Map>"u"?Xe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!lc||!fo?Xe:fo(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":QJ,"%Object.getOwnPropertyDescriptor%":_p,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Xe:Promise,"%Proxy%":typeof Proxy>"u"?Xe:Proxy,"%RangeError%":tee,"%ReferenceError%":oee,"%Reflect%":typeof Reflect>"u"?Xe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Xe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!lc||!fo?Xe:fo(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Xe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":lc&&fo?fo(""[Symbol.iterator]()):Xe,"%Symbol%":lc?Symbol:Xe,"%SyntaxError%":pc,"%ThrowTypeError%":mee,"%TypedArray%":gee,"%TypeError%":cc,"%Uint8Array%":typeof Uint8Array>"u"?Xe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Xe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Xe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Xe:Uint32Array,"%URIError%":ree,"%WeakMap%":typeof WeakMap>"u"?Xe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Xe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Xe:WeakSet,"%Function.prototype.call%":Up,"%Function.prototype.apply%":ak,"%Object.defineProperty%":dee,"%Object.getPrototypeOf%":uee,"%Math.abs%":nee,"%Math.floor%":iee,"%Math.max%":aee,"%Math.min%":lee,"%Math.pow%":see,"%Math.round%":cee,"%Math.sign%":pee,"%Reflect.getPrototypeOf%":fee};if(fo)try{null.error;}catch(e){ok=fo(fo(e)),Hl["%Error.prototype%"]=ok;}var ok,yee=function e(t){var o;if(t==="%AsyncFunction%")o=pS("async function () {}");else if(t==="%GeneratorFunction%")o=pS("function* () {}");else if(t==="%AsyncGeneratorFunction%")o=pS("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(o=r.prototype);}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&fo&&(o=fo(n.prototype));}return Hl[t]=o,o},rk={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},qp=jp(),Hf=tk(),Cee=qp.call(Up,Array.prototype.concat),hee=qp.call(ak,Array.prototype.splice),nk=qp.call(Up,String.prototype.replace),Wf=qp.call(Up,String.prototype.slice),bee=qp.call(Up,RegExp.prototype.exec),See=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,xee=/\\(\\)?/g,vee=function(t){var o=Wf(t,0,1),r=Wf(t,-1);if(o==="%"&&r!=="%")throw new pc("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&o!=="%")throw new pc("invalid intrinsic syntax, expected opening `%`");var n=[];return nk(t,See,function(i,a,l,s){n[n.length]=l?nk(s,xee,"$1"):a||i;}),n},Tee=function(t,o){var r=t,n;if(Hf(rk,r)&&(n=rk[r],r="%"+n[0]+"%"),Hf(Hl,r)){var i=Hl[r];if(i===sc&&(i=yee(r)),typeof i>"u"&&!o)throw new cc("intrinsic "+t+" exists, but is not available. Please file an issue!");return {alias:n,name:r,value:i}}throw new pc("intrinsic "+t+" does not exist!")};lk.exports=function(t,o){if(typeof t!="string"||t.length===0)throw new cc("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new cc('"allowMissing" argument must be a boolean');if(bee(/^%?[^%]*%?$/,t)===null)throw new pc("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=vee(t),n=r.length>0?r[0]:"",i=Tee("%"+n+"%",o),a=i.name,l=i.value,s=false,c=i.alias;c&&(n=c[0],hee(r,Cee([0,1],c)));for(var p=1,m=true;p<r.length;p+=1){var d=r[p],f=Wf(d,0,1),u=Wf(d,-1);if((f==='"'||f==="'"||f==="`"||u==='"'||u==="'"||u==="`")&&f!==u)throw new pc("property names with quotes must have matching quotes");if((d==="constructor"||!m)&&(s=true),n+="."+d,a="%"+n+"%",Hf(Hl,a))l=Hl[a];else if(l!=null){if(!(d in l)){if(!o)throw new cc("base intrinsic for "+t+" exists, but the property is not available.");return}if(_p&&p+1>=r.length){var g=_p(l,d);m=!!g,m&&"get"in g&&!("originalValue"in g.get)?l=g.get:l=l[d];}else m=Hf(l,d),l=l[d];m&&!s&&(Hl[a]=l);}}return l};});var mS=ze((YKe,pk)=>{var sk=Gf(),ck=sS(),$ee=ck([sk("%String.prototype.indexOf%")]);pk.exports=function(t,o){var r=sk(t,!!o);return typeof r=="function"&&$ee(t,".prototype.")>-1?ck([r]):r};});var uS=ze((ZKe,mk)=>{var Pee=Gf(),Xp=mS(),Ree=Vp(),Iee=Al(),dk=Pee("%Map%",true),wee=Xp("Map.prototype.get",true),Nee=Xp("Map.prototype.set",true),Mee=Xp("Map.prototype.has",true),Eee=Xp("Map.prototype.delete",true),kee=Xp("Map.prototype.size",true);mk.exports=!!dk&&function(){var t,o={assert:function(r){if(!o.has(r))throw new Iee("Side channel does not contain "+Ree(r))},delete:function(r){if(t){var n=Eee(t,r);return kee(t)===0&&(t=void 0),n}return false},get:function(r){if(t)return wee(t,r)},has:function(r){return t?Mee(t,r):false},set:function(r,n){t||(t=new dk),Nee(t,r,n);}};return o};});var fk=ze((QKe,uk)=>{var Dee=Gf(),jf=mS(),Bee=Vp(),Vf=uS(),Oee=Al(),dc=Dee("%WeakMap%",true),Fee=jf("WeakMap.prototype.get",true),zee=jf("WeakMap.prototype.set",true),Aee=jf("WeakMap.prototype.has",true),Lee=jf("WeakMap.prototype.delete",true);uk.exports=dc?function(){var t,o,r={assert:function(n){if(!r.has(n))throw new Oee("Side channel does not contain "+Bee(n))},delete:function(n){if(dc&&n&&(typeof n=="object"||typeof n=="function")){if(t)return Lee(t,n)}else if(Vf&&o)return o.delete(n);return false},get:function(n){return dc&&n&&(typeof n=="object"||typeof n=="function")&&t?Fee(t,n):o&&o.get(n)},has:function(n){return dc&&n&&(typeof n=="object"||typeof n=="function")&&t?Aee(t,n):!!o&&o.has(n)},set:function(n,i){dc&&n&&(typeof n=="object"||typeof n=="function")?(t||(t=new dc),zee(t,n,i)):Vf&&(o||(o=Vf()),o.set(n,i));}};return r}:Vf;});var yk=ze((JKe,gk)=>{var Hee=Al(),Wee=Vp(),Gee=j2(),Vee=uS(),jee=fk(),_ee=jee||Vee||Gee;gk.exports=function(){var t,o={assert:function(r){if(!o.has(r))throw new Hee("Side channel does not contain "+Wee(r))},delete:function(r){return !!t&&t.delete(r)},get:function(r){return t&&t.get(r)},has:function(r){return !!t&&t.has(r)},set:function(r,n){t||(t=_ee()),t.set(r,n);}};return o};});var _f=ze((eYe,Ck)=>{var Uee=String.prototype.replace,qee=/%20/g,fS={RFC1738:"RFC1738",RFC3986:"RFC3986"};Ck.exports={default:fS.RFC3986,formatters:{RFC1738:function(e){return Uee.call(e,qee,"+")},RFC3986:function(e){return String(e)}},RFC1738:fS.RFC1738,RFC3986:fS.RFC3986};});var CS=ze((tYe,bk)=>{var Xee=_f(),gS=Object.prototype.hasOwnProperty,Wl=Array.isArray,Fn=(function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),Kee=function(t){for(;t.length>1;){var o=t.pop(),r=o.obj[o.prop];if(Wl(r)){for(var n=[],i=0;i<r.length;++i)typeof r[i]<"u"&&n.push(r[i]);o.obj[o.prop]=n;}}},hk=function(t,o){for(var r=o&&o.plainObjects?{__proto__:null}:{},n=0;n<t.length;++n)typeof t[n]<"u"&&(r[n]=t[n]);return r},Yee=function e(t,o,r){if(!o)return t;if(typeof o!="object"&&typeof o!="function"){if(Wl(t))t.push(o);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!gS.call(Object.prototype,o))&&(t[o]=true);else return [t,o];return t}if(!t||typeof t!="object")return [t].concat(o);var n=t;return Wl(t)&&!Wl(o)&&(n=hk(t,r)),Wl(t)&&Wl(o)?(o.forEach(function(i,a){if(gS.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i);}else t[a]=i;}),t):Object.keys(o).reduce(function(i,a){var l=o[a];return gS.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},n)},Zee=function(t,o){return Object.keys(o).reduce(function(r,n){return r[n]=o[n],r},t)},Qee=function(e,t,o){var r=e.replace(/\+/g," ");if(o==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},yS=1024,Jee=function(t,o,r,n,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(f){return "%26%23"+parseInt(f.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;s+=yS){for(var c=a.length>=yS?a.slice(s,s+yS):a,p=[],m=0;m<c.length;++m){var d=c.charCodeAt(m);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===Xee.RFC1738&&(d===40||d===41)){p[p.length]=c.charAt(m);continue}if(d<128){p[p.length]=Fn[d];continue}if(d<2048){p[p.length]=Fn[192|d>>6]+Fn[128|d&63];continue}if(d<55296||d>=57344){p[p.length]=Fn[224|d>>12]+Fn[128|d>>6&63]+Fn[128|d&63];continue}m+=1,d=65536+((d&1023)<<10|c.charCodeAt(m)&1023),p[p.length]=Fn[240|d>>18]+Fn[128|d>>12&63]+Fn[128|d>>6&63]+Fn[128|d&63];}l+=p.join("");}return l},ete=function(t){for(var o=[{obj:{o:t},prop:"o"}],r=[],n=0;n<o.length;++n)for(var i=o[n],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var c=l[s],p=a[c];typeof p=="object"&&p!==null&&r.indexOf(p)===-1&&(o.push({obj:a,prop:c}),r.push(p));}return Kee(o),t},tte=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},ote=function(t){return !t||typeof t!="object"?false:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},rte=function(t,o){return [].concat(t,o)},nte=function(t,o){if(Wl(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(o(t[n]));return r}return o(t)};bk.exports={arrayToObject:hk,assign:Zee,combine:rte,compact:ete,decode:Qee,encode:Jee,isBuffer:ote,isRegExp:tte,maybeMap:nte,merge:Yee};});var Pk=ze((oYe,$k)=>{var xk=yk(),Uf=CS(),Kp=_f(),ite=Object.prototype.hasOwnProperty,vk={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,o){return t+"["+o+"]"},repeat:function(t){return t}},zn=Array.isArray,ate=Array.prototype.push,Tk=function(e,t){ate.apply(e,zn(t)?t:[t]);},lte=Date.prototype.toISOString,Sk=Kp.default,ro={addQueryPrefix:false,allowDots:false,allowEmptyArrays:false,arrayFormat:"indices",charset:"utf-8",charsetSentinel:false,commaRoundTrip:false,delimiter:"&",encode:true,encodeDotInKeys:false,encoder:Uf.encode,encodeValuesOnly:false,filter:void 0,format:Sk,formatter:Kp.formatters[Sk],indices:false,serializeDate:function(t){return lte.call(t)},skipNulls:false,strictNullHandling:false},ste=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},hS={},cte=function e(t,o,r,n,i,a,l,s,c,p,m,d,f,u,g,y,h,b){for(var C=t,S=b,v=0,x=false;(S=S.get(hS))!==void 0&&!x;){var $=S.get(t);if(v+=1,typeof $<"u"){if($===v)throw new RangeError("Cyclic object value");x=true;}typeof S.get(hS)>"u"&&(v=0);}if(typeof p=="function"?C=p(o,C):C instanceof Date?C=f(C):r==="comma"&&zn(C)&&(C=Uf.maybeMap(C,function(A){return A instanceof Date?f(A):A})),C===null){if(a)return c&&!y?c(o,ro.encoder,h,"key",u):o;C="";}if(ste(C)||Uf.isBuffer(C)){if(c){var R=y?o:c(o,ro.encoder,h,"key",u);return [g(R)+"="+g(c(C,ro.encoder,h,"value",u))]}return [g(o)+"="+g(String(C))]}var T=[];if(typeof C>"u")return T;var P;if(r==="comma"&&zn(C))y&&c&&(C=Uf.maybeMap(C,c)),P=[{value:C.length>0?C.join(",")||null:void 0}];else if(zn(p))P=p;else {var N=Object.keys(C);P=m?N.sort(m):N;}var M=s?String(o).replace(/\./g,"%2E"):String(o),E=n&&zn(C)&&C.length===1?M+"[]":M;if(i&&zn(C)&&C.length===0)return E+"[]";for(var I=0;I<P.length;++I){var w=P[I],B=typeof w=="object"&&w&&typeof w.value<"u"?w.value:C[w];if(!(l&&B===null)){var k=d&&s?String(w).replace(/\./g,"%2E"):String(w),D=zn(C)?typeof r=="function"?r(E,k):E:E+(d?"."+k:"["+k+"]");b.set(t,v);var F=xk();F.set(hS,b),Tk(T,e(B,D,r,n,i,a,l,s,r==="comma"&&y&&zn(C)?null:c,p,m,d,f,u,g,y,h,F));}}return T},pte=function(t){if(!t)return ro;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var o=t.charset||ro.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Kp.default;if(typeof t.format<"u"){if(!ite.call(Kp.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format;}var n=Kp.formatters[r],i=ro.filter;(typeof t.filter=="function"||zn(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in vk?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=ro.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof t.allowDots>"u"?t.encodeDotInKeys===true?true:ro.allowDots:!!t.allowDots;return {addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:ro.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:ro.allowEmptyArrays,arrayFormat:a,charset:o,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ro.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?ro.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:ro.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:ro.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:ro.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:ro.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:ro.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:ro.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ro.strictNullHandling}};$k.exports=function(e,t){var o=e,r=pte(t),n,i;typeof r.filter=="function"?(i=r.filter,o=i("",o)):zn(r.filter)&&(i=r.filter,n=i);var a=[];if(typeof o!="object"||o===null)return "";var l=vk[r.arrayFormat],s=l==="comma"&&r.commaRoundTrip;n||(n=Object.keys(o)),r.sort&&n.sort(r.sort);for(var c=xk(),p=0;p<n.length;++p){var m=n[p],d=o[m];r.skipNulls&&d===null||Tk(a,cte(d,m,l,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c));}var f=a.join(r.delimiter),u=r.addQueryPrefix===true?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?u+="utf8=%26%2310003%3B&":u+="utf8=%E2%9C%93&"),f.length>0?u+f:""};});var Nk=ze((rYe,wk)=>{var Gl=CS(),bS=Object.prototype.hasOwnProperty,Rk=Array.isArray,Ot={allowDots:false,allowEmptyArrays:false,allowPrototypes:false,allowSparse:false,arrayLimit:20,charset:"utf-8",charsetSentinel:false,comma:false,decodeDotInKeys:false,decoder:Gl.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:false,interpretNumericEntities:false,parameterLimit:1e3,parseArrays:true,plainObjects:false,strictDepth:false,strictNullHandling:false,throwOnLimitExceeded:false},dte=function(e){return e.replace(/&#(\d+);/g,function(t,o){return String.fromCharCode(parseInt(o,10))})},Ik=function(e,t,o){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&o>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},mte="utf8=%26%2310003%3B",ute="utf8=%E2%9C%93",fte=function(t,o){var r={__proto__:null},n=o.ignoreQueryPrefix?t.replace(/^\?/,""):t;n=n.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=o.parameterLimit===1/0?void 0:o.parameterLimit,a=n.split(o.delimiter,o.throwOnLimitExceeded?i+1:i);if(o.throwOnLimitExceeded&&a.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var l=-1,s,c=o.charset;if(o.charsetSentinel)for(s=0;s<a.length;++s)a[s].indexOf("utf8=")===0&&(a[s]===ute?c="utf-8":a[s]===mte&&(c="iso-8859-1"),l=s,s=a.length);for(s=0;s<a.length;++s)if(s!==l){var p=a[s],m=p.indexOf("]="),d=m===-1?p.indexOf("="):m+1,f,u;d===-1?(f=o.decoder(p,Ot.decoder,c,"key"),u=o.strictNullHandling?null:""):(f=o.decoder(p.slice(0,d),Ot.decoder,c,"key"),u=Gl.maybeMap(Ik(p.slice(d+1),o,Rk(r[f])?r[f].length:0),function(y){return o.decoder(y,Ot.decoder,c,"value")})),u&&o.interpretNumericEntities&&c==="iso-8859-1"&&(u=dte(String(u))),p.indexOf("[]=")>-1&&(u=Rk(u)?[u]:u);var g=bS.call(r,f);g&&o.duplicates==="combine"?r[f]=Gl.combine(r[f],u):(!g||o.duplicates==="last")&&(r[f]=u);}return r},gte=function(e,t,o,r){var n=0;if(e.length>0&&e[e.length-1]==="[]"){var i=e.slice(0,-1).join("");n=Array.isArray(t)&&t[i]?t[i].length:0;}for(var a=r?t:Ik(t,o,n),l=e.length-1;l>=0;--l){var s,c=e[l];if(c==="[]"&&o.parseArrays)s=o.allowEmptyArrays&&(a===""||o.strictNullHandling&&a===null)?[]:Gl.combine([],a);else {s=o.plainObjects?{__proto__:null}:{};var p=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,m=o.decodeDotInKeys?p.replace(/%2E/g,"."):p,d=parseInt(m,10);!o.parseArrays&&m===""?s={0:a}:!isNaN(d)&&c!==m&&String(d)===m&&d>=0&&o.parseArrays&&d<=o.arrayLimit?(s=[],s[d]=a):m!=="__proto__"&&(s[m]=a);}a=s;}return a},yte=function(t,o,r,n){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=r.depth>0&&a.exec(i),c=s?i.slice(0,s.index):i,p=[];if(c){if(!r.plainObjects&&bS.call(Object.prototype,c)&&!r.allowPrototypes)return;p.push(c);}for(var m=0;r.depth>0&&(s=l.exec(i))!==null&&m<r.depth;){if(m+=1,!r.plainObjects&&bS.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(s[1]);}if(s){if(r.strictDepth===true)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");p.push("["+i.slice(s.index)+"]");}return gte(p,o,r,n)}},Cte=function(t){if(!t)return Ot;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded<"u"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var o=typeof t.charset>"u"?Ot.charset:t.charset,r=typeof t.duplicates>"u"?Ot.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var n=typeof t.allowDots>"u"?t.decodeDotInKeys===true?true:Ot.allowDots:!!t.allowDots;return {allowDots:n,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ot.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ot.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ot.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ot.arrayLimit,charset:o,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ot.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ot.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Ot.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Ot.decoder,delimiter:typeof t.delimiter=="string"||Gl.isRegExp(t.delimiter)?t.delimiter:Ot.delimiter,depth:typeof t.depth=="number"||t.depth===false?+t.depth:Ot.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===true,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ot.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ot.parameterLimit,parseArrays:t.parseArrays!==false,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ot.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Ot.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ot.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:false}};wk.exports=function(e,t){var o=Cte(t);if(e===""||e===null||typeof e>"u")return o.plainObjects?{__proto__:null}:{};for(var r=typeof e=="string"?fte(e,o):e,n=o.plainObjects?{__proto__:null}:{},i=Object.keys(r),a=0;a<i.length;++a){var l=i[a],s=yte(l,r[l],o,typeof e=="string");n=Gl.merge(n,s,o);}return o.allowSparse===true?n:Gl.compact(n)};});var Ek=ze((nYe,Mk)=>{var hte=Pk(),bte=Nk(),Ste=_f();Mk.exports={formats:Ste,parse:bte,stringify:hte};});function jk(e){let t,o=n=>()=>{t=null,e(...n);},r=(...n)=>{t==null&&(t=$S(o(n)));};return r.cancel=()=>{$S.cancel(t),t=null;},r}var Zf=jk;function PS(){}var _k=PS,RS=ve.createContext({}),Tt=()=>{let e=()=>{};return e.deprecated=PS,e},Ln=_k;var Yp=createContext(void 0);var qk={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Zp=qk;var Kk={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...Xk},timePickerLocale:{...Zp}},Ti=Kk;var Qp=Ti;var ir="${label} is not a valid ${type}",Zk={locale:"en",Pagination:Yk,DatePicker:Ti,TimePicker:Zp,Calendar:Qp,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:ir,method:ir,array:ir,object:ir,number:ir,date:ir,boolean:ir,integer:ir,float:ir,regexp:ir,email:ir,url:ir,hex:ir},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},ct=Zk;var Jp={...ct.Modal},ed=[],IS=()=>ed.reduce((e,t)=>({...e,...t}),ct.Modal);function wS(e){if(e){let t={...e};return ed.push(t),Jp=IS(),()=>{ed=ed.filter(o=>o!==t),Jp=IS();}}Jp={...ct.Modal};}function td(){return Jp}var Jk=createContext(void 0),jl=Jk;var eD=(e,t)=>{let o=ve.useContext(jl),r=ve.useMemo(()=>{let i=t||ct[e],a=o?.[e]??{};return {...typeof i=="function"?i():i,...a||{}}},[e,t,o]),n=ve.useMemo(()=>{let i=o?.locale;return o?.exist&&!i?ct.locale:i},[o]);return [r,n]},Ae=eD;var NS="internalMark",tD=e=>{let{locale:t={},children:o,_ANT_MARK__:r}=e;ve.useEffect(()=>wS(t?.Modal),[t]);let n=ve.useMemo(()=>({...t,exist:true}),[t]);return ve.createElement(jl.Provider,{value:n},o)},MS=tD;var fc={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},oD={...fc,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
5
5
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
6
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},
|
|
6
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:false,motion:true},jr=oD;function gc(e,{generateColorPalettes:t,generateNeutralColorPalettes:o}){let{colorSuccess:r,colorWarning:n,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,p=t(l),m=t(r),d=t(n),f=t(i),u=t(a),g=o(s,c),y=e.colorLink||e.colorInfo,h=t(y),b=new TinyColor(f[1]).mix(new TinyColor(f[3]),50).toHexString();return {...g,colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:b,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:d[1],colorWarningBgHover:d[2],colorWarningBorder:d[3],colorWarningBorderHover:d[4],colorWarningHover:d[4],colorWarning:d[6],colorWarningActive:d[7],colorWarningTextHover:d[8],colorWarningText:d[9],colorWarningTextActive:d[10],colorInfoBg:u[1],colorInfoBgHover:u[2],colorInfoBorder:u[3],colorInfoBorderHover:u[4],colorInfoHover:u[4],colorInfo:u[6],colorInfoActive:u[7],colorInfoTextHover:u[8],colorInfoText:u[9],colorInfoTextActive:u[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"}}var rD=e=>{let t=e,o=e,r=e,n=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?o=4:e<8&&e>=7?o=5:e<14&&e>=8?o=6:e<16&&e>=14?o=7:e>=16&&(o=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:o,borderRadiusLG:t,borderRadiusOuter:n}},ES=rD;function eg(e){let{motionUnit:t,motionBase:o,borderRadius:r,lineWidth:n}=e;return {motionDurationFast:`${(o+t).toFixed(1)}s`,motionDurationMid:`${(o+t*2).toFixed(1)}s`,motionDurationSlow:`${(o+t*3).toFixed(1)}s`,lineWidthBold:n+1,...ES(r)}}var nD=e=>{let{controlHeight:t}=e;return {controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},od=nD;function Ul(e){return (e+8)/e}function tg(e){let t=new Array(10).fill(null).map((o,r)=>{let n=r-1,i=e*Math.E**(n/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(o=>({size:o,lineHeight:Ul(o)}))}var iD=e=>{let t=tg(e),o=t.map(p=>p.size),r=t.map(p=>p.lineHeight),n=o[1],i=o[0],a=o[2],l=r[1],s=r[0],c=r[2];return {fontSizeSM:i,fontSize:n,fontSizeLG:a,fontSizeXL:o[3],fontSizeHeading1:o[6],fontSizeHeading2:o[5],fontSizeHeading3:o[4],fontSizeHeading4:o[3],fontSizeHeading5:o[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*n),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},rd=iD;function og(e){let{sizeUnit:t,sizeStep:o}=e;return {sizeXXL:t*(o+8),sizeXL:t*(o+4),sizeLG:t*(o+2),sizeMD:t*(o+1),sizeMS:t*o,size:t*o,sizeSM:t*(o-1),sizeXS:t*(o-2),sizeXXS:t*(o-3)}}var ar=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),ql=(e,t)=>new TinyColor(e).darken(t).toHexString();var DS=e=>{let t=generate(e);return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},BS=(e,t)=>{let o=e||"#fff",r=t||"#000";return {colorBgBase:o,colorTextBase:r,colorText:ar(r,.88),colorTextSecondary:ar(r,.65),colorTextTertiary:ar(r,.45),colorTextQuaternary:ar(r,.25),colorFill:ar(r,.15),colorFillSecondary:ar(r,.06),colorFillTertiary:ar(r,.04),colorFillQuaternary:ar(r,.02),colorBgSolid:ar(r,1),colorBgSolidHover:ar(r,.75),colorBgSolidActive:ar(r,.95),colorBgLayout:ql(o,4),colorBgContainer:ql(o,0),colorBgElevated:ql(o,0),colorBgSpotlight:ar(r,.85),colorBgBlur:"transparent",colorBorder:ql(o,15),colorBorderSecondary:ql(o,6)}};function _r(e){presetPrimaryColors.pink=presetPrimaryColors.magenta,presetPalettes.pink=presetPalettes.magenta;let t=Object.keys(fc).map(o=>{let r=e[o]===presetPrimaryColors[o]?presetPalettes[o]:generate(e[o]);return new Array(10).fill(1).reduce((n,i,a)=>(n[`${o}-${a+1}`]=r[a],n[`${o}${a+1}`]=r[a],n),{})}).reduce((o,r)=>(o={...o,...r},o),{});return {...e,...t,...gc(e,{generateColorPalettes:DS,generateNeutralColorPalettes:BS}),...rd(e.fontSize),...og(e),...od(e),...eg(e)}}var nd=createTheme(_r),$i={token:jr,override:{override:jr},hashed:true},Ra=ve__default.createContext($i);var Pi="ant",Xl="anticon",ig=["outlined","borderless","filled"],pD=(e,t)=>t||(e?`${Pi}-${e}`:Pi),O=ve.createContext({getPrefixCls:pD,iconPrefixCls:Xl}),{Consumer:dD}=O;var fD=`-ant-${Date.now()}-${Math.random()}`;function gD(e,t){let o={},r=(a,l)=>{let s=a.clone();return s=l?.(s)||s,s.toRgbString()},n=(a,l)=>{let s=new TinyColor(a),c=generate(s.toRgbString());o[`${l}-color`]=r(s),o[`${l}-color-disabled`]=c[1],o[`${l}-color-hover`]=c[4],o[`${l}-color-active`]=c[6],o[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),o[`${l}-color-deprecated-bg`]=c[0],o[`${l}-color-deprecated-border`]=c[2];};if(t.primaryColor){n(t.primaryColor,"primary");let a=new TinyColor(t.primaryColor),l=generate(a.toRgbString());l.forEach((c,p)=>{o[`primary-${p+1}`]=c;}),o["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),o["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),o["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),o["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),o["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));let s=new TinyColor(l[0]);o["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),o["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2));}return t.successColor&&n(t.successColor,"success"),t.warningColor&&n(t.warningColor,"warning"),t.errorColor&&n(t.errorColor,"error"),t.infoColor&&n(t.infoColor,"info"),`
|
|
7
7
|
:root {
|
|
8
8
|
${Object.keys(o).map(a=>`--${e}-${a}: ${o[a]};`).join(`
|
|
9
9
|
`)}
|
|
10
10
|
}
|
|
11
|
-
`.trim()}function
|
|
11
|
+
`.trim()}function zS(e,t){let o=gD(e,t);mD()?updateCSS(o,`${fD}-dynamic-theme`):Ln();}var lg=ve.createContext(false),Yl=({children:e,disabled:t})=>{let o=ve.useContext(lg);return ve.createElement(lg.Provider,{value:t??o},e)},We=lg;var sg=ve.createContext(void 0),AS=({children:e,size:t})=>{let o=ve.useContext(sg);return ve.createElement(sg.Provider,{value:t||o},e)},Hn=sg;function yD(){let e=useContext(We),t=useContext(Hn);return {componentDisabled:e,componentSize:t}}var HS=yD;var mn=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var WS={version:"0.0.3"};var cg=WS.version;function pg(e){return e>=0&&e<=255}function hD(e,t){let{r:o,g:r,b:n,a:i}=new TinyColor(e).toRgb();if(i<1)return e;let{r:a,g:l,b:s}=new TinyColor(t).toRgb();for(let c=.01;c<=1;c+=.01){let p=Math.round((o-a*(1-c))/c),m=Math.round((r-l*(1-c))/c),d=Math.round((n-s*(1-c))/c);if(pg(p)&&pg(m)&&pg(d))return new TinyColor({r:p,g:m,b:d,a:Math.round(c*100)/100}).toRgbString()}return new TinyColor({r:o,g:r,b:n,a:1}).toRgbString()}var yc=hD;function Ql(e){let{override:t,...o}=e,r={...t};Object.keys(jr).forEach(d=>{delete r[d];});let n={...o,...r},i=480,a=576,l=768,s=992,c=1200,p=1600;return n.motion===false&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),{...n,colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:yc(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:yc(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:yc(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:yc(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
|
|
12
12
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
13
13
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
14
14
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -40,107 +40,107 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
|
|
|
40
40
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
41
41
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
42
42
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
43
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...r}}var bf={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},LE={size:true,sizeSM:true,sizeLG:true,sizeMD:true,sizeXS:true,sizeXXS:true,sizeMS:true,sizeXL:true,sizeXXL:true,sizeUnit:true,sizeStep:true,motionBase:true,motionUnit:true},HE={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},DS=(e,t,o)=>{let r=o.getDerivativeToken(e),{override:n,...i}=t,a={...r,override:n};return a=wl(a),i&&Object.entries(i).forEach(([l,s])=>{let{theme:c,...p}=s,d=p;c&&(d=DS({...a,...p},{override:p},c)),a[l]=d;}),a};function ve(){let{token:e,hashed:t,theme:o,override:r,cssVar:n}=ue__default.useContext(sa),i=`${Cf}-${t||""}`,a=o||Pp,[l,s,c]=useCacheToken(a,[Ar,e],{salt:i,override:r,getComputedToken:DS,formatToken:wl,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:bf,ignore:LE,preserve:HE}});return [a,c,t?s:"",l,n]}var Oe={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ne=(e,t=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Io=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Zt=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),AS=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),FS=(e,t,o,r)=>{let n=`[class^="${t}"], [class*=" ${t}"]`,i=o?`.${o}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return r!==false&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...l,...a,[n]:a}}},wo=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),St=e=>({"&:focus-visible":{...wo(e)}}),Rp=e=>({[`.${e}`]:{...Io(),[`.${e} .${e}-icon`]:{display:"block"}}}),pi=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...St(e),"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var{genStyleHooks:te,genComponentStyleHook:js,genSubStyleComponent:No}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=useContext(B);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,o,r,n]=ve();return {theme:e,realToken:t,hashId:o,token:r,cssVar:n}},useCSP:()=>{let{csp:e}=useContext(B);return e??{}},getResetStyles:(e,t)=>[{"&":AS(e)},Rp(t?.prefix.iconPrefixCls??Pl)],getCommonStyle:FS,getCompUnitless:(()=>bf)});function on(e,t){return tn.reduce((o,r)=>{let n=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return {...o,...t(r,{lightColor:n,lightBorderColor:i,darkColor:a,textColor:l})}},{})}var _E=(e,t)=>{let[o,r]=ve();return useStyleRegister({theme:o,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[Rp(e)])},Ip=_E;var UE={...ue},{useId:zS}=UE,qE=()=>"",XE=typeof zS>"u"?qE:zS,LS=XE;function xf(e,t,o){ht();let n=e||{},i=n.inherit===false||!t?{...si,hashed:t?.hashed??si.hashed,cssVar:t?.cssVar}:t,a=LS();return KE(()=>{if(!e)return t;let l={...i.components};Object.keys(e.components||{}).forEach(p=>{l[p]={...l[p],...e.components[p]};});let s=`css-var-${a.replace(/:/g,"")}`,c=(n.cssVar??i.cssVar)&&{prefix:o?.prefixCls,...typeof i.cssVar=="object"?i.cssVar:{},...typeof n.cssVar=="object"?n.cssVar:{},key:typeof n.cssVar=="object"&&n.cssVar?.key||s};return {...i,...n,token:{...i.token,...n.token},components:l,cssVar:c}},[n,i],(l,s)=>l.some((c,p)=>{let d=s[p];return !B1(c,d,true)}))}function Tf(e){let{children:t}=e,[,o]=ve(),{motion:r}=o,n=ue.useRef(false);return n.current=n.current||r===false,n.current?ue.createElement(Provider,{motion:r},t):t}ue.memo(({dropdownMatchSelectWidth:e})=>(ht().deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));var WS=()=>null;var tk=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Mp,VS,_S,jS;function Np(){return Mp||ci}function ok(){return VS||Pl}function rk(e){return Object.keys(e).some(t=>t.endsWith("Color"))}var nk=e=>{let{prefixCls:t,iconPrefixCls:o,theme:r,holderRender:n}=e;t!==void 0&&(Mp=t),o!==void 0&&(VS=o),"holderRender"in e&&(jS=n),r&&(rk(r)?(NS(Np(),r)):_S=r);},di=()=>({getPrefixCls:(e,t)=>t||(e?`${Np()}-${e}`:Np()),getIconPrefixCls:ok,getRootPrefixCls:()=>Mp||Np(),getTheme:()=>_S,holderRender:jS}),ik=e=>{let{children:t,csp:o,autoInsertSpaceInButton:r,alert:n,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:p,splitter:d,virtual:m,dropdownMatchSelectWidth:f,popupMatchSelectWidth:u,popupOverflow:g,legacyLocale:y,parentContext:S,iconPrefixCls:h,theme:C,componentDisabled:b,segmented:v,statistic:x,spin:T,calendar:$,carousel:R,cascader:P,collapse:I,typography:M,checkbox:E,descriptions:w,divider:N,drawer:A,skeleton:k,steps:D,image:F,layout:O,list:L,mentions:_,modal:H,progress:z,result:G,slider:W,breadcrumb:q,menu:j,pagination:K,input:Q,textArea:V,empty:U,badge:Y,radio:J,rate:ie,switch:ee,transfer:X,avatar:Z,message:re,tag:ae,table:se,card:Ce,tabs:$e,timeline:Ge,timePicker:xe,upload:qe,notification:lt,tree:Ye,colorPicker:me,datePicker:Re,rangePicker:Ne,flex:Me,wave:De,dropdown:fe,warning:le,tour:ce,variant:pe,inputNumber:he,treeSelect:it}=e,go=ue.useCallback((be,Ve)=>{let{prefixCls:vt}=e;if(Ve)return Ve;let Pt=vt||S.getPrefixCls("");return be?`${Pt}-${be}`:Pt},[S.getPrefixCls,e.prefixCls]),je=h||S.iconPrefixCls||Pl,Ue=o||S.csp;Ip(je,Ue);let Po=xf(C,S.theme,{prefixCls:go("")}),$o={csp:Ue,autoInsertSpaceInButton:r,alert:n,anchor:i,locale:l||y,direction:c,space:p,splitter:d,virtual:m,popupMatchSelectWidth:u??f,popupOverflow:g,getPrefixCls:go,iconPrefixCls:je,theme:Po,segmented:v,statistic:x,spin:T,calendar:$,carousel:R,cascader:P,collapse:I,typography:M,checkbox:E,descriptions:w,divider:N,drawer:A,skeleton:k,steps:D,image:F,input:Q,textArea:V,layout:O,list:L,mentions:_,modal:H,progress:z,result:G,slider:W,breadcrumb:q,menu:j,pagination:K,empty:U,badge:Y,radio:J,rate:ie,switch:ee,transfer:X,avatar:Z,message:re,tag:ae,table:se,card:Ce,tabs:$e,timeline:Ge,timePicker:xe,upload:qe,notification:lt,tree:Ye,colorPicker:me,datePicker:Re,rangePicker:Ne,flex:Me,wave:De,dropdown:fe,warning:le,tour:ce,variant:pe,inputNumber:he,treeSelect:it},br={...S};Object.keys($o).forEach(be=>{$o[be]!==void 0&&(br[be]=$o[be]);}),tk.forEach(be=>{let Ve=e[be];Ve&&(br[be]=Ve);}),typeof r<"u"&&(br.button={autoInsertSpace:r,...br.button});let Ro=KE(()=>br,br,(be,Ve)=>{let vt=Object.keys(be),Pt=Object.keys(Ve);return vt.length!==Pt.length||vt.some(yo=>be[yo]!==Ve[yo])}),ai=ue.useMemo(()=>({prefixCls:je,csp:Ue}),[je,Ue]),Tt=ue.createElement(ue.Fragment,null,ue.createElement(WS,{dropdownMatchSelectWidth:f}),t),en=ue.useMemo(()=>merge(tt.Form?.defaultValidateMessages||{},Ro.locale?.Form?.defaultValidateMessages||{},Ro.form?.validateMessages||{},a?.validateMessages||{}),[Ro,a?.validateMessages]);Object.keys(en).length>0&&(Tt=ue.createElement(yp.Provider,{value:en},Tt)),l&&(Tt=ue.createElement(TS,{locale:l,_ANT_MARK__:xS},Tt)),(Tt=ue.createElement(QE.Provider,{value:ai},Tt)),s&&(Tt=ue.createElement(MS,{size:s},Tt)),Tt=ue.createElement(Tf,null,Tt);let ge=ue.useMemo(()=>{let{algorithm:be,token:Ve,components:vt,cssVar:Pt,...yo}=Po||{},Yo=be&&(!Array.isArray(be)||be.length>0)?createTheme(be):Pp,Ie={};Object.entries(vt||{}).forEach(([Mt,st])=>{let ao={...st};"algorithm"in ao&&(ao.algorithm===true?ao.theme=Yo:(Array.isArray(ao.algorithm)||typeof ao.algorithm=="function")&&(ao.theme=createTheme(ao.algorithm)),delete ao.algorithm),Ie[Mt]=ao;});let _e={...Ar,...Ve};return {...yo,theme:Yo,token:_e,components:Ie,override:{override:_e,...Ie},cssVar:Pt}},[Po]);return C&&(Tt=ue.createElement(sa.Provider,{value:ge},Tt)),Ro.warning&&(Tt=ue.createElement(hS.Provider,{value:Ro.warning},Tt)),b!==void 0&&(Tt=ue.createElement(Rl,{disabled:b},Tt)),ue.createElement(B.Provider,{value:Ro},Tt)},Nl=e=>{let t=ue.useContext(B),o=ue.useContext(bl);return ue.createElement(ik,{parentContext:t,legacyLocale:o,...e})};Nl.ConfigContext=B;Nl.SizeContext=In;Nl.config=nk;Nl.useConfig=kS;Object.defineProperty(Nl,"SizeContext",{get:()=>(In)});var Jo=Nl;var ak=e=>{let{componentCls:t}=e;return {[t]:{position:"fixed",zIndex:e.zIndexPopup}}},lk=e=>({zIndexPopup:e.zIndexBase+10}),US=te("Affix",ak,lk);function Us(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function vf(e,t,o){if(o!==void 0&&Math.round(t.top)>Math.round(e.top)-o)return o+t.top}function Pf(e,t,o){if(o!==void 0&&Math.round(t.bottom)<Math.round(e.bottom)+o){let r=window.innerHeight-t.bottom;return o+r}}var KS=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function ck(){return typeof window<"u"?window:null}var YS=0,ZS=1,pk=ue__default.forwardRef((e,t)=>{let{style:o,offsetTop:r,offsetBottom:n,prefixCls:i,className:a,rootClassName:l,children:s,target:c,onChange:p}=e,{getPrefixCls:d,getTargetContainer:m}=ue__default.useContext(B),f=d("affix",i),[u,g]=ue__default.useState(false),[y,S]=ue__default.useState(),[h,C]=ue__default.useState(),b=ue__default.useRef(YS),v=ue__default.useRef(null),x=ue__default.useRef(null),T=ue__default.useRef(null),$=ue__default.useRef(null),R=ue__default.useRef(null),P=c??m??ck,I=n===void 0&&r===void 0?0:r,M=()=>{if(b.current!==ZS||!$.current||!T.current||!P)return;let z=P();if(z){let G={status:YS},W=Us(T.current);if(W.top===0&&W.left===0&&W.width===0&&W.height===0)return;let q=Us(z),j=vf(W,q,I),K=Pf(W,q,n);j!==void 0?(G.affixStyle={position:"fixed",top:j,width:W.width,height:W.height},G.placeholderStyle={width:W.width,height:W.height}):K!==void 0&&(G.affixStyle={position:"fixed",bottom:K,width:W.width,height:W.height},G.placeholderStyle={width:W.width,height:W.height}),G.lastAffix=!!G.affixStyle,u!==G.lastAffix&&p?.(G.lastAffix),b.current=G.status,S(G.affixStyle),C(G.placeholderStyle),g(G.lastAffix);}},E=()=>{b.current=ZS,M();},w=nf(()=>{E();}),N=nf(()=>{if(P&&y){let z=P();if(z&&T.current){let G=Us(z),W=Us(T.current),q=vf(W,G,I),j=Pf(W,G,n);if(q!==void 0&&y.top===q||j!==void 0&&y.bottom===j)return}}E();}),A=()=>{let z=P?.();z&&(KS.forEach(G=>{x.current&&v.current?.removeEventListener(G,x.current),z?.addEventListener(G,N);}),v.current=z,x.current=N);},k=()=>{R.current&&(clearTimeout(R.current),R.current=null);let z=P?.();KS.forEach(G=>{z?.removeEventListener(G,N),x.current&&v.current?.removeEventListener(G,x.current);}),w.cancel(),N.cancel();};ue__default.useImperativeHandle(t,()=>({updatePosition:w})),ue__default.useEffect(()=>(R.current=setTimeout(A),()=>k()),[]),ue__default.useEffect(()=>{A();},[c,y]),ue__default.useEffect(()=>{w();},[c,r,n]);let[D,F,O]=US(f),L=ki(l,F,f,O),_=ki({[L]:y}),H=fx(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return D(ue__default.createElement(XS,{onResize:w},ue__default.createElement("div",{style:o,className:a,ref:T,...H},y&&ue__default.createElement("div",{style:h,"aria-hidden":"true"}),ue__default.createElement("div",{className:_,ref:$,style:y},ue__default.createElement(XS,{onResize:w},s)))))}),$f=pk;function kp(e){return e&&ue__default.isValidElement(e)&&e.type===ue__default.Fragment}var qs=(e,t,o)=>ue__default.isValidElement(e)?ue__default.cloneElement(e,typeof o=="function"?o(e.props||{}):o):t;function Pe(e,t){return qs(e,e,t)}var Bp=(e,t,o,r,n)=>({background:e,border:`${unit(r.lineWidth)} ${r.lineType} ${t}`,[`${n}-icon`]:{color:o}}),dk=e=>{let{componentCls:t,motionDurationSlow:o,marginXS:r,marginSM:n,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:p,colorText:d,colorTextHeading:m,withDescriptionPadding:f,defaultPadding:u}=e;return {[t]:{...ne(e),position:"relative",display:"flex",alignItems:"center",padding:u,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${o} ${c}, opacity ${o} ${c},
|
|
43
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)",...r}}var mg={lineHeight:true,lineHeightSM:true,lineHeightLG:true,lineHeightHeading1:true,lineHeightHeading2:true,lineHeightHeading3:true,lineHeightHeading4:true,lineHeightHeading5:true,opacityLoading:true,fontWeightStrong:true,zIndexPopupBase:true,zIndexBase:true,opacityImage:true},xD={size:true,sizeSM:true,sizeLG:true,sizeMD:true,sizeXS:true,sizeXXS:true,sizeMS:true,sizeXL:true,sizeXXL:true,sizeUnit:true,sizeStep:true,motionBase:true,motionUnit:true},vD={screenXS:true,screenXSMin:true,screenXSMax:true,screenSM:true,screenSMMin:true,screenSMMax:true,screenMD:true,screenMDMin:true,screenMDMax:true,screenLG:true,screenLGMin:true,screenLGMax:true,screenXL:true,screenXLMin:true,screenXLMax:true,screenXXL:true,screenXXLMin:true},GS=(e,t,o)=>{let r=o.getDerivativeToken(e),{override:n,...i}=t,a={...r,override:n};return a=Ql(a),i&&Object.entries(i).forEach(([l,s])=>{let{theme:c,...p}=s,m=p;c&&(m=GS({...a,...p},{override:p},c)),a[l]=m;}),a};function De(){let{token:e,hashed:t,theme:o,override:r,cssVar:n}=ve__default.useContext(Ra),i=`${cg}-${t||""}`,a=o||nd,[l,s,c]=useCacheToken(a,[jr,e],{salt:i,override:r,getComputedToken:GS,formatToken:Ql,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:mg,ignore:xD,preserve:vD}});return [a,c,t?s:"",l,n]}var qe={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ae=(e,t=false)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Oo=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),no=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),VS=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),jS=(e,t,o,r)=>{let n=`[class^="${t}"], [class*=" ${t}"]`,i=o?`.${o}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return r!==false&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:{...l,...a,[n]:a}}},Fo=e=>({outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),$t=e=>({"&:focus-visible":{...Fo(e)}}),ad=e=>({[`.${e}`]:{...Oo(),[`.${e} .${e}-icon`]:{display:"block"}}}),Ri=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...$t(e),"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});var{genStyleHooks:oe,genComponentStyleHook:Cc,genSubStyleComponent:zo}=genStyleUtils({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=useContext(O);return {rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,o,r,n]=De();return {theme:e,realToken:t,hashId:o,token:r,cssVar:n}},useCSP:()=>{let{csp:e}=useContext(O);return e??{}},getResetStyles:(e,t)=>[{"&":VS(e)},ad(t?.prefix.iconPrefixCls??Xl)],getCommonStyle:jS,getCompUnitless:(()=>mg)});function un(e,t){return mn.reduce((o,r)=>{let n=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return {...o,...t(r,{lightColor:n,lightBorderColor:i,darkColor:a,textColor:l})}},{})}var RD=(e,t)=>{let[o,r]=De();return useStyleRegister({theme:o,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>[ad(e)])},ld=RD;var wD={...ve},{useId:US}=wD,ND=()=>"",MD=typeof US>"u"?ND:US,qS=MD;function ug(e,t,o){Tt();let n=e||{},i=n.inherit===false||!t?{...$i,hashed:t?.hashed??$i.hashed,cssVar:t?.cssVar}:t,a=qS();return ED(()=>{if(!e)return t;let l={...i.components};Object.keys(e.components||{}).forEach(p=>{l[p]={...l[p],...e.components[p]};});let s=`css-var-${a.replace(/:/g,"")}`,c=(n.cssVar??i.cssVar)&&{prefix:o?.prefixCls,...typeof i.cssVar=="object"?i.cssVar:{},...typeof n.cssVar=="object"?n.cssVar:{},key:typeof n.cssVar=="object"&&n.cssVar?.key||s};return {...i,...n,token:{...i.token,...n.token},components:l,cssVar:c}},[n,i],(l,s)=>l.some((c,p)=>{let m=s[p];return !VI(c,m,true)}))}function fg(e){let{children:t}=e,[,o]=De(),{motion:r}=o,n=ve.useRef(false);return n.current=n.current||r===false,n.current?ve.createElement(Provider,{motion:r},t):t}ve.memo(({dropdownMatchSelectWidth:e})=>(Tt().deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));var KS=()=>null;var zD=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],pd,ZS,QS,JS;function cd(){return pd||Pi}function AD(){return ZS||Xl}function LD(e){return Object.keys(e).some(t=>t.endsWith("Color"))}var HD=e=>{let{prefixCls:t,iconPrefixCls:o,theme:r,holderRender:n}=e;t!==void 0&&(pd=t),o!==void 0&&(ZS=o),"holderRender"in e&&(JS=n),r&&(LD(r)?(zS(cd(),r)):QS=r);},Ii=()=>({getPrefixCls:(e,t)=>t||(e?`${cd()}-${e}`:cd()),getIconPrefixCls:AD,getRootPrefixCls:()=>pd||cd(),getTheme:()=>QS,holderRender:JS}),WD=e=>{let{children:t,csp:o,autoInsertSpaceInButton:r,alert:n,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:p,splitter:m,virtual:d,dropdownMatchSelectWidth:f,popupMatchSelectWidth:u,popupOverflow:g,legacyLocale:y,parentContext:h,iconPrefixCls:b,theme:C,componentDisabled:S,segmented:v,statistic:x,spin:$,calendar:R,carousel:T,cascader:P,collapse:N,typography:M,checkbox:E,descriptions:I,divider:w,drawer:B,skeleton:k,steps:D,image:F,layout:A,list:L,mentions:q,modal:V,progress:z,result:G,slider:_,breadcrumb:Z,menu:K,pagination:Q,input:ee,textArea:j,empty:Y,badge:J,radio:te,rate:ue,switch:W,transfer:H,avatar:X,message:re,tag:ce,table:fe,card:Pe,tabs:we,timeline:ye,timePicker:ge,upload:xe,notification:Te,tree:Se,colorPicker:de,datePicker:U,rangePicker:pe,flex:se,wave:he,dropdown:le,warning:ie,tour:me,variant:Ce,inputNumber:be,treeSelect:_e}=e,Ut=ve.useCallback((Ee,Je)=>{let{prefixCls:wt}=e;if(Je)return Je;let Nt=wt||h.getPrefixCls("");return Ee?`${Nt}-${Ee}`:Nt},[h.getPrefixCls,e.prefixCls]),Ke=b||h.iconPrefixCls||Xl,tt=o||h.csp;ld(Ke,tt);let ko=ug(C,h.theme,{prefixCls:Ut("")}),Do={csp:tt,autoInsertSpaceInButton:r,alert:n,anchor:i,locale:l||y,direction:c,space:p,splitter:m,virtual:d,popupMatchSelectWidth:u??f,popupOverflow:g,getPrefixCls:Ut,iconPrefixCls:Ke,theme:ko,segmented:v,statistic:x,spin:$,calendar:R,carousel:T,cascader:P,collapse:N,typography:M,checkbox:E,descriptions:I,divider:w,drawer:B,skeleton:k,steps:D,image:F,input:ee,textArea:j,layout:A,list:L,mentions:q,modal:V,progress:z,result:G,slider:_,breadcrumb:Z,menu:K,pagination:Q,empty:Y,badge:J,radio:te,rate:ue,switch:W,transfer:H,avatar:X,message:re,tag:ce,table:fe,card:Pe,tabs:we,timeline:ye,timePicker:ge,upload:xe,notification:Te,tree:Se,colorPicker:de,datePicker:U,rangePicker:pe,flex:se,wave:he,dropdown:le,warning:ie,tour:me,variant:Ce,inputNumber:be,treeSelect:_e},wr={...h};Object.keys(Do).forEach(Ee=>{Do[Ee]!==void 0&&(wr[Ee]=Do[Ee]);}),zD.forEach(Ee=>{let Je=e[Ee];Je&&(wr[Ee]=Je);}),typeof r<"u"&&(wr.button={autoInsertSpace:r,...wr.button});let Bo=ED(()=>wr,wr,(Ee,Je)=>{let wt=Object.keys(Ee),Nt=Object.keys(Je);return wt.length!==Nt.length||wt.some(To=>Ee[To]!==Je[To])}),vi=ve.useMemo(()=>({prefixCls:Ke,csp:tt}),[Ke,tt]),It=ve.createElement(ve.Fragment,null,ve.createElement(KS,{dropdownMatchSelectWidth:f}),t),dn=ve.useMemo(()=>merge(ct.Form?.defaultValidateMessages||{},Bo.locale?.Form?.defaultValidateMessages||{},Bo.form?.validateMessages||{},a?.validateMessages||{}),[Bo,a?.validateMessages]);Object.keys(dn).length>0&&(It=ve.createElement(Yp.Provider,{value:dn},It)),l&&(It=ve.createElement(MS,{locale:l,_ANT_MARK__:NS},It)),(It=ve.createElement(BD.Provider,{value:vi},It)),s&&(It=ve.createElement(AS,{size:s},It)),It=ve.createElement(fg,null,It);let Ie=ve.useMemo(()=>{let{algorithm:Ee,token:Je,components:wt,cssVar:Nt,...To}=ko||{},nr=Ee&&(!Array.isArray(Ee)||Ee.length>0)?createTheme(Ee):nd,Fe={};Object.entries(wt||{}).forEach(([Ft,ut])=>{let go={...ut};"algorithm"in go&&(go.algorithm===true?go.theme=nr:(Array.isArray(go.algorithm)||typeof go.algorithm=="function")&&(go.theme=createTheme(go.algorithm)),delete go.algorithm),Fe[Ft]=go;});let et={...jr,...Je};return {...To,theme:nr,token:et,components:Fe,override:{override:et,...Fe},cssVar:Nt}},[ko]);return C&&(It=ve.createElement(Ra.Provider,{value:Ie},It)),Bo.warning&&(It=ve.createElement(RS.Provider,{value:Bo.warning},It)),S!==void 0&&(It=ve.createElement(Yl,{disabled:S},It)),ve.createElement(O.Provider,{value:Bo},It)},Jl=e=>{let t=ve.useContext(O),o=ve.useContext(jl);return ve.createElement(WD,{parentContext:t,legacyLocale:o,...e})};Jl.ConfigContext=O;Jl.SizeContext=Hn;Jl.config=HD;Jl.useConfig=HS;Object.defineProperty(Jl,"SizeContext",{get:()=>(Hn)});var lr=Jl;var GD=e=>{let{componentCls:t}=e;return {[t]:{position:"fixed",zIndex:e.zIndexPopup}}},VD=e=>({zIndexPopup:e.zIndexBase+10}),ex=oe("Affix",GD,VD);function hc(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function gg(e,t,o){if(o!==void 0&&Math.round(t.top)>Math.round(e.top)-o)return o+t.top}function yg(e,t,o){if(o!==void 0&&Math.round(t.bottom)<Math.round(e.bottom)+o){let r=window.innerHeight-t.bottom;return o+r}}var rx=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function _D(){return typeof window<"u"?window:null}var nx=0,ix=1,UD=ve__default.forwardRef((e,t)=>{let{style:o,offsetTop:r,offsetBottom:n,prefixCls:i,className:a,rootClassName:l,children:s,target:c,onChange:p}=e,{getPrefixCls:m,getTargetContainer:d}=ve__default.useContext(O),f=m("affix",i),[u,g]=ve__default.useState(false),[y,h]=ve__default.useState(),[b,C]=ve__default.useState(),S=ve__default.useRef(nx),v=ve__default.useRef(null),x=ve__default.useRef(null),$=ve__default.useRef(null),R=ve__default.useRef(null),T=ve__default.useRef(null),P=c??d??_D,N=n===void 0&&r===void 0?0:r,M=()=>{if(S.current!==ix||!R.current||!$.current||!P)return;let z=P();if(z){let G={status:nx},_=hc($.current);if(_.top===0&&_.left===0&&_.width===0&&_.height===0)return;let Z=hc(z),K=gg(_,Z,N),Q=yg(_,Z,n);K!==void 0?(G.affixStyle={position:"fixed",top:K,width:_.width,height:_.height},G.placeholderStyle={width:_.width,height:_.height}):Q!==void 0&&(G.affixStyle={position:"fixed",bottom:Q,width:_.width,height:_.height},G.placeholderStyle={width:_.width,height:_.height}),G.lastAffix=!!G.affixStyle,u!==G.lastAffix&&p?.(G.lastAffix),S.current=G.status,h(G.affixStyle),C(G.placeholderStyle),g(G.lastAffix);}},E=()=>{S.current=ix,M();},I=Zf(()=>{E();}),w=Zf(()=>{if(P&&y){let z=P();if(z&&$.current){let G=hc(z),_=hc($.current),Z=gg(_,G,N),K=yg(_,G,n);if(Z!==void 0&&y.top===Z||K!==void 0&&y.bottom===K)return}}E();}),B=()=>{let z=P?.();z&&(rx.forEach(G=>{x.current&&v.current?.removeEventListener(G,x.current),z?.addEventListener(G,w);}),v.current=z,x.current=w);},k=()=>{T.current&&(clearTimeout(T.current),T.current=null);let z=P?.();rx.forEach(G=>{z?.removeEventListener(G,w),x.current&&v.current?.removeEventListener(G,x.current);}),I.cancel(),w.cancel();};ve__default.useImperativeHandle(t,()=>({updatePosition:I})),ve__default.useEffect(()=>(T.current=setTimeout(B),()=>k()),[]),ve__default.useEffect(()=>{B();},[c,y]),ve__default.useEffect(()=>{I();},[c,r,n]);let[D,F,A]=ex(f),L=Xi(l,F,f,A),q=Xi({[L]:y}),V=vv(e,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return D(ve__default.createElement(ox,{onResize:I},ve__default.createElement("div",{style:o,className:a,ref:$,...V},y&&ve__default.createElement("div",{style:b,"aria-hidden":"true"}),ve__default.createElement("div",{className:q,ref:R,style:y},ve__default.createElement(ox,{onResize:I},s)))))}),Cg=UD;function md(e){return e&&ve__default.isValidElement(e)&&e.type===ve__default.Fragment}var bc=(e,t,o)=>ve__default.isValidElement(e)?ve__default.cloneElement(e,typeof o=="function"?o(e.props||{}):o):t;function Oe(e,t){return bc(e,e,t)}var ud=(e,t,o,r,n)=>({background:e,border:`${unit(r.lineWidth)} ${r.lineType} ${t}`,[`${n}-icon`]:{color:o}}),qD=e=>{let{componentCls:t,motionDurationSlow:o,marginXS:r,marginSM:n,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:p,colorText:m,colorTextHeading:d,withDescriptionPadding:f,defaultPadding:u}=e;return {[t]:{...ae(e),position:"relative",display:"flex",alignItems:"center",padding:u,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${o} ${c}, opacity ${o} ${c},
|
|
44
44
|
padding-top ${o} ${c}, padding-bottom ${o} ${c},
|
|
45
|
-
margin-bottom ${o} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:n,fontSize:p,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},mk=e=>{let{componentCls:t,colorSuccess:o,colorSuccessBorder:r,colorSuccessBg:n,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:p,colorInfo:d,colorInfoBorder:m,colorInfoBg:f}=e;return {[t]:{"&-success":Bp(n,r,o,e,t),"&-info":Bp(f,m,d,e,t),"&-warning":Bp(l,a,i,e,t),"&-error":{...Bp(p,c,s,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},uk=e=>{let{componentCls:t,iconCls:o,motionDurationMid:r,marginXS:n,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return {[t]:{"&-action":{marginInlineStart:n},[`${t}-close-icon`]:{marginInlineStart:n,padding:0,overflow:"hidden",fontSize:i,lineHeight:unit(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${o}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},fk=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),JS=te("Alert",e=>[dk(e),mk(e),uk(e)],fk);var vk={success:gk,info:Sk,error:yk,warning:hk},Pk=e=>{let{icon:t,prefixCls:o,type:r}=e,n=vk[r]||null;return t?qs(t,ue.createElement("span",{className:`${o}-icon`},t),()=>({className:ki(`${o}-icon`,t.props.className)})):ue.createElement(n,{className:`${o}-icon`})},$k=e=>{let{isClosable:t,prefixCls:o,closeIcon:r,handleClose:n,ariaProps:i}=e,a=r===true||r===void 0?ue.createElement(Ck,null):r;return t?ue.createElement("button",{type:"button",onClick:n,className:`${o}-close-icon`,tabIndex:0,...i},a):null},Rk=ue.forwardRef((e,t)=>{let{description:o,prefixCls:r,message:n,banner:i,className:a,rootClassName:l,style:s,onMouseEnter:c,onMouseLeave:p,onClick:d,afterClose:m,showIcon:f,closable:u,closeText:g,closeIcon:y,action:S,id:h,...C}=e,[b,v]=ue.useState(false),x=ue.useRef(null);ue.useImperativeHandle(t,()=>({nativeElement:x.current}));let{getPrefixCls:T,direction:$,alert:R}=ue.useContext(B),P=T("alert",r),[I,M,E]=JS(P),w=_=>{v(true),e.onClose?.(_);},N=ue.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),A=ue.useMemo(()=>typeof u=="object"&&u.closeIcon||g?true:typeof u=="boolean"?u:y!==false&&y!==null&&y!==void 0?true:!!R?.closable,[g,y,u,R?.closable]),k=i&&f===void 0?true:f,D=ki(P,`${P}-${N}`,{[`${P}-with-description`]:!!o,[`${P}-no-icon`]:!k,[`${P}-banner`]:!!i,[`${P}-rtl`]:$==="rtl"},R?.className,a,l,E,M),F=xk(C,{aria:true,data:true}),O=ue.useMemo(()=>typeof u=="object"&&u.closeIcon?u.closeIcon:g||(y!==void 0?y:typeof R?.closable=="object"&&R?.closable?.closeIcon?R?.closable?.closeIcon:R?.closeIcon),[y,u,g,R?.closeIcon]),L=ue.useMemo(()=>{let _=u??R?.closable;if(typeof _=="object"){let{closeIcon:H,...z}=_;return z}return {}},[u,R?.closable]);return I(ue.createElement(bk,{visible:!b,motionName:`${P}-motion`,motionAppear:false,motionEnter:false,onLeaveStart:_=>({maxHeight:_.offsetHeight}),onLeaveEnd:m},({className:_,style:H},z)=>ue.createElement("div",{id:h,ref:composeRef(x,z),"data-show":!b,className:ki(D,_),style:{...R?.style,...s,...H},onMouseEnter:c,onMouseLeave:p,onClick:d,role:"alert",...F},k?ue.createElement(Pk,{description:o,icon:e.icon,prefixCls:P,type:N}):null,ue.createElement("div",{className:`${P}-content`},n?ue.createElement("div",{className:`${P}-message`},n):null,o?ue.createElement("div",{className:`${P}-description`},o):null),S?ue.createElement("div",{className:`${P}-action`},S):null,ue.createElement($k,{isClosable:A,prefixCls:P,closeIcon:O,handleClose:w,ariaProps:L}))))}),Dp=Rk;var If=class extends ue.Component{state={error:void 0,info:{componentStack:""}};componentDidCatch(t,o){this.setState({error:t,info:o});}render(){let{message:t,description:o,id:r,children:n}=this.props,{error:i,info:a}=this.state,l=a?.componentStack||null,s=typeof t>"u"?(i||"").toString():t,c=typeof o>"u"?l:o;return i?ue.createElement(Dp,{id:r,type:"error",message:s,description:ue.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):n}},eb=If;var tb=Dp;tb.ErrorBoundary=eb;var Ik=tb;function Ap(e){return e!=null&&e===e.window}var wk=e=>{if(typeof window>"u")return 0;let t=0;return Ap(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!Ap(e)&&typeof t!="number"&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t},Fp=wk;function ob(e,t,o,r){let n=o-t;return e/=r/2,e<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t}function Ks(e,t={}){let{getContainer:o=()=>window,callback:r,duration:n=450}=t,i=o(),a=Fp(i),l=Date.now(),s=()=>{let p=Date.now()-l,d=ob(p>n?n:p,a,e,n);Ap(i)?i.scrollTo(window.pageXOffset,d):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=d:i.scrollTop=d,p<n?yS(s):typeof r=="function"&&r();};yS(s);}var Nk=e=>{let[,,,,t]=ve();return t?`${e}-css-var`:""},de=Nk;var Mk=ue.createContext(void 0),Op=Mk;var Ek=e=>{let{href:t,title:o,prefixCls:r,children:n,className:i,target:a,replace:l}=e,s=ue.useContext(Op),{registerLink:c,unregisterLink:p,scrollTo:d,onClick:m,activeLink:f,direction:u}=s||{};ue.useEffect(()=>(c?.(t),()=>{p?.(t);}),[t]);let g=v=>{m?.(v,{title:o,href:t}),d?.(t),l&&(v.preventDefault(),window.location.replace(t));},{getPrefixCls:y}=ue.useContext(B),S=y("anchor",r),h=f===t,C=ki(`${S}-link`,i,{[`${S}-link-active`]:h}),b=ki(`${S}-link-title`,{[`${S}-link-title-active`]:h});return ue.createElement("div",{className:C},ue.createElement("a",{className:b,href:t,title:typeof o=="string"?o:"",target:a,onClick:g},o),u!=="horizontal"?n:null)},zp=Ek;var kk=e=>{let{componentCls:t,holderOffsetBlock:o,motionDurationSlow:r,lineWidthBold:n,colorPrimary:i,lineType:a,colorSplit:l,calc:s}=e;return {[`${t}-wrapper`]:{marginBlockStart:s(o).mul(-1).equal(),paddingBlockStart:o,[t]:{...ne(e),position:"relative",paddingInlineStart:n,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${unit(e.linkPaddingInlineStart)} 0`,"&-title":{...Oe,position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}},[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}},[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${unit(n)} ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:n,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},Bk=e=>{let{componentCls:t,motionDurationSlow:o,lineWidthBold:r,colorPrimary:n}=e;return {[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:true,value:0},right:{_skip_check_:true,value:0},bottom:0,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${o} ease-in-out, width ${o} ease-in-out`,height:r,backgroundColor:n}}}}},Dk=e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding}),ab=te("Anchor",e=>{let{fontSize:t,fontSizeLG:o,paddingXXS:r,calc:n}=e,i=mergeToken(e,{holderOffsetBlock:r,anchorPaddingBlockSecondary:n(r).div(2).equal(),anchorTitleBlock:n(t).div(14).mul(3).equal(),anchorBallSize:n(o).div(2).equal()});return [kk(i),Bk(i)]},Dk);function Fk(){return window}function lb(e,t){if(!e.getClientRects().length)return 0;let o=e.getBoundingClientRect();return o.width||o.height?t===window?o.top-e.ownerDocument.documentElement.clientTop:o.top-t.getBoundingClientRect().top:o.top}var sb=/#([\S ]+)$/,Ok=e=>{let{rootClassName:t,prefixCls:o,className:r,style:n,offsetTop:i,affix:a=true,showInkInFixed:l=false,children:s,items:c,direction:p="vertical",bounds:d,targetOffset:m,onClick:f,onChange:u,getContainer:g,getCurrentAnchor:y,replace:S}=e,[h,C]=ue.useState([]),[b,v]=ue.useState(null),x=ue.useRef(b),T=ue.useRef(null),$=ue.useRef(null),R=ue.useRef(false),{direction:P,anchor:I,getTargetContainer:M,getPrefixCls:E}=ue.useContext(B),w=E("anchor",o),N=de(w),[A,k,D]=ab(w,N),F=g??M??Fk,O=JSON.stringify(h),L=Du(ee=>{h.includes(ee)||C(X=>[...X,ee]);}),_=Du(ee=>{h.includes(ee)&&C(X=>X.filter(Z=>Z!==ee));}),H=()=>{let ee=T.current?.querySelector(`.${w}-link-title-active`);if(ee&&$.current){let{style:X}=$.current,Z=p==="horizontal";X.top=Z?"":`${ee.offsetTop+ee.clientHeight/2}px`,X.height=Z?"":`${ee.clientHeight}px`,X.left=Z?`${ee.offsetLeft}px`:"",X.width=Z?`${ee.clientWidth}px`:"",Z&&Ak(ee,{scrollMode:"if-needed",block:"nearest"});}},z=(ee,X=0,Z=5)=>{let re=[],ae=F();return ee.forEach(se=>{let Ce=sb.exec(se?.toString());if(!Ce)return;let $e=document.getElementById(Ce[1]);if($e){let Ge=lb($e,ae);Ge<=X+Z&&re.push({link:se,top:Ge});}}),re.length?re.reduce((Ce,$e)=>$e.top>Ce.top?$e:Ce).link:""},G=Du(ee=>{if(x.current===ee)return;let X=typeof y=="function"?y(ee):ee;v(X),x.current=X,u?.(ee);}),W=ue.useCallback(()=>{if(R.current)return;let ee=z(h,m!==void 0?m:i||0,d);G(ee);},[O,m,i]),q=ue.useCallback(ee=>{G(ee);let X=sb.exec(ee);if(!X)return;let Z=document.getElementById(X[1]);if(!Z)return;let re=F(),ae=Fp(re),se=lb(Z,re),Ce=ae+se;Ce-=m!==void 0?m:i||0,R.current=true,Ks(Ce,{getContainer:F,callback(){R.current=false;}});},[m,i]),j=ki(k,D,N,t,`${w}-wrapper`,{[`${w}-wrapper-horizontal`]:p==="horizontal",[`${w}-rtl`]:P==="rtl"},r,I?.className),K=ki(w,{[`${w}-fixed`]:!a&&!l}),Q=ki(`${w}-ink`,{[`${w}-ink-visible`]:b}),V={maxHeight:i?`calc(100vh - ${i}px)`:"100vh",...I?.style,...n},U=ee=>Array.isArray(ee)?ee.map(X=>ue.createElement(zp,{replace:S,...X,key:X.key},p==="vertical"&&U(X.children))):null,Y=ue.createElement("div",{ref:T,className:j,style:V},ue.createElement("div",{className:K},ue.createElement("span",{className:Q,ref:$}),"items"in e?U(c):s));ue.useEffect(()=>{let ee=F();return W(),ee?.addEventListener("scroll",W),()=>{ee?.removeEventListener("scroll",W);}},[O]),ue.useEffect(()=>{typeof y=="function"&&G(y(x.current||""));},[y]),ue.useEffect(()=>{H();},[p,y,O,b]);let J=ue.useMemo(()=>({registerLink:L,unregisterLink:_,scrollTo:q,activeLink:b,onClick:f,direction:p}),[b,f,q,p]),ie=a&&typeof a=="object"?a:void 0;return A(ue.createElement(Op.Provider,{value:J},a?ue.createElement($f,{offsetTop:i,target:F,...ie},Y):Y))},cb=Ok;var pb=cb;pb.Link=zp;var zk=pb;var Hk=ue__default.createContext(void 0),xr=Hk;var wn=100,Gk=10,ca=wn*Gk,db={Modal:wn,Drawer:wn,Popover:wn,Popconfirm:wn,Tooltip:wn,Tour:wn,FloatButton:wn},Vk={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function _k(e){return e in db}var rt=(e,t)=>{let[,o]=ve(),r=ue__default.useContext(xr),n=_k(e),i;if(t!==void 0)i=[t,t];else {let a=r??0;n?a+=(r?0:o.zIndexPopupBase)+db[e]:a+=Vk[e],i=[r===void 0?t:a,a];}return i};var jk=e=>{let{componentCls:t,iconCls:o,boxShadow:r,colorText:n,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:p,motionDurationSlow:d,marginXS:m,paddingXS:f,borderRadiusLG:u,zIndexPopup:g,contentPadding:y,contentBg:S}=e,h=`${t}-notice`,C=new Keyframes("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),b=new Keyframes("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),v={padding:f,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${o}`]:{marginInlineEnd:m,fontSize:c},[`${h}-content`]:{display:"inline-block",padding:y,background:S,borderRadius:u,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${o}`]:{color:i},[`${t}-error > ${o}`]:{color:a},[`${t}-warning > ${o}`]:{color:l},[`${t}-info > ${o},
|
|
46
|
-
${t}-loading > ${o}`]:{color:s}};return [{[t]:{...
|
|
45
|
+
margin-bottom ${o} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:n,fontSize:p,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:d,fontSize:a},[`${t}-description`]:{display:"block",color:m}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},XD=e=>{let{componentCls:t,colorSuccess:o,colorSuccessBorder:r,colorSuccessBg:n,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:p,colorInfo:m,colorInfoBorder:d,colorInfoBg:f}=e;return {[t]:{"&-success":ud(n,r,o,e,t),"&-info":ud(f,d,m,e,t),"&-warning":ud(l,a,i,e,t),"&-error":{...ud(p,c,s,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},KD=e=>{let{componentCls:t,iconCls:o,motionDurationMid:r,marginXS:n,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return {[t]:{"&-action":{marginInlineStart:n},[`${t}-close-icon`]:{marginInlineStart:n,padding:0,overflow:"hidden",fontSize:i,lineHeight:unit(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${o}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},YD=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),lx=oe("Alert",e=>[qD(e),XD(e),KD(e)],YD);var iB={success:ZD,info:tB,error:QD,warning:eB},aB=e=>{let{icon:t,prefixCls:o,type:r}=e,n=iB[r]||null;return t?bc(t,ve.createElement("span",{className:`${o}-icon`},t),()=>({className:Xi(`${o}-icon`,t.props.className)})):ve.createElement(n,{className:`${o}-icon`})},lB=e=>{let{isClosable:t,prefixCls:o,closeIcon:r,handleClose:n,ariaProps:i}=e,a=r===true||r===void 0?ve.createElement(JD,null):r;return t?ve.createElement("button",{type:"button",onClick:n,className:`${o}-close-icon`,tabIndex:0,...i},a):null},sB=ve.forwardRef((e,t)=>{let{description:o,prefixCls:r,message:n,banner:i,className:a,rootClassName:l,style:s,onMouseEnter:c,onMouseLeave:p,onClick:m,afterClose:d,showIcon:f,closable:u,closeText:g,closeIcon:y,action:h,id:b,...C}=e,[S,v]=ve.useState(false),x=ve.useRef(null);ve.useImperativeHandle(t,()=>({nativeElement:x.current}));let{getPrefixCls:$,direction:R,alert:T}=ve.useContext(O),P=$("alert",r),[N,M,E]=lx(P),I=q=>{v(true),e.onClose?.(q);},w=ve.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),B=ve.useMemo(()=>typeof u=="object"&&u.closeIcon||g?true:typeof u=="boolean"?u:y!==false&&y!==null&&y!==void 0?true:!!T?.closable,[g,y,u,T?.closable]),k=i&&f===void 0?true:f,D=Xi(P,`${P}-${w}`,{[`${P}-with-description`]:!!o,[`${P}-no-icon`]:!k,[`${P}-banner`]:!!i,[`${P}-rtl`]:R==="rtl"},T?.className,a,l,E,M),F=rB(C,{aria:true,data:true}),A=ve.useMemo(()=>typeof u=="object"&&u.closeIcon?u.closeIcon:g||(y!==void 0?y:typeof T?.closable=="object"&&T?.closable?.closeIcon?T?.closable?.closeIcon:T?.closeIcon),[y,u,g,T?.closeIcon]),L=ve.useMemo(()=>{let q=u??T?.closable;if(typeof q=="object"){let{closeIcon:V,...z}=q;return z}return {}},[u,T?.closable]);return N(ve.createElement(oB,{visible:!S,motionName:`${P}-motion`,motionAppear:false,motionEnter:false,onLeaveStart:q=>({maxHeight:q.offsetHeight}),onLeaveEnd:d},({className:q,style:V},z)=>ve.createElement("div",{id:b,ref:composeRef(x,z),"data-show":!S,className:Xi(D,q),style:{...T?.style,...s,...V},onMouseEnter:c,onMouseLeave:p,onClick:m,role:"alert",...F},k?ve.createElement(aB,{description:o,icon:e.icon,prefixCls:P,type:w}):null,ve.createElement("div",{className:`${P}-content`},n?ve.createElement("div",{className:`${P}-message`},n):null,o?ve.createElement("div",{className:`${P}-description`},o):null),h?ve.createElement("div",{className:`${P}-action`},h):null,ve.createElement(lB,{isClosable:B,prefixCls:P,closeIcon:A,handleClose:I,ariaProps:L}))))}),fd=sB;var bg=class extends ve.Component{state={error:void 0,info:{componentStack:""}};componentDidCatch(t,o){this.setState({error:t,info:o});}render(){let{message:t,description:o,id:r,children:n}=this.props,{error:i,info:a}=this.state,l=a?.componentStack||null,s=typeof t>"u"?(i||"").toString():t,c=typeof o>"u"?l:o;return i?ve.createElement(fd,{id:r,type:"error",message:s,description:ve.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):n}},sx=bg;var cx=fd;cx.ErrorBoundary=sx;var cB=cx;function gd(e){return e!=null&&e===e.window}var pB=e=>{if(typeof window>"u")return 0;let t=0;return gd(e)?t=e.pageYOffset:e instanceof Document?t=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(t=e.scrollTop),e&&!gd(e)&&typeof t!="number"&&(t=(e.ownerDocument??e).documentElement?.scrollTop),t},yd=pB;function px(e,t,o,r){let n=o-t;return e/=r/2,e<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t}function xc(e,t={}){let{getContainer:o=()=>window,callback:r,duration:n=450}=t,i=o(),a=yd(i),l=Date.now(),s=()=>{let p=Date.now()-l,m=px(p>n?n:p,a,e,n);gd(i)?i.scrollTo(window.pageXOffset,m):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=m:i.scrollTop=m,p<n?$S(s):typeof r=="function"&&r();};$S(s);}var dB=e=>{let[,,,,t]=De();return t?`${e}-css-var`:""},$e=dB;var mB=ve.createContext(void 0),Cd=mB;var uB=e=>{let{href:t,title:o,prefixCls:r,children:n,className:i,target:a,replace:l}=e,s=ve.useContext(Cd),{registerLink:c,unregisterLink:p,scrollTo:m,onClick:d,activeLink:f,direction:u}=s||{};ve.useEffect(()=>(c?.(t),()=>{p?.(t);}),[t]);let g=v=>{d?.(v,{title:o,href:t}),m?.(t),l&&(v.preventDefault(),window.location.replace(t));},{getPrefixCls:y}=ve.useContext(O),h=y("anchor",r),b=f===t,C=Xi(`${h}-link`,i,{[`${h}-link-active`]:b}),S=Xi(`${h}-link-title`,{[`${h}-link-title-active`]:b});return ve.createElement("div",{className:C},ve.createElement("a",{className:S,href:t,title:typeof o=="string"?o:"",target:a,onClick:g},o),u!=="horizontal"?n:null)},hd=uB;var fB=e=>{let{componentCls:t,holderOffsetBlock:o,motionDurationSlow:r,lineWidthBold:n,colorPrimary:i,lineType:a,colorSplit:l,calc:s}=e;return {[`${t}-wrapper`]:{marginBlockStart:s(o).mul(-1).equal(),paddingBlockStart:o,[t]:{...ae(e),position:"relative",paddingInlineStart:n,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${unit(e.linkPaddingInlineStart)} 0`,"&-title":{...qe,position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}},[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}},[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${unit(n)} ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:n,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},gB=e=>{let{componentCls:t,motionDurationSlow:o,lineWidthBold:r,colorPrimary:n}=e;return {[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:true,value:0},right:{_skip_check_:true,value:0},bottom:0,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${o} ease-in-out, width ${o} ease-in-out`,height:r,backgroundColor:n}}}}},yB=e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding}),fx=oe("Anchor",e=>{let{fontSize:t,fontSizeLG:o,paddingXXS:r,calc:n}=e,i=mergeToken(e,{holderOffsetBlock:r,anchorPaddingBlockSecondary:n(r).div(2).equal(),anchorTitleBlock:n(t).div(14).mul(3).equal(),anchorBallSize:n(o).div(2).equal()});return [fB(i),gB(i)]},yB);function hB(){return window}function gx(e,t){if(!e.getClientRects().length)return 0;let o=e.getBoundingClientRect();return o.width||o.height?t===window?o.top-e.ownerDocument.documentElement.clientTop:o.top-t.getBoundingClientRect().top:o.top}var yx=/#([\S ]+)$/,bB=e=>{let{rootClassName:t,prefixCls:o,className:r,style:n,offsetTop:i,affix:a=true,showInkInFixed:l=false,children:s,items:c,direction:p="vertical",bounds:m,targetOffset:d,onClick:f,onChange:u,getContainer:g,getCurrentAnchor:y,replace:h}=e,[b,C]=ve.useState([]),[S,v]=ve.useState(null),x=ve.useRef(S),$=ve.useRef(null),R=ve.useRef(null),T=ve.useRef(false),{direction:P,anchor:N,getTargetContainer:M,getPrefixCls:E}=ve.useContext(O),I=E("anchor",o),w=$e(I),[B,k,D]=fx(I,w),F=g??M??hB,A=JSON.stringify(b),L=yf(W=>{b.includes(W)||C(H=>[...H,W]);}),q=yf(W=>{b.includes(W)&&C(H=>H.filter(X=>X!==W));}),V=()=>{let W=$.current?.querySelector(`.${I}-link-title-active`);if(W&&R.current){let{style:H}=R.current,X=p==="horizontal";H.top=X?"":`${W.offsetTop+W.clientHeight/2}px`,H.height=X?"":`${W.clientHeight}px`,H.left=X?`${W.offsetLeft}px`:"",H.width=X?`${W.clientWidth}px`:"",X&&CB(W,{scrollMode:"if-needed",block:"nearest"});}},z=(W,H=0,X=5)=>{let re=[],ce=F();return W.forEach(fe=>{let Pe=yx.exec(fe?.toString());if(!Pe)return;let we=document.getElementById(Pe[1]);if(we){let ye=gx(we,ce);ye<=H+X&&re.push({link:fe,top:ye});}}),re.length?re.reduce((Pe,we)=>we.top>Pe.top?we:Pe).link:""},G=yf(W=>{if(x.current===W)return;let H=typeof y=="function"?y(W):W;v(H),x.current=H,u?.(W);}),_=ve.useCallback(()=>{if(T.current)return;let W=z(b,d!==void 0?d:i||0,m);G(W);},[A,d,i]),Z=ve.useCallback(W=>{G(W);let H=yx.exec(W);if(!H)return;let X=document.getElementById(H[1]);if(!X)return;let re=F(),ce=yd(re),fe=gx(X,re),Pe=ce+fe;Pe-=d!==void 0?d:i||0,T.current=true,xc(Pe,{getContainer:F,callback(){T.current=false;}});},[d,i]),K=Xi(k,D,w,t,`${I}-wrapper`,{[`${I}-wrapper-horizontal`]:p==="horizontal",[`${I}-rtl`]:P==="rtl"},r,N?.className),Q=Xi(I,{[`${I}-fixed`]:!a&&!l}),ee=Xi(`${I}-ink`,{[`${I}-ink-visible`]:S}),j={maxHeight:i?`calc(100vh - ${i}px)`:"100vh",...N?.style,...n},Y=W=>Array.isArray(W)?W.map(H=>ve.createElement(hd,{replace:h,...H,key:H.key},p==="vertical"&&Y(H.children))):null,J=ve.createElement("div",{ref:$,className:K,style:j},ve.createElement("div",{className:Q},ve.createElement("span",{className:ee,ref:R}),"items"in e?Y(c):s));ve.useEffect(()=>{let W=F();return _(),W?.addEventListener("scroll",_),()=>{W?.removeEventListener("scroll",_);}},[A]),ve.useEffect(()=>{typeof y=="function"&&G(y(x.current||""));},[y]),ve.useEffect(()=>{V();},[p,y,A,S]);let te=ve.useMemo(()=>({registerLink:L,unregisterLink:q,scrollTo:Z,activeLink:S,onClick:f,direction:p}),[S,f,Z,p]),ue=a&&typeof a=="object"?a:void 0;return B(ve.createElement(Cd.Provider,{value:te},a?ve.createElement(Cg,{offsetTop:i,target:F,...ue},J):J))},Cx=bB;var hx=Cx;hx.Link=hd;var SB=hx;var vB=ve__default.createContext(void 0),Nr=vB;var Wn=100,$B=10,Ia=Wn*$B,bx={Modal:Wn,Drawer:Wn,Popover:Wn,Popconfirm:Wn,Tooltip:Wn,Tour:Wn,FloatButton:Wn},PB={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function RB(e){return e in bx}var dt=(e,t)=>{let[,o]=De(),r=ve__default.useContext(Nr),n=RB(e),i;if(t!==void 0)i=[t,t];else {let a=r??0;n?a+=(r?0:o.zIndexPopupBase)+bx[e]:a+=PB[e],i=[r===void 0?t:a,a];}return i};var IB=e=>{let{componentCls:t,iconCls:o,boxShadow:r,colorText:n,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:p,motionDurationSlow:m,marginXS:d,paddingXS:f,borderRadiusLG:u,zIndexPopup:g,contentPadding:y,contentBg:h}=e,b=`${t}-notice`,C=new Keyframes("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),S=new Keyframes("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),v={padding:f,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${o}`]:{marginInlineEnd:d,fontSize:c},[`${b}-content`]:{display:"inline-block",padding:y,background:h,borderRadius:u,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${o}`]:{color:i},[`${t}-error > ${o}`]:{color:a},[`${t}-warning > ${o}`]:{color:l},[`${t}-info > ${o},
|
|
46
|
+
${t}-loading > ${o}`]:{color:s}};return [{[t]:{...ae(e),color:n,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
47
47
|
${t}-move-up-appear,
|
|
48
48
|
${t}-move-up-enter
|
|
49
|
-
`]:{animationName:C,animationDuration:
|
|
49
|
+
`]:{animationName:C,animationDuration:m,animationPlayState:"paused",animationTimingFunction:p},[`
|
|
50
50
|
${t}-move-up-appear${t}-move-up-appear-active,
|
|
51
51
|
${t}-move-up-enter${t}-move-up-enter-active
|
|
52
|
-
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:b,animationDuration:d,animationPlayState:"paused",animationTimingFunction:p},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${h}-wrapper`]:{...v}}},{[`${t}-notice-pure-panel`]:{...v,padding:0,textAlign:"start"}}]},Uk=e=>({zIndexPopup:e.zIndexPopupBase+ca+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Lp=te("Message",e=>{let t=mergeToken(e,{height:150});return [jk(t)]},Uk);var Jk={info:ue.createElement(Sk,null),success:ue.createElement(gk,null),error:ue.createElement(yk,null),warning:ue.createElement(hk,null),loading:ue.createElement(Xw,null)},Ef=({prefixCls:e,type:t,icon:o,children:r})=>ue.createElement("div",{className:ki(`${e}-custom-content`,`${e}-${t}`)},o||Jk[t],ue.createElement("span",null,r)),e4=e=>{let{prefixCls:t,className:o,type:r,icon:n,content:i,...a}=e,{getPrefixCls:l}=ue.useContext(B),s=t||l("message"),c=de(s),[p,d,m]=Lp(s,c);return p(ue.createElement(Notice,{...a,prefixCls:s,className:ki(o,d,`${s}-notice-pure-panel`,m,c),eventKey:"pure",duration:null,content:ue.createElement(Ef,{prefixCls:s,type:r,icon:n},i)}))},fb=e4;function gb(e,t){return {motionName:t??`${e}-move-up`}}function Ys(e){let t,o=new Promise(n=>{t=e(()=>{n(true);});}),r=()=>{t?.();};return r.then=(n,i)=>o.then(n,i),r.promise=o,r}var n4=8,i4=3,a4=({children:e,prefixCls:t})=>{let o=de(t),[r,n,i]=Lp(t,o);return r(ue.createElement(NotificationProvider,{classNames:{list:ki(n,i,o)}},e))},l4=(e,{prefixCls:t,key:o})=>ue.createElement(a4,{prefixCls:t,key:o},e),s4=ue.forwardRef((e,t)=>{let{top:o,prefixCls:r,getContainer:n,maxCount:i,duration:a=i4,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:p,getPopupContainer:d,message:m,direction:f}=ue.useContext(B),u=r||p("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:o??n4}),y=()=>ki({[`${u}-rtl`]:l??f==="rtl"}),S=()=>gb(u,s),h=ue.createElement("span",{className:`${u}-close-x`},ue.createElement(Ck,{className:`${u}-close-icon`})),[C,b]=useNotification({prefixCls:u,style:g,className:y,motion:S,closable:false,closeIcon:h,duration:a,getContainer:()=>n?.()||d?.()||document.body,maxCount:i,onAllRemoved:c,renderNotifications:l4});return ue.useImperativeHandle(t,()=>({...C,prefixCls:u,message:m})),b}),yb=0;function Bf(e){let t=ue.useRef(null);ht();return [ue.useMemo(()=>{let n=c=>{t.current?.close(c);},i=c=>{if(!t.current){let T=()=>{};return T.then=()=>{},T}let{open:p,prefixCls:d,message:m}=t.current,f=`${d}-notice`,{content:u,icon:g,type:y,key:S,className:h,style:C,onClose:b,...v}=c,x=S;return x==null&&(yb+=1,x=`antd-message-${yb}`),Ys(T=>(p({...v,key:x,content:ue.createElement(Ef,{prefixCls:d,type:y,icon:g},u),placement:"top",className:ki(y&&`${f}-${y}`,h,m?.className),style:{...m?.style,...C},onClose:()=>{b?.(),T();}}),()=>{n(x);}))},l={open:i,destroy:c=>{c!==void 0?n(c):t.current?.destroy();}};return ["info","success","warning","error","loading"].forEach(c=>{let p=(d,m,f)=>{let u;d&&typeof d=="object"&&"content"in d?u=d:u={content:d};let g,y;typeof m=="function"?y=m:(g=m,y=f);let S={onClose:y,duration:g,...u,type:c};return i(S)};l[c]=p;}),l},[]),ue.createElement(s4,{key:"message-holder",...e,ref:t})]}function Zs(e){return Bf(e)}function Df(){let[e,t]=ue.useState([]),o=ue.useCallback(r=>(t(n=>[...n,r]),()=>{t(n=>n.filter(i=>i!==r));}),[]);return [e,o]}var m4=(e,t)=>(render(e,t),()=>unmount(t)),Cb=m4;function u4(e){Cb=e;}function ui(){return Cb}var Af=()=>({height:0,opacity:0}),hb=e=>{let{scrollHeight:t}=e;return {height:t,opacity:1}},f4=e=>({height:e?e.offsetHeight:0}),Ff=(e,t)=>t?.deadline===true||t.propertyName==="height",g4=(e=ci)=>({motionName:`${e}-motion-collapse`,onAppearStart:Af,onEnterStart:Af,onAppearActive:hb,onEnterActive:hb,onLeaveStart:f4,onLeaveActive:Af,onAppearEnd:Ff,onEnterEnd:Ff,onLeaveEnd:Ff,motionDeadline:500});var Ze=(e,t,o)=>o!==void 0?o:`${e}-${t}`;var Or=g4;var y4=e=>{let{componentCls:t,colorPrimary:o}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${o})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Sb=js("Wave",e=>[y4(e)]);var fi=`${ci}-wave-target`;function Of(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function bb(e){let{borderTopColor:t,borderColor:o,backgroundColor:r}=getComputedStyle(e);return Of(t)?t:Of(o)?o:Of(r)?r:null}function zf(e){return Number.isNaN(e)?0:e}var b4=e=>{let{className:t,target:o,component:r,registerUnmount:n}=e,i=ue.useRef(null),a=ue.useRef(null);ue.useEffect(()=>{a.current=n();},[]);let[l,s]=ue.useState(null),[c,p]=ue.useState([]),[d,m]=ue.useState(0),[f,u]=ue.useState(0),[g,y]=ue.useState(0),[S,h]=ue.useState(0),[C,b]=ue.useState(false),v={left:d,top:f,width:g,height:S,borderRadius:c.map($=>`${$}px`).join(" ")};l&&(v["--wave-color"]=l);function x(){let $=getComputedStyle(o);s(bb(o));let R=$.position==="static",{borderLeftWidth:P,borderTopWidth:I}=$;m(R?o.offsetLeft:zf(-parseFloat(P))),u(R?o.offsetTop:zf(-parseFloat(I))),y(o.offsetWidth),h(o.offsetHeight);let{borderTopLeftRadius:M,borderTopRightRadius:E,borderBottomLeftRadius:w,borderBottomRightRadius:N}=$;p([M,E,N,w].map(A=>zf(parseFloat(A))));}if(ue.useEffect(()=>{if(o){let $=yS(()=>{x(),b(true);}),R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(x),R.observe(o)),()=>{yS.cancel($),R?.disconnect();}}},[]),!C)return null;let T=(r==="Checkbox"||r==="Radio")&&o?.classList.contains(fi);return ue.createElement(bk,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:($,R)=>{if(R.deadline||R.propertyName==="opacity"){let P=i.current?.parentElement;a.current?.().then(()=>{P?.remove();});}return false}},({className:$},R)=>ue.createElement("div",{ref:composeRef(i,R),className:ki(t,$,{"wave-quick":T}),style:v}))},x4=(e,t)=>{let{component:o}=t;if(o==="Checkbox"&&!e.querySelector("input")?.checked)return;let r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild);let n=ui(),i=null;function a(){return i}i=n(ue.createElement(b4,{...t,target:e,registerUnmount:a}),r);},Tb=x4;var v4=(e,t,o)=>{let{wave:r}=ue.useContext(B),[,n,i]=ve(),a=Du(c=>{let p=e.current;if(r?.disabled||!p)return;let d=p.querySelector(`.${fi}`)||p,{showEffect:m}=r||{};(m||Tb)(d,{className:t,token:n,component:o,event:c,hashId:i});}),l=ue.useRef(null);return c=>{yS.cancel(l.current),l.current=yS(()=>{a(c);});}},Pb=v4;var E4=e=>{let{children:t,disabled:o,component:r}=e,{getPrefixCls:n}=useContext(B),i=useRef(null),a=n("wave"),[,l]=Sb(a),s=Pb(i,ki(a,l),r);if(ue__default.useEffect(()=>{let p=i.current;if(!p||p.nodeType!==1||o)return;let d=m=>{!I4(m.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")||p.className.includes("-leave")||s(m);};return p.addEventListener("click",d,true),()=>{p.removeEventListener("click",d,true);}},[o]),!ue__default.isValidElement(t))return t??null;let c=supportRef(t)?composeRef(getNodeRef(t),i):i;return Pe(t,{ref:c})},rn=E4;var k4=e=>{let t=ue__default.useContext(In);return ue__default.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Te=k4;var B4=e=>{let{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Ib=B4;var D4=e=>{let{componentCls:t,antCls:o}=e;return {[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},A4=e=>{let{componentCls:t}=e;return {[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var Gp=te("Space",e=>{let t=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [D4(t),A4(t),Ib(t)]},()=>({}),{resetStyle:false});var Vp=ue.createContext(null),$t=(e,t)=>{let o=ue.useContext(Vp),r=ue.useMemo(()=>{if(!o)return "";let{compactDirection:n,isFirstItem:i,isLastItem:a}=o,l=n==="vertical"?"-vertical-":"-";return ki(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,o]);return {compactSize:o?.compactSize,compactDirection:o?.compactDirection,compactItemClassnames:r}},Nb=({children:e})=>ue.createElement(Vp.Provider,{value:null},e),O4=({children:e,...t})=>ue.createElement(Vp.Provider,{value:t},e),z4=e=>{let{getPrefixCls:t,direction:o}=ue.useContext(B),{size:r,direction:n,block:i,prefixCls:a,className:l,rootClassName:s,children:c,...p}=e,d=Te(C=>r??C),m=t("space-compact",a),[f,u]=Gp(m),g=ki(m,u,{[`${m}-rtl`]:o==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:n==="vertical"},l,s),y=ue.useContext(Vp),S=kv(c),h=ue.useMemo(()=>S.map((C,b)=>{let v=C?.key||`${m}-item-${b}`;return ue.createElement(O4,{key:v,compactSize:d,compactDirection:n,isFirstItem:b===0&&(!y||y?.isFirstItem),isLastItem:b===S.length-1&&(!y||y?.isLastItem)},C)}),[r,S,y]);return S.length===0?null:f(ue.createElement("div",{className:g,...p},h))},Mb=z4;var Lf=ue.createContext(void 0),H4=e=>{let{getPrefixCls:t,direction:o}=ue.useContext(B),{prefixCls:r,size:n,className:i,...a}=e,l=t("btn-group",r),[,,s]=ve(),c="";switch(n){case "large":c="lg";break;case "small":c="sm";break;}let p=ki(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:o==="rtl"},i,s);return ue.createElement(Lf.Provider,{value:n},ue.createElement("div",{...a,className:p}))},Eb=H4;var kb=/^[\u4E00-\u9FA5]{2}$/,_p=kb.test.bind(kb);function Ml(e){return e==="danger"?{danger:true}:{type:e}}function Bb(e){return typeof e=="string"}function jp(e){return e==="text"||e==="link"}function W4(e,t){if(e==null)return;let o=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Bb(e.type)&&_p(e.props.children)?Pe(e,{children:e.props.children.split("").join(o)}):Bb(e)?_p(e)?ue__default.createElement("span",null,e.split("").join(o)):ue__default.createElement("span",null,e):kp(e)?ue__default.createElement("span",null,e):e}function Db(e,t){let o=false,r=[];return ue__default.Children.forEach(e,n=>{let i=typeof n,a=i==="string"||i==="number";if(o&&a){let l=r.length-1,s=r[l];r[l]=`${s}${n}`;}else r.push(n);o=a;}),ue__default.Children.map(r,n=>W4(n,t))}var j4=forwardRef((e,t)=>{let{className:o,style:r,children:n,prefixCls:i}=e,a=ki(`${i}-icon`,o);return ue__default.createElement("span",{ref:t,className:a,style:r},n)}),Up=j4;var Ab=forwardRef((e,t)=>{let{prefixCls:o,className:r,style:n,iconClassName:i}=e,a=ki(`${o}-loading-icon`,r);return ue__default.createElement(Up,{prefixCls:o,className:a,style:n,ref:t},ue__default.createElement(Xw,{className:i}))}),Hf=()=>({width:0,opacity:0,transform:"scale(0)"}),Wf=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),K4=e=>{let{prefixCls:t,loading:o,existIcon:r,className:n,style:i,mount:a}=e,l=!!o;return r?ue__default.createElement(Ab,{prefixCls:t,className:n,style:i}):ue__default.createElement(bk,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:true,onAppearStart:Hf,onAppearActive:Wf,onEnterStart:Hf,onEnterActive:Wf,onLeaveStart:Wf,onLeaveActive:Hf},({className:s,style:c},p)=>{let d={...i,...c};return ue__default.createElement(Ab,{prefixCls:t,className:ki(n,s),style:d,ref:p})})},Ob=K4;var zb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Y4=e=>{let{componentCls:t,fontSize:o,lineWidth:r,groupBorderColor:n,colorErrorHover:i}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:o}},zb(`${t}-primary`,n),zb(`${t}-danger`,i)]}},Lb=Y4;var El=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",Z4=(e,t)=>e?El(e,t):"",At=class e{metaColor;colors;cleared=false;constructor(t){if(t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}let o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:r,percent:n})=>({color:new e(r),percent:n})),this.metaColor=new Color(this.colors[0].color.metaColor)):this.metaColor=new Color(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=true);}toHsb(){return this.metaColor.toHsb()}toHsbString(){return this.metaColor.toHsbString()}toHex(){return Z4(this.toHexString(),this.metaColor.a<1)}toHexString(){return this.metaColor.toHexString()}toRgb(){return this.metaColor.toRgb()}toRgbString(){return this.metaColor.toRgbString()}isGradient(){return !!this.colors&&!this.cleared}getColors(){return this.colors||[{color:this,percent:0}]}toCssString(){let{colors:t}=this;return t?`linear-gradient(90deg, ${t.map(r=>`${r.color.toRgbString()} ${r.percent}%`).join(", ")})`:this.metaColor.toRgbString()}equals(t){return !t||this.isGradient()!==t.isGradient()?false:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((o,r)=>{let n=t.colors[r];return o.percent===n.percent&&o.color.equals(n.color)}):this.toHexString()===t.toHexString()}};var eB=ue.forwardRef((e,t)=>{let{getPrefixCls:o}=ue.useContext(B),{prefixCls:r,className:n,showArrow:i=true}=e,a=o("collapse",r),l=ki({[`${a}-no-arrow`]:!i},n);return ue.createElement(J4.Panel,{ref:t,...e,prefixCls:a,className:l})}),Wb=eB;var tB=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
52
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:m,animationPlayState:"paused",animationTimingFunction:p},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${b}-wrapper`]:{...v}}},{[`${t}-notice-pure-panel`]:{...v,padding:0,textAlign:"start"}}]},wB=e=>({zIndexPopup:e.zIndexPopupBase+Ia+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),bd=oe("Message",e=>{let t=mergeToken(e,{height:150});return [IB(t)]},wB);var OB={info:ve.createElement(tB,null),success:ve.createElement(ZD,null),error:ve.createElement(QD,null),warning:ve.createElement(eB,null),loading:ve.createElement(iM,null)},Tg=({prefixCls:e,type:t,icon:o,children:r})=>ve.createElement("div",{className:Xi(`${e}-custom-content`,`${e}-${t}`)},o||OB[t],ve.createElement("span",null,r)),FB=e=>{let{prefixCls:t,className:o,type:r,icon:n,content:i,...a}=e,{getPrefixCls:l}=ve.useContext(O),s=t||l("message"),c=$e(s),[p,m,d]=bd(s,c);return p(ve.createElement(Notice,{...a,prefixCls:s,className:Xi(o,m,`${s}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:ve.createElement(Tg,{prefixCls:s,type:r,icon:n},i)}))},vx=FB;function Tx(e,t){return {motionName:t??`${e}-move-up`}}function vc(e){let t,o=new Promise(n=>{t=e(()=>{n(true);});}),r=()=>{t?.();};return r.then=(n,i)=>o.then(n,i),r.promise=o,r}var HB=8,WB=3,GB=({children:e,prefixCls:t})=>{let o=$e(t),[r,n,i]=bd(t,o);return r(ve.createElement(NotificationProvider,{classNames:{list:Xi(n,i,o)}},e))},VB=(e,{prefixCls:t,key:o})=>ve.createElement(GB,{prefixCls:t,key:o},e),jB=ve.forwardRef((e,t)=>{let{top:o,prefixCls:r,getContainer:n,maxCount:i,duration:a=WB,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:p,getPopupContainer:m,message:d,direction:f}=ve.useContext(O),u=r||p("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:o??HB}),y=()=>Xi({[`${u}-rtl`]:l??f==="rtl"}),h=()=>Tx(u,s),b=ve.createElement("span",{className:`${u}-close-x`},ve.createElement(JD,{className:`${u}-close-icon`})),[C,S]=useNotification({prefixCls:u,style:g,className:y,motion:h,closable:false,closeIcon:b,duration:a,getContainer:()=>n?.()||m?.()||document.body,maxCount:i,onAllRemoved:c,renderNotifications:VB});return ve.useImperativeHandle(t,()=>({...C,prefixCls:u,message:d})),S}),$x=0;function Pg(e){let t=ve.useRef(null);Tt();return [ve.useMemo(()=>{let n=c=>{t.current?.close(c);},i=c=>{if(!t.current){let $=()=>{};return $.then=()=>{},$}let{open:p,prefixCls:m,message:d}=t.current,f=`${m}-notice`,{content:u,icon:g,type:y,key:h,className:b,style:C,onClose:S,...v}=c,x=h;return x==null&&($x+=1,x=`antd-message-${$x}`),vc($=>(p({...v,key:x,content:ve.createElement(Tg,{prefixCls:m,type:y,icon:g},u),placement:"top",className:Xi(y&&`${f}-${y}`,b,d?.className),style:{...d?.style,...C},onClose:()=>{S?.(),$();}}),()=>{n(x);}))},l={open:i,destroy:c=>{c!==void 0?n(c):t.current?.destroy();}};return ["info","success","warning","error","loading"].forEach(c=>{let p=(m,d,f)=>{let u;m&&typeof m=="object"&&"content"in m?u=m:u={content:m};let g,y;typeof d=="function"?y=d:(g=d,y=f);let h={onClose:y,duration:g,...u,type:c};return i(h)};l[c]=p;}),l},[]),ve.createElement(jB,{key:"message-holder",...e,ref:t})]}function Tc(e){return Pg(e)}function Rg(){let[e,t]=ve.useState([]),o=ve.useCallback(r=>(t(n=>[...n,r]),()=>{t(n=>n.filter(i=>i!==r));}),[]);return [e,o]}var XB=(e,t)=>(render(e,t),()=>unmount(t)),Px=XB;function KB(e){Px=e;}function Ni(){return Px}var Ig=()=>({height:0,opacity:0}),Rx=e=>{let{scrollHeight:t}=e;return {height:t,opacity:1}},YB=e=>({height:e?e.offsetHeight:0}),wg=(e,t)=>t?.deadline===true||t.propertyName==="height",ZB=(e=Pi)=>({motionName:`${e}-motion-collapse`,onAppearStart:Ig,onEnterStart:Ig,onAppearActive:Rx,onEnterActive:Rx,onLeaveStart:YB,onLeaveActive:Ig,onAppearEnd:wg,onEnterEnd:wg,onLeaveEnd:wg,motionDeadline:500});var it=(e,t,o)=>o!==void 0?o:`${e}-${t}`;var Ur=ZB;var QB=e=>{let{componentCls:t,colorPrimary:o}=e;return {[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${o})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Ix=Cc("Wave",e=>[QB(e)]);var Mi=`${Pi}-wave-target`;function Ng(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function wx(e){let{borderTopColor:t,borderColor:o,backgroundColor:r}=getComputedStyle(e);return Ng(t)?t:Ng(o)?o:Ng(r)?r:null}function Mg(e){return Number.isNaN(e)?0:e}var o4=e=>{let{className:t,target:o,component:r,registerUnmount:n}=e,i=ve.useRef(null),a=ve.useRef(null);ve.useEffect(()=>{a.current=n();},[]);let[l,s]=ve.useState(null),[c,p]=ve.useState([]),[m,d]=ve.useState(0),[f,u]=ve.useState(0),[g,y]=ve.useState(0),[h,b]=ve.useState(0),[C,S]=ve.useState(false),v={left:m,top:f,width:g,height:h,borderRadius:c.map(R=>`${R}px`).join(" ")};l&&(v["--wave-color"]=l);function x(){let R=getComputedStyle(o);s(wx(o));let T=R.position==="static",{borderLeftWidth:P,borderTopWidth:N}=R;d(T?o.offsetLeft:Mg(-parseFloat(P))),u(T?o.offsetTop:Mg(-parseFloat(N))),y(o.offsetWidth),b(o.offsetHeight);let{borderTopLeftRadius:M,borderTopRightRadius:E,borderBottomLeftRadius:I,borderBottomRightRadius:w}=R;p([M,E,w,I].map(B=>Mg(parseFloat(B))));}if(ve.useEffect(()=>{if(o){let R=$S(()=>{x(),S(true);}),T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(x),T.observe(o)),()=>{$S.cancel(R),T?.disconnect();}}},[]),!C)return null;let $=(r==="Checkbox"||r==="Radio")&&o?.classList.contains(Mi);return ve.createElement(oB,{visible:true,motionAppear:true,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,T)=>{if(T.deadline||T.propertyName==="opacity"){let P=i.current?.parentElement;a.current?.().then(()=>{P?.remove();});}return false}},({className:R},T)=>ve.createElement("div",{ref:composeRef(i,T),className:Xi(t,R,{"wave-quick":$}),style:v}))},r4=(e,t)=>{let{component:o}=t;if(o==="Checkbox"&&!e.querySelector("input")?.checked)return;let r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild);let n=Ni(),i=null;function a(){return i}i=n(ve.createElement(o4,{...t,target:e,registerUnmount:a}),r);},Mx=r4;var i4=(e,t,o)=>{let{wave:r}=ve.useContext(O),[,n,i]=De(),a=yf(c=>{let p=e.current;if(r?.disabled||!p)return;let m=p.querySelector(`.${Mi}`)||p,{showEffect:d}=r||{};(d||Mx)(m,{className:t,token:n,component:o,event:c,hashId:i});}),l=ve.useRef(null);return c=>{$S.cancel(l.current),l.current=$S(()=>{a(c);});}},kx=i4;var u4=e=>{let{children:t,disabled:o,component:r}=e,{getPrefixCls:n}=useContext(O),i=useRef(null),a=n("wave"),[,l]=Ix(a),s=kx(i,Xi(a,l),r);if(ve__default.useEffect(()=>{let p=i.current;if(!p||p.nodeType!==1||o)return;let m=d=>{!c4(d.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")||p.className.includes("-leave")||s(d);};return p.addEventListener("click",m,true),()=>{p.removeEventListener("click",m,true);}},[o]),!ve__default.isValidElement(t))return t??null;let c=supportRef(t)?composeRef(getNodeRef(t),i):i;return Oe(t,{ref:c})},fn=u4;var f4=e=>{let t=ve__default.useContext(Hn);return ve__default.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},ke=f4;var g4=e=>{let{componentCls:t}=e;return {[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Ox=g4;var y4=e=>{let{componentCls:t,antCls:o}=e;return {[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${o}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},C4=e=>{let{componentCls:t}=e;return {[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}};var vd=oe("Space",e=>{let t=mergeToken(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return [y4(t),C4(t),Ox(t)]},()=>({}),{resetStyle:false});var Td=ve.createContext(null),Mt=(e,t)=>{let o=ve.useContext(Td),r=ve.useMemo(()=>{if(!o)return "";let{compactDirection:n,isFirstItem:i,isLastItem:a}=o,l=n==="vertical"?"-vertical-":"-";return Xi(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,o]);return {compactSize:o?.compactSize,compactDirection:o?.compactDirection,compactItemClassnames:r}},zx=({children:e})=>ve.createElement(Td.Provider,{value:null},e),b4=({children:e,...t})=>ve.createElement(Td.Provider,{value:t},e),S4=e=>{let{getPrefixCls:t,direction:o}=ve.useContext(O),{size:r,direction:n,block:i,prefixCls:a,className:l,rootClassName:s,children:c,...p}=e,m=ke(C=>r??C),d=t("space-compact",a),[f,u]=vd(d),g=Xi(d,u,{[`${d}-rtl`]:o==="rtl",[`${d}-block`]:i,[`${d}-vertical`]:n==="vertical"},l,s),y=ve.useContext(Td),h=H0(c),b=ve.useMemo(()=>h.map((C,S)=>{let v=C?.key||`${d}-item-${S}`;return ve.createElement(b4,{key:v,compactSize:m,compactDirection:n,isFirstItem:S===0&&(!y||y?.isFirstItem),isLastItem:S===h.length-1&&(!y||y?.isLastItem)},C)}),[r,h,y]);return h.length===0?null:f(ve.createElement("div",{className:g,...p},b))},Ax=S4;var Eg=ve.createContext(void 0),v4=e=>{let{getPrefixCls:t,direction:o}=ve.useContext(O),{prefixCls:r,size:n,className:i,...a}=e,l=t("btn-group",r),[,,s]=De(),c="";switch(n){case "large":c="lg";break;case "small":c="sm";break;}let p=Xi(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:o==="rtl"},i,s);return ve.createElement(Eg.Provider,{value:n},ve.createElement("div",{...a,className:p}))},Lx=v4;var Hx=/^[\u4E00-\u9FA5]{2}$/,$d=Hx.test.bind(Hx);function es(e){return e==="danger"?{danger:true}:{type:e}}function Wx(e){return typeof e=="string"}function Pd(e){return e==="text"||e==="link"}function T4(e,t){if(e==null)return;let o=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Wx(e.type)&&$d(e.props.children)?Oe(e,{children:e.props.children.split("").join(o)}):Wx(e)?$d(e)?ve__default.createElement("span",null,e.split("").join(o)):ve__default.createElement("span",null,e):md(e)?ve__default.createElement("span",null,e):e}function Gx(e,t){let o=false,r=[];return ve__default.Children.forEach(e,n=>{let i=typeof n,a=i==="string"||i==="number";if(o&&a){let l=r.length-1,s=r[l];r[l]=`${s}${n}`;}else r.push(n);o=a;}),ve__default.Children.map(r,n=>T4(n,t))}var I4=forwardRef((e,t)=>{let{className:o,style:r,children:n,prefixCls:i}=e,a=Xi(`${i}-icon`,o);return ve__default.createElement("span",{ref:t,className:a,style:r},n)}),Rd=I4;var Vx=forwardRef((e,t)=>{let{prefixCls:o,className:r,style:n,iconClassName:i}=e,a=Xi(`${o}-loading-icon`,r);return ve__default.createElement(Rd,{prefixCls:o,className:a,style:n,ref:t},ve__default.createElement(iM,{className:i}))}),kg=()=>({width:0,opacity:0,transform:"scale(0)"}),Dg=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),E4=e=>{let{prefixCls:t,loading:o,existIcon:r,className:n,style:i,mount:a}=e,l=!!o;return r?ve__default.createElement(Vx,{prefixCls:t,className:n,style:i}):ve__default.createElement(oB,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:true,onAppearStart:kg,onAppearActive:Dg,onEnterStart:kg,onEnterActive:Dg,onLeaveStart:Dg,onLeaveActive:kg},({className:s,style:c},p)=>{let m={...i,...c};return ve__default.createElement(Vx,{prefixCls:t,className:Xi(n,s),style:m,ref:p})})},_x=E4;var Ux=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),k4=e=>{let{componentCls:t,fontSize:o,lineWidth:r,groupBorderColor:n,colorErrorHover:i}=e;return {[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:o}},Ux(`${t}-primary`,n),Ux(`${t}-danger`,i)]}},qx=k4;var ts=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",D4=(e,t)=>e?ts(e,t):"",Wt=class e{metaColor;colors;cleared=false;constructor(t){if(t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}let o=Array.isArray(t);o&&t.length?(this.colors=t.map(({color:r,percent:n})=>({color:new e(r),percent:n})),this.metaColor=new Color(this.colors[0].color.metaColor)):this.metaColor=new Color(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=true);}toHsb(){return this.metaColor.toHsb()}toHsbString(){return this.metaColor.toHsbString()}toHex(){return D4(this.toHexString(),this.metaColor.a<1)}toHexString(){return this.metaColor.toHexString()}toRgb(){return this.metaColor.toRgb()}toRgbString(){return this.metaColor.toRgbString()}isGradient(){return !!this.colors&&!this.cleared}getColors(){return this.colors||[{color:this,percent:0}]}toCssString(){let{colors:t}=this;return t?`linear-gradient(90deg, ${t.map(r=>`${r.color.toRgbString()} ${r.percent}%`).join(", ")})`:this.metaColor.toRgbString()}equals(t){return !t||this.isGradient()!==t.isGradient()?false:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((o,r)=>{let n=t.colors[r];return o.percent===n.percent&&o.color.equals(n.color)}):this.toHexString()===t.toHexString()}};var F4=ve.forwardRef((e,t)=>{let{getPrefixCls:o}=ve.useContext(O),{prefixCls:r,className:n,showArrow:i=true}=e,a=o("collapse",r),l=Xi({[`${a}-no-arrow`]:!i},n);return ve.createElement(O4.Panel,{ref:t,...e,prefixCls:a,className:l})}),Kx=F4;var z4=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
53
53
|
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
54
|
-
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),
|
|
54
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),qr=z4;var A4=e=>({animationDuration:e,animationFillMode:"both"}),L4=e=>({animationDuration:e,animationFillMode:"both"}),Ei=(e,t,o,r,n=false)=>{let i=n?"&":"";return {[`
|
|
55
55
|
${i}${e}-enter,
|
|
56
56
|
${i}${e}-appear
|
|
57
|
-
`]:{...
|
|
57
|
+
`]:{...A4(r),animationPlayState:"paused"},[`${i}${e}-leave`]:{...L4(r),animationPlayState:"paused"},[`
|
|
58
58
|
${i}${e}-enter${e}-enter-active,
|
|
59
59
|
${i}${e}-appear${e}-appear-active
|
|
60
|
-
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}};var
|
|
60
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:o,animationPlayState:"running",pointerEvents:"none"}}};var Zx=new Keyframes("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Qx=new Keyframes("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Na=(e,t=false)=>{let{antCls:o}=e,r=`${o}-fade`,n=t?"&":"";return [Ei(r,Zx,Qx,e.motionDurationMid,t),{[`
|
|
61
61
|
${n}${r}-enter,
|
|
62
62
|
${n}${r}-appear
|
|
63
|
-
`]:{opacity:0,animationTimingFunction:"linear"},[`${n}${r}-leave`]:{animationTimingFunction:"linear"}}]};var
|
|
63
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${n}${r}-leave`]:{animationTimingFunction:"linear"}}]};var Jx=new Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ev=new Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),tv=new Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ov=new Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),rv=new Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),nv=new Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),iv=new Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),av=new Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),H4={"move-up":{inKeyframes:iv,outKeyframes:av},"move-down":{inKeyframes:Jx,outKeyframes:ev},"move-left":{inKeyframes:tv,outKeyframes:ov},"move-right":{inKeyframes:rv,outKeyframes:nv}},gn=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=H4[t];return [Ei(r,n,i,e.motionDurationMid),{[`
|
|
64
64
|
${r}-enter,
|
|
65
65
|
${r}-appear
|
|
66
|
-
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var
|
|
66
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var Bi=new Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Oi=new Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Fi=new Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),zi=new Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),lv=new Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),sv=new Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),cv=new Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),pv=new Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),W4={"slide-up":{inKeyframes:Bi,outKeyframes:Oi},"slide-down":{inKeyframes:Fi,outKeyframes:zi},"slide-left":{inKeyframes:lv,outKeyframes:sv},"slide-right":{inKeyframes:cv,outKeyframes:pv}},$o=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=W4[t];return [Ei(r,n,i,e.motionDurationMid),{[`
|
|
67
67
|
${r}-enter,
|
|
68
68
|
${r}-appear
|
|
69
|
-
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var
|
|
69
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};var Rc=new Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),dv=new Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Bg=new Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Og=new Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),mv=new Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),uv=new Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),fv=new Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),gv=new Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),yv=new Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Cv=new Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),hv=new Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),bv=new Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),G4={zoom:{inKeyframes:Rc,outKeyframes:dv},"zoom-big":{inKeyframes:Bg,outKeyframes:Og},"zoom-big-fast":{inKeyframes:Bg,outKeyframes:Og},"zoom-left":{inKeyframes:fv,outKeyframes:gv},"zoom-right":{inKeyframes:yv,outKeyframes:Cv},"zoom-up":{inKeyframes:mv,outKeyframes:uv},"zoom-down":{inKeyframes:hv,outKeyframes:bv}},sr=(e,t)=>{let{antCls:o}=e,r=`${o}-${t}`,{inKeyframes:n,outKeyframes:i}=G4[t];return [Ei(r,n,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
70
70
|
${r}-enter,
|
|
71
71
|
${r}-appear
|
|
72
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var
|
|
72
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var V4=e=>{let{componentCls:t,contentBg:o,padding:r,headerBg:n,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:p,colorBorder:m,colorText:d,colorTextHeading:f,colorTextDisabled:u,fontSizeLG:g,lineHeight:y,lineHeightLG:h,marginSM:b,paddingSM:C,paddingLG:S,paddingXS:v,motionDurationSlow:x,fontSizeIcon:$,contentPadding:R,fontHeight:T,fontHeightLG:P}=e,N=`${unit(c)} ${p} ${m}`;return {[t]:{...ae(e),backgroundColor:n,border:N,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:N,"&:last-child":{[`
|
|
73
73
|
&,
|
|
74
|
-
& > ${t}-header`]:{borderRadius:`0 0 ${unit(s)} ${unit(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:y,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:
|
|
74
|
+
& > ${t}-header`]:{borderRadius:`0 0 ${unit(s)} ${unit(s)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:y,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:T,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:{...Oo(),fontSize:$,transition:`transform ${x}`,svg:{transition:`transform ${x}`}},[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:d,backgroundColor:o,borderTop:N,[`& > ${t}-content-box`]:{padding:R},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:v,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(C).sub(v).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:h,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:P,marginInlineStart:e.calc(S).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${unit(s)} ${unit(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:u,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}}}},j4=e=>{let{componentCls:t}=e,o=`> ${t}-item > ${t}-header ${t}-arrow`;return {[`${t}-rtl`]:{[o]:{transform:"rotate(180deg)"}}}},_4=e=>{let{componentCls:t,headerBg:o,paddingXXS:r,colorBorder:n}=e;return {[`${t}-borderless`]:{backgroundColor:o,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${n}`},[`
|
|
75
75
|
> ${t}-item:last-child,
|
|
76
76
|
> ${t}-item:last-child ${t}-header
|
|
77
|
-
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},pB=e=>{let{componentCls:t,paddingSM:o}=e;return {[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:o}}}}}},dB=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),mx=te("Collapse",e=>{let t=mergeToken(e,{collapseHeaderPaddingSM:`${unit(e.paddingXS)} ${unit(e.paddingSM)}`,collapseHeaderPaddingLG:`${unit(e.padding)} ${unit(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [lB(t),cB(t),pB(t),sB(t),zr(t)]},dB);var gB=ue.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r,collapse:n}=ue.useContext(B),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:c=true,ghost:p,size:d,expandIconPosition:m="start",children:f,expandIcon:u}=e,g=Te(I=>d??I??"middle"),y=o("collapse",i),S=o(),[h,C,b]=mx(y),v=ue.useMemo(()=>m==="left"?"start":m==="right"?"end":m,[m]),x=u??n?.expandIcon,T=ue.useCallback((I={})=>{let M=typeof x=="function"?x(I):ue.createElement(cv,{rotate:I.isActive?90:void 0,"aria-label":I.isActive?"expanded":"collapsed"});return Pe(M,()=>({className:ki(M?.props?.className,`${y}-arrow`)}))},[x,y]),$=ki(`${y}-icon-position-${v}`,{[`${y}-borderless`]:!c,[`${y}-rtl`]:r==="rtl",[`${y}-ghost`]:!!p,[`${y}-${g}`]:g!=="middle"},n?.className,a,l,C,b),R={...Or(S),motionAppear:false,leavedClassName:`${y}-content-hidden`},P=ue.useMemo(()=>f?kv(f).map((I,M)=>{let E=I.props;if(E?.disabled){let w=I.key??String(M),N={...fx(I.props,["disabled"]),key:w,collapsible:E.collapsible??"disabled"};return Pe(I,N)}return I}):null,[f]);return h(ue.createElement(J4,{ref:t,openMotion:R,...fx(e,["rootClassName"]),expandIcon:T,prefixCls:y,className:$,style:{...n?.style,...s}},P))}),gx=Object.assign(gB,{Panel:Wb});var _f=gx;var mt=e=>e instanceof At?e:new At(e),tc=e=>Math.round(Number(e||0)),Bl=e=>tc(e.toHsb().a*100),Dl=(e,t)=>{let o=e.toRgb();if(!o.r&&!o.g&&!o.b){let r=e.toHsb();return r.a=1,mt(r)}return o.a=1,mt(o)},qp=(e,t)=>{let o=[{percent:0,color:e[0].color},...e,{percent:100,color:e[e.length-1].color}];for(let r=0;r<o.length-1;r+=1){let n=o[r].percent,i=o[r+1].percent,a=o[r].color,l=o[r+1].color;if(n<=t&&t<=i){let s=i-n;if(s===0)return a;let c=(t-n)/s*100,p=new Color(a),d=new Color(l);return p.mix(d,c).toRgbString()}}return ""};var jf=e=>e.map(t=>(t.colors=t.colors.map(mt),t)),Uf=(e,t)=>{let{r:o,g:r,b:n,a:i}=e.toRgb(),a=new Color(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:o*.299+r*.587+n*.114>192},Cx=(e,t)=>typeof e.label=="string"||typeof e.label=="number"?`panel-${e.label}-${t}`:`panel-${t}`,xB=({prefixCls:e,presets:t,value:o,onChange:r})=>{let[n]=Ee("ColorPicker"),[,i]=ve(),[a]=e0(jf(t),{value:jf(t),postState:jf}),l=`${e}-presets`,s=useMemo(()=>a.reduce((d,m,f)=>{let{defaultOpen:u=true}=m;return u&&d.push(Cx(m,f)),d},[]),[a]),c=d=>{r?.(d);},p=a.map((d,m)=>({key:Cx(d,m),label:ue__default.createElement("div",{className:`${l}-label`},d?.label),children:ue__default.createElement("div",{className:`${l}-items`},Array.isArray(d?.colors)&&d.colors?.length>0?d.colors.map((f,u)=>ue__default.createElement(ColorBlock,{key:`preset-${u}-${f.toHexString()}`,color:mt(f).toRgbString(),prefixCls:e,className:ki(`${l}-color`,{[`${l}-color-checked`]:f.toHexString()===o?.toHexString(),[`${l}-color-bright`]:Uf(f,i.colorBgElevated)}),onClick:()=>c(f)})):ue__default.createElement("span",{className:`${l}-empty`},n.presetEmpty))}));return ue__default.createElement("div",{className:l},ue__default.createElement(_f,{defaultActiveKey:s,ghost:true,items:p}))},hx=xB;var Xp=e=>{let{paddingInline:t,onlyIconSize:o}=e;return mergeToken(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o})},Kp=e=>{let t=e.contentFontSize??e.fontSize,o=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,n=e.contentLineHeight??Tl(t),i=e.contentLineHeightSM??Tl(o),a=e.contentLineHeightLG??Tl(r),l=Uf(new At(e.colorBgSolid),"#fff")?"#000":"#fff";return {fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:l,contentFontSize:t,contentFontSizeSM:o,contentFontSizeLG:r,contentLineHeight:n,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-t*n)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-o*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*a)/2-e.lineWidth,0)}};var TB=e=>{let{componentCls:t,iconCls:o,fontWeight:r,opacityLoading:n,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:s}=e;return {[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Io(),"> a":{color:"currentColor"},"&:not(:disabled)":St(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:n,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},Sx=(e,t,o)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":o}}),vB=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),PB=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),$B=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Xf=(e,t,o,r,n,i,a,l)=>({[`&${e}-background-ghost`]:{color:o||void 0,background:t,borderColor:r||void 0,boxShadow:"none",...Sx(e,{background:t,...a},{background:t,...l}),"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}}}),RB=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{...$B(e)}}),IB=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Yp=(e,t,o,r)=>({...(r&&["link","text"].includes(r)?IB:RB)(e),...Sx(e.componentCls,t,o)}),Kf=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-solid`]:{color:t,background:o,...Yp(e,r,n)}}),Yf=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:{borderColor:t,background:o,...Yp(e,r,n)}}),Zf=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Qf=(e,t,o,r)=>({[`&${e.componentCls}-variant-filled`]:{boxShadow:"none",background:t,...Yp(e,o,r)}}),Fl=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-${o}`]:{color:t,boxShadow:"none",...Yp(e,r,n,o)}}),wB=e=>({color:e.defaultColor,boxShadow:e.defaultShadow,...Kf(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive}),...Zf(e),...Qf(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill}),...Fl(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive}),...Xf(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)}),NB=e=>({color:e.colorPrimary,boxShadow:e.primaryShadow,...Yf(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer}),...Zf(e),...Qf(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder}),...Fl(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder}),...Xf(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})}),MB=e=>({color:e.colorError,boxShadow:e.dangerShadow,...Kf(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive}),...Yf(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive}),...Zf(e),...Qf(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive}),...Fl(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}),...Fl(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive}),...Xf(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})}),EB=e=>{let{componentCls:t}=e;return {[`${t}-color-default`]:wB(e),[`${t}-color-primary`]:NB(e),[`${t}-color-dangerous`]:MB(e)}},kB=e=>({...Yf(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg}),...Fl(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive}),...Kf(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor}),...Fl(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})}),Jf=(e,t="")=>{let{componentCls:o,controlHeight:r,fontSize:n,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return [{[t]:{fontSize:n,height:r,padding:`${unit(s)} ${unit(a)}`,borderRadius:i,[`&${o}-icon-only`]:{width:r,[l]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${o}${o}-circle${t}`]:vB(e)},{[`${o}${o}-round${t}`]:PB(e)}]},BB=e=>{let t=mergeToken(e,{fontSize:e.contentFontSize});return Jf(t,e.componentCls)},DB=e=>{let t=mergeToken(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Jf(t,`${e.componentCls}-sm`)},AB=e=>{let t=mergeToken(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Jf(t,`${e.componentCls}-lg`)},FB=e=>{let{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},bx=te("Button",e=>{let t=Xp(e);return [TB(t),BB(t),DB(t),AB(t),FB(t),EB(t),kB(t),Lb(t)]},Kp,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function OB(e,t,o){let{focusElCls:r,focus:n,borderElCls:i}=o,a=i?"> *":"",l=["hover",n?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[l]:{zIndex:2},...r?{[`&${r}`]:{zIndex:2}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function zB(e,t,o){let{borderElCls:r}=o,n=r?`> ${r}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Lo(e,t={focus:true}){let{componentCls:o}=e,r=`${o}-compact`;return {[r]:{...OB(e,r,t),...zB(o,r,t)}}}function LB(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function HB(e,t){return {[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function xx(e){let t=`${e.componentCls}-compact-vertical`;return {[t]:{...LB(e,t),...HB(e.componentCls,t)}}}var WB=e=>{let{componentCls:t,colorPrimaryHover:o,lineWidth:r,calc:n}=e,i=n(r).mul(-1).equal(),a=l=>({[`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:l?i:0,insetInlineStart:l?0:i,backgroundColor:o,content:'""',width:l?"100%":r,height:l?r:"100%"}}});return {...a(),...a(true)}},Tx=No(["Button","compact"],e=>{let t=Xp(e);return [Lo(t),xx(t),WB(t)]},Kp);function jB(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}var UB={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},qB=ue__default.forwardRef((e,t)=>{let{loading:o=false,prefixCls:r,color:n,variant:i,type:a,danger:l=false,shape:s="default",size:c,styles:p,disabled:d,className:m,rootClassName:f,children:u,icon:g,iconPosition:y="start",ghost:S=false,block:h=false,htmlType:C="button",classNames:b,style:v={},autoInsertSpace:x,autoFocus:T,...$}=e,R=a||"default",[P,I]=useMemo(()=>{if(n&&i)return [n,i];let me=UB[R]||[];return l?["danger",me[1]]:me},[a,n,i,l]),E=P==="danger"?"dangerous":P,{getPrefixCls:w,direction:N,button:A}=useContext(B),k=x??A?.autoInsertSpace??true,D=w("btn",r),[F,O,L]=bx(D),_=useContext(Be),H=d??_,z=useContext(Lf),G=useMemo(()=>jB(o),[o]),[W,q]=useState(G.loading),[j,K]=useState(false),Q=useRef(null),V=useComposeRef(t,Q),U=Children.count(u)===1&&!g&&!jp(I),Y=useRef(true);ue__default.useEffect(()=>(Y.current=false,()=>{Y.current=true;}),[]),useEffect(()=>{let me=null;G.delay>0?me=setTimeout(()=>{me=null,q(true);},G.delay):q(G.loading);function Re(){me&&(clearTimeout(me),me=null);}return Re},[G]),useEffect(()=>{if(!Q.current||!k)return;let me=Q.current.textContent||"";U&&_p(me)?j||K(true):j&&K(false);}),useEffect(()=>{T&&Q.current&&Q.current.focus();},[]);let J=ue__default.useCallback(me=>{if(W||H){me.preventDefault();return}e.onClick?.(me);},[e.onClick,W,H]),{compactSize:ie,compactItemClassnames:ee}=$t(D,N),X={large:"lg",small:"sm",middle:void 0},Z=Te(me=>c??ie??z??me),re=Z?X[Z]??"":"",ae=W?"loading":g,se=fx($,["navigate"]),Ce=ki(D,O,L,{[`${D}-${s}`]:s!=="default"&&s,[`${D}-${R}`]:R,[`${D}-dangerous`]:l,[`${D}-color-${E}`]:E,[`${D}-variant-${I}`]:I,[`${D}-${re}`]:re,[`${D}-icon-only`]:!u&&u!==0&&!!ae,[`${D}-background-ghost`]:S&&!jp(I),[`${D}-loading`]:W,[`${D}-two-chinese-chars`]:j&&k&&!W,[`${D}-block`]:h,[`${D}-rtl`]:N==="rtl",[`${D}-icon-end`]:y==="end"},ee,m,f,A?.className),$e={...A?.style,...v},Ge=ki(b?.icon,A?.classNames?.icon),xe={...p?.icon||{},...A?.styles?.icon||{}},qe=g&&!W?ue__default.createElement(Up,{prefixCls:D,className:Ge,style:xe},g):ue__default.createElement(Ob,{existIcon:!!g,prefixCls:D,loading:W,mount:Y.current}),lt=u||u===0?Db(u,U&&k):null;if(se.href!==void 0)return F(ue__default.createElement("a",{...se,className:ki(Ce,{[`${D}-disabled`]:H}),href:H?void 0:se.href,style:$e,onClick:J,ref:V,tabIndex:H?-1:0},qe,lt));let Ye=ue__default.createElement("button",{...$,type:C,className:Ce,style:$e,onClick:J,disabled:H,ref:V},qe,lt,ee&&ue__default.createElement(Tx,{prefixCls:D}));return jp(I)||(Ye=ue__default.createElement(rn,{component:"Button",disabled:W},Ye)),F(Ye)}),rg=qB;rg.Group=Eb;rg.__ANT_BUTTON=true;var Rx=rg;var Le=Rx;function ng(e){return !!e?.then}var KB=e=>{let{type:t,children:o,prefixCls:r,buttonProps:n,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:p}=e,d=ue.useRef(false),m=ue.useRef(null),[f,u]=XB(false),g=(...h)=>{i?.(...h);};ue.useEffect(()=>{let h=null;return a&&(h=setTimeout(()=>{m.current?.focus({preventScroll:true});})),()=>{h&&clearTimeout(h);}},[]);let y=h=>{ng(h)&&(u(true),h.then((...C)=>{u(false,true),g(...C),d.current=false;},C=>{if(u(false,true),d.current=false,!s?.())return Promise.reject(C)}));},S=h=>{if(d.current)return;if(d.current=true,!p){g();return}let C;if(l){if(C=p(h),c&&!ng(C)){d.current=false,g(h);return}}else if(p.length)C=p(i),d.current=false;else if(C=p(),!ng(C)){g();return}y(C);};return ue.createElement(Le,{...Ml(t),onClick:S,loading:f,prefixCls:r,...n,ref:m},o)},Ol=KB;var En=ue__default.createContext({}),{Provider:Zp}=En;var JB=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:r,mergedOkCancel:n,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=useContext(En);return n?ue__default.createElement(Ol,{isSilent:r,actionFn:l,close:(...c)=>{a?.(...c),s?.(false);},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},o):null},ig=JB;var oD=()=>{let{autoFocusButton:e,close:t,isSilent:o,okButtonProps:r,rootPrefixCls:n,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=useContext(En);return ue__default.createElement(Ol,{isSilent:o,type:a||"primary",actionFn:s,close:(...c)=>{t?.(...c),l?.(true);},autoFocus:e==="ok",buttonProps:r,prefixCls:`${n}-btn`},i)},ag=oD;var so=ue.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})}),Qp=ue.createContext(null),Jp=e=>{let t=fx(e,["prefixCls"]);return ue.createElement(FormProvider,{...t})},zl=ue.createContext({prefixCls:""}),ke=ue.createContext({}),Ix=({children:e,status:t,override:o})=>{let r=ue.useContext(ke),n=ue.useMemo(()=>{let i={...r};return o&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,o,r]);return ue.createElement(ke.Provider,{value:n},e)},ed=ue.createContext(void 0);var iD=e=>{let{space:t,form:o,children:r}=e;if(r==null)return null;let n=r;return o&&(n=ue__default.createElement(Ix,{override:true,status:true},n)),t&&(n=ue__default.createElement(Nb,null,n)),n},Ft=iD;function kn(e){if(e)return {closable:e.closable,closeIcon:e.closeIcon}}function Nx(e){let{closable:t,closeIcon:o}=e||{};return ue__default.useMemo(()=>{if(!t&&(t===false||o===false||o===null))return false;if(t===void 0&&o===void 0)return null;let r={closeIcon:typeof o!="boolean"&&o!==null?o:void 0};return t&&typeof t=="object"&&(r={...r,...t}),r},[t,o])}function Mx(...e){let t={};return e.forEach(o=>{o&&Object.keys(o).forEach(r=>{o[r]!==void 0&&(t[r]=o[r]);});}),t}var sD={};function Bn(e,t,o=sD){let r=Nx(e),n=Nx(t),i=typeof r!="boolean"?!!r?.disabled:false,a=ue__default.useMemo(()=>({closeIcon:ue__default.createElement(Ck,null),...o}),[o]),l=ue__default.useMemo(()=>r===false?false:r?Mx(a,n,r):n===false?false:n?Mx(a,n):a.closable?a:false,[r,n,a]);return ue__default.useMemo(()=>{if(l===false)return [false,null,i];let{closeIconRender:s}=a,{closeIcon:c}=l,p=c;if(p!=null){s&&(p=s(c));let d=xk(l,true);Object.keys(d).length&&(p=ue__default.isValidElement(p)?ue__default.cloneElement(p,d):ue__default.createElement("span",{...d},p));}return [true,p,i]},[l,a])}var Ex=()=>window.document.documentElement;var cD=e=>{let{prefixCls:t,className:o,style:r,size:n,shape:i}=e,a=ki({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),l=ki({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=ue.useMemo(()=>typeof n=="number"?{width:n,height:n,lineHeight:`${n}px`}:{},[n]);return ue.createElement("span",{className:ki(t,a,l,o),style:{...s,...r}})},vi=cD;var mD=new Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),od=e=>({height:e,lineHeight:unit(e)}),Ll=e=>({width:e,...od(e)}),uD=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:mD,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),cg=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...od(e)}),fD=e=>{let{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:r,controlHeightLG:n,controlHeightSM:i}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:o,...Ll(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...Ll(n)},[`${t}${t}-sm`]:{...Ll(i)}}},gD=e=>{let{controlHeight:t,borderRadiusSM:o,skeletonInputCls:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:o,...cg(t,l)},[`${r}-lg`]:{...cg(n,l)},[`${r}-sm`]:{...cg(i,l)}}},kx=e=>({width:e,...od(e)}),yD=e=>{let{skeletonImageCls:t,imageSizeBase:o,gradientFromColor:r,borderRadiusSM:n,calc:i}=e;return {[t]:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:n,...kx(i(o).mul(2).equal()),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...kx(o),maxWidth:i(o).mul(4).equal(),maxHeight:i(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},pg=(e,t,o)=>{let{skeletonButtonCls:r}=e;return {[`${o}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${r}-round`]:{borderRadius:t}}},dg=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...od(e)}),CD=e=>{let{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[o]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal(),...dg(r,l)},...pg(e,r,o),[`${o}-lg`]:{...dg(n,l)},...pg(e,n,`${o}-lg`),[`${o}-sm`]:{...dg(i,l)},...pg(e,i,`${o}-sm`)}},hD=e=>{let{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:r,skeletonParagraphCls:n,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:p,gradientFromColor:d,padding:m,marginSM:f,borderRadius:u,titleHeight:g,blockRadius:y,paragraphLiHeight:S,controlHeightXS:h,paragraphMarginTop:C}=e;return {[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:d,...Ll(s)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...Ll(c)},[`${o}-sm`]:{...Ll(p)}},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:d,borderRadius:y,[`+ ${n}`]:{marginBlockStart:p}},[n]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:d,borderRadius:y,"+ li":{marginBlockStart:h}}},[`${n}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${n} > li`]:{borderRadius:u}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:f,[`+ ${n}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...CD(e),...fD(e),...gD(e),...yD(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
77
|
+
`]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},U4=e=>{let{componentCls:t,paddingSM:o}=e;return {[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:o}}}}}},q4=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),Sv=oe("Collapse",e=>{let t=mergeToken(e,{collapseHeaderPaddingSM:`${unit(e.paddingXS)} ${unit(e.paddingSM)}`,collapseHeaderPaddingLG:`${unit(e.padding)} ${unit(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return [V4(t),_4(t),U4(t),j4(t),qr(t)]},q4);var Z4=ve.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r,collapse:n}=ve.useContext(O),{prefixCls:i,className:a,rootClassName:l,style:s,bordered:c=true,ghost:p,size:m,expandIconPosition:d="start",children:f,expandIcon:u}=e,g=ke(N=>m??N??"middle"),y=o("collapse",i),h=o(),[b,C,S]=Sv(y),v=ve.useMemo(()=>d==="left"?"start":d==="right"?"end":d,[d]),x=u??n?.expandIcon,$=ve.useCallback((N={})=>{let M=typeof x=="function"?x(N):ve.createElement(C0,{rotate:N.isActive?90:void 0,"aria-label":N.isActive?"expanded":"collapsed"});return Oe(M,()=>({className:Xi(M?.props?.className,`${y}-arrow`)}))},[x,y]),R=Xi(`${y}-icon-position-${v}`,{[`${y}-borderless`]:!c,[`${y}-rtl`]:r==="rtl",[`${y}-ghost`]:!!p,[`${y}-${g}`]:g!=="middle"},n?.className,a,l,C,S),T={...Ur(h),motionAppear:false,leavedClassName:`${y}-content-hidden`},P=ve.useMemo(()=>f?H0(f).map((N,M)=>{let E=N.props;if(E?.disabled){let I=N.key??String(M),w={...vv(N.props,["disabled"]),key:I,collapsible:E.collapsible??"disabled"};return Oe(N,w)}return N}):null,[f]);return b(ve.createElement(O4,{ref:t,openMotion:T,...vv(e,["rootClassName"]),expandIcon:$,prefixCls:y,className:R,style:{...n?.style,...s}},P))}),Tv=Object.assign(Z4,{Panel:Kx});var Fg=Tv;var Ct=e=>e instanceof Wt?e:new Wt(e),Ic=e=>Math.round(Number(e||0)),rs=e=>Ic(e.toHsb().a*100),ns=(e,t)=>{let o=e.toRgb();if(!o.r&&!o.g&&!o.b){let r=e.toHsb();return r.a=1,Ct(r)}return o.a=1,Ct(o)},Id=(e,t)=>{let o=[{percent:0,color:e[0].color},...e,{percent:100,color:e[e.length-1].color}];for(let r=0;r<o.length-1;r+=1){let n=o[r].percent,i=o[r+1].percent,a=o[r].color,l=o[r+1].color;if(n<=t&&t<=i){let s=i-n;if(s===0)return a;let c=(t-n)/s*100,p=new Color(a),m=new Color(l);return p.mix(m,c).toRgbString()}}return ""};var zg=e=>e.map(t=>(t.colors=t.colors.map(Ct),t)),Ag=(e,t)=>{let{r:o,g:r,b:n,a:i}=e.toRgb(),a=new Color(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:o*.299+r*.587+n*.114>192},Pv=(e,t)=>typeof e.label=="string"||typeof e.label=="number"?`panel-${e.label}-${t}`:`panel-${t}`,rO=({prefixCls:e,presets:t,value:o,onChange:r})=>{let[n]=Ae("ColorPicker"),[,i]=De(),[a]=s$(zg(t),{value:zg(t),postState:zg}),l=`${e}-presets`,s=useMemo(()=>a.reduce((m,d,f)=>{let{defaultOpen:u=true}=d;return u&&m.push(Pv(d,f)),m},[]),[a]),c=m=>{r?.(m);},p=a.map((m,d)=>({key:Pv(m,d),label:ve__default.createElement("div",{className:`${l}-label`},m?.label),children:ve__default.createElement("div",{className:`${l}-items`},Array.isArray(m?.colors)&&m.colors?.length>0?m.colors.map((f,u)=>ve__default.createElement(ColorBlock,{key:`preset-${u}-${f.toHexString()}`,color:Ct(f).toRgbString(),prefixCls:e,className:Xi(`${l}-color`,{[`${l}-color-checked`]:f.toHexString()===o?.toHexString(),[`${l}-color-bright`]:Ag(f,i.colorBgElevated)}),onClick:()=>c(f)})):ve__default.createElement("span",{className:`${l}-empty`},n.presetEmpty))}));return ve__default.createElement("div",{className:l},ve__default.createElement(Fg,{defaultActiveKey:s,ghost:true,items:p}))},Rv=rO;var wd=e=>{let{paddingInline:t,onlyIconSize:o}=e;return mergeToken(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:o})},Nd=e=>{let t=e.contentFontSize??e.fontSize,o=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,n=e.contentLineHeight??Ul(t),i=e.contentLineHeightSM??Ul(o),a=e.contentLineHeightLG??Ul(r),l=Ag(new Wt(e.colorBgSolid),"#fff")?"#000":"#fff";return {fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:l,contentFontSize:t,contentFontSizeSM:o,contentFontSizeLG:r,contentLineHeight:n,contentLineHeightSM:i,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-t*n)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-o*i)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*a)/2-e.lineWidth,0)}};var nO=e=>{let{componentCls:t,iconCls:o,fontWeight:r,opacityLoading:n,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:s}=e;return {[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Oo(),"> a":{color:"currentColor"},"&:not(:disabled)":$t(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${o})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:n,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},Iv=(e,t,o)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":o}}),iO=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),aO=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),lO=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Hg=(e,t,o,r,n,i,a,l)=>({[`&${e}-background-ghost`]:{color:o||void 0,background:t,borderColor:r||void 0,boxShadow:"none",...Iv(e,{background:t,...a},{background:t,...l}),"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}}}),sO=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{...lO(e)}}),cO=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Md=(e,t,o,r)=>({...(r&&["link","text"].includes(r)?cO:sO)(e),...Iv(e.componentCls,t,o)}),Wg=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-solid`]:{color:t,background:o,...Md(e,r,n)}}),Gg=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:{borderColor:t,background:o,...Md(e,r,n)}}),Vg=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),jg=(e,t,o,r)=>({[`&${e.componentCls}-variant-filled`]:{boxShadow:"none",background:t,...Md(e,o,r)}}),as=(e,t,o,r,n)=>({[`&${e.componentCls}-variant-${o}`]:{color:t,boxShadow:"none",...Md(e,r,n,o)}}),pO=e=>({color:e.defaultColor,boxShadow:e.defaultShadow,...Wg(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive}),...Vg(e),...jg(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill}),...as(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive}),...Hg(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)}),dO=e=>({color:e.colorPrimary,boxShadow:e.primaryShadow,...Gg(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer}),...Vg(e),...jg(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder}),...as(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder}),...Hg(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})}),mO=e=>({color:e.colorError,boxShadow:e.dangerShadow,...Wg(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive}),...Gg(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive}),...Vg(e),...jg(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive}),...as(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}),...as(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive}),...Hg(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})}),uO=e=>{let{componentCls:t}=e;return {[`${t}-color-default`]:pO(e),[`${t}-color-primary`]:dO(e),[`${t}-color-dangerous`]:mO(e)}},fO=e=>({...Gg(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg}),...as(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive}),...Wg(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor}),...as(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})}),_g=(e,t="")=>{let{componentCls:o,controlHeight:r,fontSize:n,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return [{[t]:{fontSize:n,height:r,padding:`${unit(s)} ${unit(a)}`,borderRadius:i,[`&${o}-icon-only`]:{width:r,[l]:{fontSize:c,verticalAlign:"calc(-0.125em - 1px)"}}}},{[`${o}${o}-circle${t}`]:iO(e)},{[`${o}${o}-round${t}`]:aO(e)}]},gO=e=>{let t=mergeToken(e,{fontSize:e.contentFontSize});return _g(t,e.componentCls)},yO=e=>{let t=mergeToken(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return _g(t,`${e.componentCls}-sm`)},CO=e=>{let t=mergeToken(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return _g(t,`${e.componentCls}-lg`)},hO=e=>{let{componentCls:t}=e;return {[t]:{[`&${t}-block`]:{width:"100%"}}}},wv=oe("Button",e=>{let t=wd(e);return [nO(t),gO(t),yO(t),CO(t),hO(t),uO(t),fO(t),qx(t)]},Nd,{unitless:{fontWeight:true,contentLineHeight:true,contentLineHeightSM:true,contentLineHeightLG:true}});function bO(e,t,o){let{focusElCls:r,focus:n,borderElCls:i}=o,a=i?"> *":"",l=["hover",n?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return {[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{[l]:{zIndex:2},...r?{[`&${r}`]:{zIndex:2}}:{},[`&[disabled] ${a}`]:{zIndex:0}}}}function SO(e,t,o){let{borderElCls:r}=o,n=r?`> ${r}`:"";return {[`&-item:not(${t}-first-item):not(${t}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function qo(e,t={focus:true}){let{componentCls:o}=e,r=`${o}-compact`;return {[r]:{...bO(e,r,t),...SO(o,r,t)}}}function xO(e,t){return {[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function vO(e,t){return {[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Nv(e){let t=`${e.componentCls}-compact-vertical`;return {[t]:{...xO(e,t),...vO(e.componentCls,t)}}}var TO=e=>{let{componentCls:t,colorPrimaryHover:o,lineWidth:r,calc:n}=e,i=n(r).mul(-1).equal(),a=l=>({[`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`]:{"& + &::before":{position:"absolute",top:l?i:0,insetInlineStart:l?0:i,backgroundColor:o,content:'""',width:l?"100%":r,height:l?r:"100%"}}});return {...a(),...a(true)}},Mv=zo(["Button","compact"],e=>{let t=wd(e);return [qo(t),Nv(t),TO(t)]},Nd);function IO(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return {loading:!!e,delay:0}}var wO={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},NO=ve__default.forwardRef((e,t)=>{let{loading:o=false,prefixCls:r,color:n,variant:i,type:a,danger:l=false,shape:s="default",size:c,styles:p,disabled:m,className:d,rootClassName:f,children:u,icon:g,iconPosition:y="start",ghost:h=false,block:b=false,htmlType:C="button",classNames:S,style:v={},autoInsertSpace:x,autoFocus:$,...R}=e,T=a||"default",[P,N]=useMemo(()=>{if(n&&i)return [n,i];let de=wO[T]||[];return l?["danger",de[1]]:de},[a,n,i,l]),E=P==="danger"?"dangerous":P,{getPrefixCls:I,direction:w,button:B}=useContext(O),k=x??B?.autoInsertSpace??true,D=I("btn",r),[F,A,L]=wv(D),q=useContext(We),V=m??q,z=useContext(Eg),G=useMemo(()=>IO(o),[o]),[_,Z]=useState(G.loading),[K,Q]=useState(false),ee=useRef(null),j=useComposeRef(t,ee),Y=Children.count(u)===1&&!g&&!Pd(N),J=useRef(true);ve__default.useEffect(()=>(J.current=false,()=>{J.current=true;}),[]),useEffect(()=>{let de=null;G.delay>0?de=setTimeout(()=>{de=null,Z(true);},G.delay):Z(G.loading);function U(){de&&(clearTimeout(de),de=null);}return U},[G]),useEffect(()=>{if(!ee.current||!k)return;let de=ee.current.textContent||"";Y&&$d(de)?K||Q(true):K&&Q(false);}),useEffect(()=>{$&&ee.current&&ee.current.focus();},[]);let te=ve__default.useCallback(de=>{if(_||V){de.preventDefault();return}e.onClick?.(de);},[e.onClick,_,V]),{compactSize:ue,compactItemClassnames:W}=Mt(D,w),H={large:"lg",small:"sm",middle:void 0},X=ke(de=>c??ue??z??de),re=X?H[X]??"":"",ce=_?"loading":g,fe=vv(R,["navigate"]),Pe=Xi(D,A,L,{[`${D}-${s}`]:s!=="default"&&s,[`${D}-${T}`]:T,[`${D}-dangerous`]:l,[`${D}-color-${E}`]:E,[`${D}-variant-${N}`]:N,[`${D}-${re}`]:re,[`${D}-icon-only`]:!u&&u!==0&&!!ce,[`${D}-background-ghost`]:h&&!Pd(N),[`${D}-loading`]:_,[`${D}-two-chinese-chars`]:K&&k&&!_,[`${D}-block`]:b,[`${D}-rtl`]:w==="rtl",[`${D}-icon-end`]:y==="end"},W,d,f,B?.className),we={...B?.style,...v},ye=Xi(S?.icon,B?.classNames?.icon),ge={...p?.icon||{},...B?.styles?.icon||{}},xe=g&&!_?ve__default.createElement(Rd,{prefixCls:D,className:ye,style:ge},g):ve__default.createElement(_x,{existIcon:!!g,prefixCls:D,loading:_,mount:J.current}),Te=u||u===0?Gx(u,Y&&k):null;if(fe.href!==void 0)return F(ve__default.createElement("a",{...fe,className:Xi(Pe,{[`${D}-disabled`]:V}),href:V?void 0:fe.href,style:we,onClick:te,ref:j,tabIndex:V?-1:0},xe,Te));let Se=ve__default.createElement("button",{...R,type:C,className:Pe,style:we,onClick:te,disabled:V,ref:j},xe,Te,W&&ve__default.createElement(Mv,{prefixCls:D}));return Pd(N)||(Se=ve__default.createElement(fn,{component:"Button",disabled:_},Se)),F(Se)}),Kg=NO;Kg.Group=Lx;Kg.__ANT_BUTTON=true;var Bv=Kg;var Ge=Bv;function Yg(e){return !!e?.then}var EO=e=>{let{type:t,children:o,prefixCls:r,buttonProps:n,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:p}=e,m=ve.useRef(false),d=ve.useRef(null),[f,u]=MO(false),g=(...b)=>{i?.(...b);};ve.useEffect(()=>{let b=null;return a&&(b=setTimeout(()=>{d.current?.focus({preventScroll:true});})),()=>{b&&clearTimeout(b);}},[]);let y=b=>{Yg(b)&&(u(true),b.then((...C)=>{u(false,true),g(...C),m.current=false;},C=>{if(u(false,true),m.current=false,!s?.())return Promise.reject(C)}));},h=b=>{if(m.current)return;if(m.current=true,!p){g();return}let C;if(l){if(C=p(b),c&&!Yg(C)){m.current=false,g(b);return}}else if(p.length)C=p(i),m.current=false;else if(C=p(),!Yg(C)){g();return}y(C);};return ve.createElement(Ge,{...es(t),onClick:h,loading:f,prefixCls:r,...n,ref:d},o)},ls=EO;var jn=ve__default.createContext({}),{Provider:Ed}=jn;var OO=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:r,mergedOkCancel:n,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=useContext(jn);return n?ve__default.createElement(ls,{isSilent:r,actionFn:l,close:(...c)=>{a?.(...c),s?.(false);},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},o):null},Zg=OO;var AO=()=>{let{autoFocusButton:e,close:t,isSilent:o,okButtonProps:r,rootPrefixCls:n,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=useContext(jn);return ve__default.createElement(ls,{isSilent:o,type:a||"primary",actionFn:s,close:(...c)=>{t?.(...c),l?.(true);},autoFocus:e==="ok",buttonProps:r,prefixCls:`${n}-btn`},i)},Qg=AO;var Co=ve.createContext({labelAlign:"right",vertical:false,itemRef:(()=>{})}),kd=ve.createContext(null),Dd=e=>{let t=vv(e,["prefixCls"]);return ve.createElement(FormProvider,{...t})},ss=ve.createContext({prefixCls:""}),Le=ve.createContext({}),Ov=({children:e,status:t,override:o})=>{let r=ve.useContext(Le),n=ve.useMemo(()=>{let i={...r};return o&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,o,r]);return ve.createElement(Le.Provider,{value:n},e)},Bd=ve.createContext(void 0);var WO=e=>{let{space:t,form:o,children:r}=e;if(r==null)return null;let n=r;return o&&(n=ve__default.createElement(Ov,{override:true,status:true},n)),t&&(n=ve__default.createElement(zx,null,n)),n},Gt=WO;function _n(e){if(e)return {closable:e.closable,closeIcon:e.closeIcon}}function zv(e){let{closable:t,closeIcon:o}=e||{};return ve__default.useMemo(()=>{if(!t&&(t===false||o===false||o===null))return false;if(t===void 0&&o===void 0)return null;let r={closeIcon:typeof o!="boolean"&&o!==null?o:void 0};return t&&typeof t=="object"&&(r={...r,...t}),r},[t,o])}function Av(...e){let t={};return e.forEach(o=>{o&&Object.keys(o).forEach(r=>{o[r]!==void 0&&(t[r]=o[r]);});}),t}var jO={};function Un(e,t,o=jO){let r=zv(e),n=zv(t),i=typeof r!="boolean"?!!r?.disabled:false,a=ve__default.useMemo(()=>({closeIcon:ve__default.createElement(JD,null),...o}),[o]),l=ve__default.useMemo(()=>r===false?false:r?Av(a,n,r):n===false?false:n?Av(a,n):a.closable?a:false,[r,n,a]);return ve__default.useMemo(()=>{if(l===false)return [false,null,i];let{closeIconRender:s}=a,{closeIcon:c}=l,p=c;if(p!=null){s&&(p=s(c));let m=rB(l,true);Object.keys(m).length&&(p=ve__default.isValidElement(p)?ve__default.cloneElement(p,m):ve__default.createElement("span",{...m},p));}return [true,p,i]},[l,a])}var Lv=()=>window.document.documentElement;var _O=e=>{let{prefixCls:t,className:o,style:r,size:n,shape:i}=e,a=Xi({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),l=Xi({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=ve.useMemo(()=>typeof n=="number"?{width:n,height:n,lineHeight:`${n}px`}:{},[n]);return ve.createElement("span",{className:Xi(t,a,l,o),style:{...s,...r}})},Li=_O;var XO=new Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Fd=e=>({height:e,lineHeight:unit(e)}),cs=e=>({width:e,...Fd(e)}),KO=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:XO,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ty=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Fd(e)}),YO=e=>{let{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:r,controlHeightLG:n,controlHeightSM:i}=e;return {[t]:{display:"inline-block",verticalAlign:"top",background:o,...cs(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...cs(n)},[`${t}${t}-sm`]:{...cs(i)}}},ZO=e=>{let{controlHeight:t,borderRadiusSM:o,skeletonInputCls:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:o,...ty(t,l)},[`${r}-lg`]:{...ty(n,l)},[`${r}-sm`]:{...ty(i,l)}}},Hv=e=>({width:e,...Fd(e)}),QO=e=>{let{skeletonImageCls:t,imageSizeBase:o,gradientFromColor:r,borderRadiusSM:n,calc:i}=e;return {[t]:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:n,...Hv(i(o).mul(2).equal()),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...Hv(o),maxWidth:i(o).mul(4).equal(),maxHeight:i(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},oy=(e,t,o)=>{let{skeletonButtonCls:r}=e;return {[`${o}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${r}-round`]:{borderRadius:t}}},ry=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Fd(e)}),JO=e=>{let{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:r,controlHeightLG:n,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return {[o]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal(),...ry(r,l)},...oy(e,r,o),[`${o}-lg`]:{...ry(n,l)},...oy(e,n,`${o}-lg`),[`${o}-sm`]:{...ry(i,l)},...oy(e,i,`${o}-sm`)}},e5=e=>{let{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:r,skeletonParagraphCls:n,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:p,gradientFromColor:m,padding:d,marginSM:f,borderRadius:u,titleHeight:g,blockRadius:y,paragraphLiHeight:h,controlHeightXS:b,paragraphMarginTop:C}=e;return {[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:m,...cs(s)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...cs(c)},[`${o}-sm`]:{...cs(p)}},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:m,borderRadius:y,[`+ ${n}`]:{marginBlockStart:p}},[n]:{padding:0,"> li":{width:"100%",height:h,listStyle:"none",background:m,borderRadius:y,"+ li":{marginBlockStart:b}}},[`${n}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${n} > li`]:{borderRadius:u}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:f,[`+ ${n}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...JO(e),...YO(e),...ZO(e),...QO(e)},[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
78
78
|
${r},
|
|
79
79
|
${n} > li,
|
|
80
80
|
${o},
|
|
81
81
|
${i},
|
|
82
82
|
${a},
|
|
83
83
|
${l}
|
|
84
|
-
`]:{...uD(e)}}}},SD=e=>{let{colorFillContent:t,colorFill:o}=e,r=t,n=o;return {color:r,colorGradientEnd:n,gradientFromColor:r,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},$r=te("Skeleton",e=>{let{componentCls:t,calc:o}=e,r=mergeToken(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:o(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return [hD(r)]},SD,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var TD=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=ue.useContext(B),s=l("skeleton",t),[c,p,d]=$r(s),m=fx(e,["prefixCls","className"]),f=ki(s,`${s}-element`,{[`${s}-active`]:n},o,r,p,d);return c(ue.createElement("div",{className:f},ue.createElement(vi,{prefixCls:`${s}-avatar`,shape:i,size:a,...m})))},Bx=TD;var $D=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,block:i=false,size:a="default"}=e,{getPrefixCls:l}=ue.useContext(B),s=l("skeleton",t),[c,p,d]=$r(s),m=fx(e,["prefixCls"]),f=ki(s,`${s}-element`,{[`${s}-active`]:n,[`${s}-block`]:i},o,r,p,d);return c(ue.createElement("div",{className:f},ue.createElement(vi,{prefixCls:`${s}-button`,size:a,...m})))},Dx=$D;var RD="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",ID=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,active:i}=e,{getPrefixCls:a}=ue.useContext(B),l=a("skeleton",t),[s,c,p]=$r(l),d=ki(l,`${l}-element`,{[`${l}-active`]:i},o,r,c,p);return s(ue.createElement("div",{className:d},ue.createElement("div",{className:ki(`${l}-image`,o),style:n},ue.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},ue.createElement("title",null,"Image placeholder"),ue.createElement("path",{d:RD,className:`${l}-image-path`})))))},Fx=ID;var MD=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,block:i,size:a="default"}=e,{getPrefixCls:l}=ue.useContext(B),s=l("skeleton",t),[c,p,d]=$r(s),m=fx(e,["prefixCls"]),f=ki(s,`${s}-element`,{[`${s}-active`]:n,[`${s}-block`]:i},o,r,p,d);return c(ue.createElement("div",{className:f},ue.createElement(vi,{prefixCls:`${s}-input`,size:a,...m})))},Ox=MD;var ED=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,active:i,children:a}=e,{getPrefixCls:l}=ue.useContext(B),s=l("skeleton",t),[c,p,d]=$r(s),m=ki(s,`${s}-element`,{[`${s}-active`]:i},p,o,r,d);return c(ue.createElement("div",{className:m},ue.createElement("div",{className:ki(`${s}-image`,o),style:n},a)))},Lx=ED;var BD=(e,t)=>{let{width:o,rows:r=2}=t;if(Array.isArray(o))return o[e];if(r-1===e)return o},DD=e=>{let{prefixCls:t,className:o,style:r,rows:n}=e,i=[...new Array(n)].map((a,l)=>ue.createElement("li",{key:l,style:{width:BD(l,e)}}));return ue.createElement("ul",{className:ki(t,o),style:r},i)},Hx=DD;var FD=({prefixCls:e,className:t,width:o,style:r})=>ue.createElement("h3",{className:ki(e,t),style:{width:o,...r}}),Gx=FD;function ug(e){return e&&typeof e=="object"?e:{}}function zD(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function LD(e,t){return !e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function HD(e,t){let o={};return (!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}var Hl=e=>{let{prefixCls:t,loading:o,className:r,rootClassName:n,style:i,children:a,avatar:l=false,title:s=true,paragraph:c=true,active:p,round:d}=e,{getPrefixCls:m,direction:f,skeleton:u}=ue.useContext(B),g=m("skeleton",t),[y,S,h]=$r(g);if(o||!("loading"in e)){let C=!!l,b=!!s,v=!!c,x;if(C){let R={prefixCls:`${g}-avatar`,...zD(b,v),...ug(l)};x=ue.createElement("div",{className:`${g}-header`},ue.createElement(vi,{...R}));}let T;if(b||v){let R;if(b){let I={prefixCls:`${g}-title`,...LD(C,v),...ug(s)};R=ue.createElement(Gx,{...I});}let P;if(v){let I={prefixCls:`${g}-paragraph`,...HD(C,b),...ug(c)};P=ue.createElement(Hx,{...I});}T=ue.createElement("div",{className:`${g}-content`},R,P);}let $=ki(g,{[`${g}-with-avatar`]:C,[`${g}-active`]:p,[`${g}-rtl`]:f==="rtl",[`${g}-round`]:d},u?.className,r,n,S,h);return y(ue.createElement("div",{className:$,style:{...u?.style,...i}},x,T))}return a??null};Hl.Button=Dx;Hl.Avatar=Bx;Hl.Input=Ox;Hl.Image=Fx;Hl.Node=Lx;var Vx=Hl;var An=Vx;function _x(){}var jx=ue.createContext({add:_x,remove:_x});function rd(e){let t=ue.useContext(jx),o=ue.useRef(null);return Du(n=>{if(n){let i=e?n.querySelector(e):n;t.add(i),o.current=i;}else t.remove(o.current);})}var Ux=jx;var _D=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=useContext(En);return ue__default.createElement(Le,{onClick:o,...e},t)},fg=_D;var qD=()=>{let{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:r,onOk:n}=useContext(En);return ue__default.createElement(Le,{...Ml(o),loading:e,onClick:n,...t},r)},gg=qD;function nd(e,t){return ue__default.createElement("span",{className:`${e}-close-x`},t||ue__default.createElement(Ck,{className:`${e}-close-icon`}))}var id=e=>{let{okText:t,okType:o="primary",cancelText:r,confirmLoading:n,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[p]=Ee("Modal",xp()),d=t||p?.okText,m=r||p?.cancelText,f={confirmLoading:n,okButtonProps:l,cancelButtonProps:s,okTextLocale:d,cancelTextLocale:m,okType:o,onOk:i,onCancel:a},u=ue__default.useMemo(()=>f,[...Object.values(f)]),g;return typeof c=="function"||typeof c>"u"?(g=ue__default.createElement(ue__default.Fragment,null,ue__default.createElement(gg,null),ue__default.createElement(fg,null)),typeof c=="function"&&(g=c(g,{OkBtn:gg,CancelBtn:fg})),g=ue__default.createElement(Zp,{value:u},g)):g=c,ue__default.createElement(Rl,{disabled:false},g)};function qx(e){return {position:e,inset:0}}var yg=e=>{let{componentCls:t,antCls:o}=e;return [{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:{...qx("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...qx("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:da(e)}]},KD=e=>{let{componentCls:t}=e;return [{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${unit(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...ne(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${unit(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:unit(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...St(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${unit(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
84
|
+
`]:{...KO(e)}}}},t5=e=>{let{colorFillContent:t,colorFill:o}=e,r=t,n=o;return {color:r,colorGradientEnd:n,gradientFromColor:r,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Dr=oe("Skeleton",e=>{let{componentCls:t,calc:o}=e,r=mergeToken(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:o(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return [e5(r)]},t5,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var n5=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=ve.useContext(O),s=l("skeleton",t),[c,p,m]=Dr(s),d=vv(e,["prefixCls","className"]),f=Xi(s,`${s}-element`,{[`${s}-active`]:n},o,r,p,m);return c(ve.createElement("div",{className:f},ve.createElement(Li,{prefixCls:`${s}-avatar`,shape:i,size:a,...d})))},Wv=n5;var l5=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,block:i=false,size:a="default"}=e,{getPrefixCls:l}=ve.useContext(O),s=l("skeleton",t),[c,p,m]=Dr(s),d=vv(e,["prefixCls"]),f=Xi(s,`${s}-element`,{[`${s}-active`]:n,[`${s}-block`]:i},o,r,p,m);return c(ve.createElement("div",{className:f},ve.createElement(Li,{prefixCls:`${s}-button`,size:a,...d})))},Gv=l5;var s5="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",c5=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,active:i}=e,{getPrefixCls:a}=ve.useContext(O),l=a("skeleton",t),[s,c,p]=Dr(l),m=Xi(l,`${l}-element`,{[`${l}-active`]:i},o,r,c,p);return s(ve.createElement("div",{className:m},ve.createElement("div",{className:Xi(`${l}-image`,o),style:n},ve.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},ve.createElement("title",null,"Image placeholder"),ve.createElement("path",{d:s5,className:`${l}-image-path`})))))},jv=c5;var m5=e=>{let{prefixCls:t,className:o,rootClassName:r,active:n,block:i,size:a="default"}=e,{getPrefixCls:l}=ve.useContext(O),s=l("skeleton",t),[c,p,m]=Dr(s),d=vv(e,["prefixCls"]),f=Xi(s,`${s}-element`,{[`${s}-active`]:n,[`${s}-block`]:i},o,r,p,m);return c(ve.createElement("div",{className:f},ve.createElement(Li,{prefixCls:`${s}-input`,size:a,...d})))},_v=m5;var u5=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,active:i,children:a}=e,{getPrefixCls:l}=ve.useContext(O),s=l("skeleton",t),[c,p,m]=Dr(s),d=Xi(s,`${s}-element`,{[`${s}-active`]:i},p,o,r,m);return c(ve.createElement("div",{className:d},ve.createElement("div",{className:Xi(`${s}-image`,o),style:n},a)))},qv=u5;var g5=(e,t)=>{let{width:o,rows:r=2}=t;if(Array.isArray(o))return o[e];if(r-1===e)return o},y5=e=>{let{prefixCls:t,className:o,style:r,rows:n}=e,i=[...new Array(n)].map((a,l)=>ve.createElement("li",{key:l,style:{width:g5(l,e)}}));return ve.createElement("ul",{className:Xi(t,o),style:r},i)},Xv=y5;var h5=({prefixCls:e,className:t,width:o,style:r})=>ve.createElement("h3",{className:Xi(e,t),style:{width:o,...r}}),Yv=h5;function iy(e){return e&&typeof e=="object"?e:{}}function S5(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function x5(e,t){return !e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function v5(e,t){let o={};return (!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}var ps=e=>{let{prefixCls:t,loading:o,className:r,rootClassName:n,style:i,children:a,avatar:l=false,title:s=true,paragraph:c=true,active:p,round:m}=e,{getPrefixCls:d,direction:f,skeleton:u}=ve.useContext(O),g=d("skeleton",t),[y,h,b]=Dr(g);if(o||!("loading"in e)){let C=!!l,S=!!s,v=!!c,x;if(C){let T={prefixCls:`${g}-avatar`,...S5(S,v),...iy(l)};x=ve.createElement("div",{className:`${g}-header`},ve.createElement(Li,{...T}));}let $;if(S||v){let T;if(S){let N={prefixCls:`${g}-title`,...x5(C,v),...iy(s)};T=ve.createElement(Yv,{...N});}let P;if(v){let N={prefixCls:`${g}-paragraph`,...v5(C,S),...iy(c)};P=ve.createElement(Xv,{...N});}$=ve.createElement("div",{className:`${g}-content`},T,P);}let R=Xi(g,{[`${g}-with-avatar`]:C,[`${g}-active`]:p,[`${g}-rtl`]:f==="rtl",[`${g}-round`]:m},u?.className,r,n,h,b);return y(ve.createElement("div",{className:R,style:{...u?.style,...i}},x,$))}return a??null};ps.Button=Gv;ps.Avatar=Wv;ps.Input=_v;ps.Image=jv;ps.Node=qv;var Zv=ps;var Xn=Zv;function Qv(){}var Jv=ve.createContext({add:Qv,remove:Qv});function zd(e){let t=ve.useContext(Jv),o=ve.useRef(null);return yf(n=>{if(n){let i=e?n.querySelector(e):n;t.add(i),o.current=i;}else t.remove(o.current);})}var eT=Jv;var R5=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=useContext(jn);return ve__default.createElement(Ge,{onClick:o,...e},t)},ay=R5;var N5=()=>{let{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:r,onOk:n}=useContext(jn);return ve__default.createElement(Ge,{...es(o),loading:e,onClick:n,...t},r)},ly=N5;function Ad(e,t){return ve__default.createElement("span",{className:`${e}-close-x`},t||ve__default.createElement(JD,{className:`${e}-close-icon`}))}var Ld=e=>{let{okText:t,okType:o="primary",cancelText:r,confirmLoading:n,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[p]=Ae("Modal",td()),m=t||p?.okText,d=r||p?.cancelText,f={confirmLoading:n,okButtonProps:l,cancelButtonProps:s,okTextLocale:m,cancelTextLocale:d,okType:o,onOk:i,onCancel:a},u=ve__default.useMemo(()=>f,[...Object.values(f)]),g;return typeof c=="function"||typeof c>"u"?(g=ve__default.createElement(ve__default.Fragment,null,ve__default.createElement(ly,null),ve__default.createElement(ay,null)),typeof c=="function"&&(g=c(g,{OkBtn:ly,CancelBtn:ay})),g=ve__default.createElement(Ed,{value:u},g)):g=c,ve__default.createElement(Yl,{disabled:false},g)};function tT(e){return {position:e,inset:0}}var sy=e=>{let{componentCls:t,antCls:o}=e;return [{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:{...tT("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...tT("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:Na(e)}]},E5=e=>{let{componentCls:t}=e;return [{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${unit(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...ae(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${unit(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:unit(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...$t(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${unit(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
85
85
|
${t}-body,
|
|
86
|
-
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},
|
|
87
|
-
${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Kx=No(["Modal","confirm"],e=>{let t=Cg(e);return [t5(t)]},hg,{order:-1e3});function xg(e){let{prefixCls:t,icon:o,okText:r,cancelText:n,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c,...p}=e,d=o;if(!o&&o!==null)switch(a){case "info":d=ue.createElement(Sk,null);break;case "success":d=ue.createElement(gk,null);break;case "error":d=ue.createElement(yk,null);break;default:d=ue.createElement(hk,null);}let m=l??a==="confirm",f=e.autoFocusButton===null?false:e.autoFocusButton||"ok",[u]=Ee("Modal"),g=c||u,y=r||(m?g?.okText:g?.justOkText),S=n||g?.cancelText,h={autoFocusButton:f,cancelTextLocale:S,okTextLocale:y,mergedOkCancel:m,...p},C=ue.useMemo(()=>h,[...Object.values(h)]),b=ue.createElement(ue.Fragment,null,ue.createElement(ig,null),ue.createElement(ag,null)),v=e.title!==void 0&&e.title!==null,x=`${i}-body`;return ue.createElement("div",{className:`${i}-body-wrapper`},ue.createElement("div",{className:ki(x,{[`${x}-has-title`]:v})},d,ue.createElement("div",{className:`${i}-paragraph`},v&&ue.createElement("span",{className:`${i}-title`},e.title),ue.createElement("div",{className:`${i}-content`},e.content))),s===void 0||typeof s=="function"?ue.createElement(Zp,{value:C},ue.createElement("div",{className:`${i}-btns`},typeof s=="function"?s(b,{OkBtn:ag,CancelBtn:ig}):b)):s,ue.createElement(Kx,{prefixCls:t}))}var a5=e=>{let{close:t,zIndex:o,afterClose:r,open:n,keyboard:i,centered:a,getContainer:l,maskStyle:s,direction:c,prefixCls:p,wrapClassName:d,rootPrefixCls:m,bodyStyle:f,closable:u=false,closeIcon:g,modalRender:y,focusTriggerAfterClose:S,onConfirm:h,styles:C}=e,b=`${p}-confirm`,v=e.width||416,x=e.style||{},T=e.mask===void 0?true:e.mask,$=e.maskClosable===void 0?false:e.maskClosable,R=ki(b,`${b}-${e.type}`,{[`${b}-rtl`]:c==="rtl"},e.className),[,P]=ve(),I=ue.useMemo(()=>o!==void 0?o:P.zIndexPopupBase+ca,[o,P]);return ue.createElement(sd,{prefixCls:p,className:R,wrapClassName:ki({[`${b}-centered`]:!!e.centered},d),onCancel:()=>{t?.({triggerCancel:true}),h?.(false);},open:n,title:"",footer:null,transitionName:Ze(m||"","zoom",e.transitionName),maskTransitionName:Ze(m||"","fade",e.maskTransitionName),mask:T,maskClosable:$,style:x,styles:{body:f,mask:s,...C},width:v,zIndex:I,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:u,closeIcon:g,modalRender:y,focusTriggerAfterClose:S},ue.createElement(xg,{...e,confirmPrefixCls:b}))},l5=e=>{let{rootPrefixCls:t,iconPrefixCls:o,direction:r,theme:n}=e;return ue.createElement(Jo,{prefixCls:t,iconPrefixCls:o,direction:r,theme:n},ue.createElement(a5,{...e}))},cd=l5;var s5=[],an=s5;var Yx="";function Zx(){return Yx}var p5=e=>{let{prefixCls:t,getContainer:o,direction:r}=e,n=xp(),i=useContext(B),a=Zx()||i.getPrefixCls(),l=t||`${a}-modal`,s=o;return s===false&&(s=void 0),ue__default.createElement(cd,{...e,rootPrefixCls:a,prefixCls:l,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:r??i.direction,locale:i.locale?.Modal??n,getContainer:s})};function ua(e){let t=di(),o=document.createDocumentFragment(),r={...e,close:s,open:true},n,i;function a(...p){p.some(m=>m?.triggerCancel)&&e.onCancel?.(()=>{},...p.slice(1));for(let m=0;m<an.length;m++)if(an[m]===s){an.splice(m,1);break}i();}function l(p){clearTimeout(n),n=setTimeout(()=>{let d=t.getPrefixCls(void 0,Zx()),m=t.getIconPrefixCls(),f=t.getTheme(),u=ue__default.createElement(p5,{...p});i=ui()(ue__default.createElement(Jo,{prefixCls:d,iconPrefixCls:m,theme:f},t.holderRender?t.holderRender(u):u),o);});}function s(...p){r={...r,open:false,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,p);}},r.visible&&delete r.visible,l(r);}function c(p){typeof p=="function"?r=p(r):r={...r,...p},l(r);}return l(r),an.push(s),{destroy:s,update:c}}function pd(e){return {...e,type:"warning"}}function dd(e){return {...e,type:"info"}}function md(e){return {...e,type:"success"}}function ud(e){return {...e,type:"error"}}function fd(e){return {...e,type:"confirm"}}function Qx({rootPrefixCls:e}){Yx=e;}var d5=({afterClose:e,config:t,...o},r)=>{let[n,i]=ue.useState(true),[a,l]=ue.useState(t),{direction:s,getPrefixCls:c}=ue.useContext(B),p=c("modal"),d=c(),m=()=>{e(),a.afterClose?.();},f=(...y)=>{i(false),y.some(h=>h?.triggerCancel)&&a.onCancel?.(()=>{},...y.slice(1));};ue.useImperativeHandle(r,()=>({destroy:f,update:y=>{l(S=>({...S,...y}));}}));let u=a.okCancel??a.type==="confirm",[g]=Ee("Modal",tt.Modal);return ue.createElement(cd,{prefixCls:p,rootPrefixCls:d,...a,close:f,open:n,afterClose:m,okText:a.okText||(u?g?.okText:g?.justOkText),direction:a.direction||s,cancelText:a.cancelText||g?.cancelText,...o})},Jx=ue.forwardRef(d5);var eT=0,m5=ue.memo(ue.forwardRef((e,t)=>{let[o,r]=Df();return ue.useImperativeHandle(t,()=>({patchElement:r}),[]),ue.createElement(ue.Fragment,null,o)}));function u5(){let e=ue.useRef(null),[t,o]=ue.useState([]);ue.useEffect(()=>{t.length&&([...t].forEach(a=>{a();}),o([]));},[t]);let r=ue.useCallback(i=>function(l){eT+=1;let s=ue.createRef(),c,p=new Promise(g=>{c=g;}),d=false,m,f=ue.createElement(Jx,{key:`modal-${eT}`,config:i(l),ref:s,afterClose:()=>{m?.();},isSilent:()=>d,onConfirm:g=>{c(g);}});return m=e.current?.patchElement(f),m&&an.push(m),{destroy:()=>{function g(){s.current?.destroy();}s.current?g():o(y=>[...y,g]);},update:g=>{function y(){s.current?.update(g);}s.current?y():o(S=>[...S,y]);},then:g=>(d=true,p.then(g))}},[]);return [ue.useMemo(()=>({info:r(dd),success:r(md),error:r(ud),warning:r(pd),confirm:r(fd)}),[]),ue.createElement(m5,{key:"modal-holder",ref:e})]}var gd=u5;var f5=e=>{let{componentCls:t,notificationMarginEdge:o,animationMaxHeight:r}=e,n=`${t}-notice`,i=new Keyframes("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Keyframes("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Keyframes("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new Keyframes("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[n]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:o,_skip_check_:true},[n]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},tT=f5;var oT=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var g5={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},y5=(e,t)=>{let{componentCls:o}=e;return {[`${o}-${t}`]:{[`&${o}-stack > ${o}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[g5[t]]:{value:0,_skip_check_:true}}}}},C5=e=>{let t={};for(let o=1;o<e.notificationStackLayer;o++)t[`&:nth-last-child(${o+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...t}},h5=e=>{let t={};for(let o=1;o<e.notificationStackLayer;o++)t[`&:nth-last-child(${o+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return {...t}},S5=e=>{let{componentCls:t}=e;return {[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",...C5(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...h5(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...oT.map(o=>y5(e,o)).reduce((o,r)=>({...o,...r}),{})}},rT=S5;var vg=e=>{let{iconCls:t,componentCls:o,boxShadow:r,fontSizeLG:n,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:p,colorTextHeading:d,notificationBg:m,notificationPadding:f,notificationMarginEdge:u,notificationProgressBg:g,notificationProgressHeight:y,fontSize:S,lineHeight:h,width:C,notificationIconSize:b,colorText:v}=e,x=`${o}-notice`;return {position:"relative",marginBottom:i,marginInlineStart:"auto",background:m,borderRadius:a,boxShadow:r,[x]:{padding:f,width:C,maxWidth:`calc(100vw - ${unit(e.calc(u).mul(2).equal())})`,overflow:"hidden",lineHeight:h,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:d,fontSize:n,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:S,color:v},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:n},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:S},[`${x}-icon`]:{position:"absolute",fontSize:b,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:p}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...St(e)},[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${unit(a)} * 2)`,left:{_skip_check_:true,value:a},right:{_skip_check_:true,value:a},bottom:0,blockSize:y,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},x5=e=>{let{componentCls:t,notificationMarginBottom:o,notificationMarginEdge:r,motionDurationMid:n,motionEaseInOut:i}=e,a=`${t}-notice`,l=new Keyframes("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:o},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[t]:{...ne(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:true},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:n,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}}},{[t]:{[`${a}-wrapper`]:{...vg(e)}}}]},Pg=e=>({zIndexPopup:e.zIndexPopupBase+ca+50,width:384}),$g=e=>{let t=e.paddingMD,o=e.paddingLG;return mergeToken(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},hd=te("Notification",e=>{let t=$g(e);return [x5(t),tT(t),rT(t)]},Pg);var nT=No(["Notification","PurePanel"],e=>{let t=`${e.componentCls}-notice`,o=$g(e);return {[`${t}-pure-panel`]:{...vg(o),width:o.width,maxWidth:`calc(100vw - ${unit(e.calc(o.notificationMarginEdge).mul(2).equal())})`,margin:0}}},Pg);function bd(e,t){return t===null||t===false?null:t||ue.createElement(Ck,{className:`${e}-close-icon`})}var N5={success:gk,info:Sk,error:yk,warning:hk},Rg=e=>{let{prefixCls:t,icon:o,type:r,message:n,description:i,btn:a,role:l="alert"}=e,s=null;return o?s=ue.createElement("span",{className:`${t}-icon`},o):r&&(s=ue.createElement(N5[r]||null,{className:ki(`${t}-icon`,`${t}-icon-${r}`)})),ue.createElement("div",{className:ki({[`${t}-with-icon`]:s}),role:l},s,ue.createElement("div",{className:`${t}-message`},n),ue.createElement("div",{className:`${t}-description`},i),a&&ue.createElement("div",{className:`${t}-btn`},a))},M5=e=>{let{prefixCls:t,className:o,icon:r,type:n,message:i,description:a,btn:l,closable:s=true,closeIcon:c,className:p,...d}=e,{getPrefixCls:m}=ue.useContext(B),f=t||m("notification"),u=`${f}-notice`,g=de(f),[y,S,h]=hd(f,g);return y(ue.createElement("div",{className:ki(`${u}-pure-panel`,S,o,h,g)},ue.createElement(nT,{prefixCls:f}),ue.createElement(Notice,{...d,prefixCls:f,eventKey:"pure",duration:null,closable:s,className:ki({notificationClassName:p}),closeIcon:bd(f,c),content:ue.createElement(Rg,{prefixCls:u,icon:r,type:n,message:i,description:a,btn:l})})))},iT=M5;function aT(e,t,o){let r;switch(e){case "top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case "topLeft":r={left:0,top:t,bottom:"auto"};break;case "topRight":r={right:0,top:t,bottom:"auto"};break;case "bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:o};break;case "bottomLeft":r={left:0,top:"auto",bottom:o};break;default:r={right:0,top:"auto",bottom:o};break}return r}function lT(e){return {motionName:`${e}-fade`}}var sT=24,D5=4.5,A5="topRight",F5=({children:e,prefixCls:t})=>{let o=de(t),[r,n,i]=hd(t,o);return r(ue__default.createElement(NotificationProvider,{classNames:{list:ki(n,i,o)}},e))},O5=(e,{prefixCls:t,key:o})=>ue__default.createElement(F5,{prefixCls:t,key:o},e),z5=ue__default.forwardRef((e,t)=>{let{top:o,bottom:r,prefixCls:n,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:c,duration:p,pauseOnHover:d=true,showProgress:m}=e,{getPrefixCls:f,getPopupContainer:u,notification:g,direction:y}=useContext(B),[,S]=ve(),h=n||f("notification"),C=$=>aT($,o??sT,r??sT),b=()=>ki({[`${h}-rtl`]:l??y==="rtl"}),v=()=>lT(h),[x,T]=useNotification({prefixCls:h,style:C,className:b,motion:v,closable:true,closeIcon:bd(h),duration:p??D5,getContainer:()=>i?.()||u?.()||document.body,maxCount:a,pauseOnHover:d,showProgress:m,onAllRemoved:s,renderNotifications:O5,stack:c===false?false:{threshold:typeof c=="object"?c?.threshold:void 0,offset:8,gap:S.margin}});return ue__default.useImperativeHandle(t,()=>({...x,prefixCls:h,notification:g})),T});function wg(e){let t=ue__default.useRef(null);ht();return [ue__default.useMemo(()=>{let n=s=>{if(!t.current){return}let{open:c,prefixCls:p,notification:d}=t.current,m=`${p}-notice`,{message:f,description:u,icon:g,type:y,btn:S,className:h,style:C,role:b="alert",closeIcon:v,closable:x,...T}=s,$=bd(m,typeof v<"u"?v:d?.closeIcon);return c({placement:e?.placement??A5,...T,content:ue__default.createElement(Rg,{prefixCls:m,icon:g,type:y,message:f,description:u,btn:S,role:b}),className:ki(y&&`${m}-${y}`,h,d?.className),style:{...d?.style,...C},closeIcon:$,closable:x??!!$})},a={open:n,destroy:s=>{s!==void 0?t.current?.close(s):t.current?.destroy();}};return ["success","info","warning","error"].forEach(s=>{a[s]=c=>n({...c,type:s});}),a},[]),ue__default.createElement(z5,{key:"notification-holder",...e,ref:t})]}function ac(e){return wg(e)}var fa=ue__default.createContext({}),L5=ue__default.createContext({message:{},notification:{},modal:{}}),Ng=L5;var H5=e=>{let{componentCls:t,colorText:o,fontSize:r,lineHeight:n,fontFamily:i}=e;return {[t]:{color:o,fontSize:r,lineHeight:n,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},W5=()=>({}),pT=te("App",H5,W5);var V5=()=>ue__default.useContext(Ng),mT=e=>{let{prefixCls:t,children:o,className:r,rootClassName:n,message:i,notification:a,style:l,component:s="div"}=e,{direction:c,getPrefixCls:p}=useContext(B),d=p("app",t),[m,f,u]=pT(d),g=ki(f,d,r,n,u,{[`${d}-rtl`]:c==="rtl"}),y=useContext(fa),S=ue__default.useMemo(()=>({message:{...y.message,...i},notification:{...y.notification,...a}}),[i,a,y.message,y.notification]),[h,C]=Zs(S.message),[b,v]=ac(S.notification),[x,T]=gd(),$=ue__default.useMemo(()=>({message:h,notification:b,modal:x}),[h,b,x]);ht()(!(u&&s===false),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");let R=s===false?ue__default.Fragment:s,P={className:g,style:l};return m(ue__default.createElement(Ng.Provider,{value:$},ue__default.createElement(fa.Provider,{value:S},ue__default.createElement(R,{...s===false?void 0:P},T,C,v,o))))};mT.useApp=V5;var _5=mT;function lc(e){return t=>ue.createElement(Jo,{theme:{token:{motion:false,zIndexPopupBase:0}}},ue.createElement(e,{...t}))}var U5=(e,t,o,r,n)=>lc(a=>{let{prefixCls:l,style:s}=a,c=ue.useRef(null),[p,d]=ue.useState(0),[m,f]=ue.useState(0),[u,g]=e0(false,{value:a.open}),{getPrefixCls:y}=ue.useContext(B),S=y(r||"select",l);ue.useEffect(()=>{if(g(true),typeof ResizeObserver<"u"){let b=new ResizeObserver(x=>{let T=x[0].target;d(T.offsetHeight+8),f(T.offsetWidth);}),v=setInterval(()=>{let x=n?`.${n(S)}`:`.${S}-dropdown`,T=c.current?.querySelector(x);T&&(clearInterval(v),b.observe(T));},10);return ()=>{clearInterval(v),b.disconnect();}}},[]);let h={...a,style:{...s,margin:0},open:u,visible:u,getPopupContainer:()=>c.current};return o&&(h=o(h)),t&&Object.assign(h,{[t]:{overflow:{adjustX:false,adjustY:false}}}),ue.createElement("div",{ref:c,style:{paddingBottom:p,position:"relative",minWidth:m}},ue.createElement(e,{...h}))}),Wt=U5;function yt(e,t,o){return ki({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:o})}var Rt=(e,t)=>t||e;var K5=()=>{let[,e]=ve(),[t]=Ee("Empty"),r=new TinyColor(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ue.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ue.createElement("title",null,t?.description||"Empty"),ue.createElement("g",{fill:"none",fillRule:"evenodd"},ue.createElement("g",{transform:"translate(24 31.67)"},ue.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ue.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),ue.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),ue.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),ue.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),ue.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),ue.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ue.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ue.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},uT=K5;var Z5=()=>{let[,e]=ve(),[t]=Ee("Empty"),{colorFill:o,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:s}=useMemo(()=>({borderColor:new TinyColor(o).onBackground(i).toHexShortString(),shadowColor:new TinyColor(r).onBackground(i).toHexShortString(),contentColor:new TinyColor(n).onBackground(i).toHexShortString()}),[o,r,n,i]);return ue.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ue.createElement("title",null,t?.description||"Empty"),ue.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ue.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),ue.createElement("g",{fillRule:"nonzero",stroke:a},ue.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),ue.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},fT=Z5;var Q5=e=>{let{componentCls:t,margin:o,marginXS:r,marginXL:n,fontSize:i,lineHeight:a}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:n,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},gT=te("Empty",e=>{let{componentCls:t,controlHeightLG:o,calc:r}=e,n=mergeToken(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:r(o).mul(.875).equal()});return [Q5(n)]});var yT=ue.createElement(uT,null),CT=ue.createElement(fT,null),Eg=({className:e,rootClassName:t,prefixCls:o,image:r=yT,description:n,children:i,imageStyle:a,style:l,...s})=>{let{getPrefixCls:c,direction:p,empty:d}=ue.useContext(B),m=c("empty",o),[f,u,g]=gT(m),[y]=Ee("Empty"),S=typeof n<"u"?n:y?.description,h=typeof S=="string"?S:"empty",C=null;return typeof r=="string"?C=ue.createElement("img",{alt:h,src:r}):C=r,f(ue.createElement("div",{className:ki(u,g,m,d?.className,{[`${m}-normal`]:r===CT,[`${m}-rtl`]:p==="rtl"},e,t),style:{...d?.style,...l},...s},ue.createElement("div",{className:`${m}-image`,style:a},C),S&&ue.createElement("div",{className:`${m}-description`},S),i&&ue.createElement("div",{className:`${m}-footer`},i)))};Eg.PRESENTED_IMAGE_DEFAULT=yT;Eg.PRESENTED_IMAGE_SIMPLE=CT;var sn=Eg;var t3=e=>{let{componentName:t}=e,{getPrefixCls:o}=useContext(B),r=o("empty");switch(t){case "Table":case "List":return ue__default.createElement(sn,{image:sn.PRESENTED_IMAGE_SIMPLE});case "Select":case "TreeSelect":case "Cascader":case "Transfer":case "Mentions":return ue__default.createElement(sn,{image:sn.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case "Table.filter":return null;default:return ue__default.createElement(sn,null)}},ho=t3;var o3=(e,t,o=void 0)=>{let{variant:r,[e]:n}=ue.useContext(B),i=ue.useContext(ed),a=n?.variant,l;typeof t<"u"?l=t:o===false?l="borderless":l=i??a??r??"outlined";let s=uf.includes(l);return [l,s]},Ot=o3;var r3=e=>{let o={overflow:{adjustX:true,adjustY:true,shiftY:true},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:true};return {bottomLeft:{...o,points:["tl","bl"],offset:[0,4]},bottomRight:{...o,points:["tr","br"],offset:[0,4]},topLeft:{...o,points:["bl","tl"],offset:[0,-4]},topRight:{...o,points:["br","tr"],offset:[0,-4]}}};function n3(e,t){return e||r3(t)}var Gl=n3;var hT=e=>{let{optionHeight:t,optionFontSize:o,optionLineHeight:r,optionPadding:n}=e;return {position:"relative",display:"block",minHeight:t,padding:n,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:r,boxSizing:"border-box"}},i3=e=>{let{antCls:t,componentCls:o}=e,r=`${o}-item`,n=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${o}-dropdown-placement-`;return [{[`${o}-dropdown`]:{...ne(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
86
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},k5=e=>{let{componentCls:t}=e;return {[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},cy=e=>{let t=e.padding,o=e.fontSizeHeading5,r=e.lineHeightHeading5;return mergeToken(e,{modalHeaderHeight:e.calc(e.calc(r).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},py=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${unit(e.padding)} ${unit(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${unit(e.paddingXS)} ${unit(e.padding)}`:0,footerBorderTop:e.wireframe?`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${unit(e.padding*2)} ${unit(e.padding*2)} ${unit(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Hd=oe("Modal",e=>{let t=cy(e);return [E5(t),k5(t),sy(t),sr(t,"zoom")]},py,{unitless:{titleLineHeight:true}});var dy,O5=e=>{dy={x:e.pageX,y:e.pageY},setTimeout(()=>{dy=null;},100);};Lv()&&document.documentElement.addEventListener("click",O5,true);var F5=e=>{let{getPopupContainer:t,getPrefixCls:o,direction:r,modal:n}=ve.useContext(O),i=q=>{let{onCancel:V}=e;V?.(q);},a=q=>{let{onOk:V}=e;V?.(q);},{prefixCls:l,className:s,rootClassName:c,open:p,wrapClassName:m,centered:d,getContainer:f,focusTriggerAfterClose:u=true,style:g,visible:y,width:h=520,footer:b,classNames:C,styles:S,children:v,loading:x,...$}=e,R=o("modal",l),T=o(),P=$e(R),[N,M,E]=Hd(R,P),I=Xi(m,{[`${R}-centered`]:!!d,[`${R}-wrap-rtl`]:r==="rtl"}),w=b!==null&&!x?ve.createElement(Ld,{...e,onOk:a,onCancel:i}):null,[B,k,D]=Un(_n(e),_n(n),{closable:true,closeIcon:ve.createElement(JD,{className:`${R}-close-icon`}),closeIconRender:q=>Ad(R,q)}),F=zd(`.${R}-content`),[A,L]=dt("Modal",$.zIndex);return N(ve.createElement(Gt,{form:true,space:true},ve.createElement(Nr.Provider,{value:L},ve.createElement(B5,{width:h,...$,zIndex:A,getContainer:f===void 0?t:f,prefixCls:R,rootClassName:Xi(M,c,E,P),footer:w,visible:p??y,mousePosition:$.mousePosition??dy,onClose:i,closable:B&&{disabled:D,closeIcon:k},closeIcon:k,focusTriggerAfterClose:u,transitionName:it(T,"zoom",e.transitionName),maskTransitionName:it(T,"fade",e.maskTransitionName),className:Xi(M,s,n?.className),style:{...n?.style,...g},classNames:{...n?.classNames,...C,wrapper:Xi(I,C?.wrapper)},styles:{...n?.styles,...S},panelRef:F},x?ve.createElement(Xn,{active:true,title:false,paragraph:{rows:4},className:`${R}-body-skeleton`}):v))))},Gd=F5;var z5=e=>{let{componentCls:t,titleFontSize:o,titleLineHeight:r,modalConfirmIconSize:n,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,p=`${t}-confirm`;return {[p]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${p}-body-wrapper`]:{...no()},[`&${t} ${t}-body`]:{padding:c},[`${p}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:n,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(n).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(n).equal()).div(2).equal()}},[`${p}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${unit(e.marginSM)})`},[`${e.iconCls} + ${p}-paragraph`]:{maxWidth:`calc(100% - ${unit(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${p}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:r},[`${p}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${p}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${p}-error ${p}-body > ${e.iconCls}`]:{color:e.colorError},[`${p}-warning ${p}-body > ${e.iconCls},
|
|
87
|
+
${p}-confirm ${p}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${p}-info ${p}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${p}-success ${p}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},rT=zo(["Modal","confirm"],e=>{let t=cy(e);return [z5(t)]},py,{order:-1e3});function uy(e){let{prefixCls:t,icon:o,okText:r,cancelText:n,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c,...p}=e,m=o;if(!o&&o!==null)switch(a){case "info":m=ve.createElement(tB,null);break;case "success":m=ve.createElement(ZD,null);break;case "error":m=ve.createElement(QD,null);break;default:m=ve.createElement(eB,null);}let d=l??a==="confirm",f=e.autoFocusButton===null?false:e.autoFocusButton||"ok",[u]=Ae("Modal"),g=c||u,y=r||(d?g?.okText:g?.justOkText),h=n||g?.cancelText,b={autoFocusButton:f,cancelTextLocale:h,okTextLocale:y,mergedOkCancel:d,...p},C=ve.useMemo(()=>b,[...Object.values(b)]),S=ve.createElement(ve.Fragment,null,ve.createElement(Zg,null),ve.createElement(Qg,null)),v=e.title!==void 0&&e.title!==null,x=`${i}-body`;return ve.createElement("div",{className:`${i}-body-wrapper`},ve.createElement("div",{className:Xi(x,{[`${x}-has-title`]:v})},m,ve.createElement("div",{className:`${i}-paragraph`},v&&ve.createElement("span",{className:`${i}-title`},e.title),ve.createElement("div",{className:`${i}-content`},e.content))),s===void 0||typeof s=="function"?ve.createElement(Ed,{value:C},ve.createElement("div",{className:`${i}-btns`},typeof s=="function"?s(S,{OkBtn:Qg,CancelBtn:Zg}):S)):s,ve.createElement(rT,{prefixCls:t}))}var G5=e=>{let{close:t,zIndex:o,afterClose:r,open:n,keyboard:i,centered:a,getContainer:l,maskStyle:s,direction:c,prefixCls:p,wrapClassName:m,rootPrefixCls:d,bodyStyle:f,closable:u=false,closeIcon:g,modalRender:y,focusTriggerAfterClose:h,onConfirm:b,styles:C}=e,S=`${p}-confirm`,v=e.width||416,x=e.style||{},$=e.mask===void 0?true:e.mask,R=e.maskClosable===void 0?false:e.maskClosable,T=Xi(S,`${S}-${e.type}`,{[`${S}-rtl`]:c==="rtl"},e.className),[,P]=De(),N=ve.useMemo(()=>o!==void 0?o:P.zIndexPopupBase+Ia,[o,P]);return ve.createElement(Gd,{prefixCls:p,className:T,wrapClassName:Xi({[`${S}-centered`]:!!e.centered},m),onCancel:()=>{t?.({triggerCancel:true}),b?.(false);},open:n,title:"",footer:null,transitionName:it(d||"","zoom",e.transitionName),maskTransitionName:it(d||"","fade",e.maskTransitionName),mask:$,maskClosable:R,style:x,styles:{body:f,mask:s,...C},width:v,zIndex:N,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:u,closeIcon:g,modalRender:y,focusTriggerAfterClose:h},ve.createElement(uy,{...e,confirmPrefixCls:S}))},V5=e=>{let{rootPrefixCls:t,iconPrefixCls:o,direction:r,theme:n}=e;return ve.createElement(lr,{prefixCls:t,iconPrefixCls:o,direction:r,theme:n},ve.createElement(G5,{...e}))},Vd=V5;var j5=[],yn=j5;var nT="";function iT(){return nT}var U5=e=>{let{prefixCls:t,getContainer:o,direction:r}=e,n=td(),i=useContext(O),a=iT()||i.getPrefixCls(),l=t||`${a}-modal`,s=o;return s===false&&(s=void 0),ve__default.createElement(Vd,{...e,rootPrefixCls:a,prefixCls:l,iconPrefixCls:i.iconPrefixCls,theme:i.theme,direction:r??i.direction,locale:i.locale?.Modal??n,getContainer:s})};function Ea(e){let t=Ii(),o=document.createDocumentFragment(),r={...e,close:s,open:true},n,i;function a(...p){p.some(d=>d?.triggerCancel)&&e.onCancel?.(()=>{},...p.slice(1));for(let d=0;d<yn.length;d++)if(yn[d]===s){yn.splice(d,1);break}i();}function l(p){clearTimeout(n),n=setTimeout(()=>{let m=t.getPrefixCls(void 0,iT()),d=t.getIconPrefixCls(),f=t.getTheme(),u=ve__default.createElement(U5,{...p});i=Ni()(ve__default.createElement(lr,{prefixCls:m,iconPrefixCls:d,theme:f},t.holderRender?t.holderRender(u):u),o);});}function s(...p){r={...r,open:false,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,p);}},r.visible&&delete r.visible,l(r);}function c(p){typeof p=="function"?r=p(r):r={...r,...p},l(r);}return l(r),yn.push(s),{destroy:s,update:c}}function jd(e){return {...e,type:"warning"}}function _d(e){return {...e,type:"info"}}function Ud(e){return {...e,type:"success"}}function qd(e){return {...e,type:"error"}}function Xd(e){return {...e,type:"confirm"}}function aT({rootPrefixCls:e}){nT=e;}var q5=({afterClose:e,config:t,...o},r)=>{let[n,i]=ve.useState(true),[a,l]=ve.useState(t),{direction:s,getPrefixCls:c}=ve.useContext(O),p=c("modal"),m=c(),d=()=>{e(),a.afterClose?.();},f=(...y)=>{i(false),y.some(b=>b?.triggerCancel)&&a.onCancel?.(()=>{},...y.slice(1));};ve.useImperativeHandle(r,()=>({destroy:f,update:y=>{l(h=>({...h,...y}));}}));let u=a.okCancel??a.type==="confirm",[g]=Ae("Modal",ct.Modal);return ve.createElement(Vd,{prefixCls:p,rootPrefixCls:m,...a,close:f,open:n,afterClose:d,okText:a.okText||(u?g?.okText:g?.justOkText),direction:a.direction||s,cancelText:a.cancelText||g?.cancelText,...o})},lT=ve.forwardRef(q5);var sT=0,X5=ve.memo(ve.forwardRef((e,t)=>{let[o,r]=Rg();return ve.useImperativeHandle(t,()=>({patchElement:r}),[]),ve.createElement(ve.Fragment,null,o)}));function K5(){let e=ve.useRef(null),[t,o]=ve.useState([]);ve.useEffect(()=>{t.length&&([...t].forEach(a=>{a();}),o([]));},[t]);let r=ve.useCallback(i=>function(l){sT+=1;let s=ve.createRef(),c,p=new Promise(g=>{c=g;}),m=false,d,f=ve.createElement(lT,{key:`modal-${sT}`,config:i(l),ref:s,afterClose:()=>{d?.();},isSilent:()=>m,onConfirm:g=>{c(g);}});return d=e.current?.patchElement(f),d&&yn.push(d),{destroy:()=>{function g(){s.current?.destroy();}s.current?g():o(y=>[...y,g]);},update:g=>{function y(){s.current?.update(g);}s.current?y():o(h=>[...h,y]);},then:g=>(m=true,p.then(g))}},[]);return [ve.useMemo(()=>({info:r(_d),success:r(Ud),error:r(qd),warning:r(jd),confirm:r(Xd)}),[]),ve.createElement(X5,{key:"modal-holder",ref:e})]}var Kd=K5;var Y5=e=>{let{componentCls:t,notificationMarginEdge:o,animationMaxHeight:r}=e,n=`${t}-notice`,i=new Keyframes("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Keyframes("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new Keyframes("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new Keyframes("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return {[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[n]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:true},marginLeft:{value:o,_skip_check_:true},[n]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},cT=Y5;var pT=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var Z5={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Q5=(e,t)=>{let{componentCls:o}=e;return {[`${o}-${t}`]:{[`&${o}-stack > ${o}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[Z5[t]]:{value:0,_skip_check_:true}}}}},J5=e=>{let t={};for(let o=1;o<e.notificationStackLayer;o++)t[`&:nth-last-child(${o+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return {[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"},...t}},e3=e=>{let t={};for(let o=1;o<e.notificationStackLayer;o++)t[`&:nth-last-child(${o+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return {...t}},t3=e=>{let{componentCls:t}=e;return {[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute",...J5(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...e3(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}},...pT.map(o=>Q5(e,o)).reduce((o,r)=>({...o,...r}),{})}},dT=t3;var gy=e=>{let{iconCls:t,componentCls:o,boxShadow:r,fontSizeLG:n,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:p,colorTextHeading:m,notificationBg:d,notificationPadding:f,notificationMarginEdge:u,notificationProgressBg:g,notificationProgressHeight:y,fontSize:h,lineHeight:b,width:C,notificationIconSize:S,colorText:v}=e,x=`${o}-notice`;return {position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[x]:{padding:f,width:C,maxWidth:`calc(100vw - ${unit(e.calc(u).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${x}-message`]:{marginBottom:e.marginXS,color:m,fontSize:n,lineHeight:e.lineHeightLG},[`${x}-description`]:{fontSize:h,color:v},[`${x}-closable ${x}-message`]:{paddingInlineEnd:e.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:n},[`${x}-with-icon ${x}-description`]:{marginInlineStart:e.calc(e.marginSM).add(S).equal(),fontSize:h},[`${x}-icon`]:{position:"absolute",fontSize:S,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:p}},[`${x}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...$t(e)},[`${x}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${unit(a)} * 2)`,left:{_skip_check_:true,value:a},right:{_skip_check_:true,value:a},bottom:0,blockSize:y,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${x}-btn`]:{float:"right",marginTop:e.marginSM}}},r3=e=>{let{componentCls:t,notificationMarginBottom:o,notificationMarginEdge:r,motionDurationMid:n,motionEaseInOut:i}=e,a=`${t}-notice`,l=new Keyframes("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:o},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return [{[t]:{...ae(e),position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:true},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:n,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}}},{[t]:{[`${a}-wrapper`]:{...gy(e)}}}]},yy=e=>({zIndexPopup:e.zIndexPopupBase+Ia+50,width:384}),Cy=e=>{let t=e.paddingMD,o=e.paddingLG;return mergeToken(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${unit(e.paddingMD)} ${unit(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Qd=oe("Notification",e=>{let t=Cy(e);return [r3(t),cT(t),dT(t)]},yy);var mT=zo(["Notification","PurePanel"],e=>{let t=`${e.componentCls}-notice`,o=Cy(e);return {[`${t}-pure-panel`]:{...gy(o),width:o.width,maxWidth:`calc(100vw - ${unit(e.calc(o.notificationMarginEdge).mul(2).equal())})`,margin:0}}},yy);function em(e,t){return t===null||t===false?null:t||ve.createElement(JD,{className:`${e}-close-icon`})}var d3={success:ZD,info:tB,error:QD,warning:eB},hy=e=>{let{prefixCls:t,icon:o,type:r,message:n,description:i,btn:a,role:l="alert"}=e,s=null;return o?s=ve.createElement("span",{className:`${t}-icon`},o):r&&(s=ve.createElement(d3[r]||null,{className:Xi(`${t}-icon`,`${t}-icon-${r}`)})),ve.createElement("div",{className:Xi({[`${t}-with-icon`]:s}),role:l},s,ve.createElement("div",{className:`${t}-message`},n),ve.createElement("div",{className:`${t}-description`},i),a&&ve.createElement("div",{className:`${t}-btn`},a))},m3=e=>{let{prefixCls:t,className:o,icon:r,type:n,message:i,description:a,btn:l,closable:s=true,closeIcon:c,className:p,...m}=e,{getPrefixCls:d}=ve.useContext(O),f=t||d("notification"),u=`${f}-notice`,g=$e(f),[y,h,b]=Qd(f,g);return y(ve.createElement("div",{className:Xi(`${u}-pure-panel`,h,o,b,g)},ve.createElement(mT,{prefixCls:f}),ve.createElement(Notice,{...m,prefixCls:f,eventKey:"pure",duration:null,closable:s,className:Xi({notificationClassName:p}),closeIcon:em(f,c),content:ve.createElement(hy,{prefixCls:u,icon:r,type:n,message:i,description:a,btn:l})})))},uT=m3;function fT(e,t,o){let r;switch(e){case "top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case "topLeft":r={left:0,top:t,bottom:"auto"};break;case "topRight":r={right:0,top:t,bottom:"auto"};break;case "bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:o};break;case "bottomLeft":r={left:0,top:"auto",bottom:o};break;default:r={right:0,top:"auto",bottom:o};break}return r}function gT(e){return {motionName:`${e}-fade`}}var yT=24,y3=4.5,C3="topRight",h3=({children:e,prefixCls:t})=>{let o=$e(t),[r,n,i]=Qd(t,o);return r(ve__default.createElement(NotificationProvider,{classNames:{list:Xi(n,i,o)}},e))},b3=(e,{prefixCls:t,key:o})=>ve__default.createElement(h3,{prefixCls:t,key:o},e),S3=ve__default.forwardRef((e,t)=>{let{top:o,bottom:r,prefixCls:n,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:c,duration:p,pauseOnHover:m=true,showProgress:d}=e,{getPrefixCls:f,getPopupContainer:u,notification:g,direction:y}=useContext(O),[,h]=De(),b=n||f("notification"),C=R=>fT(R,o??yT,r??yT),S=()=>Xi({[`${b}-rtl`]:l??y==="rtl"}),v=()=>gT(b),[x,$]=useNotification({prefixCls:b,style:C,className:S,motion:v,closable:true,closeIcon:em(b),duration:p??y3,getContainer:()=>i?.()||u?.()||document.body,maxCount:a,pauseOnHover:m,showProgress:d,onAllRemoved:s,renderNotifications:b3,stack:c===false?false:{threshold:typeof c=="object"?c?.threshold:void 0,offset:8,gap:h.margin}});return ve__default.useImperativeHandle(t,()=>({...x,prefixCls:b,notification:g})),$});function Sy(e){let t=ve__default.useRef(null);Tt();return [ve__default.useMemo(()=>{let n=s=>{if(!t.current){return}let{open:c,prefixCls:p,notification:m}=t.current,d=`${p}-notice`,{message:f,description:u,icon:g,type:y,btn:h,className:b,style:C,role:S="alert",closeIcon:v,closable:x,...$}=s,R=em(d,typeof v<"u"?v:m?.closeIcon);return c({placement:e?.placement??C3,...$,content:ve__default.createElement(hy,{prefixCls:d,icon:g,type:y,message:f,description:u,btn:h,role:S}),className:Xi(y&&`${d}-${y}`,b,m?.className),style:{...m?.style,...C},closeIcon:R,closable:x??!!R})},a={open:n,destroy:s=>{s!==void 0?t.current?.close(s):t.current?.destroy();}};return ["success","info","warning","error"].forEach(s=>{a[s]=c=>n({...c,type:s});}),a},[]),ve__default.createElement(S3,{key:"notification-holder",...e,ref:t})]}function kc(e){return Sy(e)}var ka=ve__default.createContext({}),x3=ve__default.createContext({message:{},notification:{},modal:{}}),xy=x3;var v3=e=>{let{componentCls:t,colorText:o,fontSize:r,lineHeight:n,fontFamily:i}=e;return {[t]:{color:o,fontSize:r,lineHeight:n,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},T3=()=>({}),hT=oe("App",v3,T3);var P3=()=>ve__default.useContext(xy),ST=e=>{let{prefixCls:t,children:o,className:r,rootClassName:n,message:i,notification:a,style:l,component:s="div"}=e,{direction:c,getPrefixCls:p}=useContext(O),m=p("app",t),[d,f,u]=hT(m),g=Xi(f,m,r,n,u,{[`${m}-rtl`]:c==="rtl"}),y=useContext(ka),h=ve__default.useMemo(()=>({message:{...y.message,...i},notification:{...y.notification,...a}}),[i,a,y.message,y.notification]),[b,C]=Tc(h.message),[S,v]=kc(h.notification),[x,$]=Kd(),R=ve__default.useMemo(()=>({message:b,notification:S,modal:x}),[b,S,x]);Tt()(!(u&&s===false),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");let T=s===false?ve__default.Fragment:s,P={className:g,style:l};return d(ve__default.createElement(xy.Provider,{value:R},ve__default.createElement(ka.Provider,{value:h},ve__default.createElement(T,{...s===false?void 0:P},$,C,v,o))))};ST.useApp=P3;var R3=ST;function Dc(e){return t=>ve.createElement(lr,{theme:{token:{motion:false,zIndexPopupBase:0}}},ve.createElement(e,{...t}))}var w3=(e,t,o,r,n)=>Dc(a=>{let{prefixCls:l,style:s}=a,c=ve.useRef(null),[p,m]=ve.useState(0),[d,f]=ve.useState(0),[u,g]=s$(false,{value:a.open}),{getPrefixCls:y}=ve.useContext(O),h=y(r||"select",l);ve.useEffect(()=>{if(g(true),typeof ResizeObserver<"u"){let S=new ResizeObserver(x=>{let $=x[0].target;m($.offsetHeight+8),f($.offsetWidth);}),v=setInterval(()=>{let x=n?`.${n(h)}`:`.${h}-dropdown`,$=c.current?.querySelector(x);$&&(clearInterval(v),S.observe($));},10);return ()=>{clearInterval(v),S.disconnect();}}},[]);let b={...a,style:{...s,margin:0},open:u,visible:u,getPopupContainer:()=>c.current};return o&&(b=o(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:false,adjustY:false}}}),ve.createElement("div",{ref:c,style:{paddingBottom:p,position:"relative",minWidth:d}},ve.createElement(e,{...b}))}),Xt=w3;function xt(e,t,o){return Xi({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:o})}var Et=(e,t)=>t||e;var E3=()=>{let[,e]=De(),[t]=Ae("Empty"),r=new TinyColor(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ve.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ve.createElement("title",null,t?.description||"Empty"),ve.createElement("g",{fill:"none",fillRule:"evenodd"},ve.createElement("g",{transform:"translate(24 31.67)"},ve.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ve.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),ve.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),ve.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),ve.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),ve.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),ve.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ve.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ve.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},xT=E3;var D3=()=>{let[,e]=De(),[t]=Ae("Empty"),{colorFill:o,colorFillTertiary:r,colorFillQuaternary:n,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:s}=useMemo(()=>({borderColor:new TinyColor(o).onBackground(i).toHexShortString(),shadowColor:new TinyColor(r).onBackground(i).toHexShortString(),contentColor:new TinyColor(n).onBackground(i).toHexShortString()}),[o,r,n,i]);return ve.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ve.createElement("title",null,t?.description||"Empty"),ve.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ve.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),ve.createElement("g",{fillRule:"nonzero",stroke:a},ve.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),ve.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},vT=D3;var B3=e=>{let{componentCls:t,margin:o,marginXS:r,marginXL:n,fontSize:i,lineHeight:a}=e;return {[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:o},"&-normal":{marginBlock:n,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},TT=oe("Empty",e=>{let{componentCls:t,controlHeightLG:o,calc:r}=e,n=mergeToken(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:r(o).mul(.875).equal()});return [B3(n)]});var $T=ve.createElement(xT,null),PT=ve.createElement(vT,null),Ty=({className:e,rootClassName:t,prefixCls:o,image:r=$T,description:n,children:i,imageStyle:a,style:l,...s})=>{let{getPrefixCls:c,direction:p,empty:m}=ve.useContext(O),d=c("empty",o),[f,u,g]=TT(d),[y]=Ae("Empty"),h=typeof n<"u"?n:y?.description,b=typeof h=="string"?h:"empty",C=null;return typeof r=="string"?C=ve.createElement("img",{alt:b,src:r}):C=r,f(ve.createElement("div",{className:Xi(u,g,d,m?.className,{[`${d}-normal`]:r===PT,[`${d}-rtl`]:p==="rtl"},e,t),style:{...m?.style,...l},...s},ve.createElement("div",{className:`${d}-image`,style:a},C),h&&ve.createElement("div",{className:`${d}-description`},h),i&&ve.createElement("div",{className:`${d}-footer`},i)))};Ty.PRESENTED_IMAGE_DEFAULT=$T;Ty.PRESENTED_IMAGE_SIMPLE=PT;var hn=Ty;var z3=e=>{let{componentName:t}=e,{getPrefixCls:o}=useContext(O),r=o("empty");switch(t){case "Table":case "List":return ve__default.createElement(hn,{image:hn.PRESENTED_IMAGE_SIMPLE});case "Select":case "TreeSelect":case "Cascader":case "Transfer":case "Mentions":return ve__default.createElement(hn,{image:hn.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case "Table.filter":return null;default:return ve__default.createElement(hn,null)}},Po=z3;var A3=(e,t,o=void 0)=>{let{variant:r,[e]:n}=ve.useContext(O),i=ve.useContext(Bd),a=n?.variant,l;typeof t<"u"?l=t:o===false?l="borderless":l=i??a??r??"outlined";let s=ig.includes(l);return [l,s]},Vt=A3;var L3=e=>{let o={overflow:{adjustX:true,adjustY:true,shiftY:true},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:true};return {bottomLeft:{...o,points:["tl","bl"],offset:[0,4]},bottomRight:{...o,points:["tr","br"],offset:[0,4]},topLeft:{...o,points:["bl","tl"],offset:[0,-4]},topRight:{...o,points:["br","tr"],offset:[0,-4]}}};function H3(e,t){return e||L3(t)}var ms=H3;var RT=e=>{let{optionHeight:t,optionFontSize:o,optionLineHeight:r,optionPadding:n}=e;return {position:"relative",display:"block",minHeight:t,padding:n,color:e.colorText,fontWeight:"normal",fontSize:o,lineHeight:r,boxSizing:"border-box"}},W3=e=>{let{antCls:t,componentCls:o}=e,r=`${o}-item`,n=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${o}-dropdown-placement-`;return [{[`${o}-dropdown`]:{...ae(e),position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
|
|
88
88
|
${n}${l}bottomLeft,
|
|
89
89
|
${i}${l}bottomLeft
|
|
90
|
-
`]:{animationName:
|
|
90
|
+
`]:{animationName:Bi},[`
|
|
91
91
|
${n}${l}topLeft,
|
|
92
92
|
${i}${l}topLeft,
|
|
93
93
|
${n}${l}topRight,
|
|
94
94
|
${i}${l}topRight
|
|
95
|
-
`]:{animationName:
|
|
95
|
+
`]:{animationName:Fi},[`${a}${l}bottomLeft`]:{animationName:Oi},[`
|
|
96
96
|
${a}${l}topLeft,
|
|
97
97
|
${a}${l}topRight
|
|
98
|
-
`]:{animationName:
|
|
98
|
+
`]:{animationName:zi},"&-hidden":{display:"none"},[r]:{...RT(e),cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...qe},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...RT(e),color:e.colorTextDisabled}},"&-rtl":{direction:"rtl"}}},$o(e,"slide-up"),$o(e,"slide-down"),gn(e,"move-up"),gn(e,"move-down")]},IT=W3;var Iy=e=>{let{multipleSelectItemHeight:t,paddingXXS:o,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,i=e.max(e.calc(o).sub(r).equal(),0),a=e.max(e.calc(i).sub(n).equal(),0);return {basePadding:i,containerPadding:a,itemHeight:unit(t),itemLineHeight:unit(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},G3=e=>{let{multipleSelectItemHeight:t,selectHeight:o,lineWidth:r}=e;return e.calc(o).sub(t).div(2).sub(r).equal()},wy=e=>{let{componentCls:t,iconCls:o,borderRadiusSM:r,motionDurationSlow:n,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:p}=e;return {[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"nowrap",overflow:"hidden",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:p,borderRadius:r,cursor:"default",transition:`font-size ${n}, line-height ${n}, height ${n}`,marginInlineEnd:e.calc(p).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":{...Oo(),display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}}}}}},V3=(e,t)=>{let{componentCls:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,n=`${o}-selection-overflow`,i=e.multipleSelectItemHeight,a=G3(e),l=t?`${o}-${t}`:"",s=Iy(e);return {[`${o}-multiple${l}`]:{...wy(e),[`${o}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${o}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${unit(r)} 0`,lineHeight:unit(i),visibility:"hidden",content:'"\\a0"'}},[`${o}-selection-item`]:{height:s.itemHeight,lineHeight:unit(s.itemLineHeight)},[`${o}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:unit(i),marginBlock:r}},[`${o}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${n}-item + ${n}-item,
|
|
99
99
|
${o}-prefix + ${o}-selection-wrap
|
|
100
|
-
`]:{[`${o}-selection-search`]:{marginInlineStart:0},[`${o}-selection-placeholder`]:{insetInlineStart:0}},[`${n}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${o}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:unit(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${o}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function
|
|
100
|
+
`]:{[`${o}-selection-search`]:{marginInlineStart:0},[`${o}-selection-placeholder`]:{insetInlineStart:0}},[`${n}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${o}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:unit(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${o}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}};function Ry(e,t){let{componentCls:o}=e,r=t?`${o}-${t}`:"",n={[`${o}-multiple${r}`]:{fontSize:e.fontSize,[`${o}-selector`]:{[`${o}-show-search&`]:{cursor:"text"}},[`
|
|
101
101
|
&${o}-show-arrow ${o}-selector,
|
|
102
102
|
&${o}-allow-clear ${o}-selector
|
|
103
|
-
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return [
|
|
103
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return [V3(e,t),n]}var j3=e=>{let{componentCls:t}=e,o=mergeToken(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=mergeToken(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return [Ry(e),Ry(o,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ry(r,"lg")]},wT=j3;function Ny(e,t){let{componentCls:o,inputPaddingHorizontalBase:r,borderRadius:n}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${o}-${t}`:"";return {[`${o}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${o}-selector`]:{...ae(e,true),display:"flex",borderRadius:n,flex:"1 1 auto",[`${o}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
104
104
|
${o}-selection-item,
|
|
105
105
|
${o}-selection-placeholder
|
|
106
106
|
`]:{display:"block",padding:0,lineHeight:unit(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${o}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${o}-selection-item:empty:after`,`${o}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}},[`
|
|
107
107
|
&${o}-show-arrow ${o}-selection-item,
|
|
108
108
|
&${o}-show-arrow ${o}-selection-search,
|
|
109
109
|
&${o}-show-arrow ${o}-selection-placeholder
|
|
110
|
-
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${o}-open ${o}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${o}-customize-input)`]:{[`${o}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${unit(r)}`,[`${o}-selection-search-input`]:{height:i},"&:after":{lineHeight:unit(i)}}},[`&${o}-customize-input`]:{[`${o}-selector`]:{"&:after":{display:"none"},[`${o}-selection-search`]:{position:"static",width:"100%"},[`${o}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${unit(r)}`,"&:after":{display:"none"}}}}}}}function
|
|
110
|
+
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${o}-open ${o}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${o}-customize-input)`]:{[`${o}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${unit(r)}`,[`${o}-selection-search-input`]:{height:i},"&:after":{lineHeight:unit(i)}}},[`&${o}-customize-input`]:{[`${o}-selector`]:{"&:after":{display:"none"},[`${o}-selection-search`]:{position:"static",width:"100%"},[`${o}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${unit(r)}`,"&:after":{display:"none"}}}}}}}function My(e){let{componentCls:t}=e,o=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return [Ny(e),Ny(mergeToken(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${unit(o)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(o).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
111
111
|
&${t}-show-arrow ${t}-selection-item,
|
|
112
112
|
&${t}-show-arrow ${t}-selection-placeholder
|
|
113
|
-
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Og(mergeToken(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var xT=e=>{let{fontSize:t,lineHeight:o,lineWidth:r,controlHeight:n,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:p,fontWeightStrong:d,controlItemBgActive:m,controlItemBgHover:f,colorBgContainer:u,colorFillSecondary:g,colorBgContainerDisabled:y,colorTextDisabled:S,colorPrimaryHover:h,colorPrimary:C,controlOutline:b}=e,v=l*2,x=r*2,T=Math.min(n-v,n-x),$=Math.min(i-v,i-x),R=Math.min(a-v,a-x);return {INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:p,optionSelectedFontWeight:d,optionSelectedBg:m,optionActiveBg:f,optionPadding:`${(n-t*o)/2}px ${s}px`,optionFontSize:t,optionLineHeight:o,optionHeight:n,selectorBg:u,clearBg:u,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:T,multipleItemHeightSM:$,multipleItemHeightLG:R,multipleSelectorBgDisabled:y,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:h,activeBorderColor:C,activeOutlineColor:b,selectAffixPadding:l}};var PT=(e,t)=>{let{componentCls:o,antCls:r,controlOutlineWidth:n}=e;return {[`&:not(${o}-customize-input) ${o}-selector`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${o}-disabled):not(${o}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{borderColor:t.hoverBorderHover},[`${o}-focused& ${o}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${unit(n)} ${t.activeOutlineColor}`,outline:0},[`${o}-prefix`]:{color:t.color}}}},TT=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{...PT(e,t)}}),c3=e=>({"&-outlined":{...PT(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText}),...TT(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError}),...TT(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning}),[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),$T=(e,t)=>{let{componentCls:o,antCls:r}=e;return {[`&:not(${o}-customize-input) ${o}-selector`]:{background:t.bg,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${o}-disabled):not(${o}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{background:t.hoverBg},[`${o}-focused& ${o}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},vT=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{...$T(e,t)}}),p3=e=>({"&-filled":{...$T(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText}),...vT(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError}),...vT(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning}),[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}),d3=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),m3=e=>({[e.componentCls]:{...c3(e),...p3(e),...d3(e)}}),RT=m3;var u3=e=>{let{componentCls:t}=e;return {position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},f3=e=>{let{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},g3=e=>{let{antCls:t,componentCls:o,inputPaddingHorizontalBase:r,iconCls:n}=e;return {[o]:{...ne(e),position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${o}-customize-input) ${o}-selector`]:{...u3(e),...f3(e)},[`${o}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...Oe,[`> ${t}-typography`]:{display:"inline"}},[`${o}-selection-placeholder`]:{...Oe,flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"},[`${o}-arrow`]:{...Io(),position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[n]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${o}-suffix)`]:{pointerEvents:"auto"}},[`${o}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}},[`${o}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${o}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${o}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}},[`${o}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},y3=e=>{let{componentCls:t}=e;return [{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},g3(e),zg(e),bT(e),ST(e),{[`${t}-rtl`]:{direction:"rtl"}},Lo(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Vl=te("Select",(e,{rootPrefixCls:t})=>{let o=mergeToken(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [y3(o),RT(o)]},xT,{unitless:{optionLineHeight:true,optionSelectedFontWeight:true}});function zn({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:o,removeIcon:r,loading:n,multiple:i,hasFeedback:a,prefixCls:l,showSuffixIcon:s,feedbackIcon:c,showArrow:p,componentName:d}){let m=t??ue.createElement(yk,null),f=S=>e===null&&!a&&!p?null:ue.createElement(ue.Fragment,null,s!==false&&S,a&&c),u=null;if(e!==void 0)u=f(e);else if(n)u=f(ue.createElement(Xw,{spin:true}));else {let S=`${l}-suffix`;u=({open:h,showSearch:C})=>f(h&&C?ue.createElement(T3,{className:S}):ue.createElement(b3,{className:S}));}let g=null;o!==void 0?g=o:i?g=ue.createElement(C3,null):g=null;let y=null;return r!==void 0?y=r:y=ue.createElement(Ck,null),{clearIcon:m,suffixIcon:u,itemIcon:g,removeIcon:y}}function ha(e,t){return t!==void 0?t:e!==null}var wT="SECRET_COMBOBOX_MODE_DO_NOT_USE",I3=(e,t)=>{let{prefixCls:o,bordered:r,className:n,rootClassName:i,getPopupContainer:a,popupClassName:l,dropdownClassName:s,listHeight:c=256,placement:p,listItemHeight:d,size:m,disabled:f,notFoundContent:u,status:g,builtinPlacements:y,dropdownMatchSelectWidth:S,popupMatchSelectWidth:h,direction:C,style:b,allowClear:v,variant:x,dropdownStyle:T,transitionName:$,tagRender:R,maxCount:P,prefix:I,showSearch:M=false,...E}=e,{getPopupContainer:w,getPrefixCls:N,renderEmpty:A,direction:k,virtual:D,popupMatchSelectWidth:F,popupOverflow:O,select:L}=ue.useContext(B),[,_]=ve(),H=d??_?.controlHeight,z=N("select",o),G=N(),W=C??k,{compactSize:q,compactItemClassnames:j}=$t(z,W),[K,Q]=Ot("select",x,r),V=de(z),[U,Y,J]=Vl(z,V),ie=ue.useMemo(()=>{let{mode:he}=e;if(he!=="combobox")return he===wT?"combobox":he},[e.mode]),ee=ie==="multiple"||ie==="tags",X=ha(e.suffixIcon,e.showArrow),Z=h??S??F,{status:re,hasFeedback:ae,isFormItemInput:se,feedbackIcon:Ce}=ue.useContext(ke),$e=Rt(re,g),Ge;u!==void 0?Ge=u:ie==="combobox"?Ge=null:Ge=A?.("Select")||ue.createElement(ho,{componentName:"Select"});let{suffixIcon:xe,itemIcon:qe,removeIcon:lt,clearIcon:Ye}=zn({...E,multiple:ee,hasFeedback:ae,feedbackIcon:Ce,showSuffixIcon:X,prefixCls:z,componentName:"Select"}),me=v===true?{clearIcon:Ye}:v,Re=fx(E,["suffixIcon","itemIcon"]),Ne=ki(l||s,{[`${z}-dropdown-${W}`]:W==="rtl"},i,J,V,Y),Me=Te(he=>m??q??he),De=ue.useContext(Be),fe=f??De,le=ki({[`${z}-lg`]:Me==="large",[`${z}-sm`]:Me==="small",[`${z}-rtl`]:W==="rtl",[`${z}-${K}`]:Q,[`${z}-in-form-item`]:se},yt(z,$e,ae),j,L?.className,n,i,J,V,Y),ce=ue.useMemo(()=>p!==void 0?p:W==="rtl"?"bottomRight":"bottomLeft",[p,W]),[pe]=rt("SelectLike",T?.zIndex);return U(ue.createElement(v3,{ref:t,virtual:D,showSearch:M,...Re,style:{...L?.style,...b},dropdownMatchSelectWidth:Z,transitionName:Ze(G,"slide-up",$),builtinPlacements:Gl(y,O),listHeight:c,listItemHeight:H,mode:ie,prefixCls:z,placement:ce,direction:W,prefix:I,suffixIcon:xe,menuItemSelectedIcon:qe,removeIcon:lt,allowClear:me,notFoundContent:Ge,className:le,getPopupContainer:a||w,dropdownClassName:Ne,disabled:fe,dropdownStyle:{...T,zIndex:pe},maxCount:ee?P:void 0,tagRender:ee?R:void 0}))},_l=ue.forwardRef(I3),w3=Wt(_l,"dropdownAlign");_l.SECRET_COMBOBOX_MODE_DO_NOT_USE=wT;_l.Option=Option;_l.OptGroup=OptGroup;_l._InternalPanelDoNotUseOrYouWillBeFired=w3;var Mo=_l;var{Option:Lg}=Mo;function NT(e){return e?.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var E3=(e,t)=>{let{prefixCls:o,className:r,popupClassName:n,dropdownClassName:i,children:a,dataSource:l}=e,s=kv(a),c;s.length===1&&ue.isValidElement(s[0])&&!NT(s[0])&&([c]=s);let p=c?()=>c:void 0,d;s.length&&NT(s[0])?d=a:d=l?l.map(g=>{if(ue.isValidElement(g))return g;switch(typeof g){case "string":return ue.createElement(Lg,{key:g,value:g},g);case "object":{let{value:y}=g;return ue.createElement(Lg,{key:y,value:y},g.text)}default:return}}):[];let{getPrefixCls:m}=ue.useContext(B),f=m("select",o),[u]=rt("SelectLike",e.dropdownStyle?.zIndex);return ue.createElement(Mo,{ref:t,suffixIcon:null,...fx(e,["dataSource","dropdownClassName"]),prefixCls:f,popupClassName:n||i,dropdownStyle:{...e.dropdownStyle,zIndex:u},className:ki(`${f}-auto-complete`,r),mode:Mo.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:p},d)},xd=ue.forwardRef(E3),k3=Wt(xd,"dropdownAlign",e=>fx(e,["visible"]));xd.Option=Lg;xd._InternalPanelDoNotUseOrYouWillBeFired=k3;var Hg=xd;var or=["xxl","xl","lg","md","sm","xs"],D3=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),A3=e=>{let t=e,o=[...or].reverse();return o.forEach((r,n)=>{let i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(n<o.length-1){let s=`screen${i}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);let p=`screen${o[n+1].toUpperCase()}Min`;if(!(t[s]<=t[p]))throw new Error(`${s}<=${p} fails : !(${t[s]}<=${t[p]})`)}}),e};function cc(){let[,e]=ve(),t=D3(A3(e));return ue__default.useMemo(()=>{let o=new Map,r=-1,n={};return {matchHandlers:{},dispatch(i){return n=i,o.forEach(a=>a(n)),o.size>=1},subscribe(i){return o.size||this.register(),r+=1,o.set(r,i),i(n),r},unsubscribe(i){o.delete(i),o.size||this.unregister();},unregister(){Object.keys(t).forEach(i=>{let a=t[i],l=this.matchHandlers[a];l?.mql.removeListener(l?.listener);}),o.clear();},register(){Object.keys(t).forEach(i=>{let a=t[i],l=({matches:c})=>{this.dispatch({...n,[i]:c});},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s);});},responsiveMap:t}},[e])}var Td=(e,t)=>{if(t&&typeof t=="object")for(let o=0;o<or.length;o++){let r=or[o];if(e[r]&&t[r]!==void 0)return t[r]}};function Ln(){let[,e]=ue.useReducer(t=>t+1,0);return e}function z3(e=true){let t=useRef({}),o=Ln(),r=cc();return mh(()=>{let n=r.subscribe(i=>{t.current=i,e&&o();});return ()=>r.unsubscribe(n)},[]),t.current}var Vo=z3;var L3=ue.createContext({}),pc=L3;var W3=e=>{let{antCls:t,componentCls:o,iconCls:r,avatarBg:n,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:p,textFontSizeSM:d,borderRadius:m,borderRadiusLG:f,borderRadiusSM:u,lineWidth:g,lineType:y}=e,S=(h,C,b)=>({width:h,height:h,borderRadius:"50%",[`&${o}-square`]:{borderRadius:b},[`&${o}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return {[o]:{...ne(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:n,border:`${unit(g)} ${y} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...S(a,c,m),"&-lg":{...S(l,p,f)},"&-sm":{...S(s,d,u)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},G3=e=>{let{componentCls:t,groupBorderColor:o,groupOverlapping:r,groupSpace:n}=e;return {[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:o},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:n}}}},V3=e=>{let{controlHeight:t,controlHeightLG:o,controlHeightSM:r,fontSize:n,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:p}=e;return {containerSize:t,containerSizeLG:o,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:n,groupSpace:c,groupOverlapping:-s,groupBorderColor:p}},vd=te("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:o}=e,r=mergeToken(e,{avatarBg:o,avatarColor:t});return [W3(r),G3(r)]},V3);var U3=(e,t)=>{let[o,r]=ue.useState(1),[n,i]=ue.useState(false),[a,l]=ue.useState(true),s=ue.useRef(null),c=ue.useRef(null),p=composeRef(t,s),{getPrefixCls:d,avatar:m}=ue.useContext(B),f=ue.useContext(pc),u=()=>{if(!c.current||!s.current)return;let j=c.current.offsetWidth,K=s.current.offsetWidth;if(j!==0&&K!==0){let{gap:Q=4}=e;Q*2<K&&r(K-Q*2<j?(K-Q*2)/j:1);}};ue.useEffect(()=>{i(true);},[]),ue.useEffect(()=>{l(true),r(1);},[e.src]),ue.useEffect(u,[e.gap]);let g=()=>{let{onError:j}=e;j?.()!==false&&l(false);},{prefixCls:y,shape:S,size:h,src:C,srcSet:b,icon:v,className:x,rootClassName:T,alt:$,draggable:R,children:P,crossOrigin:I,...M}=e,E=Te(j=>h??f?.size??j??"default"),w=Object.keys(typeof E=="object"?E||{}:{}).some(j=>["xs","sm","md","lg","xl","xxl"].includes(j)),N=Vo(w),A=ue.useMemo(()=>{if(typeof E!="object")return {};let j=or.find(Q=>N[Q]),K=E[j];return K?{width:K,height:K,fontSize:K&&(v||P)?K/2:18}:{}},[N,E]),k=d("avatar",y),D=de(k),[F,O,L]=vd(k,D),_=ki({[`${k}-lg`]:E==="large",[`${k}-sm`]:E==="small"}),H=ue.isValidElement(C),z=S||f?.shape||"circle",G=ki(k,_,m?.className,`${k}-${z}`,{[`${k}-image`]:H||C&&a,[`${k}-icon`]:!!v},L,D,x,T,O),W=typeof E=="number"?{width:E,height:E,fontSize:v?E/2:18}:{},q;if(typeof C=="string"&&a)q=ue.createElement("img",{src:C,draggable:R,srcSet:b,onError:g,alt:$,crossOrigin:I});else if(H)q=C;else if(v)q=v;else if(n||o!==1){let j=`scale(${o})`,K={msTransform:j,WebkitTransform:j,transform:j};q=ue.createElement(XS,{onResize:u},ue.createElement("span",{className:`${k}-string`,ref:c,style:{...K}},P));}else q=ue.createElement("span",{className:`${k}-string`,style:{opacity:0},ref:c},P);return delete M.onError,delete M.gap,F(ue.createElement("span",{...M,style:{...W,...A,...m?.style,...M.style},className:G,ref:p},q))},q3=ue.forwardRef(U3),Pd=q3;var Hn=e=>e?typeof e=="function"?e():e:null;function pn(e){let{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:r}=e,n=t/2,i=0,a=n,l=r*1/Math.sqrt(2),s=n-r*(1-1/Math.sqrt(2)),c=n-o*(1/Math.sqrt(2)),p=r*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),d=2*n-c,m=p,f=2*n-l,u=s,g=2*n-i,y=a,S=n*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1),C=`polygon(${h}px 100%, 50% ${h}px, ${2*n-h}px 100%, ${h}px 100%)`,b=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${p} A ${o} ${o} 0 0 1 ${d} ${m} L ${f} ${u} A ${r} ${r} 0 0 0 ${g} ${y} Z')`;return {arrowShadowWidth:S,arrowPath:b,arrowPolygon:C}}var $d=(e,t,o)=>{let{sizePopupArrow:r,arrowPolygon:n,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return {pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:true,value:[n,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:true,value:`0 0 ${unit(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}};var dc=8;function dn(e){let{contentRadius:t,limitVerticalRadius:o}=e,r=t>12?t+2:12;return {arrowOffsetHorizontal:r,arrowOffsetVertical:o?dc:r}}function Rd(e,t){return e?t:{}}function Wn(e,t,o){let{componentCls:r,boxShadowPopoverArrow:n,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:true,right:true,top:true,bottom:true}}=o||{};return {[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...$d(e,t,n),"&:before":{background:t}}],...Rd(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:a}}}}),...Rd(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:a}}}}),...Rd(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:true,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}}),...Rd(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:true,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}})}}}function K3(e,t,o,r){if(r===false)return {adjustX:false,adjustY:false};let n=r&&typeof r=="object"?r:{},i={};switch(e){case "top":case "bottom":i.shiftX=t.arrowOffsetHorizontal*2+o,i.shiftY=true,i.adjustY=true;break;case "left":case "right":i.shiftY=t.arrowOffsetVertical*2+o,i.shiftX=true,i.adjustX=true;break}let a={...i,...n};return a.shiftX||(a.adjustX=true),a.shiftY||(a.adjustY=true),a}var AT={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Y3={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Z3=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Sa(e){let{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:r,offset:n,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(AT).forEach(c=>{let d={...r&&Y3[c]||AT[c],offset:[0,0],dynamicInset:true};switch(s[c]=d,Z3.has(c)&&(d.autoArrow=false),c){case "top":case "topLeft":case "topRight":d.offset[1]=-l-n;break;case "bottom":case "bottomLeft":case "bottomRight":d.offset[1]=l+n;break;case "left":case "leftTop":case "leftBottom":d.offset[0]=-l-n;break;case "right":case "rightTop":case "rightBottom":d.offset[0]=l+n;break}let m=dn({contentRadius:i,limitVerticalRadius:true});if(r)switch(c){case "topLeft":case "bottomLeft":d.offset[0]=-m.arrowOffsetHorizontal-l;break;case "topRight":case "bottomRight":d.offset[0]=m.arrowOffsetHorizontal+l;break;case "leftTop":case "rightTop":d.offset[1]=-m.arrowOffsetHorizontal*2+l;break;case "leftBottom":case "rightBottom":d.offset[1]=m.arrowOffsetHorizontal*2-l;break}d.overflow=K3(c,m,t,o),a&&(d.htmlRegion="visibleFirst");}),s}var Q3=e=>{let{calc:t,componentCls:o,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:p,paddingXS:d,arrowOffsetHorizontal:m,sizePopupArrow:f}=e,u=t(a).add(f).add(m).equal(),g=t(a).mul(2).add(f).equal();return [{[o]:{...ne(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${o}-inner`]:{minWidth:g,minHeight:s,padding:`${unit(e.calc(p).div(2).equal())} ${unit(d)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(a,dc)}},[`${o}-content`]:{position:"relative"},...on(e,(y,{darkColor:S})=>({[`&${o}-${y}`]:{[`${o}-inner`]:{backgroundColor:S},[`${o}-arrow`]:{"--antd-arrow-background-color":S}}})),"&-rtl":{direction:"rtl"}}},Wn(e,"var(--antd-arrow-background-color)"),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},J3=e=>({zIndexPopup:e.zIndexPopupBase+70,...dn({contentRadius:e.borderRadius,limitVerticalRadius:true}),...pn(mergeToken(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),Id=(e,t=true)=>te("Tooltip",r=>{let{borderRadius:n,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=mergeToken(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:a});return [Q3(l),er(r,"zoom-big-fast")]},J3,{resetStyle:false,injectStyle:t})(e);var eA=tn.map(e=>`${e}-inverse`),tA=["success","processing","error","default","warning"];function Ii(e,t=true){return t?[...eA,...tn].includes(e):tn.includes(e)}function OT(e){return tA.includes(e)}function wd(e,t){let o=Ii(t),r=ki({[`${e}-${t}`]:t&&o}),n={},i={};return t&&!o&&(n.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:n,arrowStyle:i}}var iA=e=>{let{prefixCls:t,className:o,placement:r="top",title:n,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=ue.useContext(B),s=l("tooltip",t),[c,p,d]=Id(s),m=wd(s,i),f=m.arrowStyle,u={...a,...m.overlayStyle},g=ki(p,d,s,`${s}-pure`,`${s}-placement-${r}`,o,m.className);return c(ue.createElement("div",{className:g,style:f},ue.createElement("div",{className:`${s}-arrow`}),ue.createElement(Popup,{...e,className:p,prefixCls:s,overlayInnerStyle:u},n)))},zT=iA;var sA=ue.forwardRef((e,t)=>{let{prefixCls:o,openClassName:r,getTooltipContainer:n,overlayClassName:i,color:a,overlayInnerStyle:l,children:s,afterOpenChange:c,afterVisibleChange:p,destroyTooltipOnHide:d,arrow:m=true,title:f,overlay:u,builtinPlacements:g,arrowPointAtCenter:y=false,autoAdjustOverflow:S=true}=e,h=!!m,[,C]=ve(),{getPopupContainer:b,getPrefixCls:v,direction:x}=ue.useContext(B),T=ht(),$=ue.useRef(null),R=()=>{$.current?.forceAlign();};ue.useImperativeHandle(t,()=>({forceAlign:R,forcePopupAlign:()=>{T.deprecated(false,"forcePopupAlign","forceAlign"),R();},nativeElement:$.current?.nativeElement}));let[P,I]=e0(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),M=!f&&!u&&f!==0,E=se=>{I(M?false:se),M||(e.onOpenChange?.(se),e.onVisibleChange?.(se));},w=ue.useMemo(()=>{let se=y;return typeof m=="object"&&(se=m.pointAtCenter??m.arrowPointAtCenter??y),g||Sa({arrowPointAtCenter:se,autoAdjustOverflow:S,arrowWidth:h?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:true})},[y,m,g,C]),N=ue.useMemo(()=>f===0?f:u||f||"",[u,f]),A=ue.createElement(Ft,{space:true},typeof N=="function"?N():N),{getPopupContainer:k,placement:D="top",mouseEnterDelay:F=.1,mouseLeaveDelay:O=.1,overlayStyle:L,rootClassName:_,...H}=e,z=v("tooltip",o),G=v(),W=e["data-popover-inject"],q=P;!("open"in e)&&!("visible"in e)&&M&&(q=false);let j=ue.isValidElement(s)&&!kp(s)?s:ue.createElement("span",null,s),K=j.props,Q=!K.className||typeof K.className=="string"?ki(K.className,r||`${z}-open`):K.className,[V,U,Y]=Id(z,!W),J=wd(z,a),ie=J.arrowStyle,ee={...l,...J.overlayStyle},X=ki(i,{[`${z}-rtl`]:x==="rtl"},J.className,_,U,Y),[Z,re]=rt("Tooltip",H.zIndex),ae=ue.createElement(aA,{...H,zIndex:Z,showArrow:h,placement:D,mouseEnterDelay:F,mouseLeaveDelay:O,prefixCls:z,overlayClassName:X,overlayStyle:{...ie,...L},getTooltipContainer:k||n||b,ref:$,builtinPlacements:w,overlay:A,visible:q,onVisibleChange:E,afterVisibleChange:c??p,overlayInnerStyle:ee,arrowContent:ue.createElement("span",{className:`${z}-arrow-content`}),motion:{motionName:Ze(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!d},q?Pe(j,{className:Q}):j);return V(ue.createElement(xr.Provider,{value:re},ae))}),HT=sA;HT._InternalPanelDoNotUseOrYouWillBeFired=zT;var nt=HT;var cA=e=>{let{componentCls:t,popoverColor:o,titleMinWidth:r,fontWeightStrong:n,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:p,colorBgElevated:d,popoverBg:m,titleBorderBottom:f,innerContentPadding:u,titlePadding:g}=e;return [{[t]:{...ne(e),position:"absolute",top:0,left:{_skip_check_:true,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:p,color:l,fontWeight:n,borderBottom:f,padding:g},[`${t}-inner-content`]:{color:o,padding:u}}},Wn(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},pA=e=>{let{componentCls:t}=e;return {[t]:tn.map(o=>{let r=e[`${o}6`];return {[`&${t}-${o}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},dA=e=>{let{lineWidth:t,controlHeight:o,fontHeight:r,padding:n,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:p,paddingSM:d}=e,m=o-r,f=m/2,u=m/2-t,g=n;return {titleMinWidth:177,zIndexPopup:a+30,...pn(e),...dn({contentRadius:l,limitVerticalRadius:true}),innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${f}px ${g}px ${u}px`:0,titleBorderBottom:i?`${t}px ${c} ${p}`:"none",innerContentPadding:i?`${d}px ${g}px`:0}},Nd=te("Popover",e=>{let{colorBgElevated:t,colorText:o}=e,r=mergeToken(e,{popoverBg:t,popoverColor:o});return [cA(r),pA(r),er(r,"zoom-big")]},dA,{resetStyle:false,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Wg=({title:e,content:t,prefixCls:o})=>!e&&!t?null:ue.createElement(ue.Fragment,null,e&&ue.createElement("div",{className:`${o}-title`},e),t&&ue.createElement("div",{className:`${o}-inner-content`},t)),Gg=e=>{let{hashId:t,prefixCls:o,className:r,style:n,placement:i="top",title:a,content:l,children:s}=e,c=Hn(a),p=Hn(l),d=ki(t,o,`${o}-pure`,`${o}-placement-${i}`,r);return ue.createElement("div",{className:d,style:n},ue.createElement("div",{className:`${o}-arrow`}),ue.createElement(Popup,{...e,className:t,prefixCls:o},s||ue.createElement(Wg,{prefixCls:o,title:c,content:p})))},uA=e=>{let{prefixCls:t,className:o,...r}=e,{getPrefixCls:n}=ue.useContext(B),i=n("popover",t),[a,l,s]=Nd(i);return a(ue.createElement(Gg,{...r,prefixCls:i,hashId:l,className:ki(o,s)}))},Md=uA;var CA=ue.forwardRef((e,t)=>{let{prefixCls:o,title:r,content:n,overlayClassName:i,placement:a="top",trigger:l="hover",children:s,mouseEnterDelay:c=.1,mouseLeaveDelay:p=.1,onOpenChange:d,overlayStyle:m={},...f}=e,{getPrefixCls:u}=ue.useContext(B),g=u("popover",o),[y,S,h]=Nd(g),C=u(),b=ki(i,S,h),[v,x]=e0(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),T=(M,E)=>{x(M,true),d?.(M,E);},$=M=>{M.keyCode===Cw.ESC&&T(false,M);},R=M=>{T(M);},P=Hn(r),I=Hn(n);return y(ue.createElement(nt,{placement:a,trigger:l,mouseEnterDelay:c,mouseLeaveDelay:p,overlayStyle:m,...f,prefixCls:g,overlayClassName:b,ref:t,open:v,onOpenChange:R,overlay:P||I?ue.createElement(Wg,{prefixCls:g,title:P,content:I}):null,transitionName:Ze(C,"zoom-big",f.transitionName),"data-popover-inject":true},Pe(s,{onKeyDown:M=>{ue.isValidElement(s)&&s?.props.onKeyDown?.(M),$(M);}})))}),GT=CA;GT._InternalPanelDoNotUseOrYouWillBeFired=Md;var ba=GT;var _T=e=>{let{size:t,shape:o}=ue.useContext(pc),r=ue.useMemo(()=>({size:e.size||t,shape:e.shape||o}),[e.size,e.shape,t,o]);return ue.createElement(pc.Provider,{value:r},e.children)},SA=e=>{let{getPrefixCls:t,direction:o}=ue.useContext(B),{prefixCls:r,className:n,rootClassName:i,style:a,maxCount:l,maxStyle:s,size:c,shape:p,maxPopoverPlacement:d,maxPopoverTrigger:m,children:f,max:u}=e,g=t("avatar",r),y=`${g}-group`,S=de(g),[h,C,b]=vd(g,S),v=ki(y,{[`${y}-rtl`]:o==="rtl"},b,S,n,i,C),x=kv(f).map((R,P)=>Pe(R,{key:`avatar-key-${P}`})),T=u?.count||l,$=x.length;if(T&&T<$){let R=x.slice(0,T),P=x.slice(T,$),I=u?.style||s,M=u?.popover?.trigger||m||"hover",E=u?.popover?.placement||d||"top",w={content:P,...u?.popover,overlayClassName:ki(`${y}-popover`,u?.popover?.overlayClassName),placement:E,trigger:M};return R.push(ue.createElement(ba,{key:"avatar-popover-key",destroyTooltipOnHide:true,...w},ue.createElement(Pd,{style:I},`+${$-T}`))),h(ue.createElement(_T,{shape:p,size:c},ue.createElement("div",{className:v,style:a},R)))}return h(ue.createElement(_T,{shape:p,size:c},ue.createElement("div",{className:v,style:a},x)))},jT=SA;var UT=Pd;UT.Group=jT;var bA=UT;var xA=new Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),TA=new Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),vA=new Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),PA=new Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),$A=new Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),RA=new Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),IA=e=>{let{componentCls:t,iconCls:o,antCls:r,badgeShadowSize:n,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:s,textFontWeight:c,indicatorHeight:p,indicatorHeightSM:d,marginXS:m,calc:f}=e,u=`${r}-scroll-number`,g=on(e,(y,{darkColor:S})=>({[`&${t} ${t}-color-${y}`]:{background:S,[`&:not(${t}-count)`]:{color:S},"a:hover &":{background:S}}}));return {[t]:{...ne(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:p,height:p,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:unit(p),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:f(p).div(2).equal(),boxShadow:`0 0 0 ${unit(n)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:unit(d),borderRadius:f(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${unit(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${unit(n)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${u}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${o}-spin`]:{animationName:RA,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:n,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:xA,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}},...g,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:TA,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:vA,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:PA,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:$A,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${u}-custom-component, ${t}-count`]:{transform:"none"},[`${u}-custom-component, ${u}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[u]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${u}-only`]:{position:"relative",display:"inline-block",height:p,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${u}-only-unit`]:{height:p,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${u}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${u}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},Vg=e=>{let{fontHeight:t,lineWidth:o,marginXS:r,colorBorderBg:n}=e,i=t,a=o,l=e.colorTextLightSolid,s=e.colorError,c=e.colorErrorHover;return mergeToken(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:l,badgeColor:s,badgeColorHover:c,badgeShadowColor:n,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},_g=e=>{let{fontSize:t,lineHeight:o,fontSizeSM:r,lineWidth:n}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*n,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},qT=te("Badge",e=>{let t=Vg(e);return IA(t)},_g);var wA=e=>{let{antCls:t,badgeFontHeight:o,marginXS:r,badgeRibbonOffset:n,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=on(e,(c,{darkColor:p})=>({[`&${a}-color-${c}`]:{background:p,color:p}}));return {[l]:{position:"relative"},[a]:{...ne(e),position:"absolute",top:r,padding:`0 ${unit(e.paddingXS)}`,color:e.colorPrimary,lineHeight:unit(o),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:n,height:n,color:"currentcolor",border:`${unit(i(n).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...s,[`&${a}-placement-end`]:{insetInlineEnd:i(n).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(n).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},XT=te(["Badge","Ribbon"],e=>{let t=Vg(e);return wA(t)},_g);var NA=e=>{let{className:t,prefixCls:o,style:r,color:n,children:i,text:a,placement:l="end",rootClassName:s}=e,{getPrefixCls:c,direction:p}=ue.useContext(B),d=c("ribbon",o),m=`${d}-wrapper`,[f,u,g]=XT(d,m),y=Ii(n,false),S=ki(d,`${d}-placement-${l}`,{[`${d}-rtl`]:p==="rtl",[`${d}-color-${n}`]:y},t),h={},C={};return n&&!y&&(h.background=n,C.color=n),f(ue.createElement("div",{className:ki(m,s,u,g)},i,ue.createElement("div",{className:ki(S,u),style:{...h,...r}},ue.createElement("span",{className:`${d}-text`},a),ue.createElement("div",{className:`${d}-corner`,style:C}))))},KT=NA;var YT=e=>{let{prefixCls:t,value:o,current:r,offset:n=0}=e,i;return n&&(i={position:"absolute",top:`${n}00%`,left:0}),ue.createElement("span",{style:i,className:ki(`${t}-only-unit`,{current:r})},o)};function EA(e,t,o){let r=e,n=0;for(;(r+10)%10!==t;)r+=o,n+=o;return n}var kA=e=>{let{prefixCls:t,count:o,value:r}=e,n=Number(r),i=Math.abs(o),[a,l]=ue.useState(n),[s,c]=ue.useState(i),p=()=>{l(n),c(i);};ue.useEffect(()=>{let f=setTimeout(p,1e3);return ()=>clearTimeout(f)},[n]);let d,m;if(a===n||Number.isNaN(n)||Number.isNaN(a))d=[ue.createElement(YT,{...e,key:n,current:true})],m={transition:"none"};else {d=[];let f=n+10,u=[];for(let h=n;h<=f;h+=1)u.push(h);let g=s<i?1:-1,y=u.findIndex(h=>h%10===a);d=(g<0?u.slice(0,y+1):u.slice(y)).map((h,C)=>{let b=h%10;return ue.createElement(YT,{...e,key:h,value:b,offset:g<0?C-y:C,current:C===y})}),m={transform:`translateY(${-EA(a,n,g)}00%)`};}return ue.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:p},d)},ZT=kA;var BA=ue.forwardRef((e,t)=>{let{prefixCls:o,count:r,className:n,motionClassName:i,style:a,title:l,show:s,component:c="sup",children:p,...d}=e,{getPrefixCls:m}=ue.useContext(B),f=m("scroll-number",o),u={...d,"data-show":s,style:a,className:ki(f,n,i),title:l},g=r;if(r&&Number(r)%1===0){let y=String(r).split("");g=ue.createElement("bdi",null,y.map((S,h)=>ue.createElement(ZT,{prefixCls:f,count:Number(r),value:S,key:y.length-h})));}return a?.borderColor&&(u.style={...a,boxShadow:`0 0 0 1px ${a.borderColor} inset`}),p?Pe(p,y=>({className:ki(`${f}-custom-component`,y?.className,i)})):ue.createElement(c,{...u,ref:t},g)}),JT=BA;var AA=ue.forwardRef((e,t)=>{let{prefixCls:o,scrollNumberPrefixCls:r,children:n,status:i,text:a,color:l,count:s=null,overflowCount:c=99,dot:p=false,size:d="default",title:m,offset:f,style:u,className:g,rootClassName:y,classNames:S,styles:h,showZero:C=false,...b}=e,{getPrefixCls:v,direction:x,badge:T}=ue.useContext(B),$=v("badge",o),[R,P,I]=qT($),M=s>c?`${c}+`:s,E=M==="0"||M===0,w=s===null||E&&!C,N=(i!=null||l!=null)&&w,A=p&&!E,k=A?"":M,D=useMemo(()=>(k==null||k===""||E&&!C)&&!A,[k,E,C,A]),F=useRef(s);D||(F.current=s);let O=F.current,L=useRef(k);D||(L.current=k);let _=L.current,H=useRef(A);D||(H.current=A);let z=useMemo(()=>{if(!f)return {...T?.style,...u};let U={marginTop:f[1]};return x==="rtl"?U.left=parseInt(f[0],10):U.right=-parseInt(f[0],10),{...U,...T?.style,...u}},[x,f,u,T?.style]),G=m??(typeof O=="string"||typeof O=="number"?O:void 0),W=D||!a?null:ue.createElement("span",{className:`${$}-status-text`},a),q=!O||typeof O!="object"?void 0:Pe(O,U=>({style:{...z,...U.style}})),j=Ii(l,false),K=ki(S?.indicator,T?.classNames?.indicator,{[`${$}-status-dot`]:N,[`${$}-status-${i}`]:!!i,[`${$}-color-${l}`]:j}),Q={};l&&!j&&(Q.color=l,Q.background=l);let V=ki($,{[`${$}-status`]:N,[`${$}-not-a-wrapper`]:!n,[`${$}-rtl`]:x==="rtl"},g,y,T?.className,T?.classNames?.root,S?.root,P,I);if(!n&&N){let U=z.color;return R(ue.createElement("span",{...b,className:V,style:{...h?.root,...T?.styles?.root,...z}},ue.createElement("span",{className:K,style:{...h?.indicator,...T?.styles?.indicator,...Q}}),a&&ue.createElement("span",{style:{color:U},className:`${$}-status-text`},a)))}return R(ue.createElement("span",{ref:t,...b,className:V,style:{...T?.styles?.root,...h?.root}},n,ue.createElement(bk,{visible:!D,motionName:`${$}-zoom`,motionAppear:false,motionDeadline:1e3},({className:U})=>{let Y=v("scroll-number",r),J=H.current,ie=ki(S?.indicator,T?.classNames?.indicator,{[`${$}-dot`]:J,[`${$}-count`]:!J,[`${$}-count-sm`]:d==="small",[`${$}-multiple-words`]:!J&&_&&_.toString().length>1,[`${$}-status-${i}`]:!!i,[`${$}-color-${l}`]:j}),ee={...h?.indicator,...T?.styles?.indicator,...z};return l&&!j&&(ee=ee||{},ee.background=l),ue.createElement(JT,{prefixCls:Y,show:!D,motionClassName:U,className:ie,count:_,title:G,style:ee,key:"scrollNumber"},q)}),W))}),tv=AA;tv.Ribbon=KT;var FA=tv;var OA=e=>typeof e!="object"&&typeof e!="function"||e===null,ov=OA;var zA=e=>!isNaN(parseFloat(e))&&isFinite(e),rv=zA;var Ed=ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var HA=e=>{let{antCls:t,componentCls:o,colorText:r,footerBg:n,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:s,fontSize:c,bodyBg:p,headerBg:d}=e;return {[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:i,padding:a,color:l,lineHeight:unit(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:s,color:r,fontSize:c,background:n},[`${o}-content`]:{flex:"auto",color:r,minHeight:0}}},Kg=e=>{let{colorBgLayout:t,controlHeight:o,controlHeightLG:r,colorText:n,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=e,c=r*1.25;return {colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${c}px`,headerColor:n,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:n}},Yg=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Zg=te("Layout",e=>[HA(e)],Kg,{deprecatedTokens:Yg});var GA=e=>{let{componentCls:t,siderBg:o,motionDurationMid:r,motionDurationSlow:n,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:s,headerHeight:c,zeroTriggerWidth:p,zeroTriggerHeight:d,borderRadius:m,lightSiderBg:f,lightTriggerColor:u,lightTriggerBg:g,bodyBg:y}=e;return {[t]:{position:"relative",minWidth:0,background:o,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-0.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:unit(a),textAlign:"center",background:s,cursor:"pointer",transition:`all ${r}`},[`${i}-layout &-zero-width`]:{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderStartStartRadius:0,borderStartEndRadius:m,borderEndEndRadius:m,borderEndStartRadius:0,cursor:"pointer",transition:`background ${n} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${n}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:m,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:m}}},"&-light":{background:f,[`${t}-trigger`]:{color:u,background:g},[`${t}-zero-width-trigger`]:{color:u,background:g,border:`1px solid ${y}`,borderInlineStart:0}}}}},iv=te(["Layout","Sider"],e=>[GA(e)],Kg,{deprecatedTokens:Yg});var dv={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ta=ue.createContext({}),UA=(()=>{let e=0;return (t="")=>(e+=1,`${t}${e}`)})(),qA=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,trigger:n,children:i,defaultCollapsed:a=false,theme:l="dark",style:s={},collapsible:c=false,reverseArrow:p=false,width:d=200,collapsedWidth:m=80,zeroWidthTriggerStyle:f,breakpoint:u,onCollapse:g,onBreakpoint:y,...S}=e,{siderHook:h}=useContext(Ed),[C,b]=useState("collapsed"in e?e.collapsed:a),[v,x]=useState(false);useEffect(()=>{"collapsed"in e&&b(e.collapsed);},[e.collapsed]);let T=(k,D)=>{"collapsed"in e||b(k),g?.(k,D);},{getPrefixCls:$}=useContext(B),R=$("layout-sider",o),[P,I,M]=iv(R),E=useRef(null);E.current=k=>{x(k.matches),y?.(k.matches),C!==k.matches&&T(k.matches,"responsive");},useEffect(()=>{function k(F){return E.current(F)}let D;if(typeof window<"u"){let{matchMedia:F}=window;if(F&&u&&u in dv){D=F(`screen and (max-width: ${dv[u]})`);try{D.addEventListener("change",k);}catch{D.addListener(k);}k(D);}}return ()=>{try{D?.removeEventListener("change",k);}catch{D?.removeListener(k);}}},[u]),useEffect(()=>{let k=UA("ant-sider-");return h.addSider(k),()=>h.removeSider(k)},[]);let w=()=>{T(!C,"clickTrigger");},N=()=>{let k=fx(S,["collapsed"]),D=C?m:d,F=rv(D)?`${D}px`:String(D),O=parseFloat(String(m||0))===0?ue.createElement("span",{onClick:w,className:ki(`${R}-zero-width-trigger`,`${R}-zero-width-trigger-${p?"right":"left"}`),style:f},n||ue.createElement(_A,null)):null,H={expanded:p?ue.createElement(cv,null):ue.createElement(sv,null),collapsed:p?ue.createElement(sv,null):ue.createElement(cv,null)}[C?"collapsed":"expanded"],z=n!==null?O||ue.createElement("div",{className:`${R}-trigger`,onClick:w,style:{width:F}},n||H):null,G={...s,flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F},W=ki(R,`${R}-${l}`,{[`${R}-collapsed`]:!!C,[`${R}-has-trigger`]:c&&n!==null&&!O,[`${R}-below`]:!!v,[`${R}-zero-width`]:parseFloat(F)===0},r,I,M);return ue.createElement("aside",{className:W,...k,style:G,ref:t},ue.createElement("div",{className:`${R}-children`},i),c||v&&O?z:null)},A=ue.useMemo(()=>({siderCollapsed:C}),[C]);return P(ue.createElement(Ta.Provider,{value:A},N()))}),kd=qA;var KA=createContext({prefixCls:"",firstLevel:true,inlineCollapsed:false}),va=KA;var QA=e=>{let{prefixCls:t,className:o,dashed:r,...n}=e,{getPrefixCls:i}=ue.useContext(B),a=i("menu",t),l=ki({[`${a}-item-divider-dashed`]:!!r},o);return ue.createElement(Divider,{className:l,...n})},Dd=QA;var oF=e=>{let{className:t,children:o,icon:r,title:n,danger:i,extra:a}=e,{prefixCls:l,firstLevel:s,direction:c,disableMenuItemTitleTooltip:p,inlineCollapsed:d}=ue.useContext(va),m=h=>{let C=o?.[0],b=ue.createElement("span",{className:ki(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!a||a===0})},o);return (!r||ue.isValidElement(o)&&o.type==="span")&&o&&h&&s&&typeof C=="string"?ue.createElement("div",{className:`${l}-inline-collapsed-noicon`},C.charAt(0)):b},{siderCollapsed:f}=ue.useContext(Ta),u=n;typeof n>"u"?u=s?o:"":n===false&&(u="");let g={title:u};!f&&!d&&(g.title=null,g.open=false);let y=kv(o).length,S=ue.createElement(Item,{...fx(e,["title","icon","danger"]),className:ki({[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(r?y+1:y)===1},t),title:typeof n=="string"?n:void 0},Pe(r,{className:ki(ue.isValidElement(r)?r.props?.className:"",`${l}-item-icon`)}),m(d));return p||(S=ue.createElement(nt,{...g,placement:c==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`},S)),S},Ad=oF;var ey=ue.createContext(null),Fd=ue.forwardRef((e,t)=>{let{children:o,...r}=e,n=ue.useContext(ey),i=ue.useMemo(()=>({...n,...r}),[n,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=supportNodeRef(o),l=useComposeRef(t,a?getNodeRef(o):null);return ue.createElement(ey.Provider,{value:i},ue.createElement(Ft,{space:true},a?ue.cloneElement(o,{ref:l}):o))}),ty=ey;var lF=e=>{let{componentCls:t,motionDurationSlow:o,horizontalLineHeight:r,colorSplit:n,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${unit(i)} ${a} ${n}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
|
|
113
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Ny(mergeToken(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var NT=e=>{let{fontSize:t,lineHeight:o,lineWidth:r,controlHeight:n,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:p,fontWeightStrong:m,controlItemBgActive:d,controlItemBgHover:f,colorBgContainer:u,colorFillSecondary:g,colorBgContainerDisabled:y,colorTextDisabled:h,colorPrimaryHover:b,colorPrimary:C,controlOutline:S}=e,v=l*2,x=r*2,$=Math.min(n-v,n-x),R=Math.min(i-v,i-x),T=Math.min(a-v,a-x);return {INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:p,optionSelectedFontWeight:m,optionSelectedBg:d,optionActiveBg:f,optionPadding:`${(n-t*o)/2}px ${s}px`,optionFontSize:t,optionLineHeight:o,optionHeight:n,selectorBg:u,clearBg:u,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightSM:R,multipleItemHeightLG:T,multipleSelectorBgDisabled:y,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:b,activeBorderColor:C,activeOutlineColor:S,selectAffixPadding:l}};var kT=(e,t)=>{let{componentCls:o,antCls:r,controlOutlineWidth:n}=e;return {[`&:not(${o}-customize-input) ${o}-selector`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${o}-disabled):not(${o}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{borderColor:t.hoverBorderHover},[`${o}-focused& ${o}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${unit(n)} ${t.activeOutlineColor}`,outline:0},[`${o}-prefix`]:{color:t.color}}}},MT=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{...kT(e,t)}}),_3=e=>({"&-outlined":{...kT(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText}),...MT(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError}),...MT(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning}),[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),DT=(e,t)=>{let{componentCls:o,antCls:r}=e;return {[`&:not(${o}-customize-input) ${o}-selector`]:{background:t.bg,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${o}-disabled):not(${o}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${o}-selector`]:{background:t.hoverBg},[`${o}-focused& ${o}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},ET=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:{...DT(e,t)}}),U3=e=>({"&-filled":{...DT(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText}),...ET(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError}),...ET(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning}),[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}),q3=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),X3=e=>({[e.componentCls]:{..._3(e),...U3(e),...q3(e)}}),BT=X3;var K3=e=>{let{componentCls:t}=e;return {position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Y3=e=>{let{componentCls:t}=e;return {[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Z3=e=>{let{antCls:t,componentCls:o,inputPaddingHorizontalBase:r,iconCls:n}=e;return {[o]:{...ae(e),position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${o}-customize-input) ${o}-selector`]:{...K3(e),...Y3(e)},[`${o}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...qe,[`> ${t}-typography`]:{display:"inline"}},[`${o}-selection-placeholder`]:{...qe,flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"},[`${o}-arrow`]:{...Oo(),position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[n]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${o}-suffix)`]:{pointerEvents:"auto"}},[`${o}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}},[`${o}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${o}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${o}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${o}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}},[`${o}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${o}-has-feedback`]:{[`${o}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Q3=e=>{let{componentCls:t}=e;return [{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Z3(e),My(e),wT(e),IT(e),{[`${t}-rtl`]:{direction:"rtl"}},qo(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},us=oe("Select",(e,{rootPrefixCls:t})=>{let o=mergeToken(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [Q3(o),BT(o)]},NT,{unitless:{optionLineHeight:true,optionSelectedFontWeight:true}});function Zn({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:o,removeIcon:r,loading:n,multiple:i,hasFeedback:a,prefixCls:l,showSuffixIcon:s,feedbackIcon:c,showArrow:p,componentName:m}){let d=t??ve.createElement(QD,null),f=h=>e===null&&!a&&!p?null:ve.createElement(ve.Fragment,null,s!==false&&h,a&&c),u=null;if(e!==void 0)u=f(e);else if(n)u=f(ve.createElement(iM,{spin:true}));else {let h=`${l}-suffix`;u=({open:b,showSearch:C})=>f(b&&C?ve.createElement(nF,{className:h}):ve.createElement(oF,{className:h}));}let g=null;o!==void 0?g=o:i?g=ve.createElement(J3,null):g=null;let y=null;return r!==void 0?y=r:y=ve.createElement(JD,null),{clearIcon:d,suffixIcon:u,itemIcon:g,removeIcon:y}}function Fa(e,t){return t!==void 0?t:e!==null}var FT="SECRET_COMBOBOX_MODE_DO_NOT_USE",cF=(e,t)=>{let{prefixCls:o,bordered:r,className:n,rootClassName:i,getPopupContainer:a,popupClassName:l,dropdownClassName:s,listHeight:c=256,placement:p,listItemHeight:m,size:d,disabled:f,notFoundContent:u,status:g,builtinPlacements:y,dropdownMatchSelectWidth:h,popupMatchSelectWidth:b,direction:C,style:S,allowClear:v,variant:x,dropdownStyle:$,transitionName:R,tagRender:T,maxCount:P,prefix:N,showSearch:M=false,...E}=e,{getPopupContainer:I,getPrefixCls:w,renderEmpty:B,direction:k,virtual:D,popupMatchSelectWidth:F,popupOverflow:A,select:L}=ve.useContext(O),[,q]=De(),V=m??q?.controlHeight,z=w("select",o),G=w(),_=C??k,{compactSize:Z,compactItemClassnames:K}=Mt(z,_),[Q,ee]=Vt("select",x,r),j=$e(z),[Y,J,te]=us(z,j),ue=ve.useMemo(()=>{let{mode:be}=e;if(be!=="combobox")return be===FT?"combobox":be},[e.mode]),W=ue==="multiple"||ue==="tags",H=Fa(e.suffixIcon,e.showArrow),X=b??h??F,{status:re,hasFeedback:ce,isFormItemInput:fe,feedbackIcon:Pe}=ve.useContext(Le),we=Et(re,g),ye;u!==void 0?ye=u:ue==="combobox"?ye=null:ye=B?.("Select")||ve.createElement(Po,{componentName:"Select"});let{suffixIcon:ge,itemIcon:xe,removeIcon:Te,clearIcon:Se}=Zn({...E,multiple:W,hasFeedback:ce,feedbackIcon:Pe,showSuffixIcon:H,prefixCls:z,componentName:"Select"}),de=v===true?{clearIcon:Se}:v,U=vv(E,["suffixIcon","itemIcon"]),pe=Xi(l||s,{[`${z}-dropdown-${_}`]:_==="rtl"},i,te,j,J),se=ke(be=>d??Z??be),he=ve.useContext(We),le=f??he,ie=Xi({[`${z}-lg`]:se==="large",[`${z}-sm`]:se==="small",[`${z}-rtl`]:_==="rtl",[`${z}-${Q}`]:ee,[`${z}-in-form-item`]:fe},xt(z,we,ce),K,L?.className,n,i,te,j,J),me=ve.useMemo(()=>p!==void 0?p:_==="rtl"?"bottomRight":"bottomLeft",[p,_]),[Ce]=dt("SelectLike",$?.zIndex);return Y(ve.createElement(iF,{ref:t,virtual:D,showSearch:M,...U,style:{...L?.style,...S},dropdownMatchSelectWidth:X,transitionName:it(G,"slide-up",R),builtinPlacements:ms(y,A),listHeight:c,listItemHeight:V,mode:ue,prefixCls:z,placement:me,direction:_,prefix:N,suffixIcon:ge,menuItemSelectedIcon:xe,removeIcon:Te,allowClear:de,notFoundContent:ye,className:ie,getPopupContainer:a||I,dropdownClassName:pe,disabled:le,dropdownStyle:{...$,zIndex:Ce},maxCount:W?P:void 0,tagRender:W?T:void 0}))},fs=ve.forwardRef(cF),pF=Xt(fs,"dropdownAlign");fs.SECRET_COMBOBOX_MODE_DO_NOT_USE=FT;fs.Option=Option;fs.OptGroup=OptGroup;fs._InternalPanelDoNotUseOrYouWillBeFired=pF;var Ao=fs;var{Option:Ey}=Ao;function zT(e){return e?.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var uF=(e,t)=>{let{prefixCls:o,className:r,popupClassName:n,dropdownClassName:i,children:a,dataSource:l}=e,s=H0(a),c;s.length===1&&ve.isValidElement(s[0])&&!zT(s[0])&&([c]=s);let p=c?()=>c:void 0,m;s.length&&zT(s[0])?m=a:m=l?l.map(g=>{if(ve.isValidElement(g))return g;switch(typeof g){case "string":return ve.createElement(Ey,{key:g,value:g},g);case "object":{let{value:y}=g;return ve.createElement(Ey,{key:y,value:y},g.text)}default:return}}):[];let{getPrefixCls:d}=ve.useContext(O),f=d("select",o),[u]=dt("SelectLike",e.dropdownStyle?.zIndex);return ve.createElement(Ao,{ref:t,suffixIcon:null,...vv(e,["dataSource","dropdownClassName"]),prefixCls:f,popupClassName:n||i,dropdownStyle:{...e.dropdownStyle,zIndex:u},className:Xi(`${f}-auto-complete`,r),mode:Ao.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:p},m)},tm=ve.forwardRef(uF),fF=Xt(tm,"dropdownAlign",e=>vv(e,["visible"]));tm.Option=Ey;tm._InternalPanelDoNotUseOrYouWillBeFired=fF;var ky=tm;var pr=["xxl","xl","lg","md","sm","xs"],yF=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),CF=e=>{let t=e,o=[...pr].reverse();return o.forEach((r,n)=>{let i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(n<o.length-1){let s=`screen${i}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);let p=`screen${o[n+1].toUpperCase()}Min`;if(!(t[s]<=t[p]))throw new Error(`${s}<=${p} fails : !(${t[s]}<=${t[p]})`)}}),e};function Oc(){let[,e]=De(),t=yF(CF(e));return ve__default.useMemo(()=>{let o=new Map,r=-1,n={};return {matchHandlers:{},dispatch(i){return n=i,o.forEach(a=>a(n)),o.size>=1},subscribe(i){return o.size||this.register(),r+=1,o.set(r,i),i(n),r},unsubscribe(i){o.delete(i),o.size||this.unregister();},unregister(){Object.keys(t).forEach(i=>{let a=t[i],l=this.matchHandlers[a];l?.mql.removeListener(l?.listener);}),o.clear();},register(){Object.keys(t).forEach(i=>{let a=t[i],l=({matches:c})=>{this.dispatch({...n,[i]:c});},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s);});},responsiveMap:t}},[e])}var om=(e,t)=>{if(t&&typeof t=="object")for(let o=0;o<pr.length;o++){let r=pr[o];if(e[r]&&t[r]!==void 0)return t[r]}};function Qn(){let[,e]=ve.useReducer(t=>t+1,0);return e}function SF(e=true){let t=useRef({}),o=Qn(),r=Oc();return ib(()=>{let n=r.subscribe(i=>{t.current=i,e&&o();});return ()=>r.unsubscribe(n)},[]),t.current}var Zo=SF;var xF=ve.createContext({}),Fc=xF;var TF=e=>{let{antCls:t,componentCls:o,iconCls:r,avatarBg:n,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:p,textFontSizeSM:m,borderRadius:d,borderRadiusLG:f,borderRadiusSM:u,lineWidth:g,lineType:y}=e,h=(b,C,S)=>({width:b,height:b,borderRadius:"50%",[`&${o}-square`]:{borderRadius:S},[`&${o}-icon`]:{fontSize:C,[`> ${r}`]:{margin:0}}});return {[o]:{...ae(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:n,border:`${unit(g)} ${y} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...h(a,c,d),"&-lg":{...h(l,p,f)},"&-sm":{...h(s,m,u)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},$F=e=>{let{componentCls:t,groupBorderColor:o,groupOverlapping:r,groupSpace:n}=e;return {[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:o},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:n}}}},PF=e=>{let{controlHeight:t,controlHeightLG:o,controlHeightSM:r,fontSize:n,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:p}=e;return {containerSize:t,containerSizeLG:o,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:n,groupSpace:c,groupOverlapping:-s,groupBorderColor:p}},rm=oe("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:o}=e,r=mergeToken(e,{avatarBg:o,avatarColor:t});return [TF(r),$F(r)]},PF);var wF=(e,t)=>{let[o,r]=ve.useState(1),[n,i]=ve.useState(false),[a,l]=ve.useState(true),s=ve.useRef(null),c=ve.useRef(null),p=composeRef(t,s),{getPrefixCls:m,avatar:d}=ve.useContext(O),f=ve.useContext(Fc),u=()=>{if(!c.current||!s.current)return;let K=c.current.offsetWidth,Q=s.current.offsetWidth;if(K!==0&&Q!==0){let{gap:ee=4}=e;ee*2<Q&&r(Q-ee*2<K?(Q-ee*2)/K:1);}};ve.useEffect(()=>{i(true);},[]),ve.useEffect(()=>{l(true),r(1);},[e.src]),ve.useEffect(u,[e.gap]);let g=()=>{let{onError:K}=e;K?.()!==false&&l(false);},{prefixCls:y,shape:h,size:b,src:C,srcSet:S,icon:v,className:x,rootClassName:$,alt:R,draggable:T,children:P,crossOrigin:N,...M}=e,E=ke(K=>b??f?.size??K??"default"),I=Object.keys(typeof E=="object"?E||{}:{}).some(K=>["xs","sm","md","lg","xl","xxl"].includes(K)),w=Zo(I),B=ve.useMemo(()=>{if(typeof E!="object")return {};let K=pr.find(ee=>w[ee]),Q=E[K];return Q?{width:Q,height:Q,fontSize:Q&&(v||P)?Q/2:18}:{}},[w,E]),k=m("avatar",y),D=$e(k),[F,A,L]=rm(k,D),q=Xi({[`${k}-lg`]:E==="large",[`${k}-sm`]:E==="small"}),V=ve.isValidElement(C),z=h||f?.shape||"circle",G=Xi(k,q,d?.className,`${k}-${z}`,{[`${k}-image`]:V||C&&a,[`${k}-icon`]:!!v},L,D,x,$,A),_=typeof E=="number"?{width:E,height:E,fontSize:v?E/2:18}:{},Z;if(typeof C=="string"&&a)Z=ve.createElement("img",{src:C,draggable:T,srcSet:S,onError:g,alt:R,crossOrigin:N});else if(V)Z=C;else if(v)Z=v;else if(n||o!==1){let K=`scale(${o})`,Q={msTransform:K,WebkitTransform:K,transform:K};Z=ve.createElement(ox,{onResize:u},ve.createElement("span",{className:`${k}-string`,ref:c,style:{...Q}},P));}else Z=ve.createElement("span",{className:`${k}-string`,style:{opacity:0},ref:c},P);return delete M.onError,delete M.gap,F(ve.createElement("span",{...M,style:{..._,...B,...d?.style,...M.style},className:G,ref:p},Z))},NF=ve.forwardRef(wF),nm=NF;var Jn=e=>e?typeof e=="function"?e():e:null;function Sn(e){let{sizePopupArrow:t,borderRadiusXS:o,borderRadiusOuter:r}=e,n=t/2,i=0,a=n,l=r*1/Math.sqrt(2),s=n-r*(1-1/Math.sqrt(2)),c=n-o*(1/Math.sqrt(2)),p=r*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),m=2*n-c,d=p,f=2*n-l,u=s,g=2*n-i,y=a,h=n*Math.sqrt(2)+r*(Math.sqrt(2)-2),b=r*(Math.sqrt(2)-1),C=`polygon(${b}px 100%, 50% ${b}px, ${2*n-b}px 100%, ${b}px 100%)`,S=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${p} A ${o} ${o} 0 0 1 ${m} ${d} L ${f} ${u} A ${r} ${r} 0 0 0 ${g} ${y} Z')`;return {arrowShadowWidth:h,arrowPath:S,arrowPolygon:C}}var im=(e,t,o)=>{let{sizePopupArrow:r,arrowPolygon:n,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return {pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:true,value:[n,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:true,value:`0 0 ${unit(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"}}};var zc=8;function xn(e){let{contentRadius:t,limitVerticalRadius:o}=e,r=t>12?t+2:12;return {arrowOffsetHorizontal:r,arrowOffsetVertical:o?zc:r}}function am(e,t){return e?t:{}}function ei(e,t,o){let{componentCls:r,boxShadowPopoverArrow:n,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:true,right:true,top:true,bottom:true}}=o||{};return {[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...im(e,t,n),"&:before":{background:t}}],...am(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:a}}}}),...am(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:true,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:true,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${unit(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:true,value:a}}}}),...am(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:true,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}}),...am(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:true,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:true,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}})}}}function EF(e,t,o,r){if(r===false)return {adjustX:false,adjustY:false};let n=r&&typeof r=="object"?r:{},i={};switch(e){case "top":case "bottom":i.shiftX=t.arrowOffsetHorizontal*2+o,i.shiftY=true,i.adjustY=true;break;case "left":case "right":i.shiftY=t.arrowOffsetVertical*2+o,i.shiftX=true,i.adjustX=true;break}let a={...i,...n};return a.shiftX||(a.adjustX=true),a.shiftY||(a.adjustY=true),a}var VT={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},kF={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},DF=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function za(e){let{arrowWidth:t,autoAdjustOverflow:o,arrowPointAtCenter:r,offset:n,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(VT).forEach(c=>{let m={...r&&kF[c]||VT[c],offset:[0,0],dynamicInset:true};switch(s[c]=m,DF.has(c)&&(m.autoArrow=false),c){case "top":case "topLeft":case "topRight":m.offset[1]=-l-n;break;case "bottom":case "bottomLeft":case "bottomRight":m.offset[1]=l+n;break;case "left":case "leftTop":case "leftBottom":m.offset[0]=-l-n;break;case "right":case "rightTop":case "rightBottom":m.offset[0]=l+n;break}let d=xn({contentRadius:i,limitVerticalRadius:true});if(r)switch(c){case "topLeft":case "bottomLeft":m.offset[0]=-d.arrowOffsetHorizontal-l;break;case "topRight":case "bottomRight":m.offset[0]=d.arrowOffsetHorizontal+l;break;case "leftTop":case "rightTop":m.offset[1]=-d.arrowOffsetHorizontal*2+l;break;case "leftBottom":case "rightBottom":m.offset[1]=d.arrowOffsetHorizontal*2-l;break}m.overflow=EF(c,d,t,o),a&&(m.htmlRegion="visibleFirst");}),s}var BF=e=>{let{calc:t,componentCls:o,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:p,paddingXS:m,arrowOffsetHorizontal:d,sizePopupArrow:f}=e,u=t(a).add(f).add(d).equal(),g=t(a).mul(2).add(f).equal();return [{[o]:{...ae(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${o}-inner`]:{minWidth:g,minHeight:s,padding:`${unit(e.calc(p).div(2).equal())} ${unit(m)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:u},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${o}-inner`]:{borderRadius:e.min(a,zc)}},[`${o}-content`]:{position:"relative"},...un(e,(y,{darkColor:h})=>({[`&${o}-${y}`]:{[`${o}-inner`]:{backgroundColor:h},[`${o}-arrow`]:{"--antd-arrow-background-color":h}}})),"&-rtl":{direction:"rtl"}}},ei(e,"var(--antd-arrow-background-color)"),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},OF=e=>({zIndexPopup:e.zIndexPopupBase+70,...xn({contentRadius:e.borderRadius,limitVerticalRadius:true}),...Sn(mergeToken(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),lm=(e,t=true)=>oe("Tooltip",r=>{let{borderRadius:n,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=mergeToken(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:n,tooltipBg:a});return [BF(l),sr(r,"zoom-big-fast")]},OF,{resetStyle:false,injectStyle:t})(e);var FF=mn.map(e=>`${e}-inverse`),zF=["success","processing","error","default","warning"];function Vi(e,t=true){return t?[...FF,...mn].includes(e):mn.includes(e)}function _T(e){return zF.includes(e)}function sm(e,t){let o=Vi(t),r=Xi({[`${e}-${t}`]:t&&o}),n={},i={};return t&&!o&&(n.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:n,arrowStyle:i}}var WF=e=>{let{prefixCls:t,className:o,placement:r="top",title:n,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=ve.useContext(O),s=l("tooltip",t),[c,p,m]=lm(s),d=sm(s,i),f=d.arrowStyle,u={...a,...d.overlayStyle},g=Xi(p,m,s,`${s}-pure`,`${s}-placement-${r}`,o,d.className);return c(ve.createElement("div",{className:g,style:f},ve.createElement("div",{className:`${s}-arrow`}),ve.createElement(Popup,{...e,className:p,prefixCls:s,overlayInnerStyle:u},n)))},UT=WF;var jF=ve.forwardRef((e,t)=>{let{prefixCls:o,openClassName:r,getTooltipContainer:n,overlayClassName:i,color:a,overlayInnerStyle:l,children:s,afterOpenChange:c,afterVisibleChange:p,destroyTooltipOnHide:m,arrow:d=true,title:f,overlay:u,builtinPlacements:g,arrowPointAtCenter:y=false,autoAdjustOverflow:h=true}=e,b=!!d,[,C]=De(),{getPopupContainer:S,getPrefixCls:v,direction:x}=ve.useContext(O),$=Tt(),R=ve.useRef(null),T=()=>{R.current?.forceAlign();};ve.useImperativeHandle(t,()=>({forceAlign:T,forcePopupAlign:()=>{$.deprecated(false,"forcePopupAlign","forceAlign"),T();},nativeElement:R.current?.nativeElement}));let[P,N]=s$(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),M=!f&&!u&&f!==0,E=fe=>{N(M?false:fe),M||(e.onOpenChange?.(fe),e.onVisibleChange?.(fe));},I=ve.useMemo(()=>{let fe=y;return typeof d=="object"&&(fe=d.pointAtCenter??d.arrowPointAtCenter??y),g||za({arrowPointAtCenter:fe,autoAdjustOverflow:h,arrowWidth:b?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:true})},[y,d,g,C]),w=ve.useMemo(()=>f===0?f:u||f||"",[u,f]),B=ve.createElement(Gt,{space:true},typeof w=="function"?w():w),{getPopupContainer:k,placement:D="top",mouseEnterDelay:F=.1,mouseLeaveDelay:A=.1,overlayStyle:L,rootClassName:q,...V}=e,z=v("tooltip",o),G=v(),_=e["data-popover-inject"],Z=P;!("open"in e)&&!("visible"in e)&&M&&(Z=false);let K=ve.isValidElement(s)&&!md(s)?s:ve.createElement("span",null,s),Q=K.props,ee=!Q.className||typeof Q.className=="string"?Xi(Q.className,r||`${z}-open`):Q.className,[j,Y,J]=lm(z,!_),te=sm(z,a),ue=te.arrowStyle,W={...l,...te.overlayStyle},H=Xi(i,{[`${z}-rtl`]:x==="rtl"},te.className,q,Y,J),[X,re]=dt("Tooltip",V.zIndex),ce=ve.createElement(GF,{...V,zIndex:X,showArrow:b,placement:D,mouseEnterDelay:F,mouseLeaveDelay:A,prefixCls:z,overlayClassName:H,overlayStyle:{...ue,...L},getTooltipContainer:k||n||S,ref:R,builtinPlacements:I,overlay:B,visible:Z,onVisibleChange:E,afterVisibleChange:c??p,overlayInnerStyle:W,arrowContent:ve.createElement("span",{className:`${z}-arrow-content`}),motion:{motionName:it(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m},Z?Oe(K,{className:ee}):K);return j(ve.createElement(Nr.Provider,{value:re},ce))}),XT=jF;XT._InternalPanelDoNotUseOrYouWillBeFired=UT;var ot=XT;var _F=e=>{let{componentCls:t,popoverColor:o,titleMinWidth:r,fontWeightStrong:n,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:p,colorBgElevated:m,popoverBg:d,titleBorderBottom:f,innerContentPadding:u,titlePadding:g}=e;return [{[t]:{...ae(e),position:"absolute",top:0,left:{_skip_check_:true,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":m,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:p,color:l,fontWeight:n,borderBottom:f,padding:g},[`${t}-inner-content`]:{color:o,padding:u}}},ei(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},UF=e=>{let{componentCls:t}=e;return {[t]:mn.map(o=>{let r=e[`${o}6`];return {[`&${t}-${o}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},qF=e=>{let{lineWidth:t,controlHeight:o,fontHeight:r,padding:n,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:p,paddingSM:m}=e,d=o-r,f=d/2,u=d/2-t,g=n;return {titleMinWidth:177,zIndexPopup:a+30,...Sn(e),...xn({contentRadius:l,limitVerticalRadius:true}),innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${f}px ${g}px ${u}px`:0,titleBorderBottom:i?`${t}px ${c} ${p}`:"none",innerContentPadding:i?`${m}px ${g}px`:0}},cm=oe("Popover",e=>{let{colorBgElevated:t,colorText:o}=e,r=mergeToken(e,{popoverBg:t,popoverColor:o});return [_F(r),UF(r),sr(r,"zoom-big")]},qF,{resetStyle:false,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Dy=({title:e,content:t,prefixCls:o})=>!e&&!t?null:ve.createElement(ve.Fragment,null,e&&ve.createElement("div",{className:`${o}-title`},e),t&&ve.createElement("div",{className:`${o}-inner-content`},t)),By=e=>{let{hashId:t,prefixCls:o,className:r,style:n,placement:i="top",title:a,content:l,children:s}=e,c=Jn(a),p=Jn(l),m=Xi(t,o,`${o}-pure`,`${o}-placement-${i}`,r);return ve.createElement("div",{className:m,style:n},ve.createElement("div",{className:`${o}-arrow`}),ve.createElement(Popup,{...e,className:t,prefixCls:o},s||ve.createElement(Dy,{prefixCls:o,title:c,content:p})))},KF=e=>{let{prefixCls:t,className:o,...r}=e,{getPrefixCls:n}=ve.useContext(O),i=n("popover",t),[a,l,s]=cm(i);return a(ve.createElement(By,{...r,prefixCls:i,hashId:l,className:Xi(o,s)}))},pm=KF;var JF=ve.forwardRef((e,t)=>{let{prefixCls:o,title:r,content:n,overlayClassName:i,placement:a="top",trigger:l="hover",children:s,mouseEnterDelay:c=.1,mouseLeaveDelay:p=.1,onOpenChange:m,overlayStyle:d={},...f}=e,{getPrefixCls:u}=ve.useContext(O),g=u("popover",o),[y,h,b]=cm(g),C=u(),S=Xi(i,h,b),[v,x]=s$(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),$=(M,E)=>{x(M,true),m?.(M,E);},R=M=>{M.keyCode===wN.ESC&&$(false,M);},T=M=>{$(M);},P=Jn(r),N=Jn(n);return y(ve.createElement(ot,{placement:a,trigger:l,mouseEnterDelay:c,mouseLeaveDelay:p,overlayStyle:d,...f,prefixCls:g,overlayClassName:S,ref:t,open:v,onOpenChange:T,overlay:P||N?ve.createElement(Dy,{prefixCls:g,title:P,content:N}):null,transitionName:it(C,"zoom-big",f.transitionName),"data-popover-inject":true},Oe(s,{onKeyDown:M=>{ve.isValidElement(s)&&s?.props.onKeyDown?.(M),R(M);}})))}),YT=JF;YT._InternalPanelDoNotUseOrYouWillBeFired=pm;var Aa=YT;var QT=e=>{let{size:t,shape:o}=ve.useContext(Fc),r=ve.useMemo(()=>({size:e.size||t,shape:e.shape||o}),[e.size,e.shape,t,o]);return ve.createElement(Fc.Provider,{value:r},e.children)},tz=e=>{let{getPrefixCls:t,direction:o}=ve.useContext(O),{prefixCls:r,className:n,rootClassName:i,style:a,maxCount:l,maxStyle:s,size:c,shape:p,maxPopoverPlacement:m,maxPopoverTrigger:d,children:f,max:u}=e,g=t("avatar",r),y=`${g}-group`,h=$e(g),[b,C,S]=rm(g,h),v=Xi(y,{[`${y}-rtl`]:o==="rtl"},S,h,n,i,C),x=H0(f).map((T,P)=>Oe(T,{key:`avatar-key-${P}`})),$=u?.count||l,R=x.length;if($&&$<R){let T=x.slice(0,$),P=x.slice($,R),N=u?.style||s,M=u?.popover?.trigger||d||"hover",E=u?.popover?.placement||m||"top",I={content:P,...u?.popover,overlayClassName:Xi(`${y}-popover`,u?.popover?.overlayClassName),placement:E,trigger:M};return T.push(ve.createElement(Aa,{key:"avatar-popover-key",destroyTooltipOnHide:true,...I},ve.createElement(nm,{style:N},`+${R-$}`))),b(ve.createElement(QT,{shape:p,size:c},ve.createElement("div",{className:v,style:a},T)))}return b(ve.createElement(QT,{shape:p,size:c},ve.createElement("div",{className:v,style:a},x)))},JT=tz;var e0=nm;e0.Group=JT;var oz=e0;var rz=new Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),nz=new Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),iz=new Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),az=new Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),lz=new Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),sz=new Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),cz=e=>{let{componentCls:t,iconCls:o,antCls:r,badgeShadowSize:n,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:s,textFontWeight:c,indicatorHeight:p,indicatorHeightSM:m,marginXS:d,calc:f}=e,u=`${r}-scroll-number`,g=un(e,(y,{darkColor:h})=>({[`&${t} ${t}-color-${y}`]:{background:h,[`&:not(${t}-count)`]:{color:h},"a:hover &":{background:h}}}));return {[t]:{...ae(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:p,height:p,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:unit(p),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:f(p).div(2).equal(),boxShadow:`0 0 0 ${unit(n)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:m,height:m,fontSize:a,lineHeight:unit(m),borderRadius:f(m).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${unit(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${unit(n)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${u}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${o}-spin`]:{animationName:sz,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:n,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:rz,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:d,color:e.colorText,fontSize:e.fontSize}},...g,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:nz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:iz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:az,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:lz,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${u}-custom-component, ${t}-count`]:{transform:"none"},[`${u}-custom-component, ${u}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[u]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${u}-only`]:{position:"relative",display:"inline-block",height:p,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${u}-only-unit`]:{height:p,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${u}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${u}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},Oy=e=>{let{fontHeight:t,lineWidth:o,marginXS:r,colorBorderBg:n}=e,i=t,a=o,l=e.colorTextLightSolid,s=e.colorError,c=e.colorErrorHover;return mergeToken(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:l,badgeColor:s,badgeColorHover:c,badgeShadowColor:n,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Fy=e=>{let{fontSize:t,lineHeight:o,fontSizeSM:r,lineWidth:n}=e;return {indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*n,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},t0=oe("Badge",e=>{let t=Oy(e);return cz(t)},Fy);var pz=e=>{let{antCls:t,badgeFontHeight:o,marginXS:r,badgeRibbonOffset:n,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=un(e,(c,{darkColor:p})=>({[`&${a}-color-${c}`]:{background:p,color:p}}));return {[l]:{position:"relative"},[a]:{...ae(e),position:"absolute",top:r,padding:`0 ${unit(e.paddingXS)}`,color:e.colorPrimary,lineHeight:unit(o),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:n,height:n,color:"currentcolor",border:`${unit(i(n).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...s,[`&${a}-placement-end`]:{insetInlineEnd:i(n).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(n).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},o0=oe(["Badge","Ribbon"],e=>{let t=Oy(e);return pz(t)},Fy);var dz=e=>{let{className:t,prefixCls:o,style:r,color:n,children:i,text:a,placement:l="end",rootClassName:s}=e,{getPrefixCls:c,direction:p}=ve.useContext(O),m=c("ribbon",o),d=`${m}-wrapper`,[f,u,g]=o0(m,d),y=Vi(n,false),h=Xi(m,`${m}-placement-${l}`,{[`${m}-rtl`]:p==="rtl",[`${m}-color-${n}`]:y},t),b={},C={};return n&&!y&&(b.background=n,C.color=n),f(ve.createElement("div",{className:Xi(d,s,u,g)},i,ve.createElement("div",{className:Xi(h,u),style:{...b,...r}},ve.createElement("span",{className:`${m}-text`},a),ve.createElement("div",{className:`${m}-corner`,style:C}))))},r0=dz;var n0=e=>{let{prefixCls:t,value:o,current:r,offset:n=0}=e,i;return n&&(i={position:"absolute",top:`${n}00%`,left:0}),ve.createElement("span",{style:i,className:Xi(`${t}-only-unit`,{current:r})},o)};function uz(e,t,o){let r=e,n=0;for(;(r+10)%10!==t;)r+=o,n+=o;return n}var fz=e=>{let{prefixCls:t,count:o,value:r}=e,n=Number(r),i=Math.abs(o),[a,l]=ve.useState(n),[s,c]=ve.useState(i),p=()=>{l(n),c(i);};ve.useEffect(()=>{let f=setTimeout(p,1e3);return ()=>clearTimeout(f)},[n]);let m,d;if(a===n||Number.isNaN(n)||Number.isNaN(a))m=[ve.createElement(n0,{...e,key:n,current:true})],d={transition:"none"};else {m=[];let f=n+10,u=[];for(let b=n;b<=f;b+=1)u.push(b);let g=s<i?1:-1,y=u.findIndex(b=>b%10===a);m=(g<0?u.slice(0,y+1):u.slice(y)).map((b,C)=>{let S=b%10;return ve.createElement(n0,{...e,key:b,value:S,offset:g<0?C-y:C,current:C===y})}),d={transform:`translateY(${-uz(a,n,g)}00%)`};}return ve.createElement("span",{className:`${t}-only`,style:d,onTransitionEnd:p},m)},i0=fz;var gz=ve.forwardRef((e,t)=>{let{prefixCls:o,count:r,className:n,motionClassName:i,style:a,title:l,show:s,component:c="sup",children:p,...m}=e,{getPrefixCls:d}=ve.useContext(O),f=d("scroll-number",o),u={...m,"data-show":s,style:a,className:Xi(f,n,i),title:l},g=r;if(r&&Number(r)%1===0){let y=String(r).split("");g=ve.createElement("bdi",null,y.map((h,b)=>ve.createElement(i0,{prefixCls:f,count:Number(r),value:h,key:y.length-b})));}return a?.borderColor&&(u.style={...a,boxShadow:`0 0 0 1px ${a.borderColor} inset`}),p?Oe(p,y=>({className:Xi(`${f}-custom-component`,y?.className,i)})):ve.createElement(c,{...u,ref:t},g)}),l0=gz;var Cz=ve.forwardRef((e,t)=>{let{prefixCls:o,scrollNumberPrefixCls:r,children:n,status:i,text:a,color:l,count:s=null,overflowCount:c=99,dot:p=false,size:m="default",title:d,offset:f,style:u,className:g,rootClassName:y,classNames:h,styles:b,showZero:C=false,...S}=e,{getPrefixCls:v,direction:x,badge:$}=ve.useContext(O),R=v("badge",o),[T,P,N]=t0(R),M=s>c?`${c}+`:s,E=M==="0"||M===0,I=s===null||E&&!C,w=(i!=null||l!=null)&&I,B=p&&!E,k=B?"":M,D=useMemo(()=>(k==null||k===""||E&&!C)&&!B,[k,E,C,B]),F=useRef(s);D||(F.current=s);let A=F.current,L=useRef(k);D||(L.current=k);let q=L.current,V=useRef(B);D||(V.current=B);let z=useMemo(()=>{if(!f)return {...$?.style,...u};let Y={marginTop:f[1]};return x==="rtl"?Y.left=parseInt(f[0],10):Y.right=-parseInt(f[0],10),{...Y,...$?.style,...u}},[x,f,u,$?.style]),G=d??(typeof A=="string"||typeof A=="number"?A:void 0),_=D||!a?null:ve.createElement("span",{className:`${R}-status-text`},a),Z=!A||typeof A!="object"?void 0:Oe(A,Y=>({style:{...z,...Y.style}})),K=Vi(l,false),Q=Xi(h?.indicator,$?.classNames?.indicator,{[`${R}-status-dot`]:w,[`${R}-status-${i}`]:!!i,[`${R}-color-${l}`]:K}),ee={};l&&!K&&(ee.color=l,ee.background=l);let j=Xi(R,{[`${R}-status`]:w,[`${R}-not-a-wrapper`]:!n,[`${R}-rtl`]:x==="rtl"},g,y,$?.className,$?.classNames?.root,h?.root,P,N);if(!n&&w){let Y=z.color;return T(ve.createElement("span",{...S,className:j,style:{...b?.root,...$?.styles?.root,...z}},ve.createElement("span",{className:Q,style:{...b?.indicator,...$?.styles?.indicator,...ee}}),a&&ve.createElement("span",{style:{color:Y},className:`${R}-status-text`},a)))}return T(ve.createElement("span",{ref:t,...S,className:j,style:{...$?.styles?.root,...b?.root}},n,ve.createElement(oB,{visible:!D,motionName:`${R}-zoom`,motionAppear:false,motionDeadline:1e3},({className:Y})=>{let J=v("scroll-number",r),te=V.current,ue=Xi(h?.indicator,$?.classNames?.indicator,{[`${R}-dot`]:te,[`${R}-count`]:!te,[`${R}-count-sm`]:m==="small",[`${R}-multiple-words`]:!te&&q&&q.toString().length>1,[`${R}-status-${i}`]:!!i,[`${R}-color-${l}`]:K}),W={...b?.indicator,...$?.styles?.indicator,...z};return l&&!K&&(W=W||{},W.background=l),ve.createElement(l0,{prefixCls:J,show:!D,motionClassName:Y,className:ue,count:q,title:G,style:W,key:"scrollNumber"},Z)}),_))}),c0=Cz;c0.Ribbon=r0;var hz=c0;var bz=e=>typeof e!="object"&&typeof e!="function"||e===null,p0=bz;var Sz=e=>!isNaN(parseFloat(e))&&isFinite(e),d0=Sz;var dm=ve.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var vz=e=>{let{antCls:t,componentCls:o,colorText:r,footerBg:n,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:s,fontSize:c,bodyBg:p,headerBg:m}=e;return {[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:i,padding:a,color:l,lineHeight:unit(i),background:m,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:s,color:r,fontSize:c,background:n},[`${o}-content`]:{flex:"auto",color:r,minHeight:0}}},Wy=e=>{let{colorBgLayout:t,controlHeight:o,controlHeightLG:r,colorText:n,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=e,c=r*1.25;return {colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${c}px`,headerColor:n,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:n}},Gy=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Vy=oe("Layout",e=>[vz(e)],Wy,{deprecatedTokens:Gy});var $z=e=>{let{componentCls:t,siderBg:o,motionDurationMid:r,motionDurationSlow:n,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:s,headerHeight:c,zeroTriggerWidth:p,zeroTriggerHeight:m,borderRadius:d,lightSiderBg:f,lightTriggerColor:u,lightTriggerBg:g,bodyBg:y}=e;return {[t]:{position:"relative",minWidth:0,background:o,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-0.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:unit(a),textAlign:"center",background:s,cursor:"pointer",transition:`all ${r}`},[`${i}-layout &-zero-width`]:{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:m,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderStartStartRadius:0,borderStartEndRadius:d,borderEndEndRadius:d,borderEndStartRadius:0,cursor:"pointer",transition:`background ${n} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${n}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderStartStartRadius:d,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:d}}},"&-light":{background:f,[`${t}-trigger`]:{color:u,background:g},[`${t}-zero-width-trigger`]:{color:u,background:g,border:`1px solid ${y}`,borderInlineStart:0}}}}},u0=oe(["Layout","Sider"],e=>[$z(e)],Wy,{deprecatedTokens:Gy});var b0={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ha=ve.createContext({}),wz=(()=>{let e=0;return (t="")=>(e+=1,`${t}${e}`)})(),Nz=ve.forwardRef((e,t)=>{let{prefixCls:o,className:r,trigger:n,children:i,defaultCollapsed:a=false,theme:l="dark",style:s={},collapsible:c=false,reverseArrow:p=false,width:m=200,collapsedWidth:d=80,zeroWidthTriggerStyle:f,breakpoint:u,onCollapse:g,onBreakpoint:y,...h}=e,{siderHook:b}=useContext(dm),[C,S]=useState("collapsed"in e?e.collapsed:a),[v,x]=useState(false);useEffect(()=>{"collapsed"in e&&S(e.collapsed);},[e.collapsed]);let $=(k,D)=>{"collapsed"in e||S(k),g?.(k,D);},{getPrefixCls:R}=useContext(O),T=R("layout-sider",o),[P,N,M]=u0(T),E=useRef(null);E.current=k=>{x(k.matches),y?.(k.matches),C!==k.matches&&$(k.matches,"responsive");},useEffect(()=>{function k(F){return E.current(F)}let D;if(typeof window<"u"){let{matchMedia:F}=window;if(F&&u&&u in b0){D=F(`screen and (max-width: ${b0[u]})`);try{D.addEventListener("change",k);}catch{D.addListener(k);}k(D);}}return ()=>{try{D?.removeEventListener("change",k);}catch{D?.removeListener(k);}}},[u]),useEffect(()=>{let k=wz("ant-sider-");return b.addSider(k),()=>b.removeSider(k)},[]);let I=()=>{$(!C,"clickTrigger");},w=()=>{let k=vv(h,["collapsed"]),D=C?d:m,F=d0(D)?`${D}px`:String(D),A=parseFloat(String(d||0))===0?ve.createElement("span",{onClick:I,className:Xi(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${p?"right":"left"}`),style:f},n||ve.createElement(Rz,null)):null,V={expanded:p?ve.createElement(C0,null):ve.createElement(y0,null),collapsed:p?ve.createElement(y0,null):ve.createElement(C0,null)}[C?"collapsed":"expanded"],z=n!==null?A||ve.createElement("div",{className:`${T}-trigger`,onClick:I,style:{width:F}},n||V):null,G={...s,flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F},_=Xi(T,`${T}-${l}`,{[`${T}-collapsed`]:!!C,[`${T}-has-trigger`]:c&&n!==null&&!A,[`${T}-below`]:!!v,[`${T}-zero-width`]:parseFloat(F)===0},r,N,M);return ve.createElement("aside",{className:_,...k,style:G,ref:t},ve.createElement("div",{className:`${T}-children`},i),c||v&&A?z:null)},B=ve.useMemo(()=>({siderCollapsed:C}),[C]);return P(ve.createElement(Ha.Provider,{value:B},w()))}),mm=Nz;var Ez=createContext({prefixCls:"",firstLevel:true,inlineCollapsed:false}),Wa=Ez;var Bz=e=>{let{prefixCls:t,className:o,dashed:r,...n}=e,{getPrefixCls:i}=ve.useContext(O),a=i("menu",t),l=Xi({[`${a}-item-divider-dashed`]:!!r},o);return ve.createElement(Divider,{className:l,...n})},fm=Bz;var Az=e=>{let{className:t,children:o,icon:r,title:n,danger:i,extra:a}=e,{prefixCls:l,firstLevel:s,direction:c,disableMenuItemTitleTooltip:p,inlineCollapsed:m}=ve.useContext(Wa),d=b=>{let C=o?.[0],S=ve.createElement("span",{className:Xi(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!a||a===0})},o);return (!r||ve.isValidElement(o)&&o.type==="span")&&o&&b&&s&&typeof C=="string"?ve.createElement("div",{className:`${l}-inline-collapsed-noicon`},C.charAt(0)):S},{siderCollapsed:f}=ve.useContext(Ha),u=n;typeof n>"u"?u=s?o:"":n===false&&(u="");let g={title:u};!f&&!m&&(g.title=null,g.open=false);let y=H0(o).length,h=ve.createElement(Item,{...vv(e,["title","icon","danger"]),className:Xi({[`${l}-item-danger`]:i,[`${l}-item-only-child`]:(r?y+1:y)===1},t),title:typeof n=="string"?n:void 0},Oe(r,{className:Xi(ve.isValidElement(r)?r.props?.className:"",`${l}-item-icon`)}),d(m));return p||(h=ve.createElement(ot,{...g,placement:c==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`},h)),h},gm=Az;var Uy=ve.createContext(null),ym=ve.forwardRef((e,t)=>{let{children:o,...r}=e,n=ve.useContext(Uy),i=ve.useMemo(()=>({...n,...r}),[n,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=supportNodeRef(o),l=useComposeRef(t,a?getNodeRef(o):null);return ve.createElement(Uy.Provider,{value:i},ve.createElement(Gt,{space:true},a?ve.cloneElement(o,{ref:l}):o))}),qy=Uy;var Vz=e=>{let{componentCls:t,motionDurationSlow:o,horizontalLineHeight:r,colorSplit:n,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return {[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${unit(i)} ${a} ${n}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
|
|
114
114
|
> ${t}-item-active,
|
|
115
|
-
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},
|
|
116
|
-
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${unit(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${unit(t)})`}}}}),
|
|
115
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},S0=Vz;var jz=({componentCls:e,menuArrowOffset:t,calc:o})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
116
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${unit(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${unit(t)})`}}}}),v0=jz;var T0=e=>({...Fo(e)}),_z=(e,t)=>{let{componentCls:o,itemColor:r,itemSelectedColor:n,groupTitleColor:i,itemBg:a,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:c,activeBarWidth:p,activeBarBorderWidth:m,motionDurationSlow:d,motionEaseInOut:f,motionEaseOut:u,itemPaddingInline:g,motionDurationMid:y,itemHoverColor:h,lineType:b,colorSplit:C,itemDisabledColor:S,dangerItemColor:v,dangerItemHoverColor:x,dangerItemSelectedColor:$,dangerItemActiveBg:R,dangerItemSelectedBg:T,popupBg:P,itemHoverBg:N,itemActiveBg:M,menuSubMenuBg:E,horizontalItemSelectedColor:I,horizontalItemSelectedBg:w,horizontalItemBorderRadius:B,horizontalItemHoverBg:k}=e;return {[`${o}-${t}, ${o}-${t} > ${o}`]:{color:r,background:a,[`&${o}-root:focus-visible`]:{...T0(e)},[`${o}-item`]:{"&-group-title, &-extra":{color:i}},[`${o}-submenu-selected`]:{[`> ${o}-submenu-title`]:{color:n}},[`${o}-item, ${o}-submenu-title`]:{color:r,[`&:not(${o}-item-disabled):focus-visible`]:{...T0(e)}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${S} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:h}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:M}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:M}}},[`${o}-item-danger`]:{color:v,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:x}},[`&${o}-item:active`]:{background:R}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:n,[`&${o}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:s,[`&${o}-item-danger`]:{backgroundColor:T}},[`&${o}-submenu > ${o}`]:{backgroundColor:E},[`&${o}-popup > ${o}`]:{backgroundColor:P},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:P},[`&${o}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${o}-item, > ${o}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${unit(c)} solid transparent`,transition:`border-color ${d} ${f}`,content:'""'},"&:hover, &-active, &-open":{background:k,"&::after":{borderBottomWidth:c,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:w,"&:hover":{backgroundColor:w},"&::after":{borderBottomWidth:c,borderBottomColor:I}}}},[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${unit(m)} ${b} ${C}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:l},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${unit(p)} solid ${n}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${u}`,`opacity ${y} ${u}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${f}`,`opacity ${y} ${f}`].join(",")}}}}}},Ky=_z;var $0=e=>{let{componentCls:t,itemHeight:o,itemMarginInline:r,padding:n,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,p=e.calc(i).add(n).add(a).equal();return {[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:unit(o),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,
|
|
117
117
|
> ${t}-submenu > ${t}-submenu-title`]:{height:o,lineHeight:unit(o)},[`${t}-item-group-list ${t}-submenu-title,
|
|
118
|
-
${t}-submenu-title`]:{paddingInlineEnd:p}}},
|
|
118
|
+
${t}-submenu-title`]:{paddingInlineEnd:p}}},Uz=e=>{let{componentCls:t,iconCls:o,itemHeight:r,colorTextLightSolid:n,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:p,motionDurationFast:m,motionDurationSlow:d,paddingXS:f,boxShadowSecondary:u,collapsedWidth:g,collapsedIconSize:y}=e,h={height:r,lineHeight:unit(r),listStylePosition:"inside",listStyleType:"disc"};return [{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...$0(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...$0(e),boxShadow:u}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${unit(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${m} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:p,textAlign:"center"}}},[`> ${t}-item,
|
|
119
119
|
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
120
120
|
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
121
121
|
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${unit(e.calc(y).div(2).equal())} - ${unit(c)})`,textOverflow:"clip",[`
|
|
122
122
|
${t}-submenu-arrow,
|
|
123
123
|
${t}-submenu-expand-icon
|
|
124
|
-
`]:{opacity:0},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:y,lineHeight:unit(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:n}},[`${t}-item-group-title`]:{...
|
|
125
|
-
&-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${unit(g)})`},"&::after":{transform:`rotate(45deg) translateX(${unit(e.calc(g).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${unit(e.calc(u).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${unit(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${unit(g)})`}}}},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},
|
|
124
|
+
`]:{opacity:0},[`${t}-item-icon, ${o}`]:{margin:0,fontSize:y,lineHeight:unit(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:n}},[`${t}-item-group-title`]:{...qe,paddingInline:f}}}]},P0=Uz;var I0=e=>{let{componentCls:t,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:n,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=e;return {[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding calc(${o} + 0.1s) ${n}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${o} ${n}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${o} ${n}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:{...Oo()},[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},w0=e=>{let{componentCls:t,motionDurationSlow:o,motionEaseInOut:r,borderRadius:n,menuArrowSize:i,menuArrowOffset:a}=e;return {[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${o} ${r}, opacity ${o}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:n,transition:[`background ${o} ${r}`,`transform ${o} ${r}`,`top ${o} ${r}`,`color ${o} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${unit(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${unit(a)})`}}}}},qz=e=>{let{antCls:t,componentCls:o,fontSize:r,motionDurationSlow:n,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:p,zIndexPopup:m,borderRadiusLG:d,subMenuItemBorderRadius:f,menuArrowSize:u,menuArrowOffset:g,lineType:y,groupTitleLineHeight:h,groupTitleFontSize:b}=e;return [{"":{[o]:{...no(),"&-hidden":{display:"none"}}},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:{...ae(e),...no(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${n} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${unit(l)} ${unit(s)}`,fontSize:b,lineHeight:h,transition:`all ${n}`},[`&-horizontal ${o}-submenu`]:{transition:[`border-color ${n} ${a}`,`background ${n} ${a}`].join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${n} ${a}`,`background ${n} ${a}`,`padding ${i} ${a}`].join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:[`background ${n} ${a}`,`padding ${n} ${a}`].join(",")},[`${o}-title-content`]:{transition:`color ${n}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${o}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding,fontSize:e.fontSizeSM}},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:y,borderWidth:0,borderTopWidth:p,marginBlock:p,padding:0,"&-dashed":{borderStyle:"dashed"}},...I0(e),[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${unit(e.calc(r).mul(2).equal())} ${unit(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:m,borderRadius:d,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${o}`]:{borderRadius:d,...I0(e),...w0(e),[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:f},[`${o}-submenu-title::after`]:{transition:`transform ${n} ${a}`}}},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}},...w0(e),[`&-inline-collapsed ${o}-submenu-arrow,
|
|
125
|
+
&-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${unit(g)})`},"&::after":{transform:`rotate(45deg) translateX(${unit(e.calc(g).mul(-1).equal())})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(${unit(e.calc(u).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${unit(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${unit(g)})`}}}},{[`${t}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]},Xz=e=>{let{colorPrimary:t,colorError:o,colorTextDisabled:r,colorErrorBg:n,colorText:i,colorTextDescription:a,colorBgContainer:l,colorFillAlter:s,colorFillContent:c,lineWidth:p,lineWidthBold:m,controlItemBgActive:d,colorBgTextHover:f,controlHeightLG:u,lineHeight:g,colorBgElevated:y,marginXXS:h,padding:b,fontSize:C,controlHeightSM:S,fontSizeLG:v,colorTextLightSolid:x,colorErrorHover:$}=e,R=e.activeBarWidth??0,T=e.activeBarBorderWidth??p,P=e.itemMarginInline??e.marginXXS,N=new TinyColor(x).setAlpha(.65).toRgbString();return {dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:i,itemColor:i,colorItemTextHover:i,itemHoverColor:i,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:f,itemHoverBg:f,colorItemBgActive:c,itemActiveBg:d,colorSubItemBg:s,subMenuItemBg:s,colorItemBgSelected:d,itemSelectedBg:d,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:R,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:n,dangerItemActiveBg:n,colorDangerItemBgSelected:n,dangerItemSelectedBg:n,itemMarginInline:P,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:u,groupTitleLineHeight:g,collapsedWidth:u*2,popupBg:y,itemMarginBlock:h,itemPaddingInline:b,horizontalLineHeight:`${u*1.15}px`,iconSize:C,iconMarginInlineEnd:S-C,collapsedIconSize:v,groupTitleFontSize:C,darkItemDisabledColor:new TinyColor(x).setAlpha(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:t,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:x,darkDangerItemHoverColor:$,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:o,itemWidth:R?`calc(100% + ${T}px)`:`calc(100% - ${P*2}px)`}},N0=(e,t=e,o=true)=>oe("Menu",n=>{let{colorBgElevated:i,controlHeightLG:a,fontSize:l,darkItemColor:s,darkDangerItemColor:c,darkItemBg:p,darkSubMenuItemBg:m,darkItemSelectedColor:d,darkItemSelectedBg:f,darkDangerItemSelectedBg:u,darkItemHoverBg:g,darkGroupTitleColor:y,darkItemHoverColor:h,darkItemDisabledColor:b,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:v,popupBg:x,darkPopupBg:$}=n,R=n.calc(l).div(7).mul(5).equal(),T=mergeToken(n,{menuArrowSize:R,menuHorizontalHeight:n.calc(a).mul(1.15).equal(),menuArrowOffset:n.calc(R).mul(.25).equal(),menuSubMenuBg:i,calc:n.calc,popupBg:x}),P=mergeToken(T,{itemColor:s,itemHoverColor:h,groupTitleColor:y,itemSelectedColor:d,itemBg:p,popupBg:$,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:f,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:b,dangerItemColor:c,dangerItemHoverColor:C,dangerItemSelectedColor:S,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:m,horizontalItemSelectedColor:d,horizontalItemSelectedBg:f});return [qz(T),S0(T),P0(T),Ky(T,"light"),Ky(P,"dark"),v0(T),qr(T),$o(T,"slide-up"),$o(T,"slide-down"),sr(T,"zoom-big")]},Xz,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:o,unitless:{groupTitleLineHeight:true}})(e,t);var Qz=e=>{let{popupClassName:t,icon:o,title:r,theme:n}=e,i=ve.useContext(Wa),{prefixCls:a,inlineCollapsed:l,theme:s}=i,c=useFullPath(),p;if(!o)p=l&&!c.length&&r&&typeof r=="string"?ve.createElement("div",{className:`${a}-inline-collapsed-noicon`},r.charAt(0)):ve.createElement("span",{className:`${a}-title-content`},r);else {let f=ve.isValidElement(r)&&r.type==="span";p=ve.createElement(ve.Fragment,null,Oe(o,{className:Xi(ve.isValidElement(o)?o.props?.className:"",`${a}-item-icon`)}),f?r:ve.createElement("span",{className:`${a}-title-content`},r));}let m=ve.useMemo(()=>({...i,firstLevel:false}),[i]),[d]=dt("Menu");return ve.createElement(Wa.Provider,{value:m},ve.createElement(SubMenu,{...vv(e,["icon"]),title:p,popupClassName:Xi(a,t,`${a}-${n||s}`),popupStyle:{zIndex:d,...e.popupStyle}}))},Cm=Qz;function Yy(e){return e===null||e===false}var nA={item:gm,submenu:Cm,divider:fm},iA=forwardRef((e,t)=>{let o=ve.useContext(qy),r=o||{},{getPrefixCls:n,getPopupContainer:i,direction:a,menu:l}=ve.useContext(O),s=n(),{prefixCls:c,className:p,style:m,theme:d="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:u,inlineCollapsed:g,siderCollapsed:y,rootClassName:h,mode:b,selectable:C,onClick:S,overflowedIndicatorPopupClassName:v,...x}=e,$=vv(x,["collapsedWidth"]);r.validator?.({mode:b});let R=yf((...L)=>{S?.(...L),r.onClick?.();}),T=r.mode||b,P=C??r.selectable,N=g??y,M={horizontal:{motionName:`${s}-slide-up`},inline:Ur(s),other:{motionName:`${s}-zoom-big`}},E=n("menu",c||r.prefixCls),I=$e(E),[w,B,k]=N0(E,I,!o),D=Xi(`${E}-${d}`,l?.className,p),F=ve.useMemo(()=>{if(typeof f=="function"||Yy(f))return f||null;if(typeof r.expandIcon=="function"||Yy(r.expandIcon))return r.expandIcon||null;if(typeof l?.expandIcon=="function"||Yy(l?.expandIcon))return l?.expandIcon||null;let L=f??r?.expandIcon??l?.expandIcon;return Oe(L,{className:Xi(`${E}-submenu-expand-icon`,ve.isValidElement(L)?L.props?.className:void 0)})},[f,r?.expandIcon,l?.expandIcon,E]),A=ve.useMemo(()=>({prefixCls:E,inlineCollapsed:N||false,direction:a,firstLevel:true,theme:d,mode:T,disableMenuItemTitleTooltip:u}),[E,N,a,u,d]);return w(ve.createElement(qy.Provider,{value:null},ve.createElement(Wa.Provider,{value:A},ve.createElement(tA,{getPopupContainer:i,overflowedIndicator:ve.createElement(eA,null),overflowedIndicatorPopupClassName:Xi(E,`${E}-${d}`,v),mode:T,selectable:P,onClick:R,...$,inlineCollapsed:N,style:{...l?.style,...m},className:D,prefixCls:E,direction:a,defaultMotions:M,expandIcon:F,ref:t,rootClassName:Xi(h,B,r.rootClassName,k,I),_internalComponents:nA}))))}),E0=iA;var Lc=forwardRef((e,t)=>{let o=useRef(null),r=ve.useContext(Ha);return useImperativeHandle(t,()=>({menu:o.current,focus:n=>{o.current?.focus(n);}})),ve.createElement(E0,{ref:o,...e,...r})});Lc.Item=gm;Lc.SubMenu=Cm;Lc.Divider=fm;Lc.ItemGroup=ItemGroup;var Hc=Lc;var pA=e=>{let{componentCls:t,menuCls:o,colorError:r,colorTextLightSolid:n}=e,i=`${o}-item`;return {[`${t}, ${t}-menu-submenu`]:{[`${o} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:n,backgroundColor:r}}}}}},k0=pA;var dA=e=>{let{componentCls:t,menuCls:o,zIndexPopup:r,dropdownArrowDistance:n,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:p,dropdownEdgeChildPadding:m,colorTextDisabled:d,fontSizeIcon:f,controlPaddingHorizontal:u,colorBgElevated:g}=e;return [{[t]:{position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(n).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:f},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
126
126
|
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
127
127
|
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
|
|
128
128
|
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
|
|
129
129
|
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
|
|
130
|
-
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:
|
|
130
|
+
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Bi},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
|
|
131
131
|
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
|
|
132
132
|
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
|
|
133
133
|
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
|
|
134
134
|
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
|
|
135
|
-
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:
|
|
135
|
+
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Fi},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
136
136
|
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
|
|
137
|
-
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:
|
|
137
|
+
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Oi},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
|
|
138
138
|
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
|
|
139
|
-
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:
|
|
139
|
+
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:zi}}},ei(e,g,{arrowPlacement:{top:true,bottom:true}}),{[`${t} ${o}`]:{position:"relative",margin:0},[`${o}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...ae(e),[o]:{padding:m,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...$t(e),"&:empty":{padding:0,boxShadow:"none"},[`${o}-item-group-title`]:{padding:`${unit(c)} ${unit(u)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${o}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${o}-item-icon`]:{minWidth:p,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${o}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${s}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${o}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${o}-item, ${o}-submenu-title`]:{display:"flex",margin:0,padding:`${unit(c)} ${unit(u)}`,color:e.colorText,fontWeight:"normal",fontSize:p,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...$t(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:d,cursor:"not-allowed","&:hover":{color:d,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${unit(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:f,fontStyle:"normal"}}},[`${o}-item-group-list`]:{margin:`0 ${unit(e.marginXS)}`,padding:0,listStyle:"none"},[`${o}-submenu-title`]:{paddingInlineEnd:e.calc(u).add(e.fontSizeSM).equal()},[`${o}-submenu-vertical`]:{position:"relative"},[`${o}-submenu${o}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:d,backgroundColor:g,cursor:"not-allowed"}},[`${o}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[$o(e,"slide-up"),$o(e,"slide-down"),gn(e,"move-up"),gn(e,"move-down"),sr(e,"zoom-big")]]},mA=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...xn({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...Sn(e)}),D0=oe("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:o,paddingXXS:r,componentCls:n}=e,i=mergeToken(e,{menuCls:`${n}-menu`,dropdownArrowDistance:e.calc(o).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return [dA(i),k0(i)]},mA,{resetStyle:false});var Qy=e=>{let {menu:t,arrow:o,prefixCls:r,children:n,trigger:i,disabled:a,dropdownRender:l,getPopupContainer:s,overlayClassName:c,rootClassName:p,overlayStyle:m,open:d,onOpenChange:f,visible:u,onVisibleChange:g,mouseEnterDelay:y=.15,mouseLeaveDelay:h=.1,autoAdjustOverflow:b=true,placement:C="",overlay:S,transitionName:v}=e,{getPopupContainer:x,getPrefixCls:$,direction:R,dropdown:T}=ve.useContext(O);Tt();let N=ve.useMemo(()=>{let J=$();return v!==void 0?v:C.includes("top")?`${J}-slide-down`:`${J}-slide-up`},[$,C,v]),M=ve.useMemo(()=>C?C.includes("Center")?C.slice(0,C.indexOf("Center")):C:R==="rtl"?"bottomRight":"bottomLeft",[C,R]),E=$("dropdown",r),I=$e(E),[w,B,k]=D0(E,I),[,D]=De(),F=ve.Children.only(p0(n)?ve.createElement("span",null,n):n),A=Oe(F,{className:Xi(`${E}-trigger`,{[`${E}-rtl`]:R==="rtl"},F.props.className),disabled:F.props.disabled??a}),L=a?[]:i,q=!!L?.includes("contextMenu"),[V,z]=s$(false,{value:d??u}),G=yf(J=>{f?.(J,{source:"trigger"}),g?.(J),z(J);}),_=Xi(c,p,B,k,I,T?.className,{[`${E}-rtl`]:R==="rtl"}),Z=za({arrowPointAtCenter:typeof o=="object"&&o.pointAtCenter,autoAdjustOverflow:b,offset:D.marginXXS,arrowWidth:o?D.sizePopupArrow:0,borderRadius:D.borderRadius}),K=ve.useCallback(()=>{t?.selectable&&t?.multiple||(f?.(false,{source:"menu"}),z(false));},[t?.selectable,t?.multiple]),Q=()=>{let J;return t?.items?J=ve.createElement(Hc,{...t}):typeof S=="function"?J=S():J=S,l&&(J=l(J)),J=ve.Children.only(typeof J=="string"?ve.createElement("span",null,J):J),ve.createElement(ym,{prefixCls:`${E}-menu`,rootClassName:Xi(k,I),expandIcon:ve.createElement("span",{className:`${E}-menu-submenu-arrow`},ve.createElement(C0,{className:`${E}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:false,onClick:K,validator:({mode:te})=>{}},J)},[ee,j]=dt("Dropdown",m?.zIndex),Y=ve.createElement(fA,{alignPoint:q,...vv(e,["rootClassName"]),mouseEnterDelay:y,mouseLeaveDelay:h,visible:V,builtinPlacements:Z,arrow:!!o,overlayClassName:_,prefixCls:E,getPopupContainer:s||x,transitionName:N,trigger:L,overlay:Q,placement:M,onVisibleChange:G,overlayStyle:{...T?.style,...m,zIndex:ee}},A);return ee&&(Y=ve.createElement(Nr.Provider,{value:j},Y)),w(Y)},hA=Xt(Qy,"align",void 0,"dropdown",e=>e),bA=e=>ve.createElement(hA,{...e},ve.createElement("span",null));Qy._InternalPanelDoNotUseOrYouWillBeFired=bA;var hs=Qy;var B0=({children:e})=>{let{getPrefixCls:t}=ve.useContext(O),o=t("breadcrumb");return ve.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},e===""?e:e||"/")};B0.__ANT_BREADCRUMB_SEPARATOR=true;var Wc=B0;function xA(e,t){if(e.title===void 0||e.title===null)return null;let o=Object.keys(t).join("|");return typeof e.title=="object"?e.title:String(e.title).replace(new RegExp(`:(${o})`,"g"),(r,n)=>t[n]||r)}function eC(e,t,o,r){if(o==null)return null;let{className:n,onClick:i,...a}=t,l={...rB(a,{data:true,aria:true}),onClick:i};return r!==void 0?ve.createElement("a",{...l,className:Xi(`${e}-link`,n),href:r},o):ve.createElement("span",{...l,className:Xi(`${e}-link`,n)},o)}function tC(e,t){return (r,n,i,a,l)=>{if(t)return t(r,n,i,a);let s=xA(r,n);return eC(e,r,s,l)}}var oC=e=>{let{prefixCls:t,separator:o="/",children:r,menu:n,overlay:i,dropdownProps:a,href:l}=e,c=(p=>{if(n||i){let m={...a};if(n){let{items:d,...f}=n||{};m.menu={...f,items:d?.map(({key:u,title:g,label:y,path:h,...b},C)=>{let S=y??g;return h&&(S=ve.createElement("a",{href:`${l}${h}`},S)),{...b,key:u??C,label:S}})};}else i&&(m.overlay=i);return ve.createElement(hs,{placement:"bottom",...m},ve.createElement("span",{className:`${t}-overlay-link`},p,ve.createElement(oF,null)))}return p})(r);return c!=null?ve.createElement(ve.Fragment,null,ve.createElement("li",null,c),o&&ve.createElement(Wc,null,o)):null},F0=e=>{let{prefixCls:t,children:o,href:r,...n}=e,{getPrefixCls:i}=ve.useContext(O),a=i("breadcrumb",t);return ve.createElement(oC,{...n,prefixCls:a},eC(a,n,o,r))};F0.__ANT_BREADCRUMB_ITEM=true;var z0=F0;var TA=e=>{let{componentCls:t,iconCls:o,calc:r}=e;return {[t]:{...ae(e),color:e.itemColor,fontSize:e.fontSize,[o]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:{color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${unit(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:r(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover},...$t(e)},"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`
|
|
140
140
|
> ${o} + span,
|
|
141
141
|
> ${o} + a
|
|
142
|
-
`]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${unit(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${o}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}}}
|
|
143
|
-
&:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:{...wo(e)},[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:h(1).mul(n).div(-2).equal({unit:true}),marginInlineStart:h(1).mul(n).div(-2).equal({unit:true}),backgroundColor:y,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:p,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:S,"&::after":{transform:`scale(${e.calc(e.dotSize).div(n).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:d,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:u}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${h(v).div(n).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}}}},QF=e=>{let{buttonColor:t,controlHeight:o,componentCls:r,lineWidth:n,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:c,fontSize:p,buttonBg:d,fontSizeLG:m,controlHeightLG:f,controlHeightSM:u,paddingXS:g,borderRadius:y,borderRadiusSM:S,borderRadiusLG:h,buttonCheckedBg:C,buttonSolidCheckedColor:b,colorTextDisabled:v,colorBgContainerDisabled:x,buttonCheckedBgDisabled:T,buttonCheckedColorDisabled:$,colorPrimary:R,colorPrimaryHover:P,colorPrimaryActive:I,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:E,buttonSolidCheckedActiveBg:w,calc:N}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:o,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:p,lineHeight:unit(N(o).sub(N(n).mul(2)).equal()),background:d,border:`${unit(n)} ${i} ${a}`,borderBlockStartWidth:N(n).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:n,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:N(n).mul(-1).equal(),insetInlineStart:N(n).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:n,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${unit(n)} ${i} ${a}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${r}-group-large &`]:{height:f,fontSize:m,lineHeight:unit(N(f).sub(N(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},[`${r}-group-small &`]:{height:u,paddingInline:N(g).sub(n).equal(),paddingBlock:0,lineHeight:unit(N(u).sub(N(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:R},"&:has(:focus-visible)":{...wo(e)},[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:R,background:C,borderColor:R,"&::before":{backgroundColor:R},"&:first-child":{borderColor:R},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:b,background:M,borderColor:M,"&:hover":{color:b,background:E,borderColor:E},"&:active":{color:b,background:w,borderColor:w}},"&-disabled":{color:v,backgroundColor:x,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:v,backgroundColor:x,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:$,backgroundColor:T,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},JF=e=>{let{wireframe:t,padding:o,marginXS:r,lineWidth:n,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:p,colorPrimary:d,colorPrimaryHover:m,colorPrimaryActive:f,colorWhite:u}=e,g=4,y=i,S=t?y-g*2:y-(g+n)*2;return {radioSize:y,dotSize:S,dotColorDisabled:s,buttonSolidCheckedColor:p,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:f,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:o-n,wrapperMarginInlineEnd:r,radioColor:t?d:u,radioBgColor:t?l:d}},Wd=te("Radio",e=>{let{controlOutline:t,controlOutlineWidth:o}=e,r=`0 0 0 ${unit(o)} ${t}`,i=mergeToken(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [YF(i),ZF(i),QF(i)]},JF,{unitless:{radioSize:true,dotSize:true}});var oO=(e,t)=>{let o=ue.useContext(Fv),r=ue.useContext(fy),{getPrefixCls:n,direction:i,radio:a}=ue.useContext(B),l=ue.useRef(null),s=composeRef(t,l),{isFormItemInput:c}=ue.useContext(ke),p=w=>{e.onChange?.(w),o?.onChange?.(w);},{prefixCls:d,className:m,rootClassName:f,children:u,style:g,title:y,...S}=e,h=n("radio",d),C=(o?.optionType||r)==="button",b=C?`${h}-button`:h,v=de(h),[x,T,$]=Wd(h,v),R={...S},P=ue.useContext(Be);o&&(R.name=o.name,R.onChange=p,R.checked=e.value===o.value,R.disabled=R.disabled??o.disabled),R.disabled=R.disabled??P;let I=ki(`${b}-wrapper`,{[`${b}-wrapper-checked`]:R.checked,[`${b}-wrapper-disabled`]:R.disabled,[`${b}-wrapper-rtl`]:i==="rtl",[`${b}-wrapper-in-form-item`]:c,[`${b}-wrapper-block`]:!!o?.block},a?.className,m,f,T,$,v),[M,E]=yc(R.onClick);return x(ue.createElement(rn,{component:"Radio",disabled:R.disabled},ue.createElement("label",{className:I,style:{...a?.style,...g},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:M},ue.createElement(eO,{...R,className:ki(R.className,{[fi]:!C}),type:"radio",prefixCls:b,ref:s,onClick:E}),u!==void 0?ue.createElement("span",null,u):null)))},rO=ue.forwardRef(oO),Ia=rO;var lO=ue.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=ue.useContext(B),{prefixCls:n,className:i,rootClassName:a,options:l,buttonStyle:s="outline",disabled:c,children:p,size:d,style:m,id:f,optionType:u,name:g,defaultValue:y,value:S,block:h=false,onChange:C,onMouseEnter:b,onMouseLeave:v,onFocus:x,onBlur:T}=e,[$,R]=e0(y,{value:S}),P=ue.useCallback(L=>{let _=$,H=L.target.value;"value"in e||R(H),H!==_&&C?.(L);},[$,R,C]),I=o("radio",n),M=`${I}-group`,E=de(I),[w,N,A]=Wd(I,E),k=p;l&&l.length>0&&(k=l.map(L=>typeof L=="string"||typeof L=="number"?ue.createElement(Ia,{key:L.toString(),prefixCls:I,disabled:c,value:L,checked:$===L},L):ue.createElement(Ia,{key:`radio-group-value-options-${L.value}`,prefixCls:I,disabled:L.disabled||c,value:L.value,checked:$===L.value,title:L.title,style:L.style,id:L.id,required:L.required},L.label)));let D=Te(d),F=ki(M,`${M}-${s}`,{[`${M}-${D}`]:D,[`${M}-rtl`]:r==="rtl",[`${M}-block`]:h},i,a,N,A,E),O=ue.useMemo(()=>({onChange:P,value:$,disabled:c,name:g,optionType:u,block:h}),[P,$,c,g,u,h]);return w(ue.createElement("div",{...xk(e,{aria:true,data:true}),className:F,style:m,onMouseEnter:b,onMouseLeave:v,onFocus:x,onBlur:T,id:f,ref:t},ue.createElement(Av,{value:O},k)))}),Gd=ue.memo(lO);var sO=(e,t)=>{let{getPrefixCls:o}=ue.useContext(B),{prefixCls:r,...n}=e,i=o("radio",r);return ue.createElement(Ov,{value:"button"},ue.createElement(Ia,{prefixCls:i,...n,type:"radio",ref:t}))},Cc=ue.forwardRef(sO);var Vd=Ia;Vd.Button=Cc;Vd.Group=Gd;Vd.__ANT_RADIO=true;var Na=Vd;var dO=10,mO=20;function uO(e){let{fullscreen:t,validRange:o,generateConfig:r,locale:n,prefixCls:i,value:a,onChange:l,divRef:s}=e,c=r.getYear(a||r.getNow()),p=c-dO,d=p+mO;o&&(p=r.getYear(o[0]),d=r.getYear(o[1])+1);let m=n&&n.year==="\u5E74"?"\u5E74":"",f=[];for(let u=p;u<d;u++)f.push({label:`${u}${m}`,value:u});return ue.createElement(Mo,{size:t?void 0:"small",options:f,value:c,className:`${i}-year-select`,onChange:u=>{let g=r.setYear(a,u);if(o){let[y,S]=o,h=r.getYear(g),C=r.getMonth(g);h===r.getYear(S)&&C>r.getMonth(S)&&(g=r.setMonth(g,r.getMonth(S))),h===r.getYear(y)&&C<r.getMonth(y)&&(g=r.setMonth(g,r.getMonth(y)));}l(g);},getPopupContainer:()=>s.current})}function fO(e){let{prefixCls:t,fullscreen:o,validRange:r,value:n,generateConfig:i,locale:a,onChange:l,divRef:s}=e,c=i.getMonth(n||i.getNow()),p=0,d=11;if(r){let[u,g]=r,y=i.getYear(n);i.getYear(g)===y&&(d=i.getMonth(g)),i.getYear(u)===y&&(p=i.getMonth(u));}let m=a.shortMonths||i.locale.getShortMonths(a.locale),f=[];for(let u=p;u<=d;u+=1)f.push({label:m[u],value:u});return ue.createElement(Mo,{size:o?void 0:"small",className:`${t}-month-select`,value:c,options:f,onChange:u=>{l(i.setMonth(n,u));},getPopupContainer:()=>s.current})}function gO(e){let{prefixCls:t,locale:o,mode:r,fullscreen:n,onModeChange:i}=e;return ue.createElement(Gd,{onChange:({target:{value:a}})=>{i(a);},value:r,size:n?void 0:"small",className:`${t}-mode-switch`},ue.createElement(Cc,{value:"month"},o.month),ue.createElement(Cc,{value:"year"},o.year))}function yO(e){let{prefixCls:t,fullscreen:o,mode:r,onChange:n,onModeChange:i}=e,a=ue.useRef(null),l=useContext(ke),s=useMemo(()=>({...l,isFormItemInput:false}),[l]),c={...e,fullscreen:o,divRef:a};return ue.createElement("div",{className:`${t}-header`,ref:a},ue.createElement(ke.Provider,{value:s},ue.createElement(uO,{...c,onChange:p=>{n(p,"year");}}),r==="month"&&ue.createElement(fO,{...c,onChange:p=>{n(p,"month");}})),ue.createElement(gO,{...c,onModeChange:i}))}var Hv=yO;function wr(e){return mergeToken(e,{inputAffixPadding:e.paddingXXS})}var Nr=e=>{let{controlHeight:t,fontSize:o,lineHeight:r,lineWidth:n,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:p,controlPaddingHorizontal:d,colorFillAlter:m,colorPrimaryHover:f,colorPrimary:u,controlOutlineWidth:g,controlOutline:y,colorErrorOutline:S,colorWarningOutline:h,colorBgContainer:C}=e;return {paddingBlock:Math.max(Math.round((t-o*r)/2*10)/10-n,0),paddingBlockSM:Math.max(Math.round((i-o*r)/2*10)/10-n,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-n,paddingInline:c-n,paddingInlineSM:p-n,paddingInlineLG:d-n,addonBg:m,activeBorderColor:u,hoverBorderColor:f,activeShadow:`0 0 0 ${g}px ${y}`,errorActiveShadow:`0 0 0 ${g}px ${S}`,warningActiveShadow:`0 0 0 ${g}px ${h}`,hoverBg:C,activeBg:C,inputFontSize:o,inputFontSizeLG:l,inputFontSizeSM:o}};var CO=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ma=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...CO(mergeToken(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),_d=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Wv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{..._d(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Ni=(e,t)=>({"&-outlined":{..._d(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Ma(e)},...Wv(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...Wv(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),Gv=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),jd=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...Gv(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...Gv(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Ma(e)}}}}),Mi=(e,t)=>{let{componentCls:o}=e;return {"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${o}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},jv=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Vv=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...jv(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),Ei=(e,t)=>({"&-filled":{...jv(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Ma(e)},...Vv(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...Vv(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),_v=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Ud=e=>({"&-filled":{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},..._v(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),..._v(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}});var Ea=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var Uv=e=>{let{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:n}=e;return {padding:`${unit(t)} ${unit(n)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},qd=e=>({padding:`${unit(e.paddingBlockSM)} ${unit(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),un=e=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit(e.paddingBlock)} ${unit(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Ea(e.colorTextPlaceholder),"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":{...Uv(e)},"&-sm":{...qd(e)},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),gy=e=>{let{componentCls:t,antCls:o}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...Uv(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...qd(e)},[`&-lg ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${unit(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${unit(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{[`${o}-select-selector`]:{backgroundColor:"inherit",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${o}-cascader-picker`]:{margin:`-9px ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...Zt(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
142
|
+
`]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${unit(e.paddingXXS)}`,marginInline:r(e.marginXXS).mul(-1).equal(),[`> ${o}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}}},$A=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}),L0=oe("Breadcrumb",e=>{let t=mergeToken(e,{});return TA(t)},$A);function RA(e){let{breadcrumbName:t,children:o,...r}=e,n={title:t,...r};return o&&(n.menu={items:o.map(({breadcrumbName:i,...a})=>({...a,title:i}))}),n}function rC(e,t){return useMemo(()=>e||(t?t.map(RA):null),[e,t])}var NA=(e,t)=>{if(t===void 0)return t;let o=(t||"").replace(/^\//,"");return Object.keys(e).forEach(r=>{o=o.replace(`:${r}`,e[r]);}),o},nC=e=>{let{prefixCls:t,separator:o="/",style:r,className:n,rootClassName:i,routes:a,items:l,children:s,itemRender:c,params:p={},...m}=e,{getPrefixCls:d,direction:f,breadcrumb:u}=ve.useContext(O),g,y=d("breadcrumb",t),[h,b,C]=L0(y),S=rC(l,a),v=tC(y,c);if(S&&S.length>0){let R=[],T=l||a;g=S.map((P,N)=>{let{path:M,key:E,type:I,menu:w,overlay:B,onClick:k,className:D,separator:F,dropdownProps:A}=P,L=NA(p,M);L!==void 0&&R.push(L);let q=E??N;if(I==="separator")return ve.createElement(Wc,{key:q},F);let V={},z=N===S.length-1;w?V.menu=w:B&&(V.overlay=B);let{href:G}=P;return R.length&&L!==void 0&&(G=`#/${R.join("/")}`),ve.createElement(oC,{key:q,...V,...rB(P,{data:true,aria:true}),className:D,dropdownProps:A,href:G,separator:z?"":o,onClick:k,prefixCls:y},v(P,p,T,R,G))});}else if(s){let R=H0(s).length;g=H0(s).map((T,P)=>{if(!T)return T;let N=P===R-1;return Oe(T,{separator:N?"":o,key:P})});}let x=Xi(y,u?.className,{[`${y}-rtl`]:f==="rtl"},n,i,b,C),$={...u?.style,...r};return h(ve.createElement("nav",{className:x,style:$,...m},ve.createElement("ol",null,g)))};nC.Item=z0;nC.Separator=Wc;var W0=nC;var MA=W0;var G0=ve.createContext(null),V0=G0.Provider,j0=G0,aC=ve.createContext(null),_0=aC.Provider;function Gc(e){let t=ve__default.useRef(null),o=()=>{$S.cancel(t.current),t.current=null;};return [()=>{o(),t.current=$S(()=>{t.current=null;});},i=>{t.current&&(i.stopPropagation(),o()),e?.(i);}]}var kA=e=>{let{componentCls:t,antCls:o}=e,r=`${t}-group`;return {[r]:{...ae(e),display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${o}-badge ${o}-badge-count`]:{zIndex:1},[`> ${o}-badge:not(:first-child) > ${o}-button-wrapper`]:{borderInlineStart:"none"}}}},DA=e=>{let{componentCls:t,wrapperMarginInlineEnd:o,colorPrimary:r,radioSize:n,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:s,colorBorder:c,lineWidth:p,colorBgContainerDisabled:m,colorTextDisabled:d,paddingXS:f,dotColorDisabled:u,lineType:g,radioColor:y,radioBgColor:h,calc:b}=e,C=`${t}-inner`,v=b(n).sub(b(4).mul(2)),x=b(1).mul(n).equal({unit:true});return {[`${t}-wrapper`]:{...ae(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:o,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${unit(p)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:{...ae(e),position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"},[`${t}-wrapper:hover &,
|
|
143
|
+
&:hover ${C}`]:{borderColor:r},[`${t}-input:focus-visible + ${C}`]:{...Fo(e)},[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(n).div(-2).equal({unit:true}),marginInlineStart:b(1).mul(n).div(-2).equal({unit:true}),backgroundColor:y,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:s,borderColor:c,borderStyle:"solid",borderWidth:p,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:r,backgroundColor:h,"&::after":{transform:`scale(${e.calc(e.dotSize).div(n).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:m,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:u}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:d,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${b(v).div(n).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}}}},BA=e=>{let{buttonColor:t,controlHeight:o,componentCls:r,lineWidth:n,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:s,buttonPaddingInline:c,fontSize:p,buttonBg:m,fontSizeLG:d,controlHeightLG:f,controlHeightSM:u,paddingXS:g,borderRadius:y,borderRadiusSM:h,borderRadiusLG:b,buttonCheckedBg:C,buttonSolidCheckedColor:S,colorTextDisabled:v,colorBgContainerDisabled:x,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:R,colorPrimary:T,colorPrimaryHover:P,colorPrimaryActive:N,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:E,buttonSolidCheckedActiveBg:I,calc:w}=e;return {[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:o,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:p,lineHeight:unit(w(o).sub(w(n).mul(2)).equal()),background:m,border:`${unit(n)} ${i} ${a}`,borderBlockStartWidth:w(n).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:n,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:w(n).mul(-1).equal(),insetInlineStart:w(n).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:n,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${unit(n)} ${i} ${a}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${r}-group-large &`]:{height:f,fontSize:d,lineHeight:unit(w(f).sub(w(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:u,paddingInline:w(g).sub(n).equal(),paddingBlock:0,lineHeight:unit(w(u).sub(w(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:T},"&:has(:focus-visible)":{...Fo(e)},[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:T,background:C,borderColor:T,"&::before":{backgroundColor:T},"&:first-child":{borderColor:T},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:N,borderColor:N,"&::before":{backgroundColor:N}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:M,borderColor:M,"&:hover":{color:S,background:E,borderColor:E},"&:active":{color:S,background:I,borderColor:I}},"&-disabled":{color:v,backgroundColor:x,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:v,backgroundColor:x,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:R,backgroundColor:$,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},OA=e=>{let{wireframe:t,padding:o,marginXS:r,lineWidth:n,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:s,controlItemBgActiveDisabled:c,colorTextLightSolid:p,colorPrimary:m,colorPrimaryHover:d,colorPrimaryActive:f,colorWhite:u}=e,g=4,y=i,h=t?y-g*2:y-(g+n)*2;return {radioSize:y,dotSize:h,dotColorDisabled:s,buttonSolidCheckedColor:p,buttonSolidCheckedBg:m,buttonSolidCheckedHoverBg:d,buttonSolidCheckedActiveBg:f,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:s,buttonPaddingInline:o-n,wrapperMarginInlineEnd:r,radioColor:t?m:u,radioBgColor:t?l:m}},xm=oe("Radio",e=>{let{controlOutline:t,controlOutlineWidth:o}=e,r=`0 0 0 ${unit(o)} ${t}`,i=mergeToken(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return [kA(i),DA(i),BA(i)]},OA,{unitless:{radioSize:true,dotSize:true}});var AA=(e,t)=>{let o=ve.useContext(j0),r=ve.useContext(aC),{getPrefixCls:n,direction:i,radio:a}=ve.useContext(O),l=ve.useRef(null),s=composeRef(t,l),{isFormItemInput:c}=ve.useContext(Le),p=I=>{e.onChange?.(I),o?.onChange?.(I);},{prefixCls:m,className:d,rootClassName:f,children:u,style:g,title:y,...h}=e,b=n("radio",m),C=(o?.optionType||r)==="button",S=C?`${b}-button`:b,v=$e(b),[x,$,R]=xm(b,v),T={...h},P=ve.useContext(We);o&&(T.name=o.name,T.onChange=p,T.checked=e.value===o.value,T.disabled=T.disabled??o.disabled),T.disabled=T.disabled??P;let N=Xi(`${S}-wrapper`,{[`${S}-wrapper-checked`]:T.checked,[`${S}-wrapper-disabled`]:T.disabled,[`${S}-wrapper-rtl`]:i==="rtl",[`${S}-wrapper-in-form-item`]:c,[`${S}-wrapper-block`]:!!o?.block},a?.className,d,f,$,R,v),[M,E]=Gc(T.onClick);return x(ve.createElement(fn,{component:"Radio",disabled:T.disabled},ve.createElement("label",{className:N,style:{...a?.style,...g},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:M},ve.createElement(FA,{...T,className:Xi(T.className,{[Mi]:!C}),type:"radio",prefixCls:S,ref:s,onClick:E}),u!==void 0?ve.createElement("span",null,u):null)))},LA=ve.forwardRef(AA),_a=LA;var VA=ve.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=ve.useContext(O),{prefixCls:n,className:i,rootClassName:a,options:l,buttonStyle:s="outline",disabled:c,children:p,size:m,style:d,id:f,optionType:u,name:g,defaultValue:y,value:h,block:b=false,onChange:C,onMouseEnter:S,onMouseLeave:v,onFocus:x,onBlur:$}=e,[R,T]=s$(y,{value:h}),P=ve.useCallback(L=>{let q=R,V=L.target.value;"value"in e||T(V),V!==q&&C?.(L);},[R,T,C]),N=o("radio",n),M=`${N}-group`,E=$e(N),[I,w,B]=xm(N,E),k=p;l&&l.length>0&&(k=l.map(L=>typeof L=="string"||typeof L=="number"?ve.createElement(_a,{key:L.toString(),prefixCls:N,disabled:c,value:L,checked:R===L},L):ve.createElement(_a,{key:`radio-group-value-options-${L.value}`,prefixCls:N,disabled:L.disabled||c,value:L.value,checked:R===L.value,title:L.title,style:L.style,id:L.id,required:L.required},L.label)));let D=ke(m),F=Xi(M,`${M}-${s}`,{[`${M}-${D}`]:D,[`${M}-rtl`]:r==="rtl",[`${M}-block`]:b},i,a,w,B,E),A=ve.useMemo(()=>({onChange:P,value:R,disabled:c,name:g,optionType:u,block:b}),[P,R,c,g,u,b]);return I(ve.createElement("div",{...rB(e,{aria:true,data:true}),className:F,style:d,onMouseEnter:S,onMouseLeave:v,onFocus:x,onBlur:$,id:f,ref:t},ve.createElement(V0,{value:A},k)))}),vm=ve.memo(VA);var jA=(e,t)=>{let{getPrefixCls:o}=ve.useContext(O),{prefixCls:r,...n}=e,i=o("radio",r);return ve.createElement(_0,{value:"button"},ve.createElement(_a,{prefixCls:i,...n,type:"radio",ref:t}))},Vc=ve.forwardRef(jA);var Tm=_a;Tm.Button=Vc;Tm.Group=vm;Tm.__ANT_RADIO=true;var oi=Tm;var qA=10,XA=20;function KA(e){let{fullscreen:t,validRange:o,generateConfig:r,locale:n,prefixCls:i,value:a,onChange:l,divRef:s}=e,c=r.getYear(a||r.getNow()),p=c-qA,m=p+XA;o&&(p=r.getYear(o[0]),m=r.getYear(o[1])+1);let d=n&&n.year==="\u5E74"?"\u5E74":"",f=[];for(let u=p;u<m;u++)f.push({label:`${u}${d}`,value:u});return ve.createElement(Ao,{size:t?void 0:"small",options:f,value:c,className:`${i}-year-select`,onChange:u=>{let g=r.setYear(a,u);if(o){let[y,h]=o,b=r.getYear(g),C=r.getMonth(g);b===r.getYear(h)&&C>r.getMonth(h)&&(g=r.setMonth(g,r.getMonth(h))),b===r.getYear(y)&&C<r.getMonth(y)&&(g=r.setMonth(g,r.getMonth(y)));}l(g);},getPopupContainer:()=>s.current})}function YA(e){let{prefixCls:t,fullscreen:o,validRange:r,value:n,generateConfig:i,locale:a,onChange:l,divRef:s}=e,c=i.getMonth(n||i.getNow()),p=0,m=11;if(r){let[u,g]=r,y=i.getYear(n);i.getYear(g)===y&&(m=i.getMonth(g)),i.getYear(u)===y&&(p=i.getMonth(u));}let d=a.shortMonths||i.locale.getShortMonths(a.locale),f=[];for(let u=p;u<=m;u+=1)f.push({label:d[u],value:u});return ve.createElement(Ao,{size:o?void 0:"small",className:`${t}-month-select`,value:c,options:f,onChange:u=>{l(i.setMonth(n,u));},getPopupContainer:()=>s.current})}function ZA(e){let{prefixCls:t,locale:o,mode:r,fullscreen:n,onModeChange:i}=e;return ve.createElement(vm,{onChange:({target:{value:a}})=>{i(a);},value:r,size:n?void 0:"small",className:`${t}-mode-switch`},ve.createElement(Vc,{value:"month"},o.month),ve.createElement(Vc,{value:"year"},o.year))}function QA(e){let{prefixCls:t,fullscreen:o,mode:r,onChange:n,onModeChange:i}=e,a=ve.useRef(null),l=useContext(Le),s=useMemo(()=>({...l,isFormItemInput:false}),[l]),c={...e,fullscreen:o,divRef:a};return ve.createElement("div",{className:`${t}-header`,ref:a},ve.createElement(Le.Provider,{value:s},ve.createElement(KA,{...c,onChange:p=>{n(p,"year");}}),r==="month"&&ve.createElement(YA,{...c,onChange:p=>{n(p,"month");}})),ve.createElement(ZA,{...c,onModeChange:i}))}var X0=QA;function Fr(e){return mergeToken(e,{inputAffixPadding:e.paddingXXS})}var zr=e=>{let{controlHeight:t,fontSize:o,lineHeight:r,lineWidth:n,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:p,controlPaddingHorizontal:m,colorFillAlter:d,colorPrimaryHover:f,colorPrimary:u,controlOutlineWidth:g,controlOutline:y,colorErrorOutline:h,colorWarningOutline:b,colorBgContainer:C}=e;return {paddingBlock:Math.max(Math.round((t-o*r)/2*10)/10-n,0),paddingBlockSM:Math.max(Math.round((i-o*r)/2*10)/10-n,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-n,paddingInline:c-n,paddingInlineSM:p-n,paddingInlineLG:m-n,addonBg:d,activeBorderColor:u,hoverBorderColor:f,activeShadow:`0 0 0 ${g}px ${y}`,errorActiveShadow:`0 0 0 ${g}px ${h}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:C,activeBg:C,inputFontSize:o,inputFontSizeLG:l,inputFontSizeSM:o}};var JA=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),qa=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":{...JA(mergeToken(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),$m=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),K0=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...$m(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),_i=(e,t)=>({"&-outlined":{...$m(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...qa(e)},...K0(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...K0(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),Y0=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Pm=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...Y0(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...Y0(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...qa(e)}}}}),Ui=(e,t)=>{let{componentCls:o}=e;return {"&-borderless":{background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${o}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${o}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},J0=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Z0=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...J0(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),qi=(e,t)=>({"&-filled":{...J0(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor}),[`&${e.componentCls}-disabled, &[disabled]`]:{...qa(e)},...Z0(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...Z0(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),Q0=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Rm=e=>({"&-filled":{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},...Q0(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...Q0(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}});var Xa=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}});var e$=e=>{let{paddingBlockLG:t,lineHeightLG:o,borderRadiusLG:r,paddingInlineLG:n}=e;return {padding:`${unit(t)} ${unit(n)}`,fontSize:e.inputFontSizeLG,lineHeight:o,borderRadius:r}},Im=e=>({padding:`${unit(e.paddingBlockSM)} ${unit(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Tn=e=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${unit(e.paddingBlock)} ${unit(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...Xa(e.colorTextPlaceholder),"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":{...e$(e)},"&-sm":{...Im(e)},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),lC=e=>{let{componentCls:t,antCls:o}=e;return {position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...e$(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...Im(e)},[`&-lg ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${o}-select-single ${o}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${unit(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${o}-select`]:{margin:`${unit(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${o}-select-single:not(${o}-select-customize-input):not(${o}-pagination-size-changer)`]:{[`${o}-select-selector`]:{backgroundColor:"inherit",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${o}-cascader-picker`]:{margin:`-9px ${unit(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${o}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${o}-select ${o}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...no(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
144
144
|
& > ${t}-affix-wrapper,
|
|
145
145
|
& > ${t}-number-affix-wrapper,
|
|
146
146
|
& > ${o}-picker-range
|
|
@@ -153,91 +153,91 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
|
|
|
153
153
|
& > ${o}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
154
154
|
& > ${o}-select:last-child > ${o}-select-selector,
|
|
155
155
|
& > ${o}-cascader-picker:last-child ${t},
|
|
156
|
-
& > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}}},
|
|
156
|
+
& > ${o}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${o}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}}},eL=e=>{let{componentCls:t,controlHeightSM:o,lineWidth:r,calc:n}=e,a=n(o).sub(n(r).mul(2)).sub(16).div(2).equal();return {[t]:{...ae(e),...Tn(e),..._i(e),...qi(e),...Ui(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:o,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}}}},tL=e=>{let{componentCls:t}=e;return {[`${t}-clear-icon`]:{margin:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${unit(e.inputAffixPadding)}`}}}},oL=e=>{let{componentCls:t,inputAffixPadding:o,colorTextDescription:r,motionDurationSlow:n,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return {[s]:{...Tn(e),display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:o},"&-suffix":{marginInlineStart:o}},...tL(e),[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${n}`,"&:hover":{color:a}}},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},rL=e=>{let{componentCls:t,borderRadiusLG:o,borderRadiusSM:r}=e;return {[`${t}-group`]:{...ae(e),...lC(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...Pm(e),...Rm(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}}}}},nL=e=>{let{componentCls:t,antCls:o}=e,r=`${t}-search`;return {[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${o}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${o}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${o}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
157
157
|
> ${t},
|
|
158
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},
|
|
158
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},iL=e=>{let{componentCls:t,paddingLG:o}=e,r=`${t}-textarea`;return {[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
159
159
|
&-allow-clear > ${t},
|
|
160
160
|
&-affix-wrapper${r}-has-feedback ${t}
|
|
161
|
-
`]:{paddingInlineEnd:o},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},
|
|
161
|
+
`]:{paddingInlineEnd:o},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},aL=e=>{let{componentCls:t}=e;return {[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},bs=oe("Input",e=>{let t=mergeToken(e,Fr(e));return [eL(t),iL(t),oL(t),rL(t),nL(t),aL(t),qo(t)]},zr,{resetFont:false});var sC=(e,t)=>{let{componentCls:o,controlHeight:r}=e,n=t?`${o}-${t}`:"",i=Iy(e);return [{[`${o}-multiple${n}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${o}-selection-item`]:{height:i.itemHeight,lineHeight:unit(i.itemLineHeight)}}}]},sL=e=>{let{componentCls:t,calc:o,lineWidth:r}=e,n=mergeToken(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=mergeToken(e,{fontHeight:o(e.multipleItemHeightLG).sub(o(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return [sC(n,"small"),sC(e),sC(i,"large"),{[`${t}${t}-multiple`]:{width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}},...wy(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},t$=sL;var cL=e=>{let{pickerCellCls:t,pickerCellInnerCls:o,cellHeight:r,borderRadiusSM:n,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:s,colorPrimary:c,cellActiveWithRangeBg:p,colorTextLightSolid:m,colorTextDisabled:d,cellBgDisabled:f,colorFillSecondary:u}=e;return {"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[o]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:unit(r),borderRadius:n,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
|
|
162
162
|
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[o]:{background:a}},[`&-in-view${t}-today ${o}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${unit(l)} ${s} ${c}`,borderRadius:n,content:'""'}},[`&-in-view${t}-in-range,
|
|
163
163
|
&-in-view${t}-range-start,
|
|
164
164
|
&-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:p}},[`&-in-view${t}-selected,
|
|
165
165
|
&-in-view${t}-range-start,
|
|
166
|
-
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${o}`]:{color:
|
|
166
|
+
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${o}`]:{color:m,background:c},[`&${t}-disabled ${o}`]:{background:u}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${o}`]:{borderStartStartRadius:n,borderEndStartRadius:n,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:n,borderEndEndRadius:n},"&-disabled":{color:d,cursor:"not-allowed",[o]:{background:"transparent"},"&::before":{background:f}},[`&-disabled${t}-today ${o}::before`]:{borderColor:d}}},wm=e=>{let{componentCls:t,pickerCellCls:o,pickerCellInnerCls:r,pickerYearMonthCellWidth:n,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:s,paddingXXS:c,colorBgContainer:p,lineWidth:m,lineType:d,borderRadiusLG:f,colorPrimary:u,colorTextHeading:g,colorSplit:y,pickerControlIconBorderWidth:h,colorIcon:b,textHeight:C,motionDurationMid:S,colorIconHover:v,fontWeightStrong:x,cellHeight:$,pickerCellPaddingVertical:R,colorTextDisabled:T,colorText:P,fontSize:N,motionDurationSlow:M,withoutTimeCellHeight:E,pickerQuarterPanelContentHeight:I,borderRadiusSM:w,colorTextLightSolid:B,cellHoverBg:k,timeColumnHeight:D,timeColumnWidth:F,timeCellHeight:A,controlItemBgActive:L,marginXXS:q,pickerDatePanelPaddingHorizontal:V,pickerControlIconMargin:z}=e,G=e.calc(a).mul(7).add(e.calc(V).mul(2)).equal();return {[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:p,borderRadius:f,outline:"none","&-focused":{borderColor:u},"&-rtl":{[`${t}-prev-icon,
|
|
167
167
|
${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
|
|
168
|
-
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:G},"&-header":{display:"flex",padding:`0 ${unit(s)}`,color:g,borderBottom:`${unit(
|
|
168
|
+
${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:G},"&-header":{display:"flex",padding:`0 ${unit(s)}`,color:g,borderBottom:`${unit(m)} ${d} ${y}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:unit(C),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center"},"> button":{minWidth:"1.6em",fontSize:N,"&:hover":{color:v},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:x,lineHeight:unit(C),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:u}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${unit(h)} 0`,borderInlineWidth:`${unit(h)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:z,insetInlineStart:z,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${unit(h)} 0`,borderInlineWidth:`${unit(h)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:$,fontWeight:"normal"},th:{height:e.calc($).add(e.calc(R).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":{padding:`${unit(R)} 0`,color:T,cursor:"pointer","&-in-view":{color:P},...cL(e)},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(E).mul(4).equal()},[r]:{padding:`0 ${unit(s)}`}},"&-quarter-panel":{[`${t}-content`]:{height:I}},"&-decade-panel":{[r]:{padding:`0 ${unit(e.calc(s).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${unit(s)}`},[r]:{width:n}},"&-date-panel":{[`${t}-body`]:{padding:`${unit(s)} ${unit(V)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r},
|
|
169
169
|
&-selected ${r},
|
|
170
|
-
${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${
|
|
170
|
+
${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child:before":{borderStartEndRadius:w,borderEndEndRadius:w}},"&:hover td:before":{background:k},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${o}`]:{"&:before":{background:u},[`&${t}-cell-week`]:{color:new TinyColor(B).setAlpha(.5).toHexString()},[r]:{color:B}}},"&-range-hover td:before":{background:L}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${unit(s)} ${unit(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${unit(m)} ${d} ${y}`},[`${t}-date-panel,
|
|
171
171
|
${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel,
|
|
172
|
-
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:D},"&-column":{flex:"1 0 auto",width:F,margin:`${unit(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${
|
|
172
|
+
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:D},"&-column":{flex:"1 0 auto",width:F,margin:`${unit(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${unit(A)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${unit(m)} ${d} ${y}`},"&-active":{background:new TinyColor(L).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:q,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(F).sub(e.calc(q).mul(2)).equal(),height:A,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(F).sub(A).div(2).equal(),color:P,lineHeight:unit(A),borderRadius:w,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:k}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:L}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:T,background:"transparent",cursor:"not-allowed"}}}}}}}}},pL=e=>{let{componentCls:t,textHeight:o,lineWidth:r,paddingSM:n,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:s,lineType:c,colorSplit:p}=e;return {[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${unit(r)} ${c} ${p}`,"&-extra":{padding:`0 ${unit(n)}`,lineHeight:unit(e.calc(o).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${unit(r)} ${c} ${p}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:unit(n),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:unit(e.calc(o).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:s,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},r$=pL;var Nm=e=>{let{componentCls:t,controlHeightLG:o,paddingXXS:r,padding:n}=e;return {pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(o).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(o).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(n).add(e.calc(r).div(2)).equal()}},Mm=e=>{let{colorBgContainerDisabled:t,controlHeight:o,controlHeightSM:r,controlHeightLG:n,paddingXXS:i,lineWidth:a}=e,l=i*2,s=a*2,c=Math.min(o-l,o-s),p=Math.min(r-l,r-s),m=Math.min(n-l,n-s);return {INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new TinyColor(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new TinyColor(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:n*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:n,withoutTimeCellHeight:n*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:p,multipleItemHeightLG:m,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},i$=e=>({...zr(e),...Mm(e),...Sn(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50});var dL=e=>{let{componentCls:t}=e;return {[t]:[{..._i(e),...qi(e),...Ui(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},a$=dL;var pC=(e,t,o,r)=>{let n=e.calc(o).add(2).equal(),i=e.max(e.calc(t).sub(n).div(2).equal(),0),a=e.max(e.calc(t).sub(n).sub(i).equal(),0);return {padding:`${unit(i)} ${unit(r)} ${unit(a)}`}},mL=e=>{let{componentCls:t,colorError:o,colorWarning:r}=e;return {[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:o}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},uL=e=>{let{componentCls:t,antCls:o,controlHeight:r,paddingInline:n,lineWidth:i,lineType:a,colorBorder:l,borderRadius:s,motionDurationMid:c,colorTextDisabled:p,colorTextPlaceholder:m,controlHeightLG:d,fontSizeLG:f,controlHeightSM:u,paddingInlineSM:g,paddingXS:y,marginXS:h,colorTextDescription:b,lineWidthBold:C,colorPrimary:S,motionDurationSlow:v,zIndexPopup:x,paddingXXS:$,sizePopupArrow:R,colorBgElevated:T,borderRadiusLG:P,boxShadowSecondary:N,borderRadiusSM:M,colorSplit:E,cellHoverBg:I,presetsWidth:w,presetsMaxWidth:B,boxShadowPopoverArrow:k,fontHeight:D,fontHeightLG:F,lineHeightLG:A}=e;return [{[t]:{...ae(e),...pC(e,r,D,n),position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:s,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":{position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`,...Xa(m),flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:p,cursor:"not-allowed"}},"&-placeholder":{"> input":{color:m}}},"&-large":{...pC(e,d,F,n),[`${t}-input > input`]:{fontSize:f,lineHeight:A}},"&-small":{...pC(e,u,D,g)},[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:p,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:h}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:p,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:f,color:p,fontSize:f,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:b},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:C,background:S,opacity:0,transition:`all ${v} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${unit(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:n},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":{...ae(e),...wm(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:x,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
|
|
173
173
|
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
|
|
174
174
|
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-dropdown-placement-topLeft,
|
|
175
175
|
&${o}-slide-up-enter${o}-slide-up-enter-active${t}-dropdown-placement-topRight,
|
|
176
176
|
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-topLeft,
|
|
177
|
-
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:
|
|
177
|
+
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Fi},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
|
|
178
178
|
&${o}-slide-up-enter${o}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
|
|
179
179
|
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
|
|
180
|
-
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:
|
|
181
|
-
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:
|
|
182
|
-
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Si},[`${t}-panel > ${t}-time-panel`]:{paddingTop:T},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:{position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(n).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${v} ease-out`,...$d(e,R,k),"&:before":{insetInlineStart:e.calc(n).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:R,borderRadius:P,boxShadow:I,transition:`margin ${v}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:N,maxWidth:A,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${unit(i)} ${a} ${E}`,li:{...Oe,borderRadius:M,paddingInline:y,paddingBlock:e.calc(u).sub(D).div(2).equal(),cursor:"pointer",transition:`all ${v}`,"+ li":{marginTop:S},"&:hover":{background:w}}}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}},"&-dropdown-range":{padding:`${unit(e.calc($).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}}},Co(e,"slide-up"),Co(e,"slide-down"),nn(e,"move-up"),nn(e,"move-down")]},Zd=te("DatePicker",e=>{let t=mergeToken(wr(e),Kd(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [Kv(t),EO(t),Qv(t),MO(t),qv(t),Lo(e,{focusElCls:`${e.componentCls}-focused`})]},Zv);var kO=e=>{let{calendarCls:t,componentCls:o,fullBg:r,fullPanelBg:n,itemActiveBg:i}=e;return {[t]:{...Xd(e),...ne(e),background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${unit(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}},[`${t} ${o}-panel`]:{background:n,border:0,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${o}-month-panel, ${o}-date-panel`]:{width:"auto"},[`${o}-body`]:{padding:`${unit(e.paddingXS)} 0`},[`${o}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${o}-panel`]:{borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`},[`${o}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:unit(e.weekHeight)}},[`${o}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${o}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${o}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:unit(e.weekHeight)}}},[`${o}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${o}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${unit(e.calc(e.marginXS).div(2).equal())}`,padding:`${unit(e.calc(e.paddingXS).div(2).equal())} ${unit(e.paddingXS)} 0`,border:0,borderTop:`${unit(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:unit(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${unit(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${unit(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},BO=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...Yd(e)}),Jv=te("Calendar",e=>{let t=`${e.componentCls}-calendar`,o=mergeToken(e,Kd(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return [kO(o)]},BO);var o0=(e,t,o)=>{let{getYear:r}=o;return e&&t&&r(e)===r(t)},by=(e,t,o)=>{let{getMonth:r}=o;return o0(e,t,o)&&r(e)===r(t)},t0=(e,t,o)=>{let{getDate:r}=o;return by(e,t,o)&&r(e)===r(t)},AO=e=>o=>{let{prefixCls:r,className:n,rootClassName:i,style:a,dateFullCellRender:l,dateCellRender:s,monthFullCellRender:c,monthCellRender:p,cellRender:d,fullCellRender:m,headerRender:f,value:u,defaultValue:g,disabledDate:y,mode:S,validRange:h,fullscreen:C=true,onChange:b,onPanelChange:v,onSelect:x}=o,{getPrefixCls:T,direction:$,calendar:R}=ue.useContext(B),P=T("picker",r),I=`${P}-calendar`,[M,E,w]=Jv(P,I),N=e.getNow(),[A,k]=e0(()=>u||e.getNow(),{defaultValue:g,value:u}),[D,F]=e0("month",{value:S}),O=ue.useMemo(()=>D==="year"?"month":"date",[D]),L=ue.useCallback(V=>(h?e.isAfter(h[0],V)||e.isAfter(V,h[1]):false)||!!y?.(V),[y,h]),_=(V,U)=>{v?.(V,U);},H=V=>{k(V),t0(V,A,e)||((O==="date"&&!by(V,A,e)||O==="month"&&!o0(V,A,e))&&_(V,D),b?.(V));},z=V=>{F(V),_(A,V);},G=(V,U)=>{H(V),x?.(V,{source:U});},W=ue.useCallback((V,U)=>m?m(V,U):l?l(V):ue.createElement("div",{className:ki(`${P}-cell-inner`,`${I}-date`,{[`${I}-date-today`]:t0(N,V,e)})},ue.createElement("div",{className:`${I}-date-value`},String(e.getDate(V)).padStart(2,"0")),ue.createElement("div",{className:`${I}-date-content`},d?d(V,U):s?.(V))),[l,s,d,m]),q=ue.useCallback((V,U)=>{if(m)return m(V,U);if(c)return c(V);let Y=U.locale.shortMonths||e.locale.getShortMonths(U.locale.locale);return ue.createElement("div",{className:ki(`${P}-cell-inner`,`${I}-date`,{[`${I}-date-today`]:by(N,V,e)})},ue.createElement("div",{className:`${I}-date-value`},Y[e.getMonth(V)]),ue.createElement("div",{className:`${I}-date-content`},d?d(V,U):p?.(V)))},[c,p,d,m]),[j]=Ee("Calendar",hp),K={...j,...o.locale},Q=(V,U)=>{if(U.type==="date")return W(V,U);if(U.type==="month")return q(V,{...U,locale:K?.lang})};return M(ue.createElement("div",{className:ki(I,{[`${I}-full`]:C,[`${I}-mini`]:!C,[`${I}-rtl`]:$==="rtl"},R?.className,n,i,E,w),style:{...R?.style,...a}},f?f({value:A,type:D,onChange:V=>{G(V,"customize");},onTypeChange:z}):ue.createElement(Hv,{prefixCls:I,value:A,generateConfig:e,mode:D,fullscreen:C,locale:K?.lang,validRange:h,onChange:G,onModeChange:z}),ue.createElement(PickerPanel,{value:A,prefixCls:P,locale:K?.lang,generateConfig:e,cellRender:Q,onSelect:V=>{G(V,O);},mode:O,picker:O,disabledDate:L,hideHeader:true})))},xy=AO;var r0=xy(FO);r0.generateCalendar=xy;var OO=r0;var zO={motionAppear:false,motionEnter:true,motionLeave:true};function Ty(e,t={inkBar:true,tabPane:false}){let o;return t===false?o={inkBar:false,tabPane:false}:t===true?o={inkBar:true,tabPane:true}:o={inkBar:true,...typeof t=="object"?t:{}},o.tabPane&&(o.tabPaneMotion={...zO,motionName:Ze(e,"switch")}),o}function HO(e){return e.filter(t=>t)}function vy(e,t){if(e)return e;let o=kv(t).map(r=>{if(ue.isValidElement(r)){let{key:n,props:i}=r,{tab:a,...l}=i||{};return {key:String(n),...l,label:a}}return null});return HO(o)}var WO=e=>{let{componentCls:t,motionDurationSlow:o}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${o}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${o}`}}}}},[Co(e,"slide-up"),Co(e,"slide-down")]]},i0=WO;var GO=e=>{let{componentCls:t,tabsCardPadding:o,cardBg:r,cardGutter:n,colorBorderSecondary:i,itemSelectedColor:a}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:o,background:r,border:`${unit(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:true,value:unit(n)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:unit(n)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${unit(e.borderRadiusLG)} 0 0 ${unit(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:true,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:true,value:e.colorBgContainer}}}}}}},VO=e=>{let{componentCls:t,itemHoverColor:o,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:{...ne(e),position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${unit(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:true,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...Oe,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${unit(e.paddingXXS)} ${unit(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:true,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:o}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},_O=e=>{let{componentCls:t,margin:o,colorBorderSecondary:r,horizontalMargin:n,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:n,"&::before":{position:"absolute",right:{_skip_check_:true,value:0},left:{_skip_check_:true,value:0},borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
180
|
+
&${o}-slide-up-appear${o}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Bi},[`&${o}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-topLeft,
|
|
181
|
+
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:zi},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
|
|
182
|
+
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Oi},[`${t}-panel > ${t}-time-panel`]:{paddingTop:$},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:{position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(n).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${v} ease-out`,...im(e,T,k),"&:before":{insetInlineStart:e.calc(n).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:T,borderRadius:P,boxShadow:N,transition:`margin ${v}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:w,maxWidth:B,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${unit(i)} ${a} ${E}`,li:{...qe,borderRadius:M,paddingInline:y,paddingBlock:e.calc(u).sub(D).div(2).equal(),cursor:"pointer",transition:`all ${v}`,"+ li":{marginTop:h},"&:hover":{background:I}}}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}},"&-dropdown-range":{padding:`${unit(e.calc(R).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}}},$o(e,"slide-up"),$o(e,"slide-down"),gn(e,"move-up"),gn(e,"move-down")]},Em=oe("DatePicker",e=>{let t=mergeToken(Fr(e),Nm(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return [r$(t),uL(t),a$(t),mL(t),t$(t),qo(e,{focusElCls:`${e.componentCls}-focused`})]},i$);var fL=e=>{let{calendarCls:t,componentCls:o,fullBg:r,fullPanelBg:n,itemActiveBg:i}=e;return {[t]:{...wm(e),...ae(e),background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${unit(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}},[`${t} ${o}-panel`]:{background:n,border:0,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${o}-month-panel, ${o}-date-panel`]:{width:"auto"},[`${o}-body`]:{padding:`${unit(e.paddingXS)} 0`},[`${o}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${o}-panel`]:{borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`},[`${o}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:unit(e.weekHeight)}},[`${o}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${o}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${o}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:unit(e.weekHeight)}}},[`${o}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${o}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${unit(e.calc(e.marginXS).div(2).equal())}`,padding:`${unit(e.calc(e.paddingXS).div(2).equal())} ${unit(e.paddingXS)} 0`,border:0,borderTop:`${unit(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:unit(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${unit(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${unit(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},gL=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...Mm(e)}),l$=oe("Calendar",e=>{let t=`${e.componentCls}-calendar`,o=mergeToken(e,Nm(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return [fL(o)]},gL);var p$=(e,t,o)=>{let{getYear:r}=o;return e&&t&&r(e)===r(t)},mC=(e,t,o)=>{let{getMonth:r}=o;return p$(e,t,o)&&r(e)===r(t)},c$=(e,t,o)=>{let{getDate:r}=o;return mC(e,t,o)&&r(e)===r(t)},CL=e=>o=>{let{prefixCls:r,className:n,rootClassName:i,style:a,dateFullCellRender:l,dateCellRender:s,monthFullCellRender:c,monthCellRender:p,cellRender:m,fullCellRender:d,headerRender:f,value:u,defaultValue:g,disabledDate:y,mode:h,validRange:b,fullscreen:C=true,onChange:S,onPanelChange:v,onSelect:x}=o,{getPrefixCls:$,direction:R,calendar:T}=ve.useContext(O),P=$("picker",r),N=`${P}-calendar`,[M,E,I]=l$(P,N),w=e.getNow(),[B,k]=s$(()=>u||e.getNow(),{defaultValue:g,value:u}),[D,F]=s$("month",{value:h}),A=ve.useMemo(()=>D==="year"?"month":"date",[D]),L=ve.useCallback(j=>(b?e.isAfter(b[0],j)||e.isAfter(j,b[1]):false)||!!y?.(j),[y,b]),q=(j,Y)=>{v?.(j,Y);},V=j=>{k(j),c$(j,B,e)||((A==="date"&&!mC(j,B,e)||A==="month"&&!p$(j,B,e))&&q(j,D),S?.(j));},z=j=>{F(j),q(B,j);},G=(j,Y)=>{V(j),x?.(j,{source:Y});},_=ve.useCallback((j,Y)=>d?d(j,Y):l?l(j):ve.createElement("div",{className:Xi(`${P}-cell-inner`,`${N}-date`,{[`${N}-date-today`]:c$(w,j,e)})},ve.createElement("div",{className:`${N}-date-value`},String(e.getDate(j)).padStart(2,"0")),ve.createElement("div",{className:`${N}-date-content`},m?m(j,Y):s?.(j))),[l,s,m,d]),Z=ve.useCallback((j,Y)=>{if(d)return d(j,Y);if(c)return c(j);let J=Y.locale.shortMonths||e.locale.getShortMonths(Y.locale.locale);return ve.createElement("div",{className:Xi(`${P}-cell-inner`,`${N}-date`,{[`${N}-date-today`]:mC(w,j,e)})},ve.createElement("div",{className:`${N}-date-value`},J[e.getMonth(j)]),ve.createElement("div",{className:`${N}-date-content`},m?m(j,Y):p?.(j)))},[c,p,m,d]),[K]=Ae("Calendar",Qp),Q={...K,...o.locale},ee=(j,Y)=>{if(Y.type==="date")return _(j,Y);if(Y.type==="month")return Z(j,{...Y,locale:Q?.lang})};return M(ve.createElement("div",{className:Xi(N,{[`${N}-full`]:C,[`${N}-mini`]:!C,[`${N}-rtl`]:R==="rtl"},T?.className,n,i,E,I),style:{...T?.style,...a}},f?f({value:B,type:D,onChange:j=>{G(j,"customize");},onTypeChange:z}):ve.createElement(X0,{prefixCls:N,value:B,generateConfig:e,mode:D,fullscreen:C,locale:Q?.lang,validRange:b,onChange:G,onModeChange:z}),ve.createElement(PickerPanel,{value:B,prefixCls:P,locale:Q?.lang,generateConfig:e,cellRender:ee,onSelect:j=>{G(j,A);},mode:A,picker:A,disabledDate:L,hideHeader:true})))},uC=CL;var d$=uC(hL);d$.generateCalendar=uC;var bL=d$;var SL={motionAppear:false,motionEnter:true,motionLeave:true};function fC(e,t={inkBar:true,tabPane:false}){let o;return t===false?o={inkBar:false,tabPane:false}:t===true?o={inkBar:true,tabPane:true}:o={inkBar:true,...typeof t=="object"?t:{}},o.tabPane&&(o.tabPaneMotion={...SL,motionName:it(e,"switch")}),o}function vL(e){return e.filter(t=>t)}function gC(e,t){if(e)return e;let o=H0(t).map(r=>{if(ve.isValidElement(r)){let{key:n,props:i}=r,{tab:a,...l}=i||{};return {key:String(n),...l,label:a}}return null});return vL(o)}var TL=e=>{let{componentCls:t,motionDurationSlow:o}=e;return [{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${o}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${o}`}}}}},[$o(e,"slide-up"),$o(e,"slide-down")]]},u$=TL;var $L=e=>{let{componentCls:t,tabsCardPadding:o,cardBg:r,cardGutter:n,colorBorderSecondary:i,itemSelectedColor:a}=e;return {[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:o,background:r,border:`${unit(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:true,value:unit(n)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:unit(n)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${unit(e.borderRadiusLG)} 0 0 ${unit(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:true,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:true,value:e.colorBgContainer}}}}}}},PL=e=>{let{componentCls:t,itemHoverColor:o,dropdownEdgeChildVerticalPadding:r}=e;return {[`${t}-dropdown`]:{...ae(e),position:"absolute",top:-9999,left:{_skip_check_:true,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${unit(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:true,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...qe,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${unit(e.paddingXXS)} ${unit(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:true,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:o}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}}}}}},RL=e=>{let{componentCls:t,margin:o,colorBorderSecondary:r,horizontalMargin:n,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return {[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:n,"&::before":{position:"absolute",right:{_skip_check_:true,value:0},left:{_skip_check_:true,value:0},borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
183
183
|
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:true,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:true,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
184
|
-
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:o,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:true,value:0},left:{_skip_check_:true,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:true,value:unit(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:true,value:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:true,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:true,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:true,value:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:true,value:e.paddingLG}}}}}},jO=e=>{let{componentCls:t,cardPaddingSM:o,cardPaddingLG:r,horizontalItemPaddingSM:n,horizontalItemPaddingLG:i}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${unit(e.borderRadius)} ${unit(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${unit(e.borderRadius)} ${unit(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${unit(e.borderRadius)} ${unit(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${unit(e.borderRadius)} 0 0 ${unit(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},UO=e=>{let{componentCls:t,itemActiveColor:o,itemHoverColor:r,iconCls:n,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return {[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:o},...St(e)},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:true,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:true,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${n}`]:{margin:0},[`${n}:not(:last-child)`]:{marginRight:{_skip_check_:true,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:true,value:i}}}},qO=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:o,iconCls:r,cardGutter:n,calc:i}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:true,value:o},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:true,value:0}},[r]:{marginRight:{_skip_check_:true,value:0},marginLeft:{_skip_check_:true,value:unit(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:true,value:unit(e.marginXS)},marginLeft:{_skip_check_:true,value:unit(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:true,value:n},marginLeft:{_skip_check_:true,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:true,value:"right"}}}}},XO=e=>{let{componentCls:t,tabsCardPadding:o,cardHeight:r,cardGutter:n,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return {[t]:{...ne(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:o,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:true,value:0},bottom:0,left:{_skip_check_:true,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,marginLeft:{_skip_check_:true,value:n},padding:unit(e.paddingXS),background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a},...St(e)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...UO(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},KO=e=>{let t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},a0=te("Tabs",e=>{let t=mergeToken(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${unit(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${unit(e.horizontalItemGutter)}`});return [jO(t),qO(t),_O(t),VO(t),GO(t),XO(t),i0(t)]},KO);var YO=()=>null,l0=YO;var c0=e=>{let{type:t,className:o,rootClassName:r,size:n,onEdit:i,hideAdd:a,centered:l,addIcon:s,removeIcon:c,moreIcon:p,more:d,popupClassName:m,children:f,items:u,animated:g,style:y,indicatorSize:S,indicator:h,...C}=e,{prefixCls:b}=C,{direction:v,tabs:x,getPrefixCls:T,getPopupContainer:$}=ue.useContext(B),R=T("tabs",b),P=de(R),[I,M,E]=a0(R,P),w;t==="editable-card"&&(w={onEdit:(L,{key:_,event:H})=>{i?.(L==="add"?H:_,L);},removeIcon:c??x?.removeIcon??ue.createElement(Ck,null),addIcon:(s??x?.addIcon)||ue.createElement(JO,null),showAdd:a!==true});let N=T(),A=Te(n),k=vy(u,f),D=Ty(R,g),F={...x?.style,...y},O={align:h?.align??x?.indicator?.align,size:h?.size??S??x?.indicator?.size??x?.indicatorSize};return I(ue.createElement(ez,{direction:v,getPopupContainer:$,...C,items:k,className:ki({[`${R}-${A}`]:A,[`${R}-card`]:["card","editable-card"].includes(t),[`${R}-editable-card`]:t==="editable-card",[`${R}-centered`]:l},x?.className,o,r,M,E,P),popupClassName:ki(m,M,E,P),style:F,editable:w,more:{icon:x?.more?.icon??x?.moreIcon??p??ue.createElement(hF,null),transitionName:`${N}-slide-up`,...d},prefixCls:R,animated:D,indicator:O}))};c0.TabPane=l0;var Py=c0;var oz=({prefixCls:e,className:t,hoverable:o=true,...r})=>{let{getPrefixCls:n}=ue.useContext(B),i=n("card",e),a=ki(`${i}-grid`,t,{[`${i}-grid-hoverable`]:o});return ue.createElement("div",{...r,className:a})},Jd=oz;var rz=e=>{let{antCls:t,componentCls:o,headerHeight:r,cardPaddingBase:n,tabsMarginBottom:i}=e;return {display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${unit(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,...Zt(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...Oe,[`
|
|
184
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:o,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:true,value:0},left:{_skip_check_:true,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:true,value:unit(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:true,value:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:true,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:true,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:true,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:true,value:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:true,value:e.paddingLG}}}}}},IL=e=>{let{componentCls:t,cardPaddingSM:o,cardPaddingLG:r,horizontalItemPaddingSM:n,horizontalItemPaddingLG:i}=e;return {[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${unit(e.borderRadius)} ${unit(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${unit(e.borderRadius)} ${unit(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`0 ${unit(e.borderRadius)} ${unit(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:true,value:`${unit(e.borderRadius)} 0 0 ${unit(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},wL=e=>{let{componentCls:t,itemActiveColor:o,itemHoverColor:r,iconCls:n,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return {[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:o},...$t(e)},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:true,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:true,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${n}`]:{margin:0},[`${n}:not(:last-child)`]:{marginRight:{_skip_check_:true,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:true,value:i}}}},NL=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:o,iconCls:r,cardGutter:n,calc:i}=e;return {[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:true,value:o},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:true,value:0}},[r]:{marginRight:{_skip_check_:true,value:0},marginLeft:{_skip_check_:true,value:unit(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:true,value:unit(e.marginXS)},marginLeft:{_skip_check_:true,value:unit(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:true,value:n},marginLeft:{_skip_check_:true,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:true,value:"right"}}}}},ML=e=>{let{componentCls:t,tabsCardPadding:o,cardHeight:r,cardGutter:n,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return {[t]:{...ae(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:o,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:true,value:0},bottom:0,left:{_skip_check_:true,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,marginLeft:{_skip_check_:true,value:n},padding:unit(e.paddingXS),background:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a},...$t(e)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...wL(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},EL=e=>{let t=e.controlHeightLG;return {zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},f$=oe("Tabs",e=>{let t=mergeToken(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${unit(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${unit(e.horizontalItemGutter)}`});return [IL(t),NL(t),RL(t),PL(t),$L(t),ML(t),u$(t)]},EL);var kL=()=>null,g$=kL;var C$=e=>{let{type:t,className:o,rootClassName:r,size:n,onEdit:i,hideAdd:a,centered:l,addIcon:s,removeIcon:c,moreIcon:p,more:m,popupClassName:d,children:f,items:u,animated:g,style:y,indicatorSize:h,indicator:b,...C}=e,{prefixCls:S}=C,{direction:v,tabs:x,getPrefixCls:$,getPopupContainer:R}=ve.useContext(O),T=$("tabs",S),P=$e(T),[N,M,E]=f$(T,P),I;t==="editable-card"&&(I={onEdit:(L,{key:q,event:V})=>{i?.(L==="add"?V:q,L);},removeIcon:c??x?.removeIcon??ve.createElement(JD,null),addIcon:(s??x?.addIcon)||ve.createElement(OL,null),showAdd:a!==true});let w=$(),B=ke(n),k=gC(u,f),D=fC(T,g),F={...x?.style,...y},A={align:b?.align??x?.indicator?.align,size:b?.size??h??x?.indicator?.size??x?.indicatorSize};return N(ve.createElement(FL,{direction:v,getPopupContainer:R,...C,items:k,className:Xi({[`${T}-${B}`]:B,[`${T}-card`]:["card","editable-card"].includes(t),[`${T}-editable-card`]:t==="editable-card",[`${T}-centered`]:l},x?.className,o,r,M,E,P),popupClassName:Xi(d,M,E,P),style:F,editable:I,more:{icon:x?.more?.icon??x?.moreIcon??p??ve.createElement(eA,null),transitionName:`${w}-slide-up`,...m},prefixCls:T,animated:D,indicator:A}))};C$.TabPane=g$;var yC=C$;var AL=({prefixCls:e,className:t,hoverable:o=true,...r})=>{let{getPrefixCls:n}=ve.useContext(O),i=n("card",e),a=Xi(`${i}-grid`,t,{[`${i}-grid-hoverable`]:o});return ve.createElement("div",{...r,className:a})},Dm=AL;var LL=e=>{let{antCls:t,componentCls:o,headerHeight:r,cardPaddingBase:n,tabsMarginBottom:i}=e;return {display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${unit(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`,...no(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...qe,[`
|
|
185
185
|
> ${o}-typography,
|
|
186
186
|
> ${o}-typography-edit-content
|
|
187
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},
|
|
187
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},HL=e=>{let{cardPaddingBase:t,colorBorderSecondary:o,cardShadow:r,lineWidth:n}=e;return {width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
188
188
|
${unit(n)} 0 0 0 ${o},
|
|
189
189
|
0 ${unit(n)} 0 0 ${o},
|
|
190
190
|
${unit(n)} ${unit(n)} 0 0 ${o},
|
|
191
191
|
${unit(n)} 0 0 0 ${o} inset,
|
|
192
192
|
0 ${unit(n)} 0 0 ${o} inset;
|
|
193
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},iz=e=>{let{componentCls:t,iconCls:o,actionsLiMargin:r,cardActionsIconSize:n,colorBorderSecondary:i,actionsBg:a}=e;return {margin:0,padding:0,listStyle:"none",background:a,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`,...Zt(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${o}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:unit(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${o}`]:{fontSize:n,lineHeight:unit(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${i}`}}}},az=e=>({margin:`${unit(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...Zt(),"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...Oe},"&-description":{color:e.colorTextDescription}}),lz=e=>{let{componentCls:t,cardPaddingBase:o,colorFillAlter:r}=e;return {[`${t}-head`]:{padding:`0 ${unit(o)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${unit(e.padding)} ${unit(o)}`}}},sz=e=>{let{componentCls:t}=e;return {overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},cz=e=>{let{componentCls:t,cardShadow:o,cardHeadPadding:r,colorBorderSecondary:n,boxShadowTertiary:i,cardPaddingBase:a,extraColor:l}=e;return {[t]:{...ne(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:rz(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`,...Zt()},[`${t}-grid`]:nz(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:iz(e),[`${t}-meta`]:az(e)},[`${t}-bordered`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${n}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:o}},[`${t}-contain-grid`]:{borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:lz(e),[`${t}-loading`]:sz(e),[`${t}-rtl`]:{direction:"rtl"}}},pz=e=>{let{componentCls:t,cardPaddingSM:o,headerHeightSM:r,headerFontSizeSM:n}=e;return {[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${unit(o)}`,fontSize:n,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:o}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},dz=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),p0=te("Card",e=>{let t=mergeToken(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return [cz(t),pz(t)]},dz);var uz=e=>{let{actionClasses:t,actions:o=[],actionStyle:r}=e;return ue.createElement("ul",{className:t,style:r},o.map((n,i)=>{let a=`action-${i}`;return ue.createElement("li",{style:{width:`${100/o.length}%`},key:a},ue.createElement("span",null,n))}))},fz=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,extra:a,headStyle:l={},bodyStyle:s={},title:c,loading:p,bordered:d=true,size:m,type:f,cover:u,actions:g,tabList:y,children:S,activeTabKey:h,defaultActiveTabKey:C,tabBarExtraContent:b,hoverable:v,tabProps:x={},classNames:T,styles:$,...R}=e,{getPrefixCls:P,direction:I,card:M}=ue.useContext(B),E=Z=>{e.onTabChange?.(Z);},w=Z=>ki(M?.classNames?.[Z],T?.[Z]),N=Z=>({...M?.styles?.[Z],...$?.[Z]}),A=ue.useMemo(()=>{let Z=false;return ue.Children.forEach(S,re=>{re?.type===Jd&&(Z=true);}),Z},[S]),k=P("card",o),[D,F,O]=p0(k),L=ue.createElement(An,{loading:true,active:true,paragraph:{rows:4},title:false},S),_=h!==void 0,H={...x,[_?"activeKey":"defaultActiveKey"]:_?h:C,tabBarExtraContent:b},z,G=Te(m),q=y?ue.createElement(Py,{size:!G||G==="default"?"large":G,...H,className:`${k}-head-tabs`,onChange:E,items:y.map(({tab:Z,...re})=>({label:Z,...re}))}):null;if(c||a||q){let Z=ki(`${k}-head`,w("header")),re=ki(`${k}-head-title`,w("title")),ae=ki(`${k}-extra`,w("extra")),se={...l,...N("header")};z=ue.createElement("div",{className:Z,style:se},ue.createElement("div",{className:`${k}-head-wrapper`},c&&ue.createElement("div",{className:re,style:N("title")},c),a&&ue.createElement("div",{className:ae,style:N("extra")},a)),q);}let j=ki(`${k}-cover`,w("cover")),K=u?ue.createElement("div",{className:j,style:N("cover")},u):null,Q=ki(`${k}-body`,w("body")),V={...s,...N("body")},U=ue.createElement("div",{className:Q,style:V},p?L:S),Y=ki(`${k}-actions`,w("actions")),J=g?.length?ue.createElement(uz,{actionClasses:Y,actionStyle:N("actions"),actions:g}):null,ie=fx(R,["onTabChange"]),ee=ki(k,M?.className,{[`${k}-loading`]:p,[`${k}-bordered`]:d,[`${k}-hoverable`]:v,[`${k}-contain-grid`]:A,[`${k}-contain-tabs`]:y?.length,[`${k}-${G}`]:G,[`${k}-type-${f}`]:!!f,[`${k}-rtl`]:I==="rtl"},r,n,F,O),X={...M?.style,...i};return D(ue.createElement("div",{ref:t,...ie,className:ee,style:X},z,K,U,J))}),d0=fz;var yz=e=>{let{prefixCls:t,className:o,avatar:r,title:n,description:i,...a}=e,{getPrefixCls:l}=ue.useContext(B),s=l("card",t),c=ki(`${s}-meta`,o),p=r?ue.createElement("div",{className:`${s}-meta-avatar`},r):null,d=n?ue.createElement("div",{className:`${s}-meta-title`},n):null,m=i?ue.createElement("div",{className:`${s}-meta-description`},i):null,f=d||m?ue.createElement("div",{className:`${s}-meta-detail`},d,m):null;return ue.createElement("div",{...a,className:c},p,f)},m0=yz;var $y=d0;$y.Grid=Jd;$y.Meta=m0;var Cz=$y;var Sz=e=>{let{componentCls:t,antCls:o}=e;return {[t]:{...ne(e),".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}}}},bz=e=>{let{componentCls:t,motionDurationSlow:o,arrowSize:r,arrowOffset:n}=e,i=e.calc(r).div(Math.SQRT2).equal();return [{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:r,height:r,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${o}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(r).sub(i).div(2).equal(),insetInlineStart:e.calc(r).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:n,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:n,"&::after":{transform:"rotate(135deg)"}}}}]},xz=e=>{let{componentCls:t,dotOffset:o,dotWidth:r,dotHeight:n,dotGap:i,colorBgContainer:a,motionDurationSlow:l}=e;return [{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:r,height:n,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${l}`,button:{position:"relative",display:"block",width:"100%",height:n,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:n,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${l}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:a,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},Tz=e=>{let{componentCls:t,dotOffset:o,arrowOffset:r,marginXXS:n}=e,i={width:e.dotHeight,height:e.dotWidth};return {[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:r,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:r,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:o},"&-right":{insetInlineEnd:o,insetInlineStart:"auto"},li:{...i,margin:`${unit(n)} 0`,verticalAlign:"baseline",button:i,"&.slick-active":{...i,button:i}}}}}},vz=e=>{let{componentCls:t}=e;return [{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},Pz=e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),u0=te("Carousel",e=>[Sz(e),bz(e),xz(e),Tz(e),vz(e)],Pz,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var f0="slick-dots",g0=({currentSlide:e,slideCount:t,...o})=>ue.createElement("button",{type:"button",...o}),Rz=ue.forwardRef((e,t)=>{let{dots:o=true,arrows:r=false,prevArrow:n=ue.createElement(g0,{"aria-label":"prev"}),nextArrow:i=ue.createElement(g0,{"aria-label":"next"}),draggable:a=false,waitForAnimate:l=false,dotPosition:s="bottom",vertical:c=s==="left"||s==="right",rootClassName:p,className:d,style:m,id:f,...u}=e,{getPrefixCls:g,direction:y,carousel:S}=ue.useContext(B),h=ue.useRef(null),C=(E,w=false)=>{h.current.slickGoTo(E,w);};ue.useImperativeHandle(t,()=>({goTo:C,autoPlay:h.current.innerSlider.autoPlay,innerSlider:h.current.innerSlider,prev:h.current.slickPrev,next:h.current.slickNext}),[h.current]);let b=ue.useRef(ue.Children.count(e.children));ue.useEffect(()=>{b.current!==ue.Children.count(e.children)&&(C(e.initialSlide||0,false),b.current=ue.Children.count(e.children));},[e.children]);let v={vertical:c,className:ki(d,S?.className),style:{...S?.style,...m},...u};v.effect==="fade"&&(v.fade=true);let x=g("carousel",v.prefixCls),T=!!o,$=ki(f0,`${f0}-${s}`,typeof o=="boolean"?false:o?.className),[R,P,I]=u0(x),M=ki(x,{[`${x}-rtl`]:y==="rtl",[`${x}-vertical`]:v.vertical},P,I,p);return R(ue.createElement("div",{className:M,id:f},ue.createElement($z,{ref:h,...v,dots:T,dotsClass:$,arrows:r,prevArrow:n,nextArrow:i,draggable:a,verticalSwiping:c,waitForAnimate:l})))}),Iz=Rz;function wz(e,t){let{getPrefixCls:o,direction:r,renderEmpty:n}=ue.useContext(B),i=t||r,a=o("select",e),l=o("cascader",e);return [a,l,i,n]}var em=wz;function hc(e,t){return ue.useMemo(()=>t?ue.createElement("span",{className:`${e}-checkbox-inner`}):false,[t])}var kz=(e,t,o)=>{let r=o;o||(r=t?ue.createElement(sv,null):ue.createElement(cv,null));let n=ue.createElement("span",{className:`${e}-menu-item-loading-icon`},ue.createElement(Xw,{spin:true}));return ue.useMemo(()=>[r,n],[r])},om=kz;var Bz=e=>{let{checkboxCls:t}=e,o=`${t}-wrapper`;return [{[`${t}-group`]:{...ne(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...ne(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...ne(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:{...wo(e)}},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${unit(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
|
|
193
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},WL=e=>{let{componentCls:t,iconCls:o,actionsLiMargin:r,cardActionsIconSize:n,colorBorderSecondary:i,actionsBg:a}=e;return {margin:0,padding:0,listStyle:"none",background:a,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`,...no(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${o}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:unit(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${o}`]:{fontSize:n,lineHeight:unit(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${i}`}}}},GL=e=>({margin:`${unit(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...no(),"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...qe},"&-description":{color:e.colorTextDescription}}),VL=e=>{let{componentCls:t,cardPaddingBase:o,colorFillAlter:r}=e;return {[`${t}-head`]:{padding:`0 ${unit(o)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${unit(e.padding)} ${unit(o)}`}}},jL=e=>{let{componentCls:t}=e;return {overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},_L=e=>{let{componentCls:t,cardShadow:o,cardHeadPadding:r,colorBorderSecondary:n,boxShadowTertiary:i,cardPaddingBase:a,extraColor:l}=e;return {[t]:{...ae(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:LL(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)}`,...no()},[`${t}-grid`]:HL(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:WL(e),[`${t}-meta`]:GL(e)},[`${t}-bordered`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${n}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:o}},[`${t}-contain-grid`]:{borderRadius:`${unit(e.borderRadiusLG)} ${unit(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:VL(e),[`${t}-loading`]:jL(e),[`${t}-rtl`]:{direction:"rtl"}}},UL=e=>{let{componentCls:t,cardPaddingSM:o,headerHeightSM:r,headerFontSizeSM:n}=e;return {[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${unit(o)}`,fontSize:n,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:o}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},qL=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),h$=oe("Card",e=>{let t=mergeToken(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return [_L(t),UL(t)]},qL);var KL=e=>{let{actionClasses:t,actions:o=[],actionStyle:r}=e;return ve.createElement("ul",{className:t,style:r},o.map((n,i)=>{let a=`action-${i}`;return ve.createElement("li",{style:{width:`${100/o.length}%`},key:a},ve.createElement("span",null,n))}))},YL=ve.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,extra:a,headStyle:l={},bodyStyle:s={},title:c,loading:p,bordered:m=true,size:d,type:f,cover:u,actions:g,tabList:y,children:h,activeTabKey:b,defaultActiveTabKey:C,tabBarExtraContent:S,hoverable:v,tabProps:x={},classNames:$,styles:R,...T}=e,{getPrefixCls:P,direction:N,card:M}=ve.useContext(O),E=X=>{e.onTabChange?.(X);},I=X=>Xi(M?.classNames?.[X],$?.[X]),w=X=>({...M?.styles?.[X],...R?.[X]}),B=ve.useMemo(()=>{let X=false;return ve.Children.forEach(h,re=>{re?.type===Dm&&(X=true);}),X},[h]),k=P("card",o),[D,F,A]=h$(k),L=ve.createElement(Xn,{loading:true,active:true,paragraph:{rows:4},title:false},h),q=b!==void 0,V={...x,[q?"activeKey":"defaultActiveKey"]:q?b:C,tabBarExtraContent:S},z,G=ke(d),Z=y?ve.createElement(yC,{size:!G||G==="default"?"large":G,...V,className:`${k}-head-tabs`,onChange:E,items:y.map(({tab:X,...re})=>({label:X,...re}))}):null;if(c||a||Z){let X=Xi(`${k}-head`,I("header")),re=Xi(`${k}-head-title`,I("title")),ce=Xi(`${k}-extra`,I("extra")),fe={...l,...w("header")};z=ve.createElement("div",{className:X,style:fe},ve.createElement("div",{className:`${k}-head-wrapper`},c&&ve.createElement("div",{className:re,style:w("title")},c),a&&ve.createElement("div",{className:ce,style:w("extra")},a)),Z);}let K=Xi(`${k}-cover`,I("cover")),Q=u?ve.createElement("div",{className:K,style:w("cover")},u):null,ee=Xi(`${k}-body`,I("body")),j={...s,...w("body")},Y=ve.createElement("div",{className:ee,style:j},p?L:h),J=Xi(`${k}-actions`,I("actions")),te=g?.length?ve.createElement(KL,{actionClasses:J,actionStyle:w("actions"),actions:g}):null,ue=vv(T,["onTabChange"]),W=Xi(k,M?.className,{[`${k}-loading`]:p,[`${k}-bordered`]:m,[`${k}-hoverable`]:v,[`${k}-contain-grid`]:B,[`${k}-contain-tabs`]:y?.length,[`${k}-${G}`]:G,[`${k}-type-${f}`]:!!f,[`${k}-rtl`]:N==="rtl"},r,n,F,A),H={...M?.style,...i};return D(ve.createElement("div",{ref:t,...ue,className:W,style:H},z,Q,Y,te))}),b$=YL;var QL=e=>{let{prefixCls:t,className:o,avatar:r,title:n,description:i,...a}=e,{getPrefixCls:l}=ve.useContext(O),s=l("card",t),c=Xi(`${s}-meta`,o),p=r?ve.createElement("div",{className:`${s}-meta-avatar`},r):null,m=n?ve.createElement("div",{className:`${s}-meta-title`},n):null,d=i?ve.createElement("div",{className:`${s}-meta-description`},i):null,f=m||d?ve.createElement("div",{className:`${s}-meta-detail`},m,d):null;return ve.createElement("div",{...a,className:c},p,f)},S$=QL;var CC=b$;CC.Grid=Dm;CC.Meta=S$;var JL=CC;var tH=e=>{let{componentCls:t,antCls:o}=e;return {[t]:{...ae(e),".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}}}},oH=e=>{let{componentCls:t,motionDurationSlow:o,arrowSize:r,arrowOffset:n}=e,i=e.calc(r).div(Math.SQRT2).equal();return [{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:r,height:r,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${o}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(r).sub(i).div(2).equal(),insetInlineStart:e.calc(r).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineWidth:"2px 0",borderBlockWidth:"2px 0",borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:n,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:n,"&::after":{transform:"rotate(135deg)"}}}}]},rH=e=>{let{componentCls:t,dotOffset:o,dotWidth:r,dotHeight:n,dotGap:i,colorBgContainer:a,motionDurationSlow:l}=e;return [{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:r,height:n,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${l}`,button:{position:"relative",display:"block",width:"100%",height:n,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:n,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${l}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:a,opacity:1},"&: hover, &:focus":{opacity:1}}}}}}]},nH=e=>{let{componentCls:t,dotOffset:o,arrowOffset:r,marginXXS:n}=e,i={width:e.dotHeight,height:e.dotWidth};return {[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:r,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:r,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:o},"&-right":{insetInlineEnd:o,insetInlineStart:"auto"},li:{...i,margin:`${unit(n)} 0`,verticalAlign:"baseline",button:i,"&.slick-active":{...i,button:i}}}}}},iH=e=>{let{componentCls:t}=e;return [{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},aH=e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),x$=oe("Carousel",e=>[tH(e),oH(e),rH(e),nH(e),iH(e)],aH,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var v$="slick-dots",T$=({currentSlide:e,slideCount:t,...o})=>ve.createElement("button",{type:"button",...o}),sH=ve.forwardRef((e,t)=>{let{dots:o=true,arrows:r=false,prevArrow:n=ve.createElement(T$,{"aria-label":"prev"}),nextArrow:i=ve.createElement(T$,{"aria-label":"next"}),draggable:a=false,waitForAnimate:l=false,dotPosition:s="bottom",vertical:c=s==="left"||s==="right",rootClassName:p,className:m,style:d,id:f,...u}=e,{getPrefixCls:g,direction:y,carousel:h}=ve.useContext(O),b=ve.useRef(null),C=(E,I=false)=>{b.current.slickGoTo(E,I);};ve.useImperativeHandle(t,()=>({goTo:C,autoPlay:b.current.innerSlider.autoPlay,innerSlider:b.current.innerSlider,prev:b.current.slickPrev,next:b.current.slickNext}),[b.current]);let S=ve.useRef(ve.Children.count(e.children));ve.useEffect(()=>{S.current!==ve.Children.count(e.children)&&(C(e.initialSlide||0,false),S.current=ve.Children.count(e.children));},[e.children]);let v={vertical:c,className:Xi(m,h?.className),style:{...h?.style,...d},...u};v.effect==="fade"&&(v.fade=true);let x=g("carousel",v.prefixCls),$=!!o,R=Xi(v$,`${v$}-${s}`,typeof o=="boolean"?false:o?.className),[T,P,N]=x$(x),M=Xi(x,{[`${x}-rtl`]:y==="rtl",[`${x}-vertical`]:v.vertical},P,N,p);return T(ve.createElement("div",{className:M,id:f},ve.createElement(lH,{ref:b,...v,dots:$,dotsClass:R,arrows:r,prevArrow:n,nextArrow:i,draggable:a,verticalSwiping:c,waitForAnimate:l})))}),cH=sH;function pH(e,t){let{getPrefixCls:o,direction:r,renderEmpty:n}=ve.useContext(O),i=t||r,a=o("select",e),l=o("cascader",e);return [a,l,i,n]}var Bm=pH;function jc(e,t){return ve.useMemo(()=>t?ve.createElement("span",{className:`${e}-checkbox-inner`}):false,[t])}var fH=(e,t,o)=>{let r=o;o||(r=t?ve.createElement(y0,null):ve.createElement(C0,null));let n=ve.createElement("span",{className:`${e}-menu-item-loading-icon`},ve.createElement(iM,{spin:true}));return ve.useMemo(()=>[r,n],[r])},Fm=fH;var gH=e=>{let{checkboxCls:t}=e,o=`${t}-wrapper`;return [{[`${t}-group`]:{...ae(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[o]:{...ae(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${o}`]:{marginInlineStart:0},[`&${o}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[t]:{...ae(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:{...Fo(e)}},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${unit(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
|
|
194
194
|
${o}:not(${o}-disabled),
|
|
195
195
|
${t}:not(${t}-disabled)
|
|
196
196
|
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${o}:not(${o}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
197
197
|
${o}-checked:not(${o}-disabled),
|
|
198
198
|
${t}-checked:not(${t}-disabled)
|
|
199
|
-
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function
|
|
199
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${o}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Za(e,t){let o=mergeToken(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return [gH(o)]}var zm=oe("Checkbox",(e,{prefixCls:t})=>[Za(t,e)]);var CH=e=>{let{prefixCls:t,componentCls:o}=e,r=`${o}-menu-item`,n=`
|
|
200
200
|
&${r}-expand ${r}-expand-icon,
|
|
201
201
|
${r}-loading-icon
|
|
202
|
-
`;return [Da(`${t}-checkbox`,e),{[o]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${o}-menu-empty`]:{[`${o}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":{...Oe,display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[n]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[n]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}}}}}]},nm=Az;var Fz=e=>{let{componentCls:t,antCls:o}=e;return [{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${o}-select-dropdown`]:{padding:0}},nm(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Lo(e)]},Iy=e=>{let t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return {controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}},im=te("Cascader",e=>[Fz(e)],Iy);var zz=e=>{let{componentCls:t}=e;return {[`${t}-panel`]:[nm(e),{display:"inline-flex",border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},h0=js(["Cascader","Panel"],e=>zz(e),Iy);function Wz(e){let{prefixCls:t,className:o,multiple:r,rootClassName:n,notFoundContent:i,direction:a,expandIcon:l,disabled:s}=e,c=ue.useContext(Be),p=s??c,[d,m,f,u]=em(t,a),g=de(m),[y,S,h]=im(m,g);h0(m);let C=f==="rtl",[b,v]=om(d,C,l),x=i||u?.("Cascader")||ue.createElement(ho,{componentName:"Cascader"}),T=hc(m,r);return y(ue.createElement(Panel,{...e,checkable:T,prefixCls:m,className:ki(o,S,n,h,g),notFoundContent:x,direction:f,expandIcon:b,loadingIcon:v,disabled:p}))}var S0=Wz;var{SHOW_CHILD:Gz,SHOW_PARENT:Vz}=x0;function _z(e,t,o){let r=e.toLowerCase().split(t).reduce((a,l,s)=>s===0?[l]:[...a,t,l],[]),n=[],i=0;return r.forEach((a,l)=>{let s=i+a.length,c=e.slice(i,s);i=s,l%2===1&&(c=ue.createElement("span",{className:`${o}-menu-item-keyword`,key:`separator-${l}`},c)),n.push(c);}),n}var jz=(e,t,o,r)=>{let n=[],i=e.toLowerCase();return t.forEach((a,l)=>{l!==0&&n.push(" / ");let s=a[r.label],c=typeof s;(c==="string"||c==="number")&&(s=_z(String(s),i,o)),n.push(s);}),n},Zl=ue.forwardRef((e,t)=>{let{prefixCls:o,size:r,disabled:n,className:i,rootClassName:a,multiple:l,bordered:s=true,transitionName:c,choiceTransitionName:p="",popupClassName:d,dropdownClassName:m,expandIcon:f,placement:u,showSearch:g,allowClear:y=true,notFoundContent:S,direction:h,getPopupContainer:C,status:b,showArrow:v,builtinPlacements:x,style:T,variant:$,...R}=e,P=fx(R,["suffixIcon"]),{getPopupContainer:I,getPrefixCls:M,popupOverflow:E,cascader:w}=ue.useContext(B),{status:N,hasFeedback:A,isFormItemInput:k,feedbackIcon:D}=ue.useContext(ke),F=Rt(N,b),[O,L,_,H]=em(o,h),z=_==="rtl",G=M(),W=de(O),[q,j,K]=Vl(O,W),Q=de(L),[V]=im(L,Q),{compactSize:U,compactItemClassnames:Y}=$t(O,h),[J,ie]=Ot("cascader",$,s),ee=S||H?.("Cascader")||ue.createElement(ho,{componentName:"Cascader"}),X=ki(d||m,`${L}-dropdown`,{[`${L}-dropdown-rtl`]:_==="rtl"},a,W,Q,j,K),Z=ue.useMemo(()=>{if(!g)return g;let De={render:jz};return typeof g=="object"&&(De={...De,...g}),De},[g]),re=Te(De=>r??U??De),ae=ue.useContext(Be),se=n??ae,[Ce,$e]=om(O,z,f),Ge=hc(L,l),xe=ha(e.suffixIcon,v),{suffixIcon:qe,removeIcon:lt,clearIcon:Ye}=zn({...e,hasFeedback:A,feedbackIcon:D,showSuffixIcon:xe,multiple:l,prefixCls:O,componentName:"Cascader"}),me=ue.useMemo(()=>u!==void 0?u:z?"bottomRight":"bottomLeft",[u,z]),Re=y===true?{clearIcon:Ye}:y,[Ne]=rt("SelectLike",P.dropdownStyle?.zIndex),Me=ue.createElement(x0,{prefixCls:O,className:ki(!o&&L,{[`${O}-lg`]:re==="large",[`${O}-sm`]:re==="small",[`${O}-rtl`]:z,[`${O}-${J}`]:ie,[`${O}-in-form-item`]:k},yt(O,F,A),Y,w?.className,i,a,W,Q,j,K),disabled:se,style:{...w?.style,...T},...P,builtinPlacements:Gl(x,E),direction:_,placement:me,notFoundContent:ee,allowClear:Re,showSearch:Z,expandIcon:Ce,suffixIcon:qe,removeIcon:lt,loadingIcon:$e,checkable:Ge,dropdownClassName:X,dropdownPrefixCls:o||L,dropdownStyle:{...P.dropdownStyle,zIndex:Ne},choiceTransitionName:Ze(G,"",p),transitionName:Ze(G,"slide-up",c),getPopupContainer:C||I,ref:t});return V(q(Me))}),Uz=Wt(Zl,"dropdownAlign",e=>fx(e,["visible"]));Zl.SHOW_PARENT=Vz;Zl.SHOW_CHILD=Gz;Zl.Panel=S0;Zl._InternalPanelDoNotUseOrYouWillBeFired=Uz;var wy=Zl;var Xz=ue__default.createContext(null),am=Xz;var Zz=(e,t)=>{let{prefixCls:o,className:r,rootClassName:n,children:i,indeterminate:a=false,style:l,onMouseEnter:s,onMouseLeave:c,skipGroup:p=false,disabled:d,...m}=e,{getPrefixCls:f,direction:u,checkbox:g}=ue.useContext(B),y=ue.useContext(am),{isFormItemInput:S}=ue.useContext(ke),h=ue.useContext(Be),C=(y?.disabled||d)??h,b=ue.useRef(m.value),v=ue.useRef(null),x=composeRef(t,v);ue.useEffect(()=>{y?.registerValue(m.value);},[]),ue.useEffect(()=>{if(!p)return m.value!==b.current&&(y?.cancelValue(b.current),y?.registerValue(m.value),b.current=m.value),()=>y?.cancelValue(m.value)},[m.value]),ue.useEffect(()=>{v.current?.input&&(v.current.input.indeterminate=a);},[a]);let T=f("checkbox",o),$=de(T),[R,P,I]=rm(T,$),M={...m};y&&!p&&(M.onChange=(...k)=>{m.onChange&&m.onChange(...k),y.toggleOption&&y.toggleOption({label:i,value:m.value});},M.name=y.name,M.checked=y.value.includes(m.value));let E=ki(`${T}-wrapper`,{[`${T}-rtl`]:u==="rtl",[`${T}-wrapper-checked`]:M.checked,[`${T}-wrapper-disabled`]:C,[`${T}-wrapper-in-form-item`]:S},g?.className,r,n,I,$,P),w=ki({[`${T}-indeterminate`]:a},fi,P),[N,A]=yc(M.onClick);return R(ue.createElement(rn,{component:"Checkbox",disabled:C},ue.createElement("label",{className:E,style:{...g?.style,...l},onMouseEnter:s,onMouseLeave:c,onClick:N},ue.createElement(eO,{...M,onClick:A,prefixCls:T,className:w,disabled:C,ref:x}),i!==void 0&&ue.createElement("span",null,i))))},Qz=ue.forwardRef(Zz),lm=Qz;var tL=ue.forwardRef((e,t)=>{let{defaultValue:o,children:r,options:n=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:c,...p}=e,{getPrefixCls:d,direction:m}=ue.useContext(B),[f,u]=ue.useState(p.value||o||[]),[g,y]=ue.useState([]);ue.useEffect(()=>{"value"in p&&u(p.value||[]);},[p.value]);let S=ue.useMemo(()=>n.map(N=>typeof N=="string"||typeof N=="number"?{label:N,value:N}:N),[n]),h=N=>{y(A=>A.filter(k=>k!==N));},C=N=>{y(A=>[...A,N]);},b=N=>{let A=f.indexOf(N.value),k=[...f];A===-1?k.push(N.value):k.splice(A,1),"value"in p||u(k),c?.(k.filter(D=>g.includes(D)).sort((D,F)=>{let O=S.findIndex(_=>_.value===D),L=S.findIndex(_=>_.value===F);return O-L}));},v=d("checkbox",i),x=`${v}-group`,T=de(v),[$,R,P]=rm(v,T),I=fx(p,["value","disabled"]),M=n.length?S.map(N=>ue.createElement(lm,{prefixCls:v,key:N.value.toString(),disabled:"disabled"in N?N.disabled:p.disabled,value:N.value,checked:f.includes(N.value),onChange:N.onChange,className:`${x}-item`,style:N.style,title:N.title,id:N.id,required:N.required},N.label)):r,E={toggleOption:b,value:f,disabled:p.disabled,name:p.name,registerValue:C,cancelValue:h},w=ki(x,{[`${x}-rtl`]:m==="rtl"},a,l,P,T,R);return $(ue.createElement("div",{className:w,style:s,...I,ref:t},ue.createElement(am.Provider,{value:E},M)))});var P0=tL;var Ny=lm;Ny.Group=P0;Ny.__ANT_CHECKBOX=true;var pr=Ny;var rL=createContext({}),sm=rL;var iL=e=>{let{componentCls:t}=e;return {[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},aL=e=>{let{componentCls:t}=e;return {[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},lL=(e,t)=>{let{prefixCls:o,componentCls:r,gridColumns:n}=e,i={};for(let a=n;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/n*100}%`,maxWidth:`${a/n*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/n*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/n*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/n*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${o}${t}-flex)`},i},My=(e,t)=>lL(e,t),sL=(e,t,o)=>({[`@media (min-width: ${unit(t)})`]:{...My(e,o)}}),cL=()=>({}),pL=()=>({}),$0=te("Grid",iL,cL),R0=te("Grid",e=>{let t=mergeToken(e,{gridColumns:24}),o={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return [aL(t),My(t,""),My(t,"-xs"),Object.keys(o).map(r=>sL(t,o[r],r)).reduce((r,n)=>({...r,...n}),{})]},pL);function I0(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var mL=["xs","sm","md","lg","xl","xxl"],uL=ue.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=ue.useContext(B),{gutter:n,wrap:i}=ue.useContext(sm),{prefixCls:a,span:l,order:s,offset:c,push:p,pull:d,className:m,children:f,flex:u,style:g,...y}=e,S=o("col",a),[h,C,b]=R0(S),v={},x={};mL.forEach(R=>{let P={},I=e[R];typeof I=="number"?P.span=I:typeof I=="object"&&(P=I||{}),delete y[R],x={...x,[`${S}-${R}-${P.span}`]:P.span!==void 0,[`${S}-${R}-order-${P.order}`]:P.order||P.order===0,[`${S}-${R}-offset-${P.offset}`]:P.offset||P.offset===0,[`${S}-${R}-push-${P.push}`]:P.push||P.push===0,[`${S}-${R}-pull-${P.pull}`]:P.pull||P.pull===0,[`${S}-rtl`]:r==="rtl"},P.flex&&(x[`${S}-${R}-flex`]=true,v[`--${S}-${R}-flex`]=I0(P.flex));});let T=ki(S,{[`${S}-${l}`]:l!==void 0,[`${S}-order-${s}`]:s,[`${S}-offset-${c}`]:c,[`${S}-push-${p}`]:p,[`${S}-pull-${d}`]:d},m,x,C,b),$={};if(n&&n[0]>0){let R=n[0]/2;$.paddingLeft=R,$.paddingRight=R;}return u&&($.flex=I0(u),i===false&&!$.minWidth&&($.minWidth=0)),h(ue.createElement("div",{...y,style:{...$,...g,...v},className:T,ref:t},f))}),_n=uL;function w0(e,t){let[o,r]=ue.useState(typeof e=="string"?e:""),n=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<or.length;i++){let a=or[i];if(!t[a])continue;let l=e[a];if(l!==void 0){r(l);return}}};return ue.useEffect(()=>{n();},[JSON.stringify(e),t]),o}var gL=ue.forwardRef((e,t)=>{let{prefixCls:o,justify:r,align:n,className:i,style:a,children:l,gutter:s=0,wrap:c,...p}=e,{getPrefixCls:d,direction:m}=ue.useContext(B),[f,u]=ue.useState({xs:true,sm:true,md:true,lg:true,xl:true,xxl:true}),[g,y]=ue.useState({xs:false,sm:false,md:false,lg:false,xl:false,xxl:false}),S=w0(n,g),h=w0(r,g),C=ue.useRef(s),b=cc();ue.useEffect(()=>{let k=b.subscribe(D=>{y(D);let F=C.current||0;(!Array.isArray(F)&&typeof F=="object"||Array.isArray(F)&&(typeof F[0]=="object"||typeof F[1]=="object"))&&u(D);});return ()=>b.unsubscribe(k)},[]);let v=()=>{let k=[void 0,void 0];return (Array.isArray(s)?s:[s,void 0]).forEach((F,O)=>{if(typeof F=="object")for(let L=0;L<or.length;L++){let _=or[L];if(f[_]&&F[_]!==void 0){k[O]=F[_];break}}else k[O]=F;}),k},x=d("row",o),[T,$,R]=$0(x),P=v(),I=ki(x,{[`${x}-no-wrap`]:c===false,[`${x}-${h}`]:h,[`${x}-${S}`]:S,[`${x}-rtl`]:m==="rtl"},i,$,R),M={},E=P[0]!=null&&P[0]>0?P[0]/-2:void 0;E&&(M.marginLeft=E,M.marginRight=E);let[w,N]=P;M.rowGap=N;let A=ue.useMemo(()=>({gutter:[w,N],wrap:c}),[w,N,c]);return T(ue.createElement(sm.Provider,{value:A},ue.createElement("div",{...p,className:I,style:{...M,...a},ref:t},l)))}),Fa=gL;function yL(){return Vo()}var CL={useBreakpoint:yL};var hL=_n;var SL=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:n,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return {[t]:{...ne(e),borderBlockStart:`${unit(n)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${unit(n)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${unit(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${unit(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${unit(n)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${unit(n)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${unit(n)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:o}}}}},bL=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),N0=te("Divider",e=>{let t=mergeToken(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [SL(t)]},bL,{unitless:{orientationMargin:true}});var TL=e=>{let{getPrefixCls:t,direction:o,divider:r}=ue.useContext(B),{prefixCls:n,type:i="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:c,children:p,dashed:d,variant:m="solid",plain:f,style:u,...g}=e,y=t("divider",n),[S,h,C]=N0(y),b=!!p,v=a==="left"&&l!=null,x=a==="right"&&l!=null,T=ki(y,r?.className,h,C,`${y}-${i}`,{[`${y}-with-text`]:b,[`${y}-with-text-${a}`]:b,[`${y}-dashed`]:!!d,[`${y}-${m}`]:m!=="solid",[`${y}-plain`]:!!f,[`${y}-rtl`]:o==="rtl",[`${y}-no-default-orientation-margin-left`]:v,[`${y}-no-default-orientation-margin-right`]:x},s,c),$=ue.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),R={...v&&{marginLeft:$},...x&&{marginRight:$}};return S(ue.createElement("div",{className:T,style:{...r?.style,...u},...g,role:"separator"},p&&i!=="vertical"&&ue.createElement("span",{className:`${y}-inner-text`,style:R},p)))},Ey=TL;function M0(e,t){return {[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function E0(e){return {backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}var vL={overflow:"hidden",...Oe},PL=e=>{let{componentCls:t}=e,o=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),n=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return {[t]:{...ne(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${unit(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...E0(e),color:e.itemSelectedColor},"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":{minHeight:o,lineHeight:unit(o),padding:`0 ${unit(e.segmentedPaddingHorizontal)}`,...vL},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...E0(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${unit(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:unit(r),padding:`0 ${unit(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:n,lineHeight:unit(n),padding:`0 ${unit(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...M0(`&-disabled ${t}-item`,e),...M0(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}}}},$L=e=>{let{colorTextLabel:t,colorText:o,colorFillSecondary:r,colorBgElevated:n,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return {trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:o,itemHoverBg:r,itemSelectedBg:n,itemActiveBg:i,itemSelectedColor:o}},k0=te("Segmented",e=>{let{lineWidth:t,calc:o}=e,r=mergeToken(e,{segmentedPaddingHorizontal:o(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:o(e.controlPaddingHorizontalSM).sub(t).equal()});return [PL(r)]},$L);function wL(e){return typeof e=="object"&&!!e?.icon}var NL=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,block:i,options:a=[],size:l="middle",style:s,vertical:c,...p}=e,{getPrefixCls:d,direction:m,segmented:f}=ue.useContext(B),u=d("segmented",o),[g,y,S]=k0(u),h=Te(l),C=ue.useMemo(()=>a.map(x=>{if(wL(x)){let{icon:T,label:$,...R}=x;return {...R,label:ue.createElement(ue.Fragment,null,ue.createElement("span",{className:`${u}-item-icon`},T),$&&ue.createElement("span",null,$))}}return x}),[a,u]),b=ki(r,n,f?.className,{[`${u}-block`]:i,[`${u}-sm`]:h==="small",[`${u}-lg`]:h==="large",[`${u}-vertical`]:c},y,S),v={...f?.style,...s};return g(ue.createElement(IL,{...p,className:b,style:v,options:C,ref:t,prefixCls:u,direction:m,vertical:c}))}),ML=NL,ky=ML;var cm=ue__default.createContext({}),pm=ue__default.createContext({});var kL=({prefixCls:e,value:t,onChange:o})=>{let r=()=>{if(o&&t&&!t.cleared){let n=t.toHsb();n.a=0;let i=mt(n);i.cleared=true,o(i);}};return ue__default.createElement("div",{className:`${e}-clear`,onClick:r})},dm=kL;var D0=e=>{let t=e.handleVisible??"auto",o=e.controlHeightSM-e.lineWidth*2;return {...Nr(e),controlWidth:90,handleWidth:o,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new TinyColor(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===true?1:0,handleVisibleWidth:t===true?o:0}};var A0=({componentCls:e,borderRadiusSM:t,borderRadiusLG:o},r)=>{let n=r==="lg"?o:t;return {[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:n,borderEndEndRadius:n},[`${e}-handler-up`]:{borderStartEndRadius:n},[`${e}-handler-down`]:{borderEndEndRadius:n}}}},DL=e=>{let{componentCls:t,lineWidth:o,lineType:r,borderRadius:n,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:c,paddingInlineSM:p,paddingBlockSM:d,paddingBlockLG:m,paddingInlineLG:f,colorTextDescription:u,motionDurationMid:g,handleHoverColor:y,handleOpacity:S,paddingInline:h,paddingBlock:C,handleBg:b,handleActiveBg:v,colorTextDisabled:x,borderRadiusSM:T,borderRadiusLG:$,controlWidth:R,handleBorderColor:P,filledHandleBg:I,lineHeightLG:M,calc:E}=e;return [{[t]:{...ne(e),...un(e),display:"inline-block",width:R,margin:0,padding:0,borderRadius:n,...Ni(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${unit(o)} ${r} ${P}`}}}),...Ei(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${unit(o)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}}),...Mi(e),"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:M,borderRadius:$,[`input${t}-input`]:{height:E(l).sub(E(o).mul(2)).equal(),padding:`${unit(m)} ${unit(f)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:T,[`input${t}-input`]:{height:E(s).sub(E(o).mul(2)).equal(),padding:`${unit(d)} ${unit(p)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":{...ne(e),...gy(e),"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:T}},...jd(e),...Ud(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}},[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":{...ne(e),width:"100%",padding:`${unit(C)} ${unit(h)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:n,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit",...Ea(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}}},{[t]:{[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:S,height:"100%",borderStartStartRadius:0,borderStartEndRadius:n,borderEndEndRadius:n,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
202
|
+
`;return [Za(`${t}-checkbox`,e),{[o]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${o}-menu-empty`]:{[`${o}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":{...qe,display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[n]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[n]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}}}}}]},Am=CH;var hH=e=>{let{componentCls:t,antCls:o}=e;return [{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${o}-select-dropdown`]:{padding:0}},Am(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},qo(e)]},bC=e=>{let t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return {controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS}},Lm=oe("Cascader",e=>[hH(e)],bC);var SH=e=>{let{componentCls:t}=e;return {[`${t}-panel`]:[Am(e),{display:"inline-flex",border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},R$=Cc(["Cascader","Panel"],e=>SH(e),bC);function TH(e){let{prefixCls:t,className:o,multiple:r,rootClassName:n,notFoundContent:i,direction:a,expandIcon:l,disabled:s}=e,c=ve.useContext(We),p=s??c,[m,d,f,u]=Bm(t,a),g=$e(d),[y,h,b]=Lm(d,g);R$(d);let C=f==="rtl",[S,v]=Fm(m,C,l),x=i||u?.("Cascader")||ve.createElement(Po,{componentName:"Cascader"}),$=jc(d,r);return y(ve.createElement(Panel,{...e,checkable:$,prefixCls:d,className:Xi(o,h,n,b,g),notFoundContent:x,direction:f,expandIcon:S,loadingIcon:v,disabled:p}))}var I$=TH;var{SHOW_CHILD:$H,SHOW_PARENT:PH}=N$;function RH(e,t,o){let r=e.toLowerCase().split(t).reduce((a,l,s)=>s===0?[l]:[...a,t,l],[]),n=[],i=0;return r.forEach((a,l)=>{let s=i+a.length,c=e.slice(i,s);i=s,l%2===1&&(c=ve.createElement("span",{className:`${o}-menu-item-keyword`,key:`separator-${l}`},c)),n.push(c);}),n}var IH=(e,t,o,r)=>{let n=[],i=e.toLowerCase();return t.forEach((a,l)=>{l!==0&&n.push(" / ");let s=a[r.label],c=typeof s;(c==="string"||c==="number")&&(s=RH(String(s),i,o)),n.push(s);}),n},xs=ve.forwardRef((e,t)=>{let{prefixCls:o,size:r,disabled:n,className:i,rootClassName:a,multiple:l,bordered:s=true,transitionName:c,choiceTransitionName:p="",popupClassName:m,dropdownClassName:d,expandIcon:f,placement:u,showSearch:g,allowClear:y=true,notFoundContent:h,direction:b,getPopupContainer:C,status:S,showArrow:v,builtinPlacements:x,style:$,variant:R,...T}=e,P=vv(T,["suffixIcon"]),{getPopupContainer:N,getPrefixCls:M,popupOverflow:E,cascader:I}=ve.useContext(O),{status:w,hasFeedback:B,isFormItemInput:k,feedbackIcon:D}=ve.useContext(Le),F=Et(w,S),[A,L,q,V]=Bm(o,b),z=q==="rtl",G=M(),_=$e(A),[Z,K,Q]=us(A,_),ee=$e(L),[j]=Lm(L,ee),{compactSize:Y,compactItemClassnames:J}=Mt(A,b),[te,ue]=Vt("cascader",R,s),W=h||V?.("Cascader")||ve.createElement(Po,{componentName:"Cascader"}),H=Xi(m||d,`${L}-dropdown`,{[`${L}-dropdown-rtl`]:q==="rtl"},a,_,ee,K,Q),X=ve.useMemo(()=>{if(!g)return g;let he={render:IH};return typeof g=="object"&&(he={...he,...g}),he},[g]),re=ke(he=>r??Y??he),ce=ve.useContext(We),fe=n??ce,[Pe,we]=Fm(A,z,f),ye=jc(L,l),ge=Fa(e.suffixIcon,v),{suffixIcon:xe,removeIcon:Te,clearIcon:Se}=Zn({...e,hasFeedback:B,feedbackIcon:D,showSuffixIcon:ge,multiple:l,prefixCls:A,componentName:"Cascader"}),de=ve.useMemo(()=>u!==void 0?u:z?"bottomRight":"bottomLeft",[u,z]),U=y===true?{clearIcon:Se}:y,[pe]=dt("SelectLike",P.dropdownStyle?.zIndex),se=ve.createElement(N$,{prefixCls:A,className:Xi(!o&&L,{[`${A}-lg`]:re==="large",[`${A}-sm`]:re==="small",[`${A}-rtl`]:z,[`${A}-${te}`]:ue,[`${A}-in-form-item`]:k},xt(A,F,B),J,I?.className,i,a,_,ee,K,Q),disabled:fe,style:{...I?.style,...$},...P,builtinPlacements:ms(x,E),direction:q,placement:de,notFoundContent:W,allowClear:U,showSearch:X,expandIcon:Pe,suffixIcon:xe,removeIcon:Te,loadingIcon:we,checkable:ye,dropdownClassName:H,dropdownPrefixCls:o||L,dropdownStyle:{...P.dropdownStyle,zIndex:pe},choiceTransitionName:it(G,"",p),transitionName:it(G,"slide-up",c),getPopupContainer:C||N,ref:t});return j(Z(se))}),wH=Xt(xs,"dropdownAlign",e=>vv(e,["visible"]));xs.SHOW_PARENT=PH;xs.SHOW_CHILD=$H;xs.Panel=I$;xs._InternalPanelDoNotUseOrYouWillBeFired=wH;var SC=xs;var NH=e=>{let{componentCls:t,maskBg:o,motionDuration:r,colorBgContainer:n,colorBorder:i,colorBorderSecondary:a,colorTextSecondary:l,colorText:s,controlHeight:c,borderRadiusLG:p,paddingContentHorizontal:m,fontSizeSM:d,marginSM:f,marginXS:u,boxShadowSecondary:g,motionEaseInOut:y}=e;return {[t]:{...ae(e),position:"relative",width:"fit-content",maxWidth:"100%",overflow:"hidden",marginBlockEnd:f,[`${t}-content`]:{overflow:"hidden",transition:`max-height ${r} ${y}`},[`${t}-mask`]:{position:"absolute",insetInline:0,insetBlockEnd:0,display:"flex",alignItems:"flex-end",justifyContent:"center",boxSizing:"border-box",paddingBlockEnd:f,pointerEvents:"none",background:o},[`${t}-collapse-bar`]:{display:"flex",alignItems:"center",justifyContent:"center",paddingBlockStart:f},[`${t}-toggle-btn`]:{pointerEvents:"auto",display:"inline-flex",alignItems:"center",justifyContent:"center",height:c,paddingInline:m,color:l,fontSize:d,lineHeight:1,background:n,border:`${e.lineWidth}px ${e.lineType} ${i}`,borderRadius:p,boxShadow:g,cursor:"pointer",transition:`all ${r} ${y}`,"&:hover":{color:s,borderColor:a},[`& + ${t}-toggle-btn`]:{marginInlineStart:u}}}}},MH=e=>({maskBg:`linear-gradient(180deg, ${new TinyColor(e.colorBgContainer).setAlpha(0).toRgbString()} 0%, ${new TinyColor(e.colorBgContainer).setAlpha(.6).toRgbString()} 45%, ${new TinyColor(e.colorBgContainer).setAlpha(.95).toRgbString()} 100%)`,motionDuration:e.motionDurationSlow}),E$=oe("ClapOverflow",e=>{let t=mergeToken(e,{});return [NH(t)]},MH);function BH(e){let{prefixCls:t,children:o,maxHeight:r=200,filterHeight:n=80,expandText:i="\u5C55\u5F00\u5168\u90E8",collapseText:a="\u6536\u8D77",collapsible:l=false,foldable:s=true,className:c,style:p}=e,{getPrefixCls:m}=ve.useContext(O),d=m("clap-overflow",t),[f,u,g]=E$(d),y=useRef(null),h=useRef(null),[b,C]=useState(true),[S,v]=useState(false),[x,$]=useState(),[R,T]=useState(),[P,N]=useState(),M=useCallback(()=>{let w=y.current,B=h.current;if(!w||!B)return;v(B.scrollHeight>r+1),N(B.scrollHeight);let k=w.parentElement?.clientWidth;k&&$(k);let D=0;Array.from(B.children).forEach(F=>{D=Math.max(D,Math.ceil(F.getBoundingClientRect().width));}),T(D||void 0);},[r]);useEffect(()=>{M();let w=h.current,B=y.current?.parentElement;if(!w||typeof ResizeObserver>"u")return;let k=new ResizeObserver(()=>M());return k.observe(w),B&&k.observe(B),w.addEventListener("load",M,true),()=>{k.disconnect(),w.removeEventListener("load",M,true);}},[M,o]);let E=s&&S&&b,I=Xi(d,u,g,c);return f(ve.createElement("div",{ref:y,className:I,style:{...p,width:R?`${R}px`:void 0}},ve.createElement("div",{ref:h,className:`${d}-content`,style:{width:x?`${x}px`:"100%",maxHeight:E?`${r}px`:`${P??r}px`}},o),E&&ve.createElement("div",{className:`${d}-mask`,style:{height:`${n}px`}},ve.createElement("button",{type:"button",className:`${d}-toggle-btn`,onClick:()=>C(false)},i)),s&&S&&!b&&l&&ve.createElement("div",{className:`${d}-collapse-bar`},ve.createElement("button",{type:"button",className:`${d}-toggle-btn`,onClick:()=>C(true)},a))))}var OH=BH;var zH=ve__default.createContext(null),Hm=zH;var HH=(e,t)=>{let{prefixCls:o,className:r,rootClassName:n,children:i,indeterminate:a=false,style:l,onMouseEnter:s,onMouseLeave:c,skipGroup:p=false,disabled:m,...d}=e,{getPrefixCls:f,direction:u,checkbox:g}=ve.useContext(O),y=ve.useContext(Hm),{isFormItemInput:h}=ve.useContext(Le),b=ve.useContext(We),C=(y?.disabled||m)??b,S=ve.useRef(d.value),v=ve.useRef(null),x=composeRef(t,v);ve.useEffect(()=>{y?.registerValue(d.value);},[]),ve.useEffect(()=>{if(!p)return d.value!==S.current&&(y?.cancelValue(S.current),y?.registerValue(d.value),S.current=d.value),()=>y?.cancelValue(d.value)},[d.value]),ve.useEffect(()=>{v.current?.input&&(v.current.input.indeterminate=a);},[a]);let $=f("checkbox",o),R=$e($),[T,P,N]=zm($,R),M={...d};y&&!p&&(M.onChange=(...k)=>{d.onChange&&d.onChange(...k),y.toggleOption&&y.toggleOption({label:i,value:d.value});},M.name=y.name,M.checked=y.value.includes(d.value));let E=Xi(`${$}-wrapper`,{[`${$}-rtl`]:u==="rtl",[`${$}-wrapper-checked`]:M.checked,[`${$}-wrapper-disabled`]:C,[`${$}-wrapper-in-form-item`]:h},g?.className,r,n,N,R,P),I=Xi({[`${$}-indeterminate`]:a},Mi,P),[w,B]=Gc(M.onClick);return T(ve.createElement(fn,{component:"Checkbox",disabled:C},ve.createElement("label",{className:E,style:{...g?.style,...l},onMouseEnter:s,onMouseLeave:c,onClick:w},ve.createElement(FA,{...M,onClick:B,prefixCls:$,className:I,disabled:C,ref:x}),i!==void 0&&ve.createElement("span",null,i))))},WH=ve.forwardRef(HH),Wm=WH;var jH=ve.forwardRef((e,t)=>{let{defaultValue:o,children:r,options:n=[],prefixCls:i,className:a,rootClassName:l,style:s,onChange:c,...p}=e,{getPrefixCls:m,direction:d}=ve.useContext(O),[f,u]=ve.useState(p.value||o||[]),[g,y]=ve.useState([]);ve.useEffect(()=>{"value"in p&&u(p.value||[]);},[p.value]);let h=ve.useMemo(()=>n.map(w=>typeof w=="string"||typeof w=="number"?{label:w,value:w}:w),[n]),b=w=>{y(B=>B.filter(k=>k!==w));},C=w=>{y(B=>[...B,w]);},S=w=>{let B=f.indexOf(w.value),k=[...f];B===-1?k.push(w.value):k.splice(B,1),"value"in p||u(k),c?.(k.filter(D=>g.includes(D)).sort((D,F)=>{let A=h.findIndex(q=>q.value===D),L=h.findIndex(q=>q.value===F);return A-L}));},v=m("checkbox",i),x=`${v}-group`,$=$e(v),[R,T,P]=zm(v,$),N=vv(p,["value","disabled"]),M=n.length?h.map(w=>ve.createElement(Wm,{prefixCls:v,key:w.value.toString(),disabled:"disabled"in w?w.disabled:p.disabled,value:w.value,checked:f.includes(w.value),onChange:w.onChange,className:`${x}-item`,style:w.style,title:w.title,id:w.id,required:w.required},w.label)):r,E={toggleOption:S,value:f,disabled:p.disabled,name:p.name,registerValue:C,cancelValue:b},I=Xi(x,{[`${x}-rtl`]:d==="rtl"},a,l,P,$,T);return R(ve.createElement("div",{className:I,style:s,...N,ref:t},ve.createElement(Hm.Provider,{value:E},M)))});var B$=jH;var vC=Wm;vC.Group=B$;vC.__ANT_CHECKBOX=true;var hr=vC;var UH=createContext({}),Gm=UH;var XH=e=>{let{componentCls:t}=e;return {[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},KH=e=>{let{componentCls:t}=e;return {[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},YH=(e,t)=>{let{prefixCls:o,componentCls:r,gridColumns:n}=e,i={};for(let a=n;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/n*100}%`,maxWidth:`${a/n*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/n*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/n*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/n*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${o}${t}-flex)`},i},TC=(e,t)=>YH(e,t),ZH=(e,t,o)=>({[`@media (min-width: ${unit(t)})`]:{...TC(e,o)}}),QH=()=>({}),JH=()=>({}),O$=oe("Grid",XH,QH),F$=oe("Grid",e=>{let t=mergeToken(e,{gridColumns:24}),o={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return [KH(t),TC(t,""),TC(t,"-xs"),Object.keys(o).map(r=>ZH(t,o[r],r)).reduce((r,n)=>({...r,...n}),{})]},JH);function z$(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var t6=["xs","sm","md","lg","xl","xxl"],o6=ve.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=ve.useContext(O),{gutter:n,wrap:i}=ve.useContext(Gm),{prefixCls:a,span:l,order:s,offset:c,push:p,pull:m,className:d,children:f,flex:u,style:g,...y}=e,h=o("col",a),[b,C,S]=F$(h),v={},x={};t6.forEach(T=>{let P={},N=e[T];typeof N=="number"?P.span=N:typeof N=="object"&&(P=N||{}),delete y[T],x={...x,[`${h}-${T}-${P.span}`]:P.span!==void 0,[`${h}-${T}-order-${P.order}`]:P.order||P.order===0,[`${h}-${T}-offset-${P.offset}`]:P.offset||P.offset===0,[`${h}-${T}-push-${P.push}`]:P.push||P.push===0,[`${h}-${T}-pull-${P.pull}`]:P.pull||P.pull===0,[`${h}-rtl`]:r==="rtl"},P.flex&&(x[`${h}-${T}-flex`]=true,v[`--${h}-${T}-flex`]=z$(P.flex));});let $=Xi(h,{[`${h}-${l}`]:l!==void 0,[`${h}-order-${s}`]:s,[`${h}-offset-${c}`]:c,[`${h}-push-${p}`]:p,[`${h}-pull-${m}`]:m},d,x,C,S),R={};if(n&&n[0]>0){let T=n[0]/2;R.paddingLeft=T,R.paddingRight=T;}return u&&(R.flex=z$(u),i===false&&!R.minWidth&&(R.minWidth=0)),b(ve.createElement("div",{...y,style:{...R,...g,...v},className:$,ref:t},f))}),ii=o6;function A$(e,t){let[o,r]=ve.useState(typeof e=="string"?e:""),n=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<pr.length;i++){let a=pr[i];if(!t[a])continue;let l=e[a];if(l!==void 0){r(l);return}}};return ve.useEffect(()=>{n();},[JSON.stringify(e),t]),o}var n6=ve.forwardRef((e,t)=>{let{prefixCls:o,justify:r,align:n,className:i,style:a,children:l,gutter:s=0,wrap:c,...p}=e,{getPrefixCls:m,direction:d}=ve.useContext(O),[f,u]=ve.useState({xs:true,sm:true,md:true,lg:true,xl:true,xxl:true}),[g,y]=ve.useState({xs:false,sm:false,md:false,lg:false,xl:false,xxl:false}),h=A$(n,g),b=A$(r,g),C=ve.useRef(s),S=Oc();ve.useEffect(()=>{let k=S.subscribe(D=>{y(D);let F=C.current||0;(!Array.isArray(F)&&typeof F=="object"||Array.isArray(F)&&(typeof F[0]=="object"||typeof F[1]=="object"))&&u(D);});return ()=>S.unsubscribe(k)},[]);let v=()=>{let k=[void 0,void 0];return (Array.isArray(s)?s:[s,void 0]).forEach((F,A)=>{if(typeof F=="object")for(let L=0;L<pr.length;L++){let q=pr[L];if(f[q]&&F[q]!==void 0){k[A]=F[q];break}}else k[A]=F;}),k},x=m("row",o),[$,R,T]=O$(x),P=v(),N=Xi(x,{[`${x}-no-wrap`]:c===false,[`${x}-${b}`]:b,[`${x}-${h}`]:h,[`${x}-rtl`]:d==="rtl"},i,R,T),M={},E=P[0]!=null&&P[0]>0?P[0]/-2:void 0;E&&(M.marginLeft=E,M.marginRight=E);let[I,w]=P;M.rowGap=w;let B=ve.useMemo(()=>({gutter:[I,w],wrap:c}),[I,w,c]);return $(ve.createElement(Gm.Provider,{value:B},ve.createElement("div",{...p,className:N,style:{...M,...a},ref:t},l)))}),Ja=n6;function i6(){return Zo()}var a6={useBreakpoint:i6};var l6=ii;var s6=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:n,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return {[t]:{...ae(e),borderBlockStart:`${unit(n)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${unit(n)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${unit(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${unit(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${unit(n)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${unit(n)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${unit(n)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:o}}}}},c6=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),L$=oe("Divider",e=>{let t=mergeToken(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return [s6(t)]},c6,{unitless:{orientationMargin:true}});var d6=e=>{let{getPrefixCls:t,direction:o,divider:r}=ve.useContext(O),{prefixCls:n,type:i="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:c,children:p,dashed:m,variant:d="solid",plain:f,style:u,...g}=e,y=t("divider",n),[h,b,C]=L$(y),S=!!p,v=a==="left"&&l!=null,x=a==="right"&&l!=null,$=Xi(y,r?.className,b,C,`${y}-${i}`,{[`${y}-with-text`]:S,[`${y}-with-text-${a}`]:S,[`${y}-dashed`]:!!m,[`${y}-${d}`]:d!=="solid",[`${y}-plain`]:!!f,[`${y}-rtl`]:o==="rtl",[`${y}-no-default-orientation-margin-left`]:v,[`${y}-no-default-orientation-margin-right`]:x},s,c),R=ve.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),T={...v&&{marginLeft:R},...x&&{marginRight:R}};return h(ve.createElement("div",{className:$,style:{...r?.style,...u},...g,role:"separator"},p&&i!=="vertical"&&ve.createElement("span",{className:`${y}-inner-text`,style:T},p)))},$C=d6;function H$(e,t){return {[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function W$(e){return {backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}var m6={overflow:"hidden",...qe},u6=e=>{let{componentCls:t}=e,o=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),n=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return {[t]:{...ae(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${unit(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...W$(e),color:e.itemSelectedColor},"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":{minHeight:o,lineHeight:unit(o),padding:`0 ${unit(e.segmentedPaddingHorizontal)}`,...m6},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:{...W$(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${unit(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:unit(r),padding:`0 ${unit(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:n,lineHeight:unit(n),padding:`0 ${unit(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...H$(`&-disabled ${t}-item`,e),...H$(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}}}},f6=e=>{let{colorTextLabel:t,colorText:o,colorFillSecondary:r,colorBgElevated:n,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return {trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:o,itemHoverBg:r,itemSelectedBg:n,itemActiveBg:i,itemSelectedColor:o}},G$=oe("Segmented",e=>{let{lineWidth:t,calc:o}=e,r=mergeToken(e,{segmentedPaddingHorizontal:o(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:o(e.controlPaddingHorizontalSM).sub(t).equal()});return [u6(r)]},f6);function C6(e){return typeof e=="object"&&!!e?.icon}var h6=ve.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,block:i,options:a=[],size:l="middle",style:s,vertical:c,...p}=e,{getPrefixCls:m,direction:d,segmented:f}=ve.useContext(O),u=m("segmented",o),[g,y,h]=G$(u),b=ke(l),C=ve.useMemo(()=>a.map(x=>{if(C6(x)){let{icon:$,label:R,...T}=x;return {...T,label:ve.createElement(ve.Fragment,null,ve.createElement("span",{className:`${u}-item-icon`},$),R&&ve.createElement("span",null,R))}}return x}),[a,u]),S=Xi(r,n,f?.className,{[`${u}-block`]:i,[`${u}-sm`]:b==="small",[`${u}-lg`]:b==="large",[`${u}-vertical`]:c},y,h),v={...f?.style,...s};return g(ve.createElement(y6,{...p,className:S,style:v,options:C,ref:t,prefixCls:u,direction:d,vertical:c}))}),b6=h6,PC=b6;var Vm=ve__default.createContext({}),jm=ve__default.createContext({});var x6=({prefixCls:e,value:t,onChange:o})=>{let r=()=>{if(o&&t&&!t.cleared){let n=t.toHsb();n.a=0;let i=Ct(n);i.cleared=true,o(i);}};return ve__default.createElement("div",{className:`${e}-clear`,onClick:r})},_m=x6;var j$=e=>{let t=e.handleVisible??"auto",o=e.controlHeightSM-e.lineWidth*2;return {...zr(e),controlWidth:90,handleWidth:o,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new TinyColor(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===true?1:0,handleVisibleWidth:t===true?o:0}};var _$=({componentCls:e,borderRadiusSM:t,borderRadiusLG:o},r)=>{let n=r==="lg"?o:t;return {[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:n,borderEndEndRadius:n},[`${e}-handler-up`]:{borderStartEndRadius:n},[`${e}-handler-down`]:{borderEndEndRadius:n}}}},T6=e=>{let{componentCls:t,lineWidth:o,lineType:r,borderRadius:n,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:s,colorError:c,paddingInlineSM:p,paddingBlockSM:m,paddingBlockLG:d,paddingInlineLG:f,colorTextDescription:u,motionDurationMid:g,handleHoverColor:y,handleOpacity:h,paddingInline:b,paddingBlock:C,handleBg:S,handleActiveBg:v,colorTextDisabled:x,borderRadiusSM:$,borderRadiusLG:R,controlWidth:T,handleBorderColor:P,filledHandleBg:N,lineHeightLG:M,calc:E}=e;return [{[t]:{...ae(e),...Tn(e),display:"inline-block",width:T,margin:0,padding:0,borderRadius:n,..._i(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${unit(o)} ${r} ${P}`}}}),...qi(e,{[`${t}-handler-wrap`]:{background:N,[`${t}-handler-down`]:{borderBlockStart:`${unit(o)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}}),...Ui(e),"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:M,borderRadius:R,[`input${t}-input`]:{height:E(l).sub(E(o).mul(2)).equal(),padding:`${unit(d)} ${unit(f)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:$,[`input${t}-input`]:{height:E(s).sub(E(o).mul(2)).equal(),padding:`${unit(m)} ${unit(p)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":{...ae(e),...lC(e),"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:$}},...Pm(e),...Rm(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}},[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":{...ae(e),width:"100%",padding:`${unit(C)} ${unit(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:n,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit",...Xa(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}}},{[t]:{[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:h,height:"100%",borderStartStartRadius:0,borderStartEndRadius:n,borderEndEndRadius:n,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
203
203
|
${t}-handler-up-inner,
|
|
204
204
|
${t}-handler-down-inner
|
|
205
205
|
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:u,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${unit(o)} ${r} ${P}`,transition:`all ${g} linear`,"&:active":{background:v},"&:hover":{height:"60%",[`
|
|
206
206
|
${t}-handler-up-inner,
|
|
207
207
|
${t}-handler-down-inner
|
|
208
|
-
`]:{color:y}},"&-up-inner, &-down-inner":{...
|
|
208
|
+
`]:{color:y}},"&-up-inner, &-down-inner":{...Oo(),color:u,transition:`all ${g} linear`,userSelect:"none"}},[`${t}-handler-up`]:{borderStartEndRadius:n},[`${t}-handler-down`]:{borderEndEndRadius:n},..._$(e,"lg"),..._$(e,"sm"),"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
|
|
209
209
|
${t}-handler-up-disabled,
|
|
210
210
|
${t}-handler-down-disabled
|
|
211
211
|
`]:{cursor:"not-allowed"},[`
|
|
212
212
|
${t}-handler-up-disabled:hover &-handler-up-inner,
|
|
213
213
|
${t}-handler-down-disabled:hover &-handler-down-inner
|
|
214
|
-
`]:{color:x}}}]},AL=e=>{let{componentCls:t,paddingBlock:o,paddingInline:r,inputAffixPadding:n,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:p,paddingBlockSM:d,motionDurationMid:m}=e;return {[`${t}-affix-wrapper`]:{[`input${t}-input`]:{padding:`${unit(o)} 0`},...un(e),position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:s,[`input${t}-input`]:{padding:`${unit(p)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${unit(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:n},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:n,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}}},F0=te("InputNumber",e=>{let t=mergeToken(e,wr(e));return [DL(t),AL(t),Lo(t)]},D0,{unitless:{handleOpacity:true}});var O0=ue.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=ue.useContext(B),n=ue.useRef(null);ue.useImperativeHandle(t,()=>n.current);let{className:i,rootClassName:a,size:l,disabled:s,prefixCls:c,addonBefore:p,addonAfter:d,prefix:m,suffix:f,bordered:u,readOnly:g,status:y,controls:S,variant:h,...C}=e,b=o("input-number",c),v=de(b),[x,T,$]=F0(b,v),{compactSize:R,compactItemClassnames:P}=$t(b,r),I=ue.createElement(OL,{className:`${b}-handler-up-inner`}),M=ue.createElement(b3,{className:`${b}-handler-down-inner`}),E=typeof S=="boolean"?S:void 0;typeof S=="object"&&(I=typeof S.upIcon>"u"?I:ue.createElement("span",{className:`${b}-handler-up-inner`},S.upIcon),M=typeof S.downIcon>"u"?M:ue.createElement("span",{className:`${b}-handler-down-inner`},S.downIcon));let{hasFeedback:w,status:N,isFormItemInput:A,feedbackIcon:k}=ue.useContext(ke),D=Rt(N,y),F=Te(j=>l??R??j),O=ue.useContext(Be),L=s??O,[_,H]=Ot("inputNumber",h,u),z=w&&ue.createElement(ue.Fragment,null,k),G=ki({[`${b}-lg`]:F==="large",[`${b}-sm`]:F==="small",[`${b}-rtl`]:r==="rtl",[`${b}-in-form-item`]:A},T),W=`${b}-group`,q=ue.createElement(zL,{ref:n,disabled:L,className:ki($,v,i,a,P),upHandler:I,downHandler:M,prefixCls:b,readOnly:g,controls:E,prefix:m,suffix:z||f,addonBefore:p&&ue.createElement(Ft,{form:true,space:true},p),addonAfter:d&&ue.createElement(Ft,{form:true,space:true},d),classNames:{input:G,variant:ki({[`${b}-${_}`]:H},yt(b,D,w)),affixWrapper:ki({[`${b}-affix-wrapper-sm`]:F==="small",[`${b}-affix-wrapper-lg`]:F==="large",[`${b}-affix-wrapper-rtl`]:r==="rtl",[`${b}-affix-wrapper-without-controls`]:S===false},T),wrapper:ki({[`${W}-rtl`]:r==="rtl"},T),groupWrapper:ki({[`${b}-group-wrapper-sm`]:F==="small",[`${b}-group-wrapper-lg`]:F==="large",[`${b}-group-wrapper-rtl`]:r==="rtl",[`${b}-group-wrapper-${_}`]:H},yt(`${b}-group-wrapper`,D,w),T)},...C});return x(q)}),z0=O0,LL=e=>ue.createElement(Jo,{theme:{components:{InputNumber:{handleVisible:true}}}},ue.createElement(O0,{...e}));z0._InternalPanelDoNotUseOrYouWillBeFired=LL;var bc=z0;var _L=({prefixCls:e,min:t=0,max:o=100,value:r,onChange:n,className:i,formatter:a})=>{let l=`${e}-steppers`,[s,c]=useState(r);return useEffect(()=>{Number.isNaN(r)||c(r);},[r]),ue__default.createElement(bc,{className:ki(l,i),min:t,max:o,value:s,formatter:a,size:"small",onChange:p=>{r||c(p||0),n?.(p);}})},fn=_L;var XL=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-alpha-input`,[n,i]=useState(mt(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=l=>{let s=n.toHsb();s.a=(l||0)/100;let c=mt(s);t||i(c),o?.(c);};return ue__default.createElement(fn,{value:Bl(n),prefixCls:e,formatter:l=>`${l}%`,className:r,onChange:a})},L0=XL;var ZL=e=>{let{getPrefixCls:t,direction:o}=useContext(B),{prefixCls:r,className:n}=e,i=t("input-group",r),a=t("input"),[l,s]=Kl(a),c=ki(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:o==="rtl"},s,n),p=useContext(ke),d=useMemo(()=>({...p,isFormItemInput:false}),[p]);return l(ue.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},ue.createElement(ke.Provider,{value:d},e.children)))},W0=ZL;var e6=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:ue__default.createElement(yk,null)}),t},Jl=e6;function xc(e,t){let o=useRef([]),r=()=>{o.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value");}));};return useEffect(()=>(t&&r(),()=>o.current.forEach(n=>{n&&clearTimeout(n);})),[]),r}function G0(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}var l6=forwardRef((e,t)=>{let {prefixCls:o,bordered:r=true,status:n,size:i,disabled:a,onBlur:l,onFocus:s,suffix:c,allowClear:p,addonAfter:d,addonBefore:m,className:f,style:u,styles:g,rootClassName:y,onChange:S,classNames:h,variant:C,...b}=e,{getPrefixCls:v,direction:x,input:T}=ue__default.useContext(B),$=v("input",o),R=useRef(null),P=de($),[I,M,E]=Kl($,P),{compactSize:w,compactItemClassnames:N}=$t($,x),A=Te(Y=>i??w??Y),k=ue__default.useContext(Be),D=a??k,{status:F,hasFeedback:O,feedbackIcon:L}=useContext(ke),_=Rt(F,n),H=G0(e)||!!O;useRef(H);let G=xc(R,true),W=Y=>{G(),l?.(Y);},q=Y=>{G(),s?.(Y);},j=Y=>{G(),S?.(Y);},K=(O||c)&&ue__default.createElement(ue__default.Fragment,null,c,O&&L),Q=Jl(p??T?.allowClear),[V,U]=Ot("input",C,r);return I(ue__default.createElement(i6,{ref:composeRef(t,R),prefixCls:$,autoComplete:T?.autoComplete,...b,disabled:D,onBlur:W,onFocus:q,style:{...T?.style,...u},styles:{...T?.styles,...g},suffix:K,allowClear:Q,className:ki(f,y,E,P,N,T?.className),onChange:j,addonBefore:m&&ue__default.createElement(Ft,{form:true,space:true},m),addonAfter:d&&ue__default.createElement(Ft,{form:true,space:true},d),classNames:{...h,...T?.classNames,input:ki({[`${$}-sm`]:A==="small",[`${$}-lg`]:A==="large",[`${$}-rtl`]:x==="rtl"},h?.input,T?.classNames?.input,M),variant:ki({[`${$}-${V}`]:U},yt($,_)),affixWrapper:ki({[`${$}-affix-wrapper-sm`]:A==="small",[`${$}-affix-wrapper-lg`]:A==="large",[`${$}-affix-wrapper-rtl`]:x==="rtl"},M),wrapper:ki({[`${$}-group-rtl`]:x==="rtl"},M),groupWrapper:ki({[`${$}-group-wrapper-sm`]:A==="small",[`${$}-group-wrapper-lg`]:A==="large",[`${$}-group-wrapper-rtl`]:x==="rtl",[`${$}-group-wrapper-${V}`]:U},yt(`${$}-group-wrapper`,_,O),M)}}))}),Ai=l6;var s6=e=>{let{componentCls:t,paddingXS:o}=e;return {[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},j0=te(["Input","OTP"],e=>{let t=mergeToken(e,wr(e));return [s6(t)]},Nr);var p6=ue.forwardRef((e,t)=>{let{value:o,onChange:r,onActiveChange:n,index:i,mask:a,...l}=e,s=o&&typeof a=="string"?a:o,c=u=>{r(i,u.target.value);},p=ue.useRef(null);ue.useImperativeHandle(t,()=>p.current);let d=()=>{yS(()=>{let u=p.current?.input;document.activeElement===u&&u&&u.select();});};return ue.createElement(Ai,{type:a===true?"password":"text",...l,ref:p,value:s,onInput:c,onFocus:d,onKeyDown:u=>{let{key:g,ctrlKey:y,metaKey:S}=u;g==="ArrowLeft"?n(i-1):g==="ArrowRight"?n(i+1):g==="z"&&(y||S)&&u.preventDefault(),d();},onKeyUp:u=>{u.key==="Backspace"&&!o&&n(i-1),d();},onMouseDown:d,onMouseUp:d})}),U0=p6;function mm(e){return (e||"").split("")}var u6=ue.forwardRef((e,t)=>{let{prefixCls:o,length:r=6,size:n,defaultValue:i,value:a,onChange:l,formatter:s,variant:c,disabled:p,status:d,autoFocus:m,mask:f,type:u,onInput:g,inputMode:y,...S}=e,{getPrefixCls:h,direction:C}=ue.useContext(B),b=h("otp",o),v=xk(S,{aria:true,data:true,attr:true}),x=de(b),[T,$,R]=j0(b,x),P=Te(z=>n??z),I=ue.useContext(ke),M=Rt(I.status,d),E=ue.useMemo(()=>({...I,status:M,hasFeedback:false,feedbackIcon:null}),[I,M]),w=ue.useRef(null),N=ue.useRef({});ue.useImperativeHandle(t,()=>({focus:()=>{N.current[0]?.focus();},blur:()=>{for(let z=0;z<r;z+=1)N.current[z]?.blur();},nativeElement:w.current}));let A=z=>s?s(z):z,[k,D]=ue.useState(mm(A(i||"")));ue.useEffect(()=>{a!==void 0&&D(mm(a));},[a]);let F=Du(z=>{D(z),g&&g(z),l&&z.length===r&&z.every(G=>G)&&z.some((G,W)=>k[W]!==G)&&l(z.join(""));}),O=Du((z,G)=>{let W=[...k];for(let j=0;j<z;j+=1)W[j]||(W[j]="");G.length<=1?W[z]=G:W=W.slice(0,z).concat(mm(G)),W=W.slice(0,r);for(let j=W.length-1;j>=0&&!W[j];j-=1)W.pop();let q=A(W.map(j=>j||" ").join(""));return W=mm(q).map((j,K)=>j===" "&&!W[K]?W[K]:j),W}),L=(z,G)=>{let W=O(z,G),q=Math.min(z+G.length,r-1);q!==z&&W[z]!==void 0&&N.current[q]?.focus(),F(W);},_=z=>{N.current[z]?.focus();},H={variant:c,disabled:p,status:M,mask:f,type:u,inputMode:y};return T(ue.createElement("div",{...v,ref:w,className:ki(b,{[`${b}-sm`]:P==="small",[`${b}-lg`]:P==="large",[`${b}-rtl`]:C==="rtl"},R,$)},ue.createElement(ke.Provider,{value:E},Array.from({length:r}).map((z,G)=>{let W=`otp-${G}`,q=k[G]||"";return ue.createElement(U0,{ref:j=>{N.current[G]=j;},key:W,index:G,size:P,htmlSize:1,className:`${b}-input`,onChange:L,value:q,onActiveChange:_,autoFocus:G===0&&m,...H})}))))}),X0=u6;var x6=e=>e?ue.createElement(C6,null):ue.createElement(y6,null),T6={click:"onClick",hover:"onMouseOver"},v6=ue.forwardRef((e,t)=>{let{disabled:o,action:r="click",visibilityToggle:n=true,iconRender:i=x6}=e,a=ue.useContext(Be),l=o??a,s=typeof n=="object"&&n.visible!==void 0,[c,p]=useState(()=>s?n.visible:false),d=useRef(null);ue.useEffect(()=>{s&&p(n.visible);},[s,n]);let m=xc(d),f=()=>{if(l)return;c&&m();let P=!c;p(P),typeof n=="object"&&n.onVisibleChange?.(P);},u=P=>{let I=T6[r]||"",M=i(c),E={[I]:f,className:`${P}-icon`,key:"passwordIcon",onMouseDown:w=>{w.preventDefault();},onMouseUp:w=>{w.preventDefault();}};return ue.cloneElement(ue.isValidElement(M)?M:ue.createElement("span",null,M),E)},{className:g,prefixCls:y,inputPrefixCls:S,size:h,...C}=e,{getPrefixCls:b}=ue.useContext(B),v=b("input",S),x=b("input-password",y),T=n&&u(x),$=ki(x,g,{[`${x}-${h}`]:!!h}),R={...fx(C,["suffix","iconRender","visibilityToggle"]),type:c?"text":"password",className:$,prefixCls:v,suffix:T};return h&&(R.size=h),ue.createElement(Ai,{ref:composeRef(t,d),...R})}),K0=v6;var I6=ue.forwardRef((e,t)=>{let{prefixCls:o,inputPrefixCls:r,className:n,size:i,suffix:a,enterButton:l=false,addonAfter:s,loading:c,disabled:p,onSearch:d,onChange:m,onCompositionStart:f,onCompositionEnd:u,...g}=e,{getPrefixCls:y,direction:S}=ue.useContext(B),h=ue.useRef(false),C=y("input-search",o),b=y("input",r),{compactSize:v}=$t(C,S),x=Te(O=>i??v??O),T=ue.useRef(null),$=O=>{O?.target&&O.type==="click"&&d&&d(O.target.value,O,{source:"clear"}),m?.(O);},R=O=>{document.activeElement===T.current?.input&&O.preventDefault();},P=O=>{d&&d(T.current?.input?.value,O,{source:"input"});},I=O=>{h.current||c||P(O);},M=typeof l=="boolean"?ue.createElement(T3,null):null,E=`${C}-button`,w,N=l||{},A=N.type&&N.type.__ANT_BUTTON===true;A||N.type==="button"?w=Pe(N,{onMouseDown:R,onClick:O=>{N?.props?.onClick?.(O),P(O);},key:"enterButton",...A?{className:E,size:x}:{}}):w=ue.createElement(Le,{className:E,type:l?"primary":void 0,size:x,disabled:p,key:"enterButton",onMouseDown:R,onClick:P,loading:c,icon:M},l),s&&(w=[w,Pe(s,{key:"addonAfter"})]);let k=ki(C,{[`${C}-rtl`]:S==="rtl",[`${C}-${x}`]:!!x,[`${C}-with-button`]:!!l},n),D=O=>{h.current=true,f?.(O);},F=O=>{h.current=false,u?.(O);};return ue.createElement(Ai,{ref:composeRef(T,t),onPressEnter:I,...g,size:x,onCompositionStart:D,onCompositionEnd:F,prefixCls:b,addonAfter:w,suffix:a,onChange:$,className:k,disabled:p})}),Y0=I6;var M6=forwardRef((e,t)=>{let{prefixCls:o,bordered:r=true,size:n,disabled:i,status:a,allowClear:l,classNames:s,rootClassName:c,className:p,style:d,styles:m,variant:f,...u}=e,{getPrefixCls:g,direction:y,textArea:S}=ue.useContext(B),h=Te(n),C=ue.useContext(Be),b=i??C,{status:v,hasFeedback:x,feedbackIcon:T}=ue.useContext(ke),$=Rt(v,a),R=ue.useRef(null);ue.useImperativeHandle(t,()=>({resizableTextArea:R.current?.resizableTextArea,focus:D=>{triggerFocus(R.current?.resizableTextArea?.textArea,D);},blur:()=>R.current?.blur()}));let P=g("input",o),I=de(P),[M,E,w]=Kl(P,I),[N,A]=Ot("textArea",f,r),k=Jl(l??S?.allowClear);return M(ue.createElement(N6,{autoComplete:S?.autoComplete,...u,style:{...S?.style,...d},styles:{...S?.styles,...m},disabled:b,allowClear:k,className:ki(w,I,p,c,S?.className),classNames:{...s,...S?.classNames,textarea:ki({[`${P}-sm`]:h==="small",[`${P}-lg`]:h==="large"},E,s?.textarea,S?.classNames?.textarea),variant:ki({[`${P}-${N}`]:A},yt(P,$)),affixWrapper:ki(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:y==="rtl",[`${P}-affix-wrapper-sm`]:h==="small",[`${P}-affix-wrapper-lg`]:h==="large",[`${P}-textarea-show-count`]:e.showCount||e.count?.show},E)},prefixCls:P,suffix:x&&ue.createElement("span",{className:`${P}-textarea-suffix`},T),ref:R}))}),fm=M6;var ts=Ai;ts.Group=W0;ts.Search=Y0;ts.TextArea=fm;ts.Password=K0;ts.OTP=X0;var jr=ts;var D6=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,A6=e=>D6.test(`#${e}`),F6=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-hex-input`,[n,i]=useState(()=>t?El(t.toHexString()):void 0);return useEffect(()=>{t&&i(El(t.toHexString()));},[t]),ue__default.createElement(jr,{className:r,value:n,prefix:"#",onChange:l=>{let s=l.target.value;i(El(s)),A6(El(s,true))&&o?.(mt(s));},size:"small"})},Z0=F6;var L6=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-hsb-input`,[n,i]=useState(mt(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=(l,s)=>{let c=n.toHsb();c[s]=s==="h"?l:(l||0)/100;let p=mt(c);t||i(p),o?.(p);};return ue__default.createElement("div",{className:r},ue__default.createElement(fn,{max:360,min:0,value:Number(n.toHsb().h),prefixCls:e,className:r,formatter:l=>tc(l||0).toString(),onChange:l=>a(Number(l),"h")}),ue__default.createElement(fn,{max:100,min:0,value:Number(n.toHsb().s)*100,prefixCls:e,className:r,formatter:l=>`${tc(l||0)}%`,onChange:l=>a(Number(l),"s")}),ue__default.createElement(fn,{max:100,min:0,value:Number(n.toHsb().b)*100,prefixCls:e,className:r,formatter:l=>`${tc(l||0)}%`,onChange:l=>a(Number(l),"b")}))},Q0=L6;var G6=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-rgb-input`,[n,i]=useState(mt(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=(l,s)=>{let c=n.toRgb();c[s]=l||0;let p=mt(c);t||i(p),o?.(p);};return ue__default.createElement("div",{className:r},ue__default.createElement(fn,{max:255,min:0,value:Number(n.toRgb().r),prefixCls:e,className:r,onChange:l=>a(Number(l),"r")}),ue__default.createElement(fn,{max:255,min:0,value:Number(n.toRgb().g),prefixCls:e,className:r,onChange:l=>a(Number(l),"g")}),ue__default.createElement(fn,{max:255,min:0,value:Number(n.toRgb().b),prefixCls:e,className:r,onChange:l=>a(Number(l),"b")}))},J0=G6;var j6=["hex","hsb","rgb"].map(e=>({value:e,label:e.toLocaleUpperCase()})),U6=e=>{let{prefixCls:t,format:o,value:r,disabledAlpha:n,onFormatChange:i,onChange:a,disabledFormat:l}=e,[s,c]=e0("hex",{value:o,onChange:i}),p=`${t}-input`,d=f=>{c(f);},m=useMemo(()=>{let f={value:r,prefixCls:t,onChange:a};switch(s){case "hsb":return ue__default.createElement(Q0,{...f});case "rgb":return ue__default.createElement(J0,{...f});default:return ue__default.createElement(Z0,{...f})}},[s,t,r,a]);return ue__default.createElement("div",{className:`${p}-container`},!l&&ue__default.createElement(Mo,{value:s,variant:"borderless",getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:d,className:`${t}-format-select`,size:"small",options:j6}),ue__default.createElement("div",{className:p},m),!n&&ue__default.createElement(L0,{prefixCls:t,value:r,onChange:a}))},eP=U6;var X6=ue.forwardRef((e,t)=>{let{open:o,draggingDelete:r}=e,n=useRef(null),i=o&&!r,a=useRef(null);function l(){yS.cancel(a.current),a.current=null;}function s(){a.current=yS(()=>{n.current?.forceAlign(),a.current=null;});}return ue.useEffect(()=>(i?s():l(),l),[i,e.title]),ue.createElement(nt,{ref:composeRef(n,t),...e,open:i})}),Dy=X6;var K6=e=>{let{componentCls:t,antCls:o,controlSize:r,dotSize:n,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:s,calc:c,handleSize:p,handleSizeHover:d,handleActiveColor:m,handleActiveOutlineColor:f,handleLineWidth:u,handleLineWidthHover:g,motionDurationMid:y}=e;return {[t]:{...ne(e),position:"relative",height:r,margin:`${unit(a)} ${unit(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${unit(i)} ${unit(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${unit(u)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:p,height:p,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(u).mul(-1).equal(),insetBlockStart:c(u).mul(-1).equal(),width:c(p).add(c(u).mul(2)).equal(),height:c(p).add(c(u).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:p,height:p,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${unit(u)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
214
|
+
`]:{color:x}}}]},$6=e=>{let{componentCls:t,paddingBlock:o,paddingInline:r,inputAffixPadding:n,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:s,paddingInlineSM:c,paddingBlockLG:p,paddingBlockSM:m,motionDurationMid:d}=e;return {[`${t}-affix-wrapper`]:{[`input${t}-input`]:{padding:`${unit(o)} 0`},...Tn(e),position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:s,[`input${t}-input`]:{padding:`${unit(p)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:c,[`input${t}-input`]:{padding:`${unit(m)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:n},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:n,transition:`margin ${d}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}}}},U$=oe("InputNumber",e=>{let t=mergeToken(e,Fr(e));return [T6(t),$6(t),qo(t)]},j$,{unitless:{handleOpacity:true}});var q$=ve.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r}=ve.useContext(O),n=ve.useRef(null);ve.useImperativeHandle(t,()=>n.current);let{className:i,rootClassName:a,size:l,disabled:s,prefixCls:c,addonBefore:p,addonAfter:m,prefix:d,suffix:f,bordered:u,readOnly:g,status:y,controls:h,variant:b,...C}=e,S=o("input-number",c),v=$e(S),[x,$,R]=U$(S,v),{compactSize:T,compactItemClassnames:P}=Mt(S,r),N=ve.createElement(R6,{className:`${S}-handler-up-inner`}),M=ve.createElement(oF,{className:`${S}-handler-down-inner`}),E=typeof h=="boolean"?h:void 0;typeof h=="object"&&(N=typeof h.upIcon>"u"?N:ve.createElement("span",{className:`${S}-handler-up-inner`},h.upIcon),M=typeof h.downIcon>"u"?M:ve.createElement("span",{className:`${S}-handler-down-inner`},h.downIcon));let{hasFeedback:I,status:w,isFormItemInput:B,feedbackIcon:k}=ve.useContext(Le),D=Et(w,y),F=ke(K=>l??T??K),A=ve.useContext(We),L=s??A,[q,V]=Vt("inputNumber",b,u),z=I&&ve.createElement(ve.Fragment,null,k),G=Xi({[`${S}-lg`]:F==="large",[`${S}-sm`]:F==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:B},$),_=`${S}-group`,Z=ve.createElement(I6,{ref:n,disabled:L,className:Xi(R,v,i,a,P),upHandler:N,downHandler:M,prefixCls:S,readOnly:g,controls:E,prefix:d,suffix:z||f,addonBefore:p&&ve.createElement(Gt,{form:true,space:true},p),addonAfter:m&&ve.createElement(Gt,{form:true,space:true},m),classNames:{input:G,variant:Xi({[`${S}-${q}`]:V},xt(S,D,I)),affixWrapper:Xi({[`${S}-affix-wrapper-sm`]:F==="small",[`${S}-affix-wrapper-lg`]:F==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:h===false},$),wrapper:Xi({[`${_}-rtl`]:r==="rtl"},$),groupWrapper:Xi({[`${S}-group-wrapper-sm`]:F==="small",[`${S}-group-wrapper-lg`]:F==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${q}`]:V},xt(`${S}-group-wrapper`,D,I),$)},...C});return x(Z)}),X$=q$,w6=e=>ve.createElement(lr,{theme:{components:{InputNumber:{handleVisible:true}}}},ve.createElement(q$,{...e}));X$._InternalPanelDoNotUseOrYouWillBeFired=w6;var qc=X$;var D6=({prefixCls:e,min:t=0,max:o=100,value:r,onChange:n,className:i,formatter:a})=>{let l=`${e}-steppers`,[s,c]=useState(r);return useEffect(()=>{Number.isNaN(r)||c(r);},[r]),ve__default.createElement(qc,{className:Xi(l,i),min:t,max:o,value:s,formatter:a,size:"small",onChange:p=>{r||c(p||0),n?.(p);}})},$n=D6;var z6=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-alpha-input`,[n,i]=useState(Ct(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=l=>{let s=n.toHsb();s.a=(l||0)/100;let c=Ct(s);t||i(c),o?.(c);};return ve__default.createElement($n,{value:rs(n),prefixCls:e,formatter:l=>`${l}%`,className:r,onChange:a})},K$=z6;var H6=e=>{let{getPrefixCls:t,direction:o}=useContext(O),{prefixCls:r,className:n}=e,i=t("input-group",r),a=t("input"),[l,s]=bs(a),c=Xi(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:o==="rtl"},s,n),p=useContext(Le),m=useMemo(()=>({...p,isFormItemInput:false}),[p]);return l(ve.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},ve.createElement(Le.Provider,{value:m},e.children)))},Z$=H6;var V6=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:ve__default.createElement(QD,null)}),t},Ts=V6;function Xc(e,t){let o=useRef([]),r=()=>{o.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value");}));};return useEffect(()=>(t&&r(),()=>o.current.forEach(n=>{n&&clearTimeout(n);})),[]),r}function Q$(e){return !!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Y6=forwardRef((e,t)=>{let {prefixCls:o,bordered:r=true,status:n,size:i,disabled:a,onBlur:l,onFocus:s,suffix:c,allowClear:p,addonAfter:m,addonBefore:d,className:f,style:u,styles:g,rootClassName:y,onChange:h,classNames:b,variant:C,...S}=e,{getPrefixCls:v,direction:x,input:$}=ve__default.useContext(O),R=v("input",o),T=useRef(null),P=$e(R),[N,M,E]=bs(R,P),{compactSize:I,compactItemClassnames:w}=Mt(R,x),B=ke(J=>i??I??J),k=ve__default.useContext(We),D=a??k,{status:F,hasFeedback:A,feedbackIcon:L}=useContext(Le),q=Et(F,n),V=Q$(e)||!!A;useRef(V);let G=Xc(T,true),_=J=>{G(),l?.(J);},Z=J=>{G(),s?.(J);},K=J=>{G(),h?.(J);},Q=(A||c)&&ve__default.createElement(ve__default.Fragment,null,c,A&&L),ee=Ts(p??$?.allowClear),[j,Y]=Vt("input",C,r);return N(ve__default.createElement(X6,{ref:composeRef(t,T),prefixCls:R,autoComplete:$?.autoComplete,...S,disabled:D,onBlur:_,onFocus:Z,style:{...$?.style,...u},styles:{...$?.styles,...g},suffix:Q,allowClear:ee,className:Xi(f,y,E,P,w,$?.className),onChange:K,addonBefore:d&&ve__default.createElement(Gt,{form:true,space:true},d),addonAfter:m&&ve__default.createElement(Gt,{form:true,space:true},m),classNames:{...b,...$?.classNames,input:Xi({[`${R}-sm`]:B==="small",[`${R}-lg`]:B==="large",[`${R}-rtl`]:x==="rtl"},b?.input,$?.classNames?.input,M),variant:Xi({[`${R}-${j}`]:Y},xt(R,q)),affixWrapper:Xi({[`${R}-affix-wrapper-sm`]:B==="small",[`${R}-affix-wrapper-lg`]:B==="large",[`${R}-affix-wrapper-rtl`]:x==="rtl"},M),wrapper:Xi({[`${R}-group-rtl`]:x==="rtl"},M),groupWrapper:Xi({[`${R}-group-wrapper-sm`]:B==="small",[`${R}-group-wrapper-lg`]:B==="large",[`${R}-group-wrapper-rtl`]:x==="rtl",[`${R}-group-wrapper-${j}`]:Y},xt(`${R}-group-wrapper`,q,A),M)}}))}),Zi=Y6;var Z6=e=>{let{componentCls:t,paddingXS:o}=e;return {[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},tP=oe(["Input","OTP"],e=>{let t=mergeToken(e,Fr(e));return [Z6(t)]},zr);var J6=ve.forwardRef((e,t)=>{let{value:o,onChange:r,onActiveChange:n,index:i,mask:a,...l}=e,s=o&&typeof a=="string"?a:o,c=u=>{r(i,u.target.value);},p=ve.useRef(null);ve.useImperativeHandle(t,()=>p.current);let m=()=>{$S(()=>{let u=p.current?.input;document.activeElement===u&&u&&u.select();});};return ve.createElement(Zi,{type:a===true?"password":"text",...l,ref:p,value:s,onInput:c,onFocus:m,onKeyDown:u=>{let{key:g,ctrlKey:y,metaKey:h}=u;g==="ArrowLeft"?n(i-1):g==="ArrowRight"?n(i+1):g==="z"&&(y||h)&&u.preventDefault(),m();},onKeyUp:u=>{u.key==="Backspace"&&!o&&n(i-1),m();},onMouseDown:m,onMouseUp:m})}),oP=J6;function Um(e){return (e||"").split("")}var o8=ve.forwardRef((e,t)=>{let{prefixCls:o,length:r=6,size:n,defaultValue:i,value:a,onChange:l,formatter:s,variant:c,disabled:p,status:m,autoFocus:d,mask:f,type:u,onInput:g,inputMode:y,...h}=e,{getPrefixCls:b,direction:C}=ve.useContext(O),S=b("otp",o),v=rB(h,{aria:true,data:true,attr:true}),x=$e(S),[$,R,T]=tP(S,x),P=ke(z=>n??z),N=ve.useContext(Le),M=Et(N.status,m),E=ve.useMemo(()=>({...N,status:M,hasFeedback:false,feedbackIcon:null}),[N,M]),I=ve.useRef(null),w=ve.useRef({});ve.useImperativeHandle(t,()=>({focus:()=>{w.current[0]?.focus();},blur:()=>{for(let z=0;z<r;z+=1)w.current[z]?.blur();},nativeElement:I.current}));let B=z=>s?s(z):z,[k,D]=ve.useState(Um(B(i||"")));ve.useEffect(()=>{a!==void 0&&D(Um(a));},[a]);let F=yf(z=>{D(z),g&&g(z),l&&z.length===r&&z.every(G=>G)&&z.some((G,_)=>k[_]!==G)&&l(z.join(""));}),A=yf((z,G)=>{let _=[...k];for(let K=0;K<z;K+=1)_[K]||(_[K]="");G.length<=1?_[z]=G:_=_.slice(0,z).concat(Um(G)),_=_.slice(0,r);for(let K=_.length-1;K>=0&&!_[K];K-=1)_.pop();let Z=B(_.map(K=>K||" ").join(""));return _=Um(Z).map((K,Q)=>K===" "&&!_[Q]?_[Q]:K),_}),L=(z,G)=>{let _=A(z,G),Z=Math.min(z+G.length,r-1);Z!==z&&_[z]!==void 0&&w.current[Z]?.focus(),F(_);},q=z=>{w.current[z]?.focus();},V={variant:c,disabled:p,status:M,mask:f,type:u,inputMode:y};return $(ve.createElement("div",{...v,ref:I,className:Xi(S,{[`${S}-sm`]:P==="small",[`${S}-lg`]:P==="large",[`${S}-rtl`]:C==="rtl"},T,R)},ve.createElement(Le.Provider,{value:E},Array.from({length:r}).map((z,G)=>{let _=`otp-${G}`,Z=k[G]||"";return ve.createElement(oP,{ref:K=>{w.current[G]=K;},key:_,index:G,size:P,htmlSize:1,className:`${S}-input`,onChange:L,value:Z,onActiveChange:q,autoFocus:G===0&&d,...V})}))))}),nP=o8;var p8=e=>e?ve.createElement(a8,null):ve.createElement(i8,null),d8={click:"onClick",hover:"onMouseOver"},m8=ve.forwardRef((e,t)=>{let{disabled:o,action:r="click",visibilityToggle:n=true,iconRender:i=p8}=e,a=ve.useContext(We),l=o??a,s=typeof n=="object"&&n.visible!==void 0,[c,p]=useState(()=>s?n.visible:false),m=useRef(null);ve.useEffect(()=>{s&&p(n.visible);},[s,n]);let d=Xc(m),f=()=>{if(l)return;c&&d();let P=!c;p(P),typeof n=="object"&&n.onVisibleChange?.(P);},u=P=>{let N=d8[r]||"",M=i(c),E={[N]:f,className:`${P}-icon`,key:"passwordIcon",onMouseDown:I=>{I.preventDefault();},onMouseUp:I=>{I.preventDefault();}};return ve.cloneElement(ve.isValidElement(M)?M:ve.createElement("span",null,M),E)},{className:g,prefixCls:y,inputPrefixCls:h,size:b,...C}=e,{getPrefixCls:S}=ve.useContext(O),v=S("input",h),x=S("input-password",y),$=n&&u(x),R=Xi(x,g,{[`${x}-${b}`]:!!b}),T={...vv(C,["suffix","iconRender","visibilityToggle"]),type:c?"text":"password",className:R,prefixCls:v,suffix:$};return b&&(T.size=b),ve.createElement(Zi,{ref:composeRef(t,m),...T})}),iP=m8;var y8=ve.forwardRef((e,t)=>{let{prefixCls:o,inputPrefixCls:r,className:n,size:i,suffix:a,enterButton:l=false,addonAfter:s,loading:c,disabled:p,onSearch:m,onChange:d,onCompositionStart:f,onCompositionEnd:u,...g}=e,{getPrefixCls:y,direction:h}=ve.useContext(O),b=ve.useRef(false),C=y("input-search",o),S=y("input",r),{compactSize:v}=Mt(C,h),x=ke(A=>i??v??A),$=ve.useRef(null),R=A=>{A?.target&&A.type==="click"&&m&&m(A.target.value,A,{source:"clear"}),d?.(A);},T=A=>{document.activeElement===$.current?.input&&A.preventDefault();},P=A=>{m&&m($.current?.input?.value,A,{source:"input"});},N=A=>{b.current||c||P(A);},M=typeof l=="boolean"?ve.createElement(nF,null):null,E=`${C}-button`,I,w=l||{},B=w.type&&w.type.__ANT_BUTTON===true;B||w.type==="button"?I=Oe(w,{onMouseDown:T,onClick:A=>{w?.props?.onClick?.(A),P(A);},key:"enterButton",...B?{className:E,size:x}:{}}):I=ve.createElement(Ge,{className:E,type:l?"primary":void 0,size:x,disabled:p,key:"enterButton",onMouseDown:T,onClick:P,loading:c,icon:M},l),s&&(I=[I,Oe(s,{key:"addonAfter"})]);let k=Xi(C,{[`${C}-rtl`]:h==="rtl",[`${C}-${x}`]:!!x,[`${C}-with-button`]:!!l},n),D=A=>{b.current=true,f?.(A);},F=A=>{b.current=false,u?.(A);};return ve.createElement(Zi,{ref:composeRef($,t),onPressEnter:N,...g,size:x,onCompositionStart:D,onCompositionEnd:F,prefixCls:S,addonAfter:I,suffix:a,onChange:R,className:k,disabled:p})}),aP=y8;var b8=forwardRef((e,t)=>{let{prefixCls:o,bordered:r=true,size:n,disabled:i,status:a,allowClear:l,classNames:s,rootClassName:c,className:p,style:m,styles:d,variant:f,...u}=e,{getPrefixCls:g,direction:y,textArea:h}=ve.useContext(O),b=ke(n),C=ve.useContext(We),S=i??C,{status:v,hasFeedback:x,feedbackIcon:$}=ve.useContext(Le),R=Et(v,a),T=ve.useRef(null);ve.useImperativeHandle(t,()=>({resizableTextArea:T.current?.resizableTextArea,focus:D=>{triggerFocus(T.current?.resizableTextArea?.textArea,D);},blur:()=>T.current?.blur()}));let P=g("input",o),N=$e(P),[M,E,I]=bs(P,N),[w,B]=Vt("textArea",f,r),k=Ts(l??h?.allowClear);return M(ve.createElement(h8,{autoComplete:h?.autoComplete,...u,style:{...h?.style,...m},styles:{...h?.styles,...d},disabled:S,allowClear:k,className:Xi(I,N,p,c,h?.className),classNames:{...s,...h?.classNames,textarea:Xi({[`${P}-sm`]:b==="small",[`${P}-lg`]:b==="large"},E,s?.textarea,h?.classNames?.textarea),variant:Xi({[`${P}-${w}`]:B},xt(P,R)),affixWrapper:Xi(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:y==="rtl",[`${P}-affix-wrapper-sm`]:b==="small",[`${P}-affix-wrapper-lg`]:b==="large",[`${P}-textarea-show-count`]:e.showCount||e.count?.show},E)},prefixCls:P,suffix:x&&ve.createElement("span",{className:`${P}-textarea-suffix`},$),ref:T}))}),Xm=b8;var Ps=Zi;Ps.Group=Z$;Ps.Search=aP;Ps.TextArea=Xm;Ps.Password=iP;Ps.OTP=nP;var en=Ps;var T8=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,$8=e=>T8.test(`#${e}`),P8=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-hex-input`,[n,i]=useState(()=>t?ts(t.toHexString()):void 0);return useEffect(()=>{t&&i(ts(t.toHexString()));},[t]),ve__default.createElement(en,{className:r,value:n,prefix:"#",onChange:l=>{let s=l.target.value;i(ts(s)),$8(ts(s,true))&&o?.(Ct(s));},size:"small"})},lP=P8;var w8=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-hsb-input`,[n,i]=useState(Ct(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=(l,s)=>{let c=n.toHsb();c[s]=s==="h"?l:(l||0)/100;let p=Ct(c);t||i(p),o?.(p);};return ve__default.createElement("div",{className:r},ve__default.createElement($n,{max:360,min:0,value:Number(n.toHsb().h),prefixCls:e,className:r,formatter:l=>Ic(l||0).toString(),onChange:l=>a(Number(l),"h")}),ve__default.createElement($n,{max:100,min:0,value:Number(n.toHsb().s)*100,prefixCls:e,className:r,formatter:l=>`${Ic(l||0)}%`,onChange:l=>a(Number(l),"s")}),ve__default.createElement($n,{max:100,min:0,value:Number(n.toHsb().b)*100,prefixCls:e,className:r,formatter:l=>`${Ic(l||0)}%`,onChange:l=>a(Number(l),"b")}))},sP=w8;var E8=({prefixCls:e,value:t,onChange:o})=>{let r=`${e}-rgb-input`,[n,i]=useState(Ct(t||"#000"));useEffect(()=>{t&&i(t);},[t]);let a=(l,s)=>{let c=n.toRgb();c[s]=l||0;let p=Ct(c);t||i(p),o?.(p);};return ve__default.createElement("div",{className:r},ve__default.createElement($n,{max:255,min:0,value:Number(n.toRgb().r),prefixCls:e,className:r,onChange:l=>a(Number(l),"r")}),ve__default.createElement($n,{max:255,min:0,value:Number(n.toRgb().g),prefixCls:e,className:r,onChange:l=>a(Number(l),"g")}),ve__default.createElement($n,{max:255,min:0,value:Number(n.toRgb().b),prefixCls:e,className:r,onChange:l=>a(Number(l),"b")}))},cP=E8;var B8=["hex","hsb","rgb"].map(e=>({value:e,label:e.toLocaleUpperCase()})),O8=e=>{let{prefixCls:t,format:o,value:r,disabledAlpha:n,onFormatChange:i,onChange:a,disabledFormat:l}=e,[s,c]=s$("hex",{value:o,onChange:i}),p=`${t}-input`,m=f=>{c(f);},d=useMemo(()=>{let f={value:r,prefixCls:t,onChange:a};switch(s){case "hsb":return ve__default.createElement(sP,{...f});case "rgb":return ve__default.createElement(cP,{...f});default:return ve__default.createElement(lP,{...f})}},[s,t,r,a]);return ve__default.createElement("div",{className:`${p}-container`},!l&&ve__default.createElement(Ao,{value:s,variant:"borderless",getPopupContainer:f=>f,popupMatchSelectWidth:68,placement:"bottomRight",onChange:m,className:`${t}-format-select`,size:"small",options:B8}),ve__default.createElement("div",{className:p},d),!n&&ve__default.createElement(K$,{prefixCls:t,value:r,onChange:a}))},pP=O8;var z8=ve.forwardRef((e,t)=>{let{open:o,draggingDelete:r}=e,n=useRef(null),i=o&&!r,a=useRef(null);function l(){$S.cancel(a.current),a.current=null;}function s(){a.current=$S(()=>{n.current?.forceAlign(),a.current=null;});}return ve.useEffect(()=>(i?s():l(),l),[i,e.title]),ve.createElement(ot,{ref:composeRef(n,t),...e,open:i})}),IC=z8;var A8=e=>{let{componentCls:t,antCls:o,controlSize:r,dotSize:n,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:s,calc:c,handleSize:p,handleSizeHover:m,handleActiveColor:d,handleActiveOutlineColor:f,handleLineWidth:u,handleLineWidthHover:g,motionDurationMid:y}=e;return {[t]:{...ae(e),position:"relative",height:r,margin:`${unit(a)} ${unit(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${unit(i)} ${unit(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${y}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${y}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${unit(u)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:p,height:p,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(u).mul(-1).equal(),insetBlockStart:c(u).mul(-1).equal(),width:c(p).add(c(u).mul(2)).equal(),height:c(p).add(c(u).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:p,height:p,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${unit(u)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
215
215
|
inset-inline-start ${y},
|
|
216
216
|
inset-block-start ${y},
|
|
217
217
|
width ${y},
|
|
218
218
|
height ${y},
|
|
219
219
|
box-shadow ${y},
|
|
220
220
|
outline ${y}
|
|
221
|
-
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(
|
|
221
|
+
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(m).sub(p).div(2).add(g).mul(-1).equal(),insetBlockStart:c(m).sub(p).div(2).add(g).mul(-1).equal(),width:c(m).add(c(g).mul(2)).equal(),height:c(m).add(c(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${unit(g)} ${d}`,outline:`6px solid ${f}`,width:m,height:m,insetInlineStart:e.calc(p).sub(m).div(2).equal(),insetBlockStart:e.calc(p).sub(m).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:n,height:n,backgroundColor:e.colorBgElevated,border:`${unit(u)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
|
|
222
222
|
${t}-dot
|
|
223
223
|
`]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:p,height:p,boxShadow:`0 0 0 ${unit(u)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
224
224
|
${t}-mark-text,
|
|
225
225
|
${t}-dot
|
|
226
|
-
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${o}-tooltip-inner`]:{minWidth:"unset"}}}},nP=(e,t)=>{let{componentCls:o,railSize:r,handleSize:n,dotSize:i,marginFull:a,calc:l}=e,s=t?"paddingBlock":"paddingInline",c=t?"width":"height",p=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",m=t?"top":"insetInlineStart",f=l(r).mul(3).sub(n).div(2).equal(),u=l(n).sub(r).div(2).equal(),g=t?{borderWidth:`${unit(u)} 0`,transform:`translateY(${unit(l(u).mul(-1).equal())})`}:{borderWidth:`0 ${unit(u)}`,transform:`translateX(${unit(e.calc(u).mul(-1).equal())})`};return {[s]:r,[p]:l(r).mul(3).equal(),[`${o}-rail`]:{[c]:"100%",[p]:r},[`${o}-track,${o}-tracks`]:{[p]:r},[`${o}-track-draggable`]:{...g},[`${o}-handle`]:{[d]:f},[`${o}-mark`]:{insetInlineStart:0,top:0,[m]:l(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${o}-step`]:{insetInlineStart:0,top:0,[m]:r,[c]:"100%",[p]:r},[`${o}-dot`]:{position:"absolute",[d]:l(r).sub(i).div(2).equal()}}},Y6=e=>{let{componentCls:t,marginPartWithMark:o}=e;return {[`${t}-horizontal`]:{...nP(e,true),[`&${t}-with-marks`]:{marginBottom:o}}}},Z6=e=>{let{componentCls:t}=e;return {[`${t}-vertical`]:{...nP(e,false),height:"100%"}}},Q6=e=>{let o=e.controlHeightLG/4,r=e.controlHeightSM/2,n=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,l=new TinyColor(a).setAlpha(.2).toRgbString();return {controlSize:o,railSize:4,handleSize:o,handleSizeHover:r,dotSize:8,handleLineWidth:n,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:l,handleColorDisabled:new TinyColor(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},iP=te("Slider",e=>{let t=mergeToken(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return [K6(t),Y6(t),Z6(t)]},Q6);var eH=createContext({}),Cm=eH;function Tc(){let[e,t]=ue.useState(false),o=ue.useRef(null),r=()=>{yS.cancel(o.current);},n=i=>{r(),i?t(i):o.current=yS(()=>{t(i);});};return ue.useEffect(()=>r,[]),[e,n]}function nH(e,t){return e||e===null?e:t||t===null?t:o=>typeof o=="number"?o.toString():""}var iH=ue__default.forwardRef((e,t)=>{let{prefixCls:o,range:r,className:n,rootClassName:i,style:a,disabled:l,tooltipPrefixCls:s,tipFormatter:c,tooltipVisible:p,getTooltipPopupContainer:d,tooltipPlacement:m,tooltip:f={},onChangeComplete:u,...g}=e,{vertical:y}=e,{direction:S,slider:h,getPrefixCls:C,getPopupContainer:b}=ue__default.useContext(B),v=ue__default.useContext(Be),x=l??v,{handleRender:T,direction:$}=ue__default.useContext(Cm),P=($||S)==="rtl",[I,M]=Tc(),[E,w]=Tc(),N={...f},{open:A,placement:k,getPopupContainer:D,prefixCls:F,formatter:O}=N,L=A??p,_=(I||E)&&L!==false,H=nH(O,c),[z,G]=Tc(),W=X=>{u?.(X),G(false);},q=(X,Z)=>X||(Z?P?"left":"right":"top"),j=C("slider",o),[K,Q,V]=iP(j),U=ki(n,h?.className,i,{[`${j}-rtl`]:P,[`${j}-lock`]:z},Q,V);P&&!g.vertical&&(g.reverse=!g.reverse),ue__default.useEffect(()=>{let X=()=>{yS(()=>{w(false);},1);};return document.addEventListener("mouseup",X),()=>{document.removeEventListener("mouseup",X);}},[]);let Y=r&&!L,J=T||((X,Z)=>{let{index:re}=Z,ae=X.props;function se(xe,qe,lt){lt&&g[xe]?.(qe),ae[xe]?.(qe);}let Ce={...ae,onMouseEnter:xe=>{M(true),se("onMouseEnter",xe);},onMouseLeave:xe=>{M(false),se("onMouseLeave",xe);},onMouseDown:xe=>{w(true),G(true),se("onMouseDown",xe);},onFocus:xe=>{w(true),g.onFocus?.(xe),se("onFocus",xe,true);},onBlur:xe=>{w(false),g.onBlur?.(xe),se("onBlur",xe,true);}},$e=ue__default.cloneElement(X,Ce),Ge=(!!L||_)&&H!==null;return Y?$e:ue__default.createElement(Dy,{...N,prefixCls:C("tooltip",F??s),title:H?H(Z.value):"",open:Ge,placement:q(k??m,y),key:re,overlayClassName:`${j}-tooltip`,getPopupContainer:D||d||b},$e)}),ie=Y?(X,Z)=>{let re=ue__default.cloneElement(X,{style:{...X.props.style,visibility:"hidden"}});return ue__default.createElement(Dy,{...N,prefixCls:C("tooltip",F??s),title:H?H(Z.value):"",open:H!==null&&_,placement:q(k??m,y),key:"tooltip",overlayClassName:`${j}-tooltip`,getPopupContainer:D||d||b,draggingDelete:Z.draggingDelete},re)}:void 0,ee={...h?.style,...a};return K(ue__default.createElement(oH,{...g,step:g.step,range:r,className:U,style:ee,disabled:x,ref:t,prefixCls:j,handleRender:J,activeHandleRender:ie,onChangeComplete:W}))}),vc=iH;var Fy=e=>{let{prefixCls:t,colors:o,type:r,color:n,range:i=false,className:a,activeIndex:l,onActive:s,onDragStart:c,onDragChange:p,onKeyDelete:d,...m}=e,f={...m,track:false},u=ue.useMemo(()=>`linear-gradient(90deg, ${o.map(x=>`${x.color} ${x.percent}%`).join(", ")})`,[o]),g=ue.useMemo(()=>!n||!r?null:r==="alpha"?n.toRgbString():`hsl(${n.toHsb().h}, 100%, 50%)`,[n,r]),y=Du(c),S=Du(p),h=ue.useMemo(()=>({onDragStart:y,onDragChange:S}),[]),C=Du((v,x)=>{let{onFocus:T,style:$,className:R,onKeyDown:P}=v.props,I={...$};return r==="gradient"&&(I.background=qp(o,x.value)),ue.cloneElement(v,{onFocus:M=>{s?.(x.index),T?.(M);},style:I,className:ki(R,{[`${t}-slider-handle-active`]:l===x.index}),onKeyDown:M=>{(M.key==="Delete"||M.key==="Backspace")&&d&&d(x.index),P?.(M);}})}),b=ue.useMemo(()=>({direction:"ltr",handleRender:C}),[]);return ue.createElement(Cm.Provider,{value:b},ue.createElement(UnstableContext.Provider,{value:h},ue.createElement(vc,{...f,className:ki(a,`${t}-slider`),tooltip:{open:false},range:{editable:i,minCount:2},styles:{rail:{background:u},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}})))},lH=e=>{let{value:t,onChange:o,onChangeComplete:r}=e;return ue.createElement(Fy,{...e,value:[t],onChange:a=>o(a[0]),onChangeComplete:a=>r(a[0])})},sP=lH;function cP(e){return [...e].sort((t,o)=>t.percent-o.percent)}var sH=e=>{let{prefixCls:t,mode:o,onChange:r,onChangeComplete:n,onActive:i,activeIndex:a,onGradientDragging:l,colors:s}=e,c=o==="gradient",p=ue.useMemo(()=>s.map(S=>({percent:S.percent,color:S.color.toRgbString()})),[s]),d=ue.useMemo(()=>p.map(S=>S.percent),[p]),m=ue.useRef(p),f=({rawValues:S,draggingIndex:h,draggingValue:C})=>{if(S.length>p.length){let b=qp(p,C),v=[...p];v.splice(h,0,{percent:C,color:b}),m.current=v;}else m.current=p;l(true),r(new At(cP(m.current)),true);},u=({deleteIndex:S,draggingIndex:h,draggingValue:C})=>{let b=[...m.current];S!==-1?b.splice(S,1):(b[h]={...b[h],percent:C},b=cP(b)),r(new At(b),true);},g=S=>{let h=[...p];h.splice(S,1);let C=new At(h);r(C),n(C);},y=S=>{n(new At(p)),a>=S.length&&i(S.length-1),l(false);};return c?ue.createElement(Fy,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:p,color:null,value:d,range:true,onChangeComplete:y,disabled:false,type:"gradient",activeIndex:a,onActive:i,onDragStart:f,onDragChange:u,onKeyDelete:g}):null},pP=ue.memo(sH);var dH={slider:sP},mH=()=>{let e=useContext(cm),{mode:t,onModeChange:o,modeOptions:r,prefixCls:n,allowClear:i,value:a,disabledAlpha:l,onChange:s,onClear:c,onChangeComplete:p,activeIndex:d,gradientDragging:m,...f}=e,u=ue__default.useMemo(()=>a.cleared?[{percent:0,color:new At("")},{percent:100,color:new At("")}]:a.getColors(),[a]),g=!a.isGradient(),[y,S]=ue__default.useState(a);mh(()=>{g||S(u[d]?.color);},[m,d]);let h=ue__default.useMemo(()=>g?a:m?y:u[d]?.color,[a,d,g,y,m]),[C,b]=ue__default.useState(h),[v,x]=ue__default.useState(0),T=C?.equals(h)?h:C;mh(()=>{b(h);},[v,h?.toHexString()]);let $=(w,N)=>{let A=mt(w);if(a.cleared){let D=A.toRgb();if(!D.r&&!D.g&&!D.b&&N){let{type:F,value:O=0}=N;A=new At({h:F==="hue"?O:0,s:1,b:1,a:F==="alpha"?O/100:1});}else A=Dl(A);}if(t==="single")return A;let k=[...u];return k[d]={...k[d],color:A},new At(k)},R=(w,N,A)=>{let k=$(w,A);b(k.isGradient()?k.getColors()[d].color:k),s(k,N);},P=(w,N)=>{p($(w,N)),x(A=>A+1);},I=w=>{s($(w));},M=null,E=r.length>1;return (i||E)&&(M=ue__default.createElement("div",{className:`${n}-operation`},E&&ue__default.createElement(ky,{size:"small",options:r,value:t,onChange:o}),ue__default.createElement(dm,{prefixCls:n,value:a,onChange:w=>{s(w),c?.();},...f}))),ue__default.createElement(ue__default.Fragment,null,M,ue__default.createElement(pP,{...e,colors:u}),ue__default.createElement(pH,{prefixCls:n,value:T?.toHsb(),disabledAlpha:l,onChange:(w,N)=>{R(w,true,N);},onChangeComplete:(w,N)=>{P(w,N);},components:dH}),ue__default.createElement(eP,{value:h,onChange:I,prefixCls:n,disabledAlpha:l,...f}))},Oy=mH;var gH=()=>{let{prefixCls:e,value:t,presets:o,onChange:r}=useContext(pm);return Array.isArray(o)?ue__default.createElement(hx,{value:t,presets:o,prefixCls:e,onChange:r}):null},zy=gH;var yH=e=>{let{prefixCls:t,presets:o,panelRender:r,value:n,onChange:i,onClear:a,allowClear:l,disabledAlpha:s,mode:c,onModeChange:p,modeOptions:d,onChangeComplete:m,activeIndex:f,onActive:u,format:g,onFormatChange:y,gradientDragging:S,onGradientDragging:h,disabledFormat:C}=e,b=`${t}-inner`,v=ue__default.useMemo(()=>({prefixCls:t,value:n,onChange:i,onClear:a,allowClear:l,disabledAlpha:s,mode:c,onModeChange:p,modeOptions:d,onChangeComplete:m,activeIndex:f,onActive:u,format:g,onFormatChange:y,gradientDragging:S,onGradientDragging:h,disabledFormat:C}),[t,n,i,a,l,s,c,p,d,m,f,u,g,y,S,h,C]),x=ue__default.useMemo(()=>({prefixCls:t,value:n,presets:o,onChange:i}),[t,n,o,i]),T=ue__default.createElement("div",{className:`${b}-content`},ue__default.createElement(Oy,null),Array.isArray(o)&&ue__default.createElement(Ey,null),ue__default.createElement(zy,null));return ue__default.createElement(cm.Provider,{value:v},ue__default.createElement(pm.Provider,{value:x},ue__default.createElement("div",{className:b},typeof r=="function"?r(T,{components:{Picker:Oy,Presets:zy}}):T)))},mP=yH;var xH=forwardRef((e,t)=>{let{color:o,prefixCls:r,open:n,disabled:i,format:a,className:l,showText:s,activeIndex:c,...p}=e,d=`${r}-trigger`,m=`${d}-text`,f=`${m}-cell`,[u]=Ee("ColorPicker"),g=ue__default.useMemo(()=>{if(!s)return "";if(typeof s=="function")return s(o);if(o.cleared)return u.transparent;if(o.isGradient())return o.getColors().map((C,b)=>ue__default.createElement("span",{key:b,className:ki(f,c!==-1&&c!==b&&`${f}-inactive`)},C.color.toRgbString()," ",C.percent,"%"));let S=o.toHexString().toUpperCase(),h=Bl(o);switch(a){case "rgb":return o.toRgbString();case "hsb":return o.toHsbString();default:return h<100?`${S.slice(0,7)},${h}%`:S}},[o,a,s,c]),y=useMemo(()=>o.cleared?ue__default.createElement(dm,{prefixCls:r}):ue__default.createElement(ColorBlock,{prefixCls:r,color:o.toCssString()}),[o,r]);return ue__default.createElement("div",{ref:t,className:ki(d,l,{[`${d}-active`]:n,[`${d}-disabled`]:i}),...xk(p)},y,s&&ue__default.createElement("div",{className:m},g))}),fP=xH;function Ly(e,t,o){let[r]=Ee("ColorPicker"),[n,i]=e0(e,{value:t}),[a,l]=ue.useState("single"),[s,c]=ue.useMemo(()=>{let g=(Array.isArray(o)?o:[o]).filter(C=>C);g.length||g.push("single");let y=new Set(g),S=[],h=(C,b)=>{y.has(C)&&S.push({label:b,value:C});};return h("single",r.singleColor),h("gradient",r.gradientColor),[S,y]},[o]),[p,d]=ue.useState(null),m=Du(g=>{d(g),i(g);}),f=ue.useMemo(()=>{let g=mt(n||"");return g.equals(p)?p:g},[n,p]),u=ue.useMemo(()=>c.has(a)?a:s[0]?.value,[c,a,s]);return ue.useEffect(()=>{l(f.isGradient()?"gradient":"single");},[f]),[f,m,u,l,s]}var Hy=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),$H=(e,t)=>{let{componentCls:o,borderRadiusSM:r,colorPickerInsetShadow:n,lineWidth:i,colorFillSecondary:a}=e;return {[`${o}-color-block`]:{position:"relative",borderRadius:r,width:t,height:t,boxShadow:n,flex:"none",...Hy("50%",e.colorFillSecondary),[`${o}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${unit(i)} ${a}`,borderRadius:"inherit"}}}},Wy=$H;var RH=e=>{let{componentCls:t,antCls:o,fontSizeSM:r,lineHeightSM:n,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:s,marginXS:c,fontSizeIcon:p,paddingXS:d,colorTextPlaceholder:m,colorPickerInputNumberHandleWidth:f,lineWidth:u}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${o}-input-number`]:{fontSize:r,lineHeight:n,[`${o}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${o}-input-number-handler-wrap`]:{width:f}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${unit(i)}`,marginInlineStart:a},[`${t}-format-select${o}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${o}-select-selector`]:{padding:0,border:0},[`${o}-select-arrow`]:{insetInlineEnd:0},[`${o}-select-selection-item`]:{paddingInlineEnd:e.calc(p).add(a).equal(),fontSize:r,lineHeight:unit(s)},[`${o}-select-item-option-content`]:{fontSize:r,lineHeight:n},[`${o}-select-dropdown`]:{[`${o}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${o}-input-affix-wrapper`]:{flex:1,padding:`0 ${unit(d)}`,[`${o}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:unit(e.calc(s).sub(e.calc(u).mul(2)).equal())},[`${o}-input-prefix`]:{color:m}}}}}},gP=RH;var wH=e=>{let{componentCls:t,controlHeightLG:o,borderRadiusSM:r,colorPickerInsetShadow:n,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:s,colorPickerHandlerSize:c}=e;return {userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(o).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:n,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${unit(s)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${n}, 0 0 0 1px ${l}`}}},yP=wH;var NH=e=>{let{componentCls:t,antCls:o,colorTextQuaternary:r,paddingXXS:n,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:s,lineWidth:c,borderRadius:p,colorFill:d,colorWhite:m,marginXXS:f,paddingXS:u,fontHeightSM:g}=e;return {[`${t}-presets`]:{[`${o}-collapse-item > ${o}-collapse-header`]:{padding:0,[`${o}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:n}},[`${o}-collapse`]:{display:"flex",flexDirection:"column",gap:f},[`${o}-collapse-item > ${o}-collapse-content > ${o}-collapse-content-box`]:{padding:`${unit(u)} 0`},"&-label":{fontSize:a,color:l,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(f).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:p,border:`${unit(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${unit(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:m,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},CP=NH;var MH=e=>{let{componentCls:t,colorPickerInsetShadow:o,colorBgElevated:r,colorFillSecondary:n,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:s,marginXS:c}=e,p=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),m={"&:after":{transform:"scale(1)",boxShadow:`${o}, 0 0 0 1px ${e.colorPrimaryActive}`}};return {[`${t}-slider`]:[Hy(unit(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:o},[`& ${t}-slider-handle`]:{width:p,height:p,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:true,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${unit(i)} solid ${r}`,boxShadow:`${o}, 0 0 0 1px ${n}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":m}}],[`${t}-slider-container`]:{display:"flex",gap:s,marginBottom:s,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":m}}}},SP=MH;var Vy=(e,t,o)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${unit(e.controlOutlineWidth)} ${o}`,outline:0}),EH=e=>{let{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},bP=(e,t,o)=>{let{componentCls:r,borderRadiusSM:n,lineWidth:i,colorSplit:a,colorBorder:l,red6:s}=e;return {[`${r}-clear`]:{width:t,height:t,borderRadius:n,border:`${unit(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`,...o,"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:s},"&:hover":{borderColor:l}}}},kH=e=>{let{componentCls:t,colorError:o,colorWarning:r,colorErrorHover:n,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return {[`&${t}-status-error`]:{borderColor:o,"&:hover":{borderColor:n},[`&${t}-trigger-active`]:{...Vy(e,o,a)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...Vy(e,r,l)}}}},BH=e=>{let{componentCls:t,controlHeightLG:o,controlHeightSM:r,controlHeight:n,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:s,borderRadiusLG:c,fontSizeLG:p}=e;return {[`&${t}-lg`]:{minWidth:o,minHeight:o,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:n,height:n,borderRadius:a},[`${t}-trigger-text`]:{fontSize:p}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:s},[`${t}-trigger-text`]:{lineHeight:unit(i)}}}},DH=e=>{let{antCls:t,componentCls:o,colorPickerWidth:r,colorPrimary:n,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:s,colorBgContainerDisabled:c,borderRadius:p,marginXS:d,marginSM:m,controlHeight:f,controlHeightSM:u,colorBgTextActive:g,colorPickerPresetColorSize:y,colorPickerPreviewSize:S,lineWidth:h,colorBorder:C,paddingXXS:b,fontSize:v,colorPrimaryHover:x,controlOutline:T}=e;return [{[o]:{[`${o}-inner`]:{"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${unit(m)} 0 ${unit(d)}`}},[`${o}-panel`]:{...yP(e)},...SP(e),...Wy(e,S),...gP(e),...CP(e),...bP(e,y,{marginInlineStart:"auto"}),[`${o}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}},"&-trigger":{minWidth:f,minHeight:f,borderRadius:p,border:`${unit(h)} solid ${C}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(b).sub(h).equal(),[`${o}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(b).sub(h)).equal(),fontSize:v,color:s,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:x},[`&${o}-trigger-active`]:{...Vy(e,n,T)},"&-disabled":{color:l,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${o}-trigger-text`]:{color:l}},...bP(e,u),...Wy(e,u),...kH(e),...BH(e)},...EH(e)}},Lo(e,{focusElCls:`${o}-trigger-active`})]},xP=te("ColorPicker",e=>{let{colorTextQuaternary:t,marginSM:o}=e,r=8,n=mergeToken(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(o).equal()});return [DH(n)]});var jy=e=>{let{mode:t,value:o,defaultValue:r,format:n,defaultFormat:i,allowClear:a=false,presets:l,children:s,trigger:c="click",open:p,disabled:d,placement:m="bottomLeft",arrow:f=true,panelRender:u,showText:g,style:y,className:S,size:h,rootClassName:C,prefixCls:b,styles:v,disabledAlpha:x=false,onFormatChange:T,onChange:$,onClear:R,onOpenChange:P,onChangeComplete:I,getPopupContainer:M,autoAdjustOverflow:E=true,destroyTooltipOnHide:w,disabledFormat:N,...A}=e,{getPrefixCls:k,direction:D,colorPicker:F}=useContext(B),O=useContext(Be),L=d??O,[_,H]=e0(false,{value:p,postState:ce=>!L&&ce,onChange:P}),[z,G]=e0(n,{value:n,defaultValue:i,onChange:T}),W=k("color-picker",b),[q,j,K,Q,V]=Ly(r,o,t),U=useMemo(()=>Bl(q)<100,[q]),[Y,J]=ue__default.useState(null),ie=ce=>{if(I){let pe=mt(ce);x&&U&&(pe=Dl(ce)),I(pe);}},ee=(ce,pe)=>{let he=mt(ce);x&&U&&(he=Dl(he)),j(he),J(null),$&&$(he,he.toCssString()),pe||ie(he);},[X,Z]=ue__default.useState(0),[re,ae]=ue__default.useState(false),se=ce=>{if(Q(ce),ce==="single"&&q.isGradient())Z(0),ee(new At(q.getColors()[0].color)),J(q);else if(ce==="gradient"&&!q.isGradient()){let pe=U?Dl(q):q;ee(new At(Y||[{percent:0,color:pe},{percent:100,color:pe}]));}},{status:Ce}=ue__default.useContext(ke),{compactSize:$e,compactItemClassnames:Ge}=$t(W,D),xe=Te(ce=>h??$e??ce),qe=de(W),[lt,Ye,me]=xP(W,qe),Re={[`${W}-rtl`]:D},Ne=ki(C,me,qe,Re),Me=ki(yt(W,Ce),{[`${W}-sm`]:xe==="small",[`${W}-lg`]:xe==="large"},Ge,F?.className,Ne,S,Ye),De=ki(W,Ne),fe={open:_,trigger:c,placement:m,arrow:f,rootClassName:C,getPopupContainer:M,autoAdjustOverflow:E,destroyTooltipOnHide:w},le={...F?.style,...y};return lt(ue__default.createElement(ba,{style:v?.popup,overlayInnerStyle:v?.popupOverlayInner,onOpenChange:ce=>{(!ce||!L)&&H(ce);},content:ue__default.createElement(Ft,{form:true},ue__default.createElement(mP,{mode:K,onModeChange:se,modeOptions:V,prefixCls:W,value:q,allowClear:a,disabled:L,disabledAlpha:x,presets:l,panelRender:u,format:z,onFormatChange:G,onChange:ee,onChangeComplete:ie,onClear:R,activeIndex:X,onActive:Z,gradientDragging:re,onGradientDragging:ae,disabledFormat:N})),overlayClassName:De,...fe},s||ue__default.createElement(fP,{activeIndex:_?X:-1,open:_,className:Me,style:le,prefixCls:W,disabled:L,showText:g,format:z,...A,color:q})))},FH=Wt(jy,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:false}),"color-picker",e=>e);jy._InternalPanelDoNotUseOrYouWillBeFired=FH;var PP=jy;var OH=PP;function RP(e,t,o){return o!==void 0?o:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function IP(e,t,o){return o!==void 0?o:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Sm(e,t){let{allowClear:o=true}=e,{clearIcon:r,removeIcon:n}=zn({...e,prefixCls:t,componentName:"DatePicker"});return [ue.useMemo(()=>o===false?false:{clearIcon:r,...o===true?{}:o},[o,r]),n]}var[wP,NP]=["week","WeekPicker"],[MP,EP]=["month","MonthPicker"],[kP,BP]=["year","YearPicker"],[DP,AP]=["quarter","QuarterPicker"],[bm,Uy]=["time","TimePicker"];var zH=e=>ue.createElement(Le,{size:"small",type:"primary",...e}),OP=zH;function Pc(e){return useMemo(()=>({button:OP,...e}),[e])}var UH=e=>forwardRef((o,r)=>{let{prefixCls:n,getPopupContainer:i,components:a,className:l,style:s,placement:c,size:p,disabled:d,bordered:m=true,placeholder:f,popupClassName:u,dropdownClassName:g,status:y,rootClassName:S,variant:h,picker:C,...b}=o,v=ue.useRef(null),{getPrefixCls:x,direction:T,getPopupContainer:$,rangePicker:R}=useContext(B),P=x("picker",n),{compactSize:I,compactItemClassnames:M}=$t(P,T),E=x(),[w,N]=Ot("rangePicker",h,m),A=de(P),[k,D,F]=Zd(P,A),[O]=Sm(o,P),L=Pc(a),_=Te(Y=>p??I??Y),H=ue.useContext(Be),z=d??H,G=useContext(ke),{hasFeedback:W,status:q,feedbackIcon:j}=G,K=ue.createElement(ue.Fragment,null,C===bm?ue.createElement(VH,null):ue.createElement(GH,null),W&&j);useImperativeHandle(r,()=>v.current);let[Q]=Ee("Calendar",li),V={...Q,...o.locale},[U]=rt("DatePicker",o.popupStyle?.zIndex);return k(ue.createElement(Ft,{space:true},ue.createElement(RangePicker,{separator:ue.createElement("span",{"aria-label":"to",className:`${P}-separator`},ue.createElement(_H,null)),disabled:z,ref:v,placement:c,placeholder:IP(V,C,f),suffixIcon:K,prevIcon:ue.createElement("span",{className:`${P}-prev-icon`}),nextIcon:ue.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:ue.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:ue.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${E}-slide-up`,picker:C,...b,className:ki({[`${P}-${_}`]:_,[`${P}-${w}`]:N},yt(P,Rt(q,y),W),D,M,l,R?.className,F,A,S),style:{...R?.style,...s},locale:V.lang,prefixCls:P,getPopupContainer:i||$,generateConfig:e,components:L,direction:T,classNames:{popup:ki(D,u||g,F,A,S)},styles:{popup:{...o.popupStyle,zIndex:U}},allowClear:O})))}),HP=UH;var QH=e=>{let t=(s,c)=>{let p=c===Uy?"timePicker":"datePicker";return forwardRef((m,f)=>{let{prefixCls:u,getPopupContainer:g,components:y,style:S,className:h,rootClassName:C,size:b,bordered:v,placement:x,placeholder:T,popupClassName:$,dropdownClassName:R,disabled:P,status:I,variant:M,onCalendarChange:E,...w}=m,{getPrefixCls:N,direction:A,getPopupContainer:k,[p]:D}=useContext(B),F=N("picker",u),{compactSize:O,compactItemClassnames:L}=$t(F,A),_=ue.useRef(null),[H,z]=Ot("datePicker",M,v),G=de(F),[W,q,j]=Zd(F,G);useImperativeHandle(f,()=>_.current);let K={showToday:true},Q=s||m.picker,V=N(),{onSelect:U,multiple:Y}=w,J=U&&s==="time"&&!Y,ie=(Re,Ne,Me)=>{E?.(Re,Ne,Me),J&&U(Re);},[ee,X]=Sm(m,F),Z=Pc(y),re=Te(Re=>b??O??Re),ae=ue.useContext(Be),se=P??ae,Ce=useContext(ke),{hasFeedback:$e,status:Ge,feedbackIcon:xe}=Ce,qe=ue.createElement(ue.Fragment,null,Q==="time"?ue.createElement(VH,null):ue.createElement(GH,null),$e&&xe),[lt]=Ee("DatePicker",li),Ye={...lt,...m.locale},[me]=rt("DatePicker",m.popupStyle?.zIndex);return W(ue.createElement(Ft,{space:true},ue.createElement(ZH,{ref:_,placeholder:RP(Ye,Q,T),suffixIcon:qe,placement:x,prevIcon:ue.createElement("span",{className:`${F}-prev-icon`}),nextIcon:ue.createElement("span",{className:`${F}-next-icon`}),superPrevIcon:ue.createElement("span",{className:`${F}-super-prev-icon`}),superNextIcon:ue.createElement("span",{className:`${F}-super-next-icon`}),transitionName:`${V}-slide-up`,picker:s,onCalendarChange:ie,...K,...w,locale:Ye.lang,className:ki({[`${F}-${re}`]:re,[`${F}-${H}`]:z},yt(F,Rt(Ge,I),$e),q,L,D?.className,h,j,G,C),style:{...D?.style,...S},prefixCls:F,getPopupContainer:g||k,generateConfig:e,components:Z,direction:A,disabled:se,classNames:{popup:ki(q,j,G,C,$||R)},styles:{popup:{...m.popupStyle,zIndex:me}},allowClear:ee,removeIcon:X})))})},o=t(),r=t(wP,NP),n=t(MP,EP),i=t(kP,BP),a=t(DP,AP),l=t(bm,Uy);return {DatePicker:o,WeekPicker:r,MonthPicker:n,YearPicker:i,TimePicker:l,QuarterPicker:a}},VP=QH;var JH=e=>{let{DatePicker:t,WeekPicker:o,MonthPicker:r,YearPicker:n,TimePicker:i,QuarterPicker:a}=VP(e),l=HP(e),s=t;return s.WeekPicker=o,s.MonthPicker=r,s.YearPicker=n,s.RangePicker=l,s.TimePicker=i,s.QuarterPicker=a,s},qy=JH;var as=qy(FO),t8=Wt(as,"popupAlign",void 0,"picker");as._InternalPanelDoNotUseOrYouWillBeFired=t8;var o8=Wt(as.RangePicker,"popupAlign",void 0,"picker");as._InternalRangePanelDoNotUseOrYouWillBeFired=o8;as.generatePicker=qy;var $c=as;var r8={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},_P=r8;var i8=ue__default.createContext({}),xm=i8;var l8=e=>kv(e).map(t=>({...t?.props,key:t.key}));function Ky(e,t,o){let r=ue.useMemo(()=>t||l8(o),[t,o]);return ue.useMemo(()=>r.map(({span:i,...a})=>i==="filled"?{...a,filled:true}:{...a,span:typeof i=="number"?i:Td(e,i)}),[r,e])}function c8(e,t){let o=[],r=[],n=false,i=0;return e.filter(a=>a).forEach(a=>{let{filled:l,...s}=a;if(l){r.push(s),o.push(r),r=[],i=0;return}let c=t-i;i+=a.span||1,i>=t?(i>t?(n=true,r.push({...s,span:c})):r.push(s),o.push(r),r=[],i=0):r.push(s);}),r.length>0&&o.push(r),o=o.map(a=>{let l=a.reduce((s,c)=>s+(c.span||1),0);if(l<t){let s=a[a.length-1];return s.span=t-l+1,a}return a}),[o,n]}var p8=(e,t)=>{let[o,r]=useMemo(()=>c8(t,e),[t,e]);return o},jP=p8;var d8=({children:e})=>e,UP=d8;function qP(e){return e!=null}var m8=e=>{let{itemPrefixCls:t,component:o,span:r,className:n,style:i,labelStyle:a,contentStyle:l,bordered:s,label:c,content:p,colon:d,type:m}=e,f=o;return s?ue.createElement(f,{className:ki({[`${t}-item-label`]:m==="label",[`${t}-item-content`]:m==="content"},n),style:i,colSpan:r},qP(c)&&ue.createElement("span",{style:a},c),qP(p)&&ue.createElement("span",{style:l},p)):ue.createElement(f,{className:ki(`${t}-item`,n),style:i,colSpan:r},ue.createElement("div",{className:`${t}-item-container`},(c||c===0)&&ue.createElement("span",{className:ki(`${t}-item-label`,{[`${t}-item-no-colon`]:!d}),style:a},c),(p||p===0)&&ue.createElement("span",{className:ki(`${t}-item-content`),style:l},p)))},vm=m8;function Yy(e,{colon:t,prefixCls:o,bordered:r},{component:n,type:i,showLabel:a,showContent:l,labelStyle:s,contentStyle:c}){return e.map(({label:p,children:d,prefixCls:m=o,className:f,style:u,labelStyle:g,contentStyle:y,span:S=1,key:h},C)=>typeof n=="string"?ue.createElement(vm,{key:`${i}-${h||C}`,className:f,style:u,labelStyle:{...s,...g},contentStyle:{...c,...y},span:S,colon:t,component:n,itemPrefixCls:m,bordered:r,label:a?p:null,content:l?d:null,type:i}):[ue.createElement(vm,{key:`label-${h||C}`,className:f,style:{...s,...u,...g},span:1,colon:t,component:n[0],itemPrefixCls:m,bordered:r,label:p,type:"label"}),ue.createElement(vm,{key:`content-${h||C}`,className:f,style:{...c,...u,...y},span:S*2-1,component:n[1],itemPrefixCls:m,bordered:r,content:d,type:"content"})])}var u8=e=>{let t=ue.useContext(xm),{prefixCls:o,vertical:r,row:n,index:i,bordered:a}=e;return r?ue.createElement(ue.Fragment,null,ue.createElement("tr",{key:`label-${i}`,className:`${o}-row`},Yy(n,e,{component:"th",type:"label",showLabel:true,...t})),ue.createElement("tr",{key:`content-${i}`,className:`${o}-row`},Yy(n,e,{component:"td",type:"content",showContent:true,...t}))):ue.createElement("tr",{key:i,className:`${o}-row`},Yy(n,e,{component:a?["th","td"]:"td",type:"item",showLabel:true,showContent:true,...t}))},XP=u8;var f8=e=>{let{componentCls:t,labelBg:o}=e;return {[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.padding)} ${unit(e.paddingLG)}`,borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:o,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.paddingSM)} ${unit(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.paddingXS)} ${unit(e.padding)}`}}}}}},g8=e=>{let{componentCls:t,extraColor:o,itemPaddingBottom:r,itemPaddingEnd:n,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:l}=e;return {[t]:{...ne(e),...f8(e),"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:{...Oe,flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG},[`${t}-extra`]:{marginInlineStart:"auto",color:o,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:n},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-0.5,marginInline:`${unit(a)} ${unit(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}}}},y8=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),KP=te("Descriptions",e=>{let t=mergeToken(e,{});return g8(t)},y8);var YP=e=>{let{prefixCls:t,title:o,extra:r,column:n,colon:i=true,bordered:a,layout:l,children:s,className:c,rootClassName:p,style:d,size:m,labelStyle:f,contentStyle:u,items:g,...y}=e,{getPrefixCls:S,direction:h,descriptions:C}=ue.useContext(B),b=S("descriptions",t),v=Vo(),x=ue.useMemo(()=>typeof n=="number"?n:Td(v,{..._P,...n})??3,[v,n]),T=Ky(v,g,s),$=Te(m),R=jP(x,T),[P,I,M]=KP(b),E=ue.useMemo(()=>({labelStyle:f,contentStyle:u}),[f,u]);return P(ue.createElement(xm.Provider,{value:E},ue.createElement("div",{className:ki(b,C?.className,{[`${b}-${$}`]:$&&$!=="default",[`${b}-bordered`]:!!a,[`${b}-rtl`]:h==="rtl"},c,p,I,M),style:{...C?.style,...d},...y},(o||r)&&ue.createElement("div",{className:`${b}-header`},o&&ue.createElement("div",{className:`${b}-title`},o),r&&ue.createElement("div",{className:`${b}-extra`},r)),ue.createElement("div",{className:`${b}-view`},ue.createElement("table",null,ue.createElement("tbody",null,R.map((w,N)=>ue.createElement(XP,{key:N,index:N,colon:i,prefixCls:b,vertical:l==="vertical",bordered:a,row:w}))))))))};YP.Item=UP;var h8=YP;var S8=e=>{let{prefixCls:t,title:o,footer:r,extra:n,loading:i,onClose:a,headerStyle:l,bodyStyle:s,footerStyle:c,children:p,classNames:d,styles:m,confirmLoading:f,onOk:u}=e,{drawer:g}=ue.useContext(B),y=ue.useCallback(v=>ue.createElement("button",{type:"button",onClick:a,"aria-label":"Close",className:`${t}-close`},v),[a]),[S,h]=Bn(kn(e),kn(g),{closable:true,closeIconRender:y}),C=ue.useMemo(()=>!o&&!S?null:ue.createElement("div",{style:{...g?.styles?.header,...l,...m?.header},className:ki(`${t}-header`,{[`${t}-header-close-only`]:S&&!o&&!n},g?.classNames?.header,d?.header)},ue.createElement("div",{className:`${t}-header-title`},o&&ue.createElement("div",{className:`${t}-title`},o)),n&&ue.createElement("div",{className:`${t}-extra`},n),h),[S,h,n,l,t,o]),b=ue.useMemo(()=>{if(!r)return null;let v=`${t}-footer`;return ue.createElement("div",{className:ki(v,g?.classNames?.footer,d?.footer),style:{...g?.styles?.footer,...c,...m?.footer}},r)},[r,c,t]);return ue.createElement(ue.Fragment,null,C,ue.createElement("div",{className:ki(`${t}-body`,d?.body,g?.classNames?.body),style:{...g?.styles?.body,...s,...m?.body}},i?ue.createElement(An,{active:true,title:false,paragraph:{rows:5},className:`${t}-body-skeleton`}):p),b||ue.createElement("div",{className:"pt2x pb2x pl4x",style:{borderTop:"1px solid rgba(5, 5, 5, 0.06)"}},ue.createElement(Le,{type:"primary",className:"mr2x",loading:f,onClick:v=>{u?.(v);}},"\u786E\u5B9A"),ue.createElement(Le,{type:"default",onClick:a},"\u53D6\u6D88")))},Qy=S8;var b8=e=>{let t="100%";return {left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},ZP=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),QP=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...ZP({opacity:e},{opacity:1})}),x8=(e,t)=>[QP(.7,t),ZP({transform:b8(e)},{transform:"none"})],T8=e=>{let{componentCls:t,motionDurationSlow:o}=e;return {[t]:{[`${t}-mask-motion`]:QP(0,o),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,n)=>({...r,[`&-${n}`]:x8(n,o)}),{})}}},JP=T8;var v8=e=>{let{borderRadiusSM:t,componentCls:o,zIndexPopup:r,colorBgMask:n,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:s,padding:c,paddingLG:p,fontSizeLG:d,lineHeightLG:m,lineWidth:f,lineType:u,colorSplit:g,marginXS:y,colorIcon:S,colorIconHover:h,colorBgTextHover:C,colorBgTextActive:b,colorText:v,fontWeightStrong:x,footerPaddingBlock:T,footerPaddingInline:$,calc:R}=e,P=`${o}-content-wrapper`;return {[o]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:v,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:r,background:n,pointerEvents:"auto"},[P]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${P}`]:{top:0,bottom:0,left:{_skip_check_:true,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${P}`]:{top:0,right:{_skip_check_:true,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${P}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${P}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${unit(c)} ${unit(p)}`,fontSize:d,lineHeight:m,borderBottom:`${unit(f)} ${u} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-flex",width:R(d).add(s).equal(),height:R(d).add(s).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:y,color:S,fontWeight:x,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:h,backgroundColor:C,textDecoration:"none"},"&:active":{backgroundColor:b},...St(e)},[`${o}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:m},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:p,overflow:"auto",[`${o}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${o}-footer`]:{flexShrink:0,padding:`${unit(T)} ${unit($)}`,borderTop:`${unit(f)} ${u} ${g}`},"&-rtl":{direction:"rtl"}}}},P8=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),Jy=te("Drawer",e=>{let t=mergeToken(e,{});return [v8(t),JP(t)]},P8);var R8={distance:180},e$=e=>{let{rootClassName:t,width:o,height:r,size:n="default",mask:i=true,push:a=R8,open:l,afterOpenChange:s,onClose:c,prefixCls:p,getContainer:d,style:m,className:f,visible:u,afterVisibleChange:g,maskStyle:y,drawerStyle:S,contentWrapperStyle:h,onOk:C,confirmLoading:b,...v}=e,{getPopupContainer:x,getPrefixCls:T,direction:$,drawer:R}=ue.useContext(B),P=T("drawer",p),[I,M,E]=Jy(P),w=d===void 0&&x?()=>x(document.body):d,N=ki({"no-mask":!i,[`${P}-rtl`]:$==="rtl"},t,M,E),A=ue.useMemo(()=>o??(n==="large"?736:378),[o,n]),k=ue.useMemo(()=>r??(n==="large"?736:378),[r,n]),D={motionName:Ze(P,"mask-motion"),motionAppear:true,motionEnter:true,motionLeave:true,motionDeadline:500},F=q=>({motionName:Ze(P,`panel-motion-${q}`),motionAppear:true,motionEnter:true,motionLeave:true,motionDeadline:500}),O=rd(),[L,_]=rt("Drawer",v.zIndex),{classNames:H={},styles:z={}}=v,{classNames:G={},styles:W={}}=R||{};return I(ue.createElement(Ft,{form:true,space:true},ue.createElement(xr.Provider,{value:_},ue.createElement($8,{prefixCls:P,onClose:c,maskMotion:D,motion:F,...v,classNames:{mask:ki(H.mask,G.mask),content:ki(H.content,G.content),wrapper:ki(H.wrapper,G.wrapper)},styles:{mask:{...z.mask,...y,...W.mask},content:{...z.content,...S,...W.content},wrapper:{...z.wrapper,...h,...W.wrapper}},open:l??u,mask:i,push:a,width:A,height:k,style:{...R?.style,...m},className:ki(R?.className,f),rootClassName:N,getContainer:w,afterOpenChange:s??g,panelRef:O,zIndex:L},ue.createElement(Qy,{confirmLoading:b,onOk:C,prefixCls:P,...v,onClose:c})))))},I8=e=>{let{prefixCls:t,style:o,className:r,placement:n="right",...i}=e,{getPrefixCls:a}=ue.useContext(B),l=a("drawer",t),[s,c,p]=Jy(l),d=ki(l,`${l}-pure`,`${l}-${n}`,c,p,r);return s(ue.createElement("div",{className:d,style:o},ue.createElement(Qy,{prefixCls:l,...i})))};e$._InternalPanelDoNotUseOrYouWillBeFired=I8;var w8=e$;function cs(e){return ["small","middle","large"].includes(e)}function eC(e){return e?typeof e=="number"&&!Number.isNaN(e):false}var Pm=ue__default.createContext({latestIndex:0}),t$=Pm.Provider;var M8=({className:e,index:t,children:o,split:r,style:n})=>{let{latestIndex:i}=ue.useContext(Pm);return o==null?null:ue.createElement(ue.Fragment,null,ue.createElement("div",{className:e,style:n},o),t<i&&r&&ue.createElement("span",{className:`${e}-split`},r))},o$=M8;var k8=ue.forwardRef((e,t)=>{let{getPrefixCls:o,space:r,direction:n}=ue.useContext(B),{size:i=r?.size??"small",align:a,className:l,rootClassName:s,children:c,direction:p="horizontal",prefixCls:d,split:m,style:f,wrap:u=false,classNames:g,styles:y,...S}=e,[h,C]=Array.isArray(i)?i:[i,i],b=cs(C),v=cs(h),x=eC(C),T=eC(h),$=kv(c,{keepEmpty:true}),R=a===void 0&&p==="horizontal"?"center":a,P=o("space",d),[I,M,E]=Gp(P),w=ki(P,r?.className,M,`${P}-${p}`,{[`${P}-rtl`]:n==="rtl",[`${P}-align-${R}`]:R,[`${P}-gap-row-${C}`]:b,[`${P}-gap-col-${h}`]:v},l,s,E),N=ki(`${P}-item`,g?.item??r?.classNames?.item),A=0,k=$.map((O,L)=>{O!=null&&(A=L);let _=O?.key||`${N}-${L}`;return ue.createElement(o$,{className:N,key:_,index:L,split:m,style:y?.item??r?.styles?.item},O)}),D=ue.useMemo(()=>({latestIndex:A}),[A]);if($.length===0)return null;let F={};return u&&(F.flexWrap="wrap"),!v&&T&&(F.columnGap=h),!b&&x&&(F.rowGap=C),I(ue.createElement("div",{ref:t,className:w,style:{...F,...r?.style,...f},...S},ue.createElement(t$,{value:D},k)))}),n$=k8;n$.Compact=Mb;var tC=n$;var i$=e=>{let{getPopupContainer:t,getPrefixCls:o,direction:r}=ue.useContext(B),{prefixCls:n,type:i="default",danger:a,disabled:l,loading:s,onClick:c,htmlType:p,children:d,className:m,menu:f,arrow:u,autoFocus:g,overlay:y,trigger:S,align:h,open:C,onOpenChange:b,placement:v,getPopupContainer:x,href:T,icon:$=ue.createElement(hF,null),title:R,buttonsRender:P=j=>j,mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:E,overlayStyle:w,destroyPopupOnHide:N,dropdownRender:A,...k}=e,D=o("dropdown",n),F=`${D}-button`,O={menu:f,arrow:u,autoFocus:g,align:h,disabled:l,trigger:l?[]:S,onOpenChange:b,getPopupContainer:x||t,mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:E,overlayStyle:w,destroyPopupOnHide:N,dropdownRender:A},{compactSize:L,compactItemClassnames:_}=$t(D,r),H=ki(F,_,m);"overlay"in e&&(O.overlay=y),"open"in e&&(O.open=C),"placement"in e?O.placement=v:O.placement=r==="rtl"?"bottomLeft":"bottomRight";let z=ue.createElement(Le,{type:i,danger:a,disabled:l,loading:s,onClick:c,htmlType:p,href:T,title:R},d),G=ue.createElement(Le,{type:i,danger:a,icon:$}),[W,q]=P([z,G]);return ue.createElement(tC.Compact,{className:H,size:L,block:true,...k},W,ue.createElement(Xl,{...O},q))};i$.__ANT_BUTTON=true;var a$=i$;var l$=Xl;l$.Button=a$;var Wa=l$;var oC=["wrap","nowrap","wrap-reverse"],rC=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],nC=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],F8=(e,t)=>{let o=t.wrap===true?"wrap":t.wrap;return {[`${e}-wrap-${o}`]:o&&oC.includes(o)}},O8=(e,t)=>{let o={};return nC.forEach(r=>{o[`${e}-align-${r}`]=t.align===r;}),o[`${e}-align-stretch`]=!t.align&&!!t.vertical,o},z8=(e,t)=>{let o={};return rC.forEach(r=>{o[`${e}-justify-${r}`]=t.justify===r;}),o};function L8(e,t){return ki({...F8(e,t),...O8(e,t),...z8(e,t)})}var s$=L8;var H8=e=>{let{componentCls:t}=e;return {[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},W8=e=>{let{componentCls:t}=e;return {[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},G8=e=>{let{componentCls:t}=e,o={};return oC.forEach(r=>{o[`${t}-wrap-${r}`]={flexWrap:r};}),o},V8=e=>{let{componentCls:t}=e,o={};return nC.forEach(r=>{o[`${t}-align-${r}`]={alignItems:r};}),o},_8=e=>{let{componentCls:t}=e,o={};return rC.forEach(r=>{o[`${t}-justify-${r}`]={justifyContent:r};}),o},j8=()=>({}),c$=te("Flex",e=>{let{paddingXS:t,padding:o,paddingLG:r}=e,n=mergeToken(e,{flexGapSM:t,flexGap:o,flexGapLG:r});return [H8(n),W8(n),G8(n),V8(n),_8(n)]},j8,{resetStyle:false});var X8=ue__default.forwardRef((e,t)=>{let{prefixCls:o,rootClassName:r,className:n,style:i,flex:a,gap:l,children:s,vertical:c=false,component:p="div",...d}=e,{flex:m,direction:f,getPrefixCls:u}=ue__default.useContext(B),g=u("flex",o),[y,S,h]=c$(g),C=c??m?.vertical,b=ki(n,r,m?.className,g,S,h,s$(g,e),{[`${g}-rtl`]:f==="rtl",[`${g}-gap-${l}`]:cs(l),[`${g}-vertical`]:C}),v={...m?.style,...i};return a&&(v.flex=a),l&&!cs(l)&&(v.gap=l),y(ue__default.createElement(p,{ref:t,className:b,style:v,...fx(d,["justify","wrap","align"])},s))}),K8=X8;function Ga(e){let[t,o]=ue.useState(e);return ue.useEffect(()=>{let r=setTimeout(()=>{o(e);},e.length?0:10);return ()=>{clearTimeout(r);}},[e]),t}var Y8=e=>{let{componentCls:t}=e,o=`${t}-show-help`,r=`${t}-show-help-item`;return {[o]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
226
|
+
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${o}-tooltip-inner`]:{minWidth:"unset"}}}},fP=(e,t)=>{let{componentCls:o,railSize:r,handleSize:n,dotSize:i,marginFull:a,calc:l}=e,s=t?"paddingBlock":"paddingInline",c=t?"width":"height",p=t?"height":"width",m=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart",f=l(r).mul(3).sub(n).div(2).equal(),u=l(n).sub(r).div(2).equal(),g=t?{borderWidth:`${unit(u)} 0`,transform:`translateY(${unit(l(u).mul(-1).equal())})`}:{borderWidth:`0 ${unit(u)}`,transform:`translateX(${unit(e.calc(u).mul(-1).equal())})`};return {[s]:r,[p]:l(r).mul(3).equal(),[`${o}-rail`]:{[c]:"100%",[p]:r},[`${o}-track,${o}-tracks`]:{[p]:r},[`${o}-track-draggable`]:{...g},[`${o}-handle`]:{[m]:f},[`${o}-mark`]:{insetInlineStart:0,top:0,[d]:l(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${o}-step`]:{insetInlineStart:0,top:0,[d]:r,[c]:"100%",[p]:r},[`${o}-dot`]:{position:"absolute",[m]:l(r).sub(i).div(2).equal()}}},L8=e=>{let{componentCls:t,marginPartWithMark:o}=e;return {[`${t}-horizontal`]:{...fP(e,true),[`&${t}-with-marks`]:{marginBottom:o}}}},H8=e=>{let{componentCls:t}=e;return {[`${t}-vertical`]:{...fP(e,false),height:"100%"}}},W8=e=>{let o=e.controlHeightLG/4,r=e.controlHeightSM/2,n=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,l=new TinyColor(a).setAlpha(.2).toRgbString();return {controlSize:o,railSize:4,handleSize:o,handleSizeHover:r,dotSize:8,handleLineWidth:n,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:l,handleColorDisabled:new TinyColor(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},gP=oe("Slider",e=>{let t=mergeToken(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return [A8(t),L8(t),H8(t)]},W8);var V8=createContext({}),Zm=V8;function Kc(){let[e,t]=ve.useState(false),o=ve.useRef(null),r=()=>{$S.cancel(o.current);},n=i=>{r(),i?t(i):o.current=$S(()=>{t(i);});};return ve.useEffect(()=>r,[]),[e,n]}function q8(e,t){return e||e===null?e:t||t===null?t:o=>typeof o=="number"?o.toString():""}var X8=ve__default.forwardRef((e,t)=>{let{prefixCls:o,range:r,className:n,rootClassName:i,style:a,disabled:l,tooltipPrefixCls:s,tipFormatter:c,tooltipVisible:p,getTooltipPopupContainer:m,tooltipPlacement:d,tooltip:f={},onChangeComplete:u,...g}=e,{vertical:y}=e,{direction:h,slider:b,getPrefixCls:C,getPopupContainer:S}=ve__default.useContext(O),v=ve__default.useContext(We),x=l??v,{handleRender:$,direction:R}=ve__default.useContext(Zm),P=(R||h)==="rtl",[N,M]=Kc(),[E,I]=Kc(),w={...f},{open:B,placement:k,getPopupContainer:D,prefixCls:F,formatter:A}=w,L=B??p,q=(N||E)&&L!==false,V=q8(A,c),[z,G]=Kc(),_=H=>{u?.(H),G(false);},Z=(H,X)=>H||(X?P?"left":"right":"top"),K=C("slider",o),[Q,ee,j]=gP(K),Y=Xi(n,b?.className,i,{[`${K}-rtl`]:P,[`${K}-lock`]:z},ee,j);P&&!g.vertical&&(g.reverse=!g.reverse),ve__default.useEffect(()=>{let H=()=>{$S(()=>{I(false);},1);};return document.addEventListener("mouseup",H),()=>{document.removeEventListener("mouseup",H);}},[]);let J=r&&!L,te=$||((H,X)=>{let{index:re}=X,ce=H.props;function fe(ge,xe,Te){Te&&g[ge]?.(xe),ce[ge]?.(xe);}let Pe={...ce,onMouseEnter:ge=>{M(true),fe("onMouseEnter",ge);},onMouseLeave:ge=>{M(false),fe("onMouseLeave",ge);},onMouseDown:ge=>{I(true),G(true),fe("onMouseDown",ge);},onFocus:ge=>{I(true),g.onFocus?.(ge),fe("onFocus",ge,true);},onBlur:ge=>{I(false),g.onBlur?.(ge),fe("onBlur",ge,true);}},we=ve__default.cloneElement(H,Pe),ye=(!!L||q)&&V!==null;return J?we:ve__default.createElement(IC,{...w,prefixCls:C("tooltip",F??s),title:V?V(X.value):"",open:ye,placement:Z(k??d,y),key:re,overlayClassName:`${K}-tooltip`,getPopupContainer:D||m||S},we)}),ue=J?(H,X)=>{let re=ve__default.cloneElement(H,{style:{...H.props.style,visibility:"hidden"}});return ve__default.createElement(IC,{...w,prefixCls:C("tooltip",F??s),title:V?V(X.value):"",open:V!==null&&q,placement:Z(k??d,y),key:"tooltip",overlayClassName:`${K}-tooltip`,getPopupContainer:D||m||S,draggingDelete:X.draggingDelete},re)}:void 0,W={...b?.style,...a};return Q(ve__default.createElement(_8,{...g,step:g.step,range:r,className:Y,style:W,disabled:x,ref:t,prefixCls:K,handleRender:te,activeHandleRender:ue,onChangeComplete:_}))}),Yc=X8;var NC=e=>{let{prefixCls:t,colors:o,type:r,color:n,range:i=false,className:a,activeIndex:l,onActive:s,onDragStart:c,onDragChange:p,onKeyDelete:m,...d}=e,f={...d,track:false},u=ve.useMemo(()=>`linear-gradient(90deg, ${o.map(x=>`${x.color} ${x.percent}%`).join(", ")})`,[o]),g=ve.useMemo(()=>!n||!r?null:r==="alpha"?n.toRgbString():`hsl(${n.toHsb().h}, 100%, 50%)`,[n,r]),y=yf(c),h=yf(p),b=ve.useMemo(()=>({onDragStart:y,onDragChange:h}),[]),C=yf((v,x)=>{let{onFocus:$,style:R,className:T,onKeyDown:P}=v.props,N={...R};return r==="gradient"&&(N.background=Id(o,x.value)),ve.cloneElement(v,{onFocus:M=>{s?.(x.index),$?.(M);},style:N,className:Xi(T,{[`${t}-slider-handle-active`]:l===x.index}),onKeyDown:M=>{(M.key==="Delete"||M.key==="Backspace")&&m&&m(x.index),P?.(M);}})}),S=ve.useMemo(()=>({direction:"ltr",handleRender:C}),[]);return ve.createElement(Zm.Provider,{value:S},ve.createElement(UnstableContext.Provider,{value:b},ve.createElement(Yc,{...f,className:Xi(a,`${t}-slider`),tooltip:{open:false},range:{editable:i,minCount:2},styles:{rail:{background:u},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}})))},Y8=e=>{let{value:t,onChange:o,onChangeComplete:r}=e;return ve.createElement(NC,{...e,value:[t],onChange:a=>o(a[0]),onChangeComplete:a=>r(a[0])})},hP=Y8;function bP(e){return [...e].sort((t,o)=>t.percent-o.percent)}var Z8=e=>{let{prefixCls:t,mode:o,onChange:r,onChangeComplete:n,onActive:i,activeIndex:a,onGradientDragging:l,colors:s}=e,c=o==="gradient",p=ve.useMemo(()=>s.map(h=>({percent:h.percent,color:h.color.toRgbString()})),[s]),m=ve.useMemo(()=>p.map(h=>h.percent),[p]),d=ve.useRef(p),f=({rawValues:h,draggingIndex:b,draggingValue:C})=>{if(h.length>p.length){let S=Id(p,C),v=[...p];v.splice(b,0,{percent:C,color:S}),d.current=v;}else d.current=p;l(true),r(new Wt(bP(d.current)),true);},u=({deleteIndex:h,draggingIndex:b,draggingValue:C})=>{let S=[...d.current];h!==-1?S.splice(h,1):(S[b]={...S[b],percent:C},S=bP(S)),r(new Wt(S),true);},g=h=>{let b=[...p];b.splice(h,1);let C=new Wt(b);r(C),n(C);},y=h=>{n(new Wt(p)),a>=h.length&&i(h.length-1),l(false);};return c?ve.createElement(NC,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:p,color:null,value:m,range:true,onChangeComplete:y,disabled:false,type:"gradient",activeIndex:a,onActive:i,onDragStart:f,onDragChange:u,onKeyDelete:g}):null},SP=ve.memo(Z8);var e7={slider:hP},t7=()=>{let e=useContext(Vm),{mode:t,onModeChange:o,modeOptions:r,prefixCls:n,allowClear:i,value:a,disabledAlpha:l,onChange:s,onClear:c,onChangeComplete:p,activeIndex:m,gradientDragging:d,...f}=e,u=ve__default.useMemo(()=>a.cleared?[{percent:0,color:new Wt("")},{percent:100,color:new Wt("")}]:a.getColors(),[a]),g=!a.isGradient(),[y,h]=ve__default.useState(a);ib(()=>{g||h(u[m]?.color);},[d,m]);let b=ve__default.useMemo(()=>g?a:d?y:u[m]?.color,[a,m,g,y,d]),[C,S]=ve__default.useState(b),[v,x]=ve__default.useState(0),$=C?.equals(b)?b:C;ib(()=>{S(b);},[v,b?.toHexString()]);let R=(I,w)=>{let B=Ct(I);if(a.cleared){let D=B.toRgb();if(!D.r&&!D.g&&!D.b&&w){let{type:F,value:A=0}=w;B=new Wt({h:F==="hue"?A:0,s:1,b:1,a:F==="alpha"?A/100:1});}else B=ns(B);}if(t==="single")return B;let k=[...u];return k[m]={...k[m],color:B},new Wt(k)},T=(I,w,B)=>{let k=R(I,B);S(k.isGradient()?k.getColors()[m].color:k),s(k,w);},P=(I,w)=>{p(R(I,w)),x(B=>B+1);},N=I=>{s(R(I));},M=null,E=r.length>1;return (i||E)&&(M=ve__default.createElement("div",{className:`${n}-operation`},E&&ve__default.createElement(PC,{size:"small",options:r,value:t,onChange:o}),ve__default.createElement(_m,{prefixCls:n,value:a,onChange:I=>{s(I),c?.();},...f}))),ve__default.createElement(ve__default.Fragment,null,M,ve__default.createElement(SP,{...e,colors:u}),ve__default.createElement(J8,{prefixCls:n,value:$?.toHsb(),disabledAlpha:l,onChange:(I,w)=>{T(I,true,w);},onChangeComplete:(I,w)=>{P(I,w);},components:e7}),ve__default.createElement(pP,{value:b,onChange:N,prefixCls:n,disabledAlpha:l,...f}))},MC=t7;var n7=()=>{let{prefixCls:e,value:t,presets:o,onChange:r}=useContext(jm);return Array.isArray(o)?ve__default.createElement(Rv,{value:t,presets:o,prefixCls:e,onChange:r}):null},EC=n7;var i7=e=>{let{prefixCls:t,presets:o,panelRender:r,value:n,onChange:i,onClear:a,allowClear:l,disabledAlpha:s,mode:c,onModeChange:p,modeOptions:m,onChangeComplete:d,activeIndex:f,onActive:u,format:g,onFormatChange:y,gradientDragging:h,onGradientDragging:b,disabledFormat:C}=e,S=`${t}-inner`,v=ve__default.useMemo(()=>({prefixCls:t,value:n,onChange:i,onClear:a,allowClear:l,disabledAlpha:s,mode:c,onModeChange:p,modeOptions:m,onChangeComplete:d,activeIndex:f,onActive:u,format:g,onFormatChange:y,gradientDragging:h,onGradientDragging:b,disabledFormat:C}),[t,n,i,a,l,s,c,p,m,d,f,u,g,y,h,b,C]),x=ve__default.useMemo(()=>({prefixCls:t,value:n,presets:o,onChange:i}),[t,n,o,i]),$=ve__default.createElement("div",{className:`${S}-content`},ve__default.createElement(MC,null),Array.isArray(o)&&ve__default.createElement($C,null),ve__default.createElement(EC,null));return ve__default.createElement(Vm.Provider,{value:v},ve__default.createElement(jm.Provider,{value:x},ve__default.createElement("div",{className:S},typeof r=="function"?r($,{components:{Picker:MC,Presets:EC}}):$)))},vP=i7;var p7=forwardRef((e,t)=>{let{color:o,prefixCls:r,open:n,disabled:i,format:a,className:l,showText:s,activeIndex:c,...p}=e,m=`${r}-trigger`,d=`${m}-text`,f=`${d}-cell`,[u]=Ae("ColorPicker"),g=ve__default.useMemo(()=>{if(!s)return "";if(typeof s=="function")return s(o);if(o.cleared)return u.transparent;if(o.isGradient())return o.getColors().map((C,S)=>ve__default.createElement("span",{key:S,className:Xi(f,c!==-1&&c!==S&&`${f}-inactive`)},C.color.toRgbString()," ",C.percent,"%"));let h=o.toHexString().toUpperCase(),b=rs(o);switch(a){case "rgb":return o.toRgbString();case "hsb":return o.toHsbString();default:return b<100?`${h.slice(0,7)},${b}%`:h}},[o,a,s,c]),y=useMemo(()=>o.cleared?ve__default.createElement(_m,{prefixCls:r}):ve__default.createElement(ColorBlock,{prefixCls:r,color:o.toCssString()}),[o,r]);return ve__default.createElement("div",{ref:t,className:Xi(m,l,{[`${m}-active`]:n,[`${m}-disabled`]:i}),...rB(p)},y,s&&ve__default.createElement("div",{className:d},g))}),$P=p7;function kC(e,t,o){let[r]=Ae("ColorPicker"),[n,i]=s$(e,{value:t}),[a,l]=ve.useState("single"),[s,c]=ve.useMemo(()=>{let g=(Array.isArray(o)?o:[o]).filter(C=>C);g.length||g.push("single");let y=new Set(g),h=[],b=(C,S)=>{y.has(C)&&h.push({label:S,value:C});};return b("single",r.singleColor),b("gradient",r.gradientColor),[h,y]},[o]),[p,m]=ve.useState(null),d=yf(g=>{m(g),i(g);}),f=ve.useMemo(()=>{let g=Ct(n||"");return g.equals(p)?p:g},[n,p]),u=ve.useMemo(()=>c.has(a)?a:s[0]?.value,[c,a,s]);return ve.useEffect(()=>{l(f.isGradient()?"gradient":"single");},[f]),[f,d,u,l,s]}var DC=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),f7=(e,t)=>{let{componentCls:o,borderRadiusSM:r,colorPickerInsetShadow:n,lineWidth:i,colorFillSecondary:a}=e;return {[`${o}-color-block`]:{position:"relative",borderRadius:r,width:t,height:t,boxShadow:n,flex:"none",...DC("50%",e.colorFillSecondary),[`${o}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${unit(i)} ${a}`,borderRadius:"inherit"}}}},BC=f7;var g7=e=>{let{componentCls:t,antCls:o,fontSizeSM:r,lineHeightSM:n,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:s,marginXS:c,fontSizeIcon:p,paddingXS:m,colorTextPlaceholder:d,colorPickerInputNumberHandleWidth:f,lineWidth:u}=e;return {[`${t}-input-container`]:{display:"flex",[`${t}-steppers${o}-input-number`]:{fontSize:r,lineHeight:n,[`${o}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${o}-input-number-handler-wrap`]:{width:f}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${unit(i)}`,marginInlineStart:a},[`${t}-format-select${o}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${o}-select-selector`]:{padding:0,border:0},[`${o}-select-arrow`]:{insetInlineEnd:0},[`${o}-select-selection-item`]:{paddingInlineEnd:e.calc(p).add(a).equal(),fontSize:r,lineHeight:unit(s)},[`${o}-select-item-option-content`]:{fontSize:r,lineHeight:n},[`${o}-select-dropdown`]:{[`${o}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${o}-input-affix-wrapper`]:{flex:1,padding:`0 ${unit(m)}`,[`${o}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:unit(e.calc(s).sub(e.calc(u).mul(2)).equal())},[`${o}-input-prefix`]:{color:d}}}}}},PP=g7;var C7=e=>{let{componentCls:t,controlHeightLG:o,borderRadiusSM:r,colorPickerInsetShadow:n,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:s,colorPickerHandlerSize:c}=e;return {userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(o).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:n,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${unit(s)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${n}, 0 0 0 1px ${l}`}}},RP=C7;var h7=e=>{let{componentCls:t,antCls:o,colorTextQuaternary:r,paddingXXS:n,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:s,lineWidth:c,borderRadius:p,colorFill:m,colorWhite:d,marginXXS:f,paddingXS:u,fontHeightSM:g}=e;return {[`${t}-presets`]:{[`${o}-collapse-item > ${o}-collapse-header`]:{padding:0,[`${o}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:n}},[`${o}-collapse`]:{display:"flex",flexDirection:"column",gap:f},[`${o}-collapse-item > ${o}-collapse-content > ${o}-collapse-content-box`]:{padding:`${unit(u)} 0`},"&-label":{fontSize:a,color:l,lineHeight:s},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(f).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:p,border:`${unit(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:m},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${unit(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:d,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},IP=h7;var b7=e=>{let{componentCls:t,colorPickerInsetShadow:o,colorBgElevated:r,colorFillSecondary:n,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:s,marginXS:c}=e,p=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),m=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),d={"&:after":{transform:"scale(1)",boxShadow:`${o}, 0 0 0 1px ${e.colorPrimaryActive}`}};return {[`${t}-slider`]:[DC(unit(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:o},[`& ${t}-slider-handle`]:{width:p,height:p,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:true,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:m,height:m,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${unit(i)} solid ${r}`,boxShadow:`${o}, 0 0 0 1px ${n}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":d}}],[`${t}-slider-container`]:{display:"flex",gap:s,marginBottom:s,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":d}}}},NP=b7;var FC=(e,t,o)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${unit(e.controlOutlineWidth)} ${o}`,outline:0}),S7=e=>{let{componentCls:t}=e;return {"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},MP=(e,t,o)=>{let{componentCls:r,borderRadiusSM:n,lineWidth:i,colorSplit:a,colorBorder:l,red6:s}=e;return {[`${r}-clear`]:{width:t,height:t,borderRadius:n,border:`${unit(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`,...o,"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:s},"&:hover":{borderColor:l}}}},x7=e=>{let{componentCls:t,colorError:o,colorWarning:r,colorErrorHover:n,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return {[`&${t}-status-error`]:{borderColor:o,"&:hover":{borderColor:n},[`&${t}-trigger-active`]:{...FC(e,o,a)}},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:{...FC(e,r,l)}}}},v7=e=>{let{componentCls:t,controlHeightLG:o,controlHeightSM:r,controlHeight:n,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:s,borderRadiusLG:c,fontSizeLG:p}=e;return {[`&${t}-lg`]:{minWidth:o,minHeight:o,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:n,height:n,borderRadius:a},[`${t}-trigger-text`]:{fontSize:p}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:s},[`${t}-trigger-text`]:{lineHeight:unit(i)}}}},T7=e=>{let{antCls:t,componentCls:o,colorPickerWidth:r,colorPrimary:n,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:s,colorBgContainerDisabled:c,borderRadius:p,marginXS:m,marginSM:d,controlHeight:f,controlHeightSM:u,colorBgTextActive:g,colorPickerPresetColorSize:y,colorPickerPreviewSize:h,lineWidth:b,colorBorder:C,paddingXXS:S,fontSize:v,colorPrimaryHover:x,controlOutline:$}=e;return [{[o]:{[`${o}-inner`]:{"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${unit(d)} 0 ${unit(m)}`}},[`${o}-panel`]:{...RP(e)},...NP(e),...BC(e,h),...PP(e),...IP(e),...MP(e,y,{marginInlineStart:"auto"}),[`${o}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:m}},"&-trigger":{minWidth:f,minHeight:f,borderRadius:p,border:`${unit(b)} solid ${C}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(S).sub(b).equal(),[`${o}-trigger-text`]:{marginInlineStart:m,marginInlineEnd:e.calc(m).sub(e.calc(S).sub(b)).equal(),fontSize:v,color:s,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:x},[`&${o}-trigger-active`]:{...FC(e,n,$)},"&-disabled":{color:l,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${o}-trigger-text`]:{color:l}},...MP(e,u),...BC(e,u),...x7(e),...v7(e)},...S7(e)}},qo(e,{focusElCls:`${o}-trigger-active`})]},EP=oe("ColorPicker",e=>{let{colorTextQuaternary:t,marginSM:o}=e,r=8,n=mergeToken(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(o).equal()});return [T7(n)]});var AC=e=>{let{mode:t,value:o,defaultValue:r,format:n,defaultFormat:i,allowClear:a=false,presets:l,children:s,trigger:c="click",open:p,disabled:m,placement:d="bottomLeft",arrow:f=true,panelRender:u,showText:g,style:y,className:h,size:b,rootClassName:C,prefixCls:S,styles:v,disabledAlpha:x=false,onFormatChange:$,onChange:R,onClear:T,onOpenChange:P,onChangeComplete:N,getPopupContainer:M,autoAdjustOverflow:E=true,destroyTooltipOnHide:I,disabledFormat:w,...B}=e,{getPrefixCls:k,direction:D,colorPicker:F}=useContext(O),A=useContext(We),L=m??A,[q,V]=s$(false,{value:p,postState:me=>!L&&me,onChange:P}),[z,G]=s$(n,{value:n,defaultValue:i,onChange:$}),_=k("color-picker",S),[Z,K,Q,ee,j]=kC(r,o,t),Y=useMemo(()=>rs(Z)<100,[Z]),[J,te]=ve__default.useState(null),ue=me=>{if(N){let Ce=Ct(me);x&&Y&&(Ce=ns(me)),N(Ce);}},W=(me,Ce)=>{let be=Ct(me);x&&Y&&(be=ns(be)),K(be),te(null),R&&R(be,be.toCssString()),Ce||ue(be);},[H,X]=ve__default.useState(0),[re,ce]=ve__default.useState(false),fe=me=>{if(ee(me),me==="single"&&Z.isGradient())X(0),W(new Wt(Z.getColors()[0].color)),te(Z);else if(me==="gradient"&&!Z.isGradient()){let Ce=Y?ns(Z):Z;W(new Wt(J||[{percent:0,color:Ce},{percent:100,color:Ce}]));}},{status:Pe}=ve__default.useContext(Le),{compactSize:we,compactItemClassnames:ye}=Mt(_,D),ge=ke(me=>b??we??me),xe=$e(_),[Te,Se,de]=EP(_,xe),U={[`${_}-rtl`]:D},pe=Xi(C,de,xe,U),se=Xi(xt(_,Pe),{[`${_}-sm`]:ge==="small",[`${_}-lg`]:ge==="large"},ye,F?.className,pe,h,Se),he=Xi(_,pe),le={open:q,trigger:c,placement:d,arrow:f,rootClassName:C,getPopupContainer:M,autoAdjustOverflow:E,destroyTooltipOnHide:I},ie={...F?.style,...y};return Te(ve__default.createElement(Aa,{style:v?.popup,overlayInnerStyle:v?.popupOverlayInner,onOpenChange:me=>{(!me||!L)&&V(me);},content:ve__default.createElement(Gt,{form:true},ve__default.createElement(vP,{mode:Q,onModeChange:fe,modeOptions:j,prefixCls:_,value:Z,allowClear:a,disabled:L,disabledAlpha:x,presets:l,panelRender:u,format:z,onFormatChange:G,onChange:W,onChangeComplete:ue,onClear:T,activeIndex:H,onActive:X,gradientDragging:re,onGradientDragging:ce,disabledFormat:w})),overlayClassName:he,...le},s||ve__default.createElement($P,{activeIndex:q?H:-1,open:q,className:se,style:ie,prefixCls:_,disabled:L,showText:g,format:z,...B,color:Z})))},P7=Xt(AC,void 0,e=>({...e,placement:"bottom",autoAdjustOverflow:false}),"color-picker",e=>e);AC._InternalPanelDoNotUseOrYouWillBeFired=P7;var BP=AC;var R7=BP;function FP(e,t,o){return o!==void 0?o:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function zP(e,t,o){return o!==void 0?o:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Jm(e,t){let{allowClear:o=true}=e,{clearIcon:r,removeIcon:n}=Zn({...e,prefixCls:t,componentName:"DatePicker"});return [ve.useMemo(()=>o===false?false:{clearIcon:r,...o===true?{}:o},[o,r]),n]}var[AP,LP]=["week","WeekPicker"],[HP,WP]=["month","MonthPicker"],[GP,VP]=["year","YearPicker"],[jP,_P]=["quarter","QuarterPicker"],[eu,LC]=["time","TimePicker"];var I7=e=>ve.createElement(Ge,{size:"small",type:"primary",...e}),qP=I7;function Zc(e){return useMemo(()=>({button:qP,...e}),[e])}var O7=e=>forwardRef((o,r)=>{let{prefixCls:n,getPopupContainer:i,components:a,className:l,style:s,placement:c,size:p,disabled:m,bordered:d=true,placeholder:f,popupClassName:u,dropdownClassName:g,status:y,rootClassName:h,variant:b,picker:C,...S}=o,v=ve.useRef(null),{getPrefixCls:x,direction:$,getPopupContainer:R,rangePicker:T}=useContext(O),P=x("picker",n),{compactSize:N,compactItemClassnames:M}=Mt(P,$),E=x(),[I,w]=Vt("rangePicker",b,d),B=$e(P),[k,D,F]=Em(P,B),[A]=Jm(o,P),L=Zc(a),q=ke(J=>p??N??J),V=ve.useContext(We),z=m??V,G=useContext(Le),{hasFeedback:_,status:Z,feedbackIcon:K}=G,Q=ve.createElement(ve.Fragment,null,C===eu?ve.createElement(k7,null):ve.createElement(E7,null),_&&K);useImperativeHandle(r,()=>v.current);let[ee]=Ae("Calendar",Ti),j={...ee,...o.locale},[Y]=dt("DatePicker",o.popupStyle?.zIndex);return k(ve.createElement(Gt,{space:true},ve.createElement(RangePicker,{separator:ve.createElement("span",{"aria-label":"to",className:`${P}-separator`},ve.createElement(D7,null)),disabled:z,ref:v,placement:c,placeholder:zP(j,C,f),suffixIcon:Q,prevIcon:ve.createElement("span",{className:`${P}-prev-icon`}),nextIcon:ve.createElement("span",{className:`${P}-next-icon`}),superPrevIcon:ve.createElement("span",{className:`${P}-super-prev-icon`}),superNextIcon:ve.createElement("span",{className:`${P}-super-next-icon`}),transitionName:`${E}-slide-up`,picker:C,...S,className:Xi({[`${P}-${q}`]:q,[`${P}-${I}`]:w},xt(P,Et(Z,y),_),D,M,l,T?.className,F,B,h),style:{...T?.style,...s},locale:j.lang,prefixCls:P,getPopupContainer:i||R,generateConfig:e,components:L,direction:$,classNames:{popup:Xi(D,u||g,F,B,h)},styles:{popup:{...o.popupStyle,zIndex:Y}},allowClear:A})))}),YP=O7;var W7=e=>{let t=(s,c)=>{let p=c===LC?"timePicker":"datePicker";return forwardRef((d,f)=>{let{prefixCls:u,getPopupContainer:g,components:y,style:h,className:b,rootClassName:C,size:S,bordered:v,placement:x,placeholder:$,popupClassName:R,dropdownClassName:T,disabled:P,status:N,variant:M,onCalendarChange:E,...I}=d,{getPrefixCls:w,direction:B,getPopupContainer:k,[p]:D}=useContext(O),F=w("picker",u),{compactSize:A,compactItemClassnames:L}=Mt(F,B),q=ve.useRef(null),[V,z]=Vt("datePicker",M,v),G=$e(F),[_,Z,K]=Em(F,G);useImperativeHandle(f,()=>q.current);let Q={showToday:true},ee=s||d.picker,j=w(),{onSelect:Y,multiple:J}=I,te=Y&&s==="time"&&!J,ue=(U,pe,se)=>{E?.(U,pe,se),te&&Y(U);},[W,H]=Jm(d,F),X=Zc(y),re=ke(U=>S??A??U),ce=ve.useContext(We),fe=P??ce,Pe=useContext(Le),{hasFeedback:we,status:ye,feedbackIcon:ge}=Pe,xe=ve.createElement(ve.Fragment,null,ee==="time"?ve.createElement(k7,null):ve.createElement(E7,null),we&&ge),[Te]=Ae("DatePicker",Ti),Se={...Te,...d.locale},[de]=dt("DatePicker",d.popupStyle?.zIndex);return _(ve.createElement(Gt,{space:true},ve.createElement(H7,{ref:q,placeholder:FP(Se,ee,$),suffixIcon:xe,placement:x,prevIcon:ve.createElement("span",{className:`${F}-prev-icon`}),nextIcon:ve.createElement("span",{className:`${F}-next-icon`}),superPrevIcon:ve.createElement("span",{className:`${F}-super-prev-icon`}),superNextIcon:ve.createElement("span",{className:`${F}-super-next-icon`}),transitionName:`${j}-slide-up`,picker:s,onCalendarChange:ue,...Q,...I,locale:Se.lang,className:Xi({[`${F}-${re}`]:re,[`${F}-${V}`]:z},xt(F,Et(ye,N),we),Z,L,D?.className,b,K,G,C),style:{...D?.style,...h},prefixCls:F,getPopupContainer:g||k,generateConfig:e,components:X,direction:B,disabled:fe,classNames:{popup:Xi(Z,K,G,C,R||T)},styles:{popup:{...d.popupStyle,zIndex:de}},allowClear:W,removeIcon:H})))})},o=t(),r=t(AP,LP),n=t(HP,WP),i=t(GP,VP),a=t(jP,_P),l=t(eu,LC);return {DatePicker:o,WeekPicker:r,MonthPicker:n,YearPicker:i,TimePicker:l,QuarterPicker:a}},JP=W7;var G7=e=>{let{DatePicker:t,WeekPicker:o,MonthPicker:r,YearPicker:n,TimePicker:i,QuarterPicker:a}=JP(e),l=YP(e),s=t;return s.WeekPicker=o,s.MonthPicker=r,s.YearPicker=n,s.RangePicker=l,s.TimePicker=i,s.QuarterPicker=a,s},HC=G7;var Ms=HC(hL),j7=Xt(Ms,"popupAlign",void 0,"picker");Ms._InternalPanelDoNotUseOrYouWillBeFired=j7;var _7=Xt(Ms.RangePicker,"popupAlign",void 0,"picker");Ms._InternalRangePanelDoNotUseOrYouWillBeFired=_7;Ms.generatePicker=HC;var ci=Ms;var U7={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},eR=U7;var X7=ve__default.createContext({}),tu=X7;var Y7=e=>H0(e).map(t=>({...t?.props,key:t.key}));function GC(e,t,o){let r=ve.useMemo(()=>t||Y7(o),[t,o]);return ve.useMemo(()=>r.map(({span:i,...a})=>i==="filled"?{...a,filled:true}:{...a,span:typeof i=="number"?i:om(e,i)}),[r,e])}function Q7(e,t){let o=[],r=[],n=false,i=0;return e.filter(a=>a).forEach(a=>{let{filled:l,...s}=a;if(l){r.push(s),o.push(r),r=[],i=0;return}let c=t-i;i+=a.span||1,i>=t?(i>t?(n=true,r.push({...s,span:c})):r.push(s),o.push(r),r=[],i=0):r.push(s);}),r.length>0&&o.push(r),o=o.map(a=>{let l=a.reduce((s,c)=>s+(c.span||1),0);if(l<t){let s=a[a.length-1];return s.span=t-l+1,a}return a}),[o,n]}var J7=(e,t)=>{let[o,r]=useMemo(()=>Q7(t,e),[t,e]);return o},tR=J7;var e9=({children:e})=>e,oR=e9;function rR(e){return e!=null}var t9=e=>{let{itemPrefixCls:t,component:o,span:r,className:n,style:i,labelStyle:a,contentStyle:l,bordered:s,label:c,content:p,colon:m,type:d}=e,f=o;return s?ve.createElement(f,{className:Xi({[`${t}-item-label`]:d==="label",[`${t}-item-content`]:d==="content"},n),style:i,colSpan:r},rR(c)&&ve.createElement("span",{style:a},c),rR(p)&&ve.createElement("span",{style:l},p)):ve.createElement(f,{className:Xi(`${t}-item`,n),style:i,colSpan:r},ve.createElement("div",{className:`${t}-item-container`},(c||c===0)&&ve.createElement("span",{className:Xi(`${t}-item-label`,{[`${t}-item-no-colon`]:!m}),style:a},c),(p||p===0)&&ve.createElement("span",{className:Xi(`${t}-item-content`),style:l},p)))},ru=t9;function VC(e,{colon:t,prefixCls:o,bordered:r},{component:n,type:i,showLabel:a,showContent:l,labelStyle:s,contentStyle:c}){return e.map(({label:p,children:m,prefixCls:d=o,className:f,style:u,labelStyle:g,contentStyle:y,span:h=1,key:b},C)=>typeof n=="string"?ve.createElement(ru,{key:`${i}-${b||C}`,className:f,style:u,labelStyle:{...s,...g},contentStyle:{...c,...y},span:h,colon:t,component:n,itemPrefixCls:d,bordered:r,label:a?p:null,content:l?m:null,type:i}):[ve.createElement(ru,{key:`label-${b||C}`,className:f,style:{...s,...u,...g},span:1,colon:t,component:n[0],itemPrefixCls:d,bordered:r,label:p,type:"label"}),ve.createElement(ru,{key:`content-${b||C}`,className:f,style:{...c,...u,...y},span:h*2-1,component:n[1],itemPrefixCls:d,bordered:r,content:m,type:"content"})])}var o9=e=>{let t=ve.useContext(tu),{prefixCls:o,vertical:r,row:n,index:i,bordered:a}=e;return r?ve.createElement(ve.Fragment,null,ve.createElement("tr",{key:`label-${i}`,className:`${o}-row`},VC(n,e,{component:"th",type:"label",showLabel:true,...t})),ve.createElement("tr",{key:`content-${i}`,className:`${o}-row`},VC(n,e,{component:"td",type:"content",showContent:true,...t}))):ve.createElement("tr",{key:i,className:`${o}-row`},VC(n,e,{component:a?["th","td"]:"td",type:"item",showLabel:true,showContent:true,...t}))},nR=o9;var r9=e=>{let{componentCls:t,labelBg:o}=e;return {[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.padding)} ${unit(e.paddingLG)}`,borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:o,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.paddingSM)} ${unit(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${unit(e.paddingXS)} ${unit(e.padding)}`}}}}}},n9=e=>{let{componentCls:t,extraColor:o,itemPaddingBottom:r,itemPaddingEnd:n,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:l}=e;return {[t]:{...ae(e),...r9(e),"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:{...qe,flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG},[`${t}-extra`]:{marginInlineStart:"auto",color:o,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:n},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-0.5,marginInline:`${unit(a)} ${unit(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}}}},i9=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),iR=oe("Descriptions",e=>{let t=mergeToken(e,{});return n9(t)},i9);var aR=e=>{let{prefixCls:t,title:o,extra:r,column:n,colon:i=true,bordered:a,layout:l,children:s,className:c,rootClassName:p,style:m,size:d,labelStyle:f,contentStyle:u,items:g,...y}=e,{getPrefixCls:h,direction:b,descriptions:C}=ve.useContext(O),S=h("descriptions",t),v=Zo(),x=ve.useMemo(()=>typeof n=="number"?n:om(v,{...eR,...n})??3,[v,n]),$=GC(v,g,s),R=ke(d),T=tR(x,$),[P,N,M]=iR(S),E=ve.useMemo(()=>({labelStyle:f,contentStyle:u}),[f,u]);return P(ve.createElement(tu.Provider,{value:E},ve.createElement("div",{className:Xi(S,C?.className,{[`${S}-${R}`]:R&&R!=="default",[`${S}-bordered`]:!!a,[`${S}-rtl`]:b==="rtl"},c,p,N,M),style:{...C?.style,...m},...y},(o||r)&&ve.createElement("div",{className:`${S}-header`},o&&ve.createElement("div",{className:`${S}-title`},o),r&&ve.createElement("div",{className:`${S}-extra`},r)),ve.createElement("div",{className:`${S}-view`},ve.createElement("table",null,ve.createElement("tbody",null,T.map((I,w)=>ve.createElement(nR,{key:w,index:w,colon:i,prefixCls:S,vertical:l==="vertical",bordered:a,row:I}))))))))};aR.Item=oR;var l9=aR;var s9=e=>{let{prefixCls:t,title:o,footer:r,extra:n,loading:i,onClose:a,headerStyle:l,bodyStyle:s,footerStyle:c,children:p,classNames:m,styles:d,confirmLoading:f,onOk:u}=e,{drawer:g}=ve.useContext(O),y=ve.useCallback(v=>ve.createElement("button",{type:"button",onClick:a,"aria-label":"Close",className:`${t}-close`},v),[a]),[h,b]=Un(_n(e),_n(g),{closable:true,closeIconRender:y}),C=ve.useMemo(()=>!o&&!h?null:ve.createElement("div",{style:{...g?.styles?.header,...l,...d?.header},className:Xi(`${t}-header`,{[`${t}-header-close-only`]:h&&!o&&!n},g?.classNames?.header,m?.header)},ve.createElement("div",{className:`${t}-header-title`},o&&ve.createElement("div",{className:`${t}-title`},o)),n&&ve.createElement("div",{className:`${t}-extra`},n),b),[h,b,n,l,t,o]),S=ve.useMemo(()=>{if(!r)return null;let v=`${t}-footer`;return ve.createElement("div",{className:Xi(v,g?.classNames?.footer,m?.footer),style:{...g?.styles?.footer,...c,...d?.footer}},r)},[r,c,t]);return ve.createElement(ve.Fragment,null,C,ve.createElement("div",{className:Xi(`${t}-body`,m?.body,g?.classNames?.body),style:{...g?.styles?.body,...s,...d?.body}},i?ve.createElement(Xn,{active:true,title:false,paragraph:{rows:5},className:`${t}-body-skeleton`}):p),S||ve.createElement("div",{className:"pt2x pb2x pl4x",style:{borderTop:"1px solid rgba(5, 5, 5, 0.06)"}},ve.createElement(Ge,{type:"primary",className:"mr2x",loading:f,onClick:v=>{u?.(v);}},"\u786E\u5B9A"),ve.createElement(Ge,{type:"default",onClick:a},"\u53D6\u6D88")))},_C=s9;var c9=e=>{let t="100%";return {left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},lR=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),sR=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...lR({opacity:e},{opacity:1})}),p9=(e,t)=>[sR(.7,t),lR({transform:c9(e)},{transform:"none"})],d9=e=>{let{componentCls:t,motionDurationSlow:o}=e;return {[t]:{[`${t}-mask-motion`]:sR(0,o),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,n)=>({...r,[`&-${n}`]:p9(n,o)}),{})}}},cR=d9;var m9=e=>{let{borderRadiusSM:t,componentCls:o,zIndexPopup:r,colorBgMask:n,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:s,padding:c,paddingLG:p,fontSizeLG:m,lineHeightLG:d,lineWidth:f,lineType:u,colorSplit:g,marginXS:y,colorIcon:h,colorIconHover:b,colorBgTextHover:C,colorBgTextActive:S,colorText:v,fontWeightStrong:x,footerPaddingBlock:$,footerPaddingInline:R,calc:T}=e,P=`${o}-content-wrapper`;return {[o]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:v,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${o}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${o}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${o}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${o}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${o}-mask`]:{position:"absolute",inset:0,zIndex:r,background:n,pointerEvents:"auto"},[P]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${P}`]:{top:0,bottom:0,left:{_skip_check_:true,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${P}`]:{top:0,right:{_skip_check_:true,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${P}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${P}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${o}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${o}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${unit(c)} ${unit(p)}`,fontSize:m,lineHeight:d,borderBottom:`${unit(f)} ${u} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${o}-extra`]:{flex:"none"},[`${o}-close`]:{display:"inline-flex",width:T(m).add(s).equal(),height:T(m).add(s).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:y,color:h,fontWeight:x,fontSize:m,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:b,backgroundColor:C,textDecoration:"none"},"&:active":{backgroundColor:S},...$t(e)},[`${o}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:m,lineHeight:d},[`${o}-body`]:{flex:1,minWidth:0,minHeight:0,padding:p,overflow:"auto",[`${o}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${o}-footer`]:{flexShrink:0,padding:`${unit($)} ${unit(R)}`,borderTop:`${unit(f)} ${u} ${g}`},"&-rtl":{direction:"rtl"}}}},u9=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),UC=oe("Drawer",e=>{let t=mergeToken(e,{});return [m9(t),cR(t)]},u9);var g9={distance:180},pR=e=>{let{rootClassName:t,width:o,height:r,size:n="default",mask:i=true,push:a=g9,open:l,afterOpenChange:s,onClose:c,prefixCls:p,getContainer:m,style:d,className:f,visible:u,afterVisibleChange:g,maskStyle:y,drawerStyle:h,contentWrapperStyle:b,onOk:C,confirmLoading:S,...v}=e,{getPopupContainer:x,getPrefixCls:$,direction:R,drawer:T}=ve.useContext(O),P=$("drawer",p),[N,M,E]=UC(P),I=m===void 0&&x?()=>x(document.body):m,w=Xi({"no-mask":!i,[`${P}-rtl`]:R==="rtl"},t,M,E),B=ve.useMemo(()=>o??(n==="large"?736:378),[o,n]),k=ve.useMemo(()=>r??(n==="large"?736:378),[r,n]),D={motionName:it(P,"mask-motion"),motionAppear:true,motionEnter:true,motionLeave:true,motionDeadline:500},F=Z=>({motionName:it(P,`panel-motion-${Z}`),motionAppear:true,motionEnter:true,motionLeave:true,motionDeadline:500}),A=zd(),[L,q]=dt("Drawer",v.zIndex),{classNames:V={},styles:z={}}=v,{classNames:G={},styles:_={}}=T||{};return N(ve.createElement(Gt,{form:true,space:true},ve.createElement(Nr.Provider,{value:q},ve.createElement(f9,{prefixCls:P,onClose:c,maskMotion:D,motion:F,...v,classNames:{mask:Xi(V.mask,G.mask),content:Xi(V.content,G.content),wrapper:Xi(V.wrapper,G.wrapper)},styles:{mask:{...z.mask,...y,..._.mask},content:{...z.content,...h,..._.content},wrapper:{...z.wrapper,...b,..._.wrapper}},open:l??u,mask:i,push:a,width:B,height:k,style:{...T?.style,...d},className:Xi(T?.className,f),rootClassName:w,getContainer:I,afterOpenChange:s??g,panelRef:A,zIndex:L},ve.createElement(_C,{confirmLoading:S,onOk:C,prefixCls:P,...v,onClose:c})))))},y9=e=>{let{prefixCls:t,style:o,className:r,placement:n="right",...i}=e,{getPrefixCls:a}=ve.useContext(O),l=a("drawer",t),[s,c,p]=UC(l),m=Xi(l,`${l}-pure`,`${l}-${n}`,c,p,r);return s(ve.createElement("div",{className:m,style:o},ve.createElement(_C,{prefixCls:l,...i})))};pR._InternalPanelDoNotUseOrYouWillBeFired=y9;var C9=pR;function Ds(e){return ["small","middle","large"].includes(e)}function qC(e){return e?typeof e=="number"&&!Number.isNaN(e):false}var nu=ve__default.createContext({latestIndex:0}),dR=nu.Provider;var b9=({className:e,index:t,children:o,split:r,style:n})=>{let{latestIndex:i}=ve.useContext(nu);return o==null?null:ve.createElement(ve.Fragment,null,ve.createElement("div",{className:e,style:n},o),t<i&&r&&ve.createElement("span",{className:`${e}-split`},r))},mR=b9;var x9=ve.forwardRef((e,t)=>{let{getPrefixCls:o,space:r,direction:n}=ve.useContext(O),{size:i=r?.size??"small",align:a,className:l,rootClassName:s,children:c,direction:p="horizontal",prefixCls:m,split:d,style:f,wrap:u=false,classNames:g,styles:y,...h}=e,[b,C]=Array.isArray(i)?i:[i,i],S=Ds(C),v=Ds(b),x=qC(C),$=qC(b),R=H0(c,{keepEmpty:true}),T=a===void 0&&p==="horizontal"?"center":a,P=o("space",m),[N,M,E]=vd(P),I=Xi(P,r?.className,M,`${P}-${p}`,{[`${P}-rtl`]:n==="rtl",[`${P}-align-${T}`]:T,[`${P}-gap-row-${C}`]:S,[`${P}-gap-col-${b}`]:v},l,s,E),w=Xi(`${P}-item`,g?.item??r?.classNames?.item),B=0,k=R.map((A,L)=>{A!=null&&(B=L);let q=A?.key||`${w}-${L}`;return ve.createElement(mR,{className:w,key:q,index:L,split:d,style:y?.item??r?.styles?.item},A)}),D=ve.useMemo(()=>({latestIndex:B}),[B]);if(R.length===0)return null;let F={};return u&&(F.flexWrap="wrap"),!v&&$&&(F.columnGap=b),!S&&x&&(F.rowGap=C),N(ve.createElement("div",{ref:t,className:I,style:{...F,...r?.style,...f},...h},ve.createElement(dR,{value:D},k)))}),fR=x9;fR.Compact=Ax;var XC=fR;var gR=e=>{let{getPopupContainer:t,getPrefixCls:o,direction:r}=ve.useContext(O),{prefixCls:n,type:i="default",danger:a,disabled:l,loading:s,onClick:c,htmlType:p,children:m,className:d,menu:f,arrow:u,autoFocus:g,overlay:y,trigger:h,align:b,open:C,onOpenChange:S,placement:v,getPopupContainer:x,href:$,icon:R=ve.createElement(eA,null),title:T,buttonsRender:P=K=>K,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:E,overlayStyle:I,destroyPopupOnHide:w,dropdownRender:B,...k}=e,D=o("dropdown",n),F=`${D}-button`,A={menu:f,arrow:u,autoFocus:g,align:b,disabled:l,trigger:l?[]:h,onOpenChange:S,getPopupContainer:x||t,mouseEnterDelay:N,mouseLeaveDelay:M,overlayClassName:E,overlayStyle:I,destroyPopupOnHide:w,dropdownRender:B},{compactSize:L,compactItemClassnames:q}=Mt(D,r),V=Xi(F,q,d);"overlay"in e&&(A.overlay=y),"open"in e&&(A.open=C),"placement"in e?A.placement=v:A.placement=r==="rtl"?"bottomLeft":"bottomRight";let z=ve.createElement(Ge,{type:i,danger:a,disabled:l,loading:s,onClick:c,htmlType:p,href:$,title:T},m),G=ve.createElement(Ge,{type:i,danger:a,icon:R}),[_,Z]=P([z,G]);return ve.createElement(XC.Compact,{className:V,size:L,block:true,...k},_,ve.createElement(hs,{...A},Z))};gR.__ANT_BUTTON=true;var yR=gR;var CR=hs;CR.Button=yR;var nl=CR;var KC=["wrap","nowrap","wrap-reverse"],YC=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],ZC=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],P9=(e,t)=>{let o=t.wrap===true?"wrap":t.wrap;return {[`${e}-wrap-${o}`]:o&&KC.includes(o)}},R9=(e,t)=>{let o={};return ZC.forEach(r=>{o[`${e}-align-${r}`]=t.align===r;}),o[`${e}-align-stretch`]=!t.align&&!!t.vertical,o},I9=(e,t)=>{let o={};return YC.forEach(r=>{o[`${e}-justify-${r}`]=t.justify===r;}),o};function w9(e,t){return Xi({...P9(e,t),...R9(e,t),...I9(e,t)})}var hR=w9;var N9=e=>{let{componentCls:t}=e;return {[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},M9=e=>{let{componentCls:t}=e;return {[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},E9=e=>{let{componentCls:t}=e,o={};return KC.forEach(r=>{o[`${t}-wrap-${r}`]={flexWrap:r};}),o},k9=e=>{let{componentCls:t}=e,o={};return ZC.forEach(r=>{o[`${t}-align-${r}`]={alignItems:r};}),o},D9=e=>{let{componentCls:t}=e,o={};return YC.forEach(r=>{o[`${t}-justify-${r}`]={justifyContent:r};}),o},B9=()=>({}),bR=oe("Flex",e=>{let{paddingXS:t,padding:o,paddingLG:r}=e,n=mergeToken(e,{flexGapSM:t,flexGap:o,flexGapLG:r});return [N9(n),M9(n),E9(n),k9(n),D9(n)]},B9,{resetStyle:false});var z9=ve__default.forwardRef((e,t)=>{let{prefixCls:o,rootClassName:r,className:n,style:i,flex:a,gap:l,children:s,vertical:c=false,component:p="div",...m}=e,{flex:d,direction:f,getPrefixCls:u}=ve__default.useContext(O),g=u("flex",o),[y,h,b]=bR(g),C=c??d?.vertical,S=Xi(n,r,d?.className,g,h,b,hR(g,e),{[`${g}-rtl`]:f==="rtl",[`${g}-gap-${l}`]:Ds(l),[`${g}-vertical`]:C}),v={...d?.style,...i};return a&&(v.flex=a),l&&!Ds(l)&&(v.gap=l),y(ve__default.createElement(p,{ref:t,className:S,style:v,...vv(m,["justify","wrap","align"])},s))}),A9=z9;function il(e){let[t,o]=ve.useState(e);return ve.useEffect(()=>{let r=setTimeout(()=>{o(e);},e.length?0:10);return ()=>{clearTimeout(r);}},[e]),t}var L9=e=>{let{componentCls:t}=e,o=`${t}-show-help`,r=`${t}-show-help-item`;return {[o]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
227
227
|
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
228
|
-
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},
|
|
229
|
-
&-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:l,fontSize:s,[`> ${o}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:p,marginInlineEnd:
|
|
230
|
-
> ${o}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${o}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${o}-has-feedback`]:{display:"inline-block"}}}}},
|
|
228
|
+
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},SR=L9;var H9=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${unit(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),xR=(e,t)=>{let{formItemCls:o}=e;return {[o]:{[`${o}-label > label`]:{height:t},[`${o}-control-input`]:{minHeight:t}}}},W9=e=>{let{componentCls:t}=e;return {[e.componentCls]:{...ae(e),...H9(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...xR(e,e.controlHeightSM)},"&-large":{...xR(e,e.controlHeightLG)}}}},G9=e=>{let{formItemCls:t,iconCls:o,componentCls:r,rootPrefixCls:n,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:p,labelColonMarginInlineEnd:m,itemMarginBottom:d}=e;return {[t]:{...ae(e),marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
229
|
+
&-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:l,fontSize:s,[`> ${o}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:p,marginInlineEnd:m},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Rc,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},vR=(e,t)=>{let{formItemCls:o}=e;return {[`${t}-horizontal`]:{[`${o}-label`]:{flexGrow:0},[`${o}-control`]:{flex:"1 1 0",minWidth:0},[`${o}-label[class$='-24'], ${o}-label[class*='-24 ']`]:{[`& + ${o}-control`]:{minWidth:"unset"}}}}},V9=e=>{let{componentCls:t,formItemCls:o,inlineItemMarginBottom:r}=e;return {[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[o]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${o}-label,
|
|
230
|
+
> ${o}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${o}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${o}-has-feedback`]:{display:"inline-block"}}}}},on=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),TR=e=>{let{componentCls:t,formItemCls:o,rootPrefixCls:r}=e;return {[`${o} ${o}-label`]:on(e),[`${t}:not(${t}-inline)`]:{[o]:{flexWrap:"wrap",[`${o}-label, ${o}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},j9=e=>{let{componentCls:t,formItemCls:o,antCls:r}=e;return {[`${t}-vertical`]:{[`${o}:not(${o}-horizontal)`]:{[`${o}-row`]:{flexDirection:"column"},[`${o}-label > label`]:{height:"auto"},[`${o}-control`]:{width:"100%"},[`${o}-label,
|
|
231
231
|
${r}-col-24${o}-label,
|
|
232
|
-
${r}-col-xl-24${o}-label`]:
|
|
232
|
+
${r}-col-xl-24${o}-label`]:on(e)}},[`@media (max-width: ${unit(e.screenXSMax)})`]:[TR(e),{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-xs-24${o}-label`]:on(e)}}}],[`@media (max-width: ${unit(e.screenSMMax)})`]:{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-sm-24${o}-label`]:on(e)}}},[`@media (max-width: ${unit(e.screenMDMax)})`]:{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-md-24${o}-label`]:on(e)}}},[`@media (max-width: ${unit(e.screenLGMax)})`]:{[t]:{[`${o}:not(${o}-horizontal)`]:{[`${r}-col-lg-24${o}-label`]:on(e)}}}}},_9=e=>{let{formItemCls:t,antCls:o}=e;return {[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
|
|
233
233
|
${o}-col-24${t}-label,
|
|
234
|
-
${o}-col-xl-24${t}-label`]:qr(e),[`@media (max-width: ${unit(e.screenXSMax)})`]:[u$(e),{[t]:{[`${o}-col-xs-24${t}-label`]:qr(e)}}],[`@media (max-width: ${unit(e.screenSMMax)})`]:{[t]:{[`${o}-col-sm-24${t}-label`]:qr(e)}},[`@media (max-width: ${unit(e.screenMDMax)})`]:{[t]:{[`${o}-col-md-24${t}-label`]:qr(e)}},[`@media (max-width: ${unit(e.screenLGMax)})`]:{[t]:{[`${o}-col-lg-24${t}-label`]:qr(e)}}}},r7=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),aC=(e,t)=>mergeToken(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),ps=te("Form",(e,{rootPrefixCls:t})=>{let o=aC(e,t);return [Q8(o),J8(o),p$(o),m$(o,o.componentCls),m$(o,o.formItemCls),e7(o),t7(o),o7(o),zr(o),ec]},r7,{order:-1e3});var g$=[];function lC(e,t,o,r=0){return {key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:o}}var a7=({help:e,helpStatus:t,errors:o=g$,warnings:r=g$,className:n,fieldId:i,onVisibleChanged:a})=>{let{prefixCls:l}=ue.useContext(zl),s=`${l}-item-explain`,c=de(l),[p,d,m]=ps(l,c),f=ue.useMemo(()=>Or(l),[l]),u=Ga(o),g=Ga(r),y=ue.useMemo(()=>e!=null?[lC(e,"help",t)]:[...u.map((C,b)=>lC(C,"error","error",b)),...g.map((C,b)=>lC(C,"warning","warning",b))],[e,t,u,g]),S=ue.useMemo(()=>{let C={};return y.forEach(({key:b})=>{C[b]=(C[b]||0)+1;}),y.map((b,v)=>({...b,key:C[b.key]>1?`${b.key}-fallback-${v}`:b.key}))},[y]),h={};return i&&(h.id=`${i}_help`),p(ue.createElement(bk,{motionDeadline:f.motionDeadline,motionName:`${l}-show-help`,visible:!!S.length,onVisibleChanged:a},C=>{let{className:b,style:v}=C;return ue.createElement("div",{...h,className:ki(s,b,m,c,n,d),style:v,role:"alert"},ue.createElement(CSSMotionList,{keys:S,...Or(l),motionName:`${l}-show-help-item`,component:false},x=>{let{key:T,error:$,errorStatus:R,className:P,style:I}=x;return ue.createElement("div",{key:T,className:ki(P,{[`${s}-${R}`]:R}),style:I},$)}))}))},Rm=a7;var l7=["parentNode"],s7="form_item";function Va(e){return e===void 0||e===false?[]:Array.isArray(e)?e:[e]}function Im(e,t){if(!e.length)return;let o=e.join("_");return t?`${t}_${o}`:l7.includes(o)?`${s7}_${o}`:o}function wm(e,t,o,r,n,i){let a=r;return i!==void 0?a=i:o.validating?a="validating":e.length?a="error":t.length?a="warning":(o.touched||n&&o.validated)&&(a="success"),a}function y$(e){return Va(e).join("_")}function C$(e,t){let o=t.getFieldInstance(e),r=getDOM(o);if(r)return r;let n=Im(Va(e),t.__INTERNAL__.name);if(n)return document.getElementById(n)}function Rc(e){let[t]=useForm(),o=ue.useRef({}),r=ue.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:n=>i=>{let a=y$(n);i?o.current[a]=i:delete o.current[a];}},scrollToField:(n,i={})=>{let a=C$(n,r);a&&Ak(a,{scrollMode:"if-needed",block:"nearest",...i});},focusField:n=>{let i=C$(n,r);i&&i.focus?.();},getFieldInstance:n=>{let i=y$(n);return o.current[i]}},[e,t]);return [r]}var g7=(e,t)=>{let o=ue.useContext(Be),{getPrefixCls:r,direction:n,form:i}=ue.useContext(B),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:p=o,form:d,colon:m,labelAlign:f,labelWrap:u,labelCol:g,wrapperCol:y,hideRequiredMark:S,layout:h="horizontal",scrollToFirstError:C,requiredMark:b,onFinishFailed:v,name:x,style:T,feedbackIcons:$,variant:R,...P}=e,I=Te(c),M=ue.useContext(yp),E=ue.useMemo(()=>b!==void 0?b:S?false:i&&i.requiredMark!==void 0?i.requiredMark:true,[S,b,i]),w=m??i?.colon,N=r("form",a),A=de(N),[k,D,F]=ps(N,A),O=ki(N,`${N}-${h}`,{[`${N}-hide-required-mark`]:E===false,[`${N}-rtl`]:n==="rtl",[`${N}-${I}`]:I},F,A,D,i?.className,l,s),[L]=Rc(d),{__INTERNAL__:_}=L;_.name=x;let H=ue.useMemo(()=>({name:x,labelAlign:f,labelCol:g,labelWrap:u,wrapperCol:y,vertical:h==="vertical",colon:w,requiredMark:E,itemRef:_.itemRef,form:L,feedbackIcons:$}),[x,f,g,y,h,w,E,L,$]),z=ue.useRef(null);ue.useImperativeHandle(t,()=>({...L,nativeElement:z.current?.nativeElement}));let G=(q,j)=>{if(q){let K={block:"nearest"};typeof q=="object"&&(K={...K,...q}),L.scrollToField(j,K),K.focus&&L.focusField(j);}},W=q=>{if(v?.(q),q.errorFields.length){let j=q.errorFields[0].name;if(C!==void 0){G(C,j);return}i&&i.scrollToFirstError!==void 0&&G(i.scrollToFirstError,j);}};return k(ue.createElement(ed.Provider,{value:R},ue.createElement(Rl,{disabled:p},ue.createElement(In.Provider,{value:I},ue.createElement(Jp,{validateMessages:M},ue.createElement(so.Provider,{value:H},ue.createElement(f7,{id:x,...P,name:x,onFinishFailed:W,form:L,ref:z,style:{...i?.style,...T},className:O})))))))},y7=ue.forwardRef(g7);var S$=y7;function sC(e){if(typeof e=="function")return e;let t=kv(e);return t.length<=1?t[0]:t}var x$=()=>{let{status:e,errors:t=[],warnings:o=[]}=ue.useContext(ke);return {status:e,errors:t,warnings:o}};x$.Context=ke;var T$=x$;function cC(e){let[t,o]=ue.useState(e),r=ue.useRef(null),n=ue.useRef([]),i=ue.useRef(false);ue.useEffect(()=>(i.current=false,()=>{i.current=true,yS.cancel(r.current),r.current=null;}),[]);function a(l){i.current||(r.current===null&&(n.current=[],r.current=yS(()=>{r.current=null,o(s=>{let c=s;return n.current.forEach(p=>{c=p(c);}),c});})),n.current.push(l));}return [t,a]}function pC(){let{itemRef:e}=ue.useContext(so),t=ue.useRef({});function o(r,n){let i=n&&typeof n=="object"&&getNodeRef(n),a=r.join("_");return (t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=composeRef(e(r),i)),t.current.ref}return o}var b7=e=>{let{formItemCls:t}=e;return {"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},P$=No(["Form","item-item"],(e,{rootPrefixCls:t})=>{let o=aC(e,t);return [b7(o)]});var P7=24,$7=e=>{let{prefixCls:t,status:o,labelCol:r,wrapperCol:n,children:i,errors:a,warnings:l,_internalItemRender:s,extra:c,help:p,fieldId:d,marginBottom:m,onErrorVisibleChanged:f,label:u}=e,g=`${t}-item`,y=ue.useContext(so),S=ue.useMemo(()=>{let w={...n||y.wrapperCol||{}};return u===null&&!r&&!n&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{let k=A?[A]:[],D=get(y.labelCol,k),F=typeof D=="object"?D:{},O=get(w,k),L=typeof O=="object"?O:{};"span"in F&&!("offset"in L)&&F.span<P7&&(w=set(w,[...k,"offset"],F.span));}),w},[n,y]),h=ki(`${g}-control`,S.className),C=ue.useMemo(()=>{let{labelCol:w,wrapperCol:N,...A}=y;return A},[y]),b=ue.useRef(null),[v,x]=ue.useState(0);mh(()=>{c&&b.current?x(b.current.clientHeight):x(0);},[c]);let T=ue.createElement("div",{className:`${g}-control-input`},ue.createElement("div",{className:`${g}-control-input-content`},i)),$=ue.useMemo(()=>({prefixCls:t,status:o}),[t,o]),R=m!==null||a.length||l.length?ue.createElement(zl.Provider,{value:$},ue.createElement(Rm,{fieldId:d,errors:a,warnings:l,help:p,helpStatus:o,className:`${g}-explain-connected`,onVisibleChanged:f})):null,P={};d&&(P.id=`${d}_extra`);let I=c?ue.createElement("div",{...P,className:`${g}-extra`,ref:b},c):null,M=R||I?ue.createElement("div",{className:`${g}-additional`,style:m?{minHeight:m+v}:{}},R,I):null,E=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:T,errorList:R,extra:I}):ue.createElement(ue.Fragment,null,T,M);return ue.createElement(so.Provider,{value:C},ue.createElement(_n,{...S,className:h},E),ue.createElement(P$,{prefixCls:t}))},R$=$7;function I7(e){return e?typeof e=="object"&&!ue.isValidElement(e)?e:{title:e}:null}var w7=({prefixCls:e,label:t,htmlFor:o,labelCol:r,labelAlign:n,colon:i,required:a,requiredMark:l,tooltip:s,vertical:c})=>{let[p]=Ee("Form"),{labelAlign:d,labelCol:m,labelWrap:f,colon:u}=ue.useContext(so);if(!t)return null;let g=r||m||{},y=n||d,S=`${e}-item-label`,h=ki(S,y==="left"&&`${S}-left`,g.className,{[`${S}-wrap`]:!!f}),C=t,b=i===true||u!==false&&i!==false;b&&!c&&typeof t=="string"&&t.trim()&&(C=t.replace(/[:|:]\s*$/,""));let x=I7(s);if(x){let{icon:P=ue.createElement(R7,null),...I}=x,M=ue.createElement(nt,{...I},ue.cloneElement(P,{className:`${e}-item-tooltip`,title:"",onClick:E=>{E.preventDefault();},tabIndex:null}));C=ue.createElement(ue.Fragment,null,C,M);}let T=l==="optional",$=typeof l=="function";$?C=l(C,{required:!!a}):T&&!a&&(C=ue.createElement(ue.Fragment,null,C,ue.createElement("span",{className:`${e}-item-optional`,title:""},p?.optional||tt.Form?.optional)));let R=ki({[`${e}-item-required`]:a,[`${e}-item-required-mark-optional`]:T||$,[`${e}-item-no-colon`]:!b});return ue.createElement(_n,{...g,className:h},ue.createElement("label",{htmlFor:o,className:R,title:typeof t=="string"?t:""},C))},w$=w7;var D7={success:gk,warning:hk,error:yk,validating:Xw};function Ic({children:e,errors:t,warnings:o,hasFeedback:r,validateStatus:n,prefixCls:i,meta:a,noStyle:l}){let s=`${i}-item`,{feedbackIcons:c}=ue.useContext(so),p=wm(t,o,a,null,!!r,n),{isFormItemInput:d,status:m,hasFeedback:f,feedbackIcon:u}=ue.useContext(ke),g=ue.useMemo(()=>{let y;if(r){let h=r!==true&&r.icons||c,C=p&&h?.({status:p,errors:t,warnings:o})?.[p],b=p&&D7[p];y=C!==false&&b?ue.createElement("span",{className:ki(`${s}-feedback-icon`,`${s}-feedback-icon-${p}`)},C||ue.createElement(b,null)):null;}let S={status:p||"",errors:t,warnings:o,hasFeedback:!!r,feedbackIcon:y,isFormItemInput:true};return l&&(S.status=(p??m)||"",S.isFormItemInput=d,S.hasFeedback=!!(r??f),S.feedbackIcon=r!==void 0?S.feedbackIcon:u),S},[p,r,l,d,m]);return ue.createElement(ke.Provider,{value:g},e)}function dC(e){let{prefixCls:t,className:o,rootClassName:r,style:n,help:i,errors:a,warnings:l,validateStatus:s,meta:c,hasFeedback:p,hidden:d,children:m,fieldId:f,required:u,isRequired:g,onSubItemMetaChange:y,layout:S,...h}=e,C=`${t}-item`,{requiredMark:b,vertical:v}=ue.useContext(so),x=v||S==="vertical",T=ue.useRef(null),$=Ga(a),R=Ga(l),P=i!=null,I=!!(P||a.length||l.length),M=!!T.current&&I4(T.current),[E,w]=ue.useState(null);mh(()=>{if(I&&T.current){let F=getComputedStyle(T.current);w(parseInt(F.marginBottom,10));}},[I,M]);let N=F=>{F||w(null);},k=((F=false)=>{let O=F?$:c.errors,L=F?R:c.warnings;return wm(O,L,c,"",!!p,s)})(),D=ki(C,o,r,{[`${C}-with-help`]:P||$.length||R.length,[`${C}-has-feedback`]:k&&p,[`${C}-has-success`]:k==="success",[`${C}-has-warning`]:k==="warning",[`${C}-has-error`]:k==="error",[`${C}-is-validating`]:k==="validating",[`${C}-hidden`]:d,[`${C}-${S}`]:S});return ue.createElement("div",{className:D,style:n,ref:T},ue.createElement(Fa,{className:`${C}-row`,...fx(h,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])},ue.createElement(w$,{htmlFor:f,...e,requiredMark:b,required:u??g,prefixCls:t,vertical:x}),ue.createElement(R$,{...e,...c,errors:$,warnings:R,prefixCls:t,status:k,help:i,marginBottom:E,onErrorVisibleChanged:N},ue.createElement(Qp.Provider,{value:y},ue.createElement(Ic,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:p,validateStatus:k},m)))),!!E&&ue.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-E}}))}var j7="__SPLIT__";function U7(e,t){let o=Object.keys(e),r=Object.keys(t);return o.length===r.length&&o.every(n=>{let i=e[n],a=t[n];return i===a||typeof i=="function"||typeof a=="function"})}var q7=ue.memo(({children:e})=>e,(e,t)=>U7(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((o,r)=>o===t.childProps[r]));function N$(){return {errors:[],warnings:[],touched:false,validating:false,name:[],validated:false}}function X7(e){let{name:t,noStyle:o,className:r,dependencies:n,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:p,messageVariables:d,trigger:m="onChange",validateTrigger:f,hidden:u,help:g,layout:y}=e,{getPrefixCls:S}=ue.useContext(B),{name:h}=ue.useContext(so),C=sC(s),b=typeof C=="function",v=ue.useContext(Qp),{validateTrigger:x}=ue.useContext(FieldContext),T=f!==void 0?f:x,$=t!=null,R=S("form",i),P=de(R),[I,M,E]=ps(R,P),w=ht(),N=ue.useContext(ListContext),A=ue.useRef(null),[k,D]=cC({}),[F,O]=XB(()=>N$()),L=j=>{let K=N?.getKey(j.name);if(O(j.destroy?N$():j,true),o&&g!==false&&v){let Q=j.name;if(j.destroy)Q=A.current||Q;else if(K!==void 0){let[V,U]=K;Q=[V,...U],A.current=Q;}v(j,Q);}},_=(j,K)=>{D(Q=>{let V={...Q},Y=[...j.name.slice(0,-1),...K].join(j7);return j.destroy?delete V[Y]:V[Y]=j,V});},[H,z]=ue.useMemo(()=>{let j=[...F.errors],K=[...F.warnings];return Object.values(k).forEach(Q=>{j.push(...Q.errors||[]),K.push(...Q.warnings||[]);}),[j,K]},[k,F.errors,F.warnings]),G=pC();function W(j,K,Q){return o&&!u?ue.createElement(Ic,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:H,warnings:z,noStyle:true},j):ue.createElement(dC,{key:"row",...e,className:ki(r,E,P,M),prefixCls:R,fieldId:K,isRequired:Q,errors:H,warnings:z,meta:F,onSubItemMetaChange:_,layout:y},j)}if(!$&&!b&&!n)return I(W(C));let q={};return typeof p=="string"?q.label=p:t&&(q.label=String(t)),d&&(q={...q,...d}),I(ue.createElement(Field,{...e,messageVariables:q,trigger:m,validateTrigger:T,onMetaChange:L},(j,K,Q)=>{let V=Va(t).length&&K?K.name:[],U=Im(V,h),Y=c!==void 0?c:!!l?.some(ee=>{if(ee&&typeof ee=="object"&&ee.required&&!ee.warningOnly)return true;if(typeof ee=="function"){let X=ee(Q);return X?.required&&!X?.warningOnly}return false}),J={...j},ie=null;if(Array.isArray(C)&&$)ie=C;else if(b&&(!(a||n)||$));else if(n&&!b&&!$);else if(ue.isValidElement(C)){w(C.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");let ee={...C.props,...J};if(ee.id||(ee.id=U),g||H.length>0||z.length>0||e.extra){let re=[];(g||H.length>0)&&re.push(`${U}_help`),e.extra&&re.push(`${U}_extra`),ee["aria-describedby"]=re.join(" ");}H.length>0&&(ee["aria-invalid"]="true"),Y&&(ee["aria-required"]="true"),supportRef(C)&&(ee.ref=G(V,C)),new Set([...Va(m),...Va(T)]).forEach(re=>{ee[re]=(...ae)=>{J[re]?.(...ae),C.props[re]?.(...ae);};});let Z=[ee["aria-required"],ee["aria-invalid"],ee["aria-describedby"]];ie=ue.createElement(q7,{control:J,update:C,childProps:Z},Pe(C,ee));}else b&&(a||n)&&!$?ie=C(Q):(w(!V.length||!!o,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),ie=C);return W(ie,U,Y)}))}var M$=X7;M$.useStatus=T$;var E$=M$;var Y7=({prefixCls:e,children:t,...o})=>{let{getPrefixCls:r}=ue.useContext(B),n=r("form",e),i=ue.useMemo(()=>({prefixCls:n,status:"error"}),[n]);return ue.createElement(List,{...o},(a,l,s)=>ue.createElement(zl.Provider,{value:i},t(a.map(c=>({...c,fieldKey:c.key})),l,{errors:s.errors,warnings:s.warnings})))},k$=Y7;function mC(){let{form:e}=ue.useContext(so);return e}var Kn=S$;Kn.Item=E$;Kn.List=k$;Kn.ErrorList=Rm;Kn.useForm=Rc;Kn.useFormInstance=mC;Kn.useWatch=useWatch;Kn.Provider=Jp;Kn.create=()=>{};var ds=Kn;var uC=e=>({position:e||"absolute",inset:0}),Z7=e=>{let{iconCls:t,motionDurationSlow:o,paddingXXS:r,marginXXS:n,prefixCls:i,colorTextLightSolid:a}=e;return {position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new TinyColor("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${o}`,[`.${i}-mask-info`]:{...Oe,padding:`0 ${unit(r)}`,[t]:{marginInlineEnd:n,svg:{verticalAlign:"baseline"}}}}},Q7=e=>{let{previewCls:t,modalMaskBg:o,paddingSM:r,marginXL:n,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:c,iconCls:p,colorTextLightSolid:d}=e,m=new TinyColor(o).setAlpha(.1),f=m.clone().setAlpha(.2);return {[`${t}-footer`]:{position:"fixed",bottom:n,left:{_skip_check_:true,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:n,right:{_skip_check_:true,value:n},display:"flex",color:d,backgroundColor:m.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:f.toRgbString()},[`& > ${p}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${unit(a)}`,backgroundColor:m.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${p}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${p}`]:{fontSize:e.previewOperationSize}}}}},J7=e=>{let{modalMaskBg:t,iconCls:o,previewOperationColorDisabled:r,previewCls:n,zIndexPopup:i,motionDurationSlow:a}=e,l=new TinyColor(t).setAlpha(.1),s=l.clone().setAlpha(.2);return {[`${n}-switch-left, ${n}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${o}`]:{cursor:"not-allowed"}}},[`> ${o}`]:{fontSize:e.previewOperationSize}},[`${n}-switch-left`]:{insetInlineStart:e.marginSM},[`${n}-switch-right`]:{insetInlineEnd:e.marginSM}}},e9=e=>{let{motionEaseOut:t,previewCls:o,motionDurationSlow:r,componentCls:n}=e;return [{[`${n}-preview-root`]:{[o]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${o}-body`]:{...uC(),overflow:"hidden"},[`${o}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":{...uC(),transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}}},[`${o}-moving`]:{[`${o}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${n}-preview-root`]:{[`${o}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${n}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[Q7(e),J7(e)]}]},t9=e=>{let{componentCls:t}=e;return {[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:{...Z7(e)},[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:{...uC()}}}},o9=e=>{let{previewCls:t}=e;return {[`${t}-root`]:er(e,"zoom"),"&":da(e,true)}},r9=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new TinyColor(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new TinyColor(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new TinyColor(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),Em=te("Image",e=>{let t=`${e.componentCls}-preview`,o=mergeToken(e,{previewCls:t,modalMaskBg:new TinyColor("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return [t9(o),e9(o),yg(mergeToken(o,{componentCls:t})),o9(o)]},r9);var fC={rotateLeft:ue.createElement(l9,null),rotateRight:ue.createElement(s9,null),zoomIn:ue.createElement(c9,null),zoomOut:ue.createElement(p9,null),close:ue.createElement(Ck,null),left:ue.createElement(sv,null),right:ue.createElement(cv,null),flipX:ue.createElement(A$,null),flipY:ue.createElement(A$,{rotate:90})},u9=({previewPrefixCls:e,preview:t,...o})=>{let{getPrefixCls:r}=ue.useContext(B),n=r("image",e),i=`${n}-preview`,a=r(),l=de(n),[s,c,p]=Em(n,l),[d]=rt("ImagePreview",typeof t=="object"?t.zIndex:void 0),m=ue.useMemo(()=>{if(t===false)return t;let f=typeof t=="object"?t:{},u=ki(c,p,l,f.rootClassName??"");return {...f,transitionName:Ze(a,"zoom",f.transitionName),maskTransitionName:Ze(a,"fade",f.maskTransitionName),rootClassName:u,zIndex:d}},[t]);return s(ue.createElement(m9.PreviewGroup,{preview:m,previewPrefixCls:i,icons:fC,...o}))},F$=u9;var O$=e=>{let{prefixCls:t,preview:o,className:r,rootClassName:n,style:i,...a}=e,{getPrefixCls:l,locale:s=tt,getPopupContainer:c,image:p}=ue.useContext(B),d=l("image",t),m=l(),f=s.Image||tt.Image,u=de(d),[g,y,S]=Em(d,u),h=ki(n,y,S,u),C=ki(r,y,p?.className),[b]=rt("ImagePreview",typeof o=="object"?o.zIndex:void 0),v=ue.useMemo(()=>{if(o===false)return o;let T=typeof o=="object"?o:{},{getContainer:$,closeIcon:R,rootClassName:P,...I}=T;return {mask:ue.createElement("div",{className:`${d}-mask-info`},ue.createElement(C6,null),f?.preview),icons:fC,...I,rootClassName:ki(h,P),getContainer:$??c,transitionName:Ze(m,"zoom",T.transitionName),maskTransitionName:Ze(m,"fade",T.maskTransitionName),zIndex:b,closeIcon:R??p?.preview?.closeIcon}},[o,f,p?.preview?.closeIcon]),x={...p?.style,...i};return g(ue.createElement(m9,{prefixCls:d,preview:v,rootClassName:h,className:C,style:x,...a}))};O$.PreviewGroup=F$;var y9=O$;function yC(e,t,o){return typeof o=="boolean"?o:e.length?true:kv(t).some(n=>n.type===kd)}function km({suffixCls:e,tagName:t,displayName:o}){return r=>ue.forwardRef((i,a)=>ue.createElement(r,{ref:a,suffixCls:e,tagName:t,...i}))}var CC=ue.forwardRef((e,t)=>{let{prefixCls:o,suffixCls:r,className:n,tagName:i,...a}=e,{getPrefixCls:l}=ue.useContext(B),s=l("layout",o),[c,p,d]=Zg(s),m=r?`${s}-${r}`:s;return c(ue.createElement(i,{className:ki(o||m,n,p,d),ref:t,...a}))}),S9=ue.forwardRef((e,t)=>{let{direction:o}=ue.useContext(B),[r,n]=ue.useState([]),{prefixCls:i,className:a,rootClassName:l,children:s,hasSider:c,tagName:p,style:d,...m}=e,f=fx(m,["suffixCls"]),{getPrefixCls:u,layout:g}=ue.useContext(B),y=u("layout",i),S=yC(r,s,c),[h,C,b]=Zg(y),v=ki(y,{[`${y}-has-sider`]:S,[`${y}-rtl`]:o==="rtl"},g?.className,a,l,C,b),x=ue.useMemo(()=>({siderHook:{addSider:T=>{n($=>[...$,T]);},removeSider:T=>{n($=>$.filter(R=>R!==T));}}}),[]);return h(ue.createElement(Ed.Provider,{value:x},ue.createElement(p,{ref:t,className:v,style:{...g?.style,...d},...f},s)))}),b9=km({tagName:"div",displayName:"Layout"})(S9),L$=km({suffixCls:"header",tagName:"header",displayName:"Header"})(CC),H$=km({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(CC),W$=km({suffixCls:"content",tagName:"main",displayName:"Content"})(CC);var G$=b9;var ms=G$;ms.Header=L$;ms.Footer=H$;ms.Content=W$;ms.Sider=kd;ms._InternalSiderContext=Ta;var x9=ms;var T9=(...e)=>{let t={...e[0]};for(let o=1;o<e.length;o++){let r=e[o];r&&Object.keys(r).forEach(n=>{let i=r[n];i!==void 0&&(t[n]=i);});}return t},us=T9;var v9=e=>{let{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},P9=e=>{let{componentCls:t}=e;return {[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:unit(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
234
|
+
${o}-col-xl-24${t}-label`]:on(e),[`@media (max-width: ${unit(e.screenXSMax)})`]:[TR(e),{[t]:{[`${o}-col-xs-24${t}-label`]:on(e)}}],[`@media (max-width: ${unit(e.screenSMMax)})`]:{[t]:{[`${o}-col-sm-24${t}-label`]:on(e)}},[`@media (max-width: ${unit(e.screenMDMax)})`]:{[t]:{[`${o}-col-md-24${t}-label`]:on(e)}},[`@media (max-width: ${unit(e.screenLGMax)})`]:{[t]:{[`${o}-col-lg-24${t}-label`]:on(e)}}}},U9=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),JC=(e,t)=>mergeToken(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Bs=oe("Form",(e,{rootPrefixCls:t})=>{let o=JC(e,t);return [W9(o),G9(o),SR(o),vR(o,o.componentCls),vR(o,o.formItemCls),V9(o),j9(o),_9(o),qr(o),Rc]},U9,{order:-1e3});var PR=[];function eh(e,t,o,r=0){return {key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:o}}var K9=({help:e,helpStatus:t,errors:o=PR,warnings:r=PR,className:n,fieldId:i,onVisibleChanged:a})=>{let{prefixCls:l}=ve.useContext(ss),s=`${l}-item-explain`,c=$e(l),[p,m,d]=Bs(l,c),f=ve.useMemo(()=>Ur(l),[l]),u=il(o),g=il(r),y=ve.useMemo(()=>e!=null?[eh(e,"help",t)]:[...u.map((C,S)=>eh(C,"error","error",S)),...g.map((C,S)=>eh(C,"warning","warning",S))],[e,t,u,g]),h=ve.useMemo(()=>{let C={};return y.forEach(({key:S})=>{C[S]=(C[S]||0)+1;}),y.map((S,v)=>({...S,key:C[S.key]>1?`${S.key}-fallback-${v}`:S.key}))},[y]),b={};return i&&(b.id=`${i}_help`),p(ve.createElement(oB,{motionDeadline:f.motionDeadline,motionName:`${l}-show-help`,visible:!!h.length,onVisibleChanged:a},C=>{let{className:S,style:v}=C;return ve.createElement("div",{...b,className:Xi(s,S,d,c,n,m),style:v,role:"alert"},ve.createElement(CSSMotionList,{keys:h,...Ur(l),motionName:`${l}-show-help-item`,component:false},x=>{let{key:$,error:R,errorStatus:T,className:P,style:N}=x;return ve.createElement("div",{key:$,className:Xi(P,{[`${s}-${T}`]:T}),style:N},R)}))}))},au=K9;var Y9=["parentNode"],Z9="form_item";function al(e){return e===void 0||e===false?[]:Array.isArray(e)?e:[e]}function lu(e,t){if(!e.length)return;let o=e.join("_");return t?`${t}_${o}`:Y9.includes(o)?`${Z9}_${o}`:o}function su(e,t,o,r,n,i){let a=r;return i!==void 0?a=i:o.validating?a="validating":e.length?a="error":t.length?a="warning":(o.touched||n&&o.validated)&&(a="success"),a}function RR(e){return al(e).join("_")}function IR(e,t){let o=t.getFieldInstance(e),r=getDOM(o);if(r)return r;let n=lu(al(e),t.__INTERNAL__.name);if(n)return document.getElementById(n)}function Qc(e){let[t]=useForm(),o=ve.useRef({}),r=ve.useMemo(()=>e??{...t,__INTERNAL__:{itemRef:n=>i=>{let a=RR(n);i?o.current[a]=i:delete o.current[a];}},scrollToField:(n,i={})=>{let a=IR(n,r);a&&CB(a,{scrollMode:"if-needed",block:"nearest",...i});},focusField:n=>{let i=IR(n,r);i&&i.focus?.();},getFieldInstance:n=>{let i=RR(n);return o.current[i]}},[e,t]);return [r]}var nW=(e,t)=>{let o=ve.useContext(We),{getPrefixCls:r,direction:n,form:i}=ve.useContext(O),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:p=o,form:m,colon:d,labelAlign:f,labelWrap:u,labelCol:g,wrapperCol:y,hideRequiredMark:h,layout:b="horizontal",scrollToFirstError:C,requiredMark:S,onFinishFailed:v,name:x,style:$,feedbackIcons:R,variant:T,...P}=e,N=ke(c),M=ve.useContext(Yp),E=ve.useMemo(()=>S!==void 0?S:h?false:i&&i.requiredMark!==void 0?i.requiredMark:true,[h,S,i]),I=d??i?.colon,w=r("form",a),B=$e(w),[k,D,F]=Bs(w,B),A=Xi(w,`${w}-${b}`,{[`${w}-hide-required-mark`]:E===false,[`${w}-rtl`]:n==="rtl",[`${w}-${N}`]:N},F,B,D,i?.className,l,s),[L]=Qc(m),{__INTERNAL__:q}=L;q.name=x;let V=ve.useMemo(()=>({name:x,labelAlign:f,labelCol:g,labelWrap:u,wrapperCol:y,vertical:b==="vertical",colon:I,requiredMark:E,itemRef:q.itemRef,form:L,feedbackIcons:R}),[x,f,g,y,b,I,E,L,R]),z=ve.useRef(null);ve.useImperativeHandle(t,()=>({...L,nativeElement:z.current?.nativeElement}));let G=(Z,K)=>{if(Z){let Q={block:"nearest"};typeof Z=="object"&&(Q={...Q,...Z}),L.scrollToField(K,Q),Q.focus&&L.focusField(K);}},_=Z=>{if(v?.(Z),Z.errorFields.length){let K=Z.errorFields[0].name;if(C!==void 0){G(C,K);return}i&&i.scrollToFirstError!==void 0&&G(i.scrollToFirstError,K);}};return k(ve.createElement(Bd.Provider,{value:T},ve.createElement(Yl,{disabled:p},ve.createElement(Hn.Provider,{value:N},ve.createElement(Dd,{validateMessages:M},ve.createElement(Co.Provider,{value:V},ve.createElement(rW,{id:x,...P,name:x,onFinishFailed:_,form:L,ref:z,style:{...i?.style,...$},className:A})))))))},iW=ve.forwardRef(nW);var NR=iW;function th(e){if(typeof e=="function")return e;let t=H0(e);return t.length<=1?t[0]:t}var ER=()=>{let{status:e,errors:t=[],warnings:o=[]}=ve.useContext(Le);return {status:e,errors:t,warnings:o}};ER.Context=Le;var kR=ER;function oh(e){let[t,o]=ve.useState(e),r=ve.useRef(null),n=ve.useRef([]),i=ve.useRef(false);ve.useEffect(()=>(i.current=false,()=>{i.current=true,$S.cancel(r.current),r.current=null;}),[]);function a(l){i.current||(r.current===null&&(n.current=[],r.current=$S(()=>{r.current=null,o(s=>{let c=s;return n.current.forEach(p=>{c=p(c);}),c});})),n.current.push(l));}return [t,a]}function rh(){let{itemRef:e}=ve.useContext(Co),t=ve.useRef({});function o(r,n){let i=n&&typeof n=="object"&&getNodeRef(n),a=r.join("_");return (t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=composeRef(e(r),i)),t.current.ref}return o}var cW=e=>{let{formItemCls:t}=e;return {"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},BR=zo(["Form","item-item"],(e,{rootPrefixCls:t})=>{let o=JC(e,t);return [cW(o)]});var uW=24,fW=e=>{let{prefixCls:t,status:o,labelCol:r,wrapperCol:n,children:i,errors:a,warnings:l,_internalItemRender:s,extra:c,help:p,fieldId:m,marginBottom:d,onErrorVisibleChanged:f,label:u}=e,g=`${t}-item`,y=ve.useContext(Co),h=ve.useMemo(()=>{let I={...n||y.wrapperCol||{}};return u===null&&!r&&!n&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(B=>{let k=B?[B]:[],D=get(y.labelCol,k),F=typeof D=="object"?D:{},A=get(I,k),L=typeof A=="object"?A:{};"span"in F&&!("offset"in L)&&F.span<uW&&(I=set(I,[...k,"offset"],F.span));}),I},[n,y]),b=Xi(`${g}-control`,h.className),C=ve.useMemo(()=>{let{labelCol:I,wrapperCol:w,...B}=y;return B},[y]),S=ve.useRef(null),[v,x]=ve.useState(0);ib(()=>{c&&S.current?x(S.current.clientHeight):x(0);},[c]);let $=ve.createElement("div",{className:`${g}-control-input`},ve.createElement("div",{className:`${g}-control-input-content`},i)),R=ve.useMemo(()=>({prefixCls:t,status:o}),[t,o]),T=d!==null||a.length||l.length?ve.createElement(ss.Provider,{value:R},ve.createElement(au,{fieldId:m,errors:a,warnings:l,help:p,helpStatus:o,className:`${g}-explain-connected`,onVisibleChanged:f})):null,P={};m&&(P.id=`${m}_extra`);let N=c?ve.createElement("div",{...P,className:`${g}-extra`,ref:S},c):null,M=T||N?ve.createElement("div",{className:`${g}-additional`,style:d?{minHeight:d+v}:{}},T,N):null,E=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:$,errorList:T,extra:N}):ve.createElement(ve.Fragment,null,$,M);return ve.createElement(Co.Provider,{value:C},ve.createElement(ii,{...h,className:b},E),ve.createElement(BR,{prefixCls:t}))},FR=fW;function yW(e){return e?typeof e=="object"&&!ve.isValidElement(e)?e:{title:e}:null}var CW=({prefixCls:e,label:t,htmlFor:o,labelCol:r,labelAlign:n,colon:i,required:a,requiredMark:l,tooltip:s,vertical:c})=>{let[p]=Ae("Form"),{labelAlign:m,labelCol:d,labelWrap:f,colon:u}=ve.useContext(Co);if(!t)return null;let g=r||d||{},y=n||m,h=`${e}-item-label`,b=Xi(h,y==="left"&&`${h}-left`,g.className,{[`${h}-wrap`]:!!f}),C=t,S=i===true||u!==false&&i!==false;S&&!c&&typeof t=="string"&&t.trim()&&(C=t.replace(/[:|:]\s*$/,""));let x=yW(s);if(x){let{icon:P=ve.createElement(gW,null),...N}=x,M=ve.createElement(ot,{...N},ve.cloneElement(P,{className:`${e}-item-tooltip`,title:"",onClick:E=>{E.preventDefault();},tabIndex:null}));C=ve.createElement(ve.Fragment,null,C,M);}let $=l==="optional",R=typeof l=="function";R?C=l(C,{required:!!a}):$&&!a&&(C=ve.createElement(ve.Fragment,null,C,ve.createElement("span",{className:`${e}-item-optional`,title:""},p?.optional||ct.Form?.optional)));let T=Xi({[`${e}-item-required`]:a,[`${e}-item-required-mark-optional`]:$||R,[`${e}-item-no-colon`]:!S});return ve.createElement(ii,{...g,className:b},ve.createElement("label",{htmlFor:o,className:T,title:typeof t=="string"?t:""},C))},AR=CW;var TW={success:ZD,warning:eB,error:QD,validating:iM};function Jc({children:e,errors:t,warnings:o,hasFeedback:r,validateStatus:n,prefixCls:i,meta:a,noStyle:l}){let s=`${i}-item`,{feedbackIcons:c}=ve.useContext(Co),p=su(t,o,a,null,!!r,n),{isFormItemInput:m,status:d,hasFeedback:f,feedbackIcon:u}=ve.useContext(Le),g=ve.useMemo(()=>{let y;if(r){let b=r!==true&&r.icons||c,C=p&&b?.({status:p,errors:t,warnings:o})?.[p],S=p&&TW[p];y=C!==false&&S?ve.createElement("span",{className:Xi(`${s}-feedback-icon`,`${s}-feedback-icon-${p}`)},C||ve.createElement(S,null)):null;}let h={status:p||"",errors:t,warnings:o,hasFeedback:!!r,feedbackIcon:y,isFormItemInput:true};return l&&(h.status=(p??d)||"",h.isFormItemInput=m,h.hasFeedback=!!(r??f),h.feedbackIcon=r!==void 0?h.feedbackIcon:u),h},[p,r,l,m,d]);return ve.createElement(Le.Provider,{value:g},e)}function nh(e){let{prefixCls:t,className:o,rootClassName:r,style:n,help:i,errors:a,warnings:l,validateStatus:s,meta:c,hasFeedback:p,hidden:m,children:d,fieldId:f,required:u,isRequired:g,onSubItemMetaChange:y,layout:h,...b}=e,C=`${t}-item`,{requiredMark:S,vertical:v}=ve.useContext(Co),x=v||h==="vertical",$=ve.useRef(null),R=il(a),T=il(l),P=i!=null,N=!!(P||a.length||l.length),M=!!$.current&&c4($.current),[E,I]=ve.useState(null);ib(()=>{if(N&&$.current){let F=getComputedStyle($.current);I(parseInt(F.marginBottom,10));}},[N,M]);let w=F=>{F||I(null);},k=((F=false)=>{let A=F?R:c.errors,L=F?T:c.warnings;return su(A,L,c,"",!!p,s)})(),D=Xi(C,o,r,{[`${C}-with-help`]:P||R.length||T.length,[`${C}-has-feedback`]:k&&p,[`${C}-has-success`]:k==="success",[`${C}-has-warning`]:k==="warning",[`${C}-has-error`]:k==="error",[`${C}-is-validating`]:k==="validating",[`${C}-hidden`]:m,[`${C}-${h}`]:h});return ve.createElement("div",{className:D,style:n,ref:$},ve.createElement(Ja,{className:`${C}-row`,...vv(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])},ve.createElement(AR,{htmlFor:f,...e,requiredMark:S,required:u??g,prefixCls:t,vertical:x}),ve.createElement(FR,{...e,...c,errors:R,warnings:T,prefixCls:t,status:k,help:i,marginBottom:E,onErrorVisibleChanged:w},ve.createElement(kd.Provider,{value:y},ve.createElement(Jc,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:p,validateStatus:k},d)))),!!E&&ve.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-E}}))}var BW="__SPLIT__";function OW(e,t){let o=Object.keys(e),r=Object.keys(t);return o.length===r.length&&o.every(n=>{let i=e[n],a=t[n];return i===a||typeof i=="function"||typeof a=="function"})}var FW=ve.memo(({children:e})=>e,(e,t)=>OW(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((o,r)=>o===t.childProps[r]));function LR(){return {errors:[],warnings:[],touched:false,validating:false,name:[],validated:false}}function zW(e){let{name:t,noStyle:o,className:r,dependencies:n,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:p,messageVariables:m,trigger:d="onChange",validateTrigger:f,hidden:u,help:g,layout:y}=e,{getPrefixCls:h}=ve.useContext(O),{name:b}=ve.useContext(Co),C=th(s),S=typeof C=="function",v=ve.useContext(kd),{validateTrigger:x}=ve.useContext(FieldContext),$=f!==void 0?f:x,R=t!=null,T=h("form",i),P=$e(T),[N,M,E]=Bs(T,P),I=Tt(),w=ve.useContext(ListContext),B=ve.useRef(null),[k,D]=oh({}),[F,A]=MO(()=>LR()),L=K=>{let Q=w?.getKey(K.name);if(A(K.destroy?LR():K,true),o&&g!==false&&v){let ee=K.name;if(K.destroy)ee=B.current||ee;else if(Q!==void 0){let[j,Y]=Q;ee=[j,...Y],B.current=ee;}v(K,ee);}},q=(K,Q)=>{D(ee=>{let j={...ee},J=[...K.name.slice(0,-1),...Q].join(BW);return K.destroy?delete j[J]:j[J]=K,j});},[V,z]=ve.useMemo(()=>{let K=[...F.errors],Q=[...F.warnings];return Object.values(k).forEach(ee=>{K.push(...ee.errors||[]),Q.push(...ee.warnings||[]);}),[K,Q]},[k,F.errors,F.warnings]),G=rh();function _(K,Q,ee){return o&&!u?ve.createElement(Jc,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:V,warnings:z,noStyle:true},K):ve.createElement(nh,{key:"row",...e,className:Xi(r,E,P,M),prefixCls:T,fieldId:Q,isRequired:ee,errors:V,warnings:z,meta:F,onSubItemMetaChange:q,layout:y},K)}if(!R&&!S&&!n)return N(_(C));let Z={};return typeof p=="string"?Z.label=p:t&&(Z.label=String(t)),m&&(Z={...Z,...m}),N(ve.createElement(Field,{...e,messageVariables:Z,trigger:d,validateTrigger:$,onMetaChange:L},(K,Q,ee)=>{let j=al(t).length&&Q?Q.name:[],Y=lu(j,b),J=c!==void 0?c:!!l?.some(W=>{if(W&&typeof W=="object"&&W.required&&!W.warningOnly)return true;if(typeof W=="function"){let H=W(ee);return H?.required&&!H?.warningOnly}return false}),te={...K},ue=null;if(Array.isArray(C)&&R)ue=C;else if(S&&(!(a||n)||R));else if(n&&!S&&!R);else if(ve.isValidElement(C)){I(C.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");let W={...C.props,...te};if(W.id||(W.id=Y),g||V.length>0||z.length>0||e.extra){let re=[];(g||V.length>0)&&re.push(`${Y}_help`),e.extra&&re.push(`${Y}_extra`),W["aria-describedby"]=re.join(" ");}V.length>0&&(W["aria-invalid"]="true"),J&&(W["aria-required"]="true"),supportRef(C)&&(W.ref=G(j,C)),new Set([...al(d),...al($)]).forEach(re=>{W[re]=(...ce)=>{te[re]?.(...ce),C.props[re]?.(...ce);};});let X=[W["aria-required"],W["aria-invalid"],W["aria-describedby"]];ue=ve.createElement(FW,{control:te,update:C,childProps:X},Oe(C,W));}else S&&(a||n)&&!R?ue=C(ee):(I(!j.length||!!o,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),ue=C);return _(ue,Y,J)}))}var HR=zW;HR.useStatus=kR;var WR=HR;var LW=({prefixCls:e,children:t,...o})=>{let{getPrefixCls:r}=ve.useContext(O),n=r("form",e),i=ve.useMemo(()=>({prefixCls:n,status:"error"}),[n]);return ve.createElement(List,{...o},(a,l,s)=>ve.createElement(ss.Provider,{value:i},t(a.map(c=>({...c,fieldKey:c.key})),l,{errors:s.errors,warnings:s.warnings})))},GR=LW;function ih(){let{form:e}=ve.useContext(Co);return e}var di=NR;di.Item=WR;di.List=GR;di.ErrorList=au;di.useForm=Qc;di.useFormInstance=ih;di.useWatch=useWatch;di.Provider=Dd;di.create=()=>{};var Os=di;var ah=e=>({position:e||"absolute",inset:0}),HW=e=>{let{iconCls:t,motionDurationSlow:o,paddingXXS:r,marginXXS:n,prefixCls:i,colorTextLightSolid:a}=e;return {position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new TinyColor("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${o}`,[`.${i}-mask-info`]:{...qe,padding:`0 ${unit(r)}`,[t]:{marginInlineEnd:n,svg:{verticalAlign:"baseline"}}}}},WW=e=>{let{previewCls:t,modalMaskBg:o,paddingSM:r,marginXL:n,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:c,iconCls:p,colorTextLightSolid:m}=e,d=new TinyColor(o).setAlpha(.1),f=d.clone().setAlpha(.2);return {[`${t}-footer`]:{position:"fixed",bottom:n,left:{_skip_check_:true,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:n,right:{_skip_check_:true,value:n},display:"flex",color:m,backgroundColor:d.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:f.toRgbString()},[`& > ${p}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${unit(a)}`,backgroundColor:d.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${p}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${p}`]:{fontSize:e.previewOperationSize}}}}},GW=e=>{let{modalMaskBg:t,iconCls:o,previewOperationColorDisabled:r,previewCls:n,zIndexPopup:i,motionDurationSlow:a}=e,l=new TinyColor(t).setAlpha(.1),s=l.clone().setAlpha(.2);return {[`${n}-switch-left, ${n}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${o}`]:{cursor:"not-allowed"}}},[`> ${o}`]:{fontSize:e.previewOperationSize}},[`${n}-switch-left`]:{insetInlineStart:e.marginSM},[`${n}-switch-right`]:{insetInlineEnd:e.marginSM}}},VW=e=>{let{motionEaseOut:t,previewCls:o,motionDurationSlow:r,componentCls:n}=e;return [{[`${n}-preview-root`]:{[o]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${o}-body`]:{...ah(),overflow:"hidden"},[`${o}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":{...ah(),transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}}},[`${o}-moving`]:{[`${o}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${n}-preview-root`]:{[`${o}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${n}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[WW(e),GW(e)]}]},jW=e=>{let{componentCls:t}=e;return {[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:{...HW(e)},[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:{...ah()}}}},_W=e=>{let{previewCls:t}=e;return {[`${t}-root`]:sr(e,"zoom"),"&":Na(e,true)}},UW=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new TinyColor(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new TinyColor(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new TinyColor(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),du=oe("Image",e=>{let t=`${e.componentCls}-preview`,o=mergeToken(e,{previewCls:t,modalMaskBg:new TinyColor("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return [jW(o),VW(o),sy(mergeToken(o,{componentCls:t})),_W(o)]},UW);var lh={rotateLeft:ve.createElement(YW,null),rotateRight:ve.createElement(ZW,null),zoomIn:ve.createElement(QW,null),zoomOut:ve.createElement(JW,null),close:ve.createElement(JD,null),left:ve.createElement(y0,null),right:ve.createElement(C0,null),flipX:ve.createElement(_R,null),flipY:ve.createElement(_R,{rotate:90})},oG=({previewPrefixCls:e,preview:t,...o})=>{let{getPrefixCls:r}=ve.useContext(O),n=r("image",e),i=`${n}-preview`,a=r(),l=$e(n),[s,c,p]=du(n,l),[m]=dt("ImagePreview",typeof t=="object"?t.zIndex:void 0),d=ve.useMemo(()=>{if(t===false)return t;let f=typeof t=="object"?t:{},u=Xi(c,p,l,f.rootClassName??"");return {...f,transitionName:it(a,"zoom",f.transitionName),maskTransitionName:it(a,"fade",f.maskTransitionName),rootClassName:u,zIndex:m}},[t]);return s(ve.createElement(tG.PreviewGroup,{preview:d,previewPrefixCls:i,icons:lh,...o}))},UR=oG;var qR=e=>{let{prefixCls:t,preview:o,className:r,rootClassName:n,style:i,...a}=e,{getPrefixCls:l,locale:s=ct,getPopupContainer:c,image:p}=ve.useContext(O),m=l("image",t),d=l(),f=s.Image||ct.Image,u=$e(m),[g,y,h]=du(m,u),b=Xi(n,y,h,u),C=Xi(r,y,p?.className),[S]=dt("ImagePreview",typeof o=="object"?o.zIndex:void 0),v=ve.useMemo(()=>{if(o===false)return o;let $=typeof o=="object"?o:{},{getContainer:R,closeIcon:T,rootClassName:P,...N}=$;return {mask:ve.createElement("div",{className:`${m}-mask-info`},ve.createElement(a8,null),f?.preview),icons:lh,...N,rootClassName:Xi(b,P),getContainer:R??c,transitionName:it(d,"zoom",$.transitionName),maskTransitionName:it(d,"fade",$.maskTransitionName),zIndex:S,closeIcon:T??p?.preview?.closeIcon}},[o,f,p?.preview?.closeIcon]),x={...p?.style,...i};return g(ve.createElement(tG,{prefixCls:m,preview:v,rootClassName:b,className:C,style:x,...a}))};qR.PreviewGroup=UR;var iG=qR;function ch(e,t,o){return typeof o=="boolean"?o:e.length?true:H0(t).some(n=>n.type===mm)}function mu({suffixCls:e,tagName:t,displayName:o}){return r=>ve.forwardRef((i,a)=>ve.createElement(r,{ref:a,suffixCls:e,tagName:t,...i}))}var ph=ve.forwardRef((e,t)=>{let{prefixCls:o,suffixCls:r,className:n,tagName:i,...a}=e,{getPrefixCls:l}=ve.useContext(O),s=l("layout",o),[c,p,m]=Vy(s),d=r?`${s}-${r}`:s;return c(ve.createElement(i,{className:Xi(o||d,n,p,m),ref:t,...a}))}),sG=ve.forwardRef((e,t)=>{let{direction:o}=ve.useContext(O),[r,n]=ve.useState([]),{prefixCls:i,className:a,rootClassName:l,children:s,hasSider:c,tagName:p,style:m,...d}=e,f=vv(d,["suffixCls"]),{getPrefixCls:u,layout:g}=ve.useContext(O),y=u("layout",i),h=ch(r,s,c),[b,C,S]=Vy(y),v=Xi(y,{[`${y}-has-sider`]:h,[`${y}-rtl`]:o==="rtl"},g?.className,a,l,C,S),x=ve.useMemo(()=>({siderHook:{addSider:$=>{n(R=>[...R,$]);},removeSider:$=>{n(R=>R.filter(T=>T!==$));}}}),[]);return b(ve.createElement(dm.Provider,{value:x},ve.createElement(p,{ref:t,className:v,style:{...g?.style,...m},...f},s)))}),cG=mu({tagName:"div",displayName:"Layout"})(sG),KR=mu({suffixCls:"header",tagName:"header",displayName:"Header"})(ph),YR=mu({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ph),ZR=mu({suffixCls:"content",tagName:"main",displayName:"Content"})(ph);var QR=cG;var Fs=QR;Fs.Header=KR;Fs.Footer=YR;Fs.Content=ZR;Fs.Sider=mm;Fs._InternalSiderContext=Ha;var pG=Fs;var dG=(...e)=>{let t={...e[0]};for(let o=1;o<e.length;o++){let r=e[o];r&&Object.keys(r).forEach(n=>{let i=r[n];i!==void 0&&(t[n]=i);});}return t},zs=dG;var mG=e=>{let{componentCls:t}=e;return {[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},uG=e=>{let{componentCls:t}=e;return {[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:unit(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini:not(${t}-disabled) ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
235
235
|
&${t}-mini ${t}-prev ${t}-item-link,
|
|
236
236
|
&${t}-mini ${t}-next ${t}-item-link
|
|
237
|
-
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM),input:{...
|
|
237
|
+
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:unit(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM),input:{...Im(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},fG=e=>{let{componentCls:t}=e;return {[`
|
|
238
238
|
&${t}-simple ${t}-prev,
|
|
239
239
|
&${t}-simple ${t}-next
|
|
240
|
-
`]:{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${unit(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${unit(e.inputOutlineOffset)} 0 ${unit(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},
|
|
240
|
+
`]:{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:unit(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${unit(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${unit(e.inputOutlineOffset)} 0 ${unit(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},gG=e=>{let{componentCls:t}=e;return {[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
241
241
|
${t}-prev,
|
|
242
242
|
${t}-jump-prev,
|
|
243
243
|
${t}-jump-next
|
|
@@ -246,7 +246,7 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
|
|
|
246
246
|
${t}-next,
|
|
247
247
|
${t}-jump-prev,
|
|
248
248
|
${t}-jump-next
|
|
249
|
-
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:unit(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:unit(e.controlHeight),verticalAlign:"top",input:{...un(e),..._d(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Ma(e)},width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},I9=e=>{let{componentCls:t}=e;return {[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:unit(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${unit(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},w9=e=>{let{componentCls:t}=e;return {[t]:{...ne(e),display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:unit(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"},...I9(e),...R9(e),...$9(e),...P9(e),...v9(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},N9=e=>{let{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...St(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...wo(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:{...wo(e)}}}}},hC=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...Nr(e)}),SC=e=>mergeToken(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},wr(e)),V$=te("Pagination",e=>{let t=SC(e);return [w9(t),N9(t)]},hC);var E9=e=>{let{componentCls:t}=e;return {[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},_$=No(["Pagination","bordered"],e=>{let t=SC(e);return [E9(t)]},hC);function Bm(e){return useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[true,e]:[void 0,void 0],[e])}var A9=e=>{let{align:t,prefixCls:o,selectPrefixCls:r,className:n,rootClassName:i,style:a,size:l,locale:s,responsive:c,showSizeChanger:p,selectComponentClass:d,pageSizeOptions:m,...f}=e,{xs:u}=Vo(c),[,g]=ve(),{getPrefixCls:y,direction:S,pagination:h={}}=ue.useContext(B),C=y("pagination",o),[b,v,x]=V$(C),T=Te(l),$=T==="small"||!!(u&&!T&&c),[R]=Ee("Pagination",fE),P={...R,...s},[I,M]=Bm(p),[E,w]=Bm(h.showSizeChanger),N=I??E,A=M??w,k=d||Mo,D=ue.useMemo(()=>m?m.map(z=>Number(z)):void 0,[m]),F=z=>{let{disabled:G,size:W,onSizeChange:q,"aria-label":j,className:K,options:Q}=z,{className:V,onChange:U}=A||{},Y=Q.find(J=>String(J.value)===String(W))?.value;return ue.createElement(k,{disabled:G,showSearch:true,popupMatchSelectWidth:false,getPopupContainer:J=>J.parentNode,"aria-label":j,options:Q,...A,value:Y,onChange:(J,ie)=>{q?.(J),U?.(J,ie);},size:$?"small":"middle",className:ki(K,V)})},O=ue.useMemo(()=>{let z=ue.createElement("span",{className:`${C}-item-ellipsis`},"\u2022\u2022\u2022"),G=ue.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},S==="rtl"?ue.createElement(cv,null):ue.createElement(sv,null)),W=ue.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},S==="rtl"?ue.createElement(sv,null):ue.createElement(cv,null)),q=ue.createElement("a",{className:`${C}-item-link`},ue.createElement("div",{className:`${C}-item-container`},S==="rtl"?ue.createElement(U$,{className:`${C}-item-link-icon`}):ue.createElement(j$,{className:`${C}-item-link-icon`}),z)),j=ue.createElement("a",{className:`${C}-item-link`},ue.createElement("div",{className:`${C}-item-container`},S==="rtl"?ue.createElement(j$,{className:`${C}-item-link-icon`}):ue.createElement(U$,{className:`${C}-item-link-icon`}),z));return {prevIcon:G,nextIcon:W,jumpPrevIcon:q,jumpNextIcon:j}},[S,C]),L=y("select",r),_=ki({[`${C}-${t}`]:!!t,[`${C}-mini`]:$,[`${C}-rtl`]:S==="rtl",[`${C}-bordered`]:g.wireframe},h?.className,n,i,v,x),H={...h?.style,...a};return b(ue.createElement(ue.Fragment,null,g.wireframe&&ue.createElement(_$,{prefixCls:C}),ue.createElement(B9,{...O,...f,style:H,prefixCls:C,selectPrefixCls:L,className:_,locale:P,pageSizeOptions:D,showSizeChanger:N,sizeChangerRender:F})))},Y$=A9;var Ua=Y$;var Dm=100,eR=Dm/5,tR=Dm/2-eR/2,bC=tR*2*Math.PI,Z$=50,Q$=e=>{let{dotClassName:t,style:o,hasCircleCls:r}=e;return ue.createElement("circle",{className:ki(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:tR,cx:Z$,cy:Z$,strokeWidth:eR,style:o})},O9=({percent:e,prefixCls:t})=>{let o=`${t}-dot`,r=`${o}-holder`,n=`${r}-hidden`,[i,a]=ue.useState(false);mh(()=>{e!==0&&a(true);},[e!==0]);let l=Math.max(Math.min(e,100),0);if(!i)return null;let s={strokeDashoffset:`${bC/4}`,strokeDasharray:`${bC*l/100} ${bC*(100-l)/100}`};return ue.createElement("span",{className:ki(r,`${o}-progress`,l<=0&&n)},ue.createElement("svg",{viewBox:`0 0 ${Dm} ${Dm}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},ue.createElement(Q$,{dotClassName:o,hasCircleCls:true}),ue.createElement(Q$,{dotClassName:o,style:s})))},oR=O9;function xC(e){let{prefixCls:t,percent:o=0}=e,r=`${t}-dot`,n=`${r}-holder`,i=`${n}-hidden`;return ue.createElement(ue.Fragment,null,ue.createElement("span",{className:ki(n,o>0&&i)},ue.createElement("span",{className:ki(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>ue.createElement("i",{className:`${t}-dot-item`,key:a})))),ue.createElement(oR,{prefixCls:t,percent:o}))}function TC(e){let{prefixCls:t,indicator:o,percent:r}=e,n=`${t}-dot`;return o&&ue.isValidElement(o)?Pe(o,{className:ki(o.props.className,n),percent:r}):ue.createElement(xC,{prefixCls:t,percent:r})}var L9=new Keyframes("antSpinMove",{to:{opacity:1}}),H9=new Keyframes("antRotate",{to:{transform:"rotate(405deg)"}}),W9=e=>{let{componentCls:t,calc:o}=e;return {[t]:{...ne(e),position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:o(o(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:o(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:o(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:o(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),height:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:L9,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:H9,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal(),height:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}}}},G9=e=>{let{controlHeightLG:t,controlHeight:o}=e;return {contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:o}},iR=te("Spin",e=>{let t=mergeToken(e,{spinDotDefault:e.colorTextDescription});return [W9(t)]},G9);var V9=200,aR=[[30,.05],[70,.03],[96,.01]];function vC(e,t){let[o,r]=ue.useState(0),n=ue.useRef(null),i=t==="auto";return ue.useEffect(()=>(i&&e&&(r(0),n.current=setInterval(()=>{r(a=>{let l=100-a;for(let s=0;s<aR.length;s+=1){let[c,p]=aR[s];if(a<=c)return a+l*p}return a});},V9)),()=>{clearInterval(n.current);}),[i,e]),i?o:t}var lR;function j9(e,t){return !!e&&!!t&&!isNaN(Number(t))}var sR=e=>{let{prefixCls:t,spinning:o=true,delay:r=0,className:n,rootClassName:i,size:a="default",tip:l,wrapperClassName:s,style:c,children:p,fullscreen:d=false,indicator:m,percent:f,...u}=e,{getPrefixCls:g,direction:y,spin:S}=ue.useContext(B),h=g("spin",t),[C,b,v]=iR(h),[x,T]=ue.useState(()=>o&&!j9(o,r)),$=vC(x,f);ue.useEffect(()=>{if(o){let N=debounce(r,()=>{T(true);});return N(),()=>{N?.cancel?.();}}T(false);},[r,o]);let R=ue.useMemo(()=>typeof p<"u"&&!d,[p,d]),P=ki(h,S?.className,{[`${h}-sm`]:a==="small",[`${h}-lg`]:a==="large",[`${h}-spinning`]:x,[`${h}-show-text`]:!!l,[`${h}-rtl`]:y==="rtl"},n,!d&&i,b,v),I=ki(`${h}-container`,{[`${h}-blur`]:x}),M=m??S?.indicator??lR,E={...S?.style,...c},w=ue.createElement("div",{...u,style:E,className:P,"aria-live":"polite","aria-busy":x},ue.createElement(TC,{prefixCls:h,indicator:M,percent:$}),l&&(R||d)?ue.createElement("div",{className:`${h}-text`},l):null);return C(R?ue.createElement("div",{...u,className:ki(`${h}-nested-loading`,s,b,v)},x&&ue.createElement("div",{key:"loading"},w),ue.createElement("div",{className:I,key:"container"},p)):d?ue.createElement("div",{className:ki(`${h}-fullscreen`,{[`${h}-fullscreen-show`]:x},i,b,v)},w):w)};sR.setDefaultIndicator=e=>{lR=e;};var hn=sR;var wc=ue__default.createContext({});wc.Consumer;var q9=({prefixCls:e,className:t,avatar:o,title:r,description:n,...i})=>{let{getPrefixCls:a}=useContext(B),l=a("list",e),s=ki(`${l}-item-meta`,t),c=ue__default.createElement("div",{className:`${l}-item-meta-content`},r&&ue__default.createElement("h4",{className:`${l}-item-meta-title`},r),n&&ue__default.createElement("div",{className:`${l}-item-meta-description`},n));return ue__default.createElement("div",{...i,className:s},o&&ue__default.createElement("div",{className:`${l}-item-meta-avatar`},o),(r||n)&&c)},X9=ue__default.forwardRef((e,t)=>{let{prefixCls:o,children:r,actions:n,extra:i,styles:a,className:l,classNames:s,colStyle:c,...p}=e,{grid:d,itemLayout:m}=useContext(wc),{getPrefixCls:f,list:u}=useContext(B),g=T=>ki(u?.item?.classNames?.[T],s?.[T]),y=T=>({...u?.item?.styles?.[T],...a?.[T]}),S=()=>{let T=false;return Children.forEach(r,$=>{typeof $=="string"&&(T=true);}),T&&Children.count(r)>1},h=()=>m==="vertical"?!!i:!S(),C=f("list",o),b=n&&n.length>0&&ue__default.createElement("ul",{className:ki(`${C}-item-action`,g("actions")),key:"actions",style:y("actions")},n.map((T,$)=>ue__default.createElement("li",{key:`${C}-item-action-${$}`},T,$!==n.length-1&&ue__default.createElement("em",{className:`${C}-item-action-split`})))),x=ue__default.createElement(d?"div":"li",{...p,...d?{}:{ref:t},className:ki(`${C}-item`,{[`${C}-item-no-flex`]:!h()},l)},m==="vertical"&&i?[ue__default.createElement("div",{className:`${C}-item-main`,key:"content"},r,b),ue__default.createElement("div",{className:ki(`${C}-item-extra`,g("extra")),key:"extra",style:y("extra")},i)]:[r,b,Pe(i,{key:"extra"})]);return d?ue__default.createElement(_n,{ref:t,flex:1,style:c},x):x}),pR=X9;pR.Meta=q9;var dR=pR;var K9=e=>{let{listBorderedCls:t,componentCls:o,paddingLG:r,margin:n,itemPaddingSM:i,itemPaddingLG:a,marginLG:l,borderRadiusLG:s}=e;return {[t]:{border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${o}-header,${o}-footer,${o}-item`]:{paddingInline:r},[`${o}-pagination`]:{margin:`${unit(n)} ${unit(l)}`}},[`${t}${o}-sm`]:{[`${o}-item,${o}-header,${o}-footer`]:{padding:i}},[`${t}${o}-lg`]:{[`${o}-item,${o}-header,${o}-footer`]:{padding:a}}}},Y9=e=>{let{componentCls:t,screenSM:o,screenMD:r,marginLG:n,marginSM:i,margin:a}=e;return {[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:n}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:n}}}},[`@media screen and (max-width: ${o}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${unit(a)}`}}}}}},Z9=e=>{let{componentCls:t,antCls:o,controlHeight:r,minHeight:n,paddingSM:i,marginLG:a,padding:l,itemPadding:s,colorPrimary:c,itemPaddingSM:p,itemPaddingLG:d,paddingXS:m,margin:f,colorText:u,colorTextDescription:g,motionDurationSlow:y,lineWidth:S,headerBg:h,footerBg:C,emptyTextPadding:b,metaMarginBottom:v,avatarMarginRight:x,titleMarginBottom:T,descriptionFontSize:$}=e;return {[t]:{...ne(e),position:"relative","*":{outline:"none"},[`${t}-header`]:{background:h},[`${t}-footer`]:{background:C},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${o}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:n,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:u,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:x},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:u},[`${t}-item-meta-title`]:{margin:`0 0 ${unit(e.marginXXS)} 0`,color:u,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:u,transition:`all ${y}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:$,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${unit(m)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:S,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${unit(l)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:b,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}},[`${t}-grid ${o}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:v,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:T,color:u,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${unit(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${o}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:p},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},Q9=e=>({contentWidth:220,itemPadding:`${unit(e.paddingContentVertical)} 0`,itemPaddingSM:`${unit(e.paddingContentVerticalSM)} ${unit(e.paddingContentHorizontal)}`,itemPaddingLG:`${unit(e.paddingContentVerticalLG)} ${unit(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),mR=te("List",e=>{let t=mergeToken(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return [Z9(t),K9(t),Y9(t)]},Q9);function J9({pagination:e=false,prefixCls:t,bordered:o=false,split:r=true,className:n,rootClassName:i,style:a,children:l,itemLayout:s,loadMore:c,grid:p,dataSource:d=[],size:m,header:f,footer:u,loading:g=false,rowKey:y,renderItem:S,locale:h,...C},b){let v=e&&typeof e=="object"?e:{},[x,T]=ue.useState(v.defaultCurrent||1),[$,R]=ue.useState(v.defaultPageSize||10),{getPrefixCls:P,renderEmpty:I,direction:M,list:E}=ue.useContext(B),w={current:1,total:0},N=ae=>(se,Ce)=>{T(se),R(Ce),e&&e?.[ae]?.(se,Ce);},A=N("onChange"),k=N("onShowSizeChange"),D=(ae,se)=>{if(!S)return null;let Ce;return typeof y=="function"?Ce=y(ae):y?Ce=ae[y]:Ce=ae.key,Ce||(Ce=`list-item-${se}`),ue.createElement(ue.Fragment,{key:Ce},S(ae,se))},F=()=>!!(c||e||u),O=P("list",t),[L,_,H]=mR(O),z=g;typeof z=="boolean"&&(z={spinning:z});let G=!!z?.spinning,W=Te(m),q="";switch(W){case "large":q="lg";break;case "small":q="sm";break;}let j=ki(O,{[`${O}-vertical`]:s==="vertical",[`${O}-${q}`]:q,[`${O}-split`]:r,[`${O}-bordered`]:o,[`${O}-loading`]:G,[`${O}-grid`]:!!p,[`${O}-something-after-last-item`]:F(),[`${O}-rtl`]:M==="rtl"},E?.className,n,i,_,H),K=us(w,{total:d.length,current:x,pageSize:$},e||{}),Q=Math.ceil(K.total/K.pageSize);K.current>Q&&(K.current=Q);let V=e&&ue.createElement("div",{className:ki(`${O}-pagination`)},ue.createElement(Ua,{align:"end",...K,onChange:A,onShowSizeChange:k})),U=[...d];e&&d.length>(K.current-1)*K.pageSize&&(U=[...d].splice((K.current-1)*K.pageSize,K.pageSize));let Y=Object.keys(p||{}).some(ae=>["xs","sm","md","lg","xl","xxl"].includes(ae)),J=Vo(Y),ie=ue.useMemo(()=>{for(let ae=0;ae<or.length;ae+=1){let se=or[ae];if(J[se])return se}},[J]),ee=ue.useMemo(()=>{if(!p)return;let ae=ie&&p[ie]?p[ie]:p.column;if(ae)return {width:`${100/ae}%`,maxWidth:`${100/ae}%`}},[JSON.stringify(p),ie]),X=G&&ue.createElement("div",{style:{minHeight:53}});if(U.length>0){let ae=U.map((se,Ce)=>D(se,Ce));X=p?ue.createElement(Fa,{gutter:p.gutter},ue.Children.map(ae,se=>ue.createElement("div",{key:se?.key,style:ee},se))):ue.createElement("ul",{className:`${O}-items`},ae);}else !l&&!G&&(X=ue.createElement("div",{className:`${O}-empty-text`},h?.emptyText||I?.("List")||ue.createElement(ho,{componentName:"List"})));let Z=K.position||"bottom",re=ue.useMemo(()=>({grid:p,itemLayout:s}),[JSON.stringify(p),s]);return L(ue.createElement(wc.Provider,{value:re},ue.createElement("div",{ref:b,style:{...E?.style,...a},className:j,...C},(Z==="top"||Z==="both")&&V,f&&ue.createElement("div",{className:`${O}-header`},f),ue.createElement(hn,{...z},X,l),u&&ue.createElement("div",{className:`${O}-footer`},u),c||(Z==="bottom"||Z==="both")&&V)))}var eW=ue.forwardRef(J9),fR=eW;fR.Item=dR;var tW=fR;function Yn(e,t=false){return t&&e==null?[]:Array.isArray(e)?e:[e]}var oW=e=>{let{componentCls:t,colorTextDisabled:o,controlItemBgHover:r,controlPaddingHorizontal:n,colorText:i,motionDurationSlow:a,lineHeight:l,controlHeight:s,paddingInline:c,paddingBlock:p,fontSize:d,fontSizeIcon:m,colorTextTertiary:f,colorTextQuaternary:u,colorBgElevated:g,paddingXXS:y,paddingLG:S,borderRadius:h,borderRadiusLG:C,boxShadowSecondary:b,itemPaddingVertical:v,calc:x}=e;return {[t]:{...ne(e),...un(e),position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:l,whiteSpace:"pre-wrap",verticalAlign:"bottom",...Ni(e),...Ei(e),...Mi(e),"&-affix-wrapper":{...un(e),display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:S},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:x(d).mul(l).mul(.5).add(p).equal(),transform:"translateY(-50%)",margin:0,color:u,fontSize:m,verticalAlign:-1,cursor:"pointer",transition:`color ${a}`,"&:hover":{color:f},"&:active":{color:i},"&-hidden":{visibility:"hidden"}}},"&-disabled":{"> textarea":{...Ma(e)}},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:e.calc(s).sub(2),margin:0,padding:`${unit(p)} ${unit(c)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":{width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent",...Ea(e.colorTextPlaceholder)},[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":{...ne(e),position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",padding:y,backgroundColor:g,borderRadius:C,outline:"none",boxShadow:b,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":{...Oe,position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${unit(v)} ${unit(n)}`,color:i,borderRadius:h,fontWeight:"normal",lineHeight:l,cursor:"pointer",transition:`background ${a} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:o,cursor:"not-allowed","&:hover":{color:o,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}}}}}}},rW=e=>({...Nr(e),dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}),gR=te("Mentions",e=>{let t=mergeToken(e,wr(e));return [oW(t)]},rW);var{Option:CR}=yR;function iW(){return true}var aW=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,disabled:i,loading:a,filterOption:l,children:s,notFoundContent:c,options:p,status:d,allowClear:m=false,popupClassName:f,style:u,variant:g,...y}=e,[S,h]=ue.useState(false),C=ue.useRef(null),b=composeRef(t,C),{getPrefixCls:v,renderEmpty:x,direction:T,mentions:$}=ue.useContext(B),{status:R,hasFeedback:P,feedbackIcon:I}=ue.useContext(ke),M=Rt(R,d),E=(...Q)=>{y.onFocus&&y.onFocus(...Q),h(true);},w=(...Q)=>{y.onBlur&&y.onBlur(...Q),h(false);},N=ue.useMemo(()=>c!==void 0?c:x?.("Select")||ue.createElement(ho,{componentName:"Select"}),[c,x]),A=ue.useMemo(()=>a?ue.createElement(CR,{value:"ANTD_SEARCHING",disabled:true},ue.createElement(hn,{size:"small"})):s,[a,s]),k=a?[{value:"ANTD_SEARCHING",disabled:true,label:ue.createElement(hn,{size:"small"})}]:p,D=a?iW:l,F=v("mentions",o),O=Jl(m),L=de(F),[_,H,z]=gR(F,L),[G,W]=Ot("mentions",g),q=P&&ue.createElement(ue.Fragment,null,I),j=ki($?.className,r,n,z,L),K=ue.createElement(yR,{silent:a,prefixCls:F,notFoundContent:N,className:j,disabled:i,allowClear:O,direction:T,style:{...$?.style,...u},...y,filterOption:D,onFocus:E,onBlur:w,dropdownClassName:ki(f,n,H,z,L),ref:b,options:k,suffix:q,classNames:{mentions:ki({[`${F}-disabled`]:i,[`${F}-focused`]:S,[`${F}-rtl`]:T==="rtl"},H),variant:ki({[`${F}-${G}`]:W},yt(F,M)),affixWrapper:H}},A);return _(K)}),Mc=aW;Mc.Option=CR;var lW=Wt(Mc,void 0,void 0,"mentions");Mc._InternalPanelDoNotUseOrYouWillBeFired=lW;Mc.getMentions=(e="",t={})=>{let{prefix:o="@",split:r=" "}=t,n=Yn(o);return e.split(r).map((i="")=>{let a=null;return n.some(l=>i.slice(0,l.length)===l?(a=l,true):false),a!==null?{prefix:a,value:i.slice(a.length)}:null}).filter(i=>!!i&&!!i.value)};var $C=Mc;var qa=null,Xa=e=>e(),Ec=[],kc={};function SR(){let{getContainer:e,duration:t,rtl:o,maxCount:r,top:n}=kc,i=e?.()||document.body;return {getContainer:()=>i,duration:t,rtl:o,maxCount:r,top:n}}var sW=ue__default.forwardRef((e,t)=>{let{messageConfig:o,sync:r}=e,{getPrefixCls:n}=useContext(B),i=kc.prefixCls||n("message"),a=useContext(fa),[l,s]=Bf({...o,prefixCls:i,...a.message});return ue__default.useImperativeHandle(t,()=>{let c={...l};return Object.keys(c).forEach(p=>{c[p]=(...d)=>(r(),l[p](...d));}),{instance:c,sync:r}}),s}),cW=ue__default.forwardRef((e,t)=>{let[o,r]=ue__default.useState(SR),n=()=>{r(SR);};ue__default.useEffect(n,[]);let i=di(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=ue__default.createElement(sW,{ref:t,sync:n,messageConfig:o});return ue__default.createElement(Jo,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function Lm(){if(!qa){let e=document.createDocumentFragment(),t={fragment:e};qa=t,Xa(()=>{ui()(ue__default.createElement(cW,{ref:r=>{let{instance:n,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=i,Lm());});}}),e);});return}qa.instance&&(Ec.forEach(e=>{let{type:t,skipped:o}=e;if(!o)switch(t){case "open":{Xa(()=>{let r=qa.instance.open({...kc,...e.config});r?.then(e.resolve),e.setCloseFn(r);});break}case "destroy":Xa(()=>{qa?.instance.destroy(e.key);});break;default:Xa(()=>{let r=qa.instance[t](...e.args);r?.then(e.resolve),e.setCloseFn(r);});}}),Ec=[]);}function pW(e){kc={...kc,...e},Xa(()=>{qa?.sync?.();});}function dW(e){let t=Ys(o=>{let r,n={type:"open",config:e,resolve:o,setCloseFn:i=>{r=i;}};return Ec.push(n),()=>{r?Xa(()=>{r();}):n.skipped=true;}});return Lm(),t}function mW(e,t){let r=Ys(n=>{let i,a={type:e,args:t,resolve:n,setCloseFn:l=>{i=l;}};return Ec.push(a),()=>{i?Xa(()=>{i();}):a.skipped=true;}});return Lm(),r}var uW=e=>{Ec.push({type:"destroy",key:e}),Lm();},fW=["success","info","warning","error","loading"],gW={open:dW,destroy:uW,config:pW,useMessage:Zs,_InternalPanelDoNotUseOrYouWillBeFired:fb},bR=gW;fW.forEach(e=>{bR[e]=(...t)=>mW(e,t);});var yW=bR;var SW=e=>{let{prefixCls:t,className:o,closeIcon:r,closable:n,type:i,title:a,children:l,footer:s,...c}=e,{getPrefixCls:p}=ue.useContext(B),d=p(),m=t||p("modal"),f=de(d),[u,g,y]=ad(m,f),S=`${m}-confirm`,h={};return i?h={closable:n??false,title:"",footer:"",children:ue.createElement(xg,{...e,prefixCls:m,confirmPrefixCls:S,rootPrefixCls:d,content:l})}:h={closable:n??true,title:a,footer:s!==null&&ue.createElement(id,{...e}),children:l},u(ue.createElement(Panel$1,{prefixCls:m,className:ki(g,`${m}-pure-panel`,i&&S,i&&`${S}-${i}`,o,y,f),...c,closeIcon:nd(m,r),closable:n,...h}))},xR=lc(SW);function TR(e){return ua(pd(e))}var Kr=sd;Kr.useModal=gd;Kr.info=function(t){return ua(dd(t))};Kr.success=function(t){return ua(md(t))};Kr.error=function(t){return ua(ud(t))};Kr.warning=TR;Kr.warn=TR;Kr.confirm=function(t){return ua(fd(t))};Kr.destroyAll=function(){for(;an.length;){let t=an.pop();t&&t();}};Kr.config=Qx;Kr._InternalPanelDoNotUseOrYouWillBeFired=xR;var bW=Kr;var ys=null,Hm=e=>e(),Wm=[],Bc={};function PR(){let{getContainer:e,rtl:t,maxCount:o,top:r,bottom:n,showProgress:i,pauseOnHover:a}=Bc,l=e?.()||document.body;return {getContainer:()=>l,rtl:t,maxCount:o,top:r,bottom:n,showProgress:i,pauseOnHover:a}}var xW=ue__default.forwardRef((e,t)=>{let{notificationConfig:o,sync:r}=e,{getPrefixCls:n}=useContext(B),i=Bc.prefixCls||n("notification"),a=useContext(fa),[l,s]=wg({...o,prefixCls:i,...a.notification});return ue__default.useEffect(r,[]),ue__default.useImperativeHandle(t,()=>{let c={...l};return Object.keys(c).forEach(p=>{c[p]=(...d)=>(r(),l[p](...d));}),{instance:c,sync:r}}),s}),TW=ue__default.forwardRef((e,t)=>{let[o,r]=ue__default.useState(PR),n=()=>{r(PR);};ue__default.useEffect(n,[]);let i=di(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=ue__default.createElement(xW,{ref:t,sync:n,notificationConfig:o});return ue__default.createElement(Jo,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function RC(){if(!ys){let e=document.createDocumentFragment(),t={fragment:e};ys=t,Hm(()=>{ui()(ue__default.createElement(TW,{ref:r=>{let{instance:n,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=i,RC());});}}),e);});return}ys.instance&&(Wm.forEach(e=>{switch(e.type){case "open":{Hm(()=>{ys.instance.open({...Bc,...e.config});});break}case "destroy":Hm(()=>{ys?.instance.destroy(e.key);});break}}),Wm=[]);}function vW(e){Bc={...Bc,...e},Hm(()=>{ys?.sync?.();});}function $R(e){Wm.push({type:"open",config:e}),RC();}var PW=e=>{Wm.push({type:"destroy",key:e}),RC();},$W=["success","info","warning","error"],RW={open:$R,destroy:PW,config:vW,useNotification:ac,_InternalPanelDoNotUseOrYouWillBeFired:iT},RR=RW;$W.forEach(e=>{RR[e]=t=>$R({...t,type:e});});var IW=RR;var wW=e=>{let{componentCls:t,iconCls:o,antCls:r,zIndexPopup:n,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:p,colorTextHeading:d}=e;return {[t]:{zIndex:n,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${o}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:p,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}},NW=e=>{let{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},Gm=te("Popconfirm",e=>wW(e),NW,{resetStyle:false});var IC=e=>{let{prefixCls:t,okButtonProps:o,cancelButtonProps:r,title:n,description:i,cancelText:a,okText:l,okType:s="primary",icon:c=ue.createElement(hk,null),showCancel:p=true,close:d,onConfirm:m,onCancel:f,onPopupClick:u}=e,{getPrefixCls:g}=ue.useContext(B),[y]=Ee("Popconfirm",tt.Popconfirm),S=Hn(n),h=Hn(i);return ue.createElement("div",{className:`${t}-inner-content`,onClick:u},ue.createElement("div",{className:`${t}-message`},c&&ue.createElement("span",{className:`${t}-message-icon`},c),ue.createElement("div",{className:`${t}-message-text`},S&&ue.createElement("div",{className:`${t}-title`},S),h&&ue.createElement("div",{className:`${t}-description`},h))),ue.createElement("div",{className:`${t}-buttons`},p&&ue.createElement(Le,{onClick:f,size:"small",...r},a||y?.cancelText),ue.createElement(Ol,{buttonProps:{size:"small",...Ml(s),...o},actionFn:m,close:d,prefixCls:g("btn"),quitOnNullishReturnValue:true,emitEvent:true},l||y?.okText)))},kW=e=>{let{prefixCls:t,placement:o,className:r,style:n,...i}=e,{getPrefixCls:a}=ue.useContext(B),l=a("popconfirm",t),[s]=Gm(l);return s(ue.createElement(Md,{placement:o,className:ki(l,r),style:n,content:ue.createElement(IC,{prefixCls:l,...i})}))},IR=kW;var OW=ue.forwardRef((e,t)=>{let{prefixCls:o,placement:r="top",trigger:n="click",okType:i="primary",icon:a=ue.createElement(hk,null),children:l,overlayClassName:s,onOpenChange:c,onVisibleChange:p,...d}=e,{getPrefixCls:m}=ue.useContext(B),[f,u]=e0(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),g=(T,$)=>{u(T,true),p?.(T),c?.(T,$);},y=T=>{g(false,T);},S=T=>e.onConfirm?.call(void 0,T),h=T=>{g(false,T),e.onCancel?.call(void 0,T);},C=(T,$)=>{let{disabled:R=false}=e;R||g(T,$);},b=m("popconfirm",o),v=ki(b,s),[x]=Gm(b);return x(ue.createElement(ba,{...fx(d,["title"]),trigger:n,placement:r,onOpenChange:C,open:f,ref:t,overlayClassName:v,content:ue.createElement(IC,{okType:i,icon:a,...e,prefixCls:b,close:y,onConfirm:S,onCancel:h}),"data-popover-inject":true},l))}),wR=OW;wR._InternalPanelDoNotUseOrYouWillBeFired=IR;var zW=wR;function Sn(e){return !e||e<0?0:e>100?100:e}function Cs({success:e,successPercent:t}){let o=t;return e&&"progress"in e&&(o=e.progress),e&&"percent"in e&&(o=e.percent),o}var NR=({percent:e,success:t,successPercent:o})=>{let r=Sn(Cs({success:t,successPercent:o}));return [r,Sn(Sn(e)-r)]},MR=({success:e={},strokeColor:t})=>{let{strokeColor:o}=e;return [o||presetPrimaryColors.green,t||null]},qi=(e,t,o)=>{let r=-1,n=-1;if(t==="step"){let i=o.steps,a=o.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,n=a??8):typeof e=="number"?[r,n]=[e,e]:[r=14,n=8]=Array.isArray(e)?e:[e.width,e.height],r*=i;}else if(t==="line"){let i=o?.strokeWidth;typeof e=="string"||typeof e>"u"?n=i||(e==="small"?6:8):typeof e=="number"?[r,n]=[e,e]:[r=-1,n=8]=Array.isArray(e)?e:[e.width,e.height];}else (t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,n]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[r,n]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,n=e[0]??e[1]??120));return [r,n]};var GW=3,VW=e=>GW/e*100,_W=e=>{let{prefixCls:t,trailColor:o=null,strokeLinecap:r="round",gapPosition:n,gapDegree:i,width:a=120,type:l,children:s,success:c,size:p=a,steps:d}=e,[m,f]=qi(p,"circle"),{strokeWidth:u}=e;u===void 0&&(u=Math.max(VW(m),6));let g={width:m,height:f,fontSize:m*.15+6},y=ue.useMemo(()=>{if(i||i===0)return i;if(l==="dashboard")return 75},[i,l]),S=NR(e),h=n||l==="dashboard"&&"bottom"||void 0,C=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=MR({success:c,strokeColor:e.strokeColor}),v=ki(`${t}-inner`,{[`${t}-circle-gradient`]:C}),x=ue.createElement(Circle,{steps:d,percent:d?S[1]:S,strokeWidth:u,trailWidth:u,strokeColor:d?b[1]:b,strokeLinecap:r,trailColor:o,prefixCls:t,gapDegree:y,gapPosition:h}),T=m<=20,$=ue.createElement("div",{className:v,style:g},x,!T&&s);return T?ue.createElement(nt,{title:s},$):$},ER=_W;var Dc="--progress-line-stroke-color",wC="--progress-percent",kR=e=>{let t=e?"100%":"-100%";return new Keyframes(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},qW=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{...ne(e),display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:true,value:["inherit",`var(${Dc})`]},height:"100%",width:`calc(1 / var(${wC}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${unit(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:kR(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:kR(true)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}}},XW=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},KW=e=>{let{componentCls:t}=e;return {[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},YW=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${o}`]:{fontSize:e.fontSizeSM}}}},ZW=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),BR=te("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),o=mergeToken(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return [qW(o),XW(o),KW(o),YW(o)]},ZW);var JW=e=>{let t=[];return Object.keys(e).forEach(o=>{let r=parseFloat(o.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[o]});}),t=t.sort((o,r)=>o.key-r.key),t.map(({key:o,value:r})=>`${r} ${o}%`).join(", ")},eG=(e,t)=>{let{from:o=presetPrimaryColors.blue,to:r=presetPrimaryColors.blue,direction:n=t==="rtl"?"to left":"to right",...i}=e;if(Object.keys(i).length!==0){let l=JW(i),s=`linear-gradient(${n}, ${l})`;return {background:s,[Dc]:s}}let a=`linear-gradient(${n}, ${o}, ${r})`;return {background:a,[Dc]:a}},tG=e=>{let{prefixCls:t,direction:o,percent:r,size:n,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:c=null,percentPosition:p,success:d}=e,{align:m,type:f}=p,u=a&&typeof a!="string"?eG(a,o):{[Dc]:a,background:a},g=l==="square"||l==="butt"?0:void 0,y=n??[-1,i||(n==="small"?6:8)],[S,h]=qi(y,"line",{strokeWidth:i}),C={backgroundColor:c||void 0,borderRadius:g},b={width:`${Sn(r)}%`,height:h,borderRadius:g,...u,[wC]:Sn(r)/100},v=Cs(e),x={width:`${Sn(v)}%`,height:h,borderRadius:g,backgroundColor:d?.strokeColor},T={width:S<0?"100%":S},$=ue.createElement("div",{className:`${t}-inner`,style:C},ue.createElement("div",{className:ki(`${t}-bg`,`${t}-bg-${f}`),style:b},f==="inner"&&s),v!==void 0&&ue.createElement("div",{className:`${t}-success-bg`,style:x})),R=f==="outer"&&m==="start",P=f==="outer"&&m==="end";return f==="outer"&&m==="center"?ue.createElement("div",{className:`${t}-layout-bottom`},$,s):ue.createElement("div",{className:`${t}-outer`,style:T},R&&s,$,P&&s)},AR=tG;var rG=e=>{let{size:t,steps:o,percent:r=0,strokeWidth:n=8,strokeColor:i,trailColor:a=null,prefixCls:l,children:s}=e,c=Math.round(o*(r/100)),d=t??[t==="small"?2:14,n],[m,f]=qi(d,"step",{steps:o,strokeWidth:n}),u=m/o,g=new Array(o);for(let y=0;y<o;y++){let S=Array.isArray(i)?i[y]:i;g[y]=ue.createElement("div",{key:y,className:ki(`${l}-steps-item`,{[`${l}-steps-item-active`]:y<=c-1}),style:{backgroundColor:y<=c-1?S:a,width:u,height:f}});}return ue.createElement("div",{className:`${l}-steps-outer`},g,s)},FR=rG;var pG=["normal","exception","active","success"],dG=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,steps:i,strokeColor:a,percent:l=0,size:s="default",showInfo:c=true,type:p="line",status:d,format:m,style:f,percentPosition:u={},...g}=e,{align:y="end",type:S="outer"}=u,h=Array.isArray(a)?a[0]:a,C=typeof a=="string"||Array.isArray(a)?a:void 0,b=ue.useMemo(()=>{if(h){let F=typeof h=="string"?h:Object.values(h)[0];return new TinyColor(F).isLight()}return false},[a]),v=ue.useMemo(()=>{let F=Cs(e);return parseInt(F!==void 0?(F??0)?.toString():(l??0)?.toString(),10)},[l,e.success,e.successPercent]),x=ue.useMemo(()=>!pG.includes(d)&&v>=100?"success":d||"normal",[d,v]),{getPrefixCls:T,direction:$,progress:R}=ue.useContext(B),P=T("progress",o),[I,M,E]=BR(P),w=p==="line",N=w&&!i,A=ue.useMemo(()=>{if(!c)return null;let F=Cs(e),O,L=m||(H=>`${H}%`),_=w&&b&&S==="inner";return S==="inner"||m||x!=="exception"&&x!=="success"?O=L(Sn(l),Sn(F)):x==="exception"?O=w?ue.createElement(yk,null):ue.createElement(Ck,null):x==="success"&&(O=w?ue.createElement(gk,null):ue.createElement(C3,null)),ue.createElement("span",{className:ki(`${P}-text`,{[`${P}-text-bright`]:_,[`${P}-text-${y}`]:N,[`${P}-text-${S}`]:N}),title:typeof O=="string"?O:void 0},O)},[c,l,v,x,p,P,m]),k;p==="line"?k=i?ue.createElement(FR,{...e,strokeColor:C,prefixCls:P,steps:typeof i=="object"?i.count:i},A):ue.createElement(AR,{...e,strokeColor:h,prefixCls:P,direction:$,percentPosition:{align:y,type:S}},A):(p==="circle"||p==="dashboard")&&(k=ue.createElement(ER,{...e,strokeColor:h,prefixCls:P,progressStatus:x},A));let D=ki(P,`${P}-status-${x}`,{[`${P}-${p==="dashboard"&&"circle"||p}`]:p!=="line",[`${P}-inline-circle`]:p==="circle"&&qi(s,"circle")[0]<=20,[`${P}-line`]:N,[`${P}-line-align-${y}`]:N,[`${P}-line-position-${S}`]:N,[`${P}-steps`]:i,[`${P}-show-info`]:c,[`${P}-${s}`]:typeof s=="string",[`${P}-rtl`]:$==="rtl"},R?.className,r,n,M,E);return I(ue.createElement("div",{ref:t,style:{...R?.style,...f},className:D,role:"progressbar","aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100,...fx(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])},k))}),zR=dG;var Ac=zR;var uG=ue__default.createElement(hn,null);function MC({prefixCls:e,locale:t,onRefresh:o,statusRender:r,status:n}){let i=ue__default.createElement(ue__default.Fragment,null,ue__default.createElement("p",{className:`${e}-expired`},t?.expired),o&&ue__default.createElement(Le,{type:"link",icon:ue__default.createElement(ReloadOutlined,null),onClick:o},t?.refresh)),a=ue__default.createElement("p",{className:`${e}-scanned`},t?.scanned),l={expired:i,loading:uG,scanned:a};return (r??(p=>l[p.status]))({status:n,locale:t,onRefresh:o})}var yG=e=>{let{componentCls:t,lineWidth:o,lineType:r,colorSplit:n}=e;return {[t]:{...ne(e),display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${unit(o)} ${r} ${n}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}},[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},CG=e=>({QRCodeMaskBackgroundColor:new TinyColor(e.colorBgContainer).setAlpha(.96).toRgbString()}),LR=te("QRCode",e=>{let t=mergeToken(e,{QRCodeTextColor:e.colorText});return yG(t)},CG);var PG=e=>{let[,t]=ve(),{value:o,type:r="canvas",icon:n="",size:i=160,iconSize:a,color:l=t.colorText,errorLevel:s="M",status:c="active",bordered:p=true,onRefresh:d,style:m,className:f,rootClassName:u,prefixCls:g,bgColor:y="transparent",statusRender:S,...h}=e,{getPrefixCls:C}=useContext(B),b=C("qrcode",g),[v,x,T]=LR(b),$={src:n,x:void 0,y:void 0,height:typeof a=="number"?a:a?.height??40,width:typeof a=="number"?a:a?.width??40,excavate:true,crossOrigin:"anonymous"},R=xk(h,true),P=fx(h,Object.keys(R)),I={value:o,size:i,level:s,bgColor:y,fgColor:l,style:{width:m?.width,height:m?.height},imageSettings:n?$:void 0,...R},[M]=Ee("QRCode");if(!o)return null;let E=ki(b,f,u,x,T,{[`${b}-borderless`]:!p}),w={backgroundColor:y,...m,width:m?.width??i,height:m?.height??i};return v(ue__default.createElement("div",{...P,className:E,style:w},c!=="active"&&ue__default.createElement("div",{className:`${b}-mask`},ue__default.createElement(MC,{prefixCls:b,locale:M,status:c,onRefresh:d,statusRender:S})),r==="canvas"?ue__default.createElement(QRCodeCanvas,{...I}):ue__default.createElement(QRCodeSVG,{...I})))},$G=PG;var IG=e=>{let{componentCls:t}=e;return {[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${unit(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},wG=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),NG=e=>{let{componentCls:t}=e;return {[t]:{...ne(e),display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}},...IG(e),...wG(e)}}},MG=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),HR=te("Rate",e=>{let t=mergeToken(e,{});return [NG(t)]},MG);var DG=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,tooltips:a,character:l=ue.createElement(EG,null),disabled:s,...c}=e,p=(v,{index:x})=>a?ue.createElement(nt,{title:a[x]},v):v,{getPrefixCls:d,direction:m,rate:f}=ue.useContext(B),u=d("rate",o),[g,y,S]=HR(u),h={...f?.style,...i},C=ue.useContext(Be);return g(ue.createElement(BG,{ref:t,character:l,characterRender:p,disabled:s??C,...c,className:ki(r,n,y,S,f?.className),style:h,prefixCls:u,direction:m}))}),AG=DG;var FG=()=>ue.createElement("svg",{width:"252",height:"294"},ue.createElement("title",null,"No Found"),ue.createElement("defs",null,ue.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),ue.createElement("g",{fill:"none",fillRule:"evenodd"},ue.createElement("g",{transform:"translate(0 .012)"},ue.createElement("mask",{fill:"#fff"}),ue.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),ue.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),ue.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),ue.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),ue.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),ue.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),ue.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),ue.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),ue.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),ue.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),ue.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),ue.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),ue.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),ue.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),ue.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),ue.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),ue.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),ue.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),ue.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),ue.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),ue.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),ue.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),ue.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),ue.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),ue.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),ue.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),ue.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),ue.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),ue.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),ue.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),ue.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),ue.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),ue.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),ue.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),ue.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),ue.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),ue.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),ue.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),ue.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),ue.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),ue.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),ue.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),WR=FG;var OG=()=>ue.createElement("svg",{width:"254",height:"294"},ue.createElement("title",null,"Server Error"),ue.createElement("defs",null,ue.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),ue.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),ue.createElement("g",{fill:"none",fillRule:"evenodd"},ue.createElement("g",{transform:"translate(0 .067)"},ue.createElement("mask",{fill:"#fff"}),ue.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),ue.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),ue.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),ue.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),ue.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),ue.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),ue.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),ue.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),ue.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),ue.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),ue.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),ue.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),ue.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),ue.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),ue.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),ue.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),ue.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),ue.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),ue.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),ue.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),ue.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),ue.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),ue.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),ue.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),ue.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),ue.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),ue.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),ue.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),ue.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),ue.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),ue.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),ue.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),ue.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),ue.createElement("mask",{fill:"#fff"}),ue.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),ue.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),ue.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),ue.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),ue.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),ue.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),ue.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),ue.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),ue.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),ue.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),ue.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),GR=OG;var zG=e=>{let{componentCls:t,lineHeightHeading3:o,iconCls:r,padding:n,paddingXL:i,paddingXS:a,paddingLG:l,marginXS:s,lineHeight:c}=e;return {[t]:{padding:`${unit(e.calc(l).mul(2).equal())} ${unit(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:o,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${unit(l)} ${unit(e.calc(n).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},LG=e=>{let{componentCls:t,iconCls:o}=e;return {[`${t}-success ${t}-icon > ${o}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${o}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${o}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${o}`]:{color:e.resultWarningIconColor}}},HG=e=>[zG(e),LG(e)],WG=e=>HG(e),GG=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),VR=te("Result",e=>{let t=e.colorInfo,o=e.colorError,r=e.colorSuccess,n=e.colorWarning,i=mergeToken(e,{resultInfoIconColor:t,resultErrorIconColor:o,resultSuccessIconColor:r,resultWarningIconColor:n,imageWidth:250,imageHeight:295});return [WG(i)]},GG);var VG=()=>ue.createElement("svg",{width:"251",height:"294"},ue.createElement("title",null,"Unauthorized"),ue.createElement("g",{fill:"none",fillRule:"evenodd"},ue.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),ue.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),ue.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),ue.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),ue.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),ue.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),ue.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),ue.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),ue.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),ue.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),ue.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),ue.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),ue.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),ue.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),ue.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),ue.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),ue.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),ue.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),ue.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),ue.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),ue.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),ue.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),ue.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),ue.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),ue.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),ue.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),ue.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),ue.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),ue.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),ue.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),ue.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),ue.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),ue.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),ue.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),ue.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),ue.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ue.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),ue.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),ue.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),ue.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),_R=VG;var XG={success:gk,error:yk,info:hk,warning:qG},Oc={404:WR,500:GR,403:_R},KG=Object.keys(Oc),YG=({prefixCls:e,icon:t,status:o})=>{let r=ki(`${e}-icon`);if(KG.includes(`${o}`)){let i=Oc[o];return ue.createElement("div",{className:`${r} ${e}-image`},ue.createElement(i,null))}let n=ue.createElement(XG[o]);return t===null||t===false?null:ue.createElement("div",{className:r},t||n)},ZG=({prefixCls:e,extra:t})=>t?ue.createElement("div",{className:`${e}-extra`},t):null,_m=({prefixCls:e,className:t,rootClassName:o,subTitle:r,title:n,style:i,children:a,status:l="info",icon:s,extra:c})=>{let{getPrefixCls:p,direction:d,result:m}=ue.useContext(B),f=p("result",e),[u,g,y]=VR(f),S=ki(f,`${f}-${l}`,t,m?.className,o,{[`${f}-rtl`]:d==="rtl"},g,y),h={...m?.style,...i};return u(ue.createElement("div",{className:S,style:h},ue.createElement(YG,{prefixCls:f,status:l,icon:s}),ue.createElement("div",{className:`${f}-title`},n),r&&ue.createElement("div",{className:`${f}-subtitle`},r),ue.createElement(ZG,{prefixCls:f,extra:c}),a&&ue.createElement("div",{className:`${f}-content`},a)))};_m.PRESENTED_IMAGE_403=Oc[403];_m.PRESENTED_IMAGE_404=Oc[404];_m.PRESENTED_IMAGE_500=Oc[500];var QG=_m;var JG=Fa;var eV=e=>{let{value:t,formatter:o,precision:r,decimalSeparator:n,groupSeparator:i="",prefixCls:a}=e,l;if(typeof o=="function")l=o(t);else {let s=String(t),c=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!c||s==="-")l=s;else {let p=c[1],d=c[2]||"0",m=c[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof r=="number"&&(m=m.padEnd(r,"0").slice(0,r>0?r:0)),m&&(m=`${n}${m}`),l=[ue.createElement("span",{key:"int",className:`${a}-content-value-int`},p,d),m&&ue.createElement("span",{key:"decimal",className:`${a}-content-value-decimal`},m)];}}return ue.createElement("span",{className:`${a}-content-value`},l)},UR=eV;var tV=e=>{let{componentCls:t,marginXXS:o,padding:r,colorTextDescription:n,titleFontSize:i,colorTextHeading:a,contentFontSize:l,fontFamily:s}=e;return {[t]:{...ne(e),[`${t}-title`]:{marginBottom:o,color:n,fontSize:i},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:a,fontSize:l,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:o},[`${t}-content-suffix`]:{marginInlineStart:o}}}}},oV=e=>{let{fontSizeHeading3:t,fontSize:o}=e;return {titleFontSize:o,contentFontSize:t}},qR=te("Statistic",e=>{let t=mergeToken(e,{});return [tV(t)]},oV);var iV=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,valueStyle:i,value:a=0,title:l,valueRender:s,prefix:c,suffix:p,loading:d=false,formatter:m,precision:f,decimalSeparator:u=".",groupSeparator:g=",",onMouseEnter:y,onMouseLeave:S,...h}=e,{getPrefixCls:C,direction:b,statistic:v}=ue.useContext(B),x=C("statistic",t),[T,$,R]=qR(x),P=ue.createElement(UR,{decimalSeparator:u,groupSeparator:g,prefixCls:x,formatter:m,precision:f,value:a}),I=ki(x,{[`${x}-rtl`]:b==="rtl"},v?.className,o,r,$,R),M=xk(h,{aria:true,data:true});return T(ue.createElement("div",{...M,className:I,style:{...v?.style,...n},onMouseEnter:y,onMouseLeave:S},l&&ue.createElement("div",{className:`${x}-title`},l),ue.createElement(An,{paragraph:false,loading:d,className:`${x}-skeleton`},ue.createElement("div",{style:i,className:`${x}-content`},c&&ue.createElement("span",{className:`${x}-content-prefix`},c),s?s(P):P,p&&ue.createElement("span",{className:`${x}-content-suffix`},p)))))},zc=iV;var aV=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function lV(e,t){let o=e,r=/\[[^\]]*]/g,n=(t.match(r)||[]).map(s=>s.slice(1,-1)),i=t.replace(r,"[]"),a=aV.reduce((s,[c,p])=>{if(s.includes(c)){let d=Math.floor(o/p);return o-=d*p,s.replace(new RegExp(`${c}+`,"g"),m=>{let f=m.length;return d.toString().padStart(f,"0")})}return s},i),l=0;return a.replace(r,()=>{let s=n[l];return l+=1,s})}function XR(e,t){let{format:o=""}=t,r=new Date(e).getTime(),n=Date.now(),i=Math.max(r-n,0);return lV(i,o)}var sV=1e3/30;function cV(e){return new Date(e).getTime()}var pV=e=>{let{value:t,format:o="HH:mm:ss",onChange:r,onFinish:n,...i}=e,a=Ln(),l=ue.useRef(null),s=()=>{n?.(),l.current&&(clearInterval(l.current),l.current=null);},c=()=>{let m=cV(t);m>=Date.now()&&(l.current=setInterval(()=>{a(),r?.(m-Date.now()),m<Date.now()&&s();},sV));};return ue.useEffect(()=>(c(),()=>{l.current&&(clearInterval(l.current),l.current=null);}),[t]),ue.createElement(zc,{...i,value:t,valueRender:m=>Pe(m,{title:void 0}),formatter:(m,f)=>XR(m,{...f,format:o})})},KR=ue.memo(pV);zc.Countdown=KR;var dV=zc;var uV=e=>{let{componentCls:t,customIconTop:o,customIconSize:r,customIconFontSize:n}=e;return {[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:o,width:r,height:r,fontSize:n,lineHeight:unit(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},YR=uV;var fV=e=>{let{componentCls:t}=e,o=`${t}-item`;return {[`${t}-horizontal`]:{[`${o}-tail`]:{transform:"translateY(-50%)"}}}},ZR=fV;var gV=e=>{let{componentCls:t,inlineDotSize:o,inlineTitleColor:r,inlineTailColor:n}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return {[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${unit(i)} ${unit(e.paddingXXS)} 0`,margin:`0 ${unit(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:o,height:o,marginInlineStart:`calc(50% - ${unit(e.calc(o).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(o).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:n}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":{[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${unit(e.lineWidth)} ${e.lineType} ${n}`},...a},"&-finish":{[`${t}-item-tail::after`]:{backgroundColor:n},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:n,border:`${unit(e.lineWidth)} ${e.lineType} ${n}`},...a},"&-error":a,"&-active, &-process":{[`${t}-item-icon`]:{width:o,height:o,marginInlineStart:`calc(50% - ${unit(e.calc(o).div(2).equal())})`,top:0},...a},[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},QR=gV;var CV=e=>{let{componentCls:t,iconSize:o,lineHeight:r,iconSizeSM:n}=e;return {[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(o).div(2).add(e.controlHeightLG).equal(),padding:`0 ${unit(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(o).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(o).sub(n).div(2).add(e.controlHeightLG).equal()}}}}}},JR=CV;var hV=e=>{let{componentCls:t,navContentMaxWidth:o,navArrowColor:r,stepsNavActiveColor:n,motionDurationSlow:i}=e;return {[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:o},[`${t}-item-title`]:{maxWidth:"100%",paddingInlineEnd:0,...Oe,"&::after":{display:"none"}}},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${unit(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:n,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${unit(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},e1=hV;var SV=e=>{let{antCls:t,componentCls:o,iconSize:r,iconSizeSM:n,processIconColor:i,marginXXS:a,lineWidthBold:l,lineWidth:s,paddingXXS:c}=e,p=e.calc(r).add(e.calc(l).mul(4).equal()).equal(),d=e.calc(n).add(e.calc(e.lineWidth).mul(4).equal()).equal();return {[`&${o}-with-progress`]:{[`${o}-item`]:{paddingTop:c,[`&-process ${o}-item-container ${o}-item-icon ${o}-icon`]:{color:i}},[`&${o}-vertical > ${o}-item `]:{paddingInlineStart:c,[`> ${o}-item-container > ${o}-item-tail`]:{top:a,insetInlineStart:e.calc(r).div(2).sub(s).add(c).equal()}},[`&, &${o}-small`]:{[`&${o}-horizontal ${o}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${o}-small${o}-vertical > ${o}-item > ${o}-item-container > ${o}-item-tail`]:{insetInlineStart:e.calc(n).div(2).sub(s).add(c).equal()},[`&${o}-label-vertical ${o}-item ${o}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${o}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${unit(p)} !important`,height:`${unit(p)} !important`}}},[`&${o}-small`]:{[`&${o}-label-vertical ${o}-item ${o}-item-tail`]:{top:e.calc(n).div(2).add(c).equal()},[`${o}-item-icon ${t}-progress-inner`]:{width:`${unit(d)} !important`,height:`${unit(d)} !important`}}}}},t1=SV;var bV=e=>{let{componentCls:t,descriptionMaxWidth:o,lineHeight:r,dotCurrentSize:n,dotSize:i,motionDurationSlow:a}=e;return {[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${unit(e.calc(o).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${unit(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:unit(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:o},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(n).div(2).equal(),width:n,height:n,lineHeight:unit(n),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(n).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(n).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(n).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${unit(e.calc(i).add(e.paddingXS).equal())} 0 ${unit(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(n).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},o1=bV;var xV=e=>{let{componentCls:t}=e;return {[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},r1=xV;var TV=e=>{let{componentCls:t,iconSizeSM:o,fontSizeSM:r,fontSize:n,colorTextDescription:i}=e;return {[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:o,height:o,marginTop:0,marginBottom:0,marginInline:`0 ${unit(e.marginXS)}`,fontSize:r,lineHeight:unit(o),textAlign:"center",borderRadius:o},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:n,lineHeight:unit(o),"&::after":{top:e.calc(o).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:n},[`${t}-item-tail`]:{top:e.calc(o).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:o,lineHeight:unit(o),transform:"none"}}}}},n1=TV;var vV=e=>{let{componentCls:t,iconSizeSM:o,iconSize:r}=e;return {[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:unit(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${unit(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${unit(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(o).div(2).sub(e.lineWidth).equal(),padding:`${unit(e.calc(e.marginXXS).mul(1.5).add(o).equal())} 0 ${unit(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:unit(o)}}}}},i1=vV;var PV="wait",$V="process",RV="finish",IV="error",Km=(e,t)=>{let o=`${t.componentCls}-item`,r=`${e}IconColor`,n=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,s=`${e}IconBorderColor`,c=`${e}DotColor`;return {[`${o}-${e} ${o}-icon`]:{backgroundColor:t[l],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${o}-${e}${o}-custom ${o}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${o}-${e} > ${o}-container > ${o}-content > ${o}-title`]:{color:t[n],"&::after":{backgroundColor:t[a]}},[`${o}-${e} > ${o}-container > ${o}-content > ${o}-description`]:{color:t[i]},[`${o}-${e} > ${o}-container > ${o}-tail::after`]:{backgroundColor:t[a]}}},wV=e=>{let{componentCls:t,motionDurationSlow:o}=e,r=`${t}-item`,n=`${r}-icon`;return {[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[n]:{...wo(e)}}},[`${n}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[n]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:unit(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${o}, border-color ${o}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${o}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:unit(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize},...Km(PV,e),...Km($V,e),[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong},...Km(RV,e),...Km(IV,e),[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}}},NV=e=>{let{componentCls:t,motionDurationSlow:o}=e;return {[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${o}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},MV=e=>{let{componentCls:t}=e;return {[t]:{...ne(e),display:"flex",width:"100%",fontSize:0,textAlign:"initial",...wV(e),...NV(e),...YR(e),...n1(e),...i1(e),...ZR(e),...JR(e),...o1(e),...e1(e),...r1(e),...t1(e),...QR(e)}}},EV=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-0.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),a1=te("Steps",e=>{let{colorTextDisabled:t,controlHeightLG:o,colorTextLightSolid:r,colorText:n,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:l,colorError:s,colorBorderSecondary:c,colorSplit:p}=e,d=mergeToken(e,{processIconColor:r,processTitleColor:n,processDescriptionColor:n,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:p,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:p,waitDotColor:t,finishIconColor:i,finishTitleColor:n,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:s,errorDescriptionColor:s,errorTailColor:p,errorIconBgColor:s,errorIconBorderColor:s,errorDotColor:s,stepsNavActiveColor:i,stepsProgressSize:o,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:c});return [MV(d)]},EV);function BV(e){return e.filter(t=>t)}function kC(e,t){if(e)return e;let o=kv(t).map(r=>{if(ue.isValidElement(r)){let{props:n}=r;return {...n}}return null});return BV(o)}var c1=e=>{let{percent:t,size:o,className:r,rootClassName:n,direction:i,items:a,responsive:l=true,current:s=0,children:c,style:p,...d}=e,{xs:m}=Vo(l),{getPrefixCls:f,direction:u,steps:g}=ue.useContext(B),y=ue.useMemo(()=>l&&m?"vertical":i,[m,i]),S=Te(o),h=f("steps",e.prefixCls),[C,b,v]=a1(h),x=e.type==="inline",T=f("",e.iconPrefix),$=kC(a,c),R=x?void 0:t,P={...g?.style,...p},I=ki(g?.className,{[`${h}-rtl`]:u==="rtl",[`${h}-with-progress`]:R!==void 0},r,n,b,v),M={finish:ue.createElement(C3,{className:`${h}-finish-icon`}),error:ue.createElement(Ck,{className:`${h}-error-icon`})};return C(ue.createElement(s1,{icons:M,...d,style:P,current:s,size:S,items:$,itemRender:x?(N,A)=>N.description?ue.createElement(nt,{title:N.description},A):A:void 0,stepIcon:({node:N,status:A})=>{if(A==="process"&&R!==void 0){let k=S==="small"?32:40;return ue.createElement("div",{className:`${h}-progress-icon`},ue.createElement(Ac,{type:"circle",percent:R,size:k,strokeWidth:4,format:()=>null}),N)}return N},direction:y,prefixCls:h,iconPrefix:T,className:I}))};c1.Step=s1.Step;var OV=c1;var LV=e=>{let{componentCls:t,trackHeightSM:o,trackPadding:r,trackMinWidthSM:n,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,p=unit(s(l).add(s(r).mul(2)).equal()),d=unit(s(a).mul(2).equal());return {[t]:{[`&${t}-small`]:{minWidth:n,height:o,lineHeight:unit(o),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:o},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${p} - ${d})`,marginInlineEnd:`calc(100% - ${p} + ${d})`},[`${c}-unchecked`]:{marginTop:s(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${p} + ${d})`,marginInlineEnd:`calc(-100% + ${p} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${unit(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},HV=e=>{let{componentCls:t,handleSize:o,calc:r}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(o).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},WV=e=>{let{componentCls:t,trackPadding:o,handleBg:r,handleShadow:n,handleSize:i,calc:a}=e,l=`${t}-handle`;return {[t]:{[l]:{position:"absolute",top:o,insetInlineStart:o,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:n,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${unit(a(i).add(o).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},GV=e=>{let{componentCls:t,trackHeight:o,trackPadding:r,innerMinMargin:n,innerMaxMargin:i,handleSize:a,calc:l}=e,s=`${t}-inner`,c=unit(l(a).add(l(r).mul(2)).equal()),p=unit(l(i).mul(2).equal());return {[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:n,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:o},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${p})`,marginInlineEnd:`calc(100% - ${c} + ${p})`},[`${s}-unchecked`]:{marginTop:l(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:n,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${p})`,marginInlineEnd:`calc(-100% + ${c} - ${p})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},VV=e=>{let{componentCls:t,trackHeight:o,trackMinWidth:r}=e;return {[t]:{...ne(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:o,lineHeight:unit(o),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...St(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},_V=e=>{let{fontSize:t,lineHeight:o,controlHeight:r,colorWhite:n}=e,i=t*o,a=r/2,l=2,s=i-l*2,c=a-l*2;return {trackHeight:i,trackHeightSM:a,trackMinWidth:s*2+l*4,trackMinWidthSM:c*2+l*2,trackPadding:l,handleBg:n,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new TinyColor("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+l+l*2}},p1=te("Switch",e=>{let t=mergeToken(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [VV(t),GV(t),WV(t),HV(t),LV(t)]},_V);var KV=ue.forwardRef((e,t)=>{let{prefixCls:o,size:r,disabled:n,loading:i,className:a,rootClassName:l,style:s,checked:c,value:p,defaultChecked:d,defaultValue:m,onChange:f,...u}=e,[g,y]=e0(false,{value:c??p,defaultValue:d??m}),{getPrefixCls:S,direction:h,switch:C}=ue.useContext(B),b=ue.useContext(Be),v=(n??b)||i,x=S("switch",o),T=ue.createElement("div",{className:`${x}-handle`},i&&ue.createElement(Xw,{className:`${x}-loading-icon`})),[$,R,P]=p1(x),I=Te(r),M=ki(C?.className,{[`${x}-small`]:I==="small",[`${x}-loading`]:i,[`${x}-rtl`]:h==="rtl"},a,l,R,P),E={...C?.style,...s};return $(ue.createElement(rn,{component:"Switch"},ue.createElement(qV,{...u,checked:g,onChange:(...N)=>{y(N[0]),f?.(...N);},prefixCls:x,className:M,style:E,disabled:v,ref:t,loadingIcon:T})))}),d1=KV;d1.__ANT_SWITCH=true;var BC=d1;var YV=e=>null,m1=YV;var ZV=e=>null,u1=ZV;function Ts(e){let[t,o]=useState(null);return [useCallback((i,a,l)=>{let s=t??i,c=Math.min(s||0,i),p=Math.max(s||0,i),d=a.slice(c,p+1).map(u=>e(u)),m=d.some(u=>!l.has(u)),f=[];return d.forEach(u=>{m?(l.has(u)||f.push(u),l.add(u)):(l.delete(u),f.push(u));}),o(m?p:null),f},[t]),i=>{o(i);}]}var Zr={},Ym="SELECT_ALL",Zm="SELECT_INVERT",Qm="SELECT_NONE",f1=[],g1=(e,t)=>{let o=[];return (t||[]).forEach(r=>{o.push(r),r&&typeof r=="object"&&e in r&&(o=[...o,...g1(e,r[e])]);}),o},a_=(e,t)=>{let{preserveSelectedRowKeys:o,selectedRowKeys:r,defaultSelectedRowKeys:n,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:s,onSelectInvert:c,onSelectNone:p,onSelectMultiple:d,columnWidth:m,type:f,selections:u,fixed:g,renderCell:y,hideSelectAll:S,checkStrictly:h=true}=t||{},{prefixCls:C,data:b,pageData:v,getRecordByKey:x,getRowKey:T,expandType:$,childrenColumnName:R,locale:P,getPopupContainer:I}=e,M=ht(),[E,w]=Ts(V=>V),[N,A]=e0(r||n||f1,{value:r}),k=ue.useRef(new Map),D=useCallback(V=>{if(o){let U=new Map;V.forEach(Y=>{let J=x(Y);!J&&k.current.has(Y)&&(J=k.current.get(Y)),U.set(Y,J);}),k.current=U;}},[x,o]);ue.useEffect(()=>{D(N);},[N]);let F=useMemo(()=>g1(R,v),[R,v]),{keyEntities:O}=useMemo(()=>{if(h)return {keyEntities:null};let V=b;if(o){let U=new Set(F.map((J,ie)=>T(J,ie))),Y=Array.from(k.current).reduce((J,[ie,ee])=>U.has(ie)?J:J.concat(ee),[]);V=[...V,...Y];}return convertDataToEntities(V,{externalGetKey:T,childrenPropName:R})},[b,T,h,R,o,F]),L=useMemo(()=>{let V=new Map;return F.forEach((U,Y)=>{let J=T(U,Y),ie=(i?i(U):null)||{};V.set(J,ie);}),V},[F,T,i]),_=useCallback(V=>!!L.get(T(V))?.disabled,[L,T]),[H,z]=useMemo(()=>{if(h)return [N||[],[]];let{checkedKeys:V,halfCheckedKeys:U}=conductCheck(N,true,O,_);return [V||[],U]},[N,h,O,_]),G=useMemo(()=>{let V=f==="radio"?H.slice(0,1):H;return new Set(V)},[H,f]),W=useMemo(()=>f==="radio"?new Set:new Set(z),[z,f]);ue.useEffect(()=>{t||A(f1);},[!!t]);let q=useCallback((V,U)=>{let Y,J;D(V),o?(Y=V,J=V.map(ie=>k.current.get(ie))):(Y=[],J=[],V.forEach(ie=>{let ee=x(ie);ee!==void 0&&(Y.push(ie),J.push(ee));})),A(Y),a?.(Y,J,{type:U});},[A,x,a,o]),j=useCallback((V,U,Y,J)=>{if(l){let ie=Y.map(ee=>x(ee));l(x(V),U,ie,J);}q(Y,"single");},[l,x,q]),K=useMemo(()=>!u||S?null:(u===true?[Ym,Zm,Qm]:u).map(U=>U===Ym?{key:"all",text:P.selectionAll,onSelect(){q(b.map((Y,J)=>T(Y,J)).filter(Y=>!L.get(Y)?.disabled||G.has(Y)),"all");}}:U===Zm?{key:"invert",text:P.selectInvert,onSelect(){let Y=new Set(G);v.forEach((ie,ee)=>{let X=T(ie,ee);L.get(X)?.disabled||(Y.has(X)?Y.delete(X):Y.add(X));});let J=Array.from(Y);c&&(M.deprecated(false,"onSelectInvert","onChange"),c(J)),q(J,"invert");}}:U===Qm?{key:"none",text:P.selectNone,onSelect(){p?.(),q(Array.from(G).filter(Y=>L.get(Y)?.disabled),"none");}}:U).map(U=>({...U,onSelect:(...Y)=>{U.onSelect?.(...Y),w(null);}})),[u,G,v,T,c,q]);return [useCallback(V=>{if(!t)return M(!V.includes(Zr),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),V.filter(me=>me!==Zr);let U=[...V],Y=new Set(G),J=F.map(T).filter(me=>!L.get(me).disabled),ie=J.every(me=>Y.has(me)),ee=J.some(me=>Y.has(me)),X=()=>{let me=[];ie?J.forEach(Ne=>{Y.delete(Ne),me.push(Ne);}):J.forEach(Ne=>{Y.has(Ne)||(Y.add(Ne),me.push(Ne));});let Re=Array.from(Y);s?.(!ie,Re.map(Ne=>x(Ne)),me.map(Ne=>x(Ne))),q(Re,"all"),w(null);},Z,re;if(f!=="radio"){let me;if(K){let fe={getPopupContainer:I,items:K.map((le,ce)=>{let{key:pe,text:he,onSelect:it}=le;return {key:pe??ce,onClick:()=>{it?.(J);},label:he}})};me=ue.createElement("div",{className:`${C}-selection-extra`},ue.createElement(Wa,{menu:fe,getPopupContainer:I},ue.createElement("span",null,ue.createElement(b3,null))));}let Re=F.map((fe,le)=>{let ce=T(fe,le),pe=L.get(ce)||{};return {checked:Y.has(ce),...pe}}).filter(({disabled:fe})=>fe),Ne=!!Re.length&&Re.length===F.length,Me=Ne&&Re.every(({checked:fe})=>fe),De=Ne&&Re.some(({checked:fe})=>fe);re=ue.createElement(pr,{checked:Ne?Me:!!F.length&&ie,indeterminate:Ne?!Me&&De:!ie&&ee,onChange:X,disabled:F.length===0||Ne,"aria-label":me?"Custom selection":"Select all",skipGroup:true}),Z=!S&&ue.createElement("div",{className:`${C}-selection`},re,me);}let ae;f==="radio"?ae=(me,Re,Ne)=>{let Me=T(Re,Ne),De=Y.has(Me),fe=L.get(Me);return {node:ue.createElement(Na,{...fe,checked:De,onClick:le=>{le.stopPropagation(),fe?.onClick?.(le);},onChange:le=>{Y.has(Me)||j(Me,true,[Me],le.nativeEvent),fe?.onChange?.(le);}}),checked:De}}:ae=(me,Re,Ne)=>{let Me=T(Re,Ne),De=Y.has(Me),fe=W.has(Me),le=L.get(Me),ce;return $==="nest"?(ce=fe,M(typeof le?.indeterminate!="boolean","usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ce=le?.indeterminate??fe,{node:ue.createElement(pr,{...le,indeterminate:ce,checked:De,skipGroup:true,onClick:pe=>{pe.stopPropagation(),le?.onClick?.(pe);},onChange:pe=>{let{nativeEvent:he}=pe,{shiftKey:it}=he,go=J.findIndex(Ue=>Ue===Me),je=H.some(Ue=>J.includes(Ue));if(it&&h&&je){let Ue=E(go,J,Y),Po=Array.from(Y);d?.(!De,Po.map($o=>x($o)),Ue.map($o=>x($o))),q(Po,"multiple");}else {let Ue=H;if(h){let Po=De?arrDel(Ue,Me):arrAdd(Ue,Me);j(Me,!De,Po,he);}else {let Po=conductCheck([...Ue,Me],true,O,_),{checkedKeys:$o,halfCheckedKeys:br}=Po,Ro=$o;if(De){let ai=new Set($o);ai.delete(Me),Ro=conductCheck(Array.from(ai),{checked:false,halfCheckedKeys:br},O,_).checkedKeys;}j(Me,!De,Ro,he);}}w(De?null:go),le?.onChange?.(pe);}}),checked:De}};let se=(me,Re,Ne)=>{let{node:Me,checked:De}=ae(me,Re,Ne);return y?y(De,Re,Ne,Me):Me};if(!U.includes(Zr))if(U.findIndex(me=>me[INTERNAL_COL_DEFINE]?.columnType==="EXPAND_COLUMN")===0){let[me,...Re]=U;U=[me,Zr,...Re];}else U=[Zr,...U];let Ce=U.indexOf(Zr);M(U.filter(me=>me===Zr).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),U=U.filter((me,Re)=>me!==Zr||Re===Ce);let $e=U[Ce-1],Ge=U[Ce+1],xe=g;xe===void 0&&(Ge?.fixed!==void 0?xe=Ge.fixed:$e?.fixed!==void 0&&(xe=$e.fixed)),xe&&$e&&$e[INTERNAL_COL_DEFINE]?.columnType==="EXPAND_COLUMN"&&$e.fixed===void 0&&($e.fixed=xe);let qe=ki(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:u&&f==="checkbox"}),lt=()=>t?.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(re):t.columnTitle:Z,Ye={fixed:xe,width:m,className:`${C}-selection-column`,title:lt(),render:se,onCell:t.onCell,[INTERNAL_COL_DEFINE]:{className:qe}};return U.map(me=>me===Zr?Ye:me)},[T,F,t,H,G,W,m,K,$,L,d,j,_]),G]},y1=a_;function s_(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(o=>{if(!(o in e._antProxy)){let r=e[o];e._antProxy[o]=r,e[o]=t[o];}}),e}function FC(e,t){return useImperativeHandle(e,()=>{let o=t(),{nativeElement:r}=o;return typeof Proxy<"u"?new Proxy(r,{get(n,i){return o[i]?o[i]:Reflect.get(n,i)}}):s_(r,o)})}function p_(e){return t=>{let{prefixCls:o,onExpand:r,record:n,expanded:i,expandable:a}=t,l=`${o}-row-expand-icon`;return ue.createElement("button",{type:"button",onClick:s=>{r(n,s),s.stopPropagation();},className:ki(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}var h1=p_;function OC(e){return (o,r)=>{let n=o.querySelector(`.${e}-container`),i=r;if(n){let a=getComputedStyle(n),l=parseInt(a.borderLeftWidth,10),s=parseInt(a.borderRightWidth,10);i=r-l-s;}return i}}var Tn=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function Yi(e,t){return t?`${t}-${e}`:`${e}`}var Qa=(e,t)=>typeof e=="function"?e(t):e,S1=(e,t)=>{let o=Qa(e,t);return Object.prototype.toString.call(o)==="[object Object]"?"":o};function zC(e){let t=ue.useRef(e),o=Ln();return [()=>t.current,r=>{t.current=r,o();}]}var x1=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:o,directoryNodeSelectedColor:r,motionDurationMid:n,borderRadius:i,controlItemBgHover:a})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${n}`,content:'""',borderRadius:i},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:o}}}}});var m_=new Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),u_=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),f_=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),g_=(e,t)=>{let{treeCls:o,treeNodeCls:r,treeNodePadding:n,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:c}=t;return {[o]:{...ne(t),background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${o}-rtl ${o}-switcher_close ${o}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${o}-active-focused)`]:{...wo(t)},[`${o}-list-holder-inner`]:{alignItems:"flex-start"},[`&${o}-block-node`]:{[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:m_,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:n,lineHeight:unit(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:n},[`&-disabled ${o}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&:not(${r}-disabled)`]:{[`${o}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${o}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${o}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${o}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${o}-draggable-icon`]:{visibility:"hidden"}}},[`${o}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${o}-draggable-icon`]:{visibility:"hidden"},[`${o}-switcher, ${o}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${o}-switcher`]:{...u_(e,t),position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:true,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${o}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${o}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(n).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${o}-node-content-wrapper`]:{position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,...f_(e,t),"&:hover":{backgroundColor:s},[`&${o}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${o}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${o}-unselectable ${o}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${o}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(n).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${o}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${o}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${unit(t.calc(i).div(2).equal())} !important`}}}},HC=(e,t)=>{let o=`.${e}`,r=`${o}-treenode`,n=t.calc(t.paddingXS).div(2).equal(),i=mergeToken(t,{treeCls:o,treeNodeCls:r,treeNodePadding:n});return [g_(e,i),x1(i)]},WC=e=>{let{controlHeightSM:t,controlItemBgHover:o,controlItemBgActive:r}=e,n=t;return {titleHeight:n,indentSize:n,nodeHoverBg:o,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},y_=e=>{let{colorTextLightSolid:t,colorPrimary:o}=e;return {...WC(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:o}},T1=te("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:Da(`${t}-checkbox`,e)},HC(t,e),zr(e)],y_);var v1=4;function h_(e){let{dropPosition:t,dropLevelOffset:o,prefixCls:r,indent:n,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",s={[a]:-o*n+v1,[l]:0};switch(t){case -1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=n+v1;break}return ue__default.createElement("div",{style:s,className:`${r}-drop-indicator`})}var P1=h_;var P_=e=>{let{prefixCls:t,switcherIcon:o,treeNodeProps:r,showLine:n,switcherLoadingIcon:i}=e,{isLeaf:a,expanded:l,loading:s}=r;if(s)return ue.isValidElement(i)?i:ue.createElement(Xw,{className:`${t}-switcher-loading-icon`});let c;if(n&&typeof n=="object"&&(c=n.showLeafIcon),a){if(!n)return null;if(typeof c!="boolean"&&c){let m=typeof c=="function"?c(r):c,f=`${t}-switcher-line-custom-icon`;return ue.isValidElement(m)?Pe(m,{className:ki(m.props.className||"",f)}):m}return c?ue.createElement(b_,{className:`${t}-switcher-line-icon`}):ue.createElement("span",{className:`${t}-switcher-leaf-line`})}let p=`${t}-switcher-icon`,d=typeof o=="function"?o(r):o;return ue.isValidElement(d)?Pe(d,{className:ki(d.props.className||"",p)}):d!==void 0?d:n?l?ue.createElement(T_,{className:`${t}-switcher-line-icon`}):ue.createElement(v_,{className:`${t}-switcher-line-icon`}):ue.createElement(S_,{className:p})},Jm=P_;var w_=ue__default.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r,virtual:n,tree:i}=ue__default.useContext(B),{prefixCls:a,className:l,showIcon:s=false,showLine:c,switcherIcon:p,switcherLoadingIcon:d,blockNode:m=false,children:f,checkable:u=false,selectable:g=true,draggable:y,motion:S,style:h}=e,C=o("tree",a),b=o(),v=S??{...Or(b),motionAppear:false},x={...e,checkable:u,selectable:g,showIcon:s,motion:v,blockNode:m,showLine:!!c,dropIndicatorRender:P1},[T,$,R]=T1(C),[,P]=ve(),I=P.paddingXS/2+(P.Tree?.titleHeight||P.controlHeightSM),M=ue__default.useMemo(()=>{if(!y)return false;let w={};switch(typeof y){case "function":w.nodeDraggable=y;break;case "object":w={...y};break;}return w.icon!==false&&(w.icon=w.icon||ue__default.createElement($_,null)),w},[y]),E=w=>ue__default.createElement(Jm,{prefixCls:C,switcherIcon:p,switcherLoadingIcon:d,treeNodeProps:w,showLine:c});return T(ue__default.createElement(I_,{itemHeight:I,ref:t,virtual:n,...x,style:{...i?.style,...h},prefixCls:C,className:ki({[`${C}-icon-hide`]:!s,[`${C}-block-node`]:m,[`${C}-unselectable`]:!g,[`${C}-rtl`]:r==="rtl"},i?.className,l,$,R),direction:r,checkable:u&&ue__default.createElement("span",{className:`${C}-checkbox-inner`}),selectable:g,switcherIcon:E,draggable:M},f))}),eu=w_;var R1=0,GC=1,I1=2;function VC(e,t,o){let{key:r,children:n}=o;function i(a){let l=a[r],s=a[n];t(l,a)!==false&&VC(s||[],t,o);}e.forEach(i);}function N1({treeData:e,expandedKeys:t,startKey:o,endKey:r,fieldNames:n}){let i=[],a=R1;if(o&&o===r)return [o];if(!o||!r)return [];function l(s){return s===o||s===r}return VC(e,s=>{if(a===I1)return false;if(l(s)){if(i.push(s),a===R1)a=GC;else if(a===GC)return a=I1,false}else a===GC&&i.push(s);return t.includes(s)},fillFieldNames(n)),i}function tu(e,t,o){let r=[...t],n=[];return VC(e,(i,a)=>{let l=r.indexOf(i);return l!==-1&&(n.push(a),r.splice(l,1)),!!r.length},fillFieldNames(o)),n}function F_(e){let{isLeaf:t,expanded:o}=e;return t?ue.createElement(b_,null):o?ue.createElement(M_,null):ue.createElement(E_,null)}function M1({treeData:e,children:t}){return e||convertTreeToData(t)}var O_=({defaultExpandAll:e,defaultExpandParent:t,defaultExpandedKeys:o,...r},n)=>{let i=ue.useRef(null),a=ue.useRef(null),l=()=>{let{keyEntities:T}=convertDataToEntities(M1(r)),$;return e?$=Object.keys(T):t?$=conductExpandParent(r.expandedKeys||o||[],T):$=r.expandedKeys||o||[],$},[s,c]=ue.useState(r.selectedKeys||r.defaultSelectedKeys||[]),[p,d]=ue.useState(()=>l());ue.useEffect(()=>{"selectedKeys"in r&&c(r.selectedKeys);},[r.selectedKeys]),ue.useEffect(()=>{"expandedKeys"in r&&d(r.expandedKeys);},[r.expandedKeys]);let m=(T,$)=>("expandedKeys"in r||d(T),r.onExpand?.(T,$)),f=(T,$)=>{let{multiple:R,fieldNames:P}=r,{node:I,nativeEvent:M}=$,{key:E=""}=I,w=M1(r),N={...$,selected:true},A=M?.ctrlKey||M?.metaKey,k=M?.shiftKey,D;R&&A?(D=T,i.current=E,a.current=D,N.selectedNodes=tu(w,D,P)):R&&k?(D=Array.from(new Set([...a.current||[],...N1({treeData:w,expandedKeys:p,startKey:E,endKey:i.current,fieldNames:P})])),N.selectedNodes=tu(w,D,P)):(D=[E],i.current=E,a.current=D,N.selectedNodes=tu(w,D,P)),r.onSelect?.(D,N),"selectedKeys"in r||c(D);},{getPrefixCls:u,direction:g}=ue.useContext(B),{prefixCls:y,className:S,showIcon:h=true,expandAction:C="click",...b}=r,v=u("tree",y),x=ki(`${v}-directory`,{[`${v}-directory-rtl`]:g==="rtl"},S);return ue.createElement(eu,{icon:F_,ref:n,blockNode:true,...b,showIcon:h,expandAction:C,prefixCls:v,className:x,expandedKeys:p,selectedKeys:s,onSelect:f,onExpand:m})},z_=ue.forwardRef(O_),E1=z_;var _C=eu;_C.DirectoryTree=E1;_C.TreeNode=TreeNode;var jC=_C;var W_=e=>{let{value:t,filterSearch:o,tablePrefixCls:r,locale:n,onChange:i}=e;return o?ue.createElement("div",{className:`${r}-filter-dropdown-search`},ue.createElement(jr,{prefix:ue.createElement(T3,null),placeholder:n.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},UC=W_;var V_=e=>{let{keyCode:t}=e;t===Cw.ENTER&&e.stopPropagation();},__=ue.forwardRef((e,t)=>ue.createElement("div",{className:e.className,onClick:o=>o.stopPropagation(),onKeyDown:V_,ref:t},e.children)),k1=__;function el(e){let t=[];return (e||[]).forEach(({value:o,children:r})=>{t.push(o),r&&(t=[...t,...el(r)]);}),t}function U_(e){return e.some(({children:t})=>t)}function D1(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):false}function A1({filters:e,prefixCls:t,filteredKeys:o,filterMultiple:r,searchValue:n,filterSearch:i}){return e.map((a,l)=>{let s=String(a.value);if(a.children)return {key:s||l,label:a.text,popupClassName:`${t}-dropdown-submenu`,children:A1({filters:a.children,prefixCls:t,filteredKeys:o,filterMultiple:r,searchValue:n,filterSearch:i})};let c=r?pr:Na,p={key:a.value!==void 0?s:l,label:ue.createElement(ue.Fragment,null,ue.createElement(c,{checked:o.includes(s)}),ue.createElement("span",null,a.text))};return n.trim()?typeof i=="function"?i(n,a)?p:null:D1(n,a.text)?p:null:p})}function XC(e){return e||[]}var q_=e=>{let{tablePrefixCls:t,prefixCls:o,column:r,dropdownPrefixCls:n,columnKey:i,filterOnClose:a,filterMultiple:l,filterMode:s="menu",filterSearch:c=false,filterState:p,triggerFilter:d,locale:m,children:f,getPopupContainer:u,rootClassName:g}=e,{filterResetToDefaultFilteredValue:y,defaultFilteredValue:S,filterDropdownProps:h={},filterDropdownOpen:C,filterDropdownVisible:b,onFilterDropdownVisibleChange:v,onFilterDropdownOpenChange:x}=r,[T,$]=ue.useState(false),R=!!(p&&(p.filteredKeys?.length||p.forceFiltered)),P=X=>{$(X),h.onOpenChange?.(X),x?.(X),v?.(X);},I=h.open??C??b??T,M=p?.filteredKeys,[E,w]=zC(XC(M)),N=({selectedKeys:X})=>{w(X);},A=(X,{node:Z,checked:re})=>{N(l?{selectedKeys:X}:{selectedKeys:re&&Z.key?[Z.key]:[]});};ue.useEffect(()=>{T&&N({selectedKeys:XC(M)});},[M]);let[k,D]=ue.useState([]),F=X=>{D(X);},[O,L]=ue.useState(""),_=X=>{let{value:Z}=X.target;L(Z);};ue.useEffect(()=>{T||L("");},[T]);let H=X=>{let Z=X?.length?X:null;if(Z===null&&(!p||!p.filteredKeys)||B1(Z,p?.filteredKeys,true))return null;d({column:r,key:i,filteredKeys:Z});},z=()=>{P(false),H(E());},G=({confirm:X,closeDropdown:Z}={confirm:false,closeDropdown:false})=>{X&&H([]),Z&&P(false),L(""),w(y?(S||[]).map(re=>String(re)):[]);},W=({closeDropdown:X}={closeDropdown:true})=>{X&&P(false),H(E());},q=(X,Z)=>{Z.source==="trigger"&&(X&&M!==void 0&&w(XC(M)),P(X),!X&&!r.filterDropdown&&a&&z());},j=ki({[`${n}-menu-without-submenu`]:!U_(r.filters||[])}),K=X=>{if(X.target.checked){let Z=el(r?.filters).map(re=>String(re));w(Z);}else w([]);},Q=({filters:X})=>(X||[]).map((Z,re)=>{let ae=String(Z.value),se={title:Z.text,key:Z.value!==void 0?ae:String(re)};return Z.children&&(se.children=Q({filters:Z.children})),se}),V=X=>({...X,text:X.title,value:X.key,children:X.children?.map(Z=>V(Z))||[]}),U,{direction:Y,renderEmpty:J}=ue.useContext(B);if(typeof r.filterDropdown=="function")U=r.filterDropdown({prefixCls:`${n}-custom`,setSelectedKeys:X=>N({selectedKeys:X}),selectedKeys:E(),confirm:W,clearFilters:G,filters:r.filters,visible:I,close:()=>{P(false);}});else if(r.filterDropdown)U=r.filterDropdown;else {let X=E()||[],Z=()=>{let ae=J?.("Table.filter")??ue.createElement(sn,{image:sn.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((r.filters||[]).length===0)return ae;if(s==="tree")return ue.createElement(ue.Fragment,null,ue.createElement(UC,{filterSearch:c,value:O,onChange:_,tablePrefixCls:t,locale:m}),ue.createElement("div",{className:`${t}-filter-dropdown-tree`},l?ue.createElement(pr,{checked:X.length===el(r.filters).length,indeterminate:X.length>0&&X.length<el(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:K},m.filterCheckall):null,ue.createElement(jC,{checkable:true,selectable:false,blockNode:true,multiple:l,checkStrictly:!l,className:`${n}-menu`,onCheck:A,checkedKeys:X,selectedKeys:X,showIcon:false,treeData:Q({filters:r.filters}),autoExpandParent:true,defaultExpandAll:true,filterTreeNode:O.trim()?$e=>typeof c=="function"?c(O,V($e)):D1(O,$e.title):void 0})));let se=A1({filters:r.filters||[],filterSearch:c,prefixCls:o,filteredKeys:E(),filterMultiple:l,searchValue:O}),Ce=se.every($e=>$e===null);return ue.createElement(ue.Fragment,null,ue.createElement(UC,{filterSearch:c,value:O,onChange:_,tablePrefixCls:t,locale:m}),Ce?ae:ue.createElement(fc,{selectable:true,multiple:l,prefixCls:`${n}-menu`,className:j,onSelect:N,onDeselect:N,selectedKeys:X,getPopupContainer:u,openKeys:k,onOpenChange:F,items:se}))},re=()=>y?B1((S||[]).map(ae=>String(ae)),X,true):X.length===0;U=ue.createElement(ue.Fragment,null,Z(),ue.createElement("div",{className:`${o}-dropdown-btns`},ue.createElement(Le,{type:"link",size:"small",disabled:re(),onClick:()=>G()},m.filterReset),ue.createElement(Le,{type:"primary",size:"small",onClick:z},m.filterConfirm)));}r.filterDropdown&&(U=ue.createElement(Fd,{selectable:void 0},U)),U=ue.createElement(k1,{className:`${o}-dropdown`},U);let ee=us({trigger:["click"],placement:Y==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let X;return typeof r.filterIcon=="function"?X=r.filterIcon(R):r.filterIcon?X=r.filterIcon:X=ue.createElement(j_,null),ue.createElement("span",{role:"button",tabIndex:-1,className:ki(`${o}-trigger`,{active:R}),onClick:Z=>{Z.stopPropagation();}},X)})(),getPopupContainer:u},{...h,rootClassName:ki(g,h.rootClassName),open:I,onOpenChange:q,dropdownRender:()=>typeof h?.dropdownRender=="function"?h.dropdownRender(U):U});return ue.createElement("div",{className:`${o}-column`},ue.createElement("span",{className:`${t}-column-title`},f),ue.createElement(Wa,{...ee}))},F1=q_;var KC=(e,t,o)=>{let r=[];return (e||[]).forEach((n,i)=>{let a=Yi(i,o);if(n.filters||"filterDropdown"in n||"onFilter"in n)if("filteredValue"in n){let l=n.filteredValue;"filterDropdown"in n||(l=l?.map(String)??l),r.push({column:n,key:Tn(n,a),filteredKeys:l,forceFiltered:n.filtered});}else r.push({column:n,key:Tn(n,a),filteredKeys:t&&n.defaultFilteredValue?n.defaultFilteredValue:void 0,forceFiltered:n.filtered});"children"in n&&(r=[...r,...KC(n.children,t,a)]);}),r};function z1(e,t,o,r,n,i,a,l,s){return o.map((c,p)=>{let d=Yi(p,l),{filterOnClose:m=true,filterMultiple:f=true,filterMode:u,filterSearch:g}=c,y=c;if(y.filters||y.filterDropdown){let S=Tn(y,d),h=r.find(({key:C})=>S===C);y={...y,title:C=>ue.createElement(F1,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:S,filterState:h,filterOnClose:m,filterMultiple:f,filterMode:u,filterSearch:g,triggerFilter:i,locale:n,getPopupContainer:a,rootClassName:s},Qa(c.title,C))};}return "children"in y&&(y={...y,children:z1(e,t,y.children,r,n,i,a,d,s)}),y})}var O1=e=>{let t={};return e.forEach(({key:o,filteredKeys:r,column:n})=>{let i=o,{filters:a,filterDropdown:l}=n;if(l)t[i]=r||null;else if(Array.isArray(r)){let s=el(a);t[i]=s.filter(c=>r.includes(String(c)));}else t[i]=null;}),t},nu=(e,t,o)=>t.reduce((n,i)=>{let{column:{onFilter:a,filters:l},filteredKeys:s}=i;return a&&s&&s.length?n.map(c=>({...c})).filter(c=>s.some(p=>{let d=el(l),m=d.findIndex(u=>String(u)===String(p)),f=m!==-1?d[m]:p;return c[o]&&(c[o]=nu(c[o],t,o)),a(f,c)})):n},e),L1=e=>e.flatMap(t=>"children"in t?[t,...L1(t.children||[])]:[t]),X_=e=>{let {prefixCls:t,dropdownPrefixCls:o,mergedColumns:r,onFilterChange:n,getPopupContainer:i,locale:a,rootClassName:l}=e;ht();let c=ue.useMemo(()=>L1(r||[]),[r]),[p,d]=ue.useState(()=>KC(c,true)),m=ue.useMemo(()=>{let y=KC(c,false);if(y.length===0)return y;let S=true;if(y.forEach(({filteredKeys:C})=>{C!==void 0?S=false:false;}),S){let C=(c||[]).map((b,v)=>Tn(b,Yi(v)));return p.filter(({key:b})=>C.includes(b)).map(b=>{let v=c[C.findIndex(x=>x===b.key)];return {...b,column:{...b.column,...v},forceFiltered:v.filtered}})}return y},[c,p]),f=ue.useMemo(()=>O1(m),[m]),u=y=>{let S=m.filter(({key:h})=>h!==y.key);S.push(y),d(S),n(O1(S),S);};return [y=>z1(t,o,y,m,a,u,i,void 0,l),m,f]};var H1=X_;var K_=(e,t,o)=>{let r=ue.useRef({});function n(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==o){let l=function(s){s.forEach((c,p)=>{let d=o(c,p);a.set(d,c),c&&typeof c=="object"&&t in c&&l(c[t]||[]);});},a=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:o};}return r.current.kvMap?.get(i)}return [n]},G1=K_;var YC=10;function V1(e,t){let o={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(n=>{let i=e[n];typeof i!="function"&&(o[n]=i);}),o}function Z_(e,t,o){let{total:r=0,...n}=o&&typeof o=="object"?o:{},[i,a]=useState(()=>({current:"defaultCurrent"in n?n.defaultCurrent:1,pageSize:"defaultPageSize"in n?n.defaultPageSize:YC})),l=us(i,n,{total:r>0?r:e}),s=Math.ceil((r||e)/l.pageSize);l.current>s&&(l.current=s||1);let c=(d,m)=>{a({current:d??1,pageSize:m||l.pageSize});},p=(d,m)=>{o&&o.onChange?.(d,m),c(d,m),t(d,m||l?.pageSize);};return o===false?[{},()=>{}]:[{...l,onChange:p},c]}var _1=Z_;var iu="ascend",ZC="descend",au=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:false,j1=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:false,tj=(e,t)=>t?e[e.indexOf(t)+1]:e[0],QC=(e,t,o)=>{let r=[],n=(i,a)=>{r.push({column:i,key:Tn(i,a),multiplePriority:au(i),sortOrder:i.sortOrder});};return (e||[]).forEach((i,a)=>{let l=Yi(a,o);i.children?("sortOrder"in i&&n(i,l),r=[...r,...QC(i.children,t,l)]):i.sorter&&("sortOrder"in i?n(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:Tn(i,l),multiplePriority:au(i),sortOrder:i.defaultSortOrder}));}),r},X1=(e,t,o,r,n,i,a,l)=>(t||[]).map((c,p)=>{let d=Yi(p,l),m=c;if(m.sorter){let f=m.sortDirections||n,u=m.showSorterTooltip===void 0?a:m.showSorterTooltip,g=Tn(m,d),y=o.find(({key:R})=>R===g),S=y?y.sortOrder:null,h=tj(f,S),C;if(c.sortIcon)C=c.sortIcon({sortOrder:S});else {let R=f.includes(iu)&&ue.createElement(J_,{className:ki(`${e}-column-sorter-up`,{active:S===iu})}),P=f.includes(ZC)&&ue.createElement(Q_,{className:ki(`${e}-column-sorter-down`,{active:S===ZC})});C=ue.createElement("span",{className:ki(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(R&&P)})},ue.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},R,P));}let{cancelSort:b,triggerAsc:v,triggerDesc:x}=i||{},T=b;h===ZC?T=x:h===iu&&(T=v);let $=typeof u=="object"?{title:T,...u}:{title:T};m={...m,className:ki(m.className,{[`${e}-column-sort`]:S}),title:R=>{let P=`${e}-column-sorters`,I=ue.createElement("span",{className:`${e}-column-title`},Qa(c.title,R)),M=ue.createElement("div",{className:P},I,C);return u?typeof u!="boolean"&&u?.target==="sorter-icon"?ue.createElement("div",{className:`${P} ${e}-column-sorters-tooltip-target-sorter`},I,ue.createElement(nt,{...$},C)):ue.createElement(nt,{...$},M):M},onHeaderCell:R=>{let P=c.onHeaderCell?.(R)||{},I=P.onClick,M=P.onKeyDown;P.onClick=N=>{r({column:c,key:g,sortOrder:h,multiplePriority:au(c)}),I?.(N);},P.onKeyDown=N=>{N.keyCode===Cw.ENTER&&(r({column:c,key:g,sortOrder:h,multiplePriority:au(c)}),M?.(N));};let E=S1(c.title,{}),w=E?.toString();return S?P["aria-sort"]=S==="ascend"?"ascending":"descending":P["aria-label"]=w||"",P.className=ki(P.className,`${e}-column-has-sorters`),P.tabIndex=0,c.ellipsis&&(P.title=(E??"").toString()),P}};}return "children"in m&&(m={...m,children:X1(e,m.children,o,r,n,i,a,d)}),m}),U1=e=>{let{column:t,sortOrder:o}=e;return {column:t,order:o,field:t.dataIndex,columnKey:t.key}},q1=e=>{let t=e.filter(({sortOrder:o})=>o).map(U1);if(t.length===0&&e.length){let o=e.length-1;return {...U1(e[o]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},lu=(e,t,o)=>{let r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),n=e.slice(),i=r.filter(({column:{sorter:a},sortOrder:l})=>j1(a)&&l);return i.length?n.sort((a,l)=>{for(let s=0;s<i.length;s+=1){let c=i[s],{column:{sorter:p},sortOrder:d}=c,m=j1(p);if(m&&d){let f=m(a,l,d);if(f!==0)return d===iu?f:-f}}return 0}).map(a=>{let l=a[o];return l?{...a,[o]:lu(l,t,o)}:a}):n},oj=e=>{let{prefixCls:t,mergedColumns:o,sortDirections:r,tableLocale:n,showSorterTooltip:i,onSorterChange:a}=e,[l,s]=ue.useState(QC(o,true)),c=(g,y)=>{let S=[];return g.forEach((h,C)=>{let b=Yi(C,y);if(S.push(Tn(h,b)),Array.isArray(h.children)){let v=c(h.children,b);S.push(...v);}}),S},p=ue.useMemo(()=>{let g=true,y=QC(o,false);if(!y.length){let b=c(o);return l.filter(({key:v})=>b.includes(v))}let S=[];function h(b){g?S.push(b):S.push({...b,sortOrder:null});}let C=null;return y.forEach(b=>{C===null?(h(b),b.sortOrder&&(b.multiplePriority===false?g=false:C=true)):(C&&b.multiplePriority!==false||(g=false),h(b));}),S},[o,l]),d=ue.useMemo(()=>{let g=p.map(({column:y,sortOrder:S})=>({column:y,order:S}));return {sortColumns:g,sortColumn:g[0]?.column,sortOrder:g[0]?.order}},[p]),m=g=>{let y;g.multiplePriority===false||!p.length||p[0].multiplePriority===false?y=[g]:y=[...p.filter(({key:S})=>S!==g.key),g],s(y),a(q1(y),y);};return [g=>X1(t,g,p,m,r,n,i),p,d,()=>q1(p)]},K1=oj;var Z1=(e,t)=>e.map(r=>{let n={...r};return n.title=Qa(r.title,t),"children"in n&&(n.children=Z1(n.children,t)),n}),rj=e=>[ue.useCallback(o=>Z1(o,e),[e])],Q1=rj;var ij=genTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),J1=ij;var lj=genVirtualTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),eI=lj;var sj=e=>{let{componentCls:t,lineWidth:o,lineType:r,tableBorderColor:n,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:s}=e,c=`${unit(o)} ${r} ${n}`,p=(d,m,f)=>({[`&${t}-${d}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${unit(s(m).mul(-1).equal())}
|
|
249
|
+
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:unit(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${unit(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:unit(e.controlHeight),verticalAlign:"top",input:{...Tn(e),...$m(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...qa(e)},width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},yG=e=>{let{componentCls:t}=e;return {[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:unit(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${unit(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},CG=e=>{let{componentCls:t}=e;return {[t]:{...ae(e),display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:unit(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"},...yG(e),...gG(e),...fG(e),...uG(e),...mG(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},hG=e=>{let{componentCls:t}=e;return {[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...$t(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Fo(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:{...Fo(e)}}}}},dh=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...zr(e)}),mh=e=>mergeToken(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Fr(e)),JR=oe("Pagination",e=>{let t=mh(e);return [CG(t),hG(t)]},dh);var SG=e=>{let{componentCls:t}=e;return {[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},e1=zo(["Pagination","bordered"],e=>{let t=mh(e);return [SG(t)]},dh);function uu(e){return useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[true,e]:[void 0,void 0],[e])}var $G=e=>{let{align:t,prefixCls:o,selectPrefixCls:r,className:n,rootClassName:i,style:a,size:l,locale:s,responsive:c,showSizeChanger:p,selectComponentClass:m,pageSizeOptions:d,...f}=e,{xs:u}=Zo(c),[,g]=De(),{getPrefixCls:y,direction:h,pagination:b={}}=ve.useContext(O),C=y("pagination",o),[S,v,x]=JR(C),$=ke(l),R=$==="small"||!!(u&&!$&&c),[T]=Ae("Pagination",Yk),P={...T,...s},[N,M]=uu(p),[E,I]=uu(b.showSizeChanger),w=N??E,B=M??I,k=m||Ao,D=ve.useMemo(()=>d?d.map(z=>Number(z)):void 0,[d]),F=z=>{let{disabled:G,size:_,onSizeChange:Z,"aria-label":K,className:Q,options:ee}=z,{className:j,onChange:Y}=B||{},J=ee.find(te=>String(te.value)===String(_))?.value;return ve.createElement(k,{disabled:G,showSearch:true,popupMatchSelectWidth:false,getPopupContainer:te=>te.parentNode,"aria-label":K,options:ee,...B,value:J,onChange:(te,ue)=>{Z?.(te),Y?.(te,ue);},size:R?"small":"middle",className:Xi(Q,j)})},A=ve.useMemo(()=>{let z=ve.createElement("span",{className:`${C}-item-ellipsis`},"\u2022\u2022\u2022"),G=ve.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},h==="rtl"?ve.createElement(C0,null):ve.createElement(y0,null)),_=ve.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},h==="rtl"?ve.createElement(y0,null):ve.createElement(C0,null)),Z=ve.createElement("a",{className:`${C}-item-link`},ve.createElement("div",{className:`${C}-item-container`},h==="rtl"?ve.createElement(o1,{className:`${C}-item-link-icon`}):ve.createElement(t1,{className:`${C}-item-link-icon`}),z)),K=ve.createElement("a",{className:`${C}-item-link`},ve.createElement("div",{className:`${C}-item-container`},h==="rtl"?ve.createElement(t1,{className:`${C}-item-link-icon`}):ve.createElement(o1,{className:`${C}-item-link-icon`}),z));return {prevIcon:G,nextIcon:_,jumpPrevIcon:Z,jumpNextIcon:K}},[h,C]),L=y("select",r),q=Xi({[`${C}-${t}`]:!!t,[`${C}-mini`]:R,[`${C}-rtl`]:h==="rtl",[`${C}-bordered`]:g.wireframe},b?.className,n,i,v,x),V={...b?.style,...a};return S(ve.createElement(ve.Fragment,null,g.wireframe&&ve.createElement(e1,{prefixCls:C}),ve.createElement(vG,{...A,...f,style:V,prefixCls:C,selectPrefixCls:L,className:q,locale:P,pageSizeOptions:D,showSizeChanger:w,sizeChangerRender:F})))},a1=$G;var cl=a1;var fu=100,p1=fu/5,d1=fu/2-p1/2,uh=d1*2*Math.PI,l1=50,s1=e=>{let{dotClassName:t,style:o,hasCircleCls:r}=e;return ve.createElement("circle",{className:Xi(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:d1,cx:l1,cy:l1,strokeWidth:p1,style:o})},RG=({percent:e,prefixCls:t})=>{let o=`${t}-dot`,r=`${o}-holder`,n=`${r}-hidden`,[i,a]=ve.useState(false);ib(()=>{e!==0&&a(true);},[e!==0]);let l=Math.max(Math.min(e,100),0);if(!i)return null;let s={strokeDashoffset:`${uh/4}`,strokeDasharray:`${uh*l/100} ${uh*(100-l)/100}`};return ve.createElement("span",{className:Xi(r,`${o}-progress`,l<=0&&n)},ve.createElement("svg",{viewBox:`0 0 ${fu} ${fu}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},ve.createElement(s1,{dotClassName:o,hasCircleCls:true}),ve.createElement(s1,{dotClassName:o,style:s})))},m1=RG;function fh(e){let{prefixCls:t,percent:o=0}=e,r=`${t}-dot`,n=`${r}-holder`,i=`${n}-hidden`;return ve.createElement(ve.Fragment,null,ve.createElement("span",{className:Xi(n,o>0&&i)},ve.createElement("span",{className:Xi(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>ve.createElement("i",{className:`${t}-dot-item`,key:a})))),ve.createElement(m1,{prefixCls:t,percent:o}))}function gh(e){let{prefixCls:t,indicator:o,percent:r}=e,n=`${t}-dot`;return o&&ve.isValidElement(o)?Oe(o,{className:Xi(o.props.className,n),percent:r}):ve.createElement(fh,{prefixCls:t,percent:r})}var wG=new Keyframes("antSpinMove",{to:{opacity:1}}),NG=new Keyframes("antRotate",{to:{transform:"rotate(405deg)"}}),MG=e=>{let{componentCls:t,calc:o}=e;return {[t]:{...ae(e),position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:o(o(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:o(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:o(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:o(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:o(o(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:o(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",top:"50%",transform:"translate(-50%, -50%)",insetInlineStart:"50%"},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),height:o(e.dotSize).sub(o(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:wG,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:NG,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal(),height:o(o(e.dotSizeSM).sub(o(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:o(o(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}}}},EG=e=>{let{controlHeightLG:t,controlHeight:o}=e;return {contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:o}},g1=oe("Spin",e=>{let t=mergeToken(e,{spinDotDefault:e.colorTextDescription});return [MG(t)]},EG);var kG=200,y1=[[30,.05],[70,.03],[96,.01]];function yh(e,t){let[o,r]=ve.useState(0),n=ve.useRef(null),i=t==="auto";return ve.useEffect(()=>(i&&e&&(r(0),n.current=setInterval(()=>{r(a=>{let l=100-a;for(let s=0;s<y1.length;s+=1){let[c,p]=y1[s];if(a<=c)return a+l*p}return a});},kG)),()=>{clearInterval(n.current);}),[i,e]),i?o:t}var C1;function BG(e,t){return !!e&&!!t&&!isNaN(Number(t))}var h1=e=>{let{prefixCls:t,spinning:o=true,delay:r=0,className:n,rootClassName:i,size:a="default",tip:l,wrapperClassName:s,style:c,children:p,fullscreen:m=false,indicator:d,percent:f,...u}=e,{getPrefixCls:g,direction:y,spin:h}=ve.useContext(O),b=g("spin",t),[C,S,v]=g1(b),[x,$]=ve.useState(()=>o&&!BG(o,r)),R=yh(x,f);ve.useEffect(()=>{if(o){let w=debounce(r,()=>{$(true);});return w(),()=>{w?.cancel?.();}}$(false);},[r,o]);let T=ve.useMemo(()=>typeof p<"u"&&!m,[p,m]),P=Xi(b,h?.className,{[`${b}-sm`]:a==="small",[`${b}-lg`]:a==="large",[`${b}-spinning`]:x,[`${b}-show-text`]:!!l,[`${b}-rtl`]:y==="rtl"},n,!m&&i,S,v),N=Xi(`${b}-container`,{[`${b}-blur`]:x}),M=d??h?.indicator??C1,E={...h?.style,...c},I=ve.createElement("div",{...u,style:E,className:P,"aria-live":"polite","aria-busy":x},ve.createElement(gh,{prefixCls:b,indicator:M,percent:R}),l&&(T||m)?ve.createElement("div",{className:`${b}-text`},l):null);return C(T?ve.createElement("div",{...u,className:Xi(`${b}-nested-loading`,s,S,v)},x&&ve.createElement("div",{key:"loading"},I),ve.createElement("div",{className:N,key:"container"},p)):m?ve.createElement("div",{className:Xi(`${b}-fullscreen`,{[`${b}-fullscreen-show`]:x},i,S,v)},I):I)};h1.setDefaultIndicator=e=>{C1=e;};var wn=h1;var ep=ve__default.createContext({});ep.Consumer;var FG=({prefixCls:e,className:t,avatar:o,title:r,description:n,...i})=>{let{getPrefixCls:a}=useContext(O),l=a("list",e),s=Xi(`${l}-item-meta`,t),c=ve__default.createElement("div",{className:`${l}-item-meta-content`},r&&ve__default.createElement("h4",{className:`${l}-item-meta-title`},r),n&&ve__default.createElement("div",{className:`${l}-item-meta-description`},n));return ve__default.createElement("div",{...i,className:s},o&&ve__default.createElement("div",{className:`${l}-item-meta-avatar`},o),(r||n)&&c)},zG=ve__default.forwardRef((e,t)=>{let{prefixCls:o,children:r,actions:n,extra:i,styles:a,className:l,classNames:s,colStyle:c,...p}=e,{grid:m,itemLayout:d}=useContext(ep),{getPrefixCls:f,list:u}=useContext(O),g=$=>Xi(u?.item?.classNames?.[$],s?.[$]),y=$=>({...u?.item?.styles?.[$],...a?.[$]}),h=()=>{let $=false;return Children.forEach(r,R=>{typeof R=="string"&&($=true);}),$&&Children.count(r)>1},b=()=>d==="vertical"?!!i:!h(),C=f("list",o),S=n&&n.length>0&&ve__default.createElement("ul",{className:Xi(`${C}-item-action`,g("actions")),key:"actions",style:y("actions")},n.map(($,R)=>ve__default.createElement("li",{key:`${C}-item-action-${R}`},$,R!==n.length-1&&ve__default.createElement("em",{className:`${C}-item-action-split`})))),x=ve__default.createElement(m?"div":"li",{...p,...m?{}:{ref:t},className:Xi(`${C}-item`,{[`${C}-item-no-flex`]:!b()},l)},d==="vertical"&&i?[ve__default.createElement("div",{className:`${C}-item-main`,key:"content"},r,S),ve__default.createElement("div",{className:Xi(`${C}-item-extra`,g("extra")),key:"extra",style:y("extra")},i)]:[r,S,Oe(i,{key:"extra"})]);return m?ve__default.createElement(ii,{ref:t,flex:1,style:c},x):x}),S1=zG;S1.Meta=FG;var x1=S1;var AG=e=>{let{listBorderedCls:t,componentCls:o,paddingLG:r,margin:n,itemPaddingSM:i,itemPaddingLG:a,marginLG:l,borderRadiusLG:s}=e;return {[t]:{border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${o}-header,${o}-footer,${o}-item`]:{paddingInline:r},[`${o}-pagination`]:{margin:`${unit(n)} ${unit(l)}`}},[`${t}${o}-sm`]:{[`${o}-item,${o}-header,${o}-footer`]:{padding:i}},[`${t}${o}-lg`]:{[`${o}-item,${o}-header,${o}-footer`]:{padding:a}}}},LG=e=>{let{componentCls:t,screenSM:o,screenMD:r,marginLG:n,marginSM:i,margin:a}=e;return {[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:n}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:n}}}},[`@media screen and (max-width: ${o}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${unit(a)}`}}}}}},HG=e=>{let{componentCls:t,antCls:o,controlHeight:r,minHeight:n,paddingSM:i,marginLG:a,padding:l,itemPadding:s,colorPrimary:c,itemPaddingSM:p,itemPaddingLG:m,paddingXS:d,margin:f,colorText:u,colorTextDescription:g,motionDurationSlow:y,lineWidth:h,headerBg:b,footerBg:C,emptyTextPadding:S,metaMarginBottom:v,avatarMarginRight:x,titleMarginBottom:$,descriptionFontSize:R}=e;return {[t]:{...ae(e),position:"relative","*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:C},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${o}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:n,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:u,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:x},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:u},[`${t}-item-meta-title`]:{margin:`0 0 ${unit(e.marginXXS)} 0`,color:u,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:u,transition:`all ${y}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:g,fontSize:R,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${unit(d)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:h,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${unit(l)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:S,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}},[`${t}-grid ${o}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:v,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:$,color:u,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${unit(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${o}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${unit(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:m},[`${t}-sm ${t}-item`]:{padding:p},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},WG=e=>({contentWidth:220,itemPadding:`${unit(e.paddingContentVertical)} 0`,itemPaddingSM:`${unit(e.paddingContentVerticalSM)} ${unit(e.paddingContentHorizontal)}`,itemPaddingLG:`${unit(e.paddingContentVerticalLG)} ${unit(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),v1=oe("List",e=>{let t=mergeToken(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return [HG(t),AG(t),LG(t)]},WG);function GG({pagination:e=false,prefixCls:t,bordered:o=false,split:r=true,className:n,rootClassName:i,style:a,children:l,itemLayout:s,loadMore:c,grid:p,dataSource:m=[],size:d,header:f,footer:u,loading:g=false,rowKey:y,renderItem:h,locale:b,...C},S){let v=e&&typeof e=="object"?e:{},[x,$]=ve.useState(v.defaultCurrent||1),[R,T]=ve.useState(v.defaultPageSize||10),{getPrefixCls:P,renderEmpty:N,direction:M,list:E}=ve.useContext(O),I={current:1,total:0},w=ce=>(fe,Pe)=>{$(fe),T(Pe),e&&e?.[ce]?.(fe,Pe);},B=w("onChange"),k=w("onShowSizeChange"),D=(ce,fe)=>{if(!h)return null;let Pe;return typeof y=="function"?Pe=y(ce):y?Pe=ce[y]:Pe=ce.key,Pe||(Pe=`list-item-${fe}`),ve.createElement(ve.Fragment,{key:Pe},h(ce,fe))},F=()=>!!(c||e||u),A=P("list",t),[L,q,V]=v1(A),z=g;typeof z=="boolean"&&(z={spinning:z});let G=!!z?.spinning,_=ke(d),Z="";switch(_){case "large":Z="lg";break;case "small":Z="sm";break;}let K=Xi(A,{[`${A}-vertical`]:s==="vertical",[`${A}-${Z}`]:Z,[`${A}-split`]:r,[`${A}-bordered`]:o,[`${A}-loading`]:G,[`${A}-grid`]:!!p,[`${A}-something-after-last-item`]:F(),[`${A}-rtl`]:M==="rtl"},E?.className,n,i,q,V),Q=zs(I,{total:m.length,current:x,pageSize:R},e||{}),ee=Math.ceil(Q.total/Q.pageSize);Q.current>ee&&(Q.current=ee);let j=e&&ve.createElement("div",{className:Xi(`${A}-pagination`)},ve.createElement(cl,{align:"end",...Q,onChange:B,onShowSizeChange:k})),Y=[...m];e&&m.length>(Q.current-1)*Q.pageSize&&(Y=[...m].splice((Q.current-1)*Q.pageSize,Q.pageSize));let J=Object.keys(p||{}).some(ce=>["xs","sm","md","lg","xl","xxl"].includes(ce)),te=Zo(J),ue=ve.useMemo(()=>{for(let ce=0;ce<pr.length;ce+=1){let fe=pr[ce];if(te[fe])return fe}},[te]),W=ve.useMemo(()=>{if(!p)return;let ce=ue&&p[ue]?p[ue]:p.column;if(ce)return {width:`${100/ce}%`,maxWidth:`${100/ce}%`}},[JSON.stringify(p),ue]),H=G&&ve.createElement("div",{style:{minHeight:53}});if(Y.length>0){let ce=Y.map((fe,Pe)=>D(fe,Pe));H=p?ve.createElement(Ja,{gutter:p.gutter},ve.Children.map(ce,fe=>ve.createElement("div",{key:fe?.key,style:W},fe))):ve.createElement("ul",{className:`${A}-items`},ce);}else !l&&!G&&(H=ve.createElement("div",{className:`${A}-empty-text`},b?.emptyText||N?.("List")||ve.createElement(Po,{componentName:"List"})));let X=Q.position||"bottom",re=ve.useMemo(()=>({grid:p,itemLayout:s}),[JSON.stringify(p),s]);return L(ve.createElement(ep.Provider,{value:re},ve.createElement("div",{ref:S,style:{...E?.style,...a},className:K,...C},(X==="top"||X==="both")&&j,f&&ve.createElement("div",{className:`${A}-header`},f),ve.createElement(wn,{...z},H,l),u&&ve.createElement("div",{className:`${A}-footer`},u),c||(X==="bottom"||X==="both")&&j)))}var VG=ve.forwardRef(GG),$1=VG;$1.Item=x1;var jG=$1;function mi(e,t=false){return t&&e==null?[]:Array.isArray(e)?e:[e]}var _G=e=>{let{componentCls:t,colorTextDisabled:o,controlItemBgHover:r,controlPaddingHorizontal:n,colorText:i,motionDurationSlow:a,lineHeight:l,controlHeight:s,paddingInline:c,paddingBlock:p,fontSize:m,fontSizeIcon:d,colorTextTertiary:f,colorTextQuaternary:u,colorBgElevated:g,paddingXXS:y,paddingLG:h,borderRadius:b,borderRadiusLG:C,boxShadowSecondary:S,itemPaddingVertical:v,calc:x}=e;return {[t]:{...ae(e),...Tn(e),position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:l,whiteSpace:"pre-wrap",verticalAlign:"bottom",..._i(e),...qi(e),...Ui(e),"&-affix-wrapper":{...Tn(e),display:"inline-flex",padding:0,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&:has(${t}-suffix) > ${t} > textarea`]:{paddingInlineEnd:h},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:0,insetBlockStart:x(m).mul(l).mul(.5).add(p).equal(),transform:"translateY(-50%)",margin:0,color:u,fontSize:d,verticalAlign:-1,cursor:"pointer",transition:`color ${a}`,"&:hover":{color:f},"&:active":{color:i},"&-hidden":{visibility:"hidden"}}},"&-disabled":{"> textarea":{...qa(e)}},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:e.calc(s).sub(2),margin:0,padding:`${unit(p)} ${unit(c)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":{width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent",...Xa(e.colorTextPlaceholder)},[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":{...ae(e),position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:m,fontVariant:"initial",padding:y,backgroundColor:g,borderRadius:C,outline:"none",boxShadow:S,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":{...qe,position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${unit(v)} ${unit(n)}`,color:i,borderRadius:b,fontWeight:"normal",lineHeight:l,cursor:"pointer",transition:`background ${a} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:o,cursor:"not-allowed","&:hover":{color:o,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}}}}}}},UG=e=>({...zr(e),dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}),P1=oe("Mentions",e=>{let t=mergeToken(e,Fr(e));return [_G(t)]},UG);var{Option:I1}=R1;function XG(){return true}var KG=ve.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,disabled:i,loading:a,filterOption:l,children:s,notFoundContent:c,options:p,status:m,allowClear:d=false,popupClassName:f,style:u,variant:g,...y}=e,[h,b]=ve.useState(false),C=ve.useRef(null),S=composeRef(t,C),{getPrefixCls:v,renderEmpty:x,direction:$,mentions:R}=ve.useContext(O),{status:T,hasFeedback:P,feedbackIcon:N}=ve.useContext(Le),M=Et(T,m),E=(...ee)=>{y.onFocus&&y.onFocus(...ee),b(true);},I=(...ee)=>{y.onBlur&&y.onBlur(...ee),b(false);},w=ve.useMemo(()=>c!==void 0?c:x?.("Select")||ve.createElement(Po,{componentName:"Select"}),[c,x]),B=ve.useMemo(()=>a?ve.createElement(I1,{value:"ANTD_SEARCHING",disabled:true},ve.createElement(wn,{size:"small"})):s,[a,s]),k=a?[{value:"ANTD_SEARCHING",disabled:true,label:ve.createElement(wn,{size:"small"})}]:p,D=a?XG:l,F=v("mentions",o),A=Ts(d),L=$e(F),[q,V,z]=P1(F,L),[G,_]=Vt("mentions",g),Z=P&&ve.createElement(ve.Fragment,null,N),K=Xi(R?.className,r,n,z,L),Q=ve.createElement(R1,{silent:a,prefixCls:F,notFoundContent:w,className:K,disabled:i,allowClear:A,direction:$,style:{...R?.style,...u},...y,filterOption:D,onFocus:E,onBlur:I,dropdownClassName:Xi(f,n,V,z,L),ref:S,options:k,suffix:Z,classNames:{mentions:Xi({[`${F}-disabled`]:i,[`${F}-focused`]:h,[`${F}-rtl`]:$==="rtl"},V),variant:Xi({[`${F}-${G}`]:_},xt(F,M)),affixWrapper:V}},B);return q(Q)}),op=KG;op.Option=I1;var YG=Xt(op,void 0,void 0,"mentions");op._InternalPanelDoNotUseOrYouWillBeFired=YG;op.getMentions=(e="",t={})=>{let{prefix:o="@",split:r=" "}=t,n=mi(o);return e.split(r).map((i="")=>{let a=null;return n.some(l=>i.slice(0,l.length)===l?(a=l,true):false),a!==null?{prefix:a,value:i.slice(a.length)}:null}).filter(i=>!!i&&!!i.value)};var hh=op;var pl=null,dl=e=>e(),rp=[],np={};function N1(){let{getContainer:e,duration:t,rtl:o,maxCount:r,top:n}=np,i=e?.()||document.body;return {getContainer:()=>i,duration:t,rtl:o,maxCount:r,top:n}}var ZG=ve__default.forwardRef((e,t)=>{let{messageConfig:o,sync:r}=e,{getPrefixCls:n}=useContext(O),i=np.prefixCls||n("message"),a=useContext(ka),[l,s]=Pg({...o,prefixCls:i,...a.message});return ve__default.useImperativeHandle(t,()=>{let c={...l};return Object.keys(c).forEach(p=>{c[p]=(...m)=>(r(),l[p](...m));}),{instance:c,sync:r}}),s}),QG=ve__default.forwardRef((e,t)=>{let[o,r]=ve__default.useState(N1),n=()=>{r(N1);};ve__default.useEffect(n,[]);let i=Ii(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=ve__default.createElement(ZG,{ref:t,sync:n,messageConfig:o});return ve__default.createElement(lr,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function bu(){if(!pl){let e=document.createDocumentFragment(),t={fragment:e};pl=t,dl(()=>{Ni()(ve__default.createElement(QG,{ref:r=>{let{instance:n,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=i,bu());});}}),e);});return}pl.instance&&(rp.forEach(e=>{let{type:t,skipped:o}=e;if(!o)switch(t){case "open":{dl(()=>{let r=pl.instance.open({...np,...e.config});r?.then(e.resolve),e.setCloseFn(r);});break}case "destroy":dl(()=>{pl?.instance.destroy(e.key);});break;default:dl(()=>{let r=pl.instance[t](...e.args);r?.then(e.resolve),e.setCloseFn(r);});}}),rp=[]);}function JG(e){np={...np,...e},dl(()=>{pl?.sync?.();});}function eV(e){let t=vc(o=>{let r,n={type:"open",config:e,resolve:o,setCloseFn:i=>{r=i;}};return rp.push(n),()=>{r?dl(()=>{r();}):n.skipped=true;}});return bu(),t}function tV(e,t){let r=vc(n=>{let i,a={type:e,args:t,resolve:n,setCloseFn:l=>{i=l;}};return rp.push(a),()=>{i?dl(()=>{i();}):a.skipped=true;}});return bu(),r}var oV=e=>{rp.push({type:"destroy",key:e}),bu();},rV=["success","info","warning","error","loading"],nV={open:eV,destroy:oV,config:JG,useMessage:Tc,_InternalPanelDoNotUseOrYouWillBeFired:vx},M1=nV;rV.forEach(e=>{M1[e]=(...t)=>tV(e,t);});var iV=M1;var sV=e=>{let{prefixCls:t,className:o,closeIcon:r,closable:n,type:i,title:a,children:l,footer:s,...c}=e,{getPrefixCls:p}=ve.useContext(O),m=p(),d=t||p("modal"),f=$e(m),[u,g,y]=Hd(d,f),h=`${d}-confirm`,b={};return i?b={closable:n??false,title:"",footer:"",children:ve.createElement(uy,{...e,prefixCls:d,confirmPrefixCls:h,rootPrefixCls:m,content:l})}:b={closable:n??true,title:a,footer:s!==null&&ve.createElement(Ld,{...e}),children:l},u(ve.createElement(Panel$1,{prefixCls:d,className:Xi(g,`${d}-pure-panel`,i&&h,i&&`${h}-${i}`,o,y,f),...c,closeIcon:Ad(d,r),closable:n,...b}))},E1=Dc(sV);function k1(e){return Ea(jd(e))}var nn=Gd;nn.useModal=Kd;nn.info=function(t){return Ea(_d(t))};nn.success=function(t){return Ea(Ud(t))};nn.error=function(t){return Ea(qd(t))};nn.warning=k1;nn.warn=k1;nn.confirm=function(t){return Ea(Xd(t))};nn.destroyAll=function(){for(;yn.length;){let t=yn.pop();t&&t();}};nn.config=aT;nn._InternalPanelDoNotUseOrYouWillBeFired=E1;var cV=nn;var Hs=null,Su=e=>e(),xu=[],ip={};function B1(){let{getContainer:e,rtl:t,maxCount:o,top:r,bottom:n,showProgress:i,pauseOnHover:a}=ip,l=e?.()||document.body;return {getContainer:()=>l,rtl:t,maxCount:o,top:r,bottom:n,showProgress:i,pauseOnHover:a}}var pV=ve__default.forwardRef((e,t)=>{let{notificationConfig:o,sync:r}=e,{getPrefixCls:n}=useContext(O),i=ip.prefixCls||n("notification"),a=useContext(ka),[l,s]=Sy({...o,prefixCls:i,...a.notification});return ve__default.useEffect(r,[]),ve__default.useImperativeHandle(t,()=>{let c={...l};return Object.keys(c).forEach(p=>{c[p]=(...m)=>(r(),l[p](...m));}),{instance:c,sync:r}}),s}),dV=ve__default.forwardRef((e,t)=>{let[o,r]=ve__default.useState(B1),n=()=>{r(B1);};ve__default.useEffect(n,[]);let i=Ii(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=ve__default.createElement(pV,{ref:t,sync:n,notificationConfig:o});return ve__default.createElement(lr,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function bh(){if(!Hs){let e=document.createDocumentFragment(),t={fragment:e};Hs=t,Su(()=>{Ni()(ve__default.createElement(dV,{ref:r=>{let{instance:n,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=i,bh());});}}),e);});return}Hs.instance&&(xu.forEach(e=>{switch(e.type){case "open":{Su(()=>{Hs.instance.open({...ip,...e.config});});break}case "destroy":Su(()=>{Hs?.instance.destroy(e.key);});break}}),xu=[]);}function mV(e){ip={...ip,...e},Su(()=>{Hs?.sync?.();});}function O1(e){xu.push({type:"open",config:e}),bh();}var uV=e=>{xu.push({type:"destroy",key:e}),bh();},fV=["success","info","warning","error"],gV={open:O1,destroy:uV,config:mV,useNotification:kc,_InternalPanelDoNotUseOrYouWillBeFired:uT},F1=gV;fV.forEach(e=>{F1[e]=t=>O1({...t,type:e});});var yV=F1;var CV=e=>{let{componentCls:t,iconCls:o,antCls:r,zIndexPopup:n,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:p,colorTextHeading:m}=e;return {[t]:{zIndex:n,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${o}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:p,color:m,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}},hV=e=>{let{zIndexPopupBase:t}=e;return {zIndexPopup:t+60}},vu=oe("Popconfirm",e=>CV(e),hV,{resetStyle:false});var Sh=e=>{let{prefixCls:t,okButtonProps:o,cancelButtonProps:r,title:n,description:i,cancelText:a,okText:l,okType:s="primary",icon:c=ve.createElement(eB,null),showCancel:p=true,close:m,onConfirm:d,onCancel:f,onPopupClick:u}=e,{getPrefixCls:g}=ve.useContext(O),[y]=Ae("Popconfirm",ct.Popconfirm),h=Jn(n),b=Jn(i);return ve.createElement("div",{className:`${t}-inner-content`,onClick:u},ve.createElement("div",{className:`${t}-message`},c&&ve.createElement("span",{className:`${t}-message-icon`},c),ve.createElement("div",{className:`${t}-message-text`},h&&ve.createElement("div",{className:`${t}-title`},h),b&&ve.createElement("div",{className:`${t}-description`},b))),ve.createElement("div",{className:`${t}-buttons`},p&&ve.createElement(Ge,{onClick:f,size:"small",...r},a||y?.cancelText),ve.createElement(ls,{buttonProps:{size:"small",...es(s),...o},actionFn:d,close:m,prefixCls:g("btn"),quitOnNullishReturnValue:true,emitEvent:true},l||y?.okText)))},xV=e=>{let{prefixCls:t,placement:o,className:r,style:n,...i}=e,{getPrefixCls:a}=ve.useContext(O),l=a("popconfirm",t),[s]=vu(l);return s(ve.createElement(pm,{placement:o,className:Xi(l,r),style:n,content:ve.createElement(Sh,{prefixCls:l,...i})}))},z1=xV;var RV=ve.forwardRef((e,t)=>{let{prefixCls:o,placement:r="top",trigger:n="click",okType:i="primary",icon:a=ve.createElement(eB,null),children:l,overlayClassName:s,onOpenChange:c,onVisibleChange:p,...m}=e,{getPrefixCls:d}=ve.useContext(O),[f,u]=s$(false,{value:e.open??e.visible,defaultValue:e.defaultOpen??e.defaultVisible}),g=($,R)=>{u($,true),p?.($),c?.($,R);},y=$=>{g(false,$);},h=$=>e.onConfirm?.call(void 0,$),b=$=>{g(false,$),e.onCancel?.call(void 0,$);},C=($,R)=>{let{disabled:T=false}=e;T||g($,R);},S=d("popconfirm",o),v=Xi(S,s),[x]=vu(S);return x(ve.createElement(Aa,{...vv(m,["title"]),trigger:n,placement:r,onOpenChange:C,open:f,ref:t,overlayClassName:v,content:ve.createElement(Sh,{okType:i,icon:a,...e,prefixCls:S,close:y,onConfirm:h,onCancel:b}),"data-popover-inject":true},l))}),A1=RV;A1._InternalPanelDoNotUseOrYouWillBeFired=z1;var IV=A1;function Nn(e){return !e||e<0?0:e>100?100:e}function Ws({success:e,successPercent:t}){let o=t;return e&&"progress"in e&&(o=e.progress),e&&"percent"in e&&(o=e.percent),o}var L1=({percent:e,success:t,successPercent:o})=>{let r=Nn(Ws({success:t,successPercent:o}));return [r,Nn(Nn(e)-r)]},H1=({success:e={},strokeColor:t})=>{let{strokeColor:o}=e;return [o||presetPrimaryColors.green,t||null]},ca=(e,t,o)=>{let r=-1,n=-1;if(t==="step"){let i=o.steps,a=o.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,n=a??8):typeof e=="number"?[r,n]=[e,e]:[r=14,n=8]=Array.isArray(e)?e:[e.width,e.height],r*=i;}else if(t==="line"){let i=o?.strokeWidth;typeof e=="string"||typeof e>"u"?n=i||(e==="small"?6:8):typeof e=="number"?[r,n]=[e,e]:[r=-1,n=8]=Array.isArray(e)?e:[e.width,e.height];}else (t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,n]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[r,n]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,n=e[0]??e[1]??120));return [r,n]};var EV=3,kV=e=>EV/e*100,DV=e=>{let{prefixCls:t,trailColor:o=null,strokeLinecap:r="round",gapPosition:n,gapDegree:i,width:a=120,type:l,children:s,success:c,size:p=a,steps:m}=e,[d,f]=ca(p,"circle"),{strokeWidth:u}=e;u===void 0&&(u=Math.max(kV(d),6));let g={width:d,height:f,fontSize:d*.15+6},y=ve.useMemo(()=>{if(i||i===0)return i;if(l==="dashboard")return 75},[i,l]),h=L1(e),b=n||l==="dashboard"&&"bottom"||void 0,C=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=H1({success:c,strokeColor:e.strokeColor}),v=Xi(`${t}-inner`,{[`${t}-circle-gradient`]:C}),x=ve.createElement(Circle,{steps:m,percent:m?h[1]:h,strokeWidth:u,trailWidth:u,strokeColor:m?S[1]:S,strokeLinecap:r,trailColor:o,prefixCls:t,gapDegree:y,gapPosition:b}),$=d<=20,R=ve.createElement("div",{className:v,style:g},x,!$&&s);return $?ve.createElement(ot,{title:s},R):R},W1=DV;var ap="--progress-line-stroke-color",xh="--progress-percent",G1=e=>{let t=e?"100%":"-100%";return new Keyframes(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},FV=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{...ae(e),display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:true,value:["inherit",`var(${ap})`]},height:"100%",width:`calc(1 / var(${xh}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[o]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${unit(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:G1(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:G1(true)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}}},zV=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[o]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},AV=e=>{let{componentCls:t}=e;return {[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},LV=e=>{let{componentCls:t,iconCls:o}=e;return {[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${o}`]:{fontSize:e.fontSizeSM}}}},HV=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),V1=oe("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),o=mergeToken(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return [FV(o),zV(o),AV(o),LV(o)]},HV);var GV=e=>{let t=[];return Object.keys(e).forEach(o=>{let r=parseFloat(o.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[o]});}),t=t.sort((o,r)=>o.key-r.key),t.map(({key:o,value:r})=>`${r} ${o}%`).join(", ")},VV=(e,t)=>{let{from:o=presetPrimaryColors.blue,to:r=presetPrimaryColors.blue,direction:n=t==="rtl"?"to left":"to right",...i}=e;if(Object.keys(i).length!==0){let l=GV(i),s=`linear-gradient(${n}, ${l})`;return {background:s,[ap]:s}}let a=`linear-gradient(${n}, ${o}, ${r})`;return {background:a,[ap]:a}},jV=e=>{let{prefixCls:t,direction:o,percent:r,size:n,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:c=null,percentPosition:p,success:m}=e,{align:d,type:f}=p,u=a&&typeof a!="string"?VV(a,o):{[ap]:a,background:a},g=l==="square"||l==="butt"?0:void 0,y=n??[-1,i||(n==="small"?6:8)],[h,b]=ca(y,"line",{strokeWidth:i}),C={backgroundColor:c||void 0,borderRadius:g},S={width:`${Nn(r)}%`,height:b,borderRadius:g,...u,[xh]:Nn(r)/100},v=Ws(e),x={width:`${Nn(v)}%`,height:b,borderRadius:g,backgroundColor:m?.strokeColor},$={width:h<0?"100%":h},R=ve.createElement("div",{className:`${t}-inner`,style:C},ve.createElement("div",{className:Xi(`${t}-bg`,`${t}-bg-${f}`),style:S},f==="inner"&&s),v!==void 0&&ve.createElement("div",{className:`${t}-success-bg`,style:x})),T=f==="outer"&&d==="start",P=f==="outer"&&d==="end";return f==="outer"&&d==="center"?ve.createElement("div",{className:`${t}-layout-bottom`},R,s):ve.createElement("div",{className:`${t}-outer`,style:$},T&&s,R,P&&s)},_1=jV;var UV=e=>{let{size:t,steps:o,percent:r=0,strokeWidth:n=8,strokeColor:i,trailColor:a=null,prefixCls:l,children:s}=e,c=Math.round(o*(r/100)),m=t??[t==="small"?2:14,n],[d,f]=ca(m,"step",{steps:o,strokeWidth:n}),u=d/o,g=new Array(o);for(let y=0;y<o;y++){let h=Array.isArray(i)?i[y]:i;g[y]=ve.createElement("div",{key:y,className:Xi(`${l}-steps-item`,{[`${l}-steps-item-active`]:y<=c-1}),style:{backgroundColor:y<=c-1?h:a,width:u,height:f}});}return ve.createElement("div",{className:`${l}-steps-outer`},g,s)},U1=UV;var JV=["normal","exception","active","success"],ej=ve.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,steps:i,strokeColor:a,percent:l=0,size:s="default",showInfo:c=true,type:p="line",status:m,format:d,style:f,percentPosition:u={},...g}=e,{align:y="end",type:h="outer"}=u,b=Array.isArray(a)?a[0]:a,C=typeof a=="string"||Array.isArray(a)?a:void 0,S=ve.useMemo(()=>{if(b){let F=typeof b=="string"?b:Object.values(b)[0];return new TinyColor(F).isLight()}return false},[a]),v=ve.useMemo(()=>{let F=Ws(e);return parseInt(F!==void 0?(F??0)?.toString():(l??0)?.toString(),10)},[l,e.success,e.successPercent]),x=ve.useMemo(()=>!JV.includes(m)&&v>=100?"success":m||"normal",[m,v]),{getPrefixCls:$,direction:R,progress:T}=ve.useContext(O),P=$("progress",o),[N,M,E]=V1(P),I=p==="line",w=I&&!i,B=ve.useMemo(()=>{if(!c)return null;let F=Ws(e),A,L=d||(V=>`${V}%`),q=I&&S&&h==="inner";return h==="inner"||d||x!=="exception"&&x!=="success"?A=L(Nn(l),Nn(F)):x==="exception"?A=I?ve.createElement(QD,null):ve.createElement(JD,null):x==="success"&&(A=I?ve.createElement(ZD,null):ve.createElement(J3,null)),ve.createElement("span",{className:Xi(`${P}-text`,{[`${P}-text-bright`]:q,[`${P}-text-${y}`]:w,[`${P}-text-${h}`]:w}),title:typeof A=="string"?A:void 0},A)},[c,l,v,x,p,P,d]),k;p==="line"?k=i?ve.createElement(U1,{...e,strokeColor:C,prefixCls:P,steps:typeof i=="object"?i.count:i},B):ve.createElement(_1,{...e,strokeColor:b,prefixCls:P,direction:R,percentPosition:{align:y,type:h}},B):(p==="circle"||p==="dashboard")&&(k=ve.createElement(W1,{...e,strokeColor:b,prefixCls:P,progressStatus:x},B));let D=Xi(P,`${P}-status-${x}`,{[`${P}-${p==="dashboard"&&"circle"||p}`]:p!=="line",[`${P}-inline-circle`]:p==="circle"&&ca(s,"circle")[0]<=20,[`${P}-line`]:w,[`${P}-line-align-${y}`]:w,[`${P}-line-position-${h}`]:w,[`${P}-steps`]:i,[`${P}-show-info`]:c,[`${P}-${s}`]:typeof s=="string",[`${P}-rtl`]:R==="rtl"},T?.className,r,n,M,E);return N(ve.createElement("div",{ref:t,style:{...T?.style,...f},className:D,role:"progressbar","aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100,...vv(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])},k))}),X1=ej;var lp=X1;var oj=ve__default.createElement(wn,null);function Th({prefixCls:e,locale:t,onRefresh:o,statusRender:r,status:n}){let i=ve__default.createElement(ve__default.Fragment,null,ve__default.createElement("p",{className:`${e}-expired`},t?.expired),o&&ve__default.createElement(Ge,{type:"link",icon:ve__default.createElement(ReloadOutlined,null),onClick:o},t?.refresh)),a=ve__default.createElement("p",{className:`${e}-scanned`},t?.scanned),l={expired:i,loading:oj,scanned:a};return (r??(p=>l[p.status]))({status:n,locale:t,onRefresh:o})}var ij=e=>{let{componentCls:t,lineWidth:o,lineType:r,colorSplit:n}=e;return {[t]:{...ae(e),display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${unit(o)} ${r} ${n}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}},[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},aj=e=>({QRCodeMaskBackgroundColor:new TinyColor(e.colorBgContainer).setAlpha(.96).toRgbString()}),K1=oe("QRCode",e=>{let t=mergeToken(e,{QRCodeTextColor:e.colorText});return ij(t)},aj);var uj=e=>{let[,t]=De(),{value:o,type:r="canvas",icon:n="",size:i=160,iconSize:a,color:l=t.colorText,errorLevel:s="M",status:c="active",bordered:p=true,onRefresh:m,style:d,className:f,rootClassName:u,prefixCls:g,bgColor:y="transparent",statusRender:h,...b}=e,{getPrefixCls:C}=useContext(O),S=C("qrcode",g),[v,x,$]=K1(S),R={src:n,x:void 0,y:void 0,height:typeof a=="number"?a:a?.height??40,width:typeof a=="number"?a:a?.width??40,excavate:true,crossOrigin:"anonymous"},T=rB(b,true),P=vv(b,Object.keys(T)),N={value:o,size:i,level:s,bgColor:y,fgColor:l,style:{width:d?.width,height:d?.height},imageSettings:n?R:void 0,...T},[M]=Ae("QRCode");if(!o)return null;let E=Xi(S,f,u,x,$,{[`${S}-borderless`]:!p}),I={backgroundColor:y,...d,width:d?.width??i,height:d?.height??i};return v(ve__default.createElement("div",{...P,className:E,style:I},c!=="active"&&ve__default.createElement("div",{className:`${S}-mask`},ve__default.createElement(Th,{prefixCls:S,locale:M,status:c,onRefresh:m,statusRender:h})),r==="canvas"?ve__default.createElement(QRCodeCanvas,{...N}):ve__default.createElement(QRCodeSVG,{...N})))},fj=uj;var yj=e=>{let{componentCls:t}=e;return {[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${unit(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},Cj=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),hj=e=>{let{componentCls:t}=e;return {[t]:{...ae(e),display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}},...yj(e),...Cj(e)}}},bj=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),Y1=oe("Rate",e=>{let t=mergeToken(e,{});return [hj(t)]},bj);var Tj=ve.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,tooltips:a,character:l=ve.createElement(Sj,null),disabled:s,...c}=e,p=(v,{index:x})=>a?ve.createElement(ot,{title:a[x]},v):v,{getPrefixCls:m,direction:d,rate:f}=ve.useContext(O),u=m("rate",o),[g,y,h]=Y1(u),b={...f?.style,...i},C=ve.useContext(We);return g(ve.createElement(vj,{ref:t,character:l,characterRender:p,disabled:s??C,...c,className:Xi(r,n,y,h,f?.className),style:b,prefixCls:u,direction:d}))}),$j=Tj;var Pj=()=>ve.createElement("svg",{width:"252",height:"294"},ve.createElement("title",null,"No Found"),ve.createElement("defs",null,ve.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),ve.createElement("g",{fill:"none",fillRule:"evenodd"},ve.createElement("g",{transform:"translate(0 .012)"},ve.createElement("mask",{fill:"#fff"}),ve.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),ve.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),ve.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),ve.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),ve.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),ve.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),ve.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),ve.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),ve.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),ve.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),ve.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),ve.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),ve.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),ve.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),ve.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),ve.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),ve.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),ve.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),ve.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),ve.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),ve.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),ve.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),ve.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),ve.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),ve.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),ve.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),ve.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),ve.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),ve.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),ve.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),ve.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),ve.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),ve.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),ve.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),ve.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),ve.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),ve.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),ve.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),ve.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),ve.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),ve.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),ve.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),Z1=Pj;var Rj=()=>ve.createElement("svg",{width:"254",height:"294"},ve.createElement("title",null,"Server Error"),ve.createElement("defs",null,ve.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),ve.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),ve.createElement("g",{fill:"none",fillRule:"evenodd"},ve.createElement("g",{transform:"translate(0 .067)"},ve.createElement("mask",{fill:"#fff"}),ve.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),ve.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),ve.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),ve.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),ve.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),ve.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),ve.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),ve.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),ve.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),ve.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),ve.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),ve.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),ve.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),ve.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),ve.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),ve.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),ve.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),ve.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),ve.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),ve.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),ve.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),ve.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),ve.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),ve.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),ve.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),ve.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),ve.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),ve.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),ve.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),ve.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),ve.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),ve.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),ve.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),ve.createElement("mask",{fill:"#fff"}),ve.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),ve.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),ve.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),ve.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),ve.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),ve.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),ve.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),ve.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),ve.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),ve.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),ve.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),Q1=Rj;var Ij=e=>{let{componentCls:t,lineHeightHeading3:o,iconCls:r,padding:n,paddingXL:i,paddingXS:a,paddingLG:l,marginXS:s,lineHeight:c}=e;return {[t]:{padding:`${unit(e.calc(l).mul(2).equal())} ${unit(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:o,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${unit(l)} ${unit(e.calc(n).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},wj=e=>{let{componentCls:t,iconCls:o}=e;return {[`${t}-success ${t}-icon > ${o}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${o}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${o}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${o}`]:{color:e.resultWarningIconColor}}},Nj=e=>[Ij(e),wj(e)],Mj=e=>Nj(e),Ej=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),J1=oe("Result",e=>{let t=e.colorInfo,o=e.colorError,r=e.colorSuccess,n=e.colorWarning,i=mergeToken(e,{resultInfoIconColor:t,resultErrorIconColor:o,resultSuccessIconColor:r,resultWarningIconColor:n,imageWidth:250,imageHeight:295});return [Mj(i)]},Ej);var kj=()=>ve.createElement("svg",{width:"251",height:"294"},ve.createElement("title",null,"Unauthorized"),ve.createElement("g",{fill:"none",fillRule:"evenodd"},ve.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),ve.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),ve.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),ve.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),ve.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),ve.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),ve.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),ve.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),ve.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),ve.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),ve.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),ve.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),ve.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),ve.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),ve.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),ve.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),ve.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),ve.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),ve.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),ve.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),ve.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),ve.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),ve.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),ve.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),ve.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),ve.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),ve.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),ve.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),ve.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),ve.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),ve.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),ve.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),ve.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),ve.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),ve.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),ve.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),ve.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),ve.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),ve.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),ve.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),eI=kj;var zj={success:ZD,error:QD,info:eB,warning:Fj},cp={404:Z1,500:Q1,403:eI},Aj=Object.keys(cp),Lj=({prefixCls:e,icon:t,status:o})=>{let r=Xi(`${e}-icon`);if(Aj.includes(`${o}`)){let i=cp[o];return ve.createElement("div",{className:`${r} ${e}-image`},ve.createElement(i,null))}let n=ve.createElement(zj[o]);return t===null||t===false?null:ve.createElement("div",{className:r},t||n)},Hj=({prefixCls:e,extra:t})=>t?ve.createElement("div",{className:`${e}-extra`},t):null,$u=({prefixCls:e,className:t,rootClassName:o,subTitle:r,title:n,style:i,children:a,status:l="info",icon:s,extra:c})=>{let{getPrefixCls:p,direction:m,result:d}=ve.useContext(O),f=p("result",e),[u,g,y]=J1(f),h=Xi(f,`${f}-${l}`,t,d?.className,o,{[`${f}-rtl`]:m==="rtl"},g,y),b={...d?.style,...i};return u(ve.createElement("div",{className:h,style:b},ve.createElement(Lj,{prefixCls:f,status:l,icon:s}),ve.createElement("div",{className:`${f}-title`},n),r&&ve.createElement("div",{className:`${f}-subtitle`},r),ve.createElement(Hj,{prefixCls:f,extra:c}),a&&ve.createElement("div",{className:`${f}-content`},a)))};$u.PRESENTED_IMAGE_403=cp[403];$u.PRESENTED_IMAGE_404=cp[404];$u.PRESENTED_IMAGE_500=cp[500];var Wj=$u;var Gj=Ja;var Vj=e=>{let{value:t,formatter:o,precision:r,decimalSeparator:n,groupSeparator:i="",prefixCls:a}=e,l;if(typeof o=="function")l=o(t);else {let s=String(t),c=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!c||s==="-")l=s;else {let p=c[1],m=c[2]||"0",d=c[4]||"";m=m.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof r=="number"&&(d=d.padEnd(r,"0").slice(0,r>0?r:0)),d&&(d=`${n}${d}`),l=[ve.createElement("span",{key:"int",className:`${a}-content-value-int`},p,m),d&&ve.createElement("span",{key:"decimal",className:`${a}-content-value-decimal`},d)];}}return ve.createElement("span",{className:`${a}-content-value`},l)},oI=Vj;var jj=e=>{let{componentCls:t,marginXXS:o,padding:r,colorTextDescription:n,titleFontSize:i,colorTextHeading:a,contentFontSize:l,fontFamily:s}=e;return {[t]:{...ae(e),[`${t}-title`]:{marginBottom:o,color:n,fontSize:i},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:a,fontSize:l,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:o},[`${t}-content-suffix`]:{marginInlineStart:o}}}}},_j=e=>{let{fontSizeHeading3:t,fontSize:o}=e;return {titleFontSize:o,contentFontSize:t}},rI=oe("Statistic",e=>{let t=mergeToken(e,{});return [jj(t)]},_j);var Xj=e=>{let{prefixCls:t,className:o,rootClassName:r,style:n,valueStyle:i,value:a=0,title:l,valueRender:s,prefix:c,suffix:p,loading:m=false,formatter:d,precision:f,decimalSeparator:u=".",groupSeparator:g=",",onMouseEnter:y,onMouseLeave:h,...b}=e,{getPrefixCls:C,direction:S,statistic:v}=ve.useContext(O),x=C("statistic",t),[$,R,T]=rI(x),P=ve.createElement(oI,{decimalSeparator:u,groupSeparator:g,prefixCls:x,formatter:d,precision:f,value:a}),N=Xi(x,{[`${x}-rtl`]:S==="rtl"},v?.className,o,r,R,T),M=rB(b,{aria:true,data:true});return $(ve.createElement("div",{...M,className:N,style:{...v?.style,...n},onMouseEnter:y,onMouseLeave:h},l&&ve.createElement("div",{className:`${x}-title`},l),ve.createElement(Xn,{paragraph:false,loading:m,className:`${x}-skeleton`},ve.createElement("div",{style:i,className:`${x}-content`},c&&ve.createElement("span",{className:`${x}-content-prefix`},c),s?s(P):P,p&&ve.createElement("span",{className:`${x}-content-suffix`},p)))))},pp=Xj;var Kj=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function Yj(e,t){let o=e,r=/\[[^\]]*]/g,n=(t.match(r)||[]).map(s=>s.slice(1,-1)),i=t.replace(r,"[]"),a=Kj.reduce((s,[c,p])=>{if(s.includes(c)){let m=Math.floor(o/p);return o-=m*p,s.replace(new RegExp(`${c}+`,"g"),d=>{let f=d.length;return m.toString().padStart(f,"0")})}return s},i),l=0;return a.replace(r,()=>{let s=n[l];return l+=1,s})}function nI(e,t){let{format:o=""}=t,r=new Date(e).getTime(),n=Date.now(),i=Math.max(r-n,0);return Yj(i,o)}var Zj=1e3/30;function Qj(e){return new Date(e).getTime()}var Jj=e=>{let{value:t,format:o="HH:mm:ss",onChange:r,onFinish:n,...i}=e,a=Qn(),l=ve.useRef(null),s=()=>{n?.(),l.current&&(clearInterval(l.current),l.current=null);},c=()=>{let d=Qj(t);d>=Date.now()&&(l.current=setInterval(()=>{a(),r?.(d-Date.now()),d<Date.now()&&s();},Zj));};return ve.useEffect(()=>(c(),()=>{l.current&&(clearInterval(l.current),l.current=null);}),[t]),ve.createElement(pp,{...i,value:t,valueRender:d=>Oe(d,{title:void 0}),formatter:(d,f)=>nI(d,{...f,format:o})})},iI=ve.memo(Jj);pp.Countdown=iI;var e_=pp;var o_=e=>{let{componentCls:t,customIconTop:o,customIconSize:r,customIconFontSize:n}=e;return {[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:o,width:r,height:r,fontSize:n,lineHeight:unit(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},aI=o_;var r_=e=>{let{componentCls:t}=e,o=`${t}-item`;return {[`${t}-horizontal`]:{[`${o}-tail`]:{transform:"translateY(-50%)"}}}},lI=r_;var n_=e=>{let{componentCls:t,inlineDotSize:o,inlineTitleColor:r,inlineTailColor:n}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return {[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${unit(i)} ${unit(e.paddingXXS)} 0`,margin:`0 ${unit(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:o,height:o,marginInlineStart:`calc(50% - ${unit(e.calc(o).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(o).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:n}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":{[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${unit(e.lineWidth)} ${e.lineType} ${n}`},...a},"&-finish":{[`${t}-item-tail::after`]:{backgroundColor:n},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:n,border:`${unit(e.lineWidth)} ${e.lineType} ${n}`},...a},"&-error":a,"&-active, &-process":{[`${t}-item-icon`]:{width:o,height:o,marginInlineStart:`calc(50% - ${unit(e.calc(o).div(2).equal())})`,top:0},...a},[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},sI=n_;var a_=e=>{let{componentCls:t,iconSize:o,lineHeight:r,iconSizeSM:n}=e;return {[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(o).div(2).add(e.controlHeightLG).equal(),padding:`0 ${unit(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(o).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(o).sub(n).div(2).add(e.controlHeightLG).equal()}}}}}},cI=a_;var l_=e=>{let{componentCls:t,navContentMaxWidth:o,navArrowColor:r,stepsNavActiveColor:n,motionDurationSlow:i}=e;return {[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:o},[`${t}-item-title`]:{maxWidth:"100%",paddingInlineEnd:0,...qe,"&::after":{display:"none"}}},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${unit(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${unit(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:n,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${unit(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},pI=l_;var s_=e=>{let{antCls:t,componentCls:o,iconSize:r,iconSizeSM:n,processIconColor:i,marginXXS:a,lineWidthBold:l,lineWidth:s,paddingXXS:c}=e,p=e.calc(r).add(e.calc(l).mul(4).equal()).equal(),m=e.calc(n).add(e.calc(e.lineWidth).mul(4).equal()).equal();return {[`&${o}-with-progress`]:{[`${o}-item`]:{paddingTop:c,[`&-process ${o}-item-container ${o}-item-icon ${o}-icon`]:{color:i}},[`&${o}-vertical > ${o}-item `]:{paddingInlineStart:c,[`> ${o}-item-container > ${o}-item-tail`]:{top:a,insetInlineStart:e.calc(r).div(2).sub(s).add(c).equal()}},[`&, &${o}-small`]:{[`&${o}-horizontal ${o}-item:first-child`]:{paddingBottom:c,paddingInlineStart:c}},[`&${o}-small${o}-vertical > ${o}-item > ${o}-item-container > ${o}-item-tail`]:{insetInlineStart:e.calc(n).div(2).sub(s).add(c).equal()},[`&${o}-label-vertical ${o}-item ${o}-item-tail`]:{top:e.calc(r).div(2).add(c).equal()},[`${o}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${unit(p)} !important`,height:`${unit(p)} !important`}}},[`&${o}-small`]:{[`&${o}-label-vertical ${o}-item ${o}-item-tail`]:{top:e.calc(n).div(2).add(c).equal()},[`${o}-item-icon ${t}-progress-inner`]:{width:`${unit(m)} !important`,height:`${unit(m)} !important`}}}}},dI=s_;var c_=e=>{let{componentCls:t,descriptionMaxWidth:o,lineHeight:r,dotCurrentSize:n,dotSize:i,motionDurationSlow:a}=e;return {[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${unit(e.calc(o).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${unit(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:unit(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:o},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(n).div(2).equal(),width:n,height:n,lineHeight:unit(n),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(n).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(n).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(n).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${unit(e.calc(i).add(e.paddingXS).equal())} 0 ${unit(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(n).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},mI=c_;var p_=e=>{let{componentCls:t}=e;return {[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},uI=p_;var d_=e=>{let{componentCls:t,iconSizeSM:o,fontSizeSM:r,fontSize:n,colorTextDescription:i}=e;return {[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:o,height:o,marginTop:0,marginBottom:0,marginInline:`0 ${unit(e.marginXS)}`,fontSize:r,lineHeight:unit(o),textAlign:"center",borderRadius:o},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:n,lineHeight:unit(o),"&::after":{top:e.calc(o).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:n},[`${t}-item-tail`]:{top:e.calc(o).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:o,lineHeight:unit(o),transform:"none"}}}}},fI=d_;var m_=e=>{let{componentCls:t,iconSizeSM:o,iconSize:r}=e;return {[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:unit(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${unit(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${unit(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(o).div(2).sub(e.lineWidth).equal(),padding:`${unit(e.calc(e.marginXXS).mul(1.5).add(o).equal())} 0 ${unit(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:unit(o)}}}}},gI=m_;var u_="wait",f_="process",g_="finish",y_="error",Nu=(e,t)=>{let o=`${t.componentCls}-item`,r=`${e}IconColor`,n=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,s=`${e}IconBorderColor`,c=`${e}DotColor`;return {[`${o}-${e} ${o}-icon`]:{backgroundColor:t[l],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${o}-${e}${o}-custom ${o}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${o}-${e} > ${o}-container > ${o}-content > ${o}-title`]:{color:t[n],"&::after":{backgroundColor:t[a]}},[`${o}-${e} > ${o}-container > ${o}-content > ${o}-description`]:{color:t[i]},[`${o}-${e} > ${o}-container > ${o}-tail::after`]:{backgroundColor:t[a]}}},C_=e=>{let{componentCls:t,motionDurationSlow:o}=e,r=`${t}-item`,n=`${r}-icon`;return {[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[n]:{...Fo(e)}}},[`${n}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[n]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:unit(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${unit(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${o}, border-color ${o}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${o}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:unit(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize},...Nu(u_,e),...Nu(f_,e),[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong},...Nu(g_,e),...Nu(y_,e),[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}}},h_=e=>{let{componentCls:t,motionDurationSlow:o}=e;return {[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${o}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},b_=e=>{let{componentCls:t}=e;return {[t]:{...ae(e),display:"flex",width:"100%",fontSize:0,textAlign:"initial",...C_(e),...h_(e),...aI(e),...fI(e),...gI(e),...lI(e),...cI(e),...mI(e),...pI(e),...uI(e),...dI(e),...sI(e)}}},S_=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-0.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),yI=oe("Steps",e=>{let{colorTextDisabled:t,controlHeightLG:o,colorTextLightSolid:r,colorText:n,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:l,colorError:s,colorBorderSecondary:c,colorSplit:p}=e,m=mergeToken(e,{processIconColor:r,processTitleColor:n,processDescriptionColor:n,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:p,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:p,waitDotColor:t,finishIconColor:i,finishTitleColor:n,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:s,errorDescriptionColor:s,errorTailColor:p,errorIconBgColor:s,errorIconBorderColor:s,errorDotColor:s,stepsNavActiveColor:i,stepsProgressSize:o,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:c});return [b_(m)]},S_);function v_(e){return e.filter(t=>t)}function Ph(e,t){if(e)return e;let o=H0(t).map(r=>{if(ve.isValidElement(r)){let{props:n}=r;return {...n}}return null});return v_(o)}var bI=e=>{let{percent:t,size:o,className:r,rootClassName:n,direction:i,items:a,responsive:l=true,current:s=0,children:c,style:p,...m}=e,{xs:d}=Zo(l),{getPrefixCls:f,direction:u,steps:g}=ve.useContext(O),y=ve.useMemo(()=>l&&d?"vertical":i,[d,i]),h=ke(o),b=f("steps",e.prefixCls),[C,S,v]=yI(b),x=e.type==="inline",$=f("",e.iconPrefix),R=Ph(a,c),T=x?void 0:t,P={...g?.style,...p},N=Xi(g?.className,{[`${b}-rtl`]:u==="rtl",[`${b}-with-progress`]:T!==void 0},r,n,S,v),M={finish:ve.createElement(J3,{className:`${b}-finish-icon`}),error:ve.createElement(JD,{className:`${b}-error-icon`})};return C(ve.createElement(hI,{icons:M,...m,style:P,current:s,size:h,items:R,itemRender:x?(w,B)=>w.description?ve.createElement(ot,{title:w.description},B):B:void 0,stepIcon:({node:w,status:B})=>{if(B==="process"&&T!==void 0){let k=h==="small"?32:40;return ve.createElement("div",{className:`${b}-progress-icon`},ve.createElement(lp,{type:"circle",percent:T,size:k,strokeWidth:4,format:()=>null}),w)}return w},direction:y,prefixCls:b,iconPrefix:$,className:N}))};bI.Step=hI.Step;var R_=bI;var w_=e=>{let{componentCls:t,trackHeightSM:o,trackPadding:r,trackMinWidthSM:n,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,c=`${t}-inner`,p=unit(s(l).add(s(r).mul(2)).equal()),m=unit(s(a).mul(2).equal());return {[t]:{[`&${t}-small`]:{minWidth:n,height:o,lineHeight:unit(o),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:o},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${p} - ${m})`,marginInlineEnd:`calc(100% - ${p} + ${m})`},[`${c}-unchecked`]:{marginTop:s(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${p} + ${m})`,marginInlineEnd:`calc(-100% + ${p} - ${m})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${unit(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},N_=e=>{let{componentCls:t,handleSize:o,calc:r}=e;return {[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(o).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},M_=e=>{let{componentCls:t,trackPadding:o,handleBg:r,handleShadow:n,handleSize:i,calc:a}=e,l=`${t}-handle`;return {[t]:{[l]:{position:"absolute",top:o,insetInlineStart:o,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:n,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${unit(a(i).add(o).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},E_=e=>{let{componentCls:t,trackHeight:o,trackPadding:r,innerMinMargin:n,innerMaxMargin:i,handleSize:a,calc:l}=e,s=`${t}-inner`,c=unit(l(a).add(l(r).mul(2)).equal()),p=unit(l(i).mul(2).equal());return {[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:n,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:o},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${p})`,marginInlineEnd:`calc(100% - ${c} + ${p})`},[`${s}-unchecked`]:{marginTop:l(o).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:n,paddingInlineEnd:i,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${p})`,marginInlineEnd:`calc(-100% + ${c} - ${p})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},k_=e=>{let{componentCls:t,trackHeight:o,trackMinWidth:r}=e;return {[t]:{...ae(e),position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:o,lineHeight:unit(o),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...$t(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}}}},D_=e=>{let{fontSize:t,lineHeight:o,controlHeight:r,colorWhite:n}=e,i=t*o,a=r/2,l=2,s=i-l*2,c=a-l*2;return {trackHeight:i,trackHeightSM:a,trackMinWidth:s*2+l*4,trackMinWidthSM:c*2+l*2,trackPadding:l,handleBg:n,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new TinyColor("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+l+l*2}},SI=oe("Switch",e=>{let t=mergeToken(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return [k_(t),E_(t),M_(t),N_(t),w_(t)]},D_);var A_=ve.forwardRef((e,t)=>{let{prefixCls:o,size:r,disabled:n,loading:i,className:a,rootClassName:l,style:s,checked:c,value:p,defaultChecked:m,defaultValue:d,onChange:f,...u}=e,[g,y]=s$(false,{value:c??p,defaultValue:m??d}),{getPrefixCls:h,direction:b,switch:C}=ve.useContext(O),S=ve.useContext(We),v=(n??S)||i,x=h("switch",o),$=ve.createElement("div",{className:`${x}-handle`},i&&ve.createElement(iM,{className:`${x}-loading-icon`})),[R,T,P]=SI(x),N=ke(r),M=Xi(C?.className,{[`${x}-small`]:N==="small",[`${x}-loading`]:i,[`${x}-rtl`]:b==="rtl"},a,l,T,P),E={...C?.style,...s};return R(ve.createElement(fn,{component:"Switch"},ve.createElement(F_,{...u,checked:g,onChange:(...w)=>{y(w[0]),f?.(...w);},prefixCls:x,className:M,style:E,disabled:v,ref:t,loadingIcon:$})))}),xI=A_;xI.__ANT_SWITCH=true;var Rh=xI;var L_=e=>null,vI=L_;var H_=e=>null,TI=H_;function Us(e){let[t,o]=useState(null);return [useCallback((i,a,l)=>{let s=t??i,c=Math.min(s||0,i),p=Math.max(s||0,i),m=a.slice(c,p+1).map(u=>e(u)),d=m.some(u=>!l.has(u)),f=[];return m.forEach(u=>{d?(l.has(u)||f.push(u),l.add(u)):(l.delete(u),f.push(u));}),o(d?p:null),f},[t]),i=>{o(i);}]}var ln={},Mu="SELECT_ALL",Eu="SELECT_INVERT",ku="SELECT_NONE",$I=[],PI=(e,t)=>{let o=[];return (t||[]).forEach(r=>{o.push(r),r&&typeof r=="object"&&e in r&&(o=[...o,...PI(e,r[e])]);}),o},K_=(e,t)=>{let{preserveSelectedRowKeys:o,selectedRowKeys:r,defaultSelectedRowKeys:n,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:s,onSelectInvert:c,onSelectNone:p,onSelectMultiple:m,columnWidth:d,type:f,selections:u,fixed:g,renderCell:y,hideSelectAll:h,checkStrictly:b=true}=t||{},{prefixCls:C,data:S,pageData:v,getRecordByKey:x,getRowKey:$,expandType:R,childrenColumnName:T,locale:P,getPopupContainer:N}=e,M=Tt(),[E,I]=Us(j=>j),[w,B]=s$(r||n||$I,{value:r}),k=ve.useRef(new Map),D=useCallback(j=>{if(o){let Y=new Map;j.forEach(J=>{let te=x(J);!te&&k.current.has(J)&&(te=k.current.get(J)),Y.set(J,te);}),k.current=Y;}},[x,o]);ve.useEffect(()=>{D(w);},[w]);let F=useMemo(()=>PI(T,v),[T,v]),{keyEntities:A}=useMemo(()=>{if(b)return {keyEntities:null};let j=S;if(o){let Y=new Set(F.map((te,ue)=>$(te,ue))),J=Array.from(k.current).reduce((te,[ue,W])=>Y.has(ue)?te:te.concat(W),[]);j=[...j,...J];}return convertDataToEntities(j,{externalGetKey:$,childrenPropName:T})},[S,$,b,T,o,F]),L=useMemo(()=>{let j=new Map;return F.forEach((Y,J)=>{let te=$(Y,J),ue=(i?i(Y):null)||{};j.set(te,ue);}),j},[F,$,i]),q=useCallback(j=>!!L.get($(j))?.disabled,[L,$]),[V,z]=useMemo(()=>{if(b)return [w||[],[]];let{checkedKeys:j,halfCheckedKeys:Y}=conductCheck(w,true,A,q);return [j||[],Y]},[w,b,A,q]),G=useMemo(()=>{let j=f==="radio"?V.slice(0,1):V;return new Set(j)},[V,f]),_=useMemo(()=>f==="radio"?new Set:new Set(z),[z,f]);ve.useEffect(()=>{t||B($I);},[!!t]);let Z=useCallback((j,Y)=>{let J,te;D(j),o?(J=j,te=j.map(ue=>k.current.get(ue))):(J=[],te=[],j.forEach(ue=>{let W=x(ue);W!==void 0&&(J.push(ue),te.push(W));})),B(J),a?.(J,te,{type:Y});},[B,x,a,o]),K=useCallback((j,Y,J,te)=>{if(l){let ue=J.map(W=>x(W));l(x(j),Y,ue,te);}Z(J,"single");},[l,x,Z]),Q=useMemo(()=>!u||h?null:(u===true?[Mu,Eu,ku]:u).map(Y=>Y===Mu?{key:"all",text:P.selectionAll,onSelect(){Z(S.map((J,te)=>$(J,te)).filter(J=>!L.get(J)?.disabled||G.has(J)),"all");}}:Y===Eu?{key:"invert",text:P.selectInvert,onSelect(){let J=new Set(G);v.forEach((ue,W)=>{let H=$(ue,W);L.get(H)?.disabled||(J.has(H)?J.delete(H):J.add(H));});let te=Array.from(J);c&&(M.deprecated(false,"onSelectInvert","onChange"),c(te)),Z(te,"invert");}}:Y===ku?{key:"none",text:P.selectNone,onSelect(){p?.(),Z(Array.from(G).filter(J=>L.get(J)?.disabled),"none");}}:Y).map(Y=>({...Y,onSelect:(...J)=>{Y.onSelect?.(...J),I(null);}})),[u,G,v,$,c,Z]);return [useCallback(j=>{if(!t)return M(!j.includes(ln),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),j.filter(de=>de!==ln);let Y=[...j],J=new Set(G),te=F.map($).filter(de=>!L.get(de).disabled),ue=te.every(de=>J.has(de)),W=te.some(de=>J.has(de)),H=()=>{let de=[];ue?te.forEach(pe=>{J.delete(pe),de.push(pe);}):te.forEach(pe=>{J.has(pe)||(J.add(pe),de.push(pe));});let U=Array.from(J);s?.(!ue,U.map(pe=>x(pe)),de.map(pe=>x(pe))),Z(U,"all"),I(null);},X,re;if(f!=="radio"){let de;if(Q){let le={getPopupContainer:N,items:Q.map((ie,me)=>{let{key:Ce,text:be,onSelect:_e}=ie;return {key:Ce??me,onClick:()=>{_e?.(te);},label:be}})};de=ve.createElement("div",{className:`${C}-selection-extra`},ve.createElement(nl,{menu:le,getPopupContainer:N},ve.createElement("span",null,ve.createElement(oF,null))));}let U=F.map((le,ie)=>{let me=$(le,ie),Ce=L.get(me)||{};return {checked:J.has(me),...Ce}}).filter(({disabled:le})=>le),pe=!!U.length&&U.length===F.length,se=pe&&U.every(({checked:le})=>le),he=pe&&U.some(({checked:le})=>le);re=ve.createElement(hr,{checked:pe?se:!!F.length&&ue,indeterminate:pe?!se&&he:!ue&&W,onChange:H,disabled:F.length===0||pe,"aria-label":de?"Custom selection":"Select all",skipGroup:true}),X=!h&&ve.createElement("div",{className:`${C}-selection`},re,de);}let ce;f==="radio"?ce=(de,U,pe)=>{let se=$(U,pe),he=J.has(se),le=L.get(se);return {node:ve.createElement(oi,{...le,checked:he,onClick:ie=>{ie.stopPropagation(),le?.onClick?.(ie);},onChange:ie=>{J.has(se)||K(se,true,[se],ie.nativeEvent),le?.onChange?.(ie);}}),checked:he}}:ce=(de,U,pe)=>{let se=$(U,pe),he=J.has(se),le=_.has(se),ie=L.get(se),me;return R==="nest"?(me=le,M(typeof ie?.indeterminate!="boolean","usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):me=ie?.indeterminate??le,{node:ve.createElement(hr,{...ie,indeterminate:me,checked:he,skipGroup:true,onClick:Ce=>{Ce.stopPropagation(),ie?.onClick?.(Ce);},onChange:Ce=>{let{nativeEvent:be}=Ce,{shiftKey:_e}=be,Ut=te.findIndex(tt=>tt===se),Ke=V.some(tt=>te.includes(tt));if(_e&&b&&Ke){let tt=E(Ut,te,J),ko=Array.from(J);m?.(!he,ko.map(Do=>x(Do)),tt.map(Do=>x(Do))),Z(ko,"multiple");}else {let tt=V;if(b){let ko=he?arrDel(tt,se):arrAdd(tt,se);K(se,!he,ko,be);}else {let ko=conductCheck([...tt,se],true,A,q),{checkedKeys:Do,halfCheckedKeys:wr}=ko,Bo=Do;if(he){let vi=new Set(Do);vi.delete(se),Bo=conductCheck(Array.from(vi),{checked:false,halfCheckedKeys:wr},A,q).checkedKeys;}K(se,!he,Bo,be);}}I(he?null:Ut),ie?.onChange?.(Ce);}}),checked:he}};let fe=(de,U,pe)=>{let{node:se,checked:he}=ce(de,U,pe);return y?y(he,U,pe,se):se};if(!Y.includes(ln))if(Y.findIndex(de=>de[INTERNAL_COL_DEFINE]?.columnType==="EXPAND_COLUMN")===0){let[de,...U]=Y;Y=[de,ln,...U];}else Y=[ln,...Y];let Pe=Y.indexOf(ln);M(Y.filter(de=>de===ln).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),Y=Y.filter((de,U)=>de!==ln||U===Pe);let we=Y[Pe-1],ye=Y[Pe+1],ge=g;ge===void 0&&(ye?.fixed!==void 0?ge=ye.fixed:we?.fixed!==void 0&&(ge=we.fixed)),ge&&we&&we[INTERNAL_COL_DEFINE]?.columnType==="EXPAND_COLUMN"&&we.fixed===void 0&&(we.fixed=ge);let xe=Xi(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:u&&f==="checkbox"}),Te=()=>t?.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(re):t.columnTitle:X,Se={fixed:ge,width:d,className:`${C}-selection-column`,title:Te(),render:fe,onCell:t.onCell,[INTERNAL_COL_DEFINE]:{className:xe}};return Y.map(de=>de===ln?Se:de)},[$,F,t,V,G,_,d,Q,R,L,m,K,q]),G]},RI=K_;function Z_(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(o=>{if(!(o in e._antProxy)){let r=e[o];e._antProxy[o]=r,e[o]=t[o];}}),e}function Nh(e,t){return useImperativeHandle(e,()=>{let o=t(),{nativeElement:r}=o;return typeof Proxy<"u"?new Proxy(r,{get(n,i){return o[i]?o[i]:Reflect.get(n,i)}}):Z_(r,o)})}function J_(e){return t=>{let{prefixCls:o,onExpand:r,record:n,expanded:i,expandable:a}=t,l=`${o}-row-expand-icon`;return ve.createElement("button",{type:"button",onClick:s=>{r(n,s),s.stopPropagation();},className:Xi(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}var wI=J_;function Mh(e){return (o,r)=>{let n=o.querySelector(`.${e}-container`),i=r;if(n){let a=getComputedStyle(n),l=parseInt(a.borderLeftWidth,10),s=parseInt(a.borderRightWidth,10);i=r-l-s;}return i}}var kn=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function ma(e,t){return t?`${t}-${e}`:`${e}`}var gl=(e,t)=>typeof e=="function"?e(t):e,NI=(e,t)=>{let o=gl(e,t);return Object.prototype.toString.call(o)==="[object Object]"?"":o};function Eh(e){let t=ve.useRef(e),o=Qn();return [()=>t.current,r=>{t.current=r,o();}]}var EI=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:o,directoryNodeSelectedColor:r,motionDurationMid:n,borderRadius:i,controlItemBgHover:a})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${n}`,content:'""',borderRadius:i},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:o}}}}});var tU=new Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),oU=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),rU=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${unit(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),nU=(e,t)=>{let{treeCls:o,treeNodeCls:r,treeNodePadding:n,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:c}=t;return {[o]:{...ae(t),background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${o}-rtl ${o}-switcher_close ${o}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${o}-active-focused)`]:{...Fo(t)},[`${o}-list-holder-inner`]:{alignItems:"flex-start"},[`&${o}-block-node`]:{[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:tU,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:n,lineHeight:unit(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:n},[`&-disabled ${o}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`&:not(${r}-disabled)`]:{[`${o}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${o}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${o}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${o}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${r}-disabled ${o}-draggable-icon`]:{visibility:"hidden"}}},[`${o}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${o}-draggable-icon`]:{visibility:"hidden"},[`${o}-switcher, ${o}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${o}-switcher`]:{...oU(e,t),position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:true,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${o}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${o}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(n).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}},[`${o}-node-content-wrapper`]:{position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,...rU(e,t),"&:hover":{backgroundColor:s},[`&${o}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${o}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${o}-unselectable ${o}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${o}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(n).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${o}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${o}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${unit(t.calc(i).div(2).equal())} !important`}}}},Dh=(e,t)=>{let o=`.${e}`,r=`${o}-treenode`,n=t.calc(t.paddingXS).div(2).equal(),i=mergeToken(t,{treeCls:o,treeNodeCls:r,treeNodePadding:n});return [nU(e,i),EI(i)]},Bh=e=>{let{controlHeightSM:t,controlItemBgHover:o,controlItemBgActive:r}=e,n=t;return {titleHeight:n,indentSize:n,nodeHoverBg:o,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},iU=e=>{let{colorTextLightSolid:t,colorPrimary:o}=e;return {...Bh(e),directoryNodeSelectedColor:t,directoryNodeSelectedBg:o}},kI=oe("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:Za(`${t}-checkbox`,e)},Dh(t,e),qr(e)],iU);var DI=4;function lU(e){let{dropPosition:t,dropLevelOffset:o,prefixCls:r,indent:n,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",s={[a]:-o*n+DI,[l]:0};switch(t){case -1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[a]=n+DI;break}return ve__default.createElement("div",{style:s,className:`${r}-drop-indicator`})}var BI=lU;var uU=e=>{let{prefixCls:t,switcherIcon:o,treeNodeProps:r,showLine:n,switcherLoadingIcon:i}=e,{isLeaf:a,expanded:l,loading:s}=r;if(s)return ve.isValidElement(i)?i:ve.createElement(iM,{className:`${t}-switcher-loading-icon`});let c;if(n&&typeof n=="object"&&(c=n.showLeafIcon),a){if(!n)return null;if(typeof c!="boolean"&&c){let d=typeof c=="function"?c(r):c,f=`${t}-switcher-line-custom-icon`;return ve.isValidElement(d)?Oe(d,{className:Xi(d.props.className||"",f)}):d}return c?ve.createElement(cU,{className:`${t}-switcher-line-icon`}):ve.createElement("span",{className:`${t}-switcher-leaf-line`})}let p=`${t}-switcher-icon`,m=typeof o=="function"?o(r):o;return ve.isValidElement(m)?Oe(m,{className:Xi(m.props.className||"",p)}):m!==void 0?m:n?l?ve.createElement(dU,{className:`${t}-switcher-line-icon`}):ve.createElement(mU,{className:`${t}-switcher-line-icon`}):ve.createElement(sU,{className:p})},Du=uU;var CU=ve__default.forwardRef((e,t)=>{let{getPrefixCls:o,direction:r,virtual:n,tree:i}=ve__default.useContext(O),{prefixCls:a,className:l,showIcon:s=false,showLine:c,switcherIcon:p,switcherLoadingIcon:m,blockNode:d=false,children:f,checkable:u=false,selectable:g=true,draggable:y,motion:h,style:b}=e,C=o("tree",a),S=o(),v=h??{...Ur(S),motionAppear:false},x={...e,checkable:u,selectable:g,showIcon:s,motion:v,blockNode:d,showLine:!!c,dropIndicatorRender:BI},[$,R,T]=kI(C),[,P]=De(),N=P.paddingXS/2+(P.Tree?.titleHeight||P.controlHeightSM),M=ve__default.useMemo(()=>{if(!y)return false;let I={};switch(typeof y){case "function":I.nodeDraggable=y;break;case "object":I={...y};break;}return I.icon!==false&&(I.icon=I.icon||ve__default.createElement(fU,null)),I},[y]),E=I=>ve__default.createElement(Du,{prefixCls:C,switcherIcon:p,switcherLoadingIcon:m,treeNodeProps:I,showLine:c});return $(ve__default.createElement(yU,{itemHeight:N,ref:t,virtual:n,...x,style:{...i?.style,...b},prefixCls:C,className:Xi({[`${C}-icon-hide`]:!s,[`${C}-block-node`]:d,[`${C}-unselectable`]:!g,[`${C}-rtl`]:r==="rtl"},i?.className,l,R,T),direction:r,checkable:u&&ve__default.createElement("span",{className:`${C}-checkbox-inner`}),selectable:g,switcherIcon:E,draggable:M},f))}),Bu=CU;var FI=0,Oh=1,zI=2;function Fh(e,t,o){let{key:r,children:n}=o;function i(a){let l=a[r],s=a[n];t(l,a)!==false&&Fh(s||[],t,o);}e.forEach(i);}function LI({treeData:e,expandedKeys:t,startKey:o,endKey:r,fieldNames:n}){let i=[],a=FI;if(o&&o===r)return [o];if(!o||!r)return [];function l(s){return s===o||s===r}return Fh(e,s=>{if(a===zI)return false;if(l(s)){if(i.push(s),a===FI)a=Oh;else if(a===Oh)return a=zI,false}else a===Oh&&i.push(s);return t.includes(s)},fillFieldNames(n)),i}function Ou(e,t,o){let r=[...t],n=[];return Fh(e,(i,a)=>{let l=r.indexOf(i);return l!==-1&&(n.push(a),r.splice(l,1)),!!r.length},fillFieldNames(o)),n}function PU(e){let{isLeaf:t,expanded:o}=e;return t?ve.createElement(cU,null):o?ve.createElement(bU,null):ve.createElement(SU,null)}function HI({treeData:e,children:t}){return e||convertTreeToData(t)}var RU=({defaultExpandAll:e,defaultExpandParent:t,defaultExpandedKeys:o,...r},n)=>{let i=ve.useRef(null),a=ve.useRef(null),l=()=>{let{keyEntities:$}=convertDataToEntities(HI(r)),R;return e?R=Object.keys($):t?R=conductExpandParent(r.expandedKeys||o||[],$):R=r.expandedKeys||o||[],R},[s,c]=ve.useState(r.selectedKeys||r.defaultSelectedKeys||[]),[p,m]=ve.useState(()=>l());ve.useEffect(()=>{"selectedKeys"in r&&c(r.selectedKeys);},[r.selectedKeys]),ve.useEffect(()=>{"expandedKeys"in r&&m(r.expandedKeys);},[r.expandedKeys]);let d=($,R)=>("expandedKeys"in r||m($),r.onExpand?.($,R)),f=($,R)=>{let{multiple:T,fieldNames:P}=r,{node:N,nativeEvent:M}=R,{key:E=""}=N,I=HI(r),w={...R,selected:true},B=M?.ctrlKey||M?.metaKey,k=M?.shiftKey,D;T&&B?(D=$,i.current=E,a.current=D,w.selectedNodes=Ou(I,D,P)):T&&k?(D=Array.from(new Set([...a.current||[],...LI({treeData:I,expandedKeys:p,startKey:E,endKey:i.current,fieldNames:P})])),w.selectedNodes=Ou(I,D,P)):(D=[E],i.current=E,a.current=D,w.selectedNodes=Ou(I,D,P)),r.onSelect?.(D,w),"selectedKeys"in r||c(D);},{getPrefixCls:u,direction:g}=ve.useContext(O),{prefixCls:y,className:h,showIcon:b=true,expandAction:C="click",...S}=r,v=u("tree",y),x=Xi(`${v}-directory`,{[`${v}-directory-rtl`]:g==="rtl"},h);return ve.createElement(Bu,{icon:PU,ref:n,blockNode:true,...S,showIcon:b,expandAction:C,prefixCls:v,className:x,expandedKeys:p,selectedKeys:s,onSelect:f,onExpand:d})},IU=ve.forwardRef(RU),WI=IU;var zh=Bu;zh.DirectoryTree=WI;zh.TreeNode=TreeNode;var Ah=zh;var MU=e=>{let{value:t,filterSearch:o,tablePrefixCls:r,locale:n,onChange:i}=e;return o?ve.createElement("div",{className:`${r}-filter-dropdown-search`},ve.createElement(en,{prefix:ve.createElement(nF,null),placeholder:n.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},Lh=MU;var kU=e=>{let{keyCode:t}=e;t===wN.ENTER&&e.stopPropagation();},DU=ve.forwardRef((e,t)=>ve.createElement("div",{className:e.className,onClick:o=>o.stopPropagation(),onKeyDown:kU,ref:t},e.children)),GI=DU;function Cl(e){let t=[];return (e||[]).forEach(({value:o,children:r})=>{t.push(o),r&&(t=[...t,...Cl(r)]);}),t}function OU(e){return e.some(({children:t})=>t)}function jI(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):false}function _I({filters:e,prefixCls:t,filteredKeys:o,filterMultiple:r,searchValue:n,filterSearch:i}){return e.map((a,l)=>{let s=String(a.value);if(a.children)return {key:s||l,label:a.text,popupClassName:`${t}-dropdown-submenu`,children:_I({filters:a.children,prefixCls:t,filteredKeys:o,filterMultiple:r,searchValue:n,filterSearch:i})};let c=r?hr:oi,p={key:a.value!==void 0?s:l,label:ve.createElement(ve.Fragment,null,ve.createElement(c,{checked:o.includes(s)}),ve.createElement("span",null,a.text))};return n.trim()?typeof i=="function"?i(n,a)?p:null:jI(n,a.text)?p:null:p})}function Wh(e){return e||[]}var FU=e=>{let{tablePrefixCls:t,prefixCls:o,column:r,dropdownPrefixCls:n,columnKey:i,filterOnClose:a,filterMultiple:l,filterMode:s="menu",filterSearch:c=false,filterState:p,triggerFilter:m,locale:d,children:f,getPopupContainer:u,rootClassName:g}=e,{filterResetToDefaultFilteredValue:y,defaultFilteredValue:h,filterDropdownProps:b={},filterDropdownOpen:C,filterDropdownVisible:S,onFilterDropdownVisibleChange:v,onFilterDropdownOpenChange:x}=r,[$,R]=ve.useState(false),T=!!(p&&(p.filteredKeys?.length||p.forceFiltered)),P=H=>{R(H),b.onOpenChange?.(H),x?.(H),v?.(H);},N=b.open??C??S??$,M=p?.filteredKeys,[E,I]=Eh(Wh(M)),w=({selectedKeys:H})=>{I(H);},B=(H,{node:X,checked:re})=>{w(l?{selectedKeys:H}:{selectedKeys:re&&X.key?[X.key]:[]});};ve.useEffect(()=>{$&&w({selectedKeys:Wh(M)});},[M]);let[k,D]=ve.useState([]),F=H=>{D(H);},[A,L]=ve.useState(""),q=H=>{let{value:X}=H.target;L(X);};ve.useEffect(()=>{$||L("");},[$]);let V=H=>{let X=H?.length?H:null;if(X===null&&(!p||!p.filteredKeys)||VI(X,p?.filteredKeys,true))return null;m({column:r,key:i,filteredKeys:X});},z=()=>{P(false),V(E());},G=({confirm:H,closeDropdown:X}={confirm:false,closeDropdown:false})=>{H&&V([]),X&&P(false),L(""),I(y?(h||[]).map(re=>String(re)):[]);},_=({closeDropdown:H}={closeDropdown:true})=>{H&&P(false),V(E());},Z=(H,X)=>{X.source==="trigger"&&(H&&M!==void 0&&I(Wh(M)),P(H),!H&&!r.filterDropdown&&a&&z());},K=Xi({[`${n}-menu-without-submenu`]:!OU(r.filters||[])}),Q=H=>{if(H.target.checked){let X=Cl(r?.filters).map(re=>String(re));I(X);}else I([]);},ee=({filters:H})=>(H||[]).map((X,re)=>{let ce=String(X.value),fe={title:X.text,key:X.value!==void 0?ce:String(re)};return X.children&&(fe.children=ee({filters:X.children})),fe}),j=H=>({...H,text:H.title,value:H.key,children:H.children?.map(X=>j(X))||[]}),Y,{direction:J,renderEmpty:te}=ve.useContext(O);if(typeof r.filterDropdown=="function")Y=r.filterDropdown({prefixCls:`${n}-custom`,setSelectedKeys:H=>w({selectedKeys:H}),selectedKeys:E(),confirm:_,clearFilters:G,filters:r.filters,visible:N,close:()=>{P(false);}});else if(r.filterDropdown)Y=r.filterDropdown;else {let H=E()||[],X=()=>{let ce=te?.("Table.filter")??ve.createElement(hn,{image:hn.PRESENTED_IMAGE_SIMPLE,description:d.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}});if((r.filters||[]).length===0)return ce;if(s==="tree")return ve.createElement(ve.Fragment,null,ve.createElement(Lh,{filterSearch:c,value:A,onChange:q,tablePrefixCls:t,locale:d}),ve.createElement("div",{className:`${t}-filter-dropdown-tree`},l?ve.createElement(hr,{checked:H.length===Cl(r.filters).length,indeterminate:H.length>0&&H.length<Cl(r.filters).length,className:`${t}-filter-dropdown-checkall`,onChange:Q},d.filterCheckall):null,ve.createElement(Ah,{checkable:true,selectable:false,blockNode:true,multiple:l,checkStrictly:!l,className:`${n}-menu`,onCheck:B,checkedKeys:H,selectedKeys:H,showIcon:false,treeData:ee({filters:r.filters}),autoExpandParent:true,defaultExpandAll:true,filterTreeNode:A.trim()?we=>typeof c=="function"?c(A,j(we)):jI(A,we.title):void 0})));let fe=_I({filters:r.filters||[],filterSearch:c,prefixCls:o,filteredKeys:E(),filterMultiple:l,searchValue:A}),Pe=fe.every(we=>we===null);return ve.createElement(ve.Fragment,null,ve.createElement(Lh,{filterSearch:c,value:A,onChange:q,tablePrefixCls:t,locale:d}),Pe?ce:ve.createElement(Hc,{selectable:true,multiple:l,prefixCls:`${n}-menu`,className:K,onSelect:w,onDeselect:w,selectedKeys:H,getPopupContainer:u,openKeys:k,onOpenChange:F,items:fe}))},re=()=>y?VI((h||[]).map(ce=>String(ce)),H,true):H.length===0;Y=ve.createElement(ve.Fragment,null,X(),ve.createElement("div",{className:`${o}-dropdown-btns`},ve.createElement(Ge,{type:"link",size:"small",disabled:re(),onClick:()=>G()},d.filterReset),ve.createElement(Ge,{type:"primary",size:"small",onClick:z},d.filterConfirm)));}r.filterDropdown&&(Y=ve.createElement(ym,{selectable:void 0},Y)),Y=ve.createElement(GI,{className:`${o}-dropdown`},Y);let W=zs({trigger:["click"],placement:J==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let H;return typeof r.filterIcon=="function"?H=r.filterIcon(T):r.filterIcon?H=r.filterIcon:H=ve.createElement(BU,null),ve.createElement("span",{role:"button",tabIndex:-1,className:Xi(`${o}-trigger`,{active:T}),onClick:X=>{X.stopPropagation();}},H)})(),getPopupContainer:u},{...b,rootClassName:Xi(g,b.rootClassName),open:N,onOpenChange:Z,dropdownRender:()=>typeof b?.dropdownRender=="function"?b.dropdownRender(Y):Y});return ve.createElement("div",{className:`${o}-column`},ve.createElement("span",{className:`${t}-column-title`},f),ve.createElement(nl,{...W}))},UI=FU;var Gh=(e,t,o)=>{let r=[];return (e||[]).forEach((n,i)=>{let a=ma(i,o);if(n.filters||"filterDropdown"in n||"onFilter"in n)if("filteredValue"in n){let l=n.filteredValue;"filterDropdown"in n||(l=l?.map(String)??l),r.push({column:n,key:kn(n,a),filteredKeys:l,forceFiltered:n.filtered});}else r.push({column:n,key:kn(n,a),filteredKeys:t&&n.defaultFilteredValue?n.defaultFilteredValue:void 0,forceFiltered:n.filtered});"children"in n&&(r=[...r,...Gh(n.children,t,a)]);}),r};function XI(e,t,o,r,n,i,a,l,s){return o.map((c,p)=>{let m=ma(p,l),{filterOnClose:d=true,filterMultiple:f=true,filterMode:u,filterSearch:g}=c,y=c;if(y.filters||y.filterDropdown){let h=kn(y,m),b=r.find(({key:C})=>h===C);y={...y,title:C=>ve.createElement(UI,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:h,filterState:b,filterOnClose:d,filterMultiple:f,filterMode:u,filterSearch:g,triggerFilter:i,locale:n,getPopupContainer:a,rootClassName:s},gl(c.title,C))};}return "children"in y&&(y={...y,children:XI(e,t,y.children,r,n,i,a,m,s)}),y})}var qI=e=>{let t={};return e.forEach(({key:o,filteredKeys:r,column:n})=>{let i=o,{filters:a,filterDropdown:l}=n;if(l)t[i]=r||null;else if(Array.isArray(r)){let s=Cl(a);t[i]=s.filter(c=>r.includes(String(c)));}else t[i]=null;}),t},Au=(e,t,o)=>t.reduce((n,i)=>{let{column:{onFilter:a,filters:l},filteredKeys:s}=i;return a&&s&&s.length?n.map(c=>({...c})).filter(c=>s.some(p=>{let m=Cl(l),d=m.findIndex(u=>String(u)===String(p)),f=d!==-1?m[d]:p;return c[o]&&(c[o]=Au(c[o],t,o)),a(f,c)})):n},e),KI=e=>e.flatMap(t=>"children"in t?[t,...KI(t.children||[])]:[t]),zU=e=>{let {prefixCls:t,dropdownPrefixCls:o,mergedColumns:r,onFilterChange:n,getPopupContainer:i,locale:a,rootClassName:l}=e;Tt();let c=ve.useMemo(()=>KI(r||[]),[r]),[p,m]=ve.useState(()=>Gh(c,true)),d=ve.useMemo(()=>{let y=Gh(c,false);if(y.length===0)return y;let h=true;if(y.forEach(({filteredKeys:C})=>{C!==void 0?h=false:false;}),h){let C=(c||[]).map((S,v)=>kn(S,ma(v)));return p.filter(({key:S})=>C.includes(S)).map(S=>{let v=c[C.findIndex(x=>x===S.key)];return {...S,column:{...S.column,...v},forceFiltered:v.filtered}})}return y},[c,p]),f=ve.useMemo(()=>qI(d),[d]),u=y=>{let h=d.filter(({key:b})=>b!==y.key);h.push(y),m(h),n(qI(h),h);};return [y=>XI(t,o,y,d,a,u,i,void 0,l),d,f]};var YI=zU;var AU=(e,t,o)=>{let r=ve.useRef({});function n(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==o){let l=function(s){s.forEach((c,p)=>{let m=o(c,p);a.set(m,c),c&&typeof c=="object"&&t in c&&l(c[t]||[]);});},a=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:o};}return r.current.kvMap?.get(i)}return [n]},QI=AU;var Vh=10;function JI(e,t){let o={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(n=>{let i=e[n];typeof i!="function"&&(o[n]=i);}),o}function HU(e,t,o){let{total:r=0,...n}=o&&typeof o=="object"?o:{},[i,a]=useState(()=>({current:"defaultCurrent"in n?n.defaultCurrent:1,pageSize:"defaultPageSize"in n?n.defaultPageSize:Vh})),l=zs(i,n,{total:r>0?r:e}),s=Math.ceil((r||e)/l.pageSize);l.current>s&&(l.current=s||1);let c=(m,d)=>{a({current:m??1,pageSize:d||l.pageSize});},p=(m,d)=>{o&&o.onChange?.(m,d),c(m,d),t(m,d||l?.pageSize);};return o===false?[{},()=>{}]:[{...l,onChange:p},c]}var ew=HU;var Lu="ascend",jh="descend",Hu=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:false,tw=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:false,jU=(e,t)=>t?e[e.indexOf(t)+1]:e[0],_h=(e,t,o)=>{let r=[],n=(i,a)=>{r.push({column:i,key:kn(i,a),multiplePriority:Hu(i),sortOrder:i.sortOrder});};return (e||[]).forEach((i,a)=>{let l=ma(a,o);i.children?("sortOrder"in i&&n(i,l),r=[...r,..._h(i.children,t,l)]):i.sorter&&("sortOrder"in i?n(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:kn(i,l),multiplePriority:Hu(i),sortOrder:i.defaultSortOrder}));}),r},nw=(e,t,o,r,n,i,a,l)=>(t||[]).map((c,p)=>{let m=ma(p,l),d=c;if(d.sorter){let f=d.sortDirections||n,u=d.showSorterTooltip===void 0?a:d.showSorterTooltip,g=kn(d,m),y=o.find(({key:T})=>T===g),h=y?y.sortOrder:null,b=jU(f,h),C;if(c.sortIcon)C=c.sortIcon({sortOrder:h});else {let T=f.includes(Lu)&&ve.createElement(GU,{className:Xi(`${e}-column-sorter-up`,{active:h===Lu})}),P=f.includes(jh)&&ve.createElement(WU,{className:Xi(`${e}-column-sorter-down`,{active:h===jh})});C=ve.createElement("span",{className:Xi(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(T&&P)})},ve.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},T,P));}let{cancelSort:S,triggerAsc:v,triggerDesc:x}=i||{},$=S;b===jh?$=x:b===Lu&&($=v);let R=typeof u=="object"?{title:$,...u}:{title:$};d={...d,className:Xi(d.className,{[`${e}-column-sort`]:h}),title:T=>{let P=`${e}-column-sorters`,N=ve.createElement("span",{className:`${e}-column-title`},gl(c.title,T)),M=ve.createElement("div",{className:P},N,C);return u?typeof u!="boolean"&&u?.target==="sorter-icon"?ve.createElement("div",{className:`${P} ${e}-column-sorters-tooltip-target-sorter`},N,ve.createElement(ot,{...R},C)):ve.createElement(ot,{...R},M):M},onHeaderCell:T=>{let P=c.onHeaderCell?.(T)||{},N=P.onClick,M=P.onKeyDown;P.onClick=w=>{r({column:c,key:g,sortOrder:b,multiplePriority:Hu(c)}),N?.(w);},P.onKeyDown=w=>{w.keyCode===wN.ENTER&&(r({column:c,key:g,sortOrder:b,multiplePriority:Hu(c)}),M?.(w));};let E=NI(c.title,{}),I=E?.toString();return h?P["aria-sort"]=h==="ascend"?"ascending":"descending":P["aria-label"]=I||"",P.className=Xi(P.className,`${e}-column-has-sorters`),P.tabIndex=0,c.ellipsis&&(P.title=(E??"").toString()),P}};}return "children"in d&&(d={...d,children:nw(e,d.children,o,r,n,i,a,m)}),d}),ow=e=>{let{column:t,sortOrder:o}=e;return {column:t,order:o,field:t.dataIndex,columnKey:t.key}},rw=e=>{let t=e.filter(({sortOrder:o})=>o).map(ow);if(t.length===0&&e.length){let o=e.length-1;return {...ow(e[o]),column:void 0,order:void 0,field:void 0,columnKey:void 0}}return t.length<=1?t[0]||{}:t},Wu=(e,t,o)=>{let r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),n=e.slice(),i=r.filter(({column:{sorter:a},sortOrder:l})=>tw(a)&&l);return i.length?n.sort((a,l)=>{for(let s=0;s<i.length;s+=1){let c=i[s],{column:{sorter:p},sortOrder:m}=c,d=tw(p);if(d&&m){let f=d(a,l,m);if(f!==0)return m===Lu?f:-f}}return 0}).map(a=>{let l=a[o];return l?{...a,[o]:Wu(l,t,o)}:a}):n},_U=e=>{let{prefixCls:t,mergedColumns:o,sortDirections:r,tableLocale:n,showSorterTooltip:i,onSorterChange:a}=e,[l,s]=ve.useState(_h(o,true)),c=(g,y)=>{let h=[];return g.forEach((b,C)=>{let S=ma(C,y);if(h.push(kn(b,S)),Array.isArray(b.children)){let v=c(b.children,S);h.push(...v);}}),h},p=ve.useMemo(()=>{let g=true,y=_h(o,false);if(!y.length){let S=c(o);return l.filter(({key:v})=>S.includes(v))}let h=[];function b(S){g?h.push(S):h.push({...S,sortOrder:null});}let C=null;return y.forEach(S=>{C===null?(b(S),S.sortOrder&&(S.multiplePriority===false?g=false:C=true)):(C&&S.multiplePriority!==false||(g=false),b(S));}),h},[o,l]),m=ve.useMemo(()=>{let g=p.map(({column:y,sortOrder:h})=>({column:y,order:h}));return {sortColumns:g,sortColumn:g[0]?.column,sortOrder:g[0]?.order}},[p]),d=g=>{let y;g.multiplePriority===false||!p.length||p[0].multiplePriority===false?y=[g]:y=[...p.filter(({key:h})=>h!==g.key),g],s(y),a(rw(y),y);};return [g=>nw(t,g,p,d,r,n,i),p,m,()=>rw(p)]},iw=_U;var lw=(e,t)=>e.map(r=>{let n={...r};return n.title=gl(r.title,t),"children"in n&&(n.children=lw(n.children,t)),n}),UU=e=>[ve.useCallback(o=>lw(o,e),[e])],sw=UU;var XU=genTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),cw=XU;var YU=genVirtualTable((e,t)=>{let{_renderTimes:o}=e,{_renderTimes:r}=t;return o!==r}),pw=YU;var ZU=e=>{let{componentCls:t,lineWidth:o,lineType:r,tableBorderColor:n,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:s}=e,c=`${unit(o)} ${r} ${n}`,p=(m,d,f)=>({[`&${t}-${m}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${unit(s(d).mul(-1).equal())}
|
|
250
250
|
${unit(s(s(f).add(o)).mul(-1).equal())}`}}}}}});return {[`${t}-wrapper`]:{[`${t}${t}-bordered`]:{[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[`
|
|
251
251
|
> ${t}-content,
|
|
252
252
|
> ${t}-header,
|
|
@@ -255,10 +255,10 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
|
|
|
255
255
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${unit(s(a).mul(-1).equal())} ${unit(s(s(l).add(o)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:o,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
|
256
256
|
> tr${t}-expanded-row,
|
|
257
257
|
> tr${t}-placeholder
|
|
258
|
-
`]:{"> th, > td":{borderInlineEnd:0}}}}},...p("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...p("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:c,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${unit(o)} 0 ${unit(o)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},
|
|
258
|
+
`]:{"> th, > td":{borderInlineEnd:0}}}}},...p("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle),...p("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall),[`> ${t}-footer`]:{border:c,borderTop:0}},[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${unit(o)} 0 ${unit(o)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},dw=ZU;var QU=e=>{let{componentCls:t}=e;return {[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:{...qe,wordBreak:"keep-all",[`
|
|
259
259
|
&${t}-cell-fix-left-last,
|
|
260
260
|
&${t}-cell-fix-right-first
|
|
261
|
-
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}}}}},
|
|
261
|
+
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}}}}},mw=QU;var JU=e=>{let{componentCls:t}=e;return {[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},uw=JU;var eq=e=>{let{componentCls:t,antCls:o,motionDurationSlow:r,lineWidth:n,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:s,tableExpandColumnWidth:c,borderRadius:p,tablePaddingVertical:m,tablePaddingHorizontal:d,tableExpandedRowBg:f,paddingXXS:u,expandIconMarginTop:g,expandIconSize:y,expandIconHalfInner:h,expandIconScale:b,calc:C}=e,S=`${unit(n)} ${a} ${l}`,v=C(u).sub(n).equal();return {[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:{...Ri(e),position:"relative",float:"left",width:y,height:y,color:"inherit",lineHeight:unit(y),background:s,border:S,borderRadius:p,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:h,insetInlineEnd:v,insetInlineStart:v,height:n},"&::after":{top:v,bottom:v,insetInlineStart:h,width:n,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}},[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${o}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${unit(C(m).mul(-1).equal())} ${unit(C(d).mul(-1).equal())}`,padding:`${unit(m)} ${unit(d)}`}}}},fw=eq;var tq=e=>{let{componentCls:t,antCls:o,iconCls:r,tableFilterDropdownWidth:n,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:s,lineWidth:c,lineType:p,tableBorderColor:m,headerIconColor:d,fontSizeSM:f,tablePaddingHorizontal:u,borderRadius:g,motionDurationSlow:y,colorTextDescription:h,colorPrimary:b,tableHeaderFilterActiveBg:C,colorTextDisabled:S,tableFilterDropdownBg:v,tableFilterDropdownHeight:x,controlItemBgHover:$,controlItemBgActive:R,boxShadowSecondary:T,filterDropdownMenuBg:P,calc:N}=e,M=`${o}-dropdown`,E=`${t}-filter-dropdown`,I=`${o}-tree`,w=`${unit(c)} ${p} ${m}`;return [{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:N(a).mul(-1).equal(),marginInline:`${unit(a)} ${unit(N(u).div(2).mul(-1).equal())}`,padding:`0 ${unit(a)}`,color:d,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:h,background:C},"&.active":{color:b}}}},{[`${o}-dropdown`]:{[E]:{...ae(e),minWidth:n,backgroundColor:v,borderRadius:g,boxShadow:T,overflow:"hidden",[`${M}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${unit(l)} 0`,color:S,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${E}-tree`]:{paddingBlock:`${unit(l)} 0`,paddingInline:l,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:$},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:R}}},[`${E}-search`]:{padding:l,borderBottom:w,"&-input":{input:{minWidth:i},[r]:{color:S}}},[`${E}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${E}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${unit(N(l).sub(c).equal())} ${unit(l)}`,overflow:"hidden",borderTop:w}}}},{[`${o}-dropdown ${E}, ${E}-submenu`]:{[`${o}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},gw=tq;var oq=e=>{let{componentCls:t,lineWidth:o,colorSplit:r,motionDurationSlow:n,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:s}=e,c=r;return {[`${t}-wrapper`]:{[`
|
|
262
262
|
${t}-cell-fix-left,
|
|
263
263
|
${t}-cell-fix-right
|
|
264
264
|
`]:{position:"sticky !important",zIndex:i,background:a},[`
|
|
@@ -278,11 +278,11 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
|
|
|
278
278
|
${t}-cell-fix-left-last::after,
|
|
279
279
|
${t}-cell-fix-right-first::after,
|
|
280
280
|
${t}-cell-fix-right-last::after
|
|
281
|
-
`]:{boxShadow:"none"}}}}},
|
|
281
|
+
`]:{boxShadow:"none"}}}}},yw=oq;var nq=e=>{let{componentCls:t,antCls:o,margin:r}=e;return {[`${t}-wrapper`]:{[`${t}-pagination${o}-pagination`]:{margin:`${unit(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Cw=nq;var iq=e=>{let{componentCls:t,tableRadius:o}=e;return {[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${unit(o)} ${unit(o)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:o,borderStartEndRadius:o,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:o},"> *:last-child":{borderStartEndRadius:o}}},"&-footer":{borderRadius:`0 0 ${unit(o)} ${unit(o)}`}}}}},hw=iq;var aq=e=>{let{componentCls:t}=e;return {[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},bw=aq;var sq=e=>{let{componentCls:t,antCls:o,iconCls:r,fontSizeIcon:n,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:s,tableSelectionColumnWidth:c,tableSelectedRowBg:p,tableSelectedRowHoverBg:m,tableRowHoverBg:d,tablePaddingHorizontal:f,calc:u}=e;return {[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:u(c).add(n).add(u(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:u(c).add(u(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:u(c).add(n).add(u(i).div(4)).add(u(a).mul(2)).equal()}},[`
|
|
282
282
|
table tr th${t}-selection-column,
|
|
283
283
|
table tr td${t}-selection-column,
|
|
284
284
|
${t}-selection-column
|
|
285
|
-
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${o}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:u(e.zIndexTableFixed).add(1).equal({unit:false})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:unit(u(f).div(4).equal()),[r]:{color:l,fontSize:n,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:p,"&-row-hover":{background:
|
|
285
|
+
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${o}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:u(e.zIndexTableFixed).add(1).equal({unit:false})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:unit(u(f).div(4).equal()),[r]:{color:l,fontSize:n,verticalAlign:"baseline","&:hover":{color:s}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:p,"&-row-hover":{background:m}}},[`> ${t}-cell-row-hover`]:{background:d}}}}}},Sw=sq;var cq=e=>{let{componentCls:t,tableExpandColumnWidth:o,calc:r}=e,n=(i,a,l,s)=>({[`${t}${t}-${i}`]:{fontSize:s,[`
|
|
286
286
|
${t}-title,
|
|
287
287
|
${t}-footer,
|
|
288
288
|
${t}-cell,
|
|
@@ -291,24 +291,24 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
|
|
|
291
291
|
${t}-tbody > tr > td,
|
|
292
292
|
tfoot > tr > th,
|
|
293
293
|
tfoot > tr > td
|
|
294
|
-
`]:{padding:`${unit(a)} ${unit(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:unit(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${unit(r(a).mul(-1).equal())} ${unit(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:unit(r(a).mul(-1).equal()),marginInline:`${unit(r(o).sub(l).equal())} ${unit(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:unit(r(l).div(4).equal())}}});return {[`${t}-wrapper`]:{...n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},
|
|
294
|
+
`]:{padding:`${unit(a)} ${unit(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:unit(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${unit(r(a).mul(-1).equal())} ${unit(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:unit(r(a).mul(-1).equal()),marginInline:`${unit(r(o).sub(l).equal())} ${unit(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:unit(r(l).div(4).equal())}}});return {[`${t}-wrapper`]:{...n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle),...n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall)}}},xw=cq;var pq=e=>{let{componentCls:t,marginXXS:o,fontSizeIcon:r,headerIconColor:n,headerIconHoverColor:i}=e;return {[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
|
|
295
295
|
&${t}-cell-fix-left:hover,
|
|
296
296
|
&${t}-cell-fix-right:hover
|
|
297
|
-
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:o,color:n,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},
|
|
297
|
+
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:o,color:n,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},vw=pq;var dq=e=>{let{componentCls:t,opacityLoading:o,tableScrollThumbBg:r,tableScrollThumbBgHover:n,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:s,lineWidth:c,lineType:p,tableBorderColor:m}=e,d=`${unit(c)} ${p} ${m}`;return {[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${unit(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:d,opacity:o,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:s,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:n}}}}}}},$w=dq;var mq=e=>{let{componentCls:t,lineWidth:o,tableBorderColor:r,calc:n}=e,i=`${unit(o)} ${e.lineType} ${r}`;return {[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${unit(n(o).mul(-1).equal())} 0 ${r}`}}}},Uh=mq;var uq=e=>{let{componentCls:t,motionDurationMid:o,lineWidth:r,lineType:n,tableBorderColor:i,calc:a}=e,l=`${unit(r)} ${n} ${i}`,s=`${t}-expanded-row-cell`;return {[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
298
298
|
& > ${t}-row,
|
|
299
299
|
& > div:not(${t}-row) > ${t}-row
|
|
300
|
-
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${o}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${unit(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},
|
|
300
|
+
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${o}`},[`${t}-expanded-row`]:{[`${s}${s}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${unit(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},Iw=uq;var fq=e=>{let{componentCls:t,fontWeightStrong:o,tablePaddingVertical:r,tablePaddingHorizontal:n,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:s,tableFontSize:c,tableBg:p,tableRadius:m,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:u,tableHeaderCellSplitColor:g,tableFooterTextColor:y,tableFooterBg:h,calc:b}=e,C=`${unit(a)} ${l} ${s}`;return {[`${t}-wrapper`]:{clear:"both",maxWidth:"100%",...no(),[t]:{...ae(e),fontSize:c,background:p,borderRadius:`${unit(m)} ${unit(m)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`},table:{width:"100%",textAlign:"start",borderRadius:`${unit(m)} ${unit(m)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
301
301
|
${t}-cell,
|
|
302
302
|
${t}-thead > tr > th,
|
|
303
303
|
${t}-tbody > tr > th,
|
|
304
304
|
${t}-tbody > tr > td,
|
|
305
305
|
tfoot > tr > th,
|
|
306
306
|
tfoot > tr > td
|
|
307
|
-
`]:{position:"relative",padding:`${unit(r)} ${unit(n)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${unit(r)} ${unit(n)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:
|
|
307
|
+
`]:{position:"relative",padding:`${unit(r)} ${unit(n)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${unit(r)} ${unit(n)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:o,textAlign:"start",background:u,borderBottom:C,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:C,[`
|
|
308
308
|
> ${t}-wrapper:only-child,
|
|
309
309
|
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
310
|
-
`]:{[t]:{marginBlock:unit(
|
|
311
|
-
${unit(h(n).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:o,textAlign:"start",background:u,borderBottom:C,transition:`background ${f} ease`}}},[`${t}-footer`]:{padding:`${unit(r)} ${unit(n)}`,color:y,background:S}}}},Rj=e=>{let{colorFillAlter:t,colorBgContainer:o,colorTextHeading:r,colorFillSecondary:n,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:s,paddingSM:c,paddingXS:p,colorBorderSecondary:d,borderRadiusLG:m,controlHeight:f,colorTextPlaceholder:u,fontSize:g,fontSizeSM:y,lineHeight:S,lineWidth:h,colorIcon:C,colorIconHover:b,opacityLoading:v,controlInteractiveSize:x}=e,T=new TinyColor(n).onBackground(o).toHexShortString(),$=new TinyColor(i).onBackground(o).toHexShortString(),R=new TinyColor(t).onBackground(o).toHexShortString(),P=new TinyColor(C),I=new TinyColor(b),M=x/2-h,E=M*2+h*3;return {headerBg:R,headerColor:r,headerSortActiveBg:T,headerSortHoverBg:$,bodySortBg:R,rowHoverBg:R,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:c,cellPaddingInlineMD:p,cellPaddingBlockSM:p,cellPaddingInlineSM:p,borderColor:d,headerBorderRadius:m,footerBg:R,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:T,headerFilterHoverBg:i,filterDropdownMenuBg:o,filterDropdownBg:o,expandIconBg:o,selectionColumnWidth:f,stickyScrollBarBg:u,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*S-h*3)/2-Math.ceil((y*1.4-h*3)/2),headerIconColor:P.clone().setAlpha(P.getAlpha()*v).toRgbString(),headerIconHoverColor:I.clone().setAlpha(I.getAlpha()*v).toRgbString(),expandIconHalfInner:M,expandIconSize:E,expandIconScale:x/E}},hI=2,SI=te("Table",e=>{let{colorTextHeading:t,colorSplit:o,colorBgContainer:r,controlInteractiveSize:n,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:c,rowHoverBg:p,rowSelectedBg:d,rowSelectedHoverBg:m,rowExpandedBg:f,cellPaddingBlock:u,cellPaddingInline:g,cellPaddingBlockMD:y,cellPaddingInlineMD:S,cellPaddingBlockSM:h,cellPaddingInlineSM:C,borderColor:b,footerBg:v,footerColor:x,headerBorderRadius:T,cellFontSize:$,cellFontSizeMD:R,cellFontSizeSM:P,headerSplitColor:I,fixedHeaderSortActiveBg:M,headerFilterHoverBg:E,filterDropdownBg:w,expandIconBg:N,selectionColumnWidth:A,stickyScrollBarBg:k,calc:D}=e,F=mergeToken(e,{tableFontSize:$,tableBg:r,tableRadius:T,tablePaddingVertical:u,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:h,tablePaddingHorizontalSmall:C,tableBorderColor:b,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:x,tableFooterBg:v,tableHeaderCellSplitColor:I,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:E,tableFilterDropdownBg:w,tableRowHoverBg:p,tableSelectedRowBg:d,tableSelectedRowHoverBg:m,zIndexTableFixed:hI,zIndexTableSticky:D(hI).add(1).equal({unit:false}),tableFontSizeMiddle:R,tableFontSizeSmall:P,tableSelectionColumnWidth:A,tableExpandIconBg:N,tableExpandColumnWidth:D(n).add(D(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:o});return [$j(F),lI(F),JC(F),mI(F),iI(F),tI(F),sI(F),nI(F),JC(F),rI(F),pI(F),aI(F),fI(F),oI(F),dI(F),cI(F),CI(F)]},Rj,{unitless:{expandIconScale:true}});var Mj=[],Ej=(e,t)=>{let {prefixCls:o,className:r,rootClassName:n,style:i,size:a,bordered:l,dropdownPrefixCls:s,dataSource:c,pagination:p,rowSelection:d,rowKey:m="key",rowClassName:f,columns:u,children:g,childrenColumnName:y,onChange:S,getPopupContainer:h,loading:C,expandIcon:b,expandable:v,expandedRowRender:x,expandIconColumnIndex:T,indentSize:$,scroll:R,sortDirections:P,locale:I,showSorterTooltip:M={target:"full-header"},virtual:E}=e;ht();let N=ue.useMemo(()=>u||convertChildrenToColumns(g),[u,g]),A=ue.useMemo(()=>N.some(Ie=>Ie.responsive),[N]),k=Vo(A),D=ue.useMemo(()=>{let Ie=new Set(Object.keys(k).filter(_e=>k[_e]));return N.filter(_e=>!_e.responsive||_e.responsive.some(Mt=>Ie.has(Mt)))},[N,k]),F=fx(e,["className","style","columns"]),{locale:O=tt,direction:L,table:_,renderEmpty:H,getPrefixCls:z,getPopupContainer:G}=ue.useContext(B),W=Te(a),q={...O.Table,...I},j=c||Mj,K=z("table",o),Q=z("dropdown",s),[,V]=ve(),U=de(K),[Y,J,ie]=SI(K,U),ee={childrenColumnName:y,expandIconColumnIndex:T,...v,expandIcon:v?.expandIcon??_?.expandable?.expandIcon},{childrenColumnName:X="children"}=ee,Z=ue.useMemo(()=>j.some(Ie=>Ie?.[X])?"nest":x||v?.expandedRowRender?"row":null,[j]),re={body:ue.useRef(null)},ae=OC(K),se=ue.useRef(null),Ce=ue.useRef(null);FC(t,()=>({...Ce.current,nativeElement:se.current}));let $e=ue.useMemo(()=>typeof m=="function"?m:Ie=>Ie?.[m],[m]),[Ge]=G1(j,X,$e),xe={},qe=(Ie,_e,Mt=false)=>{let st={...xe,...Ie};Mt&&(xe.resetPagination?.(),st.pagination?.current&&(st.pagination.current=1),p&&p.onChange?.(1,st.pagination?.pageSize)),R&&R.scrollToFirstRowOnChange!==false&&re.body.current&&Ks(0,{getContainer:()=>re.body.current}),S?.(st.pagination,st.filters,st.sorter,{currentDataSource:nu(lu(j,st.sorterStates,X),st.filterStates,X),action:_e});},lt=(Ie,_e)=>{qe({sorter:Ie,sorterStates:_e},"sort",false);},[Ye,me,Re,Ne]=K1({prefixCls:K,mergedColumns:D,onSorterChange:lt,sortDirections:P||["ascend","descend"],tableLocale:q,showSorterTooltip:M}),Me=ue.useMemo(()=>lu(j,me,X),[j,me]);xe.sorter=Ne(),xe.sorterStates=me;let De=(Ie,_e)=>{qe({filters:Ie,filterStates:_e},"filter",true);},[fe,le,ce]=H1({prefixCls:K,locale:q,dropdownPrefixCls:Q,mergedColumns:D,onFilterChange:De,getPopupContainer:h||G,rootClassName:ki(n,U)}),pe=nu(Me,le,X);xe.filters=ce,xe.filterStates=le;let he=ue.useMemo(()=>{let Ie={};return Object.keys(ce).forEach(_e=>{ce[_e]!==null&&(Ie[_e]=ce[_e]);}),{...Re,filters:Ie}},[Re,ce]),[it]=Q1(he),go=(Ie,_e)=>{qe({pagination:{...xe.pagination,current:Ie,pageSize:_e}},"paginate");},[je,Ue]=_1(pe.length,go,p);xe.pagination=p===false?{}:V1(je,p),xe.resetPagination=Ue;let Po=ue.useMemo(()=>{if(p===false||!je.pageSize)return pe;let{current:Ie=1,total:_e,pageSize:Mt=YC}=je;return pe.length<_e?pe.length>Mt?(pe.slice((Ie-1)*Mt,Ie*Mt)):pe:pe.slice((Ie-1)*Mt,Ie*Mt)},[!!p,pe,je?.current,je?.pageSize,je?.total]),[$o,br]=y1({prefixCls:K,data:pe,pageData:Po,getRowKey:$e,getRecordByKey:Ge,expandType:Z,childrenColumnName:X,locale:q,getPopupContainer:h||G},d),Ro=(Ie,_e,Mt)=>{let st;return typeof f=="function"?st=ki(f(Ie,_e,Mt)):st=ki(f),ki({[`${K}-row-selected`]:br.has($e(Ie,_e))},st)};ee.__PARENT_RENDER_ICON__=ee.expandIcon,ee.expandIcon=ee.expandIcon||b||h1(q),Z==="nest"&&ee.expandIconColumnIndex===void 0?ee.expandIconColumnIndex=d?1:0:ee.expandIconColumnIndex>0&&d&&(ee.expandIconColumnIndex-=1),typeof ee.indentSize!="number"&&(ee.indentSize=typeof $=="number"?$:15);let ai=ue.useCallback(Ie=>it($o(fe(Ye(Ie)))),[Ye,fe,$o]),Tt,en;if(p!==false&&je?.total){let Ie;je.size?Ie=je.size:Ie=W==="small"||W==="middle"?"small":void 0;let _e=ao=>ue.createElement(Ua,{...je,className:ki(`${K}-pagination ${K}-pagination-${ao}`,je.className),size:Ie}),Mt=L==="rtl"?"left":"right",{position:st}=je;if(st!==null&&Array.isArray(st)){let ao=st.find(Hs=>Hs.includes("top")),la=st.find(Hs=>Hs.includes("bottom")),JM=st.every(Hs=>`${Hs}`=="none");!ao&&!la&&!JM&&(en=_e(Mt)),ao&&(Tt=_e(ao.toLowerCase().replace("top",""))),la&&(en=_e(la.toLowerCase().replace("bottom","")));}else en=_e(Mt);}let ge;typeof C=="boolean"?ge={spinning:C}:typeof C=="object"&&(ge={spinning:true,...C});let be=ki(ie,U,`${K}-wrapper`,_?.className,{[`${K}-wrapper-rtl`]:L==="rtl"},r,n,J),Ve={..._?.style,...i},vt=typeof I?.emptyText<"u"?I.emptyText:H?.("Table")||ue.createElement(ho,{componentName:"Table"}),Pt=E?eI:J1,yo={},Yo=ue.useMemo(()=>{let{fontSize:Ie,lineHeight:_e,padding:Mt,paddingXS:st,paddingSM:ao}=V,la=Math.floor(Ie*_e);switch(W){case "large":return Mt*2+la;case "small":return st*2+la;default:return ao*2+la}},[V,W]);return E&&(yo.listItemHeight=Yo),Y(ue.createElement("div",{ref:se,className:be,style:Ve},ue.createElement(hn,{spinning:false,...ge},Tt,ue.createElement(Pt,{...yo,...F,ref:Ce,columns:D,direction:L,expandable:ee,prefixCls:K,className:ki({[`${K}-middle`]:W==="middle",[`${K}-small`]:W==="small",[`${K}-bordered`]:l,[`${K}-empty`]:j.length===0},ie,U,J),data:Po,rowKey:$e,rowClassName:Ro,emptyText:vt,internalHooks:INTERNAL_HOOKS,internalRefs:re,transformColumns:ai,getContainerWidth:ae}),en)))},bI=ue.forwardRef(Ej);var Dj=(e,t)=>{let o=ue.useRef(0);return o.current+=1,ue.createElement(bI,{...e,ref:t,_renderTimes:o.current})},ei=ue.forwardRef(Dj);ei.SELECTION_COLUMN=Zr;ei.EXPAND_COLUMN=EXPAND_COLUMN;ei.SELECTION_ALL=Ym;ei.SELECTION_INVERT=Zm;ei.SELECTION_NONE=Qm;ei.Column=m1;ei.ColumnGroup=u1;ei.Summary=Summary;var xI=ei;var Aj=xI;var Oj=e=>{let{paddingXXS:t,lineWidth:o,tagPaddingHorizontal:r,componentCls:n,calc:i}=e,a=i(r).sub(o).equal(),l=i(t).sub(o).equal();return {[n]:{...ne(e),display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}},[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Gc=e=>{let{lineWidth:t,fontSizeIcon:o,calc:r}=e,n=e.fontSizeSM;return mergeToken(e,{tagFontSize:n,tagLineHeight:unit(r(e.lineHeightSM).mul(n).equal()),tagIconSize:r(o).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Vc=e=>({defaultBg:new TinyColor(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),cu=te("Tag",e=>{let t=Gc(e);return Oj(t)},Vc);var Lj=ue.forwardRef((e,t)=>{let{prefixCls:o,style:r,className:n,checked:i,onChange:a,onClick:l,...s}=e,{getPrefixCls:c,tag:p}=ue.useContext(B),d=S=>{a?.(!i),l?.(S);},m=c("tag",o),[f,u,g]=cu(m),y=ki(m,`${m}-checkable`,{[`${m}-checkable-checked`]:i},p?.className,n,u,g);return f(ue.createElement("span",{...s,ref:t,style:{...r,...p?.style},className:y,onClick:d}))}),vI=Lj;var Hj=e=>on(e,(t,{textColor:o,lightBorderColor:r,lightColor:n,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:o,background:n,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),PI=No(["Tag","preset"],e=>{let t=Gc(e);return Hj(t)},Vc);function eh(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}var pu=(e,t,o)=>{let r=eh(o);return {[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${o}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},$I=No(["Tag","status"],e=>{let t=Gc(e);return [pu(t,"success","Success"),pu(t,"processing","Info"),pu(t,"error","Error"),pu(t,"warning","Warning")]},Vc);var Gj=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,children:a,icon:l,color:s,onClose:c,bordered:p=true,visible:d,...m}=e,{getPrefixCls:f,direction:u,tag:g}=ue.useContext(B),[y,S]=ue.useState(true),h=fx(m,["closeIcon","closable"]);ue.useEffect(()=>{d!==void 0&&S(d);},[d]);let C=Ii(s),b=OT(s),v=C||b,x={backgroundColor:s&&!v?s:void 0,...g?.style,...i},T=f("tag",o),[$,R,P]=cu(T),I=ki(T,g?.className,{[`${T}-${s}`]:v,[`${T}-has-color`]:s&&!v,[`${T}-hidden`]:!y,[`${T}-rtl`]:u==="rtl",[`${T}-borderless`]:!p},r,n,R,P),M=D=>{D.stopPropagation(),c?.(D),!D.defaultPrevented&&S(false);},[,E]=Bn(kn(e),kn(g),{closable:false,closeIconRender:D=>{let F=ue.createElement("span",{className:`${T}-close-icon`,onClick:M},D);return qs(D,F,O=>({onClick:L=>{O?.onClick?.(L),M(L);},className:ki(O?.className,`${T}-close-icon`)}))}}),w=typeof m.onClick=="function"||a&&a.type==="a",N=l||null,A=N?ue.createElement(ue.Fragment,null,N,a&&ue.createElement("span",null,a)):a,k=ue.createElement("span",{...h,ref:t,className:I,style:x},A,E,C&&ue.createElement(PI,{key:"preset",prefixCls:T}),b&&ue.createElement($I,{key:"status",prefixCls:T}));return $(w?ue.createElement(rn,{component:"Tag"},k):k)}),II=Gj;II.CheckableTag=vI;var Vj=II;var jj=e=>{let t=e?.algorithm?createTheme(e.algorithm):createTheme(Fr),o={...Ar,...e?.token};return getComputedToken(o,{override:e?.token},t,wl)},NI=jj;function th(e){let{sizeUnit:t,sizeStep:o}=e,r=o-2;return {sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}var Uj=(e,t)=>{let o=t??Fr(e),r=o.fontSizeSM,n=o.controlHeight-4;return {...o,...th(t??e),...vp(r),controlHeight:n,...Tp({...o,controlHeight:n})}},MI=Uj;var yr=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),rl=(e,t)=>new TinyColor(e).lighten(t).toHexString();var kI=e=>{let t=generate(e,{theme:"dark"});return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},BI=(e,t)=>{let o=e||"#000",r=t||"#fff";return {colorBgBase:o,colorTextBase:r,colorText:yr(r,.85),colorTextSecondary:yr(r,.65),colorTextTertiary:yr(r,.45),colorTextQuaternary:yr(r,.25),colorFill:yr(r,.18),colorFillSecondary:yr(r,.12),colorFillTertiary:yr(r,.08),colorFillQuaternary:yr(r,.04),colorBgSolid:yr(r,.95),colorBgSolidHover:yr(r,1),colorBgSolidActive:yr(r,.9),colorBgElevated:rl(o,12),colorBgContainer:rl(o,8),colorBgLayout:rl(o,0),colorBgSpotlight:rl(o,26),colorBgBlur:yr(r,.04),colorBorder:rl(o,26),colorBorderSecondary:rl(o,19)}};var Kj=(e,t)=>{let o=Object.keys(Gs).map(n=>{let i=generate(e[n],{theme:"dark"});return new Array(10).fill(1).reduce((a,l,s)=>(a[`${n}-${s+1}`]=i[s],a[`${n}${s+1}`]=i[s],a),{})}).reduce((n,i)=>(n={...n,...i},n),{});return {...t??Fr(e),...o,...Vs(e,{generateColorPalettes:kI,generateNeutralColorPalettes:BI})}},DI=Kj;function Yj(){let[e,t,o]=ve();return {theme:e,token:t,hashId:o}}var Zj={defaultSeed:si.token,useToken:Yj,defaultAlgorithm:Fr,darkAlgorithm:DI,compactAlgorithm:MI,getDesignToken:NI,defaultConfig:si,_internalContext:sa};var{TimePicker:Qj,RangePicker:Jj}=$c,eU=ue.forwardRef((e,t)=>ue.createElement(Jj,{...e,picker:"time",mode:void 0,ref:t})),_c=ue.forwardRef(({addon:e,renderExtraFooter:t,variant:o,bordered:r,...n},i)=>{let[a]=Ot("timePicker",o,r),l=ue.useMemo(()=>{if(t)return t;if(e)return e},[e,t]);return ue.createElement(Qj,{...n,mode:void 0,ref:i,renderExtraFooter:l,variant:a})}),AI=Wt(_c,"popupAlign",void 0,"picker");_c._InternalPanelDoNotUseOrYouWillBeFired=AI;_c.RangePicker=eU;_c._InternalPanelDoNotUseOrYouWillBeFired=AI;var oh=_c;var tU=e=>{let{componentCls:t,calc:o}=e;return {[t]:{...ne(e),margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:o(o(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${unit(e.itemHeadSize)})`,borderInlineStart:`${unit(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${unit(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:o(e.itemHeadSize).div(2).equal(),insetInlineStart:o(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:o(o(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:o(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:o(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate,
|
|
310
|
+
`]:{[t]:{marginBlock:unit(b(r).mul(-1).equal()),marginInline:`${unit(b(i).sub(n).equal())}
|
|
311
|
+
${unit(b(n).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:d,fontWeight:o,textAlign:"start",background:u,borderBottom:C,transition:`background ${f} ease`}}},[`${t}-footer`]:{padding:`${unit(r)} ${unit(n)}`,color:y,background:h}}}},gq=e=>{let{colorFillAlter:t,colorBgContainer:o,colorTextHeading:r,colorFillSecondary:n,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:s,paddingSM:c,paddingXS:p,colorBorderSecondary:m,borderRadiusLG:d,controlHeight:f,colorTextPlaceholder:u,fontSize:g,fontSizeSM:y,lineHeight:h,lineWidth:b,colorIcon:C,colorIconHover:S,opacityLoading:v,controlInteractiveSize:x}=e,$=new TinyColor(n).onBackground(o).toHexShortString(),R=new TinyColor(i).onBackground(o).toHexShortString(),T=new TinyColor(t).onBackground(o).toHexShortString(),P=new TinyColor(C),N=new TinyColor(S),M=x/2-b,E=M*2+b*3;return {headerBg:T,headerColor:r,headerSortActiveBg:$,headerSortHoverBg:R,bodySortBg:T,rowHoverBg:T,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:s,cellPaddingInline:s,cellPaddingBlockMD:c,cellPaddingInlineMD:p,cellPaddingBlockSM:p,cellPaddingInlineSM:p,borderColor:m,headerBorderRadius:d,footerBg:T,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:m,fixedHeaderSortActiveBg:$,headerFilterHoverBg:i,filterDropdownMenuBg:o,filterDropdownBg:o,expandIconBg:o,selectionColumnWidth:f,stickyScrollBarBg:u,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*h-b*3)/2-Math.ceil((y*1.4-b*3)/2),headerIconColor:P.clone().setAlpha(P.getAlpha()*v).toRgbString(),headerIconHoverColor:N.clone().setAlpha(N.getAlpha()*v).toRgbString(),expandIconHalfInner:M,expandIconSize:E,expandIconScale:x/E}},ww=2,Nw=oe("Table",e=>{let{colorTextHeading:t,colorSplit:o,colorBgContainer:r,controlInteractiveSize:n,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:s,bodySortBg:c,rowHoverBg:p,rowSelectedBg:m,rowSelectedHoverBg:d,rowExpandedBg:f,cellPaddingBlock:u,cellPaddingInline:g,cellPaddingBlockMD:y,cellPaddingInlineMD:h,cellPaddingBlockSM:b,cellPaddingInlineSM:C,borderColor:S,footerBg:v,footerColor:x,headerBorderRadius:$,cellFontSize:R,cellFontSizeMD:T,cellFontSizeSM:P,headerSplitColor:N,fixedHeaderSortActiveBg:M,headerFilterHoverBg:E,filterDropdownBg:I,expandIconBg:w,selectionColumnWidth:B,stickyScrollBarBg:k,calc:D}=e,F=mergeToken(e,{tableFontSize:R,tableBg:r,tableRadius:$,tablePaddingVertical:u,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:h,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:C,tableBorderColor:S,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:x,tableFooterBg:v,tableHeaderCellSplitColor:N,tableHeaderSortBg:l,tableHeaderSortHoverBg:s,tableBodySortBg:c,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:E,tableFilterDropdownBg:I,tableRowHoverBg:p,tableSelectedRowBg:m,tableSelectedRowHoverBg:d,zIndexTableFixed:ww,zIndexTableSticky:D(ww).add(1).equal({unit:false}),tableFontSizeMiddle:T,tableFontSizeSmall:P,tableSelectionColumnWidth:B,tableExpandIconBg:w,tableExpandColumnWidth:D(n).add(D(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:o});return [fq(F),Cw(F),Uh(F),vw(F),gw(F),dw(F),hw(F),fw(F),Uh(F),uw(F),Sw(F),yw(F),$w(F),mw(F),xw(F),bw(F),Iw(F)]},gq,{unitless:{expandIconScale:true}});var bq=[],Sq=(e,t)=>{let {prefixCls:o,className:r,rootClassName:n,style:i,size:a,bordered:l,dropdownPrefixCls:s,dataSource:c,pagination:p,rowSelection:m,rowKey:d="key",rowClassName:f,columns:u,children:g,childrenColumnName:y,onChange:h,getPopupContainer:b,loading:C,expandIcon:S,expandable:v,expandedRowRender:x,expandIconColumnIndex:$,indentSize:R,scroll:T,sortDirections:P,locale:N,showSorterTooltip:M={target:"full-header"},virtual:E}=e;Tt();let w=ve.useMemo(()=>u||convertChildrenToColumns(g),[u,g]),B=ve.useMemo(()=>w.some(Fe=>Fe.responsive),[w]),k=Zo(B),D=ve.useMemo(()=>{let Fe=new Set(Object.keys(k).filter(et=>k[et]));return w.filter(et=>!et.responsive||et.responsive.some(Ft=>Fe.has(Ft)))},[w,k]),F=vv(e,["className","style","columns"]),{locale:A=ct,direction:L,table:q,renderEmpty:V,getPrefixCls:z,getPopupContainer:G}=ve.useContext(O),_=ke(a),Z={...A.Table,...N},K=c||bq,Q=z("table",o),ee=z("dropdown",s),[,j]=De(),Y=$e(Q),[J,te,ue]=Nw(Q,Y),W={childrenColumnName:y,expandIconColumnIndex:$,...v,expandIcon:v?.expandIcon??q?.expandable?.expandIcon},{childrenColumnName:H="children"}=W,X=ve.useMemo(()=>K.some(Fe=>Fe?.[H])?"nest":x||v?.expandedRowRender?"row":null,[K]),re={body:ve.useRef(null)},ce=Mh(Q),fe=ve.useRef(null),Pe=ve.useRef(null);Nh(t,()=>({...Pe.current,nativeElement:fe.current}));let we=ve.useMemo(()=>typeof d=="function"?d:Fe=>Fe?.[d],[d]),[ye]=QI(K,H,we),ge={},xe=(Fe,et,Ft=false)=>{let ut={...ge,...Fe};Ft&&(ge.resetPagination?.(),ut.pagination?.current&&(ut.pagination.current=1),p&&p.onChange?.(1,ut.pagination?.pageSize)),T&&T.scrollToFirstRowOnChange!==false&&re.body.current&&xc(0,{getContainer:()=>re.body.current}),h?.(ut.pagination,ut.filters,ut.sorter,{currentDataSource:Au(Wu(K,ut.sorterStates,H),ut.filterStates,H),action:et});},Te=(Fe,et)=>{xe({sorter:Fe,sorterStates:et},"sort",false);},[Se,de,U,pe]=iw({prefixCls:Q,mergedColumns:D,onSorterChange:Te,sortDirections:P||["ascend","descend"],tableLocale:Z,showSorterTooltip:M}),se=ve.useMemo(()=>Wu(K,de,H),[K,de]);ge.sorter=pe(),ge.sorterStates=de;let he=(Fe,et)=>{xe({filters:Fe,filterStates:et},"filter",true);},[le,ie,me]=YI({prefixCls:Q,locale:Z,dropdownPrefixCls:ee,mergedColumns:D,onFilterChange:he,getPopupContainer:b||G,rootClassName:Xi(n,Y)}),Ce=Au(se,ie,H);ge.filters=me,ge.filterStates=ie;let be=ve.useMemo(()=>{let Fe={};return Object.keys(me).forEach(et=>{me[et]!==null&&(Fe[et]=me[et]);}),{...U,filters:Fe}},[U,me]),[_e]=sw(be),Ut=(Fe,et)=>{xe({pagination:{...ge.pagination,current:Fe,pageSize:et}},"paginate");},[Ke,tt]=ew(Ce.length,Ut,p);ge.pagination=p===false?{}:JI(Ke,p),ge.resetPagination=tt;let ko=ve.useMemo(()=>{if(p===false||!Ke.pageSize)return Ce;let{current:Fe=1,total:et,pageSize:Ft=Vh}=Ke;return Ce.length<et?Ce.length>Ft?(Ce.slice((Fe-1)*Ft,Fe*Ft)):Ce:Ce.slice((Fe-1)*Ft,Fe*Ft)},[!!p,Ce,Ke?.current,Ke?.pageSize,Ke?.total]),[Do,wr]=RI({prefixCls:Q,data:Ce,pageData:ko,getRowKey:we,getRecordByKey:ye,expandType:X,childrenColumnName:H,locale:Z,getPopupContainer:b||G},m),Bo=(Fe,et,Ft)=>{let ut;return typeof f=="function"?ut=Xi(f(Fe,et,Ft)):ut=Xi(f),Xi({[`${Q}-row-selected`]:wr.has(we(Fe,et))},ut)};W.__PARENT_RENDER_ICON__=W.expandIcon,W.expandIcon=W.expandIcon||S||wI(Z),X==="nest"&&W.expandIconColumnIndex===void 0?W.expandIconColumnIndex=m?1:0:W.expandIconColumnIndex>0&&m&&(W.expandIconColumnIndex-=1),typeof W.indentSize!="number"&&(W.indentSize=typeof R=="number"?R:15);let vi=ve.useCallback(Fe=>_e(Do(le(Se(Fe)))),[Se,le,Do]),It,dn;if(p!==false&&Ke?.total){let Fe;Ke.size?Fe=Ke.size:Fe=_==="small"||_==="middle"?"small":void 0;let et=go=>ve.createElement(cl,{...Ke,className:Xi(`${Q}-pagination ${Q}-pagination-${go}`,Ke.className),size:Fe}),Ft=L==="rtl"?"left":"right",{position:ut}=Ke;if(ut!==null&&Array.isArray(ut)){let go=ut.find(mc=>mc.includes("top")),Pa=ut.find(mc=>mc.includes("bottom")),Ok=ut.every(mc=>`${mc}`=="none");!go&&!Pa&&!Ok&&(dn=et(Ft)),go&&(It=et(go.toLowerCase().replace("top",""))),Pa&&(dn=et(Pa.toLowerCase().replace("bottom","")));}else dn=et(Ft);}let Ie;typeof C=="boolean"?Ie={spinning:C}:typeof C=="object"&&(Ie={spinning:true,...C});let Ee=Xi(ue,Y,`${Q}-wrapper`,q?.className,{[`${Q}-wrapper-rtl`]:L==="rtl"},r,n,te),Je={...q?.style,...i},wt=typeof N?.emptyText<"u"?N.emptyText:V?.("Table")||ve.createElement(Po,{componentName:"Table"}),Nt=E?pw:cw,To={},nr=ve.useMemo(()=>{let{fontSize:Fe,lineHeight:et,padding:Ft,paddingXS:ut,paddingSM:go}=j,Pa=Math.floor(Fe*et);switch(_){case "large":return Ft*2+Pa;case "small":return ut*2+Pa;default:return go*2+Pa}},[j,_]);return E&&(To.listItemHeight=nr),J(ve.createElement("div",{ref:fe,className:Ee,style:Je},ve.createElement(wn,{spinning:false,...Ie},It,ve.createElement(Nt,{...To,...F,ref:Pe,columns:D,direction:L,expandable:W,prefixCls:Q,className:Xi({[`${Q}-middle`]:_==="middle",[`${Q}-small`]:_==="small",[`${Q}-bordered`]:l,[`${Q}-empty`]:K.length===0},ue,Y,te),data:ko,rowKey:we,rowClassName:Bo,emptyText:wt,internalHooks:INTERNAL_HOOKS,internalRefs:re,transformColumns:vi,getContainerWidth:ce}),dn)))},Mw=ve.forwardRef(Sq);var Tq=(e,t)=>{let o=ve.useRef(0);return o.current+=1,ve.createElement(Mw,{...e,ref:t,_renderTimes:o.current})},yi=ve.forwardRef(Tq);yi.SELECTION_COLUMN=ln;yi.EXPAND_COLUMN=EXPAND_COLUMN;yi.SELECTION_ALL=Mu;yi.SELECTION_INVERT=Eu;yi.SELECTION_NONE=ku;yi.Column=vI;yi.ColumnGroup=TI;yi.Summary=Summary;var Ew=yi;var $q=Ew;var Rq=e=>{let{paddingXXS:t,lineWidth:o,tagPaddingHorizontal:r,componentCls:n,calc:i}=e,a=i(r).sub(o).equal(),l=i(t).sub(o).equal();return {[n]:{...ae(e),display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${n}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${n}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${n}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${n}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}},[`${n}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},fp=e=>{let{lineWidth:t,fontSizeIcon:o,calc:r}=e,n=e.fontSizeSM;return mergeToken(e,{tagFontSize:n,tagLineHeight:unit(r(e.lineHeightSM).mul(n).equal()),tagIconSize:r(o).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},gp=e=>({defaultBg:new TinyColor(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Vu=oe("Tag",e=>{let t=fp(e);return Rq(t)},gp);var wq=ve.forwardRef((e,t)=>{let{prefixCls:o,style:r,className:n,checked:i,onChange:a,onClick:l,...s}=e,{getPrefixCls:c,tag:p}=ve.useContext(O),m=h=>{a?.(!i),l?.(h);},d=c("tag",o),[f,u,g]=Vu(d),y=Xi(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},p?.className,n,u,g);return f(ve.createElement("span",{...s,ref:t,style:{...r,...p?.style},className:y,onClick:m}))}),Dw=wq;var Nq=e=>un(e,(t,{textColor:o,lightBorderColor:r,lightColor:n,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:o,background:n,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),Bw=zo(["Tag","preset"],e=>{let t=fp(e);return Nq(t)},gp);function qh(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}var ju=(e,t,o)=>{let r=qh(o);return {[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${o}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},Ow=zo(["Tag","status"],e=>{let t=fp(e);return [ju(t,"success","Success"),ju(t,"processing","Info"),ju(t,"error","Error"),ju(t,"warning","Warning")]},gp);var Eq=ve.forwardRef((e,t)=>{let{prefixCls:o,className:r,rootClassName:n,style:i,children:a,icon:l,color:s,onClose:c,bordered:p=true,visible:m,...d}=e,{getPrefixCls:f,direction:u,tag:g}=ve.useContext(O),[y,h]=ve.useState(true),b=vv(d,["closeIcon","closable"]);ve.useEffect(()=>{m!==void 0&&h(m);},[m]);let C=Vi(s),S=_T(s),v=C||S,x={backgroundColor:s&&!v?s:void 0,...g?.style,...i},$=f("tag",o),[R,T,P]=Vu($),N=Xi($,g?.className,{[`${$}-${s}`]:v,[`${$}-has-color`]:s&&!v,[`${$}-hidden`]:!y,[`${$}-rtl`]:u==="rtl",[`${$}-borderless`]:!p},r,n,T,P),M=D=>{D.stopPropagation(),c?.(D),!D.defaultPrevented&&h(false);},[,E]=Un(_n(e),_n(g),{closable:false,closeIconRender:D=>{let F=ve.createElement("span",{className:`${$}-close-icon`,onClick:M},D);return bc(D,F,A=>({onClick:L=>{A?.onClick?.(L),M(L);},className:Xi(A?.className,`${$}-close-icon`)}))}}),I=typeof d.onClick=="function"||a&&a.type==="a",w=l||null,B=w?ve.createElement(ve.Fragment,null,w,a&&ve.createElement("span",null,a)):a,k=ve.createElement("span",{...b,ref:t,className:N,style:x},B,E,C&&ve.createElement(Bw,{key:"preset",prefixCls:$}),S&&ve.createElement(Ow,{key:"status",prefixCls:$}));return R(I?ve.createElement(fn,{component:"Tag"},k):k)}),zw=Eq;zw.CheckableTag=Dw;var kq=zw;var Bq=e=>{let t=e?.algorithm?createTheme(e.algorithm):createTheme(_r),o={...jr,...e?.token};return getComputedToken(o,{override:e?.token},t,Ql)},Lw=Bq;function Xh(e){let{sizeUnit:t,sizeStep:o}=e,r=o-2;return {sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}var Oq=(e,t)=>{let o=t??_r(e),r=o.fontSizeSM,n=o.controlHeight-4;return {...o,...Xh(t??e),...rd(r),controlHeight:n,...od({...o,controlHeight:n})}},Hw=Oq;var $r=(e,t)=>new TinyColor(e).setAlpha(t).toRgbString(),Sl=(e,t)=>new TinyColor(e).lighten(t).toHexString();var Gw=e=>{let t=generate(e,{theme:"dark"});return {1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Vw=(e,t)=>{let o=e||"#000",r=t||"#fff";return {colorBgBase:o,colorTextBase:r,colorText:$r(r,.85),colorTextSecondary:$r(r,.65),colorTextTertiary:$r(r,.45),colorTextQuaternary:$r(r,.25),colorFill:$r(r,.18),colorFillSecondary:$r(r,.12),colorFillTertiary:$r(r,.08),colorFillQuaternary:$r(r,.04),colorBgSolid:$r(r,.95),colorBgSolidHover:$r(r,1),colorBgSolidActive:$r(r,.9),colorBgElevated:Sl(o,12),colorBgContainer:Sl(o,8),colorBgLayout:Sl(o,0),colorBgSpotlight:Sl(o,26),colorBgBlur:$r(r,.04),colorBorder:Sl(o,26),colorBorderSecondary:Sl(o,19)}};var Aq=(e,t)=>{let o=Object.keys(fc).map(n=>{let i=generate(e[n],{theme:"dark"});return new Array(10).fill(1).reduce((a,l,s)=>(a[`${n}-${s+1}`]=i[s],a[`${n}${s+1}`]=i[s],a),{})}).reduce((n,i)=>(n={...n,...i},n),{});return {...t??_r(e),...o,...gc(e,{generateColorPalettes:Gw,generateNeutralColorPalettes:Vw})}},jw=Aq;function Lq(){let[e,t,o]=De();return {theme:e,token:t,hashId:o}}var Hq={defaultSeed:$i.token,useToken:Lq,defaultAlgorithm:_r,darkAlgorithm:jw,compactAlgorithm:Hw,getDesignToken:Lw,defaultConfig:$i,_internalContext:Ra};var Wq=e=>{let{componentCls:t,blockBg:o,blockColor:r,blockBorderRadius:n,blockFontSize:i,separatorFontSize:a,paddingXXS:l,paddingXS:s,marginXXS:c,colorText:p,fontSize:m}=e;return {[t]:{...ae(e),display:"inline-flex",alignItems:"center",fontSize:m,color:p,[`${t}-prefix`]:{marginInlineEnd:s},[`${t}-suffix`]:{marginInlineStart:s},[`${t}-content`]:{display:"inline-flex",alignItems:"center"},[`${t}-block`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:24,height:24,paddingInline:l,fontSize:i,fontWeight:500,fontFamily:"monospace",color:r,backgroundColor:o,borderRadius:n,lineHeight:1},[`${t}-separator`]:{display:"inline-flex",alignItems:"center",paddingInline:c,fontSize:a,color:p},[`&${t}-sm`]:{fontSize:e.fontSizeSM,[`${t}-block`]:{minWidth:20,height:20,fontSize:e.fontSizeSM},[`${t}-separator`]:{fontSize:e.fontSizeSM}},[`&${t}-lg`]:{fontSize:e.fontSizeLG,[`${t}-block`]:{minWidth:32,height:32,fontSize:e.fontSizeLG},[`${t}-separator`]:{fontSize:e.fontSizeLG}}}}},Gq=e=>({blockBg:e.colorPrimary,blockColor:e.colorTextLightSolid,blockBorderRadius:e.borderRadiusSM,blockFontSize:e.fontSize,separatorFontSize:e.fontSize}),_w=oe("TimeOut",e=>{let t=mergeToken(e,{});return [Wq(t)]},Gq);function jq(e){let t=Math.max(0,Math.floor(e/1e3)),o=Math.floor(t/86400),r=Math.floor(t%86400/3600),n=Math.floor(t%3600/60),i=t%60;return {days:o,hours:r,minutes:n,seconds:i}}function _u(e){return e<10?`0${e}`:`${e}`}function _q(e){let t=[],o=/(DD|hh|mm|ss)/g,r=0,n;for(;(n=o.exec(e))!==null;)n.index>r&&t.push({type:"separator",value:e.slice(r,n.index)}),t.push({type:"digit",value:n[1],unit:n[1]}),r=o.lastIndex;return r<e.length&&t.push({type:"separator",value:e.slice(r)}),t}function Uq(e,t){switch(e){case "DD":return _u(t.days);case "hh":return _u(t.hours);case "mm":return _u(t.minutes);case "ss":return _u(t.seconds);default:return "00"}}var qq=e=>{let{getPrefixCls:t}=ve.useContext(O),{prefixCls:o,className:r,style:n,value:i,remaining:a,format:l="hh:mm:ss",prefix:s="\u8FD8\u5269",suffix:c="\u5931\u6548",countdown:p=false,size:m,onFinish:d,onChange:f}=e,u=ke(m),g=t("time-out",o),[y,h,b]=_w(g),C=ve.useCallback(()=>a!==void 0?a:i!==void 0?Math.max(0,i-Date.now()):0,[a,i]),[S,v]=ve.useState(()=>C()),x=ve.useRef(null),$=ve.useRef(d),R=ve.useRef(f);$.current=d,R.current=f,ve.useEffect(()=>{v(C());},[C]),ve.useEffect(()=>{if(x.current&&(clearInterval(x.current),x.current=null),!!p)return x.current=setInterval(()=>{v(M=>{let E=Math.max(0,M-1e3);return R.current?.(E),E<=0&&(clearInterval(x.current),x.current=null,$.current?.()),E});},1e3),()=>{x.current&&(clearInterval(x.current),x.current=null);}},[p]);let T=jq(S),P=ve.useMemo(()=>_q(l),[l]),N=Xi(g,h,b,{[`${g}-sm`]:u==="small",[`${g}-lg`]:u==="large"},r);return y(ve.createElement("span",{className:N,style:n},s&&ve.createElement("span",{className:`${g}-prefix`},s),ve.createElement("span",{className:`${g}-content`},P.map((M,E)=>M.type==="digit"?ve.createElement("span",{key:E,className:`${g}-block`},Uq(M.unit,T)):ve.createElement("span",{key:E,className:`${g}-separator`},M.value))),c&&ve.createElement("span",{className:`${g}-suffix`},c)))},Xq=qq;var{TimePicker:Kq,RangePicker:Yq}=ci,Zq=ve.forwardRef((e,t)=>ve.createElement(Yq,{...e,picker:"time",mode:void 0,ref:t})),yp=ve.forwardRef(({addon:e,renderExtraFooter:t,variant:o,bordered:r,...n},i)=>{let[a]=Vt("timePicker",o,r),l=ve.useMemo(()=>{if(t)return t;if(e)return e},[e,t]);return ve.createElement(Kq,{...n,mode:void 0,ref:i,renderExtraFooter:l,variant:a})}),Uw=Xt(yp,"popupAlign",void 0,"picker");yp._InternalPanelDoNotUseOrYouWillBeFired=Uw;yp.RangePicker=Zq;yp._InternalPanelDoNotUseOrYouWillBeFired=Uw;var Kh=yp;var Qq=e=>{let{componentCls:t,calc:o}=e;return {[t]:{...ae(e),margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:o(o(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${unit(e.itemHeadSize)})`,borderInlineStart:`${unit(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${unit(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:o(e.itemHeadSize).div(2).equal(),insetInlineStart:o(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:o(o(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:o(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:o(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate,
|
|
312
312
|
&${t}-right,
|
|
313
313
|
&${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:o(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:o(e.tailWidth).div(2).equal()}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${unit(e.marginXXS)})`,width:`calc(50% - ${unit(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${unit(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,
|
|
314
314
|
${t}-item-head,
|
|
@@ -316,41 +316,41 @@ import*as ue from'react';import ue__default,{createContext,useContext,forwardRef
|
|
|
316
316
|
${t}-item-last
|
|
317
317
|
${t}-item-tail`]:{display:"block",height:`calc(100% - ${unit(e.margin)})`,borderInlineStart:`${unit(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse
|
|
318
318
|
${t}-item-last
|
|
319
|
-
${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${unit(e.margin)})`,borderInlineStart:`${unit(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:o(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:o(o(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${unit(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${unit(e.marginSM)})`,width:`calc(50% - ${unit(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}}}},oU=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25}),FI=te("Timeline",e=>{let t=mergeToken(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return [tU(t)]},oU);var rU=({prefixCls:e,className:t,color:o="blue",dot:r,pending:n=false,position:i,label:a,children:l,...s})=>{let{getPrefixCls:c}=ue.useContext(B),p=c("timeline",e),d=ki(`${p}-item`,{[`${p}-item-pending`]:n},t),m=/blue|red|green|gray/.test(o||"")?void 0:o,f=ki(`${p}-item-head`,{[`${p}-item-head-custom`]:!!r,[`${p}-item-head-${o}`]:!m});return ue.createElement("li",{...s,className:d},a&&ue.createElement("div",{className:`${p}-item-label`},a),ue.createElement("div",{className:`${p}-item-tail`}),ue.createElement("div",{className:f,style:{borderColor:m,color:m}},r),ue.createElement("div",{className:`${p}-item-content`},l))},du=rU;var iU=({prefixCls:e,className:t,pending:o=false,children:r,items:n,rootClassName:i,reverse:a=false,direction:l,hashId:s,pendingDot:c,mode:p="",...d})=>{let m=(b,v)=>p==="alternate"?b==="right"?`${e}-item-right`:b==="left"?`${e}-item-left`:v%2===0?`${e}-item-left`:`${e}-item-right`:p==="left"?`${e}-item-left`:p==="right"?`${e}-item-right`:b==="right"?`${e}-item-right`:"",f=[...n||[]],u=typeof o=="boolean"?null:o;o&&f.push({pending:!!o,dot:c||ue.createElement(Xw,null),children:u}),a&&f.reverse();let g=f.length,y=`${e}-item-last`,S=f.filter(b=>!!b).map((b,v)=>{let x=v===g-2?y:"",T=v===g-1?y:"",{className:$,...R}=b;return ue.createElement(du,{...R,className:ki([$,!a&&o?x:T,m(b?.position??"",v)]),key:b?.key||v})}),h=f.some(b=>!!b?.label),C=ki(e,{[`${e}-pending`]:!!o,[`${e}-reverse`]:!!a,[`${e}-${p}`]:!!p&&!h,[`${e}-label`]:h,[`${e}-rtl`]:l==="rtl"},t,i,s);return ue.createElement("ul",{...d,className:C},S)},LI=iU;function lU(e,t){return e&&Array.isArray(e)?e:kv(t).map(o=>({children:o?.props?.children??"",...o.props}))}var HI=lU;var WI=e=>{let{getPrefixCls:t,direction:o,timeline:r}=ue.useContext(B),{prefixCls:n,children:i,items:a,className:l,style:s,...c}=e,p=t("timeline",n),d=de(p),[m,f,u]=FI(p,d),g=HI(a,i);return m(ue.createElement(LI,{...c,className:ki(r?.className,l,u,d),style:{...r?.style,...s},prefixCls:p,direction:o,items:g,hashId:f}))};WI.Item=du;var GI=WI;var cU=GI;function nh(e){return e!=null}var dU=e=>{let{stepProps:t,current:o,type:r,indicatorsRender:n}=e,{prefixCls:i,total:a=1,title:l,onClose:s,onPrev:c,onNext:p,onFinish:d,cover:m,description:f,nextButtonProps:u,prevButtonProps:g,type:y,closable:S}=t,h=y??r,C=ue__default.createElement("button",{type:"button",onClick:s,className:`${i}-close`},S?.closeIcon||ue__default.createElement(Ck,{className:`${i}-close-icon`})),b=o===a-1,v=()=>{c?.(),g?.onClick?.();},x=()=>{b?d?.():p?.(),u?.onClick?.();},T=nh(l)?ue__default.createElement("div",{className:`${i}-header`},ue__default.createElement("div",{className:`${i}-title`},l)):null,$=nh(f)?ue__default.createElement("div",{className:`${i}-description`},f):null,R=nh(m)?ue__default.createElement("div",{className:`${i}-cover`},m):null,P;n?P=n(o,a):P=[...Array.from({length:a}).keys()].map((w,N)=>ue__default.createElement("span",{key:w,className:ki(N===o&&`${i}-indicator-active`,`${i}-indicator`)}));let I=h==="primary"?"default":"primary",M={type:"default",ghost:h==="primary"},[E]=Ee("Tour",tt.Tour);return ue__default.createElement("div",{className:`${i}-content`},ue__default.createElement("div",{className:`${i}-inner`},S&&C,R,T,$,ue__default.createElement("div",{className:`${i}-footer`},a>1&&ue__default.createElement("div",{className:`${i}-indicators`},P),ue__default.createElement("div",{className:`${i}-buttons`},o!==0?ue__default.createElement(Le,{...M,...g,onClick:v,size:"small",className:ki(`${i}-prev-btn`,g?.className)},g?.children??E?.Previous):null,ue__default.createElement(Le,{type:I,...u,onClick:x,size:"small",className:ki(`${i}-next-btn`,u?.className)},u?.children??(b?E?.Finish:E?.Next))))))},fu=dU;var mU=e=>{let{componentCls:t,padding:o,paddingXS:r,borderRadius:n,borderRadiusXS:i,colorPrimary:a,colorFill:l,indicatorHeight:s,indicatorWidth:c,boxShadowTertiary:p,zIndexPopup:d,colorBgElevated:m,fontWeightStrong:f,marginXS:u,colorTextLightSolid:g,tourBorderRadius:y,colorWhite:S,primaryNextBtnHoverBg:h,closeBtnSize:C,motionDurationSlow:b,antCls:v,primaryPrevBtnBg:x}=e;return [{[t]:{...ne(e),position:"absolute",zIndex:d,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":m,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:y,boxShadow:p,position:"relative",backgroundColor:m,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,background:"none",border:"none",width:C,height:C,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...St(e)},[`${t}-cover`]:{textAlign:"center",padding:`${unit(e.calc(o).add(C).add(r).equal())} ${unit(o)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${unit(o)} ${unit(o)} ${unit(r)}`,width:`calc(100% - ${unit(C)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:f}},[`${t}-description`]:{padding:`0 ${unit(o)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${unit(r)} ${unit(o)} ${unit(o)}`,textAlign:"end",borderRadius:`0 0 ${unit(i)} ${unit(i)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:c,height:s,display:"inline-block",borderRadius:"50%",background:l,"&:not(:last-child)":{marginInlineEnd:s},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${v}-btn`]:{marginInlineStart:u}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:g,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:n,boxShadow:p,[`${t}-close`]:{color:g},[`${t}-indicators`]:{[`${t}-indicator`]:{background:x,"&-active":{background:g}}},[`${t}-prev-btn`]:{color:g,borderColor:x,backgroundColor:a,"&:hover":{backgroundColor:x,borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:S,"&:hover":{background:h}}}}},[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${b}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(y,dc)}}},Wn(e,"var(--antd-arrow-background-color)")]},uU=e=>({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new TinyColor(e.colorTextLightSolid).setAlpha(.15).toRgbString(),primaryNextBtnHoverBg:new TinyColor(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString(),...dn({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...pn(e)}),gu=te("Tour",e=>{let{borderRadiusLG:t}=e,o=mergeToken(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t});return [mU(o)]},uU);var fU=e=>{let{prefixCls:t,current:o=0,total:r=6,className:n,style:i,type:a,closable:l,closeIcon:s,...c}=e,{getPrefixCls:p}=ue.useContext(B),d=p("tour",t),[m,f,u]=gu(d),[g,y]=Bn({closable:l,closeIcon:s},null,{closable:true,closeIconRender:S=>ue.isValidElement(S)?Pe(S,{className:ki(S.props.className,`${d}-close-icon`)}):S});return m(ue.createElement(Gg,{prefixCls:d,hashId:f,className:ki(n,`${d}-pure`,a&&`${d}-${a}`,u),style:i},ue.createElement(fu,{stepProps:{...c,prefixCls:d,total:r,closable:g?{closeIcon:y}:void 0},current:o,type:a})))},jI=lc(fU);var qI=e=>{let{prefixCls:t,type:o,rootClassName:r,indicatorsRender:n,steps:i,closeIcon:a,...l}=e,{getPrefixCls:s,direction:c,tour:p}=useContext(B),d=s("tour",t),[m,f,u]=gu(d),[,g]=ve(),y=ue__default.useMemo(()=>i?.map(x=>({...x,className:ki(x.className,{[`${d}-primary`]:(x.type??o)==="primary"})})),[i,o]),S=x=>Sa({arrowPointAtCenter:x?.arrowPointAtCenter??true,autoAdjustOverflow:true,offset:g.marginXXS,arrowWidth:g.sizePopupArrow,borderRadius:g.borderRadius}),h=ki({[`${d}-rtl`]:c==="rtl"},f,u,r),C=(x,T)=>ue__default.createElement(fu,{type:o,stepProps:x,current:T,indicatorsRender:n}),[b,v]=rt("Tour",l.zIndex);return m(ue__default.createElement(xr.Provider,{value:v},ue__default.createElement(yU,{...l,closeIcon:a??p?.closeIcon,zIndex:b,rootClassName:h,prefixCls:d,animated:true,renderPanel:C,builtinPlacements:S,steps:y})))};qI._InternalPanelDoNotUseOrYouWillBeFired=jI;var CU=qI;var il=e=>{let t=new Map;return e.forEach((o,r)=>{t.set(o,r);}),t},XI=e=>{let t=new Map;return e.forEach(({disabled:o,key:r},n)=>{o&&t.set(r,n);}),t};var hU=(e,t,o)=>{let r=ue.useMemo(()=>(e||[]).map(a=>t?{...a,key:t(a)}:a),[e,t]),[n,i]=ue.useMemo(()=>{let a=[],l=new Array((o||[]).length),s=il(o||[]);return r.forEach(c=>{s.has(c.key)?l[s.get(c.key)]=c:a.push(c);}),[a,l]},[r,o,t]);return [r,n,i]},KI=hU;var bU=[];function Cu(e,t){let o=e.filter(r=>t.has(r));return e.length===o.length?e:o}function ZI(e){return Array.from(e).join(";")}function ah(e,t,o){let[r,n]=ue.useMemo(()=>[new Set(e.map(d=>d.key)),new Set(t.map(d=>d.key))],[e,t]),[i,a]=useMergedState(bU,{value:o}),l=ue.useMemo(()=>Cu(i,r),[i,r]),s=ue.useMemo(()=>Cu(i,n),[i,n]);ue.useEffect(()=>{a([...Cu(i,r),...Cu(i,n)]);},[ZI(r),ZI(n)]);let c=useEvent(d=>{a([...d,...s]);}),p=useEvent(d=>{a([...l,...d]);});return [l,s,c,p]}var vU=e=>{let{renderedText:t,renderedEl:o,item:r,checked:n,disabled:i,prefixCls:a,onClick:l,onRemove:s,showRemove:c}=e,p=ki(`${a}-content-item`,{[`${a}-content-item-disabled`]:i||r.disabled,[`${a}-content-item-checked`]:n&&!r.disabled}),d;(typeof t=="string"||typeof t=="number")&&(d=String(t));let[m]=Ee("Transfer",tt.Transfer),f={className:p,title:d},u=ue.createElement("span",{className:`${a}-content-item-text`},o);return c?ue.createElement("li",{...f},u,ue.createElement("button",{type:"button",disabled:i||r.disabled,className:`${a}-content-item-remove`,"aria-label":m?.remove,onClick:()=>s?.(r)},ue.createElement(xU,null))):(f.onClick=i||r.disabled?void 0:g=>l(r,g),ue.createElement("li",{...f},ue.createElement(pr,{className:`${a}-checkbox`,checked:n,disabled:i||r.disabled}),u))},QI=ue.memo(vU);var JI=["handleFilter","handleClear","checkedKeys"],RU=e=>({...{simple:true,showSizeChanger:false,showLessItems:false},...e}),IU=(e,t)=>{let{prefixCls:o,filteredRenderItems:r,selectedKeys:n,disabled:i,showRemove:a,pagination:l,onScroll:s,onItemSelect:c,onItemRemove:p}=e,[d,m]=ue.useState(1),f=ue.useMemo(()=>l?RU(typeof l=="object"?l:{}):null,[l]),[u,g]=e0(10,{value:f?.pageSize});ue.useEffect(()=>{if(f){let T=Math.ceil(r.length/u);m(Math.min(d,T));}},[r,f,u]);let y=(T,$)=>{c(T.key,!n.includes(T.key),$);},S=T=>{p?.([T.key]);},h=T=>{m(T);},C=(T,$)=>{m(T),g($);},b=ue.useMemo(()=>f?r.slice((d-1)*u,d*u):r,[d,r,f,u]);ue.useImperativeHandle(t,()=>({items:b}));let v=f?ue.createElement(Ua,{size:"small",disabled:i,simple:f.simple,pageSize:u,showLessItems:f.showLessItems,showSizeChanger:f.showSizeChanger,className:`${o}-pagination`,total:r.length,current:d,onChange:h,onShowSizeChange:C}):null,x=ki(`${o}-content`,{[`${o}-content-show-remove`]:a});return ue.createElement(ue.Fragment,null,ue.createElement("ul",{className:x,onScroll:s},(b||[]).map(({renderedEl:T,renderedText:$,item:R})=>ue.createElement(QI,{key:R.key,item:R,renderedText:$,renderedEl:T,prefixCls:o,showRemove:a,onClick:y,onRemove:S,checked:n.includes(R.key),disabled:i||R.disabled}))),v)},ew=ue.forwardRef(IU);var NU=e=>{let{placeholder:t="",value:o,prefixCls:r,disabled:n,onChange:i,handleClear:a}=e,l=ue.useCallback(s=>{i?.(s),s.target.value===""&&a?.();},[i]);return ue.createElement(jr,{placeholder:t,className:r,value:o,onChange:l,disabled:n,allowClear:true,prefix:ue.createElement(T3,null)})},hu=NU;var DU=()=>null;function AU(e){return !!(e&&!ue__default.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function qc(e){return e.filter(t=>!t.disabled).map(t=>t.key)}var FU=e=>e!==void 0,OU=e=>{let{prefixCls:t,dataSource:o=[],titleText:r="",checkedKeys:n,disabled:i,showSearch:a=false,style:l,searchPlaceholder:s,notFoundContent:c,selectAll:p,deselectAll:d,selectCurrent:m,selectInvert:f,removeAll:u,removeCurrent:g,showSelectAll:y=true,showRemove:S,pagination:h,direction:C,itemsUnit:b,itemUnit:v,selectAllLabel:x,selectionsIcon:T,footer:$,renderList:R,onItemSelectAll:P,onItemRemove:I,handleFilter:M,handleClear:E,filterOption:w,render:N=DU}=e,[A,k]=useState(""),D=useRef({}),F=Z=>{k(Z.target.value),M(Z);},O=()=>{k(""),E();},L=(Z,re)=>w?w(A,re,C):Z.includes(A),_=Z=>{let re=R?R({...Z,onItemSelect:(se,Ce)=>Z.onItemSelect(se,Ce)}):null,ae=!!re;return ae||(re=ue__default.createElement(ew,{ref:D,...Z})),{customize:ae,bodyContent:re}},H=Z=>{let re=N(Z),ae=AU(re);return {item:Z,renderedEl:ae?re.label:re,renderedText:ae?re.value:re}},z=useMemo(()=>Array.isArray(c)?c[C==="left"?0:1]:c,[c,C]),[G,W]=useMemo(()=>{let Z=[],re=[];return o.forEach(ae=>{let se=H(ae);A&&!L(se.renderedText,ae)||(Z.push(ae),re.push(se));}),[Z,re]},[o,A]),q=useMemo(()=>G.filter(Z=>n.includes(Z.key)&&!Z.disabled),[n,G]),j=useMemo(()=>{if(q.length===0)return "none";let Z=il(n);return G.every(re=>Z.has(re.key)||!!re.disabled)?"all":"part"},[n,q]),K=useMemo(()=>{let Z=a?ue__default.createElement("div",{className:`${t}-body-search-wrapper`},ue__default.createElement(hu,{prefixCls:`${t}-search`,onChange:F,handleClear:O,placeholder:s,value:A,disabled:i})):null,{customize:re,bodyContent:ae}=_({...fx(e,JI),filteredItems:G,filteredRenderItems:W,selectedKeys:n}),se;return re?se=ue__default.createElement("div",{className:`${t}-body-customize-wrapper`},ae):se=G.length?ae:ue__default.createElement("div",{className:`${t}-body-not-found`},z),ue__default.createElement("div",{className:ki(a?`${t}-body ${t}-body-with-search`:`${t}-body`)},Z,se)},[a,t,s,A,i,n,G,W,z]),Q=ue__default.createElement(pr,{disabled:o.filter(Z=>!Z.disabled).length===0||i,checked:j==="all",indeterminate:j==="part",className:`${t}-checkbox`,onChange:()=>{P?.(G.filter(Z=>!Z.disabled).map(({key:Z})=>Z),j!=="all");}}),V=(Z,re)=>{if(x)return typeof x=="function"?x({selectedCount:Z,totalCount:re}):x;let ae=re>1?b:v;return ue__default.createElement(ue__default.Fragment,null,(Z>0?`${Z}/`:"")+re," ",ae)},U=$&&($.length<2?$(e):$(e,{direction:C})),Y=ki(t,{[`${t}-with-pagination`]:!!h,[`${t}-with-footer`]:!!U}),J=U?ue__default.createElement("div",{className:`${t}-footer`},U):null,ie=!S&&!h&&Q,ee;S?ee=[h?{key:"removeCurrent",label:g,onClick(){let Z=qc((D.current?.items||[]).map(re=>re.item));I?.(Z);}}:null,{key:"removeAll",label:u,onClick(){I?.(qc(G));}}].filter(Boolean):ee=[{key:"selectAll",label:j==="all"?d:p,onClick(){let Z=qc(G);P?.(Z,Z.length!==n.length);}},h?{key:"selectCurrent",label:m,onClick(){let Z=D.current?.items||[];P?.(qc(Z.map(re=>re.item)),true);}}:null,{key:"selectInvert",label:f,onClick(){let Z=qc((D.current?.items||[]).map(se=>se.item)),re=new Set(n),ae=new Set(re);Z.forEach(se=>{re.has(se)?ae.delete(se):ae.add(se);}),P?.(Array.from(ae),"replace");}}];let X=ue__default.createElement(Wa,{className:`${t}-header-dropdown`,menu:{items:ee},disabled:i},FU(T)?T:ue__default.createElement(b3,null));return ue__default.createElement("div",{className:Y,style:l},ue__default.createElement("div",{className:`${t}-header`},y?ue__default.createElement(ue__default.Fragment,null,ie,X):null,ue__default.createElement("span",{className:`${t}-header-selected`},V(q.length,G.length)),ue__default.createElement("span",{className:`${t}-header-title`},r)),K,J)},Su=OU;var zU=e=>{let{disabled:t,moveToLeft:o,moveToRight:r,leftArrowText:n="",rightArrowText:i="",leftActive:a,rightActive:l,className:s,style:c,direction:p,oneWay:d}=e;return ue.createElement("div",{className:s,style:c},ue.createElement(Le,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:p!=="rtl"?ue.createElement(cv,null):ue.createElement(sv,null)},i),!d&&ue.createElement(Le,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:p!=="rtl"?ue.createElement(sv,null):ue.createElement(cv,null)},n))},lh=zU;var LU=e=>{let{antCls:t,componentCls:o,listHeight:r,controlHeightLG:n}=e,i=`${t}-table`,a=`${t}-input`;return {[`${o}-customize-list`]:{[`${o}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:n,minWidth:n}},[`${i}-pagination${i}-pagination`]:{margin:0,padding:e.paddingXS}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},nw=(e,t)=>{let{componentCls:o,colorBorder:r}=e;return {[`${o}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},HU=e=>{let{componentCls:t}=e;return {[`${t}-status-error`]:{...nw(e,e.colorError)},[`${t}-status-warning`]:{...nw(e,e.colorWarning)}}},WU=e=>{let{componentCls:t,colorBorder:o,colorSplit:r,lineWidth:n,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:s,controlItemBgActive:c,colorTextDisabled:p,colorTextSecondary:d,listHeight:m,listWidth:f,listWidthLG:u,fontSizeIcon:g,marginXS:y,paddingSM:S,lineType:h,antCls:C,iconCls:b,motionDurationSlow:v,controlItemBgHover:x,borderRadiusLG:T,colorBgContainer:$,colorText:R,controlItemBgActiveHover:P}=e,I=unit(e.calc(T).sub(n).equal());return {display:"flex",flexDirection:"column",width:f,height:m,border:`${unit(n)} ${h} ${o}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:u,height:"auto"},"&-search":{[`${b}-search`]:{color:p}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${unit(e.calc(l).sub(n).equal())} ${unit(S)} ${unit(l)}`,color:R,background:$,borderBottom:`${unit(n)} ${h} ${r}`,borderRadius:`${unit(T)} ${unit(T)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":{...Oe,flex:"auto",textAlign:"end"},"&-dropdown":{...Io(),fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}}},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:S}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${I} ${I}`,"&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${unit(s)} ${unit(S)}`,transition:`all ${v}`,"> *:not(:last-child)":{marginInlineEnd:y},"> *":{flex:"none"},"&-text":{...Oe,flex:"auto"},"&-remove":{...pi(e),color:o,"&:hover, &:focus":{color:d}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:x,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:P}},"&-checked":{backgroundColor:c},"&-disabled":{color:p,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${unit(n)} ${h} ${r}`,[`${C}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:p,textAlign:"center"},"&-footer":{borderTop:`${unit(n)} ${h} ${r}`},"&-checkbox":{lineHeight:1}}},GU=e=>{let{antCls:t,iconCls:o,componentCls:r,marginXS:n,marginXXS:i,fontSizeIcon:a,colorBgContainerDisabled:l}=e;return {[r]:{...ne(e),position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:l}},[`${r}-list`]:WU(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${unit(n)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${o}`]:{fontSize:a}}}}},VU=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},_U=e=>{let{fontSize:t,lineHeight:o,controlHeight:r,controlHeightLG:n,lineWidth:i}=e,a=Math.round(t*o);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:n,itemHeight:r,itemPaddingBlock:(r-a)/2,transferHeaderVerticalPadding:Math.ceil((n-i-a)/2)}},iw=te("Transfer",e=>{let t=mergeToken(e);return [GU(t),LU(t),HU(t),VU(t)]},_U);var bu=e=>{let{dataSource:t,targetKeys:o=[],selectedKeys:r,selectAllLabels:n=[],operations:i=[],style:a={},listStyle:l={},locale:s={},titles:c,disabled:p,showSearch:d=false,operationStyle:m,showSelectAll:f,oneWay:u,pagination:g,status:y,prefixCls:S,className:h,rootClassName:C,selectionsIcon:b,filterOption:v,render:x,footer:T,children:$,rowKey:R,onScroll:P,onChange:I,onSearch:M,onSelectChange:E}=e,{getPrefixCls:w,renderEmpty:N,direction:A,transfer:k}=useContext(B),D=w("transfer",S),[F,O,L]=iw(D),[_,H,z]=KI(t,R,o),[G,W,q,j]=ah(H,z,r),[K,Q]=Ts(ge=>ge.key),[V,U]=Ts(ge=>ge.key),Y=useCallback((ge,be)=>{if(ge==="left"){let Ve=typeof be=="function"?be(G||[]):be;q(Ve);}else {let Ve=typeof be=="function"?be(W||[]):be;j(Ve);}},[G,W]),J=(ge,be)=>{(ge==="left"?Q:U)(be);},ie=useCallback((ge,be)=>{ge==="left"?E?.(be,W):E?.(G,be);},[G,W]),ee=ge=>c??ge.titles??[],X=ge=>{P?.("left",ge);},Z=ge=>{P?.("right",ge);},re=ge=>{let be=ge==="right"?G:W,Ve=XI(_),vt=be.filter(Ie=>!Ve.has(Ie)),Pt=il(vt),yo=ge==="right"?vt.concat(o):o.filter(Ie=>!Pt.has(Ie)),Yo=ge==="right"?"left":"right";Y(Yo,[]),ie(Yo,[]),I?.(yo,ge,vt);},ae=()=>{re("left"),J("left",null);},se=()=>{re("right"),J("right",null);},Ce=(ge,be,Ve)=>{Y(ge,vt=>{let Pt=[];if(Ve==="replace")Pt=be;else if(Ve)Pt=Array.from(new Set([...vt,...be]));else {let yo=il(be);Pt=vt.filter(Yo=>!yo.has(Yo));}return ie(ge,Pt),Pt}),J(ge,null);},$e=(ge,be)=>{Ce("left",ge,be);},Ge=(ge,be)=>{Ce("right",ge,be);},xe=ge=>M?.("left",ge.target.value),qe=ge=>M?.("right",ge.target.value),lt=()=>M?.("left",""),Ye=()=>M?.("right",""),me=(ge,be,Ve,vt,Pt)=>{be.has(Ve)&&(be.delete(Ve),J(ge,null)),vt&&(be.add(Ve),J(ge,Pt));},Re=(ge,be,Ve,vt)=>{(ge==="left"?K:V)(vt,be,Ve);},Ne=(ge,be,Ve,vt)=>{let Pt=ge==="left",yo=[...Pt?G:W],Yo=new Set(yo),Ie=[...Pt?H:z].filter(st=>!st?.disabled),_e=Ie.findIndex(st=>st.key===be);vt&&yo.length>0?Re(ge,Ie,Yo,_e):me(ge,Yo,be,Ve,_e);let Mt=Array.from(Yo);ie(ge,Mt),e.selectedKeys||Y(ge,Mt);},Me=(ge,be,Ve)=>{Ne("left",ge,be,Ve?.shiftKey);},De=(ge,be,Ve)=>{Ne("right",ge,be,Ve?.shiftKey);},fe=ge=>{Y("right",[]),I?.(o.filter(be=>!ge.includes(be)),"left",[...ge]);},le=ge=>typeof l=="function"?l({direction:ge}):l||{},ce=useContext(ke),{hasFeedback:pe,status:he}=ce,it=ge=>({...ge,notFoundContent:N?.("Transfer")||ue__default.createElement(ho,{componentName:"Transfer"}),...s}),go=Rt(he,y),je=!$&&g,Ue=z.filter(ge=>W.includes(ge.key)&&!ge.disabled).length>0,Po=H.filter(ge=>G.includes(ge.key)&&!ge.disabled).length>0,$o=ki(D,{[`${D}-disabled`]:p,[`${D}-customize-list`]:!!$,[`${D}-rtl`]:A==="rtl"},yt(D,go,pe),k?.className,h,C,O,L),[br]=Ee("Transfer",tt.Transfer),Ro=it(br),[ai,Tt]=ee(Ro),en=b??k?.selectionsIcon;return F(ue__default.createElement("div",{className:$o,style:{...k?.style,...a}},ue__default.createElement(Su,{prefixCls:`${D}-list`,titleText:ai,dataSource:H,filterOption:v,style:le("left"),checkedKeys:G,handleFilter:xe,handleClear:lt,onItemSelect:Me,onItemSelectAll:$e,render:x,showSearch:d,renderList:$,footer:T,onScroll:X,disabled:p,direction:A==="rtl"?"right":"left",showSelectAll:f,selectAllLabel:n[0],pagination:je,selectionsIcon:en,...Ro}),ue__default.createElement(lh,{className:`${D}-operation`,rightActive:Po,rightArrowText:i[0],moveToRight:se,leftActive:Ue,leftArrowText:i[1],moveToLeft:ae,style:m,disabled:p,direction:A,oneWay:u}),ue__default.createElement(Su,{prefixCls:`${D}-list`,titleText:Tt,dataSource:z,filterOption:v,style:le("right"),checkedKeys:W,handleFilter:qe,handleClear:Ye,onItemSelect:De,onItemSelectAll:Ge,onItemRemove:fe,render:x,showSearch:d,renderList:$,footer:T,onScroll:Z,disabled:p,direction:A==="rtl"?"left":"right",showSelectAll:f,selectAllLabel:n[1],showRemove:u,pagination:je,selectionsIcon:en,...Ro})))};bu.List=Su;bu.Search=hu;bu.Operation=lh;var sh=bu;var UU=e=>{let{componentCls:t,treePrefixCls:o,colorBgElevated:r}=e,n=`.${o}`;return [{[`${t}-dropdown`]:[{padding:`${unit(e.paddingXS)} ${unit(e.calc(e.paddingXS).div(2).equal())}`},HC(o,mergeToken(e,{colorBgContainer:r})),{[n]:{borderRadius:0,[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-treenode`]:{[`${n}-node-content-wrapper`]:{flex:"auto"}}}}},Da(`${o}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${n}-switcher${n}-switcher_close`]:{[`${n}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function ch(e,t,o){return te("TreeSelect",r=>{let n=mergeToken(r,{treePrefixCls:t});return [UU(n)]},WC)(e,o)}var QU=(e,t)=>{let{prefixCls:o,size:r,disabled:n,bordered:i=true,className:a,rootClassName:l,treeCheckable:s,multiple:c,listHeight:p=256,listItemHeight:d,placement:m,notFoundContent:f,switcherIcon:u,treeLine:g,getPopupContainer:y,popupClassName:S,dropdownClassName:h,treeIcon:C=false,transitionName:b,choiceTransitionName:v="",status:x,treeExpandAction:T,builtinPlacements:$,dropdownMatchSelectWidth:R,popupMatchSelectWidth:P,allowClear:I,variant:M,dropdownStyle:E,tagRender:w,...N}=e,{getPopupContainer:A,getPrefixCls:k,renderEmpty:D,direction:F,virtual:O,popupMatchSelectWidth:L,popupOverflow:_}=ue.useContext(B),[,H]=ve(),z=d??H?.controlHeightSM+H?.paddingXXS,G=k(),W=k("select",o),q=k("select-tree",o),j=k("tree-select",o),{compactSize:K,compactItemClassnames:Q}=$t(W,F),V=de(W),U=de(j),[Y,J,ie]=Vl(W,V),[ee]=ch(j,q,U),[X,Z]=Ot("treeSelect",M,i),re=ki(S||h,`${j}-dropdown`,{[`${j}-dropdown-rtl`]:F==="rtl"},l,ie,V,U,J),ae=!!(s||c),se=ha(e.suffixIcon,e.showArrow),Ce=P??R??L,{status:$e,hasFeedback:Ge,isFormItemInput:xe,feedbackIcon:qe}=ue.useContext(ke),lt=Rt($e,x),{suffixIcon:Ye,removeIcon:me,clearIcon:Re}=zn({...N,multiple:ae,showSuffixIcon:se,hasFeedback:Ge,feedbackIcon:qe,prefixCls:W,componentName:"TreeSelect"}),Ne=I===true?{clearIcon:Re}:I,Me;f!==void 0?Me=f:Me=D?.("Select")||ue.createElement(ho,{componentName:"Select"});let De=fx(N,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),fe=ue.useMemo(()=>m!==void 0?m:F==="rtl"?"bottomRight":"bottomLeft",[m,F]),le=Te(Ue=>r??K??Ue),ce=ue.useContext(Be),pe=n??ce,he=ki(!o&&j,{[`${W}-lg`]:le==="large",[`${W}-sm`]:le==="small",[`${W}-rtl`]:F==="rtl",[`${W}-${X}`]:Z,[`${W}-in-form-item`]:xe},yt(W,lt,Ge),Q,a,l,ie,V,U,J),it=Ue=>ue.createElement(Jm,{prefixCls:q,switcherIcon:u,treeNodeProps:Ue,showLine:g}),[go]=rt("SelectLike",E?.zIndex),je=ue.createElement(qU,{virtual:O,disabled:pe,...De,dropdownMatchSelectWidth:Ce,builtinPlacements:Gl($,_),ref:t,prefixCls:W,className:he,listHeight:p,listItemHeight:z,treeCheckable:s&&ue.createElement("span",{className:`${W}-tree-checkbox-inner`}),treeLine:!!g,suffixIcon:Ye,multiple:ae,placement:fe,removeIcon:me,allowClear:Ne,switcherIcon:it,showTreeIcon:C,notFoundContent:Me,getPopupContainer:y||A,treeMotion:null,dropdownClassName:re,dropdownStyle:{...E,zIndex:go},choiceTransitionName:Ze(G,"",v),transitionName:Ze(G,"slide-up",b),treeExpandAction:T,tagRender:ae?w:void 0});return Y(ee(je))},JU=ue.forwardRef(QU),al=JU,eq=Wt(al,"dropdownAlign",e=>fx(e,["visible"]));al.TreeNode=TreeNode$1;al.SHOW_ALL=SHOW_ALL;al.SHOW_PARENT=SHOW_PARENT;al.SHOW_CHILD=SHOW_CHILD;al._InternalPanelDoNotUseOrYouWillBeFired=eq;var ph=al;var rq=(e,t,o,r)=>{let{titleMarginBottom:n,fontWeightStrong:i}=r;return {marginBottom:n,color:o,fontWeight:i,fontSize:e,lineHeight:t}},dw=e=>{let t=[1,2,3,4,5],o={};return t.forEach(r=>{o[`
|
|
319
|
+
${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${unit(e.margin)})`,borderInlineStart:`${unit(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:o(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:o(o(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${unit(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${unit(e.marginSM)})`,width:`calc(50% - ${unit(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}}}},Jq=e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3,dotBg:e.colorBgContainer,itemPaddingBottom:e.padding*1.25}),qw=oe("Timeline",e=>{let t=mergeToken(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return [Qq(t)]},Jq);var eX=({prefixCls:e,className:t,color:o="blue",dot:r,pending:n=false,position:i,label:a,children:l,...s})=>{let{getPrefixCls:c}=ve.useContext(O),p=c("timeline",e),m=Xi(`${p}-item`,{[`${p}-item-pending`]:n},t),d=/blue|red|green|gray/.test(o||"")?void 0:o,f=Xi(`${p}-item-head`,{[`${p}-item-head-custom`]:!!r,[`${p}-item-head-${o}`]:!d});return ve.createElement("li",{...s,className:m},a&&ve.createElement("div",{className:`${p}-item-label`},a),ve.createElement("div",{className:`${p}-item-tail`}),ve.createElement("div",{className:f,style:{borderColor:d,color:d}},r),ve.createElement("div",{className:`${p}-item-content`},l))},Uu=eX;var oX=({prefixCls:e,className:t,pending:o=false,children:r,items:n,rootClassName:i,reverse:a=false,direction:l,hashId:s,pendingDot:c,mode:p="",...m})=>{let d=(S,v)=>p==="alternate"?S==="right"?`${e}-item-right`:S==="left"?`${e}-item-left`:v%2===0?`${e}-item-left`:`${e}-item-right`:p==="left"?`${e}-item-left`:p==="right"?`${e}-item-right`:S==="right"?`${e}-item-right`:"",f=[...n||[]],u=typeof o=="boolean"?null:o;o&&f.push({pending:!!o,dot:c||ve.createElement(iM,null),children:u}),a&&f.reverse();let g=f.length,y=`${e}-item-last`,h=f.filter(S=>!!S).map((S,v)=>{let x=v===g-2?y:"",$=v===g-1?y:"",{className:R,...T}=S;return ve.createElement(Uu,{...T,className:Xi([R,!a&&o?x:$,d(S?.position??"",v)]),key:S?.key||v})}),b=f.some(S=>!!S?.label),C=Xi(e,{[`${e}-pending`]:!!o,[`${e}-reverse`]:!!a,[`${e}-${p}`]:!!p&&!b,[`${e}-label`]:b,[`${e}-rtl`]:l==="rtl"},t,i,s);return ve.createElement("ul",{...m,className:C},h)},Yw=oX;function nX(e,t){return e&&Array.isArray(e)?e:H0(t).map(o=>({children:o?.props?.children??"",...o.props}))}var Zw=nX;var Qw=e=>{let{getPrefixCls:t,direction:o,timeline:r}=ve.useContext(O),{prefixCls:n,children:i,items:a,className:l,style:s,...c}=e,p=t("timeline",n),m=$e(p),[d,f,u]=qw(p,m),g=Zw(a,i);return d(ve.createElement(Yw,{...c,className:Xi(r?.className,l,u,m),style:{...r?.style,...s},prefixCls:p,direction:o,items:g,hashId:f}))};Qw.Item=Uu;var Jw=Qw;var aX=Jw;function Zh(e){return e!=null}var sX=e=>{let{stepProps:t,current:o,type:r,indicatorsRender:n}=e,{prefixCls:i,total:a=1,title:l,onClose:s,onPrev:c,onNext:p,onFinish:m,cover:d,description:f,nextButtonProps:u,prevButtonProps:g,type:y,closable:h}=t,b=y??r,C=ve__default.createElement("button",{type:"button",onClick:s,className:`${i}-close`},h?.closeIcon||ve__default.createElement(JD,{className:`${i}-close-icon`})),S=o===a-1,v=()=>{c?.(),g?.onClick?.();},x=()=>{S?m?.():p?.(),u?.onClick?.();},$=Zh(l)?ve__default.createElement("div",{className:`${i}-header`},ve__default.createElement("div",{className:`${i}-title`},l)):null,R=Zh(f)?ve__default.createElement("div",{className:`${i}-description`},f):null,T=Zh(d)?ve__default.createElement("div",{className:`${i}-cover`},d):null,P;n?P=n(o,a):P=[...Array.from({length:a}).keys()].map((I,w)=>ve__default.createElement("span",{key:I,className:Xi(w===o&&`${i}-indicator-active`,`${i}-indicator`)}));let N=b==="primary"?"default":"primary",M={type:"default",ghost:b==="primary"},[E]=Ae("Tour",ct.Tour);return ve__default.createElement("div",{className:`${i}-content`},ve__default.createElement("div",{className:`${i}-inner`},h&&C,T,$,R,ve__default.createElement("div",{className:`${i}-footer`},a>1&&ve__default.createElement("div",{className:`${i}-indicators`},P),ve__default.createElement("div",{className:`${i}-buttons`},o!==0?ve__default.createElement(Ge,{...M,...g,onClick:v,size:"small",className:Xi(`${i}-prev-btn`,g?.className)},g?.children??E?.Previous):null,ve__default.createElement(Ge,{type:N,...u,onClick:x,size:"small",className:Xi(`${i}-next-btn`,u?.className)},u?.children??(S?E?.Finish:E?.Next))))))},Ku=sX;var cX=e=>{let{componentCls:t,padding:o,paddingXS:r,borderRadius:n,borderRadiusXS:i,colorPrimary:a,colorFill:l,indicatorHeight:s,indicatorWidth:c,boxShadowTertiary:p,zIndexPopup:m,colorBgElevated:d,fontWeightStrong:f,marginXS:u,colorTextLightSolid:g,tourBorderRadius:y,colorWhite:h,primaryNextBtnHoverBg:b,closeBtnSize:C,motionDurationSlow:S,antCls:v,primaryPrevBtnBg:x}=e;return [{[t]:{...ae(e),position:"absolute",zIndex:m,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":d,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:y,boxShadow:p,position:"relative",backgroundColor:d,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,background:"none",border:"none",width:C,height:C,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...$t(e)},[`${t}-cover`]:{textAlign:"center",padding:`${unit(e.calc(o).add(C).add(r).equal())} ${unit(o)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${unit(o)} ${unit(o)} ${unit(r)}`,width:`calc(100% - ${unit(C)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:f}},[`${t}-description`]:{padding:`0 ${unit(o)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${unit(r)} ${unit(o)} ${unit(o)}`,textAlign:"end",borderRadius:`0 0 ${unit(i)} ${unit(i)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:c,height:s,display:"inline-block",borderRadius:"50%",background:l,"&:not(:last-child)":{marginInlineEnd:s},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${v}-btn`]:{marginInlineStart:u}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:g,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:n,boxShadow:p,[`${t}-close`]:{color:g},[`${t}-indicators`]:{[`${t}-indicator`]:{background:x,"&-active":{background:g}}},[`${t}-prev-btn`]:{color:g,borderColor:x,backgroundColor:a,"&:hover":{backgroundColor:x,borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:h,"&:hover":{background:b}}}}},[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${S}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(y,zc)}}},ei(e,"var(--antd-arrow-background-color)")]},pX=e=>({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new TinyColor(e.colorTextLightSolid).setAlpha(.15).toRgbString(),primaryNextBtnHoverBg:new TinyColor(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString(),...xn({contentRadius:e.borderRadiusLG,limitVerticalRadius:true}),...Sn(e)}),Yu=oe("Tour",e=>{let{borderRadiusLG:t}=e,o=mergeToken(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t});return [cX(o)]},pX);var dX=e=>{let{prefixCls:t,current:o=0,total:r=6,className:n,style:i,type:a,closable:l,closeIcon:s,...c}=e,{getPrefixCls:p}=ve.useContext(O),m=p("tour",t),[d,f,u]=Yu(m),[g,y]=Un({closable:l,closeIcon:s},null,{closable:true,closeIconRender:h=>ve.isValidElement(h)?Oe(h,{className:Xi(h.props.className,`${m}-close-icon`)}):h});return d(ve.createElement(By,{prefixCls:m,hashId:f,className:Xi(n,`${m}-pure`,a&&`${m}-${a}`,u),style:i},ve.createElement(Ku,{stepProps:{...c,prefixCls:m,total:r,closable:g?{closeIcon:y}:void 0},current:o,type:a})))},oN=Dc(dX);var nN=e=>{let{prefixCls:t,type:o,rootClassName:r,indicatorsRender:n,steps:i,closeIcon:a,...l}=e,{getPrefixCls:s,direction:c,tour:p}=useContext(O),m=s("tour",t),[d,f,u]=Yu(m),[,g]=De(),y=ve__default.useMemo(()=>i?.map(x=>({...x,className:Xi(x.className,{[`${m}-primary`]:(x.type??o)==="primary"})})),[i,o]),h=x=>za({arrowPointAtCenter:x?.arrowPointAtCenter??true,autoAdjustOverflow:true,offset:g.marginXXS,arrowWidth:g.sizePopupArrow,borderRadius:g.borderRadius}),b=Xi({[`${m}-rtl`]:c==="rtl"},f,u,r),C=(x,$)=>ve__default.createElement(Ku,{type:o,stepProps:x,current:$,indicatorsRender:n}),[S,v]=dt("Tour",l.zIndex);return d(ve__default.createElement(Nr.Provider,{value:v},ve__default.createElement(uX,{...l,closeIcon:a??p?.closeIcon,zIndex:S,rootClassName:b,prefixCls:m,animated:true,renderPanel:C,builtinPlacements:h,steps:y})))};nN._InternalPanelDoNotUseOrYouWillBeFired=oN;var fX=nN;var vl=e=>{let t=new Map;return e.forEach((o,r)=>{t.set(o,r);}),t},iN=e=>{let t=new Map;return e.forEach(({disabled:o,key:r},n)=>{o&&t.set(r,n);}),t};var gX=(e,t,o)=>{let r=ve.useMemo(()=>(e||[]).map(a=>t?{...a,key:t(a)}:a),[e,t]),[n,i]=ve.useMemo(()=>{let a=[],l=new Array((o||[]).length),s=vl(o||[]);return r.forEach(c=>{s.has(c.key)?l[s.get(c.key)]=c:a.push(c);}),[a,l]},[r,o,t]);return [r,n,i]},aN=gX;var CX=[];function Qu(e,t){let o=e.filter(r=>t.has(r));return e.length===o.length?e:o}function sN(e){return Array.from(e).join(";")}function Jh(e,t,o){let[r,n]=ve.useMemo(()=>[new Set(e.map(m=>m.key)),new Set(t.map(m=>m.key))],[e,t]),[i,a]=useMergedState(CX,{value:o}),l=ve.useMemo(()=>Qu(i,r),[i,r]),s=ve.useMemo(()=>Qu(i,n),[i,n]);ve.useEffect(()=>{a([...Qu(i,r),...Qu(i,n)]);},[sN(r),sN(n)]);let c=useEvent(m=>{a([...m,...s]);}),p=useEvent(m=>{a([...l,...m]);});return [l,s,c,p]}var SX=e=>{let{renderedText:t,renderedEl:o,item:r,checked:n,disabled:i,prefixCls:a,onClick:l,onRemove:s,showRemove:c}=e,p=Xi(`${a}-content-item`,{[`${a}-content-item-disabled`]:i||r.disabled,[`${a}-content-item-checked`]:n&&!r.disabled}),m;(typeof t=="string"||typeof t=="number")&&(m=String(t));let[d]=Ae("Transfer",ct.Transfer),f={className:p,title:m},u=ve.createElement("span",{className:`${a}-content-item-text`},o);return c?ve.createElement("li",{...f},u,ve.createElement("button",{type:"button",disabled:i||r.disabled,className:`${a}-content-item-remove`,"aria-label":d?.remove,onClick:()=>s?.(r)},ve.createElement(hX,null))):(f.onClick=i||r.disabled?void 0:g=>l(r,g),ve.createElement("li",{...f},ve.createElement(hr,{className:`${a}-checkbox`,checked:n,disabled:i||r.disabled}),u))},cN=ve.memo(SX);var pN=["handleFilter","handleClear","checkedKeys"],TX=e=>({...{simple:true,showSizeChanger:false,showLessItems:false},...e}),$X=(e,t)=>{let{prefixCls:o,filteredRenderItems:r,selectedKeys:n,disabled:i,showRemove:a,pagination:l,onScroll:s,onItemSelect:c,onItemRemove:p}=e,[m,d]=ve.useState(1),f=ve.useMemo(()=>l?TX(typeof l=="object"?l:{}):null,[l]),[u,g]=s$(10,{value:f?.pageSize});ve.useEffect(()=>{if(f){let $=Math.ceil(r.length/u);d(Math.min(m,$));}},[r,f,u]);let y=($,R)=>{c($.key,!n.includes($.key),R);},h=$=>{p?.([$.key]);},b=$=>{d($);},C=($,R)=>{d($),g(R);},S=ve.useMemo(()=>f?r.slice((m-1)*u,m*u):r,[m,r,f,u]);ve.useImperativeHandle(t,()=>({items:S}));let v=f?ve.createElement(cl,{size:"small",disabled:i,simple:f.simple,pageSize:u,showLessItems:f.showLessItems,showSizeChanger:f.showSizeChanger,className:`${o}-pagination`,total:r.length,current:m,onChange:b,onShowSizeChange:C}):null,x=Xi(`${o}-content`,{[`${o}-content-show-remove`]:a});return ve.createElement(ve.Fragment,null,ve.createElement("ul",{className:x,onScroll:s},(S||[]).map(({renderedEl:$,renderedText:R,item:T})=>ve.createElement(cN,{key:T.key,item:T,renderedText:R,renderedEl:$,prefixCls:o,showRemove:a,onClick:y,onRemove:h,checked:n.includes(T.key),disabled:i||T.disabled}))),v)},dN=ve.forwardRef($X);var RX=e=>{let{placeholder:t="",value:o,prefixCls:r,disabled:n,onChange:i,handleClear:a}=e,l=ve.useCallback(s=>{i?.(s),s.target.value===""&&a?.();},[i]);return ve.createElement(en,{placeholder:t,className:r,value:o,onChange:l,disabled:n,allowClear:true,prefix:ve.createElement(nF,null)})},Ju=RX;var EX=()=>null;function kX(e){return !!(e&&!ve__default.isValidElement(e)&&Object.prototype.toString.call(e)==="[object Object]")}function bp(e){return e.filter(t=>!t.disabled).map(t=>t.key)}var DX=e=>e!==void 0,BX=e=>{let{prefixCls:t,dataSource:o=[],titleText:r="",checkedKeys:n,disabled:i,showSearch:a=false,style:l,searchPlaceholder:s,notFoundContent:c,selectAll:p,deselectAll:m,selectCurrent:d,selectInvert:f,removeAll:u,removeCurrent:g,showSelectAll:y=true,showRemove:h,pagination:b,direction:C,itemsUnit:S,itemUnit:v,selectAllLabel:x,selectionsIcon:$,footer:R,renderList:T,onItemSelectAll:P,onItemRemove:N,handleFilter:M,handleClear:E,filterOption:I,render:w=EX}=e,[B,k]=useState(""),D=useRef({}),F=X=>{k(X.target.value),M(X);},A=()=>{k(""),E();},L=(X,re)=>I?I(B,re,C):X.includes(B),q=X=>{let re=T?T({...X,onItemSelect:(fe,Pe)=>X.onItemSelect(fe,Pe)}):null,ce=!!re;return ce||(re=ve__default.createElement(dN,{ref:D,...X})),{customize:ce,bodyContent:re}},V=X=>{let re=w(X),ce=kX(re);return {item:X,renderedEl:ce?re.label:re,renderedText:ce?re.value:re}},z=useMemo(()=>Array.isArray(c)?c[C==="left"?0:1]:c,[c,C]),[G,_]=useMemo(()=>{let X=[],re=[];return o.forEach(ce=>{let fe=V(ce);B&&!L(fe.renderedText,ce)||(X.push(ce),re.push(fe));}),[X,re]},[o,B]),Z=useMemo(()=>G.filter(X=>n.includes(X.key)&&!X.disabled),[n,G]),K=useMemo(()=>{if(Z.length===0)return "none";let X=vl(n);return G.every(re=>X.has(re.key)||!!re.disabled)?"all":"part"},[n,Z]),Q=useMemo(()=>{let X=a?ve__default.createElement("div",{className:`${t}-body-search-wrapper`},ve__default.createElement(Ju,{prefixCls:`${t}-search`,onChange:F,handleClear:A,placeholder:s,value:B,disabled:i})):null,{customize:re,bodyContent:ce}=q({...vv(e,pN),filteredItems:G,filteredRenderItems:_,selectedKeys:n}),fe;return re?fe=ve__default.createElement("div",{className:`${t}-body-customize-wrapper`},ce):fe=G.length?ce:ve__default.createElement("div",{className:`${t}-body-not-found`},z),ve__default.createElement("div",{className:Xi(a?`${t}-body ${t}-body-with-search`:`${t}-body`)},X,fe)},[a,t,s,B,i,n,G,_,z]),ee=ve__default.createElement(hr,{disabled:o.filter(X=>!X.disabled).length===0||i,checked:K==="all",indeterminate:K==="part",className:`${t}-checkbox`,onChange:()=>{P?.(G.filter(X=>!X.disabled).map(({key:X})=>X),K!=="all");}}),j=(X,re)=>{if(x)return typeof x=="function"?x({selectedCount:X,totalCount:re}):x;let ce=re>1?S:v;return ve__default.createElement(ve__default.Fragment,null,(X>0?`${X}/`:"")+re," ",ce)},Y=R&&(R.length<2?R(e):R(e,{direction:C})),J=Xi(t,{[`${t}-with-pagination`]:!!b,[`${t}-with-footer`]:!!Y}),te=Y?ve__default.createElement("div",{className:`${t}-footer`},Y):null,ue=!h&&!b&&ee,W;h?W=[b?{key:"removeCurrent",label:g,onClick(){let X=bp((D.current?.items||[]).map(re=>re.item));N?.(X);}}:null,{key:"removeAll",label:u,onClick(){N?.(bp(G));}}].filter(Boolean):W=[{key:"selectAll",label:K==="all"?m:p,onClick(){let X=bp(G);P?.(X,X.length!==n.length);}},b?{key:"selectCurrent",label:d,onClick(){let X=D.current?.items||[];P?.(bp(X.map(re=>re.item)),true);}}:null,{key:"selectInvert",label:f,onClick(){let X=bp((D.current?.items||[]).map(fe=>fe.item)),re=new Set(n),ce=new Set(re);X.forEach(fe=>{re.has(fe)?ce.delete(fe):ce.add(fe);}),P?.(Array.from(ce),"replace");}}];let H=ve__default.createElement(nl,{className:`${t}-header-dropdown`,menu:{items:W},disabled:i},DX($)?$:ve__default.createElement(oF,null));return ve__default.createElement("div",{className:J,style:l},ve__default.createElement("div",{className:`${t}-header`},y?ve__default.createElement(ve__default.Fragment,null,ue,H):null,ve__default.createElement("span",{className:`${t}-header-selected`},j(Z.length,G.length)),ve__default.createElement("span",{className:`${t}-header-title`},r)),Q,te)},ef=BX;var OX=e=>{let{disabled:t,moveToLeft:o,moveToRight:r,leftArrowText:n="",rightArrowText:i="",leftActive:a,rightActive:l,className:s,style:c,direction:p,oneWay:m}=e;return ve.createElement("div",{className:s,style:c},ve.createElement(Ge,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:p!=="rtl"?ve.createElement(C0,null):ve.createElement(y0,null)},i),!m&&ve.createElement(Ge,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:p!=="rtl"?ve.createElement(y0,null):ve.createElement(C0,null)},n))},eb=OX;var FX=e=>{let{antCls:t,componentCls:o,listHeight:r,controlHeightLG:n}=e,i=`${t}-table`,a=`${t}-input`;return {[`${o}-customize-list`]:{[`${o}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r,minWidth:0},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:n,minWidth:n}},[`${i}-pagination${i}-pagination`]:{margin:0,padding:e.paddingXS}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},gN=(e,t)=>{let{componentCls:o,colorBorder:r}=e;return {[`${o}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},zX=e=>{let{componentCls:t}=e;return {[`${t}-status-error`]:{...gN(e,e.colorError)},[`${t}-status-warning`]:{...gN(e,e.colorWarning)}}},AX=e=>{let{componentCls:t,colorBorder:o,colorSplit:r,lineWidth:n,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:s,controlItemBgActive:c,colorTextDisabled:p,colorTextSecondary:m,listHeight:d,listWidth:f,listWidthLG:u,fontSizeIcon:g,marginXS:y,paddingSM:h,lineType:b,antCls:C,iconCls:S,motionDurationSlow:v,controlItemBgHover:x,borderRadiusLG:$,colorBgContainer:R,colorText:T,controlItemBgActiveHover:P}=e,N=unit(e.calc($).sub(n).equal());return {display:"flex",flexDirection:"column",width:f,height:d,border:`${unit(n)} ${b} ${o}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:u,height:"auto"},"&-search":{[`${S}-search`]:{color:p}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${unit(e.calc(l).sub(n).equal())} ${unit(h)} ${unit(l)}`,color:T,background:R,borderBottom:`${unit(n)} ${b} ${r}`,borderRadius:`${unit($)} ${unit($)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":{...qe,flex:"auto",textAlign:"end"},"&-dropdown":{...Oo(),fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}}},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:h}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${N} ${N}`,"&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${unit(s)} ${unit(h)}`,transition:`all ${v}`,"> *:not(:last-child)":{marginInlineEnd:y},"> *":{flex:"none"},"&-text":{...qe,flex:"auto"},"&-remove":{...Ri(e),color:o,"&:hover, &:focus":{color:m}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:x,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:P}},"&-checked":{backgroundColor:c},"&-disabled":{color:p,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${unit(n)} ${b} ${r}`,[`${C}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:p,textAlign:"center"},"&-footer":{borderTop:`${unit(n)} ${b} ${r}`},"&-checkbox":{lineHeight:1}}},LX=e=>{let{antCls:t,iconCls:o,componentCls:r,marginXS:n,marginXXS:i,fontSizeIcon:a,colorBgContainerDisabled:l}=e;return {[r]:{...ae(e),position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:l}},[`${r}-list`]:AX(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${unit(n)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${o}`]:{fontSize:a}}}}},HX=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},WX=e=>{let{fontSize:t,lineHeight:o,controlHeight:r,controlHeightLG:n,lineWidth:i}=e,a=Math.round(t*o);return {listWidth:180,listHeight:200,listWidthLG:250,headerHeight:n,itemHeight:r,itemPaddingBlock:(r-a)/2,transferHeaderVerticalPadding:Math.ceil((n-i-a)/2)}},yN=oe("Transfer",e=>{let t=mergeToken(e);return [LX(t),FX(t),zX(t),HX(t)]},WX);var tf=e=>{let{dataSource:t,targetKeys:o=[],selectedKeys:r,selectAllLabels:n=[],operations:i=[],style:a={},listStyle:l={},locale:s={},titles:c,disabled:p,showSearch:m=false,operationStyle:d,showSelectAll:f,oneWay:u,pagination:g,status:y,prefixCls:h,className:b,rootClassName:C,selectionsIcon:S,filterOption:v,render:x,footer:$,children:R,rowKey:T,onScroll:P,onChange:N,onSearch:M,onSelectChange:E}=e,{getPrefixCls:I,renderEmpty:w,direction:B,transfer:k}=useContext(O),D=I("transfer",h),[F,A,L]=yN(D),[q,V,z]=aN(t,T,o),[G,_,Z,K]=Jh(V,z,r),[Q,ee]=Us(Ie=>Ie.key),[j,Y]=Us(Ie=>Ie.key),J=useCallback((Ie,Ee)=>{if(Ie==="left"){let Je=typeof Ee=="function"?Ee(G||[]):Ee;Z(Je);}else {let Je=typeof Ee=="function"?Ee(_||[]):Ee;K(Je);}},[G,_]),te=(Ie,Ee)=>{(Ie==="left"?ee:Y)(Ee);},ue=useCallback((Ie,Ee)=>{Ie==="left"?E?.(Ee,_):E?.(G,Ee);},[G,_]),W=Ie=>c??Ie.titles??[],H=Ie=>{P?.("left",Ie);},X=Ie=>{P?.("right",Ie);},re=Ie=>{let Ee=Ie==="right"?G:_,Je=iN(q),wt=Ee.filter(Fe=>!Je.has(Fe)),Nt=vl(wt),To=Ie==="right"?wt.concat(o):o.filter(Fe=>!Nt.has(Fe)),nr=Ie==="right"?"left":"right";J(nr,[]),ue(nr,[]),N?.(To,Ie,wt);},ce=()=>{re("left"),te("left",null);},fe=()=>{re("right"),te("right",null);},Pe=(Ie,Ee,Je)=>{J(Ie,wt=>{let Nt=[];if(Je==="replace")Nt=Ee;else if(Je)Nt=Array.from(new Set([...wt,...Ee]));else {let To=vl(Ee);Nt=wt.filter(nr=>!To.has(nr));}return ue(Ie,Nt),Nt}),te(Ie,null);},we=(Ie,Ee)=>{Pe("left",Ie,Ee);},ye=(Ie,Ee)=>{Pe("right",Ie,Ee);},ge=Ie=>M?.("left",Ie.target.value),xe=Ie=>M?.("right",Ie.target.value),Te=()=>M?.("left",""),Se=()=>M?.("right",""),de=(Ie,Ee,Je,wt,Nt)=>{Ee.has(Je)&&(Ee.delete(Je),te(Ie,null)),wt&&(Ee.add(Je),te(Ie,Nt));},U=(Ie,Ee,Je,wt)=>{(Ie==="left"?Q:j)(wt,Ee,Je);},pe=(Ie,Ee,Je,wt)=>{let Nt=Ie==="left",To=[...Nt?G:_],nr=new Set(To),Fe=[...Nt?V:z].filter(ut=>!ut?.disabled),et=Fe.findIndex(ut=>ut.key===Ee);wt&&To.length>0?U(Ie,Fe,nr,et):de(Ie,nr,Ee,Je,et);let Ft=Array.from(nr);ue(Ie,Ft),e.selectedKeys||J(Ie,Ft);},se=(Ie,Ee,Je)=>{pe("left",Ie,Ee,Je?.shiftKey);},he=(Ie,Ee,Je)=>{pe("right",Ie,Ee,Je?.shiftKey);},le=Ie=>{J("right",[]),N?.(o.filter(Ee=>!Ie.includes(Ee)),"left",[...Ie]);},ie=Ie=>typeof l=="function"?l({direction:Ie}):l||{},me=useContext(Le),{hasFeedback:Ce,status:be}=me,_e=Ie=>({...Ie,notFoundContent:w?.("Transfer")||ve__default.createElement(Po,{componentName:"Transfer"}),...s}),Ut=Et(be,y),Ke=!R&&g,tt=z.filter(Ie=>_.includes(Ie.key)&&!Ie.disabled).length>0,ko=V.filter(Ie=>G.includes(Ie.key)&&!Ie.disabled).length>0,Do=Xi(D,{[`${D}-disabled`]:p,[`${D}-customize-list`]:!!R,[`${D}-rtl`]:B==="rtl"},xt(D,Ut,Ce),k?.className,b,C,A,L),[wr]=Ae("Transfer",ct.Transfer),Bo=_e(wr),[vi,It]=W(Bo),dn=S??k?.selectionsIcon;return F(ve__default.createElement("div",{className:Do,style:{...k?.style,...a}},ve__default.createElement(ef,{prefixCls:`${D}-list`,titleText:vi,dataSource:V,filterOption:v,style:ie("left"),checkedKeys:G,handleFilter:ge,handleClear:Te,onItemSelect:se,onItemSelectAll:we,render:x,showSearch:m,renderList:R,footer:$,onScroll:H,disabled:p,direction:B==="rtl"?"right":"left",showSelectAll:f,selectAllLabel:n[0],pagination:Ke,selectionsIcon:dn,...Bo}),ve__default.createElement(eb,{className:`${D}-operation`,rightActive:ko,rightArrowText:i[0],moveToRight:fe,leftActive:tt,leftArrowText:i[1],moveToLeft:ce,style:d,disabled:p,direction:B,oneWay:u}),ve__default.createElement(ef,{prefixCls:`${D}-list`,titleText:It,dataSource:z,filterOption:v,style:ie("right"),checkedKeys:_,handleFilter:xe,handleClear:Se,onItemSelect:he,onItemSelectAll:ye,onItemRemove:le,render:x,showSearch:m,renderList:R,footer:$,onScroll:X,disabled:p,direction:B==="rtl"?"left":"right",showSelectAll:f,selectAllLabel:n[1],showRemove:u,pagination:Ke,selectionsIcon:dn,...Bo})))};tf.List=ef;tf.Search=Ju;tf.Operation=eb;var tb=tf;var VX=e=>{let{componentCls:t,treePrefixCls:o,colorBgElevated:r}=e,n=`.${o}`;return [{[`${t}-dropdown`]:[{padding:`${unit(e.paddingXS)} ${unit(e.calc(e.paddingXS).div(2).equal())}`},Dh(o,mergeToken(e,{colorBgContainer:r})),{[n]:{borderRadius:0,[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-treenode`]:{[`${n}-node-content-wrapper`]:{flex:"auto"}}}}},Za(`${o}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${n}-switcher${n}-switcher_close`]:{[`${n}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function ob(e,t,o){return oe("TreeSelect",r=>{let n=mergeToken(r,{treePrefixCls:t});return [VX(n)]},Bh)(e,o)}var KX=(e,t)=>{let{prefixCls:o,size:r,disabled:n,bordered:i=true,className:a,rootClassName:l,treeCheckable:s,multiple:c,listHeight:p=256,listItemHeight:m,placement:d,notFoundContent:f,switcherIcon:u,treeLine:g,getPopupContainer:y,popupClassName:h,dropdownClassName:b,treeIcon:C=false,transitionName:S,choiceTransitionName:v="",status:x,treeExpandAction:$,builtinPlacements:R,dropdownMatchSelectWidth:T,popupMatchSelectWidth:P,allowClear:N,variant:M,dropdownStyle:E,tagRender:I,...w}=e,{getPopupContainer:B,getPrefixCls:k,renderEmpty:D,direction:F,virtual:A,popupMatchSelectWidth:L,popupOverflow:q}=ve.useContext(O),[,V]=De(),z=m??V?.controlHeightSM+V?.paddingXXS,G=k(),_=k("select",o),Z=k("select-tree",o),K=k("tree-select",o),{compactSize:Q,compactItemClassnames:ee}=Mt(_,F),j=$e(_),Y=$e(K),[J,te,ue]=us(_,j),[W]=ob(K,Z,Y),[H,X]=Vt("treeSelect",M,i),re=Xi(h||b,`${K}-dropdown`,{[`${K}-dropdown-rtl`]:F==="rtl"},l,ue,j,Y,te),ce=!!(s||c),fe=Fa(e.suffixIcon,e.showArrow),Pe=P??T??L,{status:we,hasFeedback:ye,isFormItemInput:ge,feedbackIcon:xe}=ve.useContext(Le),Te=Et(we,x),{suffixIcon:Se,removeIcon:de,clearIcon:U}=Zn({...w,multiple:ce,showSuffixIcon:fe,hasFeedback:ye,feedbackIcon:xe,prefixCls:_,componentName:"TreeSelect"}),pe=N===true?{clearIcon:U}:N,se;f!==void 0?se=f:se=D?.("Select")||ve.createElement(Po,{componentName:"Select"});let he=vv(w,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),le=ve.useMemo(()=>d!==void 0?d:F==="rtl"?"bottomRight":"bottomLeft",[d,F]),ie=ke(tt=>r??Q??tt),me=ve.useContext(We),Ce=n??me,be=Xi(!o&&K,{[`${_}-lg`]:ie==="large",[`${_}-sm`]:ie==="small",[`${_}-rtl`]:F==="rtl",[`${_}-${H}`]:X,[`${_}-in-form-item`]:ge},xt(_,Te,ye),ee,a,l,ue,j,Y,te),_e=tt=>ve.createElement(Du,{prefixCls:Z,switcherIcon:u,treeNodeProps:tt,showLine:g}),[Ut]=dt("SelectLike",E?.zIndex),Ke=ve.createElement(jX,{virtual:A,disabled:Ce,...he,dropdownMatchSelectWidth:Pe,builtinPlacements:ms(R,q),ref:t,prefixCls:_,className:be,listHeight:p,listItemHeight:z,treeCheckable:s&&ve.createElement("span",{className:`${_}-tree-checkbox-inner`}),treeLine:!!g,suffixIcon:Se,multiple:ce,placement:le,removeIcon:de,allowClear:pe,switcherIcon:_e,showTreeIcon:C,notFoundContent:se,getPopupContainer:y||B,treeMotion:null,dropdownClassName:re,dropdownStyle:{...E,zIndex:Ut},choiceTransitionName:it(G,"",v),transitionName:it(G,"slide-up",S),treeExpandAction:$,tagRender:ce?I:void 0});return J(W(Ke))},YX=ve.forwardRef(KX),Tl=YX,ZX=Xt(Tl,"dropdownAlign",e=>vv(e,["visible"]));Tl.TreeNode=TreeNode$1;Tl.SHOW_ALL=SHOW_ALL;Tl.SHOW_PARENT=SHOW_PARENT;Tl.SHOW_CHILD=SHOW_CHILD;Tl._InternalPanelDoNotUseOrYouWillBeFired=ZX;var rb=Tl;var eK=(e,t,o,r)=>{let{titleMarginBottom:n,fontWeightStrong:i}=r;return {marginBottom:n,color:o,fontWeight:i,fontSize:e,lineHeight:t}},vN=e=>{let t=[1,2,3,4,5],o={};return t.forEach(r=>{o[`
|
|
320
320
|
h${r}&,
|
|
321
321
|
div&-h${r},
|
|
322
322
|
div&-h${r} > textarea,
|
|
323
323
|
h${r}
|
|
324
|
-
`]=
|
|
324
|
+
`]=eK(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e);}),o},TN=e=>{let{componentCls:t}=e;return {"a&, a":{...Ri(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},$N=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),PN=e=>{let{componentCls:t,paddingSM:o}=e,r=o;return {"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${unit(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},RN=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),IN=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}});var tK=e=>{let{componentCls:t,titleMarginTop:o}=e;return {[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"},...vN(e),[`
|
|
325
325
|
& + h1${t},
|
|
326
326
|
& + h2${t},
|
|
327
327
|
& + h3${t},
|
|
328
328
|
& + h4${t},
|
|
329
329
|
& + h5${t}
|
|
330
|
-
`]:{marginTop:o},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:o}}
|
|
330
|
+
`]:{marginTop:o},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:o}},...$N(e),...TN(e),[`
|
|
331
331
|
${t}-expand,
|
|
332
332
|
${t}-collapse,
|
|
333
333
|
${t}-edit,
|
|
334
334
|
${t}-copy
|
|
335
|
-
`]:{...pi(e),marginInlineStart:e.marginXXS},...fw(e),...gw(e),...yw(),"&-rtl":{direction:"rtl"}}}},iq=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),xu=te("Typography",e=>[nq(e)],iq);var sq=e=>{let{prefixCls:t,"aria-label":o,className:r,style:n,direction:i,maxLength:a,autoSize:l=true,value:s,onSave:c,onCancel:p,onEnd:d,component:m,enterIcon:f=ue.createElement(aq,null)}=e,u=ue.useRef(null),g=ue.useRef(false),y=ue.useRef(null),[S,h]=ue.useState(s);ue.useEffect(()=>{h(s);},[s]),ue.useEffect(()=>{if(u.current?.resizableTextArea){let{textArea:w}=u.current.resizableTextArea;w.focus();let{length:N}=w.value;w.setSelectionRange(N,N);}},[]);let C=({target:w})=>{h(w.value.replace(/[\n\r]/g,""));},b=()=>{g.current=true;},v=()=>{g.current=false;},x=({keyCode:w})=>{g.current||(y.current=w);},T=()=>{c(S.trim());},$=({keyCode:w,ctrlKey:N,altKey:A,metaKey:k,shiftKey:D})=>{y.current!==w||g.current||N||A||k||D||(w===Cw.ENTER?(T(),d?.()):w===Cw.ESC&&p());},R=()=>{T();},[P,I,M]=xu(t),E=ki(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${m}`]:!!m},r,I,M);return P(ue.createElement("div",{className:E,style:n},ue.createElement(fm,{ref:u,maxLength:a,value:S,onChange:C,onKeyDown:x,onKeyUp:$,onCompositionStart:b,onCompositionEnd:v,onBlur:R,"aria-label":o,rows:1,autoSize:l}),f!==null?Pe(f,{className:`${t}-edit-content-confirm`}):null))},hw=sq;var dq=({copyConfig:e,children:t})=>{let[o,r]=ue.useState(false),[n,i]=ue.useState(false),a=ue.useRef(null),l=()=>{a.current&&clearTimeout(a.current);},s={};e.format&&(s.format=e.format),ue.useEffect(()=>l,[]);let c=Du(async p=>{p?.preventDefault(),p?.stopPropagation(),i(true);try{let d=typeof e.text=="function"?await e.text():e.text;cq(d||Yn(t,!0).join("")||"",s),i(!1),r(!0),l(),a.current=setTimeout(()=>{r(!1);},3e3),e.onCopy?.(p);}catch(d){throw i(false),d}});return {copied:o,copyLoading:n,onClick:c}},Sw=dq;function Kc(e,t){return ue.useMemo(()=>{let o=!!e;return [o,{...t,...o&&typeof e=="object"?e:null}]},[e])}var fq=e=>{let t=useRef(void 0);return useEffect(()=>{t.current=e;}),t.current},xw=fq;var Cq=(e,t,o)=>useMemo(()=>e===true?{title:t??o}:isValidElement(e)?{title:e}:typeof e=="object"?{title:t??o,...e}:{title:e},[e,t,o]),Tw=Cq;var bq=ue.forwardRef((e,t)=>{let{prefixCls:o,component:r="article",className:n,rootClassName:i,setContentRef:a,children:l,direction:s,style:c,...p}=e,{getPrefixCls:d,direction:m,typography:f}=ue.useContext(B),u=s??m,g=a?composeRef(t,a):t,y=d("typography",o),[S,h,C]=xu(y),b=ki(y,f?.className,{[`${y}-rtl`]:u==="rtl"},n,i,h,C),v={...f?.style,...c};return S(ue.createElement(r,{className:b,style:v,ref:g,...p},l))}),Tu=bq;function dh(e){return e===false?[false,false]:Array.isArray(e)?e:[e]}function vu(e,t,o){return e===true||e===void 0?t:e||o&&t}function vw(e){let t=document.createElement("em");e.appendChild(t);let o=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),o.left>r.left||r.right>o.right||o.top>r.top||r.bottom>o.bottom}var Yc=e=>["string","number"].includes(typeof e);var $q=({prefixCls:e,copied:t,locale:o,iconOnly:r,tooltips:n,icon:i,tabIndex:a,onCopy:l,loading:s})=>{let c=dh(n),p=dh(i),{copied:d,copy:m}=o??{},f=t?d:m,u=vu(c[t?1:0],f),g=typeof u=="string"?u:f;return ue.createElement(nt,{title:u},ue.createElement("button",{type:"button",className:ki(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:l,"aria-label":g,tabIndex:a},t?vu(p[1],ue.createElement(C3,null),true):vu(p[0],s?ue.createElement(Xw,null):ue.createElement(Tq,null),true)))},Pw=$q;var Pu=ue.forwardRef(({style:e,children:t},o)=>{let r=ue.useRef(null);return ue.useImperativeHandle(o,()=>({isExceed:()=>{let n=r.current;return n.scrollHeight>n.clientHeight},getHeight:()=>r.current.clientHeight})),ue.createElement("span",{"aria-hidden":true,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),Iq=e=>e.reduce((t,o)=>t+(Yc(o)?String(o).length:1),0);function $w(e,t){let o=0,r=[];for(let n=0;n<e.length;n+=1){if(o===t)return r;let i=e[n],l=Yc(i)?String(i).length:1,s=o+l;if(s>t){let c=t-o;return r.push(String(i).slice(0,c)),r}r.push(i),o=s;}return e}var uh=0,fh=1,gh=2,yh=3,Rw=4,$u={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function Ch(e){let{enableMeasure:t,width:o,text:r,children:n,rows:i,expanded:a,miscDeps:l,onEllipsis:s}=e,c=ue.useMemo(()=>kv(r),[r]),p=ue.useMemo(()=>Iq(c),[r]),d=ue.useMemo(()=>n(c,false),[r]),[m,f]=ue.useState(null),u=ue.useRef(null),g=ue.useRef(null),y=ue.useRef(null),S=ue.useRef(null),h=ue.useRef(null),[C,b]=ue.useState(false),[v,x]=ue.useState(uh),[T,$]=ue.useState(0),[R,P]=ue.useState(null);mh(()=>{x(t&&o&&p?fh:uh);},[o,r,i,t,c]),mh(()=>{if(v===fh){x(gh);let w=g.current&&getComputedStyle(g.current).whiteSpace;P(w);}else if(v===gh){let w=!!y.current?.isExceed();x(w?yh:Rw),f(w?[0,p]:null),b(w);let N=y.current?.getHeight()||0,A=i===1?0:S.current?.getHeight()||0,k=h.current?.getHeight()||0,D=Math.max(N,A+k);$(D+1),s(w);}},[v]);let I=m?Math.ceil((m[0]+m[1])/2):0;mh(()=>{let[w,N]=m||[0,0];if(w!==N){let k=(u.current?.getHeight()||0)>T,D=I;N-w===1&&(D=k?w:N),f(k?[w,D]:[D,N]);}},[m,I]);let M=ue.useMemo(()=>{if(!t)return n(c,false);if(v!==yh||!m||m[0]!==m[1]){let w=n(c,false);return [Rw,uh].includes(v)?w:ue.createElement("span",{style:{...$u,WebkitLineClamp:i}},w)}return n(a?c:$w(c,m[0]),C)},[a,v,m,c,...l]),E={width:o,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return ue.createElement(ue.Fragment,null,M,v===gh&&ue.createElement(ue.Fragment,null,ue.createElement(Pu,{style:{...E,...$u,WebkitLineClamp:i},ref:y},d),ue.createElement(Pu,{style:{...E,...$u,WebkitLineClamp:i-1},ref:S},d),ue.createElement(Pu,{style:{...E,...$u,WebkitLineClamp:1},ref:h},n([],true))),v===yh&&m&&m[0]!==m[1]&&ue.createElement(Pu,{style:{...E,top:400},ref:u},n($w(c,I),true)),v===fh&&ue.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}var wq=({enableEllipsis:e,isEllipsis:t,children:o,tooltipProps:r})=>!r?.title||!e?o:ue.createElement(nt,{open:t?void 0:false,...r},o),ww=wq;function Aq({mark:e,code:t,underline:o,delete:r,strong:n,keyboard:i,italic:a},l){let s=l;function c(p,d){d&&(s=ue.createElement(p,{},s));}return c("strong",n),c("u",o),c("del",r),c("code",t),c("mark",e),c("kbd",i),c("i",a),s}var Fq="...",Oq=ue.forwardRef((e,t)=>{let{prefixCls:o,className:r,style:n,type:i,disabled:a,children:l,ellipsis:s,editable:c,copyable:p,component:d,title:m,...f}=e,{getPrefixCls:u,direction:g}=ue.useContext(B),[y]=Ee("Text"),S=ue.useRef(null),h=ue.useRef(null),C=u("typography",o),b=fx(f,["mark","code","delete","underline","strong","keyboard","italic"]),[v,x]=Kc(c),[T,$]=e0(false,{value:x.editing}),{triggerType:R=["icon"]}=x,P=le=>{le&&x.onStart?.(),$(le);},I=xw(T);mh(()=>{!T&&I&&h.current?.focus();},[T]);let M=le=>{le?.preventDefault(),P(true);},E=le=>{x.onChange?.(le),P(false);},w=()=>{x.onCancel?.(),P(false);},[N,A]=Kc(p),{copied:k,copyLoading:D,onClick:F}=Sw({copyConfig:A,children:l}),[O,L]=ue.useState(false),[_,H]=ue.useState(false),[z,G]=ue.useState(false),[W,q]=ue.useState(false),[j,K]=ue.useState(true),[Q,V]=Kc(s,{expandable:false,symbol:le=>le?y?.collapse:y?.expand}),[U,Y]=e0(V.defaultExpanded||false,{value:V.expanded}),J=Q&&(!U||V.expandable==="collapsible"),{rows:ie=1}=V,ee=ue.useMemo(()=>J&&(V.suffix!==void 0||V.onEllipsis||V.expandable||v||N),[J,V,v,N]);mh(()=>{Q&&!ee&&(L(isStyleSupport("webkitLineClamp")),H(isStyleSupport("textOverflow")));},[ee,Q]);let[X,Z]=ue.useState(J),re=ue.useMemo(()=>ee?false:ie===1?_:O,[ee,_,O]);mh(()=>{Z(re&&J);},[re,J]);let ae=J&&(X?W:z),se=J&&ie===1&&X,Ce=J&&ie>1&&X,$e=(le,ce)=>{Y(ce.expanded),V.onExpand?.(le,ce);},[Ge,xe]=ue.useState(0),qe=({offsetWidth:le})=>{xe(le);},lt=le=>{G(le),z!==le&&V.onEllipsis?.(le);};ue.useEffect(()=>{let le=S.current;if(Q&&X&&le){let ce=vw(le);W!==ce&&q(ce);}},[Q,X,l,Ce,j,Ge]),ue.useEffect(()=>{let le=S.current;if(typeof IntersectionObserver>"u"||!le||!X||!J)return;let ce=new IntersectionObserver(()=>{K(!!le.offsetParent);});return ce.observe(le),()=>{ce.disconnect();}},[X,J]);let Ye=Tw(V.tooltip,x.text,l),me=ue.useMemo(()=>{if(!(!Q||X))return [x.text,l,m,Ye.title].find(Yc)},[Q,X,m,Ye.title,ae]);if(T)return ue.createElement(hw,{value:x.text??(typeof l=="string"?l:""),onSave:E,onCancel:w,onEnd:x.onEnd,prefixCls:C,className:r,style:n,direction:g,component:d,maxLength:x.maxLength,autoSize:x.autoSize,enterIcon:x.enterIcon});let Re=()=>{let{expandable:le,symbol:ce}=V;return le?ue.createElement("button",{type:"button",key:"expand",className:`${C}-${U?"collapse":"expand"}`,onClick:pe=>$e(pe,{expanded:!U}),"aria-label":U?y.collapse:y?.expand},typeof ce=="function"?ce(U):ce):null},Ne=()=>{if(!v)return;let{icon:le,tooltip:ce,tabIndex:pe}=x,he=kv(ce)[0]||y?.edit,it=typeof he=="string"?he:"";return R.includes("icon")?ue.createElement(nt,{key:"edit",title:ce===false?"":he},ue.createElement("button",{type:"button",ref:h,className:`${C}-edit`,onClick:M,"aria-label":it,tabIndex:pe},le||ue.createElement(Nq,{role:"button"}))):null},Me=()=>N?ue.createElement(Pw,{key:"copy",...A,prefixCls:C,copied:k,locale:y,onCopy:F,loading:D,iconOnly:l==null}):null,De=le=>[le&&Re(),Ne(),Me()],fe=le=>[le&&!U&&ue.createElement("span",{"aria-hidden":true,key:"ellipsis"},Fq),V.suffix,De(le)];return ue.createElement(XS,{onResize:qe,disabled:!J},le=>ue.createElement(ww,{tooltipProps:Ye,enableEllipsis:J,isEllipsis:ae},ue.createElement(Tu,{className:ki({[`${C}-${i}`]:i,[`${C}-disabled`]:a,[`${C}-ellipsis`]:Q,[`${C}-ellipsis-single-line`]:se,[`${C}-ellipsis-multiple-line`]:Ce},r),prefixCls:o,style:{...n,WebkitLineClamp:Ce?ie:void 0},component:d,ref:composeRef(le,S,t),direction:g,onClick:R.includes("text")?M:void 0,"aria-label":me?.toString(),title:m,...b},ue.createElement(Ch,{enableMeasure:J&&!X,text:l,rows:ie,width:Ge,onEllipsis:lt,expanded:U,miscDeps:[k,U,D,v,N,y]},(ce,pe)=>Aq(e,ue.createElement(ue.Fragment,null,ce.length>0&&pe&&!U&&me?ue.createElement("span",{key:"show-content","aria-hidden":true},ce):ce,fe(pe)))))))}),oa=Oq;var zq=ue.forwardRef(({ellipsis:e,rel:t,...o},r)=>{let n={...o,rel:t===void 0&&o.target==="_blank"?"noopener noreferrer":t};return delete n.navigate,ue.createElement(oa,{...n,ref:r,ellipsis:!!e,component:"a"})}),Mw=zq;var Lq=ue.forwardRef((e,t)=>ue.createElement(oa,{ref:t,...e,component:"div"})),Ew=Lq;var Wq=({ellipsis:e,...t},o)=>{let r=ue.useMemo(()=>e&&typeof e=="object"?fx(e,["expandable","rows"]):e,[e]);return ue.createElement(oa,{ref:o,...t,ellipsis:r,component:"span"})},kw=ue.forwardRef(Wq);var Gq=[1,2,3,4,5],Vq=ue.forwardRef((e,t)=>{let{level:o=1,...r}=e,n=Gq.includes(o)?`h${o}`:"h1";return ue.createElement(oa,{ref:t,...r,component:n})}),Bw=Vq;var Zc=Tu;Zc.Text=kw;Zc.Link=Mw;Zc.Title=Bw;Zc.Paragraph=Ew;var _q=Zc;var jq=e=>{let{componentCls:t,iconCls:o}=e;return {[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${unit(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
335
|
+
`]:{...Ri(e),marginInlineStart:e.marginXXS},...PN(e),...RN(e),...IN(),"&-rtl":{direction:"rtl"}}}},oK=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),of=oe("Typography",e=>[tK(e)],oK);var iK=e=>{let{prefixCls:t,"aria-label":o,className:r,style:n,direction:i,maxLength:a,autoSize:l=true,value:s,onSave:c,onCancel:p,onEnd:m,component:d,enterIcon:f=ve.createElement(rK,null)}=e,u=ve.useRef(null),g=ve.useRef(false),y=ve.useRef(null),[h,b]=ve.useState(s);ve.useEffect(()=>{b(s);},[s]),ve.useEffect(()=>{if(u.current?.resizableTextArea){let{textArea:I}=u.current.resizableTextArea;I.focus();let{length:w}=I.value;I.setSelectionRange(w,w);}},[]);let C=({target:I})=>{b(I.value.replace(/[\n\r]/g,""));},S=()=>{g.current=true;},v=()=>{g.current=false;},x=({keyCode:I})=>{g.current||(y.current=I);},$=()=>{c(h.trim());},R=({keyCode:I,ctrlKey:w,altKey:B,metaKey:k,shiftKey:D})=>{y.current!==I||g.current||w||B||k||D||(I===wN.ENTER?($(),m?.()):I===wN.ESC&&p());},T=()=>{$();},[P,N,M]=of(t),E=Xi(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${d}`]:!!d},r,N,M);return P(ve.createElement("div",{className:E,style:n},ve.createElement(Xm,{ref:u,maxLength:a,value:h,onChange:C,onKeyDown:x,onKeyUp:R,onCompositionStart:S,onCompositionEnd:v,onBlur:T,"aria-label":o,rows:1,autoSize:l}),f!==null?Oe(f,{className:`${t}-edit-content-confirm`}):null))},NN=iK;var sK=({copyConfig:e,children:t})=>{let[o,r]=ve.useState(false),[n,i]=ve.useState(false),a=ve.useRef(null),l=()=>{a.current&&clearTimeout(a.current);},s={};e.format&&(s.format=e.format),ve.useEffect(()=>l,[]);let c=yf(async p=>{p?.preventDefault(),p?.stopPropagation(),i(true);try{let m=typeof e.text=="function"?await e.text():e.text;aK(m||mi(t,!0).join("")||"",s),i(!1),r(!0),l(),a.current=setTimeout(()=>{r(!1);},3e3),e.onCopy?.(p);}catch(m){throw i(false),m}});return {copied:o,copyLoading:n,onClick:c}},MN=sK;function xp(e,t){return ve.useMemo(()=>{let o=!!e;return [o,{...t,...o&&typeof e=="object"?e:null}]},[e])}var dK=e=>{let t=useRef(void 0);return useEffect(()=>{t.current=e;}),t.current},kN=dK;var fK=(e,t,o)=>useMemo(()=>e===true?{title:t??o}:isValidElement(e)?{title:e}:typeof e=="object"?{title:t??o,...e}:{title:e},[e,t,o]),DN=fK;var CK=ve.forwardRef((e,t)=>{let{prefixCls:o,component:r="article",className:n,rootClassName:i,setContentRef:a,children:l,direction:s,style:c,...p}=e,{getPrefixCls:m,direction:d,typography:f}=ve.useContext(O),u=s??d,g=a?composeRef(t,a):t,y=m("typography",o),[h,b,C]=of(y),S=Xi(y,f?.className,{[`${y}-rtl`]:u==="rtl"},n,i,b,C),v={...f?.style,...c};return h(ve.createElement(r,{className:S,style:v,ref:g,...p},l))}),rf=CK;function nb(e){return e===false?[false,false]:Array.isArray(e)?e:[e]}function nf(e,t,o){return e===true||e===void 0?t:e||o&&t}function BN(e){let t=document.createElement("em");e.appendChild(t);let o=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),o.left>r.left||r.right>o.right||o.top>r.top||r.bottom>o.bottom}var vp=e=>["string","number"].includes(typeof e);var vK=({prefixCls:e,copied:t,locale:o,iconOnly:r,tooltips:n,icon:i,tabIndex:a,onCopy:l,loading:s})=>{let c=nb(n),p=nb(i),{copied:m,copy:d}=o??{},f=t?m:d,u=nf(c[t?1:0],f),g=typeof u=="string"?u:f;return ve.createElement(ot,{title:u},ve.createElement("button",{type:"button",className:Xi(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:l,"aria-label":g,tabIndex:a},t?nf(p[1],ve.createElement(J3,null),true):nf(p[0],s?ve.createElement(iM,null):ve.createElement(bK,null),true)))},ON=vK;var af=ve.forwardRef(({style:e,children:t},o)=>{let r=ve.useRef(null);return ve.useImperativeHandle(o,()=>({isExceed:()=>{let n=r.current;return n.scrollHeight>n.clientHeight},getHeight:()=>r.current.clientHeight})),ve.createElement("span",{"aria-hidden":true,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),$K=e=>e.reduce((t,o)=>t+(vp(o)?String(o).length:1),0);function FN(e,t){let o=0,r=[];for(let n=0;n<e.length;n+=1){if(o===t)return r;let i=e[n],l=vp(i)?String(i).length:1,s=o+l;if(s>t){let c=t-o;return r.push(String(i).slice(0,c)),r}r.push(i),o=s;}return e}var ab=0,lb=1,sb=2,cb=3,zN=4,lf={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function pb(e){let{enableMeasure:t,width:o,text:r,children:n,rows:i,expanded:a,miscDeps:l,onEllipsis:s}=e,c=ve.useMemo(()=>H0(r),[r]),p=ve.useMemo(()=>$K(c),[r]),m=ve.useMemo(()=>n(c,false),[r]),[d,f]=ve.useState(null),u=ve.useRef(null),g=ve.useRef(null),y=ve.useRef(null),h=ve.useRef(null),b=ve.useRef(null),[C,S]=ve.useState(false),[v,x]=ve.useState(ab),[$,R]=ve.useState(0),[T,P]=ve.useState(null);ib(()=>{x(t&&o&&p?lb:ab);},[o,r,i,t,c]),ib(()=>{if(v===lb){x(sb);let I=g.current&&getComputedStyle(g.current).whiteSpace;P(I);}else if(v===sb){let I=!!y.current?.isExceed();x(I?cb:zN),f(I?[0,p]:null),S(I);let w=y.current?.getHeight()||0,B=i===1?0:h.current?.getHeight()||0,k=b.current?.getHeight()||0,D=Math.max(w,B+k);R(D+1),s(I);}},[v]);let N=d?Math.ceil((d[0]+d[1])/2):0;ib(()=>{let[I,w]=d||[0,0];if(I!==w){let k=(u.current?.getHeight()||0)>$,D=N;w-I===1&&(D=k?I:w),f(k?[I,D]:[D,w]);}},[d,N]);let M=ve.useMemo(()=>{if(!t)return n(c,false);if(v!==cb||!d||d[0]!==d[1]){let I=n(c,false);return [zN,ab].includes(v)?I:ve.createElement("span",{style:{...lf,WebkitLineClamp:i}},I)}return n(a?c:FN(c,d[0]),C)},[a,v,d,c,...l]),E={width:o,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return ve.createElement(ve.Fragment,null,M,v===sb&&ve.createElement(ve.Fragment,null,ve.createElement(af,{style:{...E,...lf,WebkitLineClamp:i},ref:y},m),ve.createElement(af,{style:{...E,...lf,WebkitLineClamp:i-1},ref:h},m),ve.createElement(af,{style:{...E,...lf,WebkitLineClamp:1},ref:b},n([],true))),v===cb&&d&&d[0]!==d[1]&&ve.createElement(af,{style:{...E,top:400},ref:u},n(FN(c,N),true)),v===lb&&ve.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}var PK=({enableEllipsis:e,isEllipsis:t,children:o,tooltipProps:r})=>!r?.title||!e?o:ve.createElement(ot,{open:t?void 0:false,...r},o),LN=PK;function kK({mark:e,code:t,underline:o,delete:r,strong:n,keyboard:i,italic:a},l){let s=l;function c(p,m){m&&(s=ve.createElement(p,{},s));}return c("strong",n),c("u",o),c("del",r),c("code",t),c("mark",e),c("kbd",i),c("i",a),s}var DK="...",BK=ve.forwardRef((e,t)=>{let{prefixCls:o,className:r,style:n,type:i,disabled:a,children:l,ellipsis:s,editable:c,copyable:p,component:m,title:d,...f}=e,{getPrefixCls:u,direction:g}=ve.useContext(O),[y]=Ae("Text"),h=ve.useRef(null),b=ve.useRef(null),C=u("typography",o),S=vv(f,["mark","code","delete","underline","strong","keyboard","italic"]),[v,x]=xp(c),[$,R]=s$(false,{value:x.editing}),{triggerType:T=["icon"]}=x,P=ie=>{ie&&x.onStart?.(),R(ie);},N=kN($);ib(()=>{!$&&N&&b.current?.focus();},[$]);let M=ie=>{ie?.preventDefault(),P(true);},E=ie=>{x.onChange?.(ie),P(false);},I=()=>{x.onCancel?.(),P(false);},[w,B]=xp(p),{copied:k,copyLoading:D,onClick:F}=MN({copyConfig:B,children:l}),[A,L]=ve.useState(false),[q,V]=ve.useState(false),[z,G]=ve.useState(false),[_,Z]=ve.useState(false),[K,Q]=ve.useState(true),[ee,j]=xp(s,{expandable:false,symbol:ie=>ie?y?.collapse:y?.expand}),[Y,J]=s$(j.defaultExpanded||false,{value:j.expanded}),te=ee&&(!Y||j.expandable==="collapsible"),{rows:ue=1}=j,W=ve.useMemo(()=>te&&(j.suffix!==void 0||j.onEllipsis||j.expandable||v||w),[te,j,v,w]);ib(()=>{ee&&!W&&(L(isStyleSupport("webkitLineClamp")),V(isStyleSupport("textOverflow")));},[W,ee]);let[H,X]=ve.useState(te),re=ve.useMemo(()=>W?false:ue===1?q:A,[W,q,A]);ib(()=>{X(re&&te);},[re,te]);let ce=te&&(H?_:z),fe=te&&ue===1&&H,Pe=te&&ue>1&&H,we=(ie,me)=>{J(me.expanded),j.onExpand?.(ie,me);},[ye,ge]=ve.useState(0),xe=({offsetWidth:ie})=>{ge(ie);},Te=ie=>{G(ie),z!==ie&&j.onEllipsis?.(ie);};ve.useEffect(()=>{let ie=h.current;if(ee&&H&&ie){let me=BN(ie);_!==me&&Z(me);}},[ee,H,l,Pe,K,ye]),ve.useEffect(()=>{let ie=h.current;if(typeof IntersectionObserver>"u"||!ie||!H||!te)return;let me=new IntersectionObserver(()=>{Q(!!ie.offsetParent);});return me.observe(ie),()=>{me.disconnect();}},[H,te]);let Se=DN(j.tooltip,x.text,l),de=ve.useMemo(()=>{if(!(!ee||H))return [x.text,l,d,Se.title].find(vp)},[ee,H,d,Se.title,ce]);if($)return ve.createElement(NN,{value:x.text??(typeof l=="string"?l:""),onSave:E,onCancel:I,onEnd:x.onEnd,prefixCls:C,className:r,style:n,direction:g,component:m,maxLength:x.maxLength,autoSize:x.autoSize,enterIcon:x.enterIcon});let U=()=>{let{expandable:ie,symbol:me}=j;return ie?ve.createElement("button",{type:"button",key:"expand",className:`${C}-${Y?"collapse":"expand"}`,onClick:Ce=>we(Ce,{expanded:!Y}),"aria-label":Y?y.collapse:y?.expand},typeof me=="function"?me(Y):me):null},pe=()=>{if(!v)return;let{icon:ie,tooltip:me,tabIndex:Ce}=x,be=H0(me)[0]||y?.edit,_e=typeof be=="string"?be:"";return T.includes("icon")?ve.createElement(ot,{key:"edit",title:me===false?"":be},ve.createElement("button",{type:"button",ref:b,className:`${C}-edit`,onClick:M,"aria-label":_e,tabIndex:Ce},ie||ve.createElement(RK,{role:"button"}))):null},se=()=>w?ve.createElement(ON,{key:"copy",...B,prefixCls:C,copied:k,locale:y,onCopy:F,loading:D,iconOnly:l==null}):null,he=ie=>[ie&&U(),pe(),se()],le=ie=>[ie&&!Y&&ve.createElement("span",{"aria-hidden":true,key:"ellipsis"},DK),j.suffix,he(ie)];return ve.createElement(ox,{onResize:xe,disabled:!te},ie=>ve.createElement(LN,{tooltipProps:Se,enableEllipsis:te,isEllipsis:ce},ve.createElement(rf,{className:Xi({[`${C}-${i}`]:i,[`${C}-disabled`]:a,[`${C}-ellipsis`]:ee,[`${C}-ellipsis-single-line`]:fe,[`${C}-ellipsis-multiple-line`]:Pe},r),prefixCls:o,style:{...n,WebkitLineClamp:Pe?ue:void 0},component:m,ref:composeRef(ie,h,t),direction:g,onClick:T.includes("text")?M:void 0,"aria-label":de?.toString(),title:d,...S},ve.createElement(pb,{enableMeasure:te&&!H,text:l,rows:ue,width:ye,onEllipsis:Te,expanded:Y,miscDeps:[k,Y,D,v,w,y]},(me,Ce)=>kK(e,ve.createElement(ve.Fragment,null,me.length>0&&Ce&&!Y&&de?ve.createElement("span",{key:"show-content","aria-hidden":true},me):me,le(Ce)))))))}),ha=BK;var OK=ve.forwardRef(({ellipsis:e,rel:t,...o},r)=>{let n={...o,rel:t===void 0&&o.target==="_blank"?"noopener noreferrer":t};return delete n.navigate,ve.createElement(ha,{...n,ref:r,ellipsis:!!e,component:"a"})}),WN=OK;var FK=ve.forwardRef((e,t)=>ve.createElement(ha,{ref:t,...e,component:"div"})),GN=FK;var AK=({ellipsis:e,...t},o)=>{let r=ve.useMemo(()=>e&&typeof e=="object"?vv(e,["expandable","rows"]):e,[e]);return ve.createElement(ha,{ref:o,...t,ellipsis:r,component:"span"})},VN=ve.forwardRef(AK);var LK=[1,2,3,4,5],HK=ve.forwardRef((e,t)=>{let{level:o=1,...r}=e,n=LK.includes(o)?`h${o}`:"h1";return ve.createElement(ha,{ref:t,...r,component:n})}),jN=HK;var Tp=rf;Tp.Text=VN;Tp.Link=WN;Tp.Title=jN;Tp.Paragraph=GN;var WK=Tp;var GK=e=>{let{componentCls:t,iconCls:o}=e;return {[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${unit(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${unit(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
336
336
|
&:not(${t}-disabled):hover,
|
|
337
337
|
&-hover:not(${t}-disabled)
|
|
338
338
|
`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[o]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${unit(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${o},
|
|
339
339
|
p${t}-text,
|
|
340
340
|
p${t}-hint
|
|
341
|
-
`]:{color:e.colorTextDisabled}}}}}},
|
|
341
|
+
`]:{color:e.colorTextDisabled}}}}}},_N=GK;var jK=e=>{let{componentCls:t,iconCls:o,fontSize:r,lineHeight:n,calc:i}=e,a=`${t}-list-item`,l=`${a}-actions`,s=`${a}-action`;return {[`${t}-wrapper`]:{[`${t}-list`]:{...no(),lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:{...qe,padding:`0 ${unit(e.paddingXS)}`,lineHeight:n,flex:"auto",transition:`all ${e.motionDurationSlow}`},[l]:{whiteSpace:"nowrap",[s]:{opacity:0},[o]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
|
|
342
342
|
${s}:focus-visible,
|
|
343
343
|
&.picture ${s}
|
|
344
|
-
`]:{opacity:1}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${s}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${o}`]:{color:e.colorError},[l]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}}}}},
|
|
344
|
+
`]:{opacity:1}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${s}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${o}`]:{color:e.colorError},[l]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}}}}},UN=jK;var _K=e=>{let{componentCls:t}=e,o=new Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=`${t}-animate-inline`;return [{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:o},[`${n}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:Na(e)},o,r]},XN=_K;var YN=e=>{let{componentCls:t,iconCls:o,uploadThumbnailSize:r,uploadProgressOffset:n,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return {[`${t}-wrapper`]:{[`
|
|
345
345
|
${a}${a}-picture,
|
|
346
346
|
${a}${a}-picture-card,
|
|
347
347
|
${a}${a}-picture-circle
|
|
348
|
-
`]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:{...
|
|
348
|
+
`]:{[l]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:{...qe,width:r,height:r,lineHeight:unit(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[o]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}},[`${l}-progress`]:{bottom:n,width:`calc(100% - ${unit(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${o}`]:{[`svg path[fill='${blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${blue.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:n}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},ZN=e=>{let{componentCls:t,iconCls:o,fontSizeLG:r,colorTextLightSolid:n,calc:i}=e,a=`${t}-list`,l=`${a}-item`,s=e.uploadPicCardSize;return {[`
|
|
349
349
|
${t}-wrapper${t}-picture-card-wrapper,
|
|
350
350
|
${t}-wrapper${t}-picture-circle-wrapper
|
|
351
|
-
`]:{...
|
|
351
|
+
`]:{...no(),display:"block",[`${t}${t}-select`]:{width:s,height:s,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${unit(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:s,height:s,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
|
|
352
352
|
${o}-eye,
|
|
353
353
|
${o}-download,
|
|
354
354
|
${o}-delete
|
|
355
|
-
`]:{zIndex:10,width:r,margin:`0 ${unit(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:n,"&:hover":{color:n},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${o}-eye, ${o}-download, ${o}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var Kq=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},Ww=Kq;var Yq=e=>{let{componentCls:t,colorTextDisabled:o}=e;return {[`${t}-wrapper`]:{...ne(e),[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:o,cursor:"not-allowed"}}}},Zq=e=>({actionsColor:e.colorTextDescription}),Gw=te("Upload",e=>{let{fontSizeHeading3:t,fontHeight:o,lineWidth:r,controlHeightLG:n,calc:i}=e,a=mergeToken(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(o).div(2)).add(r).equal(),uploadPicCardSize:i(n).mul(2.55).equal()});return [Yq(a),Dw(a),Lw(a),Hw(a),Aw(a),Ow(a),Ww(a),zr(a)]},Zq);function Qc(e){return {...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function Jc(e,t){let o=[...t],r=o.findIndex(({uid:n})=>n===e.uid);return r===-1?o.push(e):o[r]=e,o}function Nu(e,t){let o=e.uid!==void 0?"uid":"name";return t.filter(r=>r[o]===e[o])[0]}function Vw(e,t){let o=e.uid!==void 0?"uid":"name",r=t.filter(n=>n[o]!==e[o]);return r.length===t.length?null:r}var Qq=(e="")=>{let t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return (/\.[^./\\]*$/.exec(r)||[""])[0]},_w=e=>e.indexOf("image/")===0,jw=e=>{if(e.type&&!e.thumbUrl)return _w(e.type);let t=e.thumbUrl||e.url||"",o=Qq(t);return /^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(o)?true:!(/^data:/.test(t)||o)},ra=200;function Uw(e){return new Promise(t=>{if(!e.type||!_w(e.type)){t("");return}let o=document.createElement("canvas");o.width=ra,o.height=ra,o.style.cssText=`position: fixed; left: 0; top: 0; width: ${ra}px; height: ${ra}px; z-index: 9999; display: none;`,document.body.appendChild(o);let r=o.getContext("2d"),n=new Image;if(n.onload=()=>{let{width:i,height:a}=n,l=ra,s=ra,c=0,p=0;i>a?(s=a*(ra/i),p=-(s-l)/2):(l=i*(ra/a),c=-(l-s)/2),r.drawImage(n,c,p,l,s);let d=o.toDataURL();document.body.removeChild(o),window.URL.revokeObjectURL(n.src),t(d);},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(n.src=i.result);},i.readAsDataURL(e);}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result);},i.readAsDataURL(e);}else n.src=window.URL.createObjectURL(e);})}var rX=ue.forwardRef(({prefixCls:e,className:t,style:o,locale:r,listType:n,file:i,items:a,progress:l,iconRender:s,actionIconRender:c,itemRender:p,isImgUrl:d,showPreviewIcon:m,showRemoveIcon:f,showDownloadIcon:u,previewIcon:g,removeIcon:y,downloadIcon:S,extra:h,onPreview:C,onDownload:b,onClose:v},x)=>{let{status:T}=i,[$,R]=ue.useState(T);ue.useEffect(()=>{T!=="removed"&&R(T);},[T]);let[P,I]=ue.useState(false);ue.useEffect(()=>{let Q=setTimeout(()=>{I(true);},300);return ()=>{clearTimeout(Q);}},[]);let M=s(i),E=ue.createElement("div",{className:`${e}-icon`},M);if(n==="picture"||n==="picture-card"||n==="picture-circle")if($==="uploading"||!i.thumbUrl&&!i.url){let Q=ki(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:$!=="uploading"});E=ue.createElement("div",{className:Q},M);}else {let Q=d?.(i)?ue.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):M,V=ki(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:d&&!d(i)});E=ue.createElement("a",{className:V,onClick:U=>C(i,U),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Q);}let w=ki(`${e}-list-item`,`${e}-list-item-${$}`),N=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,A=(typeof f=="function"?f(i):f)?c((typeof y=="function"?y(i):y)||ue.createElement(xU,null),()=>v(i),e,r.removeFile,true):null,k=(typeof u=="function"?u(i):u)&&$==="done"?c((typeof S=="function"?S(i):S)||ue.createElement(eX,null),()=>b(i),e,r.downloadFile):null,D=n!=="picture-card"&&n!=="picture-circle"&&ue.createElement("span",{key:"download-delete",className:ki(`${e}-list-item-actions`,{picture:n==="picture"})},k,A),F=typeof h=="function"?h(i):h,O=F&&ue.createElement("span",{className:`${e}-list-item-extra`},F),L=ki(`${e}-list-item-name`),_=i.url?ue.createElement("a",{key:"view",target:"_blank",rel:"noopener noreferrer",className:L,title:i.name,...N,href:i.url,onClick:Q=>C(i,Q)},i.name,O):ue.createElement("span",{key:"view",className:L,onClick:Q=>C(i,Q),title:i.name},i.name,O),H=(typeof m=="function"?m(i):m)&&(i.url||i.thumbUrl)?ue.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Q=>C(i,Q),title:r.previewFile},typeof g=="function"?g(i):g||ue.createElement(C6,null)):null,z=(n==="picture-card"||n==="picture-circle")&&$!=="uploading"&&ue.createElement("span",{className:`${e}-list-item-actions`},H,$==="done"&&k,A),{getPrefixCls:G}=ue.useContext(B),W=G(),q=ue.createElement("div",{className:w},E,_,D,z,P&&ue.createElement(bk,{motionName:`${W}-fade`,visible:$==="uploading",motionDeadline:2e3},({className:Q})=>{let V="percent"in i?ue.createElement(Ac,{...l,type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]}):null;return ue.createElement("div",{className:ki(`${e}-list-item-progress`,Q)},V)})),j=i.response&&typeof i.response=="string"?i.response:i.error?.statusText||i.error?.message||r.uploadError,K=$==="error"?ue.createElement(nt,{title:j,getPopupContainer:Q=>Q.parentNode},q):q;return ue.createElement("div",{className:ki(`${e}-list-item-container`,t),style:o,ref:x},p?p(K,i,a,{download:b.bind(null,i),preview:C.bind(null,i),remove:v.bind(null,i)}):K)}),qw=rX;var pX=(e,t)=>{let{listType:o="text",previewFile:r=Uw,onPreview:n,onDownload:i,onRemove:a,locale:l,iconRender:s,isImageUrl:c=jw,prefixCls:p,items:d=[],showPreviewIcon:m=true,showRemoveIcon:f=true,showDownloadIcon:u=false,removeIcon:g,previewIcon:y,downloadIcon:S,extra:h,progress:C={size:[-1,2],showInfo:false},appendAction:b,appendActionVisible:v=true,itemRender:x,disabled:T}=e,$=Ln(),[R,P]=ue.useState(false),I=["picture-card","picture-circle"].includes(o);ue.useEffect(()=>{o.startsWith("picture")&&(d||[]).forEach(H=>{!(H.originFileObj instanceof File||H.originFileObj instanceof Blob)||H.thumbUrl!==void 0||(H.thumbUrl="",r?.(H.originFileObj).then(z=>{H.thumbUrl=z||"",$();}));});},[o,d,r]),ue.useEffect(()=>{P(true);},[]);let M=(H,z)=>{if(n)return z?.preventDefault(),n(H)},E=H=>{typeof i=="function"?i(H):H.url&&window.open(H.url);},w=H=>{a?.(H);},N=H=>{if(s)return s(H,o);let z=H.status==="uploading";if(o.startsWith("picture")){let G=o==="picture"?ue.createElement(Xw,null):l.uploading,W=c?.(H)?ue.createElement(aX,null):ue.createElement(nX,null);return z?G:W}return z?ue.createElement(Xw,null):ue.createElement(iX,null)},A=(H,z,G,W,q)=>{let j={type:"text",size:"small",title:W,onClick:K=>{z(),ue.isValidElement(H)&&H.props.onClick?.(K);},className:`${G}-list-item-action`};return q&&(j.disabled=T),ue.isValidElement(H)?ue.createElement(Le,{...j,icon:Pe(H,{...H.props,onClick:()=>{}})}):ue.createElement(Le,{...j},ue.createElement("span",null,H))};ue.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:E}));let{getPrefixCls:k}=ue.useContext(B),D=k("upload",p),F=k(),O=ki(`${D}-list`,`${D}-list-${o}`),L=ue.useMemo(()=>fx(Or(F),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[F]),_={...I?{}:L,motionDeadline:2e3,motionName:`${D}-${I?"animate-inline":"animate"}`,keys:[...d.map(H=>({key:H.uid,file:H}))],motionAppear:R};return ue.createElement("div",{className:O},ue.createElement(CSSMotionList,{..._,component:false},({key:H,file:z,className:G,style:W})=>ue.createElement(qw,{key:H,locale:l,prefixCls:D,className:G,style:W,file:z,items:d,progress:C,listType:o,isImgUrl:c,showPreviewIcon:m,showRemoveIcon:f,showDownloadIcon:u,removeIcon:g,previewIcon:y,downloadIcon:S,extra:h,iconRender:N,actionIconRender:A,itemRender:x,onPreview:M,onDownload:E,onClose:w})),b&&ue.createElement(bk,{..._,visible:v,forceRender:true},({className:H,style:z})=>Pe(b,G=>({className:ki(G.className,H),style:{...z,pointerEvents:H?"none":void 0,...G.style}}))))},dX=ue.forwardRef(pX),Yw=dX;var Ms=`__LIST_IGNORE_${Date.now()}__`,uX=(e,t)=>{let{fileList:o,defaultFileList:r,onRemove:n,showUploadList:i=true,listType:a="text",onPreview:l,onDownload:s,onChange:c,onDrop:p,previewFile:d,disabled:m,locale:f,iconRender:u,isImageUrl:g,progress:y,prefixCls:S,className:h,type:C="select",children:b,style:v,itemRender:x,maxCount:T,data:$={},multiple:R=false,hasControlInside:P=true,action:I="",accept:M="",supportServerRender:E=true,rootClassName:w}=e,N=ue.useContext(Be),A=m??N,[k,D]=e0(r||[],{value:o,postState:fe=>fe??[]}),[F,O]=ue.useState("drop"),L=ue.useRef(null),_=ue.useRef(null);ue.useMemo(()=>{let fe=Date.now();(o||[]).forEach((le,ce)=>{!le.uid&&!Object.isFrozen(le)&&(le.uid=`__AUTO__${fe}_${ce}__`);});},[o]);let H=(fe,le,ce)=>{let pe=[...le],he=false;T===1?pe=pe.slice(-1):T&&(he=pe.length>T,pe=pe.slice(0,T)),flushSync(()=>{D(pe);});let it={file:fe,fileList:pe};ce&&(it.event=ce),(!he||fe.status==="removed"||pe.some(go=>go.uid===fe.uid))&&flushSync(()=>{c?.(it);});},z=async(fe,le)=>{let{beforeUpload:ce,transformFile:pe}=e,he=fe;if(ce){let it=await ce(fe,le);if(it===false)return false;if(delete fe[Ms],it===Ms)return Object.defineProperty(fe,Ms,{value:true,configurable:true}),false;typeof it=="object"&&it&&(he=it);}return pe&&(he=await pe(he)),he},G=fe=>{let le=fe.filter(he=>!he.file[Ms]);if(!le.length)return;let ce=le.map(he=>Qc(he.file)),pe=[...k];ce.forEach(he=>{pe=Jc(he,pe);}),ce.forEach((he,it)=>{let go=he;if(le[it].parsedFile)he.status="uploading";else {let{originFileObj:je}=he,Ue;try{Ue=new File([je],je.name,{type:je.type});}catch{Ue=new Blob([je],{type:je.type}),Ue.name=je.name,Ue.lastModifiedDate=new Date,Ue.lastModified=new Date().getTime();}Ue.uid=he.uid,go=Ue;}H(go,pe);});},W=(fe,le,ce)=>{try{typeof fe=="string"&&(fe=JSON.parse(fe));}catch{}if(!Nu(le,k))return;let pe=Qc(le);pe.status="done",pe.percent=100,pe.response=fe,pe.xhr=ce;let he=Jc(pe,k);H(pe,he);},q=(fe,le)=>{if(!Nu(le,k))return;let ce=Qc(le);ce.status="uploading",ce.percent=fe.percent;let pe=Jc(ce,k);H(ce,pe,fe);},j=(fe,le,ce)=>{if(!Nu(ce,k))return;let pe=Qc(ce);pe.error=fe,pe.response=le,pe.status="error";let he=Jc(pe,k);H(pe,he);},K=fe=>{let le;Promise.resolve(typeof n=="function"?n(fe):n).then(ce=>{if(ce===false)return;let pe=Vw(fe,k);pe&&(le={...fe,status:"removed"},k?.forEach(he=>{let it=le.uid!==void 0?"uid":"name";he[it]===le[it]&&!Object.isFrozen(he)&&(he.status="removed");}),L.current?.abort(le),H(le,pe));});},Q=fe=>{O(fe.type),fe.type==="drop"&&p?.(fe);};ue.useImperativeHandle(t,()=>({onBatchStart:G,onSuccess:W,onProgress:q,onError:j,fileList:k,upload:L.current,nativeElement:_.current}));let{getPrefixCls:V,direction:U,upload:Y}=ue.useContext(B),J=V("upload",S),ie={onBatchStart:G,onError:j,onProgress:q,onSuccess:W,...e,data:$,multiple:R,action:I,accept:M,supportServerRender:E,prefixCls:J,disabled:A,beforeUpload:z,onChange:void 0,hasControlInside:P};delete ie.className,delete ie.style,(!b||A)&&delete ie.id;let ee=`${J}-wrapper`,[X,Z,re]=Gw(J,ee),[ae]=Ee("Upload",tt.Upload),{showRemoveIcon:se,showPreviewIcon:Ce,showDownloadIcon:$e,removeIcon:Ge,previewIcon:xe,downloadIcon:qe,extra:lt}=typeof i=="boolean"?{}:i,Ye=typeof se>"u"?!A:se,me=(fe,le)=>i?ue.createElement(Yw,{prefixCls:J,listType:a,items:k,previewFile:d,onPreview:l,onDownload:s,onRemove:K,showRemoveIcon:Ye,showPreviewIcon:Ce,showDownloadIcon:$e,removeIcon:Ge,previewIcon:xe,downloadIcon:qe,iconRender:u,extra:lt,locale:{...ae,...f},isImageUrl:g,progress:y,appendAction:fe,appendActionVisible:le,itemRender:x,disabled:A}):fe,Re=ki(ee,h,w,Z,re,Y?.className,{[`${J}-rtl`]:U==="rtl",[`${J}-picture-card-wrapper`]:a==="picture-card",[`${J}-picture-circle-wrapper`]:a==="picture-circle"}),Ne={...Y?.style,...v};if(C==="drag"){let fe=ki(Z,J,`${J}-drag`,{[`${J}-drag-uploading`]:k.some(le=>le.status==="uploading"),[`${J}-drag-hover`]:F==="dragover",[`${J}-disabled`]:A,[`${J}-rtl`]:U==="rtl"});return X(ue.createElement("span",{className:Re,ref:_},ue.createElement("div",{className:fe,style:Ne,onDrop:Q,onDragOver:Q,onDragLeave:Q},ue.createElement(Qw,{...ie,ref:L,className:`${J}-btn`},ue.createElement("div",{className:`${J}-drag-container`},b))),me()))}let Me=ki(J,`${J}-select`,{[`${J}-disabled`]:A,[`${J}-hidden`]:!b}),De=ue.createElement("div",{className:Me},ue.createElement(Qw,{...ie,ref:L}));return X(a==="picture-card"||a==="picture-circle"?ue.createElement("span",{className:Re,ref:_},me(De,!!b)):ue.createElement("span",{className:Re,ref:_},De,me()))},fX=ue.forwardRef(uX),Mu=fX;var gX=ue.forwardRef(({style:e,height:t,hasControlInside:o=false,...r},n)=>ue.createElement(Mu,{ref:n,hasControlInside:o,...r,type:"drag",style:{...e,height:t}})),Jw=gX;var xh=Mu;xh.Dragger=Jw;xh.LIST_IGNORE=Ms;var Th=xh;var Ph=3;function vh(e,t,o=1){let r=document.createElement("canvas"),n=r.getContext("2d"),i=e*o,a=t*o;return r.setAttribute("width",`${i}px`),r.setAttribute("height",`${a}px`),n.save(),[n,r,i,a]}function $h(){function e(t,o,r,n,i,a,l,s){let[c,p,d,m]=vh(n,i,r);if(t instanceof HTMLImageElement)c.drawImage(t,0,0,d,m);else {let{color:L,fontSize:_,fontStyle:H,fontWeight:z,fontFamily:G,textAlign:W}=a,q=Number(_)*r;c.font=`${H} normal ${z} ${q}px/${i}px ${G}`,c.fillStyle=L,c.textAlign=W,c.textBaseline="top",Yn(t)?.forEach((K,Q)=>{c.fillText(K??"",d/2,Q*(q+Ph*r));});}let f=Math.PI/180*Number(o),u=Math.max(n,i),[g,y,S]=vh(u,u,r);g.translate(S/2,S/2),g.rotate(f),d>0&&m>0&&g.drawImage(p,-d/2,-m/2);function h(L,_){let H=L*Math.cos(f)-_*Math.sin(f),z=L*Math.sin(f)+_*Math.cos(f);return [H,z]}let C=0,b=0,v=0,x=0,T=d/2,$=m/2;[[0-T,0-$],[0+T,0-$],[0+T,0+$],[0-T,0+$]].forEach(([L,_])=>{let[H,z]=h(L,_);C=Math.min(C,H),b=Math.max(b,H),v=Math.min(v,z),x=Math.max(x,z);});let P=C+S/2,I=v+S/2,M=b-C,E=x-v,w=l*r,N=s*r,A=(M+w)*2,k=E+N,[D,F]=vh(A,k);function O(L=0,_=0){D.drawImage(y,P,I,M,E,L,_,M,E);}return O(),O(M+w,-E/2-N/2),O(M+w,+E/2+N/2),[F.toDataURL(),A/r,k/r]}return e}function Rh(e){let t=ue__default.useRef(false),o=ue__default.useRef(null),r=Du(e);return ()=>{t.current||(t.current=true,r(),o.current=yS(()=>{t.current=false;}));}}function hX(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function tN(e){return Object.keys(e).map(t=>`${hX(t)}: ${e[t]};`).join(" ")}function oN(){return window.devicePixelRatio||1}var rN=(e,t)=>{let o=false;return e.removedNodes.length&&(o=Array.from(e.removedNodes).some(r=>t(r))),e.type==="attributes"&&t(e.target)&&(o=true),o};var SX={visibility:"visible !important"};function Ih(e){let t=ue.useRef(new Map);return [(i,a,l)=>{if(l){if(!t.current.get(l)){let c=document.createElement("div");t.current.set(l,c);}let s=t.current.get(l);s.setAttribute("style",tN({...e,backgroundImage:`url('${i}')`,backgroundSize:`${Math.floor(a)}px`,...SX})),s.removeAttribute("class"),s.parentElement!==l&&l.append(s);}return t.current.get(l)},i=>{let a=t.current.get(i);a&&i&&i.removeChild(a),t.current.delete(i);},i=>Array.from(t.current.values()).includes(i)]}function aN(e,t){return e.size===t.size?e:t}var lN=100,sN=100,cN={position:"relative",overflow:"hidden"},vX=e=>{let{zIndex:t=9,rotate:o=-22,width:r,height:n,image:i,content:a,font:l={},style:s,className:c,rootClassName:p,gap:d=[lN,sN],offset:m,children:f,inherit:u=true}=e,g={...cN,...s},[,y]=ve(),{color:S=y.colorFill,fontSize:h=y.fontSizeLG,fontWeight:C="normal",fontStyle:b="normal",fontFamily:v="sans-serif",textAlign:x="center"}=l,[T=lN,$=sN]=d,R=T/2,P=$/2,I=m?.[0]??R,M=m?.[1]??P,E=ue__default.useMemo(()=>{let V={zIndex:t,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"},U=I-R,Y=M-P;return U>0&&(V.left=`${U}px`,V.width=`calc(100% - ${U}px)`,U=0),Y>0&&(V.top=`${Y}px`,V.height=`calc(100% - ${Y}px)`,Y=0),V.backgroundPosition=`${U}px ${Y}px`,V},[t,I,R,M,P]),[w,N]=ue__default.useState(),[A,k]=ue__default.useState(new Set),D=ue__default.useMemo(()=>[...w?[w]:[],...Array.from(A)],[w,A]),F=V=>{let U=120,Y=64;if(!i&&V.measureText){V.font=`${Number(h)}px ${v}`;let J=Yn(a),ie=J.map(ee=>{let X=V.measureText(ee);return [X.width,X.fontBoundingBoxAscent+X.fontBoundingBoxDescent]});U=Math.ceil(Math.max(...ie.map(ee=>ee[0]))),Y=Math.ceil(Math.max(...ie.map(ee=>ee[1])))*J.length+(J.length-1)*Ph;}return [r??U,n??Y]},O=$h(),[L,_]=ue__default.useState(null),z=Rh(()=>{let U=document.createElement("canvas").getContext("2d");if(U){let Y=oN(),[J,ie]=F(U),ee=X=>{let[Z,re]=O(X||"",o,Y,J,ie,{color:S,fontSize:h,fontStyle:b,fontWeight:C,fontFamily:v,textAlign:x},T,$);_([Z,re]);};if(i){let X=new Image;X.onload=()=>{ee(X);},X.onerror=()=>{ee(a);},X.crossOrigin="anonymous",X.referrerPolicy="no-referrer",X.src=i;}else ee(a);}}),[G,W,q]=Ih(E);useEffect(()=>{L&&D.forEach(V=>{G(L[0],L[1],V);});},[L,D]);let j=Du(V=>{V.forEach(U=>{if(rN(U,q))z();else if(U.target===w&&U.attributeName==="style"){let Y=Object.keys(cN);for(let J=0;J<Y.length;J+=1){let ie=Y[J],ee=g[ie],X=w.style[ie];ee&&ee!==X&&(w.style[ie]=ee);}}});});useMutateObserver(D,j),useEffect(z,[o,t,r,n,i,a,S,h,C,b,v,x,T,$,I,M]);let K=ue__default.useMemo(()=>({add:V=>{k(U=>{let Y=new Set(U);return Y.add(V),aN(U,Y)});},remove:V=>{W(V),k(U=>{let Y=new Set(U);return Y.delete(V),aN(U,Y)});}}),[]),Q=u?ue__default.createElement(Ux.Provider,{value:K},f):f;return ue__default.createElement("div",{ref:N,className:ki(c,p),style:g},Q)},PX=vX;var pN=forwardRef((e,t)=>{let{prefixCls:o,className:r,children:n,size:i,style:a={}}=e,l=ki(`${o}-panel`,{[`${o}-panel-hidden`]:i===0},r),s=i!==void 0;return ue__default.createElement("div",{ref:t,className:l,style:{...a,flexBasis:s?i:"auto",flexGrow:s?0:1}},n)}),wX=()=>null,dN=wX;function MX(e){if(e&&typeof e=="object")return e;let t=!!e;return {start:t,end:t}}function wh(e){return ue.useMemo(()=>kv(e).filter(ue.isValidElement).map(o=>{let{props:r}=o,{collapsible:n,...i}=r;return {...i,collapsible:MX(n)}}),[e])}function Nh(e,t){return ue.useMemo(()=>{let o=[];for(let r=0;r<e.length-1;r+=1){let n=e[r],i=e[r+1],a=t[r],l=t[r+1],{resizable:s=true,min:c,collapsible:p}=n,{resizable:d=true,min:m,collapsible:f}=i,u=s&&d&&(a!==0||!c)&&(l!==0||!m),g=p.end&&a>0||f.start&&l===0&&a>0,y=f.start&&l>0||p.end&&a===0&&l>0;o[r]={resizable:u,startCollapsible:!!g,endCollapsible:!!y};}return o},[t,e])}function ep(e){return Number(e.slice(0,-1))/100}function Mh(e){return typeof e=="string"&&e.endsWith("%")}function Eh(e,t){let o=e.map(u=>u.size),r=e.length,n=t||0,i=u=>u*n,[a,l]=ue__default.useState(()=>e.map(u=>u.defaultSize)),s=ue__default.useMemo(()=>{let u=[];for(let g=0;g<r;g+=1)u[g]=o[g]??a[g];return u},[r,a,o]),c=ue__default.useMemo(()=>{let u=[],g=0;for(let S=0;S<r;S+=1){let h=s[S];if(Mh(h))u[S]=ep(h);else if(h||h===0){let C=Number(h);Number.isNaN(C)||(u[S]=C/n);}else g+=1,u[S]=void 0;}let y=u.reduce((S,h)=>S+(h||0),0);if(y>1||!g){let S=1/y;u=u.map(h=>h===void 0?0:h*S);}else {let S=(1-y)/g;u=u.map(h=>h===void 0?S:h);}return u},[s,n]),p=ue__default.useMemo(()=>c.map(i),[c,n]),d=ue__default.useMemo(()=>e.map(u=>Mh(u.min)?ep(u.min):(u.min||0)/n),[e,n]),m=ue__default.useMemo(()=>e.map(u=>Mh(u.max)?ep(u.max):(u.max||n)/n),[e,n]);return [ue__default.useMemo(()=>t?p:s,[p,t]),p,c,d,m,l]}function Bh(e,t,o,r,n){let i=e.map(h=>[h.min,h.max]),a=r||0,l=h=>h*a;function s(h,C){return typeof h=="string"?l(ep(h)):h??C}let[c,p]=ue.useState([]),[d,m]=ue.useState(null),f=()=>o.map(l);return [h=>{p(f()),m({index:h,confirmed:false});},(h,C)=>{let b=null;if((!d||!d.confirmed)&&C!==0){if(C>0)b=h,m({index:h,confirmed:true});else for(let E=h;E>=0;E-=1)if(c[E]>0&&t[E].resizable){b=E,m({index:E,confirmed:true});break}}let v=b??d?.index??h,x=[...c],T=v+1,$=s(i[v][0],0),R=s(i[T][0],0),P=s(i[v][1],a),I=s(i[T][1],a),M=C;return x[v]+M<$&&(M=$-x[v]),x[T]-M<R&&(M=x[T]-R),x[v]+M>P&&(M=P-x[v]),x[T]-M>I&&(M=x[T]-I),x[v]+=M,x[T]-=M,n(x),x},()=>{m(null);},(h,C)=>{let b=f(),v=C==="start"?h:h+1,x=C==="start"?h+1:h,T=b[v],$=b[x];if(T!==0&&$!==0)b[v]=0,b[x]+=T;else {let R=T+$,P=s(i[v][0],0),I=s(i[v][1],a),M=s(i[x][0],0),E=s(i[x][1],a),w=Math.max(P,R-E),A=(Math.min(I,R-M)-w)/2;b[v]-=A,b[x]+=A;}return n(b),b},d?.index]}function Dh(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}var FX=e=>{let{prefixCls:t,vertical:o,index:r,active:n,ariaNow:i,ariaMin:a,ariaMax:l,resizable:s,startCollapsible:c,endCollapsible:p,onOffsetStart:d,onOffsetUpdate:m,onOffsetEnd:f,onCollapse:u}=e,g=`${t}-bar`,[y,S]=useState(null),h=x=>{s&&x.currentTarget&&(S([x.pageX,x.pageY]),d(r));},C=x=>{if(s&&x.touches.length===1){let T=x.touches[0];S([T.pageX,T.pageY]),d(r);}};ue__default.useEffect(()=>{if(y){let x=P=>{let{pageX:I,pageY:M}=P,E=I-y[0],w=M-y[1];m(r,E,w);},T=()=>{S(null),f();},$=P=>{if(P.touches.length===1){let I=P.touches[0],M=I.pageX-y[0],E=I.pageY-y[1];m(r,M,E);}},R=()=>{S(null),f();};return window.addEventListener("touchmove",$),window.addEventListener("touchend",R),window.addEventListener("mousemove",x),window.addEventListener("mouseup",T),()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",T),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",R);}}},[y]);let b=o?OL:sv,v=o?b3:cv;return ue__default.createElement("div",{className:g,role:"separator","aria-valuenow":Dh(i),"aria-valuemin":Dh(a),"aria-valuemax":Dh(l)},ue__default.createElement("div",{className:ki(`${g}-dragger`,{[`${g}-dragger-disabled`]:!s,[`${g}-dragger-active`]:n}),onMouseDown:h,onTouchStart:C}),c&&ue__default.createElement("div",{className:ki(`${g}-collapse-bar`,`${g}-collapse-bar-start`),onClick:()=>u(r,"start")},ue__default.createElement(b,{className:ki(`${g}-collapse-icon`,`${g}-collapse-start`)})),p&&ue__default.createElement("div",{className:ki(`${g}-collapse-bar`,`${g}-collapse-bar-end`),onClick:()=>u(r,"end")},ue__default.createElement(v,{className:ki(`${g}-collapse-icon`,`${g}-collapse-end`)})))},uN=FX;var OX=e=>{let{componentCls:t}=e;return {[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},Bu={position:"absolute",top:"50%",left:{_skip_check_:true,value:"50%"},transform:"translate(-50%, -50%)"},zX=e=>{let{componentCls:t,colorFill:o,splitBarDraggableSize:r,splitBarSize:n,splitTriggerSize:i,controlItemBgHover:a,controlItemBgActive:l,controlItemBgActiveHover:s}=e,c=`${t}-bar`,p=`${t}-mask`,d=`${t}-panel`,m=e.calc(i).div(2).equal();return {[t]:{...ne(e),display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${c}`]:{flex:"none",position:"relative",userSelect:"none",[`${c}-dragger`]:{...Bu,zIndex:1,"&::before":{content:'""',background:a,...Bu},"&::after":{content:'""',background:o,...Bu},[`&:hover:not(${c}-dragger-active)`]:{"&::before":{background:l}},"&-active":{zIndex:2,"&::before":{background:s}},[`&-disabled${c}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:a}},"&::after":{display:"none"}}},[`${c}-collapse-bar`]:{...Bu,zIndex:e.zIndexPopupBase,background:a,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:l},"&:active":{background:s}},"&:hover, &:active":{[`${c}-collapse-bar`]:{opacity:1}}},[p]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${c}`]:{width:0,[`${c}-dragger`]:{cursor:"col-resize",height:"100%",width:i,"&::before":{height:"100%",width:n},"&::after":{height:r,width:n}},[`${c}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:true,value:"auto"},right:{_skip_check_:true,value:m},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:true,value:m},right:{_skip_check_:true,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${c}`]:{height:0,[`${c}-dragger`]:{cursor:"row-resize",width:"100%",height:i,"&::before":{width:"100%",height:n},"&::after":{width:r,height:n}},[`${c}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:m,transform:"translateX(-50%)"},"&-end":{top:m,bottom:"auto",transform:"translateX(-50%)"}}}},[d]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}},...OX(e)}}},LX=e=>{let t=e.splitBarSize||2,o=e.splitTriggerSize||6,r=e.resizeSpinnerSize||20,n=e.splitBarDraggableSize??r;return {splitBarSize:t,splitTriggerSize:o,splitBarDraggableSize:n,resizeSpinnerSize:r}},fN=te("Splitter",e=>[zX(e)],LX);var GX=e=>{let{prefixCls:t,className:o,style:r,layout:n="horizontal",children:i,rootClassName:a,onResizeStart:l,onResize:s,onResizeEnd:c}=e,{getPrefixCls:p,direction:d,splitter:m}=ue__default.useContext(B),f=p("splitter",t),u=de(f),[g,y,S]=fN(f,u),h=n==="vertical",C=d==="rtl",b=!h&&C,v=wh(i),[x,T]=useState(),$=K=>{let{offsetWidth:Q,offsetHeight:V}=K,U=h?V:Q;U!==0&&T(U);},[R,P,I,M,E,w]=Eh(v,x),N=Nh(v,P),[A,k,D,F,O]=Bh(v,N,I,x,w),L=Du(K=>{A(K),l?.(P);}),_=Du((K,Q)=>{let V=k(K,Q);s?.(V);}),H=Du(()=>{D(),c?.(P);}),z=Du((K,Q)=>{let V=F(K,Q);s?.(V),c?.(V);}),G=ki(f,o,`${f}-${n}`,{[`${f}-rtl`]:C},a,m?.className,S,u,y),W=`${f}-mask`,q=ue__default.useMemo(()=>{let K=[],Q=0;for(let V=0;V<v.length;V+=1)Q+=I[V],K.push(Q);return K},[I]),j={...m?.style,...r};return g(ue__default.createElement(XS,{onResize:$},ue__default.createElement("div",{style:j,className:G},v.map((K,Q)=>{let V=ue__default.createElement(pN,{...K,prefixCls:f,size:R[Q]}),U=null,Y=N[Q];if(Y){let J=(q[Q-1]||0)+M[Q],ie=(q[Q+1]||100)-E[Q+1],ee=(q[Q-1]||0)+E[Q],X=(q[Q+1]||100)-M[Q+1];U=ue__default.createElement(uN,{index:Q,active:O===Q,prefixCls:f,vertical:h,resizable:Y.resizable,ariaNow:q[Q]*100,ariaMin:Math.max(J,ie)*100,ariaMax:Math.min(ee,X)*100,startCollapsible:Y.startCollapsible,endCollapsible:Y.endCollapsible,onOffsetStart:L,onOffsetUpdate:(Z,re,ae)=>{let se=h?ae:re;b&&(se=-se),_(Z,se);},onOffsetEnd:H,onCollapse:z});}return ue__default.createElement(ue__default.Fragment,{key:`split-panel-${Q}`},V,U)}),typeof O=="number"&&ue__default.createElement("div",{"aria-hidden":true,className:ki(W,`${W}-${n}`)}))))},yN=GX;var CN=yN;CN.Panel=dN;var VX=CN;var hN=$c,Kt=(e,t,o)=>{let{onChange:r}=e??{};r?.(t.values,t,...o);},_X={Input:(e,t)=>ue__default.createElement(jr,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{Kt(e,t,o);}}),InputPassword:(e,t)=>ue__default.createElement(jr.Password,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{Kt(e,t,o);}}),TextArea:(e,t)=>ue__default.createElement(jr.TextArea,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,style:{resize:"vertical"},...e,onChange:(...o)=>{Kt(e,t,o);}}),InputNumber:(e,t)=>ue__default.createElement(bc,{placeholder:"\u8BF7\u8F93\u5165",controls:false,...e,onChange:(...o)=>{Kt(e,t,o);}}),AutoComplete:(e,t)=>ue__default.createElement(Hg,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{Kt(e,t,o);}}),Mentions:(e,t)=>ue__default.createElement($C,{placeholder:"\u8BF7\u8F93\u5165",...e,onChange:(...o)=>{Kt(e,t,o);}}),Select:(e,t)=>ue__default.createElement(Mo,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Kt(e,t,o);}}),MultiSelect:(e,t)=>ue__default.createElement(Mo,{mode:"multiple",placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Kt(e,t,o);}}),Radio:(e,t)=>ue__default.createElement(Na.Group,{...e,onChange:(...o)=>{Kt(e,t,o);}}),Checkbox:(e,t)=>ue__default.createElement(pr.Group,{...e,onChange:(...o)=>{Kt(e,t,o);}}),Cascader:(e,t)=>ue__default.createElement(wy,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Kt(e,t,o);}}),DatePicker:(e,t)=>ue__default.createElement(hN,{allowClear:true,...e,onChange:(...o)=>{Kt(e,t,o);}}),DateRangePicker:(e,t)=>ue__default.createElement(hN.RangePicker,{allowClear:true,...e,onChange:(...o)=>{Kt(e,t,o);}}),TimePicker:(e,t)=>ue__default.createElement(oh,{...e,onChange:(...o)=>{Kt(e,t,o);}}),Slider:(e,t)=>ue__default.createElement(vc,{...e,onChange:(...o)=>{Kt(e,t,o);}}),Switch:(e,t)=>ue__default.createElement(BC,{...e,onChange:(...o)=>{Kt(e,t,o);}}),Upload:(e,t)=>ue__default.createElement(Th,{...e,onChange:(...o)=>{Kt(e,t,o);}},e.children),Transfer:(e,t)=>ue__default.createElement(sh,{...e,onChange:(...o)=>{Kt(e,t,o);}}),TreeSelect:(e,t)=>ue__default.createElement(ph,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{Kt(e,t,o);}})},SN=_X;var UX=e=>{let{item:t=[],form:o,onSubmit:r,onReset:n,onValuesChange:i,hasSubmitBtn:a=true,hasResetBtn:l=true,submitProps:s,resetProps:c,numberOfInline:p=4,columnGapWidth:d=16,rowGapWidth:m=0,buttonLocation:f="nextLast",buttonWrapExtra:u,formClassName:g,formStyle:y,buttonWrapClassName:S,buttonWrapStyle:h,initialValues:C,allLabelClassName:b,allLabelStyle:v,hiddenField:x=true,...T}=e,{values:$,set:R,reset:P,fieldProps:I}=o,M=useMemoizedFn(_=>typeof _=="function"?_($,o):_),E=useCreation(()=>t?.filter(_=>M(_.visible??true)),[t,$]),w=useCreation(()=>E?.map(_=>_.dataKey),[E]),N=useCreation(()=>E?.reduce((_,H)=>{let z=H.occupyColumns??1;return z>p?_+1:_+z},0),[E]),A=useCreation(()=>Math.ceil(N/p),[N,p]),k=useMemoizedFn((_,H)=>{let{label:z,labelClassName:G,labelStyle:W,required:q=true}=_,j=q&&!!H?.filter(K=>K?.required).length;return ue__default.createElement("span",{className:ki(b,G),style:{width:80,display:"inline-block",...v,...W}},j&&ue__default.createElement("span",{style:{paddingRight:4,color:"#f82244"}},"*"),typeof z=="function"?z($,o):z)}),D=useMemoizedFn((_,H)=>{let{occupyColumns:z=1,dataKey:G}=H;return ue__default.createElement("div",{key:G,style:{gridColumnEnd:`span ${z>p?1:z}`,overflow:"hidden"}},_)}),F=useCreation(()=>t?.map(_=>{let{label:H,dataKey:z,visible:G=true,extraLayout:W,rules:q=[],dataType:j,occupyColumns:K,dataProps:Q={},disabled:V=false,labelClassName:U="",labelStyle:Y={},onChange:J,...ie}=_,ee=null,X={},Z={},re=[];z&&(X=I[z]??{}),typeof Q=="function"?Z={...Q($,o),...X}:Z={...Q,...X},typeof q=="function"?re=q($,o):re=q;let ae=Object.assign({style:{width:"100%"},extra:W?.bottom,...ie,name:z,label:k(_,re),rules:re,required:false},typeof j=="string"&&j==="Upload"&&{valuePropName:"fileList",getValueFromEvent:se=>Array.isArray(se)?se:se?.fileList},typeof j=="string"&&j==="Switch"&&{valuePropName:"checked"});return typeof j=="string"?ee=SN[j](Object.assign({disabled:M(V)},typeof J=="function"&&{onChange:J},Z),o):typeof j=="function"?ee=ue__default.cloneElement(j($,o),Z):ee=ee=ue__default.cloneElement(j,Z),M(G)?D(ue__default.createElement("div",{style:{display:"flex"}},ue__default.createElement("div",{style:{flex:1}},ue__default.cloneElement(ue__default.createElement(ds.Item,{validateTrigger:["onBlur","onChange"]}),ae,ee)),W?.right&&ue__default.createElement(ue__default.Fragment,null,W?.right)),_):null}).filter(_=>!!_),[$,o,t]),O=useCreation(()=>ue__default.createElement("div",{className:S,style:Object.assign({display:"flex",...h},(f==="last"||f==="nextLast")&&{justifyContent:"flex-end"},f==="first"&&{justifyContent:"flex-start"})},a&&ue__default.createElement(Le,{type:"primary",className:ki({mr4x:l}),onClick:()=>{if(x){let _=Object.fromEntries(Object.entries($)?.filter?.(([H])=>w.includes(H)));r?.(_,o);}else r?.($,o);},...s},s?.text||"\u63D0\u4EA4"),l&&ue__default.createElement(Le,{onClick:()=>{n?n?.():(P(),R(C));},...c},c?.text||"\u91CD\u7F6E"),u),[a,l,u,c,s]),L=useCreation(()=>{let _=A*p-N,H=[];if(_>1)for(let z=1;z<_;z++)H.push(ue__default.createElement("div",{key:"virtually"+z}));return H},[A,p]);return ue__default.createElement(ds,{form:o,initialValues:C,className:g,style:y,...T,onValuesChange:(_,H)=>{o.setStateOnly(H),i?.(H,o);},requiredMark:false},ue__default.createElement("div",{style:{display:"grid",gridTemplateRows:`repeat(${A})`,gridTemplateColumns:`repeat(${p}, 1fr)`,gridColumnGap:d,gridRowGap:m}},F,f==="next"&&O,L,f==="nextLast"&&O),(f==="first"||f==="last")&&O)},Fh=memo(UX);function Oh(e){let{children:t,errors:o,visible:r,changeVisible:n}=e,i=useMemo(()=>o?.filter(({errors:a})=>a.length),[o]);return useEffect(()=>{i?.length||r&&n(false);},[r,i,n]),ue__default.createElement(nt,{trigger:"click",open:r,color:"#FFEDED",overlayInnerStyle:{color:"#333",width:280},title:ue__default.createElement("summary",null,ue__default.createElement("div",{className:"mb2x pr d-x d-xc"},ue__default.createElement("span",{className:"red"},"\u8BF7\u5148\u4FEE\u590D\u4EE5\u4E0B ",i.length," \u9879\u9519\u8BEF"),ue__default.createElement(CloseOutlined,{style:{position:"absolute",right:0,color:"#acacac"},onClick:()=>n(false)})),ue__default.createElement("div",null,i.map(({errors:a,warnings:l},s)=>ue__default.createElement("div",{className:"ml2x d-x d-xstart",key:s},ue__default.createElement("span",null,s+1,"\u3001"),[...a,...l].map((c,p)=>ue__default.createElement("span",{key:p},c))))))},t)}function Au(e){let t=useRef(e),[o]=ds.useForm(),[r,n]=useState(t.current),[i,a]=useState({}),l=useMemoizedFn(u=>{n(g=>isEqual(g,u)?g:u);}),s=useMemoizedFn((u,g)=>{l(g);}),c=useMemoizedFn(()=>o.getFieldsValue(true)),p=useMemoizedFn(u=>{o.setFieldsValue(u),l(u);}),d=useMemoizedFn(u=>{let g=o.getFieldsValue(true),y=typeof u=="function"?u(g):u;o.setFieldsValue(y),l(y);}),m=useMemoizedFn(u=>{l(u);}),f=useMemoizedFn(u=>{let g=u??t.current;o.resetFields(),o.setFieldsValue(g),l(g);});return {...o,values:r,getValues:c,ValidateTooltip:Oh,fieldProps:i,setFieldProps:a,onValuesChange:s,set:d,syncValues:p,setStateOnly:m,reset:f}}var rK="search";function nK(e){return !e||typeof e!="object"||Array.isArray(e)?e:Object.keys(e).sort().reduce((t,o)=>(t[o]=e[o],t),{})}function iK(e,t){return isEqualWith(e,t,function(r,n){if(isNaN$1(r)&&isNaN$1(n)||isNaN$1(r)&&isNil(n)||isNil(r)&&isNil(n)||isNil(r)&&isNaN$1(n))return true;if(typeof r=="function"&&typeof n=="function")return r.toString()===n.toString()})}function aK(e,t,o){let r=typeof o=="string"?o:window.location.hash,[,n=""]=r.split("?"),a=new URLSearchParams(n).get(e);if(!a)return t||{};let l;try{l=JSON.parse(decodeURIComponent(a));}catch{l={};}return t&&typeof t=="object"&&!Array.isArray(t)&&l&&typeof l=="object"&&!Array.isArray(l)?{...t,...l}:l??(t||{})}function zu(e={}){let{key:t=rK,initialValue:o}=e,r=useRef(o),n=useCallback(c=>aK(t,r.current,c),[t]),[i,a]=useState(()=>n()),l=useCallback(c=>{let p=n(c);a(d=>iK(d,p)?d:p);},[n]),s=useCallback(c=>{let p=window.location.hash||"",[d="",m=""]=p.split("?"),f;if(typeof c>"u")f=null;else if(typeof c=="function"){let h=n();f=c(h);}else f=c;let u=new URLSearchParams(m);if(f==null)u.delete(t);else {let h=nK(f);u.set(t,encodeURIComponent(JSON.stringify(h)));}let g=u.toString(),y=g?`${d}?${g}`:d;if(y===p)return;let S=`${window.location.pathname}${window.location.search}${y}`;window.history.replaceState(null,"",S),l(y);},[n,t,l]);return useEffect(()=>{let c=tK(()=>{l();},30);return window.addEventListener("hashchange",c),c(),()=>{c.cancel(),window.removeEventListener("hashchange",c);}},[l]),[i,s]}var mK=e=>{let{item:t,locationSearchKey:o="search",onReset:r,initialValues:n,submitProps:i,...a}=e,l=Au(n),{set:s}=l,[c,p]=zu({key:o,initialValue:n}),d=useCallback(f=>{let u=uniq([...t.map(y=>y.dataKey??""),...Object.keys(c)]);return Object.assign({},f,...u.map(y=>({[y]:c[y]||c[y]===0?c[y]:n[y]})))},[t,c,n]);useEffect(()=>{s(d);},[d,s]);let m=()=>{r?.(),p(n);};return ue__default.createElement(Fh,{hasResetBtn:true,submitProps:{text:"\u67E5\u8BE2",...i},onReset:m,item:t,form:l,initialValues:n,...a})},uK=memo(mK);var yK=e=>{let t=(o,r=[])=>o.reduce((n,i)=>Array.isArray(i)?n.concat(t(i,r)):n.concat(i),r);return t(e)},PN=(e,t=()=>true)=>{if(Es.isUnknownObject(e))throw new TypeError("Node is not a valid ReactNode or a collection of ReactNode.");let o=Children.toArray(e);return yK(o.map(r=>Es.isFragment(r)?PN(r.props.children):r).filter(Es.notNil).filter(t))},Es={isSimple:e=>typeof e=="string"||typeof e=="boolean"||typeof e=="number",isFragment:e=>isValidElement(e)&&typeof e.type=="symbol",isNil:e=>e==null,notNil:e=>!Es.isNil(e),isUnknownObject:e=>typeof e=="object"&&Es.notNil(e)&&!Array.isArray(e)&&!isValidElement(e)};async function $N(e){if(navigator.clipboard&&navigator?.permissions?.query&&navigator?.clipboard?.writeText)await navigator.permissions.query({name:"clipboard-read"}),await navigator.clipboard.writeText(e);else {let t=document.createElement("textarea");t.className="mux-copy-input",document.body.appendChild(t),t.value=e,t.focus(),t.select();let o=document.execCommand("copy");if(o==="unsuccessful")throw new Error(String(o));document.body.removeChild(t);}}var CK=e=>{let{content:t,children:o,onCopy:r,className:n,style:i}=e,a=PN(o)[0],l=async()=>{let s=typeof t=="function"?t():t;await $N(s??""),r&&r();};return Es.isSimple(a)?ue__default.createElement("span",{style:i,className:ki("mux-copy",n),onClick:l},o):ue__default.cloneElement(a,{onClick:()=>{let{onClick:s}=a.props;l(),s&&s();}})},hK=Object.assign(CK,{copy:$N});function fl(e,t){return e[t]}function AK({item:e,index:t,itemKey:o,renderItem:r,renderDragHandle:n,className:i,style:a}){let l=fl(e,o),{attributes:s,listeners:c,setNodeRef:p,transform:d,transition:m,isDragging:f}=useSortable({id:l}),u=typeof n=="function",g={...a,transform:CSS.Transform.toString(d),transition:m||"transform 200ms ease",willChange:"transform",touchAction:"none",position:"relative",zIndex:f?10:void 0,cursor:u?void 0:"move",flexShrink:0,opacity:f?.3:1},y=u?n(e,t,{attributes:s,listeners:c,isDragging:f}):void 0;return ue__default.createElement("div",{ref:p,style:g,className:i,...u?{}:s,...u?{}:c},r(e,t,y))}function RN({items:e,onDragFinish:t,renderItem:o,renderDragHandle:r,itemKey:n="id",direction:i="horizontal",className:a,style:l,itemClassName:s,itemStyle:c,activationDistance:p=8}){let[d,m]=useState(null),f=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:p}})),u=i==="horizontal"?[restrictToHorizontalAxis]:[restrictToVerticalAxis],g=i==="horizontal"?horizontalListSortingStrategy:verticalListSortingStrategy,y=useMemo(()=>d==null?null:e.find(b=>fl(b,n)===d)??null,[d,e,n]);return ue__default.createElement(DndContext,{collisionDetection:closestCenter,sensors:f,modifiers:u,onDragStart:({active:b})=>{m(b.id);},onDragEnd:({active:b,over:v})=>{if(m(null),!v||b.id===v.id)return;let x=e.findIndex(I=>fl(I,n)===b.id),T=e.findIndex(I=>fl(I,n)===v.id);if(x===-1||T===-1)return;let $=e[x],R=e[T];if(!$||!R)return;let P=arrayMove(e,x,T);t?.({activeItem:$,overItem:R,oldIndex:x,newIndex:T,newItems:P});},onDragCancel:()=>{m(null);}},ue__default.createElement(SortableContext,{items:e.map(b=>fl(b,n)),strategy:g},ue__default.createElement("div",{className:a,style:l},e.map((b,v)=>ue__default.createElement(AK,{key:String(fl(b,n)),item:b,index:v,itemKey:n,renderItem:o,renderDragHandle:r,className:s,style:c})))),ue__default.createElement(DragOverlay,null,y?ue__default.createElement("div",{className:s,style:{...c,flexShrink:0,cursor:"grabbing"}},o(y,e.findIndex(b=>fl(b,n)===d))):null))}function Jr(e,t){return e[t]}function WK({item:e,itemIndex:t,zone:o,zoneIndex:r,itemKey:n,itemClassName:i,itemStyle:a,renderItem:l,renderDragHandle:s}){let c=Jr(e,n),{attributes:p,listeners:d,setNodeRef:m,transform:f,transition:u,isDragging:g}=useSortable({id:c,data:{type:"item",zoneId:o.id,itemId:c}}),y=typeof s=="function",S={...a,transform:CSS.Transform.toString(f),transition:u||"transform 180ms ease",willChange:"transform",touchAction:"none",position:"relative",zIndex:g?10:void 0,cursor:y?void 0:"move",opacity:g?.35:1},h=y?s(e,t,o,r,{attributes:p,listeners:d,isDragging:g}):void 0;return ue__default.createElement("div",{ref:m,className:i,style:S,...y?{}:p,...y?{}:d},l(e,t,o,r,h))}function Lu({zone:e,zoneIndex:t,itemKey:o,itemClassName:r,itemStyle:n,renderZoneHeader:i,renderItem:a,renderDragHandle:l}){let{setNodeRef:s,isOver:c}=useDroppable({id:e.id,data:{type:"zone",zoneId:e.id}});return ue__default.createElement("div",{className:e.className,style:{...e.style}},i?i(e,t):e.title?ue__default.createElement("div",null,e.title):null,ue__default.createElement("div",{ref:s,className:e.bodyClassName,style:{display:"flex",flexDirection:"column",gap:8,minHeight:40,transition:"background-color 160ms ease, border-color 160ms ease",...e.bodyStyle,backgroundColor:c?"#f5f9ff":e.bodyStyle?.backgroundColor}},ue__default.createElement(SortableContext,{items:e.items.map(p=>Jr(p,o)),strategy:verticalListSortingStrategy},e.items.map((p,d)=>ue__default.createElement(WK,{key:String(Jr(p,o)),item:p,itemIndex:d,zone:e,zoneIndex:t,itemKey:o,itemClassName:r,itemStyle:n,renderItem:a,renderDragHandle:l})))))}function Hu(e,t,o){for(let r=0;r<e.length;r++){let n=e[r],i=n.items.findIndex(a=>Jr(a,o)===t);if(i!==-1)return {zone:n,zoneIndex:r,itemIndex:i,item:n.items[i]}}return null}function wN(e="both"){return e==="both"||e==="in-only"}function NN(e="both"){return e==="both"||e==="out-only"}function MN(e){return e.map(t=>({...t,items:[...t.items]}))}function EN(e,t,o){if(e.length!==t.length)return false;for(let r=0;r<e.length;r++){if(e[r].id!==t[r].id||e[r].items.length!==t[r].items.length)return false;for(let n=0;n<e[r].items.length;n++)if(Jr(e[r].items[n],o)!==Jr(t[r].items[n],o))return false}return true}function JK(e,t,o){if(!e)return null;let r=e.data.current;if(r?.zoneId!=null)return r.zoneId;for(let n of t)if(n.id===e.id||n.items.some(i=>Jr(i,o)===e.id))return n.id;return null}function kN({zones:e,itemKey:t="id",onDragFinish:o,activationDistance:r=8,className:n,style:i,itemClassName:a,itemStyle:l,renderZoneHeader:s,renderItem:c,renderDragHandle:p}){let[d,m]=useState(null),[f,u]=useState(null),g=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:r}})),y=f??e,S=useMemo(()=>d==null?null:Hu(e,d,t),[d,e,t]),h=S?.item??null,C=useCallback($=>{let R=pointerWithin($);if(R.length>0)return R;let P=rectIntersection($);return getFirstCollision(P,"id")?P:[]},[]);return ue__default.createElement(DndContext,{collisionDetection:C,sensors:g,onDragStart:({active:$})=>{m($.id),u(MN(e));},onDragOver:({active:$,over:R})=>{if(!R)return;let P=f??e,I=Hu(P,$.id,t);if(!I)return;let M=JK(R,P,t);if(M==null)return;let E=P.find(q=>q.id===I.zone.id),w=P.find(q=>q.id===M);if(!E||!w)return;let N=E.transferMode??"both",A=w.transferMode??"both",k=E.id!==w.id;if(k&&(!NN(N)||!wN(A)))return;let D=MN(P),F=D.findIndex(q=>q.id===E.id),O=D.findIndex(q=>q.id===w.id);if(F===-1||O===-1)return;let L=D[F].items,_=D[O].items,H=L.findIndex(q=>Jr(q,t)===$.id);if(H===-1)return;if(!k){let q=_.findIndex(K=>Jr(K,t)===R.id);if(q===-1||q===H)return;let j=arrayMove(L,H,q);D[F].items=j,EN(P,D,t)||u(D);return}let[z]=L.splice(H,1);if(!z)return;let G=_.length,W=_.findIndex(q=>Jr(q,t)===R.id);W!==-1&&(G=W),_.splice(G,0,z),EN(P,D,t)||u(D);},onDragEnd:({active:$,over:R})=>{let P=f??e;if(m(null),u(null),!R)return;let I=Hu(e,$.id,t),M=Hu(P,$.id,t);if(!I||!M)return;let E=e.find(A=>A.id===I.zone.id),w=P.find(A=>A.id===M.zone.id);if(!E||!w)return;if(E.id!==w.id){let A=E.transferMode??"both",k=w.transferMode??"both";if(!NN(A)||!wN(k))return}I.zone.id===M.zone.id&&I.itemIndex===M.itemIndex||o?.({activeItem:I.item,fromZoneId:I.zone.id,toZoneId:M.zone.id,oldIndex:I.itemIndex,newIndex:M.itemIndex,newZones:P});},onDragCancel:()=>{m(null),u(null);}},ue__default.createElement("div",{className:n,style:i},y.map(($,R)=>ue__default.createElement(Lu,{key:String($.id),zone:$,zoneIndex:R,itemKey:t,itemClassName:a,itemStyle:l,renderZoneHeader:s,renderItem:c,renderDragHandle:p}))),ue__default.createElement(DragOverlay,null,h?ue__default.createElement("div",{className:a,style:{...l,cursor:"grabbing"}},c(h,S?.itemIndex??-1,S?.zone,S?.zoneIndex??-1)):null))}var AN=createContext(null);function rp(e,t){return e[t]}function uY(e="both"){return e==="both"||e==="in-only"}function fY(e="both"){return e==="both"||e==="out-only"}function Hh(e){return e.map(t=>({...t,items:[...t.items]}))}function Wu(e,t){for(let[o,r]of e)for(let n=0;n<r.boards.length;n++){let i=r.boards[n],a=i.items.findIndex(l=>rp(l,r.itemKey)===t);if(a!==-1)return {scopeId:o,zone:i,zoneIndex:n,itemIndex:a,item:i.items[a]}}return null}function DN(e,t){for(let[o,r]of e)for(let n=0;n<r.boards.length;n++){let i=r.boards[n];if(i.id===t)return {scopeId:o,zone:i,zoneIndex:n,scope:r}}return null}function gY(e,t){if(!e)return null;let o=e.data.current;if(o?.zoneId!=null)return o.zoneId;for(let[,r]of t)for(let n of r.boards)if(n.id===e.id||n.items.some(i=>rp(i,r.itemKey)===e.id))return n.id;return null}function FN({children:e,activationDistance:t=8}){let o=useRef(new Map),[r,n]=useState(null),[i,a]=useState(null),l=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:t}})),s=useCallback((b,v)=>{o.current.set(b,v);},[]),c=useCallback(b=>{o.current.delete(b);},[]),p=useCallback((b,v)=>{o.current.set(b,v);},[]),d=useCallback(b=>o.current.get(b)?.boards??[],[]),m=useCallback(b=>i?i.get(b)??null:null,[i]),f=useCallback(b=>{let v=pointerWithin(b);if(v.length>0)return v;let x=rectIntersection(b);return getFirstCollision(x,"id")?x:[]},[]),u=({active:b})=>{n(b.id);let v=new Map;for(let[x,T]of o.current)v.set(x,Hh(T.boards));a(v);},g=({active:b,over:v})=>{if(!v||!i)return;let x=new Map;for(let[K,Q]of o.current)x.set(K,{...Q,boards:i.get(K)??Q.boards});let T=Wu(x,b.id);if(!T)return;let $=gY(v,x);if($==null)return;let R=DN(x,T.zone.id),P=DN(x,$);if(!R||!P)return;let I=R.zone,M=P.zone,E=I.id!==M.id,w=I.transferMode??"both",N=M.transferMode??"both";if(E&&(!fY(w)||!uY(N)))return;let A=new Map(i),k=Hh(A.get(T.scopeId)??[]),D=T.scopeId===P.scopeId?k:Hh(A.get(P.scopeId)??[]),F=k.findIndex(K=>K.id===I.id),O=D.findIndex(K=>K.id===M.id);if(F===-1||O===-1)return;let L=k[F].items,_=D[O].items,H=x.get(T.scopeId);if(!H)return;let z=L.findIndex(K=>rp(K,H.itemKey)===b.id);if(z===-1)return;if(!E&&T.scopeId===P.scopeId){let K=_.findIndex(Q=>rp(Q,H.itemKey)===v.id);if(K===-1||K===z)return;k[F].items=arrayMove(L,z,K),A.set(T.scopeId,k),a(A);return}let[G]=L.splice(z,1);if(!G)return;let W=x.get(P.scopeId);if(!W)return;let q=_.length,j=_.findIndex(K=>rp(K,W.itemKey)===v.id);j!==-1&&(q=j),_.splice(q,0,G),A.set(T.scopeId,k),A.set(P.scopeId,D),a(A);},y=({active:b,over:v})=>{if(!i){n(null);return}let x=new Map;for(let[I,M]of o.current)x.set(I,{...M,boards:i.get(I)??M.boards});let T=Wu(o.current,b.id),$=Wu(x,b.id);if(n(null),!v||!T||!$){a(null);return}let R=o.current.get(T.scopeId),P=o.current.get($.scopeId);if(!R||!P){a(null);return}if(T.scopeId===$.scopeId&&T.zone.id===$.zone.id&&T.itemIndex===$.itemIndex){a(null);return}R.onDragFinish?.({scopeId:T.scopeId,boards:i.get(T.scopeId)??R.boards}),T.scopeId!==$.scopeId&&P.onDragFinish?.({scopeId:$.scopeId,boards:i.get($.scopeId)??P.boards}),a(null);},S=()=>{n(null),a(null);},h=(()=>{if(r==null)return null;let b=new Map;for(let[T,$]of o.current)b.set(T,{...$,boards:i?.get(T)??$.boards});let v=Wu(b,r);if(!v)return null;let x=b.get(v.scopeId);return x?x.renderItem(v.item,v.itemIndex,v.zone,v.zoneIndex):null})(),C=useMemo(()=>({registerScope:s,unregisterScope:c,updateScope:p,getScopeBoards:d,getPreviewScopeBoards:m,activeId:r}),[s,c,p,d,m,r]);return ue__default.createElement(AN.Provider,{value:C},ue__default.createElement(DndContext,{collisionDetection:f,sensors:l,onDragStart:u,onDragOver:g,onDragEnd:y,onDragCancel:S},e,ue__default.createElement(DragOverlay,null,h)))}function ON(){let e=useContext(AN);if(!e)throw new Error("SortableBoard must be used within SortableBoardProvider");return e}function LN({boardScopeId:e,boards:t,itemKey:o="id",onDragFinish:r,className:n,style:i,boardClassName:a,boardStyle:l,zoneWrapClassName:s,zoneWrapStyle:c,itemClassName:p,itemStyle:d,renderBoardHeader:m,renderZoneHeader:f,renderItem:u,renderDragHandle:g}){let{registerScope:y,unregisterScope:S,updateScope:h,getPreviewScopeBoards:C}=ON();useEffect(()=>(y(e,{scopeId:e,boards:t,itemKey:o,renderItem:u,onDragFinish:r}),()=>{S(e);}),[]),useEffect(()=>{h(e,{scopeId:e,boards:t,itemKey:o,renderItem:u,onDragFinish:r});},[e,t,o,u,r,h]);let b=useMemo(()=>C(e)??t,[e,t,C]);return ue__default.createElement("div",{className:n,style:i},b.map((v,x)=>ue__default.createElement("div",{key:String(v.id),className:v.className??a,style:{...l,...v.style}},m?m(v,x):v.title?ue__default.createElement("div",null,v.title):null,ue__default.createElement("div",{className:s,style:c},ue__default.createElement(Lu,{zone:v,zoneIndex:x,itemKey:o,itemClassName:p,itemStyle:d,renderZoneHeader:f,renderItem:u,renderDragHandle:g})))))}var CY={SortableList:RN,SortableZones:kN,SortableBoard:LN,SortableBoardProvider:FN},hY=CY;var QM={};iE(QM,{Formatter:()=>of,downloadGet:()=>jQ,downloadPost:()=>UQ,enum2DataSource:()=>KQ,formatFileLength:()=>YQ,getEnumLabel:()=>XQ,parseHashParams:()=>qQ,useIsFirstRender:()=>ZQ});var ZM=lE(YM());var jQ=(e,t)=>{let o=t?`?${ZM.default.stringify(t,{arrayFormat:"indices",allowDots:true})}`:"";window.open(`${e}${o}`);},UQ=(e,t={})=>{let o=document.createElement("form");o.action=e,o.method="POST",o.target="_blank",o.style.visibility="hidden",Object.entries(t).forEach(([r,n])=>{if([void 0,null,"",NaN].includes(n)||Array.isArray(n)&&!n.length)return;let i=document.createElement("input");i.type="hidden",i.name=r,i.value=n,o.appendChild(i);}),document.body.appendChild(o),o.submit(),o.remove();};function qQ(e){let t=typeof e=="string"?e:window.location.hash,[,o=""]=t.split("?"),r=new URLSearchParams(o),n={};return r.forEach((i,a)=>{try{let l=decodeURIComponent(i);n[a]=JSON.parse(l);}catch{try{n[a]=decodeURIComponent(i);}catch{n[a]=i;}}}),n}function XQ(e,t){return Object.entries(e).find(([,r])=>r===t)?.[0]}function KQ(e){return Object.keys(e).filter(t=>isNaN(+t)).map(t=>({label:t,value:e[t]}))}function YQ(e,t){switch(t.toUpperCase()){case "KB":return e*1024;case "MB":return e*1024*1024;case "GB":return e*1024*1024*1024;default:return null}}function ZQ(){let e=useRef(true);return e.current?(e.current=false,true):e.current}var of={format2thround(e){e=`${e}`;let t=/(\d{1,3})(?=(?:\d{3})+\.)/g,o=/(\d{1,3})(?=(?:\d{3})+$)/g,r=e.indexOf(".")!==-1?t:o;return e=e.replace(r,"$1,"),e},format2number(e){let t=/,|%|元|¥/g;return Number(`${e}`.replace(t,""))},format(e,t){if(!t)return `${e}`;if(!isNaN(parseFloat(`${e}`))&&isFinite(+`${e}`)){if(e=Number(e),t?.ratio&&(e=e*t?.ratio),t?.decimal){let r=t?.truncable?of.truncate(e,t?.decimal):e.toFixed(t?.decimal);t?.decimal===2&&r.slice(-3)===".00"&&(r=t?.truncable?of.truncate(e,0):e.toFixed(0)),e=r;}t?.thousand&&(e=of.format2thround(e)),t?.unit&&(e=t?.position==="left"?t?.unit+e:e+t?.unit);}else t?.unit&&(e=t?.position==="left"?t?.unit+e:e+t?.unit);return t?.ouputnumber?Number(e):`${e}`},truncate(e,t=2){let o=`${e}`.split("."),r=o[0];return o[1]&&t>0&&(r+=`.${o[1].substr(0,t)}`),r},multiplyOperation(e,t){e=typeof e=="number"?e:NaN,t=typeof t=="number"?t:NaN;let o=(e||NaN)*(t||NaN);return isNaN(o)?void 0:o},dividerOperation(e,t){e=typeof e=="number"?e:NaN,t=typeof t=="number"?t:NaN;let o=(e||NaN)/(t||NaN);return isNaN(o)?void 0:o},formatTrueOrFalse(e){switch(e){case 0:return "\u5426";case 1:return "\u662F";default:return "-"}}};
|
|
356
|
-
export{
|
|
355
|
+
`]:{zIndex:10,width:r,margin:`0 ${unit(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:n,"&:hover":{color:n},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${o}-eye, ${o}-download, ${o}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${unit(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}},[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var UK=e=>{let{componentCls:t}=e;return {[`${t}-rtl`]:{direction:"rtl"}}},QN=UK;var qK=e=>{let{componentCls:t,colorTextDisabled:o}=e;return {[`${t}-wrapper`]:{...ae(e),[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:o,cursor:"not-allowed"}}}},XK=e=>({actionsColor:e.colorTextDescription}),JN=oe("Upload",e=>{let{fontSizeHeading3:t,fontHeight:o,lineWidth:r,controlHeightLG:n,calc:i}=e,a=mergeToken(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(o).div(2)).add(r).equal(),uploadPicCardSize:i(n).mul(2.55).equal()});return [qK(a),_N(a),YN(a),ZN(a),UN(a),XN(a),QN(a),qr(a)]},XK);function $p(e){return {...e,lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e}}function Pp(e,t){let o=[...t],r=o.findIndex(({uid:n})=>n===e.uid);return r===-1?o.push(e):o[r]=e,o}function df(e,t){let o=e.uid!==void 0?"uid":"name";return t.filter(r=>r[o]===e[o])[0]}function eM(e,t){let o=e.uid!==void 0?"uid":"name",r=t.filter(n=>n[o]!==e[o]);return r.length===t.length?null:r}var KK=(e="")=>{let t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return (/\.[^./\\]*$/.exec(r)||[""])[0]},tM=e=>e.indexOf("image/")===0,oM=e=>{if(e.type&&!e.thumbUrl)return tM(e.type);let t=e.thumbUrl||e.url||"",o=KK(t);return /^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(o)?true:!(/^data:/.test(t)||o)},ba=200;function rM(e){return new Promise(t=>{if(!e.type||!tM(e.type)){t("");return}let o=document.createElement("canvas");o.width=ba,o.height=ba,o.style.cssText=`position: fixed; left: 0; top: 0; width: ${ba}px; height: ${ba}px; z-index: 9999; display: none;`,document.body.appendChild(o);let r=o.getContext("2d"),n=new Image;if(n.onload=()=>{let{width:i,height:a}=n,l=ba,s=ba,c=0,p=0;i>a?(s=a*(ba/i),p=-(s-l)/2):(l=i*(ba/a),c=-(l-s)/2),r.drawImage(n,c,p,l,s);let m=o.toDataURL();document.body.removeChild(o),window.URL.revokeObjectURL(n.src),t(m);},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(n.src=i.result);},i.readAsDataURL(e);}else if(e.type.startsWith("image/gif")){let i=new FileReader;i.onload=()=>{i.result&&t(i.result);},i.readAsDataURL(e);}else n.src=window.URL.createObjectURL(e);})}var eY=ve.forwardRef(({prefixCls:e,className:t,style:o,locale:r,listType:n,file:i,items:a,progress:l,iconRender:s,actionIconRender:c,itemRender:p,isImgUrl:m,showPreviewIcon:d,showRemoveIcon:f,showDownloadIcon:u,previewIcon:g,removeIcon:y,downloadIcon:h,extra:b,onPreview:C,onDownload:S,onClose:v},x)=>{let{status:$}=i,[R,T]=ve.useState($);ve.useEffect(()=>{$!=="removed"&&T($);},[$]);let[P,N]=ve.useState(false);ve.useEffect(()=>{let ee=setTimeout(()=>{N(true);},300);return ()=>{clearTimeout(ee);}},[]);let M=s(i),E=ve.createElement("div",{className:`${e}-icon`},M);if(n==="picture"||n==="picture-card"||n==="picture-circle")if(R==="uploading"||!i.thumbUrl&&!i.url){let ee=Xi(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:R!=="uploading"});E=ve.createElement("div",{className:ee},M);}else {let ee=m?.(i)?ve.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):M,j=Xi(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:m&&!m(i)});E=ve.createElement("a",{className:j,onClick:Y=>C(i,Y),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ee);}let I=Xi(`${e}-list-item`,`${e}-list-item-${R}`),w=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,B=(typeof f=="function"?f(i):f)?c((typeof y=="function"?y(i):y)||ve.createElement(hX,null),()=>v(i),e,r.removeFile,true):null,k=(typeof u=="function"?u(i):u)&&R==="done"?c((typeof h=="function"?h(i):h)||ve.createElement(ZK,null),()=>S(i),e,r.downloadFile):null,D=n!=="picture-card"&&n!=="picture-circle"&&ve.createElement("span",{key:"download-delete",className:Xi(`${e}-list-item-actions`,{picture:n==="picture"})},k,B),F=typeof b=="function"?b(i):b,A=F&&ve.createElement("span",{className:`${e}-list-item-extra`},F),L=Xi(`${e}-list-item-name`),q=i.url?ve.createElement("a",{key:"view",target:"_blank",rel:"noopener noreferrer",className:L,title:i.name,...w,href:i.url,onClick:ee=>C(i,ee)},i.name,A):ve.createElement("span",{key:"view",className:L,onClick:ee=>C(i,ee),title:i.name},i.name,A),V=(typeof d=="function"?d(i):d)&&(i.url||i.thumbUrl)?ve.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ee=>C(i,ee),title:r.previewFile},typeof g=="function"?g(i):g||ve.createElement(a8,null)):null,z=(n==="picture-card"||n==="picture-circle")&&R!=="uploading"&&ve.createElement("span",{className:`${e}-list-item-actions`},V,R==="done"&&k,B),{getPrefixCls:G}=ve.useContext(O),_=G(),Z=ve.createElement("div",{className:I},E,q,D,z,P&&ve.createElement(oB,{motionName:`${_}-fade`,visible:R==="uploading",motionDeadline:2e3},({className:ee})=>{let j="percent"in i?ve.createElement(lp,{...l,type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]}):null;return ve.createElement("div",{className:Xi(`${e}-list-item-progress`,ee)},j)})),K=i.response&&typeof i.response=="string"?i.response:i.error?.statusText||i.error?.message||r.uploadError,Q=R==="error"?ve.createElement(ot,{title:K,getPopupContainer:ee=>ee.parentNode},Z):Z;return ve.createElement("div",{className:Xi(`${e}-list-item-container`,t),style:o,ref:x},p?p(Q,i,a,{download:S.bind(null,i),preview:C.bind(null,i),remove:v.bind(null,i)}):Q)}),nM=eY;var lY=(e,t)=>{let{listType:o="text",previewFile:r=rM,onPreview:n,onDownload:i,onRemove:a,locale:l,iconRender:s,isImageUrl:c=oM,prefixCls:p,items:m=[],showPreviewIcon:d=true,showRemoveIcon:f=true,showDownloadIcon:u=false,removeIcon:g,previewIcon:y,downloadIcon:h,extra:b,progress:C={size:[-1,2],showInfo:false},appendAction:S,appendActionVisible:v=true,itemRender:x,disabled:$}=e,R=Qn(),[T,P]=ve.useState(false),N=["picture-card","picture-circle"].includes(o);ve.useEffect(()=>{o.startsWith("picture")&&(m||[]).forEach(V=>{!(V.originFileObj instanceof File||V.originFileObj instanceof Blob)||V.thumbUrl!==void 0||(V.thumbUrl="",r?.(V.originFileObj).then(z=>{V.thumbUrl=z||"",R();}));});},[o,m,r]),ve.useEffect(()=>{P(true);},[]);let M=(V,z)=>{if(n)return z?.preventDefault(),n(V)},E=V=>{typeof i=="function"?i(V):V.url&&window.open(V.url);},I=V=>{a?.(V);},w=V=>{if(s)return s(V,o);let z=V.status==="uploading";if(o.startsWith("picture")){let G=o==="picture"?ve.createElement(iM,null):l.uploading,_=c?.(V)?ve.createElement(rY,null):ve.createElement(tY,null);return z?G:_}return z?ve.createElement(iM,null):ve.createElement(oY,null)},B=(V,z,G,_,Z)=>{let K={type:"text",size:"small",title:_,onClick:Q=>{z(),ve.isValidElement(V)&&V.props.onClick?.(Q);},className:`${G}-list-item-action`};return Z&&(K.disabled=$),ve.isValidElement(V)?ve.createElement(Ge,{...K,icon:Oe(V,{...V.props,onClick:()=>{}})}):ve.createElement(Ge,{...K},ve.createElement("span",null,V))};ve.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:E}));let{getPrefixCls:k}=ve.useContext(O),D=k("upload",p),F=k(),A=Xi(`${D}-list`,`${D}-list-${o}`),L=ve.useMemo(()=>vv(Ur(F),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[F]),q={...N?{}:L,motionDeadline:2e3,motionName:`${D}-${N?"animate-inline":"animate"}`,keys:[...m.map(V=>({key:V.uid,file:V}))],motionAppear:T};return ve.createElement("div",{className:A},ve.createElement(CSSMotionList,{...q,component:false},({key:V,file:z,className:G,style:_})=>ve.createElement(nM,{key:V,locale:l,prefixCls:D,className:G,style:_,file:z,items:m,progress:C,listType:o,isImgUrl:c,showPreviewIcon:d,showRemoveIcon:f,showDownloadIcon:u,removeIcon:g,previewIcon:y,downloadIcon:h,extra:b,iconRender:w,actionIconRender:B,itemRender:x,onPreview:M,onDownload:E,onClose:I})),S&&ve.createElement(oB,{...q,visible:v,forceRender:true},({className:V,style:z})=>Oe(S,G=>({className:Xi(G.className,V),style:{...z,pointerEvents:V?"none":void 0,...G.style}}))))},sY=ve.forwardRef(lY),lM=sY;var ec=`__LIST_IGNORE_${Date.now()}__`,pY=(e,t)=>{let{fileList:o,defaultFileList:r,onRemove:n,showUploadList:i=true,listType:a="text",onPreview:l,onDownload:s,onChange:c,onDrop:p,previewFile:m,disabled:d,locale:f,iconRender:u,isImageUrl:g,progress:y,prefixCls:h,className:b,type:C="select",children:S,style:v,itemRender:x,maxCount:$,data:R={},multiple:T=false,hasControlInside:P=true,action:N="",accept:M="",supportServerRender:E=true,rootClassName:I}=e,w=ve.useContext(We),B=d??w,[k,D]=s$(r||[],{value:o,postState:le=>le??[]}),[F,A]=ve.useState("drop"),L=ve.useRef(null),q=ve.useRef(null);ve.useMemo(()=>{let le=Date.now();(o||[]).forEach((ie,me)=>{!ie.uid&&!Object.isFrozen(ie)&&(ie.uid=`__AUTO__${le}_${me}__`);});},[o]);let V=(le,ie,me)=>{let Ce=[...ie],be=false;$===1?Ce=Ce.slice(-1):$&&(be=Ce.length>$,Ce=Ce.slice(0,$)),flushSync(()=>{D(Ce);});let _e={file:le,fileList:Ce};me&&(_e.event=me),(!be||le.status==="removed"||Ce.some(Ut=>Ut.uid===le.uid))&&flushSync(()=>{c?.(_e);});},z=async(le,ie)=>{let{beforeUpload:me,transformFile:Ce}=e,be=le;if(me){let _e=await me(le,ie);if(_e===false)return false;if(delete le[ec],_e===ec)return Object.defineProperty(le,ec,{value:true,configurable:true}),false;typeof _e=="object"&&_e&&(be=_e);}return Ce&&(be=await Ce(be)),be},G=le=>{let ie=le.filter(be=>!be.file[ec]);if(!ie.length)return;let me=ie.map(be=>$p(be.file)),Ce=[...k];me.forEach(be=>{Ce=Pp(be,Ce);}),me.forEach((be,_e)=>{let Ut=be;if(ie[_e].parsedFile)be.status="uploading";else {let{originFileObj:Ke}=be,tt;try{tt=new File([Ke],Ke.name,{type:Ke.type});}catch{tt=new Blob([Ke],{type:Ke.type}),tt.name=Ke.name,tt.lastModifiedDate=new Date,tt.lastModified=new Date().getTime();}tt.uid=be.uid,Ut=tt;}V(Ut,Ce);});},_=(le,ie,me)=>{try{typeof le=="string"&&(le=JSON.parse(le));}catch{}if(!df(ie,k))return;let Ce=$p(ie);Ce.status="done",Ce.percent=100,Ce.response=le,Ce.xhr=me;let be=Pp(Ce,k);V(Ce,be);},Z=(le,ie)=>{if(!df(ie,k))return;let me=$p(ie);me.status="uploading",me.percent=le.percent;let Ce=Pp(me,k);V(me,Ce,le);},K=(le,ie,me)=>{if(!df(me,k))return;let Ce=$p(me);Ce.error=le,Ce.response=ie,Ce.status="error";let be=Pp(Ce,k);V(Ce,be);},Q=le=>{let ie;Promise.resolve(typeof n=="function"?n(le):n).then(me=>{if(me===false)return;let Ce=eM(le,k);Ce&&(ie={...le,status:"removed"},k?.forEach(be=>{let _e=ie.uid!==void 0?"uid":"name";be[_e]===ie[_e]&&!Object.isFrozen(be)&&(be.status="removed");}),L.current?.abort(ie),V(ie,Ce));});},ee=le=>{A(le.type),le.type==="drop"&&p?.(le);};ve.useImperativeHandle(t,()=>({onBatchStart:G,onSuccess:_,onProgress:Z,onError:K,fileList:k,upload:L.current,nativeElement:q.current}));let{getPrefixCls:j,direction:Y,upload:J}=ve.useContext(O),te=j("upload",h),ue={onBatchStart:G,onError:K,onProgress:Z,onSuccess:_,...e,data:R,multiple:T,action:N,accept:M,supportServerRender:E,prefixCls:te,disabled:B,beforeUpload:z,onChange:void 0,hasControlInside:P};delete ue.className,delete ue.style,(!S||B)&&delete ue.id;let W=`${te}-wrapper`,[H,X,re]=JN(te,W),[ce]=Ae("Upload",ct.Upload),{showRemoveIcon:fe,showPreviewIcon:Pe,showDownloadIcon:we,removeIcon:ye,previewIcon:ge,downloadIcon:xe,extra:Te}=typeof i=="boolean"?{}:i,Se=typeof fe>"u"?!B:fe,de=(le,ie)=>i?ve.createElement(lM,{prefixCls:te,listType:a,items:k,previewFile:m,onPreview:l,onDownload:s,onRemove:Q,showRemoveIcon:Se,showPreviewIcon:Pe,showDownloadIcon:we,removeIcon:ye,previewIcon:ge,downloadIcon:xe,iconRender:u,extra:Te,locale:{...ce,...f},isImageUrl:g,progress:y,appendAction:le,appendActionVisible:ie,itemRender:x,disabled:B}):le,U=Xi(W,b,I,X,re,J?.className,{[`${te}-rtl`]:Y==="rtl",[`${te}-picture-card-wrapper`]:a==="picture-card",[`${te}-picture-circle-wrapper`]:a==="picture-circle"}),pe={...J?.style,...v};if(C==="drag"){let le=Xi(X,te,`${te}-drag`,{[`${te}-drag-uploading`]:k.some(ie=>ie.status==="uploading"),[`${te}-drag-hover`]:F==="dragover",[`${te}-disabled`]:B,[`${te}-rtl`]:Y==="rtl"});return H(ve.createElement("span",{className:U,ref:q},ve.createElement("div",{className:le,style:pe,onDrop:ee,onDragOver:ee,onDragLeave:ee},ve.createElement(cM,{...ue,ref:L,className:`${te}-btn`},ve.createElement("div",{className:`${te}-drag-container`},S))),de()))}let se=Xi(te,`${te}-select`,{[`${te}-disabled`]:B,[`${te}-hidden`]:!S}),he=ve.createElement("div",{className:se},ve.createElement(cM,{...ue,ref:L}));return H(a==="picture-card"||a==="picture-circle"?ve.createElement("span",{className:U,ref:q},de(he,!!S)):ve.createElement("span",{className:U,ref:q},he,de()))},dY=ve.forwardRef(pY),mf=dY;var mY=ve.forwardRef(({style:e,height:t,hasControlInside:o=false,...r},n)=>ve.createElement(mf,{ref:n,hasControlInside:o,...r,type:"drag",style:{...e,height:t}})),pM=mY;var fb=mf;fb.Dragger=pM;fb.LIST_IGNORE=ec;var gb=fb;var Cb=3;function yb(e,t,o=1){let r=document.createElement("canvas"),n=r.getContext("2d"),i=e*o,a=t*o;return r.setAttribute("width",`${i}px`),r.setAttribute("height",`${a}px`),n.save(),[n,r,i,a]}function hb(){function e(t,o,r,n,i,a,l,s){let[c,p,m,d]=yb(n,i,r);if(t instanceof HTMLImageElement)c.drawImage(t,0,0,m,d);else {let{color:L,fontSize:q,fontStyle:V,fontWeight:z,fontFamily:G,textAlign:_}=a,Z=Number(q)*r;c.font=`${V} normal ${z} ${Z}px/${i}px ${G}`,c.fillStyle=L,c.textAlign=_,c.textBaseline="top",mi(t)?.forEach((Q,ee)=>{c.fillText(Q??"",m/2,ee*(Z+Cb*r));});}let f=Math.PI/180*Number(o),u=Math.max(n,i),[g,y,h]=yb(u,u,r);g.translate(h/2,h/2),g.rotate(f),m>0&&d>0&&g.drawImage(p,-m/2,-d/2);function b(L,q){let V=L*Math.cos(f)-q*Math.sin(f),z=L*Math.sin(f)+q*Math.cos(f);return [V,z]}let C=0,S=0,v=0,x=0,$=m/2,R=d/2;[[0-$,0-R],[0+$,0-R],[0+$,0+R],[0-$,0+R]].forEach(([L,q])=>{let[V,z]=b(L,q);C=Math.min(C,V),S=Math.max(S,V),v=Math.min(v,z),x=Math.max(x,z);});let P=C+h/2,N=v+h/2,M=S-C,E=x-v,I=l*r,w=s*r,B=(M+I)*2,k=E+w,[D,F]=yb(B,k);function A(L=0,q=0){D.drawImage(y,P,N,M,E,L,q,M,E);}return A(),A(M+I,-E/2-w/2),A(M+I,+E/2+w/2),[F.toDataURL(),B/r,k/r]}return e}function bb(e){let t=ve__default.useRef(false),o=ve__default.useRef(null),r=yf(e);return ()=>{t.current||(t.current=true,r(),o.current=$S(()=>{t.current=false;}));}}function gY(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function mM(e){return Object.keys(e).map(t=>`${gY(t)}: ${e[t]};`).join(" ")}function uM(){return window.devicePixelRatio||1}var fM=(e,t)=>{let o=false;return e.removedNodes.length&&(o=Array.from(e.removedNodes).some(r=>t(r))),e.type==="attributes"&&t(e.target)&&(o=true),o};var yY={visibility:"visible !important"};function Sb(e){let t=ve.useRef(new Map);return [(i,a,l)=>{if(l){if(!t.current.get(l)){let c=document.createElement("div");t.current.set(l,c);}let s=t.current.get(l);s.setAttribute("style",mM({...e,backgroundImage:`url('${i}')`,backgroundSize:`${Math.floor(a)}px`,...yY})),s.removeAttribute("class"),s.parentElement!==l&&l.append(s);}return t.current.get(l)},i=>{let a=t.current.get(i);a&&i&&i.removeChild(a),t.current.delete(i);},i=>Array.from(t.current.values()).includes(i)]}function CM(e,t){return e.size===t.size?e:t}var hM=100,bM=100,SM={position:"relative",overflow:"hidden"},SY=e=>{let{zIndex:t=9,rotate:o=-22,width:r,height:n,image:i,content:a,font:l={},style:s,className:c,rootClassName:p,gap:m=[hM,bM],offset:d,children:f,inherit:u=true}=e,g={...SM,...s},[,y]=De(),{color:h=y.colorFill,fontSize:b=y.fontSizeLG,fontWeight:C="normal",fontStyle:S="normal",fontFamily:v="sans-serif",textAlign:x="center"}=l,[$=hM,R=bM]=m,T=$/2,P=R/2,N=d?.[0]??T,M=d?.[1]??P,E=ve__default.useMemo(()=>{let j={zIndex:t,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"},Y=N-T,J=M-P;return Y>0&&(j.left=`${Y}px`,j.width=`calc(100% - ${Y}px)`,Y=0),J>0&&(j.top=`${J}px`,j.height=`calc(100% - ${J}px)`,J=0),j.backgroundPosition=`${Y}px ${J}px`,j},[t,N,T,M,P]),[I,w]=ve__default.useState(),[B,k]=ve__default.useState(new Set),D=ve__default.useMemo(()=>[...I?[I]:[],...Array.from(B)],[I,B]),F=j=>{let Y=120,J=64;if(!i&&j.measureText){j.font=`${Number(b)}px ${v}`;let te=mi(a),ue=te.map(W=>{let H=j.measureText(W);return [H.width,H.fontBoundingBoxAscent+H.fontBoundingBoxDescent]});Y=Math.ceil(Math.max(...ue.map(W=>W[0]))),J=Math.ceil(Math.max(...ue.map(W=>W[1])))*te.length+(te.length-1)*Cb;}return [r??Y,n??J]},A=hb(),[L,q]=ve__default.useState(null),z=bb(()=>{let Y=document.createElement("canvas").getContext("2d");if(Y){let J=uM(),[te,ue]=F(Y),W=H=>{let[X,re]=A(H||"",o,J,te,ue,{color:h,fontSize:b,fontStyle:S,fontWeight:C,fontFamily:v,textAlign:x},$,R);q([X,re]);};if(i){let H=new Image;H.onload=()=>{W(H);},H.onerror=()=>{W(a);},H.crossOrigin="anonymous",H.referrerPolicy="no-referrer",H.src=i;}else W(a);}}),[G,_,Z]=Sb(E);useEffect(()=>{L&&D.forEach(j=>{G(L[0],L[1],j);});},[L,D]);let K=yf(j=>{j.forEach(Y=>{if(fM(Y,Z))z();else if(Y.target===I&&Y.attributeName==="style"){let J=Object.keys(SM);for(let te=0;te<J.length;te+=1){let ue=J[te],W=g[ue],H=I.style[ue];W&&W!==H&&(I.style[ue]=W);}}});});useMutateObserver(D,K),useEffect(z,[o,t,r,n,i,a,h,b,C,S,v,x,$,R,N,M]);let Q=ve__default.useMemo(()=>({add:j=>{k(Y=>{let J=new Set(Y);return J.add(j),CM(Y,J)});},remove:j=>{_(j),k(Y=>{let J=new Set(Y);return J.delete(j),CM(Y,J)});}}),[]),ee=u?ve__default.createElement(eT.Provider,{value:Q},f):f;return ve__default.createElement("div",{ref:w,className:Xi(c,p),style:g},ee)},xY=SY;var xM=forwardRef((e,t)=>{let{prefixCls:o,className:r,children:n,size:i,style:a={}}=e,l=Xi(`${o}-panel`,{[`${o}-panel-hidden`]:i===0},r),s=i!==void 0;return ve__default.createElement("div",{ref:t,className:l,style:{...a,flexBasis:s?i:"auto",flexGrow:s?0:1}},n)}),PY=()=>null,vM=PY;function IY(e){if(e&&typeof e=="object")return e;let t=!!e;return {start:t,end:t}}function xb(e){return ve.useMemo(()=>H0(e).filter(ve.isValidElement).map(o=>{let{props:r}=o,{collapsible:n,...i}=r;return {...i,collapsible:IY(n)}}),[e])}function vb(e,t){return ve.useMemo(()=>{let o=[];for(let r=0;r<e.length-1;r+=1){let n=e[r],i=e[r+1],a=t[r],l=t[r+1],{resizable:s=true,min:c,collapsible:p}=n,{resizable:m=true,min:d,collapsible:f}=i,u=s&&m&&(a!==0||!c)&&(l!==0||!d),g=p.end&&a>0||f.start&&l===0&&a>0,y=f.start&&l>0||p.end&&a===0&&l>0;o[r]={resizable:u,startCollapsible:!!g,endCollapsible:!!y};}return o},[t,e])}function Rp(e){return Number(e.slice(0,-1))/100}function Tb(e){return typeof e=="string"&&e.endsWith("%")}function $b(e,t){let o=e.map(u=>u.size),r=e.length,n=t||0,i=u=>u*n,[a,l]=ve__default.useState(()=>e.map(u=>u.defaultSize)),s=ve__default.useMemo(()=>{let u=[];for(let g=0;g<r;g+=1)u[g]=o[g]??a[g];return u},[r,a,o]),c=ve__default.useMemo(()=>{let u=[],g=0;for(let h=0;h<r;h+=1){let b=s[h];if(Tb(b))u[h]=Rp(b);else if(b||b===0){let C=Number(b);Number.isNaN(C)||(u[h]=C/n);}else g+=1,u[h]=void 0;}let y=u.reduce((h,b)=>h+(b||0),0);if(y>1||!g){let h=1/y;u=u.map(b=>b===void 0?0:b*h);}else {let h=(1-y)/g;u=u.map(b=>b===void 0?h:b);}return u},[s,n]),p=ve__default.useMemo(()=>c.map(i),[c,n]),m=ve__default.useMemo(()=>e.map(u=>Tb(u.min)?Rp(u.min):(u.min||0)/n),[e,n]),d=ve__default.useMemo(()=>e.map(u=>Tb(u.max)?Rp(u.max):(u.max||n)/n),[e,n]);return [ve__default.useMemo(()=>t?p:s,[p,t]),p,c,m,d,l]}function Rb(e,t,o,r,n){let i=e.map(b=>[b.min,b.max]),a=r||0,l=b=>b*a;function s(b,C){return typeof b=="string"?l(Rp(b)):b??C}let[c,p]=ve.useState([]),[m,d]=ve.useState(null),f=()=>o.map(l);return [b=>{p(f()),d({index:b,confirmed:false});},(b,C)=>{let S=null;if((!m||!m.confirmed)&&C!==0){if(C>0)S=b,d({index:b,confirmed:true});else for(let E=b;E>=0;E-=1)if(c[E]>0&&t[E].resizable){S=E,d({index:E,confirmed:true});break}}let v=S??m?.index??b,x=[...c],$=v+1,R=s(i[v][0],0),T=s(i[$][0],0),P=s(i[v][1],a),N=s(i[$][1],a),M=C;return x[v]+M<R&&(M=R-x[v]),x[$]-M<T&&(M=x[$]-T),x[v]+M>P&&(M=P-x[v]),x[$]-M>N&&(M=x[$]-N),x[v]+=M,x[$]-=M,n(x),x},()=>{d(null);},(b,C)=>{let S=f(),v=C==="start"?b:b+1,x=C==="start"?b+1:b,$=S[v],R=S[x];if($!==0&&R!==0)S[v]=0,S[x]+=$;else {let T=$+R,P=s(i[v][0],0),N=s(i[v][1],a),M=s(i[x][0],0),E=s(i[x][1],a),I=Math.max(P,T-E),B=(Math.min(N,T-M)-I)/2;S[v]-=B,S[x]+=B;}return n(S),S},m?.index]}function Ib(e){return typeof e=="number"&&!Number.isNaN(e)?Math.round(e):0}var DY=e=>{let{prefixCls:t,vertical:o,index:r,active:n,ariaNow:i,ariaMin:a,ariaMax:l,resizable:s,startCollapsible:c,endCollapsible:p,onOffsetStart:m,onOffsetUpdate:d,onOffsetEnd:f,onCollapse:u}=e,g=`${t}-bar`,[y,h]=useState(null),b=x=>{s&&x.currentTarget&&(h([x.pageX,x.pageY]),m(r));},C=x=>{if(s&&x.touches.length===1){let $=x.touches[0];h([$.pageX,$.pageY]),m(r);}};ve__default.useEffect(()=>{if(y){let x=P=>{let{pageX:N,pageY:M}=P,E=N-y[0],I=M-y[1];d(r,E,I);},$=()=>{h(null),f();},R=P=>{if(P.touches.length===1){let N=P.touches[0],M=N.pageX-y[0],E=N.pageY-y[1];d(r,M,E);}},T=()=>{h(null),f();};return window.addEventListener("touchmove",R),window.addEventListener("touchend",T),window.addEventListener("mousemove",x),window.addEventListener("mouseup",$),()=>{window.removeEventListener("mousemove",x),window.removeEventListener("mouseup",$),window.removeEventListener("touchmove",R),window.removeEventListener("touchend",T);}}},[y]);let S=o?R6:y0,v=o?oF:C0;return ve__default.createElement("div",{className:g,role:"separator","aria-valuenow":Ib(i),"aria-valuemin":Ib(a),"aria-valuemax":Ib(l)},ve__default.createElement("div",{className:Xi(`${g}-dragger`,{[`${g}-dragger-disabled`]:!s,[`${g}-dragger-active`]:n}),onMouseDown:b,onTouchStart:C}),c&&ve__default.createElement("div",{className:Xi(`${g}-collapse-bar`,`${g}-collapse-bar-start`),onClick:()=>u(r,"start")},ve__default.createElement(S,{className:Xi(`${g}-collapse-icon`,`${g}-collapse-start`)})),p&&ve__default.createElement("div",{className:Xi(`${g}-collapse-bar`,`${g}-collapse-bar-end`),onClick:()=>u(r,"end")},ve__default.createElement(v,{className:Xi(`${g}-collapse-icon`,`${g}-collapse-end`)})))},$M=DY;var BY=e=>{let{componentCls:t}=e;return {[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},gf={position:"absolute",top:"50%",left:{_skip_check_:true,value:"50%"},transform:"translate(-50%, -50%)"},OY=e=>{let{componentCls:t,colorFill:o,splitBarDraggableSize:r,splitBarSize:n,splitTriggerSize:i,controlItemBgHover:a,controlItemBgActive:l,controlItemBgActiveHover:s}=e,c=`${t}-bar`,p=`${t}-mask`,m=`${t}-panel`,d=e.calc(i).div(2).equal();return {[t]:{...ae(e),display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${c}`]:{flex:"none",position:"relative",userSelect:"none",[`${c}-dragger`]:{...gf,zIndex:1,"&::before":{content:'""',background:a,...gf},"&::after":{content:'""',background:o,...gf},[`&:hover:not(${c}-dragger-active)`]:{"&::before":{background:l}},"&-active":{zIndex:2,"&::before":{background:s}},[`&-disabled${c}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:a}},"&::after":{display:"none"}}},[`${c}-collapse-bar`]:{...gf,zIndex:e.zIndexPopupBase,background:a,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{background:l},"&:active":{background:s}},"&:hover, &:active":{[`${c}-collapse-bar`]:{opacity:1}}},[p]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${c}`]:{width:0,[`${c}-dragger`]:{cursor:"col-resize",height:"100%",width:i,"&::before":{height:"100%",width:n},"&::after":{height:r,width:n}},[`${c}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:true,value:"auto"},right:{_skip_check_:true,value:d},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:true,value:d},right:{_skip_check_:true,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${c}`]:{height:0,[`${c}-dragger`]:{cursor:"row-resize",width:"100%",height:i,"&::before":{width:"100%",height:n},"&::after":{width:r,height:n}},[`${c}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:d,transform:"translateX(-50%)"},"&-end":{top:d,bottom:"auto",transform:"translateX(-50%)"}}}},[m]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}},...BY(e)}}},FY=e=>{let t=e.splitBarSize||2,o=e.splitTriggerSize||6,r=e.resizeSpinnerSize||20,n=e.splitBarDraggableSize??r;return {splitBarSize:t,splitTriggerSize:o,splitBarDraggableSize:n,resizeSpinnerSize:r}},PM=oe("Splitter",e=>[OY(e)],FY);var LY=e=>{let{prefixCls:t,className:o,style:r,layout:n="horizontal",children:i,rootClassName:a,onResizeStart:l,onResize:s,onResizeEnd:c}=e,{getPrefixCls:p,direction:m,splitter:d}=ve__default.useContext(O),f=p("splitter",t),u=$e(f),[g,y,h]=PM(f,u),b=n==="vertical",C=m==="rtl",S=!b&&C,v=xb(i),[x,$]=useState(),R=Q=>{let{offsetWidth:ee,offsetHeight:j}=Q,Y=b?j:ee;Y!==0&&$(Y);},[T,P,N,M,E,I]=$b(v,x),w=vb(v,P),[B,k,D,F,A]=Rb(v,w,N,x,I),L=yf(Q=>{B(Q),l?.(P);}),q=yf((Q,ee)=>{let j=k(Q,ee);s?.(j);}),V=yf(()=>{D(),c?.(P);}),z=yf((Q,ee)=>{let j=F(Q,ee);s?.(j),c?.(j);}),G=Xi(f,o,`${f}-${n}`,{[`${f}-rtl`]:C},a,d?.className,h,u,y),_=`${f}-mask`,Z=ve__default.useMemo(()=>{let Q=[],ee=0;for(let j=0;j<v.length;j+=1)ee+=N[j],Q.push(ee);return Q},[N]),K={...d?.style,...r};return g(ve__default.createElement(ox,{onResize:R},ve__default.createElement("div",{style:K,className:G},v.map((Q,ee)=>{let j=ve__default.createElement(xM,{...Q,prefixCls:f,size:T[ee]}),Y=null,J=w[ee];if(J){let te=(Z[ee-1]||0)+M[ee],ue=(Z[ee+1]||100)-E[ee+1],W=(Z[ee-1]||0)+E[ee],H=(Z[ee+1]||100)-M[ee+1];Y=ve__default.createElement($M,{index:ee,active:A===ee,prefixCls:f,vertical:b,resizable:J.resizable,ariaNow:Z[ee]*100,ariaMin:Math.max(te,ue)*100,ariaMax:Math.min(W,H)*100,startCollapsible:J.startCollapsible,endCollapsible:J.endCollapsible,onOffsetStart:L,onOffsetUpdate:(X,re,ce)=>{let fe=b?ce:re;S&&(fe=-fe),q(X,fe);},onOffsetEnd:V,onCollapse:z});}return ve__default.createElement(ve__default.Fragment,{key:`split-panel-${ee}`},j,Y)}),typeof A=="number"&&ve__default.createElement("div",{"aria-hidden":true,className:Xi(_,`${_}-${n}`)}))))},IM=LY;var wM=IM;wM.Panel=vM;var HY=wM;var NM=ci,oo=(e,t,o)=>{let{onChange:r}=e??{};r?.(t.values,t,...o);},WY={Input:(e,t)=>ve__default.createElement(en,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{oo(e,t,o);}}),InputPassword:(e,t)=>ve__default.createElement(en.Password,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{oo(e,t,o);}}),TextArea:(e,t)=>ve__default.createElement(en.TextArea,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,style:{resize:"vertical"},...e,onChange:(...o)=>{oo(e,t,o);}}),InputNumber:(e,t)=>ve__default.createElement(qc,{placeholder:"\u8BF7\u8F93\u5165",controls:false,...e,onChange:(...o)=>{oo(e,t,o);}}),AutoComplete:(e,t)=>ve__default.createElement(ky,{placeholder:"\u8BF7\u8F93\u5165",allowClear:true,...e,onChange:(...o)=>{oo(e,t,o);}}),Mentions:(e,t)=>ve__default.createElement(hh,{placeholder:"\u8BF7\u8F93\u5165",...e,onChange:(...o)=>{oo(e,t,o);}}),Select:(e,t)=>ve__default.createElement(Ao,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{oo(e,t,o);}}),MultiSelect:(e,t)=>ve__default.createElement(Ao,{mode:"multiple",placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{oo(e,t,o);}}),Radio:(e,t)=>ve__default.createElement(oi.Group,{...e,onChange:(...o)=>{oo(e,t,o);}}),Checkbox:(e,t)=>ve__default.createElement(hr.Group,{...e,onChange:(...o)=>{oo(e,t,o);}}),Cascader:(e,t)=>ve__default.createElement(SC,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{oo(e,t,o);}}),DatePicker:(e,t)=>ve__default.createElement(NM,{allowClear:true,...e,onChange:(...o)=>{oo(e,t,o);}}),DateRangePicker:(e,t)=>ve__default.createElement(NM.RangePicker,{allowClear:true,...e,onChange:(...o)=>{oo(e,t,o);}}),TimePicker:(e,t)=>ve__default.createElement(Kh,{...e,onChange:(...o)=>{oo(e,t,o);}}),Slider:(e,t)=>ve__default.createElement(Yc,{...e,onChange:(...o)=>{oo(e,t,o);}}),Switch:(e,t)=>ve__default.createElement(Rh,{...e,onChange:(...o)=>{oo(e,t,o);}}),Upload:(e,t)=>ve__default.createElement(gb,{...e,onChange:(...o)=>{oo(e,t,o);}},e.children),Transfer:(e,t)=>ve__default.createElement(tb,{...e,onChange:(...o)=>{oo(e,t,o);}}),TreeSelect:(e,t)=>ve__default.createElement(rb,{placeholder:"\u8BF7\u9009\u62E9",allowClear:true,...e,onChange:(...o)=>{oo(e,t,o);}})},MM=WY;var VY=e=>{let{item:t=[],form:o,onSubmit:r,onReset:n,onValuesChange:i,hasSubmitBtn:a=true,hasResetBtn:l=true,submitProps:s,resetProps:c,numberOfInline:p=4,columnGapWidth:m=16,rowGapWidth:d=0,buttonLocation:f="nextLast",buttonWrapExtra:u,formClassName:g,formStyle:y,buttonWrapClassName:h,buttonWrapStyle:b,initialValues:C,allLabelClassName:S,allLabelStyle:v,hiddenField:x=true,...$}=e,{values:R,set:T,reset:P,fieldProps:N}=o,M=useMemoizedFn(q=>typeof q=="function"?q(R,o):q),E=useCreation(()=>t?.filter(q=>M(q.visible??true)),[t,R]),I=useCreation(()=>E?.map(q=>q.dataKey),[E]),w=useCreation(()=>E?.reduce((q,V)=>{let z=V.occupyColumns??1;return z>p?q+1:q+z},0),[E]),B=useCreation(()=>Math.ceil(w/p),[w,p]),k=useMemoizedFn((q,V)=>{let{label:z,labelClassName:G,labelStyle:_,required:Z=true}=q,K=Z&&!!V?.filter(Q=>Q?.required).length;return ve__default.createElement("span",{className:Xi(S,G),style:{width:80,display:"inline-block",...v,..._}},K&&ve__default.createElement("span",{style:{paddingRight:4,color:"#f82244"}},"*"),typeof z=="function"?z(R,o):z)}),D=useMemoizedFn((q,V)=>{let{occupyColumns:z=1,dataKey:G}=V;return ve__default.createElement("div",{key:G,style:{gridColumnEnd:`span ${z>p?1:z}`,overflow:"hidden"}},q)}),F=useCreation(()=>t?.map(q=>{let{label:V,dataKey:z,visible:G=true,extraLayout:_,rules:Z=[],dataType:K,occupyColumns:Q,dataProps:ee={},disabled:j=false,labelClassName:Y="",labelStyle:J={},onChange:te,...ue}=q,W=null,H={},X={},re=[];z&&(H=N[z]??{}),typeof ee=="function"?X={...ee(R,o),...H}:X={...ee,...H},typeof Z=="function"?re=Z(R,o):re=Z;let ce=Object.assign({style:{width:"100%"},extra:_?.bottom,...ue,name:z,label:k(q,re),rules:re,required:false},typeof K=="string"&&K==="Upload"&&{valuePropName:"fileList",getValueFromEvent:fe=>Array.isArray(fe)?fe:fe?.fileList},typeof K=="string"&&K==="Switch"&&{valuePropName:"checked"});return typeof K=="string"?W=MM[K](Object.assign({disabled:M(j)},typeof te=="function"&&{onChange:te},X),o):typeof K=="function"?W=ve__default.cloneElement(K(R,o),X):W=W=ve__default.cloneElement(K,X),M(G)?D(ve__default.createElement("div",{style:{display:"flex"}},ve__default.createElement("div",{style:{flex:1}},ve__default.cloneElement(ve__default.createElement(Os.Item,{validateTrigger:["onBlur","onChange"]}),ce,W)),_?.right&&ve__default.createElement(ve__default.Fragment,null,_?.right)),q):null}).filter(q=>!!q),[R,o,t]),A=useCreation(()=>ve__default.createElement("div",{className:h,style:Object.assign({display:"flex",...b},(f==="last"||f==="nextLast")&&{justifyContent:"flex-end"},f==="first"&&{justifyContent:"flex-start"})},a&&ve__default.createElement(Ge,{type:"primary",className:Xi({mr4x:l}),onClick:()=>{if(x){let q=Object.fromEntries(Object.entries(R)?.filter?.(([V])=>I.includes(V)));r?.(q,o);}else r?.(R,o);},...s},s?.text||"\u63D0\u4EA4"),l&&ve__default.createElement(Ge,{onClick:()=>{n?n?.():(P(),T(C));},...c},c?.text||"\u91CD\u7F6E"),u),[a,l,u,c,s]),L=useCreation(()=>{let q=B*p-w,V=[];if(q>1)for(let z=1;z<q;z++)V.push(ve__default.createElement("div",{key:"virtually"+z}));return V},[B,p]);return ve__default.createElement(Os,{form:o,initialValues:C,className:g,style:y,...$,onValuesChange:(q,V)=>{o.setStateOnly(V),i?.(V,o);},requiredMark:false},ve__default.createElement("div",{style:{display:"grid",gridTemplateRows:`repeat(${B})`,gridTemplateColumns:`repeat(${p}, 1fr)`,gridColumnGap:m,gridRowGap:d}},F,f==="next"&&A,L,f==="nextLast"&&A),(f==="first"||f==="last")&&A)},Nb=memo(VY);function Mb(e){let{children:t,errors:o,visible:r,changeVisible:n}=e,i=useMemo(()=>o?.filter(({errors:a})=>a.length),[o]);return useEffect(()=>{i?.length||r&&n(false);},[r,i,n]),ve__default.createElement(ot,{trigger:"click",open:r,color:"#FFEDED",overlayInnerStyle:{color:"#333",width:280},title:ve__default.createElement("summary",null,ve__default.createElement("div",{className:"mb2x pr d-x d-xc"},ve__default.createElement("span",{className:"red"},"\u8BF7\u5148\u4FEE\u590D\u4EE5\u4E0B ",i.length," \u9879\u9519\u8BEF"),ve__default.createElement(CloseOutlined,{style:{position:"absolute",right:0,color:"#acacac"},onClick:()=>n(false)})),ve__default.createElement("div",null,i.map(({errors:a,warnings:l},s)=>ve__default.createElement("div",{className:"ml2x d-x d-xstart",key:s},ve__default.createElement("span",null,s+1,"\u3001"),[...a,...l].map((c,p)=>ve__default.createElement("span",{key:p},c))))))},t)}function Cf(e){let t=useRef(e),[o]=Os.useForm(),[r,n]=useState(t.current),[i,a]=useState({}),l=useMemoizedFn(u=>{n(g=>isEqual(g,u)?g:u);}),s=useMemoizedFn((u,g)=>{l(g);}),c=useMemoizedFn(()=>o.getFieldsValue(true)),p=useMemoizedFn(u=>{o.setFieldsValue(u),l(u);}),m=useMemoizedFn(u=>{let g=o.getFieldsValue(true),y=typeof u=="function"?u(g):u;o.setFieldsValue(y),l(y);}),d=useMemoizedFn(u=>{l(u);}),f=useMemoizedFn(u=>{let g=u??t.current;o.resetFields(),o.setFieldsValue(g),l(g);});return Object.assign(o,{values:r,getValues:c,ValidateTooltip:Mb,fieldProps:i,setFieldProps:a,onValuesChange:s,set:m,syncValues:p,setStateOnly:d,reset:f})}var eZ="search";function tZ(e){return !e||typeof e!="object"||Array.isArray(e)?e:Object.keys(e).sort().reduce((t,o)=>(t[o]=e[o],t),{})}function oZ(e,t){return isEqualWith(e,t,function(r,n){if(isNaN$1(r)&&isNaN$1(n)||isNaN$1(r)&&isNil(n)||isNil(r)&&isNil(n)||isNil(r)&&isNaN$1(n))return true;if(typeof r=="function"&&typeof n=="function")return r.toString()===n.toString()})}function rZ(e,t,o){let r=typeof o=="string"?o:window.location.hash,[,n=""]=r.split("?"),a=new URLSearchParams(n).get(e);if(!a)return t||{};let l;try{l=JSON.parse(decodeURIComponent(a));}catch{l={};}return t&&typeof t=="object"&&!Array.isArray(t)&&l&&typeof l=="object"&&!Array.isArray(l)?{...t,...l}:l??(t||{})}function Sf(e={}){let{key:t=eZ,initialValue:o}=e,r=useRef(o),n=useCallback(c=>rZ(t,r.current,c),[t]),[i,a]=useState(()=>n()),l=useCallback(c=>{let p=n(c);a(m=>oZ(m,p)?m:p);},[n]),s=useCallback(c=>{let p=window.location.hash||"",[m="",d=""]=p.split("?"),f;if(typeof c>"u")f=null;else if(typeof c=="function"){let b=n();f=c(b);}else f=c;let u=new URLSearchParams(d);if(f==null)u.delete(t);else {let b=tZ(f);u.set(t,encodeURIComponent(JSON.stringify(b)));}let g=u.toString(),y=g?`${m}?${g}`:m;if(y===p)return;let h=`${window.location.pathname}${window.location.search}${y}`;window.history.replaceState(null,"",h),l(y);},[n,t,l]);return useEffect(()=>{let c=QY(()=>{l();},30);return window.addEventListener("hashchange",c),c(),()=>{c.cancel(),window.removeEventListener("hashchange",c);}},[l]),[i,s]}var cZ=e=>{let{item:t,locationSearchKey:o="search",onReset:r,initialValues:n,submitProps:i,...a}=e,l=Cf(n),{set:s}=l,[c,p]=Sf({key:o,initialValue:n}),m=useCallback(f=>{let u=uniq([...t.map(y=>y.dataKey??""),...Object.keys(c)]);return Object.assign({},f,...u.map(y=>({[y]:c[y]||c[y]===0?c[y]:n[y]})))},[t,c,n]);useEffect(()=>{s(m);},[m,s]);let d=()=>{r?.(),p(n);};return ve__default.createElement(Nb,{hasResetBtn:true,submitProps:{text:"\u67E5\u8BE2",...i},onReset:d,item:t,form:l,initialValues:n,...a})},pZ=memo(cZ);var uZ=e=>{let t=(o,r=[])=>o.reduce((n,i)=>Array.isArray(i)?n.concat(t(i,r)):n.concat(i),r);return t(e)},OM=(e,t=()=>true)=>{if(tc.isUnknownObject(e))throw new TypeError("Node is not a valid ReactNode or a collection of ReactNode.");let o=Children.toArray(e);return uZ(o.map(r=>tc.isFragment(r)?OM(r.props.children):r).filter(tc.notNil).filter(t))},tc={isSimple:e=>typeof e=="string"||typeof e=="boolean"||typeof e=="number",isFragment:e=>isValidElement(e)&&typeof e.type=="symbol",isNil:e=>e==null,notNil:e=>!tc.isNil(e),isUnknownObject:e=>typeof e=="object"&&tc.notNil(e)&&!Array.isArray(e)&&!isValidElement(e)};async function FM(e){if(navigator.clipboard&&navigator?.permissions?.query&&navigator?.clipboard?.writeText)await navigator.permissions.query({name:"clipboard-read"}),await navigator.clipboard.writeText(e);else {let t=document.createElement("textarea");t.className="mux-copy-input",document.body.appendChild(t),t.value=e,t.focus(),t.select();let o=document.execCommand("copy");if(o==="unsuccessful")throw new Error(String(o));document.body.removeChild(t);}}var fZ=e=>{let{content:t,children:o,onCopy:r,className:n,style:i}=e,a=OM(o)[0],l=async()=>{let s=typeof t=="function"?t():t;await FM(s??""),r&&r();};return tc.isSimple(a)?ve__default.createElement("span",{style:i,className:Xi("mux-copy",n),onClick:l},o):ve__default.cloneElement(a,{onClick:()=>{let{onClick:s}=a.props;l(),s&&s();}})},gZ=Object.assign(fZ,{copy:FM});var yZ=e=>{let{componentCls:t}=e;return {[t]:{...ae(e),display:"flex",gap:e.margin,[`&${t}-disabled`]:{opacity:.45,cursor:"not-allowed",userSelect:"none","*, *::before, *::after":{cursor:"not-allowed !important",pointerEvents:"none"}},[`&${t}-readonly`]:{[`${t}-nav-grid ${t}-nav-day-cell`]:{cursor:"default","&:hover":{color:"inherit",backgroundColor:"transparent"},"&.is-out:hover":{color:e.colorTextSecondary,backgroundColor:"transparent"},"&.is-today:hover":{backgroundColor:e.colorPrimaryBg,color:e.colorPrimary},"&.is-selected:hover":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid}},[`${t}-month-grid ${t}-month-grid-cell`]:{cursor:"default","&:hover":{backgroundColor:"transparent"},"&.is-out:hover":{backgroundColor:e.colorFillTertiary},"&.is-selected:hover":{backgroundColor:e.colorPrimaryBg}},[`${t}-hour-head ${t}-hour-head-cell`]:{"&.is-clickable":{cursor:"default"}}},[`${t}-left`]:{flexShrink:0},[`${t}-nav-label`]:{display:"flex",alignItems:"center",height:unit(e.controlHeightSM),fontSize:e.fontSize,fontWeight:e.fontWeightStrong,color:e.colorText,userSelect:"none",marginBottom:e.marginSM},[`${t}-nav-body`]:{width:unit(212),height:unit(240),backgroundColor:e.colorBgContainer,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:0,overflow:"hidden",display:"flex",flexDirection:"column"},[`${t}-nav-header`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"2px 8px",flexShrink:0,[`${t}-nav-year-oper`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",[`${t}-nav-arrow`]:{color:e.colorTextSecondary,transition:`color ${e.motionDurationFast}`,fontSize:e.fontSizeSM},"&:hover":{[`${t}-nav-arrow`]:{color:e.colorPrimary}}},[`${t}-nav-oper`]:{cursor:"pointer",color:e.colorTextSecondary,fontSize:e.fontSizeSM,transition:`color ${e.motionDurationFast}`,"&:hover":{color:e.colorPrimary}},[`${t}-nav-title`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:unit(e.controlHeightSM),padding:`0 ${unit(e.paddingXS)}`,fontSize:e.fontSize,fontWeight:e.fontWeightStrong,color:e.colorTextSecondary,borderRadius:0,cursor:"pointer",userSelect:"none",transition:`background-color ${e.motionDurationFast}`,"&:hover":{backgroundColor:e.colorPrimaryBg}}},[`${t}-nav-grid`]:{display:"grid",gridTemplateColumns:"repeat(7, minmax(0, 1fr))",textAlign:"center",flex:1,[`${t}-nav-week-cell`]:{height:unit(e.controlHeightSM),lineHeight:unit(e.controlHeightSM),fontSize:e.fontSizeSM,color:e.colorTextSecondary,backgroundColor:e.colorFillTertiary,userSelect:"none"},[`${t}-nav-day-cell`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:unit(e.controlHeightSM),width:unit(e.controlHeightSM),margin:"2px auto",lineHeight:unit(e.controlHeightSM),fontSize:e.fontSizeSM,color:e.colorText,borderRadius:"50%",cursor:"pointer",userSelect:"none",transition:`all ${e.motionDurationFast}`,"&:hover":{color:e.colorPrimary,backgroundColor:e.colorPrimaryBg},"&.is-out":{color:e.colorTextSecondary},"&.is-today":{backgroundColor:e.colorPrimaryBg,color:e.colorPrimary},"&.is-selected, &.is-selected:hover":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid},"&.is-disabled, &.is-disabled:hover":{opacity:e.opacityLoading,cursor:"not-allowed",color:e.colorText,backgroundColor:"transparent"}}},[`${t}-nav-months`]:{display:"grid",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gridTemplateRows:"repeat(4, minmax(0, 1fr))",flex:1,textAlign:"center",[`${t}-nav-month-cell`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",margin:`${unit(e.marginXXS)} ${unit(e.paddingXS)}`,fontSize:e.fontSize,borderRadius:0,cursor:"pointer",userSelect:"none",transition:`all ${e.motionDurationFast}`,"&:hover":{color:e.colorPrimary,backgroundColor:e.colorPrimaryBg},"&.is-today":{backgroundColor:e.colorPrimaryBg,color:e.colorPrimary},"&.is-selected, &.is-selected:hover":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid},"&.is-disabled, &.is-disabled:hover":{opacity:e.opacityLoading,cursor:"not-allowed",color:e.colorText,backgroundColor:"transparent"}}},[`${t}-nav-years`]:{display:"grid",gridTemplateColumns:"repeat(3, minmax(0, 1fr))",gridTemplateRows:"repeat(4, minmax(0, 1fr))",flex:1,textAlign:"center",[`${t}-nav-year-cell`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",margin:`${unit(e.marginXXS)} ${unit(e.paddingXS)}`,fontSize:e.fontSize,borderRadius:0,cursor:"pointer",userSelect:"none",transition:`all ${e.motionDurationFast}`,"&:hover":{color:e.colorPrimary,backgroundColor:e.colorPrimaryBg},"&.is-today":{backgroundColor:e.colorPrimaryBg,color:e.colorPrimary},"&.is-selected, &.is-selected:hover":{backgroundColor:e.colorPrimary,color:e.colorTextLightSolid},"&.is-disabled, &.is-disabled:hover":{opacity:e.opacityLoading,cursor:"not-allowed",color:e.colorText,backgroundColor:"transparent"}}},[`${t}-right`]:{flex:1,minWidth:0},[`${t}-header`]:{display:"flex",alignItems:"center",justifyContent:"space-between"},[`${t}-title`]:{display:"flex",alignItems:"center",height:unit(e.controlHeightSM),gap:e.marginXS,[`${t}-range-icon`]:{cursor:"pointer",color:e.colorTextSecondary,fontSize:e.fontSize,transition:`color ${e.motionDurationFast}`,"&:hover":{color:e.colorPrimary}},[`${t}-title-text`]:{fontSize:e.fontSize,fontWeight:e.fontWeightStrong,color:e.colorText,userSelect:"none"}},[`${t}-mode-tabs`]:{display:"flex",alignItems:"center",gap:e.marginXXS,background:e.colorFillTertiary,borderRadius:"16px",padding:e.paddingXXS,[`${t}-mode-tab`]:{padding:`${unit(e.paddingXXS)} ${unit(e.paddingSM)}`,fontSize:e.fontSizeSM,color:e.colorTextSecondary,cursor:"pointer",borderRadius:e.borderRadius,transition:`all ${e.motionDurationFast}`,userSelect:"none","&:hover":{color:e.colorText},"&.is-active":{background:e.colorBgContainer,color:e.colorPrimary,boxShadow:e.boxShadowTertiary,borderRadius:"16px"}}},[`${t}-top-view`]:{marginTop:e.marginSM},[`${t}-content`]:{minHeight:unit(240),marginTop:e.marginSM,borderRadius:0,border:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,overflow:"hidden"},[`${t}-hour-head`]:{display:"grid",gridTemplateColumns:`${unit(72)} minmax(0, 1fr)`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`${t}-hour-head-cell`]:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:e.marginXS,padding:`${unit(e.paddingXS)} 0`,borderLeft:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,fontSize:e.fontSizeSM,color:e.colorTextSecondary,userSelect:"none","&:first-child":{borderLeft:"0 none"},"&.is-selected":{color:e.colorPrimary},"&.is-clickable":{cursor:"pointer"},"&.is-disabled":{cursor:"not-allowed","> *":{opacity:e.opacityLoading,pointerEvents:"none"}}}},[`${t}-week-date`]:{fontSize:e.fontSizeLG,fontWeight:e.fontWeightStrong},[`${t}-hour-main`]:{maxHeight:unit(520),overflowY:"auto",scrollbarWidth:"none",scrollbarColor:"unset","&::-webkit-scrollbar":{display:"none",width:0,height:0},"&::-webkit-scrollbar-thumb":{backgroundColor:"transparent"},[`${t}-hour-row`]:{display:"grid",gridTemplateColumns:`${unit(72)} minmax(0, 1fr)`,borderBottom:`1px dashed ${e.colorBorderSecondary}`,"&:last-child":{borderBottom:"0 none"}},[`${t}-hour-cell`]:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:unit(e.controlHeightLG),padding:`0 ${unit(e.paddingXS)}`,color:e.colorTextSecondary,fontSize:e.fontSizeSM},[`${t}-hour-slot`]:{display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",minHeight:unit(e.controlHeightLG),height:"auto",padding:e.paddingXXS,borderLeft:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}},[`${t}-month-head`]:{display:"grid",gridTemplateColumns:"repeat(7, minmax(0, 1fr))",[`${t}-month-head-cell`]:{height:unit(e.controlHeight),lineHeight:unit(e.controlHeight),textAlign:"center",color:e.colorTextSecondary,borderRight:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,userSelect:"none","&:last-child":{borderRight:"0 none"}}},[`${t}-month-grid`]:{display:"grid",gridTemplateColumns:"repeat(7, minmax(0, 1fr))",[`${t}-month-grid-cell`]:{display:"flex",flexDirection:"column",height:unit(96),padding:`${unit(e.paddingXS)} 0`,borderRight:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderTop:`${unit(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,overflowY:"auto",cursor:"pointer",transition:`background-color ${e.motionDurationFast}`,"&:nth-child(7n)":{borderRight:"0 none"},"&:hover":{backgroundColor:e.colorFillTertiary},"&.is-out":{background:e.colorFillTertiary},"&.is-selected":{background:e.colorPrimaryBg},"&.is-disabled":{cursor:"not-allowed","> *":{opacity:e.opacityLoading,pointerEvents:"none"}}},[`${t}-month-grid-title`]:{display:"flex",alignItems:"center",height:unit(22),padding:`0 ${unit(e.paddingXS)}`,gap:e.marginXS,[`${t}-month-grid-date`]:{fontSize:e.fontSize,fontWeight:e.fontWeightStrong},[`${t}-month-grid-sub`]:{fontSize:e.fontSizeSM,color:e.colorPrimary}},[`${t}-month-grid-cont`]:{flex:1,minHeight:0,overflowY:"auto",padding:`0 ${unit(e.paddingXS)}`}},[`${t}-event`]:{display:"flex",alignItems:"center",gap:e.marginXXS,padding:`0 ${unit(e.paddingXXS)}`,marginBottom:e.marginXXS,fontSize:"10px",borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationFast}`,[`${t}-event-dot`]:{width:unit(6),height:unit(6),borderRadius:"50%",flexShrink:0},[`${t}-event-time`]:{color:e.colorTextTertiary,flexShrink:0},[`${t}-event-title`]:{color:e.colorText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"&.is-passed":{opacity:e.opacityLoading,textDecoration:"line-through"}}}}},zM=oe("CalendarPanel",e=>{let t=mergeToken(e,{});return [yZ(t)]});uo.extend(CZ);var hZ=["day","week","month"],AM="month",bZ=["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],SZ=["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],xZ=0,vZ=24;function xf(e){return typeof e!="string"?AM:hZ.indexOf(e)>-1?e:AM}function LM(e){let t=[];for(let o=0;o<7;o++)t.push(bZ[(o+e)%7]);return t}function HM(e){let t=[];for(let o=0;o<7;o++)t.push(SZ[(o+e)%7]);return t}function kb(){let e=[];for(let t=xZ;t<=vZ;t++)e.push(`${t<10?"0":""}${t}:00`);return e}function WM(e){let t=e.search(/h+/i);return t>=0?e.slice(0,t).trim():e}function vf(e){return e.clone().startOf("day")}function wp(e,t){let o=vf(e),r=(7+o.day()-t)%7;return o.subtract(r,"day")}function Db(e,t){return wp(e,t).add(6,"day").endOf("day")}function GM(e,t){let o=String(t||"").match(/^(\d{1,2}):(\d{1,2})$/);if(!o)return null;let r=+o[1],n=+o[2];return r<0||r>23||n<0||n>59?null:e.clone().hour(r).minute(n).second(0).millisecond(0)}function Bb(e,t){let o=GM(e,t);return o?uo().isAfter(o)?"common":"pass":"common"}function VM(e,t){let o=GM(e,t);return o?uo().isAfter(o):false}function Ml(e,t,o,r){let n=e.format(r.dateFormatter);if(r.disabledDays?.length&&r.disabledDays.indexOf(n)>-1||r.enabledDays?.length&&r.enabledDays.indexOf(n)<0)return true;let i=e.day();return !!(r.disabledWeeks?.length&&r.disabledWeeks.indexOf(i)>-1||r.enabledWeeks?.length&&r.enabledWeeks.indexOf(i)<0||t&&e.isBefore(t,"day")||o&&e.isAfter(o,"day"))}function Tf(e,t,o,r){let n=e;if(!n||!/\d/.test(n)){let a=uo();o&&a.isBefore(o,"day")?n=o.format(t):r&&a.isAfter(r,"day")?n=r.format(t):n=a.format(t);}let i=uo(n,t);return i.isValid()?i:uo()}function jM(e){let t={common:"#999",error:"#FF4D4F",pass:"#52C41A",warn:"#FAAD14",stress:"var(--color-brand)"};return t[e]}function Ob(e){return e.map((t,o)=>({hour:t,endHour:e[o+1]||"24:59",events:[]}))}var IZ=[{value:"day",text:"\u65E5"},{value:"week",text:"\u5468"},{value:"month",text:"\u6708"}];function _M(e){let{value:t,defaultValue:o,mode:r,defaultMode:n="month",min:i,max:a,formatter:l="YYYY-MM-DD",hideQuick:s=false,weekStart:c=0,disabledWeeks:p=[],disabledDays:m=[],enabledWeeks:d=[],enabledDays:f=[],eventMap:u={},onChange:g,onContextmenu:y,renderDetail:h,renderTopView:b,readonly:C=false,disabled:S=false,className:v,style:x}=e,$=C||S,{getPrefixCls:R}=useContext(O),T=R("calendar-panel"),[P,N,M]=zM(T),E=useMemo(()=>WM(l),[l]),I=useMemo(()=>{if(!i)return null;let U=uo(i);return U.isValid()?U:null},[i]),w=useMemo(()=>{if(!a)return null;let U=uo(a);return U.isValid()?U:null},[a]),B=useMemo(()=>{let U=(+c||0)%7;return U<0&&(U+=7),U},[c]),k=useMemo(()=>LM(B),[B]),D=useMemo(()=>HM(B),[B]),[F,A]=useState(()=>Tf(t??o??"",l,I,w).format(l));useEffect(()=>{if(t!==void 0){let U=Tf(t,l,I,w);A(U.format(l));}},[t,l,I,w]);let L=useMemo(()=>vf(Tf(F,l,I,w)),[F,l,I,w]),[q,V]=useState(()=>xf(r??n));useEffect(()=>{r!==void 0&&V(xf(r));},[r]);let z=r!==void 0?xf(r):q,G=useMemo(()=>({dateFormatter:E,disabledDays:m,enabledDays:f,disabledWeeks:p,enabledWeeks:d}),[E,m,f,p,d]),_=useCallback((U,pe)=>{let[se,he]=U.split(" ");g?.({mode:pe,selected:U,date:se||"",time:he||""});},[g]),Z=useCallback((U,pe)=>{let se=pe??z;t===void 0&&A(U),_(U,se);},[t,z,_]),K=useCallback((U,pe)=>{if(!pe)return [];let se=U.format("YYYY-MM-DD");return (u[se]||[]).map(le=>({...le,type:le.type||Bb(U,le.startTime)}))},[u]),Q=useCallback((U,pe,se)=>{let he=U.valueOf(),le=he>=pe.valueOf()&&he<=se.valueOf(),ie=U.isSame(L,"day"),me=U.isSame(uo(),"day"),Ce=Ml(U,I,w,G);return {dateText:String(U.date()),fullDate:U.format(E),subText:me?"\u4ECA\u5929":"",isCurrentRange:le,isToday:me,isSelected:ie,isDisabled:Ce,events:K(U,le)}},[L,I,w,G,K,E]),ee=useCallback((U,pe)=>pe==="day"?{start:U.clone().startOf("day"),end:U.clone().endOf("day")}:pe==="week"?{start:wp(U,B),end:Db(U,B)}:{start:U.clone().startOf("month"),end:U.clone().endOf("month")},[B]),j=useMemo(()=>{let U=ee(L,z);if(z==="day"){let le=Q(L,U.start,U.end),ie=kb(),me=Ob(ie);le.events.forEach(be=>{let _e=+be.startTime.split(":")[0];_e>=0&&_e<=24&&me[_e].events.push(be);});let Ce=(7+L.day()-B)%7;return {mode:"day",headerTitle:L.format("YYYY\u5E74M\u6708D\u65E5"),dayWeekText:D[Ce],weekTitles:D,cell:le,weekHours:ie,daySlots:me}}if(z==="week"){let le=[],ie=vf(U.start);for(;ie.isSame(U.end,"day")||ie.isBefore(U.end,"day");)le.push(Q(ie.clone(),U.start,U.end)),ie=ie.add(1,"day");let me=kb(),Ce=le.map(be=>{let _e=Ob(me);return be.events.forEach(Ut=>{let Ke=+Ut.startTime.split(":")[0];Ke>=0&&Ke<=24&&_e[Ke].events.push(Ut);}),{dateText:be.dateText,fullDate:be.fullDate,isToday:be.isToday,isSelected:be.isSelected,isDisabled:be.isDisabled,slots:_e}});return {mode:"week",headerTitle:`${U.start.format("YYYY\u5E74M\u6708D\u65E5")} - ${U.end.format("YYYY\u5E74M\u6708D\u65E5")}`,weekTitles:D,weekHours:me,weekColumns:Ce}}let pe=[],se=wp(U.start,B),he=Db(U.end,B);for(;se.isSame(he,"day")||se.isBefore(he,"day");)pe.push(Q(se.clone(),U.start,U.end)),se=se.add(1,"day");return {mode:"month",headerTitle:L.format("YYYY\u5E74M\u6708"),weekTitles:D,cells:pe}},[L,z,B,k,D,ee,Q]),Y=useCallback((U,pe=0)=>{if(!Ml(U,I,w,G))return U;let se=U.clone();for(let he=1;he<=366;he++){let le=se.clone().subtract(he,"day"),ie=se.clone().add(he,"day"),me=!Ml(le,I,w,G),Ce=!Ml(ie,I,w,G);if(pe<0){if(me)return le;if(Ce)return ie}else if(pe>0){if(Ce)return ie;if(me)return le}else {if(me)return le;if(Ce)return ie}}return U},[I,w,G]),J=useCallback(U=>{if(S)return;let pe=L.clone();z==="day"?pe=pe.add(U,"day"):z==="week"?pe=pe.add(U*7,"day"):pe=pe.add(U,"month");let se=Y(pe,U);Z(se.format(E));},[S,L,z,Y,E,Z]),te=useCallback(U=>{if(S||U===z)return;let pe=Y(L,0);r===void 0&&V(U),Z(pe.format(E),U);},[S,z,r,L,Y,E,Z]),ue=useCallback(U=>{$||Ml(U,I,w,G)||Z(U.format(E));},[$,I,w,G,E,Z]),[W,H]=useState(()=>L.clone()),[X,re]=useState("day");useEffect(()=>{H(L.clone());},[L]);let ce=useMemo(()=>{let U=W.clone().startOf("month"),pe=wp(U,B),se=[],he=pe.clone();for(let le=0;le<42;le++)se.push({date:he.clone(),isCurrentMonth:he.isSame(U,"month")}),he=he.add(1,"day");return se},[W,B]),fe=W.format("YYYY\u5E74M\u6708"),Pe=useRef(null);useEffect(()=>{if(z==="day"||z==="week"){let U=Pe.current;if(!U)return;let pe=U.querySelector('[data-has-events="true"]');if(pe){let se=pe.offsetTop-U.offsetTop;U.scrollTop=se>0?se:0;}}},[z,j]);let we=useCallback((U,pe)=>{if(h)return null;let se=U.type||Bb(pe,U.startTime),he=U.endTime?VM(pe,U.endTime):false,le=U.color||jM(se);return ve__default.createElement("div",{key:`${U.startTime}-${U.title}`,className:Xi(`${T}-event`,{"is-passed":he}),style:{"--mux-cal-panel-event-color":le}},ve__default.createElement("span",{className:`${T}-event-dot`,style:{backgroundColor:le}}),ve__default.createElement("span",{className:`${T}-event-time`},U.startTime),ve__default.createElement("span",{className:`${T}-event-title`},U.title))},[h]),ye=useCallback((U,pe)=>h?h(U,pe):null,[h]),ge=useCallback((U,pe,se,he,le)=>{if($||le||!y)return;y({mode:U,date:pe,startTime:se||"",endTime:he||""});},[$,y]),xe=j.headerTitle,Te=()=>{if(j.mode!=="day")return null;let{daySlots:U,weekHours:pe,cell:se,headerTitle:he,dayWeekText:le}=j,ie=L;return ve__default.createElement(ve__default.Fragment,null,ve__default.createElement("div",{className:`${T}-hour-head`},ve__default.createElement("div",{className:`${T}-hour-head-cell`},"GMT+08"),ve__default.createElement("div",{className:`${T}-hour-head-cell`},ve__default.createElement("span",null,he),ve__default.createElement("span",null,le))),ve__default.createElement("div",{className:`${T}-hour-main`,ref:Pe},pe.map((me,Ce)=>{let be=U[Ce];return ve__default.createElement("div",{className:`${T}-hour-row`,key:me},ve__default.createElement("div",{className:`${T}-hour-cell`},me),ve__default.createElement("div",{className:`${T}-hour-slot`,"data-has-events":be?.events?.length?"true":"false",onContextMenu:_e=>{_e.preventDefault(),ge("day",se.fullDate,be?.hour,be?.endHour,se.isDisabled);}},h?ye({events:be?.events||[],mode:"day",date:se.fullDate,startTime:be?.hour,endTime:be?.endHour,disabled:se.isDisabled},ie):be?.events?.map(_e=>we(_e,ie))))})))},Se=()=>{if(j.mode!=="week")return null;let{weekColumns:U,weekHours:pe,weekTitles:se}=j;return ve__default.createElement(ve__default.Fragment,null,ve__default.createElement("div",{className:`${T}-hour-head ${T}-week-head`,style:{gridTemplateColumns:"72px repeat(7, minmax(0, 1fr))"}},ve__default.createElement("div",{className:`${T}-hour-head-cell`},"GMT+08"),U.map((he,le)=>ve__default.createElement("div",{key:he.fullDate,className:Xi(`${T}-hour-head-cell`,{"is-selected":he.isSelected,"is-disabled":he.isDisabled,"is-clickable":!he.isDisabled}),style:{flexDirection:"column",gap:0},onClick:()=>{$||he.isDisabled||ue(uo(he.fullDate));}},ve__default.createElement("span",null,se[le]),ve__default.createElement("span",{className:`${T}-week-date`},he.dateText)))),ve__default.createElement("div",{className:`${T}-hour-main`,ref:Pe},pe.map((he,le)=>ve__default.createElement("div",{className:`${T}-hour-row ${T}-week-row`,style:{gridTemplateColumns:"72px repeat(7, minmax(0, 1fr))"},key:he},ve__default.createElement("div",{className:`${T}-hour-cell`},he),U.map(ie=>{let me=ie.slots[le],Ce=uo(ie.fullDate);return ve__default.createElement("div",{key:ie.fullDate,className:`${T}-hour-slot`,"data-has-events":me?.events?.length?"true":"false",onContextMenu:be=>{be.preventDefault(),ge("week",ie.fullDate,me?.hour,me?.endHour,ie.isDisabled);}},h?ye({events:me?.events||[],mode:"week",date:ie.fullDate,startTime:me?.hour,endTime:me?.endHour,disabled:ie.isDisabled},Ce):me?.events?.map(be=>we(be,Ce)))})))))},de=()=>{if(j.mode!=="month")return null;let{cells:U,weekTitles:pe}=j;return ve__default.createElement(ve__default.Fragment,null,ve__default.createElement("div",{className:`${T}-month-head`},pe.map(se=>ve__default.createElement("div",{className:`${T}-month-head-cell`,key:se},se))),ve__default.createElement("div",{className:`${T}-month-grid`},U.map(se=>{let he=uo(se.fullDate);return ve__default.createElement("div",{key:se.fullDate,className:Xi(`${T}-month-grid-cell`,{"is-out":!se.isCurrentRange,"is-selected":se.isSelected,"is-disabled":se.isDisabled}),onContextMenu:le=>{le.preventDefault(),ge("month",se.fullDate,"","",se.isDisabled);},onClick:()=>{$||se.isDisabled||Z(se.fullDate);},onDoubleClick:()=>{$||se.isDisabled||(Z(se.fullDate),te("day"));}},ve__default.createElement("div",{className:`${T}-month-grid-title`},ve__default.createElement("span",{className:`${T}-month-grid-date`},se.dateText),se.subText&&ve__default.createElement("span",{className:`${T}-month-grid-sub`},se.subText)),ve__default.createElement("div",{className:`${T}-month-grid-cont`},h?ye({events:se.events,mode:"month",date:se.fullDate,disabled:se.isDisabled},he):se.events.map(le=>we(le,he))))})))};return P(ve__default.createElement("div",{className:Xi(N,M,T,{[`${T}-disabled`]:S,[`${T}-readonly`]:C},v),style:x},!s&&ve__default.createElement("div",{className:`${T}-left`},ve__default.createElement("div",{className:`${T}-nav-label`},"\u5BFC\u822A\u65E5\u5386"),ve__default.createElement("div",{className:`${T}-nav-body`},ve__default.createElement("div",{className:`${T}-nav-header`},X==="day"&&ve__default.createElement(ve__default.Fragment,null,ve__default.createElement("span",{className:`${T}-nav-year-oper`,onClick:()=>{S||H(U=>U.clone().subtract(1,"year"));}},ve__default.createElement(DoubleLeftOutlined,{className:`${T}-nav-arrow`})),ve__default.createElement(LeftOutlined,{className:`${T}-nav-oper`,onClick:()=>{S||H(U=>U.clone().subtract(1,"month"));}}),ve__default.createElement("span",{className:`${T}-nav-title`,onClick:()=>{S||re("month");}},fe),ve__default.createElement(RightOutlined,{className:`${T}-nav-oper`,onClick:()=>{S||H(U=>U.clone().add(1,"month"));}}),ve__default.createElement("span",{className:`${T}-nav-year-oper`,onClick:()=>{S||H(U=>U.clone().add(1,"year"));}},ve__default.createElement(DoubleRightOutlined,{className:`${T}-nav-arrow`}))),X==="month"&&ve__default.createElement(ve__default.Fragment,null,ve__default.createElement(LeftOutlined,{className:`${T}-nav-oper`,onClick:()=>{S||H(U=>U.clone().subtract(1,"year"));}}),ve__default.createElement("span",{className:`${T}-nav-title`,onClick:()=>{S||re("year");}},W.format("YYYY\u5E74")),ve__default.createElement(RightOutlined,{className:`${T}-nav-oper`,onClick:()=>{S||H(U=>U.clone().add(1,"year"));}})),X==="year"&&ve__default.createElement(ve__default.Fragment,null,ve__default.createElement(LeftOutlined,{className:`${T}-nav-oper`,onClick:()=>{S||H(U=>U.clone().subtract(10,"year"));}}),ve__default.createElement("span",{className:`${T}-nav-title`},(()=>{let U=W.year(),pe=U-U%10-1,se=pe+11;return `${pe}\u5E74-${se}\u5E74`})()),ve__default.createElement(RightOutlined,{className:`${T}-nav-oper`,onClick:()=>{S||H(U=>U.clone().add(10,"year"));}}))),X==="day"&&ve__default.createElement("div",{className:`${T}-nav-grid`},k.map(U=>ve__default.createElement("div",{className:`${T}-nav-week-cell`,key:U},U)),ce.map(({date:U,isCurrentMonth:pe})=>{let se=U.isSame(L,"day"),he=U.isSame(uo(),"day"),le=Ml(U,I,w,G);return ve__default.createElement("div",{key:U.format("YYYY-MM-DD"),className:Xi(`${T}-nav-day-cell`,{"is-out":!pe,"is-selected":se,"is-today":he,"is-disabled":le}),onClick:()=>{$||le||ue(U);}},U.date())})),X==="month"&&ve__default.createElement("div",{className:`${T}-nav-months`},Array.from({length:12},(U,pe)=>{let se=W.clone().month(pe).startOf("month"),he=W.year()===L.year()&&pe===L.month(),le=W.year()===uo().year()&&pe===uo().month(),ie=I&&se.endOf("month").isBefore(I,"day")||w&&se.startOf("month").isAfter(w,"day");return ve__default.createElement("span",{key:pe,className:Xi(`${T}-nav-month-cell`,{"is-selected":he,"is-today":le,"is-disabled":!!ie}),onClick:()=>{S||ie||(H(se),re("day"));}},pe+1)})),X==="year"&&ve__default.createElement("div",{className:`${T}-nav-years`},(()=>{let U=W.year(),pe=U-U%10-1;return Array.from({length:12},(se,he)=>{let le=pe+he,ie=le===L.year(),me=le===uo().year(),Ce=I&&le<I.year()||w&&le>w.year();return ve__default.createElement("span",{key:le,className:Xi(`${T}-nav-year-cell`,{"is-selected":ie,"is-today":me,"is-disabled":!!Ce}),onClick:()=>{S||Ce||(H(be=>be.clone().year(le)),re("month"));}},le)})})()))),ve__default.createElement("div",{className:`${T}-right`},ve__default.createElement("div",{className:`${T}-header`},ve__default.createElement("div",{className:`${T}-title`},ve__default.createElement(LeftOutlined,{className:`${T}-range-icon`,onClick:()=>J(-1)}),ve__default.createElement("span",{className:`${T}-title-text`},xe),ve__default.createElement(RightOutlined,{className:`${T}-range-icon`,onClick:()=>J(1)})),ve__default.createElement("div",{className:`${T}-mode-tabs`},IZ.map(U=>ve__default.createElement("div",{key:U.value,className:`${T}-mode-tab${z===U.value?" is-active":""}`,onClick:()=>te(U.value)},U.text)))),b&&ve__default.createElement("div",{className:`${T}-top-view`},b(F)),ve__default.createElement("div",{className:`${T}-content`},z==="day"&&Te(),z==="week"&&Se(),z==="month"&&de()))))}_M.displayName="CalendarPanel";var wZ=_M;var NZ=e=>{let{componentCls:t}=e;return {[t]:{...ae(e),display:"flex",flexDirection:"column",width:"fit-content",maxWidth:"100%",border:`1px solid ${e.colorBorderSecondary}`,borderRadius:e.borderRadiusLG,overflow:"hidden",backgroundColor:e.colorBgContainer,fontSize:e.fontSize,[`${t}-toolbar`]:{display:"flex",alignItems:"center",justifyContent:"flex-end",padding:`${e.paddingXS}px ${e.paddingSM}px`,borderBottom:`1px solid ${e.colorBorderSecondary}`,backgroundColor:e.colorBgContainer},[`${t}-content`]:{display:"flex",width:"100%",overflow:"hidden"},[`${t}-left`]:{flexShrink:0,borderRight:`1px solid ${e.colorBorderSecondary}`,display:"flex",flexDirection:"column",zIndex:2,backgroundColor:e.colorBgContainer},[`${t}-left-header`]:{display:"flex",alignItems:"flex-end",borderBottom:`1px solid ${e.colorBorderSecondary}`,minHeight:65,padding:`${e.paddingXS}px 0`},[`${t}-left-header-cell`]:{padding:`0 ${e.paddingSM}px`,color:e.colorTextSecondary,fontWeight:500,fontSize:e.fontSize,whiteSpace:"nowrap","&.is-group":{width:100,textAlign:"left"},"&.is-name":{flex:1,width:200,textAlign:"left"},"&.is-merged":{alignSelf:"stretch",display:"flex",alignItems:"flex-end",margin:`-${e.paddingXS}px 0`,paddingBottom:e.paddingXS,borderRight:`1px solid ${e.colorBorderSecondary}`}},[`${t}-left-body`]:{flex:1,overflow:"hidden"},[`${t}-row`]:{display:"flex",alignItems:"center",borderBottom:`1px solid ${e.colorBorderSecondary}`,transition:`background-color ${e.motionDurationMid}`,"&:last-child":{borderBottom:"none"},"&.is-clickable":{cursor:"pointer","&:hover":{backgroundColor:e.colorFillQuaternary}},"&.is-cell-border":{alignItems:"stretch",borderBottom:"none",[`${t}-row-cell`]:{borderBottom:`1px solid ${e.colorBorderSecondary}`},[`${t}-row-cell-merged.is-merged-inner`]:{borderBottom:"none"}},"&.is-cell-border.is-last-row":{[`${t}-row-cell`]:{borderBottom:"none"}}},[`${t}-row-filler`]:{display:"flex",alignItems:"stretch"},[`${t}-row-group`]:{width:100,padding:`0 ${e.paddingSM}px`,color:e.colorText,fontWeight:500,textAlign:"left",flexShrink:0},[`${t}-row-name`]:{flex:1,width:200,padding:`0 ${e.paddingSM}px`,color:e.colorText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},[`${t}-row-cell`]:{padding:`0 ${e.paddingSM}px`,color:e.colorText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flexShrink:0,a:{color:e.colorPrimary,textDecoration:"none","&:hover":{textDecoration:"underline"}}},[`${t}-row-cell-merged`]:{position:"relative",overflow:"visible",borderRight:`1px solid ${e.colorBorderSecondary}`},[`${t}-row-cell-merged-content`]:{position:"absolute",top:0,left:0,right:0,display:"flex",alignItems:"center",justifyContent:"center",padding:`0 ${e.paddingSM}px`,textAlign:"center",lineHeight:e.lineHeight,overflow:"hidden",pointerEvents:"none"},[`${t}-right`]:{flex:"0 1 auto",overflow:"auto",position:"relative",minWidth:0},[`${t}-timeline`]:{position:"relative"},[`${t}-timeline-header`]:{position:"sticky",top:0,zIndex:1,backgroundColor:e.colorBgContainer,borderBottom:`1px solid ${e.colorBorderSecondary}`},[`${t}-month-row`]:{display:"flex"},[`${t}-month-cell`]:{display:"flex",alignItems:"center",justifyContent:"center",height:28,color:e.colorText,fontWeight:500,fontSize:e.fontSizeSM,borderRight:`1px solid ${e.colorBorderSecondary}`,backgroundColor:e.colorFillQuaternary,flexShrink:0,"&:last-child":{borderRight:"none"}},[`${t}-date-row`]:{display:"flex"},[`${t}-date-cell`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:36,color:e.colorTextSecondary,fontSize:e.fontSizeSM,flexShrink:0,borderRight:`1px solid ${e.colorBorderSecondary}`,"&:last-child":{borderRight:"none"},"&.is-today":{fontWeight:600},"&.is-weekend":{backgroundColor:e.colorFillQuaternary}},[`${t}-date-day`]:{lineHeight:1.2},[`${t}-date-week`]:{lineHeight:1.2,fontSize:e.fontSizeSM-1},[`${t}-timeline-body`]:{position:"relative"},[`${t}-timeline-row`]:{display:"flex",alignItems:"center",position:"relative",borderBottom:`1px solid ${e.colorBorderSecondary}`,"&:last-child":{borderBottom:"none"}},[`${t}-timeline-cell`]:{flexShrink:0,height:"100%",borderRight:`1px solid ${e.colorBorderSecondary}`,"&:nth-last-child(2)":{borderRight:"none"},"&.is-weekend":{backgroundColor:e.colorFillQuaternary}},[`${t}-bars-container`]:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",pointerEvents:"none"},[`${t}-bar`]:{position:"absolute",height:20,borderRadius:e.borderRadiusSM,display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.fontSizeSM-1,color:e.colorText,fontWeight:400,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:`0 ${e.paddingXXS}px`,pointerEvents:"auto",transition:`opacity ${e.motionDurationMid}`,"&.is-clickable":{cursor:"pointer","&:hover":{opacity:.8}}},[`${t}-today-line`]:{position:"absolute",top:0,bottom:0,width:1,zIndex:1,pointerEvents:"none"},[`${t}-group-first`]:{}}}},UM=oe("Gantt",e=>NZ(e));var MZ={0:"\u65E5",1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94",6:"\u516D"};function XM(e){let t=e?uo(e):uo();return (t.isValid()?t:uo()).format("YYYY-MM-DD")}function KM(e,t,o){let r=uo(e),n=uo(t),i=[],a=XM(o),l=r;for(;l.isBefore(n)||l.isSame(n,"day");){let s=l.format("YYYY-MM-DD"),c=l.day();i.push({date:s,day:l.date(),weekDay:MZ[c],isToday:s===a,isWeekend:c===0||c===6}),l=l.add(1,"day");}return i}function YM(e){if(e.length===0)return [];let t=[],o=uo(e[0].date).year(),r=uo(e[0].date).month(),n=0;for(let i of e){let a=uo(i.date),l=a.year(),s=a.month();s!==r||l!==o?(t.push({label:`${o}\u5E74${r+1}\u6708`,days:n}),o=l,r=s,n=1):n++;}return t.push({label:`${o}\u5E74${r+1}\u6708`,days:n}),t}function ZM(e){let t=uo().subtract(3,"day"),o=uo().add(30,"day");for(let r of e)for(let n of r.tasks)for(let i of n.bars){let a=uo(i.startDate),l=uo(i.endDate);a.isValid()&&a.isBefore(t)&&(t=a),l.isValid()&&l.isAfter(o)&&(o=l);}return [t.subtract(3,"day").format("YYYY-MM-DD"),o.add(3,"day").format("YYYY-MM-DD")]}function QM(e,t,o){let r=uo(t),n=uo(e.startDate),i=uo(e.endDate);if(!n.isValid()||!i.isValid())return null;let a=n.diff(r,"day"),l=i.diff(n,"day")+1;return {left:a*o,width:l*o}}function JM(e,t,o,r){let n=uo(e),i=uo(t),a=uo(XM(r)).startOf("day");return a.isBefore(n,"day")||a.isAfter(i,"day")?null:a.diff(n,"day")*o+o/2}var qM={blue:"#8BBFFF",green:"#95DE64",orange:"#FFB347",red:"#FF7875",yellow:"#FFE58F",purple:"#B37FEB",gray:"#D9D9D9",lightBlue:"#BAE7FF"};function e2(e){return e?qM[e]||e:qM.blue}var va=30,wf=20,DZ=()=>uo().subtract(7,"day").format("YYYY-MM-DD"),BZ=()=>uo().add(45,"day").format("YYYY-MM-DD");function o2({children:e,title:t,className:o,style:r}){let n=useRef(null),[i,a]=useState(false);return ve__default.createElement(ot,{title:t??e,open:i,color:"#fff",overlayInnerStyle:{color:"rgba(0, 0, 0, 0.88)"}},ve__default.createElement("div",{ref:n,className:o,style:r,onMouseEnter:()=>{let c=n.current;c&&c.scrollWidth>c.clientWidth&&a(true);},onMouseLeave:()=>{a(false);}},e))}function OZ(e){let{dataSource:t=[],startDate:o,endDate:r,columns:n,columnWidth:i=36,rowHeight:a=40,highlightToday:l=true,todayDate:s,showDateRangePicker:c=false,className:p,style:m,todayLineColor:d="#ff4d4f",groupTitle:f="\u4EFB\u52A1\u5206\u7EC4",taskTitle:u="\u4EFB\u52A1\u540D",onRowClick:g,onBarClick:y,onDateRangeChange:h,renderBar:b,dateRangePickerProps:C}=e,{getPrefixCls:S}=useContext(O),v=S("gantt"),[x,$,R]=UM(v),T=useRef(null),P=useRef(null),N=useRef(false),M=useRef(true),[E,I]=useState(()=>[o||DZ(),r||BZ()]);useEffect(()=>{o&&r&&I([o,r]);},[o,r]);let w=useCallback(W=>{if(W&&W[0]&&W[1]){let H=W[0].format("YYYY-MM-DD"),X=W[1].format("YYYY-MM-DD");I([H,X]),h?.(H,X);}},[h]),[B,k]=useMemo(()=>c?E:o&&r?[o,r]:ZM(t),[c,E,o,r,t]),D=!!(o&&r)||c,[F,A]=useState(()=>D?B:uo(B).subtract(va,"day").format("YYYY-MM-DD")),[L,q]=useState(()=>D?k:uo(k).add(va,"day").format("YYYY-MM-DD"));useEffect(()=>{D?(A(B),q(k)):(A(uo(B).subtract(va,"day").format("YYYY-MM-DD")),q(uo(k).add(va,"day").format("YYYY-MM-DD"))),M.current=true;},[B,k,D]);let V=useMemo(()=>KM(F,L,s),[F,L,s]),z=useMemo(()=>YM(V),[V]),G=useMemo(()=>l?JM(F,L,i,s):null,[l,F,L,i,s]),_=useMemo(()=>n?.filter(W=>W.visible!==false),[n]),Z=useMemo(()=>!!_?.some(W=>W.rowMerge),[_]),[K,Q]=useState(0);useEffect(()=>{let W=T.current;if(!W||!Z)return;let H=()=>Q(W.offsetHeight-W.clientHeight);H();let X=new ResizeObserver(H);return X.observe(W),()=>X.disconnect()},[Z]);let ee=useMemo(()=>{let W=[];for(let H of t)H.tasks.forEach((X,re)=>{W.push({group:H,task:X,taskIndex:re,isGroupFirst:re===0,isGroupLast:re===H.tasks.length-1,groupRowSpan:H.tasks.length});});return W},[t]),j=useRef(F);useEffect(()=>{let W=T.current;if(W&&M.current){let H=uo(B).diff(uo(F),"day");H>0&&(W.scrollLeft=H*i);let X=setTimeout(()=>{M.current=false;},150);return ()=>clearTimeout(X)}},[B,F,i]),useLayoutEffect(()=>{let W=T.current;if(W&&j.current!==F){let H=uo(j.current).diff(uo(F),"day");H>0&&(W.scrollLeft+=H*i);}j.current=F,N.current=false,!D&&W&&requestAnimationFrame(()=>{if(M.current||N.current)return;let{scrollLeft:H,scrollWidth:X,clientWidth:re}=W;X<=re||(H+re>=X-wf?(N.current=true,q(ce=>uo(ce).add(va,"day").format("YYYY-MM-DD"))):H<=wf&&(N.current=true,A(ce=>uo(ce).subtract(va,"day").format("YYYY-MM-DD"))));});},[F,L,i,D]),useEffect(()=>{let W=T.current,H=P.current;if(!W||!H)return;let X=()=>{if(H.scrollTop=W.scrollTop,M.current||N.current)return;let{scrollLeft:re,scrollWidth:ce,clientWidth:fe}=W;ce<=fe||(!D&&re+fe>=ce-wf&&(N.current=true,q(Pe=>uo(Pe).add(va,"day").format("YYYY-MM-DD"))),!D&&re<=wf&&(N.current=true,A(Pe=>uo(Pe).subtract(va,"day").format("YYYY-MM-DD"))));};return W.addEventListener("scroll",X),()=>W.removeEventListener("scroll",X)},[i,D]);let Y=useCallback((W,H,X)=>{g?.({group:W,task:H,taskIndex:X});},[g]),J=useCallback((W,H,X,re,ce)=>{W.stopPropagation(),y?.({group:H,task:X,bar:re,barIndex:ce});},[y]),te=V.length*i,ue=Xi(v,$,R,p);return x(ve__default.createElement("div",{className:ue,style:m},c&&ve__default.createElement("div",{className:`${v}-toolbar`},ve__default.createElement(ci.RangePicker,{value:[uo(E[0]),uo(E[1])],onChange:w,allowClear:false,size:"small",...C??{}})),ve__default.createElement("div",{className:`${v}-content`},ve__default.createElement("div",{className:`${v}-left`},ve__default.createElement("div",{className:`${v}-left-header`},_?_.map(W=>ve__default.createElement("div",{key:W.key,className:Xi(`${v}-left-header-cell`,{"is-merged":W.rowMerge}),style:{width:W.width,textAlign:W.align||"left",...W.width?{}:{flex:1,width:100}}},W.title)):ve__default.createElement(ve__default.Fragment,null,ve__default.createElement("div",{className:`${v}-left-header-cell is-group`},f),ve__default.createElement("div",{className:`${v}-left-header-cell is-name`},u))),ve__default.createElement("div",{className:`${v}-left-body`,ref:P},ee.map(({group:W,task:H,taskIndex:X,isGroupFirst:re,isGroupLast:ce,groupRowSpan:fe},Pe)=>ve__default.createElement("div",{key:H?.id||uniqueId("task-"),className:Xi(`${v}-row`,{[`${v}-group-first`]:re,"is-clickable":!!g,"is-cell-border":Z,"is-last-row":Pe===ee.length-1}),style:{height:a},onClick:()=>Y(W,H,X)},_?_.map(we=>{let ye={width:we.width,textAlign:we.align||"left",...Z?{lineHeight:`${a}px`}:{},...we.width?{}:{flex:1,minWidth:120}};return we.rowMerge?ve__default.createElement("div",{key:we.key,className:Xi(`${v}-row-cell`,`${v}-row-cell-merged`,{"is-merged-inner":!ce}),style:ye},re&&(we.textCenter?ve__default.createElement("div",{className:`${v}-row-cell-merged-content`,style:{height:fe*a}},we.render(H,W,{taskIndex:X,isGroupFirst:re})):we.render(H,W,{taskIndex:X,isGroupFirst:re}))):ve__default.createElement(o2,{key:we.key,className:`${v}-row-cell`,style:ye},we.render(H,W,{taskIndex:X,isGroupFirst:re}))}):ve__default.createElement(ve__default.Fragment,null,ve__default.createElement("div",{className:`${v}-row-group`},re?W.name:""),ve__default.createElement(o2,{className:`${v}-row-name`,title:H.name},H.name)))),Z&&K>0&&ve__default.createElement("div",{className:`${v}-row-filler`,style:{height:K}},_?.map(W=>ve__default.createElement("div",{key:W.key,className:Xi(`${v}-row-cell`,{[`${v}-row-cell-merged`]:W.rowMerge}),style:{width:W.width,...W.width?{}:{flex:1,minWidth:120}}}))))),ve__default.createElement("div",{className:`${v}-right`,ref:T},ve__default.createElement("div",{className:`${v}-timeline`,style:{width:te}},ve__default.createElement("div",{className:`${v}-timeline-header`},ve__default.createElement("div",{className:`${v}-month-row`},z.map((W,H)=>ve__default.createElement("div",{key:H,className:`${v}-month-cell`,style:{width:W.days*i}},W.label))),ve__default.createElement("div",{className:`${v}-date-row`},V.map(W=>ve__default.createElement("div",{key:W.date,className:Xi(`${v}-date-cell`,{"is-today":W.isToday&&l,"is-weekend":W.isWeekend}),style:{width:i,color:W.isToday&&l?d:void 0}},ve__default.createElement("span",{className:`${v}-date-day`},W.day),ve__default.createElement("span",{className:`${v}-date-week`},W.weekDay))))),ve__default.createElement("div",{className:`${v}-timeline-body`},G!==null&&ve__default.createElement("div",{className:`${v}-today-line`,style:{left:G,backgroundColor:d}}),ee.map(({group:W,task:H})=>ve__default.createElement("div",{key:H?.id||uniqueId("bar-"),className:`${v}-timeline-row`,style:{height:a}},V.map(X=>ve__default.createElement("div",{key:X.date,className:Xi(`${v}-timeline-cell`,{"is-weekend":X.isWeekend}),style:{width:i}})),ve__default.createElement("div",{className:`${v}-bars-container`},H.bars.map((X,re)=>{let ce=QM(X,F,i);if(!ce)return null;let fe=e2(X.color);return ve__default.createElement("div",{key:re,className:Xi(`${v}-bar`,{"is-clickable":!!y}),style:{left:ce.left,width:ce.width,backgroundColor:fe},onClick:Pe=>J(Pe,W,H,X,re)},b?b(X,H):X.name)}))))))))))}var FZ=OZ;var Nf=[{text:"\u5168\u65E5\u7A0B",value:"1234567"},{text:"\u5DE5\u4F5C\u65E5",value:"12345"},{text:"\u53CC\u4F11\u65E5",value:"67"}],Dl={1:"\u5468\u4E00",2:"\u5468\u4E8C",3:"\u5468\u4E09",4:"\u5468\u56DB",5:"\u5468\u4E94",6:"\u5468\u516D",7:"\u5468\u65E5"};function Ab(e,t){let o={},r=t==="range";return e.forEach(n=>{let i=(n.times||[]).flatMap(a=>(a.time||[]).map(l=>l+""));if(r){let a=n.date||n.week.join("");o[a]=i;}else n.week.forEach(a=>{o[a+""]=i;});}),o}function zZ(e,t){let o={},r=t==="range";return e.forEach(n=>{let i=n.times||[];if(r){let a=n.date||n.week.join("");o[a]=i;}else n.week.forEach(a=>{o[a+""]=i;});}),o}function AZ(e,t,o,r){let n=[];for(let i=e;i<t;i+=o)n.push({index:i,showText:!r||i%1===0,indexNext:i+o,showNextText:!r||(i+o)%1===0,milestone:i%6===0,zIndex:i/o+10});return n}var zb="YYYY-MM-DD";function Lb(){let e=uo(),t=e.startOf("week").add(1,"day"),o=e.endOf("week").add(1,"day");return [t.format(zb),o.format(zb)]}function LZ(e,t){let o=[],r=uo(e),n=uo(t);for(;r.isBefore(n)||r.isSame(n,"day");)o.push(r.format(zb)),r=r.add(1,"day");return o}function HZ(e,t,o){if(e&&e.length>0)return typeof e[0]=="object"?e.map(n=>{let i=n.value.map(a=>a+"");return {name:n.text||"",weeks:i}}):e.map(n=>{let i=n.value.map(l=>l+"");return {name:i.length>1?`${Dl[i[0]]}\u81F3${Dl[i[i.length-1]]}`:Dl[i[0]],weeks:i}});let r=t;if(r||(r="common"),r==="day")return [1,2,3,4,5,6,7].map(n=>({name:Dl[n+""],weeks:[n+""]}));if(r==="range"){let[n,i]=o&&o[0]&&o[1]?o:Lb();return LZ(n,i).map(a=>{let l=(uo(a).day()||7)+"";return {name:Dl[l],weeks:[a],date:a}})}return [{name:"\u5468\u4E00\u81F3\u5468\u4E94",weeks:["1","2","3","4","5"]},{name:"\u5468\u516D\u81F3\u5468\u65E5",weeks:["6","7"]}]}function Bl(e){return e.forEach(t=>{let o=t.hours,r=true;for(let n=0;n<o.length;n++){let i=o[n],a=o[n-1],l=o[n+1];i.firstSelected=false,i.endSelected=false,i.selected&&((a&&!a.selected||!a)&&(i.firstSelected=true),(l&&!l.selected||!l)&&(i.endSelected=true)),r=r&&i.selected;}t.selected=r;}),e}function kp(e,t,o,r,n,i,a,l){let s=t==="range",c=Ab(o,t),p=zZ(o,t),m=HZ(e,t,l),d=AZ(r,n,i,a),f=null;e&&e.length>0&&typeof e[0]=="object"&&(f=e);let u=m.map((g,y)=>{let h=s&&g.date||g.weeks[0],b=c[h]||[],C=p[h]||[],S=d.map((v,x)=>{let $=C.find(R=>(R.time||[]).map(T=>T+"").includes(v.index+""));return {...v,selected:b.indexOf(v.index+"")>-1,firstSelected:false,endSelected:false,color:$?.color??f?.[y]?.colors?.find(R=>R.time.includes(v.index))?.color,tips:$?.tips,readonly:$?.readonly}});return {name:g.name,weeks:g.weeks,date:g.date,hours:S,selected:false}});return Bl(u)}function Ol(e){return e.map(t=>({...t,hours:t.hours.map(o=>({...o}))}))}function WZ(e){let t=[],o=null;return e.forEach(r=>{if(!r.selected){o&&(t.push(o),o=null);return}!o||o.color!==r.color||o.tips!==r.tips||o.readonly!==r.readonly?(o&&t.push(o),o={time:[r.index],color:r.color,tips:r.tips,readonly:r.readonly}):o.time.push(r.index);}),o&&t.push(o),t}function r2(e,t){let o=e[t];if(!o||!o.selected)return [];let r=a=>a.selected&&a.color===o.color&&a.tips===o.tips&&a.readonly===o.readonly,n=t;for(;n>0&&r(e[n-1]);)n--;let i=t;for(;i<e.length-1&&r(e[i+1]);)i++;return [{time:e.slice(n,i+1).map(a=>a.index),color:o.color,tips:o.tips,readonly:o.readonly}]}function Dp(e,t){let o=t==="range",r=[];return e.forEach(n=>{let i=WZ(n.hours);if(o){let a=n.date?[uo(n.date).day()||7]:n.weeks.map(l=>+l);r.push({week:a,date:n.date,name:n.name,times:i});}else n.weeks.forEach(a=>{r.push({week:[+a],name:Dl[a],times:i});});}),r}function Bp(e,t,o,r,n,i){let a=Dp(e,i),l=[];for(let p=0;p<a.length;p++){let m=[],d=a[p].times.flatMap(f=>f.time||[]);d.forEach(f=>{let u=m.length;u===0?m.push(f):m[u-1]+1===f?m[u-1]=f:m.push(f);}),(o>0&&d.length<o||r>0&&d.length>r||t&&m.length>1)&&l.push(a[p].name||"");}let s="",c=l.length===0;return c||(n?s=n:(s=`\u8BF7\u4E3A${l.join("\u3001")}\u9009\u62E9`,o>0&&(s+=`\u81F3\u5C11 ${o} \u4E2A`),r>0&&(s+=`\u81F3\u591A ${r} \u4E2A`),t&&(s+="\u8FDE\u7EED\u7684"),s+="\u65F6\u6BB5")),{ok:c,msg:s,data:a}}var GZ=e=>{let{componentCls:t}=e;return {[t]:{...ae(e),"--color-brand":e.colorPrimary,"--color-brand-light":e.colorPrimaryBorderHover,"--color-border":e.colorBorderSecondary,"--border-radius":0,"--font-size":unit(e.fontSize),"--font-color":e.colorText,"--input-small-height":unit(e.hourInputSmallHeight),"--color-red":e.colorError,[`&${t}-border`]:{border:`${unit(e.lineWidth)} ${e.lineType} var(--color-border)`,padding:unit(e.padding),borderRadius:"var(--border-radius)"},[`&${t}-disabled`]:{opacity:.45,cursor:"not-allowed",userSelect:"none","*, *::before, *::after":{cursor:"not-allowed !important",pointerEvents:"none"}},[`${t}-range-header`]:{display:"flex",justifyContent:"flex-end",marginBottom:unit(e.marginSM)},[`${t}-range-picker`]:{width:"auto"},[`${t}-quick-ops`]:{display:"flex",alignItems:"center"},[`${t}-quick-label`]:{color:e.colorTextTertiary,marginRight:unit(e.marginSM),marginLeft:"16px"},[`${t}-quick-radio`]:{marginRight:unit(e.marginXL)},[`${t}-period`]:{display:"flex",flexDirection:"column",gap:unit(16),paddingTop:unit(16),overflowY:"auto",[`${t}-row`]:{listStyle:"none",margin:0,padding:`${unit(16)} 0`,borderBottom:`${unit(e.lineWidth)} ${e.lineType} var(--color-border)`,display:"flex",flexWrap:"nowrap",position:"relative","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"},"&:last-child":{borderBottom:"none"}}},[`${t}-all`]:{position:"relative",height:e.hourCellHeight,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,borderRadius:"var(--border-radius)",userSelect:"none"},[`${t}-all-tip`]:{position:"absolute",top:unit(-18),width:"100%",height:unit(18),lineHeight:unit(18),textAlign:"center",color:e.colorTextTertiary,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",padding:`0 ${unit(4)}`},[`${t}-all-btn`]:{fontSize:"var(--font-size)",padding:`0 ${unit(16)}`,borderRadius:"12px"},[`${t}-all-text`]:{width:"100%",fontSize:"var(--font-size)",color:e.colorTextSecondary,height:"var(--input-small-height)",display:"inline-flex",alignItems:"center",justifyContent:"center"},[`${t}-cell`]:{position:"relative",height:e.hourCellHeight,textAlign:"center",color:e.colorTextTertiary,lineHeight:unit(20),fontWeight:"bold",fontFamily:"Tahoma",flexShrink:0},[`${t}-cell-pointer`]:{cursor:"pointer"},[`${t}-cell-readonly`]:{cursor:"default"},[`${t}-cell-milestone`]:{[`${t}-cell-line`]:{height:unit(16)}},[`${t}-cell-selected`]:{[`${t}-cell-inner`]:{"&::before, &::after":{backgroundColor:"var(--color-brand)"}},[`${t}-cell-line`]:{[`${t}-cell-info`]:{color:e.colorTextLightSolid}}},[`${t}-cell-inner`]:{position:"relative",height:e.hourCellHeight,"&::before":{opacity:.1,content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",top:unit(-16),left:0,width:"100%",height:unit(16),backgroundColor:"transparent"}},[`${t}-cell-line`]:{position:"absolute",top:unit(13),left:0,width:0,height:unit(10),borderLeft:`${unit(e.lineWidth)} solid var(--color-brand-light)`,[`${t}-cell-info`]:{position:"absolute",top:unit(-31),left:"50%",width:unit(40),marginLeft:unit(-20),color:"var(--color-brand-light)",display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"}},[`${t}-cell-last`]:{[`${t}-cell-line`]:{[`${t}-cell-info`]:{color:"var(--color-brand-light)"}}},[`${t}-line-start, ${t}-line-end`]:{position:"absolute",top:0,width:0,height:e.hourCellHeight,borderLeft:`${unit(e.lineWidth)} solid var(--color-brand)`,"&::before":{content:'""',position:"absolute",top:0,right:unit(-3),width:0,height:0,borderLeft:`${unit(4)} solid transparent`,borderRight:`${unit(4)} solid transparent`,borderTop:`${unit(4)} solid var(--color-brand)`},[`${t}-line-info`]:{position:"absolute",top:unit(-16),left:unit(-12),width:unit(24),height:unit(16),backgroundColor:"var(--color-brand)",color:e.colorTextLightSolid,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:unit(2),whiteSpace:"nowrap"}},[`${t}-line-start`]:{left:0},[`${t}-line-end`]:{right:unit(-1)},[`${t}-line-hide`]:{display:"none"},[`${t}-line-info-text`]:{fontSize:unit(20),transform:"scale(0.5)",display:"inline-block"},[`${t}-tips`]:{position:"absolute",top:unit(26),height:unit(16),display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",zIndex:2,overflow:"hidden",[`${t}-tips-text`]:{display:"inline-block",color:"var(--color-brand)",fontSize:unit(12),fontWeight:"normal",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",padding:`0 ${unit(4)}`,userSelect:"none"}},[`${t}-oper`]:{display:"flex",alignItems:"center",gap:unit(e.marginSM),paddingTop:unit(16),minHeight:unit(e.controlHeightSM),borderTop:`${unit(e.lineWidth)} ${e.lineType} var(--color-border)`,"&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},[`${t}-oper-clear`]:{fontSize:"var(--font-size)",padding:`0 ${unit(16)}`,borderRadius:"12px"},[`${t}-oper-error`]:{display:"inline-flex",alignItems:"center",gap:unit(e.marginXXS),height:"var(--input-small-height)",color:"var(--color-red)",[`${t}-oper-error-icon`]:{fontSize:unit(e.fontSize),color:"var(--color-red)"}},[`${t}-oper-tip`]:{marginLeft:"auto",display:"inline-flex",alignItems:"center",height:"var(--input-small-height)",color:"var(--font-color)"}}}},VZ=()=>({cellHeight:36}),n2=oe("HourPanel",e=>{let t=mergeToken(e,{hourCellHeight:e.cellHeight,hourInputSmallHeight:12});return [GZ(t)]},VZ);var a2=forwardRef((e,t)=>{let{getPrefixCls:o}=useContext(O),r=o("hourPanel"),[n,i,a]=n2(r),{value:l,defaultValue:s=[],mode:c="common",groups:p,tip:m,min:d=0,max:f=24,step:u=1,hideDecimalText:g=false,readonly:y=false,disabled:h=false,border:b=false,continuous:C=false,minLength:S=0,maxLength:v=0,errorTip:x,showDateRange:$=false,maxHeight:R,onChange:T,onContextMenu:P,className:N,style:M,hasAllBtn:E=true,hasClearBtn:I=true,hasResetBtn:w=true,hasQuick:B=true}=e,k=y||h,[D,F]=useState(()=>Lb()),[A,L]=useState(()=>kp(p,c,l??s,d,f,u,g,D)),[q,V]=useState(""),z=useRef(l??s),G=useRef(A);G.current=A,useEffect(()=>{l!==void 0&&L(kp(p,c,l,d,f,u,g,D));},[l,p,c,d,f,u,g,D]);let _=7,Z=(f-d)/u+1,K=(100-_)/Z,Q=useRef(null),ee=useCallback(ye=>{let ge=Bp(ye,C,S,v,x,c);V(ge.msg),ge.ok?(l===void 0&&L(ye),T?.(ge.data)):l===void 0&&L(ye);},[C,S,v,x,c,l,T]),j=useCallback((ye,ge)=>!(!ge&&ye.selected&&ye.readonly),[]),Y=useCallback((ye,ge,xe)=>{let Te=G.current,Se=Te[ye].hours[ge];j(Se,xe)&&(Se.selected=xe,Bl(Te),L(Ol(Te)));},[j]),J=useCallback((ye,ge,xe)=>{if(k)return;if(ye.button!==0){ye.preventDefault();return}ye.preventDefault();let Te=G.current[ge].hours[xe];if(Te.selected&&Te.readonly)return;let Se=!Te.selected,de=G.current[ge].hours.map(U=>U.selected);Q.current={pIndex:ge,hourIndex:xe,selected:Se,isDragging:true,originalSelected:de},Y(ge,xe,Se);},[k,Y]),te=useCallback((ye,ge)=>{if(k)return;let xe=Q.current;if(!(!xe||!xe.isDragging))if(ye===xe.pIndex){let Te=Math.min(xe.hourIndex,ge),Se=Math.max(xe.hourIndex,ge),de=G.current[ye].hours;de.forEach((U,pe)=>{U.readonly||(U.selected=xe.originalSelected[pe]);});for(let U=Te;U<=Se;U++){let pe=de[U];j(pe,xe.selected)&&(pe.selected=xe.selected);}Bl(G.current),L(Ol(G.current));}else Y(ye,ge,xe.selected);},[k,Y,j]),ue=useCallback((ye,ge,xe)=>{if(ye.preventDefault(),!P)return;let Te=G.current[ge];if(!Te.hours[xe].selected)return;let de=r2(Te.hours,xe),U=c==="range"?{week:Te.date?[uo(Te.date).day()||7]:Te.weeks.map(pe=>+pe),date:Te.date,name:Te.name,times:de}:{week:Te.weeks.map(pe=>+pe),name:Te.name,times:de};P(U,ye);},[c,P]);useEffect(()=>{let ye=()=>{if(Q.current?.isDragging){Q.current.isDragging=false;let ge=G.current,xe=Bp(ge,C,S,v,x,c);V(xe.msg),xe.ok&&(l===void 0&&L(Ol(ge)),T?.(xe.data));}};return document.addEventListener("mouseup",ye),()=>{document.removeEventListener("mouseup",ye);}},[C,S,v,x,c,l,T]);let W=useCallback(ye=>{if(k)return;let ge=Ol(G.current),xe=ge[ye].hours.every(Te=>Te.selected||Te.readonly);ge[ye].hours.forEach(Te=>{Te.readonly||(Te.selected=!xe);}),Bl(ge),ee(ge);},[k,ee]),H=useCallback(()=>{if(k)return;let ye=Ol(G.current);ye.forEach(ge=>{ge.hours.forEach(xe=>{xe.readonly||(xe.selected=false);});}),Bl(ye),ee(ye);},[k,ee]),X=useCallback(()=>{if(k)return;let ye=kp(p,c,z.current,d,f,u,g,D);ee(ye);},[k,p,c,d,f,u,g,D,ee]),re=useCallback(ye=>{if(k)return;let ge=ye.split(""),xe=Ol(G.current);xe.forEach(Te=>{Te.weeks.every(de=>ge.includes(de))?Te.hours.forEach(de=>{de.readonly||(de.selected=true);}):Te.hours.forEach(de=>{de.readonly||(de.selected=false);});}),Bl(xe),ee(xe);},[k,ee]),ce=useCallback(ye=>{if(ye&&ye[0]&&ye[1]){let ge=ye[0].format("YYYY-MM-DD"),xe=ye[1].format("YYYY-MM-DD");F([ge,xe]);let Te=l===void 0?Dp(G.current,c):l,Se=kp(p,c,Te,d,f,u,g,[ge,xe]),de=Bp(Se,C,S,v,x,c);V(de.msg),l===void 0&&L(Se),T?.(de.data);}},[p,c,l,d,f,u,g,C,S,v,x,T]),fe=useMemo(()=>{let ye=Dp(A,c),ge=Ab(ye,c);for(let xe=0;xe<Nf.length;xe++){let Te=Nf[xe],Se=Te.value.split(""),de=true,U=false;if(Se.forEach(se=>{let he=ge[se]||[];he.length>0&&(U=true),he.length!==f-d&&(de=false);}),["1","2","3","4","5","6","7"].filter(se=>!Se.includes(se)).forEach(se=>{ge[se]&&ge[se].length>0&&(de=false);}),de&&U)return Te.value}return ""},[A,f,d]);useImperativeHandle(t,()=>({val:()=>Dp(G.current,c),check:()=>Bp(G.current,C,S,v,x,c)}),[C,S,v,x,c]);let Pe=A.length===7&&!k&&c!=="range",we=c==="range";return n(ve__default.createElement("div",{className:Xi(r,i,a,{[`${r}-border`]:b,[`${r}-disabled`]:h},N),style:M,onContextMenu:ye=>ye.preventDefault()},we&&$&&ve__default.createElement("div",{className:`${r}-range-header`},ve__default.createElement(ci.RangePicker,{className:`${r}-range-picker`,value:[uo(D[0]),uo(D[1])],onChange:ce,allowClear:false})),ve__default.createElement("div",{className:`${r}-period`,style:{maxHeight:R}},B&&Pe&&ve__default.createElement("div",{className:`${r}-quick-ops`},ve__default.createElement("span",{className:`${r}-quick-label`},"\u5FEB\u6377\u64CD\u4F5C\uFF1A"),Nf.map(ye=>ve__default.createElement(oi,{key:ye.value,className:`${r}-quick-radio`,value:ye.value,checked:fe===ye.value,onChange:()=>re(ye.value)},ye.text))),A.map((ye,ge)=>{let xe=[],Te=null;return ye.hours.forEach((Se,de)=>{if(!Se.selected||!Se.tips){Te&&(xe.push(Te),Te=null);return}!Te||Te.tips!==Se.tips||Te.end!==de-1?(Te&&xe.push(Te),Te={start:de,end:de,tips:Se.tips}):Te.end=de;}),Te&&xe.push(Te),ve__default.createElement("ul",{className:`${r}-row`,key:ge},k&&xe.map((Se,de)=>ve__default.createElement("div",{key:de,className:`${r}-tips`,style:{left:`${_+K/2+Se.start*K}%`,width:`${(Se.end-Se.start+1)*K}%`}},ve__default.createElement("span",{className:`${r}-tips-text`},Se.tips))),ve__default.createElement("li",{className:`${r}-all`,style:{width:`${_}%`,marginRight:`${K/2}%`}},ve__default.createElement("span",{className:`${r}-all-tip`},we&&ye.date?`${ye.date} `:null,"\u65F6\u95F4\u6BB5"),E&&!k?ve__default.createElement(Ge,{className:`${r}-all-btn`,size:"small",type:ye.selected?"primary":"default",onClick:()=>W(ge)},ye.name):ve__default.createElement("span",{className:`${r}-all-text`},ye.name)),ye.hours.map((Se,de)=>ve__default.createElement("li",{key:de,className:Xi(`${r}-cell`,{[`${r}-cell-milestone`]:Se.milestone,[`${r}-cell-selected`]:Se.selected,[`${r}-cell-readonly`]:Se.readonly,[`${r}-cell-pointer`]:!k&&!Se.readonly}),style:{width:`${K}%`,...Se.color?{"--color-brand":Se.color}:{}},"data-period":ge,"data-hour":de,onMouseDown:U=>J(U,ge,de),onMouseEnter:()=>te(ge,de),onContextMenu:U=>ue(U,ge,de)},ve__default.createElement("div",{className:`${r}-cell-inner`}),ve__default.createElement("div",{className:Xi(`${r}-line-start`,{[`${r}-line-hide`]:!Se.firstSelected}),style:{zIndex:Se.zIndex}},(Se.selected||Se.showText)&&ve__default.createElement("span",{className:`${r}-line-info`},ve__default.createElement("span",{className:`${r}-line-info-text`},Se.showText?Se.index:""))),ve__default.createElement("div",{className:Xi(`${r}-line-end`,{[`${r}-line-hide`]:!Se.endSelected}),style:{zIndex:Se.zIndex}},ve__default.createElement("span",{className:`${r}-line-info`},ve__default.createElement("span",{className:`${r}-line-info-text`},Se.showNextText?Se.indexNext:""))),ve__default.createElement("div",{className:`${r}-cell-line`},(Se.selected||Se.showText)&&ve__default.createElement("span",{className:`${r}-cell-info`},ve__default.createElement("span",{className:`${r}-line-info-text`},Se.showText?Se.index:""))))),ve__default.createElement("li",{className:Xi(`${r}-cell`,`${r}-cell-milestone`,`${r}-cell-last`,{[`${r}-cell-pointer`]:!k}),style:{width:`${K/2}%`}},ve__default.createElement("div",{className:`${r}-cell-line`},ve__default.createElement("span",{className:`${r}-cell-info`},ve__default.createElement("span",{className:`${r}-line-info-text`},f)))))})),!k&&(I||q||m)&&ve__default.createElement("div",{className:`${r}-oper`},I&&ve__default.createElement(Ge,{className:`${r}-oper-clear`,type:"default",size:"small",onClick:H},"\u6E05\u7A7A"),w&&ve__default.createElement(Ge,{className:`${r}-oper-clear`,type:"default",size:"small",onClick:X},"\u91CD\u7F6E"),q&&ve__default.createElement("span",{className:`${r}-oper-error`},ve__default.createElement(CloseCircleFilled,{className:`${r}-oper-error-icon`}),ve__default.createElement("span",{dangerouslySetInnerHTML:{__html:q}})),m&&ve__default.createElement("span",{className:`${r}-oper-tip`,style:{marginRight:`${K/2}%`}},m))))});a2.displayName="HourPanel";var KZ=a2;function zl(e,t){return e[t]}function mQ({item:e,index:t,itemKey:o,renderItem:r,renderDragHandle:n,className:i,style:a}){let l=zl(e,o),{attributes:s,listeners:c,setNodeRef:p,transform:m,transition:d,isDragging:f}=useSortable({id:l}),u=typeof n=="function",g={...a,transform:CSS.Transform.toString(m),transition:d||"transform 200ms ease",willChange:"transform",touchAction:"none",position:"relative",zIndex:f?10:void 0,cursor:u?void 0:"move",flexShrink:0,opacity:f?.3:1},y=u?n(e,t,{attributes:s,listeners:c,isDragging:f}):void 0;return ve__default.createElement("div",{ref:p,style:g,className:i,...u?{}:s,...u?{}:c},r(e,t,y))}function l2({items:e,onDragFinish:t,renderItem:o,renderDragHandle:r,itemKey:n="id",direction:i="horizontal",className:a,style:l,itemClassName:s,itemStyle:c,activationDistance:p=8}){let[m,d]=useState(null),f=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:p}})),u=i==="horizontal"?[restrictToHorizontalAxis]:[restrictToVerticalAxis],g=i==="horizontal"?horizontalListSortingStrategy:verticalListSortingStrategy,y=useMemo(()=>m==null?null:e.find(S=>zl(S,n)===m)??null,[m,e,n]);return ve__default.createElement(DndContext,{collisionDetection:closestCenter,sensors:f,modifiers:u,onDragStart:({active:S})=>{d(S.id);},onDragEnd:({active:S,over:v})=>{if(d(null),!v||S.id===v.id)return;let x=e.findIndex(N=>zl(N,n)===S.id),$=e.findIndex(N=>zl(N,n)===v.id);if(x===-1||$===-1)return;let R=e[x],T=e[$];if(!R||!T)return;let P=arrayMove(e,x,$);t?.({activeItem:R,overItem:T,oldIndex:x,newIndex:$,newItems:P});},onDragCancel:()=>{d(null);}},ve__default.createElement(SortableContext,{items:e.map(S=>zl(S,n)),strategy:g},ve__default.createElement("div",{className:a,style:l},e.map((S,v)=>ve__default.createElement(mQ,{key:String(zl(S,n)),item:S,index:v,itemKey:n,renderItem:o,renderDragHandle:r,className:s,style:c})))),ve__default.createElement(DragOverlay,null,y?ve__default.createElement("div",{className:s,style:{...c,flexShrink:0,cursor:"grabbing"}},o(y,e.findIndex(S=>zl(S,n)===m))):null))}function pn(e,t){return e[t]}function hQ({item:e,itemIndex:t,zone:o,zoneIndex:r,itemKey:n,itemClassName:i,itemStyle:a,renderItem:l,renderDragHandle:s}){let c=pn(e,n),{attributes:p,listeners:m,setNodeRef:d,transform:f,transition:u,isDragging:g}=useSortable({id:c,data:{type:"item",zoneId:o.id,itemId:c}}),y=typeof s=="function",h={...a,transform:CSS.Transform.toString(f),transition:u||"transform 180ms ease",willChange:"transform",touchAction:"none",position:"relative",zIndex:g?10:void 0,cursor:y?void 0:"move",opacity:g?.35:1},b=y?s(e,t,o,r,{attributes:p,listeners:m,isDragging:g}):void 0;return ve__default.createElement("div",{ref:d,className:i,style:h,...y?{}:p,...y?{}:m},l(e,t,o,r,b))}function Mf({zone:e,zoneIndex:t,itemKey:o,itemClassName:r,itemStyle:n,renderZoneHeader:i,renderItem:a,renderDragHandle:l}){let{setNodeRef:s,isOver:c}=useDroppable({id:e.id,data:{type:"zone",zoneId:e.id}});return ve__default.createElement("div",{className:e.className,style:{...e.style}},i?i(e,t):e.title?ve__default.createElement("div",null,e.title):null,ve__default.createElement("div",{ref:s,className:e.bodyClassName,style:{display:"flex",flexDirection:"column",gap:8,minHeight:40,transition:"background-color 160ms ease, border-color 160ms ease",...e.bodyStyle,backgroundColor:c?"#f5f9ff":e.bodyStyle?.backgroundColor}},ve__default.createElement(SortableContext,{items:e.items.map(p=>pn(p,o)),strategy:verticalListSortingStrategy},e.items.map((p,m)=>ve__default.createElement(hQ,{key:String(pn(p,o)),item:p,itemIndex:m,zone:e,zoneIndex:t,itemKey:o,itemClassName:r,itemStyle:n,renderItem:a,renderDragHandle:l})))))}function Ef(e,t,o){for(let r=0;r<e.length;r++){let n=e[r],i=n.items.findIndex(a=>pn(a,o)===t);if(i!==-1)return {zone:n,zoneIndex:r,itemIndex:i,item:n.items[i]}}return null}function c2(e="both"){return e==="both"||e==="in-only"}function p2(e="both"){return e==="both"||e==="out-only"}function d2(e){return e.map(t=>({...t,items:[...t.items]}))}function m2(e,t,o){if(e.length!==t.length)return false;for(let r=0;r<e.length;r++){if(e[r].id!==t[r].id||e[r].items.length!==t[r].items.length)return false;for(let n=0;n<e[r].items.length;n++)if(pn(e[r].items[n],o)!==pn(t[r].items[n],o))return false}return true}function MQ(e,t,o){if(!e)return null;let r=e.data.current;if(r?.zoneId!=null)return r.zoneId;for(let n of t)if(n.id===e.id||n.items.some(i=>pn(i,o)===e.id))return n.id;return null}function u2({zones:e,itemKey:t="id",onDragFinish:o,activationDistance:r=8,className:n,style:i,itemClassName:a,itemStyle:l,renderZoneHeader:s,renderItem:c,renderDragHandle:p}){let[m,d]=useState(null),[f,u]=useState(null),g=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:r}})),y=f??e,h=useMemo(()=>m==null?null:Ef(e,m,t),[m,e,t]),b=h?.item??null,C=useCallback(R=>{let T=pointerWithin(R);if(T.length>0)return T;let P=rectIntersection(R);return getFirstCollision(P,"id")?P:[]},[]);return ve__default.createElement(DndContext,{collisionDetection:C,sensors:g,onDragStart:({active:R})=>{d(R.id),u(d2(e));},onDragOver:({active:R,over:T})=>{if(!T)return;let P=f??e,N=Ef(P,R.id,t);if(!N)return;let M=MQ(T,P,t);if(M==null)return;let E=P.find(Z=>Z.id===N.zone.id),I=P.find(Z=>Z.id===M);if(!E||!I)return;let w=E.transferMode??"both",B=I.transferMode??"both",k=E.id!==I.id;if(k&&(!p2(w)||!c2(B)))return;let D=d2(P),F=D.findIndex(Z=>Z.id===E.id),A=D.findIndex(Z=>Z.id===I.id);if(F===-1||A===-1)return;let L=D[F].items,q=D[A].items,V=L.findIndex(Z=>pn(Z,t)===R.id);if(V===-1)return;if(!k){let Z=q.findIndex(Q=>pn(Q,t)===T.id);if(Z===-1||Z===V)return;let K=arrayMove(L,V,Z);D[F].items=K,m2(P,D,t)||u(D);return}let[z]=L.splice(V,1);if(!z)return;let G=q.length,_=q.findIndex(Z=>pn(Z,t)===T.id);_!==-1&&(G=_),q.splice(G,0,z),m2(P,D,t)||u(D);},onDragEnd:({active:R,over:T})=>{let P=f??e;if(d(null),u(null),!T)return;let N=Ef(e,R.id,t),M=Ef(P,R.id,t);if(!N||!M)return;let E=e.find(B=>B.id===N.zone.id),I=P.find(B=>B.id===M.zone.id);if(!E||!I)return;if(E.id!==I.id){let B=E.transferMode??"both",k=I.transferMode??"both";if(!p2(B)||!c2(k))return}N.zone.id===M.zone.id&&N.itemIndex===M.itemIndex||o?.({activeItem:N.item,fromZoneId:N.zone.id,toZoneId:M.zone.id,oldIndex:N.itemIndex,newIndex:M.itemIndex,newZones:P});},onDragCancel:()=>{d(null),u(null);}},ve__default.createElement("div",{className:n,style:i},y.map((R,T)=>ve__default.createElement(Mf,{key:String(R.id),zone:R,zoneIndex:T,itemKey:t,itemClassName:a,itemStyle:l,renderZoneHeader:s,renderItem:c,renderDragHandle:p}))),ve__default.createElement(DragOverlay,null,b?ve__default.createElement("div",{className:a,style:{...l,cursor:"grabbing"}},c(b,h?.itemIndex??-1,h?.zone,h?.zoneIndex??-1)):null))}var y2=createContext(null);function zp(e,t){return e[t]}function jQ(e="both"){return e==="both"||e==="in-only"}function _Q(e="both"){return e==="both"||e==="out-only"}function jb(e){return e.map(t=>({...t,items:[...t.items]}))}function kf(e,t){for(let[o,r]of e)for(let n=0;n<r.boards.length;n++){let i=r.boards[n],a=i.items.findIndex(l=>zp(l,r.itemKey)===t);if(a!==-1)return {scopeId:o,zone:i,zoneIndex:n,itemIndex:a,item:i.items[a]}}return null}function g2(e,t){for(let[o,r]of e)for(let n=0;n<r.boards.length;n++){let i=r.boards[n];if(i.id===t)return {scopeId:o,zone:i,zoneIndex:n,scope:r}}return null}function UQ(e,t){if(!e)return null;let o=e.data.current;if(o?.zoneId!=null)return o.zoneId;for(let[,r]of t)for(let n of r.boards)if(n.id===e.id||n.items.some(i=>zp(i,r.itemKey)===e.id))return n.id;return null}function C2({children:e,activationDistance:t=8}){let o=useRef(new Map),[r,n]=useState(null),[i,a]=useState(null),l=useSensors(useSensor(PointerSensor,{activationConstraint:{distance:t}})),s=useCallback((S,v)=>{o.current.set(S,v);},[]),c=useCallback(S=>{o.current.delete(S);},[]),p=useCallback((S,v)=>{o.current.set(S,v);},[]),m=useCallback(S=>o.current.get(S)?.boards??[],[]),d=useCallback(S=>i?i.get(S)??null:null,[i]),f=useCallback(S=>{let v=pointerWithin(S);if(v.length>0)return v;let x=rectIntersection(S);return getFirstCollision(x,"id")?x:[]},[]),u=({active:S})=>{n(S.id);let v=new Map;for(let[x,$]of o.current)v.set(x,jb($.boards));a(v);},g=({active:S,over:v})=>{if(!v||!i)return;let x=new Map;for(let[Q,ee]of o.current)x.set(Q,{...ee,boards:i.get(Q)??ee.boards});let $=kf(x,S.id);if(!$)return;let R=UQ(v,x);if(R==null)return;let T=g2(x,$.zone.id),P=g2(x,R);if(!T||!P)return;let N=T.zone,M=P.zone,E=N.id!==M.id,I=N.transferMode??"both",w=M.transferMode??"both";if(E&&(!_Q(I)||!jQ(w)))return;let B=new Map(i),k=jb(B.get($.scopeId)??[]),D=$.scopeId===P.scopeId?k:jb(B.get(P.scopeId)??[]),F=k.findIndex(Q=>Q.id===N.id),A=D.findIndex(Q=>Q.id===M.id);if(F===-1||A===-1)return;let L=k[F].items,q=D[A].items,V=x.get($.scopeId);if(!V)return;let z=L.findIndex(Q=>zp(Q,V.itemKey)===S.id);if(z===-1)return;if(!E&&$.scopeId===P.scopeId){let Q=q.findIndex(ee=>zp(ee,V.itemKey)===v.id);if(Q===-1||Q===z)return;k[F].items=arrayMove(L,z,Q),B.set($.scopeId,k),a(B);return}let[G]=L.splice(z,1);if(!G)return;let _=x.get(P.scopeId);if(!_)return;let Z=q.length,K=q.findIndex(Q=>zp(Q,_.itemKey)===v.id);K!==-1&&(Z=K),q.splice(Z,0,G),B.set($.scopeId,k),B.set(P.scopeId,D),a(B);},y=({active:S,over:v})=>{if(!i){n(null);return}let x=new Map;for(let[N,M]of o.current)x.set(N,{...M,boards:i.get(N)??M.boards});let $=kf(o.current,S.id),R=kf(x,S.id);if(n(null),!v||!$||!R){a(null);return}let T=o.current.get($.scopeId),P=o.current.get(R.scopeId);if(!T||!P){a(null);return}if($.scopeId===R.scopeId&&$.zone.id===R.zone.id&&$.itemIndex===R.itemIndex){a(null);return}T.onDragFinish?.({scopeId:$.scopeId,boards:i.get($.scopeId)??T.boards}),$.scopeId!==R.scopeId&&P.onDragFinish?.({scopeId:R.scopeId,boards:i.get(R.scopeId)??P.boards}),a(null);},h=()=>{n(null),a(null);},b=(()=>{if(r==null)return null;let S=new Map;for(let[$,R]of o.current)S.set($,{...R,boards:i?.get($)??R.boards});let v=kf(S,r);if(!v)return null;let x=S.get(v.scopeId);return x?x.renderItem(v.item,v.itemIndex,v.zone,v.zoneIndex):null})(),C=useMemo(()=>({registerScope:s,unregisterScope:c,updateScope:p,getScopeBoards:m,getPreviewScopeBoards:d,activeId:r}),[s,c,p,m,d,r]);return ve__default.createElement(y2.Provider,{value:C},ve__default.createElement(DndContext,{collisionDetection:f,sensors:l,onDragStart:u,onDragOver:g,onDragEnd:y,onDragCancel:h},e,ve__default.createElement(DragOverlay,null,b)))}function h2(){let e=useContext(y2);if(!e)throw new Error("SortableBoard must be used within SortableBoardProvider");return e}function S2({boardScopeId:e,boards:t,itemKey:o="id",onDragFinish:r,className:n,style:i,boardClassName:a,boardStyle:l,zoneWrapClassName:s,zoneWrapStyle:c,itemClassName:p,itemStyle:m,renderBoardHeader:d,renderZoneHeader:f,renderItem:u,renderDragHandle:g}){let{registerScope:y,unregisterScope:h,updateScope:b,getPreviewScopeBoards:C}=h2();useEffect(()=>(y(e,{scopeId:e,boards:t,itemKey:o,renderItem:u,onDragFinish:r}),()=>{h(e);}),[]),useEffect(()=>{b(e,{scopeId:e,boards:t,itemKey:o,renderItem:u,onDragFinish:r});},[e,t,o,u,r,b]);let S=useMemo(()=>C(e)??t,[e,t,C]);return ve__default.createElement("div",{className:n,style:i},S.map((v,x)=>ve__default.createElement("div",{key:String(v.id),className:v.className??a,style:{...l,...v.style}},d?d(v,x):v.title?ve__default.createElement("div",null,v.title):null,ve__default.createElement("div",{className:s,style:c},ve__default.createElement(Mf,{zone:v,zoneIndex:x,itemKey:o,itemClassName:p,itemStyle:m,renderZoneHeader:f,renderItem:u,renderDragHandle:g})))))}var XQ={SortableList:l2,SortableZones:u2,SortableBoard:S2,SortableBoardProvider:C2},KQ=XQ;var Bk={};Wk(Bk,{Formatter:()=>Kf,deleteByPathValue:()=>Fte,downloadGet:()=>vte,downloadPost:()=>Tte,enum2DataSource:()=>Rte,formatFileLength:()=>Ite,getByPathValue:()=>Bte,getEnumLabel:()=>Pte,parseHashParams:()=>$te,setByPathValue:()=>Ote,useIsFirstRender:()=>wte});var Dk=Vk(Ek());var vte=(e,t)=>{let o=t?`?${Dk.default.stringify(t,{arrayFormat:"indices",allowDots:true})}`:"";window.open(`${e}${o}`);},Tte=(e,t={})=>{let o=document.createElement("form");o.action=e,o.method="POST",o.target="_blank",o.style.visibility="hidden",Object.entries(t).forEach(([r,n])=>{if([void 0,null,"",NaN].includes(n)||Array.isArray(n)&&!n.length)return;let i=document.createElement("input");i.type="hidden",i.name=r,i.value=n,o.appendChild(i);}),document.body.appendChild(o),o.submit(),o.remove();};function $te(e){let t=typeof e=="string"?e:window.location.hash,[,o=""]=t.split("?"),r=new URLSearchParams(o),n={};return r.forEach((i,a)=>{try{let l=decodeURIComponent(i);n[a]=JSON.parse(l);}catch{try{n[a]=decodeURIComponent(i);}catch{n[a]=i;}}}),n}function Pte(e,t){return Object.entries(e).find(([,r])=>r===t)?.[0]}function Rte(e){return Object.keys(e).filter(t=>isNaN(+t)).map(t=>({label:t,value:e[t]}))}function Ite(e,t){switch(t.toUpperCase()){case "KB":return e*1024;case "MB":return e*1024*1024;case "GB":return e*1024*1024*1024;default:return null}}function wte(){let e=useRef(true);return e.current?(e.current=false,true):e.current}var Nte=new Set(["__proto__","prototype","constructor"]),Mte=/^[A-Za-z_$][A-Za-z0-9_$]*$/,Ete=/^(0|[1-9]\d*)$/,kte=4294967294;function An(e){return Nte.has(e)}function SS(e){return Mte.test(e)}function xS(e){if(!Ete.test(e))return false;let t=Number(e);return Number.isSafeInteger(t)&&t>=0&&t<=kte}function qf(e,t){return e!=null&&Object.prototype.hasOwnProperty.call(e,t)}function Xf(e){if(Array.isArray(e))return [...e];if(e&&typeof e=="object"){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null?{...e}:{...e}}return e}function Dte(e,t){let o=e[t];if(o!=='"'&&o!=="'")return null;let r=t+1,n="";for(;r<e.length;){let i=e[r];if(i==="\\"){if(r+1>=e.length)return null;n+=e[r+1],r+=2;continue}if(i===o)return {value:n,nextIndex:r+1};n+=i,r++;}return null}function vS(e){if(typeof e!="string"||e.length<2||e[0]!=="$")return null;let t=[],o=e.length,r=1;for(;r<o&&e[r]!=="."&&e[r]!=="[";)r++;let n=e.slice(0,r),i=n.slice(1);if(!i||!SS(i)||An(i))return null;for(t.push(n);r<o;){let a=e[r];if(a==="."){if(r++,r>=o)return null;let l=r;for(;r<o&&e[r]!=="."&&e[r]!=="[";)r++;let s=e.slice(l,r);if(!s||!SS(s)||An(s))return null;t.push(s);continue}if(a==="["){for(r++;r<o&&/\s/.test(e[r]);)r++;if(r>=o)return null;if(e[r]==='"'||e[r]==="'"){let c=Dte(e,r);if(!c)return null;let p=c.value;for(r=c.nextIndex;r<o&&/\s/.test(e[r]);)r++;if(r>=o||e[r]!=="]"||(r++,!p||An(p)))return null;t.push(p);continue}let l=r;for(;r<o&&e[r]!=="]";)r++;if(r>=o)return null;let s=e.slice(l,r).trim();if(r++,!s||!xS(s))return null;t.push(s);continue}return null}return t}function TS(e,t){if(typeof e!="string"||e.length<2||e[0]!=="$")return null;let o=e.slice(1);return !o||!SS(o)||An(o)?null:{container:t[o],runtimeKey:o}}function kk(e){return xS(e)?[]:{}}function Vl(e){return e!==null&&typeof e=="object"}function Bte(e,t){if(typeof t!="string"||!t.startsWith("$"))return t;let o=vS(t);if(!o||o.length===0)return;let r=TS(o[0],e);if(!r)return;let n=r.container;for(let i=1;i<o.length;i++){if(n==null||!Vl(n))return;let a=o[i];if(An(a)||!qf(n,a))return;n=n[a];}return n}function Ote(e,t,o){if(typeof t!="string"||!t.startsWith("$"))return e;let r=vS(t);if(!r||r.length<2)return e;let n=TS(r[0],e);if(!n)return e;let i=n.runtimeKey,a=e[i],l={...e},s=r[1],c;Vl(a)?c=Xf(a):c=kk(s),l[i]=c;let p=a,m=c;for(let f=1;f<r.length-1;f++){let u=r[f],g=r[f+1];if(An(u)||An(g))return e;let y=Vl(p)&&qf(p,u)?p[u]:void 0,h;Vl(y)?h=Xf(y):h=kk(g),m[u]=h,p=y,m=h;}let d=r[r.length-1];return An(d)?e:(m[d]=o,l)}function Fte(e,t,o={}){let{removeArrayItem:r=true}=o;if(typeof t!="string"||!t.startsWith("$"))return e;let n=vS(t);if(!n||n.length<2)return e;let i=TS(n[0],e);if(!i)return e;let a=i.runtimeKey,l=e[a];if(!Vl(l))return e;let s=l;for(let u=1;u<n.length;u++){let g=n[u];if(!Vl(s)||An(g)||!qf(s,g))return e;s=s[g];}let c={...e},p=Xf(l);c[a]=p;let m=l,d=p;for(let u=1;u<n.length-1;u++){let g=n[u],y=m[g];if(!Vl(y))return e;let h=Xf(y);d[g]=h,m=y,d=h;}let f=n[n.length-1];if(An(f))return e;if(Array.isArray(d)&&xS(f)){let u=Number(f);return u<0||u>=d.length?e:(r?d.splice(u,1):delete d[u],c)}return qf(d,f)?(delete d[f],c):e}var Kf={format2thround(e){e=`${e}`;let t=/(\d{1,3})(?=(?:\d{3})+\.)/g,o=/(\d{1,3})(?=(?:\d{3})+$)/g,r=e.indexOf(".")!==-1?t:o;return e=e.replace(r,"$1,"),e},format2number(e){let t=/,|%|元|¥/g;return Number(`${e}`.replace(t,""))},format(e,t){if(!t)return `${e}`;if(!isNaN(parseFloat(`${e}`))&&isFinite(+`${e}`)){if(e=Number(e),t?.ratio&&(e=e*t?.ratio),t?.decimal){let r=t?.truncable?Kf.truncate(e,t?.decimal):e.toFixed(t?.decimal);t?.decimal===2&&r.slice(-3)===".00"&&(r=t?.truncable?Kf.truncate(e,0):e.toFixed(0)),e=r;}t?.thousand&&(e=Kf.format2thround(e)),t?.unit&&(e=t?.position==="left"?t?.unit+e:e+t?.unit);}else t?.unit&&(e=t?.position==="left"?t?.unit+e:e+t?.unit);return t?.ouputnumber?Number(e):`${e}`},truncate(e,t=2){let o=`${e}`.split("."),r=o[0];return o[1]&&t>0&&(r+=`.${o[1].substr(0,t)}`),r},multiplyOperation(e,t){e=typeof e=="number"?e:NaN,t=typeof t=="number"?t:NaN;let o=(e||NaN)*(t||NaN);return isNaN(o)?void 0:o},dividerOperation(e,t){e=typeof e=="number"?e:NaN,t=typeof t=="number"?t:NaN;let o=(e||NaN)/(t||NaN);return isNaN(o)?void 0:o},formatTrueOrFalse(e){switch(e){case 0:return "\u5426";case 1:return "\u662F";default:return "-"}}};
|
|
356
|
+
export{Cg as Affix,cB as Alert,SB as Anchor,R3 as App,ky as AutoComplete,oz as Avatar,hz as Badge,MA as Breadcrumb,Ge as Button,bL as Calendar,wZ as CalendarPanel,JL as Card,cH as Carousel,SC as Cascader,hr as Checkbox,OH as ClapOverflow,l6 as Col,Fg as Collapse,R7 as ColorPicker,lr as ConfigProvider,gZ as Copy,ci as DatePicker,l9 as Descriptions,$C as Divider,KQ as Drag,C9 as Drawer,nl as Dropdown,hn as Empty,A9 as Flex,Os as Form,Nb as FormArea,FZ as Gantt,a6 as Grid,KZ as HourPanel,iG as Image,en as Input,qc as InputNumber,pG as Layout,jG as List,hh as Mentions,Hc as Menu,cV as Modal,cl as Pagination,IV as Popconfirm,Aa as Popover,lp as Progress,fj as QRCode,oi as Radio,$j as Rate,Wj as Result,Gj as Row,pZ as SearchArea,PC as Segmented,Ao as Select,Xn as Skeleton,Yc as Slider,XC as Space,wn as Spin,HY as Splitter,e_ as Statistic,R_ as Steps,Rh as Switch,$q as Table,yC as Tabs,kq as Tag,Xq as TimeOut,Kh as TimePicker,aX as Timeline,ot as Tooltip,fX as Tour,tb as Transfer,Ah as Tree,rb as TreeSelect,WK as Typography,gb as Upload,Bk as Utils,xY as Watermark,iV as message,yV as notification,Hq as theme,KB as unstableSetRender,cg as version};
|