diff --git a/assets/js/build/openapi-config.ts b/assets/js/build/openapi-config.ts index f6da51ea7..100d9078e 100644 --- a/assets/js/build/openapi-config.ts +++ b/assets/js/build/openapi-config.ts @@ -5,7 +5,7 @@ const config: ConfigFile = { apiFile: '../src/app/api/pimcore/index.ts', apiImport: 'api', outputFiles: { - '../src/modules/asset/api/asset.gen.ts': { + '../src/modules/asset/asset-api-slice.gen.ts': { filterEndpoints: [/apiAsset/i] } }, diff --git a/assets/js/src/assets/icons/core/unordered-list-outlined.inline.svg b/assets/js/src/assets/icons/core/unordered-list-outlined.inline.svg new file mode 100644 index 000000000..f2d9f3730 --- /dev/null +++ b/assets/js/src/assets/icons/core/unordered-list-outlined.inline.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/js/src/components/formatted-date/formatted-date.tsx b/assets/js/src/components/formatted-date/formatted-date.tsx new file mode 100644 index 000000000..6b5c5f834 --- /dev/null +++ b/assets/js/src/components/formatted-date/formatted-date.tsx @@ -0,0 +1,19 @@ +import React from 'react' +import { useTranslation } from 'react-i18next' + +interface FormattedDateProps { + timestamp: number +} + +const FormattedDate = (props: FormattedDateProps): React.JSX.Element => { + const { i18n } = useTranslation() + const formattedDate = i18n.format(new Date(props.timestamp), 'datetime', i18n.language) + + return ( + <> + {formattedDate} + > + ) +} + +export { FormattedDate } diff --git a/assets/js/src/components/grid/grid.stories.tsx b/assets/js/src/components/grid/grid.stories.tsx new file mode 100644 index 000000000..e8b91ad93 --- /dev/null +++ b/assets/js/src/components/grid/grid.stories.tsx @@ -0,0 +1,46 @@ +import React from 'react' +import { type Meta } from '@storybook/react' +import { Grid } from './grid' +import { createColumnHelper } from '@tanstack/react-table' + +const config: Meta = { + title: 'Pimcore studio/UI/Grid', + component: Grid, + parameters: { + layout: 'centered' + }, + + tags: ['autodocs'] +} + +export default config + +interface User { + firstname: string + lastname: string + age: number +} + +const data: User[] = [ + { firstname: 'John', lastname: 'Doe', age: 25 }, + { firstname: 'Jane', lastname: 'Doe', age: 22 } +] + +const columnHelper = createColumnHelper() + +const columns = [ + columnHelper.accessor('firstname', {}), + columnHelper.accessor('lastname', { + cell: info => {info.getValue()} + }), + columnHelper.accessor('age', { + cell: info => {info.getValue()} + }) +] + +export const _default = { + args: { + data, + columns + } +} diff --git a/assets/js/src/components/grid/grid.styles.ts b/assets/js/src/components/grid/grid.styles.ts new file mode 100644 index 000000000..a875f0651 --- /dev/null +++ b/assets/js/src/components/grid/grid.styles.ts @@ -0,0 +1,19 @@ +import { createStyles } from 'antd-style' + +export const useStyles = createStyles(({ token, css }) => { + return { + grid: css` + table { + table-layout: auto; + } + + .ant-table-cell { + border-left: 1px solid #F0F0F0; + + &:first-of-type { + border-left: 0; + } + } + ` + } +}) diff --git a/assets/js/src/components/grid/grid.tsx b/assets/js/src/components/grid/grid.tsx new file mode 100644 index 000000000..c2e578b0c --- /dev/null +++ b/assets/js/src/components/grid/grid.tsx @@ -0,0 +1,62 @@ +import { useCssComponentHash } from '@Pimcore/modules/ant-design/hooks/use-css-component-hash' +import { type ColumnDef, flexRender, getCoreRowModel, useReactTable } from '@tanstack/react-table' +import React, { useState } from 'react' +import { useStyles } from './grid.styles' + +export interface GridProps { + data: any[] + columns: Array> +} + +export const Grid = (props: GridProps): React.JSX.Element => { + const { columns } = props + const [data] = useState(props.data) + const hashId = useCssComponentHash('table') + const { styles } = useStyles() + + const table = useReactTable({ + data, + columns, + getCoreRowModel: getCoreRowModel() + }) + + return ( + + + + + + + {table.getHeaderGroups().map(headerGroup => ( + + {headerGroup.headers.map(header => ( + + {header.isPlaceholder + ? null + : flexRender( + header.column.columnDef.header, + header.getContext() + )} + + ))} + + ))} + + + {table.getRowModel().rows.map(row => ( + + {row.getVisibleCells().map(cell => ( + + {flexRender(cell.column.columnDef.cell, cell.getContext())} + + ))} + + ))} + + + + + + + ) +} diff --git a/assets/js/src/components/icon/icon.tsx b/assets/js/src/components/icon/icon.tsx index 38a378fdb..3b5b32eac 100755 --- a/assets/js/src/components/icon/icon.tsx +++ b/assets/js/src/components/icon/icon.tsx @@ -16,7 +16,8 @@ const icons = { hierarchy: React.lazy(async () => await import('@Pimcore/assets/icons/core/hierarchy.inline.svg')), 'view-details': React.lazy(async () => await import('@Pimcore/assets/icons/core/view-details.inline.svg')), 'tag-two-tone': React.lazy(async () => await import('@Pimcore/assets/icons/core/tag-two-tone.inline.svg')), - workflow: React.lazy(async () => await import('@Pimcore/assets/icons/core/workflow.inline.svg')) + workflow: React.lazy(async () => await import('@Pimcore/assets/icons/core/workflow.inline.svg')), + 'unordered-list-outlined': React.lazy(async () => await import('@Pimcore/assets/icons/core/unordered-list-outlined.inline.svg')) } export interface IconProps { @@ -26,11 +27,13 @@ export interface IconProps { export const Icon = ({ name, options }: IconProps): React.JSX.Element => { const SvgIcon = icons[name] + const width = options?.width ?? 16 + const height = options?.height ?? 16 return ( - + }> - + ) diff --git a/assets/js/src/components/tree/tree.tsx b/assets/js/src/components/tree/tree.tsx index c6c3013bc..ea8d17563 100644 --- a/assets/js/src/components/tree/tree.tsx +++ b/assets/js/src/components/tree/tree.tsx @@ -53,24 +53,30 @@ const Tree = (props: TreeProps): React.JSX.Element => { }) const { isLoading, isError, data } = apiHookResult - if (isLoading !== false) { - return <>> - } - if (isError !== false) { return ({'Error'}) } - const { nodes: items } = dataTransformer(data) + let items: any[] = [] + + if (isLoading === false && data !== undefined) { + const { nodes } = dataTransformer(data) + items = nodes + } return ( - - - {items.map((item) => ( - - ))} - - + <> + {isLoading === false && items.length !== 0 && ( + + + {items.map((item) => ( + + ))} + + + )} + > + ) } diff --git a/assets/js/src/modules/ant-design/hooks/use-css-component-hash.ts b/assets/js/src/modules/ant-design/hooks/use-css-component-hash.ts new file mode 100644 index 000000000..3d4ebff04 --- /dev/null +++ b/assets/js/src/modules/ant-design/hooks/use-css-component-hash.ts @@ -0,0 +1,12 @@ +import useStyle from 'antd/es/table/style' +import { ConfigContext } from 'antd/es/config-provider/context' +import { useContext } from 'react' + +export const useCssComponentHash = (componentName: string): string => { + const context = useContext(ConfigContext) + const prefix = context.getPrefixCls(componentName, '') + + const hashId = useStyle(prefix)[1] + + return hashId +} diff --git a/assets/js/src/modules/app/components/app.tsx b/assets/js/src/modules/app/app-view.tsx similarity index 64% rename from assets/js/src/modules/app/components/app.tsx rename to assets/js/src/modules/app/app-view.tsx index a5737b836..16602ccd9 100644 --- a/assets/js/src/modules/app/components/app.tsx +++ b/assets/js/src/modules/app/app-view.tsx @@ -1,15 +1,15 @@ import React, { StrictMode } from 'react' import { GlobalProvider } from './global-provider' -import { BaseLayout } from '@Pimcore/modules/base-layout/components/base-layout' +import { BaseLayoutView } from '@Pimcore/modules/base-layout/base-layout-view' import { App as AntApp } from 'antd' -export const App = (): React.JSX.Element => { +export const AppView = (): React.JSX.Element => { return ( <> - + diff --git a/assets/js/src/modules/app/components/global-provider.tsx b/assets/js/src/modules/app/global-provider.tsx similarity index 83% rename from assets/js/src/modules/app/components/global-provider.tsx rename to assets/js/src/modules/app/global-provider.tsx index 31e28a601..2df04cf42 100644 --- a/assets/js/src/modules/app/components/global-provider.tsx +++ b/assets/js/src/modules/app/global-provider.tsx @@ -1,5 +1,5 @@ import { store } from '@Pimcore/app/store' -import { ThemeProvider } from '@Pimcore/modules/theme/components/ThemeProvider' +import { ThemeProvider } from '@Pimcore/modules/theme/theme-provider' import React from 'react' import { Provider } from 'react-redux' diff --git a/assets/js/src/modules/app/utils/app-runner.tsx b/assets/js/src/modules/app/utils/app-runner.tsx index b5d0a9fdc..970c4d34b 100644 --- a/assets/js/src/modules/app/utils/app-runner.tsx +++ b/assets/js/src/modules/app/utils/app-runner.tsx @@ -1,6 +1,6 @@ import React from 'react' import { createRoot } from 'react-dom/client' -import { App } from '../components/app' +import { AppView } from '../app-view' export function runApp (): void { const domElement = document.getElementById('app') @@ -10,5 +10,5 @@ export function runApp (): void { } const root = createRoot(domElement) - root.render() + root.render() } diff --git a/assets/js/src/modules/asset-tree/asset-tree-container.tsx b/assets/js/src/modules/asset-tree/asset-tree-container.tsx new file mode 100644 index 000000000..4b550400b --- /dev/null +++ b/assets/js/src/modules/asset-tree/asset-tree-container.tsx @@ -0,0 +1,47 @@ +import { Tree } from '@Pimcore/components/tree/tree' +import React from 'react' +import { useNodeApiHook } from './hooks/use-node-api-hook' +import { type TreeNodeProps } from '@Pimcore/components/tree/node/tree-node' +import { PagerContainer } from './pager/pager-container' +import { useAsset } from '@Pimcore/modules/asset/hooks/use-asset' +import { api } from '@Pimcore/modules/asset/asset-api-slice.gen' +import { store } from '@Pimcore/app/store' + +export interface AssetTreeContainerProps { + id: number +} + +const defaultProps: AssetTreeContainerProps = { + id: 1 +} + +const AssetTreeContainer = (props: AssetTreeContainerProps): React.JSX.Element => { + const { id } = props + const { openAsset } = useAsset() + + async function onSelect (node: TreeNodeProps): Promise { + await store.dispatch(api.endpoints.apiAssetsIdGet.initiate({ id: node.id })) + + openAsset({ + name: node.label, + icon: node.icon, + config: { + id: node.id + } + }) + } + + return ( + + ) +} + +AssetTreeContainer.defaultProps = defaultProps + +export { AssetTreeContainer } diff --git a/assets/js/src/modules/asset-tree/containers/asset-tree.tsx b/assets/js/src/modules/asset-tree/containers/asset-tree.tsx deleted file mode 100644 index 8ffd6caf1..000000000 --- a/assets/js/src/modules/asset-tree/containers/asset-tree.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import { Tree } from '@Pimcore/components/tree/tree' -import React from 'react' -import { useNodeApiHook } from '../hooks/use-node-api-hook' -import { type TreeNodeProps } from '@Pimcore/components/tree/node/tree-node' -import { AssetTreePager } from './asset-tree-pager' -import { useAsset } from '@Pimcore/modules/asset/hooks/use-asset' - -export interface AssetTreeProps { - id: number -} - -const defaultProps: AssetTreeProps = { - id: 1 -} - -const AssetTree = (props: AssetTreeProps): React.JSX.Element => { - const { id } = props - const { openAsset } = useAsset() - - function onSelect (node: TreeNodeProps): void { - openAsset({ - name: node.label, - icon: node.icon, - config: { - id: node.id - } - }) - } - - return ( - - ) -} - -AssetTree.defaultProps = defaultProps - -export { AssetTree } diff --git a/assets/js/src/modules/asset-tree/hooks/use-node-api-hook.ts b/assets/js/src/modules/asset-tree/hooks/use-node-api-hook.ts index ebf1ec76c..0b3e439b4 100644 --- a/assets/js/src/modules/asset-tree/hooks/use-node-api-hook.ts +++ b/assets/js/src/modules/asset-tree/hooks/use-node-api-hook.ts @@ -1,6 +1,6 @@ import { type TreeNodeProps } from '@Pimcore/components/tree/node/tree-node' import { TreeContext } from '@Pimcore/components/tree/tree' -import { type ApiAssetsGetCollectionApiResponse, useApiAssetsGetCollectionQuery } from '@Pimcore/modules/asset/api/asset.gen' +import { type ApiAssetsGetCollectionApiResponse, useApiAssetsGetCollectionQuery } from '@Pimcore/modules/asset/asset-api-slice.gen' import { type UseQueryHookResult } from '@reduxjs/toolkit/dist/query/react/buildHooks' import { type Dispatch, type SetStateAction, useContext, useState } from 'react' diff --git a/assets/js/src/modules/asset-tree/index.ts b/assets/js/src/modules/asset-tree/index.ts index 62e2595e2..381fb5ecc 100644 --- a/assets/js/src/modules/asset-tree/index.ts +++ b/assets/js/src/modules/asset-tree/index.ts @@ -1,7 +1,7 @@ import { registerWidget } from '../widget-manager/utils/widget-registry' -import { AssetTree } from './containers/asset-tree' +import { AssetTreeContainer } from './asset-tree-container' registerWidget({ name: 'asset-tree', - component: AssetTree + component: AssetTreeContainer }) diff --git a/assets/js/src/modules/asset-tree/containers/asset-tree-pager.tsx b/assets/js/src/modules/asset-tree/pager/pager-container.tsx similarity index 87% rename from assets/js/src/modules/asset-tree/containers/asset-tree-pager.tsx rename to assets/js/src/modules/asset-tree/pager/pager-container.tsx index 2276bd684..f4bd99484 100644 --- a/assets/js/src/modules/asset-tree/containers/asset-tree-pager.tsx +++ b/assets/js/src/modules/asset-tree/pager/pager-container.tsx @@ -2,7 +2,7 @@ import { TreeContext, type TreePagerProps } from '@Pimcore/components/tree/tree' import { Pagination } from 'antd' import React, { useContext, useEffect, useState } from 'react' -const AssetTreePager = (props: TreePagerProps): React.JSX.Element => { +const PagerContainer = (props: TreePagerProps): React.JSX.Element => { const [page, setPage] = useState(1) const { maxItemsPerNode } = useContext(TreeContext) const total = props.total @@ -28,4 +28,4 @@ const AssetTreePager = (props: TreePagerProps): React.JSX.Element => { ) } -export { AssetTreePager } +export { PagerContainer } diff --git a/assets/js/src/modules/asset/api/asset.gen.ts b/assets/js/src/modules/asset/asset-api-slice.gen.ts similarity index 99% rename from assets/js/src/modules/asset/api/asset.gen.ts rename to assets/js/src/modules/asset/asset-api-slice.gen.ts index 4d1c1e923..94f973e0a 100644 --- a/assets/js/src/modules/asset/api/asset.gen.ts +++ b/assets/js/src/modules/asset/asset-api-slice.gen.ts @@ -1,4 +1,4 @@ -import { api } from "../../../app/api/pimcore/index"; +import { api } from "../../app/api/pimcore/index"; export const addTagTypes = ["Asset"] as const; const injectedRtkApi = api .enhanceEndpoints({ diff --git a/assets/js/src/modules/asset/asset-container.tsx b/assets/js/src/modules/asset/asset-container.tsx new file mode 100644 index 000000000..b986af298 --- /dev/null +++ b/assets/js/src/modules/asset/asset-container.tsx @@ -0,0 +1,43 @@ +import React, { createContext } from 'react' +import { useAssetDraft } from './hooks/use-asset-draft' +import { FolderContainer } from './types/folder/folder-container' +import { ImageContainer } from './types/image/image-container' + +export interface AssetContainerProps { + id: string +} + +export interface IAssetContext { + id: string +} + +export const AssetContext = createContext({ + id: '' +}) + +const AssetContainer = (props: AssetContainerProps): React.JSX.Element => { + const { id } = props + const { isLoading, isError, asset } = useAssetDraft(id) + + if (isError) { + return Error + } + + if (isLoading || asset === undefined) { + return Loading... + } + + return ( + + {asset.type === 'image' && ( + + )} + + {asset.type === 'folder' && ( + + )} + + ) +} + +export { AssetContainer } diff --git a/assets/js/src/modules/asset/store/asset-draft-slice.tsx b/assets/js/src/modules/asset/asset-draft-slice.tsx similarity index 90% rename from assets/js/src/modules/asset/store/asset-draft-slice.tsx rename to assets/js/src/modules/asset/asset-draft-slice.tsx index e69bb44b9..6991c2a3b 100644 --- a/assets/js/src/modules/asset/store/asset-draft-slice.tsx +++ b/assets/js/src/modules/asset/asset-draft-slice.tsx @@ -1,5 +1,5 @@ import { createEntityAdapter, createSlice } from '@reduxjs/toolkit' -import { type ApiAssetsIdGetApiResponse } from '../api/asset.gen' +import { type ApiAssetsIdGetApiResponse } from './asset-api-slice.gen' import { type RootState, injectSliceWithState } from '@Pimcore/app/store' export interface AssetDraft extends ApiAssetsIdGetApiResponse { diff --git a/assets/js/src/modules/asset/containers/asset.tsx b/assets/js/src/modules/asset/containers/asset.tsx deleted file mode 100644 index dc9f1cb45..000000000 --- a/assets/js/src/modules/asset/containers/asset.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import React from 'react' -import { useAssetDraft } from '../hooks/use-asset-draft' -import AssetProvider from '@Pimcore/modules/asset/context/asset-context' -import { EditorTabs } from '@Pimcore/modules/asset/editor-tabs/container/editor-tabs' - -export interface AssetProps { - id: string -} - -const Asset = (props: AssetProps): React.JSX.Element => { - const { id } = props - const { isLoading, isError, asset } = useAssetDraft(id) - - if (isError) { - return Error - } - - if (isLoading || asset === undefined) { - return Loading... - } - - return ( - - - - ) -} - -export { Asset } diff --git a/assets/js/src/modules/asset/context/asset-context.tsx b/assets/js/src/modules/asset/context/asset-context.tsx deleted file mode 100644 index ad1fb6f2c..000000000 --- a/assets/js/src/modules/asset/context/asset-context.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import React, { createContext } from 'react' -import type { selectAssetById } from '@Pimcore/modules/asset/store/asset-draft-slice' - -export type AssetContextType = ReturnType -export const AssetContext = createContext(null) - -const AssetProvider = ({ asset, children }: { asset: ReturnType, children: React.ReactNode }): React.JSX.Element => { - return ( - - {children} - - ) -} - -export default AssetProvider diff --git a/assets/js/src/modules/asset/editor-tabs/container/editor-tabs.tsx b/assets/js/src/modules/asset/editor-tabs/editor-tabs-container.tsx similarity index 85% rename from assets/js/src/modules/asset/editor-tabs/container/editor-tabs.tsx rename to assets/js/src/modules/asset/editor-tabs/editor-tabs-container.tsx index 2bba02406..fee1efafe 100644 --- a/assets/js/src/modules/asset/editor-tabs/container/editor-tabs.tsx +++ b/assets/js/src/modules/asset/editor-tabs/editor-tabs-container.tsx @@ -2,7 +2,7 @@ import React from 'react' import { EditorTabs as EditorTabsView } from '@Pimcore/components/editor-tabs/editor-tabs' import { assetEditorTabManager } from '@Pimcore/modules/asset/editor-tabs' -export const EditorTabs = (): React.JSX.Element => { +export const EditorTabsContainer = (): React.JSX.Element => { const tabs = assetEditorTabManager.getTabs() return ( diff --git a/assets/js/src/modules/asset/editor-tabs/index.tsx b/assets/js/src/modules/asset/editor-tabs/index.tsx index 300adab55..407307a3f 100755 --- a/assets/js/src/modules/asset/editor-tabs/index.tsx +++ b/assets/js/src/modules/asset/editor-tabs/index.tsx @@ -1,15 +1,15 @@ import React from 'react' -import { ViewTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/view' -import { EditTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/edit' import { Icon } from '@Pimcore/components/icon/icon' -import { EmbeddedMetadataTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/embeddedMetadata' -import { CustomMetadataTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/customMetadata' -import { VersionsTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/versions' -import { ScheduleTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/schedule' -import { DependenciesTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/dependencies' -import { NotesAndEventsTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/notes-and-events' -import { WorkflowTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/workflow' -import { TagsTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/tags' +import { ViewTabContainer } from '@Pimcore/modules/asset/editor-tabs/tabs/view-container' +import { EditTabContainer } from '@Pimcore/modules/asset/editor-tabs/tabs/edit-container' +import { EmbeddedMetadataTabContainer } from '@Pimcore/modules/asset/editor-tabs/tabs/embedded-metadata-container' +import { CustomMetadataTabContainer } from '@Pimcore/modules/asset/editor-tabs/tabs/custom-metadata-container' +import { VersionsTabContainer } from '@Pimcore/modules/asset/editor-tabs/tabs/versions-container' +import { ScheduleTabContainer } from '@Pimcore/modules/asset/editor-tabs/tabs/schedule-container' +import { DependenciesTabContainer } from '@Pimcore/modules/asset/editor-tabs/tabs/dependencies-container' +import { NotesAndEventsTabContainer } from '@Pimcore/modules/asset/editor-tabs/tabs/notes-and-events-container' +import { WorkflowTabContainer } from '@Pimcore/modules/asset/editor-tabs/tabs/workflow-container' +import { TagsTabContainer } from '@Pimcore/modules/asset/editor-tabs/tabs/tags-container' import { AssetEditorTabManager } from '@Pimcore/modules/editor-tab-manager/utils/asset-tab-manager' import i18n from '@Pimcore/app/i18n' @@ -18,69 +18,69 @@ export const assetEditorTabManager = new AssetEditorTabManager() assetEditorTabManager.register({ key: 'view', label: i18n.t('asset.asset-editor-tabs.view'), - children: , + children: , icon: }) assetEditorTabManager.register({ key: 'edit', label: i18n.t('asset.asset-editor-tabs.edit'), - children: , + children: , icon: }) assetEditorTabManager.register({ key: 'embedded-metadata', label: i18n.t('asset.asset-editor-tabs.embedded-metadata'), - children: , + children: , icon: }) assetEditorTabManager.register({ key: 'custom-metadata', label: i18n.t('asset.asset-editor-tabs.custom-metadata'), - children: , + children: , icon: }) assetEditorTabManager.register({ key: 'versions', label: i18n.t('asset.asset-editor-tabs.versions'), - children: , + children: , icon: }) assetEditorTabManager.register({ key: 'schedule', label: i18n.t('asset.asset-editor-tabs.schedule'), - children: , + children: , icon: }) assetEditorTabManager.register({ key: 'dependencies', label: i18n.t('asset.asset-editor-tabs.dependencies'), - children: , + children: , icon: }) assetEditorTabManager.register({ key: 'notes-events', label: i18n.t('asset.asset-editor-tabs.notes-events'), - children: , + children: , icon: }) assetEditorTabManager.register({ key: 'tags', label: i18n.t('asset.asset-editor-tabs.tag'), - children: , + children: , icon: }) assetEditorTabManager.register({ key: 'workflow', label: i18n.t('asset.asset-editor-tabs.workflow'), - children: , + children: , icon: }) diff --git a/assets/js/src/modules/asset/editor-tabs/tabs/container/view.tsx b/assets/js/src/modules/asset/editor-tabs/tabs/container/view.tsx deleted file mode 100644 index b116934a6..000000000 --- a/assets/js/src/modules/asset/editor-tabs/tabs/container/view.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import React, { useContext } from 'react' -import { Image } from 'antd' -import { AssetContext } from '@Pimcore/modules/asset/context/asset-context' - -export const ViewTab = (): React.JSX.Element => { - const asset = useContext(AssetContext) - - if (asset === null) { - return Oh Snap, something went wrong! - } - - return ( - - ) -} diff --git a/assets/js/src/modules/asset/editor-tabs/tabs/container/customMetadata.tsx b/assets/js/src/modules/asset/editor-tabs/tabs/custom-metadata-container.tsx similarity index 54% rename from assets/js/src/modules/asset/editor-tabs/tabs/container/customMetadata.tsx rename to assets/js/src/modules/asset/editor-tabs/tabs/custom-metadata-container.tsx index 4a4bb52ea..5efee2b69 100644 --- a/assets/js/src/modules/asset/editor-tabs/tabs/container/customMetadata.tsx +++ b/assets/js/src/modules/asset/editor-tabs/tabs/custom-metadata-container.tsx @@ -1,6 +1,6 @@ import React from 'react' -export const CustomMetadataTab = (): React.JSX.Element => { +export const CustomMetadataTabContainer = (): React.JSX.Element => { return ( Custom Metadata TAB ) diff --git a/assets/js/src/modules/asset/editor-tabs/tabs/container/dependencies.tsx b/assets/js/src/modules/asset/editor-tabs/tabs/dependencies-container.tsx similarity index 53% rename from assets/js/src/modules/asset/editor-tabs/tabs/container/dependencies.tsx rename to assets/js/src/modules/asset/editor-tabs/tabs/dependencies-container.tsx index ded3881e6..da3899947 100644 --- a/assets/js/src/modules/asset/editor-tabs/tabs/container/dependencies.tsx +++ b/assets/js/src/modules/asset/editor-tabs/tabs/dependencies-container.tsx @@ -1,6 +1,6 @@ import React from 'react' -export const DependenciesTab = (): React.JSX.Element => { +export const DependenciesTabContainer = (): React.JSX.Element => { return ( Dependencies TAB ) diff --git a/assets/js/src/modules/asset/editor-tabs/tabs/container/edit.tsx b/assets/js/src/modules/asset/editor-tabs/tabs/edit-container.tsx similarity index 54% rename from assets/js/src/modules/asset/editor-tabs/tabs/container/edit.tsx rename to assets/js/src/modules/asset/editor-tabs/tabs/edit-container.tsx index 610f292ea..449ac35c2 100644 --- a/assets/js/src/modules/asset/editor-tabs/tabs/container/edit.tsx +++ b/assets/js/src/modules/asset/editor-tabs/tabs/edit-container.tsx @@ -1,6 +1,6 @@ import React from 'react' -export const EditTab = (): React.JSX.Element => { +export const EditTabContainer = (): React.JSX.Element => { return ( Edit TAB ) diff --git a/assets/js/src/modules/asset/editor-tabs/tabs/container/embeddedMetadata.tsx b/assets/js/src/modules/asset/editor-tabs/tabs/embedded-metadata-container.tsx similarity index 53% rename from assets/js/src/modules/asset/editor-tabs/tabs/container/embeddedMetadata.tsx rename to assets/js/src/modules/asset/editor-tabs/tabs/embedded-metadata-container.tsx index df6c0d407..6e687ec19 100644 --- a/assets/js/src/modules/asset/editor-tabs/tabs/container/embeddedMetadata.tsx +++ b/assets/js/src/modules/asset/editor-tabs/tabs/embedded-metadata-container.tsx @@ -1,6 +1,6 @@ import React from 'react' -export const EmbeddedMetadataTab = (): React.JSX.Element => { +export const EmbeddedMetadataTabContainer = (): React.JSX.Element => { return ( Embedded Metadata TAB ) diff --git a/assets/js/src/modules/asset/editor-tabs/tabs/container/notes-and-events.tsx b/assets/js/src/modules/asset/editor-tabs/tabs/notes-and-events-container.tsx similarity index 53% rename from assets/js/src/modules/asset/editor-tabs/tabs/container/notes-and-events.tsx rename to assets/js/src/modules/asset/editor-tabs/tabs/notes-and-events-container.tsx index f4ab91ee9..41cf49783 100644 --- a/assets/js/src/modules/asset/editor-tabs/tabs/container/notes-and-events.tsx +++ b/assets/js/src/modules/asset/editor-tabs/tabs/notes-and-events-container.tsx @@ -1,6 +1,6 @@ import React from 'react' -export const NotesAndEventsTab = (): React.JSX.Element => { +export const NotesAndEventsTabContainer = (): React.JSX.Element => { return ( Notes & Events TAB ) diff --git a/assets/js/src/modules/asset/editor-tabs/tabs/container/schedule.tsx b/assets/js/src/modules/asset/editor-tabs/tabs/schedule-container.tsx similarity index 54% rename from assets/js/src/modules/asset/editor-tabs/tabs/container/schedule.tsx rename to assets/js/src/modules/asset/editor-tabs/tabs/schedule-container.tsx index 509ff766b..fec863738 100644 --- a/assets/js/src/modules/asset/editor-tabs/tabs/container/schedule.tsx +++ b/assets/js/src/modules/asset/editor-tabs/tabs/schedule-container.tsx @@ -1,6 +1,6 @@ import React from 'react' -export const ScheduleTab = (): React.JSX.Element => { +export const ScheduleTabContainer = (): React.JSX.Element => { return ( Schedule TAB ) diff --git a/assets/js/src/modules/asset/editor-tabs/tabs/container/tags.tsx b/assets/js/src/modules/asset/editor-tabs/tabs/tags-container.tsx similarity index 54% rename from assets/js/src/modules/asset/editor-tabs/tabs/container/tags.tsx rename to assets/js/src/modules/asset/editor-tabs/tabs/tags-container.tsx index d6e5f7ccd..63d9b544c 100644 --- a/assets/js/src/modules/asset/editor-tabs/tabs/container/tags.tsx +++ b/assets/js/src/modules/asset/editor-tabs/tabs/tags-container.tsx @@ -1,6 +1,6 @@ import React from 'react' -export const TagsTab = (): React.JSX.Element => { +export const TagsTabContainer = (): React.JSX.Element => { return ( Tags TAB ) diff --git a/assets/js/src/modules/asset/editor-tabs/tabs/container/versions.tsx b/assets/js/src/modules/asset/editor-tabs/tabs/versions-container.tsx similarity index 54% rename from assets/js/src/modules/asset/editor-tabs/tabs/container/versions.tsx rename to assets/js/src/modules/asset/editor-tabs/tabs/versions-container.tsx index a1a6a4e4e..cf14b788e 100644 --- a/assets/js/src/modules/asset/editor-tabs/tabs/container/versions.tsx +++ b/assets/js/src/modules/asset/editor-tabs/tabs/versions-container.tsx @@ -1,6 +1,6 @@ import React from 'react' -export const VersionsTab = (): React.JSX.Element => { +export const VersionsTabContainer = (): React.JSX.Element => { return ( Versions TAB ) diff --git a/assets/js/src/modules/asset/editor-tabs/tabs/view-container.tsx b/assets/js/src/modules/asset/editor-tabs/tabs/view-container.tsx new file mode 100644 index 000000000..c13a7fc4f --- /dev/null +++ b/assets/js/src/modules/asset/editor-tabs/tabs/view-container.tsx @@ -0,0 +1,27 @@ +import React, { useContext } from 'react' +import { Image } from 'antd' +import { AssetContext } from '@Pimcore/modules/asset/asset-container' +import { useAssetDraft } from '@Pimcore/modules/asset/hooks/use-asset-draft' + +export const ViewTabContainer = (): React.JSX.Element => { + const assetContext = useContext(AssetContext) + const { isError, isLoading, asset } = useAssetDraft(assetContext.id) + + if (isLoading || asset === undefined) { + return Loading... + } + + if (isError) { + return Error + } + + if (asset.type === 'image') { + return ( + <> + + > + ) + } + + return view +} diff --git a/assets/js/src/modules/asset/editor-tabs/tabs/container/workflow.tsx b/assets/js/src/modules/asset/editor-tabs/tabs/workflow-container.tsx similarity index 54% rename from assets/js/src/modules/asset/editor-tabs/tabs/container/workflow.tsx rename to assets/js/src/modules/asset/editor-tabs/tabs/workflow-container.tsx index 0f4bd5836..1c897b544 100644 --- a/assets/js/src/modules/asset/editor-tabs/tabs/container/workflow.tsx +++ b/assets/js/src/modules/asset/editor-tabs/tabs/workflow-container.tsx @@ -1,6 +1,6 @@ import React from 'react' -export const WorkflowTab = (): React.JSX.Element => { +export const WorkflowTabContainer = (): React.JSX.Element => { return ( Workflow TAB ) diff --git a/assets/js/src/modules/asset/grid/columns/views/image-view.styles.ts b/assets/js/src/modules/asset/grid/columns/views/image-view.styles.ts new file mode 100644 index 000000000..9b849c124 --- /dev/null +++ b/assets/js/src/modules/asset/grid/columns/views/image-view.styles.ts @@ -0,0 +1,12 @@ +import { createStyles } from 'antd-style' + +export const useStyles = createStyles(({ token, css }) => { + return { + image: css` + display: flex; + justify-content: center; + align-items: center; + aspect-ratio: 1; + ` + } +}) diff --git a/assets/js/src/modules/asset/grid/columns/views/image-view.tsx b/assets/js/src/modules/asset/grid/columns/views/image-view.tsx new file mode 100644 index 000000000..955b4a481 --- /dev/null +++ b/assets/js/src/modules/asset/grid/columns/views/image-view.tsx @@ -0,0 +1,19 @@ +import { Image as AntImage } from 'antd' +import React from 'react' +import { useStyles } from './image-view.styles' + +interface ImageViewProps { + src: string +} + +const ImageView = (props: ImageViewProps): React.JSX.Element => { + const { styles } = useStyles() + + return ( + + + + ) +} + +export { ImageView } diff --git a/assets/js/src/modules/asset/hooks/use-asset-draft.ts b/assets/js/src/modules/asset/hooks/use-asset-draft.ts index 62b8da9e2..689cb1128 100644 --- a/assets/js/src/modules/asset/hooks/use-asset-draft.ts +++ b/assets/js/src/modules/asset/hooks/use-asset-draft.ts @@ -1,6 +1,6 @@ import { useAppDispatch, useAppSelector } from '@Pimcore/app/store' -import { useApiAssetsIdGetQuery } from '../api/asset.gen' -import { assetReceived, selectAssetById } from '../store/asset-draft-slice' +import { useApiAssetsIdGetQuery } from '../asset-api-slice.gen' +import { assetReceived, selectAssetById } from '../asset-draft-slice' import { useEffect } from 'react' interface UseAssetDraftReturn { diff --git a/assets/js/src/modules/asset/hooks/use-asset.ts b/assets/js/src/modules/asset/hooks/use-asset.ts index f378e3a11..3daf7222e 100644 --- a/assets/js/src/modules/asset/hooks/use-asset.ts +++ b/assets/js/src/modules/asset/hooks/use-asset.ts @@ -1,10 +1,10 @@ import { useWidgetManager } from '@Pimcore/modules/widget-manager/hooks/use-widget-manager' -import { type AssetProps } from '../containers/asset' +import { type AssetContainerProps } from '../asset-container' interface OpenAssetWidgetProps { name: string icon: string - config: AssetProps + config: AssetContainerProps } interface UseAssetReturn { diff --git a/assets/js/src/modules/asset/index.ts b/assets/js/src/modules/asset/index.ts index 5665ab130..71f65605f 100644 --- a/assets/js/src/modules/asset/index.ts +++ b/assets/js/src/modules/asset/index.ts @@ -1,8 +1,8 @@ import { registerWidget } from '@Pimcore/modules/widget-manager/utils/widget-registry' import '@Pimcore/modules/asset/editor-tabs/index' -import { Asset } from './containers/asset' +import { AssetContainer } from './asset-container' registerWidget({ name: 'asset', - component: Asset + component: AssetContainer }) diff --git a/assets/js/src/modules/asset/tab/tab.tsx b/assets/js/src/modules/asset/tab/tab.tsx deleted file mode 100644 index 34304992b..000000000 --- a/assets/js/src/modules/asset/tab/tab.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react' -import { EditorTabs } from '@Pimcore/modules/asset/editor-tabs/container/editor-tabs' - -export const Tab = (): React.JSX.Element => { - return ( - <> - - > - ) -} diff --git a/assets/js/src/modules/asset/types/folder/editor-tabs/editor-tabs-container.tsx b/assets/js/src/modules/asset/types/folder/editor-tabs/editor-tabs-container.tsx new file mode 100644 index 000000000..4bd4d4b3c --- /dev/null +++ b/assets/js/src/modules/asset/types/folder/editor-tabs/editor-tabs-container.tsx @@ -0,0 +1,11 @@ +import React from 'react' +import { folderEditorTabManager } from '..' +import { EditorTabs as EditorTabsView } from '@Pimcore/components/editor-tabs/editor-tabs' + +const EditorTabsContainer = (): React.JSX.Element => { + const tabs = folderEditorTabManager.getTabs() + + return +} + +export { EditorTabsContainer } diff --git a/assets/js/src/modules/asset/types/folder/editor-tabs/tabs/list-container.tsx b/assets/js/src/modules/asset/types/folder/editor-tabs/tabs/list-container.tsx new file mode 100644 index 000000000..1574d8d3c --- /dev/null +++ b/assets/js/src/modules/asset/types/folder/editor-tabs/tabs/list-container.tsx @@ -0,0 +1,58 @@ +import { FormattedDate } from '@Pimcore/components/formatted-date/formatted-date' +import { Grid } from '@Pimcore/components/grid/grid' +import { type AssetJsonldAssetReadDependencyReadPropertyRead, useApiAssetsGetCollectionQuery } from '@Pimcore/modules/asset/asset-api-slice.gen' +import { AssetContext } from '@Pimcore/modules/asset/asset-container' +import { ImageView } from '@Pimcore/modules/asset/grid/columns/views/image-view' +import { createColumnHelper } from '@tanstack/react-table' +import React, { useContext } from 'react' +import { useTranslation } from 'react-i18next' + +const ListContainer = (): React.JSX.Element => { + const assetContext = useContext(AssetContext) + const { t } = useTranslation() + const assetId = assetContext.id + const { isLoading, isError, data } = useApiAssetsGetCollectionQuery({ parentId: parseInt(assetId) }) + + if (isLoading || data === undefined) { + return Loading... + } + + if (isError) { + return Error + } + + const assets = data['hydra:member'] + const columnHelper = createColumnHelper() + + const columns = [ + columnHelper.accessor('fullPath', { + header: t('asset.asset-editor-tabs.list.columns.preview'), + cell: info => , + size: 110 + }), + + columnHelper.accessor('id', { + header: t('asset.asset-editor-tabs.list.columns.id') + }), + + columnHelper.accessor('type', { + header: t('asset.asset-editor-tabs.list.columns.type') + }), + + columnHelper.accessor('creationDate', { + header: t('asset.asset-editor-tabs.list.columns.creationDate'), + cell: info => + }), + + columnHelper.accessor('modificationDate', { + header: t('asset.asset-editor-tabs.list.columns.modificationDate'), + cell: info => + }) + ] + + return ( + + ) +} + +export { ListContainer } diff --git a/assets/js/src/modules/asset/types/folder/folder-container.tsx b/assets/js/src/modules/asset/types/folder/folder-container.tsx new file mode 100644 index 000000000..06a42fda0 --- /dev/null +++ b/assets/js/src/modules/asset/types/folder/folder-container.tsx @@ -0,0 +1,12 @@ +import React from 'react' +import { EditorTabsContainer } from './editor-tabs/editor-tabs-container' + +const FolderContainer = (): React.JSX.Element => { + return ( + <> + + > + ) +} + +export { FolderContainer } diff --git a/assets/js/src/modules/asset/types/folder/index.tsx b/assets/js/src/modules/asset/types/folder/index.tsx new file mode 100644 index 000000000..ad09224e9 --- /dev/null +++ b/assets/js/src/modules/asset/types/folder/index.tsx @@ -0,0 +1,14 @@ +import React from 'react' +import { FolderEditorTabManager } from '@Pimcore/modules/editor-tab-manager/utils/folder-tab-manager' +import { Icon } from '@Pimcore/components/icon/icon' +import i18n from '@Pimcore/app/i18n' +import { ListContainer } from './editor-tabs/tabs/list-container' + +export const folderEditorTabManager = new FolderEditorTabManager() + +folderEditorTabManager.register({ + children: , + icon: , + key: 'list', + label: i18n.t('folder.folder-editor-tabs.view') +}) diff --git a/assets/js/src/modules/asset/types/image/image-container.tsx b/assets/js/src/modules/asset/types/image/image-container.tsx new file mode 100644 index 000000000..fb2572e08 --- /dev/null +++ b/assets/js/src/modules/asset/types/image/image-container.tsx @@ -0,0 +1,12 @@ +import { EditorTabsContainer } from '@Pimcore/modules/asset/editor-tabs/editor-tabs-container' +import React from 'react' + +const ImageContainer = (): React.JSX.Element => { + return ( + <> + + > + ) +} + +export { ImageContainer } diff --git a/assets/js/src/modules/base-layout/components/base-layout.styles.ts b/assets/js/src/modules/base-layout/base-layout-view.styles.ts similarity index 100% rename from assets/js/src/modules/base-layout/components/base-layout.styles.ts rename to assets/js/src/modules/base-layout/base-layout-view.styles.ts diff --git a/assets/js/src/modules/base-layout/base-layout-view.tsx b/assets/js/src/modules/base-layout/base-layout-view.tsx new file mode 100644 index 000000000..59199ddc4 --- /dev/null +++ b/assets/js/src/modules/base-layout/base-layout-view.tsx @@ -0,0 +1,19 @@ +import React from 'react' +import { LeftSidebarView } from './left-sidebar-view' +import { WidgetManagerContainer } from '@Pimcore/modules/widget-manager/widget-manager-container' +import { RightSidebarView } from './right-sidebar-view' +import { useStlyes } from './base-layout-view.styles' + +export const BaseLayoutView = (): React.JSX.Element => { + const { styles } = useStlyes() + + return ( + + + + + + + + ) +} diff --git a/assets/js/src/modules/base-layout/components/base-layout.tsx b/assets/js/src/modules/base-layout/components/base-layout.tsx deleted file mode 100644 index 0a2011fa3..000000000 --- a/assets/js/src/modules/base-layout/components/base-layout.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react' -import { LeftSidebar } from './left-sidebar' -import { WidgetManager } from '@Pimcore/modules/widget-manager/containers/widget-manager' -import { RightSidebar } from './right-sidebar' -import { useStlyes } from './base-layout.styles' - -export const BaseLayout = (): React.JSX.Element => { - const { styles } = useStlyes() - - return ( - - - - - - ) -} diff --git a/assets/js/src/modules/base-layout/components/left-sidebar.styles.ts b/assets/js/src/modules/base-layout/left-sidebar-view.styles.ts similarity index 100% rename from assets/js/src/modules/base-layout/components/left-sidebar.styles.ts rename to assets/js/src/modules/base-layout/left-sidebar-view.styles.ts diff --git a/assets/js/src/modules/base-layout/components/left-sidebar.tsx b/assets/js/src/modules/base-layout/left-sidebar-view.tsx similarity index 72% rename from assets/js/src/modules/base-layout/components/left-sidebar.tsx rename to assets/js/src/modules/base-layout/left-sidebar-view.tsx index 595b40cd9..a0a1d3486 100644 --- a/assets/js/src/modules/base-layout/components/left-sidebar.tsx +++ b/assets/js/src/modules/base-layout/left-sidebar-view.tsx @@ -1,9 +1,9 @@ import { Avatar } from 'antd' import { UserOutlined } from '@ant-design/icons' import React from 'react' -import { useStlyes } from './left-sidebar.styles' +import { useStlyes } from './left-sidebar-view.styles' -export const LeftSidebar = (): React.JSX.Element => { +export const LeftSidebarView = (): React.JSX.Element => { const { styles } = useStlyes() return ( diff --git a/assets/js/src/modules/base-layout/components/right-sidebar.styles.ts b/assets/js/src/modules/base-layout/right-sidebar-view.styles.ts similarity index 100% rename from assets/js/src/modules/base-layout/components/right-sidebar.styles.ts rename to assets/js/src/modules/base-layout/right-sidebar-view.styles.ts diff --git a/assets/js/src/modules/base-layout/components/right-sidebar.tsx b/assets/js/src/modules/base-layout/right-sidebar-view.tsx similarity index 63% rename from assets/js/src/modules/base-layout/components/right-sidebar.tsx rename to assets/js/src/modules/base-layout/right-sidebar-view.tsx index b350b5a41..c4479f687 100644 --- a/assets/js/src/modules/base-layout/components/right-sidebar.tsx +++ b/assets/js/src/modules/base-layout/right-sidebar-view.tsx @@ -1,8 +1,8 @@ import { Logo } from '@Pimcore/components/logo/logo' import React from 'react' -import { useStlyes } from './right-sidebar.styles' +import { useStlyes } from './right-sidebar-view.styles' -export const RightSidebar = (): React.JSX.Element => { +export const RightSidebarView = (): React.JSX.Element => { const { styles } = useStlyes() return ( diff --git a/assets/js/src/modules/editor-tab-manager/utils/folder-tab-manager.ts b/assets/js/src/modules/editor-tab-manager/utils/folder-tab-manager.ts new file mode 100644 index 000000000..f8c005e0e --- /dev/null +++ b/assets/js/src/modules/editor-tab-manager/utils/folder-tab-manager.ts @@ -0,0 +1,8 @@ +import { EditorTabManager } from '@Pimcore/modules/editor-tab-manager/utils/editor-tab-manager' + +export class FolderEditorTabManager extends EditorTabManager { + constructor () { + super() + this.type = 'folder' + } +} diff --git a/assets/js/src/modules/theme/components/ThemeProvider.tsx b/assets/js/src/modules/theme/theme-provider.tsx similarity index 84% rename from assets/js/src/modules/theme/components/ThemeProvider.tsx rename to assets/js/src/modules/theme/theme-provider.tsx index 6238af750..4d766b7e8 100644 --- a/assets/js/src/modules/theme/components/ThemeProvider.tsx +++ b/assets/js/src/modules/theme/theme-provider.tsx @@ -1,6 +1,6 @@ import { ThemeProvider as AntdThemeProvider } from 'antd-style' import React from 'react' -import { PimcoreDefaultTheme } from '../utils/default-theme' +import { PimcoreDefaultTheme } from './utils/themes/default-theme' interface ThemeProviderProps { children: React.ReactNode diff --git a/assets/js/src/modules/theme/utils/default-theme.ts b/assets/js/src/modules/theme/utils/themes/default-theme.ts similarity index 100% rename from assets/js/src/modules/theme/utils/default-theme.ts rename to assets/js/src/modules/theme/utils/themes/default-theme.ts diff --git a/assets/js/src/modules/widget-manager/containers/widget-tab-title.tsx b/assets/js/src/modules/widget-manager/containers/widget-tab-title.tsx deleted file mode 100644 index e86afb519..000000000 --- a/assets/js/src/modules/widget-manager/containers/widget-tab-title.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { BorderNode, type TabNode } from 'flexlayout-react' -import React, { useState } from 'react' -import { WidgetBorderTitle } from '../components/widget-border-title' -import { WidgetTabTitle as WidgetTabTitleView } from '../components/widget-tab-title' - -interface WidgetTabTitleProps { - node: TabNode -} - -export const WidgetTabTitle = ({ node }: WidgetTabTitleProps): React.JSX.Element => { - const [isBorderNode] = useState(node.getParent() instanceof BorderNode) - const [icon] = useState(node.getIcon() ?? 'widget-default') - - if (isBorderNode) { - return - } - - return ( - - ) -} diff --git a/assets/js/src/modules/widget-manager/hooks/use-widget-manager.ts b/assets/js/src/modules/widget-manager/hooks/use-widget-manager.ts index 8feb8beb6..e0c218556 100644 --- a/assets/js/src/modules/widget-manager/hooks/use-widget-manager.ts +++ b/assets/js/src/modules/widget-manager/hooks/use-widget-manager.ts @@ -5,7 +5,7 @@ import { openLeftWidget as openLeftWidgetAction, openRightWidget as openRightWidgetAction, type WidgetManagerTabConfig -} from '../store/widget-manager-slice' +} from '../widget-manager-slice' interface useWidgetManagerReturn { openMainWidget: (tabConfig: WidgetManagerTabConfig) => void diff --git a/assets/js/src/modules/widget-manager/components/widget-border-title.tsx b/assets/js/src/modules/widget-manager/title/border-title-view.tsx similarity index 62% rename from assets/js/src/modules/widget-manager/components/widget-border-title.tsx rename to assets/js/src/modules/widget-manager/title/border-title-view.tsx index 8d84df88a..c50c1ccaf 100644 --- a/assets/js/src/modules/widget-manager/components/widget-border-title.tsx +++ b/assets/js/src/modules/widget-manager/title/border-title-view.tsx @@ -1,12 +1,12 @@ import { Icon } from '@Pimcore/components/icon/icon' import React from 'react' -interface WidgetTabBorderProps { +interface BorderTitleViewProps { icon: string title: string } -export const WidgetBorderTitle = ({ icon, title }: WidgetTabBorderProps): React.JSX.Element => { +export const BorderTitleView = ({ icon, title }: BorderTitleViewProps): React.JSX.Element => { return ( diff --git a/assets/js/src/modules/widget-manager/title/tab-title-container.tsx b/assets/js/src/modules/widget-manager/title/tab-title-container.tsx new file mode 100644 index 000000000..afee62dfc --- /dev/null +++ b/assets/js/src/modules/widget-manager/title/tab-title-container.tsx @@ -0,0 +1,21 @@ +import { BorderNode, type TabNode } from 'flexlayout-react' +import React, { useState } from 'react' +import { BorderTitleView } from './border-title-view' +import { TabTitleView } from './tab-title-view' + +interface TabTitleContainerProps { + node: TabNode +} + +export const TabTitleContainer = ({ node }: TabTitleContainerProps): React.JSX.Element => { + const [isBorderNode] = useState(node.getParent() instanceof BorderNode) + const [icon] = useState(node.getIcon() ?? 'widget-default') + + if (isBorderNode) { + return + } + + return ( + + ) +} diff --git a/assets/js/src/modules/widget-manager/components/widget-tab-title.tsx b/assets/js/src/modules/widget-manager/title/tab-title-view.tsx similarity index 68% rename from assets/js/src/modules/widget-manager/components/widget-tab-title.tsx rename to assets/js/src/modules/widget-manager/title/tab-title-view.tsx index a1a28f548..f22da3a7d 100644 --- a/assets/js/src/modules/widget-manager/components/widget-tab-title.tsx +++ b/assets/js/src/modules/widget-manager/title/tab-title-view.tsx @@ -2,12 +2,12 @@ import { Icon } from '@Pimcore/components/icon/icon' import { Space } from 'antd' import React from 'react' -interface WidgetTabTitleProps { +interface TabTitleViewProps { icon: string title: string } -export const WidgetTabTitle = ({ icon, title }: WidgetTabTitleProps): React.JSX.Element => { +export const TabTitleView = ({ icon, title }: TabTitleViewProps): React.JSX.Element => { return ( diff --git a/assets/js/src/modules/widget-manager/utils/widget-manager-factory.tsx b/assets/js/src/modules/widget-manager/utils/widget-manager-factory.tsx index 5fa6dec3b..f08fc144a 100644 --- a/assets/js/src/modules/widget-manager/utils/widget-manager-factory.tsx +++ b/assets/js/src/modules/widget-manager/utils/widget-manager-factory.tsx @@ -1,7 +1,7 @@ import React, { type ReactNode } from 'react' import { type TabNode } from 'flexlayout-react' import { getWidget } from './widget-registry' -import { Widget } from '@Pimcore/modules/widget/containers/widget' +import { WidgetContainer } from '@Pimcore/modules/widget/widget-container' export const widgetManagerFactory = (node: TabNode): ReactNode | undefined => { const widgetName = node.getComponent() @@ -18,5 +18,5 @@ export const widgetManagerFactory = (node: TabNode): ReactNode | undefined => { const { component } = widget - return + return } diff --git a/assets/js/src/modules/widget-manager/containers/widget-manager.tsx b/assets/js/src/modules/widget-manager/widget-manager-container.tsx similarity index 75% rename from assets/js/src/modules/widget-manager/containers/widget-manager.tsx rename to assets/js/src/modules/widget-manager/widget-manager-container.tsx index f78f7103f..4ad8f3b98 100644 --- a/assets/js/src/modules/widget-manager/containers/widget-manager.tsx +++ b/assets/js/src/modules/widget-manager/widget-manager-container.tsx @@ -1,16 +1,16 @@ import React, { useEffect } from 'react' -import { WidgetManager as WidgetManagerView } from '../components/widget-manager' -import { widgetManagerFactory } from '../utils/widget-manager-factory' +import { WidgetManagerView } from './widget-manager-view' +import { widgetManagerFactory } from './utils/widget-manager-factory' import { Actions, type ITabRenderValues, Model, type TabNode, type TabSetNode } from 'flexlayout-react' import { useAppDispatch, useAppSelector } from '@Pimcore/app/store/index' -import { selectModel, updateModel } from '../store/widget-manager-slice' -import { getTabTokens } from '../components/widget-manager.styles' +import { selectModel, updateModel } from './widget-manager-slice' +import { getTabTokens } from './widget-manager-view.styles' import { theme } from 'antd' -import { WidgetTabTitle } from './widget-tab-title' +import { TabTitleContainer } from './title/tab-title-container' const { useToken } = theme -export const WidgetManager = (): React.JSX.Element => { +export const WidgetManagerContainer = (): React.JSX.Element => { const modelJson = useAppSelector(selectModel) const dispatch = useAppDispatch() const model = Model.fromJson(modelJson) @@ -38,7 +38,7 @@ export const WidgetManager = (): React.JSX.Element => { } function onRenderTab (node: TabNode, renderValues: ITabRenderValues): void { - renderValues.content = + renderValues.content = renderValues.leading = <>> } diff --git a/assets/js/src/modules/widget-manager/store/widget-manager-slice.ts b/assets/js/src/modules/widget-manager/widget-manager-slice.ts similarity index 97% rename from assets/js/src/modules/widget-manager/store/widget-manager-slice.ts rename to assets/js/src/modules/widget-manager/widget-manager-slice.ts index c4087f89c..0608883e9 100644 --- a/assets/js/src/modules/widget-manager/store/widget-manager-slice.ts +++ b/assets/js/src/modules/widget-manager/widget-manager-slice.ts @@ -1,7 +1,7 @@ import { injectSliceWithState } from '@Pimcore/app/store/index' import { type PayloadAction, createSlice } from '@reduxjs/toolkit' import { type IJsonModel, type IJsonTabNode, Model, Actions, DockLocation } from 'flexlayout-react' -import { getInitialModelJson } from '../utils/widget-manager-model' +import { getInitialModelJson } from './utils/widget-manager-model' export interface WidgetManagerState { model: IJsonModel diff --git a/assets/js/src/modules/widget-manager/components/widget-manager.styles.ts b/assets/js/src/modules/widget-manager/widget-manager-view.styles.ts similarity index 100% rename from assets/js/src/modules/widget-manager/components/widget-manager.styles.ts rename to assets/js/src/modules/widget-manager/widget-manager-view.styles.ts diff --git a/assets/js/src/modules/widget-manager/components/widget-manager.tsx b/assets/js/src/modules/widget-manager/widget-manager-view.tsx similarity index 67% rename from assets/js/src/modules/widget-manager/components/widget-manager.tsx rename to assets/js/src/modules/widget-manager/widget-manager-view.tsx index 5266b78bc..0725d167c 100644 --- a/assets/js/src/modules/widget-manager/components/widget-manager.tsx +++ b/assets/js/src/modules/widget-manager/widget-manager-view.tsx @@ -1,10 +1,10 @@ import React from 'react' import { Layout, type ILayoutProps } from 'flexlayout-react' -import { useStlyes } from './widget-manager.styles' +import { useStlyes } from './widget-manager-view.styles' export interface WidgetManagerProps extends ILayoutProps {} -export const WidgetManager = ({ ...props }: WidgetManagerProps): React.JSX.Element => { +export const WidgetManagerView = ({ ...props }: WidgetManagerProps): React.JSX.Element => { const { styles } = useStlyes() return ( diff --git a/assets/js/src/modules/widget/components/widget-title.styles.ts b/assets/js/src/modules/widget/title/title-view.styles.ts similarity index 100% rename from assets/js/src/modules/widget/components/widget-title.styles.ts rename to assets/js/src/modules/widget/title/title-view.styles.ts diff --git a/assets/js/src/modules/widget/components/widget-title.tsx b/assets/js/src/modules/widget/title/title-view.tsx similarity index 69% rename from assets/js/src/modules/widget/components/widget-title.tsx rename to assets/js/src/modules/widget/title/title-view.tsx index 5176d8c4e..3e4ae0816 100644 --- a/assets/js/src/modules/widget/components/widget-title.tsx +++ b/assets/js/src/modules/widget/title/title-view.tsx @@ -1,14 +1,14 @@ import { Icon } from '@Pimcore/components/icon/icon' import React from 'react' -import { useStyles } from './widget-title.styles' +import { useStyles } from './title-view.styles' -interface WidgetTitleProps { +interface TitleViewProps { title: string icon: string className?: string } -const WidgetTitle = (props: WidgetTitleProps): React.JSX.Element => { +const TitleView = (props: TitleViewProps): React.JSX.Element => { const { styles } = useStyles() const { title, icon } = props @@ -24,4 +24,4 @@ const WidgetTitle = (props: WidgetTitleProps): React.JSX.Element => { ) } -export { WidgetTitle } +export { TitleView } diff --git a/assets/js/src/modules/widget/containers/widget.tsx b/assets/js/src/modules/widget/widget-container.tsx similarity index 69% rename from assets/js/src/modules/widget/containers/widget.tsx rename to assets/js/src/modules/widget/widget-container.tsx index 509f0f672..3df78a626 100644 --- a/assets/js/src/modules/widget/containers/widget.tsx +++ b/assets/js/src/modules/widget/widget-container.tsx @@ -1,13 +1,13 @@ import React, { type ComponentType } from 'react' import { BorderNode, type TabNode } from 'flexlayout-react' -import { Widget as WidgetView } from '@Pimcore/modules/widget/components/widget' +import { WidgetView } from '@Pimcore/modules/widget/widget-view' -interface WidgetProps { +interface WidgetContainerProps { node: TabNode component: ComponentType } -const Widget = (props: WidgetProps): React.JSX.Element => { +const WidgetContainer = (props: WidgetContainerProps): React.JSX.Element => { const { node, component: Component } = props const isBorderNode = node.getParent() instanceof BorderNode @@ -18,4 +18,4 @@ const Widget = (props: WidgetProps): React.JSX.Element => { ) } -export { Widget } +export { WidgetContainer } diff --git a/assets/js/src/modules/widget/components/widget.styles.tsx b/assets/js/src/modules/widget/widget-view.styles.tsx similarity index 100% rename from assets/js/src/modules/widget/components/widget.styles.tsx rename to assets/js/src/modules/widget/widget-view.styles.tsx diff --git a/assets/js/src/modules/widget/components/widget.tsx b/assets/js/src/modules/widget/widget-view.tsx similarity index 60% rename from assets/js/src/modules/widget/components/widget.tsx rename to assets/js/src/modules/widget/widget-view.tsx index 1bbb06751..46a0c6fac 100644 --- a/assets/js/src/modules/widget/components/widget.tsx +++ b/assets/js/src/modules/widget/widget-view.tsx @@ -1,22 +1,22 @@ import React from 'react' -import { WidgetTitle } from './widget-title' -import { useStyles } from './widget.styles' +import { TitleView } from './title/title-view' +import { useStyles } from './widget-view.styles' -interface WidgetProps { +interface WidgetViewProps { title: string showTitle?: boolean icon: string children: React.ReactNode } -const Widget = (props: WidgetProps): React.JSX.Element => { +const WidgetView = (props: WidgetViewProps): React.JSX.Element => { const { styles } = useStyles() const { title, showTitle, icon, children } = props return ( {showTitle === true && ( - + )} @@ -26,4 +26,4 @@ const Widget = (props: WidgetProps): React.JSX.Element => { ) } -export { Widget } +export { WidgetView } diff --git a/assets/js/test-utils/test-utils.ts b/assets/js/test-utils/test-utils.ts index 588e5e24f..36dd5fb21 100644 --- a/assets/js/test-utils/test-utils.ts +++ b/assets/js/test-utils/test-utils.ts @@ -1,5 +1,5 @@ import * as testingLibrary from '@testing-library/react' -import { GlobalProvider } from '@Pimcore/modules/app/components/global-provider' +import { GlobalProvider } from '@Pimcore/modules/app/global-provider' import { type ReactElement } from 'react' const { render: oldRenderFn, ...testingLibaryProps } = testingLibrary diff --git a/package-lock.json b/package-lock.json index f859aca0c..3efb46ec4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "license": "PEL", "dependencies": { "@reduxjs/toolkit": "^2.2.1", + "@tanstack/react-table": "^8.12.0", "@types/react": "^18.2.48", "@types/react-dom": "^18.2.18", "antd": "^5.13.3", @@ -9449,356 +9450,6 @@ "url": "https://opencollective.com/storybook" } }, - "node_modules/@storybook/core-common": { - "version": "7.6.10", - "resolved": "https://registry.npmjs.org/@storybook/core-common/-/core-common-7.6.10.tgz", - "integrity": "sha512-K3YWqjCKMnpvYsWNjOciwTH6zWbuuZzmOiipziZaVJ+sB1XYmH52Y3WGEm07TZI8AYK9DRgwA13dR/7W0nw72Q==", - "dev": true, - "dependencies": { - "@storybook/core-events": "7.6.10", - "@storybook/node-logger": "7.6.10", - "@storybook/types": "7.6.10", - "@types/find-cache-dir": "^3.2.1", - "@types/node": "^18.0.0", - "@types/node-fetch": "^2.6.4", - "@types/pretty-hrtime": "^1.0.0", - "chalk": "^4.1.0", - "esbuild": "^0.18.0", - "esbuild-register": "^3.5.0", - "file-system-cache": "2.3.0", - "find-cache-dir": "^3.0.0", - "find-up": "^5.0.0", - "fs-extra": "^11.1.0", - "glob": "^10.0.0", - "handlebars": "^4.7.7", - "lazy-universal-dotenv": "^4.0.0", - "node-fetch": "^2.0.0", - "picomatch": "^2.3.0", - "pkg-dir": "^5.0.0", - "pretty-hrtime": "^1.0.3", - "resolve-from": "^5.0.0", - "ts-dedent": "^2.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - } - }, - "node_modules/@storybook/core-common/node_modules/@types/node": { - "version": "18.19.8", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.8.tgz", - "integrity": "sha512-g1pZtPhsvGVTwmeVoexWZLTQaOvXwoSq//pTL0DHeNzUDrFnir4fgETdhjhIxjVnN+hKOuh98+E1eMLnUXstFg==", - "dev": true, - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@storybook/core-common/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@storybook/core-common/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/@storybook/core-common/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@storybook/core-common/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@storybook/core-common/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@storybook/core-common/node_modules/find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "dev": true, - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, - "node_modules/@storybook/core-common/node_modules/find-cache-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@storybook/core-common/node_modules/find-cache-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@storybook/core-common/node_modules/find-cache-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@storybook/core-common/node_modules/find-cache-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@storybook/core-common/node_modules/find-cache-dir/node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@storybook/core-common/node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@storybook/core-common/node_modules/glob": { - "version": "10.3.10", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", - "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.3.5", - "minimatch": "^9.0.1", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", - "path-scurry": "^1.10.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@storybook/core-common/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@storybook/core-common/node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@storybook/core-common/node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@storybook/core-common/node_modules/minimatch": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz", - "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@storybook/core-common/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@storybook/core-common/node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@storybook/core-common/node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@storybook/core-common/node_modules/pkg-dir": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-5.0.0.tgz", - "integrity": "sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA==", - "dev": true, - "dependencies": { - "find-up": "^5.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@storybook/core-common/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@storybook/core-common/node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@storybook/core-events": { "version": "7.6.10", "resolved": "https://registry.npmjs.org/@storybook/core-events/-/core-events-7.6.10.tgz", @@ -11700,16 +11351,6 @@ "integrity": "sha512-TXJJd5RAKakWx4BtpwvSNdgTDkKM6RkXU8GK34S/LhidQ5Pjz3wcnqb0TxEkfhK/ztbP8nKHqXFwLfa2CYkvQw==", "dev": true }, - "node_modules/@storybook/node-logger": { - "version": "7.6.10", - "resolved": "https://registry.npmjs.org/@storybook/node-logger/-/node-logger-7.6.10.tgz", - "integrity": "sha512-ZBuqrv4bjJzKXyfRGFkVIi+z6ekn6rOPoQao4KmsfLNQAUUsEdR8Baw/zMnnU417zw5dSEaZdpuwx75SCQAeOA==", - "dev": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - } - }, "node_modules/@storybook/postinstall": { "version": "7.6.15", "resolved": "https://registry.npmjs.org/@storybook/postinstall/-/postinstall-7.6.15.tgz", @@ -11827,32 +11468,6 @@ "url": "https://opencollective.com/storybook" } }, - "node_modules/@storybook/preview-api": { - "version": "7.6.10", - "resolved": "https://registry.npmjs.org/@storybook/preview-api/-/preview-api-7.6.10.tgz", - "integrity": "sha512-5A3etoIwZCx05yuv3KSTv1wynN4SR4rrzaIs/CTBp3BC4q1RBL+Or/tClk0IJPXQMlx/4Y134GtNIBbkiDofpw==", - "dev": true, - "dependencies": { - "@storybook/channels": "7.6.10", - "@storybook/client-logger": "7.6.10", - "@storybook/core-events": "7.6.10", - "@storybook/csf": "^0.1.2", - "@storybook/global": "^5.0.0", - "@storybook/types": "7.6.10", - "@types/qs": "^6.9.5", - "dequal": "^2.0.2", - "lodash": "^4.17.21", - "memoizerific": "^1.11.3", - "qs": "^6.10.0", - "synchronous-promise": "^2.0.15", - "ts-dedent": "^2.0.0", - "util-deprecate": "^1.0.2" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/storybook" - } - }, "node_modules/@storybook/react": { "version": "7.6.17", "resolved": "https://registry.npmjs.org/@storybook/react/-/react-7.6.17.tgz", @@ -13640,6 +13255,37 @@ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true }, + "node_modules/@tanstack/react-table": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/@tanstack/react-table/-/react-table-8.12.0.tgz", + "integrity": "sha512-LlEQ1Gpz4bfpiET+qmle4BhKDgKN3Y/sssc+O/wLqX8HRtjV+nhusYbllZlutZfMR8oeef83whKTj/VhaV8EeA==", + "dependencies": { + "@tanstack/table-core": "8.12.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": ">=16", + "react-dom": ">=16" + } + }, + "node_modules/@tanstack/table-core": { + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.12.0.tgz", + "integrity": "sha512-cq/ylWVrOwixmwNXQjgZaQw1Izf7+nPxjczum7paAnMtwPg1S2qRAJU+Jb8rEBUWm69voC/zcChmePlk2hc6ug==", + "engines": { + "node": ">=12" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, "node_modules/@testing-library/dom": { "version": "9.3.4", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-9.3.4.tgz", diff --git a/package.json b/package.json index 63dffda8f..596a4d772 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ }, "dependencies": { "@reduxjs/toolkit": "^2.2.1", + "@tanstack/react-table": "^8.12.0", "@types/react": "^18.2.48", "@types/react-dom": "^18.2.18", "antd": "^5.13.3", diff --git a/public/build/298.830d7e38.js b/public/build/298.830d7e38.js new file mode 100644 index 000000000..413d51979 --- /dev/null +++ b/public/build/298.830d7e38.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkPimcore=self.webpackChunkPimcore||[]).push([[298],{1298:(e,t,n)=>{n.r(t),n.d(t,{default:()=>i});var a,r=n(7294);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";n.d(t,{iN:()=>E,R_:()=>b});var r=n(6500),o=n(1350),i=2,a=.16,l=.05,s=.05,c=.15,u=5,d=4,f=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function p(e){var t=e.r,n=e.g,o=e.b,i=(0,r.py)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function h(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function g(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?r+=360:r>=360&&(r-=360),r}function m(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-a*t:t===d?e.s+a:e.s+l*t)>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function v(e,t,n){var r;return(r=n?e.v+s*t:e.v-c*t)>1&&(r=1),Number(r.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),i=u;i>0;i-=1){var a=p(r),l=h((0,o.uA)({h:g(a,i,!0),s:m(a,i,!0),v:v(a,i,!0)}));n.push(l)}n.push(h(r));for(var s=1;s<=d;s+=1){var c=p(r),b=h((0,o.uA)({h:g(c,s),s:m(c,s),v:v(c,s)}));n.push(b)}return"dark"===t.theme?f.map((function(e){var r,i,a,l=e.index,s=e.opacity;return h((r=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(n[l]),a=100*s/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))})):n}var y={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},S={},w={};Object.keys(y).forEach((function(e){S[e]=b(y[e]),S[e].primary=S[e][5],w[e]=b(y[e],{theme:"dark",backgroundColor:"#141414"}),w[e].primary=w[e][5]}));S.red,S.volcano,S.gold,S.orange,S.yellow,S.lime,S.green,S.cyan;var E=S.blue;S.geekblue,S.purple,S.magenta,S.grey,S.grey},7395:(e,t,n)=>{"use strict";n.d(t,{E4:()=>mt,V9:()=>_,jG:()=>M,t2:()=>le,ks:()=>q,bf:()=>W,CI:()=>ht,fp:()=>ce,xy:()=>ft});var r=n(4942),o=n(9439),i=n(3433),a=n(1413);const l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var s=n(4958),c=n(7294),u=n.t(c,2),d=n(4925),f=n(6982),p=n(1881),h=n(5671),g=n(3144),m="%";function v(e){return e.join(m)}const b=function(){function e(t){(0,h.Z)(this,e),(0,r.Z)(this,"instanceId",void 0),(0,r.Z)(this,"cache",new Map),this.instanceId=t}return(0,g.Z)(e,[{key:"get",value:function(e){return this.opGet(v(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(v(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var y=["children"],S="data-token-hash",w="data-css-hash",E="__cssinjs_instance__";function C(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(w,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[E]=t[E]||e,t[E]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(w,"]"))).forEach((function(t){var n,o=t.getAttribute(w);r[o]?t[E]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new b(e)}var x=c.createContext({hashPriority:"low",cache:C(),defaultCache:!0}),_=function(e){var t=e.children,n=(0,d.Z)(e,y),r=c.useContext(x),o=(0,f.Z)((function(){var e=(0,a.Z)({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||C(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!(0,p.Z)(e[0],t[0],!0)||!(0,p.Z)(e[1],t[1],!0)}));return c.createElement(x.Provider,{value:o},t)};const O=x;var T=n(1002),k=n(8924);var R=function(){function e(){(0,h.Z)(this,e),(0,r.Z)(this,"cache",void 0),(0,r.Z)(this,"keys",void 0),(0,r.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,g.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=(0,o.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),N+=1}return(0,g.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),P=new R;function M(e){var t=Array.isArray(e)?e:[e];return P.has(t)||P.set(t,new A(t)),P.get(t)}var L=new WeakMap,I={};var Z=new WeakMap;function D(e){var t=Z.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof A?t+=r.id:r&&"object"===(0,T.Z)(r)?t+=D(r):t+=r})),Z.set(e,t)),t}function j(e,t){return l("".concat(t,"_").concat(D(e)))}var z="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),F="_bAmBoO_";function B(e,t,n){if((0,k.Z)()){var r,o;(0,s.hq)(e,z);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=n?n(i):null===(r=getComputedStyle(i).content)||void 0===r?void 0:r.includes(F);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),(0,s.jL)(z),a}return!1}var H=void 0;var U=(0,k.Z)();function W(e){return"number"==typeof e?"".concat(e,"px"):e}function V(e,t,n){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var l=(0,a.Z)((0,a.Z)({},i),{},(o={},(0,r.Z)(o,S,t),(0,r.Z)(o,w,n),o)),s=Object.keys(l).map((function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},X=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,o.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},G=function(e,t,n){var r={},i={};return Object.entries(e).forEach((function(e){var t,a,l=(0,o.Z)(e,2),s=l[0],c=l[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[s])i[s]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[s])){var u,d=q(s,null==n?void 0:n.prefix);r[d]="number"!=typeof c||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[s]?String(c):"".concat(c,"px"),i[s]="var(".concat(d,")")}})),[i,X(r,t,{scope:null==n?void 0:n.scope})]},Y=n(8410),K=(0,a.Z)({},u).useInsertionEffect;const Q=K?function(e,t,n){return K((function(){return e(),t()}),n)}:function(e,t,n){c.useMemo(e,n),(0,Y.Z)((function(){return t(!0)}),n)};const J=void 0!==(0,a.Z)({},u).useInsertionEffect?function(e){var t=[],n=!1;return c.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const ee=function(){return!1};function te(e,t,n,r,a){var l=c.useContext(O).cache,s=v([e].concat((0,i.Z)(t))),u=J([s]),d=(ee(),function(e){l.opUpdate(s,(function(t){var r=t||[void 0,void 0],i=(0,o.Z)(r,2),a=i[0];var l=[void 0===a?0:a,i[1]||n()];return e?e(l):l}))});c.useMemo((function(){d()}),[s]);var f=l.opGet(s)[1];return Q((function(){null==a||a(f)}),(function(e){return d((function(t){var n=(0,o.Z)(t,2),r=n[0],i=n[1];return e&&0===r&&(null==a||a(f)),[r+1,i]})),function(){l.opUpdate(s,(function(t){var n=t||[],i=(0,o.Z)(n,2),a=i[0],c=void 0===a?0:a,d=i[1];return 0===c-1?(u((function(){!e&&l.opGet(s)||null==r||r(d,!1)})),null):[c-1,d]}))}}),[s]),f}var ne={},re="css",oe=new Map;var ie=0;function ae(e,t){oe.set(e,(oe.get(e)||0)-1);var n=Array.from(oe.keys()),r=n.filter((function(e){return(oe.get(e)||0)<=0}));n.length-r.length>ie&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(S,'="').concat(e,'"]')).forEach((function(e){var n;e[E]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),oe.delete(e)}))}var le=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.Z)((0,a.Z)({},o),t);return r&&(i=r(i)),i},se="token";function ce(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,c.useContext)(O),u=r.cache.instanceId,d=r.container,f=n.salt,p=void 0===f?"":f,h=n.override,g=void 0===h?ne:h,m=n.formatToken,v=n.getComputedToken,b=n.cssVar,y=function(e,t){for(var n=L,r=0;r0?Ce(Me,--Ae):0,$e--,10===Pe&&($e=1,Re--),Pe}function Ze(){return Pe=Ae2||Fe(Pe)>3?"":" "}function Ve(e,t){for(;--t&&Ze()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return ze(e,je()+(t<6&&32==De()&&32==Ze()))}function qe(e){for(;Ze();)switch(Pe){case e:return Ae;case 34:case 39:34!==e&&39!==e&&qe(Pe);break;case 40:41===e&&qe(e);break;case 92:Ze()}return Ae}function Xe(e,t){for(;Ze()&&e+Pe!==57&&(e+Pe!==84||47!==De()););return"/*"+ze(t,Ae-1)+"*"+ye(47===e?e:Ze())}function Ge(e){for(;!Fe(De());)Ze();return ze(e,Ae)}function Ye(e){return He(Ke("",null,null,null,[""],e=Be(e),0,[0],e))}function Ke(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,v=1,b=0,y="",S=o,w=i,E=r,C=y;m;)switch(h=b,b=Ze()){case 40:if(108!=h&&58==Ce(C,d-1)){-1!=Ee(C+=we(Ue(b),"&","&\f"),"&\f",be(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Ue(b);break;case 9:case 10:case 13:case 32:C+=We(h);break;case 92:C+=Ve(je()-1,7);continue;case 47:switch(De()){case 42:case 47:Oe(Je(Xe(Ze(),je()),t,n,s),s);break;default:C+="/"}break;case 123*g:l[c++]=_e(C)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(C=we(C,/\f/g,"")),p>0&&_e(C)-d&&Oe(p>32?et(C+";",r,n,d-1,s):et(we(C," ","")+";",r,n,d-2,s),s);break;case 59:C+=";";default:if(Oe(E=Qe(C,t,n,c,u,o,l,y,S=[],w=[],d,i),i),123===b)if(0===u)Ke(C,t,E,E,S,i,d,l,w);else switch(99===f&&110===Ce(C,3)?100:f){case 100:case 108:case 109:case 115:Ke(e,E,E,r&&Oe(Qe(e,E,E,0,0,o,l,y,o,S=[],d,w),w),o,w,d,l,r?S:w);break;default:Ke(C,E,E,E,[""],w,0,l,w)}}c=u=p=0,g=v=1,y=C="",d=a;break;case 58:d=1+_e(C),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Ie())continue;switch(C+=ye(b),b*g){case 38:v=u>0?1:(C+="\f",-1);break;case 44:l[c++]=(_e(C)-1)*v,v=1;break;case 64:45===De()&&(C+=Ue(Ze())),f=De(),u=d=_e(y=C+=Ge(je())),b++;break;case 45:45===h&&2==_e(C)&&(g=0)}}return i}function Qe(e,t,n,r,o,i,a,l,s,c,u,d){for(var f=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),g=0,m=0,v=0;g0?p[b]+" "+y:we(y,/&\f/g,p[b])))&&(s[v++]=S);return Le(e,t,n,0===o?pe:l,s,c,u,d)}function Je(e,t,n,r){return Le(e,t,n,fe,ye(Pe),xe(e,2,-2),0,r)}function et(e,t,n,r,o){return Le(e,t,n,he,xe(e,0,r),xe(e,r+1,-1),r,o)}var tt,nt="data-ant-cssinjs-cache-path",rt="_FILE_STYLE__";var ot=!0;function it(e){return function(){if(!tt&&(tt={},(0,k.Z)())){var e=document.createElement("div");e.className=nt,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,o.Z)(t,2),r=n[0],i=n[1];tt[r]=i}));var n,r=document.querySelector("style[".concat(nt,"]"));r&&(ot=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!tt[e]}var at="_multi_value_";function lt(e){return Te(Ye(e),ke).replace(/\{%%%\:[^;];}/g,";")}var st=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},l=r.root,s=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),p=n.transformers,h=void 0===p?[]:p,g=(n.linters,""),m={};function v(t){var r=t.getName(u);if(!m[r]){var i=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,o.Z)(i,1)[0];m[r]="@keyframes ".concat(t.getName(u)).concat(a)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(b.forEach((function(t){var r="string"!=typeof t||l?t:{};if("string"==typeof r)g+="".concat(r,"\n");else if(r._keyframe)v(r);else{var d=h.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(d).forEach((function(t){var r=d[t];if("object"!==(0,T.Z)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===(0,T.Z)(e)&&e&&("_skip_check_"in e||at in e)}(r)){var p;function _(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;de[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(u)),g+="".concat(n,":").concat(r,";")}var h=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,T.Z)(r)&&null!=r&&r[at]&&Array.isArray(h)?h.forEach((function(e){_(t,e)})):_(t,h)}else{var b=!1,y=t.trim(),S=!1;(l||s)&&u?y.startsWith("@")?b=!0:y=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.Z)(n.slice(1))).join(" ")})).join(",")}(t,u,f):!l||u||"&"!==y&&""!==y||(y="",S=!0);var w=e(r,n,{root:S,injectHash:b,parentSelectors:[].concat((0,i.Z)(c),[y])}),E=(0,o.Z)(w,2),C=E[0],x=E[1];m=(0,a.Z)((0,a.Z)({},m),x),g+="".concat(y).concat(C)}}))}})),l){if(d&&(void 0===H&&(H=B("@layer ".concat(z," { .").concat(z,' { content: "').concat(F,'"!important; } }'),(function(e){e.className=z}))),H)){var y=d.split(","),S=y[y.length-1].trim();g="@layer ".concat(S," {").concat(g,"}"),y.length>1&&(g="@layer ".concat(d,"{%%%:%}").concat(g))}}else g="{".concat(g,"}");return[g,m]};function ct(e,t){return l("".concat(e.join("%")).concat(t))}function ut(){return null}var dt="style";function ft(e,t){var n=e.token,a=e.path,l=e.hashId,u=e.layer,d=e.nonce,f=e.clientOnly,p=e.order,h=void 0===p?0:p,g=c.useContext(O),m=g.autoClear,v=(g.mock,g.defaultCache),b=g.hashPriority,y=g.container,C=g.ssrInline,x=g.transformers,_=g.linters,T=g.cache,R=n._tokenKey,$=[R].concat((0,i.Z)(a)),N=U;var A=te(dt,$,(function(){var e=$.join("|");if(it(e)){var n=function(e){var t=tt[e],n=null;if(t&&(0,k.Z)())if(ot)n=rt;else{var r=document.querySelector("style[".concat(w,'="').concat(tt[e],'"]'));r?n=r.innerHTML:delete tt[e]}return[n,t]}(e),r=(0,o.Z)(n,2),i=r[0],s=r[1];if(i)return[i,R,s,{},f,h]}var c=t(),d=st(c,{hashId:l,hashPriority:b,layer:u,path:a.join("-"),transformers:x,linters:_}),p=(0,o.Z)(d,2),g=p[0],m=p[1],v=lt(g),y=ct($,v);return[v,R,y,m,f,h]}),(function(e,t){var n=(0,o.Z)(e,3)[2];(t||m)&&U&&(0,s.jL)(n,{mark:w})}),(function(e){var t=(0,o.Z)(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(N&&n!==rt){var a={mark:w,prepend:"queue",attachTo:y,priority:h},l="function"==typeof d?d():d;l&&(a.csp={nonce:l});var c=(0,s.hq)(n,r,a);c[E]=T.instanceId,c.setAttribute(S,R),Object.keys(i).forEach((function(e){(0,s.hq)(lt(i[e]),"_effect-".concat(e),a)}))}})),P=(0,o.Z)(A,3),M=P[0],L=P[1],I=P[2];return function(e){var t,n;C&&!N&&v?t=c.createElement("style",(0,ue.Z)({},(n={},(0,r.Z)(n,S,L),(0,r.Z)(n,w,I),n),{dangerouslySetInnerHTML:{__html:M}})):t=c.createElement(ut,null);return c.createElement(c.Fragment,null,t,e)}}var pt="cssVar";const ht=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,l=e.ignore,u=e.token,d=e.scope,f=void 0===d?"":d,p=(0,c.useContext)(O),h=p.cache.instanceId,g=p.container,m=u._tokenKey,v=[].concat((0,i.Z)(e.path),[n,f,m]);return te(pt,v,(function(){var e=t(),i=G(e,n,{prefix:r,unitless:a,ignore:l,scope:f}),s=(0,o.Z)(i,2),c=s[0],u=s[1];return[c,u,ct(v,u),n]}),(function(e){var t=(0,o.Z)(e,3)[2];U&&(0,s.jL)(t,{mark:w})}),(function(e){var t=(0,o.Z)(e,3),r=t[1],i=t[2];if(r){var a=(0,s.hq)(r,i,{mark:w,prepend:"queue",attachTo:g,priority:-999});a[E]=h,a.setAttribute(S,n)}}))};var gt;gt={},(0,r.Z)(gt,dt,(function(e,t,n){var r=(0,o.Z)(e,6),i=r[0],a=r[1],l=r[2],s=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var f=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=V(i,a,l,p,d),s&&Object.keys(s).forEach((function(e){if(!t[e]){t[e]=!0;var n=lt(s[e]);f+=V(n,a,"_effect-".concat(e),p,d)}})),[u,l,f]})),(0,r.Z)(gt,se,(function(e,t,n){var r=(0,o.Z)(e,5),i=r[2],a=r[3],l=r[4],s=(n||{}).plain;if(!a)return null;var c=i._tokenKey;return[-999,c,V(a,l,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),(0,r.Z)(gt,pt,(function(e,t,n){var r=(0,o.Z)(e,4),i=r[1],a=r[2],l=r[3],s=(n||{}).plain;if(!i)return null;return[-999,a,V(i,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));const mt=function(){function e(t,n){(0,h.Z)(this,e),(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"style",void 0),(0,r.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,g.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function vt(e){return e.notSplit=!0,e}vt(["borderTop","borderBottom"]),vt(["borderTop"]),vt(["borderBottom"]),vt(["borderLeft","borderRight"]),vt(["borderLeft"]),vt(["borderRight"])},76:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(7462),o=n(9439),i=n(4942),a=n(4925),l=n(7294),s=n(3967),c=n.n(s),u=n(1242),d=n(3017),f=n(1413),p=n(1002),h=n(4958),g=n(7571),m=n(334);function v(e){return"object"===(0,p.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.Z)(e.icon)||"function"==typeof e.icon)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function y(e,t,n){return n?l.createElement(e.tag,(0,f.Z)((0,f.Z)({key:t},b(e.attrs)),n),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.createElement(e.tag,(0,f.Z)({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function S(e){return(0,u.R_)(e)[0]}function w(e){return e?Array.isArray(e)?e:[e]:[]}var E=["icon","className","onClick","style","primaryColor","secondaryColor"],C={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var x=function(e){var t,n,r,o,i,s,c,u=e.icon,p=e.className,b=e.onClick,w=e.style,x=e.primaryColor,_=e.secondaryColor,O=(0,a.Z)(e,E),T=l.useRef(),k=C;if(x&&(k={primaryColor:x,secondaryColor:_||S(x)}),t=T,n=(0,l.useContext)(d.Z),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(i=i.replace(/anticon/g,o)),(0,l.useEffect)((function(){var e=t.current,n=(0,g.A)(e);(0,h.hq)(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})}),[]),s=v(u),c="icon should be icon definiton, but got ".concat(u),(0,m.ZP)(s,"[@ant-design/icons] ".concat(c)),!v(u))return null;var R=u;return R&&"function"==typeof R.icon&&(R=(0,f.Z)((0,f.Z)({},R),{},{icon:R.icon(k.primaryColor,k.secondaryColor)})),y(R.icon,"svg-".concat(R.name),(0,f.Z)((0,f.Z)({className:p,onClick:b,style:w,"data-icon":R.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},O),{},{ref:T}))};x.displayName="IconReact",x.getTwoToneColors=function(){return(0,f.Z)({},C)},x.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;C.primaryColor=t,C.secondaryColor=n||S(t),C.calculated=!!n};const _=x;function O(e){var t=w(e),n=(0,o.Z)(t,2),r=n[0],i=n[1];return _.setTwoToneColors({primaryColor:r,secondaryColor:i})}var T=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];O(u.iN.primary);var k=l.forwardRef((function(e,t){var n,s=e.className,u=e.icon,f=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,v=(0,a.Z)(e,T),b=l.useContext(d.Z),y=b.prefixCls,S=void 0===y?"anticon":y,E=b.rootClassName,C=c()(E,S,(n={},(0,i.Z)(n,"".concat(S,"-").concat(u.name),!!u.name),(0,i.Z)(n,"".concat(S,"-spin"),!!f||"loading"===u.name),n),s),x=h;void 0===x&&g&&(x=-1);var O=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,k=w(m),R=(0,o.Z)(k,2),$=R[0],N=R[1];return l.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},v,{ref:t,tabIndex:x,onClick:g,className:C}),l.createElement(_,{icon:u,primaryColor:$,secondaryColor:N,style:O}))}));k.displayName="AntdIcon",k.getTwoToneColor=function(){var e=_.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},k.setTwoToneColor=O;const R=k},3017:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(7294).createContext)({})},8819:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=n(76),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l)},3061:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=n(76),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l)},4549:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=n(76),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l)},8855:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=n(76),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l)},847:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=n(76),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l)},7724:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=n(76),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l)},7085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var a=n(76),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l)},8812:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=n(76),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l)},9366:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};var a=n(76),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l)},6500:(e,t,n)=>{"use strict";n.d(t,{T6:()=>p,VD:()=>h,WE:()=>c,Yt:()=>g,lC:()=>i,py:()=>s,rW:()=>o,s:()=>d,ve:()=>l,vq:()=>u});var r=n(279);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function i(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=0,s=(o+i)/2;if(o===i)l=0,a=0;else{var c=o-i;switch(l=s>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){var o,i,l;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)i=n,l=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;o=a(c,s,e+1/3),i=a(c,s,e),l=a(c,s,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function s(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=o,s=o-i,c=0===o?0:s/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}},8701:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:(e,t,n)=>{"use strict";n.d(t,{uA:()=>a});var r=n(6500),o=n(8701),i=n(279);function a(e){var t={r:0,g:0,b:0},n=1,a=null,l=null,s=null,c=!1,f=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,i.JX)(e.s),l=(0,i.JX)(e.v),t=(0,r.WE)(e.h,a,l),c=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,r.ve)(e.h,a,s),c=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.Yq)(n),{ok:c,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+s),rgba:new RegExp("rgba"+c),hsl:new RegExp("hsl"+s),hsla:new RegExp("hsla"+c),hsv:new RegExp("hsv"+s),hsva:new RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},274:(e,t,n)=>{"use strict";n.d(t,{C:()=>l});var r=n(6500),o=n(8701),i=n(1350),a=n(279),l=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a{"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:()=>l,JX:()=>a,V2:()=>o,Yq:()=>i,sh:()=>r})},8705:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(9439),o=n(7294),i=n(3935),a=n(8924),l=(n(334),n(2550));const s=o.createContext(null);var c=n(3433),u=n(8410),d=[];var f,p=n(4958);function h(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(e||void 0===f){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),f=o-i}return f}():n}var g="rc-util-locker-".concat(Date.now()),m=0;function v(e){var t=!!e,n=o.useState((function(){return m+=1,"".concat(g,"_").concat(m)})),i=(0,r.Z)(n,1)[0];(0,u.Z)((function(){if(t){var e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:h(n),height:h(r)}}(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,p.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,p.jL)(i);return function(){(0,p.jL)(i)}}),[t,i])}var b=!1;var y=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};const S=o.forwardRef((function(e,t){var n=e.open,f=e.autoLock,p=e.getContainer,h=(e.debug,e.autoDestroy),g=void 0===h||h,m=e.children,S=o.useState(n),w=(0,r.Z)(S,2),E=w[0],C=w[1],x=E||n;o.useEffect((function(){(g||n)&&C(n)}),[n,g]);var _=o.useState((function(){return y(p)})),O=(0,r.Z)(_,2),T=O[0],k=O[1];o.useEffect((function(){var e=y(p);k(null!=e?e:null)}));var R=function(e,t){var n=o.useState((function(){return(0,a.Z)()?document.createElement("div"):null})),i=(0,r.Z)(n,1)[0],l=o.useRef(!1),f=o.useContext(s),p=o.useState(d),h=(0,r.Z)(p,2),g=h[0],m=h[1],v=f||(l.current?void 0:function(e){m((function(t){return[e].concat((0,c.Z)(t))}))});function b(){i.parentElement||document.body.appendChild(i),l.current=!0}function y(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),l.current=!1}return(0,u.Z)((function(){return e?f?f(b):b():y(),y}),[e]),(0,u.Z)((function(){g.length&&(g.forEach((function(e){return e()})),m(d))}),[g]),[i,v]}(x&&!T),$=(0,r.Z)(R,2),N=$[0],A=$[1],P=null!=T?T:N;v(f&&n&&(0,a.Z)()&&(P===N||P===document.body));var M=null;m&&(0,l.Yr)(m)&&t&&(M=m.ref);var L=(0,l.x1)(M,t);if(!x||!(0,a.Z)()||void 0===T)return null;var I,Z=!1===P||("boolean"==typeof I&&(b=I),b),D=m;return t&&(D=o.cloneElement(m,{ref:L})),o.createElement(s.Provider,{value:A},Z?D:(0,i.createPortal)(D,P))}))},2507:(e,t,n)=>{"use strict";n.d(t,{Z:()=>H});var r=n(1413),o=n(9439),i=n(4925),a=n(8705),l=n(3967),s=n.n(l),c=n(5375),u=n(4203),d=n(7571),f=n(6680),p=n(7028),h=n(8410),g=n(1131),m=n(7294),v=n(7462),b=n(5461),y=n(2550);function S(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,u=void 0===c?0:c,d=o.y,f=void 0===d?0:d,p=m.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],b=g[0],y=g[1],S=v[0],w=v[1];b!==S&&["t","b"].includes(b)?"t"===b?h.top=0:h.bottom=0:h.top=f,y!==w&&["l","r"].includes(y)?"l"===y?h.left=0:h.right=0:h.left=u}return m.createElement("div",{ref:p,className:s()("".concat(t,"-arrow"),a),style:h},l)}function w(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?m.createElement(b.ZP,(0,v.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return m.createElement("div",{style:{zIndex:r},className:s()("".concat(t,"-mask"),n)})})):null}const E=m.memo((function(e){return e.children}),(function(e,t){return t.cache}));const C=m.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,l=e.style,u=e.target,d=e.onVisibleChanged,f=e.open,p=e.keepDom,g=e.fresh,C=e.onClick,x=e.mask,_=e.arrow,O=e.arrowPos,T=e.align,k=e.motion,R=e.maskMotion,$=e.forceRender,N=e.getPopupContainer,A=e.autoDestroy,P=e.portal,M=e.zIndex,L=e.onMouseEnter,I=e.onMouseLeave,Z=e.onPointerEnter,D=e.ready,j=e.offsetX,z=e.offsetY,F=e.offsetR,B=e.offsetB,H=e.onAlign,U=e.onPrepare,W=e.stretch,V=e.targetWidth,q=e.targetHeight,X="function"==typeof n?n():n,G=f||p,Y=(null==N?void 0:N.length)>0,K=m.useState(!N||!Y),Q=(0,o.Z)(K,2),J=Q[0],ee=Q[1];if((0,h.Z)((function(){!J&&Y&&u&&ee(!0)}),[J,Y,u]),!J)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(D||!f){var re,oe=T.points,ie=T.dynamicInset||(null===(re=T._experimental)||void 0===re?void 0:re.dynamicInset),ae=ie&&"r"===oe[0][1],le=ie&&"b"===oe[0][0];ae?(ne.right=F,ne.left=te):(ne.left=j,ne.right=te),le?(ne.bottom=B,ne.top=te):(ne.top=z,ne.bottom=te)}var se={};return W&&(W.includes("height")&&q?se.height=q:W.includes("minHeight")&&q&&(se.minHeight=q),W.includes("width")&&V?se.width=V:W.includes("minWidth")&&V&&(se.minWidth=V)),f||(se.pointerEvents="none"),m.createElement(P,{open:$||G,getContainer:N&&function(){return N(u)},autoDestroy:A},m.createElement(w,{prefixCls:a,open:f,zIndex:M,mask:x,motion:R}),m.createElement(c.Z,{onResize:H,disabled:!f},(function(e){return m.createElement(b.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:$,leavedClassName:"".concat(a,"-hidden")},k,{onAppearPrepare:U,onEnterPrepare:U,visible:f,onVisibleChanged:function(e){var t;null==k||null===(t=k.onVisibleChanged)||void 0===t||t.call(k,e),d(e)}}),(function(n,o){var c=n.className,u=n.style,d=s()(a,c,i);return m.createElement("div",{ref:(0,y.sQ)(e,t,o),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(O.x||0,"px"),"--arrow-y":"".concat(O.y||0,"px")},ne),se),u),{},{boxSizing:"border-box",zIndex:M},l),onMouseEnter:L,onMouseLeave:I,onPointerEnter:Z,onClick:C},_&&m.createElement(S,{prefixCls:a,arrow:_,arrowPos:O,align:T}),m.createElement(E,{cache:!f&&!g},X))}))})))}));const x=m.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),i=m.useCallback((function(e){(0,y.mH)(t,r?r(e):e)}),[r]),a=(0,y.x1)(i,n.ref);return o?m.cloneElement(n,{ref:a}):n}));const _=m.createContext(null);function O(e){return e?Array.isArray(e)?e:[e]:[]}var T=n(5110);function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function R(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function $(e){return e.ownerDocument.defaultView}function N(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=$(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function P(e){return A(parseFloat(e),0)}function M(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=$(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=P(i),g=P(a),m=P(l),v=P(s),b=A(Math.round(c.width/f*1e3)/1e3),y=A(Math.round(c.height/u*1e3)/1e3),S=(f-p-m-v)*b,w=(u-d-h-g)*y,E=h*y,C=g*y,x=m*b,_=v*b,O=0,T=0;if("clip"===r){var k=P(o);O=k*b,T=k*y}var R=c.x+x-O,N=c.y+E-T,M=R+c.width+2*O-x-_-S,L=N+c.height+2*T-E-C-w;n.left=Math.max(n.left,R),n.top=Math.max(n.top,N),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,L)}})),n}function L(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function I(e,t){var n=t||[],r=(0,o.Z)(n,2),i=r[0],a=r[1];return[L(e.width,i),L(e.height,a)]}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function D(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function j(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var z=n(3433);n(334);var F=n(5164);var B=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z;return m.forwardRef((function(t,n){var a=t.prefixCls,l=void 0===a?"rc-trigger-popup":a,v=t.children,b=t.action,y=void 0===b?"hover":b,S=t.showAction,w=t.hideAction,E=t.popupVisible,P=t.defaultPopupVisible,L=t.onPopupVisibleChange,H=t.afterPopupVisibleChange,U=t.mouseEnterDelay,W=t.mouseLeaveDelay,V=void 0===W?.1:W,q=t.focusDelay,X=t.blurDelay,G=t.mask,Y=t.maskClosable,K=void 0===Y||Y,Q=t.getPopupContainer,J=t.forceRender,ee=t.autoDestroy,te=t.destroyPopupOnHide,ne=t.popup,re=t.popupClassName,oe=t.popupStyle,ie=t.popupPlacement,ae=t.builtinPlacements,le=void 0===ae?{}:ae,se=t.popupAlign,ce=t.zIndex,ue=t.stretch,de=t.getPopupClassNameFromAlign,fe=t.fresh,pe=t.alignPoint,he=t.onPopupClick,ge=t.onPopupAlign,me=t.arrow,ve=t.popupMotion,be=t.maskMotion,ye=t.popupTransitionName,Se=t.popupAnimation,we=t.maskTransitionName,Ee=t.maskAnimation,Ce=t.className,xe=t.getTriggerDOMNode,_e=(0,i.Z)(t,B),Oe=ee||te||!1,Te=m.useState(!1),ke=(0,o.Z)(Te,2),Re=ke[0],$e=ke[1];(0,h.Z)((function(){$e((0,g.Z)())}),[]);var Ne=m.useRef({}),Ae=m.useContext(_),Pe=m.useMemo((function(){return{registerSubPopup:function(e,t){Ne.current[e]=t,null==Ae||Ae.registerSubPopup(e,t)}}}),[Ae]),Me=(0,p.Z)(),Le=m.useState(null),Ie=(0,o.Z)(Le,2),Ze=Ie[0],De=Ie[1],je=(0,f.Z)((function(e){(0,u.S)(e)&&Ze!==e&&De(e),null==Ae||Ae.registerSubPopup(Me,e)})),ze=m.useState(null),Fe=(0,o.Z)(ze,2),Be=Fe[0],He=Fe[1],Ue=m.useRef(null),We=(0,f.Z)((function(e){(0,u.S)(e)&&Be!==e&&(He(e),Ue.current=e)})),Ve=m.Children.only(v),qe=(null==Ve?void 0:Ve.props)||{},Xe={},Ge=(0,f.Z)((function(e){var t,n,r=Be;return(null==r?void 0:r.contains(e))||(null===(t=(0,d.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Ze?void 0:Ze.contains(e))||(null===(n=(0,d.A)(Ze))||void 0===n?void 0:n.host)===e||e===Ze||Object.values(Ne.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ye=R(l,ve,Se,ye),Ke=R(l,be,Ee,we),Qe=m.useState(P||!1),Je=(0,o.Z)(Qe,2),et=Je[0],tt=Je[1],nt=null!=E?E:et,rt=(0,f.Z)((function(e){void 0===E&&tt(e)}));(0,h.Z)((function(){tt(E||!1)}),[E]);var ot=m.useRef(nt);ot.current=nt;var it=m.useRef([]);it.current=[];var at=(0,f.Z)((function(e){var t;rt(e),(null!==(t=it.current[it.current.length-1])&&void 0!==t?t:nt)!==e&&(it.current.push(e),null==L||L(e))})),lt=m.useRef(),st=function(){clearTimeout(lt.current)},ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;st(),0===t?at(e):lt.current=setTimeout((function(){at(e)}),1e3*t)};m.useEffect((function(){return st}),[]);var ut=m.useState(!1),dt=(0,o.Z)(ut,2),ft=dt[0],pt=dt[1];(0,h.Z)((function(e){e&&!nt||pt(!0)}),[nt]);var ht=m.useState(null),gt=(0,o.Z)(ht,2),mt=gt[0],vt=gt[1],bt=m.useState([0,0]),yt=(0,o.Z)(bt,2),St=yt[0],wt=yt[1],Et=function(e){wt([e.clientX,e.clientY])},Ct=function(e,t,n,i,a,l,s){var c=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),d=(0,o.Z)(c,2),p=d[0],g=d[1],v=m.useRef(0),b=m.useMemo((function(){return t?N(t):[]}),[t]),y=m.useRef({});e||(y.current={});var S=(0,f.Z)((function(){if(t&&n&&e){var c,d,f,p=t,h=p.ownerDocument,m=$(p).getComputedStyle(p),v=m.width,S=m.height,w=m.position,E=p.style.left,C=p.style.top,x=p.style.right,_=p.style.bottom,O=p.style.overflow,k=(0,r.Z)((0,r.Z)({},a[i]),l),R=h.createElement("div");if(null===(c=p.parentElement)||void 0===c||c.appendChild(R),R.style.left="".concat(p.offsetLeft,"px"),R.style.top="".concat(p.offsetTop,"px"),R.style.position=w,R.style.height="".concat(p.offsetHeight,"px"),R.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))f={x:n[0],y:n[1],width:0,height:0};else{var N=n.getBoundingClientRect();f={x:N.x,y:N.y,width:N.width,height:N.height}}var P=p.getBoundingClientRect(),L=h.documentElement,z=L.clientWidth,F=L.clientHeight,B=L.scrollWidth,H=L.scrollHeight,U=L.scrollTop,W=L.scrollLeft,V=P.height,q=P.width,X=f.height,G=f.width,Y={left:0,top:0,right:z,bottom:F},K={left:-W,top:-U,right:B-W,bottom:H-U},Q=k.htmlRegion,J="visible",ee="visibleFirst";"scroll"!==Q&&Q!==ee&&(Q=J);var te=Q===ee,ne=M(K,b),re=M(Y,b),oe=Q===J?re:ne,ie=te?re:oe;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var ae=p.getBoundingClientRect();p.style.left=E,p.style.top=C,p.style.right=x,p.style.bottom=_,p.style.overflow=O,null===(d=p.parentElement)||void 0===d||d.removeChild(R);var le=A(Math.round(q/parseFloat(v)*1e3)/1e3),se=A(Math.round(V/parseFloat(S)*1e3)/1e3);if(0===le||0===se||(0,u.S)(n)&&!(0,T.Z)(n))return;var ce=k.offset,ue=k.targetOffset,de=I(P,ce),fe=(0,o.Z)(de,2),pe=fe[0],he=fe[1],ge=I(f,ue),me=(0,o.Z)(ge,2),ve=me[0],be=me[1];f.x-=ve,f.y-=be;var ye=k.points||[],Se=(0,o.Z)(ye,2),we=Se[0],Ee=Z(Se[1]),Ce=Z(we),xe=D(f,Ee),_e=D(P,Ce),Oe=(0,r.Z)({},k),Te=xe.x-_e.x+pe,ke=xe.y-_e.y+he;function wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oe,r=P.x+e,o=P.y+t,i=r+q,a=o+V,l=Math.max(r,n.left),s=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-l)*(u-s))}var Re,$e,Ne,Ae,Pe=wt(Te,ke),Me=wt(Te,ke,re),Le=D(f,["t","l"]),Ie=D(P,["t","l"]),Ze=D(f,["b","r"]),De=D(P,["b","r"]),je=k.overflow||{},ze=je.adjustX,Fe=je.adjustY,Be=je.shiftX,He=je.shiftY,Ue=function(e){return"boolean"==typeof e?e:e>=0};function Et(){Re=P.y+ke,$e=Re+V,Ne=P.x+Te,Ae=Ne+q}Et();var We=Ue(Fe),Ve=Ce[0]===Ee[0];if(We&&"t"===Ce[0]&&($e>ie.bottom||y.current.bt)){var qe=ke;Ve?qe-=V-X:qe=Le.y-De.y-he;var Xe=wt(Te,qe),Ge=wt(Te,qe,re);Xe>Pe||Xe===Pe&&(!te||Ge>=Me)?(y.current.bt=!0,ke=qe,he=-he,Oe.points=[j(Ce,0),j(Ee,0)]):y.current.bt=!1}if(We&&"b"===Ce[0]&&(RePe||Ke===Pe&&(!te||Qe>=Me)?(y.current.tb=!0,ke=Ye,he=-he,Oe.points=[j(Ce,0),j(Ee,0)]):y.current.tb=!1}var Je=Ue(ze),et=Ce[1]===Ee[1];if(Je&&"l"===Ce[1]&&(Ae>ie.right||y.current.rl)){var tt=Te;et?tt-=q-G:tt=Le.x-De.x-pe;var nt=wt(tt,ke),rt=wt(tt,ke,re);nt>Pe||nt===Pe&&(!te||rt>=Me)?(y.current.rl=!0,Te=tt,pe=-pe,Oe.points=[j(Ce,1),j(Ee,1)]):y.current.rl=!1}if(Je&&"r"===Ce[1]&&(NePe||it===Pe&&(!te||at>=Me)?(y.current.lr=!0,Te=ot,pe=-pe,Oe.points=[j(Ce,1),j(Ee,1)]):y.current.lr=!1}Et();var lt=!0===Be?0:Be;"number"==typeof lt&&(Nere.right&&(Te-=Ae-re.right-pe,f.x>re.right-lt&&(Te+=f.x-re.right+lt)));var st=!0===He?0:He;"number"==typeof st&&(Rere.bottom&&(ke-=$e-re.bottom-he,f.y>re.bottom-st&&(ke+=f.y-re.bottom+st)));var ct=P.x+Te,ut=ct+q,dt=P.y+ke,ft=dt+V,pt=f.x,ht=pt+G,gt=f.y,mt=gt+X,vt=(Math.max(ct,pt)+Math.min(ut,ht))/2-ct,bt=(Math.max(dt,gt)+Math.min(ft,mt))/2-dt;null==s||s(t,Oe);var yt=ae.right-P.x-(Te+P.width),St=ae.bottom-P.y-(ke+P.height);g({ready:!0,offsetX:Te/le,offsetY:ke/se,offsetR:yt/le,offsetB:St/se,arrowX:vt/le,arrowY:bt/se,scaleX:le,scaleY:se,align:Oe})}})),w=function(){g((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,h.Z)(w,[i]),(0,h.Z)((function(){e||w()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&S()}))}]}(nt,Ze,pe?St:Be,ie,le,se,ge),xt=(0,o.Z)(Ct,11),_t=xt[0],Ot=xt[1],Tt=xt[2],kt=xt[3],Rt=xt[4],$t=xt[5],Nt=xt[6],At=xt[7],Pt=xt[8],Mt=xt[9],Lt=xt[10],It=function(e,t,n,r){return m.useMemo((function(){var o=O(null!=n?n:t),i=O(null!=r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,r])}(Re,y,S,w),Zt=(0,o.Z)(It,2),Dt=Zt[0],jt=Zt[1],zt=Dt.has("click"),Ft=jt.has("click")||jt.has("contextMenu"),Bt=(0,f.Z)((function(){ft||Lt()}));!function(e,t,n,r,o){(0,h.Z)((function(){if(e&&t&&n){var i=n,a=N(t),l=N(i),s=$(i),c=new Set([s].concat((0,z.Z)(a),(0,z.Z)(l)));function u(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),s.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),s.removeEventListener("resize",u)}))}}}),[e,t,n])}(nt,Be,Ze,Bt,(function(){ot.current&&pe&&Ft&&ct(!1)})),(0,h.Z)((function(){Bt()}),[St,ie]),(0,h.Z)((function(){!nt||null!=le&&le[ie]||Bt()}),[JSON.stringify(se)]);var Ht=m.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),s=1;s1?n-1:0),o=1;o1?n-1:0),o=1;o{"use strict";n.d(t,{f6:()=>Fn,kc:()=>zn});var r=n(4942),o=n(7294),i=n.t(o,2),a=n(5671),l=n(3144);var s=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?g(_,--C):0,w--,10===x&&(w=1,S--),x}function R(){return x=C2||P(x)>3?"":" "}function D(e,t){for(;--t&&R()&&!(x<48||x>102||x>57&&x<65||x>70&&x<97););return A(e,N()+(t<6&&32==$()&&32==R()))}function j(e){for(;R();)switch(x){case e:return C;case 34:case 39:34!==e&&39!==e&&j(x);break;case 40:41===e&&j(e);break;case 92:R()}return C}function z(e,t){for(;R()&&e+x!==57&&(e+x!==84||47!==$()););return"/*"+A(t,C-1)+"*"+u(47===e?e:R())}function F(e){for(;!P($());)R();return A(e,C)}var B="-ms-",H="-moz-",U="-webkit-",W="comm",V="rule",q="decl",X="@keyframes";function G(e,t){for(var n="",r=b(e),o=0;o0&&v(P)-f&&y(b>32?te(P+";",r,n,f-1):te(p(P," ","")+";",r,n,f-2),s);break;case 59:P+=";";default:if(y(A=J(P,t,n,c,d,o,l,_,O=[],T=[],f),i),123===x)if(0===d)Q(P,t,A,A,O,i,f,l,T);else switch(99===m&&110===g(P,3)?100:m){case 100:case 108:case 109:case 115:Q(e,A,A,r&&y(J(e,A,A,0,0,o,l,_,o,O=[],f),T),o,T,f,l,r?O:T);break;default:Q(P,A,A,A,[""],T,0,l,T)}}c=d=b=0,w=C=1,_=P="",f=a;break;case 58:f=1+v(P),b=S;default:if(w<1)if(123==x)--w;else if(125==x&&0==w++&&125==k())continue;switch(P+=u(x),x*w){case 38:C=d>0?1:(P+="\f",-1);break;case 44:l[c++]=(v(P)-1)*C,C=1;break;case 64:45===$()&&(P+=I(R())),m=$(),d=f=v(_=P+=F(N())),x++;break;case 45:45===S&&2==v(P)&&(w=0)}}return i}function J(e,t,n,r,o,i,a,l,s,u,d){for(var h=o-1,g=0===o?i:[""],v=b(g),y=0,S=0,w=0;y0?g[E]+" "+C:p(C,/&\f/g,g[E])))&&(s[w++]=x);return O(e,t,n,0===o?V:l,s,u,d)}function ee(e,t,n){return O(e,t,n,W,u(x),m(e,2,-2),0)}function te(e,t,n,r){return O(e,t,n,q,m(e,0,r),m(e,r+1,-1),r)}var ne=function(e,t,n){for(var r=0,o=0;r=o,o=$(),38===r&&12===o&&(t[n]=1),!P(o);)R();return A(e,C)},re=function(e,t){return L(function(e,t){var n=-1,r=44;do{switch(P(r)){case 0:38===r&&12===$()&&(t[n]=1),e[n]+=ne(C-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===$()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=u(r)}}while(r=R());return e}(M(e),t))},oe=new WeakMap,ie=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||oe.get(n))&&!r){oe.set(e,!0);for(var o=[],i=re(t,o),a=n.props,l=0,s=0;l6)switch(g(e,t+1)){case 109:if(45!==g(e,t+4))break;case 102:return p(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+H+(108==g(e,t+3)?"$3":"$2-$3"))+e;case 115:return~h(e,"stretch")?le(p(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==g(e,t+1))break;case 6444:switch(g(e,v(e)-3-(~h(e,"!important")&&10))){case 107:return p(e,":",":"+U)+e;case 101:return p(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===g(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+B+"$2box$3")+e}break;case 5936:switch(g(e,t+11)){case 114:return U+e+B+p(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+B+p(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+B+p(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+B+e+e}return e}var se=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case q:e.return=le(e.value,e.length);break;case X:return G([T(e,{value:p(e.value,"@","@"+U)})],r);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return G([T(e,{props:[p(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return G([T(e,{props:[p(t,/:(plac\w+)/,":"+U+"input-$1")]}),T(e,{props:[p(t,/:(plac\w+)/,":-moz-$1")]}),T(e,{props:[p(t,/:(plac\w+)/,B+"input-$1")]})],r)}return""}))}}],ce=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||se;var o,i,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+s;return{name:c,styles:o,next:ye}};function Ee(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ce=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},xe=function(e,t,n){Ce(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function _e(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Oe(e,t,n){var r=[],o=Ee(e,r,n);return r.length<2?n:o+t(r)}var Te=function(e){var t=ce(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;re(),Ot=[],Tt={};function kt(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Tt,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const Rt=o.forwardRef(((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,o.useContext)(yt.E_),a=Tt.prefixCls||i("message"),l=(0,o.useContext)(bt.J),[s,c]=(0,Et.K)(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),l.message));return o.useImperativeHandle(t,(()=>{const e=Object.assign({},s);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),s[t].apply(s,arguments)}})),{instance:e,sync:r}})),c})),$t=o.forwardRef(((e,t)=>{const[n,r]=o.useState(kt),i=()=>{r(kt)};o.useEffect(i,[]);const a=(0,St.w6)(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=o.createElement(Rt,{ref:t,sync:i,messageConfig:n});return o.createElement(St.ZP,{prefixCls:l,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}));function Nt(){if(!xt){const e=document.createDocumentFragment(),t={fragment:e};return xt=t,void _t((()=>{(0,vt.s)(o.createElement($t,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Nt())}))}}),e)}))}xt.instance&&(Ot.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":_t((()=>{const t=xt.instance.open(Object.assign(Object.assign({},Tt),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":_t((()=>{null==xt||xt.instance.destroy(e.key)}));break;default:_t((()=>{var n;const r=(n=xt.instance)[t].apply(n,(0,mt.Z)(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),Ot=[])}const At={open:function(e){const t=(0,Ct.J)((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return Ot.push(r),()=>{n?_t((()=>{n()})):r.skipped=!0}}));return Nt(),t},destroy:function(e){Ot.push({type:"destroy",key:e}),Nt()},config:function(e){Tt=Object.assign(Object.assign({},Tt),e),_t((()=>{var e;null===(e=null==xt?void 0:xt.sync)||void 0===e||e.call(xt)}))},useMessage:Et.Z,_InternalPanelDoNotUseOrYouWillBeFired:wt.ZP};["success","info","warning","error","loading"].forEach((e=>{At[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return Ot.push(o),()=>{r?_t((()=>{r()})):o.skipped=!0}}));return Nt(),n}(e,n)}}));const Pt=At;var Mt=n(700),Lt=n(7107);let It=null,Zt=e=>e(),Dt=[],jt={};function zt(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=jt,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:r,bottom:o}}const Ft=o.forwardRef(((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:i}=(0,o.useContext)(yt.E_),a=jt.prefixCls||i("notification"),l=(0,o.useContext)(bt.J),[s,c]=(0,Lt.k)(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),l.notification));return o.useEffect(r,[]),o.useImperativeHandle(t,(()=>{const e=Object.assign({},s);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),s[t].apply(s,arguments)}})),{instance:e,sync:r}})),c})),Bt=o.forwardRef(((e,t)=>{const[n,r]=o.useState(zt),i=()=>{r(zt)};o.useEffect(i,[]);const a=(0,St.w6)(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=o.createElement(Ft,{ref:t,sync:i,notificationConfig:n});return o.createElement(St.ZP,{prefixCls:l,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}));function Ht(){if(!It){const e=document.createDocumentFragment(),t={fragment:e};return It=t,void Zt((()=>{(0,vt.s)(o.createElement(Bt,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Ht())}))}}),e)}))}It.instance&&(Dt.forEach((e=>{switch(e.type){case"open":Zt((()=>{It.instance.open(Object.assign(Object.assign({},jt),e.config))}));break;case"destroy":Zt((()=>{null==It||It.instance.destroy(e.key)}))}})),Dt=[])}function Ut(e){(0,St.w6)();Dt.push({type:"open",config:e}),Ht()}const Wt={open:Ut,destroy:function(e){Dt.push({type:"destroy",key:e}),Ht()},config:function(e){jt=Object.assign(Object.assign({},jt),e),Zt((()=>{var e;null===(e=null==It?void 0:It.sync)||void 0===e||e.call(It)}))},useNotification:Lt.Z,_InternalPanelDoNotUseOrYouWillBeFired:Mt.ZP};["success","info","warning","error"].forEach((e=>{Wt[e]=t=>Ut(Object.assign(Object.assign({},t),{type:e}))}));const Vt=Wt;var qt=n(6080),Xt=n(8657),Gt=n(3876),Yt=n(3967),Kt=n.n(Yt),Qt=n(3037),Jt=n(8745),en=n(9827),tn=n(5514),nn=n(1194),rn=n(5792),on=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:l,children:s,footer:c}=e,u=on(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=o.useContext(yt.E_),f=d(),p=t||d("modal"),h=(0,rn.Z)(f),[g,m,v]=(0,nn.ZP)(p,h),b=`${p}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:o.createElement(en.O,Object.assign({},e,{prefixCls:p,confirmPrefixCls:b,rootPrefixCls:f,content:s}))}:{closable:null==i||i,title:l,footer:null!==c&&o.createElement(tn.$,Object.assign({},e)),children:s},g(o.createElement(Qt.s,Object.assign({prefixCls:p,className:Kt()(m,`${p}-pure-panel`,a&&b,a&&`${b}-${a}`,n,v,h)},u,{closeIcon:(0,tn.b)(p,r),closable:i},y)))}));var ln=n(61);function sn(e){return(0,qt.ZP)((0,qt.uW)(e))}const cn=Gt.Z;cn.useModal=ln.Z,cn.info=function(e){return(0,qt.ZP)((0,qt.cw)(e))},cn.success=function(e){return(0,qt.ZP)((0,qt.vq)(e))},cn.error=function(e){return(0,qt.ZP)((0,qt.AQ)(e))},cn.warning=sn,cn.warn=sn,cn.confirm=function(e){return(0,qt.ZP)((0,qt.Au)(e))},cn.destroyAll=function(){for(;Xt.Z.length;){const e=Xt.Z.pop();e&&e()}},cn.config=qt.ai,cn._InternalPanelDoNotUseOrYouWillBeFired=an;const un=cn;var dn,fn=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}},pn=(0,o.createContext)({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(dn=fn("dark"))&&void 0!==dn&&dn.matches?"dark":"light"}),hn=function(){return(0,o.useContext)(pn)};function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>s,i:()=>l});var r=n(7294),o=n(1770),i=n(6854),a=n(3124);function l(e){return t=>r.createElement(i.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}const s=(e,t,n,i)=>l((l=>{const{prefixCls:s,style:c}=l,u=r.useRef(null),[d,f]=r.useState(0),[p,h]=r.useState(0),[g,m]=(0,o.Z)(!1,{value:l.open}),{getPrefixCls:v}=r.useContext(a.E_),b=v(t||"select",s);r.useEffect((()=>{if(m(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;f(t.offsetHeight+8),h(t.offsetWidth)})),t=setInterval((()=>{var r;const o=n?`.${n(b)}`:`.${b}-dropdown`,i=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let y=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});i&&(y=i(y));const S={paddingBottom:d,position:"relative",minWidth:p};return r.createElement("div",{ref:u,style:S},r.createElement(e,Object.assign({},y)))}))},8065:(e,t,n)=>{"use strict";function r(e){return["small","middle","large"].includes(e)}function o(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}n.d(t,{T:()=>o,n:()=>r})},7263:(e,t,n)=>{"use strict";n.d(t,{Cn:()=>u,u6:()=>l});var r=n(7294),o=n(7606),i=n(3945);const a=100,l=1e3,s={Modal:a,Drawer:a,Popover:a,Popconfirm:a,Tooltip:a,Tour:a},c={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function u(e,t){const[,n]=(0,o.ZP)(),a=r.useContext(i.Z),u=e in s;if(void 0!==t)return[t,t];let d=null!=a?a:0;return u?(d+=(a?0:n.zIndexPopupBase)+s[e],d=Math.min(d,n.zIndexPopupBase+l)):d+=c[e],[void 0===a?t:d,d]}},3603:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r=(e,t,n)=>void 0!==n?n:`${e}-${t}`},6159:(e,t,n)=>{"use strict";var r;n.d(t,{M2:()=>a,Tm:()=>l,l$:()=>i});var o=n(7294);const{isValidElement:i}=r||(r=n.t(o,2));function a(e){return e&&i(e)&&e.type===o.Fragment}function l(e,t){return function(e,t,n){return i(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}},4443:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>s,c4:()=>i});var r=n(7294),o=n(7606);const i=["xxl","xl","lg","md","sm","xs"],a=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)`}),l=e=>{const t=e,n=[].concat(i).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}},7288:(e,t,n)=>{"use strict";n.d(t,{G8:()=>i,ln:()=>a});var r=n(7294);n(334);function o(){}const i=r.createContext({}),a=()=>{const e=()=>{};return e.deprecated=o,e}},3945:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(7294).createContext(void 0)},6968:(e,t,n)=>{"use strict";n.d(t,{J:()=>o,Z:()=>i});var r=n(7294);const o=r.createContext({}),i=r.createContext({message:{},notification:{},modal:{}})},6107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(7294),o=n(3967),i=n.n(o),a=n(3124),l=n(6474),s=n(61),c=n(7107),u=n(6968);const d=(0,n(1939).I$)("App",(e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}}),(()=>({}))),f=e=>{const{prefixCls:t,children:n,className:o,rootClassName:f,message:p,notification:h,style:g,component:m="div"}=e,{getPrefixCls:v}=(0,r.useContext)(a.E_),b=v("app",t),[y,S,w]=d(b),E=i()(S,b,o,f,w),C=(0,r.useContext)(u.J),x=r.useMemo((()=>({message:Object.assign(Object.assign({},C.message),p),notification:Object.assign(Object.assign({},C.notification),h)})),[p,h,C.message,C.notification]),[_,O]=(0,l.Z)(x.message),[T,k]=(0,c.Z)(x.notification),[R,$]=(0,s.Z)(),N=r.useMemo((()=>({message:_,notification:T,modal:R})),[_,T,R]),A=!1===m?r.Fragment:m,P={className:E,style:g};return y(r.createElement(u.Z.Provider,{value:N},r.createElement(u.J.Provider,{value:x},r.createElement(A,Object.assign({},!1===m?void 0:P),$,O,k,n))))};f.useApp=()=>r.useContext(u.Z);const p=f},9308:(e,t,n)=>{"use strict";n.d(t,{C:()=>ke});var r=n(7294),o=n(3967),i=n.n(o),a=n(5375),l=n(2550),s=n(4443),c=n(3124),u=n(8675),d=n(6413);const f=r.createContext({});var p=n(7395),h=n(4747),g=n(1939),m=n(5503);const v=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:g,borderRadiusSM:m,lineWidth:v,lineType:b,calc:y}=e,S=(e,t,o)=>({width:e,height:e,lineHeight:(0,p.bf)(y(e).sub(y(v).mul(2)).equal()),borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${(0,p.bf)(v)} ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),S(a,c,f)),{"&-lg":Object.assign({},S(l,u,g)),"&-sm":Object.assign({},S(s,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},b=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},y=(0,g.I$)("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=(0,m.TS)(e,{avatarBg:n,avatarColor:t});return[v(r),b(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}}));var S=n(5792),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const[n,o]=r.useState(1),[p,h]=r.useState(!1),[g,m]=r.useState(!0),v=r.useRef(null),b=r.useRef(null),E=(0,l.sQ)(t,v),{getPrefixCls:C,avatar:x}=r.useContext(c.E_),_=r.useContext(f),O=()=>{if(!b.current||!v.current)return;const t=b.current.offsetWidth,n=v.current.offsetWidth;if(0!==t&&0!==n){const{gap:r=4}=e;2*r{h(!0)}),[]),r.useEffect((()=>{m(!0),o(1)}),[e.src]),r.useEffect(O,[e.gap]);const T=()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&m(!1)},{prefixCls:k,shape:R,size:$,src:N,srcSet:A,icon:P,className:M,rootClassName:L,alt:I,draggable:Z,children:D,crossOrigin:j}=e,z=w(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),F=(0,u.Z)((e=>{var t,n;return null!==(n=null!==(t=null!=$?$:null==_?void 0:_.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),B=Object.keys("object"==typeof F&&F||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),H=(0,d.Z)(B),U=r.useMemo((()=>{if("object"!=typeof F)return{};const e=s.c4.find((e=>H[e])),t=F[e];return t?{width:t,height:t,lineHeight:`${t}px`,fontSize:t&&(P||D)?t/2:18}:{}}),[H,F]);const W=C("avatar",k),V=(0,S.Z)(W),[q,X,G]=y(W,V),Y=i()({[`${W}-lg`]:"large"===F,[`${W}-sm`]:"small"===F}),K=r.isValidElement(N),Q=R||(null==_?void 0:_.shape)||"circle",J=i()(W,Y,null==x?void 0:x.className,`${W}-${Q}`,{[`${W}-image`]:K||N&&g,[`${W}-icon`]:!!P},G,V,M,L,X),ee="number"==typeof F?{width:F,height:F,lineHeight:`${F}px`,fontSize:P?F/2:18}:{};let te;if("string"==typeof N&&g)te=r.createElement("img",{src:N,draggable:Z,srcSet:A,onError:T,alt:I,crossOrigin:j});else if(K)te=N;else if(P)te=P;else if(p||1!==n){const e=`scale(${n}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},o="number"==typeof F?{lineHeight:`${F}px`}:{};te=r.createElement(a.Z,{onResize:O},r.createElement("span",{className:`${W}-string`,ref:b,style:Object.assign(Object.assign({},o),t)},D))}else te=r.createElement("span",{className:`${W}-string`,style:{opacity:0},ref:b},D);return delete z.onError,delete z.gap,q(r.createElement("span",Object.assign({},z,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ee),U),null==x?void 0:x.style),z.style),className:J,ref:E}),te))};const C=r.forwardRef(E);var x=n(344);const _=e=>e?"function"==typeof e?e():e:null;var O=n(3603);function T(e){var t=e.children,n=e.prefixCls,o=e.id,a=e.overlayInnerStyle,l=e.className,s=e.style;return r.createElement("div",{className:i()("".concat(n,"-content"),l),style:s},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:a},"function"==typeof t?t():t))}var k=n(7462),R=n(1413),$=n(4925),N=n(2507),A={shiftX:64,adjustY:1},P={adjustX:1,shiftY:!0},M=[0,0],L={left:{points:["cr","cl"],overflow:P,offset:[-4,0],targetOffset:M},right:{points:["cl","cr"],overflow:P,offset:[4,0],targetOffset:M},top:{points:["bc","tc"],overflow:A,offset:[0,-4],targetOffset:M},bottom:{points:["tc","bc"],overflow:A,offset:[0,4],targetOffset:M},topLeft:{points:["bl","tl"],overflow:A,offset:[0,-4],targetOffset:M},leftTop:{points:["tr","tl"],overflow:P,offset:[-4,0],targetOffset:M},topRight:{points:["br","tr"],overflow:A,offset:[0,-4],targetOffset:M},rightTop:{points:["tl","tr"],overflow:P,offset:[4,0],targetOffset:M},bottomRight:{points:["tr","br"],overflow:A,offset:[0,4],targetOffset:M},rightBottom:{points:["bl","br"],overflow:P,offset:[4,0],targetOffset:M},bottomLeft:{points:["tl","bl"],overflow:A,offset:[0,4],targetOffset:M},leftBottom:{points:["br","bl"],overflow:P,offset:[-4,0],targetOffset:M}};var I=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Z=function(e,t){var n=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,a=e.mouseEnterDelay,l=void 0===a?0:a,s=e.mouseLeaveDelay,c=void 0===s?.1:s,u=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,p=e.children,h=e.onVisibleChange,g=e.afterVisibleChange,m=e.transitionName,v=e.animation,b=e.motion,y=e.placement,S=void 0===y?"right":y,w=e.align,E=void 0===w?{}:w,C=e.destroyTooltipOnHide,x=void 0!==C&&C,_=e.defaultVisible,O=e.getTooltipContainer,A=e.overlayInnerStyle,P=(e.arrowContent,e.overlay),M=e.id,Z=e.showArrow,D=void 0===Z||Z,j=(0,$.Z)(e,I),z=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){return z.current}));var F=(0,R.Z)({},j);"visible"in e&&(F.popupVisible=e.visible);return r.createElement(N.Z,(0,k.Z)({popupClassName:n,prefixCls:f,popup:function(){return r.createElement(T,{key:"content",prefixCls:f,id:M,overlayInnerStyle:A},P)},action:i,builtinPlacements:L,popupPlacement:S,ref:z,popupAlign:E,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:m,popupAnimation:v,popupMotion:b,defaultPopupVisible:_,autoDestroy:x,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:l,arrow:D},F),p)};const D=(0,r.forwardRef)(Z);var j=n(1770),z=n(7263);function F(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),s=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-s,d=c,f=2*o-a,p=l,h=2*o-0,g=i,m=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${h} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const B=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,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_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,p.bf)(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},H=8;function U(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?H:r}}function W(e,t){return e?t:{}}function V(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},B(e,t,o)),{"&:before":{background:t}})]},W(!!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_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),W(!!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_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),W(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),W(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const q={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"]}},X={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"]}},G=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Y(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(q).forEach((e=>{const c=r&&X[e]||q[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,G.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}const d=U({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-l;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),s}var K=n(6159),Q=n(7288),J=n(3945),ee=n(4173),te=n(7606),ne=n(438);const re=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function oe(e,t){return re.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))}),{})}const ie=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${(0,p.bf)(e.calc(c).div(2).equal())} ${(0,p.bf)(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,H)}},[`${t}-content`]:{position:"relative"}}),oe(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},V(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ae=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},U({contentRadius:e.borderRadius,limitVerticalRadius:!0})),F((0,m.TS)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),le=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,g.I$)("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=(0,m.TS)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[ie(o),(0,ne._y)(e,"zoom-big-fast")]}),ae,{resetStyle:!1,injectStyle:t})(e)};var se=n(3433);const ce=re.map((e=>`${e}-inverse`));function ue(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?re.includes(e):[].concat((0,se.Z)(ce),(0,se.Z)(re)).includes(e)}(t),r=i()({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const de=e=>{const{prefixCls:t,className:n,placement:o="top",title:a,color:l,overlayInnerStyle:s}=e,{getPrefixCls:u}=r.useContext(c.E_),d=u("tooltip",t),[f,p,h]=le(d),g=ue(d,l),m=g.arrowStyle,v=Object.assign(Object.assign({},s),g.overlayStyle),b=i()(p,h,d,`${d}-pure`,`${d}-placement-${o}`,n,g.className);return f(r.createElement("div",{className:b,style:m},r.createElement("div",{className:`${d}-arrow`}),r.createElement(T,Object.assign({},e,{className:p,prefixCls:d,overlayInnerStyle:v}),a)))};var fe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const{prefixCls:a,openClassName:l,getTooltipContainer:s,overlayClassName:u,color:d,overlayInnerStyle:f,children:p,afterOpenChange:h,afterVisibleChange:g,destroyTooltipOnHide:m,arrow:v=!0,title:b,overlay:y,builtinPlacements:S,arrowPointAtCenter:w=!1,autoAdjustOverflow:E=!0}=e,C=!!v,[,x]=(0,te.ZP)(),{getPopupContainer:_,getPrefixCls:T,direction:k}=r.useContext(c.E_),R=(0,Q.ln)("Tooltip"),$=r.useRef(null),N=()=>{var e;null===(e=$.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>({forceAlign:N,forcePopupAlign:()=>{R.deprecated(!1,"forcePopupAlign","forceAlign"),N()}})));const[A,P]=(0,j.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),M=!b&&!y&&0!==b,L=r.useMemo((()=>{var e,t;let n=w;return"object"==typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:w),S||Y({arrowPointAtCenter:n,autoAdjustOverflow:E,arrowWidth:C?x.sizePopupArrow:0,borderRadius:x.borderRadius,offset:x.marginXXS,visibleFirst:!0})}),[w,v,S,x]),I=r.useMemo((()=>0===b?b:y||b||""),[y,b]),Z=r.createElement(ee.BR,null,"function"==typeof I?I():I),{getPopupContainer:F,placement:B="top",mouseEnterDelay:H=.1,mouseLeaveDelay:U=.1,overlayStyle:W,rootClassName:V}=e,q=fe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),X=T("tooltip",a),G=T(),ne=e["data-popover-inject"];let re=A;"open"in e||"visible"in e||!M||(re=!1);const oe=(0,K.l$)(p)&&!(0,K.M2)(p)?p:r.createElement("span",null,p),ie=oe.props,ae=ie.className&&"string"!=typeof ie.className?ie.className:i()(ie.className,l||`${X}-open`),[se,ce,de]=le(X,!ne),pe=ue(X,d),he=pe.arrowStyle,ge=Object.assign(Object.assign({},f),pe.overlayStyle),me=i()(u,{[`${X}-rtl`]:"rtl"===k},pe.className,V,ce,de),[ve,be]=(0,z.Cn)("Tooltip",q.zIndex),ye=r.createElement(D,Object.assign({},q,{zIndex:ve,showArrow:C,placement:B,mouseEnterDelay:H,mouseLeaveDelay:U,prefixCls:X,overlayClassName:me,overlayStyle:Object.assign(Object.assign({},he),W),getTooltipContainer:F||s||_,ref:$,builtinPlacements:L,overlay:Z,visible:re,onVisibleChange:t=>{var n,r;P(!M&&t),M||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=h?h:g,overlayInnerStyle:ge,arrowContent:r.createElement("span",{className:`${X}-arrow-content`}),motion:{motionName:(0,O.m)(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),re?(0,K.Tm)(oe,{className:ae}):oe);return se(r.createElement(J.Z.Provider,{value:be},ye))}));pe._InternalPanelDoNotUseOrYouWillBeFired=de;const he=pe,ge=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:g,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:m},[`${t}-inner-content`]:{color:n,padding:g}})},V(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},me=e=>{const{componentCls:t}=e;return{[t]:re.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},ve=(0,g.I$)("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=(0,m.TS)(e,{popoverBg:t,popoverColor:n});return[ge(r),me(r),(0,ne._y)(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,h=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},F(e)),U({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${p}px ${g}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var be=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{hashId:t,prefixCls:n,className:o,style:a,placement:l="top",title:s,content:c,children:u}=e;return r.createElement("div",{className:i()(t,n,`${n}-pure`,`${n}-placement-${l}`,o),style:a},r.createElement("div",{className:`${n}-arrow`}),r.createElement(T,Object.assign({},e,{className:t,prefixCls:n}),u||((e,t,n)=>t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${e}-title`},_(t)),r.createElement("div",{className:`${e}-inner-content`},_(n))):null)(n,s,c)))},Se=e=>{const{prefixCls:t,className:n}=e,o=be(e,["prefixCls","className"]),{getPrefixCls:a}=r.useContext(c.E_),l=a("popover",t),[s,u,d]=ve(l);return s(r.createElement(ye,Object.assign({},o,{prefixCls:l,hashId:u,className:i()(n,d)})))};var we=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:o}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},_(t)),r.createElement("div",{className:`${o}-inner-content`},_(n)))},Ce=r.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:a,overlayClassName:l,placement:s="top",trigger:u="hover",mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,overlayStyle:p={}}=e,h=we(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:g}=r.useContext(c.E_),m=g("popover",n),[v,b,y]=ve(m),S=g(),w=i()(l,b,y);return v(r.createElement(he,Object.assign({placement:s,trigger:u,mouseEnterDelay:d,mouseLeaveDelay:f,overlayStyle:p},h,{prefixCls:m,overlayClassName:w,ref:t,overlay:o||a?r.createElement(Ee,{prefixCls:m,title:o,content:a}):null,transitionName:(0,O.m)(S,"zoom-big",h.transitionName),"data-popover-inject":!0})))}));Ce._InternalPanelDoNotUseOrYouWillBeFired=Se;const xe=Ce,_e=e=>{const{size:t,shape:n}=r.useContext(f),o=r.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return r.createElement(f.Provider,{value:o},e.children)},Oe=e=>{const{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,className:a,rootClassName:l,style:s,maxCount:u,maxStyle:d,size:f,shape:p,maxPopoverPlacement:h="top",maxPopoverTrigger:g="hover",children:m}=e,v=t("avatar",o),b=`${v}-group`,w=(0,S.Z)(v),[E,_,O]=y(v,w),T=i()(b,{[`${b}-rtl`]:"rtl"===n},O,w,a,l,_),k=(0,x.Z)(m).map(((e,t)=>(0,K.Tm)(e,{key:`avatar-key-${t}`}))),R=k.length;if(u&&u{"use strict";n.d(t,{Te:()=>c,aG:()=>a,hU:()=>u,nx:()=>l});var r=n(7294),o=n(6159);const i=/^[\u4e00-\u9fa5]{2}$/,a=i.test.bind(i);function l(e){return"danger"===e?{danger:!0}:{type:e}}function s(e){return"string"==typeof e}function c(e){return"text"===e||"link"===e}function u(e,t){let n=!1;const i=[];return r.Children.forEach(e,(e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=i.length-1,n=i[t];i[t]=`${n}${e}`}else i.push(e);n=r})),r.Children.map(i,(e=>function(e,t){if(null==e)return;const n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&s(e.type)&&a(e.props.children)?(0,o.Tm)(e,{children:e.props.children.split("").join(n)}):s(e)?a(e)?r.createElement("span",null,e.split("").join(n)):r.createElement("span",null,e):(0,o.M2)(e)?r.createElement("span",null,e):e}(e,t)))}},4128:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>Ee});var r=n(7294),o=n(3967),i=n.n(o),a=n(8423),l=n(2550),s=n(5110),c=n(3124),u=n(6159),d=n(1939);const f=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,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 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},p=(0,d.ZP)("Wave",(e=>[f(e)]));var h=n(6790),g=n(5164),m=n(5461),v=n(8135);function b(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}const y="ant-wave-target";function S(e){return Number.isNaN(e)?0:e}const w=e=>{const{className:t,target:n,component:o}=e,a=r.useRef(null),[l,s]=r.useState(null),[c,u]=r.useState([]),[d,f]=r.useState(0),[p,h]=r.useState(0),[w,E]=r.useState(0),[C,x]=r.useState(0),[_,O]=r.useState(!1),T={left:d,top:p,width:w,height:C,borderRadius:c.map((e=>`${e}px`)).join(" ")};function k(){const e=getComputedStyle(n);s(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return b(t)?t:b(n)?n:b(r)?r:null}(n));const t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;f(t?n.offsetLeft:S(-parseFloat(r))),h(t?n.offsetTop:S(-parseFloat(o))),E(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;u([i,a,c,l].map((e=>S(parseFloat(e)))))}if(l&&(T["--wave-color"]=l),r.useEffect((()=>{if(n){const e=(0,g.Z)((()=>{k(),O(!0)}));let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(k),t.observe(n)),()=>{g.Z.cancel(e),null==t||t.disconnect()}}}),[]),!_)return null;const R=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(y));return r.createElement(m.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;(0,v.v)(e).then((()=>{null==e||e.remove()}))}return!1}},(e=>{let{className:n}=e;return r.createElement("div",{ref:a,className:i()(t,{"wave-quick":R},n),style:T})}))},E=(e,t)=>{var n;const{component:o}=t;if("Checkbox"===o&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild),(0,v.s)(r.createElement(w,Object.assign({},t,{target:e})),i)};var C=n(7606);const x=e=>{const{children:t,disabled:n,component:o}=e,{getPrefixCls:a}=(0,r.useContext)(c.E_),d=(0,r.useRef)(null),f=a("wave"),[,m]=p(f),v=function(e,t,n){const{wave:o}=r.useContext(c.E_),[,i,a]=(0,C.ZP)(),l=(0,h.zX)((r=>{const l=e.current;if((null==o?void 0:o.disabled)||!l)return;const s=l.querySelector(`.${y}`)||l,{showEffect:c}=o||{};(c||E)(s,{className:t,token:i,component:n,event:r,hashId:a})})),s=r.useRef();return e=>{g.Z.cancel(s.current),s.current=(0,g.Z)((()=>{l(e)}))}}(d,i()(f,m),o);if(r.useEffect((()=>{const e=d.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!(0,s.Z)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||v(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}}),[n]),!r.isValidElement(t))return null!=t?t:null;const b=(0,l.Yr)(t)?(0,l.sQ)(t.ref,d):d;return(0,u.Tm)(t,{ref:b})};var _=n(8866),O=n(8675),T=n(4173),k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,size:a,className:l}=e,s=k(e,["prefixCls","size","className"]),u=t("btn-group",o),[,,d]=(0,C.ZP)();let f="";switch(a){case"large":f="lg";break;case"small":f="sm"}const p=i()(u,{[`${u}-${f}`]:f,[`${u}-rtl`]:"rtl"===n},l,d);return r.createElement(R.Provider,{value:a},r.createElement("div",Object.assign({},s,{className:p})))};var N=n(3671);const A=(0,r.forwardRef)(((e,t)=>{const{className:n,style:o,children:a,prefixCls:l}=e,s=i()(`${l}-icon`,n);return r.createElement("span",{ref:t,className:s,style:o},a)})),P=A;var M=n(7085);const L=(0,r.forwardRef)(((e,t)=>{let{prefixCls:n,className:o,style:a,iconClassName:l}=e;const s=i()(`${n}-loading-icon`,o);return r.createElement(P,{prefixCls:n,className:s,style:a,ref:t},r.createElement(M.Z,{className:l}))})),I=()=>({width:0,opacity:0,transform:"scale(0)"}),Z=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),D=e=>{const{prefixCls:t,loading:n,existIcon:o,className:i,style:a}=e,l=!!n;return o?r.createElement(L,{prefixCls:t,className:i,style:a}):r.createElement(m.ZP,{visible:l,motionName:`${t}-loading-icon-motion`,motionLeave:l,removeOnLeave:!0,onAppearStart:I,onAppearActive:Z,onEnterStart:I,onEnterActive:Z,onLeaveStart:Z,onLeaveActive:I},((e,n)=>{let{className:o,style:l}=e;return r.createElement(L,{prefixCls:t,className:i,style:Object.assign(Object.assign({},a),l),ref:n,iconClassName:o})}))};var j=n(7395),z=n(4747),F=n(5503);const B=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),H=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,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,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},B(`${t}-primary`,o),B(`${t}-danger`,i)]}};var U=n(1734);const W=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return(0,F.TS)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},V=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:(0,U.D)(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:(0,U.D)(s),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:(0,U.D)(c);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",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},q=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${(0,j.bf)(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,z.Qy)(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"}}}},X=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),G=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Y=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),K=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Q=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},X(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),J=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},K(e))}),ee=e=>Object.assign({},J(e)),te=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ne=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ee(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),X(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Q(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},X(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Q(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),J(e))}),re=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ee(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),X(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),Q(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},X(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),Q(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),J(e))}),oe=e=>Object.assign(Object.assign({},ne(e)),{borderStyle:"dashed"}),ie=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},X(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),te(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},X(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),te(e))}),ae=e=>Object.assign(Object.assign(Object.assign({},X(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),te(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},te(e)),X(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBg}))}),le=e=>{const{componentCls:t}=e;return{[`${t}-default`]:ne(e),[`${t}-primary`]:re(e),[`${t}-dashed`]:oe(e),[`${t}-link`]:ie(e),[`${t}-text`]:ae(e),[`${t}-ghost`]:Q(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},se=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[`${t}`]:{fontSize:o,lineHeight:i,height:r,padding:`${(0,j.bf)(c)} ${(0,j.bf)(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:G(e)},{[`${n}${n}-round${t}`]:Y(e)}]},ce=e=>{const t=(0,F.TS)(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return se(t,e.componentCls)},ue=e=>{const t=(0,F.TS)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return se(t,`${e.componentCls}-sm`)},de=e=>{const t=(0,F.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return se(t,`${e.componentCls}-lg`)},fe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},pe=(0,d.I$)("Button",(e=>{const t=W(e);return[q(t),ce(t),ue(t),de(t),fe(t),le(t),H(t)]}),V,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var he=n(4184);function ge(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 me(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ge(e,t)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const ve=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${(0,j.bf)(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${(0,j.bf)(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},be=(0,d.bk)(["Button","compact"],(e=>{const t=W(e);return[(0,he.c)(t),me(t),ve(t)]}),V);var ye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const{loading:s=!1,prefixCls:u,type:d="default",danger:f,shape:p="default",size:h,styles:g,disabled:m,className:v,rootClassName:b,children:y,icon:S,ghost:w=!1,block:E=!1,htmlType:C="button",classNames:k,style:$={}}=e,A=ye(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:M,autoInsertSpaceInButton:L,direction:I,button:Z}=(0,r.useContext)(c.E_),j=M("btn",u),[z,F,B]=pe(j),H=(0,r.useContext)(_.Z),U=null!=m?m:H,W=(0,r.useContext)(R),V=(0,r.useMemo)((()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(s)),[s]),[q,X]=(0,r.useState)(V.loading),[G,Y]=(0,r.useState)(!1),K=(0,r.createRef)(),Q=(0,l.sQ)(t,K),J=1===r.Children.count(y)&&!S&&!(0,N.Te)(d);(0,r.useEffect)((()=>{let e=null;return V.delay>0?e=setTimeout((()=>{e=null,X(!0)}),V.delay):X(V.loading),function(){e&&(clearTimeout(e),e=null)}}),[V]),(0,r.useEffect)((()=>{if(!Q||!Q.current||!1===L)return;const e=Q.current.textContent;J&&(0,N.aG)(e)?G||Y(!0):G&&Y(!1)}),[Q]);const ee=t=>{const{onClick:n}=e;q||U?t.preventDefault():null==n||n(t)};const te=!1!==L,{compactSize:ne,compactItemClassnames:re}=(0,T.ri)(j,I),oe={large:"lg",small:"sm",middle:void 0},ie=(0,O.Z)((e=>{var t,n;return null!==(n=null!==(t=null!=h?h:ne)&&void 0!==t?t:W)&&void 0!==n?n:e})),ae=ie&&oe[ie]||"",le=q?"loading":S,se=(0,a.Z)(A,["navigate"]),ce=i()(j,F,B,{[`${j}-${p}`]:"default"!==p&&p,[`${j}-${d}`]:d,[`${j}-${ae}`]:ae,[`${j}-icon-only`]:!y&&0!==y&&!!le,[`${j}-background-ghost`]:w&&!(0,N.Te)(d),[`${j}-loading`]:q,[`${j}-two-chinese-chars`]:G&&te&&!q,[`${j}-block`]:E,[`${j}-dangerous`]:!!f,[`${j}-rtl`]:"rtl"===I},re,v,b,null==Z?void 0:Z.className),ue=Object.assign(Object.assign({},null==Z?void 0:Z.style),$),de=i()(null==k?void 0:k.icon,null===(n=null==Z?void 0:Z.classNames)||void 0===n?void 0:n.icon),fe=Object.assign(Object.assign({},(null==g?void 0:g.icon)||{}),(null===(o=null==Z?void 0:Z.styles)||void 0===o?void 0:o.icon)||{}),he=S&&!q?r.createElement(P,{prefixCls:j,className:de,style:fe},S):r.createElement(D,{existIcon:!!S,prefixCls:j,loading:!!q}),ge=y||0===y?(0,N.hU)(y,J&&te):null;if(void 0!==se.href)return z(r.createElement("a",Object.assign({},se,{className:i()(ce,{[`${j}-disabled`]:U}),href:U?void 0:se.href,style:ue,onClick:ee,ref:Q,tabIndex:U?-1:0}),he,ge));let me=r.createElement("button",Object.assign({},A,{type:C,className:ce,style:ue,onClick:ee,disabled:U,ref:Q}),he,ge,!!re&&r.createElement(be,{key:"compact",prefixCls:j}));return(0,N.Te)(d)||(me=r.createElement(x,{component:"Button",disabled:!!q},me)),z(me)},we=(0,r.forwardRef)(Se);we.Group=$,we.__ANT_BUTTON=!0;const Ee=we},8866:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,n:()=>i});var r=n(7294);const o=r.createContext(!1),i=e=>{let{children:t,disabled:n}=e;const i=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:i},t)},a=o},7647:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a,q:()=>i});var r=n(7294);const o=r.createContext(void 0),i=e=>{let{children:t,size:n}=e;const i=r.useContext(o);return r.createElement(o.Provider,{value:n||i},t)},a=o},3124:(e,t,n)=>{"use strict";n.d(t,{E_:()=>i,oR:()=>o});var r=n(7294);const o="anticon",i=r.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:a}=i},5792:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7606);const o=e=>{const[,,,,t]=(0,r.ZP)();return t?`${e}-css-var`:""}},8675:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7294),o=n(7647);const i=e=>{const t=r.useContext(o.Z);return r.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])}},6854:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>q,w6:()=>U});var r=n(7294),o=n.t(r,2),i=n(7395),a=n(3017),l=n(6982),s=n(8880),c=n(7288);const u=(0,r.createContext)(void 0);var d=n(3008),f=n(6745);const p=e=>{const{locale:t={},children:n,_ANT_MARK__:o}=e;r.useEffect((()=>(0,d.f)(t&&t.Modal)),[t]);const i=r.useMemo((()=>Object.assign(Object.assign({},t),{exist:!0})),[t]);return r.createElement(f.Z.Provider,{value:i},n)};var h=n(9375),g=n(3083),m=n(2790),v=n(3124),b=n(1242),y=n(274),S=n(8924),w=n(4958);const E=`-ant-${Date.now()}-${Math.random()}`;function C(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new y.C(e),i=(0,b.R_)(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new y.C(t.primaryColor),i=(0,b.R_)(e.toRgbString());i.forEach(((e,t)=>{n[`primary-${t+1}`]=e})),n["primary-color-deprecated-l-35"]=r(e,(e=>e.lighten(35))),n["primary-color-deprecated-l-20"]=r(e,(e=>e.lighten(20))),n["primary-color-deprecated-t-20"]=r(e,(e=>e.tint(20))),n["primary-color-deprecated-t-50"]=r(e,(e=>e.tint(50))),n["primary-color-deprecated-f-12"]=r(e,(e=>e.setAlpha(.12*e.getAlpha())));const a=new y.C(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,(e=>e.setAlpha(.3*e.getAlpha()))),n["primary-color-active-deprecated-d-02"]=r(a,(e=>e.darken(2)))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((t=>`--${e}-${t}: ${n[t]};`)).join("\n")}\n }\n `.trim()}(e,t);(0,S.Z)()&&(0,w.hq)(n,`${E}-dynamic-theme`)}var x=n(8866),_=n(7647);const O=function(){return{componentDisabled:(0,r.useContext)(x.Z),componentSize:(0,r.useContext)(_.Z)}};var T=n(1881);const k=Object.assign({},o),{useId:R}=k,$=void 0===R?()=>"":R;var N=n(5461),A=n(7606);function P(e){const{children:t}=e,[,n]=(0,A.ZP)(),{motion:o}=n,i=r.useRef(!1);return i.current=i.current||!1===o,i.current?r.createElement(N.zt,{motion:o},t):t}const M=()=>null;var L=n(3269),I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({getPrefixCls:(e,t)=>t||(e?`${B()}-${e}`:B()),getIconPrefixCls:H,getRootPrefixCls:()=>D||B(),getTheme:()=>z,holderRender:F}),W=e=>{const{children:t,csp:n,autoInsertSpaceInButton:o,alert:d,anchor:f,form:b,locale:y,componentSize:S,direction:w,space:E,virtual:C,dropdownMatchSelectWidth:O,popupMatchSelectWidth:k,popupOverflow:R,legacyLocale:N,parentContext:A,iconPrefixCls:D,theme:j,componentDisabled:z,segmented:F,statistic:B,spin:H,calendar:U,carousel:W,cascader:V,collapse:q,typography:X,checkbox:G,descriptions:Y,divider:K,drawer:Q,skeleton:J,steps:ee,image:te,layout:ne,list:re,mentions:oe,modal:ie,progress:ae,result:le,slider:se,breadcrumb:ce,menu:ue,pagination:de,input:fe,empty:pe,badge:he,radio:ge,rate:me,switch:ve,transfer:be,avatar:ye,message:Se,tag:we,table:Ee,card:Ce,tabs:xe,timeline:_e,timePicker:Oe,upload:Te,notification:ke,tree:Re,colorPicker:$e,datePicker:Ne,rangePicker:Ae,flex:Pe,wave:Me,dropdown:Le,warning:Ie}=e,Ze=r.useCallback(((t,n)=>{const{prefixCls:r}=e;if(n)return n;const o=r||A.getPrefixCls("");return t?`${o}-${t}`:o}),[A.getPrefixCls,e.prefixCls]),De=D||A.iconPrefixCls||v.oR,je=n||A.csp;(0,L.Z)(De,je);const ze=function(e,t){(0,c.ln)("ConfigProvider");const n=e||{},r=!1!==n.inherit&&t?t:g.u_,o=$();return(0,l.Z)((()=>{var i,a;if(!e)return t;const l=Object.assign({},r.components);Object.keys(e.components||{}).forEach((t=>{l[t]=Object.assign(Object.assign({},l[t]),e.components[t])}));const s=`css-var-${o.replace(/:/g,"")}`,c=(null!==(i=n.cssVar)&&void 0!==i?i:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof n.cssVar?n.cssVar:{}),{key:"object"==typeof n.cssVar&&(null===(a=n.cssVar)||void 0===a?void 0:a.key)||s});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:l,cssVar:c})}),[n,r],((e,t)=>e.some(((e,n)=>{const r=t[n];return!(0,T.Z)(e,r,!0)}))))}(j,A.theme);const Fe={csp:je,autoInsertSpaceInButton:o,alert:d,anchor:f,locale:y||N,direction:w,space:E,virtual:C,popupMatchSelectWidth:null!=k?k:O,popupOverflow:R,getPrefixCls:Ze,iconPrefixCls:De,theme:ze,segmented:F,statistic:B,spin:H,calendar:U,carousel:W,cascader:V,collapse:q,typography:X,checkbox:G,descriptions:Y,divider:K,drawer:Q,skeleton:J,steps:ee,image:te,input:fe,layout:ne,list:re,mentions:oe,modal:ie,progress:ae,result:le,slider:se,breadcrumb:ce,menu:ue,pagination:de,empty:pe,badge:he,radio:ge,rate:me,switch:ve,transfer:be,avatar:ye,message:Se,tag:we,table:Ee,card:Ce,tabs:xe,timeline:_e,timePicker:Oe,upload:Te,notification:ke,tree:Re,colorPicker:$e,datePicker:Ne,rangePicker:Ae,flex:Pe,wave:Me,dropdown:Le,warning:Ie},Be=Object.assign({},A);Object.keys(Fe).forEach((e=>{void 0!==Fe[e]&&(Be[e]=Fe[e])})),Z.forEach((t=>{const n=e[t];n&&(Be[t]=n)}));const He=(0,l.Z)((()=>Be),Be,((e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((n=>e[n]!==t[n]))})),Ue=r.useMemo((()=>({prefixCls:De,csp:je})),[De,je]);let We=r.createElement(r.Fragment,null,r.createElement(M,{dropdownMatchSelectWidth:O}),t);const Ve=r.useMemo((()=>{var e,t,n,r;return(0,s.T)((null===(e=h.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=He.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=He.form)||void 0===r?void 0:r.validateMessages)||{},(null==b?void 0:b.validateMessages)||{})}),[He,null==b?void 0:b.validateMessages]);Object.keys(Ve).length>0&&(We=r.createElement(u.Provider,{value:Ve},We)),y&&(We=r.createElement(p,{locale:y,_ANT_MARK__:"internalMark"},We)),(De||je)&&(We=r.createElement(a.Z.Provider,{value:Ue},We)),S&&(We=r.createElement(_.q,{size:S},We)),We=r.createElement(P,null,We);const qe=r.useMemo((()=>{const e=ze||{},{algorithm:t,token:n,components:r,cssVar:o}=e,a=I(e,["algorithm","token","components","cssVar"]),l=t&&(!Array.isArray(t)||t.length>0)?(0,i.jG)(t):g.uH,s={};Object.entries(r||{}).forEach((e=>{let[t,n]=e;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=l:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,i.jG)(r.algorithm)),delete r.algorithm),s[t]=r}));const c=Object.assign(Object.assign({},m.Z),n);return Object.assign(Object.assign({},a),{theme:l,token:c,components:s,override:Object.assign({override:c},s),cssVar:o})}),[ze]);return j&&(We=r.createElement(g.Mj.Provider,{value:qe},We)),He.warning&&(We=r.createElement(c.G8.Provider,{value:He.warning},We)),void 0!==z&&(We=r.createElement(x.n,{disabled:z},We)),r.createElement(v.E_.Provider,{value:He},We)},V=e=>{const t=r.useContext(v.E_),n=r.useContext(f.Z);return r.createElement(W,Object.assign({parentContext:t,legacyLocale:n},e))};V.ConfigContext=v.E_,V.SizeContext=_.Z,V.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(D=t),void 0!==n&&(j=n),"holderRender"in e&&(F=o),r&&(!function(e){return Object.keys(e).some((e=>e.endsWith("Color")))}(r)?z=r:C(B(),r))},V.useConfig=O,Object.defineProperty(V,"SizeContext",{get:()=>_.Z});const q=V},3512:(e,t,n)=>{"use strict";n.d(t,{Z:()=>C});var r=n(7294),o=n(3967),i=n.n(o),a=n(8423),l=n(8065),s=n(3124),c=n(1939),u=n(5503);const d=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];const h=function(e,t){return i()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n={};return d.forEach((r=>{n[`${e}-wrap-${r}`]=t.wrap===r})),n})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))},g=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},m=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},v=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},b=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},y=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},S=(0,c.I$)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=(0,u.TS)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[g(o),m(o),v(o),b(o),y(o)]}),(()=>({})),{resetStyle:!1});var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:o,className:c,style:u,flex:d,gap:f,children:p,vertical:g=!1,component:m="div"}=e,v=w(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:b,direction:y,getPrefixCls:E}=r.useContext(s.E_),C=E("flex",n),[x,_,O]=S(C),T=null!=g?g:null==b?void 0:b.vertical,k=i()(c,o,null==b?void 0:b.className,C,_,O,h(C,e),{[`${C}-rtl`]:"rtl"===y,[`${C}-gap-${f}`]:(0,l.n)(f),[`${C}-vertical`]:T}),R=Object.assign(Object.assign({},null==b?void 0:b.style),u);return d&&(R.flex=d),f&&!(0,l.n)(f)&&(R.gap=f),x(r.createElement(m,Object.assign({ref:t,className:k,style:R},(0,a.Z)(v,["justify","wrap","align"])),p))}));const C=E},5702:(e,t,n)=>{"use strict";n.d(t,{aM:()=>Ze,Ux:()=>De,pg:()=>je});var r=n(7294),o=n(7462),i=n(4925),a=n(4165),l=n(5861),s=n(1413),c=n(3433),u=n(5671),d=n(3144),f=n(7326),p=n(9340),h=n(9388),g=n(4942),m=n(344),v=n(1881),b=n(334),y="RC_FORM_INTERNAL_HOOKS",S=function(){(0,b.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const w=r.createContext({getFieldValue:S,getFieldsValue:S,getFieldError:S,getFieldWarning:S,getFieldsError:S,isFieldsTouched:S,isFieldTouched:S,isFieldValidating:S,isFieldsValidating:S,resetFields:S,setFields:S,setFieldValue:S,setFieldsValue:S,validateFields:S,submit:S,getInternalHooks:function(){return S(),{dispatch:S,initEntityValue:S,registerField:S,useSubscribe:S,setInitialValues:S,destroyForm:S,setCallbacks:S,registerWatch:S,getFields:S,setValidateMessages:S,setPreserve:S,getInitialValue:S}}});const E=r.createContext(null);function C(e){return null==e?[]:Array.isArray(e)?e:[e]}function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}break;default:return e}})):e}function A(e,t){return null==e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!=typeof e||e))}function P(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,F=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,B={integer:function(e){return B.number(e)&&parseInt(e,10)===e},float:function(e){return B.number(e)&&!B.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!B.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(z)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(D)return D;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),s=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};s.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?l:new RegExp(""+t(e)+o+t(e),"g")};var c=s.v4().source,u=s.v6().source;return D=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+c+"|"+u+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(F)}},H="enum",U={required:j,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(N(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)j(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?B[i](t)||r.push(N(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(N(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(N(o.messages[c].len,e.fullField,e.len)):a&&!l&&se.max?r.push(N(o.messages[c].max,e.fullField,e.max)):a&&l&&(se.max)&&r.push(N(o.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[H]=Array.isArray(e[H])?e[H]:[],-1===e[H].indexOf(t)&&r.push(N(o.messages[H],e.fullField,e[H].join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(N(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(N(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},W=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t,i)&&!e.required)return n();U.required(e,t,r,a,o,i),A(t,i)||U.type(e,t,r,a,o)}n(a)},V={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t,"string")&&!e.required)return n();U.required(e,t,r,i,o,"string"),A(t,"string")||(U.type(e,t,r,i,o),U.range(e,t,r,i,o),U.pattern(e,t,r,i,o),!0===e.whitespace&&U.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&U.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),A(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&(U.type(e,t,r,i,o),U.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&U.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t)&&!e.required)return n();U.required(e,t,r,i,o),A(t)||U.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&(U.type(e,t,r,i,o),U.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&(U.type(e,t,r,i,o),U.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();U.required(e,t,r,i,o,"array"),null!=t&&(U.type(e,t,r,i,o),U.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&U.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t)&&!e.required)return n();U.required(e,t,r,i,o),void 0!==t&&U.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t,"string")&&!e.required)return n();U.required(e,t,r,i,o),A(t,"string")||U.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t,"date")&&!e.required)return n();var a;if(U.required(e,t,r,i,o),!A(t,"date"))a=t instanceof Date?t:new Date(t),U.type(e,a,r,i,o),a&&U.range(e,a.getTime(),r,i,o)}n(i)},url:W,hex:W,email:W,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;U.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(A(t)&&!e.required)return n();U.required(e,t,r,i,o)}n(i)}};function q(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var X=q(),G=function(){function e(e){this.rules=null,this._messages=X,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=Z(q(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,l=r;if("function"==typeof a&&(l=a,a={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(null,i),Promise.resolve(i);if(a.messages){var s=this.messages();s===X&&(s=q()),Z(s,a.messages),a.messages=s}else a.messages=this.messages();var c={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=i[e];n.forEach((function(n){var a=n;"function"==typeof a.transform&&(i===t&&(i=x({},i)),r=i[e]=a.transform(r)),(a="function"==typeof a?{validator:a}:x({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),c[e]=c[e]||[],c[e].push({rule:a,value:r,source:i,field:e}))}))}));var u={};return L(c,a,(function(t,n){var r,o=t.rule,l=!("object"!==o.type&&"array"!==o.type||"object"!=typeof o.fields&&"object"!=typeof o.defaultField);function s(e,t){return x({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==o.message&&(c=[].concat(o.message));var d=c.map(I(o,i));if(a.first&&d.length)return u[o.field]=1,n(d);if(l){if(o.required&&!t.value)return void 0!==o.message?d=[].concat(o.message).map(I(o,i)):a.error&&(d=[a.error(o,N(a.messages.required,o.field))]),n(d);var f={};o.defaultField&&Object.keys(t.value).map((function(e){f[e]=o.defaultField})),f=x({},f,t.rule.fields);var p={};Object.keys(f).forEach((function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,(function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(d)}if(l=l&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,c,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,c,t.source,a)}catch(e){null==console.error||console.error(e),a.suppressValidatorError||setTimeout((function(){throw e}),0),c(e.message)}!0===r?c():!1===r?c("function"==typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){!function(e){for(var t,n,r=[],o={},a=0;a2&&void 0!==arguments[2]&&arguments[2];return e&&e.some((function(e){return fe(t,e,n)}))}function fe(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every((function(t,n){return e[n]===t})))}function pe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,le.Z)(t.target)&&e in t.target?t.target[e]:t}function he(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat((0,c.Z)(e.slice(0,n)),[o],(0,c.Z)(e.slice(n,t)),(0,c.Z)(e.slice(t+1,r))):i<0?[].concat((0,c.Z)(e.slice(0,t)),(0,c.Z)(e.slice(t+1,n+1)),[o],(0,c.Z)(e.slice(n+1,r))):e}var ge=["name"],me=[];function ve(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var be=function(e){(0,p.Z)(n,e);var t=(0,h.Z)(n);function n(e){var o;((0,u.Z)(this,n),o=t.call(this,e),(0,g.Z)((0,f.Z)(o),"state",{resetCount:0}),(0,g.Z)((0,f.Z)(o),"cancelRegisterFunc",null),(0,g.Z)((0,f.Z)(o),"mounted",!1),(0,g.Z)((0,f.Z)(o),"touched",!1),(0,g.Z)((0,f.Z)(o),"dirty",!1),(0,g.Z)((0,f.Z)(o),"validatePromise",void 0),(0,g.Z)((0,f.Z)(o),"prevValidating",void 0),(0,g.Z)((0,f.Z)(o),"errors",me),(0,g.Z)((0,f.Z)(o),"warnings",me),(0,g.Z)((0,f.Z)(o),"cancelRegister",(function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,ce(r)),o.cancelRegisterFunc=null})),(0,g.Z)((0,f.Z)(o),"getNamePath",(function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==t?[].concat((0,c.Z)(r),(0,c.Z)(t)):[]})),(0,g.Z)((0,f.Z)(o),"getRules",(function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(r):e}))})),(0,g.Z)((0,f.Z)(o),"refresh",(function(){o.mounted&&o.setState((function(e){return{resetCount:e.resetCount+1}}))})),(0,g.Z)((0,f.Z)(o),"metaCache",null),(0,g.Z)((0,f.Z)(o),"triggerMetaEvent",(function(e){var t=o.props.onMetaChange;if(t){var n=(0,s.Z)((0,s.Z)({},o.getMeta()),{},{destroy:e});(0,v.Z)(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null})),(0,g.Z)((0,f.Z)(o),"onStoreChange",(function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,s=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(c),p=t&&de(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==f&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=me,o.warnings=me,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=me,o.warnings=me,o.triggerMetaEvent(),null==s||s(),void o.refresh();break;case"remove":if(i)return void o.reRender();break;case"setField":var h=n.data;if(p)return"touched"in h&&(o.touched=h.touched),"validating"in h&&!("originRCField"in h)&&(o.validatePromise=h.validating?Promise.resolve([]):null),"errors"in h&&(o.errors=h.errors||me),"warnings"in h&&(o.warnings=h.warnings||me),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in h&&de(t,u,!0))return void o.reRender();if(i&&!u.length&&ve(i,e,c,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(ce).some((function(e){return de(n.relatedFields,e)})))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&ve(i,e,c,d,f,n))return void o.reRender()}!0===i&&o.reRender()})),(0,g.Z)((0,f.Z)(o),"validateRules",(function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,s=r.validateOnly,u=void 0!==s&&s,d=Promise.resolve().then((0,l.Z)((0,a.Z)().mark((function r(){var l,s,u,f,p,h,g;return(0,a.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(l=o.props,s=l.validateFirst,u=void 0!==s&&s,f=l.messageVariables,p=l.validateDebounce,h=o.getRules(),i&&(h=h.filter((function(e){return e})).filter((function(e){var t=e.validateTrigger;return!t||C(t).includes(i)}))),!p||!i){r.next=10;break}return r.next=8,new Promise((function(e){setTimeout(e,p)}));case 8:if(o.validatePromise===d){r.next=10;break}return r.abrupt("return",[]);case 10:return(g=oe(t,n,h,e,u,f)).catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:me;if(o.validatePromise===d){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?me:o;t?r.push.apply(r,(0,c.Z)(i)):n.push.apply(n,(0,c.Z)(i))})),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}})),r.abrupt("return",g);case 13:case"end":return r.stop()}}),r)}))));return u||(o.validatePromise=d,o.dirty=!0,o.errors=me,o.warnings=me,o.triggerMetaEvent(),o.reRender()),d})),(0,g.Z)((0,f.Z)(o),"isFieldValidating",(function(){return!!o.validatePromise})),(0,g.Z)((0,f.Z)(o),"isFieldTouched",(function(){return o.touched})),(0,g.Z)((0,f.Z)(o),"isFieldDirty",(function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(y).getInitialValue)(o.getNamePath())})),(0,g.Z)((0,f.Z)(o),"getErrors",(function(){return o.errors})),(0,g.Z)((0,f.Z)(o),"getWarnings",(function(){return o.warnings})),(0,g.Z)((0,f.Z)(o),"isListField",(function(){return o.props.isListField})),(0,g.Z)((0,f.Z)(o),"isList",(function(){return o.props.isList})),(0,g.Z)((0,f.Z)(o),"isPreserve",(function(){return o.props.preserve})),(0,g.Z)((0,f.Z)(o),"getMeta",(function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}})),(0,g.Z)((0,f.Z)(o),"getOnlyChild",(function(e){if("function"==typeof e){var t=o.getMeta();return(0,s.Z)((0,s.Z)({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=(0,m.Z)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),(0,g.Z)((0,f.Z)(o),"getValue",(function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return(0,se.Z)(e||t(!0),n)})),(0,g.Z)((0,f.Z)(o),"getControlled",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.trigger,r=t.validateTrigger,i=t.getValueFromEvent,a=t.normalize,l=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==r?r:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,h=u.getFieldsValue,m=p(y).dispatch,v=o.getValue(),b=c||function(e){return(0,g.Z)({},l,e)},S=e[n],w=(0,s.Z)((0,s.Z)({},e),b(v));return w[n]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(f.keys=[].concat((0,c.Z)(f.keys.slice(0,t)),[f.id],(0,c.Z)(f.keys.slice(t))),i([].concat((0,c.Z)(n.slice(0,t)),[e],(0,c.Z)(n.slice(t))))):(f.keys=[].concat((0,c.Z)(f.keys),[f.id]),i([].concat((0,c.Z)(n),[e]))),f.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(f.keys=f.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(f.keys=he(f.keys,e,t),i(he(n,e,t)))}}},d=r||[];return Array.isArray(d)||(d=[]),o(d.map((function(e,t){var n=f.keys[t];return void 0===n&&(f.keys[t]=f.id,n=f.keys[t],f.id+=1),{name:t,key:n,isListField:!0}})),s,t)}))))};var we=n(9439);var Ee="__@field_split__";function Ce(e){return e.map((function(e){return"".concat((0,le.Z)(e),":").concat(e)})).join(Ee)}var xe=function(){function e(){(0,u.Z)(this,e),(0,g.Z)(this,"kvs",new Map)}return(0,d.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(Ce(e),t)}},{key:"get",value:function(e){return this.kvs.get(Ce(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Ce(e))}},{key:"map",value:function(e){return(0,c.Z)(this.kvs.entries()).map((function(t){var n=(0,we.Z)(t,2),r=n[0],o=n[1],i=r.split(Ee);return e({key:i.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,we.Z)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}();const _e=xe;var Oe=["name"],Te=(0,d.Z)((function e(t){var n=this;(0,u.Z)(this,e),(0,g.Z)(this,"formHooked",!1),(0,g.Z)(this,"forceRootUpdate",void 0),(0,g.Z)(this,"subscribable",!0),(0,g.Z)(this,"store",{}),(0,g.Z)(this,"fieldEntities",[]),(0,g.Z)(this,"initialValues",{}),(0,g.Z)(this,"callbacks",{}),(0,g.Z)(this,"validateMessages",null),(0,g.Z)(this,"preserve",null),(0,g.Z)(this,"lastValidatePromise",null),(0,g.Z)(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),(0,g.Z)(this,"getInternalHooks",(function(e){return e===y?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,b.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),(0,g.Z)(this,"useSubscribe",(function(e){n.subscribable=e})),(0,g.Z)(this,"prevWithoutPreserves",null),(0,g.Z)(this,"setInitialValues",(function(e,t){if(n.initialValues=e||{},t){var r,o=(0,Q.T)(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=(0,Q.Z)(o,n,(0,se.Z)(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}})),(0,g.Z)(this,"destroyForm",(function(){var e=new _e;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e})),(0,g.Z)(this,"getInitialValue",(function(e){var t=(0,se.Z)(n.initialValues,e);return e.length?(0,Q.T)(t):t})),(0,g.Z)(this,"setCallbacks",(function(e){n.callbacks=e})),(0,g.Z)(this,"setValidateMessages",(function(e){n.validateMessages=e})),(0,g.Z)(this,"setPreserve",(function(e){n.preserve=e})),(0,g.Z)(this,"watchList",[]),(0,g.Z)(this,"registerWatch",(function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}})),(0,g.Z)(this,"notifyWatch",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(t,r,e)}))}})),(0,g.Z)(this,"timeoutId",null),(0,g.Z)(this,"warningUnhooked",(function(){0})),(0,g.Z)(this,"updateStore",(function(e){n.store=e})),(0,g.Z)(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities})),(0,g.Z)(this,"getFieldsMap",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new _e;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t})),(0,g.Z)(this,"getFieldEntitiesForNamePathList",(function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=ce(e);return t.get(n)||{INVALIDATE_NAME_PATH:ce(e)}}))})),(0,g.Z)(this,"getFieldsValue",(function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===(0,le.Z)(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach((function(e){var t,n,a,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(c)}else l.push(c)})),ue(n.store,l.map(ce))})),(0,g.Z)(this,"getFieldValue",(function(e){n.warningUnhooked();var t=ce(e);return(0,se.Z)(n.store,t)})),(0,g.Z)(this,"getFieldsError",(function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:ce(e[n]),errors:[],warnings:[]}}))})),(0,g.Z)(this,"getFieldError",(function(e){n.warningUnhooked();var t=ce(e);return n.getFieldsError([t])[0].errors})),(0,g.Z)(this,"getFieldWarning",(function(e){n.warningUnhooked();var t=ce(e);return n.getFieldsError([t])[0].warnings})),(0,g.Z)(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new _e,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o;e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,(0,c.Z)((0,c.Z)(r).map((function(e){return e.entity}))))}))):o=r,o.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))(0,b.ZP)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)(0,b.ZP)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);r.isListField()||e.skipExist&&void 0!==a||n.updateStore((0,Q.Z)(n.store,o,(0,c.Z)(i)[0].value))}}}}))})),(0,g.Z)(this,"resetFields",(function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore((0,Q.T)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(ce);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore((0,Q.Z)(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)})),(0,g.Z)(this,"setFields",(function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,a=(0,i.Z)(e,Oe),l=ce(o);r.push(l),"value"in a&&n.updateStore((0,Q.Z)(n.store,l,a.value)),n.notifyObservers(t,[l],{type:"setField",data:e})})),n.notifyWatch(r)})),(0,g.Z)(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,s.Z)((0,s.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))})),(0,g.Z)(this,"initEntityValue",(function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,se.Z)(n.store,r)&&n.updateStore((0,Q.Z)(n.store,r,t))}})),(0,g.Z)(this,"isMergedPreserve",(function(e){var t=void 0!==e?e:n.preserve;return null==t||t})),(0,g.Z)(this,"registerField",(function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!fe(e.getNamePath(),t)}))){var l=n.store;n.updateStore((0,Q.Z)(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}})),(0,g.Z)(this,"dispatch",(function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}})),(0,g.Z)(this,"notifyObservers",(function(e,t,r){if(n.subscribable){var o=(0,s.Z)((0,s.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()})),(0,g.Z)(this,"triggerDependenciesUpdate",(function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,c.Z)(r))}),r})),(0,g.Z)(this,"updateValue",(function(e,t){var r=ce(e),o=n.store;n.updateStore((0,Q.Z)(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(ue(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,c.Z)(i)))})),(0,g.Z)(this,"setFieldsValue",(function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,Q.T)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),(0,g.Z)(this,"setFieldValue",(function(e,t){n.setFields([{name:e,value:t}])})),(0,g.Z)(this,"getDependencyChildrenFields",(function(e){var t=new Set,r=[],o=new _e;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=ce(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r})),(0,g.Z)(this,"triggerOnFieldsChange",(function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new _e;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}var a=o.filter((function(t){var n=t.name;return de(e,n)}));a.length&&r(a,o)}})),(0,g.Z)(this,"validateFields",(function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(ce):[],l=[],u=String(Date.now()),d=new Set,f=o||{},p=f.recursive,h=f.dirty;n.getFieldEntities(!0).forEach((function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!h||e.isFieldDirty())){var t=e.getNamePath();if(d.add(t.join(u)),!i||de(a,t,p)){var r=e.validateRules((0,s.Z)({validateMessages:(0,s.Z)((0,s.Z)({},K),n.validateMessages)},o));l.push(r.then((function(){return{name:t,errors:[],warnings:[]}})).catch((function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,(function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,(0,c.Z)(n)):r.push.apply(r,(0,c.Z)(n))})),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}})))}}}));var g=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(l);n.lastValidatePromise=g,g.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var m=g.then((function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==g})}));m.catch((function(e){return e}));var v=a.filter((function(e){return d.has(e.join(u))}));return n.triggerOnFieldsChange(v),m})),(0,g.Z)(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))})),this.forceRootUpdate=t}));const ke=function(e){var t=r.useRef(),n=r.useState({}),o=(0,we.Z)(n,2)[1];if(!t.current)if(e)t.current=e;else{var i=new Te((function(){o({})}));t.current=i.getForm()}return[t.current]};var Re=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}});const $e=Re;var Ne=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];const Ae=function(e,t){var n=e.name,a=e.initialValues,l=e.fields,u=e.form,d=e.preserve,f=e.children,p=e.component,h=void 0===p?"form":p,g=e.validateMessages,m=e.validateTrigger,v=void 0===m?"onChange":m,b=e.onValuesChange,S=e.onFieldsChange,C=e.onFinish,x=e.onFinishFailed,_=(0,i.Z)(e,Ne),O=r.useContext($e),T=ke(u),k=(0,we.Z)(T,1)[0],R=k.getInternalHooks(y),$=R.useSubscribe,N=R.setInitialValues,A=R.setCallbacks,P=R.setValidateMessages,M=R.setPreserve,L=R.destroyForm;r.useImperativeHandle(t,(function(){return k})),r.useEffect((function(){return O.registerForm(n,k),function(){O.unregisterForm(n)}}),[O,k,n]),P((0,s.Z)((0,s.Z)({},O.validateMessages),g)),A({onValuesChange:b,onFieldsChange:function(e){if(O.triggerFormChange(n,e),S){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o{let{children:t,status:n,override:o}=e;const i=(0,r.useContext)(Ze),a=(0,r.useMemo)((()=>{const e=Object.assign({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,o,i]);return r.createElement(Ze.Provider,{value:a},t)},je=(0,r.createContext)(void 0)},6413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294),o=n(8410);var i=n(4443);const a=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,r.useRef)({}),n=function(){const[,e]=r.useReducer((e=>e+1),0);return e}(),a=(0,i.ZP)();return(0,o.Z)((()=>{const r=a.subscribe((r=>{t.current=r,e&&n()}));return()=>a.unsubscribe(r)}),[]),t.current}},1830:(e,t,n)=>{"use strict";n.d(t,{Z:()=>De});var r=n(7294),o=n(7462);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var a=n(76),l=function(e,t){return r.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:i}))};const s=r.forwardRef(l);var c=n(3967),u=n.n(c),d=n(1413),f=n(4942),p=n(9439),h=n(1002),g=n(4925);function m(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var v=n(1770),b=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],y=r.createContext(null),S=0;function w(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,i=(0,r.useState)(n?"loading":"normal"),a=(0,p.Z)(i,2),l=a[0],s=a[1],c=(0,r.useRef)(!1),u="error"===l;(0,r.useEffect)((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&s("error")})),function(){e=!1}}),[t]),(0,r.useEffect)((function(){n&&!c.current?s("loading"):u&&s("normal")}),[t]);var d=function(){s("normal")};return[function(e){c.current=!1,"loading"===l&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(c.current=!0,d())},u&&o?{src:o}:{onLoad:d,src:t},l]}var E=n(3037),C=n(3935);function x(e,t,n,r){var o=C.unstable_batchedUpdates?function(e){C.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var _=n(5105),O=n(1881),T=n(5164),k={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};var R=n(334);function $(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return(0,f.Z)({},e,i);if(t<0&&or)return(0,f.Z)({},e,t<0?i:-i);return{}}function N(e,t,n,r){var o=m(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=(0,d.Z)((0,d.Z)({},$("x",n,e,i)),$("y",r,t,a))),l}function A(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function P(e,t,n,o,i,a,l){var s=i.rotate,c=i.scale,u=i.x,f=i.y,h=(0,r.useState)(!1),g=(0,p.Z)(h,2),m=g[0],v=g[1],b=(0,r.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(e){b.current=(0,d.Z)((0,d.Z)({},b.current),e)};return(0,r.useEffect)((function(){var e;return n&&t&&(e=x(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:m,onTouchStart:function(e){if(t){e.stopPropagation(),v(!0);var n=e.touches,r=void 0===n?[]:n;r.length>1?y({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):y({point1:{x:r[0].clientX-u,y:r[0].clientY-f},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=b.current,o=r.point1,i=r.point2,s=r.eventType;if(n.length>1&&"touchZoom"===s){var c={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=A(e,n),i=A(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,c,u),f=(0,p.Z)(d,2),h=f[0],g=f[1],m=A(c,u)/A(o,i);l(m,"touchZoom",h,g,!0),y({point1:c,point2:u,eventType:"touchZoom"})}else"move"===s&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),y({eventType:"move"}))},onTouchEnd:function(){if(n){if(m&&v(!1),y({eventType:"none"}),o>c)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*c,r=e.current.offsetHeight*c,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,f=s%180!=0,p=N(f?r:t,f?t:r,l,u);p&&a((0,d.Z)({},p),"dragRebound")}}}}var M=n(8705),L=n(5461);const I=function(e){var t=e.visible,n=e.maskTransitionName,o=e.getContainer,i=e.prefixCls,a=e.rootClassName,l=e.icons,s=e.countRender,c=e.showSwitch,p=e.showProgress,h=e.current,g=e.transform,m=e.count,v=e.scale,b=e.minScale,S=e.maxScale,w=e.closeIcon,E=e.onSwitchLeft,C=e.onSwitchRight,x=e.onClose,O=e.onZoomIn,T=e.onZoomOut,k=e.onRotateRight,R=e.onRotateLeft,$=e.onFlipX,N=e.onFlipY,A=e.toolbarRender,P=e.zIndex,I=(0,r.useContext)(y),Z=l.rotateLeft,D=l.rotateRight,j=l.zoomIn,z=l.zoomOut,F=l.close,B=l.left,H=l.right,U=l.flipX,W=l.flipY,V="".concat(i,"-operations-operation");r.useEffect((function(){var e=function(e){e.keyCode===_.Z.ESC&&x()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var q=[{icon:W,onClick:N,type:"flipY"},{icon:U,onClick:$,type:"flipX"},{icon:Z,onClick:R,type:"rotateLeft"},{icon:D,onClick:k,type:"rotateRight"},{icon:z,onClick:T,type:"zoomOut",disabled:v<=b},{icon:j,onClick:O,type:"zoomIn",disabled:v===S}].map((function(e){var t,n=e.icon,o=e.onClick,a=e.type,l=e.disabled;return r.createElement("div",{className:u()(V,(t={},(0,f.Z)(t,"".concat(i,"-operations-operation-").concat(a),!0),(0,f.Z)(t,"".concat(i,"-operations-operation-disabled"),!!l),t)),onClick:o,key:a},n)})),X=r.createElement("div",{className:"".concat(i,"-operations")},q);return r.createElement(L.ZP,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return r.createElement(M.Z,{open:!0,getContainer:null!=o?o:document.body},r.createElement("div",{className:u()("".concat(i,"-operations-wrapper"),t,a),style:(0,d.Z)((0,d.Z)({},n),{},{zIndex:P})},null===w?null:r.createElement("button",{className:"".concat(i,"-close"),onClick:x},w||F),c&&r.createElement(r.Fragment,null,r.createElement("div",{className:u()("".concat(i,"-switch-left"),(0,f.Z)({},"".concat(i,"-switch-left-disabled"),0===h)),onClick:E},B),r.createElement("div",{className:u()("".concat(i,"-switch-right"),(0,f.Z)({},"".concat(i,"-switch-right-disabled"),h===m-1)),onClick:C},H)),r.createElement("div",{className:"".concat(i,"-footer")},p&&r.createElement("div",{className:"".concat(i,"-progress")},s?s(h+1,m):"".concat(h+1," / ").concat(m)),A?A(X,(0,d.Z)({icons:{flipYIcon:q[0],flipXIcon:q[1],rotateLeftIcon:q[2],rotateRightIcon:q[3],zoomOutIcon:q[4],zoomInIcon:q[5]},actions:{onFlipY:N,onFlipX:$,onRotateLeft:R,onRotateRight:k,onZoomOut:T,onZoomIn:O},transform:g},I?{current:h,total:m}:{})):X)))}))};var Z=["fallback","src","imgRef"],D=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],j=function(e){var t=e.fallback,n=e.src,i=e.imgRef,a=(0,g.Z)(e,Z),l=w({src:n,fallback:t}),s=(0,p.Z)(l,2),c=s[0],u=s[1];return r.createElement("img",(0,o.Z)({ref:function(e){i.current=e,c(e)}},a,u))};const z=function(e){var t=e.prefixCls,n=e.src,i=e.alt,a=e.fallback,l=e.movable,s=void 0===l||l,c=e.onClose,h=e.visible,v=e.icons,b=void 0===v?{}:v,S=e.rootClassName,w=e.closeIcon,C=e.getContainer,$=e.current,A=void 0===$?0:$,M=e.count,L=void 0===M?1:M,Z=e.countRender,z=e.scaleStep,F=void 0===z?.5:z,B=e.minScale,H=void 0===B?1:B,U=e.maxScale,W=void 0===U?50:U,V=e.transitionName,q=void 0===V?"zoom":V,X=e.maskTransitionName,G=void 0===X?"fade":X,Y=e.imageRender,K=e.imgCommonProps,Q=e.toolbarRender,J=e.onTransform,ee=e.onChange,te=(0,g.Z)(e,D),ne=(0,r.useRef)(),re=(0,r.useContext)(y),oe=re&&L>1,ie=re&&L>=1,ae=(0,r.useState)(!0),le=(0,p.Z)(ae,2),se=le[0],ce=le[1],ue=function(e,t,n,o){var i=(0,r.useRef)(null),a=(0,r.useRef)([]),l=(0,r.useState)(k),s=(0,p.Z)(l,2),c=s[0],u=s[1],f=function(e,t){null===i.current&&(a.current=[],i.current=(0,T.Z)((function(){u((function(e){var n=e;return a.current.forEach((function(e){n=(0,d.Z)((0,d.Z)({},n),e)})),i.current=null,null==o||o({transform:n,action:t}),n}))}))),a.current.push((0,d.Z)((0,d.Z)({},c),e))};return{transform:c,resetTransform:function(e){u(k),o&&!(0,O.Z)(k,c)&&o({transform:k,action:e})},updateTransform:f,dispatchZoomChange:function(r,o,i,a,l){var s=e.current,u=s.width,d=s.height,p=s.offsetWidth,h=s.offsetHeight,g=s.offsetLeft,v=s.offsetTop,b=r,y=c.scale*r;y>n?(y=n,b=n/c.scale):y0&&(r=1/r),l(r,"wheel",e.clientX,e.clientY)}}}}(ne,s,h,F,de,pe,he),me=ge.isMoving,ve=ge.onMouseDown,be=ge.onWheel,ye=P(ne,s,h,H,de,pe,he),Se=ye.isTouching,we=ye.onTouchStart,Ee=ye.onTouchMove,Ce=ye.onTouchEnd,xe=de.rotate,_e=de.scale,Oe=u()((0,f.Z)({},"".concat(t,"-moving"),me));(0,r.useEffect)((function(){se||ce(!0)}),[se]);var Te=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),A>0&&(ce(!1),fe("prev"),null==ee||ee(A-1,A))},ke=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),A({position:e||"absolute",inset:0}),Te=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new ye.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},we.vS),{padding:`0 ${(0,be.bf)(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},ke=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:c,iconCls:u,colorTextLightSolid:d}=e,f=new ye.C(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,be.bf)(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Re=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new ye.C(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal({unit:!1}),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",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},$e=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Oe()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Oe()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[ke(e),Re(e)]}]},Ne=e=>{const{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`]:Object.assign({},Te(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Oe())}}},Ae=e=>{const{previewCls:t}=e;return{[`${t}-root`]:(0,Ee._y)(e,"zoom"),"&":(0,Ce.J$)(e,!0)}},Pe=(0,xe.I$)("Image",(e=>{const t=`${e.componentCls}-preview`,n=(0,_e.TS)(e,{previewCls:t,modalMaskBg:new ye.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Ne(n),$e(n),(0,Se.QA)((0,_e.TS)(n,{componentCls:t})),Ae(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new ye.C(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new ye.C(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new ye.C(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})));var Me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,preview:n,className:o,rootClassName:i,style:a}=e,l=Ie(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:c,locale:d=Q.Z,getPopupContainer:f,image:p}=r.useContext(K.E_),h=c("image",t),g=c(),m=d.Image||Q.Z.Image,v=(0,ve.Z)(h),[b,y,S]=Pe(h,v),w=u()(i,y,S,v),E=u()(o,y,null==p?void 0:p.className),[C]=(0,G.Cn)("ImagePreview","object"==typeof n?n.zIndex:void 0),x=r.useMemo((()=>{if(!1===n)return n;const e="object"==typeof n?n:{},{getContainer:t}=e,o=Ie(e,["getContainer"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${h}-mask-info`},r.createElement(s,null),null==m?void 0:m.preview),icons:Le},o),{getContainer:null!=t?t:f,transitionName:(0,Y.m)(g,"zoom",e.transitionName),maskTransitionName:(0,Y.m)(g,"fade",e.maskTransitionName),zIndex:C})}),[n,m]),_=Object.assign(Object.assign({},null==p?void 0:p.style),a);return b(r.createElement(X,Object.assign({prefixCls:h,preview:x,rootClassName:w,className:E,style:_},l)))};Ze.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,o=Me(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=r.useContext(K.E_),a=i("image",t),l=`${a}-preview`,s=i(),c=(0,ve.Z)(a),[d,f,p]=Pe(a,c),[h]=(0,G.Cn)("ImagePreview","object"==typeof n?n.zIndex:void 0),g=r.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},r=u()(f,p,c,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,Y.m)(s,"zoom",t.transitionName),maskTransitionName:(0,Y.m)(s,"fade",t.maskTransitionName),rootClassName:r,zIndex:h})}),[n]);return d(r.createElement(X.PreviewGroup,Object.assign({preview:g,previewPrefixCls:l,icons:Le},o)))};const De=Ze},6745:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(7294).createContext)(void 0)},9375:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(2906);const o={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},i={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},a={lang:Object.assign({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"]},o),timePickerLocale:Object.assign({},i)},l=a,s="${label} is not a valid ${type}",c={locale:"en",Pagination:r.Z,DatePicker:a,TimePicker:i,Calendar:l,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",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"},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:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},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"}}},110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7294),o=n(6745),i=n(9375);const a=(e,t)=>{const n=r.useContext(o.Z);return[r.useMemo((()=>{var r;const o=t||i.Z[e],a=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})}),[e,t,n]),r.useMemo((()=>{const e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?i.Z.locale:e}),[n])]}},6277:(e,t,n)=>{"use strict";n.d(t,{CW:()=>v,ZP:()=>b});var r=n(8819),o=n(3061),i=n(8855),a=n(847),l=n(7085),s=n(3967),c=n.n(s),u=n(6871),d=n(7294),f=n(3124),p=n(4792),h=n(5792),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,type:n,icon:r,children:o}=e;return d.createElement("div",{className:c()(`${t}-custom-content`,`${t}-${n}`)},r||m[n],d.createElement("span",null,o))},b=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=g(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=d.useContext(f.E_),s=t||l("message"),m=(0,h.Z)(s),[b,y,S]=(0,p.Z)(s,m);return b(d.createElement(u.qX,Object.assign({},a,{prefixCls:s,className:c()(n,y,`${s}-notice-pure-panel`,S,m),eventKey:"pure",duration:null,content:d.createElement(v,{prefixCls:s,type:r,icon:o},i)})))}},4792:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(7395),o=n(7263),i=n(4747),a=n(1939),l=n(5503);const s=e=>{const{componentCls:t,iconCls:n,boxShadow:o,colorText:a,colorSuccess:l,colorError:s,colorWarning:c,colorInfo:u,fontSizeLG:d,motionEaseInOutCirc:f,motionDurationSlow:p,marginXS:h,paddingXS:g,borderRadiusLG:m,zIndexPopup:v,contentPadding:b,contentBg:y}=e,S=`${t}-notice`,w=new r.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),E=new r.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:g,textAlign:"center",[`${t}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:h,fontSize:d},[`${S}-content`]:{display:"inline-block",padding:b,background:y,borderRadius:m,boxShadow:o,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:l},[`${t}-error > ${n}`]:{color:s},[`${t}-warning > ${n}`]:{color:c},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:u}};return[{[t]:Object.assign(Object.assign({},(0,i.Wf)(e)),{color:a,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:v,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:w,animationDuration:p,animationPlayState:"paused",animationTimingFunction:f},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:E,animationDuration:p,animationPlayState:"paused",animationTimingFunction:f},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${S}-wrapper`]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]},c=(0,a.I$)("Message",(e=>{const t=(0,l.TS)(e,{height:150});return[s(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase+o.u6+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})))},6474:(e,t,n)=>{"use strict";n.d(t,{K:()=>S,Z:()=>w});var r=n(7294),o=n(4549),i=n(3967),a=n.n(i),l=n(6871),s=n(7288),c=n(3124),u=n(5792),d=n(6277),f=n(4792),p=n(4926),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const o=(0,u.Z)(n),[i,s,c]=(0,f.Z)(n,o);return i(r.createElement(l.JB,{classNames:{list:a()(s,c,o)}},t))},v=(e,t)=>{let{prefixCls:n,key:o}=t;return r.createElement(m,{prefixCls:n,key:o},e)},b=r.forwardRef(((e,t)=>{const{top:n,prefixCls:i,getContainer:s,maxCount:u,duration:d=g,rtl:f,transitionName:h,onAllRemoved:m}=e,{getPrefixCls:b,getPopupContainer:y,message:S,direction:w}=r.useContext(c.E_),E=i||b("message"),C=r.createElement("span",{className:`${E}-close-x`},r.createElement(o.Z,{className:`${E}-close-icon`})),[x,_]=(0,l.lm)({prefixCls:E,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>a()({[`${E}-rtl`]:null!=f?f:"rtl"===w}),motion:()=>(0,p.g)(E,h),closable:!1,closeIcon:C,duration:d,getContainer:()=>(null==s?void 0:s())||(null==y?void 0:y())||document.body,maxCount:u,onAllRemoved:m,renderNotifications:v});return r.useImperativeHandle(t,(()=>Object.assign(Object.assign({},x),{prefixCls:E,message:S}))),_}));let y=0;function S(e){const t=r.useRef(null);(0,s.ln)("Message");return[r.useMemo((()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:o,prefixCls:i,message:l}=t.current,s=`${i}-notice`,{content:c,icon:u,type:f,key:g,className:m,style:v,onClose:b}=n,S=h(n,["content","icon","type","key","className","style","onClose"]);let w=g;return null==w&&(y+=1,w=`antd-message-${y}`),(0,p.J)((t=>(o(Object.assign(Object.assign({},S),{key:w,content:r.createElement(d.CW,{prefixCls:i,type:f,icon:u},c),placement:"top",className:a()(f&&`${s}-${f}`,m,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),v),onClose:()=>{null==b||b(),t()}})),()=>{e(w)})))},o={open:n,destroy:n=>{var r;void 0!==n?e(n):null===(r=t.current)||void 0===r||r.destroy()}};return["info","success","warning","error","loading"].forEach((e=>{o[e]=(t,r,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?l=r:(a=r,l=o);const s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(s)}})),o}),[]),r.createElement(b,Object.assign({key:"message-holder"},e,{ref:t}))]}function w(e){return S(e)}},4926:(e,t,n)=>{"use strict";function r(e,t){return{motionName:null!=t?t:`${e}-move-up`}}function o(e){let t;const n=new Promise((n=>{t=e((()=>{n(!0)}))})),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}n.d(t,{J:()=>o,g:()=>r})},9827:(e,t,n)=>{"use strict";n.d(t,{O:()=>A,Z:()=>M});var r=n(3433),o=n(7294),i=n(8819),a=n(3061),l=n(8855),s=n(847),c=n(3967),u=n.n(c),d=n(7263),f=n(3603),p=n(6854),h=n(110),g=n(7606),m=n(470),v=n(4128),b=n(3671);function y(e){return!(!e||!e.then)}const S=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=o.useRef(!1),p=o.useRef(null),[h,g]=(0,m.Z)(!1),S=function(){null==a||a.apply(void 0,arguments)};o.useEffect((()=>{let e=null;return l&&(e=setTimeout((()=>{var e;null===(e=p.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return o.createElement(v.ZP,Object.assign({},(0,b.nx)(t),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void S();let t;if(s){if(t=d(e),u&&!y(t))return f.current=!1,void S(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!t)return void S();(e=>{y(e)&&(g(!0),e.then((function(){g(!1,!0),S.apply(void 0,arguments),f.current=!1}),(e=>{if(g(!1,!0),f.current=!1,!(null==c?void 0:c()))return Promise.reject(e)})))})(t)},loading:h,prefixCls:r},i,{ref:p}),n)};var w=n(3745);const E=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:l,onCancel:s,onConfirm:c}=(0,o.useContext)(w.t);return i?o.createElement(S,{isSilent:r,actionFn:s,close:function(){null==l||l.apply(void 0,arguments),null==c||c(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${a}-btn`},n):null},C=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:l,onConfirm:s,onOk:c}=(0,o.useContext)(w.t);return o.createElement(S,{isSilent:n,type:l||"primary",actionFn:c,close:function(){null==t||t.apply(void 0,arguments),null==s||s(!0)},autoFocus:"ok"===e,buttonProps:r,prefixCls:`${i}-btn`},a)};var x=n(3876),_=n(7395),O=n(1194),T=n(4747),k=n(1939);const R=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},(0,T.dF)()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${(0,_.bf)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},\n ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},$=(0,k.bk)(["Modal","confirm"],(e=>{const t=(0,O.B4)(e);return[R(t)]}),O.eh,{order:-1e3});var N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oR),(0,r.Z)(Object.values(R))),P=o.createElement(o.Fragment,null,o.createElement(E,null),o.createElement(C,null)),M=void 0!==e.title&&null!==e.title,L=`${f}-body`;return o.createElement("div",{className:`${f}-body-wrapper`},o.createElement("div",{className:u()(L,{[`${L}-has-title`]:M})},y,o.createElement("div",{className:`${f}-paragraph`},M&&o.createElement("span",{className:`${f}-title`},e.title),o.createElement("div",{className:`${f}-content`},e.content))),void 0===m||"function"==typeof m?o.createElement(w.n,{value:A},o.createElement("div",{className:`${f}-btns`},"function"==typeof m?m(P,{OkBtn:C,CancelBtn:E}):P)):m,o.createElement($,{prefixCls:t}))}const P=e=>{const{close:t,zIndex:n,afterClose:r,open:i,keyboard:a,centered:l,getContainer:s,maskStyle:c,direction:p,prefixCls:h,wrapClassName:m,rootPrefixCls:v,bodyStyle:b,closable:y=!1,closeIcon:S,modalRender:w,focusTriggerAfterClose:E,onConfirm:C,styles:_}=e;const O=`${h}-confirm`,T=e.width||416,k=e.style||{},R=void 0===e.mask||e.mask,$=void 0!==e.maskClosable&&e.maskClosable,N=u()(O,`${O}-${e.type}`,{[`${O}-rtl`]:"rtl"===p},e.className),[,P]=(0,g.ZP)(),M=o.useMemo((()=>void 0!==n?n:P.zIndexPopupBase+d.u6),[n,P]);return o.createElement(x.Z,{prefixCls:h,className:N,wrapClassName:u()({[`${O}-centered`]:!!e.centered},m),onCancel:()=>{null==t||t({triggerCancel:!0}),null==C||C(!1)},open:i,title:"",footer:null,transitionName:(0,f.m)(v||"","zoom",e.transitionName),maskTransitionName:(0,f.m)(v||"","fade",e.maskTransitionName),mask:R,maskClosable:$,style:k,styles:Object.assign({body:b,mask:c},_),width:T,zIndex:M,afterClose:r,keyboard:a,centered:l,getContainer:s,closable:y,closeIcon:S,modalRender:w,focusTriggerAfterClose:E},o.createElement(A,Object.assign({},e,{confirmPrefixCls:O})))};const M=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return o.createElement(p.ZP,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},o.createElement(P,Object.assign({},e)))}},3876:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(7294),o=n(4549),i=n(3967),a=n.n(i),l=n(3037);const s=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.createElement(o.Z,null);if(!function(e,t,n){return"boolean"==typeof e?e:void 0===t?!!n:!1!==t&&null!==t}(e,t,arguments.length>4&&void 0!==arguments[4]&&arguments[4]))return[!1,null];const a="boolean"==typeof t||null==t?i:t;return[!0,n?n(a):a]};var c=n(3603),u=n(8924);var d=n(3945),f=n(3124),p=n(5702),h=n(4173),g=n(6790);function m(){}const v=r.createContext({add:m,remove:m});var b=n(5514),y=n(1194),S=n(7263),w=n(5792),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{C={x:e.pageX,y:e.pageY},setTimeout((()=>{C=null}),100)};(0,u.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",x,!0);const _=e=>{var t;const{getPopupContainer:n,getPrefixCls:i,direction:u,modal:m}=r.useContext(f.E_),x=t=>{const{onCancel:n}=e;null==n||n(t)};const{prefixCls:_,className:O,rootClassName:T,open:k,wrapClassName:R,centered:$,getContainer:N,closeIcon:A,closable:P,focusTriggerAfterClose:M=!0,style:L,visible:I,width:Z=520,footer:D,classNames:j,styles:z}=e,F=E(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer","classNames","styles"]),B=i("modal",_),H=i(),U=(0,w.Z)(B),[W,V,q]=(0,y.ZP)(B,U),X=a()(R,{[`${B}-centered`]:!!$,[`${B}-wrap-rtl`]:"rtl"===u}),G=null!==D&&r.createElement(b.$,Object.assign({},e,{onOk:t=>{const{onOk:n}=e;null==n||n(t)},onCancel:x})),[Y,K]=s(P,A,(e=>(0,b.b)(B,e)),r.createElement(o.Z,{className:`${B}-close-icon`}),!0),Q=function(e){const t=r.useContext(v),n=r.useRef();return(0,g.zX)((r=>{if(r){const o=e?r.querySelector(e):r;t.add(o),n.current=o}else t.remove(n.current)}))}(`.${B}-content`),[J,ee]=(0,S.Cn)("Modal",F.zIndex);return W(r.createElement(h.BR,null,r.createElement(p.Ux,{status:!0,override:!0},r.createElement(d.Z.Provider,{value:ee},r.createElement(l.Z,Object.assign({width:Z},F,{zIndex:J,getContainer:void 0===N?n:N,prefixCls:B,rootClassName:a()(V,T,q,U),footer:G,visible:null!=k?k:I,mousePosition:null!==(t=F.mousePosition)&&void 0!==t?t:C,onClose:x,closable:Y,closeIcon:K,focusTriggerAfterClose:M,transitionName:(0,c.m)(H,"zoom",e.transitionName),maskTransitionName:(0,c.m)(H,"fade",e.maskTransitionName),className:a()(V,O,null==m?void 0:m.className),style:Object.assign(Object.assign({},null==m?void 0:m.style),L),classNames:Object.assign(Object.assign(Object.assign({},null==m?void 0:m.classNames),j),{wrapper:a()(X,null==j?void 0:j.wrapper)}),styles:Object.assign(Object.assign({},null==m?void 0:m.styles),z),panelRef:Q}))))))}},6080:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>b,Au:()=>y,ZP:()=>h,ai:()=>S,cw:()=>m,uW:()=>g,vq:()=>v});var r=n(3433),o=n(7294),i=n(8135),a=n(3124),l=n(6854),s=n(9827),c=n(8657),u=n(3008);let d="";function f(){return d}const p=e=>{var t,n;const{prefixCls:r,getContainer:i,direction:l}=e,c=(0,u.A)(),d=(0,o.useContext)(a.E_),p=f()||d.getPrefixCls(),h=r||`${p}-modal`;let g=i;return!1===g&&(g=void 0),o.createElement(s.Z,Object.assign({},e,{rootPrefixCls:p,prefixCls:h,iconPrefixCls:d.iconPrefixCls,theme:d.theme,direction:null!=l?l:d.direction,locale:null!==(n=null===(t=d.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:c,getContainer:g}))};function h(e){const t=(0,l.w6)();const n=document.createDocumentFragment();let a,s=Object.assign(Object.assign({},e),{close:h,open:!0});function u(){for(var t=arguments.length,o=new Array(t),a=0;ae&&e.triggerCancel));e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,r.Z)(o.slice(1))));for(let e=0;e{const r=t.getPrefixCls(void 0,f()),a=t.getIconPrefixCls(),s=t.getTheme(),c=o.createElement(p,Object.assign({},e));(0,i.s)(o.createElement(l.ZP,{prefixCls:r,iconPrefixCls:a,theme:s},t.holderRender?t.holderRender(c):c),n)}))}function h(){for(var t=arguments.length,n=new Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),u.apply(this,n)}}),s.visible&&delete s.visible,d(s)}return d(s),c.Z.push(h),{destroy:h,update:function(e){s="function"==typeof e?e(s):Object.assign(Object.assign({},s),e),d(s)}}}function g(e){return Object.assign(Object.assign({},e),{type:"warning"})}function m(e){return Object.assign(Object.assign({},e),{type:"info"})}function v(e){return Object.assign(Object.assign({},e),{type:"success"})}function b(e){return Object.assign(Object.assign({},e),{type:"error"})}function y(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function S(e){let{rootPrefixCls:t}=e;d=t}},3745:(e,t,n)=>{"use strict";n.d(t,{n:()=>o,t:()=>r});const r=n(7294).createContext({}),{Provider:o}=r},8657:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=[]},3008:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,f:()=>l});var r=n(9375);let o=Object.assign({},r.Z.Modal),i=[];const a=()=>i.reduce(((e,t)=>Object.assign(Object.assign({},e),t)),r.Z.Modal);function l(e){if(e){const t=Object.assign({},e);return i.push(t),o=a(),()=>{i=i.filter((e=>e!==t)),o=a()}}o=Object.assign({},r.Z.Modal)}function s(){return o}},5514:(e,t,n)=>{"use strict";n.d(t,{$:()=>g,b:()=>h});var r=n(3433),o=n(7294),i=n(4549),a=n(8866),l=n(110),s=n(4128),c=n(3745);const u=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,o.useContext)(c.t);return o.createElement(s.ZP,Object.assign({onClick:n},e),t)};var d=n(3671);const f=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,o.useContext)(c.t);return o.createElement(s.ZP,Object.assign({},(0,d.nx)(n),{loading:e,onClick:i},t),r)};var p=n(3008);function h(e,t){return o.createElement("span",{className:`${e}-close-x`},t||o.createElement(i.Z,{className:`${e}-close-icon`}))}const g=e=>{const{okText:t,okType:n="primary",cancelText:i,confirmLoading:s,onOk:d,onCancel:h,okButtonProps:g,cancelButtonProps:m,footer:v}=e,[b]=(0,l.Z)("Modal",(0,p.A)()),y={confirmLoading:s,okButtonProps:g,cancelButtonProps:m,okTextLocale:t||(null==b?void 0:b.okText),cancelTextLocale:i||(null==b?void 0:b.cancelText),okType:n,onOk:d,onCancel:h},S=o.useMemo((()=>y),(0,r.Z)(Object.values(y)));let w;return"function"==typeof v||void 0===v?(w=o.createElement(o.Fragment,null,o.createElement(u,null),o.createElement(f,null)),"function"==typeof v&&(w=v(w,{OkBtn:f,CancelBtn:u})),w=o.createElement(c.n,{value:S},w)):w=v,o.createElement(a.n,{disabled:!1},w)}},1194:(e,t,n)=>{"use strict";n.d(t,{B4:()=>p,QA:()=>u,ZP:()=>g,eh:()=>h});var r=n(4747),o=n(6932),i=n(438),a=n(5503),l=n(1939),s=n(7395);function c(e){return{position:e,inset:0}}const u=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},c("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},c("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${t}${n}-zoom-enter), &:has(${t}${n}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${t}-root`]:(0,o.J$)(e)}]},d=e=>{const{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:`${(0,s.bf)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,r.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,s.bf)(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`]:Object.assign({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:`${(0,s.bf)(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.closeBtnHoverBg,textDecoration:"none"},"&:active":{backgroundColor:e.closeBtnActiveBg}},(0,r.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(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}-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,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},f=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},p=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,a.TS)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},h=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent,closeBtnActiveBg:e.wireframe?"transparent":e.colorFillContentHover,contentPadding:e.wireframe?0:`${(0,s.bf)(e.paddingMD)} ${(0,s.bf)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,s.bf)(e.padding)} ${(0,s.bf)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,s.bf)(e.paddingXS)} ${(0,s.bf)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,s.bf)(2*e.padding)} ${(0,s.bf)(2*e.padding)} ${(0,s.bf)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),g=(0,l.I$)("Modal",(e=>{const t=p(e);return[d(t),f(t),u(t),(0,i._y)(t,"zoom")]}),h,{unitless:{titleLineHeight:!0}})},61:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var r=n(3433),o=n(7294);var i=n(6080),a=n(8657),l=n(3124),s=n(9375),c=n(110),u=n(9827),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:i,config:a}=e,f=d(e,["afterClose","config"]);const[p,h]=o.useState(!0),[g,m]=o.useState(a),{direction:v,getPrefixCls:b}=o.useContext(l.E_),y=b("modal"),S=b(),w=function(){h(!1);for(var e=arguments.length,t=new Array(e),n=0;ne&&e.triggerCancel));g.onCancel&&o&&g.onCancel.apply(g,[()=>{}].concat((0,r.Z)(t.slice(1))))};o.useImperativeHandle(t,(()=>({destroy:w,update:e=>{m((t=>Object.assign(Object.assign({},t),e)))}})));const E=null!==(n=g.okCancel)&&void 0!==n?n:"confirm"===g.type,[C]=(0,c.Z)("Modal",s.Z.Modal);return o.createElement(u.Z,Object.assign({prefixCls:y,rootPrefixCls:S},g,{close:w,open:p,afterClose:()=>{var e;i(),null===(e=g.afterClose)||void 0===e||e.call(g)},okText:g.okText||(E?null==C?void 0:C.okText:null==C?void 0:C.justOkText),direction:g.direction||v,cancelText:g.cancelText||(null==C?void 0:C.cancelText)},f))},p=o.forwardRef(f);let h=0;const g=o.memo(o.forwardRef(((e,t)=>{const[n,i]=function(){const[e,t]=o.useState([]);return[e,o.useCallback((e=>(t((t=>[].concat((0,r.Z)(t),[e]))),()=>{t((t=>t.filter((t=>t!==e))))})),[])]}();return o.useImperativeHandle(t,(()=>({patchElement:i})),[]),o.createElement(o.Fragment,null,n)})));const m=function(){const e=o.useRef(null),[t,n]=o.useState([]);o.useEffect((()=>{if(t.length){(0,r.Z)(t).forEach((e=>{e()})),n([])}}),[t]);const l=o.useCallback((t=>function(i){var l;h+=1;const s=o.createRef();let c;const u=new Promise((e=>{c=e}));let d,f=!1;const g=o.createElement(p,{key:`modal-${h}`,config:t(i),ref:s,afterClose:()=>{null==d||d()},isSilent:()=>f,onConfirm:e=>{c(e)}});d=null===(l=e.current)||void 0===l?void 0:l.patchElement(g),d&&a.Z.push(d);const m={destroy:()=>{function e(){var e;null===(e=s.current)||void 0===e||e.destroy()}s.current?e():n((t=>[].concat((0,r.Z)(t),[e])))},update:e=>{function t(){var t;null===(t=s.current)||void 0===t||t.update(e)}s.current?t():n((e=>[].concat((0,r.Z)(e),[t])))},then:e=>(f=!0,u.then(e))};return m}),[]);return[o.useMemo((()=>({info:l(i.cw),success:l(i.vq),error:l(i.AQ),warning:l(i.uW),confirm:l(i.Au)})),[]),o.createElement(g,{key:"modal-holder",ref:e})]}},700:(e,t,n)=>{"use strict";n.d(t,{CW:()=>E,ZP:()=>C,z5:()=>S});var r=n(7294),o=n(8819),i=n(3061),a=n(4549),l=n(8855),s=n(847),c=n(7085),u=n(3967),d=n.n(u),f=n(6871),p=n(3124),h=n(5792),g=n(8295),m=n(1939),v=n(7395);const b=(0,m.bk)(["Notification","PurePanel"],(e=>{const t=`${e.componentCls}-notice`,n=(0,g.Rp)(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},(0,g.$e)(n)),{width:n.width,maxWidth:`calc(100vw - ${(0,v.bf)(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),g.eh);var y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,icon:n,type:o,message:i,description:a,btn:l,role:s="alert"}=e;let c=null;return n?c=r.createElement("span",{className:`${t}-icon`},n):o&&(c=r.createElement(w[o]||null,{className:d()(`${t}-icon`,`${t}-icon-${o}`)})),r.createElement("div",{className:d()({[`${t}-with-icon`]:c}),role:s},c,r.createElement("div",{className:`${t}-message`},i),r.createElement("div",{className:`${t}-description`},a),l&&r.createElement("div",{className:`${t}-btn`},l))},C=e=>{const{prefixCls:t,className:n,icon:o,type:i,message:a,description:l,btn:s,closable:c=!0,closeIcon:u,className:m}=e,v=y(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:w}=r.useContext(p.E_),C=t||w("notification"),x=`${C}-notice`,_=(0,h.Z)(C),[O,T,k]=(0,g.ZP)(C,_);return O(r.createElement("div",{className:d()(`${x}-pure-panel`,T,n,k,_)},r.createElement(b,{prefixCls:C}),r.createElement(f.qX,Object.assign({},v,{prefixCls:C,eventKey:"pure",duration:null,closable:c,className:d()({notificationClassName:m}),closeIcon:S(C,u),content:r.createElement(E,{prefixCls:x,icon:o,type:i,message:a,description:l,btn:s})}))))}},8295:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>b,$e:()=>h,eh:()=>m,Rp:()=>v});var r=n(7395),o=n(7263),i=n(4747),a=n(5503),l=n(1939);const s=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:o}=e,i=`${t}-notice`,a=new r.E4("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new r.E4("antNotificationTopFadeIn",{"0%":{top:-o,opacity:0},"100%":{top:0,opacity:1}})}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new r.E4("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(o).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}})}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:new r.E4("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}})}}}}},c=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],u={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},d=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},f=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},d(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},f(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"}}}},c.map((t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[u[t]]:{value:0,_skip_check_:!0}}}}})(e,t))).reduce(((e,t)=>Object.assign(Object.assign({},e),t)),{}))},h=e=>{const{iconCls:t,componentCls:n,boxShadow:o,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:l,colorSuccess:s,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:p,notificationPadding:h,notificationMarginEdge:g,fontSize:m,lineHeight:v,width:b,notificationIconSize:y,colorText:S}=e,w=`${n}-notice`;return{position:"relative",marginBottom:a,marginInlineStart:"auto",background:p,borderRadius:l,boxShadow:o,[w]:{padding:h,width:b,maxWidth:`calc(100vw - ${(0,r.bf)(e.calc(g).mul(2).equal())})`,overflow:"hidden",lineHeight:v,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:m,cursor:"pointer"},[`${w}-message`]:{marginBottom:e.marginXS,color:f,fontSize:i,lineHeight:e.lineHeightLG},[`${w}-description`]:{fontSize:m,color:S},[`${w}-closable ${w}-message`]:{paddingInlineEnd:e.paddingLG},[`${w}-with-icon ${w}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(y).equal(),fontSize:i},[`${w}-with-icon ${w}-description`]:{marginInlineStart:e.calc(e.marginSM).add(y).equal(),fontSize:m},[`${w}-icon`]:{position:"absolute",fontSize:y,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${w}-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.closeBtnHoverBg}},[`${w}-btn`]:{float:"right",marginTop:e.marginSM}}},g=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:o,motionDurationMid:a,motionEaseInOut:l}=e,s=`${t}-notice`,c=new r.E4("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},(0,i.Wf)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:o,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:l,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:l,animationFillMode:"both",animationDuration:a,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:c,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${s}-btn`]:{float:"left"}}})},{[t]:{[`${s}-wrapper`]:Object.assign({},h(e))}}]},m=e=>({zIndexPopup:e.zIndexPopupBase+o.u6+50,width:384,closeBtnHoverBg:e.wireframe?"transparent":e.colorFillContent}),v=e=>{const t=e.paddingMD,n=e.paddingLG;return(0,a.TS)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${(0,r.bf)(e.paddingMD)} ${(0,r.bf)(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3})},b=(0,l.I$)("Notification",(e=>{const t=v(e);return[g(t),s(t),p(t)]}),m)},7107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y,k:()=>b});var r=n(7294),o=n(3967),i=n.n(o),a=n(6871),l=n(7288),s=n(3124),c=n(5792),u=n(7606),d=n(700),f=n(8295);var p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const o=(0,c.Z)(n),[l,s,u]=(0,f.ZP)(n,o);return l(r.createElement(a.JB,{classNames:{list:i()(s,u,o)}},t))},m=(e,t)=>{let{prefixCls:n,key:o}=t;return r.createElement(g,{prefixCls:n,key:o},e)},v=r.forwardRef(((e,t)=>{const{top:n,bottom:o,prefixCls:l,getContainer:c,maxCount:f,rtl:p,onAllRemoved:h,stack:g}=e,{getPrefixCls:v,getPopupContainer:b,notification:y,direction:S}=(0,r.useContext)(s.E_),[,w]=(0,u.ZP)(),E=l||v("notification"),[C,x]=(0,a.lm)({prefixCls:E,style:e=>function(e,t,n){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:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=n?n:24,null!=o?o:24),className:()=>i()({[`${E}-rtl`]:null!=p?p:"rtl"===S}),motion:()=>function(e){return{motionName:`${e}-fade`}}(E),closable:!0,closeIcon:(0,d.z5)(E),duration:4.5,getContainer:()=>(null==c?void 0:c())||(null==b?void 0:b())||document.body,maxCount:f,onAllRemoved:h,renderNotifications:m,stack:!1!==g&&{threshold:"object"==typeof g?null==g?void 0:g.threshold:void 0,offset:8,gap:w.margin}});return r.useImperativeHandle(t,(()=>Object.assign(Object.assign({},C),{prefixCls:E,notification:y}))),x}));function b(e){const t=r.useRef(null),n=((0,l.ln)("Notification"),r.useMemo((()=>{const n=n=>{var o;if(!t.current)return;const{open:a,prefixCls:l,notification:s}=t.current,c=`${l}-notice`,{message:u,description:f,icon:g,type:m,btn:v,className:b,style:y,role:S="alert",closeIcon:w}=n,E=p(n,["message","description","icon","type","btn","className","style","role","closeIcon"]),C=(0,d.z5)(c,w);return a(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:h},E),{content:r.createElement(d.CW,{prefixCls:c,icon:g,type:m,message:u,description:f,btn:v,role:S}),className:i()(m&&`${c}-${m}`,b,null==s?void 0:s.className),style:Object.assign(Object.assign({},null==s?void 0:s.style),y),closeIcon:C,closable:!!C}))},o={open:n,destroy:e=>{var n,r;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(r=t.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach((e=>{o[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))})),o}),[]));return[n,r.createElement(v,Object.assign({key:"notification-holder"},e,{ref:t}))]}function y(e){return b(e)}},8966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>kr});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var a=n(76),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const s=o.forwardRef(l);const c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var u=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:c}))};const d=o.forwardRef(u);var f=n(7724),p=n(8812),h=n(3967),g=n.n(h),m=n(4942),v=n(1413),b=n(9439),y=n(1770),S=n(5105),w=n(4217),E=n(334);const C={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var x=["10","20","50","100"];const _=function(e){var t=e.pageSizeOptions,n=void 0===t?x:t,r=e.locale,i=e.changeSize,a=e.pageSize,l=e.goButton,s=e.quickGo,c=e.rootPrefixCls,u=e.selectComponentClass,d=e.selectPrefixCls,f=e.disabled,p=e.buildOptionText,h=o.useState(""),g=(0,b.Z)(h,2),m=g[0],v=g[1],y=function(){return!m||Number.isNaN(m)?void 0:Number(m)},w="function"==typeof p?p:function(e){return"".concat(e," ").concat(r.items_per_page)},E=function(e){""!==m&&(e.keyCode!==S.Z.ENTER&&"click"!==e.type||(v(""),null==s||s(y())))},C="".concat(c,"-options");if(!i&&!s)return null;var _=null,O=null,T=null;if(i&&u){var k=(n.some((function(e){return e.toString()===a.toString()}))?n:n.concat([a.toString()]).sort((function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))}))).map((function(e,t){return o.createElement(u.Option,{key:t,value:e.toString()},w(e))}));_=o.createElement(u,{disabled:f,prefixCls:d,showSearch:!1,className:"".concat(C,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(a||n[0]).toString(),onChange:function(e){null==i||i(Number(e))},getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},k)}return s&&(l&&(T="boolean"==typeof l?o.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:f,className:"".concat(C,"-quick-jumper-button")},r.jump_to_confirm):o.createElement("span",{onClick:E,onKeyUp:E},l)),O=o.createElement("div",{className:"".concat(C,"-quick-jumper")},r.jump_to,o.createElement("input",{disabled:f,type:"text",value:m,onChange:function(e){v(e.target.value)},onKeyUp:E,onBlur:function(e){l||""===m||(v(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(c,"-item"))>=0)||null==s||s(y()))},"aria-label":r.page}),r.page,T)),o.createElement("li",{className:C},_,O)};const O=function(e){var t,n=e.rootPrefixCls,r=e.page,i=e.active,a=e.className,l=e.showTitle,s=e.onClick,c=e.onKeyPress,u=e.itemRender,d="".concat(n,"-item"),f=g()(d,"".concat(d,"-").concat(r),(t={},(0,m.Z)(t,"".concat(d,"-active"),i),(0,m.Z)(t,"".concat(d,"-disabled"),!r),t),a),p=u(r,"page",o.createElement("a",{rel:"nofollow"},r));return p?o.createElement("li",{title:l?String(r):null,className:f,onClick:function(){s(r)},onKeyDown:function(e){c(e,s,r)},tabIndex:0},p):null};var T=function(e,t,n){return n};function k(){}function R(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function $(e,t,n){var r=void 0===e?t:e;return Math.floor((n-1)/r)+1}const N=function(e){var t,n=e.prefixCls,i=void 0===n?"rc-pagination":n,a=e.selectPrefixCls,l=void 0===a?"rc-select":a,s=e.className,c=e.selectComponentClass,u=e.current,d=e.defaultCurrent,f=void 0===d?1:d,p=e.total,h=void 0===p?0:p,E=e.pageSize,x=e.defaultPageSize,N=void 0===x?10:x,A=e.onChange,P=void 0===A?k:A,M=e.hideOnSinglePage,L=e.showPrevNextJumpers,I=void 0===L||L,Z=e.showQuickJumper,D=e.showLessItems,j=e.showTitle,z=void 0===j||j,F=e.onShowSizeChange,B=void 0===F?k:F,H=e.locale,U=void 0===H?C:H,W=e.style,V=e.totalBoundaryShowSizeChanger,q=void 0===V?50:V,X=e.disabled,G=e.simple,Y=e.showTotal,K=e.showSizeChanger,Q=e.pageSizeOptions,J=e.itemRender,ee=void 0===J?T:J,te=e.jumpPrevIcon,ne=e.jumpNextIcon,re=e.prevIcon,oe=e.nextIcon,ie=o.useRef(null),ae=(0,y.Z)(10,{value:E,defaultValue:N}),le=(0,b.Z)(ae,2),se=le[0],ce=le[1],ue=(0,y.Z)(1,{value:u,defaultValue:f,postState:function(e){return Math.max(1,Math.min(e,$(void 0,se,h)))}}),de=(0,b.Z)(ue,2),fe=de[0],pe=de[1],he=o.useState(fe),ge=(0,b.Z)(he,2),me=ge[0],ve=ge[1];(0,o.useEffect)((function(){ve(fe)}),[fe]);var be=Math.max(1,fe-(D?3:5)),ye=Math.min($(void 0,se,h),fe+(D?3:5));function Se(t,n){var r=t||o.createElement("button",{type:"button","aria-label":n,className:"".concat(i,"-item-link")});return"function"==typeof t&&(r=o.createElement(t,(0,v.Z)({},e))),r}function we(e){var t=e.target.value,n=$(void 0,se,h);return""===t?t:Number.isNaN(Number(t))?me:t>=n?n:Number(t)}var Ee=h>se&&Z;function Ce(e){var t=we(e);switch(t!==me&&ve(t),e.keyCode){case S.Z.ENTER:xe(t);break;case S.Z.UP:xe(t-1);break;case S.Z.DOWN:xe(t+1)}}function xe(e){if(function(e){return R(e)&&e!==fe&&R(h)&&h>0}(e)&&!X){var t=$(void 0,se,h),n=e;return e>t?n=t:e<1&&(n=1),n!==me&&ve(n),pe(n),null==P||P(n,se),n}return fe}var _e=fe>1,Oe=fe<$(void 0,se,h),Te=null!=K?K:h>q;function ke(){_e&&xe(fe-1)}function Re(){Oe&&xe(fe+1)}function $e(){xe(be)}function Ne(){xe(ye)}function Ae(e,t){if("Enter"===e.key||e.charCode===S.Z.ENTER||e.keyCode===S.Z.ENTER){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;oh?h:fe*se])),Ze=null,De=$(void 0,se,h);if(M&&h<=se)return null;var je=[],ze={rootPrefixCls:i,onClick:xe,onKeyPress:Ae,showTitle:z,itemRender:ee,page:-1},Fe=fe-1>0?fe-1:0,Be=fe+1=2*Ve&&3!==fe&&(je[0]=o.cloneElement(je[0],{className:g()("".concat(i,"-item-after-jump-prev"),je[0].props.className)}),je.unshift(Me)),De-fe>=2*Ve&&fe!==De-2){var tt=je[je.length-1];je[je.length-1]=o.cloneElement(tt,{className:g()("".concat(i,"-item-before-jump-next"),tt.props.className)}),je.push(Ze)}1!==Qe&&je.unshift(o.createElement(O,(0,r.Z)({},ze,{key:1,page:1}))),Je!==De&&je.push(o.createElement(O,(0,r.Z)({},ze,{key:De,page:De})))}var nt=function(e){var t=ee(e,"prev",Se(re,"prev page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!_e}):t}(Fe);if(nt){var rt=!_e||!De;nt=o.createElement("li",{title:z?U.prev_page:null,onClick:ke,tabIndex:rt?null:0,onKeyDown:function(e){Ae(e,ke)},className:g()("".concat(i,"-prev"),(0,m.Z)({},"".concat(i,"-disabled"),rt)),"aria-disabled":rt},nt)}var ot,it,at=function(e){var t=ee(e,"next",Se(oe,"next page"));return o.isValidElement(t)?o.cloneElement(t,{disabled:!Oe}):t}(Be);at&&(G?(ot=!Oe,it=_e?0:null):it=(ot=!Oe||!De)?null:0,at=o.createElement("li",{title:z?U.next_page:null,onClick:Re,tabIndex:it,onKeyDown:function(e){Ae(e,Re)},className:g()("".concat(i,"-next"),(0,m.Z)({},"".concat(i,"-disabled"),ot)),"aria-disabled":ot},at));var lt=g()(i,s,(t={},(0,m.Z)(t,"".concat(i,"-simple"),G),(0,m.Z)(t,"".concat(i,"-disabled"),X),t));return o.createElement("ul",(0,r.Z)({className:lt,style:W,ref:ie},Le),Ie,nt,G?We:je,at,o.createElement(_,{locale:U,rootPrefixCls:i,disabled:X,selectComponentClass:c,selectPrefixCls:l,changeSize:Te?function(e){var t=$(e,se,h),n=fe>t&&0!==t?t:fe;ce(e),ve(n),null==B||B(fe,e),pe(n),null==P||P(n,e)}:null,pageSize:se,pageSizeOptions:Q,quickGo:Ee?xe:null,goButton:Ue}))};var A=n(2906),P=n(3124),M=n(8675),L=n(6413),I=n(110),Z=n(3433),D=n(4925),j=n(1002),z=n(8410),F=n(1131),B=n(2550);const H=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,a=e.onMouseDown,l=e.onClick,s="function"==typeof n?n(r):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==s?s:o.createElement("span",{className:g()(t.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},i))};var U=o.createContext(null);function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);return o.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var V=n(6278),q=function(e,t){var n,r=e.prefixCls,i=e.id,a=e.inputElement,l=e.disabled,s=e.tabIndex,c=e.autoFocus,u=e.autoComplete,d=e.editable,f=e.activeDescendantId,p=e.value,h=e.maxLength,m=e.onKeyDown,b=e.onMouseDown,y=e.onChange,S=e.onPaste,w=e.onCompositionStart,C=e.onCompositionEnd,x=e.open,_=e.attrs,O=a||o.createElement("input",null),T=O,k=T.ref,R=T.props,$=R.onKeyDown,N=R.onChange,A=R.onMouseDown,P=R.onCompositionStart,M=R.onCompositionEnd,L=R.style;return(0,E.Kp)(!("maxLength"in O.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),O=o.cloneElement(O,(0,v.Z)((0,v.Z)((0,v.Z)({type:"search"},R),{},{id:i,ref:(0,B.sQ)(t,k),disabled:l,tabIndex:s,autoComplete:u||"off",autoFocus:c,className:g()("".concat(r,"-selection-search-input"),null===(n=O)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.className),role:"combobox","aria-expanded":x||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":x?f:void 0},_),{},{value:d?p:"",maxLength:h,readOnly:!d,unselectable:d?null:"on",style:(0,v.Z)((0,v.Z)({},L),{},{opacity:d?null:0}),onKeyDown:function(e){m(e),$&&$(e)},onMouseDown:function(e){b(e),A&&A(e)},onChange:function(e){y(e),N&&N(e)},onCompositionStart:function(e){w(e),P&&P(e)},onCompositionEnd:function(e){C(e),M&&M(e)},onPaste:S}))};const X=o.forwardRef(q);function G(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Y="undefined"!=typeof window&&window.document&&window.document.documentElement;function K(e){return["string","number"].includes((0,j.Z)(e))}function Q(e){var t=void 0;return e&&(K(e.title)?t=e.title.toString():K(e.label)&&(t=e.label.toString())),t}function J(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var ee=function(e){e.preventDefault(),e.stopPropagation()};const te=function(e){var t,n,r=e.id,i=e.prefixCls,a=e.values,l=e.open,s=e.searchValue,c=e.autoClearSearchValue,u=e.inputRef,d=e.placeholder,f=e.disabled,p=e.mode,h=e.showSearch,v=e.autoFocus,y=e.autoComplete,S=e.activeDescendantId,E=e.tabIndex,C=e.removeIcon,x=e.maxTagCount,_=e.maxTagTextLength,O=e.maxTagPlaceholder,T=void 0===O?function(e){return"+ ".concat(e.length," ...")}:O,k=e.tagRender,R=e.onToggleOpen,$=e.onRemove,N=e.onInputChange,A=e.onInputPaste,P=e.onInputKeyDown,M=e.onInputMouseDown,L=e.onInputCompositionStart,I=e.onInputCompositionEnd,Z=o.useRef(null),D=(0,o.useState)(0),j=(0,b.Z)(D,2),z=j[0],F=j[1],B=(0,o.useState)(!1),U=(0,b.Z)(B,2),W=U[0],q=U[1],G="".concat(i,"-selection"),K=l||"multiple"===p&&!1===c||"tags"===p?s:"",te="tags"===p||"multiple"===p&&!1===c||h&&(l||W);t=function(){F(Z.current.scrollWidth)},n=[K],Y?o.useLayoutEffect(t,n):o.useEffect(t,n);var ne=function(e,t,n,r,i){return o.createElement("span",{title:Q(e),className:g()("".concat(G,"-item"),(0,m.Z)({},"".concat(G,"-item-disabled"),n))},o.createElement("span",{className:"".concat(G,"-item-content")},t),r&&o.createElement(H,{className:"".concat(G,"-item-remove"),onMouseDown:ee,onClick:i,customizeIcon:C},"×"))},re=o.createElement("div",{className:"".concat(G,"-search"),style:{width:z},onFocus:function(){q(!0)},onBlur:function(){q(!1)}},o.createElement(X,{ref:u,open:l,prefixCls:i,id:r,inputElement:null,disabled:f,autoFocus:v,autoComplete:y,editable:te,activeDescendantId:S,value:K,onKeyDown:P,onMouseDown:M,onChange:N,onPaste:A,onCompositionStart:L,onCompositionEnd:I,tabIndex:E,attrs:(0,w.Z)(e,!0)}),o.createElement("span",{ref:Z,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},K," ")),oe=o.createElement(V.Z,{prefixCls:"".concat(G,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,i=!f&&!t,a=n;if("number"==typeof _&&("string"==typeof n||"number"==typeof n)){var s=String(a);s.length>_&&(a="".concat(s.slice(0,_),"..."))}var c=function(t){t&&t.stopPropagation(),$(e)};return"function"==typeof k?function(e,t,n,r,i){return o.createElement("span",{onMouseDown:function(e){ee(e),R(!l)}},k({label:t,value:e,disabled:n,closable:r,onClose:i}))}(r,a,t,i,c):ne(e,a,t,i,c)},renderRest:function(e){var t="function"==typeof T?T(e):T;return ne({title:t},t,!1)},suffix:re,itemKey:J,maxCount:x});return o.createElement(o.Fragment,null,oe,!a.length&&!K&&o.createElement("span",{className:"".concat(G,"-placeholder")},d))};const ne=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,s=e.autoComplete,c=e.activeDescendantId,u=e.mode,d=e.open,f=e.values,p=e.placeholder,h=e.tabIndex,g=e.showSearch,m=e.searchValue,v=e.activeValue,y=e.maxLength,S=e.onInputKeyDown,E=e.onInputMouseDown,C=e.onInputChange,x=e.onInputPaste,_=e.onInputCompositionStart,O=e.onInputCompositionEnd,T=e.title,k=o.useState(!1),R=(0,b.Z)(k,2),$=R[0],N=R[1],A="combobox"===u,P=A||g,M=f[0],L=m||"";A&&v&&!$&&(L=v),o.useEffect((function(){A&&N(!1)}),[A,v]);var I=!("combobox"!==u&&!d&&!g)&&!!L,Z=void 0===T?Q(M):T,D=o.useMemo((function(){return M?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:I?{visibility:"hidden"}:void 0},p)}),[M,I,p,n]);return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(X,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:l,autoComplete:s,editable:P,activeDescendantId:c,value:L,onKeyDown:S,onMouseDown:E,onChange:function(e){N(!0),C(e)},onPaste:x,onCompositionStart:_,onCompositionEnd:O,tabIndex:h,attrs:(0,w.Z)(e,!0),maxLength:A?y:void 0})),!A&&M?o.createElement("span",{className:"".concat(n,"-selection-item"),title:Z,style:I?{visibility:"hidden"}:void 0},M.label):null,D)};var re=function(e,t){var n=(0,o.useRef)(null),i=(0,o.useRef)(!1),a=e.prefixCls,l=e.open,s=e.mode,c=e.showSearch,u=e.tokenWithEnter,d=e.autoClearSearchValue,f=e.onSearch,p=e.onSearchSubmit,h=e.onToggleOpen,g=e.onInputKeyDown,m=e.domRef;o.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var v=W(0),y=(0,b.Z)(v,2),w=y[0],E=y[1],C=(0,o.useRef)(null),x=function(e){!1!==f(e,!0,i.current)&&h(!0)},_={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==S.Z.UP&&n!==S.Z.DOWN||e.preventDefault(),g&&g(e),n!==S.Z.ENTER||"tags"!==s||i.current||l||null==p||p(e.target.value),t=n,[S.Z.ESC,S.Z.SHIFT,S.Z.BACKSPACE,S.Z.TAB,S.Z.WIN_KEY,S.Z.ALT,S.Z.META,S.Z.WIN_KEY_RIGHT,S.Z.CTRL,S.Z.SEMICOLON,S.Z.EQUALS,S.Z.CAPS_LOCK,S.Z.CONTEXT_MENU,S.Z.F1,S.Z.F2,S.Z.F3,S.Z.F4,S.Z.F5,S.Z.F6,S.Z.F7,S.Z.F8,S.Z.F9,S.Z.F10,S.Z.F11,S.Z.F12].includes(t)||h(!0)},onInputMouseDown:function(){E(!0)},onInputChange:function(e){var t=e.target.value;if(u&&C.current&&/[\r\n]/.test(C.current)){var n=C.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,C.current)}C.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");C.current=n||""},onInputCompositionStart:function(){i.current=!0},onInputCompositionEnd:function(e){i.current=!1,"combobox"!==s&&x(e.target.value)}},O="multiple"===s||"tags"===s?o.createElement(te,(0,r.Z)({},e,_)):o.createElement(ne,(0,r.Z)({},e,_));return o.createElement("div",{ref:m,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=w();e.target===n.current||t||"combobox"===s||e.preventDefault(),("combobox"===s||c&&t)&&l||(l&&!1!==d&&f("",!0,!1),h())}},O)};const oe=o.forwardRef(re);var ie=n(2507),ae=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],le=function(e,t){var n=e.prefixCls,i=(e.disabled,e.visible),a=e.children,l=e.popupElement,s=e.animation,c=e.transitionName,u=e.dropdownStyle,d=e.dropdownClassName,f=e.direction,p=void 0===f?"ltr":f,h=e.placement,b=e.builtinPlacements,y=e.dropdownMatchSelectWidth,S=e.dropdownRender,w=e.dropdownAlign,E=e.getPopupContainer,C=e.empty,x=e.getTriggerDOMNode,_=e.onPopupVisibleChange,O=e.onPopupMouseEnter,T=(0,D.Z)(e,ae),k="".concat(n,"-dropdown"),R=l;S&&(R=S(l));var $=o.useMemo((function(){return b||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(y)}),[b,y]),N=s?"".concat(k,"-").concat(s):c,A="number"==typeof y,P=o.useMemo((function(){return A?null:!1===y?"minWidth":"width"}),[y,A]),M=u;A&&(M=(0,v.Z)((0,v.Z)({},M),{},{width:y}));var L=o.useRef(null);return o.useImperativeHandle(t,(function(){return{getPopupElement:function(){return L.current}}})),o.createElement(ie.Z,(0,r.Z)({},T,{showAction:_?["click"]:[],hideAction:_?["click"]:[],popupPlacement:h||("rtl"===p?"bottomRight":"bottomLeft"),builtinPlacements:$,prefixCls:k,popupTransitionName:N,popup:o.createElement("div",{ref:L,onMouseEnter:O},R),stretch:P,popupAlign:w,popupVisible:i,getPopupContainer:E,popupClassName:g()(d,(0,m.Z)({},"".concat(k,"-empty"),C)),popupStyle:M,getTriggerDOMNode:x,onPopupVisibleChange:_}),a)};const se=o.forwardRef(le);var ce=n(4506);function ue(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function de(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function fe(e){var t=(0,v.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,E.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const pe=o.createContext(null);var he=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ge=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],me=function(e){return"tags"===e||"multiple"===e},ve=o.forwardRef((function(e,t){var n,i,a=e.id,l=e.prefixCls,s=e.className,c=e.showSearch,u=e.tagRender,d=e.direction,f=e.omitDomProps,p=e.displayValues,h=e.onDisplayValuesChange,w=e.emptyOptions,E=e.notFoundContent,C=void 0===E?"Not Found":E,x=e.onClear,_=e.mode,O=e.disabled,T=e.loading,k=e.getInputElement,R=e.getRawInputElement,$=e.open,N=e.defaultOpen,A=e.onDropdownVisibleChange,P=e.activeValue,M=e.onActiveValueChange,L=e.activeDescendantId,I=e.searchValue,V=e.autoClearSearchValue,q=e.onSearch,X=e.onSearchSplit,G=e.tokenSeparators,Y=e.allowClear,K=e.suffixIcon,Q=e.clearIcon,J=e.OptionList,ee=e.animation,te=e.transitionName,ne=e.dropdownStyle,re=e.dropdownClassName,ie=e.dropdownMatchSelectWidth,ae=e.dropdownRender,le=e.dropdownAlign,ue=e.placement,de=e.builtinPlacements,fe=e.getPopupContainer,ve=e.showAction,be=void 0===ve?[]:ve,ye=e.onFocus,Se=e.onBlur,we=e.onKeyUp,Ee=e.onKeyDown,Ce=e.onMouseDown,xe=(0,D.Z)(e,he),_e=me(_),Oe=(void 0!==c?c:_e)||"combobox"===_,Te=(0,v.Z)({},xe);ge.forEach((function(e){delete Te[e]})),null==f||f.forEach((function(e){delete Te[e]}));var ke=o.useState(!1),Re=(0,b.Z)(ke,2),$e=Re[0],Ne=Re[1];o.useEffect((function(){Ne((0,F.Z)())}),[]);var Ae=o.useRef(null),Pe=o.useRef(null),Me=o.useRef(null),Le=o.useRef(null),Ie=o.useRef(null),Ze=o.useRef(!1),De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=o.useState(!1),n=(0,b.Z)(t,2),r=n[0],i=n[1],a=o.useRef(null),l=function(){window.clearTimeout(a.current)};return o.useEffect((function(){return l}),[]),[r,function(t,n){l(),a.current=window.setTimeout((function(){i(t),n&&n()}),e)},l]}(),je=(0,b.Z)(De,3),ze=je[0],Fe=je[1],Be=je[2];o.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Le.current)||void 0===e?void 0:e.focus,blur:null===(t=Le.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Ie.current)||void 0===t?void 0:t.scrollTo(e)}}}));var He=o.useMemo((function(){var e;if("combobox"!==_)return I;var t=null===(e=p[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[I,_,p]),Ue="combobox"===_&&"function"==typeof k&&k()||null,We="function"==typeof R&&R(),Ve=(0,B.x1)(Pe,null==We||null===(n=We.props)||void 0===n?void 0:n.ref),qe=o.useState(!1),Xe=(0,b.Z)(qe,2),Ge=Xe[0],Ye=Xe[1];(0,z.Z)((function(){Ye(!0)}),[]);var Ke=(0,y.Z)(!1,{defaultValue:N,value:$}),Qe=(0,b.Z)(Ke,2),Je=Qe[0],et=Qe[1],tt=!!Ge&&Je,nt=!C&&w;(O||nt&&tt&&"combobox"===_)&&(tt=!1);var rt=!nt&&tt,ot=o.useCallback((function(e){var t=void 0!==e?e:!tt;O||(et(t),tt!==t&&(null==A||A(t)))}),[O,tt,et,A]),it=o.useMemo((function(){return(G||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[G]),at=o.useContext(pe)||{},lt=at.maxCount,st=at.rawValues,ct=function(e,t,n){if(!((null==st?void 0:st.size)>=lt)){var r=!0,o=e;null==M||M(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=(0,ce.Z)(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce((function(t,n){return[].concat((0,Z.Z)(t),(0,Z.Z)(e(n,a)))}),[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,G,lt&<-st.size),a=n?null:i;return"combobox"!==_&&a&&(o="",null==X||X(a),ot(!1),r=!1),q&&He!==o&&q(o,{source:t?"typing":"effect"}),r}};o.useEffect((function(){tt||_e||"combobox"===_||ct("",!1,!1)}),[tt]),o.useEffect((function(){Je&&O&&et(!1),O&&!Ze.current&&Fe(!1)}),[O]);var ut=W(),dt=(0,b.Z)(ut,2),ft=dt[0],pt=dt[1],ht=o.useRef(!1),gt=[];o.useEffect((function(){return function(){gt.forEach((function(e){return clearTimeout(e)})),gt.splice(0,gt.length)}}),[]);var mt,vt=o.useState({}),bt=(0,b.Z)(vt,2)[1];We&&(mt=function(e){ot(e)}),function(e,t,n,r){var i=o.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect((function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),i.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[Ae.current,null===(e=Me.current)||void 0===e?void 0:e.getPopupElement()]}),rt,ot,!!We);var yt,St=o.useMemo((function(){return(0,v.Z)((0,v.Z)({},e),{},{notFoundContent:C,open:tt,triggerOpen:rt,id:a,showSearch:Oe,multiple:_e,toggleOpen:ot})}),[e,C,rt,tt,a,Oe,_e,ot]),wt=!!K||T;wt&&(yt=o.createElement(H,{className:g()("".concat(l,"-arrow"),(0,m.Z)({},"".concat(l,"-arrow-loading"),T)),customizeIcon:K,customizeIconProps:{loading:T,searchValue:He,open:tt,focused:ze,showSearch:Oe}}));var Et,Ct=function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=o.useMemo((function(){return"object"===(0,j.Z)(r)?r.clearIcon:i||void 0}),[r,i]);return{allowClear:o.useMemo((function(){return!(a||!r||!n.length&&!l||"combobox"===s&&""===l)}),[r,a,n.length,l,s]),clearIcon:o.createElement(H,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:c},"×")}}(l,(function(){var e;null==x||x(),null===(e=Le.current)||void 0===e||e.focus(),h([],{type:"clear",values:p}),ct("",!1,!1)}),p,Y,Q,O,He,_),xt=Ct.allowClear,_t=Ct.clearIcon,Ot=o.createElement(J,{ref:Ie}),Tt=g()(l,s,(i={},(0,m.Z)(i,"".concat(l,"-focused"),ze),(0,m.Z)(i,"".concat(l,"-multiple"),_e),(0,m.Z)(i,"".concat(l,"-single"),!_e),(0,m.Z)(i,"".concat(l,"-allow-clear"),Y),(0,m.Z)(i,"".concat(l,"-show-arrow"),wt),(0,m.Z)(i,"".concat(l,"-disabled"),O),(0,m.Z)(i,"".concat(l,"-loading"),T),(0,m.Z)(i,"".concat(l,"-open"),tt),(0,m.Z)(i,"".concat(l,"-customize-input"),Ue),(0,m.Z)(i,"".concat(l,"-show-search"),Oe),i)),kt=o.createElement(se,{ref:Me,disabled:O,prefixCls:l,visible:rt,popupElement:Ot,animation:ee,transitionName:te,dropdownStyle:ne,dropdownClassName:re,direction:d,dropdownMatchSelectWidth:ie,dropdownRender:ae,dropdownAlign:le,placement:ue,builtinPlacements:de,getPopupContainer:fe,empty:w,getTriggerDOMNode:function(){return Pe.current},onPopupVisibleChange:mt,onPopupMouseEnter:function(){bt({})}},We?o.cloneElement(We,{ref:Ve}):o.createElement(oe,(0,r.Z)({},e,{domRef:Pe,prefixCls:l,inputElement:Ue,ref:Le,id:a,showSearch:Oe,autoClearSearchValue:V,mode:_,activeDescendantId:L,tagRender:u,values:p,open:tt,onToggleOpen:ot,activeValue:P,searchValue:He,onSearch:ct,onSearchSubmit:function(e){e&&e.trim()&&q(e,{source:"submit"})},onRemove:function(e){var t=p.filter((function(t){return t!==e}));h(t,{type:"remove",values:[e]})},tokenWithEnter:it})));return Et=We?kt:o.createElement("div",(0,r.Z)({className:Tt},Te,{ref:Ae,onMouseDown:function(e){var t,n=e.target,r=null===(t=Me.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=gt.indexOf(o);-1!==t&>.splice(t,1),Be(),$e||r.contains(document.activeElement)||null===(e=Le.current)||void 0===e||e.focus()}));gt.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l=0;a-=1){var l=o[a];if(!l.disabled){o.splice(a,1),i=l;break}}i&&h(o,{type:"remove",values:[i]})}for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u1?t-1:0),r=1;r0,U=o.useMemo((function(){return 0===a||0===F?0:a/F*B}),[a,F,B]),W=o.useRef({top:U,dragging:E,pageY:O,startTop:$});W.current={top:U,dragging:E,pageY:O,startTop:$};var V=function(e){C(!0),T($e(e,d)),N(W.current.top),s(),e.stopPropagation(),e.preventDefault()};o.useEffect((function(){var e=function(e){e.preventDefault()},t=P.current,n=M.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",V),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",V)}}),[]);var q=o.useRef();q.current=F;var X=o.useRef();X.current=B,o.useEffect((function(){if(E){var e,t=function(t){var n=W.current,r=n.dragging,o=n.pageY,i=n.startTop;if(Re.Z.cancel(e),r){var a=$e(t,d)-o,l=i;!A&&d?l-=a:l+=a;var s=q.current,c=X.current,f=c?l/c:0,p=Math.ceil(f*s);p=Math.max(p,0),p=Math.min(p,s),e=(0,Re.Z)((function(){u(p,d)}))}},n=function(){C(!1),c()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Re.Z.cancel(e)}}}),[E]),o.useEffect((function(){z()}),[a]),o.useImperativeHandle(t,(function(){return{delayHidden:z}}));var G="".concat(r,"-scrollbar"),Y={position:"absolute",visibility:Z&&H?null:"hidden"},K={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return d?(Y.height=8,Y.left=0,Y.right=0,Y.bottom=0,K.height="100%",K.width=f,A?K.left=U:K.right=U):(Y.width=8,Y.top=0,Y.bottom=0,A?Y.right=0:Y.left=0,K.width="100%",K.height=f,K.top=U),o.createElement("div",{ref:P,className:g()(G,(n={},(0,m.Z)(n,"".concat(G,"-horizontal"),d),(0,m.Z)(n,"".concat(G,"-vertical"),!d),(0,m.Z)(n,"".concat(G,"-visible"),Z),n)),style:(0,v.Z)((0,v.Z)({},Y),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:z},o.createElement("div",{ref:M,className:g()("".concat(G,"-thumb"),(0,m.Z)({},"".concat(G,"-thumb-moving"),E)),style:(0,v.Z)((0,v.Z)({},K),y),onMouseDown:V}))}));const Ae=Ne;function Pe(e){var t=e.children,n=e.setRef,r=o.useCallback((function(e){n(e)}),[]);return o.cloneElement(t,{ref:r})}var Me=n(4203),Le=n(5671),Ie=n(3144);const Ze=function(){function e(){(0,Le.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Ie.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var De=n(6790),je=10;function ze(e,t,n){var r=o.useState(e),i=(0,b.Z)(r,2),a=i[0],l=i[1],s=o.useState(null),c=(0,b.Z)(s,2),u=c[0],d=c[1];return o.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i1&&void 0!==arguments[1]&&arguments[1],o=e<0&&i.current.top||e>0&&i.current.bottom;return t&&o?(clearTimeout(r.current),n.current=!1):o&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&o}};function He(e,t,n,r,i){var a=(0,o.useRef)(0),l=(0,o.useRef)(null),s=(0,o.useRef)(null),c=(0,o.useRef)(!1),u=Be(t,n);var d=(0,o.useRef)(null),f=(0,o.useRef)(null);return[function(t){if(e){Re.Z.cancel(f.current),f.current=(0,Re.Z)((function(){d.current=null}),2);var n=t.deltaX,o=t.deltaY,p=t.shiftKey,h=n,g=o;("sx"===d.current||!d.current&&p&&o&&!n)&&(h=o,g=0,d.current="sx");var m=Math.abs(h),v=Math.abs(g);null===d.current&&(d.current=r&&m>v?"x":"y"),"y"===d.current?function(e,t){Re.Z.cancel(l.current),a.current+=t,s.current=t,u(t)||(Fe||e.preventDefault(),l.current=(0,Re.Z)((function(){var e=c.current?10:1;i(a.current*e),a.current=0})))}(t,g):function(e,t){i(t,!0),Fe||e.preventDefault()}(t,h)}},function(t){e&&(c.current=t.detail===s.current)}]}var Ue=14/15;var We=20;function Ve(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*100;return isNaN(t)&&(t=0),t=Math.max(t,We),t=Math.min(t,e/2),Math.floor(t)}var qe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Xe=[],Ge={overflowY:"auto",overflowAnchor:"none"};function Ye(e,t){var n=e.prefixCls,i=void 0===n?"rc-virtual-list":n,a=e.className,l=e.height,s=e.itemHeight,c=e.fullHeight,u=void 0===c||c,d=e.style,f=e.data,p=e.children,h=e.itemKey,y=e.virtual,S=e.direction,w=e.scrollWidth,E=e.component,C=void 0===E?"div":E,x=e.onScroll,_=e.onVirtualScroll,O=e.onVisibleChange,T=e.innerProps,k=e.extraRender,R=e.styles,$=(0,D.Z)(e,qe),N=!(!1===y||!l||!s),A=N&&f&&(s*f.length>l||!!w),P="rtl"===S,M=g()(i,(0,m.Z)({},"".concat(i,"-rtl"),P),a),L=f||Xe,I=(0,o.useRef)(),Z=(0,o.useRef)(),F=(0,o.useState)(0),B=(0,b.Z)(F,2),H=B[0],U=B[1],W=(0,o.useState)(0),V=(0,b.Z)(W,2),q=V[0],X=V[1],G=(0,o.useState)(!1),Y=(0,b.Z)(G,2),K=Y[0],Q=Y[1],J=function(){Q(!0)},ee=function(){Q(!1)},te=o.useCallback((function(e){return"function"==typeof h?h(e):null==e?void 0:e[h]}),[h]),ne={getKey:te};function re(e){U((function(t){var n=function(e){var t=e;Number.isNaN(Le.current)||(t=Math.min(t,Le.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return I.current.scrollTop=n,n}))}var oe=(0,o.useRef)({start:0,end:L.length}),ie=(0,o.useRef)(),ae=ze(L,te),le=(0,b.Z)(ae,1)[0];ie.current=le;var se=function(e,t,n){var r=o.useState(0),i=(0,b.Z)(r,2),a=i[0],l=i[1],s=(0,o.useRef)(new Map),c=(0,o.useRef)(new Ze),u=(0,o.useRef)();function d(){Re.Z.cancel(u.current)}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){s.current.forEach((function(e,t){if(e&&e.offsetParent){var n=(0,Me.Z)(e),r=n.offsetHeight;c.current.get(t)!==r&&c.current.set(t,n.offsetHeight)}})),l((function(e){return e+1}))};e?t():u.current=(0,Re.Z)(t)}return(0,o.useEffect)((function(){return d}),[]),[function(r,o){var i=e(r),a=s.current.get(i);o?(s.current.set(i,o),f()):s.current.delete(i),!a!=!o&&(o?null==t||t(r):null==n||n(r))},f,c.current,a]}(te,null,null),ce=(0,b.Z)(se,4),ue=ce[0],de=ce[1],fe=ce[2],pe=ce[3],he=o.useMemo((function(){if(!N)return{scrollHeight:void 0,start:0,end:L.length-1,offset:void 0};var e;if(!A)return{scrollHeight:(null===(e=Z.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:L.length-1,offset:void 0};for(var t,n,r,o=0,i=L.length,a=0;a=H&&void 0===t&&(t=a,n=o),f>H+l&&void 0===r&&(r=a),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(l/s)),void 0===r&&(r=L.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,L.length-1),offset:n}}),[A,N,H,L,pe,l]),ge=he.scrollHeight,me=he.start,ve=he.end,be=he.offset;oe.current.start=me,oe.current.end=ve;var ye=o.useState({width:0,height:l}),Se=(0,b.Z)(ye,2),we=Se[0],Ee=Se[1],Ce=(0,o.useRef)(),xe=(0,o.useRef)(),Te=o.useMemo((function(){return Ve(we.width,w)}),[we.width,w]),$e=o.useMemo((function(){return Ve(we.height,ge)}),[we.height,ge]),Ne=ge-l,Le=(0,o.useRef)(Ne);Le.current=Ne;var Ie=H<=0,Fe=H>=Ne,We=Be(Ie,Fe),Ye=function(){return{x:P?-q:q,y:H}},Ke=(0,o.useRef)(Ye()),Qe=(0,De.zX)((function(){if(_){var e=Ye();Ke.current.x===e.x&&Ke.current.y===e.y||(_(e),Ke.current=e)}}));function Je(e,t){var n=e;t?((0,_e.flushSync)((function(){X(n)})),Qe()):re(n)}var et=function(e){var t=e,n=w-we.width;return t=Math.max(t,0),t=Math.min(t,n)},tt=(0,De.zX)((function(e,t){t?((0,_e.flushSync)((function(){X((function(t){return et(t+(P?-e:e))}))})),Qe()):re((function(t){return t+e}))})),nt=He(N,Ie,Fe,!!w,tt),rt=(0,b.Z)(nt,2),ot=rt[0],it=rt[1];!function(e,t,n){var r,i=(0,o.useRef)(!1),a=(0,o.useRef)(0),l=(0,o.useRef)(null),s=(0,o.useRef)(null),c=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),r=a.current-t;a.current=t,n(r)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=Ue,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},u=function(){i.current=!1,r()},d=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageY),l.current=e.target,l.current.addEventListener("touchmove",c),l.current.addEventListener("touchend",u))};r=function(){l.current&&(l.current.removeEventListener("touchmove",c),l.current.removeEventListener("touchend",u))},(0,z.Z)((function(){return e&&t.current.addEventListener("touchstart",d),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",d),r(),clearInterval(s.current)}}),[e])}(N,I,(function(e,t){return!We(e,t)&&(ot({preventDefault:function(){},deltaY:e}),!0)})),(0,z.Z)((function(){function e(e){N&&e.preventDefault()}var t=I.current;return t.addEventListener("wheel",ot),t.addEventListener("DOMMouseScroll",it),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",ot),t.removeEventListener("DOMMouseScroll",it),t.removeEventListener("MozMousePixelScroll",e)}}),[N]),(0,z.Z)((function(){w&&X((function(e){return et(e)}))}),[we.width,w]);var at=function(){var e,t;null===(e=Ce.current)||void 0===e||e.delayHidden(),null===(t=xe.current)||void 0===t||t.delayHidden()},lt=function(e,t,n,r,i,a,l,s){var c=o.useRef(),u=o.useState(null),d=(0,b.Z)(u,2),f=d[0],p=d[1];return(0,z.Z)((function(){if(f&&f.times=0;T-=1){var k=i(t[T]),R=n.get(k);if(void 0===R){h=!0;break}if((O-=R)<=0)break}switch(b){case"top":m=S-u;break;case"bottom":m=w-d+u;break;default:var $=e.current.scrollTop;S<$?g="top":w>$+d&&(g="bottom")}null!==m&&l(m),m!==f.lastTop&&(h=!0)}h&&p((0,v.Z)((0,v.Z)({},f),{},{times:f.times+1,targetAlign:g,lastTop:m}))}}),[f,e.current]),function(e){if(null!=e){if(Re.Z.cancel(c.current),"number"==typeof e)l(e);else if(e&&"object"===(0,j.Z)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return i(t)===e.key}));var o=e.offset;p({times:0,index:n,offset:void 0===o?0:o,originAlign:r})}}else s()}}(I,L,fe,s,te,(function(){return de(!0)}),re,at);o.useImperativeHandle(t,(function(){return{getScrollInfo:Ye,scrollTo:function(e){var t;(t=e)&&"object"===(0,j.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&X(et(e.left)),lt(e.top)):lt(e)}}})),(0,z.Z)((function(){if(O){var e=L.slice(me,ve+1);O(e,L)}}),[me,ve,L]);var st=function(e,t,n,r){var i=o.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),a=(0,b.Z)(i,2),l=a[0],s=a[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,a=l.get(o),c=l.get(i);if(void 0===a||void 0===c)for(var u=e.length,d=s.length;dl&&o.createElement(Ae,{ref:Ce,prefixCls:i,scrollOffset:H,scrollRange:ge,rtl:P,onScroll:Je,onStartMove:J,onStopMove:ee,spinSize:$e,containerSize:we.height,style:null==R?void 0:R.verticalScrollBar,thumbStyle:null==R?void 0:R.verticalScrollBarThumb}),A&&w&&o.createElement(Ae,{ref:xe,prefixCls:i,scrollOffset:q,scrollRange:w,rtl:P,onScroll:Je,onStartMove:J,onStopMove:ee,spinSize:Te,containerSize:we.width,horizontal:!0,style:null==R?void 0:R.horizontalScrollBar,thumbStyle:null==R?void 0:R.horizontalScrollBarThumb}))}var Ke=o.forwardRef(Ye);Ke.displayName="List";const Qe=Ke;var Je=["disabled","title","children","style","className"];function et(e){return"string"==typeof e||"number"==typeof e}var tt=function(e,t){var n=o.useContext(U),i=n.prefixCls,a=n.id,l=n.open,s=n.multiple,c=n.mode,u=n.searchValue,d=n.toggleOpen,f=n.notFoundContent,p=n.onPopupScroll,h=o.useContext(pe),v=h.maxCount,y=h.flattenOptions,E=h.onActiveValue,C=h.defaultActiveFirstOption,x=h.onSelect,_=h.menuItemSelectedIcon,O=h.rawValues,T=h.fieldNames,k=h.virtual,R=h.direction,$=h.listHeight,N=h.listItemHeight,A=h.optionRender,P="".concat(i,"-item"),M=(0,Ce.Z)((function(){return y}),[l,y],(function(e,t){return t[0]&&e[1]!==t[1]})),L=o.useRef(null),I=o.useMemo((function(){return s&&void 0!==v&&(null==O?void 0:O.size)>=v}),[s,v,null==O?void 0:O.size]),j=function(e){e.preventDefault()},z=function(e){var t;null===(t=L.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},F=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=M.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];q(e);var n={source:t?"keyboard":"mouse"},r=M[e];r?E(r.value,e,n):E(null,-1,n)};(0,o.useEffect)((function(){X(!1!==C?F(0):-1)}),[M.length,u]);var G=o.useCallback((function(e){return O.has(e)&&"combobox"!==c}),[c,(0,Z.Z)(O).toString(),O.size]);(0,o.useEffect)((function(){var e,t=setTimeout((function(){if(!s&&l&&1===O.size){var e=Array.from(O)[0],t=M.findIndex((function(t){return t.data.value===e}));-1!==t&&(X(t),z(t))}}));l&&(null===(e=L.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[l,u]);var Y=function(e){void 0!==e&&x(e,{selected:!O.has(e)}),s||d(!1)};if(o.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case S.Z.N:case S.Z.P:case S.Z.UP:case S.Z.DOWN:var r=0;if(t===S.Z.UP?r=-1:t===S.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===S.Z.N?r=1:t===S.Z.P&&(r=-1)),0!==r){var o=F(V+r,r);z(o),X(o,!0)}break;case S.Z.ENTER:var i,a=M[V];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||I?Y(void 0):Y(a.value),l&&e.preventDefault();break;case S.Z.ESC:d(!1),l&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){z(e)}}})),0===M.length)return o.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:j},f);var K=Object.keys(T).map((function(e){return T[e]})),Q=function(e){return e.label};function J(e,t){return{role:e.group?"presentation":"option",id:"".concat(a,"_list_").concat(t)}}var ee=function(e){var t=M[e];if(!t)return null;var n=t.data||{},i=n.value,a=t.group,l=(0,w.Z)(n,!0),s=Q(t);return t?o.createElement("div",(0,r.Z)({"aria-label":"string"!=typeof s||a?null:s},l,{key:e},J(t,e),{"aria-selected":G(i)}),i):null},te={role:"listbox",id:"".concat(a,"_list")};return o.createElement(o.Fragment,null,k&&o.createElement("div",(0,r.Z)({},te,{style:{height:0,width:0,overflow:"hidden"}}),ee(V-1),ee(V),ee(V+1)),o.createElement(Qe,{itemKey:"key",ref:L,data:M,height:$,itemHeight:N,fullHeight:!1,onMouseDown:j,onScroll:p,virtual:k,direction:R,innerProps:k?null:te},(function(e,t){var n,i=e.group,a=e.groupOption,l=e.data,s=e.label,c=e.value,u=l.key;if(i){var d,f=null!==(d=l.title)&&void 0!==d?d:et(s)?s.toString():void 0;return o.createElement("div",{className:g()(P,"".concat(P,"-group")),title:f},void 0!==s?s:u)}var p=l.disabled,h=l.title,v=(l.children,l.style),b=l.className,y=(0,D.Z)(l,Je),S=(0,xe.Z)(y,K),E=G(c),C=p||!E&&I,x="".concat(P,"-option"),O=g()(P,x,b,(n={},(0,m.Z)(n,"".concat(x,"-grouped"),a),(0,m.Z)(n,"".concat(x,"-active"),V===t&&!C),(0,m.Z)(n,"".concat(x,"-disabled"),C),(0,m.Z)(n,"".concat(x,"-selected"),E),n)),T=Q(e),R=!_||"function"==typeof _||E,$="number"==typeof T?T:T||c,N=et($)?$.toString():void 0;return void 0!==h&&(N=h),o.createElement("div",(0,r.Z)({},(0,w.Z)(S),k?{}:J(e,t),{"aria-selected":E,className:O,title:N,onMouseMove:function(){V===t||C||X(t)},onClick:function(){C||Y(c)},style:v}),o.createElement("div",{className:"".concat(x,"-content")},"function"==typeof A?A(e,{index:t}):$),o.isValidElement(_)||E,R&&o.createElement(H,{className:"".concat(P,"-option-state"),customizeIcon:_,customizeIconProps:{value:c,disabled:C,isSelected:E}},E?"✓":null))})))};const nt=o.forwardRef(tt);function rt(e,t){return G(e).join("").toUpperCase().includes(t)}var ot=n(8924),it=0,at=(0,ot.Z)();function lt(e){var t=o.useState(),n=(0,b.Z)(t,2),r=n[0],i=n[1];return o.useEffect((function(){var e;i("rc_select_".concat((at?(e=it,it+=1):e="TEST_OR_SSR",e)))}),[]),e||r}var st=n(344),ct=["children","value"],ut=["children"];function dt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,st.Z)(e).map((function(e,n){if(!o.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,l=r.props,s=l.children,c=(0,D.Z)(l,ut);return t||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=(0,D.Z)(r,ct);return(0,v.Z)({key:n,value:void 0!==i?i:n,children:o},a)}(e):(0,v.Z)((0,v.Z)({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},c),{},{options:dt(s)})})).filter((function(e){return e}))}const ft=function(e,t,n,r,i){return o.useMemo((function(){var o=e;!e&&(o=dt(t));var a=new Map,l=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=de(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach((function(t){if(n||!(s in t)){var i=t[l];o.push({key:ue(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:ue(t,o.length),group:!0,data:t,label:u}),e(t[s],!0)}}))}(e,!1),o}(ke,{fieldNames:Q,childrenAsData:Y})}),[ke,Q,Y]),$e=function(e){var t=le(e);if(ge(t),U&&(t.length!==we.length||t.some((function(e,t){var n;return(null===(n=we[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=H?t:t.map((function(e){return e.value})),r=t.map((function(e){return fe(Ee(e.value))}));U(X?n:n[0],X?r:r[0])}},Ne=o.useState(null),Ae=(0,b.Z)(Ne,2),Pe=Ae[0],Me=Ae[1],Le=o.useState(0),Ie=(0,b.Z)(Le,2),Ze=Ie[0],De=Ie[1],je=void 0!==$?$:"combobox"!==i,ze=o.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;De(t),s&&"combobox"===i&&null!==e&&"keyboard"===r&&Me(String(e))}),[s,i]),Fe=function(e,t,n){var r=function(){var t,n=Ee(e);return[H?{label:null==n?void 0:n[Q.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,fe(n)]};if(t&&g){var o=r(),i=(0,b.Z)(o,2),a=i[0],l=i[1];g(a,l)}else if(!t&&S&&"clear"!==n){var s=r(),c=(0,b.Z)(s,2),u=c[0],d=c[1];S(u,d)}},Be=pt((function(e,t){var n,r=!X||t.selected;n=r?X?[].concat((0,Z.Z)(we),[e]):[e]:we.filter((function(t){return t.value!==e})),$e(n),Fe(e,r),"combobox"===i?Me(""):me&&!h||(ne(""),Me(""))})),He=o.useMemo((function(){var e=!1!==A&&!1!==E;return(0,v.Z)((0,v.Z)({},re),{},{flattenOptions:Re,onActiveValue:ze,defaultActiveFirstOption:je,onSelect:Be,menuItemSelectedIcon:N,rawValues:xe,fieldNames:Q,virtual:e,direction:P,listHeight:L,listItemHeight:z,childrenAsData:Y,maxCount:W,optionRender:k})}),[W,re,Re,ze,je,Be,N,xe,Q,A,E,P,L,z,Y,k]);return o.createElement(pe.Provider,{value:He},o.createElement(be,(0,r.Z)({},V,{id:q,prefixCls:l,ref:t,omitDomProps:gt,mode:i,displayValues:Ce,onDisplayValuesChange:function(e,t){$e(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Fe(e.value,!1,n)}))},direction:P,searchValue:te,onSearch:function(e,t){if(ne(e),Me(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===i&&$e(e),null==f||f(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,Z.Z)(xe),[n])));$e(r),Fe(n,!0),ne("")}}},autoClearSearchValue:h,onSearchSplit:function(e){var t=e;"tags"!==i&&(t=e.map((function(e){var t=ie.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,Z.Z)(xe),(0,Z.Z)(t))));$e(n),n.forEach((function(e){Fe(e,!0)}))},dropdownMatchSelectWidth:E,OptionList:nt,emptyOptions:!Re.length,activeValue:Pe,activeDescendantId:"".concat(q,"_list_").concat(Ze)})))}));var vt=mt;vt.Option=Ee,vt.OptGroup=Se;const bt=vt;var yt=n(7263),St=n(3603),wt=n(8745);var Et=n(274),Ct=n(7606);const xt=()=>{const[,e]=(0,Ct.ZP)(),t=new Et.C(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.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"}),o.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)"}),o.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"}),o.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"})),o.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"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const _t=()=>{const[,e]=(0,Ct.ZP)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:s}=(0,o.useMemo)((()=>({borderColor:new Et.C(t).onBackground(i).toHexShortString(),shadowColor:new Et.C(n).onBackground(i).toHexShortString(),contentColor:new Et.C(r).onBackground(i).toHexShortString()})),[t,n,r,i]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:a},o.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"}),o.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}))))};var Ot=n(1939),Tt=n(5503);const kt=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,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.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Rt=(0,Ot.I$)("Empty",(e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=(0,Tt.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[kt(o)]}));var $t=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{className:t,rootClassName:n,prefixCls:r,image:i=Nt,description:a,children:l,imageStyle:s,style:c}=e,u=$t(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:p}=o.useContext(P.E_),h=d("empty",r),[m,v,b]=Rt(h),[y]=(0,I.Z)("Empty"),S=void 0!==a?a:null==y?void 0:y.description,w="string"==typeof S?S:"empty";let E=null;return E="string"==typeof i?o.createElement("img",{alt:w,src:i}):i,m(o.createElement("div",Object.assign({className:g()(v,b,h,null==p?void 0:p.className,{[`${h}-normal`]:i===At,[`${h}-rtl`]:"rtl"===f},t,n),style:Object.assign(Object.assign({},null==p?void 0:p.style),c)},u),o.createElement("div",{className:`${h}-image`,style:s},E),S&&o.createElement("div",{className:`${h}-description`},S),l&&o.createElement("div",{className:`${h}-footer`},l)))};Pt.PRESENTED_IMAGE_DEFAULT=Nt,Pt.PRESENTED_IMAGE_SIMPLE=At;const Mt=Pt,Lt=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(P.E_),r=n("empty");switch(t){case"Table":case"List":return o.createElement(Mt,{image:Mt.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(Mt,{image:Mt.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return o.createElement(Mt,null)}};var It=n(8866),Zt=n(5792),Dt=n(5702);const jt=["outlined","borderless","filled"],zt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=(0,o.useContext)(Dt.pg);let r;r=void 0!==e?e:!1===t?"borderless":null!=n?n:"outlined";return[r,jt.includes(r)]};var Ft=n(4173);const Bt=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)};var Ht=n(4747),Ut=n(4184),Wt=n(7771),Vt=n(7395),qt=n(3590);const Xt=new Vt.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Gt=new Vt.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Yt=new Vt.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Kt=new Vt.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Qt=new Vt.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Jt=new Vt.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),en={"move-up":{inKeyframes:new Vt.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new Vt.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Xt,outKeyframes:Gt},"move-left":{inKeyframes:Yt,outKeyframes:Kt},"move-right":{inKeyframes:Qt,outKeyframes:Jt}},tn=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=en[t];return[(0,qt.R)(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},nn=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},rn=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${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=`${n}-dropdown-placement-`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,Ht.Wf)(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,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:Wt.fJ},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:Wt.Qt},[`${a}${l}bottomLeft`]:{animationName:Wt.Uw},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:Wt.ly},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},nn(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Ht.vS),"&-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":Object.assign(Object.assign({},nn(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,Wt.oN)(e,"slide-up"),(0,Wt.oN)(e,"slide-down"),tn(e,"move-up"),tn(e,"move-down")]};function on(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e);return{[`${n}-multiple${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:e.calc(2).mul(2).equal(),paddingBlock:e.calc(a).sub(2).equal(),borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,Vt.bf)(2)} 0`,lineHeight:(0,Vt.bf)(i),visibility:"hidden",content:'"\\a0"'}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:(0,Vt.bf)(e.calc(i).sub(e.calc(e.lineWidth).mul(2)).equal()),borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,marginInlineEnd:e.calc(2).mul(2).equal(),paddingInlineStart:e.paddingXS,paddingInlineEnd:e.calc(e.paddingXS).div(2).equal(),[`${n}-disabled&`]:{color:e.multipleItemColorDisabled,borderColor:e.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(e.paddingXS).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ht.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${n}-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:(0,Vt.bf)(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"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const an=e=>{const{componentCls:t}=e,n=(0,Tt.TS)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,Tt.TS)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[on(e),on(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},on(r,"lg")]};function ln(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${n}-single${t?`${n}-${t}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},(0,Ht.Wf)(e,!0)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{padding:0,lineHeight:(0,Vt.bf)(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",padding:`0 ${(0,Vt.bf)(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:(0,Vt.bf)(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Vt.bf)(r)}`,"&:after":{display:"none"}}}}}}}function sn(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[ln(e),ln((0,Tt.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${(0,Vt.bf)(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},ln((0,Tt.TS)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const cn=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${(0,Vt.bf)(o)} ${t.activeShadowColor}`,outline:0}}}},un=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},cn(e,t))}),dn=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},cn(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),un(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),un(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${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:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),fn=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},pn=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},fn(e,t))}),hn=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},fn(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),pn(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),pn(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:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),gn=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"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:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}),mn=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},dn(e)),hn(e)),gn(e))}),vn=e=>{const{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"}}}},bn=e=>{const{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"}}}},yn=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},(0,Ht.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},vn(e)),bn(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Ht.vS),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Ht.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},(0,Ht.Ro)()),{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`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-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":{[`${n}-clear`]:{opacity:1},[`${n}-arrow:not(:last-child)`]:{opacity:0}}}),[`${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},Sn=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},yn(e),sn(e),an(e),rn(e),{[`${t}-rtl`]:{direction:"rtl"}},(0,Ut.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},wn=(0,Ot.I$)("Select",((e,t)=>{let{rootPrefixCls:n}=t;const r=(0,Tt.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Sn(r),mn(r)]}),(e=>{const{fontSize:t,lineHeight:n,controlHeight:r,controlPaddingHorizontal:o,zIndexPopupBase:i,colorText:a,fontWeightStrong:l,controlItemBgActive:s,controlItemBgHover:c,colorBgContainer:u,colorFillSecondary:d,controlHeightLG:f,controlHeightSM:p,colorBgContainerDisabled:h,colorTextDisabled:g}=e;return{zIndexPopup:i+50,optionSelectedColor:a,optionSelectedFontWeight:l,optionSelectedBg:s,optionActiveBg:c,optionPadding:`${(r-t*n)/2}px ${o}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:u,clearBg:u,singleItemHeightLG:f,multipleItemBg:d,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightLG:r,multipleSelectorBgDisabled:h,multipleItemColorDisabled:g,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});const En={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var Cn=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:En}))};const xn=o.forwardRef(Cn);var _n=n(3061),On=n(4549);const Tn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};var kn=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:Tn}))};const Rn=o.forwardRef(kn);var $n=n(7085);const Nn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var An=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:Nn}))};const Pn=o.forwardRef(An);var Mn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:i,className:a,rootClassName:l,getPopupContainer:s,popupClassName:c,dropdownClassName:u,listHeight:d=256,placement:f,listItemHeight:p,size:h,disabled:m,notFoundContent:v,status:b,builtinPlacements:y,dropdownMatchSelectWidth:S,popupMatchSelectWidth:w,direction:E,style:C,allowClear:x,variant:_,dropdownStyle:O,transitionName:T,tagRender:k,maxCount:R}=e,$=Mn(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount"]),{getPopupContainer:N,getPrefixCls:A,renderEmpty:L,direction:I,virtual:Z,popupMatchSelectWidth:D,popupOverflow:j,select:z}=o.useContext(P.E_),[,F]=(0,Ct.ZP)(),B=null!=p?p:null==F?void 0:F.controlHeight,H=A("select",r),U=A(),W=null!=E?E:I,{compactSize:V,compactItemClassnames:q}=(0,Ft.ri)(H,W),[X,G]=zt(_,i),Y=(0,Zt.Z)(H),[K,Q,J]=wn(H,Y),ee=o.useMemo((()=>{const{mode:t}=e;if("combobox"!==t)return t===Ln?"combobox":t}),[e.mode]),te="multiple"===ee||"tags"===ee,ne=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),re=null!==(n=null!=w?w:S)&&void 0!==n?n:D,{status:oe,hasFeedback:ie,isFormItemInput:ae,feedbackIcon:le}=o.useContext(Dt.aM),se=((e,t)=>t||e)(oe,b);let ce;ce=void 0!==v?v:"combobox"===ee?null:(null==L?void 0:L("Select"))||o.createElement(Lt,{componentName:"Select"});const{suffixIcon:ue,itemIcon:de,removeIcon:fe,clearIcon:pe}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:l,hasFeedback:s,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:p}=e;const h=null!=n?n:o.createElement(_n.Z,null),g=e=>null!==t||s||f?o.createElement(o.Fragment,null,!1!==u&&e,s&&d):null;let m=null;if(void 0!==t)m=g(t);else if(a)m=g(o.createElement($n.Z,{spin:!0}));else{const e=`${c}-suffix`;m=t=>{let{open:n,showSearch:r}=t;return g(n&&r?o.createElement(Pn,{className:e}):o.createElement(Rn,{className:e}))}}let v=null;v=void 0!==r?r:l?o.createElement(xn,null):null;let b=null;return b=void 0!==i?i:o.createElement(On.Z,null),{clearIcon:h,suffixIcon:m,itemIcon:v,removeIcon:b}}(Object.assign(Object.assign({},$),{multiple:te,hasFeedback:ie,feedbackIcon:le,showSuffixIcon:ne,prefixCls:H,componentName:"Select"})),he=!0===x?{clearIcon:pe}:x,ge=(0,xe.Z)($,["suffixIcon","itemIcon"]),me=g()(c||u,{[`${H}-dropdown-${W}`]:"rtl"===W},l,J,Y,Q),ve=(0,M.Z)((e=>{var t;return null!==(t=null!=h?h:V)&&void 0!==t?t:e})),be=o.useContext(It.Z),ye=null!=m?m:be,Se=g()({[`${H}-lg`]:"large"===ve,[`${H}-sm`]:"small"===ve,[`${H}-rtl`]:"rtl"===W,[`${H}-${X}`]:G,[`${H}-in-form-item`]:ae},function(e,t,n){return g()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}(H,se,ie),q,null==z?void 0:z.className,a,l,J,Y,Q),we=o.useMemo((()=>void 0!==f?f:"rtl"===W?"bottomRight":"bottomLeft"),[f,W]);const[Ee]=(0,yt.Cn)("SelectLike",null==O?void 0:O.zIndex);return K(o.createElement(bt,Object.assign({ref:t,virtual:Z,showSearch:null==z?void 0:z.showSearch},ge,{style:Object.assign(Object.assign({},null==z?void 0:z.style),C),dropdownMatchSelectWidth:re,transitionName:(0,St.m)(U,"slide-up",T),builtinPlacements:Bt(y,j),listHeight:d,listItemHeight:B,mode:ee,prefixCls:H,placement:we,direction:W,suffixIcon:ue,menuItemSelectedIcon:de,removeIcon:fe,allowClear:he,notFoundContent:ce,className:Se,getPopupContainer:s||N,dropdownClassName:me,disabled:ye,dropdownStyle:Object.assign(Object.assign({},O),{zIndex:Ee}),maxCount:te?R:void 0,tagRender:te?k:void 0})))};const Zn=o.forwardRef(In),Dn=(0,wt.Z)(Zn);Zn.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ln,Zn.Option=Ee,Zn.OptGroup=Se,Zn._InternalPanelDoNotUseOrYouWillBeFired=Dn;const jn=Zn,zn=e=>o.createElement(jn,Object.assign({},e,{showSearch:!0,size:"small"})),Fn=e=>o.createElement(jn,Object.assign({},e,{showSearch:!0,size:"middle"}));function Bn(e){return(0,Tt.TS)(e,{inputAffixPadding:e.paddingXXS})}zn.Option=jn.Option,Fn.Option=jn.Option;const Hn=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:g,controlOutline:m,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${m}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},Un=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Wn=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover:not([disabled])":Object.assign({},Un((0,Tt.TS)(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Vn=(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}}),qn=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Vn(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Xn=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vn(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Wn(e))}),qn(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),qn(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Gn=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Yn=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Gn(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Gn(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Wn(e))}})}),Kn=(e,t)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled}},t)}),Qn=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==t?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),Jn=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Qn(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),er=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Wn(e))}),Jn(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Jn(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),tr=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),nr=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},tr(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),tr(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:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),rr=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${(0,Vt.bf)(t)} ${(0,Vt.bf)(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},or=e=>({padding:`${(0,Vt.bf)(e.paddingBlockSM)} ${(0,Vt.bf)(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),ir=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${(0,Vt.bf)(e.paddingBlock)} ${(0,Vt.bf)(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},rr(e)),"&-sm":Object.assign({},or(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),ar=e=>{const{componentCls:t,antCls:n}=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`]:Object.assign({},rr(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},or(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-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 ${(0,Vt.bf)(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${(0,Vt.bf)(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${(0,Vt.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${(0,Vt.bf)(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-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,[`${n}-select ${n}-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,[`${n}-select ${n}-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`]:Object.assign(Object.assign({display:"block"},(0,Ht.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-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}}}})}},lr=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ht.Wf)(e)),ir(e)),Xn(e)),er(e)),Kn(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},sr=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin: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 ${(0,Vt.bf)(e.inputAffixPadding)}`}}}},cr=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign({},ir(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0,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:n},"&-suffix":{marginInlineStart:n}}}),sr(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}})}},ur=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,Ht.Wf)(e)),ar(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},Yn(e)),nr(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}}})})}},dr=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${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,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},fr=e=>{const{componentCls:t,paddingLG:n}=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"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-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.paddingXS,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"}}}}}},pr=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},hr=((0,Ot.I$)("Input",(e=>{const t=(0,Tt.TS)(e,Bn(e));return[lr(t),fr(t),cr(t),ur(t),dr(t),pr(t),(0,Ut.c)(t)]}),Hn),e=>{const{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"}}}}}}),gr=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:(0,Vt.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,Vt.bf)(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:(0,Vt.bf)(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"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,Vt.bf)(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Vt.bf)(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,Vt.bf)(e.itemSizeSM),input:Object.assign(Object.assign({},or(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},mr=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:(0,Vt.bf)(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:(0,Vt.bf)(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${(0,Vt.bf)(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${(0,Vt.bf)(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:`${(0,Vt.bf)(e.inputOutlineOffset)} 0 ${(0,Vt.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},vr=e=>{const{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,fontFamily:"Arial, Helvetica, sans-serif",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}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${(0,Vt.bf)(e.itemSize)}`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",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:`${(0,Vt.bf)(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.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,Vt.bf)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},ir(e)),Vn(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Wn(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},br=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,Vt.bf)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${(0,Vt.bf)(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Vt.bf)(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}}}}},yr=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ht.Wf)(e)),{"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:(0,Vt.bf)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),br(e)),vr(e)),mr(e)),gr(e)),hr(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"}}},Sr=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},(0,Ht.Qy)(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,Ht.oN)(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,Ht.oN)(e))}}}},wr=e=>Object.assign({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},Hn(e)),Er=e=>(0,Tt.TS)(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.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Bn(e)),Cr=(0,Ot.I$)("Pagination",(e=>{const t=Er(e);return[yr(t),Sr(t)]}),wr),xr=e=>{const{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:`${(0,Vt.bf)(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}}}}},_r=(0,Ot.bk)(["Pagination","bordered"],(e=>{const t=Er(e);return[xr(t)]}),wr);var Or=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:i,style:a,size:l,locale:c,selectComponentClass:u,responsive:h,showSizeChanger:m}=e,v=Or(e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:b}=(0,L.Z)(h),[,y]=(0,Ct.ZP)(),{getPrefixCls:S,direction:w,pagination:E={}}=o.useContext(P.E_),C=S("pagination",t),[x,_,O]=Cr(C),T=null!=m?m:E.showSizeChanger,k=o.useMemo((()=>{const e=o.createElement("span",{className:`${C}-item-ellipsis`},"•••");return{prevIcon:o.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===w?o.createElement(p.Z,null):o.createElement(f.Z,null)),nextIcon:o.createElement("button",{className:`${C}-item-link`,type:"button",tabIndex:-1},"rtl"===w?o.createElement(f.Z,null):o.createElement(p.Z,null)),jumpPrevIcon:o.createElement("a",{className:`${C}-item-link`},o.createElement("div",{className:`${C}-item-container`},"rtl"===w?o.createElement(d,{className:`${C}-item-link-icon`}):o.createElement(s,{className:`${C}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${C}-item-link`},o.createElement("div",{className:`${C}-item-container`},"rtl"===w?o.createElement(s,{className:`${C}-item-link-icon`}):o.createElement(d,{className:`${C}-item-link-icon`}),e))}}),[w,C]),[R]=(0,I.Z)("Pagination",A.Z),$=Object.assign(Object.assign({},R),c),Z=(0,M.Z)(l),D="small"===Z||!(!b||Z||!h),j=S("select",n),z=g()({[`${C}-mini`]:D,[`${C}-rtl`]:"rtl"===w,[`${C}-bordered`]:y.wireframe},null==E?void 0:E.className,r,i,_,O),F=Object.assign(Object.assign({},null==E?void 0:E.style),a);return x(o.createElement(o.Fragment,null,y.wireframe&&o.createElement(_r,{prefixCls:C}),o.createElement(N,Object.assign({},k,v,{style:F,prefixCls:C,selectPrefixCls:j,className:z,selectComponentClass:u||(D?zn:Fn),locale:$,showSizeChanger:T}))))},kr=Tr},4173:(e,t,n)=>{"use strict";n.d(t,{BR:()=>p,ZP:()=>g,ri:()=>f});var r=n(3967),o=n.n(r),i=n(344),a=n(7294),l=n(3124),s=n(8675),c=n(1418),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const n=a.useContext(d),r=a.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:i,isLastItem:a}=n,l="vertical"===r?"-vertical-":"-";return o()(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:"rtl"===t})}),[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:r}},p=e=>{let{children:t}=e;return a.createElement(d.Provider,{value:null},t)},h=e=>{var{children:t}=e,n=u(e,["children"]);return a.createElement(d.Provider,{value:n},t)},g=e=>{const{getPrefixCls:t,direction:n}=a.useContext(l.E_),{size:r,direction:f,block:p,prefixCls:g,className:m,rootClassName:v,children:b}=e,y=u(e,["size","direction","block","prefixCls","className","rootClassName","children"]),S=(0,s.Z)((e=>null!=r?r:e)),w=t("space-compact",g),[E,C]=(0,c.Z)(w),x=o()(w,C,{[`${w}-rtl`]:"rtl"===n,[`${w}-block`]:p,[`${w}-vertical`]:"vertical"===f},m,v),_=a.useContext(d),O=(0,i.Z)(b),T=a.useMemo((()=>O.map(((e,t)=>{const n=e&&e.key||`${w}-item-${t}`;return a.createElement(h,{key:n,compactSize:S,compactDirection:f,isFirstItem:0===t&&(!_||(null==_?void 0:_.isFirstItem)),isLastItem:t===O.length-1&&(!_||(null==_?void 0:_.isLastItem))},e)}))),[r,O,_]);return 0===O.length?null:E(a.createElement("div",Object.assign({className:x},y),T))}},8230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(7294),o=n(3967),i=n.n(o),a=n(344),l=n(8065),s=n(3124),c=n(4173);const u=r.createContext({latestIndex:0}),d=u.Provider,f=e=>{let{className:t,index:n,children:o,split:i,style:a}=e;const{latestIndex:l}=r.useContext(u);return null==o?null:r.createElement(r.Fragment,null,r.createElement("div",{className:t,style:a},o),n{var n,o;const{getPrefixCls:c,space:u,direction:g}=r.useContext(s.E_),{size:m=(null==u?void 0:u.size)||"small",align:v,className:b,rootClassName:y,children:S,direction:w="horizontal",prefixCls:E,split:C,style:x,wrap:_=!1,classNames:O,styles:T}=e,k=h(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[R,$]=Array.isArray(m)?m:[m,m],N=(0,l.n)($),A=(0,l.n)(R),P=(0,l.T)($),M=(0,l.T)(R),L=(0,a.Z)(S,{keepEmpty:!0}),I=void 0===v&&"horizontal"===w?"center":v,Z=c("space",E),[D,j,z]=(0,p.Z)(Z),F=i()(Z,null==u?void 0:u.className,j,`${Z}-${w}`,{[`${Z}-rtl`]:"rtl"===g,[`${Z}-align-${I}`]:I,[`${Z}-gap-row-${$}`]:N,[`${Z}-gap-col-${R}`]:A},b,y,z),B=i()(`${Z}-item`,null!==(n=null==O?void 0:O.item)&&void 0!==n?n:null===(o=null==u?void 0:u.classNames)||void 0===o?void 0:o.item);let H=0;const U=L.map(((e,t)=>{var n,o;null!=e&&(H=t);const i=e&&e.key||`${B}-${t}`;return r.createElement(f,{className:B,key:i,index:t,split:C,style:null!==(n=null==T?void 0:T.item)&&void 0!==n?n:null===(o=null==u?void 0:u.styles)||void 0===o?void 0:o.item},e)})),W=r.useMemo((()=>({latestIndex:H})),[H]);if(0===L.length)return null;const V={};return _&&(V.flexWrap="wrap"),!A&&M&&(V.columnGap=R),!N&&P&&(V.rowGap=$),D(r.createElement("div",Object.assign({ref:t,className:F,style:Object.assign(Object.assign(Object.assign({},V),null==u?void 0:u.style),x)},k),r.createElement(d,{value:W},U)))}));const m=g;m.Compact=c.ZP;const v=m},1418:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(1939),o=n(5503);const i=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},a=e=>{const{componentCls:t}=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"}}}},l=e=>{const{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}}}},s=(0,r.I$)("Space",(e=>{const t=(0,o.TS)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[a(t),l(t),i(t)]}),(()=>({})),{resetStyle:!1})},4184:(e,t,n)=>{"use strict";function r(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function o(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,i=`${n}-compact`;return{[i]:Object.assign(Object.assign({},r(e,i,t)),o(n,i,t))}}n.d(t,{c:()=>i})},4747:(e,t,n)=>{"use strict";n.d(t,{Lx:()=>s,Qy:()=>d,Ro:()=>a,Wf:()=>i,dF:()=>l,du:()=>c,oN:()=>u,vS:()=>o});var r=n(7395);const o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},a=()=>({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"}}),l=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),s=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},u=e=>({outline:`${(0,r.bf)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=e=>({"&:focus-visible":Object.assign({},u(e))})},6932:(e,t,n)=>{"use strict";n.d(t,{J$:()=>l});var r=n(7395),o=n(3590);const i=new r.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a=new r.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,l=t?"&":"";return[(0,o.R)(r,i,a,e.motionDurationMid,t),{[`\n ${l}${r}-enter,\n ${l}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${l}${r}-leave`]:{animationTimingFunction:"linear"}}]}},3590:(e,t,n)=>{"use strict";n.d(t,{R:()=>i});const r=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),i=function(e,t,n,i){const a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:Object.assign(Object.assign({},r(i)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},o(i)),{animationPlayState:"paused"}),[`\n ${a}${e}-enter${e}-enter-active,\n ${a}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},7771:(e,t,n)=>{"use strict";n.d(t,{Qt:()=>l,Uw:()=>a,fJ:()=>i,ly:()=>s,oN:()=>h});var r=n(7395),o=n(3590);const i=new r.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new r.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new r.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),s=new r.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new r.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new r.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new r.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),f=new r.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),p={"slide-up":{inKeyframes:i,outKeyframes:a},"slide-down":{inKeyframes:l,outKeyframes:s},"slide-left":{inKeyframes:c,outKeyframes:u},"slide-right":{inKeyframes:d,outKeyframes:f}},h=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=p[t];return[(0,o.R)(r,i,a,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},438:(e,t,n)=>{"use strict";n.d(t,{_y:()=>f});var r=n(7395),o=n(3590);const i=new r.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a=new r.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),l=new r.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new r.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new r.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new r.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d={zoom:{inKeyframes:i,outKeyframes:a},"zoom-big":{inKeyframes:l,outKeyframes:s},"zoom-big-fast":{inKeyframes:l,outKeyframes:s},"zoom-left":{inKeyframes:new r.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new r.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new r.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new r.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:c,outKeyframes:u},"zoom-down":{inKeyframes:new r.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new r.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},f=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=d[t];return[(0,o.R)(r,i,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},4364:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(7395),o=n(274),i=n(4747),a=n(1939),l=n(5503);const s=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:i,tableHeaderBg:a,tablePaddingVertical:l,tablePaddingHorizontal:s,calc:c}=e,u=`${(0,r.bf)(n)} ${o} ${i}`,d=(e,o,i)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,r.bf)(c(o).mul(-1).equal())}\n ${(0,r.bf)(c(c(i).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> 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:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,r.bf)(c(l).mul(-1).equal())} ${(0,r.bf)(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,r.bf)(n)} 0 ${(0,r.bf)(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},c=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},i.vS),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},u=e=>{const{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}}}}},d=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),f=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:i,paddingXS:a,lineType:l,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:f,tablePaddingVertical:p,tablePaddingHorizontal:h,tableExpandedRowBg:g,paddingXXS:m,expandIconMarginTop:v,expandIconSize:b,expandIconHalfInner:y,expandIconScale:S,calc:w}=e,E=`${(0,r.bf)(i)} ${l} ${s}`,C=w(m).sub(i).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${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`]:Object.assign(Object.assign({},d(e)),{position:"relative",float:"left",boxSizing:"border-box",width:b,height:b,padding:0,color:"inherit",lineHeight:(0,r.bf)(b),background:c,border:E,borderRadius:f,transform:`scale(${S})`,transition:`all ${o}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:C,insetInlineStart:C,height:i},"&::after":{top:C,bottom:C,insetInlineStart:y,width:i,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:v,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,r.bf)(w(p).mul(-1).equal())} ${(0,r.bf)(w(h).mul(-1).equal())}`,padding:`${(0,r.bf)(p)} ${(0,r.bf)(h)}`}}}},p=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:l,paddingXXS:s,paddingXS:c,colorText:u,lineWidth:d,lineType:f,tableBorderColor:p,headerIconColor:h,fontSizeSM:g,tablePaddingHorizontal:m,borderRadius:v,motionDurationSlow:b,colorTextDescription:y,colorPrimary:S,tableHeaderFilterActiveBg:w,colorTextDisabled:E,tableFilterDropdownBg:C,tableFilterDropdownHeight:x,controlItemBgHover:_,controlItemBgActive:O,boxShadowSecondary:T,filterDropdownMenuBg:k,calc:R}=e,$=`${n}-dropdown`,N=`${t}-filter-dropdown`,A=`${n}-tree`,P=`${(0,r.bf)(d)} ${f} ${p}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:R(s).mul(-1).equal(),marginInline:`${(0,r.bf)(s)} ${(0,r.bf)(R(m).div(2).mul(-1).equal())}`,padding:`0 ${(0,r.bf)(s)}`,color:h,fontSize:g,borderRadius:v,cursor:"pointer",transition:`all ${b}`,"&:hover":{color:y,background:w},"&.active":{color:S}}}},{[`${n}-dropdown`]:{[N]:Object.assign(Object.assign({},(0,i.Wf)(e)),{minWidth:a,backgroundColor:C,borderRadius:v,boxShadow:T,overflow:"hidden",[`${$}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${(0,r.bf)(c)} 0`,color:E,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${N}-tree`]:{paddingBlock:`${(0,r.bf)(c)} 0`,paddingInline:c,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:_},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${N}-search`]:{padding:c,borderBottom:P,"&-input":{input:{minWidth:l},[o]:{color:E}}},[`${N}-checkall`]:{width:"100%",marginBottom:s,marginInlineStart:s},[`${N}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,r.bf)(R(c).sub(d).equal())} ${(0,r.bf)(c)}`,overflow:"hidden",borderTop:P}})}},{[`${n}-dropdown ${N}, ${N}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:c,color:u},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},h=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:s}=e,c=r;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:s(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:s(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}}}}},g=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${(0,r.bf)(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},m=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,r.bf)(n)} ${(0,r.bf)(n)} 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:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${(0,r.bf)(n)} ${(0,r.bf)(n)}`}}}}},v=e=>{const{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"}}}}},b=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:i,padding:a,paddingXS:l,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:p,tablePaddingHorizontal:h,calc:g}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(i).add(g(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:g(u).add(g(l).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:g(u).add(i).add(g(a).div(4)).add(g(l).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`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:(0,r.bf)(g(h).div(4).equal()),[o]:{color:s,fontSize:i,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:p}}}}}},y=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,i=(e,i,a,l)=>({[`${t}${t}-${e}`]:{fontSize:l,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${(0,r.bf)(i)} ${(0,r.bf)(a)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,r.bf)(o(a).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,r.bf)(o(i).mul(-1).equal())} ${(0,r.bf)(o(a).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,r.bf)(o(i).mul(-1).equal()),marginInline:`${(0,r.bf)(o(n).sub(a).equal())} ${(0,r.bf)(o(a).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,r.bf)(o(a).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},S=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{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-sorter`]:{marginInlineStart:n,color:o,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}}}},w=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:l,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,p=`${(0,r.bf)(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,r.bf)(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:l,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:o,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},E=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:i}=e,a=`${(0,r.bf)(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,r.bf)(i(n).mul(-1).equal())} 0 ${o}`}}}},C=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:i,tableBorderColor:a,calc:l}=e,s=`${(0,r.bf)(o)} ${i} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,r.bf)(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:l(o).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},x=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:a,tableExpandColumnWidth:l,lineWidth:s,lineType:c,tableBorderColor:u,tableFontSize:d,tableBg:f,tableRadius:p,tableHeaderTextColor:h,motionDurationMid:g,tableHeaderBg:m,tableHeaderCellSplitColor:v,tableFooterTextColor:b,tableFooterBg:y,calc:S}=e,w=`${(0,r.bf)(s)} ${c} ${u}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,i.dF)()),{[t]:Object.assign(Object.assign({},(0,i.Wf)(e)),{fontSize:d,background:f,borderRadius:`${(0,r.bf)(p)} ${(0,r.bf)(p)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,r.bf)(p)} ${(0,r.bf)(p)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${(0,r.bf)(o)} ${(0,r.bf)(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,r.bf)(o)} ${(0,r.bf)(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:m,borderBottom:w,transition:`background ${g} 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:v,transform:"translateY(-50%)",transition:`background-color ${g}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${g}, border-color ${g}`,borderBottom:w,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:(0,r.bf)(S(o).mul(-1).equal()),marginInline:`${(0,r.bf)(S(l).sub(a).equal())}\n ${(0,r.bf)(S(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:m,borderBottom:w,transition:`background ${g} ease`}}},[`${t}-footer`]:{padding:`${(0,r.bf)(o)} ${(0,r.bf)(a)}`,color:b,background:y}})}},_=(0,a.I$)("Table",(e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:d,headerSortHoverBg:_,bodySortBg:O,rowHoverBg:T,rowSelectedBg:k,rowSelectedHoverBg:R,rowExpandedBg:$,cellPaddingBlock:N,cellPaddingInline:A,cellPaddingBlockMD:P,cellPaddingInlineMD:M,cellPaddingBlockSM:L,cellPaddingInlineSM:I,borderColor:Z,footerBg:D,footerColor:j,headerBorderRadius:z,cellFontSize:F,cellFontSizeMD:B,cellFontSizeSM:H,headerSplitColor:U,fixedHeaderSortActiveBg:W,headerFilterHoverBg:V,filterDropdownBg:q,expandIconBg:X,selectionColumnWidth:G,stickyScrollBarBg:Y,calc:K}=e,Q=(0,l.TS)(e,{tableFontSize:F,tableBg:r,tableRadius:z,tablePaddingVertical:N,tablePaddingHorizontal:A,tablePaddingVerticalMiddle:P,tablePaddingHorizontalMiddle:M,tablePaddingVerticalSmall:L,tablePaddingHorizontalSmall:I,tableBorderColor:Z,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:j,tableFooterBg:D,tableHeaderCellSplitColor:U,tableHeaderSortBg:d,tableHeaderSortHoverBg:_,tableBodySortBg:O,tableFixedHeaderSortActiveBg:W,tableHeaderFilterActiveBg:V,tableFilterDropdownBg:q,tableRowHoverBg:T,tableSelectedRowBg:k,tableSelectedRowHoverBg:R,zIndexTableFixed:2,zIndexTableSticky:3,tableFontSizeMiddle:B,tableFontSizeSmall:H,tableSelectionColumnWidth:G,tableExpandIconBg:X,tableExpandColumnWidth:K(o).add(K(e.padding).mul(2)).equal(),tableExpandedRowBg:$,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Y,tableScrollThumbBgHover:t,tableScrollBg:n});return[x(Q),g(Q),E(Q),S(Q),p(Q),s(Q),m(Q),f(Q),E(Q),u(Q),b(Q),h(Q),w(Q),c(Q),y(Q),v(Q),C(Q)]}),(e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:i,colorFillContent:a,controlItemBgActive:l,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:p,controlHeight:h,colorTextPlaceholder:g,fontSize:m,fontSizeSM:v,lineHeight:b,lineWidth:y,colorIcon:S,colorIconHover:w,opacityLoading:E,controlInteractiveSize:C}=e,x=new o.C(i).onBackground(n).toHexShortString(),_=new o.C(a).onBackground(n).toHexShortString(),O=new o.C(t).onBackground(n).toHexShortString(),T=new o.C(S),k=new o.C(w),R=C/2-y,$=2*R+3*y;return{headerBg:O,headerColor:r,headerSortActiveBg:x,headerSortHoverBg:_,bodySortBg:O,rowHoverBg:O,rowSelectedBg:l,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:p,footerBg:O,footerColor:r,cellFontSize:m,cellFontSizeMD:m,cellFontSizeSM:m,headerSplitColor:f,fixedHeaderSortActiveBg:x,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:h,stickyScrollBarBg:g,stickyScrollBarBorderRadius:100,expandIconMarginTop:(m*b-3*y)/2-Math.ceil((1.4*v-3*y)/2),headerIconColor:T.clone().setAlpha(T.getAlpha()*E).toRgbString(),headerIconHoverColor:k.clone().setAlpha(k.getAlpha()*E).toRgbString(),expandIconHalfInner:R,expandIconSize:$,expandIconScale:C/$}}),{unitless:{expandIconScale:!0}})},6997:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Sn});var r=n(7294),o=n(4549),i=n(7462);const a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var l=n(76),s=function(e,t){return r.createElement(l.Z,(0,i.Z)({},e,{ref:t,icon:a}))};const c=r.forwardRef(s);const u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var d=function(e,t){return r.createElement(l.Z,(0,i.Z)({},e,{ref:t,icon:u}))};const f=r.forwardRef(d);var p=n(3967),h=n.n(p),g=n(4942),m=n(1413),v=n(9439),b=n(1002),y=n(4925),S=n(1770),w=n(1131);const E=(0,r.createContext)(null);var C=n(3433),x=n(5375),_=n(6680),O=n(2550),T=n(5164);const k=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,s=a.align,c=void 0===s?"center":s,u=(0,r.useState)(),d=(0,v.Z)(u,2),f=d[0],p=d[1],h=(0,r.useRef)(),g=r.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function m(){T.Z.cancel(h.current)}return(0,r.useEffect)((function(){var e={};if(t)if(n){e.width=g(t.width);var r=o?"right":"left";"start"===c&&(e[r]=t[r]),"center"===c&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===c&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=g(t.height),"start"===c&&(e.top=t.top),"center"===c&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===c&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return m(),h.current=(0,T.Z)((function(){p(e)})),m}),[t,n,o,c,g]),{style:f}};var R={width:0,height:0,left:0,top:0};function $(e,t){var n=r.useRef(e),o=r.useState({}),i=(0,v.Z)(o,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var N=Math.pow(.995,20);var A=n(8410);function P(e){var t=(0,r.useState)(0),n=(0,v.Z)(t,2),o=n[0],i=n[1],a=(0,r.useRef)(0),l=(0,r.useRef)();return l.current=e,(0,A.o)((function(){var e;null===(e=l.current)||void 0===e||e.call(l)}),[o]),function(){a.current===o&&(a.current+=1,i(a.current))}}var M={width:0,height:0,left:0,top:0,right:0};function L(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function I(e){return String(e).replace(/"/g,"TABS_DQ")}function Z(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var D=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));const j=D;const z=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==(0,b.Z)(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));var F=n(2507),B=n(5105),H=B.Z.ESC,U=B.Z.TAB;const W=(0,r.forwardRef)((function(e,t){var n=e.overlay,o=e.arrow,i=e.prefixCls,a=(0,r.useMemo)((function(){return"function"==typeof n?n():n}),[n]),l=(0,O.sQ)(t,null==a?void 0:a.ref);return r.createElement(r.Fragment,null,o&&r.createElement("div",{className:"".concat(i,"-arrow")}),r.cloneElement(a,{ref:(0,O.Yr)(a)?l:void 0}))}));var V={adjustX:1,adjustY:1},q=[0,0];const X={topLeft:{points:["bl","tl"],overflow:V,offset:[0,-4],targetOffset:q},top:{points:["bc","tc"],overflow:V,offset:[0,-4],targetOffset:q},topRight:{points:["br","tr"],overflow:V,offset:[0,-4],targetOffset:q},bottomLeft:{points:["tl","bl"],overflow:V,offset:[0,4],targetOffset:q},bottom:{points:["tc","bc"],overflow:V,offset:[0,4],targetOffset:q},bottomRight:{points:["tr","br"],overflow:V,offset:[0,4],targetOffset:q}};var G=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Y(e,t){var n,o=e.arrow,a=void 0!==o&&o,l=e.prefixCls,s=void 0===l?"rc-dropdown":l,c=e.transitionName,u=e.animation,d=e.align,f=e.placement,p=void 0===f?"bottomLeft":f,m=e.placements,b=void 0===m?X:m,S=e.getPopupContainer,w=e.showAction,E=e.hideAction,C=e.overlayClassName,x=e.overlayStyle,_=e.visible,k=e.trigger,R=void 0===k?["hover"]:k,$=e.autoFocus,N=e.overlay,A=e.children,P=e.onVisibleChange,M=(0,y.Z)(e,G),L=r.useState(),I=(0,v.Z)(L,2),Z=I[0],D=I[1],j="visible"in e?_:Z,z=r.useRef(null),B=r.useRef(null),V=r.useRef(null);r.useImperativeHandle(t,(function(){return z.current}));var q=function(e){D(e),null==P||P(e)};!function(e){var t=e.visible,n=e.triggerRef,o=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=r.useRef(!1),s=function(){var e,r;t&&(null===(e=n.current)||void 0===e||null===(r=e.focus)||void 0===r||r.call(e),null==o||o(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case H:s();break;case U:var t=!1;l.current||(t=c()),t?e.preventDefault():s()}};r.useEffect((function(){return t?(window.addEventListener("keydown",u),i&&(0,T.Z)(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}}),[t])}({visible:j,triggerRef:V,onVisibleChange:q,autoFocus:$,overlayRef:B});var Y,K,Q,J=function(){return r.createElement(W,{ref:B,overlay:N,prefixCls:s,arrow:a})},ee=r.cloneElement(A,{className:h()(null===(n=A.props)||void 0===n?void 0:n.className,j&&(Y=e.openClassName,void 0!==Y?Y:"".concat(s,"-open"))),ref:(0,O.Yr)(A)?(0,O.sQ)(V,A.ref):void 0}),te=E;return te||-1===R.indexOf("contextMenu")||(te=["click"]),r.createElement(F.Z,(0,i.Z)({builtinPlacements:b},M,{prefixCls:s,ref:z,popupClassName:h()(C,(0,g.Z)({},"".concat(s,"-show-arrow"),a)),popupStyle:x,action:R,showAction:w,hideAction:te,popupPlacement:p,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:j,stretch:(K=e.minOverlayWidthMatchTrigger,Q=e.alignPoint,("minOverlayWidthMatchTrigger"in e?K:!Q)?"minWidth":""),popup:"function"==typeof N?J:J(),onPopupVisibleChange:q,onPopupClick:function(t){var n=e.onOverlayClick;D(!1),n&&n(t)},getPopupContainer:S}),ee)}const K=r.forwardRef(Y);var Q=n(6278),J=n(1881),ee=n(334),te=n(3935),ne=r.createContext(null);function re(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function oe(e){return re(r.useContext(ne),e)}var ie=n(6982),ae=["children","locked"],le=r.createContext(null);function se(e){var t=e.children,n=e.locked,o=(0,y.Z)(e,ae),i=r.useContext(le),a=(0,ie.Z)((function(){return e=i,t=o,n=(0,m.Z)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[i,o],(function(e,t){return!(n||e[0]===t[0]&&(0,J.Z)(e[1],t[1],!0))}));return r.createElement(le.Provider,{value:a},t)}var ce=[],ue=r.createContext(null);function de(){return r.useContext(ue)}var fe=r.createContext(ce);function pe(e){var t=r.useContext(fe);return r.useMemo((function(){return void 0!==e?[].concat((0,C.Z)(t),[e]):t}),[t,e])}var he=r.createContext(null);const ge=r.createContext({});var me=n(5110);function ve(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,me.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function be(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,C.Z)(e.querySelectorAll("*")).filter((function(e){return ve(e,t)}));return ve(e,t)&&n.unshift(e),n}var ye=B.Z.LEFT,Se=B.Z.RIGHT,we=B.Z.UP,Ee=B.Z.DOWN,Ce=B.Z.ENTER,xe=B.Z.ESC,_e=B.Z.HOME,Oe=B.Z.END,Te=[we,Ee,ye,Se];function ke(e,t){return be(e,!0).filter((function(e){return t.has(e)}))}function Re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=ke(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var $e=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(re(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function Ne(e,t,n,o,i,a,l,s,c,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){T.Z.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var h=r.which;if([].concat(Te,[Ce,xe,_e,Oe]).includes(h)){var m=a(),v=$e(m,o),b=v,y=b.elements,S=b.key2element,w=b.element2key,E=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(S.get(t),y),C=w.get(E),x=function(e,t,n,r){var o,i,a,l,s="prev",c="next",u="children",d="parent";if("inline"===e&&r===Ce)return{inlineTrigger:!0};var f=(o={},(0,g.Z)(o,we,s),(0,g.Z)(o,Ee,c),o),p=(i={},(0,g.Z)(i,ye,n?c:s),(0,g.Z)(i,Se,n?s:c),(0,g.Z)(i,Ee,u),(0,g.Z)(i,Ce,u),i),h=(a={},(0,g.Z)(a,we,s),(0,g.Z)(a,Ee,c),(0,g.Z)(a,Ce,u),(0,g.Z)(a,xe,d),(0,g.Z)(a,ye,n?u:d),(0,g.Z)(a,Se,n?d:u),a);switch(null===(l={inline:f,horizontal:p,vertical:h,inlineSub:f,horizontalSub:h,verticalSub:h}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===l(C,!0).length,n,h);if(!x&&h!==_e&&h!==Oe)return;(Te.includes(h)||[_e,Oe].includes(h))&&r.preventDefault();var _=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=w.get(e);s(r),p(),d.current=(0,T.Z)((function(){f.current===r&&t.focus()}))}};if([_e,Oe].includes(h)||x.sibling||!E){var O,k,R=ke(O=E&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(E):i.current,y);k=h===_e?R[0]:h===Oe?R[R.length-1]:Re(O,y,E,x.offset),_(k)}else if(x.inlineTrigger)c(C);else if(x.offset>0)c(C,!0),p(),d.current=(0,T.Z)((function(){v=$e(m,o);var e=E.getAttribute("aria-controls"),t=Re(document.getElementById(e),v.elements);_(t)}),5);else if(x.offset<0){var $=l(C,!0),N=$[$.length-2],A=S.get(N);c(N,!1),_(A)}}null==u||u(r)}}var Ae="__RC_UTIL_PATH_SPLIT__",Pe=function(e){return e.join(Ae)},Me="rc-menu-more";function Le(){var e=r.useState({}),t=(0,v.Z)(e,2)[1],n=(0,r.useRef)(new Map),o=(0,r.useRef)(new Map),i=r.useState([]),a=(0,v.Z)(i,2),l=a[0],s=a[1],c=(0,r.useRef)(0),u=(0,r.useRef)(!1),d=(0,r.useCallback)((function(e,r){var i=Pe(r);o.current.set(i,e),n.current.set(e,i),c.current+=1;var a,l=c.current;a=function(){l===c.current&&(u.current||t({}))},Promise.resolve().then(a)}),[]),f=(0,r.useCallback)((function(e,t){var r=Pe(t);o.current.delete(r),n.current.delete(e)}),[]),p=(0,r.useCallback)((function(e){s(e)}),[]),h=(0,r.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(Ae);return t&&l.includes(o[0])&&o.unshift(Me),o}),[l]),g=(0,r.useCallback)((function(e,t){return e.some((function(e){return h(e,!0).includes(t)}))}),[h]),m=(0,r.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Ae),r=new Set;return(0,C.Z)(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return r.useEffect((function(){return function(){u.current=!0}}),[]),{registerPath:d,unregisterPath:f,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:h,getKeys:function(){var e=(0,C.Z)(n.current.keys());return l.length&&e.push(Me),e},getSubPathKeys:m}}function Ie(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(E.motionAppear=!1);var C=E.onVisibleChanged;return E.onVisibleChanged=function(e){return h.current||e||S(!0),null==C?void 0:C(e)},y?null:r.createElement(se,{mode:l,locked:!h.current},r.createElement(ht.ZP,(0,i.Z)({visible:w},E,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(it,{id:t,className:n,style:o},a)})))}var mt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],vt=["active"],bt=function(e){var t,n=e.style,o=e.className,a=e.title,l=e.eventKey,s=(e.warnKey,e.disabled),c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,p=e.popupClassName,b=e.popupOffset,S=e.popupStyle,w=e.onClick,E=e.onMouseEnter,C=e.onMouseLeave,x=e.onTitleClick,_=e.onTitleMouseEnter,O=e.onTitleMouseLeave,T=(0,y.Z)(e,mt),k=oe(l),R=r.useContext(le),$=R.prefixCls,N=R.mode,A=R.openKeys,P=R.disabled,M=R.overflowDisabled,L=R.activeKey,I=R.selectedKeys,Z=R.itemIcon,D=R.expandIcon,j=R.onItemClick,z=R.onOpenChange,F=R.onActive,B=r.useContext(ge)._internalRenderSubMenuItem,H=r.useContext(he).isSubPathKey,U=pe(),W="".concat($,"-submenu"),V=P||s,q=r.useRef(),X=r.useRef();var G=null!=d?d:Z,Y=null!=f?f:D,K=A.includes(l),J=!M&&K,ee=H(I,l),te=Ue(l,V,_,O),ne=te.active,re=(0,y.Z)(te,vt),ie=r.useState(!1),ae=(0,v.Z)(ie,2),ce=ae[0],ue=ae[1],de=function(e){V||ue(e)},fe=r.useMemo((function(){return ne||"inline"!==N&&(ce||H([L],l))}),[N,ne,L,ce,l,H]),me=We(U.length),ve=Ie((function(e){null==w||w(Xe(e)),j(e)})),be=k&&"".concat(k,"-popup"),ye=r.createElement("div",(0,i.Z)({role:"menuitem",style:me,className:"".concat(W,"-title"),tabIndex:V?null:-1,ref:q,title:"string"==typeof a?a:null,"data-menu-id":M&&k?null:k,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":be,"aria-disabled":V,onClick:function(e){V||(null==x||x({key:l,domEvent:e}),"inline"===N&&z(l,!K))},onFocus:function(){F(l)}},re),a,r.createElement(Ve,{icon:"horizontal"!==N?Y:void 0,props:(0,m.Z)((0,m.Z)({},e),{},{isOpen:J,isSubMenu:!0})},r.createElement("i",{className:"".concat(W,"-arrow")}))),Se=r.useRef(N);if("inline"!==N&&U.length>1?Se.current="vertical":Se.current=N,!M){var we=Se.current;ye=r.createElement(pt,{mode:we,prefixCls:W,visible:!c&&J&&"inline"!==N,popupClassName:p,popupOffset:b,popupStyle:S,popup:r.createElement(se,{mode:"horizontal"===we?"vertical":we},r.createElement(it,{id:be,ref:X},u)),disabled:V,onVisibleChange:function(e){"inline"!==N&&z(l,e)}},ye)}var Ee=r.createElement(Q.Z.Item,(0,i.Z)({role:"none"},T,{component:"li",style:n,className:h()(W,"".concat(W,"-").concat(N),o,(t={},(0,g.Z)(t,"".concat(W,"-open"),J),(0,g.Z)(t,"".concat(W,"-active"),fe),(0,g.Z)(t,"".concat(W,"-selected"),ee),(0,g.Z)(t,"".concat(W,"-disabled"),V),t)),onMouseEnter:function(e){de(!0),null==E||E({key:l,domEvent:e})},onMouseLeave:function(e){de(!1),null==C||C({key:l,domEvent:e})}}),ye,!M&&r.createElement(gt,{id:be,open:J,keyPath:U},u));return B&&(Ee=B(Ee,e,{selected:ee,active:fe,open:J,disabled:V})),r.createElement(se,{onItemClick:ve,mode:"horizontal"===N?"vertical":N,itemIcon:G,expandIcon:Y},Ee)};function yt(e){var t,n=e.eventKey,o=e.children,i=pe(n),a=lt(o,i),l=de();return r.useEffect((function(){if(l)return l.registerPath(n,i),function(){l.unregisterPath(n,i)}}),[i]),t=l?a:r.createElement(bt,e,a),r.createElement(fe.Provider,{value:i},t)}var St=["className","title","eventKey","children"],wt=["children"],Et=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),a=(0,y.Z)(e,St),l=r.useContext(le).prefixCls,s="".concat(l,"-item-group");return r.createElement("li",(0,i.Z)({role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:h()(s,t)}),r.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof n?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))};function Ct(e){var t=e.children,n=(0,y.Z)(e,wt),o=lt(t,pe(n.eventKey));return de()?o:r.createElement(Et,(0,He.Z)(n,["warnKey"]),o)}function xt(e){var t=e.className,n=e.style,o=r.useContext(le).prefixCls;return de()?null:r.createElement("li",{role:"separator",className:h()("".concat(o,"-item-divider"),t),style:n})}var _t=["label","children","key","type"];function Ot(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,b.Z)(e)){var n=e,o=n.label,a=n.children,l=n.key,s=n.type,c=(0,y.Z)(n,_t),u=null!=l?l:"tmp-".concat(t);return a||"group"===s?"group"===s?r.createElement(Ct,(0,i.Z)({key:u},c,{title:o}),Ot(a)):r.createElement(yt,(0,i.Z)({key:u},c,{title:o}),Ot(a)):"divider"===s?r.createElement(xt,(0,i.Z)({key:u},c)):r.createElement(tt,(0,i.Z)({key:u},c),o)}return null})).filter((function(e){return e}))}function Tt(e,t,n){var r=e;return t&&(r=Ot(t)),lt(r,n)}var kt=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Rt=[],$t=r.forwardRef((function(e,t){var n,o,a=e,l=a.prefixCls,s=void 0===l?"rc-menu":l,c=a.rootClassName,u=a.style,d=a.className,f=a.tabIndex,p=void 0===f?0:f,b=a.items,w=a.children,E=a.direction,x=a.id,_=a.mode,O=void 0===_?"vertical":_,T=a.inlineCollapsed,k=a.disabled,R=a.disabledOverflow,$=a.subMenuOpenDelay,N=void 0===$?.1:$,A=a.subMenuCloseDelay,P=void 0===A?.1:A,M=a.forceSubMenuRender,L=a.defaultOpenKeys,I=a.openKeys,Z=a.activeKey,D=a.defaultActiveFirst,j=a.selectable,z=void 0===j||j,F=a.multiple,B=void 0!==F&&F,H=a.defaultSelectedKeys,U=a.selectedKeys,W=a.onSelect,V=a.onDeselect,q=a.inlineIndent,X=void 0===q?24:q,G=a.motion,Y=a.defaultMotions,K=a.triggerSubMenuAction,ee=void 0===K?"hover":K,re=a.builtinPlacements,oe=a.itemIcon,ie=a.expandIcon,ae=a.overflowedIndicator,le=void 0===ae?"...":ae,ce=a.overflowedIndicatorPopupClassName,de=a.getPopupContainer,fe=a.onClick,pe=a.onOpenChange,me=a.onKeyDown,ve=(a.openAnimation,a.openTransitionName,a._internalRenderMenuItem),be=a._internalRenderSubMenuItem,ye=(0,y.Z)(a,kt),Se=r.useMemo((function(){return Tt(w,b,Rt)}),[w,b]),we=r.useState(!1),Ee=(0,v.Z)(we,2),Ce=Ee[0],xe=Ee[1],_e=r.useRef(),Oe=function(e){var t=(0,S.Z)(e,{value:e}),n=(0,v.Z)(t,2),o=n[0],i=n[1];return r.useEffect((function(){De+=1;var e="".concat(Ze,"-").concat(De);i("rc-menu-uuid-".concat(e))}),[]),o}(x),Te="rtl"===E;var Re=(0,S.Z)(L,{value:I,postState:function(e){return e||Rt}}),Ae=(0,v.Z)(Re,2),Pe=Ae[0],je=Ae[1],ze=function(e){function t(){je(e),null==pe||pe(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,te.flushSync)(t):t()},Fe=r.useState(Pe),Be=(0,v.Z)(Fe,2),He=Be[0],Ue=Be[1],We=r.useRef(!1),Ve=r.useMemo((function(){return"inline"!==O&&"vertical"!==O||!T?[O,!1]:["vertical",T]}),[O,T]),qe=(0,v.Z)(Ve,2),Ge=qe[0],Ye=qe[1],Ke="inline"===Ge,Qe=r.useState(Ge),Je=(0,v.Z)(Qe,2),et=Je[0],nt=Je[1],rt=r.useState(Ye),ot=(0,v.Z)(rt,2),it=ot[0],at=ot[1];r.useEffect((function(){nt(Ge),at(Ye),We.current&&(Ke?je(He):ze(Rt))}),[Ge,Ye]);var lt=r.useState(0),st=(0,v.Z)(lt,2),ct=st[0],ut=st[1],dt=ct>=Se.length-1||"horizontal"!==et||R;r.useEffect((function(){Ke&&Ue(Pe)}),[Pe]),r.useEffect((function(){return We.current=!0,function(){We.current=!1}}),[]);var ft=Le(),pt=ft.registerPath,ht=ft.unregisterPath,gt=ft.refreshOverflowKeys,mt=ft.isSubPathKey,vt=ft.getKeyPath,bt=ft.getKeys,St=ft.getSubPathKeys,wt=r.useMemo((function(){return{registerPath:pt,unregisterPath:ht}}),[pt,ht]),Et=r.useMemo((function(){return{isSubPathKey:mt}}),[mt]);r.useEffect((function(){gt(dt?Rt:Se.slice(ct+1).map((function(e){return e.key})))}),[ct,dt]);var Ct=(0,S.Z)(Z||D&&(null===(n=Se[0])||void 0===n?void 0:n.key),{value:Z}),xt=(0,v.Z)(Ct,2),_t=xt[0],Ot=xt[1],$t=Ie((function(e){Ot(e)})),Nt=Ie((function(){Ot(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:_e.current,focus:function(e){var t,n,r=bt(),o=$e(r,Oe),i=o.elements,a=o.key2element,l=o.element2key,s=ke(_e.current,i),c=null!=_t?_t:s[0]?l.get(s[0]):null===(t=Se.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var At=(0,S.Z)(H||[],{value:U,postState:function(e){return Array.isArray(e)?e:null==e?Rt:[e]}}),Pt=(0,v.Z)(At,2),Mt=Pt[0],Lt=Pt[1],It=Ie((function(e){null==fe||fe(Xe(e)),function(e){if(z){var t,n=e.key,r=Mt.includes(n);t=B?r?Mt.filter((function(e){return e!==n})):[].concat((0,C.Z)(Mt),[n]):[n],Lt(t);var o=(0,m.Z)((0,m.Z)({},e),{},{selectedKeys:t});r?null==V||V(o):null==W||W(o)}!B&&Pe.length&&"inline"!==et&&ze(Rt)}(e)})),Zt=Ie((function(e,t){var n=Pe.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==et){var r=St(e);n=n.filter((function(e){return!r.has(e)}))}(0,J.Z)(Pe,n,!0)||ze(n,!0)})),Dt=Ne(et,_t,Te,Oe,_e,bt,vt,Ot,(function(e,t){var n=null!=t?t:!Pe.includes(e);Zt(e,n)}),me);r.useEffect((function(){xe(!0)}),[]);var jt=r.useMemo((function(){return{_internalRenderMenuItem:ve,_internalRenderSubMenuItem:be}}),[ve,be]),zt="horizontal"!==et||R?Se:Se.map((function(e,t){return r.createElement(se,{key:e.key,overflowDisabled:t>ct},e)})),Ft=r.createElement(Q.Z,(0,i.Z)({id:x,ref:_e,prefixCls:"".concat(s,"-overflow"),component:"ul",itemComponent:tt,className:h()(s,"".concat(s,"-root"),"".concat(s,"-").concat(et),d,(o={},(0,g.Z)(o,"".concat(s,"-inline-collapsed"),it),(0,g.Z)(o,"".concat(s,"-rtl"),Te),o),c),dir:E,style:u,role:"menu",tabIndex:p,data:zt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Se.slice(-t):null;return r.createElement(yt,{eventKey:Me,title:le,disabled:dt,internalPopupClose:0===t,popupClassName:ce},n)},maxCount:"horizontal"!==et||R?Q.Z.INVALIDATE:Q.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){ut(e)},onKeyDown:Dt},ye));return r.createElement(ge.Provider,{value:jt},r.createElement(ne.Provider,{value:Oe},r.createElement(se,{prefixCls:s,rootClassName:c,mode:et,openKeys:Pe,rtl:Te,disabled:k,motion:Ce?G:null,defaultMotions:Ce?Y:null,activeKey:_t,onActive:$t,onInactive:Nt,selectedKeys:Mt,inlineIndent:X,subMenuOpenDelay:N,subMenuCloseDelay:P,forceSubMenuRender:M,builtinPlacements:re,triggerSubMenuAction:ee,getPopupContainer:de,itemIcon:oe,expandIcon:ie,onItemClick:It,onOpenChange:Zt},r.createElement(he.Provider,{value:Et},Ft),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(ue.Provider,{value:wt},Se)))))}));var Nt=$t;Nt.Item=tt,Nt.SubMenu=yt,Nt.ItemGroup=Ct,Nt.Divider=xt;const At=Nt;var Pt=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,i=e.tabs,a=e.locale,l=e.mobile,s=e.moreIcon,c=void 0===s?"More":s,u=e.moreTransitionName,d=e.style,f=e.className,p=e.editable,m=e.tabBarGutter,b=e.rtl,y=e.removeAriaLabel,S=e.onTabClick,w=e.getPopupContainer,E=e.popupClassName,C=(0,r.useState)(!1),x=(0,v.Z)(C,2),_=x[0],O=x[1],T=(0,r.useState)(null),k=(0,v.Z)(T,2),R=k[0],$=k[1],N="".concat(o,"-more-popup"),A="".concat(n,"-dropdown"),P=null!==R?"".concat(N,"-").concat(R):null,M=null==a?void 0:a.dropdownAriaLabel;var L=r.createElement(At,{onClick:function(e){var t=e.key,n=e.domEvent;S(t,n),O(!1)},prefixCls:"".concat(A,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[R],"aria-label":void 0!==M?M:"expanded dropdown"},i.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,s=Z(t,i,p,n);return r.createElement(tt,{key:a,id:"".concat(N,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),s&&r.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(A,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),p.onEdit("remove",{key:t,event:e})}(e,a)}},i||p.removeIcon||"×"))})));function I(e){for(var t=i.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===R}))||0,r=t.length,o=0;ot?"left":"right"})})),Y=(0,v.Z)(G,2),K=Y[0],Q=Y[1],J=$(0,(function(e,t){!X&&w&&w({direction:e>t?"top":"bottom"})})),ee=(0,v.Z)(J,2),te=ee[0],ne=ee[1],re=(0,r.useState)([0,0]),oe=(0,v.Z)(re,2),ie=oe[0],ae=oe[1],le=(0,r.useState)([0,0]),se=(0,v.Z)(le,2),ce=se[0],ue=se[1],de=(0,r.useState)([0,0]),fe=(0,v.Z)(de,2),pe=fe[0],he=fe[1],ge=(0,r.useState)([0,0]),me=(0,v.Z)(ge,2),ve=me[0],be=me[1],ye=function(e){var t=(0,r.useRef)([]),n=(0,r.useState)({}),o=(0,v.Z)(n,2)[1],i=(0,r.useRef)("function"==typeof e?e():e),a=P((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,o({})}));return[i.current,function(e){t.current.push(e),a()}]}(new Map),Se=(0,v.Z)(ye,2),we=Se[0],Ee=Se[1],Ce=function(e,t,n){return(0,r.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||R,i=o.left+o.width,a=0;aAe?Ae:e}X&&c?(Ne=0,Ae=Math.max(0,_e-Re)):(Ne=Math.min(0,Re-_e),Ae=0);var Me=(0,r.useRef)(null),Le=(0,r.useState)(),Ie=(0,v.Z)(Le,2),Ze=Ie[0],De=Ie[1];function je(){De(Date.now())}function ze(){Me.current&&clearTimeout(Me.current)}!function(e,t){var n=(0,r.useState)(),o=(0,v.Z)(n,2),i=o[0],a=o[1],l=(0,r.useState)(0),s=(0,v.Z)(l,2),c=s[0],u=s[1],d=(0,r.useState)(0),f=(0,v.Z)(d,2),p=f[0],h=f[1],g=(0,r.useState)(),m=(0,v.Z)(g,2),b=m[0],y=m[1],S=(0,r.useRef)(),w=(0,r.useRef)(),E=(0,r.useRef)(null);E.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(S.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],r=n.screenX,o=n.screenY;a({x:r,y:o});var l=r-i.x,s=o-i.y;t(l,s);var d=Date.now();u(d),h(d-c),y({x:l,y:s})}},onTouchEnd:function(){if(i&&(a(null),y(null),b)){var e=b.x/p,n=b.y/p,r=Math.abs(e),o=Math.abs(n);if(Math.max(r,o)<.1)return;var l=e,s=n;S.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(s)<.01?window.clearInterval(S.current):t(20*(l*=N),20*(s*=N))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===w.current?n:r:i>a?(o=n,w.current="x"):(o=r,w.current="y"),t(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function t(e){E.current.onTouchMove(e)}function n(e){E.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){E.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){E.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(U,(function(e,t){function n(e,t){e((function(e){return Pe(e+t)}))}return!!ke&&(X?n(Q,e):n(ne,t),ze(),je(),!0)})),(0,r.useEffect)((function(){return ze(),Ze&&(Me.current=setTimeout((function(){De(0)}),100)),ze}),[Ze]);var Fe=function(e,t,n,o,i,a,l){var s,c,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(s="width",c=p?"right":"left",u=Math.abs(n)):(s="height",c="top",u=-n),(0,r.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;ou+t){r=o-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||M)[c]=r?[0,0]:[a,r]}),[e,t,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(Ce,Re,X?K:te,_e,Oe,Te,(0,m.Z)((0,m.Z)({},e),{},{tabs:D})),Be=(0,v.Z)(Fe,2),He=Be[0],Ue=Be[1],We=(0,_.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=Ce.get(e)||{width:0,height:0,left:0,right:0,top:0};if(X){var n=K;c?t.rightK+Re&&(n=t.right+t.width-Re):t.left<-K?n=-t.left:t.left+t.width>-K+Re&&(n=-(t.left+t.width-Re)),ne(0),Q(Pe(n))}else{var r=te;t.top<-te?r=-t.top:t.top+t.height>-te+Re&&(r=-(t.top+t.height-Re)),Q(0),ne(Pe(r))}})),Ve={};"top"===p||"bottom"===p?Ve[c?"marginRight":"marginLeft"]=b:Ve.marginTop=b;var qe=D.map((function(e,t){var n=e.key;return r.createElement(Lt,{id:a,prefixCls:Z,key:n,tab:e,style:0===t?void 0:Ve,closable:e.closable,editable:d,active:n===s,renderWrapper:y,removeAriaLabel:null==f?void 0:f.removeAriaLabel,onClick:function(e){S(n,e)},onFocus:function(){We(n),je(),U.current&&(c||(U.current.scrollLeft=0),U.current.scrollTop=0)}})})),Xe=function(){return Ee((function(){var e,t=new Map,n=null===(e=W.current)||void 0===e?void 0:e.getBoundingClientRect();return D.forEach((function(e){var r,o=e.key,i=null===(r=W.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(I(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,s=a.height,c=a.x,u=a.y;return Math.abs(l-n)<1?[l,s,c-t.x,u-t.y]:[n,r,i,o]}(i,n),l=(0,v.Z)(a,4),s=l[0],c=l[1],u=l[2],d=l[3];t.set(o,{width:s,height:c,left:u,top:d})}})),t}))};(0,r.useEffect)((function(){Xe()}),[D.map((function(e){return e.key})).join("_")]);var Ge=P((function(){var e=It(F),t=It(B),n=It(H);ae([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=It(q);he(r);var o=It(V);be(o);var i=It(W);ue([i[0]-r[0],i[1]-r[1]]),Xe()})),Ye=D.slice(0,He),Ke=D.slice(Ue+1),Qe=[].concat((0,C.Z)(Ye),(0,C.Z)(Ke)),Je=Ce.get(s),et=k({activeTabOffset:Je,horizontal:X,indicator:T,rtl:c}).style;(0,r.useEffect)((function(){We()}),[s,Ne,Ae,L(Je),L(Ce),X]),(0,r.useEffect)((function(){Ge()}),[c]);var tt,nt,rt,ot,it=!!Qe.length,at="".concat(Z,"-nav-wrap");return X?c?(nt=K>0,tt=K!==Ae):(tt=K<0,nt=K!==Ne):(rt=te<0,ot=te!==Ne),r.createElement(x.Z,{onResize:Ge},r.createElement("div",{ref:(0,O.x1)(t,F),role:"tablist",className:h()("".concat(Z,"-nav"),n),style:o,onKeyDown:function(){je()}},r.createElement(z,{ref:B,position:"left",extra:u,prefixCls:Z}),r.createElement(x.Z,{onResize:Ge},r.createElement("div",{className:h()(at,(0,g.Z)((0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(at,"-ping-left"),tt),"".concat(at,"-ping-right"),nt),"".concat(at,"-ping-top"),rt),"".concat(at,"-ping-bottom"),ot)),ref:U},r.createElement(x.Z,{onResize:Ge},r.createElement("div",{ref:W,className:"".concat(Z,"-nav-list"),style:{transform:"translate(".concat(K,"px, ").concat(te,"px)"),transition:Ze?"none":void 0}},qe,r.createElement(j,{ref:q,prefixCls:Z,locale:f,editable:d,style:(0,m.Z)((0,m.Z)({},0===qe.length?void 0:Ve),{},{visibility:it?"hidden":null})}),r.createElement("div",{className:h()("".concat(Z,"-ink-bar"),(0,g.Z)({},"".concat(Z,"-ink-bar-animated"),l.inkBar)),style:et}))))),r.createElement(Mt,(0,i.Z)({},e,{removeAriaLabel:null==f?void 0:f.removeAriaLabel,ref:V,prefixCls:Z,tabs:Qe,className:!it&&$e,tabMoving:!!Ze})),r.createElement(z,{ref:H,position:"right",extra:u,prefixCls:Z})))}));const jt=Dt;var zt=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,a=e.id,l=e.active,s=e.tabKey,c=e.children;return r.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!l,style:i,className:h()(n,l&&"".concat(n,"-active"),o),ref:t},c)}));const Ft=zt;var Bt=["renderTabBar"],Ht=["label","key"];const Ut=function(e){var t=e.renderTabBar,n=(0,y.Z)(e,Bt),o=r.useContext(E).tabs;return t?t((0,m.Z)((0,m.Z)({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=(0,y.Z)(e,Ht);return r.createElement(Ft,(0,i.Z)({tab:t,key:n,tabKey:n},o))}))}),jt):r.createElement(jt,n)};var Wt=["key","forceRender","style","className","destroyInactiveTabPane"];const Vt=function(e){var t=e.id,n=e.activeKey,o=e.animated,a=e.tabPosition,l=e.destroyInactiveTabPane,s=r.useContext(E),c=s.prefixCls,u=s.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return r.createElement("div",{className:h()("".concat(c,"-content-holder"))},r.createElement("div",{className:h()("".concat(c,"-content"),"".concat(c,"-content-").concat(a),(0,g.Z)({},"".concat(c,"-content-animated"),d))},u.map((function(e){var a=e.key,s=e.forceRender,c=e.style,u=e.className,p=e.destroyInactiveTabPane,g=(0,y.Z)(e,Wt),v=a===n;return r.createElement(ht.ZP,(0,i.Z)({key:a,visible:v,forceRender:s,removeOnLeave:!(!l&&!p),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,l=e.className;return r.createElement(Ft,(0,i.Z)({},g,{prefixCls:f,id:t,tabKey:a,animated:d,active:v,style:(0,m.Z)((0,m.Z)({},c),o),className:h()(u,l),ref:n}))}))}))))};var qt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Xt=0,Gt=r.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,a=void 0===o?"rc-tabs":o,l=e.className,s=e.items,c=e.direction,u=e.activeKey,d=e.defaultActiveKey,f=e.editable,p=e.animated,C=e.tabPosition,x=void 0===C?"top":C,_=e.tabBarGutter,O=e.tabBarStyle,T=e.tabBarExtraContent,k=e.locale,R=e.moreIcon,$=e.moreTransitionName,N=e.destroyInactiveTabPane,A=e.renderTabBar,P=e.onChange,M=e.onTabClick,L=e.onTabScroll,I=e.getPopupContainer,Z=e.popupClassName,D=e.indicator,j=(0,y.Z)(e,qt),z=r.useMemo((function(){return(s||[]).filter((function(e){return e&&"object"===(0,b.Z)(e)&&"key"in e}))}),[s]),F="rtl"===c,B=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,m.Z)({inkBar:!0},"object"===(0,b.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(p),H=(0,r.useState)(!1),U=(0,v.Z)(H,2),W=U[0],V=U[1];(0,r.useEffect)((function(){V((0,w.Z)())}),[]);var q=(0,S.Z)((function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),X=(0,v.Z)(q,2),G=X[0],Y=X[1],K=(0,r.useState)((function(){return z.findIndex((function(e){return e.key===G}))})),Q=(0,v.Z)(K,2),J=Q[0],ee=Q[1];(0,r.useEffect)((function(){var e,t=z.findIndex((function(e){return e.key===G}));-1===t&&(t=Math.max(0,Math.min(J,z.length-1)),Y(null===(e=z[t])||void 0===e?void 0:e.key));ee(t)}),[z.map((function(e){return e.key})).join("_"),G,J]);var te=(0,S.Z)(null,{value:n}),ne=(0,v.Z)(te,2),re=ne[0],oe=ne[1];(0,r.useEffect)((function(){n||(oe("rc-tabs-".concat(Xt)),Xt+=1)}),[]);var ie={id:re,activeKey:G,animated:B,tabPosition:x,rtl:F,mobile:W},ae=(0,m.Z)((0,m.Z)({},ie),{},{editable:f,locale:k,moreIcon:R,moreTransitionName:$,tabBarGutter:_,onTabClick:function(e,t){null==M||M(e,t);var n=e!==G;Y(e),n&&(null==P||P(e))},onTabScroll:L,extra:T,style:O,panes:null,getPopupContainer:I,popupClassName:Z,indicator:D});return r.createElement(E.Provider,{value:{tabs:z,prefixCls:a}},r.createElement("div",(0,i.Z)({ref:t,id:n,className:h()(a,"".concat(a,"-").concat(x),(0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(a,"-mobile"),W),"".concat(a,"-editable"),f),"".concat(a,"-rtl"),F),l)},j),r.createElement(Ut,(0,i.Z)({},ae,{renderTabBar:A})),r.createElement(Vt,(0,i.Z)({destroyInactiveTabPane:N},ie,{animated:B}))))}));const Yt=Gt;var Kt=n(3124),Qt=n(5792),Jt=n(8675),en=n(3603);const tn={motionAppear:!1,motionEnter:!0,motionLeave:!0};var nn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,sn.oN)(e,"slide-up"),(0,sn.oN)(e,"slide-down")]]},un=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${(0,rn.bf)(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_:!0,value:(0,rn.bf)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,rn.bf)(e.borderRadiusLG)} ${(0,rn.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,rn.bf)(e.borderRadiusLG)} ${(0,rn.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,rn.bf)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,rn.bf)(e.borderRadiusLG)} 0 0 ${(0,rn.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,rn.bf)(e.borderRadiusLG)} ${(0,rn.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},dn=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,on.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,rn.bf)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},on.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,rn.bf)(e.paddingXXS)} ${(0,rn.bf)(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_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},fn=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,rn.bf)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,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,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,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_:!0,value:0},left:{_skip_check_:!0,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_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,rn.bf)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,rn.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,rn.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},pn=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,rn.bf)(e.borderRadius)} ${(0,rn.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,rn.bf)(e.borderRadius)} ${(0,rn.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,rn.bf)(e.borderRadius)} ${(0,rn.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,rn.bf)(e.borderRadius)} 0 0 ${(0,rn.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},hn=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,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":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,on.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,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 ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},gn=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,rn.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,rn.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,rn.bf)(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_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},mn=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,on.Wf)(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:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${(0,rn.bf)(e.paddingXS)}`,background:"transparent",border:`${(0,rn.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,rn.bf)(e.borderRadiusLG)} ${(0,rn.bf)(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}},(0,on.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),hn(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'])`]:{justifyContent:"center"}}}}}},vn=(0,an.I$)("Tabs",(e=>{const t=(0,ln.TS)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,rn.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,rn.bf)(e.horizontalItemGutter)}`});return[pn(t),gn(t),fn(t),dn(t),un(t),mn(t),cn(t)]}),(e=>{const 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:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}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}}));var bn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n,i,a,l,s;const{type:u,className:d,rootClassName:p,size:g,onEdit:m,hideAdd:v,centered:b,addIcon:y,popupClassName:S,children:w,items:E,animated:C,style:x,indicatorSize:_,indicator:O}=e,T=bn(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:k,moreIcon:R=r.createElement(c,null)}=T,{direction:$,tabs:N,getPrefixCls:A,getPopupContainer:P}=r.useContext(Kt.E_),M=A("tabs",k),L=(0,Qt.Z)(M),[I,Z,D]=vn(M,L);let j;"editable-card"===u&&(j={onEdit:(e,t)=>{let{key:n,event:r}=t;null==m||m("add"===e?r:n,e)},removeIcon:r.createElement(o.Z,null),addIcon:y||r.createElement(f,null),showAdd:!0!==v});const z=A();const F=(0,Jt.Z)(g),B=function(e,t){return e||function(e){return e.filter((e=>e))}((0,at.Z)(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=nn(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(E,w),H=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},tn),{motionName:(0,en.m)(e,"switch")})),t}(M,C),U=Object.assign(Object.assign({},null==N?void 0:N.style),x),W={align:null!==(t=null==O?void 0:O.align)&&void 0!==t?t:null===(n=null==N?void 0:N.indicator)||void 0===n?void 0:n.align,size:null!==(s=null!==(a=null!==(i=null==O?void 0:O.size)&&void 0!==i?i:_)&&void 0!==a?a:null===(l=null==N?void 0:N.indicator)||void 0===l?void 0:l.size)&&void 0!==s?s:null==N?void 0:N.indicatorSize};return I(r.createElement(Yt,Object.assign({direction:$,getPopupContainer:P,moreTransitionName:`${z}-slide-up`},T,{items:B,className:h()({[`${M}-${F}`]:F,[`${M}-card`]:["card","editable-card"].includes(u),[`${M}-editable-card`]:"editable-card"===u,[`${M}-centered`]:b},null==N?void 0:N.className,d,p,Z,D,L),popupClassName:h()(S,Z,D,L),style:U,editable:j,moreIcon:R,prefixCls:M,animated:H,indicator:W})))};yn.TabPane=()=>null;const Sn=yn},3083:(e,t,n)=>{"use strict";n.d(t,{Mj:()=>c,uH:()=>l,u_:()=>s});var r=n(7294),o=n(7395),i=n(2842),a=n(2790);const l=(0,o.jG)(i.Z),s={token:a.Z,override:{override:a.Z},hashed:!0},c=r.createContext(s)},9372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(7395),o=n(2842),i=n(2790),a=n(4595);const l=e=>{const t=(null==e?void 0:e.algorithm)?(0,r.jG)(e.algorithm):(0,r.jG)(o.Z),n=Object.assign(Object.assign({},i.Z),null==e?void 0:e.token);return(0,r.t2)(n,{override:null==e?void 0:e.token},t,a.Z)};var s=n(7606),c=n(3083),u=n(372);var d=n(9594);const f=(e,t)=>{const n=null!=t?t:(0,o.Z)(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,r=n-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)}}(null!=t?t:e)),(0,d.Z)(r)),{controlHeight:i}),(0,u.Z)(Object.assign(Object.assign({},n),{controlHeight:i})))};var p=n(1242),h=n(57),g=n(274);const m=(e,t)=>new g.C(e).setAlpha(t).toRgbString(),v=(e,t)=>new g.C(e).lighten(t).toHexString(),b=e=>{const t=(0,p.R_)(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]}},y=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:m(r,.85),colorTextSecondary:m(r,.65),colorTextTertiary:m(r,.45),colorTextQuaternary:m(r,.25),colorFill:m(r,.18),colorFillSecondary:m(r,.12),colorFillTertiary:m(r,.08),colorFillQuaternary:m(r,.04),colorBgElevated:v(n,12),colorBgContainer:v(n,8),colorBgLayout:v(n,0),colorBgSpotlight:v(n,26),colorBgBlur:m(r,.04),colorBorder:v(n,26),colorBorderSecondary:v(n,19)}},S=(e,t)=>{const n=Object.keys(i.M).map((t=>{const n=(0,p.R_)(e[t],{theme:"dark"});return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{}),r=null!=t?t:(0,o.Z)(e);return Object.assign(Object.assign(Object.assign({},r),n),(0,h.Z)(e,{generateColorPalettes:b,generateNeutralColorPalettes:y}))};const w={defaultConfig:c.u_,defaultSeed:c.u_.token,useToken:function(){const[e,t,n]=(0,s.ZP)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:o.Z,darkAlgorithm:S,compactAlgorithm:f,getDesignToken:l}},2842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(1242),o=n(372);var i=n(2790),a=n(57);const l=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};var s=n(274);const c=(e,t)=>new s.C(e).setAlpha(t).toRgbString(),u=(e,t)=>new s.C(e).darken(t).toHexString(),d=e=>{const t=(0,r.R_)(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]}},f=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:c(r,.88),colorTextSecondary:c(r,.65),colorTextTertiary:c(r,.45),colorTextQuaternary:c(r,.25),colorFill:c(r,.15),colorFillSecondary:c(r,.06),colorFillTertiary:c(r,.04),colorFillQuaternary:c(r,.02),colorBgLayout:u(n,4),colorBgContainer:u(n,0),colorBgElevated:u(n,0),colorBgSpotlight:c(r,.85),colorBgBlur:"transparent",colorBorder:u(n,15),colorBorderSecondary:u(n,6)}};var p=n(9594);function h(e){const t=Object.keys(i.M).map((t=>{const n=(0,r.R_)(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,a.Z)(e,{generateColorPalettes:d,generateNeutralColorPalettes:f})),(0,p.Z)(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(0,o.Z)(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},l(r))}(e))}},2790:(e,t,n)=>{"use strict";n.d(t,{M:()=>r,Z:()=>o});const r={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"},o=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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:!1,motion:!0})},57:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(274);function o(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:i,colorWarning:a,colorError:l,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),p=n(i),h=n(a),g=n(l),m=n(s),v=o(u,d),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new r.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}}},9594:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1734);const o=e=>{const t=(0,r.Z)(e),n=t.map((e=>e.size)),o=t.map((e=>e.lineHeight)),i=n[1],a=n[0],l=n[2],s=o[1],c=o[0],u=o[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:l,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(u*l),fontHeightSM:Math.round(c*a),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}}},1734:(e,t,n)=>{"use strict";function r(e){return(e+8)/e}function o(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>({size:e,lineHeight:r(e)})))}n.d(t,{D:()=>r,Z:()=>o})},7606:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>h,ID:()=>d,NJ:()=>u});var r=n(7294),o=n(7395);const i="5.13.3";var a=n(3083),l=n(2790),s=n(4595),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=c(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=(0,s.Z)(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=c(n,["theme"]);let i=o;r&&(i=p(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function h(){const{token:e,hashed:t,theme:n,override:c,cssVar:h}=r.useContext(a.Mj),g=`${i}-${t||""}`,m=n||a.uH,[v,b,y]=(0,o.fp)(m,[l.Z,e],{salt:g,override:c,getComputedToken:p,formatToken:s.Z,cssVar:h&&{prefix:h.prefix,key:h.key,unitless:u,ignore:d,preserve:f}});return[m,y,t?b:"",v,h]}},4595:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(274),o=n(2790);function i(e){return e>=0&&e<=255}const a=function(e,t){const{r:n,g:o,b:a,a:l}=new r.C(e).toRgb();if(l<1)return e;const{r:s,g:c,b:u}=new r.C(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-s*(1-e))/e),l=Math.round((o-c*(1-e))/e),d=Math.round((a-u*(1-e))/e);if(i(t)&&i(l)&&i(d))return new r.C({r:t,g:l,b:d,a:Math.round(100*e)/100}).toRgbString()}return new r.C({r:n,g:o,b:a,a:1}).toRgbString()};var l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete i[e]}));const s=Object.assign(Object.assign({},n),i),c=1200,u=1600;if(!1===s.motion){const e="0s";s.motionDurationFast=e,s.motionDurationMid=e,s.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},s),{colorFillContent:s.colorFillSecondary,colorFillContentHover:s.colorFill,colorFillAlter:s.colorFillQuaternary,colorBgContainerDisabled:s.colorFillTertiary,colorBorderBg:s.colorBgContainer,colorSplit:a(s.colorBorderSecondary,s.colorBgContainer),colorTextPlaceholder:s.colorTextQuaternary,colorTextDisabled:s.colorTextQuaternary,colorTextHeading:s.colorText,colorTextLabel:s.colorTextSecondary,colorTextDescription:s.colorTextTertiary,colorTextLightSolid:s.colorWhite,colorHighlight:s.colorError,colorBgTextHover:s.colorFillSecondary,colorBgTextActive:s.colorFill,colorIcon:s.colorTextTertiary,colorIconHover:s.colorText,colorErrorOutline:a(s.colorErrorBg,s.colorBgContainer),colorWarningOutline:a(s.colorWarningBg,s.colorBgContainer),fontSizeIcon:s.fontSizeSM,lineWidthFocus:4*s.lineWidth,lineWidth:s.lineWidth,controlOutlineWidth:2*s.lineWidth,controlInteractiveSize:s.controlHeight/2,controlItemBgHover:s.colorFillTertiary,controlItemBgActive:s.colorPrimaryBg,controlItemBgActiveHover:s.colorPrimaryBgHover,controlItemBgActiveDisabled:s.colorFill,controlTmpOutline:s.colorFillQuaternary,controlOutline:a(s.colorPrimaryBg,s.colorBgContainer),lineType:s.lineType,borderRadius:s.borderRadius,borderRadiusXS:s.borderRadiusXS,borderRadiusSM:s.borderRadiusSM,borderRadiusLG:s.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:s.sizeXXS,paddingXS:s.sizeXS,paddingSM:s.sizeSM,padding:s.size,paddingMD:s.sizeMD,paddingLG:s.sizeLG,paddingXL:s.sizeXL,paddingContentHorizontalLG:s.sizeLG,paddingContentVerticalLG:s.sizeMS,paddingContentHorizontal:s.sizeMS,paddingContentVertical:s.sizeSM,paddingContentHorizontalSM:s.size,paddingContentVerticalSM:s.sizeXS,marginXXS:s.sizeXXS,marginXS:s.sizeXS,marginSM:s.sizeSM,margin:s.size,marginMD:s.sizeMD,marginLG:s.sizeLG,marginXL:s.sizeXL,marginXXL:s.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:c,screenXLMin:c,screenXLMax:1599,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new r.C("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new r.C("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new r.C("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",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)"}),i)}},1939:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>_,I$:()=>T,bk:()=>O});var r=n(7294),o=n(7395),i=(n(6790),n(3124)),a=n(4747),l=n(7606),s=n(5671),c=n(3144),u=n(2963),d=n(8814),f=n(1120),p=n(9340);const h=(0,c.Z)((function e(){(0,s.Z)(this,e)}));let g=function(e){function t(e){var n,r,o,i;return(0,s.Z)(this,t),r=this,o=t,o=(0,f.Z)(o),(n=(0,u.Z)(r,(0,d.Z)()?Reflect.construct(o,i||[],(0,f.Z)(r).constructor):o.apply(r,i))).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,p.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),t}(h);const m="CALC_UNIT";function v(e){return"number"==typeof e?`${e}${m}`:e}let b=function(e){function t(e){var n,r,o,i;return(0,s.Z)(this,t),r=this,o=t,o=(0,f.Z)(o),(n=(0,u.Z)(r,(0,d.Z)()?Reflect.construct(o,i||[],(0,f.Z)(r).constructor):o.apply(r,i))).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=v(e):"string"==typeof e&&(n.result=e),n}return(0,p.Z)(t,e),(0,c.Z)(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${v(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${v(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{},n=new RegExp(`${m}`,"g");return this.result=this.result.replace(n,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}]),t}(h);const y=e=>{const t="css"===e?b:g;return e=>new t(e)};var S=n(5503),w=n(3269);const E=(e,t,n)=>{var r;return"function"==typeof n?n((0,S.TS)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},C=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==o?void 0:o[t])||(null==o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null==o?void 0:o[t]))}))}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i},x=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function _(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const c=Array.isArray(e)?e:[e,e],[u]=c,d=c.join("-");return e=>{const[c,f,p,h,g]=(0,l.ZP)(),{getPrefixCls:m,iconPrefixCls:v,csp:b}=(0,r.useContext)(i.E_),_=m(),O=g?"css":"js",T=y(O),{max:k,min:R}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.bf)(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.bf)(e))).join(",")})`}}}(O),$={theme:c,token:h,hashId:p,nonce:()=>null==b?void 0:b.nonce,clientOnly:s.clientOnly,order:s.order||-999};(0,o.xy)(Object.assign(Object.assign({},$),{clientOnly:!1,path:["Shared",_]}),(()=>[{"&":(0,a.Lx)(h)}])),(0,w.Z)(v,b);return[(0,o.xy)(Object.assign(Object.assign({},$),{path:[d,e,v]}),(()=>{if(!1===s.injectStyle)return[];const{token:r,flush:i}=(0,S.ZP)(h),l=E(u,f,n),c=`.${e}`,d=C(u,f,l,{deprecatedTokens:s.deprecatedTokens});g&&Object.keys(l).forEach((e=>{l[e]=`var(${(0,o.ks)(e,x(u,g.prefix))})`}));const m=(0,S.TS)(r,{componentCls:c,prefixCls:e,iconCls:`.${v}`,antCls:`.${_}`,calc:T,max:k,min:R},g?l:d),b=t(m,{hashId:p,prefixCls:e,rootPrefixCls:_,iconPrefixCls:v});return i(u,d),[!1===s.resetStyle?null:(0,a.du)(m,e),b]})),p]}}const O=(e,t,n,r)=>{const o=_(e,t,n,Object.assign({resetStyle:!1,order:-998},r));return e=>{let{prefixCls:t}=e;return o(t),null}},T=(e,t,n,i)=>{const a=_(e,t,n,i),s=((e,t,n)=>{function i(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:a={},injectStyle:s=!0}=null!=n?n:{},c={[i("zIndexPopup")]:!0};Object.keys(a).forEach((e=>{c[i(e)]=a[e]}));const u=r=>{let{rootCls:a,cssVar:s}=r;const[,u]=(0,l.ZP)();return(0,o.CI)({path:[e],prefix:s.prefix,key:null==s?void 0:s.key,unitless:Object.assign(Object.assign({},l.NJ),c),ignore:l.ID,token:u,scope:a},(()=>{const r=E(e,u,t),o=C(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((e=>{o[i(e)]=o[e],delete o[e]})),o})),null};return t=>{const[,,,,n]=(0,l.ZP)();return[o=>s&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,i);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=a(e),[r,o]=s(t);return[r,n,o]}}},5503:(e,t,n)=>{"use strict";n.d(t,{TS:()=>i,ZP:()=>s});const r="undefined"!=typeof CSSINJS_STATISTIC;let o=!0;function i(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),o=!0,i}const a={};function l(){}const s=e=>{let t,n=e,i=l;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),i=(e,n)=>{var r;a[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=a[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:i}}},3269:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7395),o=n(4747),i=n(7606);const a=(e,t)=>{const[n,a]=(0,i.ZP)();return(0,r.xy)({theme:n,token:a,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,o.Ro)()),{[`.${e} .${e}-icon`]:{display:"block"}})}]))}},7029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Attribute=void 0;class n{constructor(e,t,n,r){this.name=e,this.modelName=t,this.defaultValue=n,this.alwaysWriteJson=r,this.required=!1,this.fixed=!1,this.type="any"}setType(e){return this.type=e,this}setRequired(){return this.required=!0,this}setFixed(){return this.fixed=!0,this}}t.Attribute=n,n.NUMBER="number",n.STRING="string",n.BOOLEAN="boolean"},8267:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeDefinitions=void 0;const r=n(7029);t.AttributeDefinitions=class{constructor(){this.attributes=[],this.nameToAttribute={}}addWithAll(e,t,n,o){const i=new r.Attribute(e,t,n,o);return this.attributes.push(i),this.nameToAttribute[e]=i,i}addInherited(e,t){return this.addWithAll(e,t,void 0,!1)}add(e,t,n){return this.addWithAll(e,void 0,t,n)}getAttributes(){return this.attributes}getModelName(e){const t=this.nameToAttribute[e];if(void 0!==t)return t.modelName}toJson(e,t){for(const n of this.attributes){const r=t[n.name];(n.alwaysWriteJson||r!==n.defaultValue)&&(e[n.name]=r)}}fromJson(e,t){for(const n of this.attributes){const r=e[n.name];t[n.name]=void 0===r?n.defaultValue:r}}update(e,t){for(const n of this.attributes)if(e.hasOwnProperty(n.name)){const r=e[n.name];void 0===r?delete t[n.name]:t[n.name]=r}}setDefaults(e){for(const t of this.attributes)e[t.name]=t.defaultValue}toTypescriptInterface(e,t){const n=[],r=this.attributes.sort(((e,t)=>e.name.localeCompare(t.name)));n.push("export interface I"+e+"Attributes {");for(let e=0;e0?" // "+e:""))}}return n.push("}"),n.join("\n")}}},232:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DockLocation=void 0;const r=n(3380),o=n(807);class i{static getByName(e){return i.values[e]}static getLocation(e,t,n){if(t=(t-e.x)/e.width,n=(n-e.y)/e.height,t>=.25&&t<.75&&n>=.25&&n<.75)return i.CENTER;const r=n>=1-t;return n>=t?r?i.BOTTOM:i.LEFT:r?i.RIGHT:i.TOP}constructor(e,t,n){this._name=e,this._orientation=t,this._indexPlus=n,i.values[this._name]=this}getName(){return this._name}getOrientation(){return this._orientation}getDockRect(e){return this===i.TOP?new o.Rect(e.x,e.y,e.width,e.height/2):this===i.BOTTOM?new o.Rect(e.x,e.getBottom()-e.height/2,e.width,e.height/2):this===i.LEFT?new o.Rect(e.x,e.y,e.width/2,e.height):this===i.RIGHT?new o.Rect(e.getRight()-e.width/2,e.y,e.width/2,e.height):e.clone()}split(e,t){if(this===i.TOP){return{start:new o.Rect(e.x,e.y,e.width,t),end:new o.Rect(e.x,e.y+t,e.width,e.height-t)}}if(this===i.LEFT){return{start:new o.Rect(e.x,e.y,t,e.height),end:new o.Rect(e.x+t,e.y,e.width-t,e.height)}}if(this===i.RIGHT){return{start:new o.Rect(e.getRight()-t,e.y,t,e.height),end:new o.Rect(e.x,e.y,e.width-t,e.height)}}return{start:new o.Rect(e.x,e.getBottom()-t,e.width,t),end:new o.Rect(e.x,e.y,e.width,e.height-t)}}reflect(){return this===i.TOP?i.BOTTOM:this===i.LEFT?i.RIGHT:this===i.RIGHT?i.LEFT:i.TOP}toString(){return"(DockLocation: name="+this._name+", orientation="+this._orientation+")"}}t.DockLocation=i,i.values={},i.TOP=new i("top",r.Orientation.VERT,0),i.BOTTOM=new i("bottom",r.Orientation.VERT,1),i.LEFT=new i("left",r.Orientation.HORZ,0),i.RIGHT=new i("right",r.Orientation.HORZ,1),i.CENTER=new i("center",r.Orientation.VERT,0)},268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DragDrop=void 0;const r=n(807),o=!("undefined"==typeof window||!window.document||!window.document.createElement);class i{constructor(){this._manualGlassManagement=!1,this._startX=0,this._startY=0,this._dragDepth=0,this._glassShowing=!1,this._dragging=!1,this._active=!1,o&&(this._glass=document.createElement("div"),this._glass.style.zIndex="998",this._glass.style.backgroundColor="transparent",this._glass.style.outline="none"),this._defaultGlassCursor="default",this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onKeyPress=this._onKeyPress.bind(this),this._onDragCancel=this._onDragCancel.bind(this),this._onDragEnter=this._onDragEnter.bind(this),this._onDragLeave=this._onDragLeave.bind(this),this.resizeGlass=this.resizeGlass.bind(this),this._lastClick=0,this._clickX=0,this._clickY=0}addGlass(e){var t;this._glassShowing?this._manualGlassManagement=!0:(this._document||(this._document=window.document),this._rootElement||(this._rootElement=this._document.body),this.resizeGlass(),null===(t=this._document.defaultView)||void 0===t||t.addEventListener("resize",this.resizeGlass),this._document.body.appendChild(this._glass),this._glass.tabIndex=-1,this._glass.focus(),this._glass.addEventListener("keydown",this._onKeyPress),this._glass.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._glass.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._glass.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._glassShowing=!0,this._fDragCancel=e,this._manualGlassManagement=!1)}resizeGlass(){r.Rect.fromElement(this._rootElement).positionElement(this._glass,"fixed")}hideGlass(){var e;this._glassShowing&&(this._document.body.removeChild(this._glass),null===(e=this._document.defaultView)||void 0===e||e.removeEventListener("resize",this.resizeGlass),this._glassShowing=!1,this._document=void 0,this._rootElement=void 0,this.setGlassCursorOverride(void 0))}_updateGlassCursor(){var e;this._glass.style.cursor=null!==(e=this._glassCursorOverride)&&void 0!==e?e:this._defaultGlassCursor}_setDefaultGlassCursor(e){this._defaultGlassCursor=e,this._updateGlassCursor()}setGlassCursorOverride(e){this._glassCursorOverride=e,this._updateGlassCursor()}startDrag(e,t,n,r,o,i,a,l,s){if(e&&this._lastEvent&&this._lastEvent.type.startsWith("touch")&&e.type.startsWith("mouse")&&e.timeStamp-this._lastEvent.timeStamp<500)return;if(this._dragging)return;this._lastEvent=e,this._document=l||window.document,this._rootElement=s||this._document.body;const c=this._getLocationEvent(e);this.addGlass(o),e?(this._startX=c.clientX,this._startY=c.clientY,window.matchMedia&&!window.matchMedia("(pointer: fine)").matches||this._setDefaultGlassCursor(getComputedStyle(e.target).cursor),this._stopPropagation(e),this._preventDefault(e)):(this._startX=0,this._startY=0,this._setDefaultGlassCursor("default")),this._dragging=!1,this._fDragStart=t,this._fDragMove=n,this._fDragEnd=r,this._fDragCancel=o,this._fClick=i,this._fDblClick=a,this._active=!0,"dragenter"===(null==e?void 0:e.type)?(this._dragDepth=1,this._rootElement.addEventListener("dragenter",this._onDragEnter,{passive:!1}),this._rootElement.addEventListener("dragover",this._onMouseMove,{passive:!1}),this._rootElement.addEventListener("dragleave",this._onDragLeave,{passive:!1}),this._document.addEventListener("dragend",this._onDragCancel,{passive:!1}),this._document.addEventListener("drop",this._onMouseUp,{passive:!1})):(this._document.addEventListener("mouseup",this._onMouseUp,{passive:!1}),this._document.addEventListener("mousemove",this._onMouseMove,{passive:!1}),this._document.addEventListener("touchend",this._onMouseUp,{passive:!1}),this._document.addEventListener("touchmove",this._onMouseMove,{passive:!1}))}isDragging(){return this._dragging}isActive(){return this._active}toString(){return"(DragDrop: startX="+this._startX+", startY="+this._startY+", dragging="+this._dragging+")"}_onKeyPress(e){"Escape"===e.code&&this._onDragCancel()}_onDragCancel(){this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this.hideGlass(),void 0!==this._fDragCancel&&this._fDragCancel(this._dragging),this._dragging=!1,this._active=!1}_getLocationEvent(e){let t=e;return e&&e.touches&&(t=e.touches[0]),t}_getLocationEventEnd(e){let t=e;return e.changedTouches&&(t=e.changedTouches[0]),t}_stopPropagation(e){e.stopPropagation&&e.stopPropagation()}_preventDefault(e){return e.preventDefault&&e.cancelable&&e.preventDefault(),e}_onMouseMove(e){this._lastEvent=e;const t=this._getLocationEvent(e);return this._stopPropagation(e),this._preventDefault(e),!this._dragging&&(Math.abs(this._startX-t.clientX)>5||Math.abs(this._startY-t.clientY)>5)&&(this._dragging=!0,this._fDragStart&&(this._setDefaultGlassCursor("move"),this._dragging=this._fDragStart({clientX:this._startX,clientY:this._startY}))),this._dragging&&this._fDragMove&&this._fDragMove(t),!1}_onMouseUp(e){this._lastEvent=e;const t=this._getLocationEventEnd(e);if(this._stopPropagation(e),this._preventDefault(e),this._active=!1,this._rootElement.removeEventListener("dragenter",this._onDragEnter),this._rootElement.removeEventListener("dragover",this._onMouseMove),this._rootElement.removeEventListener("dragleave",this._onDragLeave),this._document.removeEventListener("dragend",this._onDragCancel),this._document.removeEventListener("drop",this._onMouseUp),this._document.removeEventListener("mousemove",this._onMouseMove),this._document.removeEventListener("mouseup",this._onMouseUp),this._document.removeEventListener("touchend",this._onMouseUp),this._document.removeEventListener("touchmove",this._onMouseMove),this._manualGlassManagement||this.hideGlass(),this._dragging)this._dragging=!1,this._fDragEnd&&this._fDragEnd(e);else if(this._fDragCancel&&this._fDragCancel(this._dragging),Math.abs(this._startX-t.clientX)<=5&&Math.abs(this._startY-t.clientY)<=5){let n=!1;const r=(new Date).getTime();Math.abs(this._clickX-t.clientX)<=5&&Math.abs(this._clickY-t.clientY)<=5&&r-this._lastClick<500&&this._fDblClick&&(this._fDblClick(e),n=!0),!n&&this._fClick&&this._fClick(e),this._lastClick=r,this._clickX=t.clientX,this._clickY=t.clientY}return!1}_onDragEnter(e){return this._preventDefault(e),this._stopPropagation(e),this._dragDepth++,!1}_onDragLeave(e){return this._preventDefault(e),this._stopPropagation(e),this._dragDepth--,this._dragDepth<=0&&this._onDragCancel(),!1}}t.DragDrop=i,i.instance=new i},5748:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropInfo=void 0;t.DropInfo=class{constructor(e,t,n,r,o){this.node=e,this.rect=t,this.location=n,this.index=r,this.className=o}}},5551:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18nLabel=void 0,function(e){e.Close_Tab="Close",e.Close_Tabset="Close tabset",e.Move_Tab="Move: ",e.Move_Tabset="Move tabset",e.Maximize="Maximize tabset",e.Restore="Restore tabset",e.Float_Tab="Show selected tab in floating window",e.Overflow_Menu_Tooltip="Hidden tabs",e.Floating_Window_Message="This panel is shown in a floating window",e.Floating_Window_Show_Window="Show window",e.Floating_Window_Dock_Window="Dock window",e.Error_rendering_component="Error rendering component"}(t.I18nLabel||(t.I18nLabel={}))},3380:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Orientation=void 0;class n{static flip(e){return e===n.HORZ?n.VERT:n.HORZ}constructor(e){this._name=e}getName(){return this._name}toString(){return this._name}}t.Orientation=n,n.HORZ=new n("horz"),n.VERT=new n("vert")},31:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showPopup=void 0;const r=n(7294),o=n(268),i=n(4115),a=n(5797);t.showPopup=function(e,t,n,a,s,c){var u;const d=a.getRootDiv(),f=a.getClassName,p=e.ownerDocument,h=e.getBoundingClientRect(),g=null!==(u=null==d?void 0:d.getBoundingClientRect())&&void 0!==u?u:new DOMRect(0,0,100,100),m=p.createElement("div");m.className=f(i.CLASSES.FLEXLAYOUT__POPUP_MENU_CONTAINER),h.leftv())),o.DragDrop.instance.setGlassCursorOverride("default"),d&&d.appendChild(m);const v=()=>{a.hidePortal(),o.DragDrop.instance.hideGlass(),d&&d.removeChild(m),m.removeEventListener("mousedown",b),p.removeEventListener("mousedown",y)},b=e=>{e.stopPropagation()},y=e=>{v()};m.addEventListener("mousedown",b),p.addEventListener("mousedown",y),a.showPortal(r.createElement(l,{currentDocument:p,onSelect:n,onHide:v,items:t,classNameMapper:f,layout:a,iconFactory:s,titleFactory:c}),m)};const l=e=>{const{items:t,onHide:n,onSelect:o,classNameMapper:l,layout:s,iconFactory:c,titleFactory:u}=e,d=t.map(((e,t)=>r.createElement("div",{key:e.index,className:l(i.CLASSES.FLEXLAYOUT__POPUP_MENU_ITEM),"data-layout-path":"/popup-menu/tb"+t,onClick:t=>((e,t)=>{o(e),n(),t.stopPropagation()})(e,t),title:e.node.getHelpText()},e.node.getModel().isLegacyOverflowMenu()?e.node._getNameForOverflowMenu():r.createElement(a.TabButtonStamp,{node:e.node,layout:s,iconFactory:c,titleFactory:u}))));return r.createElement("div",{className:l(i.CLASSES.FLEXLAYOUT__POPUP_MENU),"data-layout-path":"/popup-menu"},d)}},807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rect=void 0;const r=n(3380);class o{static empty(){return new o(0,0,0,0)}constructor(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}static fromElement(e){let{x:t,y:n,width:r,height:i}=e.getBoundingClientRect();return new o(t,n,r,i)}clone(){return new o(this.x,this.y,this.width,this.height)}equals(e){return this.x===(null==e?void 0:e.x)&&this.y===(null==e?void 0:e.y)&&this.width===(null==e?void 0:e.width)&&this.height===(null==e?void 0:e.height)}getBottom(){return this.y+this.height}getRight(){return this.x+this.width}getCenter(){return{x:this.x+this.width/2,y:this.y+this.height/2}}positionElement(e,t){this.styleWithPosition(e.style,t)}styleWithPosition(e,t="absolute"){return e.left=this.x+"px",e.top=this.y+"px",e.width=Math.max(0,this.width)+"px",e.height=Math.max(0,this.height)+"px",e.position=t,e}contains(e,t){return this.x<=e&&e<=this.getRight()&&this.y<=t&&t<=this.getBottom()}removeInsets(e){return new o(this.x+e.left,this.y+e.top,Math.max(0,this.width-e.left-e.right),Math.max(0,this.height-e.top-e.bottom))}centerInRect(e){this.x=(e.width-this.width)/2,this.y=(e.height-this.height)/2}_getSize(e){let t=this.width;return e===r.Orientation.VERT&&(t=this.height),t}toString(){return"(Rect: x="+this.x+", y="+this.y+", width="+this.width+", height="+this.height+")"}}t.Rect=o},4115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CLASSES=void 0,function(e){e.FLEXLAYOUT__BORDER="flexlayout__border",e.FLEXLAYOUT__BORDER_="flexlayout__border_",e.FLEXLAYOUT__BORDER_BUTTON="flexlayout__border_button",e.FLEXLAYOUT__BORDER_BUTTON_="flexlayout__border_button_",e.FLEXLAYOUT__BORDER_BUTTON_CONTENT="flexlayout__border_button_content",e.FLEXLAYOUT__BORDER_BUTTON_LEADING="flexlayout__border_button_leading",e.FLEXLAYOUT__BORDER_BUTTON_TRAILING="flexlayout__border_button_trailing",e.FLEXLAYOUT__BORDER_BUTTON__SELECTED="flexlayout__border_button--selected",e.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED="flexlayout__border_button--unselected",e.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW="flexlayout__border_toolbar_button_overflow",e.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_="flexlayout__border_toolbar_button_overflow_",e.FLEXLAYOUT__BORDER_INNER="flexlayout__border_inner",e.FLEXLAYOUT__BORDER_INNER_="flexlayout__border_inner_",e.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER="flexlayout__border_inner_tab_container",e.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_="flexlayout__border_inner_tab_container_",e.FLEXLAYOUT__BORDER_TAB_DIVIDER="flexlayout__border_tab_divider",e.FLEXLAYOUT__BORDER_SIZER="flexlayout__border_sizer",e.FLEXLAYOUT__BORDER_TOOLBAR="flexlayout__border_toolbar",e.FLEXLAYOUT__BORDER_TOOLBAR_="flexlayout__border_toolbar_",e.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON="flexlayout__border_toolbar_button",e.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT="flexlayout__border_toolbar_button-float",e.FLEXLAYOUT__DRAG_RECT="flexlayout__drag_rect",e.FLEXLAYOUT__EDGE_RECT="flexlayout__edge_rect",e.FLEXLAYOUT__EDGE_RECT_TOP="flexlayout__edge_rect_top",e.FLEXLAYOUT__EDGE_RECT_LEFT="flexlayout__edge_rect_left",e.FLEXLAYOUT__EDGE_RECT_BOTTOM="flexlayout__edge_rect_bottom",e.FLEXLAYOUT__EDGE_RECT_RIGHT="flexlayout__edge_rect_right",e.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER="flexlayout__error_boundary_container",e.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT="flexlayout__error_boundary_content",e.FLEXLAYOUT__FLOATING_WINDOW_CONTENT="flexlayout__floating_window_content",e.FLEXLAYOUT__FLOATING_WINDOW_TAB="flexlayout__floating_window_tab",e.FLEXLAYOUT__LAYOUT="flexlayout__layout",e.FLEXLAYOUT__OUTLINE_RECT="flexlayout__outline_rect",e.FLEXLAYOUT__OUTLINE_RECT_EDGE="flexlayout__outline_rect_edge",e.FLEXLAYOUT__SPLITTER="flexlayout__splitter",e.FLEXLAYOUT__SPLITTER_EXTRA="flexlayout__splitter_extra",e.FLEXLAYOUT__SPLITTER_="flexlayout__splitter_",e.FLEXLAYOUT__SPLITTER_BORDER="flexlayout__splitter_border",e.FLEXLAYOUT__SPLITTER_DRAG="flexlayout__splitter_drag",e.FLEXLAYOUT__TAB="flexlayout__tab",e.FLEXLAYOUT__TABSET="flexlayout__tabset",e.FLEXLAYOUT__TABSET_HEADER="flexlayout__tabset_header",e.FLEXLAYOUT__TABSET_HEADER_SIZER="flexlayout__tabset_header_sizer",e.FLEXLAYOUT__TABSET_HEADER_CONTENT="flexlayout__tabset_header_content",e.FLEXLAYOUT__TABSET_MAXIMIZED="flexlayout__tabset-maximized",e.FLEXLAYOUT__TABSET_SELECTED="flexlayout__tabset-selected",e.FLEXLAYOUT__TABSET_SIZER="flexlayout__tabset_sizer",e.FLEXLAYOUT__TABSET_TAB_DIVIDER="flexlayout__tabset_tab_divider",e.FLEXLAYOUT__TABSET_CONTENT="flexlayout__tabset_content",e.FLEXLAYOUT__TABSET_TABBAR_INNER="flexlayout__tabset_tabbar_inner",e.FLEXLAYOUT__TABSET_TABBAR_INNER_="flexlayout__tabset_tabbar_inner_",e.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER="flexlayout__tabset_tabbar_inner_tab_container",e.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_="flexlayout__tabset_tabbar_inner_tab_container_",e.FLEXLAYOUT__TABSET_TABBAR_OUTER="flexlayout__tabset_tabbar_outer",e.FLEXLAYOUT__TABSET_TABBAR_OUTER_="flexlayout__tabset_tabbar_outer_",e.FLEXLAYOUT__TAB_BORDER="flexlayout__tab_border",e.FLEXLAYOUT__TAB_BORDER_="flexlayout__tab_border_",e.FLEXLAYOUT__TAB_BUTTON="flexlayout__tab_button",e.FLEXLAYOUT__TAB_BUTTON_STRETCH="flexlayout__tab_button_stretch",e.FLEXLAYOUT__TAB_BUTTON_CONTENT="flexlayout__tab_button_content",e.FLEXLAYOUT__TAB_BUTTON_LEADING="flexlayout__tab_button_leading",e.FLEXLAYOUT__TAB_BUTTON_OVERFLOW="flexlayout__tab_button_overflow",e.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT="flexlayout__tab_button_overflow_count",e.FLEXLAYOUT__TAB_BUTTON_TEXTBOX="flexlayout__tab_button_textbox",e.FLEXLAYOUT__TAB_BUTTON_TRAILING="flexlayout__tab_button_trailing",e.FLEXLAYOUT__TAB_BUTTON_STAMP="flexlayout__tab_button_stamp",e.FLEXLAYOUT__TAB_FLOATING="flexlayout__tab_floating",e.FLEXLAYOUT__TAB_FLOATING_INNER="flexlayout__tab_floating_inner",e.FLEXLAYOUT__TAB_TOOLBAR="flexlayout__tab_toolbar",e.FLEXLAYOUT__TAB_TOOLBAR_BUTTON="flexlayout__tab_toolbar_button",e.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_="flexlayout__tab_toolbar_button-",e.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT="flexlayout__tab_toolbar_button-float",e.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER="flexlayout__tab_toolbar_sticky_buttons_container",e.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE="flexlayout__tab_toolbar_button-close",e.FLEXLAYOUT__POPUP_MENU_CONTAINER="flexlayout__popup_menu_container",e.FLEXLAYOUT__POPUP_MENU_ITEM="flexlayout__popup_menu_item",e.FLEXLAYOUT__POPUP_MENU="flexlayout__popup_menu"}(t.CLASSES||(t.CLASSES={}))},6352:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5295),t),o(n(9349),t),o(n(3076),t),o(n(4268),t),o(n(1073),t),o(n(7562),t),o(n(7548),t),o(n(7984),t),o(n(161),t),o(n(6466),t),o(n(89),t),o(n(996),t),o(n(191),t),o(n(6677),t),o(n(2733),t),o(n(232),t),o(n(268),t),o(n(5748),t),o(n(5551),t),o(n(3380),t),o(n(807),t),o(n(4115),t)},9349:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;t.Action=class{constructor(e,t){this.type=e,this.data=t}}},3076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Actions=void 0;const r=n(9349);class o{static addNode(e,t,n,i,a){return new r.Action(o.ADD_NODE,{json:e,toNode:t,location:n.getName(),index:i,select:a})}static moveNode(e,t,n,i,a){return new r.Action(o.MOVE_NODE,{fromNode:e,toNode:t,location:n.getName(),index:i,select:a})}static deleteTab(e){return new r.Action(o.DELETE_TAB,{node:e})}static deleteTabset(e){return new r.Action(o.DELETE_TABSET,{node:e})}static renameTab(e,t){return new r.Action(o.RENAME_TAB,{node:e,text:t})}static selectTab(e){return new r.Action(o.SELECT_TAB,{tabNode:e})}static setActiveTabset(e){return new r.Action(o.SET_ACTIVE_TABSET,{tabsetNode:e})}static adjustSplit(e){const t=e.node1Id,n=e.node2Id;return new r.Action(o.ADJUST_SPLIT,{node1:t,weight1:e.weight1,pixelWidth1:e.pixelWidth1,node2:n,weight2:e.weight2,pixelWidth2:e.pixelWidth2})}static adjustBorderSplit(e,t){return new r.Action(o.ADJUST_BORDER_SPLIT,{node:e,pos:t})}static maximizeToggle(e){return new r.Action(o.MAXIMIZE_TOGGLE,{node:e})}static updateModelAttributes(e){return new r.Action(o.UPDATE_MODEL_ATTRIBUTES,{json:e})}static updateNodeAttributes(e,t){return new r.Action(o.UPDATE_NODE_ATTRIBUTES,{node:e,json:t})}static floatTab(e){return new r.Action(o.FLOAT_TAB,{node:e})}static unFloatTab(e){return new r.Action(o.UNFLOAT_TAB,{node:e})}}t.Actions=o,o.ADD_NODE="FlexLayout_AddNode",o.MOVE_NODE="FlexLayout_MoveNode",o.DELETE_TAB="FlexLayout_DeleteTab",o.DELETE_TABSET="FlexLayout_DeleteTabset",o.RENAME_TAB="FlexLayout_RenameTab",o.SELECT_TAB="FlexLayout_SelectTab",o.SET_ACTIVE_TABSET="FlexLayout_SetActiveTabset",o.ADJUST_SPLIT="FlexLayout_AdjustSplit",o.ADJUST_BORDER_SPLIT="FlexLayout_AdjustBorderSplit",o.MAXIMIZE_TOGGLE="FlexLayout_MaximizeToggle",o.UPDATE_MODEL_ATTRIBUTES="FlexLayout_UpdateModelAttributes",o.UPDATE_NODE_ATTRIBUTES="FlexLayout_UpdateNodeAttributes",o.FLOAT_TAB="FlexLayout_FloatTab",o.UNFLOAT_TAB="FlexLayout_UnFloatTab"},4268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BorderNode=void 0;const r=n(7029),o=n(8267),i=n(232),a=n(5748),l=n(3380),s=n(807),c=n(4115),u=n(89),d=n(191),f=n(6677),p=n(2968);class h extends u.Node{static _fromJson(e,t){const n=i.DockLocation.getByName(e.location),r=new h(n,e,t);return e.children&&(r._children=e.children.map((e=>{const n=f.TabNode._fromJson(e,t);return n._setParent(r),n}))),r}static _createAttributeDefinitions(){const e=new o.AttributeDefinitions;return e.add("type",h.TYPE,!0).setType(r.Attribute.STRING).setFixed(),e.add("selected",-1).setType(r.Attribute.NUMBER),e.add("show",!0).setType(r.Attribute.BOOLEAN),e.add("config",void 0).setType("any"),e.addInherited("barSize","borderBarSize").setType(r.Attribute.NUMBER),e.addInherited("enableDrop","borderEnableDrop").setType(r.Attribute.BOOLEAN),e.addInherited("className","borderClassName").setType(r.Attribute.STRING),e.addInherited("autoSelectTabWhenOpen","borderAutoSelectTabWhenOpen").setType(r.Attribute.BOOLEAN),e.addInherited("autoSelectTabWhenClosed","borderAutoSelectTabWhenClosed").setType(r.Attribute.BOOLEAN),e.addInherited("size","borderSize").setType(r.Attribute.NUMBER),e.addInherited("minSize","borderMinSize").setType(r.Attribute.NUMBER),e.addInherited("enableAutoHide","borderEnableAutoHide").setType(r.Attribute.BOOLEAN),e}constructor(e,t,n){super(n),this._adjustedSize=0,this._calculatedBorderBarSize=0,this._location=e,this._drawChildren=[],this._attributes.id=`border_${e.getName()}`,h._attributeDefinitions.fromJson(t,this._attributes),n._addNode(this)}getLocation(){return this._location}getTabHeaderRect(){return this._tabHeaderRect}getRect(){return this._tabHeaderRect}getContentRect(){return this._contentRect}isEnableDrop(){return this._getAttr("enableDrop")}isAutoSelectTab(e){return null==e&&(e=-1!==this.getSelected()),e?this._getAttr("autoSelectTabWhenOpen"):this._getAttr("autoSelectTabWhenClosed")}getClassName(){return this._getAttr("className")}calcBorderBarSize(e){const t=this._getAttr("barSize");this._calculatedBorderBarSize=0!==t?t:e.borderBarSize}getBorderBarSize(){return this._calculatedBorderBarSize}getSize(){const e=this._getAttr("size"),t=this.getSelected();if(-1===t)return e;{const n=this._children[t],r=this._location._orientation===l.Orientation.HORZ?n._getAttr("borderWidth"):n._getAttr("borderHeight");return-1===r?e:r}}getMinSize(){return this._getAttr("minSize")}getSelected(){return this._attributes.selected}getSelectedNode(){if(-1!==this.getSelected())return this._children[this.getSelected()]}getOrientation(){return this._location.getOrientation()}getConfig(){return this._attributes.config}isMaximized(){return!1}isShowing(){return!!this._attributes.show&&(this._model._getShowHiddenBorder()===this._location||!this.isAutoHide()||0!==this._children.length)}isAutoHide(){return this._getAttr("enableAutoHide")}_setSelected(e){this._attributes.selected=e}_setSize(e){const t=this.getSelected();if(-1===t)this._attributes.size=e;else{const n=this._children[t];-1===(this._location._orientation===l.Orientation.HORZ?n._getAttr("borderWidth"):n._getAttr("borderHeight"))?this._attributes.size=e:this._location._orientation===l.Orientation.HORZ?n._setBorderWidth(e):n._setBorderHeight(e)}}_updateAttrs(e){h._attributeDefinitions.update(e,this._attributes)}_getDrawChildren(){return this._drawChildren}_setAdjustedSize(e){this._adjustedSize=e}_getAdjustedSize(){return this._adjustedSize}_layoutBorderOuter(e,t){this.calcBorderBarSize(t);const n=this._location.split(e,this.getBorderBarSize());return this._tabHeaderRect=n.start,n.end}_layoutBorderInner(e,t){this._drawChildren=[];const n=this._location,r=n.split(e,this._adjustedSize+this._model.getSplitterSize()),o=n.reflect().split(r.start,this._model.getSplitterSize());this._contentRect=o.end;for(let e=0;e0){let e=this._children[0],n=e.getTabRect();const i=n.y,l=n.height;let u=this._tabHeaderRect.x,d=0;for(let f=0;f=u&&t0){let e=this._children[0],t=e.getTabRect();const i=t.x,l=t.width;let u=this._tabHeaderRect.y,d=0;for(let f=0;f=u&&n0&&n--;let a=n;-1===a&&(a=this._children.length),e.getType()===f.TabNode.TYPE&&this._addChild(e,a),(r||!1!==r&&this.isAutoSelectTab())&&this._setSelected(a),this._model._tidy()}toJson(){const e={};return h._attributeDefinitions.toJson(e,this._attributes),e.location=this._location.getName(),e.children=this._children.map((e=>e.toJson())),e}_getSplitterBounds(e,t=!1){const n=[0,0],r=t?this.getMinSize():0,o=this._model._getOuterInnerRects().outer,a=this._model._getOuterInnerRects().inner,l=this._model.getRoot();return this._location===i.DockLocation.TOP?(n[0]=o.y+r,n[1]=Math.max(n[0],a.getBottom()-e.getHeight()-l.getMinHeight())):this._location===i.DockLocation.LEFT?(n[0]=o.x+r,n[1]=Math.max(n[0],a.getRight()-e.getWidth()-l.getMinWidth())):this._location===i.DockLocation.BOTTOM?(n[1]=o.getBottom()-e.getHeight()-r,n[0]=Math.min(n[1],a.y+l.getMinHeight())):this._location===i.DockLocation.RIGHT&&(n[1]=o.getRight()-e.getWidth()-r,n[0]=Math.min(n[1],a.x+l.getMinWidth())),n}_calculateSplit(e,t){const n=this._getSplitterBounds(e);return this._location===i.DockLocation.BOTTOM||this._location===i.DockLocation.RIGHT?Math.max(0,n[1]-t):Math.max(0,t-n[0])}_getAttributeDefinitions(){return h._attributeDefinitions}static getAttributeDefinitions(){return h._attributeDefinitions}}t.BorderNode=h,h.TYPE="border",h._attributeDefinitions=h._createAttributeDefinitions()},1073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BorderSet=void 0;const r=n(3380),o=n(4268);class i{static _fromJson(e,t){const n=new i(t);return n._borders=e.map((e=>o.BorderNode._fromJson(e,t))),n}constructor(e){this._model=e,this._borders=[]}getBorders(){return this._borders}_forEachNode(e){for(const t of this._borders){e(t,0);for(const n of t.getChildren())n._forEachNode(e,1)}}_toJson(){return this._borders.map((e=>e.toJson()))}_layoutBorder(e,t){const n=e.outer,o=this._model.getRoot();let i=Math.max(0,n.height-o.getMinHeight()),a=Math.max(0,n.width-o.getMinWidth()),l=0,s=0,c=0,u=0;const d=this._borders.filter((e=>e.isShowing()));for(const e of d){e._setAdjustedSize(e.getSize());const t=-1!==e.getSelected();e.getLocation().getOrientation()===r.Orientation.HORZ?(s+=e.getBorderBarSize(),t&&(a-=this._model.getSplitterSize(),s+=e.getSize(),u+=e.getSize())):(l+=e.getBorderBarSize(),t&&(i-=this._model.getSplitterSize(),l+=e.getSize(),c+=e.getSize()))}let f=0,p=!1;for(;s>a&&u>0||l>i&&c>0;){const e=d[f];if(-1!==e.getSelected()){const t=e._getAdjustedSize();s>a&&u>0&&e.getLocation().getOrientation()===r.Orientation.HORZ&&t>0&&t>e.getMinSize()?(e._setAdjustedSize(t-1),s--,u--,p=!0):l>i&&c>0&&e.getLocation().getOrientation()===r.Orientation.VERT&&t>0&&t>e.getMinSize()&&(e._setAdjustedSize(t-1),l--,c--,p=!0)}if(f=(f+1)%d.length,0===f){if(!p)break;p=!1}}for(const n of d)e.outer=n._layoutBorderOuter(e.outer,t);e.inner=e.outer;for(const n of d)e.inner=n._layoutBorderInner(e.inner,t);return e}_findDropTargetNode(e,t,n){for(const r of this._borders)if(r.isShowing()){const o=r.canDrop(e,t,n);if(void 0!==o)return o}}}t.BorderSet=i},7562:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ICloseType=void 0,function(e){e[e.Visible=1]="Visible",e[e.Always=2]="Always",e[e.Selected=3]="Selected"}(t.ICloseType||(t.ICloseType={}))},7548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},161:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Model=void 0;const r=n(7029),o=n(8267),i=n(232),a=n(3380),l=n(807),s=n(3076),c=n(4268),u=n(1073),d=n(996),f=n(6677),p=n(2733),h=n(2968);class g{static fromJson(e){const t=new g;return g._attributeDefinitions.fromJson(e.global,t._attributes),e.borders&&(t._borders=u.BorderSet._fromJson(e.borders,t)),t._root=d.RowNode._fromJson(e.layout,t),t._tidy(),t}static _createAttributeDefinitions(){const e=new o.AttributeDefinitions;return e.add("legacyOverflowMenu",!1).setType(r.Attribute.BOOLEAN),e.add("enableEdgeDock",!0).setType(r.Attribute.BOOLEAN),e.add("rootOrientationVertical",!1).setType(r.Attribute.BOOLEAN),e.add("marginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),e.add("enableUseVisibility",!1).setType(r.Attribute.BOOLEAN),e.add("enableRotateBorderIcons",!0).setType(r.Attribute.BOOLEAN),e.add("splitterSize",-1).setType(r.Attribute.NUMBER),e.add("splitterExtra",0).setType(r.Attribute.NUMBER),e.add("tabEnableClose",!0).setType(r.Attribute.BOOLEAN),e.add("tabCloseType",1).setType("ICloseType"),e.add("tabEnableFloat",!1).setType(r.Attribute.BOOLEAN),e.add("tabEnableDrag",!0).setType(r.Attribute.BOOLEAN),e.add("tabEnableRename",!0).setType(r.Attribute.BOOLEAN),e.add("tabContentClassName",void 0).setType(r.Attribute.STRING),e.add("tabClassName",void 0).setType(r.Attribute.STRING),e.add("tabIcon",void 0).setType(r.Attribute.STRING),e.add("tabEnableRenderOnDemand",!0).setType(r.Attribute.BOOLEAN),e.add("tabDragSpeed",.3).setType(r.Attribute.NUMBER),e.add("tabBorderWidth",-1).setType(r.Attribute.NUMBER),e.add("tabBorderHeight",-1).setType(r.Attribute.NUMBER),e.add("tabSetEnableDeleteWhenEmpty",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableDrop",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableDrag",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableDivide",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableMaximize",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableClose",!1).setType(r.Attribute.BOOLEAN),e.add("tabSetEnableSingleTabStretch",!1).setType(r.Attribute.BOOLEAN),e.add("tabSetAutoSelectTab",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetClassNameTabStrip",void 0).setType(r.Attribute.STRING),e.add("tabSetClassNameHeader",void 0).setType(r.Attribute.STRING),e.add("tabSetEnableTabStrip",!0).setType(r.Attribute.BOOLEAN),e.add("tabSetHeaderHeight",0).setType(r.Attribute.NUMBER),e.add("tabSetTabStripHeight",0).setType(r.Attribute.NUMBER),e.add("tabSetMarginInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),e.add("tabSetBorderInsets",{top:0,right:0,bottom:0,left:0}).setType("IInsets"),e.add("tabSetTabLocation","top").setType("ITabLocation"),e.add("tabSetMinWidth",0).setType(r.Attribute.NUMBER),e.add("tabSetMinHeight",0).setType(r.Attribute.NUMBER),e.add("borderSize",200).setType(r.Attribute.NUMBER),e.add("borderMinSize",0).setType(r.Attribute.NUMBER),e.add("borderBarSize",0).setType(r.Attribute.NUMBER),e.add("borderEnableDrop",!0).setType(r.Attribute.BOOLEAN),e.add("borderAutoSelectTabWhenOpen",!0).setType(r.Attribute.BOOLEAN),e.add("borderAutoSelectTabWhenClosed",!1).setType(r.Attribute.BOOLEAN),e.add("borderClassName",void 0).setType(r.Attribute.STRING),e.add("borderEnableAutoHide",!1).setType(r.Attribute.BOOLEAN),e}constructor(){this._borderRects={inner:l.Rect.empty(),outer:l.Rect.empty()},this._attributes={},this._idMap={},this._borders=new u.BorderSet(this),this._pointerFine=!0,this._showHiddenBorder=i.DockLocation.CENTER}_setChangeListener(e){this._changeListener=e}getActiveTabset(){return this._activeTabSet&&this.getNodeById(this._activeTabSet.getId())?this._activeTabSet:void 0}_getShowHiddenBorder(){return this._showHiddenBorder}_setShowHiddenBorder(e){this._showHiddenBorder=e}_setActiveTabset(e){this._activeTabSet=e}getMaximizedTabset(){return this._maximizedTabSet}_setMaximizedTabset(e){this._maximizedTabSet=e}getRoot(){return this._root}isRootOrientationVertical(){return this._attributes.rootOrientationVertical}isUseVisibility(){return this._attributes.enableUseVisibility}isEnableRotateBorderIcons(){return this._attributes.enableRotateBorderIcons}getBorderSet(){return this._borders}_getOuterInnerRects(){return this._borderRects}_getPointerFine(){return this._pointerFine}_setPointerFine(e){this._pointerFine=e}visitNodes(e){this._borders._forEachNode(e),this._root._forEachNode(e,0)}getNodeById(e){return this._idMap[e]}getFirstTabSet(e=this._root){const t=e.getChildren()[0];return t instanceof p.TabSetNode?t:this.getFirstTabSet(t)}doAction(e){let t;switch(e.type){case s.Actions.ADD_NODE:{const n=new f.TabNode(this,e.data.json,!0),r=this._idMap[e.data.toNode];(r instanceof p.TabSetNode||r instanceof c.BorderNode||r instanceof d.RowNode)&&(r.drop(n,i.DockLocation.getByName(e.data.location),e.data.index,e.data.select),t=n);break}case s.Actions.MOVE_NODE:{const t=this._idMap[e.data.fromNode];if(t instanceof f.TabNode||t instanceof p.TabSetNode){const n=this._idMap[e.data.toNode];(n instanceof p.TabSetNode||n instanceof c.BorderNode||n instanceof d.RowNode)&&n.drop(t,i.DockLocation.getByName(e.data.location),e.data.index,e.data.select)}break}case s.Actions.DELETE_TAB:{const t=this._idMap[e.data.node];t instanceof f.TabNode&&t._delete();break}case s.Actions.DELETE_TABSET:{const t=this._idMap[e.data.node];if(t instanceof p.TabSetNode){const e=[...t.getChildren()];for(let t=0;tthis._idMap[e.getId()]=e))}_adjustSplitSide(e,t,n){e._setWeight(t),null!=e.getWidth()&&e.getOrientation()===a.Orientation.VERT?e._updateAttrs({width:n}):null!=e.getHeight()&&e.getOrientation()===a.Orientation.HORZ&&e._updateAttrs({height:n})}toJson(){const e={};return g._attributeDefinitions.toJson(e,this._attributes),this.visitNodes((e=>{e._fireEvent("save",void 0)})),{global:e,borders:this._borders._toJson(),layout:this._root.toJson()}}getSplitterSize(){let e=this._attributes.splitterSize;return-1===e&&(e=this._pointerFine?8:12),e}isLegacyOverflowMenu(){return this._attributes.legacyOverflowMenu}getSplitterExtra(){return this._attributes.splitterExtra}isEnableEdgeDock(){return this._attributes.enableEdgeDock}_addNode(e){const t=e.getId();if(void 0!==this._idMap[t])throw new Error(`Error: each node must have a unique id, duplicate id:${e.getId()}`);"splitter"!==e.getType()&&(this._idMap[t]=e)}_layout(e,t){var n;return this._borderRects=this._borders._layoutBorder({outer:e,inner:e},t),e=this._borderRects.inner.removeInsets(this._getAttribute("marginInsets")),null===(n=this._root)||void 0===n||n.calcMinSize(),this._root._layout(e,t),e}_findDropTargetNode(e,t,n){let r=this._root._findDropTargetNode(e,t,n);return void 0===r&&(r=this._borders._findDropTargetNode(e,t,n)),r}_tidy(){this._root._tidy()}_updateAttrs(e){g._attributeDefinitions.update(e,this._attributes)}_nextUniqueId(){return"#"+(0,h.randomUUID)()}_getAttribute(e){return this._attributes[e]}setOnAllowDrop(e){this._onAllowDrop=e}_getOnAllowDrop(){return this._onAllowDrop}setOnCreateTabSet(e){this._onCreateTabSet=e}_getOnCreateTabSet(){return this._onCreateTabSet}static toTypescriptInterfaces(){console.log(g._attributeDefinitions.toTypescriptInterface("Global",void 0)),console.log(d.RowNode.getAttributeDefinitions().toTypescriptInterface("Row",g._attributeDefinitions)),console.log(p.TabSetNode.getAttributeDefinitions().toTypescriptInterface("TabSet",g._attributeDefinitions)),console.log(f.TabNode.getAttributeDefinitions().toTypescriptInterface("Tab",g._attributeDefinitions)),console.log(c.BorderNode.getAttributeDefinitions().toTypescriptInterface("Border",g._attributeDefinitions))}toString(){return JSON.stringify(this.toJson())}}t.Model=g,g._attributeDefinitions=g._createAttributeDefinitions()},89:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Node=void 0;const r=n(232),o=n(3380),i=n(807);t.Node=class{constructor(e){this._dirty=!1,this._tempSize=0,this._model=e,this._attributes={},this._children=[],this._fixed=!1,this._rect=i.Rect.empty(),this._visible=!1,this._listeners={}}getId(){let e=this._attributes.id;return void 0!==e||(e=this._model._nextUniqueId(),this._setId(e)),e}getModel(){return this._model}getType(){return this._attributes.type}getParent(){return this._parent}getChildren(){return this._children}getRect(){return this._rect}isVisible(){return this._visible}getOrientation(){return void 0===this._parent?this._model.isRootOrientationVertical()?o.Orientation.VERT:o.Orientation.HORZ:o.Orientation.flip(this._parent.getOrientation())}setEventListener(e,t){this._listeners[e]=t}removeEventListener(e){delete this._listeners[e]}_setId(e){this._attributes.id=e}_fireEvent(e,t){void 0!==this._listeners[e]&&this._listeners[e](t)}_getAttr(e){let t=this._attributes[e];if(void 0===t){const n=this._getAttributeDefinitions().getModelName(e);void 0!==n&&(t=this._model._getAttribute(n))}return t}_forEachNode(e,t){e(this,t),t++;for(const n of this._children)n._forEachNode(e,t)}_setVisible(e){e!==this._visible&&(this._fireEvent("visibility",{visible:e}),this._visible=e)}_getDrawChildren(){return this._children}_setParent(e){this._parent=e}_setRect(e){this._rect=e}_setWeight(e){this._attributes.weight=e}_setSelected(e){this._attributes.selected=e}_isFixed(){return this._fixed}_layout(e,t){this._rect=e}_findDropTargetNode(e,t,n){let r;if(this._rect.contains(t,n))if(void 0!==this._model.getMaximizedTabset())r=this._model.getMaximizedTabset().canDrop(e,t,n);else if(r=this.canDrop(e,t,n),void 0===r&&0!==this._children.length)for(const o of this._children)if(r=o._findDropTargetNode(e,t,n),void 0!==r)break;return r}canDrop(e,t,n){}_canDockInto(e,t){if(null!=t){if(t.location===r.DockLocation.CENTER&&!1===t.node.isEnableDrop())return!1;if(t.location===r.DockLocation.CENTER&&"tabset"===e.getType()&&void 0!==e.getName())return!1;if(t.location!==r.DockLocation.CENTER&&!1===t.node.isEnableDivide())return!1;if(this._model._getOnAllowDrop())return this._model._getOnAllowDrop()(e,t)}return!0}_removeChild(e){const t=this._children.indexOf(e);return-1!==t&&this._children.splice(t,1),this._dirty=!0,t}_addChild(e,t){return null!=t?this._children.splice(t,0,e):(this._children.push(e),t=this._children.length-1),e._parent=this,this._dirty=!0,t}_removeAll(){this._children=[],this._dirty=!0}_styleWithPosition(e){return null==e&&(e={}),this._rect.styleWithPosition(e)}_getTempSize(){return this._tempSize}_setTempSize(e){this._tempSize=e}isEnableDivide(){return!0}_toAttributeString(){return JSON.stringify(this._attributes,void 0,"\t")}}},996:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RowNode=void 0;const r=n(7029),o=n(8267),i=n(232),a=n(5748),l=n(3380),s=n(807),c=n(4115),u=n(4268),d=n(89),f=n(191),p=n(2733);class h extends d.Node{static _fromJson(e,t){const n=new h(t,e);if(null!=e.children)for(const r of e.children)if(r.type===p.TabSetNode.TYPE){const e=p.TabSetNode._fromJson(r,t);n._addChild(e)}else{const e=h._fromJson(r,t);n._addChild(e)}return n}static _createAttributeDefinitions(){const e=new o.AttributeDefinitions;return e.add("type",h.TYPE,!0).setType(r.Attribute.STRING).setFixed(),e.add("id",void 0).setType(r.Attribute.STRING),e.add("weight",100).setType(r.Attribute.NUMBER),e.add("width",void 0).setType(r.Attribute.NUMBER),e.add("height",void 0).setType(r.Attribute.NUMBER),e}constructor(e,t){super(e),this._dirty=!0,this._drawChildren=[],this._minHeight=0,this._minWidth=0,h._attributeDefinitions.fromJson(t,this._attributes),e._addNode(this)}getWeight(){return this._attributes.weight}getWidth(){return this._getAttr("width")}getHeight(){return this._getAttr("height")}_setWeight(e){this._attributes.weight=e}_layout(e,t){super._layout(e,t);const n=this._rect._getSize(this.getOrientation());let r=0,o=0,i=0,a=0;const c=this._getDrawChildren();for(const e of c){const t=e._getPrefSize(this.getOrientation());e._isFixed()?void 0!==t&&(o+=t):void 0===t?r+=e.getWeight():(i+=t,a+=e.getWeight())}let u=!1,d=n-o-i;d<0&&(d=n-o,u=!0,r+=a);let p=0,h=0;for(const e of c){const t=e._getPrefSize(this.getOrientation());if(e._isFixed())void 0!==t&&e._setTempSize(t);else if(null==t||u){if(0===r)e._setTempSize(0);else{const t=e.getMinSize(this.getOrientation()),n=Math.floor(d*(e.getWeight()/r));e._setTempSize(Math.max(t,n))}h+=e._getTempSize()}else e._setTempSize(t);p+=e._getTempSize()}if(h>0){for(;pn;){let e=!1;for(const t of c)if(!(t instanceof f.SplitterNode)){const r=t.getMinSize(this.getOrientation());t._getTempSize()>r&&p>n&&(t._setTempSize(t._getTempSize()-1),p--,e=!0)}if(!e)break}for(;p>n;){let e=!1;for(const t of c)if(!(t instanceof f.SplitterNode)){t._getTempSize()>0&&p>n&&(t._setTempSize(t._getTempSize()-1),p--,e=!0)}if(!e)break}}let g=0;for(const e of c)this.getOrientation()===l.Orientation.HORZ?e._layout(new s.Rect(this._rect.x+g,this._rect.y,e._getTempSize(),this._rect.height),t):e._layout(new s.Rect(this._rect.x,this._rect.y+g,this._rect.width,e._getTempSize()),t),g+=e._getTempSize();return!0}_getSplitterBounds(e,t=!1){const n=[0,0],r=this._getDrawChildren(),o=r.indexOf(e),i=r[o-1],a=r[o+1];if(this.getOrientation()===l.Orientation.HORZ){const r=t?i.getMinWidth():0,o=t?a.getMinWidth():0;n[0]=i.getRect().x+r,n[1]=a.getRect().getRight()-e.getWidth()-o}else{const r=t?i.getMinHeight():0,o=t?a.getMinHeight():0;n[0]=i.getRect().y+r,n[1]=a.getRect().getBottom()-e.getHeight()-o}return n}_calculateSplit(e,t){let n;const r=this._getDrawChildren(),o=r.indexOf(e),i=this._getSplitterBounds(e),a=r[o-1].getWeight()+r[o+1].getWeight(),l=Math.max(0,t-i[0]),s=Math.max(0,i[1]-t);if(l+s>0){const e=l*a/(l+s),t=s*a/(l+s);n={node1Id:r[o-1].getId(),weight1:e,pixelWidth1:l,node2Id:r[o+1].getId(),weight2:t,pixelWidth2:s}}return n}_getDrawChildren(){if(this._dirty){this._drawChildren=[];for(let e=0;es/2-u&&rthis._rect.getRight()-10&&r>s/2-u&&rl/2-u&&othis._rect.getBottom()-10&&o>l/2-u&&oe+t.getWeight()),0);0===l&&(l=100),a._setWeight(l/3);const s=!this._model.isRootOrientationVertical();if(s&&r===i.DockLocation.LEFT||!s&&r===i.DockLocation.TOP)this._addChild(a,0);else if(s&&r===i.DockLocation.RIGHT||!s&&r===i.DockLocation.BOTTOM)this._addChild(a);else if(s&&r===i.DockLocation.TOP||!s&&r===i.DockLocation.LEFT){const e=new h(this._model,{}),t=new h(this._model,{});t._setWeight(75),a._setWeight(25);for(const e of this._children)t._addChild(e);this._removeAll(),e._addChild(a),e._addChild(t),this._addChild(e)}else if(s&&r===i.DockLocation.BOTTOM||!s&&r===i.DockLocation.RIGHT){const e=new h(this._model,{}),t=new h(this._model,{});t._setWeight(75),a._setWeight(25);for(const e of this._children)t._addChild(e);this._removeAll(),e._addChild(t),e._addChild(a),this._addChild(e)}this._model._setActiveTabset(a),this._model._tidy()}toJson(){const e={};h._attributeDefinitions.toJson(e,this._attributes),e.children=[];for(const t of this._children)e.children.push(t.toJson());return e}isEnableDrop(){return!0}_getPrefSize(e){let t=this.getWidth();return e===l.Orientation.VERT&&(t=this.getHeight()),t}_getAttributeDefinitions(){return h._attributeDefinitions}_updateAttrs(e){h._attributeDefinitions.update(e,this._attributes)}static getAttributeDefinitions(){return h._attributeDefinitions}}t.RowNode=h,h.TYPE="row",h._attributeDefinitions=h._createAttributeDefinitions()},191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SplitterNode=void 0;const r=n(8267),o=n(3380),i=n(89);class a extends i.Node{constructor(e){super(e),this._fixed=!0,this._attributes.type=a.TYPE,e._addNode(this)}getWidth(){return this._model.getSplitterSize()}getMinWidth(){return this.getOrientation()===o.Orientation.VERT?this._model.getSplitterSize():0}getHeight(){return this._model.getSplitterSize()}getMinHeight(){return this.getOrientation()===o.Orientation.HORZ?this._model.getSplitterSize():0}getMinSize(e){return e===o.Orientation.HORZ?this.getMinWidth():this.getMinHeight()}getWeight(){return 0}_setWeight(e){}_getPrefSize(e){return this._model.getSplitterSize()}_updateAttrs(e){}_getAttributeDefinitions(){return new r.AttributeDefinitions}toJson(){}}t.SplitterNode=a,a.TYPE="splitter"},6677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabNode=void 0;const r=n(7029),o=n(8267),i=n(89);class a extends i.Node{static _fromJson(e,t,n=!0){return new a(t,e,n)}static _createAttributeDefinitions(){const e=new o.AttributeDefinitions;return e.add("type",a.TYPE,!0).setType(r.Attribute.STRING),e.add("id",void 0).setType(r.Attribute.STRING),e.add("name","[Unnamed Tab]").setType(r.Attribute.STRING),e.add("altName",void 0).setType(r.Attribute.STRING),e.add("helpText",void 0).setType(r.Attribute.STRING),e.add("component",void 0).setType(r.Attribute.STRING),e.add("config",void 0).setType("any"),e.add("floating",!1).setType(r.Attribute.BOOLEAN),e.add("tabsetClassName",void 0).setType(r.Attribute.STRING),e.addInherited("enableClose","tabEnableClose").setType(r.Attribute.BOOLEAN),e.addInherited("closeType","tabCloseType").setType("ICloseType"),e.addInherited("enableDrag","tabEnableDrag").setType(r.Attribute.BOOLEAN),e.addInherited("enableRename","tabEnableRename").setType(r.Attribute.BOOLEAN),e.addInherited("className","tabClassName").setType(r.Attribute.STRING),e.addInherited("contentClassName","tabContentClassName").setType(r.Attribute.STRING),e.addInherited("icon","tabIcon").setType(r.Attribute.STRING),e.addInherited("enableRenderOnDemand","tabEnableRenderOnDemand").setType(r.Attribute.BOOLEAN),e.addInherited("enableFloat","tabEnableFloat").setType(r.Attribute.BOOLEAN),e.addInherited("borderWidth","tabBorderWidth").setType(r.Attribute.NUMBER),e.addInherited("borderHeight","tabBorderHeight").setType(r.Attribute.NUMBER),e}constructor(e,t,n=!0){super(e),this._extra={},a._attributeDefinitions.fromJson(t,this._attributes),!0===n&&e._addNode(this)}getWindow(){return this._window}getTabRect(){return this._tabRect}_setTabRect(e){this._tabRect=e}_setRenderedName(e){this._renderedName=e}_getNameForOverflowMenu(){const e=this._getAttr("altName");return void 0!==e?e:this._renderedName}getName(){return this._getAttr("name")}getHelpText(){return this._getAttr("helpText")}getComponent(){return this._getAttr("component")}getConfig(){return this._attributes.config}getExtraData(){return this._extra}isFloating(){return this._getAttr("floating")}getIcon(){return this._getAttr("icon")}isEnableClose(){return this._getAttr("enableClose")}getCloseType(){return this._getAttr("closeType")}isEnableFloat(){return this._getAttr("enableFloat")}isEnableDrag(){return this._getAttr("enableDrag")}isEnableRename(){return this._getAttr("enableRename")}getClassName(){return this._getAttr("className")}getContentClassName(){return this._getAttr("contentClassName")}getTabSetClassName(){return this._getAttr("tabsetClassName")}isEnableRenderOnDemand(){return this._getAttr("enableRenderOnDemand")}_setName(e){this._attributes.name=e,this._window&&this._window.document&&(this._window.document.title=e)}_setFloating(e){this._attributes.floating=e}_layout(e,t){e.equals(this._rect)||this._fireEvent("resize",{rect:e}),this._rect=e}_delete(){this._parent._remove(this),this._fireEvent("close",{})}toJson(){const e={};return a._attributeDefinitions.toJson(e,this._attributes),e}_updateAttrs(e){a._attributeDefinitions.update(e,this._attributes)}_getAttributeDefinitions(){return a._attributeDefinitions}_setWindow(e){this._window=e}_setBorderWidth(e){this._attributes.borderWidth=e}_setBorderHeight(e){this._attributes.borderHeight=e}static getAttributeDefinitions(){return a._attributeDefinitions}}t.TabNode=a,a.TYPE="tab",a._attributeDefinitions=a._createAttributeDefinitions()},2733:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabSetNode=void 0;const r=n(7029),o=n(8267),i=n(232),a=n(5748),l=n(3380),s=n(807),c=n(4115),u=n(4268),d=n(89),f=n(996),p=n(6677),h=n(2968);class g extends d.Node{static _fromJson(e,t){const n=new g(t,e);if(null!=e.children)for(const r of e.children){const e=p.TabNode._fromJson(r,t);n._addChild(e)}return 0===n._children.length&&n._setSelected(-1),e.maximized&&!0===e.maximized&&t._setMaximizedTabset(n),e.active&&!0===e.active&&t._setActiveTabset(n),n}static _createAttributeDefinitions(){const e=new o.AttributeDefinitions;return e.add("type",g.TYPE,!0).setType(r.Attribute.STRING).setFixed(),e.add("id",void 0).setType(r.Attribute.STRING),e.add("weight",100).setType(r.Attribute.NUMBER),e.add("width",void 0).setType(r.Attribute.NUMBER),e.add("height",void 0).setType(r.Attribute.NUMBER),e.add("selected",0).setType(r.Attribute.NUMBER),e.add("name",void 0).setType(r.Attribute.STRING),e.add("config",void 0).setType("any"),e.addInherited("enableDeleteWhenEmpty","tabSetEnableDeleteWhenEmpty"),e.addInherited("enableDrop","tabSetEnableDrop"),e.addInherited("enableDrag","tabSetEnableDrag"),e.addInherited("enableDivide","tabSetEnableDivide"),e.addInherited("enableMaximize","tabSetEnableMaximize"),e.addInherited("enableClose","tabSetEnableClose"),e.addInherited("enableSingleTabStretch","tabSetEnableSingleTabStretch"),e.addInherited("classNameTabStrip","tabSetClassNameTabStrip"),e.addInherited("classNameHeader","tabSetClassNameHeader"),e.addInherited("enableTabStrip","tabSetEnableTabStrip"),e.addInherited("borderInsets","tabSetBorderInsets"),e.addInherited("marginInsets","tabSetMarginInsets"),e.addInherited("minWidth","tabSetMinWidth"),e.addInherited("minHeight","tabSetMinHeight"),e.addInherited("headerHeight","tabSetHeaderHeight"),e.addInherited("tabStripHeight","tabSetTabStripHeight"),e.addInherited("tabLocation","tabSetTabLocation"),e.addInherited("autoSelectTab","tabSetAutoSelectTab").setType(r.Attribute.BOOLEAN),e}constructor(e,t){super(e),g._attributeDefinitions.fromJson(t,this._attributes),e._addNode(this),this._calculatedTabBarHeight=0,this._calculatedHeaderBarHeight=0}getName(){return this._getAttr("name")}getSelected(){const e=this._attributes.selected;return void 0!==e?e:-1}getSelectedNode(){const e=this.getSelected();if(-1!==e)return this._children[e]}getWeight(){return this._getAttr("weight")}getWidth(){return this._getAttr("width")}getMinWidth(){return this._getAttr("minWidth")}getHeight(){return this._getAttr("height")}getMinHeight(){return this._getAttr("minHeight")}getMinSize(e){return e===l.Orientation.HORZ?this.getMinWidth():this.getMinHeight()}getConfig(){return this._attributes.config}isMaximized(){return this._model.getMaximizedTabset()===this}isActive(){return this._model.getActiveTabset()===this}isEnableDeleteWhenEmpty(){return this._getAttr("enableDeleteWhenEmpty")}isEnableDrop(){return this._getAttr("enableDrop")}isEnableDrag(){return this._getAttr("enableDrag")}isEnableDivide(){return this._getAttr("enableDivide")}isEnableMaximize(){return this._getAttr("enableMaximize")}isEnableClose(){return this._getAttr("enableClose")}isEnableSingleTabStretch(){return this._getAttr("enableSingleTabStretch")}canMaximize(){return!!this.isEnableMaximize()&&(this.getModel().getMaximizedTabset()===this||(this.getParent()!==this.getModel().getRoot()||1!==this.getModel().getRoot().getChildren().length))}isEnableTabStrip(){return this._getAttr("enableTabStrip")}isAutoSelectTab(){return this._getAttr("autoSelectTab")}getClassNameTabStrip(){return this._getAttr("classNameTabStrip")}getClassNameHeader(){return this._getAttr("classNameHeader")}calculateHeaderBarHeight(e){const t=this._getAttr("headerHeight");this._calculatedHeaderBarHeight=0!==t?t:e.headerBarSize}calculateTabBarHeight(e){const t=this._getAttr("tabStripHeight");this._calculatedTabBarHeight=0!==t?t:e.tabBarSize}getHeaderHeight(){return this._calculatedHeaderBarHeight}getTabStripHeight(){return this._calculatedTabBarHeight}getTabLocation(){return this._getAttr("tabLocation")}_setWeight(e){this._attributes.weight=e}_setSelected(e){this._attributes.selected=e}canDrop(e,t,n){let r;if(e===this){const e=i.DockLocation.CENTER,t=this._tabHeaderRect;r=new a.DropInfo(this,t,e,-1,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}else if(this._contentRect.contains(t,n)){let e=i.DockLocation.CENTER;void 0===this._model.getMaximizedTabset()&&(e=i.DockLocation.getLocation(this._contentRect,t,n));const o=e.getDockRect(this._rect);r=new a.DropInfo(this,o,e,-1,c.CLASSES.FLEXLAYOUT__OUTLINE_RECT)}else if(null!=this._tabHeaderRect&&this._tabHeaderRect.contains(t,n)){let e,n,o;if(0===this._children.length)e=this._tabHeaderRect.clone(),n=e.y+3,o=e.height-4,e.width=2;else{let l=this._children[0];e=l.getTabRect(),n=e.y,o=e.height;let u=this._tabHeaderRect.x,d=0;for(let f=0;f=u&&t0&&n--,o===i.DockLocation.CENTER){let t=n;if(-1===t&&(t=this._children.length),e.getType()===p.TabNode.TYPE)this._addChild(e,t),(r||!1!==r&&this.isAutoSelectTab())&&this._setSelected(t);else{for(let n=0;n0&&this._setSelected(0)}this._model._setActiveTabset(this)}else{let t;if(e instanceof p.TabNode){const n=this._model._getOnCreateTabSet();t=new g(this._model,n?n(e):{}),t._addChild(e),a=t}else t=e;const n=this._parent,r=n.getChildren().indexOf(this);if(n.getOrientation()===o._orientation)t._setWeight(this.getWeight()/2),this._setWeight(this.getWeight()/2),n._addChild(t,r+o._indexPlus);else{const e=new f.RowNode(this._model,{});e._setWeight(this.getWeight()),e._addChild(this),this._setWeight(50),t._setWeight(50),e._addChild(t,o._indexPlus),n._removeChild(this),n._addChild(e,r)}this._model._setActiveTabset(t)}this._model._tidy()}toJson(){const e={};return g._attributeDefinitions.toJson(e,this._attributes),e.children=this._children.map((e=>e.toJson())),this.isActive()&&(e.active=!0),this.isMaximized()&&(e.maximized=!0),e}_updateAttrs(e){g._attributeDefinitions.update(e,this._attributes)}_getAttributeDefinitions(){return g._attributeDefinitions}_getPrefSize(e){let t=this.getWidth();return e===l.Orientation.VERT&&(t=this.getHeight()),t}static getAttributeDefinitions(){return g._attributeDefinitions}}t.TabSetNode=g,g.TYPE="tabset",g._attributeDefinitions=g._createAttributeDefinitions()},2968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomUUID=t.adjustSelectedIndex=t.adjustSelectedIndexAfterDock=t.adjustSelectedIndexAfterFloat=void 0;const r=n(2733),o=n(4268);t.adjustSelectedIndexAfterFloat=function(e){const t=e.getParent();if(null!==t)if(t instanceof r.TabSetNode){let n=!1,r=0;const o=t.getChildren();for(let t=0;t0?t>=e.getChildren().length&&e._setSelected(e.getChildren().length-1):tn||e._setSelected(-1))}},t.randomUUID=function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))}},5821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BorderButton=void 0;const r=n(7294),o=n(5551),i=n(3076),a=n(807),l=n(7562),s=n(4115),c=n(4592);t.BorderButton=e=>{const{layout:t,node:n,selected:u,border:d,iconFactory:f,titleFactory:p,icons:h,path:g}=e,m=r.useRef(null),v=r.useRef(null),b=e=>{(0,c.isAuxMouseEvent)(e)||t.getEditingTab()||t.dragStart(e,void 0,n,n.isEnableDrag(),S,w)},y=e=>{(0,c.isAuxMouseEvent)(e)&&t.auxMouseClick(n,e)},S=()=>{t.doAction(i.Actions.selectTab(n.getId()))},w=e=>{},E=e=>{(()=>{const e=n.getCloseType();return!!(u||e===l.ICloseType.Always||e===l.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches)})()?t.doAction(i.Actions.deleteTab(n.getId())):S()},C=e=>{e.stopPropagation()};r.useLayoutEffect((()=>{x(),t.getEditingTab()===n&&v.current.select()}));const x=()=>{var e;const r=t.getDomRect(),o=null===(e=m.current)||void 0===e?void 0:e.getBoundingClientRect();o&&r&&n._setTabRect(new a.Rect(o.left-r.left,o.top-r.top,o.width,o.height))},_=e=>{e.stopPropagation()},O=e=>{"Escape"===e.code?t.setEditingTab(void 0):"Enter"===e.code&&(t.setEditingTab(void 0),t.doAction(i.Actions.renameTab(n.getId(),e.target.value)))},T=t.getClassName;let k=T(s.CLASSES.FLEXLAYOUT__BORDER_BUTTON)+" "+T(s.CLASSES.FLEXLAYOUT__BORDER_BUTTON_+d);k+=u?" "+T(s.CLASSES.FLEXLAYOUT__BORDER_BUTTON__SELECTED):" "+T(s.CLASSES.FLEXLAYOUT__BORDER_BUTTON__UNSELECTED),void 0!==n.getClassName()&&(k+=" "+n.getClassName());let R=0;!1===n.getModel().isEnableRotateBorderIcons()&&("left"===d?R=90:"right"===d&&(R=-90));const $=(0,c.getRenderStateEx)(t,n,f,p,R);let N=$.content?r.createElement("div",{className:T(s.CLASSES.FLEXLAYOUT__BORDER_BUTTON_CONTENT)},$.content):null;const A=$.leading?r.createElement("div",{className:T(s.CLASSES.FLEXLAYOUT__BORDER_BUTTON_LEADING)},$.leading):null;if(t.getEditingTab()===n&&(N=r.createElement("input",{ref:v,className:T(s.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),"data-layout-path":g+"/textbox",type:"text",autoFocus:!0,defaultValue:n.getName(),onKeyDown:O,onMouseDown:_,onTouchStart:_})),n.isEnableClose()){const e=t.i18nName(o.I18nLabel.Close_Tab);$.buttons.push(r.createElement("div",{key:"close","data-layout-path":g+"/button/close",title:e,className:T(s.CLASSES.FLEXLAYOUT__BORDER_BUTTON_TRAILING),onMouseDown:C,onClick:E,onTouchStart:C},"function"==typeof h.close?h.close(n):h.close))}return r.createElement("div",{ref:m,"data-layout-path":g,className:k,onMouseDown:b,onClick:y,onAuxClick:y,onContextMenu:e=>{t.showContextMenu(n,e)},onTouchStart:b,title:n.getHelpText()},A,N,$.buttons)}},9715:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BorderTabSet=void 0;const r=n(7294),o=n(232),i=n(5821),a=n(31),l=n(3076),s=n(5551),c=n(1680),u=n(3380),d=n(4115),f=n(4592);t.BorderTabSet=e=>{const{border:t,layout:n,iconFactory:p,titleFactory:h,icons:g,path:m}=e,v=r.useRef(null),b=r.useRef(null),y=r.useRef(null),{selfRef:S,position:w,userControlledLeft:E,hiddenTabs:C,onMouseWheel:x,tabsTruncated:_}=(0,c.useTabOverflow)(t,u.Orientation.flip(t.getOrientation()),v,y),O=e=>{(0,f.isAuxMouseEvent)(e)&&n.auxMouseClick(t,e)},T=e=>{e.stopPropagation()},k=e=>{const r=n.getShowOverflowMenu();if(void 0!==r)r(t,e,C,R);else{const e=b.current;(0,a.showPopup)(e,C,R,n,p,h)}e.stopPropagation()},R=e=>{n.doAction(l.Actions.selectTab(e.node.getId())),E.current=!1},$=e=>{const r=t.getChildren()[t.getSelected()];void 0!==r&&n.doAction(l.Actions.floatTab(r.getId())),e.stopPropagation()},N=n.getClassName;let A=t.getTabHeaderRect().styleWithPosition({});const P=[],M=e=>{let o=t.getSelected()===e,a=t.getChildren()[e];P.push(r.createElement(i.BorderButton,{layout:n,border:t.getLocation().getName(),node:a,path:m+"/tb"+e,key:a.getId(),selected:o,iconFactory:p,titleFactory:h,icons:g})),e0&&(_?I=[...Z,...I]:P.push(r.createElement("div",{ref:y,key:"sticky_buttons_container",onMouseDown:T,onTouchStart:T,onDragStart:e=>{e.preventDefault()},className:N(d.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER)},Z))),C.length>0){const e=n.i18nName(s.I18nLabel.Overflow_Menu_Tooltip);let o;o="function"==typeof g.more?g.more(t,C):r.createElement(r.Fragment,null,g.more,r.createElement("div",{className:N(d.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT)},C.length)),I.splice(Math.min(D.overflowPosition,I.length),0,r.createElement("button",{key:"overflowbutton",ref:b,className:N(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+N(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW)+" "+N(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_OVERFLOW_+t.getLocation().getName()),title:e,onClick:k,onMouseDown:T,onTouchStart:T},o))}const j=t.getSelected();if(-1!==j){const e=t.getChildren()[j];if(void 0!==e&&n.isSupportsPopout()&&e.isEnableFloat()&&!e.isFloating()){const t=n.i18nName(s.I18nLabel.Float_Tab);I.push(r.createElement("button",{key:"float",title:t,className:N(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON)+" "+N(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_BUTTON_FLOAT),onClick:$,onMouseDown:T,onTouchStart:T},"function"==typeof g.popout?g.popout(e):g.popout))}}const z=r.createElement("div",{key:"toolbar",ref:v,className:N(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR)+" "+N(d.CLASSES.FLEXLAYOUT__BORDER_TOOLBAR_+t.getLocation().getName())},I);A=n.styleFont(A);let F={};const B=t.getBorderBarSize()-1;return F=t.getLocation()===o.DockLocation.LEFT?{right:B,height:B,top:w}:t.getLocation()===o.DockLocation.RIGHT?{left:B,height:B,top:w}:{height:B,left:w},r.createElement("div",{ref:S,dir:"ltr",style:A,className:L,"data-layout-path":m,onClick:O,onAuxClick:O,onContextMenu:e=>{n.showContextMenu(t,e)},onWheel:x},r.createElement("div",{style:{height:B},className:N(d.CLASSES.FLEXLAYOUT__BORDER_INNER)+" "+N(d.CLASSES.FLEXLAYOUT__BORDER_INNER_+t.getLocation().getName())},r.createElement("div",{style:F,className:N(d.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER)+" "+N(d.CLASSES.FLEXLAYOUT__BORDER_INNER_TAB_CONTAINER_+t.getLocation().getName())},P)),z)}},6180:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBoundary=void 0;const r=n(7294),o=n(4115);class i extends r.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){console.debug(e),console.debug(t)}render(){return this.state.hasError?r.createElement("div",{className:o.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTAINER},r.createElement("div",{className:o.CLASSES.FLEXLAYOUT__ERROR_BOUNDARY_CONTENT},this.props.message)):this.props.children}}t.ErrorBoundary=i},7868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingWindow=void 0;const r=n(7294),o=n(3935),i=n(807),a=n(4115);t.FloatingWindow=e=>{const{title:t,id:n,url:l,rect:s,onCloseWindow:c,onSetWindow:u,children:d}=e,f=r.useRef(null),p=r.useRef(null),[h,g]=r.useState(void 0);return r.useLayoutEffect((()=>{p.current&&clearTimeout(p.current);let e=!0;const r=s||new i.Rect(0,0,100,100),o=Array.from(window.document.styleSheets).reduce(((e,t)=>{let n;try{n=t.cssRules}catch(e){}try{return[...e,{href:t.href,type:t.type,rules:n?Array.from(n).map((e=>e.cssText)):null}]}catch(t){return e}}),[]);return f.current=window.open(l,n,`left=${r.x},top=${r.y},width=${r.width},height=${r.height}`),null!==f.current?(u(n,f.current),window.addEventListener("beforeunload",(()=>{f.current&&(f.current.close(),f.current=null)})),f.current.addEventListener("load",(()=>{if(e){const e=f.current.document;e.title=t;const r=e.createElement("div");r.className=a.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_CONTENT,e.body.appendChild(r),function(e,t){const n=e.head,r=[];for(const o of t)if(o.href){const t=e.createElement("link");t.type=o.type,t.rel="stylesheet",t.href=o.href,n.appendChild(t),r.push(new Promise((e=>{t.onload=()=>e(!0)})))}else if(o.rules){const t=e.createElement("style");for(const n of o.rules)t.appendChild(e.createTextNode(n));n.appendChild(t)}return Promise.all(r)}(e,o).then((()=>{g(r)})),f.current.addEventListener("beforeunload",(()=>{c(n)}))}}))):(console.warn(`Unable to open window ${l}`),c(n)),()=>{e=!1,p.current=setTimeout((()=>{f.current&&(f.current.close(),f.current=null)}),0)}}),[]),void 0!==h?(0,o.createPortal)(d,h):null}},6538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FloatingWindowTab=void 0;const r=n(7294),o=n(6180),i=n(5551),a=n(7294),l=n(4115);t.FloatingWindowTab=e=>{const{layout:t,node:n,factory:s}=e,c=t.getClassName,u=s(n);return r.createElement("div",{className:c(l.CLASSES.FLEXLAYOUT__FLOATING_WINDOW_TAB)},r.createElement(o.ErrorBoundary,{message:e.layout.i18nName(i.I18nLabel.Error_rendering_component)},r.createElement(a.Fragment,null,u)))}},3281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RestoreIcon=t.PopoutIcon=t.EdgeIcon=t.OverflowIcon=t.MaximizeIcon=t.CloseIcon=void 0;const r=n(7294),o={width:"1em",height:"1em",display:"flex",alignItems:"center"};t.CloseIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:o,viewBox:"0 0 24 24"},r.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),r.createElement("path",{stroke:"var(--color-icon)",fill:"var(--color-icon)",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));t.MaximizeIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:o,viewBox:"0 0 24 24",fill:"var(--color-icon)"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{stroke:"var(--color-icon)",d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"}));t.OverflowIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:o,viewBox:"0 0 24 24",fill:"var(--color-icon)"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{stroke:"var(--color-icon)",d:"M7 10l5 5 5-5z"}));t.EdgeIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"block",width:10,height:10},preserveAspectRatio:"none",viewBox:"0 0 100 100"},r.createElement("path",{fill:"var(--color-edge-icon)",stroke:"var(--color-edge-icon)",d:"M10 30 L90 30 l-40 40 Z"}));t.PopoutIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:o,viewBox:"0 0 20 20",fill:"var(--color-icon)"},r.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),r.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}));t.RestoreIcon=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:o,viewBox:"0 0 24 24",fill:"var(--color-icon)"},r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}),r.createElement("path",{stroke:"var(--color-icon)",d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"}))},5295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Layout=void 0;const r=n(7294),o=n(3935),i=n(232),a=n(268),l=n(3076),s=n(4268),c=n(191),u=n(6677),d=n(2733),f=n(807),p=n(4115),h=n(9715),g=n(1996),m=n(178),v=n(9738),b=n(7868),y=n(6538),S=n(2022),w=n(3380),E=n(3281),C=n(5797),x={close:r.createElement(E.CloseIcon,null),closeTabset:r.createElement(E.CloseIcon,null),popout:r.createElement(E.PopoutIcon,null),maximize:r.createElement(E.MaximizeIcon,null),restore:r.createElement(E.RestoreIcon,null),more:r.createElement(E.OverflowIcon,null),edgeArrow:r.createElement(E.EdgeIcon,null)},_="undefined"!=typeof window&&(window.document.documentMode||/Edge\//.test(window.navigator.userAgent)),O="undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches&&!_;class T extends r.Component{constructor(e){super(e),this.firstMove=!1,this.dragRectRendered=!0,this.dragDivText=void 0,this.edgeRectLength=100,this.edgeRectWidth=10,this.onModelChange=e=>{this.forceUpdate(),this.props.onModelChange&&this.props.onModelChange(this.props.model,e)},this.updateRect=e=>{if(e||(e=this.getDomRect()),!e)return;const t=new f.Rect(0,0,e.width,e.height);t.equals(this.state.rect)||0===t.width||0===t.height||this.setState({rect:t})},this.updateLayoutMetrics=()=>{if(this.findHeaderBarSizeRef.current){const e=this.findHeaderBarSizeRef.current.getBoundingClientRect().height;e!==this.state.calculatedHeaderBarSize&&this.setState({calculatedHeaderBarSize:e})}if(this.findTabBarSizeRef.current){const e=this.findTabBarSizeRef.current.getBoundingClientRect().height;e!==this.state.calculatedTabBarSize&&this.setState({calculatedTabBarSize:e})}if(this.findBorderBarSizeRef.current){const e=this.findBorderBarSizeRef.current.getBoundingClientRect().height;e!==this.state.calculatedBorderBarSize&&this.setState({calculatedBorderBarSize:e})}},this.getClassName=e=>void 0===this.props.classNameMapper?e:this.props.classNameMapper(e),this.onCloseWindow=e=>{this.doAction(l.Actions.unFloatTab(e));try{this.props.model.getNodeById(e)._setWindow(void 0)}catch(e){}},this.onSetWindow=(e,t)=>{this.props.model.getNodeById(e)._setWindow(t)},this.onCancelAdd=()=>{var e,t;const n=this.selfRef.current;n&&this.dragDiv&&n.removeChild(this.dragDiv),this.dragDiv=void 0,this.hidePortal(),null!=this.fnNewNodeDropped&&(this.fnNewNodeDropped(),this.fnNewNodeDropped=void 0);try{null===(t=null===(e=this.customDrop)||void 0===e?void 0:e.invalidated)||void 0===t||t.call(e)}catch(e){console.error(e)}a.DragDrop.instance.hideGlass(),this.newTabJson=void 0,this.customDrop=void 0},this.onCancelDrag=e=>{var t,n;if(e){const e=this.selfRef.current,r=this.outlineDiv;if(e&&r)try{e.removeChild(r)}catch(e){}const o=this.dragDiv;if(e&&o)try{e.removeChild(o)}catch(e){}this.dragDiv=void 0,this.hidePortal(),this.setState({showEdges:!1}),null!=this.fnNewNodeDropped&&(this.fnNewNodeDropped(),this.fnNewNodeDropped=void 0);try{null===(n=null===(t=this.customDrop)||void 0===t?void 0:t.invalidated)||void 0===n||n.call(t)}catch(e){console.error(e)}a.DragDrop.instance.hideGlass(),this.newTabJson=void 0,this.customDrop=void 0}this.setState({showHiddenBorder:i.DockLocation.CENTER})},this.onDragDivMouseDown=e=>{e.preventDefault(),this.dragStart(e,this.dragDivText,u.TabNode._fromJson(this.newTabJson,this.props.model,!1),!0,void 0,void 0)},this.dragStart=(e,t,n,r,o,i)=>{var l,s;r?(this.dragNode=n,this.dragDivText=t,a.DragDrop.instance.startDrag(e,this.onDragStart,this.onDragMove,this.onDragEnd,this.onCancelDrag,o,i,this.currentDocument,null!==(s=this.selfRef.current)&&void 0!==s?s:void 0)):a.DragDrop.instance.startDrag(e,void 0,void 0,void 0,void 0,o,i,this.currentDocument,null!==(l=this.selfRef.current)&&void 0!==l?l:void 0)},this.dragRectRender=(e,t,n,o)=>{let i;if(void 0!==e?i=r.createElement("div",{style:{whiteSpace:"pre"}},e.replace("","\n")):t&&t instanceof u.TabNode&&(i=r.createElement(C.TabButtonStamp,{node:t,layout:this,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory})),void 0!==this.props.onRenderDragRect){const e=this.props.onRenderDragRect(i,t,n);void 0!==e&&(i=e)}this.dragRectRendered=!1;const a=this.dragDiv;a&&(a.style.visibility="hidden",this.showPortal(r.createElement(k,{onRendered:()=>{this.dragRectRendered=!0,null==o||o()}},i),a))},this.showPortal=(e,t)=>{const n=(0,o.createPortal)(e,t);this.setState({portal:n})},this.hidePortal=()=>{this.setState({portal:void 0})},this.onDragStart=()=>{var e;this.dropInfo=void 0,this.customDrop=void 0;const t=this.selfRef.current;return this.outlineDiv=this.currentDocument.createElement("div"),this.outlineDiv.className=this.getClassName(p.CLASSES.FLEXLAYOUT__OUTLINE_RECT),this.outlineDiv.style.visibility="hidden",t&&t.appendChild(this.outlineDiv),null==this.dragDiv&&(this.dragDiv=this.currentDocument.createElement("div"),this.dragDiv.className=this.getClassName(p.CLASSES.FLEXLAYOUT__DRAG_RECT),this.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),this.dragRectRender(this.dragDivText,this.dragNode,this.newTabJson),t&&t.appendChild(this.dragDiv)),void 0===this.props.model.getMaximizedTabset()&&this.setState({showEdges:this.props.model.isEnableEdgeDock()}),this.dragNode&&this.outlineDiv&&this.dragNode instanceof u.TabNode&&void 0!==this.dragNode.getTabRect()&&(null===(e=this.dragNode.getTabRect())||void 0===e||e.positionElement(this.outlineDiv)),this.firstMove=!0,!0},this.onDragMove=e=>{var t,n,r,o,i,a,l;if(!1===this.firstMove){const e=this.props.model._getAttribute("tabDragSpeed");this.outlineDiv&&(this.outlineDiv.style.transition=`top ${e}s, left ${e}s, width ${e}s, height ${e}s`)}this.firstMove=!1;const s=null===(t=this.selfRef.current)||void 0===t?void 0:t.getBoundingClientRect(),c={x:e.clientX-(null!==(n=null==s?void 0:s.left)&&void 0!==n?n:0),y:e.clientY-(null!==(r=null==s?void 0:s.top)&&void 0!==r?r:0)};this.checkForBorderToShow(c.x,c.y);const u=null!==(i=null===(o=this.dragDiv)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==i?i:new DOMRect(0,0,100,100);let d=c.x-u.width/2;d+u.width>(null!==(a=null==s?void 0:s.width)&&void 0!==a?a:0)&&(d=(null!==(l=null==s?void 0:s.width)&&void 0!==l?l:0)-u.width),d=Math.max(0,d),this.dragDiv&&(this.dragDiv.style.left=d+"px",this.dragDiv.style.top=c.y+5+"px",this.dragRectRendered&&"hidden"===this.dragDiv.style.visibility&&(this.dragDiv.style.visibility="visible"));let f=this.props.model._findDropTargetNode(this.dragNode,c.x,c.y);f&&(this.props.onTabDrag?this.handleCustomTabDrag(f,c,e):(this.dropInfo=f,this.outlineDiv&&(this.outlineDiv.className=this.getClassName(f.className),f.rect.positionElement(this.outlineDiv),this.outlineDiv.style.visibility="visible")))},this.onDragEnd=e=>{const t=this.selfRef.current;if(t&&(this.outlineDiv&&t.removeChild(this.outlineDiv),this.dragDiv&&t.removeChild(this.dragDiv)),this.dragDiv=void 0,this.hidePortal(),this.setState({showEdges:!1}),a.DragDrop.instance.hideGlass(),this.dropInfo)if(this.customDrop){this.newTabJson=void 0;try{const{callback:e,dragging:t,over:n,x:r,y:o,location:i}=this.customDrop;e(t,n,r,o,i),null!=this.fnNewNodeDropped&&(this.fnNewNodeDropped(),this.fnNewNodeDropped=void 0)}catch(e){console.error(e)}}else if(void 0!==this.newTabJson){const t=this.doAction(l.Actions.addNode(this.newTabJson,this.dropInfo.node.getId(),this.dropInfo.location,this.dropInfo.index));null!=this.fnNewNodeDropped&&(this.fnNewNodeDropped(t,e),this.fnNewNodeDropped=void 0),this.newTabJson=void 0}else void 0!==this.dragNode&&this.doAction(l.Actions.moveNode(this.dragNode.getId(),this.dropInfo.node.getId(),this.dropInfo.location,this.dropInfo.index));this.setState({showHiddenBorder:i.DockLocation.CENTER})},this.props.model._setChangeListener(this.onModelChange),this.tabIds=[],this.selfRef=r.createRef(),this.findHeaderBarSizeRef=r.createRef(),this.findTabBarSizeRef=r.createRef(),this.findBorderBarSizeRef=r.createRef(),this.supportsPopout=void 0!==e.supportsPopout?e.supportsPopout:O,this.popoutURL=e.popoutURL?e.popoutURL:"popout.html",this.icons=Object.assign(Object.assign({},x),e.icons),this.state={rect:new f.Rect(0,0,0,0),calculatedHeaderBarSize:25,calculatedTabBarSize:26,calculatedBorderBarSize:30,editingTab:void 0,showHiddenBorder:i.DockLocation.CENTER,showEdges:!1},this.onDragEnter=this.onDragEnter.bind(this)}styleFont(e){return this.props.font&&(this.selfRef.current&&(this.props.font.size&&this.selfRef.current.style.setProperty("--font-size",this.props.font.size),this.props.font.family&&this.selfRef.current.style.setProperty("--font-family",this.props.font.family)),this.props.font.style&&(e.fontStyle=this.props.font.style),this.props.font.weight&&(e.fontWeight=this.props.font.weight)),e}doAction(e){if(void 0!==this.props.onAction){const t=this.props.onAction(e);return void 0!==t?this.props.model.doAction(t):void 0}return this.props.model.doAction(e)}componentDidMount(){this.updateRect(),this.updateLayoutMetrics(),this.currentDocument=this.selfRef.current.ownerDocument,this.currentWindow=this.currentDocument.defaultView,this.resizeObserver=new ResizeObserver((e=>{this.updateRect(e[0].contentRect)}));const e=this.selfRef.current;e&&this.resizeObserver.observe(e)}componentDidUpdate(){this.updateLayoutMetrics(),this.props.model!==this.previousModel&&(void 0!==this.previousModel&&this.previousModel._setChangeListener(void 0),this.props.model._setChangeListener(this.onModelChange),this.previousModel=this.props.model)}getCurrentDocument(){return this.currentDocument}getDomRect(){var e;return null===(e=this.selfRef.current)||void 0===e?void 0:e.getBoundingClientRect()}getRootDiv(){return this.selfRef.current}isSupportsPopout(){return this.supportsPopout}isRealtimeResize(){var e;return null!==(e=this.props.realtimeResize)&&void 0!==e&&e}onTabDrag(...e){var t,n;return null===(n=(t=this.props).onTabDrag)||void 0===n?void 0:n.call(t,...e)}getPopoutURL(){return this.popoutURL}componentWillUnmount(){var e;const t=this.selfRef.current;t&&(null===(e=this.resizeObserver)||void 0===e||e.unobserve(t))}setEditingTab(e){this.setState({editingTab:e})}getEditingTab(){return this.state.editingTab}render(){if(!this.selfRef.current)return r.createElement("div",{ref:this.selfRef,className:this.getClassName(p.CLASSES.FLEXLAYOUT__LAYOUT)},this.metricsElements());this.props.model._setPointerFine(window&&window.matchMedia&&window.matchMedia("(pointer: fine)").matches);const e=[],t=[],n=[],o={},i=[],a={headerBarSize:this.state.calculatedHeaderBarSize,tabBarSize:this.state.calculatedTabBarSize,borderBarSize:this.state.calculatedBorderBarSize};this.props.model._setShowHiddenBorder(this.state.showHiddenBorder),this.centerRect=this.props.model._layout(this.state.rect,a),this.renderBorder(this.props.model.getBorderSet(),e,o,n,i),this.renderChildren("",this.props.model.getRoot(),t,o,n,i);const l=[],s={};for(const e of this.tabIds)o[e]&&(l.push(e),s[e]=e);this.tabIds=l;for(const e of Object.keys(o))s[e]||this.tabIds.push(e);const c=[],u=this.icons.edgeArrow;if(this.state.showEdges){const e=this.centerRect,t=this.edgeRectLength,n=this.edgeRectWidth,o=this.edgeRectLength/2,i=this.getClassName(p.CLASSES.FLEXLAYOUT__EDGE_RECT),a=50;c.push(r.createElement("div",{key:"North",style:{top:e.y,left:e.x+e.width/2-o,width:t,height:n,borderBottomLeftRadius:a,borderBottomRightRadius:a},className:i+" "+this.getClassName(p.CLASSES.FLEXLAYOUT__EDGE_RECT_TOP)},r.createElement("div",{style:{transform:"rotate(180deg)"}},u))),c.push(r.createElement("div",{key:"West",style:{top:e.y+e.height/2-o,left:e.x,width:n,height:t,borderTopRightRadius:a,borderBottomRightRadius:a},className:i+" "+this.getClassName(p.CLASSES.FLEXLAYOUT__EDGE_RECT_LEFT)},r.createElement("div",{style:{transform:"rotate(90deg)"}},u))),c.push(r.createElement("div",{key:"South",style:{top:e.y+e.height-n,left:e.x+e.width/2-o,width:t,height:n,borderTopLeftRadius:a,borderTopRightRadius:a},className:i+" "+this.getClassName(p.CLASSES.FLEXLAYOUT__EDGE_RECT_BOTTOM)},r.createElement("div",null,u))),c.push(r.createElement("div",{key:"East",style:{top:e.y+e.height/2-o,left:e.x+e.width-n,width:n,height:t,borderTopLeftRadius:a,borderBottomLeftRadius:a},className:i+" "+this.getClassName(p.CLASSES.FLEXLAYOUT__EDGE_RECT_RIGHT)},r.createElement("div",{style:{transform:"rotate(-90deg)"}},u)))}return r.createElement("div",{ref:this.selfRef,className:this.getClassName(p.CLASSES.FLEXLAYOUT__LAYOUT),onDragEnter:this.props.onExternalDrag?this.onDragEnter:void 0},t,this.tabIds.map((e=>o[e])),e,i,c,n,this.metricsElements(),this.state.portal)}metricsElements(){const e=this.styleFont({visibility:"hidden"});return r.createElement(r.Fragment,null,r.createElement("div",{key:"findHeaderBarSize",ref:this.findHeaderBarSizeRef,style:e,className:this.getClassName(p.CLASSES.FLEXLAYOUT__TABSET_HEADER_SIZER)},"FindHeaderBarSize"),r.createElement("div",{key:"findTabBarSize",ref:this.findTabBarSizeRef,style:e,className:this.getClassName(p.CLASSES.FLEXLAYOUT__TABSET_SIZER)},"FindTabBarSize"),r.createElement("div",{key:"findBorderBarSize",ref:this.findBorderBarSizeRef,style:e,className:this.getClassName(p.CLASSES.FLEXLAYOUT__BORDER_SIZER)},"FindBorderBarSize"))}renderBorder(e,t,n,o,i){for(const a of e.getBorders()){const e=`/border/${a.getLocation().getName()}`;if(a.isShowing()){t.push(r.createElement(h.BorderTabSet,{key:`border_${a.getLocation().getName()}`,path:e,border:a,layout:this,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons}));const l=a._getDrawChildren();let s=0,d=0;for(const t of l){if(t instanceof c.SplitterNode){let n=e+"/s";i.push(r.createElement(g.Splitter,{key:t.getId(),layout:this,node:t,path:n}))}else if(t instanceof u.TabNode){let i=e+"/t"+d++;if(this.supportsPopout&&t.isFloating()){const e=this._getScreenRect(t),l=t._getAttr("borderWidth"),c=t._getAttr("borderHeight");e&&(-1!==l&&a.getLocation().getOrientation()===w.Orientation.HORZ?e.width=l:-1!==c&&a.getLocation().getOrientation()===w.Orientation.VERT&&(e.height=c)),o.push(r.createElement(b.FloatingWindow,{key:t.getId(),url:this.popoutURL,rect:e,title:t.getName(),id:t.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},r.createElement(y.FloatingWindowTab,{layout:this,node:t,factory:this.props.factory}))),n[t.getId()]=r.createElement(S.TabFloating,{key:t.getId(),layout:this,path:i,node:t,selected:s===a.getSelected()})}else n[t.getId()]=r.createElement(m.Tab,{key:t.getId(),layout:this,path:i,node:t,selected:s===a.getSelected(),factory:this.props.factory})}s++}}}}renderChildren(e,t,n,o,i,a){const l=t._getDrawChildren();let s=0,f=0,p=0;for(const t of l)if(t instanceof c.SplitterNode){const n=e+"/s"+s++;a.push(r.createElement(g.Splitter,{key:t.getId(),layout:this,path:n,node:t}))}else if(t instanceof d.TabSetNode){const l=e+"/ts"+p++;n.push(r.createElement(v.TabSet,{key:t.getId(),layout:this,path:l,node:t,iconFactory:this.props.iconFactory,titleFactory:this.props.titleFactory,icons:this.icons})),this.renderChildren(l,t,n,o,i,a)}else if(t instanceof u.TabNode){const n=e+"/t"+f++,a=t.getParent().getChildren()[t.getParent().getSelected()];if(void 0===a&&console.warn("undefined selectedTab should not happen"),this.supportsPopout&&t.isFloating()){const e=this._getScreenRect(t);i.push(r.createElement(b.FloatingWindow,{key:t.getId(),url:this.popoutURL,rect:e,title:t.getName(),id:t.getId(),onSetWindow:this.onSetWindow,onCloseWindow:this.onCloseWindow},r.createElement(y.FloatingWindowTab,{layout:this,node:t,factory:this.props.factory}))),o[t.getId()]=r.createElement(S.TabFloating,{key:t.getId(),layout:this,path:n,node:t,selected:t===a})}else o[t.getId()]=r.createElement(m.Tab,{key:t.getId(),layout:this,path:n,node:t,selected:t===a,factory:this.props.factory})}else{const r=e+(t.getOrientation()===w.Orientation.HORZ?"/r":"/c")+p++;this.renderChildren(r,t,n,o,i,a)}}_getScreenRect(e){var t;const n=e.getRect().clone(),r=null===(t=this.selfRef.current)||void 0===t?void 0:t.getBoundingClientRect();if(!r)return null;const o=Math.min(80,this.currentWindow.outerHeight-this.currentWindow.innerHeight),i=Math.min(80,this.currentWindow.outerWidth-this.currentWindow.innerWidth);return n.x=n.x+r.x+this.currentWindow.screenX+i,n.y=n.y+r.y+this.currentWindow.screenY+o,n}addTabToTabSet(e,t){if(void 0!==this.props.model.getNodeById(e)){return this.doAction(l.Actions.addNode(t,e,i.DockLocation.CENTER,-1))}}addTabToActiveTabSet(e){const t=this.props.model.getActiveTabset();if(void 0!==t){return this.doAction(l.Actions.addNode(e,t.getId(),i.DockLocation.CENTER,-1))}}addTabWithDragAndDrop(e,t,n){this.fnNewNodeDropped=n,this.newTabJson=t,this.dragStart(void 0,e,u.TabNode._fromJson(t,this.props.model,!1),!0,void 0,void 0)}moveTabWithDragAndDrop(e,t){this.dragStart(void 0,t,e,!0,void 0,void 0)}addTabWithDragAndDropIndirect(e,t,n){this.fnNewNodeDropped=n,this.newTabJson=t,a.DragDrop.instance.addGlass(this.onCancelAdd),this.dragDivText=e,this.dragDiv=this.currentDocument.createElement("div"),this.dragDiv.className=this.getClassName(p.CLASSES.FLEXLAYOUT__DRAG_RECT),this.dragDiv.addEventListener("mousedown",this.onDragDivMouseDown),this.dragDiv.addEventListener("touchstart",this.onDragDivMouseDown,{passive:!1}),this.dragRectRender(this.dragDivText,void 0,this.newTabJson,(()=>{if(this.dragDiv){this.dragDiv.style.visibility="visible";const e=this.dragDiv.getBoundingClientRect(),t=new f.Rect(0,0,null==e?void 0:e.width,null==e?void 0:e.height);t.centerInRect(this.state.rect),this.dragDiv.setAttribute("data-layout-path","/drag-rectangle"),this.dragDiv.style.left=t.x+"px",this.dragDiv.style.top=t.y+"px"}}));this.selfRef.current.appendChild(this.dragDiv)}handleCustomTabDrag(e,t,n){var r,o,i;let l=null===(r=this.customDrop)||void 0===r?void 0:r.invalidated;const c=null===(o=this.customDrop)||void 0===o?void 0:o.callback;this.customDrop=void 0;const h=this.newTabJson||(this.dragNode instanceof u.TabNode?this.dragNode:void 0);if(h&&(e.node instanceof d.TabSetNode||e.node instanceof s.BorderNode)&&-1===e.index){const r=e.node.getSelectedNode(),o=null==r?void 0:r.getRect();if(r&&(null==o?void 0:o.contains(t.x,t.y))){let i;try{const a=this.onTabDrag(h,r,t.x-o.x,t.y-o.y,e.location,(()=>this.onDragMove(n)));a&&(i={rect:new f.Rect(a.x+o.x,a.y+o.y,a.width,a.height),callback:a.callback,invalidated:a.invalidated,dragging:h,over:r,x:t.x-o.x,y:t.y-o.y,location:e.location,cursor:a.cursor})}catch(e){console.error(e)}(null==i?void 0:i.callback)===c&&(l=void 0),this.customDrop=i}}this.dropInfo=e,this.outlineDiv&&(this.outlineDiv.className=this.getClassName(this.customDrop?p.CLASSES.FLEXLAYOUT__OUTLINE_RECT:e.className),this.customDrop?this.customDrop.rect.positionElement(this.outlineDiv):e.rect.positionElement(this.outlineDiv)),a.DragDrop.instance.setGlassCursorOverride(null===(i=this.customDrop)||void 0===i?void 0:i.cursor),this.outlineDiv&&(this.outlineDiv.style.visibility="visible");try{null==l||l()}catch(e){console.error(e)}}onDragEnter(e){if(a.DragDrop.instance.isDragging())return;const t=this.props.onExternalDrag(e);t&&(this.fnNewNodeDropped=t.onDrop,this.newTabJson=t.json,this.dragStart(e,t.dragText,u.TabNode._fromJson(t.json,this.props.model,!1),!0,void 0,void 0))}checkForBorderToShow(e,t){const n=this.props.model._getOuterInnerRects().outer,r=n.getCenter(),o=this.edgeRectWidth,a=this.edgeRectLength/2;let l=!1;this.props.model.isEnableEdgeDock()&&this.state.showHiddenBorder===i.DockLocation.CENTER&&(t>r.y-a&&tr.x-a&&e=n.getRight()-o?s=i.DockLocation.RIGHT:t<=n.y+o?s=i.DockLocation.TOP:t>=n.getBottom()-o&&(s=i.DockLocation.BOTTOM)),s!==this.state.showHiddenBorder&&this.setState({showHiddenBorder:s})}maximize(e){this.doAction(l.Actions.maximizeToggle(e.getId()))}customizeTab(e,t){this.props.onRenderTab&&this.props.onRenderTab(e,t)}customizeTabSet(e,t){this.props.onRenderTabSet&&this.props.onRenderTabSet(e,t)}i18nName(e,t){let n;return this.props.i18nMapper&&(n=this.props.i18nMapper(e,t)),void 0===n&&(n=e+(void 0===t?"":t)),n}getOnRenderFloatingTabPlaceholder(){return this.props.onRenderFloatingTabPlaceholder}getShowOverflowMenu(){return this.props.onShowOverflowMenu}getTabSetPlaceHolderCallback(){return this.props.onTabSetPlaceHolder}showContextMenu(e,t){this.props.onContextMenu&&this.props.onContextMenu(e,t)}auxMouseClick(e,t){this.props.onAuxMouseClick&&this.props.onAuxMouseClick(e,t)}}t.Layout=T;const k=e=>(r.useEffect((()=>{var t;null===(t=e.onRendered)||void 0===t||t.call(e)}),[e]),r.createElement(r.Fragment,null,e.children))},1996:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Splitter=void 0;const r=n(7294),o=n(268),i=n(3076),a=n(4268),l=n(3380),s=n(4115);t.Splitter=e=>{const{layout:t,node:n,path:c}=e,u=r.useRef([]),d=r.useRef(void 0),f=n.getParent(),p=e=>{var r;o.DragDrop.instance.setGlassCursorOverride(n.getOrientation()===l.Orientation.HORZ?"ns-resize":"ew-resize"),o.DragDrop.instance.startDrag(e,g,m,b,h,void 0,void 0,t.getCurrentDocument(),null!==(r=t.getRootDiv())&&void 0!==r?r:void 0),u.current=f._getSplitterBounds(n,!0);const i=t.getRootDiv();d.current=t.getCurrentDocument().createElement("div"),d.current.style.position="absolute",d.current.className=t.getClassName(s.CLASSES.FLEXLAYOUT__SPLITTER_DRAG),d.current.style.cursor=n.getOrientation()===l.Orientation.HORZ?"ns-resize":"ew-resize";const a=n.getRect();n.getOrientation()===l.Orientation.VERT&&a.width<2?a.width=2:n.getOrientation()===l.Orientation.HORZ&&a.height<2&&(a.height=2),a.positionElement(d.current),i&&i.appendChild(d.current)},h=e=>{const n=t.getRootDiv();n&&n.removeChild(d.current)},g=()=>!0,m=e=>{const r=t.getDomRect();if(!r)return;const o=e.clientX-r.left,i=e.clientY-r.top;d&&(n.getOrientation()===l.Orientation.HORZ?d.current.style.top=y(i-4)+"px":d.current.style.left=y(o-4)+"px"),t.isRealtimeResize()&&v()},v=()=>{let e=0;if(d&&(e=n.getOrientation()===l.Orientation.HORZ?d.current.offsetTop:d.current.offsetLeft),f instanceof a.BorderNode){const r=f._calculateSplit(n,e);t.doAction(i.Actions.adjustBorderSplit(n.getParent().getId(),r))}else{const r=f._calculateSplit(n,e);void 0!==r&&t.doAction(i.Actions.adjustSplit(r))}},b=()=>{v();const e=t.getRootDiv();e&&e.removeChild(d.current)},y=e=>{const t=u.current;let n=e;return et[1]&&(n=t[1]),n},S=t.getClassName;let w=n.getRect();const E=w.styleWithPosition({cursor:n.getOrientation()===l.Orientation.HORZ?"ns-resize":"ew-resize"});let C=S(s.CLASSES.FLEXLAYOUT__SPLITTER)+" "+S(s.CLASSES.FLEXLAYOUT__SPLITTER_+n.getOrientation().getName());f instanceof a.BorderNode?C+=" "+S(s.CLASSES.FLEXLAYOUT__SPLITTER_BORDER):void 0!==n.getModel().getMaximizedTabset()&&(E.display="none");const x=n.getModel().getSplitterExtra();if(0===x)return r.createElement("div",{style:E,"data-layout-path":c,className:C,onTouchStart:p,onMouseDown:p});{let e=w.clone();e.x=0,e.y=0,n.getOrientation()===l.Orientation.VERT?e.width+=x:e.height+=x;const t=e.styleWithPosition({cursor:n.getOrientation()===l.Orientation.HORZ?"ns-resize":"ew-resize"}),o=S(s.CLASSES.FLEXLAYOUT__SPLITTER_EXTRA);return r.createElement("div",{style:E,"data-layout-path":c,className:C},r.createElement("div",{style:t,className:o,onTouchStart:p,onMouseDown:p}))}}},178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;const r=n(7294),o=n(7294),i=n(3076),a=n(2733),l=n(4115),s=n(6180),c=n(5551),u=n(4268),d=n(4592);t.Tab=e=>{const{layout:t,selected:n,node:f,factory:p,path:h}=e,[g,m]=r.useState(!e.node.isEnableRenderOnDemand()||e.selected);r.useLayoutEffect((()=>{!g&&n&&m(!0)}));const v=()=>{const e=f.getParent();e.getType()===a.TabSetNode.TYPE&&(e.isActive()||t.doAction(i.Actions.setActiveTabset(e.getId())))},b=t.getClassName,y=f.getModel().isUseVisibility(),S=f.getParent(),w=f._styleWithPosition();let E;n||(0,d.hideElement)(w,y),S instanceof a.TabSetNode&&(void 0===f.getModel().getMaximizedTabset()||S.isMaximized()||(0,d.hideElement)(w,y)),g&&(E=p(f));let C=b(l.CLASSES.FLEXLAYOUT__TAB);return S instanceof u.BorderNode&&(C+=" "+b(l.CLASSES.FLEXLAYOUT__TAB_BORDER),C+=" "+b(l.CLASSES.FLEXLAYOUT__TAB_BORDER_+S.getLocation().getName())),void 0!==f.getContentClassName()&&(C+=" "+f.getContentClassName()),r.createElement("div",{className:C,"data-layout-path":h,onMouseDown:v,onTouchStart:v,style:w},r.createElement(s.ErrorBoundary,{message:e.layout.i18nName(c.I18nLabel.Error_rendering_component)},r.createElement(o.Fragment,null,E)))}},2112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabButton=void 0;const r=n(7294),o=n(5551),i=n(3076),a=n(807),l=n(7562),s=n(4115),c=n(4592);t.TabButton=e=>{const{layout:t,node:n,selected:u,iconFactory:d,titleFactory:f,icons:p,path:h}=e,g=r.useRef(null),m=r.useRef(null),v=e=>{(0,c.isAuxMouseEvent)(e)||t.getEditingTab()||t.dragStart(e,void 0,n,n.isEnableDrag(),y,S)},b=e=>{(0,c.isAuxMouseEvent)(e)&&t.auxMouseClick(n,e)},y=()=>{t.doAction(i.Actions.selectTab(n.getId()))},S=e=>{n.isEnableRename()&&w()},w=()=>{t.setEditingTab(n),t.getCurrentDocument().body.addEventListener("mousedown",E),t.getCurrentDocument().body.addEventListener("touchstart",E)},E=e=>{e.target!==m.current&&(t.getCurrentDocument().body.removeEventListener("mousedown",E),t.getCurrentDocument().body.removeEventListener("touchstart",E),t.setEditingTab(void 0))},C=e=>{(()=>{const e=n.getCloseType();return!!(u||e===l.ICloseType.Always||e===l.ICloseType.Visible&&window.matchMedia&&window.matchMedia("(hover: hover) and (pointer: fine)").matches)})()?t.doAction(i.Actions.deleteTab(n.getId())):y()},x=e=>{e.stopPropagation()};r.useLayoutEffect((()=>{_(),t.getEditingTab()===n&&m.current.select()}));const _=()=>{var e;const r=t.getDomRect(),o=null===(e=g.current)||void 0===e?void 0:e.getBoundingClientRect();o&&r&&n._setTabRect(new a.Rect(o.left-r.left,o.top-r.top,o.width,o.height))},O=e=>{e.stopPropagation()},T=e=>{"Escape"===e.code?t.setEditingTab(void 0):"Enter"===e.code&&(t.setEditingTab(void 0),t.doAction(i.Actions.renameTab(n.getId(),e.target.value)))},k=t.getClassName,R=n.getParent(),$=R.isEnableSingleTabStretch()&&1===R.getChildren().length;let N=$?s.CLASSES.FLEXLAYOUT__TAB_BUTTON_STRETCH:s.CLASSES.FLEXLAYOUT__TAB_BUTTON,A=k(N);A+=" "+k(N+"_"+R.getTabLocation()),$||(A+=u?" "+k(N+"--selected"):" "+k(N+"--unselected")),void 0!==n.getClassName()&&(A+=" "+n.getClassName());const P=(0,c.getRenderStateEx)(t,n,d,f);let M=P.content?r.createElement("div",{className:k(s.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},P.content):null;const L=P.leading?r.createElement("div",{className:k(s.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},P.leading):null;if(t.getEditingTab()===n&&(M=r.createElement("input",{ref:m,className:k(s.CLASSES.FLEXLAYOUT__TAB_BUTTON_TEXTBOX),"data-layout-path":h+"/textbox",type:"text",autoFocus:!0,defaultValue:n.getName(),onKeyDown:T,onMouseDown:O,onTouchStart:O})),n.isEnableClose()&&!$){const e=t.i18nName(o.I18nLabel.Close_Tab);P.buttons.push(r.createElement("div",{key:"close","data-layout-path":h+"/button/close",title:e,className:k(s.CLASSES.FLEXLAYOUT__TAB_BUTTON_TRAILING),onMouseDown:x,onClick:C,onTouchStart:x},"function"==typeof p.close?p.close(n):p.close))}return r.createElement("div",{ref:g,"data-layout-path":h,className:A,onMouseDown:v,onClick:b,onAuxClick:b,onContextMenu:e=>{t.showContextMenu(n,e)},onTouchStart:v,title:n.getHelpText()},L,M,P.buttons)}},5797:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabButtonStamp=void 0;const r=n(7294),o=n(4115),i=n(4592);t.TabButtonStamp=e=>{const{layout:t,node:n,iconFactory:a,titleFactory:l}=e,s=r.useRef(null),c=t.getClassName;let u=c(o.CLASSES.FLEXLAYOUT__TAB_BUTTON_STAMP);const d=(0,i.getRenderStateEx)(t,n,a,l);let f=d.content?r.createElement("div",{className:c(o.CLASSES.FLEXLAYOUT__TAB_BUTTON_CONTENT)},d.content):n._getNameForOverflowMenu();const p=d.leading?r.createElement("div",{className:c(o.CLASSES.FLEXLAYOUT__TAB_BUTTON_LEADING)},d.leading):null;return r.createElement("div",{ref:s,className:u,title:n.getHelpText()},p,f)}},2022:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabFloating=void 0;const r=n(7294),o=n(3076),i=n(2733),a=n(4115),l=n(5551),s=n(4592);t.TabFloating=e=>{const{layout:t,selected:n,node:c,path:u}=e,d=()=>{c.getWindow()&&c.getWindow().focus()},f=()=>{t.doAction(o.Actions.unFloatTab(c.getId()))},p=()=>{const e=c.getParent();e.getType()===i.TabSetNode.TYPE&&(e.isActive()||t.doAction(o.Actions.setActiveTabset(e.getId())))},h=e=>{e.preventDefault(),d()},g=e=>{e.preventDefault(),f()},m=t.getClassName,v=c.getParent(),b=c._styleWithPosition();n||(0,s.hideElement)(b,c.getModel().isUseVisibility()),v instanceof i.TabSetNode&&(void 0===c.getModel().getMaximizedTabset()||v.isMaximized()||(0,s.hideElement)(b,c.getModel().isUseVisibility()));const y=t.i18nName(l.I18nLabel.Floating_Window_Message),S=t.i18nName(l.I18nLabel.Floating_Window_Show_Window),w=t.i18nName(l.I18nLabel.Floating_Window_Dock_Window),E=t.getOnRenderFloatingTabPlaceholder();return E?r.createElement("div",{className:m(a.CLASSES.FLEXLAYOUT__TAB_FLOATING),onMouseDown:p,onTouchStart:p,style:b},E(f,d)):r.createElement("div",{className:m(a.CLASSES.FLEXLAYOUT__TAB_FLOATING),"data-layout-path":u,onMouseDown:p,onTouchStart:p,style:b},r.createElement("div",{className:m(a.CLASSES.FLEXLAYOUT__TAB_FLOATING_INNER)},r.createElement("div",null,y),r.createElement("div",null,r.createElement("a",{href:"#",onClick:h},S)),r.createElement("div",null,r.createElement("a",{href:"#",onClick:g},w))))}},1680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTabOverflow=void 0;const r=n(7294),o=n(807),i=n(2733),a=n(3380);t.useTabOverflow=(e,t,n,l)=>{const s=r.useRef(!0),c=r.useRef(!1),u=r.useRef(new o.Rect(0,0,0,0)),d=r.useRef(null),[f,p]=r.useState(0),h=r.useRef(!1),[g,m]=r.useState([]),v=r.useRef(0);r.useLayoutEffect((()=>{h.current=!1}),[e.getSelectedNode(),e.getRect().width,e.getRect().height]),r.useLayoutEffect((()=>{C()}));const b=d.current;r.useEffect((()=>{if(b)return b.addEventListener("wheel",y,{passive:!1}),()=>{b.removeEventListener("wheel",y)}}),[b]);const y=e=>{e.preventDefault()},S=e=>t===a.Orientation.HORZ?e.x:e.y,w=e=>t===a.Orientation.HORZ?e.getRight():e.getBottom(),E=e=>t===a.Orientation.HORZ?e.width:e.height,C=()=>{!0===s.current&&(c.current=!1);const t=e instanceof i.TabSetNode?e.getRect():e.getTabHeaderRect();let r=e.getChildren()[e.getChildren().length-1];const o=null===l.current?0:E(l.current.getBoundingClientRect());if(!0===s.current||0===v.current&&0!==g.length||t.width!==u.current.width||t.height!==u.current.height){v.current=g.length,u.current=t;const a=!(e instanceof i.TabSetNode)||!0===e.isEnableTabStrip();let l=w(t)-o;if(null!==n.current&&(l-=E(n.current.getBoundingClientRect())),a&&e.getChildren().length>0){if(0===g.length&&0===f&&w(r.getTabRect())+2=l-S(t)?n=S(t)-r:(i>l||rl&&(n=l-i))}const i=Math.max(0,l-(w(r.getTabRect())+2+n)),a=Math.min(0,f+n+i),u=a-f,d=[];for(let n=0;nl)&&d.push({node:r,index:n})}d.length>0&&(c.current=!0),s.current=!1,m(d),p(a)}}else s.current=!0};return{selfRef:d,position:f,userControlledLeft:h,hiddenTabs:g,onMouseWheel:e=>{let t=0;t=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX:-e.deltaY,1===e.deltaMode&&(t*=40),p(f+t),h.current=!0,e.stopPropagation()},tabsTruncated:c.current}}},9738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TabSet=void 0;const r=n(7294),o=n(5551),i=n(3076),a=n(31),l=n(2112),s=n(1680),c=n(3380),u=n(4115),d=n(4592);t.TabSet=e=>{const{node:t,layout:n,iconFactory:f,titleFactory:p,icons:h,path:g}=e,m=r.useRef(null),v=r.useRef(null),b=r.useRef(null),y=r.useRef(null),{selfRef:S,position:w,userControlledLeft:E,hiddenTabs:C,onMouseWheel:x,tabsTruncated:_}=(0,s.useTabOverflow)(t,c.Orientation.HORZ,m,y),O=e=>{const r=n.getShowOverflowMenu();if(void 0!==r)r(t,e,C,T);else{const e=v.current;(0,a.showPopup)(e,C,T,n,f,p)}e.stopPropagation()},T=e=>{n.doAction(i.Actions.selectTab(e.node.getId())),E.current=!1},k=e=>{if(!(0,d.isAuxMouseEvent)(e)){let r=t.getName();if(r=void 0===r?"":": "+r,n.doAction(i.Actions.setActiveTabset(t.getId())),!n.getEditingTab()){const i=n.i18nName(o.I18nLabel.Move_Tabset,r);void 0!==t.getModel().getMaximizedTabset()?n.dragStart(e,i,t,!1,(e=>{}),I):n.dragStart(e,i,t,t.isEnableDrag(),(e=>{}),I)}}},R=e=>{(0,d.isAuxMouseEvent)(e)&&n.auxMouseClick(t,e)},$=e=>{n.showContextMenu(t,e)},N=e=>{e.stopPropagation()},A=e=>{t.canMaximize()&&n.maximize(t),e.stopPropagation()},P=e=>{n.doAction(i.Actions.deleteTabset(t.getId())),e.stopPropagation()},M=e=>{n.doAction(i.Actions.deleteTab(t.getChildren()[0].getId())),e.stopPropagation()},L=e=>{void 0!==D&&n.doAction(i.Actions.floatTab(D.getId())),e.stopPropagation()},I=e=>{t.canMaximize()&&n.maximize(t)},Z=n.getClassName;null!==b.current&&0!==b.current.scrollLeft&&(b.current.scrollLeft=0);const D=t.getSelectedNode();let j=t._styleWithPosition();void 0===t.getModel().getMaximizedTabset()||t.isMaximized()||(0,d.hideElement)(j,t.getModel().isUseVisibility());const z=[];if(t.isEnableTabStrip())for(let e=0;e0&&(_||q?H=[...B,...H]:z.push(r.createElement("div",{ref:y,key:"sticky_buttons_container",onMouseDown:N,onTouchStart:N,onDragStart:e=>{e.preventDefault()},className:Z(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_STICKY_BUTTONS_CONTAINER)},B))),C.length>0){const e=n.i18nName(o.I18nLabel.Overflow_Menu_Tooltip);let i;i="function"==typeof h.more?h.more(t,C):r.createElement(r.Fragment,null,h.more,r.createElement("div",{className:Z(u.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW_COUNT)},C.length)),H.splice(Math.min(W.overflowPosition,H.length),0,r.createElement("button",{key:"overflowbutton","data-layout-path":g+"/button/overflow",ref:v,className:Z(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+Z(u.CLASSES.FLEXLAYOUT__TAB_BUTTON_OVERFLOW),title:e,onClick:O,onMouseDown:N,onTouchStart:N},i))}if(void 0!==D&&n.isSupportsPopout()&&D.isEnableFloat()&&!D.isFloating()){const e=n.i18nName(o.I18nLabel.Float_Tab);H.push(r.createElement("button",{key:"float","data-layout-path":g+"/button/float",title:e,className:Z(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+Z(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_FLOAT),onClick:L,onMouseDown:N,onTouchStart:N},"function"==typeof h.popout?h.popout(D):h.popout))}if(t.canMaximize()){const e=n.i18nName(o.I18nLabel.Restore),i=n.i18nName(o.I18nLabel.Maximize);(F?U:H).push(r.createElement("button",{key:"max","data-layout-path":g+"/button/max",title:t.isMaximized()?e:i,className:Z(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+Z(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_+(t.isMaximized()?"max":"min")),onClick:A,onMouseDown:N,onTouchStart:N},t.isMaximized()?"function"==typeof h.restore?h.restore(t):h.restore:"function"==typeof h.maximize?h.maximize(t):h.maximize))}if(!t.isMaximized()&&X){const e=q?n.i18nName(o.I18nLabel.Close_Tab):n.i18nName(o.I18nLabel.Close_Tabset);(F?U:H).push(r.createElement("button",{key:"close","data-layout-path":g+"/button/close",title:e,className:Z(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON)+" "+Z(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR_BUTTON_CLOSE),onClick:q?M:P,onMouseDown:N,onTouchStart:N},"function"==typeof h.closeTabset?h.closeTabset(t):h.closeTabset))}const G=r.createElement("div",{key:"toolbar",ref:m,className:Z(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:N,onTouchStart:N,onDragStart:e=>{e.preventDefault()}},H);let Y,K,Q=Z(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER);if(void 0!==t.getClassNameTabStrip()&&(Q+=" "+t.getClassNameTabStrip()),Q+=" "+u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_OUTER_+t.getTabLocation(),t.isActive()&&!F&&(Q+=" "+Z(u.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),t.isMaximized()&&!F&&(Q+=" "+Z(u.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),q){const e=t.getChildren()[0];void 0!==e.getTabSetClassName()&&(Q+=" "+e.getTabSetClassName())}if(F){const e=r.createElement("div",{key:"toolbar",ref:m,className:Z(u.CLASSES.FLEXLAYOUT__TAB_TOOLBAR),onMouseDown:N,onTouchStart:N,onDragStart:e=>{e.preventDefault()}},U);let n=Z(u.CLASSES.FLEXLAYOUT__TABSET_HEADER);t.isActive()&&(n+=" "+Z(u.CLASSES.FLEXLAYOUT__TABSET_SELECTED)),t.isMaximized()&&(n+=" "+Z(u.CLASSES.FLEXLAYOUT__TABSET_MAXIMIZED)),void 0!==t.getClassNameHeader()&&(n+=" "+t.getClassNameHeader()),Y=r.createElement("div",{className:n,style:{height:t.getHeaderHeight()+"px"},"data-layout-path":g+"/header",onMouseDown:k,onContextMenu:$,onClick:R,onAuxClick:R,onTouchStart:k},r.createElement("div",{className:Z(u.CLASSES.FLEXLAYOUT__TABSET_HEADER_CONTENT)},V),e)}const J={height:t.getTabStripHeight()+"px"};K=r.createElement("div",{className:Q,style:J,"data-layout-path":g+"/tabstrip",onMouseDown:k,onContextMenu:$,onClick:R,onAuxClick:R,onTouchStart:k},r.createElement("div",{ref:b,className:Z(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER)+" "+Z(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_+t.getTabLocation())},r.createElement("div",{style:{left:w,width:q?"100%":"10000px"},className:Z(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER)+" "+Z(u.CLASSES.FLEXLAYOUT__TABSET_TABBAR_INNER_TAB_CONTAINER_+t.getTabLocation())},z)),G),j=n.styleFont(j);var ee=void 0;if(0===t.getChildren().length){const e=n.getTabSetPlaceHolderCallback();e&&(ee=e(t))}const te=r.createElement("div",{className:Z(u.CLASSES.FLEXLAYOUT__TABSET_CONTENT)},ee);var ne;return ne="top"===t.getTabLocation()?r.createElement(r.Fragment,null,Y,K,te):r.createElement(r.Fragment,null,Y,te,K),r.createElement("div",{ref:S,dir:"ltr","data-layout-path":g,style:j,className:Z(u.CLASSES.FLEXLAYOUT__TABSET),onWheel:x},ne)}},4592:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAuxMouseEvent=t.hideElement=t.getRenderStateEx=void 0;const r=n(7294);t.getRenderStateEx=function(e,t,n,o,i){let a=n?n(t):void 0,l=t.getName(),s=t.getName();if(void 0===i&&(i=0),void 0!==o){const e=o(t);void 0!==e&&("string"==typeof e?(l=e,s=e):void 0!==e.titleContent?(l=e.titleContent,s=e.name):l=e)}void 0===a&&void 0!==t.getIcon()&&(a=0!==i?r.createElement("img",{style:{width:"1em",height:"1em",transform:"rotate("+i+"deg)"},src:t.getIcon(),alt:"leadingContent"}):r.createElement("img",{style:{width:"1em",height:"1em"},src:t.getIcon(),alt:"leadingContent"}));const c={leading:a,content:l,name:s,buttons:[]};return e.customizeTab(t,c),t._setRenderedName(c.name),c},t.hideElement=function(e,t){t?e.visibility="hidden":e.display="none"},t.isAuxMouseEvent=function(e){let t=!1;return e.nativeEvent instanceof MouseEvent&&(0!==e.nativeEvent.button||e.ctrlKey||e.altKey||e.metaKey||e.shiftKey)&&(t=!0),t}},8679:(e,t,n)=>{"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var l=s(t),g=s(n),m=0;m{"use strict";n.d(t,{s:()=>w,Z:()=>T});var r=n(7462),o=n(9439),i=n(8705),a=n(7294),l=a.createContext({}),s=n(1413),c=n(3967),u=n.n(c),d=n(4999),f=n(7028),p=n(5105),h=n(4217);function g(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function m(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var v=n(5461),b=n(2550);const y=a.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var S={width:0,height:0,overflow:"hidden",outline:"none"};const w=a.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,i=e.style,c=e.title,d=e.ariaId,f=e.footer,p=e.closable,h=e.closeIcon,g=e.onClose,m=e.children,v=e.bodyStyle,w=e.bodyProps,E=e.modalRender,C=e.onMouseDown,x=e.onMouseUp,_=e.holderRef,O=e.visible,T=e.forceRender,k=e.width,R=e.height,$=e.classNames,N=e.styles,A=a.useContext(l).panel,P=(0,b.x1)(_,A),M=(0,a.useRef)(),L=(0,a.useRef)();a.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=M.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===L.current?M.current.focus():e||t!==M.current||L.current.focus()}}}));var I,Z,D,j={};void 0!==k&&(j.width=k),void 0!==R&&(j.height=R),f&&(I=a.createElement("div",{className:u()("".concat(n,"-footer"),null==$?void 0:$.footer),style:(0,s.Z)({},null==N?void 0:N.footer)},f)),c&&(Z=a.createElement("div",{className:u()("".concat(n,"-header"),null==$?void 0:$.header),style:(0,s.Z)({},null==N?void 0:N.header)},a.createElement("div",{className:"".concat(n,"-title"),id:d},c))),p&&(D=a.createElement("button",{type:"button",onClick:g,"aria-label":"Close",className:"".concat(n,"-close")},h||a.createElement("span",{className:"".concat(n,"-close-x")})));var z=a.createElement("div",{className:u()("".concat(n,"-content"),null==$?void 0:$.content),style:null==N?void 0:N.content},D,Z,a.createElement("div",(0,r.Z)({className:u()("".concat(n,"-body"),null==$?void 0:$.body),style:(0,s.Z)((0,s.Z)({},v),null==N?void 0:N.body)},w),m),I);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?d:null,"aria-modal":"true",ref:P,style:(0,s.Z)((0,s.Z)({},i),j),className:u()(n,o),onMouseDown:C,onMouseUp:x},a.createElement("div",{tabIndex:0,ref:M,style:S,"aria-hidden":"true"}),a.createElement(y,{shouldUpdate:O||T},E?E(z):z),a.createElement("div",{tabIndex:0,ref:L,style:S,"aria-hidden":"true"}))}));var E=a.forwardRef((function(e,t){var n=e.prefixCls,i=e.title,l=e.style,c=e.className,d=e.visible,f=e.forceRender,p=e.destroyOnClose,h=e.motionName,g=e.ariaId,b=e.onVisibleChanged,y=e.mousePosition,S=(0,a.useRef)(),E=a.useState(),C=(0,o.Z)(E,2),x=C[0],_=C[1],O={};function T(){var e,t,n,r,o,i=(e=S.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=m(o),n.top+=m(o,!0),n);_(y?"".concat(y.x-i.left,"px ").concat(y.y-i.top,"px"):"")}return x&&(O.transformOrigin=x),a.createElement(v.ZP,{visible:d,onVisibleChanged:b,onAppearPrepare:T,onEnterPrepare:T,forceRender:f,motionName:h,removeOnLeave:p,ref:S},(function(o,d){var f=o.className,p=o.style;return a.createElement(w,(0,r.Z)({},e,{ref:t,title:i,ariaId:g,prefixCls:n,holderRef:d,style:(0,s.Z)((0,s.Z)((0,s.Z)({},p),l),O),className:u()(c,f)}))}))}));E.displayName="Content";const C=E;function x(e){var t=e.prefixCls,n=e.style,o=e.visible,i=e.maskProps,l=e.motionName,c=e.className;return a.createElement(v.ZP,{key:"mask",visible:o,motionName:l,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,o){var l=e.className,d=e.style;return a.createElement("div",(0,r.Z)({ref:o,style:(0,s.Z)((0,s.Z)({},d),n),className:u()("".concat(t,"-mask"),l,c)},i))}))}n(334);function _(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,i=e.zIndex,l=e.visible,c=void 0!==l&&l,m=e.keyboard,v=void 0===m||m,b=e.focusTriggerAfterClose,y=void 0===b||b,S=e.wrapStyle,w=e.wrapClassName,E=e.wrapProps,_=e.onClose,O=e.afterOpenChange,T=e.afterClose,k=e.transitionName,R=e.animation,$=e.closable,N=void 0===$||$,A=e.mask,P=void 0===A||A,M=e.maskTransitionName,L=e.maskAnimation,I=e.maskClosable,Z=void 0===I||I,D=e.maskStyle,j=e.maskProps,z=e.rootClassName,F=e.classNames,B=e.styles;var H=(0,a.useRef)(),U=(0,a.useRef)(),W=(0,a.useRef)(),V=a.useState(c),q=(0,o.Z)(V,2),X=q[0],G=q[1],Y=(0,f.Z)();function K(e){null==_||_(e)}var Q=(0,a.useRef)(!1),J=(0,a.useRef)(),ee=null;return Z&&(ee=function(e){Q.current?Q.current=!1:U.current===e.target&&K(e)}),(0,a.useEffect)((function(){c&&(G(!0),(0,d.Z)(U.current,document.activeElement)||(H.current=document.activeElement))}),[c]),(0,a.useEffect)((function(){return function(){clearTimeout(J.current)}}),[]),a.createElement("div",(0,r.Z)({className:u()("".concat(n,"-root"),z)},(0,h.Z)(e,{data:!0})),a.createElement(x,{prefixCls:n,visible:P&&c,motionName:g(n,M,L),style:(0,s.Z)((0,s.Z)({zIndex:i},D),null==B?void 0:B.mask),maskProps:j,className:null==F?void 0:F.mask}),a.createElement("div",(0,r.Z)({tabIndex:-1,onKeyDown:function(e){if(v&&e.keyCode===p.Z.ESC)return e.stopPropagation(),void K(e);c&&e.keyCode===p.Z.TAB&&W.current.changeActive(!e.shiftKey)},className:u()("".concat(n,"-wrap"),w,null==F?void 0:F.wrapper),ref:U,onClick:ee,style:(0,s.Z)((0,s.Z)((0,s.Z)({zIndex:i},S),null==B?void 0:B.wrapper),{},{display:X?null:"none"})},E),a.createElement(C,(0,r.Z)({},e,{onMouseDown:function(){clearTimeout(J.current),Q.current=!0},onMouseUp:function(){J.current=setTimeout((function(){Q.current=!1}))},ref:W,closable:N,ariaId:Y,prefixCls:n,visible:c&&X,onClose:K,onVisibleChanged:function(e){if(e)(0,d.Z)(U.current,document.activeElement)||null===(t=W.current)||void 0===t||t.focus();else{if(G(!1),P&&H.current&&y){try{H.current.focus({preventScroll:!0})}catch(e){}H.current=null}X&&(null==T||T())}var t;null==O||O(e)},motionName:g(n,k,R)}))))}var O=function(e){var t=e.visible,n=e.getContainer,s=e.forceRender,c=e.destroyOnClose,u=void 0!==c&&c,d=e.afterClose,f=e.panelRef,p=a.useState(t),h=(0,o.Z)(p,2),g=h[0],m=h[1],v=a.useMemo((function(){return{panel:f}}),[f]);return a.useEffect((function(){t&&m(!0)}),[t]),s||!u||g?a.createElement(l.Provider,{value:v},a.createElement(i.Z,{open:t||s||g,autoDestroy:!1,getContainer:n,autoLock:t||g},a.createElement(_,(0,r.Z)({},e,{destroyOnClose:u,afterClose:function(){null==d||d(),m(!1)}})))):null};O.displayName="Dialog";const T=O},5461:(e,t,n)=>{"use strict";n.d(t,{V4:()=>ge,zt:()=>g,ZP:()=>me});var r=n(4942),o=n(1413),i=n(9439),a=n(1002),l=n(3967),s=n.n(l),c=n(4203),u=n(2550),d=n(7294),f=n(4925),p=["children"],h=d.createContext({});function g(e){var t=e.children,n=(0,f.Z)(e,p);return d.createElement(h.Provider,{value:n},t)}var m=n(5671),v=n(3144),b=n(9340),y=n(9388);const S=function(e){(0,b.Z)(n,e);var t=(0,y.Z)(n);function n(){return(0,m.Z)(this,n),t.apply(this,arguments)}return(0,v.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);var w=n(470),E="none",C="appear",x="enter",_="leave",O="none",T="prepare",k="start",R="active",$="end",N="prepared",A=n(8924);function P(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var M,L,I,Z=(M=(0,A.Z)(),L="undefined"!=typeof window?window:{},I={animationend:P("Animation","AnimationEnd"),transitionend:P("Transition","TransitionEnd")},M&&("AnimationEvent"in L||delete I.animationend.animation,"TransitionEvent"in L||delete I.transitionend.transition),I),D={};if((0,A.Z)()){var j=document.createElement("div");D=j.style}var z={};function F(e){if(z[e])return z[e];var t=Z[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,Y.Z)((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),c=(0,i.Z)(s,2),u=c[0],f=c[1];var p=t?Q:K;return G((function(){if(a!==O&&a!==$){var e=p.indexOf(a),t=p[e+1],r=n(a);r===J?l(t,!0):t&&u((function(e){function n(){e.isCanceled()||l(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,a]),d.useEffect((function(){return function(){f()}}),[]),[function(){l(T,!0)},a]};const re=function(e){var t=e;"object"===(0,a.Z)(e)&&(t=e.transitionSupport);var n=d.forwardRef((function(e,n){var a=e.visible,l=void 0===a||a,f=e.removeOnLeave,p=void 0===f||f,g=e.forceRender,m=e.children,v=e.motionName,b=e.leavedClassName,y=e.eventProps,O=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d.useContext(h).motion),$=(0,d.useRef)(),A=(0,d.useRef)();var P=function(e,t,n,a){var l=a.motionEnter,s=void 0===l||l,c=a.motionAppear,u=void 0===c||c,f=a.motionLeave,p=void 0===f||f,h=a.motionDeadline,g=a.motionLeaveImmediately,m=a.onAppearPrepare,v=a.onEnterPrepare,b=a.onLeavePrepare,y=a.onAppearStart,S=a.onEnterStart,O=a.onLeaveStart,$=a.onAppearActive,A=a.onEnterActive,P=a.onLeaveActive,M=a.onAppearEnd,L=a.onEnterEnd,I=a.onLeaveEnd,Z=a.onVisibleChanged,D=(0,w.Z)(),j=(0,i.Z)(D,2),z=j[0],F=j[1],B=(0,w.Z)(E),H=(0,i.Z)(B,2),U=H[0],W=H[1],V=(0,w.Z)(null),q=(0,i.Z)(V,2),Y=q[0],K=q[1],Q=(0,d.useRef)(!1),re=(0,d.useRef)(null);function oe(){return n()}var ie=(0,d.useRef)(!1);function ae(){W(E,!0),K(null,!0)}function le(e){var t=oe();if(!e||e.deadline||e.target===t){var n,r=ie.current;U===C&&r?n=null==M?void 0:M(t,e):U===x&&r?n=null==L?void 0:L(t,e):U===_&&r&&(n=null==I?void 0:I(t,e)),U!==E&&r&&!1!==n&&ae()}}var se=X(le),ce=(0,i.Z)(se,1)[0],ue=function(e){var t,n,o;switch(e){case C:return t={},(0,r.Z)(t,T,m),(0,r.Z)(t,k,y),(0,r.Z)(t,R,$),t;case x:return n={},(0,r.Z)(n,T,v),(0,r.Z)(n,k,S),(0,r.Z)(n,R,A),n;case _:return o={},(0,r.Z)(o,T,b),(0,r.Z)(o,k,O),(0,r.Z)(o,R,P),o;default:return{}}},de=d.useMemo((function(){return ue(U)}),[U]),fe=ne(U,!e,(function(e){if(e===T){var t=de[T];return t?t(oe()):J}var n;return ge in de&&K((null===(n=de[ge])||void 0===n?void 0:n.call(de,oe(),null))||null),ge===R&&(ce(oe()),h>0&&(clearTimeout(re.current),re.current=setTimeout((function(){le({deadline:!0})}),h))),ge===N&&ae(),ee})),pe=(0,i.Z)(fe,2),he=pe[0],ge=pe[1],me=te(ge);ie.current=me,G((function(){F(t);var n,r=Q.current;Q.current=!0,!r&&t&&u&&(n=C),r&&t&&s&&(n=x),(r&&!t&&p||!r&&g&&!t&&p)&&(n=_);var o=ue(n);n&&(e||o[T])?(W(n),he()):W(E)}),[t]),(0,d.useEffect)((function(){(U===C&&!u||U===x&&!s||U===_&&!p)&&W(E)}),[u,s,p]),(0,d.useEffect)((function(){return function(){Q.current=!1,clearTimeout(re.current)}}),[]);var ve=d.useRef(!1);(0,d.useEffect)((function(){z&&(ve.current=!0),void 0!==z&&U===E&&((ve.current||z)&&(null==Z||Z(z)),ve.current=!0)}),[z,U]);var be=Y;return de[T]&&ge===k&&(be=(0,o.Z)({transition:"none"},be)),[U,ge,be,null!=z?z:t]}(O,l,(function(){try{return $.current instanceof HTMLElement?$.current:(0,c.Z)(A.current)}catch(e){return null}}),e),M=(0,i.Z)(P,4),L=M[0],I=M[1],Z=M[2],D=M[3],j=d.useRef(D);D&&(j.current=!0);var z,F=d.useCallback((function(e){$.current=e,(0,u.mH)(n,e)}),[n]),B=(0,o.Z)((0,o.Z)({},y),{},{visible:l});if(m)if(L===E)z=D?m((0,o.Z)({},B),F):!p&&j.current&&b?m((0,o.Z)((0,o.Z)({},B),{},{className:b}),F):g||!p&&!b?m((0,o.Z)((0,o.Z)({},B),{},{style:{display:"none"}}),F):null;else{var H,U;I===T?U="prepare":te(I)?U="active":I===k&&(U="start");var W=q(v,"".concat(L,"-").concat(U));z=m((0,o.Z)((0,o.Z)({},B),{},{className:s()(q(v,L),(H={},(0,r.Z)(H,W,W&&U),(0,r.Z)(H,v,"string"==typeof v),H)),style:Z}),F)}else z=null;d.isValidElement(z)&&(0,u.Yr)(z)&&(z.ref||(z=d.cloneElement(z,{ref:F})));return d.createElement(S,{ref:A},z)}));return n.displayName="CSSMotion",n}(U);var oe=n(7462),ie=n(7326),ae="add",le="keep",se="remove",ce="removed";function ue(e){var t;return t=e&&"object"===(0,a.Z)(e)&&"key"in e?e:{key:e},(0,o.Z)((0,o.Z)({},t),{},{key:String(t.key)})}function de(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ue)}var fe=["component","children","onVisibleChanged","onAllRemoved"],pe=["status"],he=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const ge=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re,n=function(e){(0,b.Z)(i,e);var n=(0,y.Z)(i);function i(){var e;(0,m.Z)(this,i);for(var t=arguments.length,a=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=de(e),l=de(t);a.forEach((function(e){for(var t=!1,a=r;a1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==se}))).forEach((function(t){t.key===e&&(t.status=le)}))})),n}(r,i);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==ce||e.status!==se}))}}}]),i}(d.Component);return(0,r.Z)(n,"defaultProps",{component:"div"}),n}(U),me=re},6871:(e,t,n)=>{"use strict";n.d(t,{qX:()=>g,JB:()=>v,lm:()=>O});var r=n(3433),o=n(9439),i=n(4925),a=n(7294),l=n(1413),s=n(3935),c=n(7462),u=n(4942),d=n(3967),f=n.n(d),p=n(5461),h=n(5105);const g=a.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,i=e.className,l=e.duration,s=void 0===l?4.5:l,d=e.eventKey,p=e.content,g=e.closable,m=e.closeIcon,v=void 0===m?"x":m,b=e.props,y=e.onClick,S=e.onNoticeClose,w=e.times,E=e.hovering,C=a.useState(!1),x=(0,o.Z)(C,2),_=x[0],O=x[1],T=E||_,k=function(){S(d)};a.useEffect((function(){if(!T&&s>0){var e=setTimeout((function(){k()}),1e3*s);return function(){clearTimeout(e)}}}),[s,T,w]);var R="".concat(n,"-notice");return a.createElement("div",(0,c.Z)({},b,{ref:t,className:f()(R,i,(0,u.Z)({},"".concat(R,"-closable"),g)),style:r,onMouseEnter:function(e){var t;O(!0),null==b||null===(t=b.onMouseEnter)||void 0===t||t.call(b,e)},onMouseLeave:function(e){var t;O(!1),null==b||null===(t=b.onMouseLeave)||void 0===t||t.call(b,e)},onClick:y}),a.createElement("div",{className:"".concat(R,"-content")},p),g&&a.createElement("a",{tabIndex:0,className:"".concat(R,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==h.Z.ENTER||k()},onClick:function(e){e.preventDefault(),e.stopPropagation(),k()}},v))}));var m=a.createContext({});const v=function(e){var t=e.children,n=e.classNames;return a.createElement(m.Provider,{value:{classNames:n}},t)};var b=n(1002);const y=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};e&&"object"===(0,b.Z)(e)&&(o.offset=null!==(t=e.offset)&&void 0!==t?t:8,o.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,o.gap=null!==(r=e.gap)&&void 0!==r?r:16);return[!!e,o]};var S=["className","style","classNames","styles"];const w=function(e){var t,n=e.configList,s=e.placement,d=e.prefixCls,h=e.className,v=e.style,b=e.motion,w=e.onAllNoticeRemoved,E=e.onNoticeClose,C=e.stack,x=(0,a.useContext)(m).classNames,_=(0,a.useRef)({}),O=(0,a.useState)(null),T=(0,o.Z)(O,2),k=T[0],R=T[1],$=(0,a.useState)([]),N=(0,o.Z)($,2),A=N[0],P=N[1],M=n.map((function(e){return{config:e,key:String(e.key)}})),L=y(C),I=(0,o.Z)(L,2),Z=I[0],D=I[1],j=D.offset,z=D.threshold,F=D.gap,B=Z&&(A.length>0||M.length<=z),H="function"==typeof b?b(s):b;return(0,a.useEffect)((function(){Z&&A.length>1&&P((function(e){return e.filter((function(e){return M.some((function(t){var n=t.key;return e===n}))}))}))}),[A,M,Z]),(0,a.useEffect)((function(){var e,t;Z&&_.current[null===(e=M[M.length-1])||void 0===e?void 0:e.key]&&R(_.current[null===(t=M[M.length-1])||void 0===t?void 0:t.key])}),[M,Z]),a.createElement(p.V4,(0,c.Z)({key:s,className:f()(d,"".concat(d,"-").concat(s),null==x?void 0:x.list,h,(t={},(0,u.Z)(t,"".concat(d,"-stack"),!!Z),(0,u.Z)(t,"".concat(d,"-stack-expanded"),B),t)),style:v,keys:M,motionAppear:!0},H,{onAllRemoved:function(){w(s)}}),(function(e,t){var n=e.config,o=e.className,u=e.style,p=e.index,h=n,m=h.key,v=h.times,b=String(m),y=n,w=y.className,C=y.style,O=y.classNames,T=y.styles,R=(0,i.Z)(y,S),$=M.findIndex((function(e){return e.key===b})),N={};if(Z){var L=M.length-1-($>-1?$:p-1),I="top"===s||"bottom"===s?"-50%":"0";if(L>0){var D,z,H;N.height=B?null===(D=_.current[b])||void 0===D?void 0:D.offsetHeight:null==k?void 0:k.offsetHeight;for(var U=0,W=0;W-1?_.current[b]=e:delete _.current[b]},prefixCls:d,classNames:O,styles:T,className:f()(w,null==x?void 0:x.notice),style:C,times:v,key:m,eventKey:m,onNoticeClose:E,hovering:Z&&A.length>0})))}))};const E=a.forwardRef((function(e,t){var n=e.prefixCls,i=void 0===n?"rc-notification":n,c=e.container,u=e.motion,d=e.maxCount,f=e.className,p=e.style,h=e.onAllRemoved,g=e.stack,m=e.renderNotifications,v=a.useState([]),b=(0,o.Z)(v,2),y=b[0],S=b[1],E=function(e){var t,n=y.find((function(t){return t.key===e}));null==n||null===(t=n.onClose)||void 0===t||t.call(n),S((function(t){return t.filter((function(t){return t.key!==e}))}))};a.useImperativeHandle(t,(function(){return{open:function(e){S((function(t){var n,o=(0,r.Z)(t),i=o.findIndex((function(t){return t.key===e.key})),a=(0,l.Z)({},e);i>=0?(a.times=((null===(n=t[i])||void 0===n?void 0:n.times)||0)+1,o[i]=a):(a.times=0,o.push(a));return d>0&&o.length>d&&(o=o.slice(-d)),o}))},close:function(e){E(e)},destroy:function(){S([])}}}));var C=a.useState({}),x=(0,o.Z)(C,2),_=x[0],O=x[1];a.useEffect((function(){var e={};y.forEach((function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))})),Object.keys(_).forEach((function(t){e[t]=e[t]||[]})),O(e)}),[y]);var T=function(e){O((function(t){var n=(0,l.Z)({},t);return(n[e]||[]).length||delete n[e],n}))},k=a.useRef(!1);if(a.useEffect((function(){Object.keys(_).length>0?k.current=!0:k.current&&(null==h||h(),k.current=!1)}),[_]),!c)return null;var R=Object.keys(_);return(0,s.createPortal)(a.createElement(a.Fragment,null,R.map((function(e){var t=_[e],n=a.createElement(w,{key:e,configList:t,placement:e,prefixCls:i,className:null==f?void 0:f(e),style:null==p?void 0:p(e),motion:u,onNoticeClose:E,onAllNoticeRemoved:T,stack:g});return m?m(n,{prefixCls:i,key:e}):n}))),c)}));var C=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],x=function(){return document.body},_=0;function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?x:t,l=e.motion,s=e.prefixCls,c=e.maxCount,u=e.className,d=e.style,f=e.onAllRemoved,p=e.stack,h=e.renderNotifications,g=(0,i.Z)(e,C),m=a.useState(),v=(0,o.Z)(m,2),b=v[0],y=v[1],S=a.useRef(),w=a.createElement(E,{container:b,ref:S,prefixCls:s,motion:l,maxCount:c,className:u,style:d,onAllRemoved:f,stack:p,renderNotifications:h}),O=a.useState([]),T=(0,o.Z)(O,2),k=T[0],R=T[1],$=a.useMemo((function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r{"use strict";n.d(t,{Z:()=>L});var r=n(7462),o=n(1413),i=n(9439),a=n(4925),l=n(7294),s=n(3967),c=n.n(s),u=n(5375),d=n(8410),f=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0;function h(e,t){var n=e.prefixCls,i=e.invalidate,s=e.item,d=e.renderItem,h=e.responsive,g=e.responsiveDisabled,m=e.registerSize,v=e.itemKey,b=e.className,y=e.style,S=e.children,w=e.display,E=e.order,C=e.component,x=void 0===C?"div":C,_=(0,a.Z)(e,f),O=h&&!w;function T(e){m(v,e)}l.useEffect((function(){return function(){T(null)}}),[]);var k,R=d&&s!==p?d(s):S;i||(k={opacity:O?0:1,height:O?0:p,overflowY:O?"hidden":p,order:h?E:p,pointerEvents:O?"none":p,position:O?"absolute":p});var $={};O&&($["aria-hidden"]=!0);var N=l.createElement(x,(0,r.Z)({className:c()(!i&&n,b),style:(0,o.Z)((0,o.Z)({},k),y)},$,_,{ref:t}),R);return h&&(N=l.createElement(u.Z,{onResize:function(e){T(e.offsetWidth)},disabled:g},N)),N}var g=l.forwardRef(h);g.displayName="Item";const m=g;var v=n(6680),b=n(3935),y=n(5164);function S(){var e=l.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)(0,y.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,b.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function w(e,t){var n=l.useState(t),r=(0,i.Z)(n,2),o=r[0],a=r[1];return[o,(0,v.Z)((function(t){e((function(){a(t)}))}))]}var E=l.createContext(null),C=["component"],x=["className"],_=["className"],O=function(e,t){var n=l.useContext(E);if(!n){var o=e.component,i=void 0===o?"div":o,s=(0,a.Z)(e,C);return l.createElement(i,(0,r.Z)({},s,{ref:t}))}var u=n.className,d=(0,a.Z)(n,x),f=e.className,p=(0,a.Z)(e,_);return l.createElement(E.Provider,{value:null},l.createElement(m,(0,r.Z)({ref:t,className:c()(u,f)},d,p)))},T=l.forwardRef(O);T.displayName="RawItem";const k=T;var R=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],$="responsive",N="invalidate";function A(e){return"+ ".concat(e.length," ...")}function P(e,t){var n=e.prefixCls,s=void 0===n?"rc-overflow":n,f=e.data,p=void 0===f?[]:f,h=e.renderItem,g=e.renderRawItem,v=e.itemKey,b=e.itemWidth,y=void 0===b?10:b,C=e.ssr,x=e.style,_=e.className,O=e.maxCount,T=e.renderRest,k=e.renderRawRest,P=e.suffix,M=e.component,L=void 0===M?"div":M,I=e.itemComponent,Z=e.onVisibleChange,D=(0,a.Z)(e,R),j="full"===C,z=S(),F=w(z,null),B=(0,i.Z)(F,2),H=B[0],U=B[1],W=H||0,V=w(z,new Map),q=(0,i.Z)(V,2),X=q[0],G=q[1],Y=w(z,0),K=(0,i.Z)(Y,2),Q=K[0],J=K[1],ee=w(z,0),te=(0,i.Z)(ee,2),ne=te[0],re=te[1],oe=w(z,0),ie=(0,i.Z)(oe,2),ae=ie[0],le=ie[1],se=(0,l.useState)(null),ce=(0,i.Z)(se,2),ue=ce[0],de=ce[1],fe=(0,l.useState)(null),pe=(0,i.Z)(fe,2),he=pe[0],ge=pe[1],me=l.useMemo((function(){return null===he&&j?Number.MAX_SAFE_INTEGER:he||0}),[he,H]),ve=(0,l.useState)(!1),be=(0,i.Z)(ve,2),ye=be[0],Se=be[1],we="".concat(s,"-item"),Ee=Math.max(Q,ne),Ce=O===$,xe=p.length&&Ce,_e=O===N,Oe=xe||"number"==typeof O&&p.length>O,Te=(0,l.useMemo)((function(){var e=p;return xe?e=null===H&&j?p:p.slice(0,Math.min(p.length,W/y)):"number"==typeof O&&(e=p.slice(0,O)),e}),[p,y,H,O,xe]),ke=(0,l.useMemo)((function(){return xe?p.slice(me+1):p.slice(Te.length)}),[p,Te,xe,me]),Re=(0,l.useCallback)((function(e,t){var n;return"function"==typeof v?v(e):null!==(n=v&&(null==e?void 0:e[v]))&&void 0!==n?n:t}),[v]),$e=(0,l.useCallback)(h||function(e){return e},[h]);function Ne(e,t,n){(he!==e||void 0!==t&&t!==ue)&&(ge(e),n||(Se(eW){Ne(r-1,e-o-ae+ne);break}}P&&Pe(0)+ae>W&&de(null)}}),[W,X,ne,ae,Re,Te]);var Me=ye&&!!ke.length,Le={};null!==ue&&xe&&(Le={position:"absolute",left:ue,top:0});var Ie,Ze={prefixCls:we,responsive:xe,component:I,invalidate:_e},De=g?function(e,t){var n=Re(e,t);return l.createElement(E.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},Ze),{},{order:t,item:e,itemKey:n,registerSize:Ae,display:t<=me})},g(e,t))}:function(e,t){var n=Re(e,t);return l.createElement(m,(0,r.Z)({},Ze,{order:t,key:n,item:e,renderItem:$e,itemKey:n,registerSize:Ae,display:t<=me}))},je={order:Me?me:Number.MAX_SAFE_INTEGER,className:"".concat(we,"-rest"),registerSize:function(e,t){re(t),J(ne)},display:Me};if(k)k&&(Ie=l.createElement(E.Provider,{value:(0,o.Z)((0,o.Z)({},Ze),je)},k(ke)));else{var ze=T||A;Ie=l.createElement(m,(0,r.Z)({},Ze,je),"function"==typeof ze?ze(ke):ze)}var Fe=l.createElement(L,(0,r.Z)({className:c()(!_e&&s,_),style:x,ref:t},D),Te.map(De),Oe?Ie:null,P&&l.createElement(m,(0,r.Z)({},Ze,{responsive:Ce,responsiveDisabled:!xe,order:me,className:"".concat(we,"-suffix"),registerSize:function(e,t){le(t)},display:!0,style:Le}),P));return Ce&&(Fe=l.createElement(u.Z,{onResize:function(e,t){U(t.clientWidth)},disabled:!xe},Fe)),Fe}var M=l.forwardRef(P);M.displayName="Overflow",M.Item=k,M.RESPONSIVE=$,M.INVALIDATE=N;const L=M},2906:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},5375:(e,t,n)=>{"use strict";n.d(t,{Z:()=>U});var r=n(7462),o=n(7294),i=n(344),a=(n(334),n(1413)),l=n(1002),s=n(4203),c=n(2550),u=o.createContext(null);var d=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){f&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),m?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){f&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;g.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),b=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),$="undefined"!=typeof WeakMap?new WeakMap:new d,N=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=v.getInstance(),r=new R(t,n,this);$.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){N.prototype[e]=function(){var t;return(t=$.get(this))[e].apply(t,arguments)}}));const A=void 0!==p.ResizeObserver?p.ResizeObserver:N;var P=new Map;var M=new A((function(e){e.forEach((function(e){var t,n=e.target;null===(t=P.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var L=n(5671),I=n(3144),Z=n(9340),D=n(9388),j=function(e){(0,Z.Z)(n,e);var t=(0,D.Z)(n);function n(){return(0,L.Z)(this,n),t.apply(this,arguments)}return(0,I.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);function z(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),d=o.useRef(null),f=o.useContext(u),p="function"==typeof n,h=p?n(i):n,g=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),m=!p&&o.isValidElement(h)&&(0,c.Yr)(h),v=m?h.ref:null,b=(0,c.x1)(v,i),y=function(){var e;return(0,s.Z)(i.current)||(i.current&&"object"===(0,l.Z)(i.current)?(0,s.Z)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,s.Z)(d.current)};o.useImperativeHandle(t,(function(){return y()}));var S=o.useRef(e);S.current=e;var w=o.useCallback((function(e){var t=S.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,s=e.offsetWidth,c=e.offsetHeight,u=Math.floor(i),d=Math.floor(l);if(g.current.width!==u||g.current.height!==d||g.current.offsetWidth!==s||g.current.offsetHeight!==c){var p={width:u,height:d,offsetWidth:s,offsetHeight:c};g.current=p;var h=s===Math.round(i)?i:s,m=c===Math.round(l)?l:c,v=(0,a.Z)((0,a.Z)({},p),{},{offsetWidth:h,offsetHeight:m});null==f||f(v,e,r),n&&Promise.resolve().then((function(){n(v,e)}))}}),[]);return o.useEffect((function(){var e,t,n=y();return n&&!r&&(e=n,t=w,P.has(e)||(P.set(e,new Set),M.observe(e)),P.get(e).add(t)),function(){return function(e,t){P.has(e)&&(P.get(e).delete(t),P.get(e).size||(M.unobserve(e),P.delete(e)))}(n,w)}}),[i.current,r]),o.createElement(j,{ref:d},m?o.cloneElement(h,{ref:b}):h)}const F=o.forwardRef(z);function B(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map((function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return o.createElement(F,(0,r.Z)({},e,{key:a,ref:0===i?t:void 0}),n)}))}var H=o.forwardRef(B);H.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(u),l=o.useCallback((function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){l===r.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,o)}),[n,a]);return o.createElement(u.Provider,{value:l},t)};const U=H},344:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7294),o=n(1805);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(i(e)):(0,o.isFragment)(e)&&e.props?n=n.concat(i(e.props.children,t)):n.push(e))})),n}},8924:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:()=>r})},4999:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{Z:()=>r})},4958:(e,t,n)=>{"use strict";n.d(t,{hq:()=>g,jL:()=>h});var r=n(8924),o=n(4999),i="data-rc-order",a="data-rc-priority",l="rc-util-key",s=new Map;function c(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):l}function u(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function d(e){return Array.from((s.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var n=t.csp,o=t.prepend,l=t.priority,s=void 0===l?0:l,c=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(o),f="prependQueue"===c,p=document.createElement("style");p.setAttribute(i,c),f&&s&&p.setAttribute(a,"".concat(s)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var h=u(t),g=h.firstChild;if(o){if(f){var m=d(h).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(i)))return!1;var t=Number(e.getAttribute(a)||0);return s>=t}));if(m.length)return h.insertBefore(p,m[m.length-1].nextSibling),p}h.insertBefore(p,g)}else h.appendChild(p);return p}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(u(t)).find((function(n){return n.getAttribute(c(t))===e}))}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p(e,t);n&&u(t).removeChild(n)}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=s.get(e);if(!n||!(0,o.Z)(document,n)){var r=f("",t),i=r.parentNode;s.set(e,i),e.removeChild(r)}}(u(n),n);var r=p(t,n);if(r){var i,a,l;if(null!==(i=n.csp)&&void 0!==i&&i.nonce&&r.nonce!==(null===(a=n.csp)||void 0===a?void 0:a.nonce))r.nonce=null===(l=n.csp)||void 0===l?void 0:l.nonce;return r.innerHTML!==e&&(r.innerHTML=e),r}var d=f(e,n);return d.setAttribute(c(n),t),d}},4203:(e,t,n)=>{"use strict";n.d(t,{S:()=>i,Z:()=>a});var r=n(7294),o=n(3935);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},5110:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},7571:(e,t,n)=>{"use strict";function r(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,{A:()=>o})},5105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},8135:(e,t,n)=>{"use strict";var r;n.d(t,{s:()=>m,v:()=>S});var o,i=n(4165),a=n(5861),l=n(1002),s=n(1413),c=n(3935),u=(0,s.Z)({},r||(r=n.t(c,2))),d=u.version,f=u.render,p=u.unmountComponentAtNode;try{Number((d||"").split(".")[0])>=18&&(o=u.createRoot)}catch(e){}function h(e){var t=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,l.Z)(t)&&(t.usingClientEntryPoint=e)}var g="__rc_react_root__";function m(e,t){o?function(e,t){h(!0);var n=t[g]||o(t);h(!1),n.render(e),t[g]=n}(e,t):function(e,t){f(e,t)}(e,t)}function v(e){return b.apply(this,arguments)}function b(){return(b=(0,a.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[g])||void 0===e||e.unmount(),delete t[g]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){p(e)}function S(e){return w.apply(this,arguments)}function w(){return(w=(0,a.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===o){e.next=2;break}return e.abrupt("return",v(t));case 2:y(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},6680:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294);function o(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o{"use strict";var r;n.d(t,{Z:()=>c});var o=n(9439),i=n(1413),a=n(7294);var l=0;var s=(0,i.Z)({},r||(r=n.t(a,2))).useId;const c=s?function(e){var t=s();return e||t}:function(e){var t=a.useState("ssr-id"),n=(0,o.Z)(t,2),r=n[0],i=n[1];return a.useEffect((function(){var e=l;l+=1,i("rc_unique_".concat(e))}),[]),e||r}},8410:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l,o:()=>a});var r=n(7294),o=(0,n(8924).Z)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])},a=function(e,t){i((function(t){if(!t)return e()}),t)};const l=i},6982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7294);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},1770:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9439),o=n(6680),i=n(8410),a=n(470);function l(e){return void 0!==e}function s(e,t){var n=t||{},s=n.defaultValue,c=n.value,u=n.onChange,d=n.postState,f=(0,a.Z)((function(){return l(c)?c:l(s)?"function"==typeof s?s():s:"function"==typeof e?e():e})),p=(0,r.Z)(f,2),h=p[0],g=p[1],m=void 0!==c?c:h,v=d?d(m):m,b=(0,o.Z)(u),y=(0,a.Z)([m]),S=(0,r.Z)(y,2),w=S[0],E=S[1];return(0,i.o)((function(){var e=w[0];h!==e&&b(h,e)}),[w]),(0,i.o)((function(){l(c)||g(c)}),[c]),[v,(0,o.Z)((function(e,t){g(e,t),E([m],t)}))]}},470:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9439),o=n(7294);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.Z)(n,2),a=i[0],l=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||l(e)}]}},6790:(e,t,n)=>{"use strict";n.d(t,{zX:()=>r.Z});var r=n(6680);n(1770),n(2550),n(8880),n(334)},1881:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(1002),o=n(334);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(t);if((0,o.ZP)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(n&&l>1)return!1;i.add(t);var c=l+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u{"use strict";n.d(t,{Z:()=>r});const r=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}},8423:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1413);function o(e,t){var n=(0,r.Z)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},4217:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(1413),o="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),i="aria-",a="data-";function l(e,t){return 0===e.indexOf(t)}function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,r.Z)({},n);var s={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||l(n,i))||t.data&&l(n,a)||t.attr&&o.includes(n))&&(s[n]=e[n])})),s}},5164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function l(e){a.delete(e)}var s=function(e){var t=i+=1;return function n(o){if(0===o)l(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};s.cancel=function(e){var t=a.get(e);return l(e),o(t)};const c=s},2550:(e,t,n)=>{"use strict";n.d(t,{Yr:()=>c,mH:()=>a,sQ:()=>l,x1:()=>s});var r=n(1002),o=(n(7294),n(1805)),i=n(6982);function a(e,t){"function"==typeof e?e(t):"object"===(0,r.Z)(e)&&e&&"current"in e&&(e.current=t)}function l(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";function r(e,t){for(var n=e,r=0;rr})},8880:(e,t,n)=>{"use strict";n.d(t,{T:()=>f,Z:()=>c});var r=n(1002),o=n(1413),i=n(3433),a=n(4506),l=n(8306);function s(e,t,n,r){if(!t.length)return n;var l,c=(0,a.Z)(t),u=c[0],d=c.slice(1);return l=e||"number"!=typeof u?Array.isArray(e)?(0,i.Z)(e):(0,o.Z)({},e):[],r&&void 0===n&&1===d.length?delete l[u][d[0]]:l[u]=s(l[u],d,n,r),l}function c(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!(0,l.Z)(e,t.slice(0,-1))?e:s(e,t,n,r)}function u(e){return Array.isArray(e)?[]:{}}var d="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function f(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{Kp:()=>i,ZP:()=>c});var r={},o=[];function i(e,t){}function a(e,t){}function l(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function s(e,t){l(i,e,t)}s.preMessage=function(e){o.push(e)},s.resetWarned=function(){r={}},s.noteOnce=function(e,t){l(a,e,t)};const c=s},1162:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case h:case s:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.isFragment=function(e){return v(e)===i},t.isMemo=function(e){return v(e)===h}},1805:(e,t,n)=>{"use strict";e.exports=n(1162)},4448:(e,t,n)=>{"use strict";var r=n(7294),o=n(3840);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),E=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),T=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var I,Z=Object.assign;function D(e){if(void 0===I)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var j=!1;function z(e,t){if(!e||j)return"";j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function F(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case C:return"Fragment";case E:return"Portal";case _:return"Profiler";case x:return"StrictMode";case R:return"Suspense";case $:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return B(e(t))}catch(e){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===x?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function Q(e,t){K(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Se=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Ce=null,xe=null;function _e(e){if(e=So(e)){if("function"!=typeof Ee)throw Error(i(280));var t=e.stateNode;t&&(t=Eo(t),Ee(e.stateNode,e.type,t))}}function Oe(e){Ce?xe?xe.push(e):xe=[e]:Ce=e}function Te(){if(Ce){var e=Ce,t=xe;if(xe=Ce=null,_e(e),t)for(e=0;e>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<=Ln),Dn=String.fromCharCode(32),jn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Wn(e,t,n,r){Oe(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Xn(e){Dr(e,0)}function Gn(e){if(q(wo(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Qn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Qn=Jn}else Qn=!1;Kn=Qn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n=document.documentMode,mr=null,vr=null,br=null,yr=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==X(r)||("selectionStart"in(r=mr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&sr(br,r)||(br=r,0<(r=Vr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Cr={},xr={};function _r(e){if(Cr[e])return Cr[e];if(!Er[e])return e;var t,n=Er[e];for(t in n)if(n.hasOwnProperty(t)&&t in xr)return Cr[e]=n[t];return e}u&&(xr=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);var Or=_r("animationend"),Tr=_r("animationiteration"),kr=_r("animationstart"),Rr=_r("transitionend"),$r=new Map,Nr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){$r.set(e,t),s(t,[e])}for(var Pr=0;Prxo||(e.current=Co[xo],Co[xo]=null,xo--)}function To(e,t){xo++,Co[xo]=e.current,e.current=t}var ko={},Ro=_o(ko),$o=_o(!1),No=ko;function Ao(e,t){var n=e.type.contextTypes;if(!n)return ko;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Po(e){return null!=(e=e.childContextTypes)}function Mo(){Oo($o),Oo(Ro)}function Lo(e,t,n){if(Ro.current!==ko)throw Error(i(168));To(Ro,t),To($o,n)}function Io(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return Z({},n,r)}function Zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ko,No=Ro.current,To(Ro,e),To($o,$o.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Io(e,t,No),r.__reactInternalMemoizedMergedChildContext=e,Oo($o),Oo(Ro),To(Ro,e)):Oo($o),To($o,n)}var jo=null,zo=!1,Fo=!1;function Bo(e){null===jo?jo=[e]:jo.push(e)}function Ho(){if(!Fo&&null!==jo){Fo=!0;var e=0,t=yt;try{var n=jo;for(yt=1;e>=a,o-=a,Ko=1<<32-at(t)+o|n<g?(m=d,d=null):m=d.sibling;var v=p(o,d,l[g],s);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,g),null===u?c=v:u.sibling=v,u=v,d=m}if(g===l.length)return n(o,d),ii&&Jo(o,g),c;if(null===d){for(;gm?(v=g,g=null):v=g.sibling;var y=p(o,g,b.value,c);if(null===y){null===g&&(g=v);break}e&&g&&null===y.alternate&&t(o,g),l=a(y,l,m),null===d?u=y:d.sibling=y,d=y,g=v}if(b.done)return n(o,g),ii&&Jo(o,m),u;if(null===g){for(;!b.done;m++,b=s.next())null!==(b=f(o,b.value,c))&&(l=a(b,l,m),null===d?u=b:d.sibling=b,d=b);return ii&&Jo(o,m),u}for(g=r(o,g);!b.done;m++,b=s.next())null!==(b=h(g,o,m,b.value,c))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),l=a(b,l,m),null===d?u=b:d.sibling=b,d=b);return e&&g.forEach((function(e){return t(o,e)})),ii&&Jo(o,m),u}return function e(r,i,a,s){if("object"==typeof a&&null!==a&&a.type===C&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===C){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===A&&Gi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=qi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===C?((i=Ic(a.props.children,r.mode,s,a.key)).return=r,r=i):((s=Lc(a.type,a.key,a.props,null,r.mode,s)).ref=qi(r,i,a),s.return=r,r=s)}return l(r);case E:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=jc(a,r.mode,s)).return=r,r=i}return l(r);case A:return e(r,i,(u=a._init)(a._payload),s)}if(te(a))return g(r,i,a,s);if(L(a))return m(r,i,a,s);Xi(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Dc(a,r.mode,s)).return=r,r=i),l(r)):n(r,i)}}var Ki=Yi(!0),Qi=Yi(!1),Ji={},ea=_o(Ji),ta=_o(Ji),na=_o(Ji);function ra(e){if(e===Ji)throw Error(i(174));return e}function oa(e,t){switch(To(na,t),To(ta,e),To(ea,Ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:se(null,"");break;default:t=se(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Oo(ea),To(ea,t)}function ia(){Oo(ea),Oo(ta),Oo(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=se(t,e.type);t!==n&&(To(ta,e),To(ea,n))}function la(e){ta.current===e&&(Oo(ea),Oo(ta))}var sa=_o(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function da(){for(var e=0;en?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{yt=n,pa.transition=r}}function el(){return Ta().memoizedState}function tl(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rl(e))ol(t,n);else if(null!==(n=Ri(e,t,n,r))){rc(n,e,r,tc()),il(n,t,r)}}function nl(e,t,n){var r=nc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rl(e))ol(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,lr(l,a)){var s=t.interleaved;return null===s?(o.next=o,ki(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ri(e,t,o,r))&&(rc(n,e,r,o=tc()),il(n,t,r))}}function rl(e){var t=e.alternate;return e===ga||null!==t&&t===ga}function ol(e,t){ya=ba=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function il(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var al={readContext:Oi,useCallback:Ea,useContext:Ea,useEffect:Ea,useImperativeHandle:Ea,useInsertionEffect:Ea,useLayoutEffect:Ea,useMemo:Ea,useReducer:Ea,useRef:Ea,useState:Ea,useDebugValue:Ea,useDeferredValue:Ea,useTransition:Ea,useMutableSource:Ea,useSyncExternalStore:Ea,useId:Ea,unstable_isNewReconciler:!1},ll={readContext:Oi,useCallback:function(e,t){return Oa().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Ha,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Fa(4194308,4,qa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fa(4,2,e,t)},useMemo:function(e,t){var n=Oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tl.bind(null,ga,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Oa().memoizedState=e},useState:Da,useDebugValue:Ga,useDeferredValue:function(e){return Oa().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Ja.bind(null,e[1]),Oa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ga,o=Oa();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===$s)throw Error(i(349));0!=(30&ha)||Pa(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ha(La.bind(null,r,a,e),[e]),r.flags|=2048,ja(9,Ma.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Oa(),t=$s.identifierPrefix;if(ii){var n=Qo;t=":"+t+"R"+(n=(Ko&~(1<<32-at(Ko)-1)).toString(32)+n),0<(n=Sa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sl={readContext:Oi,useCallback:Ya,useContext:Oi,useEffect:Ua,useImperativeHandle:Xa,useInsertionEffect:Wa,useLayoutEffect:Va,useMemo:Ka,useReducer:Ra,useRef:za,useState:function(){return Ra(ka)},useDebugValue:Ga,useDeferredValue:function(e){return Qa(Ta(),ma.memoizedState,e)},useTransition:function(){return[Ra(ka)[0],Ta().memoizedState]},useMutableSource:Na,useSyncExternalStore:Aa,useId:el,unstable_isNewReconciler:!1},cl={readContext:Oi,useCallback:Ya,useContext:Oi,useEffect:Ua,useImperativeHandle:Xa,useInsertionEffect:Wa,useLayoutEffect:Va,useMemo:Ka,useReducer:$a,useRef:za,useState:function(){return $a(ka)},useDebugValue:Ga,useDeferredValue:function(e){var t=Ta();return null===ma?t.memoizedState=e:Qa(t,ma.memoizedState,e)},useTransition:function(){return[$a(ka)[0],Ta().memoizedState]},useMutableSource:Na,useSyncExternalStore:Aa,useId:el,unstable_isNewReconciler:!1};function ul(e,t){try{var n="",r=t;do{n+=F(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function dl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function hl(e,t,n){(n=Mi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ws||(Ws=!0,Vs=r),fl(0,t)},n}function gl(e,t,n){(n=Mi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===qs?qs=new Set([this]):qs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Oc.bind(null,e,t,n),t.then(e,e))}function vl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Mi(-1,1)).tag=2,Li(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var yl=S.ReactCurrentOwner,Sl=!1;function wl(e,t,n,r){t.child=null===e?Qi(t,null,n,r):Ki(t,e.child,n,r)}function El(e,t,n,r,o){n=n.render;var i=t.ref;return _i(t,o),r=xa(e,t,n,r,i,o),n=_a(),null===e||Sl?(ii&&n&&ti(t),t.flags|=1,wl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Cl(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Pc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,xl(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(a,r)&&e.ref===t.ref)return Wl(e,t,o)}return t.flags|=1,(e=Mc(i,r)).ref=t.ref,e.return=t,t.child=e}function xl(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(sr(i,r)&&e.ref===t.ref){if(Sl=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Wl(e,t,o);0!=(131072&e.flags)&&(Sl=!0)}}return Tl(e,t,n,r,o)}function _l(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},To(Ms,Ps),Ps|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,To(Ms,Ps),Ps|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,To(Ms,Ps),Ps|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,To(Ms,Ps),Ps|=r;return wl(e,t,o,n),t.child}function Ol(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tl(e,t,n,r,o){var i=Po(n)?No:Ro.current;return i=Ao(t,i),_i(t,o),n=xa(e,t,n,r,i,o),r=_a(),null===e||Sl?(ii&&r&&ti(t),t.flags|=1,wl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function kl(e,t,n,r,o){if(Po(n)){var i=!0;Zo(t)}else i=!1;if(_i(t,o),null===t.stateNode)Ul(e,t),Ui(t,n,r),Vi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Oi(c):c=Ao(t,c=Po(n)?No:Ro.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&Wi(t,a,r,c),Ni=!1;var f=t.memoizedState;a.state=f,Di(t,r,a,o),s=t.memoizedState,l!==r||f!==s||$o.current||Ni?("function"==typeof u&&(Fi(t,n,u,r),s=t.memoizedState),(l=Ni||Hi(t,n,l,r,f,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Pi(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:vi(t.type,l),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Oi(s):s=Ao(t,s=Po(n)?No:Ro.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||f!==s)&&Wi(t,a,r,s),Ni=!1,f=t.memoizedState,a.state=f,Di(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||$o.current||Ni?("function"==typeof p&&(Fi(t,n,p,r),h=t.memoizedState),(c=Ni||Hi(t,n,c,r,f,h,s)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Rl(e,t,n,r,i,o)}function Rl(e,t,n,r,o,i){Ol(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Do(t,n,!1),Wl(e,t,i);r=t.stateNode,yl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ki(t,e.child,null,i),t.child=Ki(t,null,l,i)):wl(e,t,l,i),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function $l(e){var t=e.stateNode;t.pendingContext?Lo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lo(0,t.context,!1),oa(e,t.containerInfo)}function Nl(e,t,n,r,o){return hi(),gi(o),t.flags|=256,wl(e,t,n,r),t.child}var Al,Pl,Ml,Ll,Il={dehydrated:null,treeContext:null,retryLane:0};function Zl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dl(e,t,n){var r,o=t.pendingProps,a=sa.current,l=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),To(sa,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=o.children,e=o.fallback,l?(o=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Zc(s,o,0,null),e=Ic(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Zl(n),t.memoizedState=Il,e):jl(t,s));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,zl(e,t,l,r=dl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Zc({mode:"visible",children:r.children},o,0,null),(a=Ic(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Ki(t,e.child,null,l),t.child.memoizedState=Zl(l),t.memoizedState=Il,a);if(0==(1&t.mode))return zl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var s=r.dgst;return r=s,zl(e,t,l,r=dl(a=Error(i(419)),r,void 0))}if(s=0!=(l&e.childLanes),Sl||s){if(null!==(r=$s)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,$i(e,o),rc(r,e,o,-1))}return mc(),zl(e,t,l,r=dl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=kc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Xo[Go++]=Ko,Xo[Go++]=Qo,Xo[Go++]=Yo,Ko=e.id,Qo=e.overflow,Yo=t),t=jl(t,r.children),t.flags|=4096,t)}(e,t,s,o,r,a,n);if(l){l=o.fallback,s=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&s)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Mc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=Mc(r,l):(l=Ic(l,s,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,s=null===(s=e.child.memoizedState)?Zl(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Il,o}return e=(l=e.child).sibling,o=Mc(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function jl(e,t){return(t=Zc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function zl(e,t,n,r){return null!==r&&gi(r),Ki(t,e.child,null,n),(e=jl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),xi(e.return,t,n)}function Bl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(wl(e,t,r.children,n),0!=(2&(r=sa.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fl(e,n,t);else if(19===e.tag)Fl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(To(sa,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ca(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,i);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ul(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Zs|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vl(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xl(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return Po(t.type)&&Mo(),ql(t),null;case 3:return r=t.stateNode,ia(),Oo($o),Oo(Ro),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ai&&(lc(ai),ai=null))),Pl(e,t),ql(t),null;case 5:la(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Ml(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return ql(t),null}if(e=ra(ea.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[po]=t,r[ho]=a,e=0!=(1&t.mode),n){case"dialog":jr("cancel",r),jr("close",r);break;case"iframe":case"object":case"embed":jr("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[po]=t,e[ho]=r,Al(e,t,!1,!1),t.stateNode=e;e:{switch(s=ye(n,r),n){case"dialog":jr("cancel",e),jr("close",e),o=r;break;case"iframe":case"object":case"embed":jr("load",e),o=r;break;case"video":case"audio":for(o=0;oHs&&(t.flags|=128,r=!0,Vl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ca(s))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!s.alternate&&!ii)return ql(t),null}else 2*Ke()-a.renderingStartTime>Hs&&1073741824!==n&&(t.flags|=128,r=!0,Vl(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=a.last)?n.sibling=s:t.child=s,a.last=s)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ke(),t.sibling=null,n=sa.current,To(sa,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return fc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ps)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gl(e,t){switch(ni(t),t.tag){case 1:return Po(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),Oo($o),Oo(Ro),da(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return la(t),null;case 13:if(Oo(sa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Oo(sa),null;case 4:return ia(),null;case 10:return Ci(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Al=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Pl=function(){},Ml=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=G(e,o),r=G(e,r),a=[];break;case"select":o=Z({},o,{value:void 0}),r=Z({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(u in be(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var s=o[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(l.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),a||s===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ll=function(e,t,n,r){n!==r&&(t.flags|=4)};var Yl=!1,Kl=!1,Ql="function"==typeof WeakSet?WeakSet:Set,Jl=null;function es(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){_c(e,t,n)}else n.current=null}function ts(e,t,n){try{n()}catch(n){_c(e,t,n)}}var ns=!1;function rs(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&ts(t,n,i)}o=o.next}while(o!==r)}}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function is(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[mo],delete t[vo],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ls(e){return 5===e.tag||3===e.tag||4===e.tag}function ss(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ls(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cs(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}function us(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(us(e,t,n),e=e.sibling;null!==e;)us(e,t,n),e=e.sibling}var ds=null,fs=!1;function ps(e,t,n){for(n=n.child;null!==n;)hs(e,t,n),n=n.sibling}function hs(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Kl||es(n,t);case 6:var r=ds,o=fs;ds=null,ps(e,t,n),fs=o,null!==(ds=r)&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ds.removeChild(n.stateNode));break;case 18:null!==ds&&(fs?(e=ds,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Bt(e)):so(ds,n.stateNode));break;case 4:r=ds,o=fs,ds=n.stateNode.containerInfo,fs=!0,ps(e,t,n),ds=r,fs=o;break;case 0:case 11:case 14:case 15:if(!Kl&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&ts(n,t,a),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Kl&&(es(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){_c(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Kl=(r=Kl)||null!==n.memoizedState,ps(e,t,n),Kl=r):ps(e,t,n);break;default:ps(e,t,n)}}function gs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ql),t.forEach((function(t){var r=Rc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var n=t.deletions;if(null!==n)for(var r=0;ro&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_s(r/1960))-r)){e.timeoutHandle=ro(Ec.bind(null,e,Fs,Us),r);break}Ec(e,Fs,Us);break;default:throw Error(i(329))}}}return oc(e,Ke()),e.callbackNode===n?ic.bind(null,e):null}function ac(e,t){var n=zs;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=vc(e,t))&&(t=Fs,Fs=n,null!==t&&lc(t)),e}function lc(e){null===Fs?Fs=e:Fs.push.apply(Fs,e)}function sc(e,t){for(t&=~js,t&=~Ds,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===Gs)var r=!1;else{if(e=Gs,Gs=null,Ys=0,0!=(6&Rs))throw Error(i(331));var o=Rs;for(Rs|=4,Jl=e.current;null!==Jl;){var a=Jl,l=a.child;if(0!=(16&Jl.flags)){var s=a.deletions;if(null!==s){for(var c=0;cKe()-Bs?pc(e,0):js|=n),oc(e,t)}function Tc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=tc();null!==(e=$i(e,t))&&(vt(e,t,n),oc(e,n))}function kc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Rc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Tc(e,n)}function $c(e,t){return qe(e,t)}function Nc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ac(e,t,n,r){return new Nc(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Ac(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lc(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Pc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case C:return Ic(n.children,o,a,t);case x:l=8,o|=8;break;case _:return(e=Ac(12,n,t,2|o)).elementType=_,e.lanes=a,e;case R:return(e=Ac(13,n,t,o)).elementType=R,e.lanes=a,e;case $:return(e=Ac(19,n,t,o)).elementType=$,e.lanes=a,e;case P:return Zc(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case T:l=9;break e;case k:l=11;break e;case N:l=14;break e;case A:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ac(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ic(e,t,n,r){return(e=Ac(7,e,r,t)).lanes=n,e}function Zc(e,t,n,r){return(e=Ac(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Dc(e,t,n){return(e=Ac(6,e,null,t)).lanes=n,e}function jc(e,t,n){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,o,i,a,l,s){return e=new zc(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ac(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ai(i),e}function Bc(e){if(!e)return ko;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Po(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Po(n))return Io(e,n,t)}return t}function Hc(e,t,n,r,o,i,a,l,s){return(e=Fc(n,r,!0,e,0,i,0,l,s)).context=Bc(null),n=e.current,(i=Mi(r=tc(),o=nc(n))).callback=null!=t?t:null,Li(n,i,o),e.current.lanes=o,vt(e,o,r),oc(e,r),e}function Uc(e,t,n,r){var o=t.current,i=tc(),a=nc(o);return n=Bc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Mi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Li(o,t,a))&&(rc(e,o,a,i),Ii(e,o,a)),a}function Wc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n{"use strict";var r=n(3935);t.s=r.createRoot,r.hydrateRoot},3935:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(4448)},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case g:case s:return e;default:return t}}case o:return t}}}function E(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||w(e)===u},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===S||e.$$typeof===v)},t.typeOf=w},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},5251:(e,t,n)=>{"use strict";var r=n(7294),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:l.current}}t.jsx=c,t.jsxs=c},2408:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function b(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var S=y.prototype=new b;S.constructor=y,g(S,v.prototype),S.isPureReactComponent=!0;var w=Array.isArray,E=Object.prototype.hasOwnProperty,C={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!x.hasOwnProperty(o)&&(i[o]=t[o]);var s=arguments.length-2;if(1===s)i.children=r;else if(1{"use strict";e.exports=n(2408)},5893:(e,t,n)=>{"use strict";e.exports=n(5251)},53:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ri(s,n))ci(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(ci(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,s=l.now();t.unstable_now=function(){return l.now()-s}}var c=[],u=[],d=1,f=null,p=3,h=!1,g=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function S(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(m=!1,S(e),!g)if(null!==r(c))g=!0,P(E);else{var t=r(u);null!==t&&M(w,t.startTime-e)}}function E(e,n){g=!1,m&&(m=!1,b(O),O=-1),h=!0;var i=p;try{for(S(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var l=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?f.callback=l:f===r(c)&&o(c),S(n)}else o(c);f=r(c)}if(null!==f)var s=!0;else{var d=r(u);null!==d&&M(w,d.startTime-n),s=!1}return s}finally{f=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,x=!1,_=null,O=-1,T=5,k=-1;function R(){return!(t.unstable_now()-ke||125a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(b(O),O=-1):m=!0,M(w,i-a))):(e.sortIndex=l,n(c,e),g||h||(g=!0,P(E))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},3840:(e,t,n)=>{"use strict";e.exports=n(53)},3771:(e,t,n)=>{"use strict";var r=n(7294);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,l=r.useEffect,s=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?t:(i=e,a=n)}var i,a,l=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,n,r,u]);var p=i(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},1103:(e,t,n)=>{"use strict";e.exports=n(3771)},1739:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},3967:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nr})},3878:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},7326:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},5861:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function l(e){r(a,o,i,l,s,"next",e)}function s(e){r(a,o,i,l,s,"throw",e)}l(void 0)}))}}n.d(t,{Z:()=>o})},5671:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},3144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9142);function o(e,t){for(var n=0;n{"use strict";n.d(t,{Z:()=>a});var r=n(1120),o=n(8814),i=n(2963);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},4942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9142);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},1120:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},9340:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}n.d(t,{Z:()=>o})},8814:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{Z:()=>r})},9199:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},5267:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},1413:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(4942);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},2963:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(1002),o=n(7326);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},4165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1002);function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),l=new A(r||[]);return a(i,"_invoke",{value:k(e,n,l)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",g="suspendedYield",m="executing",v="completed",b={};function y(){}function S(){}function w(){}var E={};d(E,s,(function(){return this}));var C=Object.getPrototypeOf,x=C&&C(C(P([])));x&&x!==n&&i.call(x,s)&&(E=x);var _=w.prototype=y.prototype=Object.create(E);function O(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(o,a,l,s){var c=p(e[o],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==(0,r.Z)(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(d).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function k(t,n,r){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===b)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=p(t,n,r);if("normal"===c.type){if(o=r.done?v:g,c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=v,r.method="throw",r.arg=c.arg)}}}function R(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,R(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=p(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function $(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach($,this),this.reset(!0)}function P(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}},9439:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(3878);var o=n(181),i=n(5267);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},4506:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(3878),o=n(9199),i=n(181),a=n(5267);function l(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},3433:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(907);var o=n(9199),i=n(181);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1002);function o(e){var t=function(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.Z)(t)?t:String(t)}},1002:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},9202:(e,t,n)=>{"use strict";n.d(t,{LC:()=>y});var r=n(7426),o=n(5849),i=n(469),a=n(7294),l=n(5007),s=n(9119);function c(e,...t){return Object.assign(e,...t)}function u(e){return e.replace(e[0],e[0].toUpperCase())}var d=WeakMap?new WeakMap:void 0,f=({endpointName:e,queryArgs:t})=>{let n="";const r=d?.get(t);if("string"==typeof r)n=r;else{const e=JSON.stringify(t,((e,t)=>(0,o.PO)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));(0,o.PO)(t)&&d?.set(t,e),n=e}return`${e}(${n})`},p=Symbol();function h(e,t,n,r){const o=(0,a.useMemo)((()=>({queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e})),[e,t,n,r]),i=(0,a.useRef)(o);return(0,a.useEffect)((()=>{i.current.serialized!==o.serialized&&(i.current=o)}),[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}function g(e){const t=(0,a.useRef)(e);return(0,a.useEffect)((()=>{(0,l.wU)(t.current,e)||(t.current=e)}),[e]),(0,l.wU)(t.current,e)?t.current:e}var m="undefined"!=typeof window&&window.document&&window.document.createElement?a.useLayoutEffect:a.useEffect,v=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:r.oZ.pending}:e;var b=Symbol();var y=(0,r.Tk)((0,r.hF)(),(({batch:e=l.dC,hooks:t={useDispatch:l.I0,useSelector:l.v9,useStore:l.oR},createSelector:n=s.P1,unstable__sideEffectsInRender:o=!1,...d}={})=>({name:b,init(s,{serializeQueryArgs:d},b){const y=s,{buildQueryHooks:S,buildMutationHook:w,usePrefetch:E}=function({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:o,useStore:s},unstable__sideEffectsInRender:c,createSelector:u},serializeQueryArgs:d,context:b}){const y=c?e=>e():a.useEffect;return{buildQueryHooks:function(c){const w=(t,{refetchOnReconnect:o,refetchOnFocus:l,refetchOnMountOrArgChange:s,skip:u=!1,pollingInterval:d=0,skipPollingIfUnfocused:p=!1}={})=>{const{initiate:m}=e.endpoints[c],v=n(),S=(0,a.useRef)();if(!S.current){const t=v(e.internalActions.internal_getRTKQSubscriptions());S.current=t}const w=h(u?r.CN:t,f,b.endpointDefinitions[c],c),E=g({refetchOnReconnect:o,refetchOnFocus:l,pollingInterval:d,skipPollingIfUnfocused:p}),C=(0,a.useRef)(!1),x=(0,a.useRef)();let{queryCacheKey:_,requestId:O}=x.current||{},T=!1;_&&O&&(T=S.current.isRequestSubscribed(_,O));const k=!T&&C.current;return y((()=>{C.current=T})),y((()=>{k&&(x.current=void 0)}),[k]),y((()=>{const e=x.current;if(w===r.CN)return e?.unsubscribe(),void(x.current=void 0);const t=x.current?.subscriptionOptions;if(e&&e.arg===w)E!==t&&e.updateSubscriptionOptions(E);else{e?.unsubscribe();const t=v(m(w,{subscriptionOptions:E,forceRefetch:s}));x.current=t}}),[v,m,s,w,E,k]),(0,a.useEffect)((()=>()=>{x.current?.unsubscribe(),x.current=void 0}),[]),(0,a.useMemo)((()=>({refetch:()=>{if(!x.current)throw new Error((0,i.rJ)(38));return x.current?.refetch()}})),[])},E=({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i=0,skipPollingIfUnfocused:l=!1}={})=>{const{initiate:s}=e.endpoints[c],u=n(),[d,f]=(0,a.useState)(p),h=(0,a.useRef)(),m=g({refetchOnReconnect:r,refetchOnFocus:o,pollingInterval:i,skipPollingIfUnfocused:l});y((()=>{const e=h.current?.subscriptionOptions;m!==e&&h.current?.updateSubscriptionOptions(m)}),[m]);const v=(0,a.useRef)(m);y((()=>{v.current=m}),[m]);const b=(0,a.useCallback)((function(e,n=!1){let r;return t((()=>{h.current?.unsubscribe(),h.current=r=u(s(e,{subscriptionOptions:v.current,forceRefetch:!n})),f(e)})),r}),[u,s]);return(0,a.useEffect)((()=>()=>{h?.current?.unsubscribe()}),[]),(0,a.useEffect)((()=>{d===p||h.current||b(d,!0)}),[d,b]),(0,a.useMemo)((()=>[b,d]),[b,d])},C=(t,{skip:n=!1,selectFromResult:i}={})=>{const{select:f}=e.endpoints[c],p=h(n?r.CN:t,d,b.endpointDefinitions[c],c),g=(0,a.useRef)(),v=(0,a.useMemo)((()=>u([f(p),(e,t)=>t,e=>p],S,{memoizeOptions:{resultEqualityCheck:l.wU}})),[f,p]),y=(0,a.useMemo)((()=>i?u([v],i,{devModeChecks:{identityFunctionCheck:"never"}}):v),[v,i]),w=o((e=>y(e,g.current)),l.wU),E=s(),C=v(E.getState(),g.current);return m((()=>{g.current=C}),[C]),w};return{useQueryState:C,useQuerySubscription:w,useLazyQuerySubscription:E,useLazyQuery(e){const[t,n]=E(e),r=C(n,{...e,skip:n===p}),o=(0,a.useMemo)((()=>({lastArg:n})),[n]);return(0,a.useMemo)((()=>[t,r,o]),[t,r,o])},useQuery(e,t){const n=w(e,t),o=C(e,{selectFromResult:e===r.CN||t?.skip?void 0:v,...t}),{data:i,status:l,isLoading:s,isSuccess:c,isError:u,error:d}=o;return(0,a.useDebugValue)({data:i,status:l,isLoading:s,isSuccess:c,isError:u,error:d}),(0,a.useMemo)((()=>({...o,...n})),[o,n])}}},buildMutationHook:function(r){return({selectFromResult:i,fixedCacheKey:s}={})=>{const{select:c,initiate:d}=e.endpoints[r],f=n(),[p,h]=(0,a.useState)();(0,a.useEffect)((()=>()=>{p?.arg.fixedCacheKey||p?.reset()}),[p]);const g=(0,a.useCallback)((function(e){const t=f(d(e,{fixedCacheKey:s}));return h(t),t}),[f,d,s]),{requestId:m}=p||{},v=(0,a.useMemo)((()=>c({fixedCacheKey:s,requestId:p?.requestId})),[s,p,c]),b=(0,a.useMemo)((()=>i?u([v],i):v),[i,v]),y=o(b,l.wU),S=null==s?p?.arg.originalArgs:void 0,w=(0,a.useCallback)((()=>{t((()=>{p&&h(void 0),s&&f(e.internalActions.removeMutationResult({requestId:m,fixedCacheKey:s}))}))}),[f,s,p,m]),{endpointName:E,data:C,status:x,isLoading:_,isSuccess:O,isError:T,error:k}=y;(0,a.useDebugValue)({endpointName:E,data:C,status:x,isLoading:_,isSuccess:O,isError:T,error:k});const R=(0,a.useMemo)((()=>({...y,originalArgs:S,reset:w})),[y,S,w]);return(0,a.useMemo)((()=>[g,R]),[g,R])}},usePrefetch:function(t,r){const o=n(),i=g(r);return(0,a.useCallback)(((n,r)=>o(e.util.prefetch(t,n,{...i,...r}))),[t,o,i])}};function S(e,t,n){if(t?.endpointName&&e.isUninitialized){const{endpointName:e}=t,r=b.endpointDefinitions[e];d({queryArgs:t.originalArgs,endpointDefinition:r,endpointName:e})===d({queryArgs:n,endpointDefinition:r,endpointName:e})&&(t=void 0)}let r=e.isSuccess?e.data:t?.data;void 0===r&&(r=e.data);const o=void 0!==r,i=e.isLoading,a=!o&&i,l=e.isSuccess||i&&o;return{...e,data:r,currentData:e.data,isFetching:i,isLoading:a,isSuccess:l}}}({api:s,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:o,createSelector:n},serializeQueryArgs:d,context:b});return c(y,{usePrefetch:E}),c(b,{batch:e}),{injectEndpoint(e,t){if("query"===t.type){const{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}=S(e);c(y.endpoints[e],{useQuery:t,useLazyQuery:n,useLazyQuerySubscription:r,useQueryState:o,useQuerySubscription:i}),s[`use${u(e)}Query`]=t,s[`useLazy${u(e)}Query`]=n}else if(function(e){return"mutation"===e.type}(t)){const t=w(e);c(y.endpoints[e],{useMutation:t}),s[`use${u(e)}Mutation`]=t}}}}}))())},7426:(e,t,n)=>{"use strict";n.d(t,{CN:()=>D,Tk:()=>U,hF:()=>ne,ni:()=>b,oZ:()=>l});var r=n(5849),o=n(469),i=n(3513),a=n(9119),l=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(l||{});var s=e=>e.replace(/\/$/,""),c=e=>e.replace(/^\//,"");function u(e,t){if(!e)return t;if(!t)return e;if(function(e){return new RegExp("(^|:)//").test(e)}(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return`${e=s(e)}${n}${t=c(t)}`}var d=e=>[].concat(...e);var f=r.PO;function p(e,t){if(e===t||!(f(e)&&f(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let o=n.length===r.length;const i=Array.isArray(t)?[]:{};for(const r of n)i[r]=p(e[r],t[r]),o&&(o=e[r]===i[r]);return o?e:i}var h=(...e)=>fetch(...e),g=e=>e.status>=200&&e.status<=299,m=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function v(e){if(!(0,r.PO)(e))return e;const t={...e};for(const[e,n]of Object.entries(t))void 0===n&&delete t[e];return t}function b({baseUrl:e,prepareHeaders:t=(e=>e),fetchFn:n=h,paramsSerializer:o,isJsonContentType:i=m,jsonContentType:a="application/json",jsonReplacer:l,timeout:s,responseHandler:c,validateStatus:d,...f}={}){return"undefined"==typeof fetch&&n===h&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(h,m)=>{const{signal:b,getState:y,extra:S,endpoint:w,forced:E,type:C}=m;let x,{url:_,headers:O=new Headers(f.headers),params:T,responseHandler:k=c??"json",validateStatus:R=d??g,timeout:$=s,...N}="string"==typeof h?{url:h}:h,A={...f,signal:b,...N};O=new Headers(v(O)),A.headers=await t(O,{getState:y,extra:S,endpoint:w,forced:E,type:C})||O;const P=e=>"object"==typeof e&&((0,r.PO)(e)||Array.isArray(e)||"function"==typeof e.toJSON);if(!A.headers.has("content-type")&&P(A.body)&&A.headers.set("content-type",a),P(A.body)&&i(A.headers)&&(A.body=JSON.stringify(A.body,l)),T){const e=~_.indexOf("?")?"&":"?";_+=e+(o?o(T):new URLSearchParams(v(T)))}_=u(e,_);const M=new Request(_,A);x={request:new Request(_,A)};let L,I=!1,Z=$&&setTimeout((()=>{I=!0,m.abort()}),$);try{L=await n(M)}catch(e){return{error:{status:I?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(e)},meta:x}}finally{Z&&clearTimeout(Z)}const D=L.clone();let j;x.response=D;let z="";try{let e;if(await Promise.all([p(L,k).then((e=>j=e),(t=>e=t)),D.text().then((e=>z=e),(()=>{}))]),e)throw e}catch(e){return{error:{status:"PARSING_ERROR",originalStatus:L.status,data:z,error:String(e)},meta:x}}return R(L,j)?{data:j,meta:x}:{error:{status:L.status,data:j},meta:x}};async function p(e,t){if("function"==typeof t)return t(e);if("content-type"===t&&(t=i(e.headers)?"json":"text"),"json"===t){const t=await e.text();return t.length?JSON.parse(t):null}return e.text()}}var y=class{constructor(e,t=void 0){this.value=e,this.meta=t}};var S=(0,o.PH)("__rtkq/focused"),w=(0,o.PH)("__rtkq/unfocused"),E=(0,o.PH)("__rtkq/online"),C=(0,o.PH)("__rtkq/offline");function x(e){return"query"===e.type}function _(e,t,n,r,o,i){return"function"==typeof e?e(t,n,r,o).map(O).map(i):Array.isArray(e)?e.map(O).map(i):[]}function O(e){return"string"==typeof e?{type:e}:e}function T(e){return null!=e}function k(e){let t=0;for(const n in e)t++;return t}var R=Symbol("forceQueryFn"),$=e=>"function"==typeof e[R];function N(e){return e}function A(e,t,n,r){return _(n[e.meta.arg.endpointName][t],(0,o.KD)(e)?e.payload:void 0,(0,o.h_)(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function P(e,t,n){const r=e[t];r&&n(r)}function M(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function L(e,t,n){const r=e[M(t)];r&&n(r)}var I={};function Z({reducerPath:e,queryThunk:t,mutationThunk:n,context:{endpointDefinitions:a,apiUid:l,extractRehydrationInfo:s,hasRehydrationInfo:c},assertTagType:u,config:d}){const f=(0,o.PH)(`${e}/resetApiState`),h=(0,o.oM)({name:`${e}/queries`,initialState:I,reducers:{removeQueryResult:{reducer(e,{payload:{queryCacheKey:t}}){delete e[t]},prepare:(0,o.cw)()},queryResultPatched:{reducer(e,{payload:{queryCacheKey:t,patches:n}}){P(e,t,(e=>{e.data=(0,i.QE)(e.data,n.concat())}))},prepare:(0,o.cw)()}},extraReducers(e){e.addCase(t.pending,((e,{meta:t,meta:{arg:n}})=>{const r=$(n);e[n.queryCacheKey]??={status:"uninitialized",endpointName:n.endpointName},P(e,n.queryCacheKey,(e=>{e.status="pending",e.requestId=r&&e.requestId?e.requestId:t.requestId,void 0!==n.originalArgs&&(e.originalArgs=n.originalArgs),e.startedTimeStamp=t.startedTimeStamp}))})).addCase(t.fulfilled,((e,{meta:t,payload:n})=>{P(e,t.arg.queryCacheKey,(e=>{if(e.requestId!==t.requestId&&!$(t.arg))return;const{merge:r}=a[t.arg.endpointName];if(e.status="fulfilled",r)if(void 0!==e.data){const{fulfilledTimeStamp:o,arg:a,baseQueryMeta:l,requestId:s}=t;let c=(0,i.Uy)(e.data,(e=>r(e,n,{arg:a.originalArgs,baseQueryMeta:l,fulfilledTimeStamp:o,requestId:s})));e.data=c}else e.data=n;else e.data=a[t.arg.endpointName].structuralSharing??1?p((0,i.mv)(e.data)?(0,i.Js)(e.data):e.data,n):n;delete e.error,e.fulfilledTimeStamp=t.fulfilledTimeStamp}))})).addCase(t.rejected,((e,{meta:{condition:t,arg:n,requestId:r},error:o,payload:i})=>{P(e,n.queryCacheKey,(e=>{if(t);else{if(e.requestId!==r)return;e.status="rejected",e.error=i??o}}))})).addMatcher(c,((e,t)=>{const{queries:n}=s(t);for(const[t,r]of Object.entries(n))"fulfilled"!==r?.status&&"rejected"!==r?.status||(e[t]=r)}))}}),g=(0,o.oM)({name:`${e}/mutations`,initialState:I,reducers:{removeMutationResult:{reducer(e,{payload:t}){const n=M(t);n in e&&delete e[n]},prepare:(0,o.cw)()}},extraReducers(e){e.addCase(n.pending,((e,{meta:t,meta:{requestId:n,arg:r,startedTimeStamp:o}})=>{r.track&&(e[M(t)]={requestId:n,status:"pending",endpointName:r.endpointName,startedTimeStamp:o})})).addCase(n.fulfilled,((e,{payload:t,meta:n})=>{n.arg.track&&L(e,n,(e=>{e.requestId===n.requestId&&(e.status="fulfilled",e.data=t,e.fulfilledTimeStamp=n.fulfilledTimeStamp)}))})).addCase(n.rejected,((e,{payload:t,error:n,meta:r})=>{r.arg.track&&L(e,r,(e=>{e.requestId===r.requestId&&(e.status="rejected",e.error=t??n)}))})).addMatcher(c,((e,t)=>{const{mutations:n}=s(t);for(const[t,r]of Object.entries(n))"fulfilled"!==r?.status&&"rejected"!==r?.status||t===r?.requestId||(e[t]=r)}))}}),m=(0,o.oM)({name:`${e}/invalidation`,initialState:I,reducers:{updateProvidedBy:{reducer(e,t){const{queryCacheKey:n,providedTags:r}=t.payload;for(const t of Object.values(e))for(const e of Object.values(t)){const t=e.indexOf(n);-1!==t&&e.splice(t,1)}for(const{type:t,id:o}of r){const r=(e[t]??={})[o||"__internal_without_id"]??=[];r.includes(n)||r.push(n)}},prepare:(0,o.cw)()}},extraReducers(e){e.addCase(h.actions.removeQueryResult,((e,{payload:{queryCacheKey:t}})=>{for(const n of Object.values(e))for(const e of Object.values(n)){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}})).addMatcher(c,((e,t)=>{const{provided:n}=s(t);for(const[t,r]of Object.entries(n))for(const[n,o]of Object.entries(r)){const r=(e[t]??={})[n||"__internal_without_id"]??=[];for(const e of o){r.includes(e)||r.push(e)}}})).addMatcher((0,o.Q)((0,o.KD)(t),(0,o.h_)(t)),((e,t)=>{const n=A(t,"providesTags",a,u),{queryCacheKey:r}=t.meta.arg;m.caseReducers.updateProvidedBy(e,m.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),v=(0,o.oM)({name:`${e}/subscriptions`,initialState:I,reducers:{updateSubscriptionOptions(e,t){},unsubscribeQueryResult(e,t){},internal_getRTKQSubscriptions(){}}}),b=(0,o.oM)({name:`${e}/internalSubscriptions`,initialState:I,reducers:{subscriptionsUpdated:{reducer:(e,t)=>(0,i.QE)(e,t.payload),prepare:(0,o.cw)()}}}),y=(0,o.oM)({name:`${e}/config`,initialState:{online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"==typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1,...d},reducers:{middlewareRegistered(e,{payload:t}){e.middlewareRegistered="conflict"!==e.middlewareRegistered&&l===t||"conflict"}},extraReducers:e=>{e.addCase(E,(e=>{e.online=!0})).addCase(C,(e=>{e.online=!1})).addCase(S,(e=>{e.focused=!0})).addCase(w,(e=>{e.focused=!1})).addMatcher(c,(e=>({...e})))}}),x=(0,r.UY)({queries:h.reducer,mutations:g.reducer,provided:m.reducer,subscriptions:b.reducer,config:y.reducer});return{reducer:(e,t)=>x(f.match(t)?void 0:e,t),actions:{...y.actions,...h.actions,...v.actions,...b.actions,...g.actions,...m.actions,resetApiState:f}}}var D=Symbol.for("RTKQ/skipToken"),j={status:"uninitialized"},z=(0,i.Uy)(j,(()=>{})),F=(0,i.Uy)(j,(()=>{}));var B=WeakMap?new WeakMap:void 0,H=({endpointName:e,queryArgs:t})=>{let n="";const o=B?.get(t);if("string"==typeof o)n=o;else{const e=JSON.stringify(t,((e,t)=>(0,r.PO)(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t));(0,r.PO)(t)&&B?.set(t,e),n=e}return`${e}(${n})`};function U(...e){return function(t){const n=(0,a.kO)((e=>t.extractRehydrationInfo?.(e,{reducerPath:t.reducerPath??"api"}))),r={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...t,extractRehydrationInfo:n,serializeQueryArgs(e){let n=H;if("serializeQueryArgs"in e.endpointDefinition){const t=e.endpointDefinition.serializeQueryArgs;n=e=>{const n=t(e);return"string"==typeof n?n:H({...e,queryArgs:n})}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:[...t.tagTypes||[]]},i={endpointDefinitions:{},batch(e){e()},apiUid:(0,o.x0)(),extractRehydrationInfo:n,hasRehydrationInfo:(0,a.kO)((e=>null!=n(e)))},l={injectEndpoints:function(e){const t=e.endpoints({query:e=>({...e,type:"query"}),mutation:e=>({...e,type:"mutation"})});for(const[n,r]of Object.entries(t))if(!0!==e.overrideExisting&&n in i.endpointDefinitions){if("throw"===e.overrideExisting)throw new Error((0,o.rJ)(39))}else{i.endpointDefinitions[n]=r;for(const e of s)e.injectEndpoint(n,r)}return l},enhanceEndpoints({addTagTypes:e,endpoints:t}){if(e)for(const t of e)r.tagTypes.includes(t)||r.tagTypes.push(t);if(t)for(const[e,n]of Object.entries(t))"function"==typeof n?n(i.endpointDefinitions[e]):Object.assign(i.endpointDefinitions[e]||{},n);return l}},s=e.map((e=>e.init(l,r,i)));return l.injectEndpoints({endpoints:t.endpoints})}}var W=({reducerPath:e,api:t,context:n,internalState:r})=>{const{removeQueryResult:o,unsubscribeQueryResult:i}=t.internalActions;function a(e){const t=r.currentSubscriptions[e];return!!t&&!function(e){for(let t in e)return!1;return!0}(t)}const l={};function s(e,t,r,i){const s=n.endpointDefinitions[t],c=s?.keepUnusedDataFor??i.keepUnusedDataFor;if(c===1/0)return;const u=Math.max(0,Math.min(c,2147482.647));if(!a(e)){const t=l[e];t&&clearTimeout(t),l[e]=setTimeout((()=>{a(e)||r.dispatch(o({queryCacheKey:e})),delete l[e]}),1e3*u)}}return(r,o,a)=>{if(i.match(r)){const t=o.getState()[e],{queryCacheKey:n}=r.payload;s(n,t.queries[n]?.endpointName,o,t.config)}if(t.util.resetApiState.match(r))for(const[e,t]of Object.entries(l))t&&clearTimeout(t),delete l[e];if(n.hasRehydrationInfo(r)){const t=o.getState()[e],{queries:i}=n.extractRehydrationInfo(r);for(const[e,n]of Object.entries(i))s(e,n?.endpointName,o,t.config)}}},V=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:a,assertTagType:l,refetchQuery:s,internalState:c})=>{const{removeQueryResult:u}=a.internalActions,d=(0,o.Q)((0,o.KD)(r),(0,o.h_)(r)),f=(0,o.Q)((0,o.KD)(r,i),(0,o.Iv)(r,i));let p=[];function h(n,r){const o=r.getState(),i=o[e];if(p.push(...n),"delayed"===i.config.invalidationBehavior&&function(e){for(const t in e.queries)if("pending"===e.queries[t]?.status)return!0;for(const t in e.mutations)if("pending"===e.mutations[t]?.status)return!0;return!1}(i))return;const l=p;if(p=[],0===l.length)return;const d=a.util.selectInvalidatedBy(o,l);t.batch((()=>{const e=Array.from(d.values());for(const{queryCacheKey:t}of e){const e=i.queries[t],n=c.currentSubscriptions[t]??{};e&&(0===k(n)?r.dispatch(u({queryCacheKey:t})):"uninitialized"!==e.status&&r.dispatch(s(e,t)))}}))}return(e,t)=>{d(e)?h(A(e,"invalidatesTags",n,l),t):f(e)?h([],t):a.util.invalidateTags.match(e)&&h(_(e.payload,void 0,void 0,void 0,void 0,l),t)}},q=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:o})=>{const i={};function a({queryCacheKey:t},n){const l=n.getState()[e],s=l.queries[t],u=o.currentSubscriptions[t];if(!s||"uninitialized"===s.status)return;const{lowestPollingInterval:d,skipPollingIfUnfocused:f}=c(u);if(!Number.isFinite(d))return;const p=i[t];p?.timeout&&(clearTimeout(p.timeout),p.timeout=void 0);const h=Date.now()+d;i[t]={nextPollTimestamp:h,pollingInterval:d,timeout:setTimeout((()=>{!l.config.focused&&f||n.dispatch(r(s,t)),a({queryCacheKey:t},n)}),d)}}function l({queryCacheKey:t},n){const r=n.getState()[e].queries[t],l=o.currentSubscriptions[t];if(!r||"uninitialized"===r.status)return;const{lowestPollingInterval:u}=c(l);if(!Number.isFinite(u))return void s(t);const d=i[t],f=Date.now()+u;(!d||f{(n.internalActions.updateSubscriptionOptions.match(e)||n.internalActions.unsubscribeQueryResult.match(e))&&l(e.payload,r),(t.pending.match(e)||t.rejected.match(e)&&e.meta.condition)&&l(e.meta.arg,r),(t.fulfilled.match(e)||t.rejected.match(e)&&!e.meta.condition)&&a(e.meta.arg,r),n.util.resetApiState.match(e)&&function(){for(const e of Object.keys(i))s(e)}()}},X=new Error("Promise never resolved before cacheEntryRemoved."),G=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:a})=>{const l=(0,o.Gx)(r),s=(0,o.Gx)(i),c=(0,o.KD)(r,i),u={};function d(t,r,o,i,a){const l=n.endpointDefinitions[t],s=l?.onCacheEntryAdded;if(!s)return;let c={};const d=new Promise((e=>{c.cacheEntryRemoved=e})),f=Promise.race([new Promise((e=>{c.valueResolved=e})),d.then((()=>{throw X}))]);f.catch((()=>{})),u[o]=c;const p=e.endpoints[t].select("query"===l.type?r:o),h=i.dispatch(((e,t,n)=>n)),g={...i,getCacheEntry:()=>p(i.getState()),requestId:a,extra:h,updateCachedData:"query"===l.type?n=>i.dispatch(e.util.updateQueryData(t,r,n)):void 0,cacheDataLoaded:f,cacheEntryRemoved:d},m=s(r,g);Promise.resolve(m).catch((e=>{if(e!==X)throw e}))}return(n,o,a)=>{const f=function(t){if(l(t))return t.meta.arg.queryCacheKey;if(s(t))return t.meta.arg.fixedCacheKey??t.meta.requestId;return e.internalActions.removeQueryResult.match(t)?t.payload.queryCacheKey:e.internalActions.removeMutationResult.match(t)?M(t.payload):""}(n);if(r.pending.match(n)){const e=a[t].queries[f],r=o.getState()[t].queries[f];!e&&r&&d(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,o,n.meta.requestId)}else if(i.pending.match(n)){o.getState()[t].mutations[f]&&d(n.meta.arg.endpointName,n.meta.arg.originalArgs,f,o,n.meta.requestId)}else if(c(n)){const e=u[f];e?.valueResolved&&(e.valueResolved({data:n.payload,meta:n.meta.baseQueryMeta}),delete e.valueResolved)}else if(e.internalActions.removeQueryResult.match(n)||e.internalActions.removeMutationResult.match(n)){const e=u[f];e&&(delete u[f],e.cacheEntryRemoved())}else if(e.util.resetApiState.match(n))for(const[e,t]of Object.entries(u))delete u[e],t.cacheEntryRemoved()}},Y=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=(0,o.zR)(n,r),a=(0,o.Iv)(n,r),l=(0,o.KD)(n,r),s={};return(n,r)=>{if(i(n)){const{requestId:o,arg:{endpointName:i,originalArgs:a}}=n.meta,l=t.endpointDefinitions[i],c=l?.onQueryStarted;if(c){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));n.catch((()=>{})),s[o]=t;const u=e.endpoints[i].select("query"===l.type?a:o),d=r.dispatch(((e,t,n)=>n)),f={...r,getCacheEntry:()=>u(r.getState()),requestId:o,extra:d,updateCachedData:"query"===l.type?t=>r.dispatch(e.util.updateQueryData(i,a,t)):void 0,queryFulfilled:n};c(a,f)}}else if(l(n)){const{requestId:e,baseQueryMeta:t}=n.meta;s[e]?.resolve({data:n.payload,meta:t}),delete s[e]}else if(a(n)){const{requestId:e,rejectedWithValue:t,baseQueryMeta:r}=n.meta;s[e]?.reject({error:n.payload??n.error,isUnhandledError:!t,meta:r}),delete s[e]}}},K=({api:e,context:{apiUid:t},reducerPath:n})=>(n,r)=>{e.util.resetApiState.match(n)&&r.dispatch(e.internalActions.middlewareRegistered(t))},Q=({api:e,queryThunk:t,internalState:n})=>{const r=`${e.reducerPath}/subscriptions`;let o=null,a=null;const{updateSubscriptionOptions:l,unsubscribeQueryResult:s}=e.internalActions,c=()=>n.currentSubscriptions,u={getSubscriptions:c,getSubscriptionCount:e=>k(c()[e]??{}),isRequestSubscribed:(e,t)=>{const n=c();return!!n?.[e]?.[t]}};return(c,d)=>{if(o||(o=JSON.parse(JSON.stringify(n.currentSubscriptions))),e.util.resetApiState.match(c))return o=n.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(c))return[!1,u];const f=((n,r)=>{if(l.match(r)){const{queryCacheKey:e,requestId:t,options:o}=r.payload;return n?.[e]?.[t]&&(n[e][t]=o),!0}if(s.match(r)){const{queryCacheKey:e,requestId:t}=r.payload;return n[e]&&delete n[e][t],!0}if(e.internalActions.removeQueryResult.match(r))return delete n[r.payload.queryCacheKey],!0;if(t.pending.match(r)){const{meta:{arg:e,requestId:t}}=r,o=n[e.queryCacheKey]??={};return o[`${t}_running`]={},e.subscribe&&(o[t]=e.subscriptionOptions??o[t]??{}),!0}let o=!1;if(t.fulfilled.match(r)||t.rejected.match(r)){const e=n[r.meta.arg.queryCacheKey]||{},t=`${r.meta.requestId}_running`;o||=!!e[t],delete e[t]}if(t.rejected.match(r)){const{meta:{condition:e,arg:t,requestId:i}}=r;if(e&&t.subscribe){const e=n[t.queryCacheKey]??={};e[i]=t.subscriptionOptions??e[i]??{},o=!0}}return o})(n.currentSubscriptions,c);let p=!0;if(f){a||(a=setTimeout((()=>{const t=JSON.parse(JSON.stringify(n.currentSubscriptions)),[,r]=(0,i.aS)(o,(()=>t));d.next(e.internalActions.subscriptionsUpdated(r)),o=t,a=null}),500));const l="string"==typeof c.type&&!!c.type.startsWith(r),s=t.rejected.match(c)&&c.meta.condition&&!!c.meta.arg.subscribe;p=!l&&!s}return[p,!1]}};function J(e){const{reducerPath:t,queryThunk:n,api:i,context:a}=e,{apiUid:l}=a,s={invalidateTags:(0,o.PH)(`${t}/invalidateTags`)},c=e=>e.type.startsWith(`${t}/`),u=[K,W,V,q,G,Y];return{middleware:n=>{let o=!1;const s={...e,internalState:{currentSubscriptions:{}},refetchQuery:d,isThisApiSliceAction:c},f=u.map((e=>e(s))),p=Q(s),h=(({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:o})=>{const{removeQueryResult:i}=n.internalActions;function a(n,a){const l=n.getState()[e],s=l.queries,c=o.currentSubscriptions;t.batch((()=>{for(const e of Object.keys(c)){const t=s[e],o=c[e];o&&t&&((Object.values(o).some((e=>!0===e[a]))||Object.values(o).every((e=>void 0===e[a]))&&l.config[a])&&(0===k(o)?n.dispatch(i({queryCacheKey:e})):"uninitialized"!==t.status&&n.dispatch(r(t,e))))}}))}return(e,t)=>{S.match(e)&&a(t,"refetchOnFocus"),E.match(e)&&a(t,"refetchOnReconnect")}})(s);return e=>s=>{if(!(0,r.LG)(s))return e(s);o||(o=!0,n.dispatch(i.internalActions.middlewareRegistered(l)));const u={...n,next:e},d=n.getState(),[g,m]=p(s,u,d);let v;if(v=g?e(s):m,n.getState()[t]&&(h(s,u,d),c(s)||a.hasRehydrationInfo(s)))for(let e of f)e(s,u,d);return v}},actions:s};function d(e,t,r={}){return n({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t,...r})}}function ee(e,...t){return Object.assign(e,...t)}var te=Symbol(),ne=({createSelector:e=a.P1}={})=>({name:te,init(t,{baseQuery:n,tagTypes:r,reducerPath:a,serializeQueryArgs:l,keepUnusedDataFor:s,refetchOnMountOrArgChange:c,refetchOnFocus:u,refetchOnReconnect:f,invalidationBehavior:p},h){(0,i.vI)();const g=e=>e;Object.assign(t,{reducerPath:a,endpoints:{},internalActions:{onOnline:E,onOffline:C,onFocus:S,onFocusLost:w},util:{}});const{queryThunk:m,mutationThunk:v,patchQueryData:b,updateQueryData:A,upsertQueryData:P,prefetch:L,buildMatchThunkActions:I}=function({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:a,assertTagType:l}){const s=async(e,{signal:r,abort:i,rejectWithValue:a,fulfillWithValue:l,dispatch:s,getState:u,extra:d})=>{const f=n[e.endpointName];try{let n,a=N;const p={signal:r,abort:i,dispatch:s,getState:u,extra:d,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?c(e,u()):void 0},h="query"===e.type?e[R]:void 0;if(h?n=h():f.query?(n=await t(f.query(e.originalArgs),p,f.extraOptions),f.transformResponse&&(a=f.transformResponse)):n=await f.queryFn(e.originalArgs,p,f.extraOptions,(e=>t(e,p,f.extraOptions))),n.error)throw new y(n.error,n.meta);return l(await a(n.data,n.meta,e.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:n.meta,[o.s4]:!0})}catch(t){let n=t;if(n instanceof y){let t=N;f.query&&f.transformErrorResponse&&(t=f.transformErrorResponse);try{return a(await t(n.value,n.meta,e.originalArgs),{baseQueryMeta:n.meta,[o.s4]:!0})}catch(e){n=e}}throw console.error(n),n}};function c(t,n){const r=n[e]?.queries?.[t.queryCacheKey],o=n[e]?.config.refetchOnMountOrArgChange,i=r?.fulfilledTimeStamp,a=t.forceRefetch??(t.subscribe&&o);return!!a&&(!0===a||(Number(new Date)-Number(i))/1e3>=a)}const u=(0,o.hg)(`${e}/executeQuery`,s,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.s4]:!0}),condition(t,{getState:r}){const o=r(),i=o[e]?.queries?.[t.queryCacheKey],a=i?.fulfilledTimeStamp,l=t.originalArgs,s=i?.originalArgs,u=n[t.endpointName];return!(!$(t)&&("pending"===i?.status||!c(t,o)&&(!x(u)||!u?.forceRefetch?.({currentArg:l,previousArg:s,endpointState:i,state:o}))&&a))},dispatchConditionRejection:!0}),d=(0,o.hg)(`${e}/executeMutation`,s,{getPendingMeta:()=>({startedTimeStamp:Date.now(),[o.s4]:!0})});function f(e){return t=>t?.meta?.arg?.endpointName===e}return{queryThunk:u,mutationThunk:d,prefetch:(e,t,n)=>(r,o)=>{const i=(e=>"force"in e)(n)&&n.force,l=(e=>"ifOlderThan"in e)(n)&&n.ifOlderThan,s=(n=!0)=>{const r={forceRefetch:n,isPrefetch:!0};return a.endpoints[e].initiate(t,r)},c=a.endpoints[e].select(t)(o());if(i)r(s());else if(l){const e=c?.fulfilledTimeStamp;if(!e)return void r(s());(Number(new Date)-Number(new Date(e)))/1e3>=l&&r(s())}else r(s(!1))},updateQueryData:(e,t,n,r=!0)=>(o,l)=>{const s=a.endpoints[e].select(t)(l());let c,u={patches:[],inversePatches:[],undo:()=>o(a.util.patchQueryData(e,t,u.inversePatches,r))};if("uninitialized"===s.status)return u;if("data"in s)if((0,i.o$)(s.data)){const[e,t,r]=(0,i.aS)(s.data,n);u.patches.push(...t),u.inversePatches.push(...r),c=e}else c=n(s.data),u.patches.push({op:"replace",path:[],value:c}),u.inversePatches.push({op:"replace",path:[],value:s.data});return o(a.util.patchQueryData(e,t,u.patches,r)),u},upsertQueryData:(e,t,n)=>r=>r(a.endpoints[e].initiate(t,{subscribe:!1,forceRefetch:!0,[R]:()=>({data:n})})),patchQueryData:(e,t,o,i)=>(s,c)=>{const u=n[e],d=r({queryArgs:t,endpointDefinition:u,endpointName:e});if(s(a.internalActions.queryResultPatched({queryCacheKey:d,patches:o})),!i)return;const f=a.endpoints[e].select(t)(c()),p=_(u.providesTags,f.data,void 0,t,{},l);s(a.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))},buildMatchThunkActions:function(e,t){return{matchPending:(0,o.A6)((0,o.zR)(e),f(t)),matchFulfilled:(0,o.A6)((0,o.KD)(e),f(t)),matchRejected:(0,o.A6)((0,o.Iv)(e),f(t))}}}}({baseQuery:n,reducerPath:a,context:h,api:t,serializeQueryArgs:l,assertTagType:g}),{reducer:j,actions:B}=Z({context:h,queryThunk:m,mutationThunk:v,reducerPath:a,assertTagType:g,config:{refetchOnFocus:u,refetchOnReconnect:f,refetchOnMountOrArgChange:c,keepUnusedDataFor:s,reducerPath:a,invalidationBehavior:p}});ee(t.util,{patchQueryData:b,updateQueryData:A,upsertQueryData:P,prefetch:L,resetApiState:B.resetApiState}),ee(t.internalActions,B);const{middleware:H,actions:U}=J({reducerPath:a,context:h,queryThunk:m,mutationThunk:v,api:t,assertTagType:g});ee(t.util,U),ee(t,{reducer:j,middleware:H});const{buildQuerySelector:W,buildMutationSelector:V,selectInvalidatedBy:q,selectCachedArgsForQuery:X}=function({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=e=>z,o=e=>F;return{buildQuerySelector:function(t,o){return l=>{const s=e({queryArgs:l,endpointDefinition:o,endpointName:t});return n(l===D?r:e=>a(e)?.queries?.[s]??z,i)}},buildMutationSelector:function(){return e=>{let t;return t="object"==typeof e?M(e)??D:e,n(t===D?o:e=>a(e)?.mutations?.[t]??F,i)}},selectInvalidatedBy:function(e,n){const r=e[t],o=new Set;for(const e of n.map(O)){const t=r.provided[e.type];if(!t)continue;let n=(void 0!==e.id?t[e.id]:d(Object.values(t)))??[];for(const e of n)o.add(e)}return d(Array.from(o.values()).map((e=>{const t=r.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))},selectCachedArgsForQuery:function(e,n){return Object.values(e[t].queries).filter((e=>e?.endpointName===n&&"uninitialized"!==e.status)).map((e=>e.originalArgs))}};function i(e){return{...e,...(t=e.status,{status:t,isUninitialized:"uninitialized"===t,isLoading:"pending"===t,isSuccess:"fulfilled"===t,isError:"rejected"===t})};var t}function a(e){return e[t]}}({serializeQueryArgs:l,reducerPath:a,createSelector:e});ee(t.util,{selectInvalidatedBy:q,selectCachedArgsForQuery:X});const{buildInitiateQuery:G,buildInitiateMutation:Y,getRunningMutationThunk:K,getRunningMutationsThunk:Q,getRunningQueriesThunk:ne,getRunningQueryThunk:re}=function({serializeQueryArgs:e,queryThunk:t,mutationThunk:n,api:r,context:o}){const i=new Map,a=new Map,{unsubscribeQueryResult:l,removeMutationResult:s,updateSubscriptionOptions:c}=r.internalActions;return{buildInitiateQuery:function(n,o){const a=(s,{subscribe:d=!0,forceRefetch:f,subscriptionOptions:p,[R]:h,...g}={})=>(m,v)=>{const b=e({queryArgs:s,endpointDefinition:o,endpointName:n}),y=t({...g,type:"query",subscribe:d,forceRefetch:f,subscriptionOptions:p,endpointName:n,originalArgs:s,queryCacheKey:b,[R]:h}),S=r.endpoints[n].select(s),w=m(y),E=S(v());u(m);const{requestId:C,abort:x}=w,_=E.requestId!==C,O=i.get(m)?.[b],T=()=>S(v()),$=Object.assign(h?w.then(T):_&&!O?Promise.resolve(E):Promise.all([O,w]).then(T),{arg:s,requestId:C,subscriptionOptions:p,queryCacheKey:b,abort:x,async unwrap(){const e=await $;if(e.isError)throw e.error;return e.data},refetch:()=>m(a(s,{subscribe:!1,forceRefetch:!0})),unsubscribe(){d&&m(l({queryCacheKey:b,requestId:C}))},updateSubscriptionOptions(e){$.subscriptionOptions=e,m(c({endpointName:n,requestId:C,queryCacheKey:b,options:e}))}});if(!O&&!_&&!h){const e=i.get(m)||{};e[b]=$,i.set(m,e),$.then((()=>{delete e[b],k(e)||i.delete(m)}))}return $};return a},buildInitiateMutation:function(e){return(t,{track:r=!0,fixedCacheKey:o}={})=>(i,l)=>{const c=n({type:"mutation",endpointName:e,originalArgs:t,track:r,fixedCacheKey:o}),d=i(c);u(i);const{requestId:f,abort:p,unwrap:h}=d,g=(m=e=>({error:e}),d.unwrap().then((e=>({data:e}))).catch(m));var m;const v=Object.assign(g,{arg:d.arg,requestId:f,abort:p,unwrap:h,reset:()=>{i(s({requestId:f,fixedCacheKey:o}))}}),b=a.get(i)||{};return a.set(i,b),b[f]=v,v.then((()=>{delete b[f],k(b)||a.delete(i)})),o&&(b[o]=v,v.then((()=>{b[o]===v&&(delete b[o],k(b)||a.delete(i))}))),v}},getRunningQueryThunk:function(t,n){return r=>{const a=o.endpointDefinitions[t],l=e({queryArgs:n,endpointDefinition:a,endpointName:t});return i.get(r)?.[l]}},getRunningMutationThunk:function(e,t){return e=>a.get(e)?.[t]},getRunningQueriesThunk:function(){return e=>Object.values(i.get(e)||{}).filter(T)},getRunningMutationsThunk:function(){return e=>Object.values(a.get(e)||{}).filter(T)}};function u(e){}}({queryThunk:m,mutationThunk:v,api:t,serializeQueryArgs:l,context:h});return ee(t.util,{getRunningMutationThunk:K,getRunningMutationsThunk:Q,getRunningQueryThunk:re,getRunningQueriesThunk:ne}),{name:te,injectEndpoint(e,n){const r=t;r.endpoints[e]??={},x(n)?ee(r.endpoints[e],{name:e,select:W(e,n),initiate:G(e,n)},I(m,e)):"mutation"===n.type&&ee(r.endpoints[e],{name:e,select:V(),initiate:Y(e)},I(v,e))}}}});ne()},469:(e,t,n)=>{"use strict";n.d(t,{s4:()=>b,Ku:()=>me,xC:()=>x,PH:()=>f,hg:()=>F,HF:()=>ne,oM:()=>q,rJ:()=>ve,A6:()=>R,Q:()=>k,Gx:()=>I,KD:()=>L,zR:()=>A,Iv:()=>P,h_:()=>M,x0:()=>O,cw:()=>y});var r=n(3513),o=n(9119),i=n(5849);function a(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}var l=a(),s=a,c=((...e)=>{const t=(0,o.wN)(...e),n=Object.assign(((...e)=>{const n=t(...e),o=(e,...t)=>n((0,r.mv)(e)?(0,r.Vk)(e):e,...t);return Object.assign(o,n),o}),{withTypes:()=>n});return n})(o.kO),u="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?i.qC:i.qC.apply(null,arguments)},d=("undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,e=>e&&"function"==typeof e.match);function f(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(ve(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>(0,i.LG)(t)&&t.type===e,n}function p(e){return["type","payload","error","meta"].indexOf(e)>-1}var h=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function g(e){return(0,r.o$)(e)?(0,r.Uy)(e,(()=>{})):e}function m(e,t,n){if(e.has(t)){let r=e.get(t);return n.update&&(r=n.update(r,t,e),e.set(t,r)),r}if(!n.insert)throw new Error(ve(10));const r=n.insert(t,e);return e.set(t,r),r}var v=()=>function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new h;return t&&("boolean"==typeof t?i.push(l):i.push(s(t.extraArgument))),i},b="RTK_autoBatch",y=()=>e=>({payload:e,meta:{[b]:!0}}),S=e=>t=>{setTimeout(t,e)},w="undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:S(10),E=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new h(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const l=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?w:"callback"===e.type?e.queueNotification:S(e.timeout),c=()=>{a=!1,i&&(i=!1,l.forEach((e=>e())))};return Object.assign({},r,{subscribe(e){const t=r.subscribe((()=>o&&e()));return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return o=!e?.meta?.[b],i=!o,i&&(a||(a=!0,s(c))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r},C=!0;function x(e){const t=v(),{reducer:n,middleware:r,devTools:o=!0,preloadedState:a,enhancers:l}=e||{};let s,c;if("function"==typeof n)s=n;else{if(!(0,i.PO)(n))throw new Error(ve(1));s=(0,i.UY)(n)}if(!C&&r&&"function"!=typeof r)throw new Error(ve(2));if("function"==typeof r){if(c=r(t),!C&&!Array.isArray(c))throw new Error(ve(3))}else c=t();if(!C&&c.some((e=>"function"!=typeof e)))throw new Error(ve(4));let d=i.qC;o&&(d=u({trace:!C,..."object"==typeof o&&o}));const f=(0,i.md)(...c),p=E(f);if(!C&&l&&"function"!=typeof l)throw new Error(ve(5));let h="function"==typeof l?l(p):p();if(!C&&!Array.isArray(h))throw new Error(ve(6));if(!C&&h.some((e=>"function"!=typeof e)))throw new Error(ve(7));C||!c.length||h.includes(f)||console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=d(...h);return(0,i.MT)(s,a,g)}function _(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(ve(28));if(r in t)throw new Error(ve(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var O=(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},T=(e,t)=>d(e)?e.match(t):e(t);function k(...e){return t=>e.some((e=>T(e,t)))}function R(...e){return t=>e.every((e=>T(e,t)))}function $(e,t){if(!e||!e.meta)return!1;const n="string"==typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function N(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function A(...e){return 0===e.length?e=>$(e,["pending"]):N(e)?t=>k(...e.map((e=>e.pending)))(t):A()(e[0])}function P(...e){return 0===e.length?e=>$(e,["rejected"]):N(e)?t=>k(...e.map((e=>e.rejected)))(t):P()(e[0])}function M(...e){const t=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===e.length||N(e)?n=>R(P(...e),t)(n):M()(e[0])}function L(...e){return 0===e.length?e=>$(e,["fulfilled"]):N(e)?t=>k(...e.map((e=>e.fulfilled)))(t):L()(e[0])}function I(...e){return 0===e.length?e=>$(e,["pending","fulfilled","rejected"]):N(e)?t=>{const n=[];for(const t of e)n.push(t.pending,t.rejected,t.fulfilled);return k(...n)(t)}:I()(e[0])}var Z=["name","message","stack","code"],D=class{constructor(e,t){this.payload=e,this.meta=t}_type},j=class{constructor(e,t){this.payload=e,this.meta=t}_type},z=e=>{if("object"==typeof e&&null!==e){const t={};for(const n of Z)"string"==typeof e[n]&&(t[n]=e[n]);return t}return{message:String(e)}},F=(()=>{function e(e,t,n){const r=f(e+"/fulfilled",((e,t,n,r)=>({payload:e,meta:{...r||{},arg:n,requestId:t,requestStatus:"fulfilled"}}))),o=f(e+"/pending",((e,t,n)=>({payload:void 0,meta:{...n||{},arg:t,requestId:e,requestStatus:"pending"}}))),i=f(e+"/rejected",((e,t,r,o,i)=>({payload:o,error:(n&&n.serializeError||z)(e||"Rejected"),meta:{...i||{},arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}})));return Object.assign((function(e){return(a,l,s)=>{const c=n?.idGenerator?n.idGenerator(e):O(),u=new AbortController;let d,f;function p(e){f=e,u.abort()}const h=async function(){let h;try{let i=n?.condition?.(e,{getState:l,extra:s});if(null!==(g=i)&&"object"==typeof g&&"function"==typeof g.then&&(i=await i),!1===i||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const m=new Promise(((e,t)=>{d=()=>{t({name:"AbortError",message:f||"Aborted"})},u.signal.addEventListener("abort",d)}));a(o(c,e,n?.getPendingMeta?.({requestId:c,arg:e},{getState:l,extra:s}))),h=await Promise.race([m,Promise.resolve(t(e,{dispatch:a,getState:l,extra:s,requestId:c,signal:u.signal,abort:p,rejectWithValue:(e,t)=>new D(e,t),fulfillWithValue:(e,t)=>new j(e,t)})).then((t=>{if(t instanceof D)throw t;return t instanceof j?r(t.payload,c,e,t.meta):r(t,c,e)}))])}catch(t){h=t instanceof D?i(null,c,e,t.payload,t.meta):i(t,c,e)}finally{d&&u.signal.removeEventListener("abort",d)}var g;return n&&!n.dispatchConditionRejection&&i.match(h)&&h.meta.condition||a(h),h}();return Object.assign(h,{abort:p,requestId:c,arg:e,unwrap:()=>h.then(B)})}}),{pending:o,rejected:i,fulfilled:r,settled:k(i,r),typePrefix:e})}return e.withTypes=()=>e,e})();function B(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var H=Symbol.for("rtk-slice-createasyncthunk");function U(e,t){return`${e}/${t}`}function W({creators:e}={}){const t=e?.asyncThunk?.[H];return function(e){const{name:n,reducerPath:o=n}=e;if(!n)throw new Error(ve(11));const i=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(i),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(ve(12));if(n in l.sliceCaseReducersByType)throw new Error(ve(13));return l.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(l.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(l.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(l.sliceCaseReducersByName[e]=t,s)};function c(){const[t={},n=[],o]="function"==typeof e.extraReducers?_(e.extraReducers):[e.extraReducers],i={...t,...l.sliceCaseReducersByType};return function(e,t){let n,[o,i,a]=_(t);if("function"==typeof e)n=()=>g(e());else{const t=g(e);n=()=>t}function l(e=n(),t){let l=[o[t.type],...i.filter((({matcher:e})=>e(t))).map((({reducer:e})=>e))];return 0===l.filter((e=>!!e)).length&&(l=[a]),l.reduce(((e,n)=>{if(n){if((0,r.mv)(e)){const r=n(e,t);return void 0===r?e:r}if((0,r.o$)(e))return(0,r.Uy)(e,(e=>n(e,t)));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw new Error(ve(9))}return r}}return e}),e)}return l.getInitialState=n,l}(e.initialState,(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of l.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);o&&e.addDefaultCase(o)}))}a.forEach((r=>{const o=i[r],a={reducerName:r,type:U(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(ve(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?f(e,a):f(e))}(a,o,s):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(ve(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:s,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);l&&r.addCase(d.pending,l);s&&r.addCase(d.rejected,s);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||X,pending:l||X,rejected:s||X,settled:c||X})}(a,o,s,t)}));const u=e=>e,d=new Map;let p;function h(e,t){return p||(p=c()),p(e,t)}function v(){return p||(p=c()),p.getInitialState()}function b(t,n=!1){function r(e){let r=e[t];return void 0===r&&n&&(r=v()),r}function o(t=u){const r=m(d,n,{insert:()=>new WeakMap});return m(r,t,{insert:()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=V(i,t,v,n);return r}})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const y={name:n,reducer:h,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:v,...b(o),injectInto(e,{reducerPath:t,...n}={}){const r=t??o;return e.inject({reducerPath:r,reducer:h},n),{...y,...b(r,!0)}}};return y}}function V(e,t,n,r){function o(o,...i){let a=t(o);return void 0===a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}var q=W();function X(){}var G=r.mv;function Y(e){const t=K(((t,n)=>e(n)));return function(e){return t(e,void 0)}}function K(e){return function(t,n){function o(e){return t=e,(0,i.LG)(t)&&Object.keys(t).every(p);var t}const a=t=>{o(n)?e(n.payload,t):e(n,t)};return G(t)?(a(t),t):(0,r.Uy)(t,a)}}function Q(e,t){return t(e)}function J(e){return Array.isArray(e)||(e=Object.values(e)),e}function ee(e,t,n){e=J(e);const r=[],o=[];for(const i of e){const e=Q(i,t);e in n.entities?o.push({id:e,changes:i}):r.push(i)}return[r,o]}function te(e){function t(t,n){const r=Q(t,e);r in n.entities||(n.ids.push(r),n.entities[r]=t)}function n(e,n){e=J(e);for(const r of e)t(r,n)}function r(t,n){const r=Q(t,e);r in n.entities||n.ids.push(r),n.entities[r]=t}function o(e,t){let n=!1;e.forEach((e=>{e in t.entities&&(delete t.entities[e],n=!0)})),n&&(t.ids=t.ids.filter((e=>e in t.entities)))}function i(t,n){const r={},o={};t.forEach((e=>{e.id in n.entities&&(o[e.id]={id:e.id,changes:{...o[e.id]?o[e.id].changes:null,...e.changes}})}));if((t=Object.values(o)).length>0){const o=t.filter((t=>function(t,n,r){const o=r.entities[n.id];if(void 0===o)return!1;const i=Object.assign({},o,n.changes),a=Q(i,e),l=a!==n.id;return l&&(t[n.id]=a,delete r.entities[n.id]),r.entities[a]=i,l}(r,t,n))).length>0;o&&(n.ids=Object.values(n.entities).map((t=>Q(t,e))))}}function a(t,r){const[o,a]=ee(t,e,r);i(a,r),n(o,r)}return{removeAll:Y((function(e){Object.assign(e,{ids:[],entities:{}})})),addOne:K(t),addMany:K(n),setOne:K(r),setMany:K((function(e,t){e=J(e);for(const n of e)r(n,t)})),setAll:K((function(e,t){e=J(e),t.ids=[],t.entities={},n(e,t)})),updateOne:K((function(e,t){return i([e],t)})),updateMany:K(i),upsertOne:K((function(e,t){return a([e],t)})),upsertMany:K(a),removeOne:K((function(e,t){return o([e],t)})),removeMany:K(o)}}function ne(e={}){const{selectId:t,sortComparer:n}={sortComparer:!1,selectId:e=>e.id,...e},r=n?function(e,t){const{removeOne:n,removeMany:r,removeAll:o}=te(e);function i(t,n){const r=(t=J(t)).filter((t=>!(Q(t,e)in n.entities)));0!==r.length&&c(r,n)}function a(e,t){0!==(e=J(e)).length&&c(e,t)}function l(t,n){let r=!1;for(let o of t){const t=n.entities[o.id];if(!t)continue;r=!0,Object.assign(t,o.changes);const i=e(t);o.id!==i&&(delete n.entities[o.id],n.entities[i]=t)}r&&u(n)}function s(t,n){const[r,o]=ee(t,e,n);l(o,n),i(r,n)}function c(t,n){t.forEach((t=>{n.entities[e(t)]=t})),u(n)}function u(n){const r=Object.values(n.entities);r.sort(t);const o=r.map(e),{ids:i}=n;(function(e,t){if(e.length!==t.length)return!1;for(let n=0;ne.ids,o=e=>e.entities,i=n(r,o,((e,t)=>e.map((e=>t[e])))),a=(e,t)=>t,l=(e,t)=>e[t],s=n(r,(e=>e.length));if(!e)return{selectIds:r,selectEntities:o,selectAll:i,selectTotal:s,selectById:n(o,a,l)};const u=n(e,o);return{selectIds:n(e,r),selectEntities:u,selectAll:n(e,i),selectTotal:n(e,s),selectById:n(u,a,l)}}};return{selectId:t,sortComparer:n,...o,...i,...r}}var re=(e,t)=>{if("function"!=typeof e)throw new Error(ve(32))};var{assign:oe}=Object,ie="listenerMiddleware",ae=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=f(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(ve(21));return re(i),{predicate:o,type:t,effect:i}},le=Object.assign((e=>{const{type:t,predicate:n,effect:r}=ae(e);return{id:O(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(ve(22))}}}),{withTypes:()=>le}),se=Object.assign(f(`${ie}/add`),{withTypes:()=>se}),ce=(f(`${ie}/removeAll`),Object.assign(f(`${ie}/remove`),{withTypes:()=>ce})),ue=e=>e.flatMap((e=>{return"reducerPath"in(t=e)&&"string"==typeof t.reducerPath?[[e.reducerPath,e.reducer]]:Object.entries(e);var t})),de=Symbol.for("rtk-state-proxy-original"),fe=new WeakMap,pe=(e,t)=>m(fe,e,{insert:()=>new Proxy(e,{get:(e,n,r)=>{if(n===de)return e;const o=Reflect.get(e,n,r);if(void 0===o){const e=t[n.toString()];if(e){const t=e(void 0,{type:O()});if(void 0===t)throw new Error(ve(24));return t}}return o}})}),he=e=>{if(!(t=e)||!t[de])throw new Error(ve(25));var t;return e[de]},ge=(e={})=>e;function me(...e){const t=Object.fromEntries(ue(e)),n=()=>Object.keys(t).length?(0,i.UY)(t):ge;let r=n();function o(e,t){return r(e,t)}o.withLazyLoadedSlices=()=>o;const a=Object.assign((function(e,n){return function(r,...o){return e(pe(n?n(r,...o):r,t),...o)}}),{original:he});return Object.assign(o,{inject:(e,i={})=>{const{reducerPath:a,reducer:l}=e,s=t[a];return!i.overrideExisting&&s&&s!==l||(t[a]=l,r=n()),o},selector:a})}function ve(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},4094:(e,t,n)=>{"use strict";n.d(t,{b7:()=>a,ie:()=>i});var r=n(7294),o=n(7060);function i(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?r.createElement(e,t):e:null;var n}function a(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState((()=>({current:(0,o.W_)(t)}))),[i,a]=r.useState((()=>n.current.initialState));return n.current.setOptions((t=>({...t,...e,state:{...i,...e.state},onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}},7060:(e,t,n)=>{"use strict";function r(e,t){return"function"==typeof e?e(t):e}function o(e,t){return n=>{t.setState((t=>({...t,[e]:r(n,t[e])})))}}function i(e){return e instanceof Function}function a(e,t){const n=[],r=e=>{e.forEach((e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)}))};return r(e),n}function l(e,t,n){let r,o=[];return i=>{let a;n.key&&n.debug&&(a=Date.now());const l=e(i);if(!(l.length!==o.length||l.some(((e,t)=>o[t]!==e))))return r;let s;if(o=l,n.key&&n.debug&&(s=Date.now()),r=t(...l),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-a))/100,t=Math.round(100*(Date.now()-s))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}n.d(t,{Cl:()=>W,W_:()=>H,sC:()=>V});const c="debugHeaders";function u(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach((t=>{null==t.createHeader||t.createHeader(o,e)})),o}const d={createTable:e=>{e.getHeaderGroups=l((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>{var i,a;const l=null!=(i=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?i:[],s=null!=(a=null==o?void 0:o.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?a:[];return f(t,[...l,...n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),...s],e)}),s(e.options,c)),e.getCenterHeaderGroups=l((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((t,n,r,o)=>f(t,n=n.filter((e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id)))),e,"center")),s(e.options,c)),e.getLeftHeaderGroups=l((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left]),((t,n,r)=>{var o;return f(t,null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"left")}),s(e.options,c)),e.getRightHeaderGroups=l((()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right]),((t,n,r)=>{var o;return f(t,null!=(o=null==r?void 0:r.map((e=>n.find((t=>t.id===e)))).filter(Boolean))?o:[],e,"right")}),s(e.options,c)),e.getFooterGroups=l((()=>[e.getHeaderGroups()]),(e=>[...e].reverse()),s(e.options,c)),e.getLeftFooterGroups=l((()=>[e.getLeftHeaderGroups()]),(e=>[...e].reverse()),s(e.options,c)),e.getCenterFooterGroups=l((()=>[e.getCenterHeaderGroups()]),(e=>[...e].reverse()),s(e.options,c)),e.getRightFooterGroups=l((()=>[e.getRightHeaderGroups()]),(e=>[...e].reverse()),s(e.options,c)),e.getFlatHeaders=l((()=>[e.getHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,c)),e.getLeftFlatHeaders=l((()=>[e.getLeftHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,c)),e.getCenterFlatHeaders=l((()=>[e.getCenterHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,c)),e.getRightFlatHeaders=l((()=>[e.getRightHeaderGroups()]),(e=>e.map((e=>e.headers)).flat()),s(e.options,c)),e.getCenterLeafHeaders=l((()=>[e.getCenterFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,c)),e.getLeftLeafHeaders=l((()=>[e.getLeftFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,c)),e.getRightLeafHeaders=l((()=>[e.getRightFlatHeaders()]),(e=>e.filter((e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}))),s(e.options,c)),e.getLeafHeaders=l((()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()]),((e,t,n)=>{var r,o,i,a,l,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(l=null==(s=n[0])?void 0:s.headers)?l:[]].map((e=>e.getLeafHeaders())).flat()}),s(e.options,c))}};function f(e,t,n,r){var o,i;let a=0;const l=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter((e=>e.getIsVisible())).forEach((e=>{var n;null!=(n=e.columns)&&n.length&&l(e.columns,t+1)}),0)};l(e);let s=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach((e=>{const a=[...i].reverse()[0];let l,s=!1;if(e.column.depth===o.depth&&e.column.parent?l=e.column.parent:(l=e.column,s=!0),a&&(null==a?void 0:a.column)===l)a.subHeaders.push(e);else{const o=u(n,l,{id:[r,t,l.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter((e=>e.column===l)).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o})),s.push(o),t>0&&c(i,t-1)},d=t.map(((e,t)=>u(n,e,{depth:a,index:t})));c(d,a-1),s.reverse();const f=e=>e.filter((e=>e.column.getIsVisible())).map((e=>{let t=0,n=0,r=[0];e.subHeaders&&e.subHeaders.length?(r=[],f(e.subHeaders).forEach((e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)}))):t=1;return n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}}));return f(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const p={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},h={getDefaultColumnDef:()=>p,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:p.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:p.size),null!=(o=e.columnDef.maxSize)?o:p.maxSize)},e.getStart=l((e=>[e,F(t,e),t.getState().columnSizing]),((t,n)=>n.slice(0,e.getIndex(t)).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.getAfter=l((e=>[e,F(t,e),t.getState().columnSizing]),((t,n)=>n.slice(e.getIndex(t)+1).reduce(((e,t)=>e+t.getSize()),0)),s(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing((t=>{let{[e.id]:n,...r}=t;return r}))},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o)return;if(null==i.persist||i.persist(),m(i)&&i.touches&&i.touches.length>1)return;const a=e.getSize(),l=e?e.getLeafHeaders().map((e=>[e.column.id,e.column.getSize()])):[[r.id,r.getSize()]],s=m(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo((e=>{var r,o;const i="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,l=Math.max(a/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach((e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*l,0))/100})),{...e,deltaOffset:a,deltaPercentage:l}})),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing((e=>({...e,...c}))))},d=e=>u("move",e),f=e=>{u("end",e),t.setColumnSizingInfo((e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})))},p=n||"undefined"!=typeof document?document:null,h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},v={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",v.moveHandler),null==p||p.removeEventListener("touchend",v.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},b=!!function(){if("boolean"==typeof g)return g;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return g=e,g}()&&{passive:!1};m(i)?(null==p||p.addEventListener("touchmove",v.moveHandler,b),null==p||p.addEventListener("touchend",v.upHandler,b)):(null==p||p.addEventListener("mousemove",h.moveHandler,b),null==p||p.addEventListener("mouseup",h.upHandler,b)),t.setColumnSizingInfo((e=>({...e,startOffset:s,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id})))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce(((e,t)=>e+t.getSize()),0))?t:0}}};let g=null;function m(e){return"touchstart"===e.type}const v={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue((()=>{e.resetExpanded(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some((e=>e.getCanExpand())),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some((e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach((e=>{const n=e.split(".");t=Math.max(t,n.length)})),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded((r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach((e=>{a[e]=!0})):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=a;return n}return r}))},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},b=(e,t,n)=>{var r;const o=n.toLowerCase();return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())||null==(r=r.toLowerCase())?void 0:r.includes(o))};b.autoRemove=e=>k(e);const y=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};y.autoRemove=e=>k(e);const S=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};S.autoRemove=e=>k(e);const w=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};w.autoRemove=e=>k(e)||!(null!=e&&e.length);const E=(e,t,n)=>!n.some((n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))}));E.autoRemove=e=>k(e)||!(null!=e&&e.length);const C=(e,t,n)=>n.some((n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)}));C.autoRemove=e=>k(e)||!(null!=e&&e.length);const x=(e,t,n)=>e.getValue(t)===n;x.autoRemove=e=>k(e);const _=(e,t,n)=>e.getValue(t)==n;_.autoRemove=e=>k(e);const O=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};O.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){const e=i;i=a,a=e}return[i,a]},O.autoRemove=e=>k(e)||k(e[0])&&k(e[1]);const T={includesString:b,includesStringSensitive:y,equalsString:S,arrIncludes:w,arrIncludesAll:E,arrIncludesSome:C,equals:x,weakEquals:_,inNumberRange:O};function k(e){return null==e||""===e}function R(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const $={sum:(e,t,n)=>n.reduce(((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)}),0),min:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)})),r},max:(e,t,n)=>{let r;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(r=n)&&(r=n)})),r},extent:(e,t,n)=>{let r,o;return n.forEach((t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o{let n=0,r=0;if(t.forEach((t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)})),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map((t=>t.getValue(e)));if(r=n,!Array.isArray(r)||!r.every((e=>"number"==typeof e)))return;var r;if(1===n.length)return n[0];const o=Math.floor(n.length/2),i=n.sort(((e,t)=>e-t));return n.length%2!=0?i[o]:(i[o-1]+i[o])/2},unique:(e,t)=>Array.from(new Set(t.map((t=>t.getValue(e)))).values()),uniqueCount:(e,t)=>new Set(t.map((t=>t.getValue(e)))).size,count:(e,t)=>t.length};const N={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection((n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach((e=>{e.getCanSelect()&&(r[e.id]=!0)})):o.forEach((e=>{delete r[e.id]})),r}))},e.toggleAllPageRowsSelected=t=>e.setRowSelection((n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach((t=>{A(o,t.id,r,!0,e)})),o})),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=l((()=>[e.getState().rowSelection,e.getCoreRowModel()]),((t,n)=>Object.keys(t).length?P(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getFilteredSelectedRowModel=l((()=>[e.getState().rowSelection,e.getFilteredRowModel()]),((t,n)=>Object.keys(t).length?P(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getGroupedSelectedRowModel=l((()=>[e.getState().rowSelection,e.getSortedRowModel()]),((t,n)=>Object.keys(t).length?P(e,n):{rows:[],flatRows:[],rowsById:{}}),s(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some((e=>e.getCanSelect()&&!n[e.id]))&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter((e=>e.getCanSelect())),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some((e=>!n[e.id]))&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter((e=>e.getCanSelect())).some((e=>e.getIsSelected()||e.getIsSomeSelected()))},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection((i=>{var a;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const l={...i};return A(l,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),l}))},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return M(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===L(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===L(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},A=(e,t,n,r,o)=>{var i;const a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach((t=>delete e[t])),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=a.subRows)&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach((t=>A(e,t.id,n,r,o)))};function P(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map((e=>{var t;const a=M(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e})).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function M(e,t){var n;return null!=(n=t[e.id])&&n}function L(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,i=!1;return e.subRows.forEach((e=>{if((!i||o)&&(e.getCanSelect()&&(M(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=L(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}})),o?"all":!!i&&"some"}const I=/([0-9]+)/gm;function Z(e,t){return e===t?0:e>t?1:-1}function D(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function j(e,t){const n=e.split(I).filter(Boolean),r=t.split(I).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const z={alphanumeric:(e,t,n)=>j(D(e.getValue(n)).toLowerCase(),D(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>j(D(e.getValue(n)),D(t.getValue(n))),text:(e,t,n)=>Z(D(e.getValue(n)).toLowerCase(),D(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Z(D(e.getValue(n)),D(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:rZ(e.getValue(n),t.getValue(n))};function F(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const B=[d,{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility((t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()})))},e.getIsVisible=()=>{var n,r;return null==(n=null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=l((()=>[e.getAllCells(),t.getState().columnVisibility]),(e=>e.filter((e=>e.column.getIsVisible()))),s(t.options,"debugRows")),e.getVisibleCells=l((()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()]),((e,t,n)=>[...e,...t,...n]),s(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>l((()=>[n(),n().filter((e=>e.getIsVisible())).map((e=>e.id)).join("_")]),(e=>e.filter((e=>null==e.getIsVisible?void 0:e.getIsVisible()))),s(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,(()=>e.getAllFlatColumns())),e.getVisibleLeafColumns=t(0,(()=>e.getAllLeafColumns())),e.getLeftVisibleLeafColumns=t(0,(()=>e.getLeftLeafColumns())),e.getRightVisibleLeafColumns=t(0,(()=>e.getRightLeafColumns())),e.getCenterVisibleLeafColumns=t(0,(()=>e.getCenterLeafColumns())),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce(((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())})),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some((e=>!(null!=e.getIsVisible&&e.getIsVisible()))),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some((e=>null==e.getIsVisible?void 0:e.getIsVisible())),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=l((e=>[F(t,e)]),(t=>t.findIndex((t=>t.id===e.id))),s(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=F(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=F(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=l((()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode]),((e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex((t=>t.id===e));r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter((e=>!t.includes(e.id)));return"remove"===n?r:[...t.map((t=>e.find((e=>e.id===t)))).filter(Boolean),...r]}(o,t,n)}),s(e.options,"debugTable"))}},{getInitialState:e=>({columnPinning:{left:[],right:[]},rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e),onRowPinningChange:o("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map((e=>e.id)).filter(Boolean);t.setColumnPinning((e=>{var t,o,i,a,l,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter((e=>!(null!=r&&r.includes(e)))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter((e=>!(null!=r&&r.includes(e)))),...r]}:"left"===n?{left:[...(null!=(l=null==e?void 0:e.left)?l:[]).filter((e=>!(null!=r&&r.includes(e)))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter((e=>!(null!=r&&r.includes(e))))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter((e=>!(null!=r&&r.includes(e)))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter((e=>!(null!=r&&r.includes(e))))}}))},e.getCanPin=()=>e.getLeafColumns().some((e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)})),e.getIsPinned=()=>{const n=e.getLeafColumns().map((e=>e.id)),{left:r,right:o}=t.getState().columnPinning,i=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==o?void 0:o.includes(e)));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map((e=>{let{id:t}=e;return t})):[],a=o?e.getParentRows().map((e=>{let{id:t}=e;return t})):[],l=new Set([...a,e.id,...i]);t.setRowPinning((e=>{var t,r,o,i,a,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter((e=>!(null!=l&&l.has(e)))),...Array.from(l)]}:"top"===n?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter((e=>!(null!=l&&l.has(e)))),...Array.from(l)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter((e=>!(null!=l&&l.has(e))))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter((e=>!(null!=l&&l.has(e)))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter((e=>!(null!=l&&l.has(e))))}}))},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some((e=>null==r?void 0:r.includes(e))),a=n.some((e=>null==o?void 0:o.includes(e)));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=null==(n=t._getPinnedRows(o))?void 0:n.map((e=>{let{id:t}=e;return t}));return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1},e.getCenterVisibleCells=l((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.column.id)))}),s(t.options,"debugRows")),e.getLeftVisibleCells=l((()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"left"})))),s(t.options,"debugRows")),e.getRightVisibleCells=l((()=>[e._getAllVisibleCells(),t.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.column.id===t)))).filter(Boolean).map((e=>({...e,position:"right"})))),s(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},e.getLeftLeafColumns=l((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getRightLeafColumns=l((()=>[e.getAllLeafColumns(),e.getState().columnPinning.right]),((e,t)=>(null!=t?t:[]).map((t=>e.find((e=>e.id===t)))).filter(Boolean)),s(e.options,"debugColumns")),e.getCenterLeafColumns=l((()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right]),((e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter((e=>!r.includes(e.id)))}),s(e.options,"debugColumns")),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(i=r.bottom)?void 0:i.length))},e._getPinnedRows=l((t=>[e.getRowModel().rows,e.getState().rowPinning[t],t]),((t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map((t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null})):(null!=n?n:[]).map((e=>t.find((t=>t.id===e))))).filter(Boolean).map((e=>({...e,position:r})))}),s(e.options,"debugRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=l((()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom]),((e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter((e=>!r.has(e.id)))}),s(e.options,"debugRows"))}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),onGlobalFilterChange:o("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?T.includesString:"number"==typeof r?T.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?T.equals:Array.isArray(r)?T.arrIncludes:T.weakEquals},e.getFilterFn=()=>{var n,r;return i(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:T[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find((t=>t.id===e.id)))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.setFilterValue=n=>{t.setColumnFilters((t=>{const o=e.getFilterFn(),i=null==t?void 0:t.find((t=>t.id===e.id)),a=r(n,i?i.value:void 0);var l;if(R(o,a,e))return null!=(l=null==t?void 0:t.filter((t=>t.id!==e.id)))?l:[];const s={id:e.id,value:a};var c;return i?null!=(c=null==t?void 0:t.map((t=>t.id===e.id?s:t)))?c:[]:null!=t&&t.length?[...t,s]:[s]}))},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>T.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return i(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:T[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange((e=>{var o;return null==(o=r(t,e))?void 0:o.filter((e=>{const t=n.find((t=>t.id===e.id));if(t){if(R(t.getFilterFn(),e.value,t))return!1}return!0}))}))},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return z.datetime;if("string"==typeof n&&(r=!0,n.split(I).length>1))return z.alphanumeric}return r?z.text:z.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return i(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:z[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting((a=>{const l=null==a?void 0:a.find((t=>t.id===e.id)),s=null==a?void 0:a.findIndex((t=>t.id===e.id));let c,u=[],d=i?n:"desc"===o;var f;(c=null!=a&&a.length&&e.getCanMultiSort()&&r?l?"toggle":"add":null!=a&&a.length&&s!==a.length-1?"replace":l?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c)?(u=[...a,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):u="toggle"===c?a.map((t=>t.id===e.id?{...t,desc:d}:t)):"remove"===c?a.filter((t=>t.id!==e.id)):[{id:e.id,desc:d}];return u}))},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?!!(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find((t=>t.id===e.id));return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex((t=>t.id===e.id)))?n:-1},e.clearSorting=()=>{t.setSorting((t=>null!=t&&t.length?t.filter((t=>t.id!==e.id)):[]))},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping((t=>null!=t&&t.includes(e.id)?t.filter((t=>t!==e.id)):[...null!=t?t:[],e.id]))},e.getCanGroup=()=>{var n,r,o,i;return null!=(n=null==(r=null!=(o=null==(i=e.columnDef.enableGrouping)||i)?o:t.options.enableGrouping)||r)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?$.sum:"[object Date]"===Object.prototype.toString.call(r)?$.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return i(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:$[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},v,{getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue((()=>{e.resetPageIndex(),n=!1}))}}else e._queue((()=>{t=!0}))},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange((e=>r(t,e))),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination((n=>{let o=r(t,n.pageIndex);const i=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,i)),{...n,pageIndex:o}}))},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination((e=>{const n=Math.max(1,r(t,e.pageSize)),o=e.pageSize*e.pageIndex,i=Math.floor(o/n);return{...e,pageIndex:i,pageSize:n}}))},e.setPageCount=t=>e.setPagination((n=>{var o;let i=r(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof i&&(i=Math.max(-1,i)),{...n,pageCount:i}})),e.getPageOptions=l((()=>[e.getPageCount()]),(e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map(((e,t)=>t))),t}),s(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&te.setPageIndex((e=>e-1)),e.nextPage=()=>e.setPageIndex((e=>e+1)),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},N,h];function H(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:B};const o=n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n))),{});let i={...null!=(t=e.initialState)?t:{}};n._features.forEach((e=>{var t;i=null!=(t=null==e.getInitialState?void 0:e.getInitialState(i))?t:i}));const a=[];let c=!1;const u={_features:B,options:{...o,...e},initialState:i,_queue:e=>{a.push(e),c||(c=!0,Promise.resolve().then((()=>{for(;a.length;)a.shift()();c=!1})).catch((e=>setTimeout((()=>{throw e})))))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{const t=r(e,n.options);n.options=(e=>n.options.mergeOptions?n.options.mergeOptions(o,e):{...o,...e})(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,r)=>{var o;return null!=(o=null==n.options.getRowId?void 0:n.options.getRowId(e,t,r))?o:`${r?[r.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let r=(t?n.getPrePaginationRowModel():n.getRowModel()).rowsById[e];if(!r&&(r=n.getCoreRowModel().rowsById[e],!r))throw new Error;return r},_getDefaultColumnDef:l((()=>[n.options.defaultColumn]),(e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce(((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef())),{}),...e}}),s(e,"debugColumns")),_getColumnDefs:()=>n.options.columns,getAllColumns:l((()=>[n._getColumnDefs()]),(e=>{const t=function(e,r,o){return void 0===o&&(o=0),e.map((e=>{const i=function(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},c=a.accessorKey;let u,d=null!=(o=null!=(i=a.id)?i:c?c.replace(".","_"):void 0)?o:"string"==typeof a.header?a.header:void 0;if(a.accessorFn?u=a.accessorFn:c&&(u=c.includes(".")?e=>{let t=e;for(const e of c.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[a.accessorKey]),!d)throw new Error;let f={id:`${String(d)}`,accessorFn:u,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:l((()=>[!0]),(()=>{var e;return[f,...null==(e=f.columns)?void 0:e.flatMap((e=>e.getFlatColumns()))]}),s(e.options,"debugColumns")),getLeafColumns:l((()=>[e._getOrderColumnsFn()]),(e=>{var t;if(null!=(t=f.columns)&&t.length){let t=f.columns.flatMap((e=>e.getLeafColumns()));return e(t)}return[f]}),s(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(f,e);return f}(n,e,o,r),a=e;return i.columns=a.columns?t(a.columns,i,o+1):[],i}))};return t(e)}),s(e,"debugColumns")),getAllFlatColumns:l((()=>[n.getAllColumns()]),(e=>e.flatMap((e=>e.getFlatColumns()))),s(e,"debugColumns")),_getAllFlatColumnsById:l((()=>[n.getAllFlatColumns()]),(e=>e.reduce(((e,t)=>(e[t.id]=t,e)),{})),s(e,"debugColumns")),getAllLeafColumns:l((()=>[n.getAllColumns(),n._getOrderColumnsFn()]),((e,t)=>t(e.flatMap((e=>e.getLeafColumns())))),s(e,"debugColumns")),getColumn:e=>n._getAllFlatColumnsById()[e]};Object.assign(n,u);for(let e=0;e{let u={id:t,index:r,original:n,depth:o,parentId:c,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(u._valuesCache.hasOwnProperty(t))return u._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(u._valuesCache[t]=n.accessorFn(u.original,r),u._valuesCache[t]):void 0},getUniqueValues:t=>{if(u._uniqueValuesCache.hasOwnProperty(t))return u._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(u._uniqueValuesCache[t]=n.columnDef.getUniqueValues(u.original,r),u._uniqueValuesCache[t]):(u._uniqueValuesCache[t]=[u.getValue(t)],u._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=u.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>a(u.subRows,(e=>e.subRows)),getParentRow:()=>u.parentId?e.getRow(u.parentId,!0):void 0,getParentRows:()=>{let e=[],t=u;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:l((()=>[e.getAllLeafColumns()]),(t=>t.map((t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:l((()=>[e,n,t,o]),((e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue})),s(e.options,"debugCells"))};return e._features.forEach((r=>{null==r.createCell||r.createCell(o,n,t,e)}),{}),o}(e,u,t,t.id)))),s(e.options,"debugRows")),_getAllCellsByColumnId:l((()=>[u.getAllCells()]),(e=>e.reduce(((e,t)=>(e[t.column.id]=t,e)),{})),s(e.options,"debugRows"))};for(let t=0;t"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function V(){return e=>l((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const a=[];for(let s=0;se._autoResetPageIndex())))}},6609:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>B});const r={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||r,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{let[t,r]=e;for(let e=0;e{let[r,o]=t;for(let t=0;t{e=n,t=r}));return n.resolve=e,n.reject=t,n}function s(e){return null==e?"":""+e}const c=/###/g;function u(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(c,"."):e}function o(){return!e||"string"==typeof e}const i="string"!=typeof t?t:t.split(".");let a=0;for(;a":">",'"':""","'":"'","/":"/"};function m(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(e=>g[e])):e}const v=[" ",",","?","!",";"],b=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20);function y(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let e=0;e-1&&a0?e.replace("_","-"):e}class w extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):"string"==typeof n&&o?a.push(...n.split(o)):a.push(n)));const l=f(this.data,a);return!l&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),l||!i||"string"!=typeof n?l:y(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),d(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let l=f(this.data,a)||{};r?p(l,n,o):l={...l,...n},d(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var E={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,o))})),t}};const C={};class x extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach((e=>{t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=i.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";const r=v.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const o=b.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i}(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],s=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${e}${i}`,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${e}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:s,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:i}const u=this.resolve(e,t);let d=u&&u.res;const f=u&&u.usedKey||i,p=u&&u.exactUsedKey||i,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&d&&("string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!=typeof g||"[object Array]"!==h)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e="[object Array]"===h,n=e?[]:{},r=e?p:f;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const i=`${r}${o}${e}`;n[e]=this.translate(i,{...t,joinArrays:!1,ns:a}),n[e]===i&&(n[e]=d[e])}d=n}}else if(m&&"string"==typeof g&&"[object Array]"===h)d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&"string"!=typeof t.count,f=x.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(s,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(s,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(a=!0,d=i);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,b=f&&m!==d&&this.options.updateMissing;if(a||r||b){if(this.logger.log(b?"updateKey":"missingKey",s,l,i,b?m:d),o){const e=this.resolve(i,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{const o=f&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,n,o,b,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,l,n,o,b,t),this.emit("missingKey",e,l,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{r([e],i+n,t[`defaultValue${n}`]||m)}))})):r(e,i,m))}d=this.extendTranslation(d,e,t,u,n),a&&d===i&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${i}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(a){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let s=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language,n),a){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const l=this.extractFromKey(e,a),s=l.key;n=s;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&"string"!=typeof a.count,d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(i=e,!C[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(i)&&(C[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;o=n;const i=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(i,s,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.push(s+e),a.ordinal&&0===e.indexOf(r)&&i.push(s+e.replace(r,this.options.pluralSeparator)),d&&i.push(s+t)),f){const n=`${s}${this.options.contextSeparator}${a.context}`;i.push(n),u&&(i.push(n+e),a.ordinal&&0===e.indexOf(r)&&i.push(n+e.replace(r,this.options.pluralSeparator)),d&&i.push(n+t))}}let l;for(;l=i.pop();)this.isValidLookup(t)||(r=l,t=this.getResource(n,e,l,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace;let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}function _(e){return e.charAt(0).toUpperCase()+e.slice(1)}class O{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=i.create("languageUtils")}getScriptPartFromCode(e){if(!(e=S(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=S(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=_(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=_(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=_(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:0===e.indexOf(n)?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))})),r}}let T=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],k={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};const R=["v1","v2","v3"],$=["v4"],N={zero:0,one:1,two:2,few:3,many:4,other:5};class A{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=i.create("pluralResolver"),this.options.compatibilityJSON&&!$.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const e={};return T.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:k[t.fc]}}))})),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(S("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>N[e]-N[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const o=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!R.includes(this.options.compatibilityJSON)}}function P(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=function(e,t,n){const r=f(e,n);return void 0!==r?r:f(t,n)}(e,t,n);return!i&&o&&"string"==typeof n&&(i=y(e,n,r),void 0===i&&(i=y(t,n,r))),i}class M{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=void 0!==t.escape?t.escape:m,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?h(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?h(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?h(t.nestingPrefix):t.nestingPrefixEscaped||h("$t("),this.nestingSuffix=t.nestingSuffix?h(t.nestingSuffix):t.nestingSuffixEscaped||h(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}const u=e=>{if(e.indexOf(this.formatSeparator)<0){const o=P(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(P(t,l,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>c(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?c(this.escape(e)):c(e)}].forEach((t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=u(n),void 0===i)if("function"==typeof d){const t=d(e,o,r);i="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(f){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else"string"==typeof i||this.useRawValueToEscape||(i=s(i));const l=t.safeValue(i);if(e=e.replace(o[0],l),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let i=`{${r[1]}`;e=r[0],i=this.interpolate(i,o);const a=i.match(/'/g),l=i.match(/"/g);(a&&a.length%2==0&&!l||l.length%2!=0)&&(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let l=[];o={...i},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),l=e,c=!0}if(r=t(a.call(this,n[1].trim(),o),o),r&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=s(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),c&&(r=l.reduce(((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function L(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(S(r),o),t[i]=a),a(n)}}class I{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=i.create("formatter"),this.options=e,this.formats={number:L(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:L(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:L(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:L(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:L(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=L(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce(((e,t)=>{const{formatName:o,formatOptions:i}=function(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((e=>{if(!e)return;const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,"");n[t.trim()]||(n[t.trim()]=o),"false"===o&&(n[t.trim()]=!1),"true"===o&&(n[t.trim()]=!0),isNaN(o)||(n[t.trim()]=parseInt(o,10))}))}return{formatName:t,formatOptions:n}}(t);if(this.formats[o]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,l,{...i,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e)}}class Z extends a{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=i.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},a={},l={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===l[t]&&(l[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;const a={};this.queue.forEach((n=>{!function(e,t,n,r){const{obj:o,k:i}=u(e,t,Object);o[i]=o[i]||[],r&&(o[i]=o[i].concat(n)),r||o[i].push(n)}(n.loaded,[o],i),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,l)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&l&&r{this.read.call(this,e,t,n,r+1,2*o,i)}),o):i(a,l)},l=this.backend[n].bind(this.backend);if(2!==l.length)return l(e,t,a);try{const n=l(e,t);n&&"function"==typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,((n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)}))}saveMissing(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const l={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;o=5===s.length?s(e,t,n,r,l):s(e,t,n,r),o&&"function"==typeof o.then?o.then((e=>a(null,e))).catch(a):a(null,o)}catch(e){a(e)}else s(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function D(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function j(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function z(){}class F extends a{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=j(e),this.services={},this.logger=i,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=D();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...j(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?i.init(o(this.modules.logger),this.options):i.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=I);const n=new O(this.options);this.store=new w(this.options.resources,this.options);const a=this.services;a.logger=i,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new A(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(a.formatter=o(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new M(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Z(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=z),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const a=l(),s=()=>{const e=(e,t)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z;const n="string"==typeof e?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(n)r(n);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e)))}this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=l();return e||(e=this.languages),t||(t=this.options.ns),n||(n=z),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&E.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=l();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(e,i)=>{i?(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||o(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{i(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const o=function(e,t){let i;if("object"!=typeof t){for(var a=arguments.length,l=new Array(a>2?a-2:0),s=2;s`${i.keyPrefix}${c}${e}`)):i.keyPrefix?`${i.keyPrefix}${c}${e}`:e,r.t(u,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=l();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=l();"string"==typeof e&&(e=[e]);const r=this.options.preload||[],o=e.filter((e=>r.indexOf(e)<0));return o.length?(this.options.preload=r.concat(o),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new O(D());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new F(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new F(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new w(this.store.data,r),o.services.resourceStore=o.store),o.translator=new x(o.services,r),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{"use strict";n.d(t,{Js:()=>f,QE:()=>Q,Uy:()=>Y,Vk:()=>V,aS:()=>K,mv:()=>s,o$:()=>c,vI:()=>X});var r=Symbol.for("immer-nothing"),o=Symbol.for("immer-draftable"),i=Symbol.for("immer-state");function a(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var l=Object.getPrototypeOf;function s(e){return!!e&&!!e[i]}function c(e){return!!e&&(d(e)||Array.isArray(e)||!!e[o]||!!e.constructor?.[o]||b(e)||y(e))}var u=Object.prototype.constructor.toString();function d(e){if(!e||"object"!=typeof e)return!1;const t=l(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===u}function f(e){return s(e)||a(15),e[i].base_}function p(e,t){0===h(e)?Object.entries(e).forEach((([n,r])=>{t(n,r,e)})):e.forEach(((n,r)=>t(r,n,e)))}function h(e){const t=e[i];return t?t.type_:Array.isArray(e)?1:b(e)?2:y(e)?3:0}function g(e,t){return 2===h(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function m(e,t){return 2===h(e)?e.get(t):e[t]}function v(e,t,n){const r=h(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function b(e){return e instanceof Map}function y(e){return e instanceof Set}function S(e){return e.copy_||e.base_}function w(e,t){if(b(e))return new Map(e);if(y(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&d(e)){if(!l(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const n=Object.getOwnPropertyDescriptors(e);delete n[i];let r=Reflect.ownKeys(n);for(let t=0;t1&&(e.set=e.add=e.clear=e.delete=C),Object.freeze(e),t&&p(e,((e,t)=>E(t,!0)))),e}function C(){a(2)}function x(e){return Object.isFrozen(e)}var _,O={};function T(e){const t=O[e];return t||a(0),t}function k(e,t){O[e]||(O[e]=t)}function R(){return _}function $(e,t){t&&(T("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function N(e){A(e),e.drafts_.forEach(M),e.drafts_=null}function A(e){e===_&&(_=e.parent_)}function P(e){return _={drafts_:[],parent_:_,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function M(e){const t=e[i];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function L(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[i].modified_&&(N(t),a(4)),c(e)&&(e=I(t,e),t.parent_||D(t,e)),t.patches_&&T("Patches").generateReplacementPatches_(n[i].base_,e,t.patches_,t.inversePatches_)):e=I(t,n,[]),N(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==r?e:void 0}function I(e,t,n){if(x(t))return t;const r=t[i];if(!r)return p(t,((o,i)=>Z(e,r,t,o,i,n))),t;if(r.scope_!==e)return t;if(!r.modified_)return D(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),p(o,((o,a)=>Z(e,r,t,o,a,n,i))),D(e,t,!1),n&&e.patches_&&T("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Z(e,t,n,r,o,i,a){if(s(o)){const a=I(e,o,i&&t&&3!==t.type_&&!g(t.assigned_,r)?i.concat(r):void 0);if(v(n,r,a),!s(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(c(o)&&!x(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;I(e,o),t&&t.scope_.parent_||D(e,o)}}function D(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&E(t,n)}var j={get(e,t){if(t===i)return e;const n=S(e);if(!g(n,t))return function(e,t,n){const r=B(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!c(r)?r:r===F(e.base_,t)?(U(e),e.copy_[t]=W(r,e)):r},has:(e,t)=>t in S(e),ownKeys:e=>Reflect.ownKeys(S(e)),set(e,t,n){const r=B(S(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=F(S(e),t),l=r?.[i];if(l&&l.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(a=r)?0!==o||1/o==1/a:o!=o&&a!=a)&&(void 0!==n||g(e.base_,t)))return!0;U(e),H(e)}var o,a;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==F(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,U(e),H(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=S(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){a(11)},getPrototypeOf:e=>l(e.base_),setPrototypeOf(){a(12)}},z={};function F(e,t){const n=e[i];return(n?S(n):e)[t]}function B(e,t){if(!(t in e))return;let n=l(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=l(n)}}function H(e){e.modified_||(e.modified_=!0,e.parent_&&H(e.parent_))}function U(e){e.copy_||(e.copy_=w(e.base_,e.scope_.immer_.useStrictShallowCopy_))}p(j,((e,t)=>{z[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),z.deleteProperty=function(e,t){return z.set.call(this,e,t,void 0)},z.set=function(e,t,n){return j.set.call(this,e[0],t,n,e[0])};function W(e,t){const n=b(e)?T("MapSet").proxyMap_(e,t):y(e)?T("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:R(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=j;n&&(o=[r],i=z);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}(e,t);return(t?t.scope_:R()).drafts_.push(n),n}function V(e){return s(e)||a(10),q(e)}function q(e){if(!c(e)||x(e))return e;const t=e[i];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=w(e,t.scope_.immer_.useStrictShallowCopy_)}else n=w(e,!0);return p(n,((e,t)=>{v(n,e,q(t))})),t&&(t.finalized_=!1),n}function X(){const e="replace",t="add",n="remove";function i(e){if(!c(e))return e;if(Array.isArray(e))return e.map(i);if(b(e))return new Map(Array.from(e.entries()).map((([e,t])=>[e,i(t)])));if(y(e))return new Set(Array.from(e).map(i));const t=Object.create(l(e));for(const n in e)t[n]=i(e[n]);return g(e,o)&&(t[o]=e[o]),t}function u(e){return s(e)?i(e):e}k("Patches",{applyPatches_:function(r,o){return o.forEach((o=>{const{path:l,op:s}=o;let c=r;for(let e=0;e{const d=m(l,r),f=m(s,r),p=c?g(l,r)?e:t:n;if(d===f&&p===e)return;const h=o.concat(r);i.push(p===n?{op:p,path:h}:{op:p,path:h,value:f}),a.push(p===t?{op:n,path:h}:p===n?{op:t,path:h,value:u(d)}:{op:e,path:h,value:u(d)})}))}(r,o,i,a);case 1:return function(r,o,i,a){let{base_:l,assigned_:s}=r,c=r.copy_;c.length{if(!l.has(e)){const a=r.concat([s]);o.push({op:n,path:a,value:e}),i.unshift({op:t,path:a,value:e})}s++})),s=0,l.forEach((e=>{if(!a.has(e)){const a=r.concat([s]);o.push({op:t,path:a,value:e}),i.unshift({op:n,path:a,value:e})}s++}))}(r,o,i,a)}},generateReplacementPatches_:function(t,n,o,i){o.push({op:e,path:[],value:n===r?void 0:n}),i.push({op:e,path:[],value:t})}})}var G=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,(e=>t.call(this,e,...o)))}}let o;if("function"!=typeof t&&a(6),void 0!==n&&"function"!=typeof n&&a(7),c(e)){const r=P(this),i=W(e,void 0);let a=!0;try{o=t(i),a=!1}finally{a?N(r):A(r)}return $(r,n),L(o,r)}if(!e||"object"!=typeof e){if(o=t(e),void 0===o&&(o=e),o===r&&(o=void 0),this.autoFreeze_&&E(o,!0),n){const t=[],r=[];T("Patches").generateReplacementPatches_(e,o,t,r),n(t,r)}return o}a(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,(t=>e(t,...n)));let n,r;return[this.produce(e,t,((e,t)=>{n=e,r=t})),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){c(e)||a(8),s(e)&&(e=V(e));const t=P(this),n=W(e,void 0);return n[i].isManual_=!0,A(t),n}finishDraft(e,t){const n=e&&e[i];n&&n.isManual_||a(9);const{scope_:r}=n;return $(r,t),L(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=T("Patches").applyPatches_;return s(e)?r(e,t):this.produce(e,(e=>r(e,t)))}},Y=G.produce,K=G.produceWithPatches.bind(G),Q=(G.setAutoFreeze.bind(G),G.setUseStrictShallowCopy.bind(G),G.applyPatches.bind(G));G.createDraft.bind(G),G.finishDraft.bind(G)},1072:(e,t,n)=>{"use strict";n.d(t,{Db:()=>h,$G:()=>y});var r=n(7294);n(1739);Object.create(null);const o={};function i(){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}};function l(e,t,n){e.loadNamespaces(t,a(e,n))}function s(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,a(e,r))}const c=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,u={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},d=e=>u[e];let f,p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(c,d)};const h={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p={...p,...e}}(e.options.react),function(e){f=e}(e)}},g=(0,r.createContext)();class m{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const v=(e,t)=>{const n=(0,r.useRef)();return(0,r.useEffect)((()=>{n.current=t?n.current:e}),[e,t]),n.current};function b(e,t,n,r){return e.getFixedT(t,n,r)}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:n}=t,{i18n:o,defaultNS:a}=(0,r.useContext)(g)||{},c=n||o||f;if(c&&!c.reportNamespaces&&(c.reportNamespaces=new m),!c){i("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>"string"==typeof t?t:t&&"object"==typeof t&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}c.options.react&&void 0!==c.options.react.wait&&i("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const u={...p,...c.options.react,...t},{useSuspense:d,keyPrefix:h}=u;let y=e||a||c.options&&c.options.defaultNS;y="string"==typeof y?[y]:y||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(y);const S=(c.isInitialized||c.initializedStoreOnce)&&y.every((e=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;const a=(e,n)=>{const r=t.services.backendConnector.state[`${e}|${n}`];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}(e,t,n):(i("i18n.languages were undefined or empty",t.languages),!0)}(e,c,u))),w=function(e,t,n,o){return(0,r.useCallback)(b(e,t,n,o),[e,t,n,o])}(c,t.lng||null,"fallback"===u.nsMode?y:y[0],h),E=()=>w,C=()=>b(c,t.lng||null,"fallback"===u.nsMode?y:y[0],h),[x,_]=(0,r.useState)(E);let O=y.join();t.lng&&(O=`${t.lng}${O}`);const T=v(O),k=(0,r.useRef)(!0);(0,r.useEffect)((()=>{const{bindI18n:e,bindI18nStore:n}=u;function r(){k.current&&_(C)}return k.current=!0,S||d||(t.lng?s(c,t.lng,y,(()=>{k.current&&_(C)})):l(c,y,(()=>{k.current&&_(C)}))),S&&T&&T!==O&&k.current&&_(C),e&&c&&c.on(e,r),n&&c&&c.store.on(n,r),()=>{k.current=!1,e&&c&&e.split(" ").forEach((e=>c.off(e,r))),n&&c&&n.split(" ").forEach((e=>c.store.off(e,r)))}}),[c,O]);const R=(0,r.useRef)(!0);(0,r.useEffect)((()=>{k.current&&!R.current&&_(E),R.current=!1}),[c,h]);const $=[x,c,S];if($.t=x,$.i18n=c,$.ready=S,S)return $;if(!S&&!d)return $;throw new Promise((e=>{t.lng?s(c,t.lng,y,(()=>e())):l(c,y,(()=>e()))}))}},5007:(e,t,n)=>{"use strict";n.d(t,{I0:()=>k,dC:()=>R,oR:()=>_,v9:()=>m,wU:()=>E,zt:()=>C});var r=n(7294),o=n(1103),i=r,a=Symbol.for("react-redux-context"),l="undefined"!=typeof globalThis?globalThis:{};function s(){if(!i.createContext)return{};const e=l[a]??(l[a]=new Map);let t=e.get(i.createContext);return t||(t=i.createContext(null),e.set(i.createContext,t)),t}var c=s(),u=()=>{throw new Error("uSES not initialized!")};function d(e=c){return function(){return i.useContext(e)}}var f=d(),p=u,h=(e,t)=>e===t;function g(e=c){const t=e===c?f:d(e),n=(e,n={})=>{const{equalityFn:r=h,devModeChecks:o={}}="function"==typeof n?{equalityFn:n}:n;const{store:a,subscription:l,getServerState:s,stabilityCheck:c,identityFunctionCheck:u}=t(),d=(i.useRef(!0),i.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o.stabilityCheck])),f=p(l.addNestedSub,a.getState,s||a.getState,d,r);return i.useDebugValue(f),f};return Object.assign(n,{withTypes:()=>n}),n}var m=g();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");function v(e){e()}var b={notify(){},get:()=>[]};function y(e,t){let n,r=b,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){v((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=b)}const c={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return c}var S=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?i.useLayoutEffect:i.useEffect;function w(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function E(e,t){if(w(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r{const t=y(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:a}}),[e,r,o,a]),s=i.useMemo((()=>e.getState()),[e]);S((()=>{const{subscription:t}=l;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[l,s]);const u=t||c;return i.createElement(u.Provider,{value:l},n)};function x(e=c){const t=e===c?f:d(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var _=x();function O(e=c){const t=e===c?_:x(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var T,k=O(),R=v;T=o.useSyncExternalStoreWithSelector,p=T,(e=>{e})(r.useSyncExternalStore)},5849:(e,t,n)=>{"use strict";function r(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{LG:()=>f,MT:()=>s,PO:()=>l,UY:()=>c,md:()=>d,qC:()=>u});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function l(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function s(e,t,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(r(1));return n(s)(e,t)}let i=e,c=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function g(){if(p)throw new Error(r(3));return c}function m(e){if("function"!=typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function v(e){if(!l(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,c=i(c,e)}finally{p=!1}return(u=d).forEach((e=>{e()})),e}v({type:a.INIT});return{dispatch:v,subscribe:m,getState:g,replaceReducer:function(e){if("function"!=typeof e)throw new Error(r(10));i=e,v({type:a.REPLACE})},[o]:function(){const e=m;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(g())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let r=0;r{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const l={};for(let i=0;ie:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function d(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const l={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},s=e.map((e=>e(l)));return a=u(...s)(i.dispatch),{...i,dispatch:a}}}function f(e){return l(e)&&"type"in e&&"string"==typeof e.type}},9119:(e,t,n)=>{"use strict";n.d(t,{P1:()=>f,kO:()=>u,wN:()=>d});function r(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}var o=e=>Array.isArray(e)?e:[e];function i(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var a="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}},l=0,s=1;function c(){return{s:l,v:void 0,o:null,p:null}}function u(e,t={}){let n=c();const{resultEqualityCheck:r}=t;let o,i=0;function l(){let t=n;const{length:l}=arguments;for(let e=0,n=l;e{n=c(),l.resetResultsCount()},l.resultsCount=()=>i,l.resetResultsCount=()=>{i=0},l}function d(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,a=(...e)=>{let t,a=0,l=0,s={},c=e.pop();"object"==typeof c&&(s=c,c=e.pop()),r(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const d={...n,...s},{memoize:f,memoizeOptions:p=[],argsMemoize:h=u,argsMemoizeOptions:g=[],devModeChecks:m={}}=d,v=o(p),b=o(g),y=i(e),S=f((function(){return a++,c.apply(null,arguments)}),...v);const w=h((function(){l++;const e=function(e,t){const n=[],{length:r}=e;for(let o=0;ol,resetDependencyRecomputations:()=>{l=0},lastResult:()=>t,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(a,{withTypes:()=>a}),a}var f=d(u),p=Object.assign(((e,t=f)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,r)=>(e[n[r]]=t,e)),{})))}),{withTypes:()=>p})}}]); \ No newline at end of file diff --git a/public/build/446.8cf76c24.js.LICENSE.txt b/public/build/331.7d193447.js.LICENSE.txt similarity index 81% rename from public/build/446.8cf76c24.js.LICENSE.txt rename to public/build/331.7d193447.js.LICENSE.txt index 61be66ae5..63340fb0d 100644 --- a/public/build/446.8cf76c24.js.LICENSE.txt +++ b/public/build/331.7d193447.js.LICENSE.txt @@ -6,6 +6,28 @@ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ +/** + * react-table + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */ + +/** + * table-core + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */ + /** * @license React * react-dom.production.min.js diff --git a/public/build/446.8cf76c24.js b/public/build/446.8cf76c24.js deleted file mode 100644 index b334666fc..000000000 --- a/public/build/446.8cf76c24.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 446.8cf76c24.js.LICENSE.txt */ -(self.webpackChunkPimcore=self.webpackChunkPimcore||[]).push([[446],{1242:(e,t,n)=>{"use strict";n.d(t,{iN:()=>E,R_:()=>b});var r=n(6500),o=n(1350),i=2,a=.16,s=.05,l=.05,c=.15,u=5,d=4,f=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function p(e){var t=e.r,n=e.g,o=e.b,i=(0,r.py)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function h(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function g(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?r+=360:r>=360&&(r-=360),r}function m(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-a*t:t===d?e.s+a:e.s+s*t)>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function v(e,t,n){var r;return(r=n?e.v+l*t:e.v-c*t)>1&&(r=1),Number(r.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),i=u;i>0;i-=1){var a=p(r),s=h((0,o.uA)({h:g(a,i,!0),s:m(a,i,!0),v:v(a,i,!0)}));n.push(s)}n.push(h(r));for(var l=1;l<=d;l+=1){var c=p(r),b=h((0,o.uA)({h:g(c,l),s:m(c,l),v:v(c,l)}));n.push(b)}return"dark"===t.theme?f.map((function(e){var r,i,a,s=e.index,l=e.opacity;return h((r=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(n[s]),a=100*l/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))})):n}var y={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},S={},w={};Object.keys(y).forEach((function(e){S[e]=b(y[e]),S[e].primary=S[e][5],w[e]=b(y[e],{theme:"dark",backgroundColor:"#141414"}),w[e].primary=w[e][5]}));S.red,S.volcano,S.gold,S.orange,S.yellow,S.lime,S.green,S.cyan;var E=S.blue;S.geekblue,S.purple,S.magenta,S.grey,S.grey},7395:(e,t,n)=>{"use strict";n.d(t,{E4:()=>mt,V9:()=>x,jG:()=>P,t2:()=>se,ks:()=>X,bf:()=>W,CI:()=>ht,fp:()=>ce,xy:()=>ft});var r=n(4942),o=n(9439),i=n(3433),a=n(1413);const s=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var l=n(4958),c=n(7294),u=n.t(c,2),d=n(4925),f=n(6982),p=n(1881),h=n(5671),g=n(3144),m="%";function v(e){return e.join(m)}const b=function(){function e(t){(0,h.Z)(this,e),(0,r.Z)(this,"instanceId",void 0),(0,r.Z)(this,"cache",new Map),this.instanceId=t}return(0,g.Z)(e,[{key:"get",value:function(e){return this.opGet(v(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(v(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var y=["children"],S="data-token-hash",w="data-css-hash",E="__cssinjs_instance__";function _(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(w,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[E]=t[E]||e,t[E]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(w,"]"))).forEach((function(t){var n,o=t.getAttribute(w);r[o]?t[E]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new b(e)}var C=c.createContext({hashPriority:"low",cache:_(),defaultCache:!0}),x=function(e){var t=e.children,n=(0,d.Z)(e,y),r=c.useContext(C),o=(0,f.Z)((function(){var e=(0,a.Z)({},r);Object.keys(n).forEach((function(t){var r=n[t];void 0!==n[t]&&(e[t]=r)}));var t=n.cache;return e.cache=e.cache||_(),e.defaultCache=!t&&r.defaultCache,e}),[r,n],(function(e,t){return!(0,p.Z)(e[0],t[0],!0)||!(0,p.Z)(e[1],t[1],!0)}));return c.createElement(C.Provider,{value:o},t)};const O=C;var T=n(1002),k=n(8924);var R=function(){function e(){(0,h.Z)(this,e),(0,r.Z)(this,"cache",void 0),(0,r.Z)(this,"keys",void 0),(0,r.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,g.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=(0,o.Z)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),A+=1}return(0,g.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),L=new R;function P(e){var t=Array.isArray(e)?e:[e];return L.has(t)||L.set(t,new $(t)),L.get(t)}var M=new WeakMap,I={};var Z=new WeakMap;function D(e){var t=Z.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof $?t+=r.id:r&&"object"===(0,T.Z)(r)?t+=D(r):t+=r})),Z.set(e,t)),t}function j(e,t){return s("".concat(t,"_").concat(D(e)))}var z="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),B="_bAmBoO_";function F(e,t,n){if((0,k.Z)()){var r,o;(0,l.hq)(e,z);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=n?n(i):null===(r=getComputedStyle(i).content)||void 0===r?void 0:r.includes(B);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),(0,l.jL)(z),a}return!1}var H=void 0;var U=(0,k.Z)();function W(e){return"number"==typeof e?"".concat(e,"px"):e}function V(e,t,n){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var s=(0,a.Z)((0,a.Z)({},i),{},(o={},(0,r.Z)(o,S,t),(0,r.Z)(o,w,n),o)),l=Object.keys(s).map((function(e){var t=s[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var X=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},q=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,o.Z)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Y=function(e,t,n){var r={},i={};return Object.entries(e).forEach((function(e){var t,a,s=(0,o.Z)(e,2),l=s[0],c=s[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])i[l]=c;else if(!("string"!=typeof c&&"number"!=typeof c||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[l])){var u,d=X(l,null==n?void 0:n.prefix);r[d]="number"!=typeof c||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[l]?String(c):"".concat(c,"px"),i[l]="var(".concat(d,")")}})),[i,q(r,t,{scope:null==n?void 0:n.scope})]},G=n(8410),K=(0,a.Z)({},u).useInsertionEffect;const Q=K?function(e,t,n){return K((function(){return e(),t()}),n)}:function(e,t,n){c.useMemo(e,n),(0,G.Z)((function(){return t(!0)}),n)};const J=void 0!==(0,a.Z)({},u).useInsertionEffect?function(e){var t=[],n=!1;return c.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const ee=function(){return!1};function te(e,t,n,r,a){var s=c.useContext(O).cache,l=v([e].concat((0,i.Z)(t))),u=J([l]),d=(ee(),function(e){s.opUpdate(l,(function(t){var r=t||[void 0,void 0],i=(0,o.Z)(r,2),a=i[0];var s=[void 0===a?0:a,i[1]||n()];return e?e(s):s}))});c.useMemo((function(){d()}),[l]);var f=s.opGet(l)[1];return Q((function(){null==a||a(f)}),(function(e){return d((function(t){var n=(0,o.Z)(t,2),r=n[0],i=n[1];return e&&0===r&&(null==a||a(f)),[r+1,i]})),function(){s.opUpdate(l,(function(t){var n=t||[],i=(0,o.Z)(n,2),a=i[0],c=void 0===a?0:a,d=i[1];return 0===c-1?(u((function(){!e&&s.opGet(l)||null==r||r(d,!1)})),null):[c-1,d]}))}}),[l]),f}var ne={},re="css",oe=new Map;var ie=0;function ae(e,t){oe.set(e,(oe.get(e)||0)-1);var n=Array.from(oe.keys()),r=n.filter((function(e){return(oe.get(e)||0)<=0}));n.length-r.length>ie&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(S,'="').concat(e,'"]')).forEach((function(e){var n;e[E]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),oe.delete(e)}))}var se=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.Z)((0,a.Z)({},o),t);return r&&(i=r(i)),i},le="token";function ce(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,c.useContext)(O),u=r.cache.instanceId,d=r.container,f=n.salt,p=void 0===f?"":f,h=n.override,g=void 0===h?ne:h,m=n.formatToken,v=n.getComputedToken,b=n.cssVar,y=function(e,t){for(var n=M,r=0;r0?_e(Pe,--$e):0,Ne--,10===Le&&(Ne=1,Re--),Le}function Ze(){return Le=$e2||Be(Le)>3?"":" "}function Ve(e,t){for(;--t&&Ze()&&!(Le<48||Le>102||Le>57&&Le<65||Le>70&&Le<97););return ze(e,je()+(t<6&&32==De()&&32==Ze()))}function Xe(e){for(;Ze();)switch(Le){case e:return $e;case 34:case 39:34!==e&&39!==e&&Xe(Le);break;case 40:41===e&&Xe(e);break;case 92:Ze()}return $e}function qe(e,t){for(;Ze()&&e+Le!==57&&(e+Le!==84||47!==De()););return"/*"+ze(t,$e-1)+"*"+ye(47===e?e:Ze())}function Ye(e){for(;!Be(De());)Ze();return ze(e,$e)}function Ge(e){return He(Ke("",null,null,null,[""],e=Fe(e),0,[0],e))}function Ke(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,v=1,b=0,y="",S=o,w=i,E=r,_=y;m;)switch(h=b,b=Ze()){case 40:if(108!=h&&58==_e(_,d-1)){-1!=Ee(_+=we(Ue(b),"&","&\f"),"&\f",be(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:_+=Ue(b);break;case 9:case 10:case 13:case 32:_+=We(h);break;case 92:_+=Ve(je()-1,7);continue;case 47:switch(De()){case 42:case 47:Oe(Je(qe(Ze(),je()),t,n,l),l);break;default:_+="/"}break;case 123*g:s[c++]=xe(_)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==v&&(_=we(_,/\f/g,"")),p>0&&xe(_)-d&&Oe(p>32?et(_+";",r,n,d-1,l):et(we(_," ","")+";",r,n,d-2,l),l);break;case 59:_+=";";default:if(Oe(E=Qe(_,t,n,c,u,o,s,y,S=[],w=[],d,i),i),123===b)if(0===u)Ke(_,t,E,E,S,i,d,s,w);else switch(99===f&&110===_e(_,3)?100:f){case 100:case 108:case 109:case 115:Ke(e,E,E,r&&Oe(Qe(e,E,E,0,0,o,s,y,o,S=[],d,w),w),o,w,d,s,r?S:w);break;default:Ke(_,E,E,E,[""],w,0,s,w)}}c=u=p=0,g=v=1,y=_="",d=a;break;case 58:d=1+xe(_),p=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Ie())continue;switch(_+=ye(b),b*g){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(xe(_)-1)*v,v=1;break;case 64:45===De()&&(_+=Ue(Ze())),f=De(),u=d=xe(y=_+=Ye(je())),b++;break;case 45:45===h&&2==xe(_)&&(g=0)}}return i}function Qe(e,t,n,r,o,i,a,s,l,c,u,d){for(var f=o-1,p=0===o?i:[""],h=function(e){return e.length}(p),g=0,m=0,v=0;g0?p[b]+" "+y:we(y,/&\f/g,p[b])))&&(l[v++]=S);return Me(e,t,n,0===o?pe:s,l,c,u,d)}function Je(e,t,n,r){return Me(e,t,n,fe,ye(Le),Ce(e,2,-2),0,r)}function et(e,t,n,r,o){return Me(e,t,n,he,Ce(e,0,r),Ce(e,r+1,-1),r,o)}var tt,nt="data-ant-cssinjs-cache-path",rt="_FILE_STYLE__";var ot=!0;function it(e){return function(){if(!tt&&(tt={},(0,k.Z)())){var e=document.createElement("div");e.className=nt,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,o.Z)(t,2),r=n[0],i=n[1];tt[r]=i}));var n,r=document.querySelector("style[".concat(nt,"]"));r&&(ot=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!tt[e]}var at="_multi_value_";function st(e){return Te(Ge(e),ke).replace(/\{%%%\:[^;];}/g,";")}var lt=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},s=r.root,l=r.injectHash,c=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),p=n.transformers,h=void 0===p?[]:p,g=(n.linters,""),m={};function v(t){var r=t.getName(u);if(!m[r]){var i=e(t.style,n,{root:!1,parentSelectors:c}),a=(0,o.Z)(i,1)[0];m[r]="@keyframes ".concat(t.getName(u)).concat(a)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);if(b.forEach((function(t){var r="string"!=typeof t||s?t:{};if("string"==typeof r)g+="".concat(r,"\n");else if(r._keyframe)v(r);else{var d=h.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(d).forEach((function(t){var r=d[t];if("object"!==(0,T.Z)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===(0,T.Z)(e)&&e&&("_skip_check_"in e||at in e)}(r)){var p;function x(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;de[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(u)),g+="".concat(n,":").concat(r,";")}var h=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,T.Z)(r)&&null!=r&&r[at]&&Array.isArray(h)?h.forEach((function(e){x(t,e)})):x(t,h)}else{var b=!1,y=t.trim(),S=!1;(s||l)&&u?y.startsWith("@")?b=!0:y=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.Z)(n.slice(1))).join(" ")})).join(",")}(t,u,f):!s||u||"&"!==y&&""!==y||(y="",S=!0);var w=e(r,n,{root:S,injectHash:b,parentSelectors:[].concat((0,i.Z)(c),[y])}),E=(0,o.Z)(w,2),_=E[0],C=E[1];m=(0,a.Z)((0,a.Z)({},m),C),g+="".concat(y).concat(_)}}))}})),s){if(d&&(void 0===H&&(H=F("@layer ".concat(z," { .").concat(z,' { content: "').concat(B,'"!important; } }'),(function(e){e.className=z}))),H)){var y=d.split(","),S=y[y.length-1].trim();g="@layer ".concat(S," {").concat(g,"}"),y.length>1&&(g="@layer ".concat(d,"{%%%:%}").concat(g))}}else g="{".concat(g,"}");return[g,m]};function ct(e,t){return s("".concat(e.join("%")).concat(t))}function ut(){return null}var dt="style";function ft(e,t){var n=e.token,a=e.path,s=e.hashId,u=e.layer,d=e.nonce,f=e.clientOnly,p=e.order,h=void 0===p?0:p,g=c.useContext(O),m=g.autoClear,v=(g.mock,g.defaultCache),b=g.hashPriority,y=g.container,_=g.ssrInline,C=g.transformers,x=g.linters,T=g.cache,R=n._tokenKey,N=[R].concat((0,i.Z)(a)),A=U;var $=te(dt,N,(function(){var e=N.join("|");if(it(e)){var n=function(e){var t=tt[e],n=null;if(t&&(0,k.Z)())if(ot)n=rt;else{var r=document.querySelector("style[".concat(w,'="').concat(tt[e],'"]'));r?n=r.innerHTML:delete tt[e]}return[n,t]}(e),r=(0,o.Z)(n,2),i=r[0],l=r[1];if(i)return[i,R,l,{},f,h]}var c=t(),d=lt(c,{hashId:s,hashPriority:b,layer:u,path:a.join("-"),transformers:C,linters:x}),p=(0,o.Z)(d,2),g=p[0],m=p[1],v=st(g),y=ct(N,v);return[v,R,y,m,f,h]}),(function(e,t){var n=(0,o.Z)(e,3)[2];(t||m)&&U&&(0,l.jL)(n,{mark:w})}),(function(e){var t=(0,o.Z)(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(A&&n!==rt){var a={mark:w,prepend:"queue",attachTo:y,priority:h},s="function"==typeof d?d():d;s&&(a.csp={nonce:s});var c=(0,l.hq)(n,r,a);c[E]=T.instanceId,c.setAttribute(S,R),Object.keys(i).forEach((function(e){(0,l.hq)(st(i[e]),"_effect-".concat(e),a)}))}})),L=(0,o.Z)($,3),P=L[0],M=L[1],I=L[2];return function(e){var t,n;_&&!A&&v?t=c.createElement("style",(0,ue.Z)({},(n={},(0,r.Z)(n,S,M),(0,r.Z)(n,w,I),n),{dangerouslySetInnerHTML:{__html:P}})):t=c.createElement(ut,null);return c.createElement(c.Fragment,null,t,e)}}var pt="cssVar";const ht=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,s=e.ignore,u=e.token,d=e.scope,f=void 0===d?"":d,p=(0,c.useContext)(O),h=p.cache.instanceId,g=p.container,m=u._tokenKey,v=[].concat((0,i.Z)(e.path),[n,f,m]);return te(pt,v,(function(){var e=t(),i=Y(e,n,{prefix:r,unitless:a,ignore:s,scope:f}),l=(0,o.Z)(i,2),c=l[0],u=l[1];return[c,u,ct(v,u),n]}),(function(e){var t=(0,o.Z)(e,3)[2];U&&(0,l.jL)(t,{mark:w})}),(function(e){var t=(0,o.Z)(e,3),r=t[1],i=t[2];if(r){var a=(0,l.hq)(r,i,{mark:w,prepend:"queue",attachTo:g,priority:-999});a[E]=h,a.setAttribute(S,n)}}))};var gt;gt={},(0,r.Z)(gt,dt,(function(e,t,n){var r=(0,o.Z)(e,6),i=r[0],a=r[1],s=r[2],l=r[3],c=r[4],u=r[5],d=(n||{}).plain;if(c)return null;var f=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=V(i,a,s,p,d),l&&Object.keys(l).forEach((function(e){if(!t[e]){t[e]=!0;var n=st(l[e]);f+=V(n,a,"_effect-".concat(e),p,d)}})),[u,s,f]})),(0,r.Z)(gt,le,(function(e,t,n){var r=(0,o.Z)(e,5),i=r[2],a=r[3],s=r[4],l=(n||{}).plain;if(!a)return null;var c=i._tokenKey;return[-999,c,V(a,s,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]})),(0,r.Z)(gt,pt,(function(e,t,n){var r=(0,o.Z)(e,4),i=r[1],a=r[2],s=r[3],l=(n||{}).plain;if(!i)return null;return[-999,a,V(i,s,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}));const mt=function(){function e(t,n){(0,h.Z)(this,e),(0,r.Z)(this,"name",void 0),(0,r.Z)(this,"style",void 0),(0,r.Z)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,g.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function vt(e){return e.notSplit=!0,e}vt(["borderTop","borderBottom"]),vt(["borderTop"]),vt(["borderBottom"]),vt(["borderLeft","borderRight"]),vt(["borderLeft"]),vt(["borderRight"])},76:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(7462),o=n(9439),i=n(4942),a=n(4925),s=n(7294),l=n(3967),c=n.n(l),u=n(1242),d=n(3017),f=n(1413),p=n(1002),h=n(4958),g=n(7571),m=n(334);function v(e){return"object"===(0,p.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.Z)(e.icon)||"function"==typeof e.icon)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function y(e,t,n){return n?s.createElement(e.tag,(0,f.Z)((0,f.Z)({key:t},b(e.attrs)),n),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):s.createElement(e.tag,(0,f.Z)({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function S(e){return(0,u.R_)(e)[0]}function w(e){return e?Array.isArray(e)?e:[e]:[]}var E=["icon","className","onClick","style","primaryColor","secondaryColor"],_={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var C=function(e){var t,n,r,o,i,l,c,u=e.icon,p=e.className,b=e.onClick,w=e.style,C=e.primaryColor,x=e.secondaryColor,O=(0,a.Z)(e,E),T=s.useRef(),k=_;if(C&&(k={primaryColor:C,secondaryColor:x||S(C)}),t=T,n=(0,s.useContext)(d.Z),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(i=i.replace(/anticon/g,o)),(0,s.useEffect)((function(){var e=t.current,n=(0,g.A)(e);(0,h.hq)(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})}),[]),l=v(u),c="icon should be icon definiton, but got ".concat(u),(0,m.ZP)(l,"[@ant-design/icons] ".concat(c)),!v(u))return null;var R=u;return R&&"function"==typeof R.icon&&(R=(0,f.Z)((0,f.Z)({},R),{},{icon:R.icon(k.primaryColor,k.secondaryColor)})),y(R.icon,"svg-".concat(R.name),(0,f.Z)((0,f.Z)({className:p,onClick:b,style:w,"data-icon":R.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},O),{},{ref:T}))};C.displayName="IconReact",C.getTwoToneColors=function(){return(0,f.Z)({},_)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;_.primaryColor=t,_.secondaryColor=n||S(t),_.calculated=!!n};const x=C;function O(e){var t=w(e),n=(0,o.Z)(t,2),r=n[0],i=n[1];return x.setTwoToneColors({primaryColor:r,secondaryColor:i})}var T=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];O(u.iN.primary);var k=s.forwardRef((function(e,t){var n,l=e.className,u=e.icon,f=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,v=(0,a.Z)(e,T),b=s.useContext(d.Z),y=b.prefixCls,S=void 0===y?"anticon":y,E=b.rootClassName,_=c()(E,S,(n={},(0,i.Z)(n,"".concat(S,"-").concat(u.name),!!u.name),(0,i.Z)(n,"".concat(S,"-spin"),!!f||"loading"===u.name),n),l),C=h;void 0===C&&g&&(C=-1);var O=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,k=w(m),R=(0,o.Z)(k,2),N=R[0],A=R[1];return s.createElement("span",(0,r.Z)({role:"img","aria-label":u.name},v,{ref:t,tabIndex:C,onClick:g,className:_}),s.createElement(x,{icon:u,primaryColor:N,secondaryColor:A,style:O}))}));k.displayName="AntdIcon",k.getTwoToneColor=function(){var e=x.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},k.setTwoToneColor=O;const R=k},3017:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(7294).createContext)({})},8819:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};var a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},3061:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},4549:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},8855:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};var a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},847:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},7724:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},7085:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},8812:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},9366:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(7294);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};var a=n(76),s=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};const l=o.forwardRef(s)},6500:(e,t,n)=>{"use strict";n.d(t,{T6:()=>p,VD:()=>h,WE:()=>c,Yt:()=>g,lC:()=>i,py:()=>l,rW:()=>o,s:()=>d,ve:()=>s,vq:()=>u});var r=n(279);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function i(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=0,l=(o+i)/2;if(o===i)s=0,a=0;else{var c=o-i;switch(s=l>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-n)/c+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){var o,i,s;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)i=n,s=n,o=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;o=a(c,l,e+1/3),i=a(c,l,e),s=a(c,l,e-1/3)}return{r:255*o,g:255*i,b:255*s}}function l(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,s=o,l=o-i,c=0===o?0:l/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/l+(t>16,g:(65280&e)>>8,b:255&e}}},8701:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:(e,t,n)=>{"use strict";n.d(t,{uA:()=>a});var r=n(6500),o=n(8701),i=n(279);function a(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,l=null,c=!1,f=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),c=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,i.JX)(e.s),s=(0,i.JX)(e.v),t=(0,r.WE)(e.h,a,s),c=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,i.JX)(e.s),l=(0,i.JX)(e.l),t=(0,r.ve)(e.h,a,l),c=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.Yq)(n),{ok:c,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),l="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),c="[\\s|\\(]+(".concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")[,|\\s]+(").concat(s,")\\s*\\)?"),u={CSS_UNIT:new RegExp(s),rgb:new RegExp("rgb"+l),rgba:new RegExp("rgba"+c),hsl:new RegExp("hsl"+l),hsla:new RegExp("hsla"+c),hsv:new RegExp("hsv"+l),hsva:new RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},274:(e,t,n)=>{"use strict";n.d(t,{C:()=>s});var r=n(6500),o=n(8701),i=n(1350),a=n(279),s=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a{"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function s(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:()=>s,JX:()=>a,V2:()=>o,Yq:()=>i,sh:()=>r})},8705:(e,t,n)=>{"use strict";n.d(t,{Z:()=>S});var r=n(9439),o=n(7294),i=n(3935),a=n(8924),s=(n(334),n(2550));const l=o.createContext(null);var c=n(3433),u=n(8410),d=[];var f,p=n(4958);function h(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(e||void 0===f){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),f=o-i}return f}():n}var g="rc-util-locker-".concat(Date.now()),m=0;function v(e){var t=!!e,n=o.useState((function(){return m+=1,"".concat(g,"_").concat(m)})),i=(0,r.Z)(n,1)[0];(0,u.Z)((function(){if(t){var e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:h(n),height:h(r)}}(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,p.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,p.jL)(i);return function(){(0,p.jL)(i)}}),[t,i])}var b=!1;var y=function(e){return!1!==e&&((0,a.Z)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};const S=o.forwardRef((function(e,t){var n=e.open,f=e.autoLock,p=e.getContainer,h=(e.debug,e.autoDestroy),g=void 0===h||h,m=e.children,S=o.useState(n),w=(0,r.Z)(S,2),E=w[0],_=w[1],C=E||n;o.useEffect((function(){(g||n)&&_(n)}),[n,g]);var x=o.useState((function(){return y(p)})),O=(0,r.Z)(x,2),T=O[0],k=O[1];o.useEffect((function(){var e=y(p);k(null!=e?e:null)}));var R=function(e,t){var n=o.useState((function(){return(0,a.Z)()?document.createElement("div"):null})),i=(0,r.Z)(n,1)[0],s=o.useRef(!1),f=o.useContext(l),p=o.useState(d),h=(0,r.Z)(p,2),g=h[0],m=h[1],v=f||(s.current?void 0:function(e){m((function(t){return[e].concat((0,c.Z)(t))}))});function b(){i.parentElement||document.body.appendChild(i),s.current=!0}function y(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),s.current=!1}return(0,u.Z)((function(){return e?f?f(b):b():y(),y}),[e]),(0,u.Z)((function(){g.length&&(g.forEach((function(e){return e()})),m(d))}),[g]),[i,v]}(C&&!T),N=(0,r.Z)(R,2),A=N[0],$=N[1],L=null!=T?T:A;v(f&&n&&(0,a.Z)()&&(L===A||L===document.body));var P=null;m&&(0,s.Yr)(m)&&t&&(P=m.ref);var M=(0,s.x1)(P,t);if(!C||!(0,a.Z)()||void 0===T)return null;var I,Z=!1===L||("boolean"==typeof I&&(b=I),b),D=m;return t&&(D=o.cloneElement(m,{ref:M})),o.createElement(l.Provider,{value:$},Z?D:(0,i.createPortal)(D,L))}))},2507:(e,t,n)=>{"use strict";n.d(t,{Z:()=>H});var r=n(1413),o=n(9439),i=n(4925),a=n(8705),s=n(3967),l=n.n(s),c=n(5375),u=n(4203),d=n(7571),f=n(6680),p=n(7028),h=n(8410),g=n(1131),m=n(7294),v=n(7462),b=n(5461),y=n(2550);function S(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,c=o.x,u=void 0===c?0:c,d=o.y,f=void 0===d?0:d,p=m.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],v=n.points[1],b=g[0],y=g[1],S=v[0],w=v[1];b!==S&&["t","b"].includes(b)?"t"===b?h.top=0:h.bottom=0:h.top=f,y!==w&&["l","r"].includes(y)?"l"===y?h.left=0:h.right=0:h.left=u}return m.createElement("div",{ref:p,className:l()("".concat(t,"-arrow"),a),style:h},s)}function w(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?m.createElement(b.ZP,(0,v.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return m.createElement("div",{style:{zIndex:r},className:l()("".concat(t,"-mask"),n)})})):null}const E=m.memo((function(e){return e.children}),(function(e,t){return t.cache}));const _=m.forwardRef((function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,s=e.style,u=e.target,d=e.onVisibleChanged,f=e.open,p=e.keepDom,g=e.fresh,_=e.onClick,C=e.mask,x=e.arrow,O=e.arrowPos,T=e.align,k=e.motion,R=e.maskMotion,N=e.forceRender,A=e.getPopupContainer,$=e.autoDestroy,L=e.portal,P=e.zIndex,M=e.onMouseEnter,I=e.onMouseLeave,Z=e.onPointerEnter,D=e.ready,j=e.offsetX,z=e.offsetY,B=e.offsetR,F=e.offsetB,H=e.onAlign,U=e.onPrepare,W=e.stretch,V=e.targetWidth,X=e.targetHeight,q="function"==typeof n?n():n,Y=f||p,G=(null==A?void 0:A.length)>0,K=m.useState(!A||!G),Q=(0,o.Z)(K,2),J=Q[0],ee=Q[1];if((0,h.Z)((function(){!J&&G&&u&&ee(!0)}),[J,G,u]),!J)return null;var te="auto",ne={left:"-1000vw",top:"-1000vh",right:te,bottom:te};if(D||!f){var re,oe=T.points,ie=T.dynamicInset||(null===(re=T._experimental)||void 0===re?void 0:re.dynamicInset),ae=ie&&"r"===oe[0][1],se=ie&&"b"===oe[0][0];ae?(ne.right=B,ne.left=te):(ne.left=j,ne.right=te),se?(ne.bottom=F,ne.top=te):(ne.top=z,ne.bottom=te)}var le={};return W&&(W.includes("height")&&X?le.height=X:W.includes("minHeight")&&X&&(le.minHeight=X),W.includes("width")&&V?le.width=V:W.includes("minWidth")&&V&&(le.minWidth=V)),f||(le.pointerEvents="none"),m.createElement(L,{open:N||Y,getContainer:A&&function(){return A(u)},autoDestroy:$},m.createElement(w,{prefixCls:a,open:f,zIndex:P,mask:C,motion:R}),m.createElement(c.Z,{onResize:H,disabled:!f},(function(e){return m.createElement(b.ZP,(0,v.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:N,leavedClassName:"".concat(a,"-hidden")},k,{onAppearPrepare:U,onEnterPrepare:U,visible:f,onVisibleChanged:function(e){var t;null==k||null===(t=k.onVisibleChanged)||void 0===t||t.call(k,e),d(e)}}),(function(n,o){var c=n.className,u=n.style,d=l()(a,c,i);return m.createElement("div",{ref:(0,y.sQ)(e,t,o),className:d,style:(0,r.Z)((0,r.Z)((0,r.Z)((0,r.Z)({"--arrow-x":"".concat(O.x||0,"px"),"--arrow-y":"".concat(O.y||0,"px")},ne),le),u),{},{boxSizing:"border-box",zIndex:P},s),onMouseEnter:M,onMouseLeave:I,onPointerEnter:Z,onClick:_},x&&m.createElement(S,{prefixCls:a,arrow:x,arrowPos:O,align:T}),m.createElement(E,{cache:!f&&!g},q))}))})))}));const C=m.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=(0,y.Yr)(n),i=m.useCallback((function(e){(0,y.mH)(t,r?r(e):e)}),[r]),a=(0,y.x1)(i,n.ref);return o?m.cloneElement(n,{ref:a}):n}));const x=m.createContext(null);function O(e){return e?Array.isArray(e)?e:[e]:[]}var T=n(5110);function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function R(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function N(e){return e.ownerDocument.defaultView}function A(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=N(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function L(e){return $(parseFloat(e),0)}function P(e,t){var n=(0,r.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=N(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,h=L(i),g=L(a),m=L(s),v=L(l),b=$(Math.round(c.width/f*1e3)/1e3),y=$(Math.round(c.height/u*1e3)/1e3),S=(f-p-m-v)*b,w=(u-d-h-g)*y,E=h*y,_=g*y,C=m*b,x=v*b,O=0,T=0;if("clip"===r){var k=L(o);O=k*b,T=k*y}var R=c.x+C-O,A=c.y+E-T,P=R+c.width+2*O-C-x-S,M=A+c.height+2*T-E-_-w;n.left=Math.max(n.left,R),n.top=Math.max(n.top,A),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,M)}})),n}function M(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function I(e,t){var n=t||[],r=(0,o.Z)(n,2),i=r[0],a=r[1];return[M(e.width,i),M(e.height,a)]}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function D(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function j(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var z=n(3433);n(334);var B=n(5164);var F=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z;return m.forwardRef((function(t,n){var a=t.prefixCls,s=void 0===a?"rc-trigger-popup":a,v=t.children,b=t.action,y=void 0===b?"hover":b,S=t.showAction,w=t.hideAction,E=t.popupVisible,L=t.defaultPopupVisible,M=t.onPopupVisibleChange,H=t.afterPopupVisibleChange,U=t.mouseEnterDelay,W=t.mouseLeaveDelay,V=void 0===W?.1:W,X=t.focusDelay,q=t.blurDelay,Y=t.mask,G=t.maskClosable,K=void 0===G||G,Q=t.getPopupContainer,J=t.forceRender,ee=t.autoDestroy,te=t.destroyPopupOnHide,ne=t.popup,re=t.popupClassName,oe=t.popupStyle,ie=t.popupPlacement,ae=t.builtinPlacements,se=void 0===ae?{}:ae,le=t.popupAlign,ce=t.zIndex,ue=t.stretch,de=t.getPopupClassNameFromAlign,fe=t.fresh,pe=t.alignPoint,he=t.onPopupClick,ge=t.onPopupAlign,me=t.arrow,ve=t.popupMotion,be=t.maskMotion,ye=t.popupTransitionName,Se=t.popupAnimation,we=t.maskTransitionName,Ee=t.maskAnimation,_e=t.className,Ce=t.getTriggerDOMNode,xe=(0,i.Z)(t,F),Oe=ee||te||!1,Te=m.useState(!1),ke=(0,o.Z)(Te,2),Re=ke[0],Ne=ke[1];(0,h.Z)((function(){Ne((0,g.Z)())}),[]);var Ae=m.useRef({}),$e=m.useContext(x),Le=m.useMemo((function(){return{registerSubPopup:function(e,t){Ae.current[e]=t,null==$e||$e.registerSubPopup(e,t)}}}),[$e]),Pe=(0,p.Z)(),Me=m.useState(null),Ie=(0,o.Z)(Me,2),Ze=Ie[0],De=Ie[1],je=(0,f.Z)((function(e){(0,u.S)(e)&&Ze!==e&&De(e),null==$e||$e.registerSubPopup(Pe,e)})),ze=m.useState(null),Be=(0,o.Z)(ze,2),Fe=Be[0],He=Be[1],Ue=m.useRef(null),We=(0,f.Z)((function(e){(0,u.S)(e)&&Fe!==e&&(He(e),Ue.current=e)})),Ve=m.Children.only(v),Xe=(null==Ve?void 0:Ve.props)||{},qe={},Ye=(0,f.Z)((function(e){var t,n,r=Fe;return(null==r?void 0:r.contains(e))||(null===(t=(0,d.A)(r))||void 0===t?void 0:t.host)===e||e===r||(null==Ze?void 0:Ze.contains(e))||(null===(n=(0,d.A)(Ze))||void 0===n?void 0:n.host)===e||e===Ze||Object.values(Ae.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Ge=R(s,ve,Se,ye),Ke=R(s,be,Ee,we),Qe=m.useState(L||!1),Je=(0,o.Z)(Qe,2),et=Je[0],tt=Je[1],nt=null!=E?E:et,rt=(0,f.Z)((function(e){void 0===E&&tt(e)}));(0,h.Z)((function(){tt(E||!1)}),[E]);var ot=m.useRef(nt);ot.current=nt;var it=m.useRef([]);it.current=[];var at=(0,f.Z)((function(e){var t;rt(e),(null!==(t=it.current[it.current.length-1])&&void 0!==t?t:nt)!==e&&(it.current.push(e),null==M||M(e))})),st=m.useRef(),lt=function(){clearTimeout(st.current)},ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;lt(),0===t?at(e):st.current=setTimeout((function(){at(e)}),1e3*t)};m.useEffect((function(){return lt}),[]);var ut=m.useState(!1),dt=(0,o.Z)(ut,2),ft=dt[0],pt=dt[1];(0,h.Z)((function(e){e&&!nt||pt(!0)}),[nt]);var ht=m.useState(null),gt=(0,o.Z)(ht,2),mt=gt[0],vt=gt[1],bt=m.useState([0,0]),yt=(0,o.Z)(bt,2),St=yt[0],wt=yt[1],Et=function(e){wt([e.clientX,e.clientY])},_t=function(e,t,n,i,a,s,l){var c=m.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[i]||{}}),d=(0,o.Z)(c,2),p=d[0],g=d[1],v=m.useRef(0),b=m.useMemo((function(){return t?A(t):[]}),[t]),y=m.useRef({});e||(y.current={});var S=(0,f.Z)((function(){if(t&&n&&e){var c,d,f,p=t,h=p.ownerDocument,m=N(p).getComputedStyle(p),v=m.width,S=m.height,w=m.position,E=p.style.left,_=p.style.top,C=p.style.right,x=p.style.bottom,O=p.style.overflow,k=(0,r.Z)((0,r.Z)({},a[i]),s),R=h.createElement("div");if(null===(c=p.parentElement)||void 0===c||c.appendChild(R),R.style.left="".concat(p.offsetLeft,"px"),R.style.top="".concat(p.offsetTop,"px"),R.style.position=w,R.style.height="".concat(p.offsetHeight,"px"),R.style.width="".concat(p.offsetWidth,"px"),p.style.left="0",p.style.top="0",p.style.right="auto",p.style.bottom="auto",p.style.overflow="hidden",Array.isArray(n))f={x:n[0],y:n[1],width:0,height:0};else{var A=n.getBoundingClientRect();f={x:A.x,y:A.y,width:A.width,height:A.height}}var L=p.getBoundingClientRect(),M=h.documentElement,z=M.clientWidth,B=M.clientHeight,F=M.scrollWidth,H=M.scrollHeight,U=M.scrollTop,W=M.scrollLeft,V=L.height,X=L.width,q=f.height,Y=f.width,G={left:0,top:0,right:z,bottom:B},K={left:-W,top:-U,right:F-W,bottom:H-U},Q=k.htmlRegion,J="visible",ee="visibleFirst";"scroll"!==Q&&Q!==ee&&(Q=J);var te=Q===ee,ne=P(K,b),re=P(G,b),oe=Q===J?re:ne,ie=te?re:oe;p.style.left="auto",p.style.top="auto",p.style.right="0",p.style.bottom="0";var ae=p.getBoundingClientRect();p.style.left=E,p.style.top=_,p.style.right=C,p.style.bottom=x,p.style.overflow=O,null===(d=p.parentElement)||void 0===d||d.removeChild(R);var se=$(Math.round(X/parseFloat(v)*1e3)/1e3),le=$(Math.round(V/parseFloat(S)*1e3)/1e3);if(0===se||0===le||(0,u.S)(n)&&!(0,T.Z)(n))return;var ce=k.offset,ue=k.targetOffset,de=I(L,ce),fe=(0,o.Z)(de,2),pe=fe[0],he=fe[1],ge=I(f,ue),me=(0,o.Z)(ge,2),ve=me[0],be=me[1];f.x-=ve,f.y-=be;var ye=k.points||[],Se=(0,o.Z)(ye,2),we=Se[0],Ee=Z(Se[1]),_e=Z(we),Ce=D(f,Ee),xe=D(L,_e),Oe=(0,r.Z)({},k),Te=Ce.x-xe.x+pe,ke=Ce.y-xe.y+he;function wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:oe,r=L.x+e,o=L.y+t,i=r+X,a=o+V,s=Math.max(r,n.left),l=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var Re,Ne,Ae,$e,Le=wt(Te,ke),Pe=wt(Te,ke,re),Me=D(f,["t","l"]),Ie=D(L,["t","l"]),Ze=D(f,["b","r"]),De=D(L,["b","r"]),je=k.overflow||{},ze=je.adjustX,Be=je.adjustY,Fe=je.shiftX,He=je.shiftY,Ue=function(e){return"boolean"==typeof e?e:e>=0};function Et(){Re=L.y+ke,Ne=Re+V,Ae=L.x+Te,$e=Ae+X}Et();var We=Ue(Be),Ve=_e[0]===Ee[0];if(We&&"t"===_e[0]&&(Ne>ie.bottom||y.current.bt)){var Xe=ke;Ve?Xe-=V-q:Xe=Me.y-De.y-he;var qe=wt(Te,Xe),Ye=wt(Te,Xe,re);qe>Le||qe===Le&&(!te||Ye>=Pe)?(y.current.bt=!0,ke=Xe,he=-he,Oe.points=[j(_e,0),j(Ee,0)]):y.current.bt=!1}if(We&&"b"===_e[0]&&(ReLe||Ke===Le&&(!te||Qe>=Pe)?(y.current.tb=!0,ke=Ge,he=-he,Oe.points=[j(_e,0),j(Ee,0)]):y.current.tb=!1}var Je=Ue(ze),et=_e[1]===Ee[1];if(Je&&"l"===_e[1]&&($e>ie.right||y.current.rl)){var tt=Te;et?tt-=X-Y:tt=Me.x-De.x-pe;var nt=wt(tt,ke),rt=wt(tt,ke,re);nt>Le||nt===Le&&(!te||rt>=Pe)?(y.current.rl=!0,Te=tt,pe=-pe,Oe.points=[j(_e,1),j(Ee,1)]):y.current.rl=!1}if(Je&&"r"===_e[1]&&(AeLe||it===Le&&(!te||at>=Pe)?(y.current.lr=!0,Te=ot,pe=-pe,Oe.points=[j(_e,1),j(Ee,1)]):y.current.lr=!1}Et();var st=!0===Fe?0:Fe;"number"==typeof st&&(Aere.right&&(Te-=$e-re.right-pe,f.x>re.right-st&&(Te+=f.x-re.right+st)));var lt=!0===He?0:He;"number"==typeof lt&&(Rere.bottom&&(ke-=Ne-re.bottom-he,f.y>re.bottom-lt&&(ke+=f.y-re.bottom+lt)));var ct=L.x+Te,ut=ct+X,dt=L.y+ke,ft=dt+V,pt=f.x,ht=pt+Y,gt=f.y,mt=gt+q,vt=(Math.max(ct,pt)+Math.min(ut,ht))/2-ct,bt=(Math.max(dt,gt)+Math.min(ft,mt))/2-dt;null==l||l(t,Oe);var yt=ae.right-L.x-(Te+L.width),St=ae.bottom-L.y-(ke+L.height);g({ready:!0,offsetX:Te/se,offsetY:ke/le,offsetR:yt/se,offsetB:St/le,arrowX:vt/se,arrowY:bt/le,scaleX:se,scaleY:le,align:Oe})}})),w=function(){g((function(e){return(0,r.Z)((0,r.Z)({},e),{},{ready:!1})}))};return(0,h.Z)(w,[i]),(0,h.Z)((function(){e||w()}),[e]),[p.ready,p.offsetX,p.offsetY,p.offsetR,p.offsetB,p.arrowX,p.arrowY,p.scaleX,p.scaleY,p.align,function(){v.current+=1;var e=v.current;Promise.resolve().then((function(){v.current===e&&S()}))}]}(nt,Ze,pe?St:Fe,ie,se,le,ge),Ct=(0,o.Z)(_t,11),xt=Ct[0],Ot=Ct[1],Tt=Ct[2],kt=Ct[3],Rt=Ct[4],Nt=Ct[5],At=Ct[6],$t=Ct[7],Lt=Ct[8],Pt=Ct[9],Mt=Ct[10],It=function(e,t,n,r){return m.useMemo((function(){var o=O(null!=n?n:t),i=O(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(Re,y,S,w),Zt=(0,o.Z)(It,2),Dt=Zt[0],jt=Zt[1],zt=Dt.has("click"),Bt=jt.has("click")||jt.has("contextMenu"),Ft=(0,f.Z)((function(){ft||Mt()}));!function(e,t,n,r,o){(0,h.Z)((function(){if(e&&t&&n){var i=n,a=A(t),s=A(i),l=N(i),c=new Set([l].concat((0,z.Z)(a),(0,z.Z)(s)));function u(){r(),o()}return c.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[e,t,n])}(nt,Fe,Ze,Ft,(function(){ot.current&&pe&&Bt&&ct(!1)})),(0,h.Z)((function(){Ft()}),[St,ie]),(0,h.Z)((function(){!nt||null!=se&&se[ie]||Ft()}),[JSON.stringify(le)]);var Ht=m.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),l=1;l1?n-1:0),o=1;o1?n-1:0),o=1;o{"use strict";n.d(t,{f6:()=>Bn,kc:()=>zn});var r=n(4942),o=n(7294),i=n.t(o,2),a=n(5671),s=n(3144);var l=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?g(x,--_):0,w--,10===C&&(w=1,S--),C}function R(){return C=_2||L(C)>3?"":" "}function D(e,t){for(;--t&&R()&&!(C<48||C>102||C>57&&C<65||C>70&&C<97););return $(e,A()+(t<6&&32==N()&&32==R()))}function j(e){for(;R();)switch(C){case e:return _;case 34:case 39:34!==e&&39!==e&&j(C);break;case 40:41===e&&j(e);break;case 92:R()}return _}function z(e,t){for(;R()&&e+C!==57&&(e+C!==84||47!==N()););return"/*"+$(t,_-1)+"*"+u(47===e?e:R())}function B(e){for(;!L(N());)R();return $(e,_)}var F="-ms-",H="-moz-",U="-webkit-",W="comm",V="rule",X="decl",q="@keyframes";function Y(e,t){for(var n="",r=b(e),o=0;o0&&v(L)-f&&y(b>32?te(L+";",r,n,f-1):te(p(L," ","")+";",r,n,f-2),l);break;case 59:L+=";";default:if(y($=J(L,t,n,c,d,o,s,x,O=[],T=[],f),i),123===C)if(0===d)Q(L,t,$,$,O,i,f,s,T);else switch(99===m&&110===g(L,3)?100:m){case 100:case 108:case 109:case 115:Q(e,$,$,r&&y(J(e,$,$,0,0,o,s,x,o,O=[],f),T),o,T,f,s,r?O:T);break;default:Q(L,$,$,$,[""],T,0,s,T)}}c=d=b=0,w=_=1,x=L="",f=a;break;case 58:f=1+v(L),b=S;default:if(w<1)if(123==C)--w;else if(125==C&&0==w++&&125==k())continue;switch(L+=u(C),C*w){case 38:_=d>0?1:(L+="\f",-1);break;case 44:s[c++]=(v(L)-1)*_,_=1;break;case 64:45===N()&&(L+=I(R())),m=N(),d=f=v(x=L+=B(A())),C++;break;case 45:45===S&&2==v(L)&&(w=0)}}return i}function J(e,t,n,r,o,i,a,s,l,u,d){for(var h=o-1,g=0===o?i:[""],v=b(g),y=0,S=0,w=0;y0?g[E]+" "+_:p(_,/&\f/g,g[E])))&&(l[w++]=C);return O(e,t,n,0===o?V:s,l,u,d)}function ee(e,t,n){return O(e,t,n,W,u(C),m(e,2,-2),0)}function te(e,t,n,r){return O(e,t,n,X,m(e,0,r),m(e,r+1,-1),r)}var ne=function(e,t,n){for(var r=0,o=0;r=o,o=N(),38===r&&12===o&&(t[n]=1),!L(o);)R();return $(e,_)},re=function(e,t){return M(function(e,t){var n=-1,r=44;do{switch(L(r)){case 0:38===r&&12===N()&&(t[n]=1),e[n]+=ne(_-1,t,n);break;case 2:e[n]+=I(r);break;case 4:if(44===r){e[++n]=58===N()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=u(r)}}while(r=R());return e}(P(e),t))},oe=new WeakMap,ie=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||oe.get(n))&&!r){oe.set(e,!0);for(var o=[],i=re(t,o),a=n.props,s=0,l=0;s6)switch(g(e,t+1)){case 109:if(45!==g(e,t+4))break;case 102:return p(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+H+(108==g(e,t+3)?"$3":"$2-$3"))+e;case 115:return~h(e,"stretch")?se(p(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==g(e,t+1))break;case 6444:switch(g(e,v(e)-3-(~h(e,"!important")&&10))){case 107:return p(e,":",":"+U)+e;case 101:return p(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===g(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(g(e,t+11)){case 114:return U+e+F+p(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+F+p(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+F+p(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+F+e+e}return e}var le=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case X:e.return=se(e.value,e.length);break;case q:return Y([T(e,{value:p(e.value,"@","@"+U)})],r);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Y([T(e,{props:[p(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Y([T(e,{props:[p(t,/:(plac\w+)/,":"+U+"input-$1")]}),T(e,{props:[p(t,/:(plac\w+)/,":-moz-$1")]}),T(e,{props:[p(t,/:(plac\w+)/,F+"input-$1")]})],r)}return""}))}}],ce=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||le;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:ye}};function Ee(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var _e=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ce=function(e,t,n){_e(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function xe(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Oe(e,t,n){var r=[],o=Ee(e,r,n);return r.length<2?n:o+t(r)}var Te=function(e){var t=ce(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;re(),Ot=[],Tt={};function kt(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Tt,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const Rt=o.forwardRef(((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,o.useContext)(yt.E_),a=Tt.prefixCls||i("message"),s=(0,o.useContext)(bt.J),[l,c]=(0,Et.K)(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),s.message));return o.useImperativeHandle(t,(()=>{const e=Object.assign({},l);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),l[t].apply(l,arguments)}})),{instance:e,sync:r}})),c})),Nt=o.forwardRef(((e,t)=>{const[n,r]=o.useState(kt),i=()=>{r(kt)};o.useEffect(i,[]);const a=(0,St.w6)(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=o.createElement(Rt,{ref:t,sync:i,messageConfig:n});return o.createElement(St.ZP,{prefixCls:s,iconPrefixCls:l,theme:c},a.holderRender?a.holderRender(u):u)}));function At(){if(!Ct){const e=document.createDocumentFragment(),t={fragment:e};return Ct=t,void xt((()=>{(0,vt.s)(o.createElement(Nt,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,At())}))}}),e)}))}Ct.instance&&(Ot.forEach((e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":xt((()=>{const t=Ct.instance.open(Object.assign(Object.assign({},Tt),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)}));break;case"destroy":xt((()=>{null==Ct||Ct.instance.destroy(e.key)}));break;default:xt((()=>{var n;const r=(n=Ct.instance)[t].apply(n,(0,mt.Z)(e.args));null==r||r.then(e.resolve),e.setCloseFn(r)}))}})),Ot=[])}const $t={open:function(e){const t=(0,_t.J)((t=>{let n;const r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return Ot.push(r),()=>{n?xt((()=>{n()})):r.skipped=!0}}));return At(),t},destroy:function(e){Ot.push({type:"destroy",key:e}),At()},config:function(e){Tt=Object.assign(Object.assign({},Tt),e),xt((()=>{var e;null===(e=null==Ct?void 0:Ct.sync)||void 0===e||e.call(Ct)}))},useMessage:Et.Z,_InternalPanelDoNotUseOrYouWillBeFired:wt.ZP};["success","info","warning","error","loading"].forEach((e=>{$t[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{let r;const o={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return Ot.push(o),()=>{r?xt((()=>{r()})):o.skipped=!0}}));return At(),n}(e,n)}}));const Lt=$t;var Pt=n(700),Mt=n(7107);let It=null,Zt=e=>e(),Dt=[],jt={};function zt(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o}=jt,i=(null==e?void 0:e())||document.body;return{getContainer:()=>i,rtl:t,maxCount:n,top:r,bottom:o}}const Bt=o.forwardRef(((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:i}=(0,o.useContext)(yt.E_),a=jt.prefixCls||i("notification"),s=(0,o.useContext)(bt.J),[l,c]=(0,Mt.k)(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),s.notification));return o.useEffect(r,[]),o.useImperativeHandle(t,(()=>{const e=Object.assign({},l);return Object.keys(e).forEach((t=>{e[t]=function(){return r(),l[t].apply(l,arguments)}})),{instance:e,sync:r}})),c})),Ft=o.forwardRef(((e,t)=>{const[n,r]=o.useState(zt),i=()=>{r(zt)};o.useEffect(i,[]);const a=(0,St.w6)(),s=a.getRootPrefixCls(),l=a.getIconPrefixCls(),c=a.getTheme(),u=o.createElement(Bt,{ref:t,sync:i,notificationConfig:n});return o.createElement(St.ZP,{prefixCls:s,iconPrefixCls:l,theme:c},a.holderRender?a.holderRender(u):u)}));function Ht(){if(!It){const e=document.createDocumentFragment(),t={fragment:e};return It=t,void Zt((()=>{(0,vt.s)(o.createElement(Ft,{ref:e=>{const{instance:n,sync:r}=e||{};Promise.resolve().then((()=>{!t.instance&&n&&(t.instance=n,t.sync=r,Ht())}))}}),e)}))}It.instance&&(Dt.forEach((e=>{switch(e.type){case"open":Zt((()=>{It.instance.open(Object.assign(Object.assign({},jt),e.config))}));break;case"destroy":Zt((()=>{null==It||It.instance.destroy(e.key)}))}})),Dt=[])}function Ut(e){(0,St.w6)();Dt.push({type:"open",config:e}),Ht()}const Wt={open:Ut,destroy:function(e){Dt.push({type:"destroy",key:e}),Ht()},config:function(e){jt=Object.assign(Object.assign({},jt),e),Zt((()=>{var e;null===(e=null==It?void 0:It.sync)||void 0===e||e.call(It)}))},useNotification:Mt.Z,_InternalPanelDoNotUseOrYouWillBeFired:Pt.ZP};["success","info","warning","error"].forEach((e=>{Wt[e]=t=>Ut(Object.assign(Object.assign({},t),{type:e}))}));const Vt=Wt;var Xt=n(6080),qt=n(8657),Yt=n(3876),Gt=n(3967),Kt=n.n(Gt),Qt=n(3037),Jt=n(8745),en=n(9827),tn=n(5514),nn=n(1194),rn=n(5792),on=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:s,children:l,footer:c}=e,u=on(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=o.useContext(yt.E_),f=d(),p=t||d("modal"),h=(0,rn.Z)(f),[g,m,v]=(0,nn.ZP)(p,h),b=`${p}-confirm`;let y={};return y=a?{closable:null!=i&&i,title:"",footer:"",children:o.createElement(en.O,Object.assign({},e,{prefixCls:p,confirmPrefixCls:b,rootPrefixCls:f,content:l}))}:{closable:null==i||i,title:s,footer:null!==c&&o.createElement(tn.$,Object.assign({},e)),children:l},g(o.createElement(Qt.s,Object.assign({prefixCls:p,className:Kt()(m,`${p}-pure-panel`,a&&b,a&&`${b}-${a}`,n,v,h)},u,{closeIcon:(0,tn.b)(p,r),closable:i},y)))}));var sn=n(61);function ln(e){return(0,Xt.ZP)((0,Xt.uW)(e))}const cn=Yt.Z;cn.useModal=sn.Z,cn.info=function(e){return(0,Xt.ZP)((0,Xt.cw)(e))},cn.success=function(e){return(0,Xt.ZP)((0,Xt.vq)(e))},cn.error=function(e){return(0,Xt.ZP)((0,Xt.AQ)(e))},cn.warning=ln,cn.warn=ln,cn.confirm=function(e){return(0,Xt.ZP)((0,Xt.Au)(e))},cn.destroyAll=function(){for(;qt.Z.length;){const e=qt.Z.pop();e&&e()}},cn.config=Xt.ai,cn._InternalPanelDoNotUseOrYouWillBeFired=an;const un=cn;var dn,fn=function(e){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(e,")")):{matches:!1}},pn=(0,o.createContext)({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(dn=fn("dark"))&&void 0!==dn&&dn.matches?"dark":"light"}),hn=function(){return(0,o.useContext)(pn)};function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mn(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{"use strict";n.d(t,{Z:()=>l,i:()=>s});var r=n(7294),o=n(1770),i=n(6854),a=n(3124);function s(e){return t=>r.createElement(i.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(e,Object.assign({},t)))}const l=(e,t,n,i)=>s((s=>{const{prefixCls:l,style:c}=s,u=r.useRef(null),[d,f]=r.useState(0),[p,h]=r.useState(0),[g,m]=(0,o.Z)(!1,{value:s.open}),{getPrefixCls:v}=r.useContext(a.E_),b=v(t||"select",l);r.useEffect((()=>{if(m(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const t=e[0].target;f(t.offsetHeight+8),h(t.offsetWidth)})),t=setInterval((()=>{var r;const o=n?`.${n(b)}`:`.${b}-dropdown`,i=null===(r=u.current)||void 0===r?void 0:r.querySelector(o);i&&(clearInterval(t),e.observe(i))}),10);return()=>{clearInterval(t),e.disconnect()}}}),[]);let y=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},c),{margin:0}),open:g,visible:g,getPopupContainer:()=>u.current});i&&(y=i(y));const S={paddingBottom:d,position:"relative",minWidth:p};return r.createElement("div",{ref:u,style:S},r.createElement(e,Object.assign({},y)))}))},8065:(e,t,n)=>{"use strict";function r(e){return["small","middle","large"].includes(e)}function o(e){return!!e&&("number"==typeof e&&!Number.isNaN(e))}n.d(t,{T:()=>o,n:()=>r})},7263:(e,t,n)=>{"use strict";n.d(t,{Cn:()=>u,u6:()=>s});var r=n(7294),o=n(7606),i=n(3945);const a=100,s=1e3,l={Modal:a,Drawer:a,Popover:a,Popconfirm:a,Tooltip:a,Tour:a},c={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function u(e,t){const[,n]=(0,o.ZP)(),a=r.useContext(i.Z),u=e in l;if(void 0!==t)return[t,t];let d=null!=a?a:0;return u?(d+=(a?0:n.zIndexPopupBase)+l[e],d=Math.min(d,n.zIndexPopupBase+s)):d+=c[e],[void 0===a?t:d,d]}},3603:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r=(e,t,n)=>void 0!==n?n:`${e}-${t}`},6159:(e,t,n)=>{"use strict";var r;n.d(t,{M2:()=>a,Tm:()=>s,l$:()=>i});var o=n(7294);const{isValidElement:i}=r||(r=n.t(o,2));function a(e){return e&&i(e)&&e.type===o.Fragment}function s(e,t){return function(e,t,n){return i(e)?o.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}(e,e,t)}},4443:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l,c4:()=>i});var r=n(7294),o=n(7606);const i=["xxl","xl","lg","md","sm","xs"],a=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)`}),s=e=>{const t=e,n=[].concat(i).reverse();return n.forEach(((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r{const e=new Map;let n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach((e=>e(r))),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach((e=>{const n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),e.clear()},register(){Object.keys(t).forEach((e=>{const n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)}))},responsiveMap:t}}),[e])}},7288:(e,t,n)=>{"use strict";n.d(t,{G8:()=>i,ln:()=>a});var r=n(7294);n(334);function o(){}const i=r.createContext({}),a=()=>{const e=()=>{};return e.deprecated=o,e}},3945:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(7294).createContext(void 0)},6968:(e,t,n)=>{"use strict";n.d(t,{J:()=>o,Z:()=>i});var r=n(7294);const o=r.createContext({}),i=r.createContext({message:{},notification:{},modal:{}})},6107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(7294),o=n(3967),i=n.n(o),a=n(3124),s=n(6474),l=n(61),c=n(7107),u=n(6968);const d=(0,n(1939).I$)("App",(e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i}}}),(()=>({}))),f=e=>{const{prefixCls:t,children:n,className:o,rootClassName:f,message:p,notification:h,style:g,component:m="div"}=e,{getPrefixCls:v}=(0,r.useContext)(a.E_),b=v("app",t),[y,S,w]=d(b),E=i()(S,b,o,f,w),_=(0,r.useContext)(u.J),C=r.useMemo((()=>({message:Object.assign(Object.assign({},_.message),p),notification:Object.assign(Object.assign({},_.notification),h)})),[p,h,_.message,_.notification]),[x,O]=(0,s.Z)(C.message),[T,k]=(0,c.Z)(C.notification),[R,N]=(0,l.Z)(),A=r.useMemo((()=>({message:x,notification:T,modal:R})),[x,T,R]),$=!1===m?r.Fragment:m,L={className:E,style:g};return y(r.createElement(u.Z.Provider,{value:A},r.createElement(u.J.Provider,{value:C},r.createElement($,Object.assign({},!1===m?void 0:L),N,O,k,n))))};f.useApp=()=>r.useContext(u.Z);const p=f},9308:(e,t,n)=>{"use strict";n.d(t,{C:()=>ke});var r=n(7294),o=n(3967),i=n.n(o),a=n(5375),s=n(2550),l=n(4443),c=n(3124),u=n(8675),d=n(6413);const f=r.createContext({});var p=n(7395),h=n(4747),g=n(1939),m=n(5503);const v=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:g,borderRadiusSM:m,lineWidth:v,lineType:b,calc:y}=e,S=(e,t,o)=>({width:e,height:e,lineHeight:(0,p.bf)(y(e).sub(y(v).mul(2)).equal()),borderRadius:"50%",[`&${n}-square`]:{borderRadius:o},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${(0,p.bf)(v)} ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),S(a,c,f)),{"&-lg":Object.assign({},S(s,u,g)),"&-sm":Object.assign({},S(l,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},b=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},y=(0,g.I$)("Avatar",(e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=(0,m.TS)(e,{avatarBg:n,avatarColor:t});return[v(r),b(r)]}),(e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}}));var S=n(5792),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const[n,o]=r.useState(1),[p,h]=r.useState(!1),[g,m]=r.useState(!0),v=r.useRef(null),b=r.useRef(null),E=(0,s.sQ)(t,v),{getPrefixCls:_,avatar:C}=r.useContext(c.E_),x=r.useContext(f),O=()=>{if(!b.current||!v.current)return;const t=b.current.offsetWidth,n=v.current.offsetWidth;if(0!==t&&0!==n){const{gap:r=4}=e;2*r{h(!0)}),[]),r.useEffect((()=>{m(!0),o(1)}),[e.src]),r.useEffect(O,[e.gap]);const T=()=>{const{onError:t}=e;!1!==(null==t?void 0:t())&&m(!1)},{prefixCls:k,shape:R,size:N,src:A,srcSet:$,icon:L,className:P,rootClassName:M,alt:I,draggable:Z,children:D,crossOrigin:j}=e,z=w(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),B=(0,u.Z)((e=>{var t,n;return null!==(n=null!==(t=null!=N?N:null==x?void 0:x.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"})),F=Object.keys("object"==typeof B&&B||{}).some((e=>["xs","sm","md","lg","xl","xxl"].includes(e))),H=(0,d.Z)(F),U=r.useMemo((()=>{if("object"!=typeof B)return{};const e=l.c4.find((e=>H[e])),t=B[e];return t?{width:t,height:t,lineHeight:`${t}px`,fontSize:t&&(L||D)?t/2:18}:{}}),[H,B]);const W=_("avatar",k),V=(0,S.Z)(W),[X,q,Y]=y(W,V),G=i()({[`${W}-lg`]:"large"===B,[`${W}-sm`]:"small"===B}),K=r.isValidElement(A),Q=R||(null==x?void 0:x.shape)||"circle",J=i()(W,G,null==C?void 0:C.className,`${W}-${Q}`,{[`${W}-image`]:K||A&&g,[`${W}-icon`]:!!L},Y,V,P,M,q),ee="number"==typeof B?{width:B,height:B,lineHeight:`${B}px`,fontSize:L?B/2:18}:{};let te;if("string"==typeof A&&g)te=r.createElement("img",{src:A,draggable:Z,srcSet:$,onError:T,alt:I,crossOrigin:j});else if(K)te=A;else if(L)te=L;else if(p||1!==n){const e=`scale(${n}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},o="number"==typeof B?{lineHeight:`${B}px`}:{};te=r.createElement(a.Z,{onResize:O},r.createElement("span",{className:`${W}-string`,ref:b,style:Object.assign(Object.assign({},o),t)},D))}else te=r.createElement("span",{className:`${W}-string`,style:{opacity:0},ref:b},D);return delete z.onError,delete z.gap,X(r.createElement("span",Object.assign({},z,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ee),U),null==C?void 0:C.style),z.style),className:J,ref:E}),te))};const _=r.forwardRef(E);var C=n(344);const x=e=>e?"function"==typeof e?e():e:null;var O=n(3603);function T(e){var t=e.children,n=e.prefixCls,o=e.id,a=e.overlayInnerStyle,s=e.className,l=e.style;return r.createElement("div",{className:i()("".concat(n,"-content"),s),style:l},r.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:a},"function"==typeof t?t():t))}var k=n(7462),R=n(1413),N=n(4925),A=n(2507),$={shiftX:64,adjustY:1},L={adjustX:1,shiftY:!0},P=[0,0],M={left:{points:["cr","cl"],overflow:L,offset:[-4,0],targetOffset:P},right:{points:["cl","cr"],overflow:L,offset:[4,0],targetOffset:P},top:{points:["bc","tc"],overflow:$,offset:[0,-4],targetOffset:P},bottom:{points:["tc","bc"],overflow:$,offset:[0,4],targetOffset:P},topLeft:{points:["bl","tl"],overflow:$,offset:[0,-4],targetOffset:P},leftTop:{points:["tr","tl"],overflow:L,offset:[-4,0],targetOffset:P},topRight:{points:["br","tr"],overflow:$,offset:[0,-4],targetOffset:P},rightTop:{points:["tl","tr"],overflow:L,offset:[4,0],targetOffset:P},bottomRight:{points:["tr","br"],overflow:$,offset:[0,4],targetOffset:P},rightBottom:{points:["bl","br"],overflow:L,offset:[4,0],targetOffset:P},bottomLeft:{points:["tl","bl"],overflow:$,offset:[0,4],targetOffset:P},leftBottom:{points:["br","bl"],overflow:L,offset:[-4,0],targetOffset:P}};var I=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Z=function(e,t){var n=e.overlayClassName,o=e.trigger,i=void 0===o?["hover"]:o,a=e.mouseEnterDelay,s=void 0===a?0:a,l=e.mouseLeaveDelay,c=void 0===l?.1:l,u=e.overlayStyle,d=e.prefixCls,f=void 0===d?"rc-tooltip":d,p=e.children,h=e.onVisibleChange,g=e.afterVisibleChange,m=e.transitionName,v=e.animation,b=e.motion,y=e.placement,S=void 0===y?"right":y,w=e.align,E=void 0===w?{}:w,_=e.destroyTooltipOnHide,C=void 0!==_&&_,x=e.defaultVisible,O=e.getTooltipContainer,$=e.overlayInnerStyle,L=(e.arrowContent,e.overlay),P=e.id,Z=e.showArrow,D=void 0===Z||Z,j=(0,N.Z)(e,I),z=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(function(){return z.current}));var B=(0,R.Z)({},j);"visible"in e&&(B.popupVisible=e.visible);return r.createElement(A.Z,(0,k.Z)({popupClassName:n,prefixCls:f,popup:function(){return r.createElement(T,{key:"content",prefixCls:f,id:P,overlayInnerStyle:$},L)},action:i,builtinPlacements:M,popupPlacement:S,ref:z,popupAlign:E,getPopupContainer:O,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:m,popupAnimation:v,popupMotion:b,defaultPopupVisible:x,autoDestroy:C,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:D},B),p)};const D=(0,r.forwardRef)(Z);var j=n(1770),z=n(7263);function B(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),l=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-l,d=c,f=2*o-a,p=s,h=2*o-0,g=i,m=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:m,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${h} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const F=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,p.bf)(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},H=8;function U(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?H:r}}function W(e,t){return e?t:{}}function V(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},F(e,t,o)),{"&:before":{background:t}})]},W(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),W(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${r}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}})),W(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),W(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const X={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"]}},q={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"]}},Y=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function G(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(X).forEach((e=>{const c=r&&q[e]||X[e],u=Object.assign(Object.assign({},c),{offset:[0,0],dynamicInset:!0});switch(l[e]=u,Y.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=s+o}const d=U({contentRadius:i,limitVerticalRadius:!0});if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":u.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":u.offset[1]=-d.arrowOffsetHorizontal-s;break;case"leftBottom":case"rightBottom":u.offset[1]=d.arrowOffsetHorizontal+s}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,d,t,n),a&&(u.htmlRegion="visibleFirst")})),l}var K=n(6159),Q=n(7288),J=n(3945),ee=n(4173),te=n(7606),ne=n(438);const re=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function oe(e,t){return re.reduce(((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))}),{})}const ie=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${(0,p.bf)(e.calc(c).div(2).equal())} ${(0,p.bf)(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,H)}},[`${t}-content`]:{position:"relative"}}),oe(e,((e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}}))),{"&-rtl":{direction:"rtl"}})},V(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ae=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},U({contentRadius:e.borderRadius,limitVerticalRadius:!0})),B((0,m.TS)(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),se=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,g.I$)("Tooltip",(e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=(0,m.TS)(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[ie(o),(0,ne._y)(e,"zoom-big-fast")]}),ae,{resetStyle:!1,injectStyle:t})(e)};var le=n(3433);const ce=re.map((e=>`${e}-inverse`));function ue(e,t){const n=function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?re.includes(e):[].concat((0,le.Z)(ce),(0,le.Z)(re)).includes(e)}(t),r=i()({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const de=e=>{const{prefixCls:t,className:n,placement:o="top",title:a,color:s,overlayInnerStyle:l}=e,{getPrefixCls:u}=r.useContext(c.E_),d=u("tooltip",t),[f,p,h]=se(d),g=ue(d,s),m=g.arrowStyle,v=Object.assign(Object.assign({},l),g.overlayStyle),b=i()(p,h,d,`${d}-pure`,`${d}-placement-${o}`,n,g.className);return f(r.createElement("div",{className:b,style:m},r.createElement("div",{className:`${d}-arrow`}),r.createElement(T,Object.assign({},e,{className:p,prefixCls:d,overlayInnerStyle:v}),a)))};var fe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var n,o;const{prefixCls:a,openClassName:s,getTooltipContainer:l,overlayClassName:u,color:d,overlayInnerStyle:f,children:p,afterOpenChange:h,afterVisibleChange:g,destroyTooltipOnHide:m,arrow:v=!0,title:b,overlay:y,builtinPlacements:S,arrowPointAtCenter:w=!1,autoAdjustOverflow:E=!0}=e,_=!!v,[,C]=(0,te.ZP)(),{getPopupContainer:x,getPrefixCls:T,direction:k}=r.useContext(c.E_),R=(0,Q.ln)("Tooltip"),N=r.useRef(null),A=()=>{var e;null===(e=N.current)||void 0===e||e.forceAlign()};r.useImperativeHandle(t,(()=>({forceAlign:A,forcePopupAlign:()=>{R.deprecated(!1,"forcePopupAlign","forceAlign"),A()}})));const[$,L]=(0,j.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),P=!b&&!y&&0!==b,M=r.useMemo((()=>{var e,t;let n=w;return"object"==typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:w),S||G({arrowPointAtCenter:n,autoAdjustOverflow:E,arrowWidth:_?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})}),[w,v,S,C]),I=r.useMemo((()=>0===b?b:y||b||""),[y,b]),Z=r.createElement(ee.BR,null,"function"==typeof I?I():I),{getPopupContainer:B,placement:F="top",mouseEnterDelay:H=.1,mouseLeaveDelay:U=.1,overlayStyle:W,rootClassName:V}=e,X=fe(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),q=T("tooltip",a),Y=T(),ne=e["data-popover-inject"];let re=$;"open"in e||"visible"in e||!P||(re=!1);const oe=(0,K.l$)(p)&&!(0,K.M2)(p)?p:r.createElement("span",null,p),ie=oe.props,ae=ie.className&&"string"!=typeof ie.className?ie.className:i()(ie.className,s||`${q}-open`),[le,ce,de]=se(q,!ne),pe=ue(q,d),he=pe.arrowStyle,ge=Object.assign(Object.assign({},f),pe.overlayStyle),me=i()(u,{[`${q}-rtl`]:"rtl"===k},pe.className,V,ce,de),[ve,be]=(0,z.Cn)("Tooltip",X.zIndex),ye=r.createElement(D,Object.assign({},X,{zIndex:ve,showArrow:_,placement:F,mouseEnterDelay:H,mouseLeaveDelay:U,prefixCls:q,overlayClassName:me,overlayStyle:Object.assign(Object.assign({},he),W),getTooltipContainer:B||l||x,ref:N,builtinPlacements:M,overlay:Z,visible:re,onVisibleChange:t=>{var n,r;L(!P&&t),P||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t))},afterVisibleChange:null!=h?h:g,overlayInnerStyle:ge,arrowContent:r.createElement("span",{className:`${q}-arrow-content`}),motion:{motionName:(0,O.m)(Y,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),re?(0,K.Tm)(oe,{className:ae}):oe);return le(r.createElement(J.Z.Provider,{value:be},ye))}));pe._InternalPanelDoNotUseOrYouWillBeFired=de;const he=pe,ge=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:g,titlePadding:m}=e;return[{[t]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":d,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:p,padding:m},[`${t}-inner-content`]:{color:n,padding:g}})},V(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},me=e=>{const{componentCls:t}=e;return{[t]:re.map((n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}}))}},ve=(0,g.I$)("Popover",(e=>{const{colorBgElevated:t,colorText:n}=e,r=(0,m.TS)(e,{popoverBg:t,popoverColor:n});return[ge(r),me(r),(0,ne._y)(r,"zoom-big")]}),(e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,h=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},B(e)),U({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${p}px ${g}px ${h}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var be=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{hashId:t,prefixCls:n,className:o,style:a,placement:s="top",title:l,content:c,children:u}=e;return r.createElement("div",{className:i()(t,n,`${n}-pure`,`${n}-placement-${s}`,o),style:a},r.createElement("div",{className:`${n}-arrow`}),r.createElement(T,Object.assign({},e,{className:t,prefixCls:n}),u||((e,t,n)=>t||n?r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${e}-title`},x(t)),r.createElement("div",{className:`${e}-inner-content`},x(n))):null)(n,l,c)))},Se=e=>{const{prefixCls:t,className:n}=e,o=be(e,["prefixCls","className"]),{getPrefixCls:a}=r.useContext(c.E_),s=a("popover",t),[l,u,d]=ve(s);return l(r.createElement(ye,Object.assign({},o,{prefixCls:s,hashId:u,className:i()(n,d)})))};var we=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:o}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},x(t)),r.createElement("div",{className:`${o}-inner-content`},x(n)))},_e=r.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:a,overlayClassName:s,placement:l="top",trigger:u="hover",mouseEnterDelay:d=.1,mouseLeaveDelay:f=.1,overlayStyle:p={}}=e,h=we(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:g}=r.useContext(c.E_),m=g("popover",n),[v,b,y]=ve(m),S=g(),w=i()(s,b,y);return v(r.createElement(he,Object.assign({placement:l,trigger:u,mouseEnterDelay:d,mouseLeaveDelay:f,overlayStyle:p},h,{prefixCls:m,overlayClassName:w,ref:t,overlay:o||a?r.createElement(Ee,{prefixCls:m,title:o,content:a}):null,transitionName:(0,O.m)(S,"zoom-big",h.transitionName),"data-popover-inject":!0})))}));_e._InternalPanelDoNotUseOrYouWillBeFired=Se;const Ce=_e,xe=e=>{const{size:t,shape:n}=r.useContext(f),o=r.useMemo((()=>({size:e.size||t,shape:e.shape||n})),[e.size,e.shape,t,n]);return r.createElement(f.Provider,{value:o},e.children)},Oe=e=>{const{getPrefixCls:t,direction:n}=r.useContext(c.E_),{prefixCls:o,className:a,rootClassName:s,style:l,maxCount:u,maxStyle:d,size:f,shape:p,maxPopoverPlacement:h="top",maxPopoverTrigger:g="hover",children:m}=e,v=t("avatar",o),b=`${v}-group`,w=(0,S.Z)(v),[E,x,O]=y(v,w),T=i()(b,{[`${b}-rtl`]:"rtl"===n},O,w,a,s,x),k=(0,C.Z)(m).map(((e,t)=>(0,K.Tm)(e,{key:`avatar-key-${t}`}))),R=k.length;if(u&&u